mazey 4.7.2 → 4.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/browser.d.ts CHANGED
@@ -58,7 +58,7 @@ export declare function isSafePWAEnv(): boolean;
58
58
  *
59
59
  * ```javascript
60
60
  * const { system, shell } = getBrowserInfo();
61
- * const isMobileQQ = ['android', 'ios'].includes(system) && ['qq_browser', 'qq_app'].includes(shell);
61
+ * const isMobileQQ = ["android", "ios"].includes(system) && ["qq_browser", "qq_app"].includes(shell);
62
62
  * ```
63
63
  *
64
64
  * @returns 浏览器信息
@@ -93,7 +93,7 @@ export declare function genBrowserAttrs(prefix?: string, separator?: string): st
93
93
  *
94
94
  * ```javascript
95
95
  * isSupportWebp().then(res => {
96
- * console.log('isSupportWebp:', res);
96
+ * console.log("isSupportWebp:", res);
97
97
  * });
98
98
  * ```
99
99
  *
package/lib/calc.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * Usage:
7
7
  *
8
8
  * ```javascript
9
- * const ret = longestComSubstring('fish', 'finish');
9
+ * const ret = longestComSubstring("fish", "finish");
10
10
  * console.log(ret);
11
11
  * ```
12
12
  *
@@ -36,7 +36,7 @@ export declare function calLongestCommonSubstring(aStr: string, bStr: string): n
36
36
  * Usage:
37
37
  *
38
38
  * ```javascript
39
- * const ret = longestComSubsequence('fish', 'finish');
39
+ * const ret = longestComSubsequence("fish", "finish");
40
40
  * console.log(ret);
41
41
  * ```
42
42
  *
@@ -79,7 +79,6 @@ export declare function calLongestCommonSubsequence(aStr: string, bStr: string):
79
79
  * Example: Test the precision.
80
80
  *
81
81
  * ```javascript
82
- * // Test
83
82
  * let trueCount = 0;
84
83
  * let falseCount = 0;
85
84
  * new Array(1000000).fill(0).forEach(() => {
@@ -89,7 +88,13 @@ export declare function calLongestCommonSubsequence(aStr: string, bStr: string):
89
88
  * falseCount++;
90
89
  * }
91
90
  * });
92
- * console.log(trueCount, falseCount); // 499994 500006
91
+ * console.log(trueCount, falseCount);
92
+ * ```
93
+ *
94
+ * Output:
95
+ *
96
+ * ```text
97
+ * 499994 500006
93
98
  * ```
94
99
  *
95
100
  * @param {number} rate -- 0.1 ~ 1 => 1% ~ 100%
package/lib/calc.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"calc.d.ts","sourceRoot":"","sources":["../src/calc.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAqBtE;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5E;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CA8BxE;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAK3C;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE5C"}
1
+ {"version":3,"file":"calc.d.ts","sourceRoot":"","sources":["../src/calc.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAqBtE;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5E;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CA8BxE;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAK3C;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE5C"}
package/lib/index.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Mazey v4.7.2 https://github.com/mazeyqian/mazey
2
+ * Mazey v4.7.3 https://github.com/mazeyqian/mazey
3
3
  * (c) 2018-2024 Cheng
4
4
  * Released under the MIT License.
5
5
  */
6
- "use strict";var e=function(){return e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};function t(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function n(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function r(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function o(t){if("object"!=typeof t)return t;var n=["string","number","boolean","undefined"];return Object.values(t).every((function(e){return n.includes(typeof e)}))?e({},t):JSON.parse(JSON.stringify(t))}function i(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substring(1):t}function a(e){var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substring(1):t}function s(e){return a(e)}function c(e){try{if("object"==typeof JSON.parse(e))return!0}catch(e){}return!1}function u(e){void 0===e&&(e=5);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function d(e){return void 0===e&&(e=5),u(e)}function f(e){void 0===e&&(e=3);var t=[l(),d(e||3)];return t[0]+t[1]}function l(){return Date.now?Date.now():(new Date).getTime()}"function"==typeof SuppressedError&&SuppressedError;var p={type:"d"};function g(e,t){void 0===t&&(t={});var n=t.isNaNAsNumber,r=void 0!==n&&n,o=t.isInfinityAsNumber,i=void 0!==o&&o,a=t.isUnFiniteAsNumber;return"number"==typeof e&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(e))&&!(!r&&isNaN(e)))}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,t)),r}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return v.apply(void 0,r([e],t,!1))}function h(e){var t=!1;return Array.isArray(e)&&e.length&&(t=!0),t}function w(e){var t=Boolean(e),n="object"==typeof e,r="[object Object]"===Object.prototype.toString.call(e);return t&&n&&r}function y(e){if(!e)return"";var t=new RegExp("\\n","g");return e.replace(t,"<br />")}function x(e,t){void 0===t&&(t={});var n=t.removeNewLine,r=void 0!==n&&n,o="";return e&&(o=e.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o}function b(e){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x2F;":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/(&amp;|&lt;|&gt;|&quot;|&#x27;|&#x2F;)/g,(function(e){return t[e]}))}function S(e,t,n){if(void 0===n&&(n={hasDot:!1,dotText:"..."}),n=Object.assign({hasDot:!1,dotText:"..."},n),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",s=e.replace(i,"**").length,c=0;c<s&&(null!=(a=e.charAt(c).toString()).match(i)?r+=2:r++,!(r>t));c++)o+=a;return n.hasDot&&s>t&&(o+=n.dotText),o}return""}function E(e,t,n){return void 0===n&&(n=!1),S(e,t,{hasDot:n})}function T(e){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,new Promise((function(t){setTimeout((function(){t(e)}),e)}))]}))}))}function A(e,t){for(var n=e.length,r=t.length,i=o(new Array(n).fill(new Array(r).fill(0))),a=0;a<n;++a)for(var s=0;s<r;++s)if(e[a]===t[s]){var c=0;a>0&&s>0&&(c=i[a-1][s-1]),i[a][s]=c+1}var u=Array.prototype.concat.apply([],i);return Math.max.apply(Math,u)}function C(e,t){for(var n=e.length,r=t.length,i=o(new Array(n).fill(new Array(r).fill(0))),a=0;a<n;++a)for(var s=0;s<r;++s)if(e[a]===t[s]){var c=0;a>0&&s>0&&(c=i[a-1][s-1]),i[a][s]=c+1}else{var u=[0,0],d=u[0],f=u[1];s>0&&(d=i[a][s-1]),a>0&&(f=i[a-1][s]),i[a][s]=Math.max(d,f)}var l=Array.prototype.concat.apply([],i);return Math.max.apply(Math,l)}function O(e){return Math.random()<e}function P(e,t){void 0===t&&(t={strict:!0});var n=/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/;return t.strict||(n=/^(https?:)?\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/),n.test(e)}function M(e){return e.replace(/^http:/,"https:")}function k(e){void 0===e&&(e="");var t=window.URL;if(!t)return!1;if(!t.canParse)return!1;if("function"!=typeof t.canParse)return!1;try{var n=new t("b","http://a");return n.pathname="c d","http://a/c%20d"===n.href&&Boolean(n.searchParams)&&t.canParse(e)}catch(e){return!1}}function N(e,t){void 0===e&&(e=""),void 0===t&&(t={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var n=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},t),o=n.isClosed,i=n.showWrap,a=n.showDate,s=n.locales,c=n.logFn,u=n.errorFn,d=Object.create(null),f=function(){return(new Date).toLocaleDateString(s,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(t){d[t]=function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];if(o)return!1;var d=e,l=e;if("string"==typeof e&&e.length>=2){var p=e.length;d=":"===e[p-1]?e.substring(0,p-1):e}i&&console.log("--- ".concat(d," - begin ---")),a&&(l=e?"".concat(f()," ").concat(e):"".concat(f())),e||a?console[t].apply(console,r([l],n,!1)):console[t].apply(console,n),"log"===t&&c(),"error"===t&&u(),i&&console.log("--- ".concat(d," - end ---"))}})),d}var _=N("[Mazey]");function R(e,t){if(e)if(Array.isArray(t))t.forEach((function(t){e.classList.add(t)}));else{for(var n=e.className,r=n.split(/\s+/),o=0;o<r.length;o++)if(r[o]===t)return;var i,a="";""!==n&&(a=" "),i=n+a+t,e.className=i}else _.error("The element is not exist.")}function j(){var e,t=window.jQuery||window.$;return t?!(!(e=t("img"))||!e.length)&&(e.each((function(){var e=t(this);if(e){var n=e.attr("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&h(r)&&r[1]&&e.width(r[1]),o&&h(o)&&o[1]&&e.height(o[1])}}})),!0):(e=document.getElementsByTagName("img")).length>0&&(Array.from(e).forEach((function(e){var t=e;if(t){var n=t.getAttribute("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&h(r)&&r[1]&&(t.style.width=r[1]),o&&h(o)&&o[1]&&(t.style.height=o[1])}}})),!0)}function L(){var e=window.MAZEY_DEFINE_LISTENERS;return"object"!=typeof e&&(e={},window.MAZEY_DEFINE_LISTENERS=e),e}function B(t,n){void 0===n&&(n={});var r=L()[t];if(r instanceof Array)for(var o=0,i=r.length;o<i;o++)"function"==typeof r[o]&&r[o](e(e({},n),{type:t}))}function F(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}function I(e){for(var t=document.cookie.split(";"),n=0;n<t.length;n++){var r=t[n].trim();if(r.startsWith("".concat(e,"="))){var o=r.split("=")[0],i=new Date;return i.setTime(i.getTime()-1),document.cookie="".concat(o,"=;expires=").concat(i.toUTCString()),!0}}return!1}function U(e,t){void 0===t&&(t={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n,r,o=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},t),i=o.id,a=o.callback,s=o.timeout,c=o.isDefer,u=document.createElement("script");u||Promise.reject("Not support create script element");var d=document.getElementsByTagName("script")[0];return u.type="text/javascript",c&&(u.defer=!0),i&&(u.id=i),u.readyState?u.onreadystatechange=function(){"loaded"!==u.readyState&&"complete"!==u.readyState||(u.onreadystatechange=null,m(a),m(n,"loaded"))}:u.onload=function(){m(a),m(n,"loaded")},u.src=e,d&&d.parentNode.insertBefore(u,d),new Promise((function(e,t){var o;n=(o=[e,t])[0],r=o[1],s&&setTimeout(r.bind(null,"timeout"),s)}))}function D(e){var t=[],n=window.PerformanceObserver;return!!n&&(h(n.supportedEntryTypes)&&(t=n.supportedEntryTypes),t.includes(e))}function z(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return D("paint")?[2,new Promise((function(e){var t=new PerformanceObserver((function(n){var r=n.getEntries().find((function(e){return"first-contentful-paint"===e.name}));r&&(t.disconnect(),e(Math.round(r.startTime)))}));t.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function q(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return D("paint")?[2,new Promise((function(e){var t=new PerformanceObserver((function(n){var r=n.getEntries().find((function(e){return"first-paint"===e.name}));r&&(t.disconnect(),e(Math.round(r.startTime)))}));t.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}var H="";function Z(){if(window.MAZEY_BROWSER_INFO&&"object"==typeof window.MAZEY_BROWSER_INFO)return window.MAZEY_BROWSER_INFO;var t={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:"",shell:"",shellVs:"",appleType:""};try{var n=navigator.userAgent.toLowerCase();if(!n)return t;var r=function(e){return e.test(n)},o=function(e){var t="",r=n.match(e);return r&&h(r)&&(t=(t=(t=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),t},i="",a="";r(/windows|win32|win64|wow32|wow64/g)?i="windows":r(/macintosh|macintel/g)?i="macos":r(/x11/g)?i="linux":r(/android|adr/g)?i="android":r(/ios|iphone|ipad|ipod|iwatch/g)&&(i="ios",r(/ipad/g)?a="ipad":r(/iphone/g)?a="iphone":r(/iwatch/g)?a="iwatch":r(/ipod/g)&&(a="ipod")),t=e(e({},t),{system:i,appleType:a});var s="";"windows"===i?r(/windows nt 5.0|windows 2000/g)?s="2000":r(/windows nt 5.1|windows xp/g)?s="xp":r(/windows nt 5.2|windows 2003/g)?s="2003":r(/windows nt 6.0|windows vista/g)?s="vista":r(/windows nt 6.1|windows 7/g)?s="7":r(/windows nt 6.2|windows 8/g)?s="8":r(/windows nt 6.3|windows 8.1/g)?s="8.1":r(/windows nt 10.0|windows 10/g)&&(s="10"):"macos"===i?s=o(/os x [\d._]+/g):"android"===i?s=o(/android [\d._]+/g):"ios"===i&&(s=o(/os [\d._]+/g)),t=e(e({},t),{systemVs:s});var c="";"windows"===i||"macos"===i||"linux"===i?c="desktop":("android"===i||"ios"===i||r(/mobile/g))&&(c="mobile"),t=e(e({},t),{platform:c});var u="",d="";r(/applewebkit/g)?(u="webkit",r(/edge/g)?d="edge":r(/opr/g)?d="opera":r(/chrome/g)?d="chrome":r(/safari/g)&&(d="safari")):r(/gecko/g)&&r(/firefox/g)?(u="gecko",d="firefox"):r(/presto/g)?(u="presto",d="opera"):r(/trident|compatible|msie/g)&&(u="trident",d="iexplore"),t=e(e({},t),{engine:u,supporter:d});var f="";"webkit"===u?f=o(/applewebkit\/[\d._]+/g):"gecko"===u?f=o(/gecko\/[\d._]+/g):"presto"===u?f=o(/presto\/[\d._]+/g):"trident"===u&&(f=o(/trident\/[\d._]+/g)),t=e(e({},t),{engineVs:f});var l="";"chrome"===d?l=o(/chrome\/[\d._]+/g):"safari"===d?l=o(/version\/[\d._]+/g):"firefox"===d?l=o(/firefox\/[\d._]+/g):"opera"===d?l=o(/opr\/[\d._]+/g):"iexplore"===d?l=o(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===d&&(l=o(/edge\/[\d._]+/g)),t=e(e({},t),{supporterVs:l});var p="",g="";return r(/micromessenger/g)?(p="wechat",g=o(/micromessenger\/[\d._]+/g)):r(/qqbrowser/g)?(p="qq_browser",g=o(/qqbrowser\/[\d._]+/g)):r(/\sqq/g)?p="qq_app":r(/ucbrowser/g)?(p="uc",g=o(/ucbrowser\/[\d._]+/g)):r(/qihu 360se/g)?p="360":r(/2345explorer/g)?(p="2345",g=o(/2345explorer\/[\d._]+/g)):r(/metasr/g)?p="sougou":r(/lbbrowser/g)?p="liebao":r(/maxthon/g)?(p="maxthon",g=o(/maxthon\/[\d._]+/g)):r(/biliapp/g)&&(p="bilibili"),t=e(e({},t),{shell:p,shellVs:g}),window.MAZEY_BROWSER_INFO=t,t}catch(e){return _.warn(e),t}}var V="";exports.addClass=R,exports.addEvent=function(e,t){var n=L();void 0===n[e]&&(n[e]=[]),"function"==typeof t&&n[e].push(t)},exports.addStyle=function(e,t){if(void 0===t&&(t={id:""}),!e)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return t.id?(o="".concat(t.id),(r=document.getElementById(o))?r.innerHTML=e:(i.setAttribute("id",t.id),i.innerHTML=e,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=e,n.appendChild(i),document.head.appendChild(n)),!0},exports.calLongestCommonSubsequence=function(e,t){return C(e,t)},exports.calLongestCommonSubstring=function(e,t){return A(e,t)},exports.camelCase2Underscore=s,exports.camelCaseToKebabCase=function(e){return i(e)},exports.cancelBubble=function(e){var t=e||window.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},exports.clearHTML=function(e,t){return void 0===t&&(t={}),x(e,t)},exports.clearHtml=function(e,t){return void 0===t&&(t={}),x(e,t)},exports.convert10To26=function(e){for(var t="";e>0;){var n=e%26;0===n&&(n=26),t=String.fromCharCode(n+96)+t,e=(e-n)/26}return t},exports.convertCamelToKebab=i,exports.convertCamelToUnder=a,exports.convertHttpToHttps=M,exports.convertKebabToCamel=function(e){var t=e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}));return t.endsWith("-")?t.slice(0,-1):t},exports.convertObjectToQuery=function(e){if(e&&0===Object.keys(e).length)return"";var t="?";for(var n in e)t+="".concat(n,"=").concat(e[n],"&");return t.slice(0,-1)},exports.convertToHtmlBreaks=y,exports.cutCHSString=function(e,t,n){return void 0===n&&(n=!1),E(e,t,n)},exports.cutZHString=S,exports.debounce=function(e,t,n){var r=null,o=null,i=null,a=null,s=null,c=function c(){var u=l()-i;u<t&&u>=0?o=setTimeout(c,t-u):(o=null,n||(s=e.apply(r,a),o||(r=a=null)))};return function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];r=this,a=u,i=l();var f=n&&!o;return o||(o=setTimeout(c,t)),f&&(s=e.apply(r,a),r=a=null),s}},exports.deepCopy=o,exports.deepCopyObject=function(e){return o(e)},exports.delCookie=function(e){I(e)},exports.doFn=m,exports.fireEvent=B,exports.floatFixed=function(e,t){return void 0===t&&(t=0),parseFloat(e).toFixed(t)},exports.floatToPercent=function(e,t){void 0===t&&(t=0);var n="";return n=t?(100*e).toFixed(t):String(Math.floor(100*e)),"".concat(n,"%")},exports.formatDate=function(e,t){void 0===t&&(t="yyyy-MM-dd"),e||(e=new Date);var n=new Date(e),r=n.getHours(),o={yyyy:n.getFullYear(),MM:n.getMonth()+1,dd:n.getDate()<10?"0"+n.getDate():n.getDate(),HH:r<10?"0"+r:r,hh:(r%12||12)<10?"0"+(r%12||12):r%12||12,mm:n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),ss:n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds(),a:r<12?"AM":"PM"},i=t||"yyyy-MM-dd";return Object.keys(o).forEach((function(e){var t=o[e];"MM"===e&&Number(t)<=9&&(t="0".concat(t)),i=i.replace(e,String(t))})),i},exports.genBrowserAttrs=function(e,t){void 0===e&&(e=""),void 0===t&&(t="-");var n=Z(),r=[];return["system","platform","engine","supporter","shell","appleType"].forEach((function(o){var i=n[o];if(i){var a="";e&&e.length>0&&(a="".concat(e).concat(t)),r.push("".concat(a).concat(i))}})),r},exports.genCustomConsole=N,exports.genHashCode=function(e){var t,n=0;for(t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return n},exports.genRndNumString=u,exports.genStyleString=function(e,t){var n="";return t&&t.length>0&&(n=t.join(";")+";"),"".concat(e,"{").concat(n,"}")},exports.genUniqueNumString=f,exports.generateRndNum=d,exports.generateUniqueNum=function(e){return void 0===e&&(e=3),f(e)},exports.getAllQueryParams=function(e){void 0===e&&(e=""),""===e&&(e=location.search);var t={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,n,r){return void 0===t[n]&&(t[n]=decodeURIComponent(r)),""})),t},exports.getBrowserInfo=Z,exports.getCLS=function(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return D("layout-shift")?[2,new Promise((function(e){var t=new PerformanceObserver((function(n){var r=n.getEntries().reduce((function(e,t){var n=0;return g(t.value)&&(n=t.value),e+n}),0);t.disconnect(),e(r)}));t.observe({type:"layout-shift",buffered:!0})}))]:[2,0]}))}))},exports.getCookie=F,exports.getCurrentVersion=function(){return"v4"},exports.getDefineListeners=L,exports.getDomain=function(e,t){if(void 0===t&&(t=["hostname"]),k(e)){var n=new window.URL(e);return t.reduce((function(e,t){return e+=n[t]}),"")}var r=document.createElement("a");return r.href=e,t.reduce((function(e,t){return e+=r[t]}),"")},exports.getFCP=z,exports.getFID=function(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return D("first-input")?[2,new Promise((function(e){var t=new PerformanceObserver((function(n){var r=n.getEntries().find((function(e){return"first-input"===e.entryType}));if(r){t.disconnect();var o=r.processingStart;e(o?Math.round(r.processingStart-r.startTime):0)}}));t.observe({type:"first-input",buffered:!0})}))]:[2,0]}))}))},exports.getFP=q,exports.getFileSize=function(e){var t=function(e){return String(Math.ceil(e))};if(!e||e<0)return"";var n=1024;return e<n?e+" B":e<Math.pow(n,2)?t(e/n)+" KB":e<Math.pow(n,3)?t(e/Math.pow(n,2))+" MB":e<Math.pow(n,4)?t(e/Math.pow(n,3))+" G":t(e/Math.pow(n,4))+" T"},exports.getFriendlyInterval=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=p);var r=(n=Object.assign(p,n)).type;g(e)||(e=new Date(e).getTime()),g(t)||(t=new Date(t).getTime());var o=Number(t)-Number(e),i="",a=new Array(4).fill(0),s=a[0],c=(a[1],a[2],a[3]),u=decodeURIComponent("%20%E5%A4%A9%20"),d=decodeURIComponent("%20%E6%97%B6%20"),f=decodeURIComponent("%20%E5%88%86%20"),l=decodeURIComponent("%20%E7%A7%92");if(o>=0)switch(s=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),c=Math.floor(o/1e3),r){case"d":i=s;break;case"text":i=(s=Math.floor(o/1e3/60/60/24))+u+Math.floor(o/1e3/60/60%24)+d+Math.floor(o/1e3/60%60)+f+(c=Math.floor(o/1e3%60))+l;break;default:i=c}return i},exports.getHashQueryParam=function(e){var t=location.hash.split("?");if(1===t.length)return"";var n=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),r=t[1].match(n);return r?r[2]:""},exports.getLCP=function(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return D("largest-contentful-paint")?[2,new Promise((function(e){var t=new PerformanceObserver((function(n){var r=n.getEntries().find((function(e){return"largest-contentful-paint"===e.entryType}));r&&(t.disconnect(),e(Math.round(r.startTime)))}));t.observe({type:"largest-contentful-paint",buffered:!0})}))]:[2,0]}))}))},exports.getLocalStorage=function(e){var t=null;if(e){var n=localStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getPageMeta=function(e){var t;return document.querySelector&&(null===(t=document.querySelector('meta[name="'.concat(e,'"]')))||void 0===t?void 0:t.getAttribute("content"))||""},exports.getPerformance=function(e){return void 0===e&&(e=!1),t(this,void 0,void 0,(function(){function t(){var t={source:I,os:r(),osVersion:o(),deviceType:i(),network:a(),screenDirection:c(),unloadTime:w-y,redirectTime:x-b,dnsTime:S-E,tcpTime:T-A,sslTime:u(T,C),responseTime:O-P,downloadTime:M-O,firstPaintTime:Z,firstContentfulPaintTime:V,domReadyTime:k-U,onloadTime:N-U,whiteTime:O-U,renderTime:_-U,decodedBodySize:L,encodedBodySize:B};Object.keys(t).forEach((function(e){g(t[e])&&(t[e]<0?t[e]=0:t[e]=Math.round(t[e]))})),g(t.whiteTime)&&t.whiteTime>t.onloadTime&&(t.whiteTime=0);var n={};e||Object.keys(t).forEach((function(e){n[s(e)]=t[e]})),Object.keys(n).length?f(n):f(t)}function r(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function o(){var e="",t=navigator.userAgent,n=t.indexOf("Android")>-1||t.indexOf("Linux")>-1,r=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return e;var i=o[1];return i?(n&&(e=(i.match(/\d+\.\d+/g)||[])[0]),r&&(e=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e||(e=""),e):e}function i(){var e,t=navigator.userAgent.toLowerCase(),n=t.match(/(ipad)/i)&&"ipad",r=t.match(/iphone os/i)&&"iphone os",o=t.match(/midp/i)&&"midp",i=t.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=t.match(/ucweb/i)&&"ucweb",s=t.match(/android/i)&&"android",c=t.match(/windows ce/i)&&"windows ce",u=t.match(/windows mobile/i)&&"windows mobile";return(e=n||r||o||i||a||s||c||u?r||o||i||a||s||c||u?"phone":n?"ipad":void 0:"pc")||(e=""),e}function a(){var e="",t=window.navigator;if(t.connection&&t.connection.effectiveType)switch(t.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e||(e=""),e}function c(){var e="";return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function u(e,t){var n=0;return t&&(n=e-t),n}var d,f,l,p,v,m,w,y,x,b,S,E,T,A,C,O,P,M,k,N,_,R,j,L,B,F,I,U,H,Z,V;return n(this,(function(e){switch(e.label){case 0:if(!D("navigation"))return[2,Promise.reject(new Error("navigation is not supported"))];if(!(d=window.performance)||"function"!=typeof d.getEntries||"function"!=typeof d.getEntriesByType)return[2,Promise.reject(new Error("performance is not supported"))];if(l=new Promise((function(e){f=[e][0]})),p=null,h(v=d.getEntriesByType("navigation"))&&(p=v[0]),m=new Array(19).fill(0),w=m[0],y=m[1],x=m[2],b=m[3],S=m[4],E=m[5],T=m[6],A=m[7],C=m[8],O=m[9],P=m[10],M=m[11],k=m[12],N=m[13],_=m[14],R=m[15],j=m[16],L=m[17],B=m[18],F=d.timing,I="",p)I="PerformanceNavigationTiming",L=p.decodedBodySize,B=p.encodedBodySize,w=p.unloadEventEnd,y=p.unloadEventStart,x=p.redirectEnd,b=p.redirectStart,S=p.domainLookupEnd,E=p.domainLookupStart,T=p.connectEnd,A=p.connectStart,C=p.secureConnectionStart,O=p.responseStart,P=p.requestStart,M=p.responseEnd,k=p.domContentLoadedEventStart,N=p.loadEventStart,_=p.loadEventEnd,R=p.startTime,j=p.fetchStart;else{if(!F)return[2,Promise.reject(new Error("NavigationTiming and Timing are not supported"))];I="PerformanceTiming",w=F.unloadEventEnd,y=F.unloadEventStart,x=F.redirectEnd,b=F.redirectStart,S=F.domainLookupEnd,E=F.domainLookupStart,T=F.connectEnd,A=F.connectStart,C=F.secureConnectionStart,O=F.responseStart,P=F.requestStart,M=F.responseEnd,k=F.domContentLoadedEventStart,N=F.loadEventStart,_=F.loadEventEnd,R=F.navigationStart,j=F.fetchStart}if(U=0,g(R))U=R;else{if(!g(j))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];U=j}return[4,Promise.all([q(),z()])];case 1:return H=e.sent(),Z=H[0],V=H[1],g(_)&&_>0?t():window.addEventListener("load",(function(){window.setTimeout((function(){t()}),0)})),[2,l]}}))}))},exports.getQueryParam=function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=location.search.substring(1).match(t);return null!==n?decodeURIComponent(n[2]):""},exports.getScriptQueryParam=function(e,t){void 0===t&&(t=""),t||(t=".js");for(var n=new RegExp("[?&]".concat(e,"=([^&]*)")),r=document.querySelectorAll('script[src*="'.concat(t,'"]')),o=0;o<r.length;o++){var i=r[o].getAttribute("src");if(i&&-1!==i.indexOf(t)){var a=i.match(n);if(a)return decodeURIComponent(a[1])}}return""},exports.getSessionStorage=function(e){var t=null;if(e){var n=sessionStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getTTFB=function(){return t(this,void 0,void 0,(function(){var e,t;return n(this,(function(n){return D("navigation")&&window.performance&&window.performance.getEntriesByType?(e=performance.getEntriesByType("navigation")[0],0,e?(t=e.responseStart-e.requestStart,[2,Math.round(t)]):[2,0]):[2,0]}))}))},exports.getUrlFileType=function(e){var t="";if("string"!=typeof e||""==e)return t;var n=/\.[^/?#]+$/.exec(e);return n?(n[0].length>1&&(t=n[0].substring(1)),t):t},exports.getUrlHost=function(e){var t="";return!P(e)&&P(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),k(e)&&(t=new URL(e).host),t},exports.getUrlParam=function(e,t,n){void 0===n&&(n={});var r=null;if(e.includes("#")){r=new URL(e).searchParams.getAll(t)}else{var o={};e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,n){return void 0!==o[t]?o[t].push(n):o[t]=[n],""})),r=o[t]||[]}return n.returnArray?r:r.length?r[0]:null},exports.getUrlPath=function(e){var t="";return!P(e)&&P(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),k(e)&&(t=new URL(e).pathname),t},exports.hasClass=function(e,t){if(!e)return _.error("The element is not exist."),!1;for(var n=e.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===t)return!0;return!1},exports.inRate=function(e){return O(e)},exports.invokeEvent=function(e){B(e)},exports.invokeFn=v,exports.isHit=O,exports.isJSONString=c,exports.isJsonString=function(e){return c(e)},exports.isNonEmptyArray=h,exports.isNonEmptyObject=function(e){return!!w(e)&&0!==Object.keys(e).length},exports.isNumber=g,exports.isPureObject=w,exports.isSafePWAEnv=function(){if(H)return"pwa"===H;var e=Z();return"serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches)&&!e.shell?(H="pwa",!0):(H="no-pwa",!1)},exports.isSupportWebp=function(){return V?Promise.resolve("webp"===V):new Promise((function(e){var t=new Image;t.onload=function(){var n=t.width>0&&t.height>0;V=n?"webp":"no-webp",e(n)},t.onerror=function(){V="no-webp",e(!1)},t.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},exports.isSupportedEntryType=D,exports.isValidData=function(e,t,n){var r=!1;return"object"!=typeof e||t.reduce((function(e,t){return void 0===e[t]?Object.create(null):e=e[t]}),e)===n&&(r=!0),r},exports.isValidEmail=function(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},exports.isValidHttpUrl=P,exports.isValidPhoneNumber=function(e){return/^1\d{10}$/.test(e)},exports.isValidUrl=function(e){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)$/.test(e)},exports.loadCSS=function(e,t){void 0===t&&(t={id:""});var n,r=t.id,o=function(){},i=new Promise((function(e,t){var r;n=(r=[e,t])[0],o=r[1]})),a=function(){n("loaded")},s=document.createElement("link");s||o(new Error("Not support create link element"));var c="onload"in s,u=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(s.rel="stylesheet",s.type="text/css",s.href=e,void 0!==r&&(s.id=r),document.getElementsByTagName("head")[0].appendChild(s),u||!c)return setTimeout((function(){f(s,a,0)}),1),i;function d(){s&&(s.onload=s.onerror=s.onreadystatechange=null),s=null,a()}function f(e,t,n){if(e){var r,o=e.sheet;if((n+=1)>3e5)return r=!0,e&&(e=null),void t();if(u)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){var i=e;if(!i.name)return;"NS_ERROR_DOM_SECURITY_ERR"===i.name&&(r=!0)}setTimeout((function(){r?t():f(e,t,n)}),20)}}return c?(s.onload=d,s.onerror=function(){d()}):s.onreadystatechange=function(){s&&/loaded|complete/.test(s.readyState)&&d()},i},exports.loadImage=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=function(e){n(e)},r.src=e}))},exports.loadScript=U,exports.loadScriptIfUndefined=function(e,t){return window[e]?Promise.resolve("defined"):U(t)},exports.longestComSubsequence=C,exports.longestComSubstring=A,exports.mNow=l,exports.mTrim=function(e){for(var t=(e=e.replace(/^\s+/,"")).length-1,n=/\s/;n.test(e.charAt(t));)t--;return e.slice(0,t+1)},exports.mazeyCon=_,exports.newLine=function(e){return y(e)},exports.removeClass=function(e,t){var n;e?(n=(n=(n=(n=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+t+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=n):_.error("The element is not exist.")},exports.removeCookie=I,exports.removeEvent=function(e,t){var n=L(),r=n[e];if("string"==typeof e&&r instanceof Array)if("function"==typeof t){for(var o=0,i=r.length;o<i;o++)if(r[o]===t){n[e].splice(o,1);break}}else delete n[e]},exports.removeHTML=x,exports.removeHtml=function(e,t){return void 0===t&&(t={}),x(e,t)},exports.repeatUntilConditionMet=function(e,r,o){var i=this;void 0===r&&(r={}),void 0===o&&(o=function(e){return!0===e});var a=r.interval,s=void 0===a?1e3:a,c=r.times,u=void 0===c?10:c,d=r.context,f=r.args,l=0;"function"!=typeof e&&console.error("Expected a function."),("number"!=typeof s||s<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof u||u<0)&&console.error("Expected a non-negative number for times."),function r(){setTimeout((function(){return t(i,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,e.apply(d,f)];case 1:return t=n.sent(),o(t)||++l>=u?[2]:(r(),[2])}}))}))}),s)}()},exports.replaceHttp=function(e){return M(e)},exports.sanitizeInput=function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/[&<>"'/]/g,(function(e){return t[e]}))},exports.setClass=function(e,t){R(e,t)},exports.setCookie=function(e,t,n,r){var o,i;if(n){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var s=location.host;1===s.split(".").length?document.cookie=e+"="+t+i+"; path=/":((o=s.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+t+i+"; path=/; domain="+r,null!==F(e)&&F(e)===t||(r=r||"."+s,document.cookie=e+"="+t+i+"; path=/; domain="+r))},exports.setImgSizeBySrc=j,exports.setImgWidHeiBySrc=function(){return j()},exports.setLocalStorage=function(e,t){void 0===t&&(t=null),e&&localStorage.setItem(e,JSON.stringify(t))},exports.setSessionStorage=function(e,t){void 0===t&&(t=null),e&&sessionStorage.setItem(e,JSON.stringify(t))},exports.sleep=function(e){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,T(e)]}))}))},exports.throttle=function(e,t,n){void 0===n&&(n={}),n=Object.assign({},n);var r=null,o=null,i=null,a=[null,0],s=a[0],c=a[1],u=function(){c=!1===n.leading?0:l(),i=null,s=e.apply(this,o),i||(r=o=null)};return function(){for(var a=[],d=0;d<arguments.length;d++)a[d]=arguments[d];var f=l();c||!1!==n.leading||(c=f);var p=t-(f-c);return r=this,o=a,p<=0||p>t?(i&&(clearTimeout(i),i=null),c=f,s=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(u.bind(r),p)),s}},exports.truncateZHString=E,exports.unsanitize=function(e){return b(e)},exports.unsanitizeInput=b,exports.updateQueryParam=function(e,t,n){if(e.includes("#")){var r=new URL(e);return r.searchParams.set(t,n),r.toString()}var o=new RegExp("([?&])"+t+"=.*?(&|$)","i"),i=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+t+"="+n+"$2"):e+i+t+"="+n},exports.waitTime=T,exports.windowLoaded=function(e){void 0===e&&(e=90);var t,n=function(){},r=new Promise((function(e,r){n=e,t=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return t(Error("timeout"))}),1e3*e),r},exports.zAxiosIsValidRes=function(e,t){void 0===t&&(t={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},t),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i};
6
+ "use strict";var e=function(){return e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};function t(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function n(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function r(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function o(t){if("object"!=typeof t)return t;var n=["string","number","boolean","undefined"];return Object.values(t).every((function(e){return n.includes(typeof e)}))?e({},t):JSON.parse(JSON.stringify(t))}function i(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substring(1):t}function a(e){var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substring(1):t}function s(e){return a(e)}function c(e){try{if("object"==typeof JSON.parse(e))return!0}catch(e){}return!1}function u(e){void 0===e&&(e=5);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function d(e){return void 0===e&&(e=5),u(e)}function f(e){void 0===e&&(e=3);var t=[l(),d(e||3)];return t[0]+t[1]}function l(){return Date.now?Date.now():(new Date).getTime()}"function"==typeof SuppressedError&&SuppressedError;var p={type:"d"};function g(e,t){void 0===t&&(t={});var n=t.isNaNAsNumber,r=void 0!==n&&n,o=t.isInfinityAsNumber,i=void 0!==o&&o,a=t.isUnFiniteAsNumber;return"number"==typeof e&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(e))&&!(!r&&isNaN(e)))}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,t)),r}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return v.apply(void 0,r([e],t,!1))}function h(e){var t=!1;return Array.isArray(e)&&e.length&&(t=!0),t}function w(e){var t=Boolean(e),n="object"==typeof e,r="[object Object]"===Object.prototype.toString.call(e);return t&&n&&r}function y(e){if(!e)return"";var t=new RegExp("\\n","g");return e.replace(t,"<br />")}function x(e,t){void 0===t&&(t={});var n=t.removeNewLine,r=void 0!==n&&n,o="";return e&&(o=e.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o}function b(e){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x2F;":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/(&amp;|&lt;|&gt;|&quot;|&#x27;|&#x2F;)/g,(function(e){return t[e]}))}function S(e,t,n){if(void 0===n&&(n={hasDot:!1,dotText:"..."}),n=Object.assign({hasDot:!1,dotText:"..."},n),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",s=e.replace(i,"**").length,c=0;c<s&&(null!=(a=e.charAt(c).toString()).match(i)?r+=2:r++,!(r>t));c++)o+=a;return n.hasDot&&s>t&&(o+=n.dotText),o}return""}function E(e,t,n){return void 0===n&&(n=!1),S(e,t,{hasDot:n})}function T(e){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,new Promise((function(t){setTimeout((function(){t(e)}),e)}))]}))}))}var A="";function C(e,t){for(var n=e.length,r=t.length,i=o(new Array(n).fill(new Array(r).fill(0))),a=0;a<n;++a)for(var s=0;s<r;++s)if(e[a]===t[s]){var c=0;a>0&&s>0&&(c=i[a-1][s-1]),i[a][s]=c+1}var u=Array.prototype.concat.apply([],i);return Math.max.apply(Math,u)}function O(e,t){for(var n=e.length,r=t.length,i=o(new Array(n).fill(new Array(r).fill(0))),a=0;a<n;++a)for(var s=0;s<r;++s)if(e[a]===t[s]){var c=0;a>0&&s>0&&(c=i[a-1][s-1]),i[a][s]=c+1}else{var u=[0,0],d=u[0],f=u[1];s>0&&(d=i[a][s-1]),a>0&&(f=i[a-1][s]),i[a][s]=Math.max(d,f)}var l=Array.prototype.concat.apply([],i);return Math.max.apply(Math,l)}function P(e){return Math.random()<e}function M(e,t){void 0===t&&(t={strict:!0});var n=/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/;return t.strict||(n=/^(https?:)?\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/),n.test(e)}function k(e){return e.replace(/^http:/,"https:")}function N(e){void 0===e&&(e="");var t=window.URL;if(!t)return!1;if(!t.canParse)return!1;if("function"!=typeof t.canParse)return!1;try{var n=new t("b","http://a");return n.pathname="c d","http://a/c%20d"===n.href&&Boolean(n.searchParams)&&t.canParse(e)}catch(e){return!1}}function _(e,t){void 0===e&&(e=""),void 0===t&&(t={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var n=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},t),o=n.isClosed,i=n.showWrap,a=n.showDate,s=n.locales,c=n.logFn,u=n.errorFn,d=Object.create(null),f=function(){return(new Date).toLocaleDateString(s,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(t){d[t]=function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];if(o)return!1;var d=e,l=e;if("string"==typeof e&&e.length>=2){var p=e.length;d=":"===e[p-1]?e.substring(0,p-1):e}i&&console.log("--- ".concat(d," - begin ---")),a&&(l=e?"".concat(f()," ").concat(e):"".concat(f())),e||a?console[t].apply(console,r([l],n,!1)):console[t].apply(console,n),"log"===t&&c(),"error"===t&&u(),i&&console.log("--- ".concat(d," - end ---"))}})),d}var R=_("[Mazey]");function j(e,t){if(e)if(Array.isArray(t))t.forEach((function(t){e.classList.add(t)}));else{for(var n=e.className,r=n.split(/\s+/),o=0;o<r.length;o++)if(r[o]===t)return;var i,a="";""!==n&&(a=" "),i=n+a+t,e.className=i}else R.error("The element is not exist.")}function B(){var e,t=window.jQuery||window.$;return t?!(!(e=t("img"))||!e.length)&&(e.each((function(){var e=t(this);if(e){var n=e.attr("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&h(r)&&r[1]&&e.width(r[1]),o&&h(o)&&o[1]&&e.height(o[1])}}})),!0):(e=document.getElementsByTagName("img")).length>0&&(Array.from(e).forEach((function(e){var t=e;if(t){var n=t.getAttribute("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&h(r)&&r[1]&&(t.style.width=r[1]),o&&h(o)&&o[1]&&(t.style.height=o[1])}}})),!0)}function L(){var e=window.MAZEY_DEFINE_LISTENERS;return"object"!=typeof e&&(e={},window.MAZEY_DEFINE_LISTENERS=e),e}function F(t,n){void 0===n&&(n={});var r=L()[t];if(r instanceof Array)for(var o=0,i=r.length;o<i;o++)"function"==typeof r[o]&&r[o](e(e({},n),{type:t}))}function I(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}function U(e){for(var t=document.cookie.split(";"),n=0;n<t.length;n++){var r=t[n].trim();if(r.startsWith("".concat(e,"="))){var o=r.split("=")[0],i=new Date;return i.setTime(i.getTime()-1),document.cookie="".concat(o,"=;expires=").concat(i.toUTCString()),!0}}return!1}function D(e,t){void 0===t&&(t={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n,r,o=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},t),i=o.id,a=o.callback,s=o.timeout,c=o.isDefer,u=document.createElement("script");u||Promise.reject("Not support create script element");var d=document.getElementsByTagName("script")[0];return u.type="text/javascript",c&&(u.defer=!0),i&&(u.id=i),u.readyState?u.onreadystatechange=function(){"loaded"!==u.readyState&&"complete"!==u.readyState||(u.onreadystatechange=null,m(a),m(n,"loaded"))}:u.onload=function(){m(a),m(n,"loaded")},u.src=e,d&&d.parentNode.insertBefore(u,d),new Promise((function(e,t){var o;n=(o=[e,t])[0],r=o[1],s&&setTimeout(r.bind(null,"timeout"),s)}))}function z(e){var t=[],n=window.PerformanceObserver;return!!n&&(h(n.supportedEntryTypes)&&(t=n.supportedEntryTypes),t.includes(e))}function q(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return z("paint")?[2,new Promise((function(e){var t=new PerformanceObserver((function(n){var r=n.getEntries().find((function(e){return"first-contentful-paint"===e.name}));r&&(t.disconnect(),e(Math.round(r.startTime)))}));t.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function H(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return z("paint")?[2,new Promise((function(e){var t=new PerformanceObserver((function(n){var r=n.getEntries().find((function(e){return"first-paint"===e.name}));r&&(t.disconnect(),e(Math.round(r.startTime)))}));t.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}var Z="";function V(){if(window.MAZEY_BROWSER_INFO&&"object"==typeof window.MAZEY_BROWSER_INFO)return window.MAZEY_BROWSER_INFO;var t={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:"",shell:"",shellVs:"",appleType:""};try{var n=navigator.userAgent.toLowerCase();if(!n)return t;var r=function(e){return e.test(n)},o=function(e){var t="",r=n.match(e);return r&&h(r)&&(t=(t=(t=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),t},i="",a="";r(/windows|win32|win64|wow32|wow64/g)?i="windows":r(/macintosh|macintel/g)?i="macos":r(/x11/g)?i="linux":r(/android|adr/g)?i="android":r(/ios|iphone|ipad|ipod|iwatch/g)&&(i="ios",r(/ipad/g)?a="ipad":r(/iphone/g)?a="iphone":r(/iwatch/g)?a="iwatch":r(/ipod/g)&&(a="ipod")),t=e(e({},t),{system:i,appleType:a});var s="";"windows"===i?r(/windows nt 5.0|windows 2000/g)?s="2000":r(/windows nt 5.1|windows xp/g)?s="xp":r(/windows nt 5.2|windows 2003/g)?s="2003":r(/windows nt 6.0|windows vista/g)?s="vista":r(/windows nt 6.1|windows 7/g)?s="7":r(/windows nt 6.2|windows 8/g)?s="8":r(/windows nt 6.3|windows 8.1/g)?s="8.1":r(/windows nt 10.0|windows 10/g)&&(s="10"):"macos"===i?s=o(/os x [\d._]+/g):"android"===i?s=o(/android [\d._]+/g):"ios"===i&&(s=o(/os [\d._]+/g)),t=e(e({},t),{systemVs:s});var c="";"windows"===i||"macos"===i||"linux"===i?c="desktop":("android"===i||"ios"===i||r(/mobile/g))&&(c="mobile"),t=e(e({},t),{platform:c});var u="",d="";r(/applewebkit/g)?(u="webkit",r(/edge/g)?d="edge":r(/opr/g)?d="opera":r(/chrome/g)?d="chrome":r(/safari/g)&&(d="safari")):r(/gecko/g)&&r(/firefox/g)?(u="gecko",d="firefox"):r(/presto/g)?(u="presto",d="opera"):r(/trident|compatible|msie/g)&&(u="trident",d="iexplore"),t=e(e({},t),{engine:u,supporter:d});var f="";"webkit"===u?f=o(/applewebkit\/[\d._]+/g):"gecko"===u?f=o(/gecko\/[\d._]+/g):"presto"===u?f=o(/presto\/[\d._]+/g):"trident"===u&&(f=o(/trident\/[\d._]+/g)),t=e(e({},t),{engineVs:f});var l="";"chrome"===d?l=o(/chrome\/[\d._]+/g):"safari"===d?l=o(/version\/[\d._]+/g):"firefox"===d?l=o(/firefox\/[\d._]+/g):"opera"===d?l=o(/opr\/[\d._]+/g):"iexplore"===d?l=o(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===d&&(l=o(/edge\/[\d._]+/g)),t=e(e({},t),{supporterVs:l});var p="",g="";return r(/micromessenger/g)?(p="wechat",g=o(/micromessenger\/[\d._]+/g)):r(/qqbrowser/g)?(p="qq_browser",g=o(/qqbrowser\/[\d._]+/g)):r(/\sqq/g)?p="qq_app":r(/ucbrowser/g)?(p="uc",g=o(/ucbrowser\/[\d._]+/g)):r(/qihu 360se/g)?p="360":r(/2345explorer/g)?(p="2345",g=o(/2345explorer\/[\d._]+/g)):r(/metasr/g)?p="sougou":r(/lbbrowser/g)?p="liebao":r(/maxthon/g)?(p="maxthon",g=o(/maxthon\/[\d._]+/g)):r(/biliapp/g)&&(p="bilibili"),t=e(e({},t),{shell:p,shellVs:g}),window.MAZEY_BROWSER_INFO=t,t}catch(e){return R.warn(e),t}}var W="";exports.addClass=j,exports.addEvent=function(e,t){var n=L();void 0===n[e]&&(n[e]=[]),"function"==typeof t&&n[e].push(t)},exports.addStyle=function(e,t){if(void 0===t&&(t={id:""}),!e)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return t.id?(o="".concat(t.id),(r=document.getElementById(o))?r.innerHTML=e:(i.setAttribute("id",t.id),i.innerHTML=e,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=e,n.appendChild(i),document.head.appendChild(n)),!0},exports.calLongestCommonSubsequence=function(e,t){return O(e,t)},exports.calLongestCommonSubstring=function(e,t){return C(e,t)},exports.camelCase2Underscore=s,exports.camelCaseToKebabCase=function(e){return i(e)},exports.cancelBubble=function(e){var t=e||window.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},exports.clearHTML=function(e,t){return void 0===t&&(t={}),x(e,t)},exports.clearHtml=function(e,t){return void 0===t&&(t={}),x(e,t)},exports.convert10To26=function(e){for(var t="";e>0;){var n=e%26;0===n&&(n=26),t=String.fromCharCode(n+96)+t,e=(e-n)/26}return t},exports.convertCamelToKebab=i,exports.convertCamelToUnder=a,exports.convertHttpToHttps=k,exports.convertKebabToCamel=function(e){var t=e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}));return t.endsWith("-")?t.slice(0,-1):t},exports.convertObjectToQuery=function(e){if(e&&0===Object.keys(e).length)return"";var t="?";for(var n in e)t+="".concat(n,"=").concat(e[n],"&");return t.slice(0,-1)},exports.convertToHtmlBreaks=y,exports.cutCHSString=function(e,t,n){return void 0===n&&(n=!1),E(e,t,n)},exports.cutZHString=S,exports.debounce=function(e,t,n){var r=null,o=null,i=null,a=null,s=null,c=function c(){var u=l()-i;u<t&&u>=0?o=setTimeout(c,t-u):(o=null,n||(s=e.apply(r,a),o||(r=a=null)))};return function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];r=this,a=u,i=l();var f=n&&!o;return o||(o=setTimeout(c,t)),f&&(s=e.apply(r,a),r=a=null),s}},exports.deepCopy=o,exports.deepCopyObject=function(e){return o(e)},exports.delCookie=function(e){U(e)},exports.doFn=m,exports.fireEvent=F,exports.floatFixed=function(e,t){return void 0===t&&(t=0),parseFloat(e).toFixed(t)},exports.floatToPercent=function(e,t){void 0===t&&(t=0);var n="";return n=t?(100*e).toFixed(t):String(Math.floor(100*e)),"".concat(n,"%")},exports.formatDate=function(e,t){void 0===t&&(t="yyyy-MM-dd"),e||(e=new Date);var n=new Date(e),r=n.getHours(),o={yyyy:n.getFullYear(),MM:n.getMonth()+1,dd:n.getDate()<10?"0"+n.getDate():n.getDate(),HH:r<10?"0"+r:r,hh:(r%12||12)<10?"0"+(r%12||12):r%12||12,mm:n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),ss:n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds(),a:r<12?"AM":"PM"},i=t||"yyyy-MM-dd";return Object.keys(o).forEach((function(e){var t=o[e];"MM"===e&&Number(t)<=9&&(t="0".concat(t)),i=i.replace(e,String(t))})),i},exports.genBrowserAttrs=function(e,t){void 0===e&&(e=""),void 0===t&&(t="-");var n=V(),r=[];return["system","platform","engine","supporter","shell","appleType"].forEach((function(o){var i=n[o];if(i){var a="";e&&e.length>0&&(a="".concat(e).concat(t)),r.push("".concat(a).concat(i))}})),r},exports.genCustomConsole=_,exports.genHashCode=function(e){var t,n=0;for(t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return n},exports.genRndNumString=u,exports.genStyleString=function(e,t){var n="";return t&&t.length>0&&(n=t.join(";")+";"),"".concat(e,"{").concat(n,"}")},exports.genUniqueNumString=f,exports.generateRndNum=d,exports.generateUniqueNum=function(e){return void 0===e&&(e=3),f(e)},exports.getAllQueryParams=function(e){void 0===e&&(e=""),""===e&&(e=location.search);var t={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,n,r){return void 0===t[n]&&(t[n]=decodeURIComponent(r)),""})),t},exports.getBrowserInfo=V,exports.getCLS=function(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return z("layout-shift")?[2,new Promise((function(e){var t=new PerformanceObserver((function(n){var r=n.getEntries().reduce((function(e,t){var n=0;return g(t.value)&&(n=t.value),e+n}),0);t.disconnect(),e(r)}));t.observe({type:"layout-shift",buffered:!0})}))]:[2,0]}))}))},exports.getCookie=I,exports.getCurrentVersion=function(){return"v4"},exports.getDefineListeners=L,exports.getDomain=function(e,t){if(void 0===t&&(t=["hostname"]),N(e)){var n=new window.URL(e);return t.reduce((function(e,t){return e+=n[t]}),"")}var r=document.createElement("a");return r.href=e,t.reduce((function(e,t){return e+=r[t]}),"")},exports.getFCP=q,exports.getFID=function(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return z("first-input")?[2,new Promise((function(e){var t=new PerformanceObserver((function(n){var r=n.getEntries().find((function(e){return"first-input"===e.entryType}));if(r){t.disconnect();var o=r.processingStart;e(o?Math.round(r.processingStart-r.startTime):0)}}));t.observe({type:"first-input",buffered:!0})}))]:[2,0]}))}))},exports.getFP=H,exports.getFileSize=function(e){var t=function(e){return String(Math.ceil(e))};if(!e||e<0)return"";var n=1024;return e<n?e+" B":e<Math.pow(n,2)?t(e/n)+" KB":e<Math.pow(n,3)?t(e/Math.pow(n,2))+" MB":e<Math.pow(n,4)?t(e/Math.pow(n,3))+" G":t(e/Math.pow(n,4))+" T"},exports.getFriendlyInterval=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=p);var r=(n=Object.assign(p,n)).type;g(e)||(e=new Date(e).getTime()),g(t)||(t=new Date(t).getTime());var o=Number(t)-Number(e),i="",a=new Array(4).fill(0),s=a[0],c=(a[1],a[2],a[3]),u=decodeURIComponent("%20%E5%A4%A9%20"),d=decodeURIComponent("%20%E6%97%B6%20"),f=decodeURIComponent("%20%E5%88%86%20"),l=decodeURIComponent("%20%E7%A7%92");if(o>=0)switch(s=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),c=Math.floor(o/1e3),r){case"d":i=s;break;case"text":i=(s=Math.floor(o/1e3/60/60/24))+u+Math.floor(o/1e3/60/60%24)+d+Math.floor(o/1e3/60%60)+f+(c=Math.floor(o/1e3%60))+l;break;default:i=c}return i},exports.getHashQueryParam=function(e){var t=location.hash.split("?");if(1===t.length)return"";var n=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),r=t[1].match(n);return r?r[2]:""},exports.getLCP=function(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return z("largest-contentful-paint")?[2,new Promise((function(e){var t=new PerformanceObserver((function(n){var r=n.getEntries().find((function(e){return"largest-contentful-paint"===e.entryType}));r&&(t.disconnect(),e(Math.round(r.startTime)))}));t.observe({type:"largest-contentful-paint",buffered:!0})}))]:[2,0]}))}))},exports.getLocalStorage=function(e){var t=null;if(e){var n=localStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getPageMeta=function(e){var t;return document.querySelector&&(null===(t=document.querySelector('meta[name="'.concat(e,'"]')))||void 0===t?void 0:t.getAttribute("content"))||""},exports.getPerformance=function(e){return void 0===e&&(e=!1),t(this,void 0,void 0,(function(){function t(){var t={source:I,os:r(),osVersion:o(),deviceType:i(),network:a(),screenDirection:c(),unloadTime:w-y,redirectTime:x-b,dnsTime:S-E,tcpTime:T-A,sslTime:u(T,C),responseTime:O-P,downloadTime:M-O,firstPaintTime:Z,firstContentfulPaintTime:V,domReadyTime:k-U,onloadTime:N-U,whiteTime:O-U,renderTime:_-U,decodedBodySize:B,encodedBodySize:L};Object.keys(t).forEach((function(e){g(t[e])&&(t[e]<0?t[e]=0:t[e]=Math.round(t[e]))})),g(t.whiteTime)&&t.whiteTime>t.onloadTime&&(t.whiteTime=0);var n={};e||Object.keys(t).forEach((function(e){n[s(e)]=t[e]})),Object.keys(n).length?f(n):f(t)}function r(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function o(){var e="",t=navigator.userAgent,n=t.indexOf("Android")>-1||t.indexOf("Linux")>-1,r=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return e;var i=o[1];return i?(n&&(e=(i.match(/\d+\.\d+/g)||[])[0]),r&&(e=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e||(e=""),e):e}function i(){var e,t=navigator.userAgent.toLowerCase(),n=t.match(/(ipad)/i)&&"ipad",r=t.match(/iphone os/i)&&"iphone os",o=t.match(/midp/i)&&"midp",i=t.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=t.match(/ucweb/i)&&"ucweb",s=t.match(/android/i)&&"android",c=t.match(/windows ce/i)&&"windows ce",u=t.match(/windows mobile/i)&&"windows mobile";return(e=n||r||o||i||a||s||c||u?r||o||i||a||s||c||u?"phone":n?"ipad":void 0:"pc")||(e=""),e}function a(){var e="",t=window.navigator;if(t.connection&&t.connection.effectiveType)switch(t.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e||(e=""),e}function c(){var e="";return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function u(e,t){var n=0;return t&&(n=e-t),n}var d,f,l,p,v,m,w,y,x,b,S,E,T,A,C,O,P,M,k,N,_,R,j,B,L,F,I,U,D,Z,V;return n(this,(function(e){switch(e.label){case 0:if(!z("navigation"))return[2,Promise.reject(new Error("navigation is not supported"))];if(!(d=window.performance)||"function"!=typeof d.getEntries||"function"!=typeof d.getEntriesByType)return[2,Promise.reject(new Error("performance is not supported"))];if(l=new Promise((function(e){f=[e][0]})),p=null,h(v=d.getEntriesByType("navigation"))&&(p=v[0]),m=new Array(19).fill(0),w=m[0],y=m[1],x=m[2],b=m[3],S=m[4],E=m[5],T=m[6],A=m[7],C=m[8],O=m[9],P=m[10],M=m[11],k=m[12],N=m[13],_=m[14],R=m[15],j=m[16],B=m[17],L=m[18],F=d.timing,I="",p)I="PerformanceNavigationTiming",B=p.decodedBodySize,L=p.encodedBodySize,w=p.unloadEventEnd,y=p.unloadEventStart,x=p.redirectEnd,b=p.redirectStart,S=p.domainLookupEnd,E=p.domainLookupStart,T=p.connectEnd,A=p.connectStart,C=p.secureConnectionStart,O=p.responseStart,P=p.requestStart,M=p.responseEnd,k=p.domContentLoadedEventStart,N=p.loadEventStart,_=p.loadEventEnd,R=p.startTime,j=p.fetchStart;else{if(!F)return[2,Promise.reject(new Error("NavigationTiming and Timing are not supported"))];I="PerformanceTiming",w=F.unloadEventEnd,y=F.unloadEventStart,x=F.redirectEnd,b=F.redirectStart,S=F.domainLookupEnd,E=F.domainLookupStart,T=F.connectEnd,A=F.connectStart,C=F.secureConnectionStart,O=F.responseStart,P=F.requestStart,M=F.responseEnd,k=F.domContentLoadedEventStart,N=F.loadEventStart,_=F.loadEventEnd,R=F.navigationStart,j=F.fetchStart}if(U=0,g(R))U=R;else{if(!g(j))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];U=j}return[4,Promise.all([H(),q()])];case 1:return D=e.sent(),Z=D[0],V=D[1],g(_)&&_>0?t():window.addEventListener("load",(function(){window.setTimeout((function(){t()}),0)})),[2,l]}}))}))},exports.getQueryParam=function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=location.search.substring(1).match(t);return null!==n?decodeURIComponent(n[2]):""},exports.getScriptQueryParam=function(e,t){void 0===t&&(t=""),t||(t=".js");for(var n=new RegExp("[?&]".concat(e,"=([^&]*)")),r=document.querySelectorAll('script[src*="'.concat(t,'"]')),o=0;o<r.length;o++){var i=r[o].getAttribute("src");if(i&&-1!==i.indexOf(t)){var a=i.match(n);if(a)return decodeURIComponent(a[1])}}return""},exports.getSessionStorage=function(e){var t=null;if(e){var n=sessionStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getTTFB=function(){return t(this,void 0,void 0,(function(){var e,t;return n(this,(function(n){return z("navigation")&&window.performance&&window.performance.getEntriesByType?(e=performance.getEntriesByType("navigation")[0],0,e?(t=e.responseStart-e.requestStart,[2,Math.round(t)]):[2,0]):[2,0]}))}))},exports.getUrlFileType=function(e){var t="";if("string"!=typeof e||""==e)return t;var n=/\.[^/?#]+$/.exec(e);return n?(n[0].length>1&&(t=n[0].substring(1)),t):t},exports.getUrlHost=function(e){var t="";return!M(e)&&M(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),N(e)&&(t=new URL(e).host),t},exports.getUrlParam=function(e,t,n){void 0===n&&(n={});var r=null;if(e.includes("#")){r=new URL(e).searchParams.getAll(t)}else{var o={};e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,n){return void 0!==o[t]?o[t].push(n):o[t]=[n],""})),r=o[t]||[]}return n.returnArray?r:r.length?r[0]:null},exports.getUrlPath=function(e){var t="";return!M(e)&&M(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),N(e)&&(t=new URL(e).pathname),t},exports.hasClass=function(e,t){if(!e)return R.error("The element is not exist."),!1;for(var n=e.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===t)return!0;return!1},exports.inRate=function(e){return P(e)},exports.invokeEvent=function(e){F(e)},exports.invokeFn=v,exports.isBrowser=function(){if(A)return"browser"===A;var e="undefined"!=typeof window;return e&&(A="browser"),e},exports.isHit=P,exports.isJSONString=c,exports.isJsonString=function(e){return c(e)},exports.isNonEmptyArray=h,exports.isNonEmptyObject=function(e){return!!w(e)&&0!==Object.keys(e).length},exports.isNumber=g,exports.isPureObject=w,exports.isSafePWAEnv=function(){if(Z)return"pwa"===Z;var e=V();return"serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches)&&!e.shell?(Z="pwa",!0):(Z="no-pwa",!1)},exports.isSupportWebp=function(){return W?Promise.resolve("webp"===W):new Promise((function(e){var t=new Image;t.onload=function(){var n=t.width>0&&t.height>0;W=n?"webp":"no-webp",e(n)},t.onerror=function(){W="no-webp",e(!1)},t.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},exports.isSupportedEntryType=z,exports.isValidData=function(e,t,n){var r=!1;return"object"!=typeof e||t.reduce((function(e,t){return void 0===e[t]?Object.create(null):e=e[t]}),e)===n&&(r=!0),r},exports.isValidEmail=function(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},exports.isValidHttpUrl=M,exports.isValidPhoneNumber=function(e){return/^1\d{10}$/.test(e)},exports.isValidUrl=function(e){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)$/.test(e)},exports.loadCSS=function(e,t){void 0===t&&(t={id:""});var n,r=t.id,o=function(){},i=new Promise((function(e,t){var r;n=(r=[e,t])[0],o=r[1]})),a=function(){n("loaded")},s=document.createElement("link");s||o(new Error("Not support create link element"));var c="onload"in s,u=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(s.rel="stylesheet",s.type="text/css",s.href=e,void 0!==r&&(s.id=r),document.getElementsByTagName("head")[0].appendChild(s),u||!c)return setTimeout((function(){f(s,a,0)}),1),i;function d(){s&&(s.onload=s.onerror=s.onreadystatechange=null),s=null,a()}function f(e,t,n){if(e){var r,o=e.sheet;if((n+=1)>3e5)return r=!0,e&&(e=null),void t();if(u)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){var i=e;if(!i.name)return;"NS_ERROR_DOM_SECURITY_ERR"===i.name&&(r=!0)}setTimeout((function(){r?t():f(e,t,n)}),20)}}return c?(s.onload=d,s.onerror=function(){d()}):s.onreadystatechange=function(){s&&/loaded|complete/.test(s.readyState)&&d()},i},exports.loadImage=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=function(e){n(e)},r.src=e}))},exports.loadScript=D,exports.loadScriptIfUndefined=function(e,t){return window[e]?Promise.resolve("defined"):D(t)},exports.longestComSubsequence=O,exports.longestComSubstring=C,exports.mNow=l,exports.mTrim=function(e){for(var t=(e=e.replace(/^\s+/,"")).length-1,n=/\s/;n.test(e.charAt(t));)t--;return e.slice(0,t+1)},exports.mazeyCon=R,exports.newLine=function(e){return y(e)},exports.removeClass=function(e,t){var n;e?(n=(n=(n=(n=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+t+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=n):R.error("The element is not exist.")},exports.removeCookie=U,exports.removeEvent=function(e,t){var n=L(),r=n[e];if("string"==typeof e&&r instanceof Array)if("function"==typeof t){for(var o=0,i=r.length;o<i;o++)if(r[o]===t){n[e].splice(o,1);break}}else delete n[e]},exports.removeHTML=x,exports.removeHtml=function(e,t){return void 0===t&&(t={}),x(e,t)},exports.repeatUntilConditionMet=function(e,r,o){var i=this;void 0===r&&(r={}),void 0===o&&(o=function(e){return!0===e});var a=r.interval,s=void 0===a?1e3:a,c=r.times,u=void 0===c?10:c,d=r.context,f=r.args,l=0;"function"!=typeof e&&console.error("Expected a function."),("number"!=typeof s||s<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof u||u<0)&&console.error("Expected a non-negative number for times."),function r(){setTimeout((function(){return t(i,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,e.apply(d,f)];case 1:return t=n.sent(),o(t)||++l>=u?[2]:(r(),[2])}}))}))}),s)}()},exports.replaceHttp=function(e){return k(e)},exports.sanitizeInput=function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/[&<>"'/]/g,(function(e){return t[e]}))},exports.setClass=function(e,t){j(e,t)},exports.setCookie=function(e,t,n,r){var o,i;if(n){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var s=location.host;1===s.split(".").length?document.cookie=e+"="+t+i+"; path=/":((o=s.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+t+i+"; path=/; domain="+r,null!==I(e)&&I(e)===t||(r=r||"."+s,document.cookie=e+"="+t+i+"; path=/; domain="+r))},exports.setImgSizeBySrc=B,exports.setImgWidHeiBySrc=function(){return B()},exports.setLocalStorage=function(e,t){void 0===t&&(t=null),e&&localStorage.setItem(e,JSON.stringify(t))},exports.setSessionStorage=function(e,t){void 0===t&&(t=null),e&&sessionStorage.setItem(e,JSON.stringify(t))},exports.sleep=function(e){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,T(e)]}))}))},exports.throttle=function(e,t,n){void 0===n&&(n={}),n=Object.assign({},n);var r=null,o=null,i=null,a=[null,0],s=a[0],c=a[1],u=function(){c=!1===n.leading?0:l(),i=null,s=e.apply(this,o),i||(r=o=null)};return function(){for(var a=[],d=0;d<arguments.length;d++)a[d]=arguments[d];var f=l();c||!1!==n.leading||(c=f);var p=t-(f-c);return r=this,o=a,p<=0||p>t?(i&&(clearTimeout(i),i=null),c=f,s=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(u.bind(r),p)),s}},exports.truncateZHString=E,exports.unsanitize=function(e){return b(e)},exports.unsanitizeInput=b,exports.updateQueryParam=function(e,t,n){if(e.includes("#")){var r=new URL(e);return r.searchParams.set(t,n),r.toString()}var o=new RegExp("([?&])"+t+"=.*?(&|$)","i"),i=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+t+"="+n+"$2"):e+i+t+"="+n},exports.waitTime=T,exports.windowLoaded=function(e){void 0===e&&(e=90);var t,n=function(){},r=new Promise((function(e,r){n=e,t=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return t(Error("timeout"))}),1e3*e),r},exports.zAxiosIsValidRes=function(e,t){void 0===t&&(t={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},t),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i};
package/lib/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Mazey v4.7.2 https://github.com/mazeyqian/mazey
2
+ * Mazey v4.7.3 https://github.com/mazeyqian/mazey
3
3
  * (c) 2018-2024 Cheng
4
4
  * Released under the MIT License.
5
5
  */
6
- var e=function(){return e=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},e.apply(this,arguments)};function n(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,c)}u((r=r.apply(e,n||[])).next())}))}function t(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(t=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=n.call(e,a)}catch(e){c=[6,e],r=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}function r(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}function o(n){if("object"!=typeof n)return n;var t=["string","number","boolean","undefined"];return Object.values(n).every((function(e){return t.includes(typeof e)}))?e({},n):JSON.parse(JSON.stringify(n))}function i(e){return o(e)}function a(e){var n=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===n[0]?n.substring(1):n}function c(e){var n=e.replace(/-([a-z])/g,(function(e,n){return n.toUpperCase()}));return n.endsWith("-")?n.slice(0,-1):n}function u(e){return a(e)}function s(e){var n=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===n[0]?n.substring(1):n}function f(e){return s(e)}function d(e){for(var n=(e=e.replace(/^\s+/,"")).length-1,t=/\s/;t.test(e.charAt(n));)n--;return e.slice(0,n+1)}function l(e){try{if("object"==typeof JSON.parse(e))return!0}catch(e){}return!1}function p(e){return l(e)}function v(e){void 0===e&&(e=5);for(var n="";e--;)n+=Math.floor(10*Math.random());return n}function g(e){return void 0===e&&(e=5),v(e)}function h(e){void 0===e&&(e=3);var n=[w(),g(e||3)];return n[0]+n[1]}function m(e){return void 0===e&&(e=3),h(e)}function w(){return Date.now?Date.now():(new Date).getTime()}function y(e,n){void 0===n&&(n=0);var t="";return t=n?(100*e).toFixed(n):String(Math.floor(100*e)),"".concat(t,"%")}function b(e,n){return void 0===n&&(n=0),parseFloat(e).toFixed(n)}function E(e,n,t){void 0===t&&(t={}),t=Object.assign({},t);var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1],s=function(){u=!1===t.leading?0:w(),i=null,c=e.apply(this,o),i||(r=o=null)};return function(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];var d=w();u||!1!==t.leading||(u=d);var l=n-(d-u);return r=this,o=a,l<=0||l>n?(i&&(clearTimeout(i),i=null),u=d,c=e.apply(r,o),i||(r=o=null)):i||!1===t.trailing||(i=setTimeout(s.bind(r),l)),c}}function A(e,n,t){var r=null,o=null,i=null,a=null,c=null,u=function u(){var s=w()-i;s<n&&s>=0?o=setTimeout(u,n-s):(o=null,t||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var s=[],f=0;f<arguments.length;f++)s[f]=arguments[f];r=this,a=s,i=w();var d=t&&!o;return o||(o=setTimeout(u,n)),d&&(c=e.apply(r,a),r=a=null),c}}"function"==typeof SuppressedError&&SuppressedError;var S={type:"d"};function T(e,n,t){void 0===e&&(e=0),void 0===n&&(n=0),void 0===t&&(t=S);var r=(t=Object.assign(S,t)).type;x(e)||(e=new Date(e).getTime()),x(n)||(n=new Date(n).getTime());var o=Number(n)-Number(e),i="",a=new Array(4).fill(0),c=a[0],u=(a[1],a[2],a[3]),s=decodeURIComponent("%20%E5%A4%A9%20"),f=decodeURIComponent("%20%E6%97%B6%20"),d=decodeURIComponent("%20%E5%88%86%20"),l=decodeURIComponent("%20%E7%A7%92");if(o>=0)switch(c=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),u=Math.floor(o/1e3),r){case"d":i=c;break;case"text":i=(c=Math.floor(o/1e3/60/60/24))+s+Math.floor(o/1e3/60/60%24)+f+Math.floor(o/1e3/60%60)+d+(u=Math.floor(o/1e3%60))+l;break;default:i=u}return i}function x(e,n){void 0===n&&(n={});var t=n.isNaNAsNumber,r=void 0!==t&&t,o=n.isInfinityAsNumber,i=void 0!==o&&o,a=n.isUnFiniteAsNumber;return"number"==typeof e&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(e))&&!(!r&&isNaN(e)))}function O(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,n)),r}function M(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return O.apply(void 0,r([e],n,!1))}function _(e){var n=!1;return Array.isArray(e)&&e.length&&(n=!0),n}function P(e){var n=Boolean(e),t="object"==typeof e,r="[object Object]"===Object.prototype.toString.call(e);return n&&t&&r}function k(e){return!!P(e)&&0!==Object.keys(e).length}function R(e){if(!e)return"";var n=new RegExp("\\n","g");return e.replace(n,"<br />")}function N(e){return R(e)}function j(e,n){void 0===n&&(n={});var t=n.removeNewLine,r=void 0!==t&&t,o="";return e&&(o=e.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o}function C(e,n){return void 0===n&&(n={}),j(e,n)}function B(e,n){return void 0===n&&(n={}),j(e,n)}function D(e,n){return void 0===n&&(n={}),j(e,n)}function L(e){var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/[&<>"'/]/g,(function(e){return n[e]}))}function F(e){var n={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x2F;":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/(&amp;|&lt;|&gt;|&quot;|&#x27;|&#x2F;)/g,(function(e){return n[e]}))}function I(e){return F(e)}function U(e,n,t){if(void 0===t&&(t={hasDot:!1,dotText:"..."}),t=Object.assign({hasDot:!1,dotText:"..."},t),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=e.replace(i,"**").length,u=0;u<c&&(null!=(a=e.charAt(u).toString()).match(i)?r+=2:r++,!(r>n));u++)o+=a;return t.hasDot&&c>n&&(o+=t.dotText),o}return""}function q(e,n,t){return void 0===t&&(t=!1),U(e,n,{hasDot:t})}function z(e,n,t){return void 0===t&&(t=!1),q(e,n,t)}function Z(e,n){void 0===n&&(n={validStatusRange:[200,300],validCode:[0]});var t=Object.assign({validStatusRange:[200,300],validCode:[0]},n),r=t.validStatusRange,o=t.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i}function $(e,n,t){var r=!1;return"object"!=typeof e||n.reduce((function(e,n){return void 0===e[n]?Object.create(null):e=e[n]}),e)===t&&(r=!0),r}function W(e){var n=function(e){return String(Math.ceil(e))};if(!e||e<0)return"";var t=1024;return e<t?e+" B":e<Math.pow(t,2)?n(e/t)+" KB":e<Math.pow(t,3)?n(e/Math.pow(t,2))+" MB":e<Math.pow(t,4)?n(e/Math.pow(t,3))+" G":n(e/Math.pow(t,4))+" T"}function V(e){var n,t=0;for(n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function J(e,n){void 0===n&&(n="yyyy-MM-dd"),e||(e=new Date);var t=new Date(e),r=t.getHours(),o={yyyy:t.getFullYear(),MM:t.getMonth()+1,dd:t.getDate()<10?"0"+t.getDate():t.getDate(),HH:r<10?"0"+r:r,hh:(r%12||12)<10?"0"+(r%12||12):r%12||12,mm:t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),ss:t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),a:r<12?"AM":"PM"},i=n||"yyyy-MM-dd";return Object.keys(o).forEach((function(e){var n=o[e];"MM"===e&&Number(n)<=9&&(n="0".concat(n)),i=i.replace(e,String(n))})),i}function Y(e){return/^1\d{10}$/.test(e)}function H(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function G(e){for(var n="";e>0;){var t=e%26;0===t&&(t=26),n=String.fromCharCode(t+96)+n,e=(e-t)/26}return n}function K(){return"v4"}function Q(e,r,o){var i=this;void 0===r&&(r={}),void 0===o&&(o=function(e){return!0===e});var a=r.interval,c=void 0===a?1e3:a,u=r.times,s=void 0===u?10:u,f=r.context,d=r.args,l=0;"function"!=typeof e&&console.error("Expected a function."),("number"!=typeof c||c<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof s||s<0)&&console.error("Expected a non-negative number for times."),function r(){setTimeout((function(){return n(i,void 0,void 0,(function(){var n;return t(this,(function(t){switch(t.label){case 0:return[4,e.apply(f,d)];case 1:return n=t.sent(),o(n)||++l>=s?[2]:(r(),[2])}}))}))}),c)}()}function X(e){return n(this,void 0,void 0,(function(){return t(this,(function(n){return[2,new Promise((function(n){setTimeout((function(){n(e)}),e)}))]}))}))}function ee(e){return n(this,void 0,void 0,(function(){return t(this,(function(n){return[2,X(e)]}))}))}function ne(e,n){for(var t=e.length,r=n.length,i=o(new Array(t).fill(new Array(r).fill(0))),a=0;a<t;++a)for(var c=0;c<r;++c)if(e[a]===n[c]){var u=0;a>0&&c>0&&(u=i[a-1][c-1]),i[a][c]=u+1}var s=Array.prototype.concat.apply([],i);return Math.max.apply(Math,s)}function te(e,n){return ne(e,n)}function re(e,n){for(var t=e.length,r=n.length,i=o(new Array(t).fill(new Array(r).fill(0))),a=0;a<t;++a)for(var c=0;c<r;++c)if(e[a]===n[c]){var u=0;a>0&&c>0&&(u=i[a-1][c-1]),i[a][c]=u+1}else{var s=[0,0],f=s[0],d=s[1];c>0&&(f=i[a][c-1]),a>0&&(d=i[a-1][c]),i[a][c]=Math.max(f,d)}var l=Array.prototype.concat.apply([],i);return Math.max.apply(Math,l)}function oe(e,n){return re(e,n)}function ie(e){return Math.random()<e}function ae(e){return ie(e)}function ce(e){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),t=location.search.substring(1).match(n);return null!==t?decodeURIComponent(t[2]):""}function ue(e){void 0===e&&(e=""),""===e&&(e=location.search);var n={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,r){return void 0===n[t]&&(n[t]=decodeURIComponent(r)),""})),n}function se(e,n,t){void 0===t&&(t={});var r=null;if(e.includes("#")){r=new URL(e).searchParams.getAll(n)}else{var o={};e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,n,t){return void 0!==o[n]?o[n].push(t):o[n]=[t],""})),r=o[n]||[]}return t.returnArray?r:r.length?r[0]:null}function fe(e,n,t){if(e.includes("#")){var r=new URL(e);return r.searchParams.set(n,t),r.toString()}var o=new RegExp("([?&])"+n+"=.*?(&|$)","i"),i=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+n+"="+t+"$2"):e+i+n+"="+t}function de(e){var n=location.hash.split("?");if(1===n.length)return"";var t=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),r=n[1].match(t);return r?r[2]:""}function le(e,n){if(void 0===n&&(n=["hostname"]),be(e)){var t=new window.URL(e);return n.reduce((function(e,n){return e+=t[n]}),"")}var r=document.createElement("a");return r.href=e,n.reduce((function(e,n){return e+=r[n]}),"")}function pe(e){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)$/.test(e)}function ve(e,n){void 0===n&&(n={strict:!0});var t=/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/;return n.strict||(t=/^(https?:)?\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/),t.test(e)}function ge(e){var n="";if("string"!=typeof e||""==e)return n;var t=/\.[^/?#]+$/.exec(e);return t?(t[0].length>1&&(n=t[0].substring(1)),n):n}function he(e,n){void 0===n&&(n=""),n||(n=".js");for(var t=new RegExp("[?&]".concat(e,"=([^&]*)")),r=document.querySelectorAll('script[src*="'.concat(n,'"]')),o=0;o<r.length;o++){var i=r[o].getAttribute("src");if(i&&-1!==i.indexOf(n)){var a=i.match(t);if(a)return decodeURIComponent(a[1])}}return""}function me(e){if(e&&0===Object.keys(e).length)return"";var n="?";for(var t in e)n+="".concat(t,"=").concat(e[t],"&");return n.slice(0,-1)}function we(e){return e.replace(/^http:/,"https:")}function ye(e){return we(e)}function be(e){void 0===e&&(e="");var n=window.URL;if(!n)return!1;if(!n.canParse)return!1;if("function"!=typeof n.canParse)return!1;try{var t=new n("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&Boolean(t.searchParams)&&n.canParse(e)}catch(e){return!1}}function Ee(e){var n="";(!ve(e)&&ve(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),be(e))&&(n=new URL(e).host);return n}function Ae(e){var n="";(!ve(e)&&ve(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),be(e))&&(n=new URL(e).pathname);return n}function Se(e,n){void 0===e&&(e=""),void 0===n&&(n={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var t=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},n),o=t.isClosed,i=t.showWrap,a=t.showDate,c=t.locales,u=t.logFn,s=t.errorFn,f=Object.create(null),d=function(){return(new Date).toLocaleDateString(c,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(n){f[n]=function(){for(var t=[],c=0;c<arguments.length;c++)t[c]=arguments[c];if(o)return!1;var f=e,l=e;if("string"==typeof e&&e.length>=2){var p=e.length;f=":"===e[p-1]?e.substring(0,p-1):e}i&&console.log("--- ".concat(f," - begin ---")),a&&(l=e?"".concat(d()," ").concat(e):"".concat(d())),e||a?console[n].apply(console,r([l],t,!1)):console[n].apply(console,t),"log"===n&&u(),"error"===n&&s(),i&&console.log("--- ".concat(f," - end ---"))}})),f}var Te=Se("[Mazey]");function xe(e,n){if(!e)return Te.error("The element is not exist."),!1;for(var t=e.className.split(/\s+/),r=0;r<t.length;r++)if(t[r]===n)return!0;return!1}function Oe(e,n){if(e)if(Array.isArray(n))n.forEach((function(n){e.classList.add(n)}));else{for(var t=e.className,r=t.split(/\s+/),o=0;o<r.length;o++)if(r[o]===n)return;var i,a="";""!==t&&(a=" "),i=t+a+n,e.className=i}else Te.error("The element is not exist.")}function Me(e,n){Oe(e,n)}function _e(e,n){var t;e?(t=(t=(t=(t=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+n+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=t):Te.error("The element is not exist.")}function Pe(e,n){if(void 0===n&&(n={id:""}),!e)return!1;var t=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return n.id?(o="".concat(n.id),(r=document.getElementById(o))?r.innerHTML=e:(i.setAttribute("id",n.id),i.innerHTML=e,t.appendChild(i),document.head.appendChild(t))):(i.innerHTML=e,t.appendChild(i),document.head.appendChild(t)),!0}function ke(){var e,n=window.jQuery||window.$;return n?!(!(e=n("img"))||!e.length)&&(e.each((function(){var e=n(this);if(e){var t=e.attr("src");if(t&&"string"==typeof t&&t.length){var r=t.match(/width=([0-9]+[a-z%]*)/),o=t.match(/height=([0-9]+[a-z%]*)/);r&&_(r)&&r[1]&&e.width(r[1]),o&&_(o)&&o[1]&&e.height(o[1])}}})),!0):(e=document.getElementsByTagName("img")).length>0&&(Array.from(e).forEach((function(e){var n=e;if(n){var t=n.getAttribute("src");if(t&&"string"==typeof t&&t.length){var r=t.match(/width=([0-9]+[a-z%]*)/),o=t.match(/height=([0-9]+[a-z%]*)/);r&&_(r)&&r[1]&&(n.style.width=r[1]),o&&_(o)&&o[1]&&(n.style.height=o[1])}}})),!0)}function Re(){return ke()}function Ne(e,n){var t="";return n&&n.length>0&&(t=n.join(";")+";"),"".concat(e,"{").concat(t,"}")}function je(e){var n;return document.querySelector&&(null===(n=document.querySelector('meta[name="'.concat(e,'"]')))||void 0===n?void 0:n.getAttribute("content"))||""}function Ce(e){var n=e||window.event;n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function Be(){var e=window.MAZEY_DEFINE_LISTENERS;return"object"!=typeof e&&(e={},window.MAZEY_DEFINE_LISTENERS=e),e}function De(e,n){var t=Be();void 0===t[e]&&(t[e]=[]),"function"==typeof n&&t[e].push(n)}function Le(n,t){void 0===t&&(t={});var r=Be()[n];if(r instanceof Array)for(var o=0,i=r.length;o<i;o++)"function"==typeof r[o]&&r[o](e(e({},t),{type:n}))}function Fe(e){Le(e)}function Ie(e,n){var t=Be(),r=t[e];if("string"==typeof e&&r instanceof Array)if("function"==typeof n){for(var o=0,i=r.length;o<i;o++)if(r[o]===n){t[e].splice(o,1);break}}else delete t[e]}function Ue(e,n){void 0===n&&(n=null),e&&sessionStorage.setItem(e,JSON.stringify(n))}function qe(e){var n=null;if(e){var t=sessionStorage.getItem(e);t&&(n=JSON.parse(t))}return n}function ze(e,n){void 0===n&&(n=null),e&&localStorage.setItem(e,JSON.stringify(n))}function Ze(e){var n=null;if(e){var t=localStorage.getItem(e);t&&(n=JSON.parse(t))}return n}function $e(e){for(var n=e+"=",t=document.cookie.split(";"),r=0;r<t.length;r++){for(var o=t[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(n))return o.substring(n.length,o.length)}return""}function We(e,n,t,r){var o,i;if(t){var a=new Date;a.setTime(a.getTime()+24*t*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var c=location.host;1===c.split(".").length?document.cookie=e+"="+n+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+n+i+"; path=/; domain="+r,null!==$e(e)&&$e(e)===n||(r=r||"."+c,document.cookie=e+"="+n+i+"; path=/; domain="+r))}function Ve(e){for(var n=document.cookie.split(";"),t=0;t<n.length;t++){var r=n[t].trim();if(r.startsWith("".concat(e,"="))){var o=r.split("=")[0],i=new Date;return i.setTime(i.getTime()-1),document.cookie="".concat(o,"=;expires=").concat(i.toUTCString()),!0}}return!1}function Je(e){Ve(e)}function Ye(e,n){void 0===n&&(n={id:""});var t,r=n.id,o=function(){},i=new Promise((function(e,n){var r;t=(r=[e,n])[0],o=r[1]})),a=function(){t("loaded")},c=document.createElement("link");c||o(new Error("Not support create link element"));var u="onload"in c,s=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(c.rel="stylesheet",c.type="text/css",c.href=e,void 0!==r&&(c.id=r),document.getElementsByTagName("head")[0].appendChild(c),s||!u)return setTimeout((function(){d(c,a,0)}),1),i;function f(){c&&(c.onload=c.onerror=c.onreadystatechange=null),c=null,a()}function d(e,n,t){if(e){var r,o=e.sheet;if((t+=1)>3e5)return r=!0,e&&(e=null),void n();if(s)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){var i=e;if(!i.name)return;"NS_ERROR_DOM_SECURITY_ERR"===i.name&&(r=!0)}setTimeout((function(){r?n():d(e,n,t)}),20)}}return u?(c.onload=f,c.onerror=function(){f()}):c.onreadystatechange=function(){c&&/loaded|complete/.test(c.readyState)&&f()},i}function He(e,n){void 0===n&&(n={id:"",callback:function(){},timeout:5e3,isDefer:!1});var t,r,o=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},n),i=o.id,a=o.callback,c=o.timeout,u=o.isDefer,s=document.createElement("script");s||Promise.reject("Not support create script element");var f=document.getElementsByTagName("script")[0];return s.type="text/javascript",u&&(s.defer=!0),i&&(s.id=i),s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,M(a),M(t,"loaded"))}:s.onload=function(){M(a),M(t,"loaded")},s.src=e,f&&f.parentNode.insertBefore(s,f),new Promise((function(e,n){var o;t=(o=[e,n])[0],r=o[1],c&&setTimeout(r.bind(null,"timeout"),c)}))}function Ge(e){void 0===e&&(e=90);var n,t=function(){},r=new Promise((function(e,r){t=e,n=r}));return"complete"===document.readyState?t("complete"):window.addEventListener("load",(function(){return t("load")})),setTimeout((function(){return n(Error("timeout"))}),1e3*e),r}function Ke(e){return new Promise((function(n,t){var r=new Image;r.onload=function(){n(r)},r.onerror=function(e){t(e)},r.src=e}))}function Qe(e,n){return window[e]?Promise.resolve("defined"):He(n)}function Xe(e){var n=[],t=window.PerformanceObserver;return!!t&&(_(t.supportedEntryTypes)&&(n=t.supportedEntryTypes),n.includes(e))}function en(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return Xe("paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-contentful-paint"===e.name}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function nn(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return Xe("paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-paint"===e.name}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function tn(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return Xe("largest-contentful-paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"largest-contentful-paint"===e.entryType}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"largest-contentful-paint",buffered:!0})}))]:[2,0]}))}))}function rn(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return Xe("first-input")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-input"===e.entryType}));if(r){n.disconnect();var o=r.processingStart;e(o?Math.round(r.processingStart-r.startTime):0)}}));n.observe({type:"first-input",buffered:!0})}))]:[2,0]}))}))}function on(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return Xe("layout-shift")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().reduce((function(e,n){var t=0;return x(n.value)&&(t=n.value),e+t}),0);n.disconnect(),e(r)}));n.observe({type:"layout-shift",buffered:!0})}))]:[2,0]}))}))}function an(){return n(this,void 0,void 0,(function(){var e,n;return t(this,(function(t){return Xe("navigation")&&window.performance&&window.performance.getEntriesByType?(e=performance.getEntriesByType("navigation")[0],0,e?(n=e.responseStart-e.requestStart,[2,Math.round(n)]):[2,0]):[2,0]}))}))}function cn(e){return void 0===e&&(e=!1),n(this,void 0,void 0,(function(){function n(){var n={source:F,os:r(),osVersion:o(),deviceType:i(),network:a(),screenDirection:c(),unloadTime:h-m,redirectTime:w-y,dnsTime:b-E,tcpTime:A-S,sslTime:u(A,T),responseTime:O-M,downloadTime:P-O,firstPaintTime:q,firstContentfulPaintTime:z,domReadyTime:k-I,onloadTime:R-I,whiteTime:O-I,renderTime:N-I,decodedBodySize:B,encodedBodySize:D};Object.keys(n).forEach((function(e){x(n[e])&&(n[e]<0?n[e]=0:n[e]=Math.round(n[e]))})),x(n.whiteTime)&&n.whiteTime>n.onloadTime&&(n.whiteTime=0);var t={};e||Object.keys(n).forEach((function(e){t[f(e)]=n[e]})),Object.keys(t).length?d(t):d(n)}function r(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function o(){var e="",n=navigator.userAgent,t=n.indexOf("Android")>-1||n.indexOf("Linux")>-1,r=!!n.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return e;var i=o[1];return i?(t&&(e=(i.match(/\d+\.\d+/g)||[])[0]),r&&(e=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e||(e=""),e):e}function i(){var e,n=navigator.userAgent.toLowerCase(),t=n.match(/(ipad)/i)&&"ipad",r=n.match(/iphone os/i)&&"iphone os",o=n.match(/midp/i)&&"midp",i=n.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=n.match(/ucweb/i)&&"ucweb",c=n.match(/android/i)&&"android",u=n.match(/windows ce/i)&&"windows ce",s=n.match(/windows mobile/i)&&"windows mobile";return(e=t||r||o||i||a||c||u||s?r||o||i||a||c||u||s?"phone":t?"ipad":void 0:"pc")||(e=""),e}function a(){var e="",n=window.navigator;if(n.connection&&n.connection.effectiveType)switch(n.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e||(e=""),e}function c(){var e="";return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function u(e,n){var t=0;return n&&(t=e-n),t}var s,d,l,p,v,g,h,m,w,y,b,E,A,S,T,O,M,P,k,R,N,j,C,B,D,L,F,I,U,q,z;return t(this,(function(e){switch(e.label){case 0:if(!Xe("navigation"))return[2,Promise.reject(new Error("navigation is not supported"))];if(!(s=window.performance)||"function"!=typeof s.getEntries||"function"!=typeof s.getEntriesByType)return[2,Promise.reject(new Error("performance is not supported"))];if(l=new Promise((function(e){d=[e][0]})),p=null,_(v=s.getEntriesByType("navigation"))&&(p=v[0]),g=new Array(19).fill(0),h=g[0],m=g[1],w=g[2],y=g[3],b=g[4],E=g[5],A=g[6],S=g[7],T=g[8],O=g[9],M=g[10],P=g[11],k=g[12],R=g[13],N=g[14],j=g[15],C=g[16],B=g[17],D=g[18],L=s.timing,F="",p)F="PerformanceNavigationTiming",B=p.decodedBodySize,D=p.encodedBodySize,h=p.unloadEventEnd,m=p.unloadEventStart,w=p.redirectEnd,y=p.redirectStart,b=p.domainLookupEnd,E=p.domainLookupStart,A=p.connectEnd,S=p.connectStart,T=p.secureConnectionStart,O=p.responseStart,M=p.requestStart,P=p.responseEnd,k=p.domContentLoadedEventStart,R=p.loadEventStart,N=p.loadEventEnd,j=p.startTime,C=p.fetchStart;else{if(!L)return[2,Promise.reject(new Error("NavigationTiming and Timing are not supported"))];F="PerformanceTiming",h=L.unloadEventEnd,m=L.unloadEventStart,w=L.redirectEnd,y=L.redirectStart,b=L.domainLookupEnd,E=L.domainLookupStart,A=L.connectEnd,S=L.connectStart,T=L.secureConnectionStart,O=L.responseStart,M=L.requestStart,P=L.responseEnd,k=L.domContentLoadedEventStart,R=L.loadEventStart,N=L.loadEventEnd,j=L.navigationStart,C=L.fetchStart}if(I=0,x(j))I=j;else{if(!x(C))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];I=C}return[4,Promise.all([nn(),en()])];case 1:return U=e.sent(),q=U[0],z=U[1],x(N)&&N>0?n():window.addEventListener("load",(function(){window.setTimeout((function(){n()}),0)})),[2,l]}}))}))}var un="";function sn(){if(un)return"pwa"===un;var e=fn();return"serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches)&&!e.shell?(un="pwa",!0):(un="no-pwa",!1)}function fn(){if(window.MAZEY_BROWSER_INFO&&"object"==typeof window.MAZEY_BROWSER_INFO)return window.MAZEY_BROWSER_INFO;var n={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:"",shell:"",shellVs:"",appleType:""};try{var t=navigator.userAgent.toLowerCase();if(!t)return n;var r=function(e){return e.test(t)},o=function(e){var n="",r=t.match(e);return r&&_(r)&&(n=(n=(n=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),n},i="",a="";r(/windows|win32|win64|wow32|wow64/g)?i="windows":r(/macintosh|macintel/g)?i="macos":r(/x11/g)?i="linux":r(/android|adr/g)?i="android":r(/ios|iphone|ipad|ipod|iwatch/g)&&(i="ios",r(/ipad/g)?a="ipad":r(/iphone/g)?a="iphone":r(/iwatch/g)?a="iwatch":r(/ipod/g)&&(a="ipod")),n=e(e({},n),{system:i,appleType:a});var c="";"windows"===i?r(/windows nt 5.0|windows 2000/g)?c="2000":r(/windows nt 5.1|windows xp/g)?c="xp":r(/windows nt 5.2|windows 2003/g)?c="2003":r(/windows nt 6.0|windows vista/g)?c="vista":r(/windows nt 6.1|windows 7/g)?c="7":r(/windows nt 6.2|windows 8/g)?c="8":r(/windows nt 6.3|windows 8.1/g)?c="8.1":r(/windows nt 10.0|windows 10/g)&&(c="10"):"macos"===i?c=o(/os x [\d._]+/g):"android"===i?c=o(/android [\d._]+/g):"ios"===i&&(c=o(/os [\d._]+/g)),n=e(e({},n),{systemVs:c});var u="";"windows"===i||"macos"===i||"linux"===i?u="desktop":("android"===i||"ios"===i||r(/mobile/g))&&(u="mobile"),n=e(e({},n),{platform:u});var s="",f="";r(/applewebkit/g)?(s="webkit",r(/edge/g)?f="edge":r(/opr/g)?f="opera":r(/chrome/g)?f="chrome":r(/safari/g)&&(f="safari")):r(/gecko/g)&&r(/firefox/g)?(s="gecko",f="firefox"):r(/presto/g)?(s="presto",f="opera"):r(/trident|compatible|msie/g)&&(s="trident",f="iexplore"),n=e(e({},n),{engine:s,supporter:f});var d="";"webkit"===s?d=o(/applewebkit\/[\d._]+/g):"gecko"===s?d=o(/gecko\/[\d._]+/g):"presto"===s?d=o(/presto\/[\d._]+/g):"trident"===s&&(d=o(/trident\/[\d._]+/g)),n=e(e({},n),{engineVs:d});var l="";"chrome"===f?l=o(/chrome\/[\d._]+/g):"safari"===f?l=o(/version\/[\d._]+/g):"firefox"===f?l=o(/firefox\/[\d._]+/g):"opera"===f?l=o(/opr\/[\d._]+/g):"iexplore"===f?l=o(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===f&&(l=o(/edge\/[\d._]+/g)),n=e(e({},n),{supporterVs:l});var p="",v="";return r(/micromessenger/g)?(p="wechat",v=o(/micromessenger\/[\d._]+/g)):r(/qqbrowser/g)?(p="qq_browser",v=o(/qqbrowser\/[\d._]+/g)):r(/\sqq/g)?p="qq_app":r(/ucbrowser/g)?(p="uc",v=o(/ucbrowser\/[\d._]+/g)):r(/qihu 360se/g)?p="360":r(/2345explorer/g)?(p="2345",v=o(/2345explorer\/[\d._]+/g)):r(/metasr/g)?p="sougou":r(/lbbrowser/g)?p="liebao":r(/maxthon/g)?(p="maxthon",v=o(/maxthon\/[\d._]+/g)):r(/biliapp/g)&&(p="bilibili"),n=e(e({},n),{shell:p,shellVs:v}),window.MAZEY_BROWSER_INFO=n,n}catch(e){return Te.warn(e),n}}function dn(e,n){void 0===e&&(e=""),void 0===n&&(n="-");var t=fn(),r=[];return["system","platform","engine","supporter","shell","appleType"].forEach((function(o){var i=t[o];if(i){var a="";e&&e.length>0&&(a="".concat(e).concat(n)),r.push("".concat(a).concat(i))}})),r}var ln="";function pn(){if(ln)return Promise.resolve("webp"===ln);return new Promise((function(e){var n=new Image;n.onload=function(){var t=n.width>0&&n.height>0;ln=t?"webp":"no-webp",e(t)},n.onerror=function(){ln="no-webp",e(!1)},n.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))}export{Oe as addClass,De as addEvent,Pe as addStyle,oe as calLongestCommonSubsequence,te as calLongestCommonSubstring,f as camelCase2Underscore,u as camelCaseToKebabCase,Ce as cancelBubble,B as clearHTML,D as clearHtml,G as convert10To26,a as convertCamelToKebab,s as convertCamelToUnder,we as convertHttpToHttps,c as convertKebabToCamel,me as convertObjectToQuery,R as convertToHtmlBreaks,z as cutCHSString,U as cutZHString,A as debounce,o as deepCopy,i as deepCopyObject,Je as delCookie,M as doFn,Le as fireEvent,b as floatFixed,y as floatToPercent,J as formatDate,dn as genBrowserAttrs,Se as genCustomConsole,V as genHashCode,v as genRndNumString,Ne as genStyleString,h as genUniqueNumString,g as generateRndNum,m as generateUniqueNum,ue as getAllQueryParams,fn as getBrowserInfo,on as getCLS,$e as getCookie,K as getCurrentVersion,Be as getDefineListeners,le as getDomain,en as getFCP,rn as getFID,nn as getFP,W as getFileSize,T as getFriendlyInterval,de as getHashQueryParam,tn as getLCP,Ze as getLocalStorage,je as getPageMeta,cn as getPerformance,ce as getQueryParam,he as getScriptQueryParam,qe as getSessionStorage,an as getTTFB,ge as getUrlFileType,Ee as getUrlHost,se as getUrlParam,Ae as getUrlPath,xe as hasClass,ae as inRate,Fe as invokeEvent,O as invokeFn,ie as isHit,l as isJSONString,p as isJsonString,_ as isNonEmptyArray,k as isNonEmptyObject,x as isNumber,P as isPureObject,sn as isSafePWAEnv,pn as isSupportWebp,Xe as isSupportedEntryType,$ as isValidData,H as isValidEmail,ve as isValidHttpUrl,Y as isValidPhoneNumber,pe as isValidUrl,Ye as loadCSS,Ke as loadImage,He as loadScript,Qe as loadScriptIfUndefined,re as longestComSubsequence,ne as longestComSubstring,w as mNow,d as mTrim,Te as mazeyCon,N as newLine,_e as removeClass,Ve as removeCookie,Ie as removeEvent,j as removeHTML,C as removeHtml,Q as repeatUntilConditionMet,ye as replaceHttp,L as sanitizeInput,Me as setClass,We as setCookie,ke as setImgSizeBySrc,Re as setImgWidHeiBySrc,ze as setLocalStorage,Ue as setSessionStorage,ee as sleep,E as throttle,q as truncateZHString,I as unsanitize,F as unsanitizeInput,fe as updateQueryParam,X as waitTime,Ge as windowLoaded,Z as zAxiosIsValidRes};
6
+ var e=function(){return e=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},e.apply(this,arguments)};function n(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,c)}u((r=r.apply(e,n||[])).next())}))}function t(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(t=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=n.call(e,a)}catch(e){c=[6,e],r=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}function r(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}function o(n){if("object"!=typeof n)return n;var t=["string","number","boolean","undefined"];return Object.values(n).every((function(e){return t.includes(typeof e)}))?e({},n):JSON.parse(JSON.stringify(n))}function i(e){return o(e)}function a(e){var n=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===n[0]?n.substring(1):n}function c(e){var n=e.replace(/-([a-z])/g,(function(e,n){return n.toUpperCase()}));return n.endsWith("-")?n.slice(0,-1):n}function u(e){return a(e)}function s(e){var n=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===n[0]?n.substring(1):n}function f(e){return s(e)}function d(e){for(var n=(e=e.replace(/^\s+/,"")).length-1,t=/\s/;t.test(e.charAt(n));)n--;return e.slice(0,n+1)}function l(e){try{if("object"==typeof JSON.parse(e))return!0}catch(e){}return!1}function p(e){return l(e)}function v(e){void 0===e&&(e=5);for(var n="";e--;)n+=Math.floor(10*Math.random());return n}function g(e){return void 0===e&&(e=5),v(e)}function h(e){void 0===e&&(e=3);var n=[w(),g(e||3)];return n[0]+n[1]}function m(e){return void 0===e&&(e=3),h(e)}function w(){return Date.now?Date.now():(new Date).getTime()}function y(e,n){void 0===n&&(n=0);var t="";return t=n?(100*e).toFixed(n):String(Math.floor(100*e)),"".concat(t,"%")}function b(e,n){return void 0===n&&(n=0),parseFloat(e).toFixed(n)}function E(e,n,t){void 0===t&&(t={}),t=Object.assign({},t);var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1],s=function(){u=!1===t.leading?0:w(),i=null,c=e.apply(this,o),i||(r=o=null)};return function(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];var d=w();u||!1!==t.leading||(u=d);var l=n-(d-u);return r=this,o=a,l<=0||l>n?(i&&(clearTimeout(i),i=null),u=d,c=e.apply(r,o),i||(r=o=null)):i||!1===t.trailing||(i=setTimeout(s.bind(r),l)),c}}function A(e,n,t){var r=null,o=null,i=null,a=null,c=null,u=function u(){var s=w()-i;s<n&&s>=0?o=setTimeout(u,n-s):(o=null,t||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var s=[],f=0;f<arguments.length;f++)s[f]=arguments[f];r=this,a=s,i=w();var d=t&&!o;return o||(o=setTimeout(u,n)),d&&(c=e.apply(r,a),r=a=null),c}}"function"==typeof SuppressedError&&SuppressedError;var S={type:"d"};function T(e,n,t){void 0===e&&(e=0),void 0===n&&(n=0),void 0===t&&(t=S);var r=(t=Object.assign(S,t)).type;x(e)||(e=new Date(e).getTime()),x(n)||(n=new Date(n).getTime());var o=Number(n)-Number(e),i="",a=new Array(4).fill(0),c=a[0],u=(a[1],a[2],a[3]),s=decodeURIComponent("%20%E5%A4%A9%20"),f=decodeURIComponent("%20%E6%97%B6%20"),d=decodeURIComponent("%20%E5%88%86%20"),l=decodeURIComponent("%20%E7%A7%92");if(o>=0)switch(c=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),u=Math.floor(o/1e3),r){case"d":i=c;break;case"text":i=(c=Math.floor(o/1e3/60/60/24))+s+Math.floor(o/1e3/60/60%24)+f+Math.floor(o/1e3/60%60)+d+(u=Math.floor(o/1e3%60))+l;break;default:i=u}return i}function x(e,n){void 0===n&&(n={});var t=n.isNaNAsNumber,r=void 0!==t&&t,o=n.isInfinityAsNumber,i=void 0!==o&&o,a=n.isUnFiniteAsNumber;return"number"==typeof e&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(e))&&!(!r&&isNaN(e)))}function O(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,n)),r}function M(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return O.apply(void 0,r([e],n,!1))}function _(e){var n=!1;return Array.isArray(e)&&e.length&&(n=!0),n}function P(e){var n=Boolean(e),t="object"==typeof e,r="[object Object]"===Object.prototype.toString.call(e);return n&&t&&r}function k(e){return!!P(e)&&0!==Object.keys(e).length}function R(e){if(!e)return"";var n=new RegExp("\\n","g");return e.replace(n,"<br />")}function N(e){return R(e)}function j(e,n){void 0===n&&(n={});var t=n.removeNewLine,r=void 0!==t&&t,o="";return e&&(o=e.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o}function C(e,n){return void 0===n&&(n={}),j(e,n)}function B(e,n){return void 0===n&&(n={}),j(e,n)}function D(e,n){return void 0===n&&(n={}),j(e,n)}function L(e){var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/[&<>"'/]/g,(function(e){return n[e]}))}function F(e){var n={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x2F;":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/(&amp;|&lt;|&gt;|&quot;|&#x27;|&#x2F;)/g,(function(e){return n[e]}))}function I(e){return F(e)}function U(e,n,t){if(void 0===t&&(t={hasDot:!1,dotText:"..."}),t=Object.assign({hasDot:!1,dotText:"..."},t),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=e.replace(i,"**").length,u=0;u<c&&(null!=(a=e.charAt(u).toString()).match(i)?r+=2:r++,!(r>n));u++)o+=a;return t.hasDot&&c>n&&(o+=t.dotText),o}return""}function q(e,n,t){return void 0===t&&(t=!1),U(e,n,{hasDot:t})}function z(e,n,t){return void 0===t&&(t=!1),q(e,n,t)}function Z(e,n){void 0===n&&(n={validStatusRange:[200,300],validCode:[0]});var t=Object.assign({validStatusRange:[200,300],validCode:[0]},n),r=t.validStatusRange,o=t.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i}function $(e,n,t){var r=!1;return"object"!=typeof e||n.reduce((function(e,n){return void 0===e[n]?Object.create(null):e=e[n]}),e)===t&&(r=!0),r}function W(e){var n=function(e){return String(Math.ceil(e))};if(!e||e<0)return"";var t=1024;return e<t?e+" B":e<Math.pow(t,2)?n(e/t)+" KB":e<Math.pow(t,3)?n(e/Math.pow(t,2))+" MB":e<Math.pow(t,4)?n(e/Math.pow(t,3))+" G":n(e/Math.pow(t,4))+" T"}function V(e){var n,t=0;for(n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function J(e,n){void 0===n&&(n="yyyy-MM-dd"),e||(e=new Date);var t=new Date(e),r=t.getHours(),o={yyyy:t.getFullYear(),MM:t.getMonth()+1,dd:t.getDate()<10?"0"+t.getDate():t.getDate(),HH:r<10?"0"+r:r,hh:(r%12||12)<10?"0"+(r%12||12):r%12||12,mm:t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),ss:t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),a:r<12?"AM":"PM"},i=n||"yyyy-MM-dd";return Object.keys(o).forEach((function(e){var n=o[e];"MM"===e&&Number(n)<=9&&(n="0".concat(n)),i=i.replace(e,String(n))})),i}function Y(e){return/^1\d{10}$/.test(e)}function H(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function G(e){for(var n="";e>0;){var t=e%26;0===t&&(t=26),n=String.fromCharCode(t+96)+n,e=(e-t)/26}return n}function K(){return"v4"}function Q(e,r,o){var i=this;void 0===r&&(r={}),void 0===o&&(o=function(e){return!0===e});var a=r.interval,c=void 0===a?1e3:a,u=r.times,s=void 0===u?10:u,f=r.context,d=r.args,l=0;"function"!=typeof e&&console.error("Expected a function."),("number"!=typeof c||c<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof s||s<0)&&console.error("Expected a non-negative number for times."),function r(){setTimeout((function(){return n(i,void 0,void 0,(function(){var n;return t(this,(function(t){switch(t.label){case 0:return[4,e.apply(f,d)];case 1:return n=t.sent(),o(n)||++l>=s?[2]:(r(),[2])}}))}))}),c)}()}function X(e){return n(this,void 0,void 0,(function(){return t(this,(function(n){return[2,new Promise((function(n){setTimeout((function(){n(e)}),e)}))]}))}))}function ee(e){return n(this,void 0,void 0,(function(){return t(this,(function(n){return[2,X(e)]}))}))}var ne="";function te(){if(ne)return"browser"===ne;var e="undefined"!=typeof window;return e&&(ne="browser"),e}function re(e,n){for(var t=e.length,r=n.length,i=o(new Array(t).fill(new Array(r).fill(0))),a=0;a<t;++a)for(var c=0;c<r;++c)if(e[a]===n[c]){var u=0;a>0&&c>0&&(u=i[a-1][c-1]),i[a][c]=u+1}var s=Array.prototype.concat.apply([],i);return Math.max.apply(Math,s)}function oe(e,n){return re(e,n)}function ie(e,n){for(var t=e.length,r=n.length,i=o(new Array(t).fill(new Array(r).fill(0))),a=0;a<t;++a)for(var c=0;c<r;++c)if(e[a]===n[c]){var u=0;a>0&&c>0&&(u=i[a-1][c-1]),i[a][c]=u+1}else{var s=[0,0],f=s[0],d=s[1];c>0&&(f=i[a][c-1]),a>0&&(d=i[a-1][c]),i[a][c]=Math.max(f,d)}var l=Array.prototype.concat.apply([],i);return Math.max.apply(Math,l)}function ae(e,n){return ie(e,n)}function ce(e){return Math.random()<e}function ue(e){return ce(e)}function se(e){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),t=location.search.substring(1).match(n);return null!==t?decodeURIComponent(t[2]):""}function fe(e){void 0===e&&(e=""),""===e&&(e=location.search);var n={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,r){return void 0===n[t]&&(n[t]=decodeURIComponent(r)),""})),n}function de(e,n,t){void 0===t&&(t={});var r=null;if(e.includes("#")){r=new URL(e).searchParams.getAll(n)}else{var o={};e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,n,t){return void 0!==o[n]?o[n].push(t):o[n]=[t],""})),r=o[n]||[]}return t.returnArray?r:r.length?r[0]:null}function le(e,n,t){if(e.includes("#")){var r=new URL(e);return r.searchParams.set(n,t),r.toString()}var o=new RegExp("([?&])"+n+"=.*?(&|$)","i"),i=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+n+"="+t+"$2"):e+i+n+"="+t}function pe(e){var n=location.hash.split("?");if(1===n.length)return"";var t=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),r=n[1].match(t);return r?r[2]:""}function ve(e,n){if(void 0===n&&(n=["hostname"]),Ae(e)){var t=new window.URL(e);return n.reduce((function(e,n){return e+=t[n]}),"")}var r=document.createElement("a");return r.href=e,n.reduce((function(e,n){return e+=r[n]}),"")}function ge(e){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)$/.test(e)}function he(e,n){void 0===n&&(n={strict:!0});var t=/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/;return n.strict||(t=/^(https?:)?\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/),t.test(e)}function me(e){var n="";if("string"!=typeof e||""==e)return n;var t=/\.[^/?#]+$/.exec(e);return t?(t[0].length>1&&(n=t[0].substring(1)),n):n}function we(e,n){void 0===n&&(n=""),n||(n=".js");for(var t=new RegExp("[?&]".concat(e,"=([^&]*)")),r=document.querySelectorAll('script[src*="'.concat(n,'"]')),o=0;o<r.length;o++){var i=r[o].getAttribute("src");if(i&&-1!==i.indexOf(n)){var a=i.match(t);if(a)return decodeURIComponent(a[1])}}return""}function ye(e){if(e&&0===Object.keys(e).length)return"";var n="?";for(var t in e)n+="".concat(t,"=").concat(e[t],"&");return n.slice(0,-1)}function be(e){return e.replace(/^http:/,"https:")}function Ee(e){return be(e)}function Ae(e){void 0===e&&(e="");var n=window.URL;if(!n)return!1;if(!n.canParse)return!1;if("function"!=typeof n.canParse)return!1;try{var t=new n("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&Boolean(t.searchParams)&&n.canParse(e)}catch(e){return!1}}function Se(e){var n="";(!he(e)&&he(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),Ae(e))&&(n=new URL(e).host);return n}function Te(e){var n="";(!he(e)&&he(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),Ae(e))&&(n=new URL(e).pathname);return n}function xe(e,n){void 0===e&&(e=""),void 0===n&&(n={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var t=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},n),o=t.isClosed,i=t.showWrap,a=t.showDate,c=t.locales,u=t.logFn,s=t.errorFn,f=Object.create(null),d=function(){return(new Date).toLocaleDateString(c,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(n){f[n]=function(){for(var t=[],c=0;c<arguments.length;c++)t[c]=arguments[c];if(o)return!1;var f=e,l=e;if("string"==typeof e&&e.length>=2){var p=e.length;f=":"===e[p-1]?e.substring(0,p-1):e}i&&console.log("--- ".concat(f," - begin ---")),a&&(l=e?"".concat(d()," ").concat(e):"".concat(d())),e||a?console[n].apply(console,r([l],t,!1)):console[n].apply(console,t),"log"===n&&u(),"error"===n&&s(),i&&console.log("--- ".concat(f," - end ---"))}})),f}var Oe=xe("[Mazey]");function Me(e,n){if(!e)return Oe.error("The element is not exist."),!1;for(var t=e.className.split(/\s+/),r=0;r<t.length;r++)if(t[r]===n)return!0;return!1}function _e(e,n){if(e)if(Array.isArray(n))n.forEach((function(n){e.classList.add(n)}));else{for(var t=e.className,r=t.split(/\s+/),o=0;o<r.length;o++)if(r[o]===n)return;var i,a="";""!==t&&(a=" "),i=t+a+n,e.className=i}else Oe.error("The element is not exist.")}function Pe(e,n){_e(e,n)}function ke(e,n){var t;e?(t=(t=(t=(t=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+n+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=t):Oe.error("The element is not exist.")}function Re(e,n){if(void 0===n&&(n={id:""}),!e)return!1;var t=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return n.id?(o="".concat(n.id),(r=document.getElementById(o))?r.innerHTML=e:(i.setAttribute("id",n.id),i.innerHTML=e,t.appendChild(i),document.head.appendChild(t))):(i.innerHTML=e,t.appendChild(i),document.head.appendChild(t)),!0}function Ne(){var e,n=window.jQuery||window.$;return n?!(!(e=n("img"))||!e.length)&&(e.each((function(){var e=n(this);if(e){var t=e.attr("src");if(t&&"string"==typeof t&&t.length){var r=t.match(/width=([0-9]+[a-z%]*)/),o=t.match(/height=([0-9]+[a-z%]*)/);r&&_(r)&&r[1]&&e.width(r[1]),o&&_(o)&&o[1]&&e.height(o[1])}}})),!0):(e=document.getElementsByTagName("img")).length>0&&(Array.from(e).forEach((function(e){var n=e;if(n){var t=n.getAttribute("src");if(t&&"string"==typeof t&&t.length){var r=t.match(/width=([0-9]+[a-z%]*)/),o=t.match(/height=([0-9]+[a-z%]*)/);r&&_(r)&&r[1]&&(n.style.width=r[1]),o&&_(o)&&o[1]&&(n.style.height=o[1])}}})),!0)}function je(){return Ne()}function Ce(e,n){var t="";return n&&n.length>0&&(t=n.join(";")+";"),"".concat(e,"{").concat(t,"}")}function Be(e){var n;return document.querySelector&&(null===(n=document.querySelector('meta[name="'.concat(e,'"]')))||void 0===n?void 0:n.getAttribute("content"))||""}function De(e){var n=e||window.event;n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function Le(){var e=window.MAZEY_DEFINE_LISTENERS;return"object"!=typeof e&&(e={},window.MAZEY_DEFINE_LISTENERS=e),e}function Fe(e,n){var t=Le();void 0===t[e]&&(t[e]=[]),"function"==typeof n&&t[e].push(n)}function Ie(n,t){void 0===t&&(t={});var r=Le()[n];if(r instanceof Array)for(var o=0,i=r.length;o<i;o++)"function"==typeof r[o]&&r[o](e(e({},t),{type:n}))}function Ue(e){Ie(e)}function qe(e,n){var t=Le(),r=t[e];if("string"==typeof e&&r instanceof Array)if("function"==typeof n){for(var o=0,i=r.length;o<i;o++)if(r[o]===n){t[e].splice(o,1);break}}else delete t[e]}function ze(e,n){void 0===n&&(n=null),e&&sessionStorage.setItem(e,JSON.stringify(n))}function Ze(e){var n=null;if(e){var t=sessionStorage.getItem(e);t&&(n=JSON.parse(t))}return n}function $e(e,n){void 0===n&&(n=null),e&&localStorage.setItem(e,JSON.stringify(n))}function We(e){var n=null;if(e){var t=localStorage.getItem(e);t&&(n=JSON.parse(t))}return n}function Ve(e){for(var n=e+"=",t=document.cookie.split(";"),r=0;r<t.length;r++){for(var o=t[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(n))return o.substring(n.length,o.length)}return""}function Je(e,n,t,r){var o,i;if(t){var a=new Date;a.setTime(a.getTime()+24*t*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var c=location.host;1===c.split(".").length?document.cookie=e+"="+n+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+n+i+"; path=/; domain="+r,null!==Ve(e)&&Ve(e)===n||(r=r||"."+c,document.cookie=e+"="+n+i+"; path=/; domain="+r))}function Ye(e){for(var n=document.cookie.split(";"),t=0;t<n.length;t++){var r=n[t].trim();if(r.startsWith("".concat(e,"="))){var o=r.split("=")[0],i=new Date;return i.setTime(i.getTime()-1),document.cookie="".concat(o,"=;expires=").concat(i.toUTCString()),!0}}return!1}function He(e){Ye(e)}function Ge(e,n){void 0===n&&(n={id:""});var t,r=n.id,o=function(){},i=new Promise((function(e,n){var r;t=(r=[e,n])[0],o=r[1]})),a=function(){t("loaded")},c=document.createElement("link");c||o(new Error("Not support create link element"));var u="onload"in c,s=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(c.rel="stylesheet",c.type="text/css",c.href=e,void 0!==r&&(c.id=r),document.getElementsByTagName("head")[0].appendChild(c),s||!u)return setTimeout((function(){d(c,a,0)}),1),i;function f(){c&&(c.onload=c.onerror=c.onreadystatechange=null),c=null,a()}function d(e,n,t){if(e){var r,o=e.sheet;if((t+=1)>3e5)return r=!0,e&&(e=null),void n();if(s)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){var i=e;if(!i.name)return;"NS_ERROR_DOM_SECURITY_ERR"===i.name&&(r=!0)}setTimeout((function(){r?n():d(e,n,t)}),20)}}return u?(c.onload=f,c.onerror=function(){f()}):c.onreadystatechange=function(){c&&/loaded|complete/.test(c.readyState)&&f()},i}function Ke(e,n){void 0===n&&(n={id:"",callback:function(){},timeout:5e3,isDefer:!1});var t,r,o=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},n),i=o.id,a=o.callback,c=o.timeout,u=o.isDefer,s=document.createElement("script");s||Promise.reject("Not support create script element");var f=document.getElementsByTagName("script")[0];return s.type="text/javascript",u&&(s.defer=!0),i&&(s.id=i),s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,M(a),M(t,"loaded"))}:s.onload=function(){M(a),M(t,"loaded")},s.src=e,f&&f.parentNode.insertBefore(s,f),new Promise((function(e,n){var o;t=(o=[e,n])[0],r=o[1],c&&setTimeout(r.bind(null,"timeout"),c)}))}function Qe(e){void 0===e&&(e=90);var n,t=function(){},r=new Promise((function(e,r){t=e,n=r}));return"complete"===document.readyState?t("complete"):window.addEventListener("load",(function(){return t("load")})),setTimeout((function(){return n(Error("timeout"))}),1e3*e),r}function Xe(e){return new Promise((function(n,t){var r=new Image;r.onload=function(){n(r)},r.onerror=function(e){t(e)},r.src=e}))}function en(e,n){return window[e]?Promise.resolve("defined"):Ke(n)}function nn(e){var n=[],t=window.PerformanceObserver;return!!t&&(_(t.supportedEntryTypes)&&(n=t.supportedEntryTypes),n.includes(e))}function tn(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return nn("paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-contentful-paint"===e.name}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function rn(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return nn("paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-paint"===e.name}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function on(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return nn("largest-contentful-paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"largest-contentful-paint"===e.entryType}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"largest-contentful-paint",buffered:!0})}))]:[2,0]}))}))}function an(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return nn("first-input")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-input"===e.entryType}));if(r){n.disconnect();var o=r.processingStart;e(o?Math.round(r.processingStart-r.startTime):0)}}));n.observe({type:"first-input",buffered:!0})}))]:[2,0]}))}))}function cn(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return nn("layout-shift")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().reduce((function(e,n){var t=0;return x(n.value)&&(t=n.value),e+t}),0);n.disconnect(),e(r)}));n.observe({type:"layout-shift",buffered:!0})}))]:[2,0]}))}))}function un(){return n(this,void 0,void 0,(function(){var e,n;return t(this,(function(t){return nn("navigation")&&window.performance&&window.performance.getEntriesByType?(e=performance.getEntriesByType("navigation")[0],0,e?(n=e.responseStart-e.requestStart,[2,Math.round(n)]):[2,0]):[2,0]}))}))}function sn(e){return void 0===e&&(e=!1),n(this,void 0,void 0,(function(){function n(){var n={source:F,os:r(),osVersion:o(),deviceType:i(),network:a(),screenDirection:c(),unloadTime:h-m,redirectTime:w-y,dnsTime:b-E,tcpTime:A-S,sslTime:u(A,T),responseTime:O-M,downloadTime:P-O,firstPaintTime:q,firstContentfulPaintTime:z,domReadyTime:k-I,onloadTime:R-I,whiteTime:O-I,renderTime:N-I,decodedBodySize:B,encodedBodySize:D};Object.keys(n).forEach((function(e){x(n[e])&&(n[e]<0?n[e]=0:n[e]=Math.round(n[e]))})),x(n.whiteTime)&&n.whiteTime>n.onloadTime&&(n.whiteTime=0);var t={};e||Object.keys(n).forEach((function(e){t[f(e)]=n[e]})),Object.keys(t).length?d(t):d(n)}function r(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function o(){var e="",n=navigator.userAgent,t=n.indexOf("Android")>-1||n.indexOf("Linux")>-1,r=!!n.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return e;var i=o[1];return i?(t&&(e=(i.match(/\d+\.\d+/g)||[])[0]),r&&(e=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e||(e=""),e):e}function i(){var e,n=navigator.userAgent.toLowerCase(),t=n.match(/(ipad)/i)&&"ipad",r=n.match(/iphone os/i)&&"iphone os",o=n.match(/midp/i)&&"midp",i=n.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=n.match(/ucweb/i)&&"ucweb",c=n.match(/android/i)&&"android",u=n.match(/windows ce/i)&&"windows ce",s=n.match(/windows mobile/i)&&"windows mobile";return(e=t||r||o||i||a||c||u||s?r||o||i||a||c||u||s?"phone":t?"ipad":void 0:"pc")||(e=""),e}function a(){var e="",n=window.navigator;if(n.connection&&n.connection.effectiveType)switch(n.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e||(e=""),e}function c(){var e="";return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function u(e,n){var t=0;return n&&(t=e-n),t}var s,d,l,p,v,g,h,m,w,y,b,E,A,S,T,O,M,P,k,R,N,j,C,B,D,L,F,I,U,q,z;return t(this,(function(e){switch(e.label){case 0:if(!nn("navigation"))return[2,Promise.reject(new Error("navigation is not supported"))];if(!(s=window.performance)||"function"!=typeof s.getEntries||"function"!=typeof s.getEntriesByType)return[2,Promise.reject(new Error("performance is not supported"))];if(l=new Promise((function(e){d=[e][0]})),p=null,_(v=s.getEntriesByType("navigation"))&&(p=v[0]),g=new Array(19).fill(0),h=g[0],m=g[1],w=g[2],y=g[3],b=g[4],E=g[5],A=g[6],S=g[7],T=g[8],O=g[9],M=g[10],P=g[11],k=g[12],R=g[13],N=g[14],j=g[15],C=g[16],B=g[17],D=g[18],L=s.timing,F="",p)F="PerformanceNavigationTiming",B=p.decodedBodySize,D=p.encodedBodySize,h=p.unloadEventEnd,m=p.unloadEventStart,w=p.redirectEnd,y=p.redirectStart,b=p.domainLookupEnd,E=p.domainLookupStart,A=p.connectEnd,S=p.connectStart,T=p.secureConnectionStart,O=p.responseStart,M=p.requestStart,P=p.responseEnd,k=p.domContentLoadedEventStart,R=p.loadEventStart,N=p.loadEventEnd,j=p.startTime,C=p.fetchStart;else{if(!L)return[2,Promise.reject(new Error("NavigationTiming and Timing are not supported"))];F="PerformanceTiming",h=L.unloadEventEnd,m=L.unloadEventStart,w=L.redirectEnd,y=L.redirectStart,b=L.domainLookupEnd,E=L.domainLookupStart,A=L.connectEnd,S=L.connectStart,T=L.secureConnectionStart,O=L.responseStart,M=L.requestStart,P=L.responseEnd,k=L.domContentLoadedEventStart,R=L.loadEventStart,N=L.loadEventEnd,j=L.navigationStart,C=L.fetchStart}if(I=0,x(j))I=j;else{if(!x(C))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];I=C}return[4,Promise.all([rn(),tn()])];case 1:return U=e.sent(),q=U[0],z=U[1],x(N)&&N>0?n():window.addEventListener("load",(function(){window.setTimeout((function(){n()}),0)})),[2,l]}}))}))}var fn="";function dn(){if(fn)return"pwa"===fn;var e=ln();return"serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches)&&!e.shell?(fn="pwa",!0):(fn="no-pwa",!1)}function ln(){if(window.MAZEY_BROWSER_INFO&&"object"==typeof window.MAZEY_BROWSER_INFO)return window.MAZEY_BROWSER_INFO;var n={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:"",shell:"",shellVs:"",appleType:""};try{var t=navigator.userAgent.toLowerCase();if(!t)return n;var r=function(e){return e.test(t)},o=function(e){var n="",r=t.match(e);return r&&_(r)&&(n=(n=(n=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),n},i="",a="";r(/windows|win32|win64|wow32|wow64/g)?i="windows":r(/macintosh|macintel/g)?i="macos":r(/x11/g)?i="linux":r(/android|adr/g)?i="android":r(/ios|iphone|ipad|ipod|iwatch/g)&&(i="ios",r(/ipad/g)?a="ipad":r(/iphone/g)?a="iphone":r(/iwatch/g)?a="iwatch":r(/ipod/g)&&(a="ipod")),n=e(e({},n),{system:i,appleType:a});var c="";"windows"===i?r(/windows nt 5.0|windows 2000/g)?c="2000":r(/windows nt 5.1|windows xp/g)?c="xp":r(/windows nt 5.2|windows 2003/g)?c="2003":r(/windows nt 6.0|windows vista/g)?c="vista":r(/windows nt 6.1|windows 7/g)?c="7":r(/windows nt 6.2|windows 8/g)?c="8":r(/windows nt 6.3|windows 8.1/g)?c="8.1":r(/windows nt 10.0|windows 10/g)&&(c="10"):"macos"===i?c=o(/os x [\d._]+/g):"android"===i?c=o(/android [\d._]+/g):"ios"===i&&(c=o(/os [\d._]+/g)),n=e(e({},n),{systemVs:c});var u="";"windows"===i||"macos"===i||"linux"===i?u="desktop":("android"===i||"ios"===i||r(/mobile/g))&&(u="mobile"),n=e(e({},n),{platform:u});var s="",f="";r(/applewebkit/g)?(s="webkit",r(/edge/g)?f="edge":r(/opr/g)?f="opera":r(/chrome/g)?f="chrome":r(/safari/g)&&(f="safari")):r(/gecko/g)&&r(/firefox/g)?(s="gecko",f="firefox"):r(/presto/g)?(s="presto",f="opera"):r(/trident|compatible|msie/g)&&(s="trident",f="iexplore"),n=e(e({},n),{engine:s,supporter:f});var d="";"webkit"===s?d=o(/applewebkit\/[\d._]+/g):"gecko"===s?d=o(/gecko\/[\d._]+/g):"presto"===s?d=o(/presto\/[\d._]+/g):"trident"===s&&(d=o(/trident\/[\d._]+/g)),n=e(e({},n),{engineVs:d});var l="";"chrome"===f?l=o(/chrome\/[\d._]+/g):"safari"===f?l=o(/version\/[\d._]+/g):"firefox"===f?l=o(/firefox\/[\d._]+/g):"opera"===f?l=o(/opr\/[\d._]+/g):"iexplore"===f?l=o(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===f&&(l=o(/edge\/[\d._]+/g)),n=e(e({},n),{supporterVs:l});var p="",v="";return r(/micromessenger/g)?(p="wechat",v=o(/micromessenger\/[\d._]+/g)):r(/qqbrowser/g)?(p="qq_browser",v=o(/qqbrowser\/[\d._]+/g)):r(/\sqq/g)?p="qq_app":r(/ucbrowser/g)?(p="uc",v=o(/ucbrowser\/[\d._]+/g)):r(/qihu 360se/g)?p="360":r(/2345explorer/g)?(p="2345",v=o(/2345explorer\/[\d._]+/g)):r(/metasr/g)?p="sougou":r(/lbbrowser/g)?p="liebao":r(/maxthon/g)?(p="maxthon",v=o(/maxthon\/[\d._]+/g)):r(/biliapp/g)&&(p="bilibili"),n=e(e({},n),{shell:p,shellVs:v}),window.MAZEY_BROWSER_INFO=n,n}catch(e){return Oe.warn(e),n}}function pn(e,n){void 0===e&&(e=""),void 0===n&&(n="-");var t=ln(),r=[];return["system","platform","engine","supporter","shell","appleType"].forEach((function(o){var i=t[o];if(i){var a="";e&&e.length>0&&(a="".concat(e).concat(n)),r.push("".concat(a).concat(i))}})),r}var vn="";function gn(){if(vn)return Promise.resolve("webp"===vn);return new Promise((function(e){var n=new Image;n.onload=function(){var t=n.width>0&&n.height>0;vn=t?"webp":"no-webp",e(t)},n.onerror=function(){vn="no-webp",e(!1)},n.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))}export{_e as addClass,Fe as addEvent,Re as addStyle,ae as calLongestCommonSubsequence,oe as calLongestCommonSubstring,f as camelCase2Underscore,u as camelCaseToKebabCase,De as cancelBubble,B as clearHTML,D as clearHtml,G as convert10To26,a as convertCamelToKebab,s as convertCamelToUnder,be as convertHttpToHttps,c as convertKebabToCamel,ye as convertObjectToQuery,R as convertToHtmlBreaks,z as cutCHSString,U as cutZHString,A as debounce,o as deepCopy,i as deepCopyObject,He as delCookie,M as doFn,Ie as fireEvent,b as floatFixed,y as floatToPercent,J as formatDate,pn as genBrowserAttrs,xe as genCustomConsole,V as genHashCode,v as genRndNumString,Ce as genStyleString,h as genUniqueNumString,g as generateRndNum,m as generateUniqueNum,fe as getAllQueryParams,ln as getBrowserInfo,cn as getCLS,Ve as getCookie,K as getCurrentVersion,Le as getDefineListeners,ve as getDomain,tn as getFCP,an as getFID,rn as getFP,W as getFileSize,T as getFriendlyInterval,pe as getHashQueryParam,on as getLCP,We as getLocalStorage,Be as getPageMeta,sn as getPerformance,se as getQueryParam,we as getScriptQueryParam,Ze as getSessionStorage,un as getTTFB,me as getUrlFileType,Se as getUrlHost,de as getUrlParam,Te as getUrlPath,Me as hasClass,ue as inRate,Ue as invokeEvent,O as invokeFn,te as isBrowser,ce as isHit,l as isJSONString,p as isJsonString,_ as isNonEmptyArray,k as isNonEmptyObject,x as isNumber,P as isPureObject,dn as isSafePWAEnv,gn as isSupportWebp,nn as isSupportedEntryType,$ as isValidData,H as isValidEmail,he as isValidHttpUrl,Y as isValidPhoneNumber,ge as isValidUrl,Ge as loadCSS,Xe as loadImage,Ke as loadScript,en as loadScriptIfUndefined,ie as longestComSubsequence,re as longestComSubstring,w as mNow,d as mTrim,Oe as mazeyCon,N as newLine,ke as removeClass,Ye as removeCookie,qe as removeEvent,j as removeHTML,C as removeHtml,Q as repeatUntilConditionMet,Ee as replaceHttp,L as sanitizeInput,Pe as setClass,Je as setCookie,Ne as setImgSizeBySrc,je as setImgWidHeiBySrc,$e as setLocalStorage,ze as setSessionStorage,ee as sleep,E as throttle,q as truncateZHString,I as unsanitize,F as unsanitizeInput,le as updateQueryParam,X as waitTime,Qe as windowLoaded,Z as zAxiosIsValidRes};
package/lib/mazey.min.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Mazey v4.7.2 https://github.com/mazeyqian/mazey
2
+ * Mazey v4.7.3 https://github.com/mazeyqian/mazey
3
3
  * (c) 2018-2024 Cheng
4
4
  * Released under the MIT License.
5
5
  */
6
- var mazey=function(e){"use strict";var n=function(){return n=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},n.apply(this,arguments)};function t(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,c)}u((r=r.apply(e,n||[])).next())}))}function r(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(t=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=n.call(e,a)}catch(e){c=[6,e],r=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}function o(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}function i(e){if("object"!=typeof e)return e;var t=["string","number","boolean","undefined"];return Object.values(e).every((function(e){return t.includes(typeof e)}))?n({},e):JSON.parse(JSON.stringify(e))}function a(e){var n=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===n[0]?n.substring(1):n}function c(e){var n=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===n[0]?n.substring(1):n}function u(e){return c(e)}function s(e){try{if("object"==typeof JSON.parse(e))return!0}catch(e){}return!1}function d(e){void 0===e&&(e=5);for(var n="";e--;)n+=Math.floor(10*Math.random());return n}function f(e){return void 0===e&&(e=5),d(e)}function l(e){void 0===e&&(e=3);var n=[g(),f(e||3)];return n[0]+n[1]}function g(){return Date.now?Date.now():(new Date).getTime()}"function"==typeof SuppressedError&&SuppressedError;var p={type:"d"};function v(e,n){void 0===n&&(n={});var t=n.isNaNAsNumber,r=void 0!==t&&t,o=n.isInfinityAsNumber,i=void 0!==o&&o,a=n.isUnFiniteAsNumber;return"number"==typeof e&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(e))&&!(!r&&isNaN(e)))}function m(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,n)),r}function h(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return m.apply(void 0,o([e],n,!1))}function w(e){var n=!1;return Array.isArray(e)&&e.length&&(n=!0),n}function y(e){var n=Boolean(e),t="object"==typeof e,r="[object Object]"===Object.prototype.toString.call(e);return n&&t&&r}function b(e){if(!e)return"";var n=new RegExp("\\n","g");return e.replace(n,"<br />")}function S(e,n){void 0===n&&(n={});var t=n.removeNewLine,r=void 0!==t&&t,o="";return e&&(o=e.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o}function E(e){var n={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x2F;":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/(&amp;|&lt;|&gt;|&quot;|&#x27;|&#x2F;)/g,(function(e){return n[e]}))}function T(e,n,t){if(void 0===t&&(t={hasDot:!1,dotText:"..."}),t=Object.assign({hasDot:!1,dotText:"..."},t),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=e.replace(i,"**").length,u=0;u<c&&(null!=(a=e.charAt(u).toString()).match(i)?r+=2:r++,!(r>n));u++)o+=a;return t.hasDot&&c>n&&(o+=t.dotText),o}return""}function A(e,n,t){return void 0===t&&(t=!1),T(e,n,{hasDot:t})}function x(e){return t(this,void 0,void 0,(function(){return r(this,(function(n){return[2,new Promise((function(n){setTimeout((function(){n(e)}),e)}))]}))}))}function C(e,n){for(var t=e.length,r=n.length,o=i(new Array(t).fill(new Array(r).fill(0))),a=0;a<t;++a)for(var c=0;c<r;++c)if(e[a]===n[c]){var u=0;a>0&&c>0&&(u=o[a-1][c-1]),o[a][c]=u+1}var s=Array.prototype.concat.apply([],o);return Math.max.apply(Math,s)}function O(e,n){for(var t=e.length,r=n.length,o=i(new Array(t).fill(new Array(r).fill(0))),a=0;a<t;++a)for(var c=0;c<r;++c)if(e[a]===n[c]){var u=0;a>0&&c>0&&(u=o[a-1][c-1]),o[a][c]=u+1}else{var s=[0,0],d=s[0],f=s[1];c>0&&(d=o[a][c-1]),a>0&&(f=o[a-1][c]),o[a][c]=Math.max(d,f)}var l=Array.prototype.concat.apply([],o);return Math.max.apply(Math,l)}function P(e){return Math.random()<e}function M(e,n){void 0===n&&(n={strict:!0});var t=/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/;return n.strict||(t=/^(https?:)?\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/),t.test(e)}function k(e){return e.replace(/^http:/,"https:")}function N(e){void 0===e&&(e="");var n=window.URL;if(!n)return!1;if(!n.canParse)return!1;if("function"!=typeof n.canParse)return!1;try{var t=new n("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&Boolean(t.searchParams)&&n.canParse(e)}catch(e){return!1}}function _(e,n){void 0===e&&(e=""),void 0===n&&(n={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var t=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},n),r=t.isClosed,i=t.showWrap,a=t.showDate,c=t.locales,u=t.logFn,s=t.errorFn,d=Object.create(null),f=function(){return(new Date).toLocaleDateString(c,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(n){d[n]=function(){for(var t=[],c=0;c<arguments.length;c++)t[c]=arguments[c];if(r)return!1;var d=e,l=e;if("string"==typeof e&&e.length>=2){var g=e.length;d=":"===e[g-1]?e.substring(0,g-1):e}i&&console.log("--- ".concat(d," - begin ---")),a&&(l=e?"".concat(f()," ").concat(e):"".concat(f())),e||a?console[n].apply(console,o([l],t,!1)):console[n].apply(console,t),"log"===n&&u(),"error"===n&&s(),i&&console.log("--- ".concat(d," - end ---"))}})),d}var R=_("[Mazey]");function j(e,n){if(e)if(Array.isArray(n))n.forEach((function(n){e.classList.add(n)}));else{for(var t=e.className,r=t.split(/\s+/),o=0;o<r.length;o++)if(r[o]===n)return;var i,a="";""!==t&&(a=" "),i=t+a+n,e.className=i}else R.error("The element is not exist.")}function L(){var e,n=window.jQuery||window.$;return n?!(!(e=n("img"))||!e.length)&&(e.each((function(){var e=n(this);if(e){var t=e.attr("src");if(t&&"string"==typeof t&&t.length){var r=t.match(/width=([0-9]+[a-z%]*)/),o=t.match(/height=([0-9]+[a-z%]*)/);r&&w(r)&&r[1]&&e.width(r[1]),o&&w(o)&&o[1]&&e.height(o[1])}}})),!0):(e=document.getElementsByTagName("img")).length>0&&(Array.from(e).forEach((function(e){var n=e;if(n){var t=n.getAttribute("src");if(t&&"string"==typeof t&&t.length){var r=t.match(/width=([0-9]+[a-z%]*)/),o=t.match(/height=([0-9]+[a-z%]*)/);r&&w(r)&&r[1]&&(n.style.width=r[1]),o&&w(o)&&o[1]&&(n.style.height=o[1])}}})),!0)}function B(){var e=window.MAZEY_DEFINE_LISTENERS;return"object"!=typeof e&&(e={},window.MAZEY_DEFINE_LISTENERS=e),e}function F(e,t){void 0===t&&(t={});var r=B()[e];if(r instanceof Array)for(var o=0,i=r.length;o<i;o++)"function"==typeof r[o]&&r[o](n(n({},t),{type:e}))}function I(e){for(var n=e+"=",t=document.cookie.split(";"),r=0;r<t.length;r++){for(var o=t[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(n))return o.substring(n.length,o.length)}return""}function U(e){for(var n=document.cookie.split(";"),t=0;t<n.length;t++){var r=n[t].trim();if(r.startsWith("".concat(e,"="))){var o=r.split("=")[0],i=new Date;return i.setTime(i.getTime()-1),document.cookie="".concat(o,"=;expires=").concat(i.toUTCString()),!0}}return!1}function D(e,n){void 0===n&&(n={id:"",callback:function(){},timeout:5e3,isDefer:!1});var t,r,o=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},n),i=o.id,a=o.callback,c=o.timeout,u=o.isDefer,s=document.createElement("script");s||Promise.reject("Not support create script element");var d=document.getElementsByTagName("script")[0];return s.type="text/javascript",u&&(s.defer=!0),i&&(s.id=i),s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,h(a),h(t,"loaded"))}:s.onload=function(){h(a),h(t,"loaded")},s.src=e,d&&d.parentNode.insertBefore(s,d),new Promise((function(e,n){var o;t=(o=[e,n])[0],r=o[1],c&&setTimeout(r.bind(null,"timeout"),c)}))}function z(e){var n=[],t=window.PerformanceObserver;return!!t&&(w(t.supportedEntryTypes)&&(n=t.supportedEntryTypes),n.includes(e))}function q(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return z("paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-contentful-paint"===e.name}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function H(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return z("paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-paint"===e.name}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}var Z="";function V(){if(window.MAZEY_BROWSER_INFO&&"object"==typeof window.MAZEY_BROWSER_INFO)return window.MAZEY_BROWSER_INFO;var e={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:"",shell:"",shellVs:"",appleType:""};try{var t=navigator.userAgent.toLowerCase();if(!t)return e;var r=function(e){return e.test(t)},o=function(e){var n="",r=t.match(e);return r&&w(r)&&(n=(n=(n=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),n},i="",a="";r(/windows|win32|win64|wow32|wow64/g)?i="windows":r(/macintosh|macintel/g)?i="macos":r(/x11/g)?i="linux":r(/android|adr/g)?i="android":r(/ios|iphone|ipad|ipod|iwatch/g)&&(i="ios",r(/ipad/g)?a="ipad":r(/iphone/g)?a="iphone":r(/iwatch/g)?a="iwatch":r(/ipod/g)&&(a="ipod")),e=n(n({},e),{system:i,appleType:a});var c="";"windows"===i?r(/windows nt 5.0|windows 2000/g)?c="2000":r(/windows nt 5.1|windows xp/g)?c="xp":r(/windows nt 5.2|windows 2003/g)?c="2003":r(/windows nt 6.0|windows vista/g)?c="vista":r(/windows nt 6.1|windows 7/g)?c="7":r(/windows nt 6.2|windows 8/g)?c="8":r(/windows nt 6.3|windows 8.1/g)?c="8.1":r(/windows nt 10.0|windows 10/g)&&(c="10"):"macos"===i?c=o(/os x [\d._]+/g):"android"===i?c=o(/android [\d._]+/g):"ios"===i&&(c=o(/os [\d._]+/g)),e=n(n({},e),{systemVs:c});var u="";"windows"===i||"macos"===i||"linux"===i?u="desktop":("android"===i||"ios"===i||r(/mobile/g))&&(u="mobile"),e=n(n({},e),{platform:u});var s="",d="";r(/applewebkit/g)?(s="webkit",r(/edge/g)?d="edge":r(/opr/g)?d="opera":r(/chrome/g)?d="chrome":r(/safari/g)&&(d="safari")):r(/gecko/g)&&r(/firefox/g)?(s="gecko",d="firefox"):r(/presto/g)?(s="presto",d="opera"):r(/trident|compatible|msie/g)&&(s="trident",d="iexplore"),e=n(n({},e),{engine:s,supporter:d});var f="";"webkit"===s?f=o(/applewebkit\/[\d._]+/g):"gecko"===s?f=o(/gecko\/[\d._]+/g):"presto"===s?f=o(/presto\/[\d._]+/g):"trident"===s&&(f=o(/trident\/[\d._]+/g)),e=n(n({},e),{engineVs:f});var l="";"chrome"===d?l=o(/chrome\/[\d._]+/g):"safari"===d?l=o(/version\/[\d._]+/g):"firefox"===d?l=o(/firefox\/[\d._]+/g):"opera"===d?l=o(/opr\/[\d._]+/g):"iexplore"===d?l=o(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===d&&(l=o(/edge\/[\d._]+/g)),e=n(n({},e),{supporterVs:l});var g="",p="";return r(/micromessenger/g)?(g="wechat",p=o(/micromessenger\/[\d._]+/g)):r(/qqbrowser/g)?(g="qq_browser",p=o(/qqbrowser\/[\d._]+/g)):r(/\sqq/g)?g="qq_app":r(/ucbrowser/g)?(g="uc",p=o(/ucbrowser\/[\d._]+/g)):r(/qihu 360se/g)?g="360":r(/2345explorer/g)?(g="2345",p=o(/2345explorer\/[\d._]+/g)):r(/metasr/g)?g="sougou":r(/lbbrowser/g)?g="liebao":r(/maxthon/g)?(g="maxthon",p=o(/maxthon\/[\d._]+/g)):r(/biliapp/g)&&(g="bilibili"),e=n(n({},e),{shell:g,shellVs:p}),window.MAZEY_BROWSER_INFO=e,e}catch(n){return R.warn(n),e}}var W="";return e.addClass=j,e.addEvent=function(e,n){var t=B();void 0===t[e]&&(t[e]=[]),"function"==typeof n&&t[e].push(n)},e.addStyle=function(e,n){if(void 0===n&&(n={id:""}),!e)return!1;var t=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return n.id?(o="".concat(n.id),(r=document.getElementById(o))?r.innerHTML=e:(i.setAttribute("id",n.id),i.innerHTML=e,t.appendChild(i),document.head.appendChild(t))):(i.innerHTML=e,t.appendChild(i),document.head.appendChild(t)),!0},e.calLongestCommonSubsequence=function(e,n){return O(e,n)},e.calLongestCommonSubstring=function(e,n){return C(e,n)},e.camelCase2Underscore=u,e.camelCaseToKebabCase=function(e){return a(e)},e.cancelBubble=function(e){var n=e||window.event;n.stopPropagation?n.stopPropagation():n.cancelBubble=!0},e.clearHTML=function(e,n){return void 0===n&&(n={}),S(e,n)},e.clearHtml=function(e,n){return void 0===n&&(n={}),S(e,n)},e.convert10To26=function(e){for(var n="";e>0;){var t=e%26;0===t&&(t=26),n=String.fromCharCode(t+96)+n,e=(e-t)/26}return n},e.convertCamelToKebab=a,e.convertCamelToUnder=c,e.convertHttpToHttps=k,e.convertKebabToCamel=function(e){var n=e.replace(/-([a-z])/g,(function(e,n){return n.toUpperCase()}));return n.endsWith("-")?n.slice(0,-1):n},e.convertObjectToQuery=function(e){if(e&&0===Object.keys(e).length)return"";var n="?";for(var t in e)n+="".concat(t,"=").concat(e[t],"&");return n.slice(0,-1)},e.convertToHtmlBreaks=b,e.cutCHSString=function(e,n,t){return void 0===t&&(t=!1),A(e,n,t)},e.cutZHString=T,e.debounce=function(e,n,t){var r=null,o=null,i=null,a=null,c=null,u=function u(){var s=g()-i;s<n&&s>=0?o=setTimeout(u,n-s):(o=null,t||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var s=[],d=0;d<arguments.length;d++)s[d]=arguments[d];r=this,a=s,i=g();var f=t&&!o;return o||(o=setTimeout(u,n)),f&&(c=e.apply(r,a),r=a=null),c}},e.deepCopy=i,e.deepCopyObject=function(e){return i(e)},e.delCookie=function(e){U(e)},e.doFn=h,e.fireEvent=F,e.floatFixed=function(e,n){return void 0===n&&(n=0),parseFloat(e).toFixed(n)},e.floatToPercent=function(e,n){void 0===n&&(n=0);var t="";return t=n?(100*e).toFixed(n):String(Math.floor(100*e)),"".concat(t,"%")},e.formatDate=function(e,n){void 0===n&&(n="yyyy-MM-dd"),e||(e=new Date);var t=new Date(e),r=t.getHours(),o={yyyy:t.getFullYear(),MM:t.getMonth()+1,dd:t.getDate()<10?"0"+t.getDate():t.getDate(),HH:r<10?"0"+r:r,hh:(r%12||12)<10?"0"+(r%12||12):r%12||12,mm:t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),ss:t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),a:r<12?"AM":"PM"},i=n||"yyyy-MM-dd";return Object.keys(o).forEach((function(e){var n=o[e];"MM"===e&&Number(n)<=9&&(n="0".concat(n)),i=i.replace(e,String(n))})),i},e.genBrowserAttrs=function(e,n){void 0===e&&(e=""),void 0===n&&(n="-");var t=V(),r=[];return["system","platform","engine","supporter","shell","appleType"].forEach((function(o){var i=t[o];if(i){var a="";e&&e.length>0&&(a="".concat(e).concat(n)),r.push("".concat(a).concat(i))}})),r},e.genCustomConsole=_,e.genHashCode=function(e){var n,t=0;for(n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t},e.genRndNumString=d,e.genStyleString=function(e,n){var t="";return n&&n.length>0&&(t=n.join(";")+";"),"".concat(e,"{").concat(t,"}")},e.genUniqueNumString=l,e.generateRndNum=f,e.generateUniqueNum=function(e){return void 0===e&&(e=3),l(e)},e.getAllQueryParams=function(e){void 0===e&&(e=""),""===e&&(e=location.search);var n={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,r){return void 0===n[t]&&(n[t]=decodeURIComponent(r)),""})),n},e.getBrowserInfo=V,e.getCLS=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return z("layout-shift")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().reduce((function(e,n){var t=0;return v(n.value)&&(t=n.value),e+t}),0);n.disconnect(),e(r)}));n.observe({type:"layout-shift",buffered:!0})}))]:[2,0]}))}))},e.getCookie=I,e.getCurrentVersion=function(){return"v4"},e.getDefineListeners=B,e.getDomain=function(e,n){if(void 0===n&&(n=["hostname"]),N(e)){var t=new window.URL(e);return n.reduce((function(e,n){return e+=t[n]}),"")}var r=document.createElement("a");return r.href=e,n.reduce((function(e,n){return e+=r[n]}),"")},e.getFCP=q,e.getFID=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return z("first-input")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-input"===e.entryType}));if(r){n.disconnect();var o=r.processingStart;e(o?Math.round(r.processingStart-r.startTime):0)}}));n.observe({type:"first-input",buffered:!0})}))]:[2,0]}))}))},e.getFP=H,e.getFileSize=function(e){var n=function(e){return String(Math.ceil(e))};if(!e||e<0)return"";var t=1024;return e<t?e+" B":e<Math.pow(t,2)?n(e/t)+" KB":e<Math.pow(t,3)?n(e/Math.pow(t,2))+" MB":e<Math.pow(t,4)?n(e/Math.pow(t,3))+" G":n(e/Math.pow(t,4))+" T"},e.getFriendlyInterval=function(e,n,t){void 0===e&&(e=0),void 0===n&&(n=0),void 0===t&&(t=p);var r=(t=Object.assign(p,t)).type;v(e)||(e=new Date(e).getTime()),v(n)||(n=new Date(n).getTime());var o=Number(n)-Number(e),i="",a=new Array(4).fill(0),c=a[0],u=(a[1],a[2],a[3]),s=decodeURIComponent("%20%E5%A4%A9%20"),d=decodeURIComponent("%20%E6%97%B6%20"),f=decodeURIComponent("%20%E5%88%86%20"),l=decodeURIComponent("%20%E7%A7%92");if(o>=0)switch(c=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),u=Math.floor(o/1e3),r){case"d":i=c;break;case"text":i=(c=Math.floor(o/1e3/60/60/24))+s+Math.floor(o/1e3/60/60%24)+d+Math.floor(o/1e3/60%60)+f+(u=Math.floor(o/1e3%60))+l;break;default:i=u}return i},e.getHashQueryParam=function(e){var n=location.hash.split("?");if(1===n.length)return"";var t=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),r=n[1].match(t);return r?r[2]:""},e.getLCP=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return z("largest-contentful-paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"largest-contentful-paint"===e.entryType}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"largest-contentful-paint",buffered:!0})}))]:[2,0]}))}))},e.getLocalStorage=function(e){var n=null;if(e){var t=localStorage.getItem(e);t&&(n=JSON.parse(t))}return n},e.getPageMeta=function(e){var n;return document.querySelector&&(null===(n=document.querySelector('meta[name="'.concat(e,'"]')))||void 0===n?void 0:n.getAttribute("content"))||""},e.getPerformance=function(e){return void 0===e&&(e=!1),t(this,void 0,void 0,(function(){function n(){var n={source:I,os:t(),osVersion:o(),deviceType:i(),network:a(),screenDirection:c(),unloadTime:h-y,redirectTime:b-S,dnsTime:E-T,tcpTime:A-x,sslTime:s(A,C),responseTime:O-P,downloadTime:M-O,firstPaintTime:Z,firstContentfulPaintTime:V,domReadyTime:k-U,onloadTime:N-U,whiteTime:O-U,renderTime:_-U,decodedBodySize:L,encodedBodySize:B};Object.keys(n).forEach((function(e){v(n[e])&&(n[e]<0?n[e]=0:n[e]=Math.round(n[e]))})),v(n.whiteTime)&&n.whiteTime>n.onloadTime&&(n.whiteTime=0);var r={};e||Object.keys(n).forEach((function(e){r[u(e)]=n[e]})),Object.keys(r).length?f(r):f(n)}function t(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function o(){var e="",n=navigator.userAgent,t=n.indexOf("Android")>-1||n.indexOf("Linux")>-1,r=!!n.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return e;var i=o[1];return i?(t&&(e=(i.match(/\d+\.\d+/g)||[])[0]),r&&(e=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e||(e=""),e):e}function i(){var e,n=navigator.userAgent.toLowerCase(),t=n.match(/(ipad)/i)&&"ipad",r=n.match(/iphone os/i)&&"iphone os",o=n.match(/midp/i)&&"midp",i=n.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=n.match(/ucweb/i)&&"ucweb",c=n.match(/android/i)&&"android",u=n.match(/windows ce/i)&&"windows ce",s=n.match(/windows mobile/i)&&"windows mobile";return(e=t||r||o||i||a||c||u||s?r||o||i||a||c||u||s?"phone":t?"ipad":void 0:"pc")||(e=""),e}function a(){var e="",n=window.navigator;if(n.connection&&n.connection.effectiveType)switch(n.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e||(e=""),e}function c(){var e="";return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function s(e,n){var t=0;return n&&(t=e-n),t}var d,f,l,g,p,m,h,y,b,S,E,T,A,x,C,O,P,M,k,N,_,R,j,L,B,F,I,U,D,Z,V;return r(this,(function(e){switch(e.label){case 0:if(!z("navigation"))return[2,Promise.reject(new Error("navigation is not supported"))];if(!(d=window.performance)||"function"!=typeof d.getEntries||"function"!=typeof d.getEntriesByType)return[2,Promise.reject(new Error("performance is not supported"))];if(l=new Promise((function(e){f=[e][0]})),g=null,w(p=d.getEntriesByType("navigation"))&&(g=p[0]),m=new Array(19).fill(0),h=m[0],y=m[1],b=m[2],S=m[3],E=m[4],T=m[5],A=m[6],x=m[7],C=m[8],O=m[9],P=m[10],M=m[11],k=m[12],N=m[13],_=m[14],R=m[15],j=m[16],L=m[17],B=m[18],F=d.timing,I="",g)I="PerformanceNavigationTiming",L=g.decodedBodySize,B=g.encodedBodySize,h=g.unloadEventEnd,y=g.unloadEventStart,b=g.redirectEnd,S=g.redirectStart,E=g.domainLookupEnd,T=g.domainLookupStart,A=g.connectEnd,x=g.connectStart,C=g.secureConnectionStart,O=g.responseStart,P=g.requestStart,M=g.responseEnd,k=g.domContentLoadedEventStart,N=g.loadEventStart,_=g.loadEventEnd,R=g.startTime,j=g.fetchStart;else{if(!F)return[2,Promise.reject(new Error("NavigationTiming and Timing are not supported"))];I="PerformanceTiming",h=F.unloadEventEnd,y=F.unloadEventStart,b=F.redirectEnd,S=F.redirectStart,E=F.domainLookupEnd,T=F.domainLookupStart,A=F.connectEnd,x=F.connectStart,C=F.secureConnectionStart,O=F.responseStart,P=F.requestStart,M=F.responseEnd,k=F.domContentLoadedEventStart,N=F.loadEventStart,_=F.loadEventEnd,R=F.navigationStart,j=F.fetchStart}if(U=0,v(R))U=R;else{if(!v(j))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];U=j}return[4,Promise.all([H(),q()])];case 1:return D=e.sent(),Z=D[0],V=D[1],v(_)&&_>0?n():window.addEventListener("load",(function(){window.setTimeout((function(){n()}),0)})),[2,l]}}))}))},e.getQueryParam=function(e){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),t=location.search.substring(1).match(n);return null!==t?decodeURIComponent(t[2]):""},e.getScriptQueryParam=function(e,n){void 0===n&&(n=""),n||(n=".js");for(var t=new RegExp("[?&]".concat(e,"=([^&]*)")),r=document.querySelectorAll('script[src*="'.concat(n,'"]')),o=0;o<r.length;o++){var i=r[o].getAttribute("src");if(i&&-1!==i.indexOf(n)){var a=i.match(t);if(a)return decodeURIComponent(a[1])}}return""},e.getSessionStorage=function(e){var n=null;if(e){var t=sessionStorage.getItem(e);t&&(n=JSON.parse(t))}return n},e.getTTFB=function(){return t(this,void 0,void 0,(function(){var e,n;return r(this,(function(t){return z("navigation")&&window.performance&&window.performance.getEntriesByType?(e=performance.getEntriesByType("navigation")[0],0,e?(n=e.responseStart-e.requestStart,[2,Math.round(n)]):[2,0]):[2,0]}))}))},e.getUrlFileType=function(e){var n="";if("string"!=typeof e||""==e)return n;var t=/\.[^/?#]+$/.exec(e);return t?(t[0].length>1&&(n=t[0].substring(1)),n):n},e.getUrlHost=function(e){var n="";return!M(e)&&M(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),N(e)&&(n=new URL(e).host),n},e.getUrlParam=function(e,n,t){void 0===t&&(t={});var r=null;if(e.includes("#")){r=new URL(e).searchParams.getAll(n)}else{var o={};e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,n,t){return void 0!==o[n]?o[n].push(t):o[n]=[t],""})),r=o[n]||[]}return t.returnArray?r:r.length?r[0]:null},e.getUrlPath=function(e){var n="";return!M(e)&&M(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),N(e)&&(n=new URL(e).pathname),n},e.hasClass=function(e,n){if(!e)return R.error("The element is not exist."),!1;for(var t=e.className.split(/\s+/),r=0;r<t.length;r++)if(t[r]===n)return!0;return!1},e.inRate=function(e){return P(e)},e.invokeEvent=function(e){F(e)},e.invokeFn=m,e.isHit=P,e.isJSONString=s,e.isJsonString=function(e){return s(e)},e.isNonEmptyArray=w,e.isNonEmptyObject=function(e){return!!y(e)&&0!==Object.keys(e).length},e.isNumber=v,e.isPureObject=y,e.isSafePWAEnv=function(){if(Z)return"pwa"===Z;var e=V();return"serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches)&&!e.shell?(Z="pwa",!0):(Z="no-pwa",!1)},e.isSupportWebp=function(){return W?Promise.resolve("webp"===W):new Promise((function(e){var n=new Image;n.onload=function(){var t=n.width>0&&n.height>0;W=t?"webp":"no-webp",e(t)},n.onerror=function(){W="no-webp",e(!1)},n.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},e.isSupportedEntryType=z,e.isValidData=function(e,n,t){var r=!1;return"object"!=typeof e||n.reduce((function(e,n){return void 0===e[n]?Object.create(null):e=e[n]}),e)===t&&(r=!0),r},e.isValidEmail=function(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},e.isValidHttpUrl=M,e.isValidPhoneNumber=function(e){return/^1\d{10}$/.test(e)},e.isValidUrl=function(e){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)$/.test(e)},e.loadCSS=function(e,n){void 0===n&&(n={id:""});var t,r=n.id,o=function(){},i=new Promise((function(e,n){var r;t=(r=[e,n])[0],o=r[1]})),a=function(){t("loaded")},c=document.createElement("link");c||o(new Error("Not support create link element"));var u="onload"in c,s=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(c.rel="stylesheet",c.type="text/css",c.href=e,void 0!==r&&(c.id=r),document.getElementsByTagName("head")[0].appendChild(c),s||!u)return setTimeout((function(){f(c,a,0)}),1),i;function d(){c&&(c.onload=c.onerror=c.onreadystatechange=null),c=null,a()}function f(e,n,t){if(e){var r,o=e.sheet;if((t+=1)>3e5)return r=!0,e&&(e=null),void n();if(s)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){var i=e;if(!i.name)return;"NS_ERROR_DOM_SECURITY_ERR"===i.name&&(r=!0)}setTimeout((function(){r?n():f(e,n,t)}),20)}}return u?(c.onload=d,c.onerror=function(){d()}):c.onreadystatechange=function(){c&&/loaded|complete/.test(c.readyState)&&d()},i},e.loadImage=function(e){return new Promise((function(n,t){var r=new Image;r.onload=function(){n(r)},r.onerror=function(e){t(e)},r.src=e}))},e.loadScript=D,e.loadScriptIfUndefined=function(e,n){return window[e]?Promise.resolve("defined"):D(n)},e.longestComSubsequence=O,e.longestComSubstring=C,e.mNow=g,e.mTrim=function(e){for(var n=(e=e.replace(/^\s+/,"")).length-1,t=/\s/;t.test(e.charAt(n));)n--;return e.slice(0,n+1)},e.mazeyCon=R,e.newLine=function(e){return b(e)},e.removeClass=function(e,n){var t;e?(t=(t=(t=(t=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+n+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=t):R.error("The element is not exist.")},e.removeCookie=U,e.removeEvent=function(e,n){var t=B(),r=t[e];if("string"==typeof e&&r instanceof Array)if("function"==typeof n){for(var o=0,i=r.length;o<i;o++)if(r[o]===n){t[e].splice(o,1);break}}else delete t[e]},e.removeHTML=S,e.removeHtml=function(e,n){return void 0===n&&(n={}),S(e,n)},e.repeatUntilConditionMet=function(e,n,o){var i=this;void 0===n&&(n={}),void 0===o&&(o=function(e){return!0===e});var a=n.interval,c=void 0===a?1e3:a,u=n.times,s=void 0===u?10:u,d=n.context,f=n.args,l=0;"function"!=typeof e&&console.error("Expected a function."),("number"!=typeof c||c<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof s||s<0)&&console.error("Expected a non-negative number for times."),function n(){setTimeout((function(){return t(i,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,e.apply(d,f)];case 1:return t=r.sent(),o(t)||++l>=s?[2]:(n(),[2])}}))}))}),c)}()},e.replaceHttp=function(e){return k(e)},e.sanitizeInput=function(e){var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/[&<>"'/]/g,(function(e){return n[e]}))},e.setClass=function(e,n){j(e,n)},e.setCookie=function(e,n,t,r){var o,i;if(t){var a=new Date;a.setTime(a.getTime()+24*t*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var c=location.host;1===c.split(".").length?document.cookie=e+"="+n+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+n+i+"; path=/; domain="+r,null!==I(e)&&I(e)===n||(r=r||"."+c,document.cookie=e+"="+n+i+"; path=/; domain="+r))},e.setImgSizeBySrc=L,e.setImgWidHeiBySrc=function(){return L()},e.setLocalStorage=function(e,n){void 0===n&&(n=null),e&&localStorage.setItem(e,JSON.stringify(n))},e.setSessionStorage=function(e,n){void 0===n&&(n=null),e&&sessionStorage.setItem(e,JSON.stringify(n))},e.sleep=function(e){return t(this,void 0,void 0,(function(){return r(this,(function(n){return[2,x(e)]}))}))},e.throttle=function(e,n,t){void 0===t&&(t={}),t=Object.assign({},t);var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1],s=function(){u=!1===t.leading?0:g(),i=null,c=e.apply(this,o),i||(r=o=null)};return function(){for(var a=[],d=0;d<arguments.length;d++)a[d]=arguments[d];var f=g();u||!1!==t.leading||(u=f);var l=n-(f-u);return r=this,o=a,l<=0||l>n?(i&&(clearTimeout(i),i=null),u=f,c=e.apply(r,o),i||(r=o=null)):i||!1===t.trailing||(i=setTimeout(s.bind(r),l)),c}},e.truncateZHString=A,e.unsanitize=function(e){return E(e)},e.unsanitizeInput=E,e.updateQueryParam=function(e,n,t){if(e.includes("#")){var r=new URL(e);return r.searchParams.set(n,t),r.toString()}var o=new RegExp("([?&])"+n+"=.*?(&|$)","i"),i=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+n+"="+t+"$2"):e+i+n+"="+t},e.waitTime=x,e.windowLoaded=function(e){void 0===e&&(e=90);var n,t=function(){},r=new Promise((function(e,r){t=e,n=r}));return"complete"===document.readyState?t("complete"):window.addEventListener("load",(function(){return t("load")})),setTimeout((function(){return n(Error("timeout"))}),1e3*e),r},e.zAxiosIsValidRes=function(e,n){void 0===n&&(n={validStatusRange:[200,300],validCode:[0]});var t=Object.assign({validStatusRange:[200,300],validCode:[0]},n),r=t.validStatusRange,o=t.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i},e}({});
6
+ var mazey=function(e){"use strict";var n=function(){return n=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},n.apply(this,arguments)};function t(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,c)}u((r=r.apply(e,n||[])).next())}))}function r(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(t=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=n.call(e,a)}catch(e){c=[6,e],r=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}function o(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}function i(e){if("object"!=typeof e)return e;var t=["string","number","boolean","undefined"];return Object.values(e).every((function(e){return t.includes(typeof e)}))?n({},e):JSON.parse(JSON.stringify(e))}function a(e){var n=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===n[0]?n.substring(1):n}function c(e){var n=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===n[0]?n.substring(1):n}function u(e){return c(e)}function s(e){try{if("object"==typeof JSON.parse(e))return!0}catch(e){}return!1}function d(e){void 0===e&&(e=5);for(var n="";e--;)n+=Math.floor(10*Math.random());return n}function f(e){return void 0===e&&(e=5),d(e)}function l(e){void 0===e&&(e=3);var n=[p(),f(e||3)];return n[0]+n[1]}function p(){return Date.now?Date.now():(new Date).getTime()}"function"==typeof SuppressedError&&SuppressedError;var g={type:"d"};function v(e,n){void 0===n&&(n={});var t=n.isNaNAsNumber,r=void 0!==t&&t,o=n.isInfinityAsNumber,i=void 0!==o&&o,a=n.isUnFiniteAsNumber;return"number"==typeof e&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(e))&&!(!r&&isNaN(e)))}function m(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,n)),r}function h(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return m.apply(void 0,o([e],n,!1))}function w(e){var n=!1;return Array.isArray(e)&&e.length&&(n=!0),n}function y(e){var n=Boolean(e),t="object"==typeof e,r="[object Object]"===Object.prototype.toString.call(e);return n&&t&&r}function b(e){if(!e)return"";var n=new RegExp("\\n","g");return e.replace(n,"<br />")}function S(e,n){void 0===n&&(n={});var t=n.removeNewLine,r=void 0!==t&&t,o="";return e&&(o=e.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o}function E(e){var n={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x2F;":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/(&amp;|&lt;|&gt;|&quot;|&#x27;|&#x2F;)/g,(function(e){return n[e]}))}function T(e,n,t){if(void 0===t&&(t={hasDot:!1,dotText:"..."}),t=Object.assign({hasDot:!1,dotText:"..."},t),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=e.replace(i,"**").length,u=0;u<c&&(null!=(a=e.charAt(u).toString()).match(i)?r+=2:r++,!(r>n));u++)o+=a;return t.hasDot&&c>n&&(o+=t.dotText),o}return""}function A(e,n,t){return void 0===t&&(t=!1),T(e,n,{hasDot:t})}function x(e){return t(this,void 0,void 0,(function(){return r(this,(function(n){return[2,new Promise((function(n){setTimeout((function(){n(e)}),e)}))]}))}))}var C="";function O(e,n){for(var t=e.length,r=n.length,o=i(new Array(t).fill(new Array(r).fill(0))),a=0;a<t;++a)for(var c=0;c<r;++c)if(e[a]===n[c]){var u=0;a>0&&c>0&&(u=o[a-1][c-1]),o[a][c]=u+1}var s=Array.prototype.concat.apply([],o);return Math.max.apply(Math,s)}function P(e,n){for(var t=e.length,r=n.length,o=i(new Array(t).fill(new Array(r).fill(0))),a=0;a<t;++a)for(var c=0;c<r;++c)if(e[a]===n[c]){var u=0;a>0&&c>0&&(u=o[a-1][c-1]),o[a][c]=u+1}else{var s=[0,0],d=s[0],f=s[1];c>0&&(d=o[a][c-1]),a>0&&(f=o[a-1][c]),o[a][c]=Math.max(d,f)}var l=Array.prototype.concat.apply([],o);return Math.max.apply(Math,l)}function M(e){return Math.random()<e}function k(e,n){void 0===n&&(n={strict:!0});var t=/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/;return n.strict||(t=/^(https?:)?\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/),t.test(e)}function N(e){return e.replace(/^http:/,"https:")}function _(e){void 0===e&&(e="");var n=window.URL;if(!n)return!1;if(!n.canParse)return!1;if("function"!=typeof n.canParse)return!1;try{var t=new n("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&Boolean(t.searchParams)&&n.canParse(e)}catch(e){return!1}}function R(e,n){void 0===e&&(e=""),void 0===n&&(n={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var t=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},n),r=t.isClosed,i=t.showWrap,a=t.showDate,c=t.locales,u=t.logFn,s=t.errorFn,d=Object.create(null),f=function(){return(new Date).toLocaleDateString(c,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(n){d[n]=function(){for(var t=[],c=0;c<arguments.length;c++)t[c]=arguments[c];if(r)return!1;var d=e,l=e;if("string"==typeof e&&e.length>=2){var p=e.length;d=":"===e[p-1]?e.substring(0,p-1):e}i&&console.log("--- ".concat(d," - begin ---")),a&&(l=e?"".concat(f()," ").concat(e):"".concat(f())),e||a?console[n].apply(console,o([l],t,!1)):console[n].apply(console,t),"log"===n&&u(),"error"===n&&s(),i&&console.log("--- ".concat(d," - end ---"))}})),d}var j=R("[Mazey]");function B(e,n){if(e)if(Array.isArray(n))n.forEach((function(n){e.classList.add(n)}));else{for(var t=e.className,r=t.split(/\s+/),o=0;o<r.length;o++)if(r[o]===n)return;var i,a="";""!==t&&(a=" "),i=t+a+n,e.className=i}else j.error("The element is not exist.")}function L(){var e,n=window.jQuery||window.$;return n?!(!(e=n("img"))||!e.length)&&(e.each((function(){var e=n(this);if(e){var t=e.attr("src");if(t&&"string"==typeof t&&t.length){var r=t.match(/width=([0-9]+[a-z%]*)/),o=t.match(/height=([0-9]+[a-z%]*)/);r&&w(r)&&r[1]&&e.width(r[1]),o&&w(o)&&o[1]&&e.height(o[1])}}})),!0):(e=document.getElementsByTagName("img")).length>0&&(Array.from(e).forEach((function(e){var n=e;if(n){var t=n.getAttribute("src");if(t&&"string"==typeof t&&t.length){var r=t.match(/width=([0-9]+[a-z%]*)/),o=t.match(/height=([0-9]+[a-z%]*)/);r&&w(r)&&r[1]&&(n.style.width=r[1]),o&&w(o)&&o[1]&&(n.style.height=o[1])}}})),!0)}function F(){var e=window.MAZEY_DEFINE_LISTENERS;return"object"!=typeof e&&(e={},window.MAZEY_DEFINE_LISTENERS=e),e}function I(e,t){void 0===t&&(t={});var r=F()[e];if(r instanceof Array)for(var o=0,i=r.length;o<i;o++)"function"==typeof r[o]&&r[o](n(n({},t),{type:e}))}function U(e){for(var n=e+"=",t=document.cookie.split(";"),r=0;r<t.length;r++){for(var o=t[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(n))return o.substring(n.length,o.length)}return""}function D(e){for(var n=document.cookie.split(";"),t=0;t<n.length;t++){var r=n[t].trim();if(r.startsWith("".concat(e,"="))){var o=r.split("=")[0],i=new Date;return i.setTime(i.getTime()-1),document.cookie="".concat(o,"=;expires=").concat(i.toUTCString()),!0}}return!1}function z(e,n){void 0===n&&(n={id:"",callback:function(){},timeout:5e3,isDefer:!1});var t,r,o=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},n),i=o.id,a=o.callback,c=o.timeout,u=o.isDefer,s=document.createElement("script");s||Promise.reject("Not support create script element");var d=document.getElementsByTagName("script")[0];return s.type="text/javascript",u&&(s.defer=!0),i&&(s.id=i),s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,h(a),h(t,"loaded"))}:s.onload=function(){h(a),h(t,"loaded")},s.src=e,d&&d.parentNode.insertBefore(s,d),new Promise((function(e,n){var o;t=(o=[e,n])[0],r=o[1],c&&setTimeout(r.bind(null,"timeout"),c)}))}function q(e){var n=[],t=window.PerformanceObserver;return!!t&&(w(t.supportedEntryTypes)&&(n=t.supportedEntryTypes),n.includes(e))}function H(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return q("paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-contentful-paint"===e.name}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function Z(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return q("paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-paint"===e.name}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}var V="";function W(){if(window.MAZEY_BROWSER_INFO&&"object"==typeof window.MAZEY_BROWSER_INFO)return window.MAZEY_BROWSER_INFO;var e={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:"",shell:"",shellVs:"",appleType:""};try{var t=navigator.userAgent.toLowerCase();if(!t)return e;var r=function(e){return e.test(t)},o=function(e){var n="",r=t.match(e);return r&&w(r)&&(n=(n=(n=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),n},i="",a="";r(/windows|win32|win64|wow32|wow64/g)?i="windows":r(/macintosh|macintel/g)?i="macos":r(/x11/g)?i="linux":r(/android|adr/g)?i="android":r(/ios|iphone|ipad|ipod|iwatch/g)&&(i="ios",r(/ipad/g)?a="ipad":r(/iphone/g)?a="iphone":r(/iwatch/g)?a="iwatch":r(/ipod/g)&&(a="ipod")),e=n(n({},e),{system:i,appleType:a});var c="";"windows"===i?r(/windows nt 5.0|windows 2000/g)?c="2000":r(/windows nt 5.1|windows xp/g)?c="xp":r(/windows nt 5.2|windows 2003/g)?c="2003":r(/windows nt 6.0|windows vista/g)?c="vista":r(/windows nt 6.1|windows 7/g)?c="7":r(/windows nt 6.2|windows 8/g)?c="8":r(/windows nt 6.3|windows 8.1/g)?c="8.1":r(/windows nt 10.0|windows 10/g)&&(c="10"):"macos"===i?c=o(/os x [\d._]+/g):"android"===i?c=o(/android [\d._]+/g):"ios"===i&&(c=o(/os [\d._]+/g)),e=n(n({},e),{systemVs:c});var u="";"windows"===i||"macos"===i||"linux"===i?u="desktop":("android"===i||"ios"===i||r(/mobile/g))&&(u="mobile"),e=n(n({},e),{platform:u});var s="",d="";r(/applewebkit/g)?(s="webkit",r(/edge/g)?d="edge":r(/opr/g)?d="opera":r(/chrome/g)?d="chrome":r(/safari/g)&&(d="safari")):r(/gecko/g)&&r(/firefox/g)?(s="gecko",d="firefox"):r(/presto/g)?(s="presto",d="opera"):r(/trident|compatible|msie/g)&&(s="trident",d="iexplore"),e=n(n({},e),{engine:s,supporter:d});var f="";"webkit"===s?f=o(/applewebkit\/[\d._]+/g):"gecko"===s?f=o(/gecko\/[\d._]+/g):"presto"===s?f=o(/presto\/[\d._]+/g):"trident"===s&&(f=o(/trident\/[\d._]+/g)),e=n(n({},e),{engineVs:f});var l="";"chrome"===d?l=o(/chrome\/[\d._]+/g):"safari"===d?l=o(/version\/[\d._]+/g):"firefox"===d?l=o(/firefox\/[\d._]+/g):"opera"===d?l=o(/opr\/[\d._]+/g):"iexplore"===d?l=o(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===d&&(l=o(/edge\/[\d._]+/g)),e=n(n({},e),{supporterVs:l});var p="",g="";return r(/micromessenger/g)?(p="wechat",g=o(/micromessenger\/[\d._]+/g)):r(/qqbrowser/g)?(p="qq_browser",g=o(/qqbrowser\/[\d._]+/g)):r(/\sqq/g)?p="qq_app":r(/ucbrowser/g)?(p="uc",g=o(/ucbrowser\/[\d._]+/g)):r(/qihu 360se/g)?p="360":r(/2345explorer/g)?(p="2345",g=o(/2345explorer\/[\d._]+/g)):r(/metasr/g)?p="sougou":r(/lbbrowser/g)?p="liebao":r(/maxthon/g)?(p="maxthon",g=o(/maxthon\/[\d._]+/g)):r(/biliapp/g)&&(p="bilibili"),e=n(n({},e),{shell:p,shellVs:g}),window.MAZEY_BROWSER_INFO=e,e}catch(n){return j.warn(n),e}}var $="";return e.addClass=B,e.addEvent=function(e,n){var t=F();void 0===t[e]&&(t[e]=[]),"function"==typeof n&&t[e].push(n)},e.addStyle=function(e,n){if(void 0===n&&(n={id:""}),!e)return!1;var t=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return n.id?(o="".concat(n.id),(r=document.getElementById(o))?r.innerHTML=e:(i.setAttribute("id",n.id),i.innerHTML=e,t.appendChild(i),document.head.appendChild(t))):(i.innerHTML=e,t.appendChild(i),document.head.appendChild(t)),!0},e.calLongestCommonSubsequence=function(e,n){return P(e,n)},e.calLongestCommonSubstring=function(e,n){return O(e,n)},e.camelCase2Underscore=u,e.camelCaseToKebabCase=function(e){return a(e)},e.cancelBubble=function(e){var n=e||window.event;n.stopPropagation?n.stopPropagation():n.cancelBubble=!0},e.clearHTML=function(e,n){return void 0===n&&(n={}),S(e,n)},e.clearHtml=function(e,n){return void 0===n&&(n={}),S(e,n)},e.convert10To26=function(e){for(var n="";e>0;){var t=e%26;0===t&&(t=26),n=String.fromCharCode(t+96)+n,e=(e-t)/26}return n},e.convertCamelToKebab=a,e.convertCamelToUnder=c,e.convertHttpToHttps=N,e.convertKebabToCamel=function(e){var n=e.replace(/-([a-z])/g,(function(e,n){return n.toUpperCase()}));return n.endsWith("-")?n.slice(0,-1):n},e.convertObjectToQuery=function(e){if(e&&0===Object.keys(e).length)return"";var n="?";for(var t in e)n+="".concat(t,"=").concat(e[t],"&");return n.slice(0,-1)},e.convertToHtmlBreaks=b,e.cutCHSString=function(e,n,t){return void 0===t&&(t=!1),A(e,n,t)},e.cutZHString=T,e.debounce=function(e,n,t){var r=null,o=null,i=null,a=null,c=null,u=function u(){var s=p()-i;s<n&&s>=0?o=setTimeout(u,n-s):(o=null,t||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var s=[],d=0;d<arguments.length;d++)s[d]=arguments[d];r=this,a=s,i=p();var f=t&&!o;return o||(o=setTimeout(u,n)),f&&(c=e.apply(r,a),r=a=null),c}},e.deepCopy=i,e.deepCopyObject=function(e){return i(e)},e.delCookie=function(e){D(e)},e.doFn=h,e.fireEvent=I,e.floatFixed=function(e,n){return void 0===n&&(n=0),parseFloat(e).toFixed(n)},e.floatToPercent=function(e,n){void 0===n&&(n=0);var t="";return t=n?(100*e).toFixed(n):String(Math.floor(100*e)),"".concat(t,"%")},e.formatDate=function(e,n){void 0===n&&(n="yyyy-MM-dd"),e||(e=new Date);var t=new Date(e),r=t.getHours(),o={yyyy:t.getFullYear(),MM:t.getMonth()+1,dd:t.getDate()<10?"0"+t.getDate():t.getDate(),HH:r<10?"0"+r:r,hh:(r%12||12)<10?"0"+(r%12||12):r%12||12,mm:t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),ss:t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),a:r<12?"AM":"PM"},i=n||"yyyy-MM-dd";return Object.keys(o).forEach((function(e){var n=o[e];"MM"===e&&Number(n)<=9&&(n="0".concat(n)),i=i.replace(e,String(n))})),i},e.genBrowserAttrs=function(e,n){void 0===e&&(e=""),void 0===n&&(n="-");var t=W(),r=[];return["system","platform","engine","supporter","shell","appleType"].forEach((function(o){var i=t[o];if(i){var a="";e&&e.length>0&&(a="".concat(e).concat(n)),r.push("".concat(a).concat(i))}})),r},e.genCustomConsole=R,e.genHashCode=function(e){var n,t=0;for(n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t},e.genRndNumString=d,e.genStyleString=function(e,n){var t="";return n&&n.length>0&&(t=n.join(";")+";"),"".concat(e,"{").concat(t,"}")},e.genUniqueNumString=l,e.generateRndNum=f,e.generateUniqueNum=function(e){return void 0===e&&(e=3),l(e)},e.getAllQueryParams=function(e){void 0===e&&(e=""),""===e&&(e=location.search);var n={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,r){return void 0===n[t]&&(n[t]=decodeURIComponent(r)),""})),n},e.getBrowserInfo=W,e.getCLS=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return q("layout-shift")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().reduce((function(e,n){var t=0;return v(n.value)&&(t=n.value),e+t}),0);n.disconnect(),e(r)}));n.observe({type:"layout-shift",buffered:!0})}))]:[2,0]}))}))},e.getCookie=U,e.getCurrentVersion=function(){return"v4"},e.getDefineListeners=F,e.getDomain=function(e,n){if(void 0===n&&(n=["hostname"]),_(e)){var t=new window.URL(e);return n.reduce((function(e,n){return e+=t[n]}),"")}var r=document.createElement("a");return r.href=e,n.reduce((function(e,n){return e+=r[n]}),"")},e.getFCP=H,e.getFID=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return q("first-input")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"first-input"===e.entryType}));if(r){n.disconnect();var o=r.processingStart;e(o?Math.round(r.processingStart-r.startTime):0)}}));n.observe({type:"first-input",buffered:!0})}))]:[2,0]}))}))},e.getFP=Z,e.getFileSize=function(e){var n=function(e){return String(Math.ceil(e))};if(!e||e<0)return"";var t=1024;return e<t?e+" B":e<Math.pow(t,2)?n(e/t)+" KB":e<Math.pow(t,3)?n(e/Math.pow(t,2))+" MB":e<Math.pow(t,4)?n(e/Math.pow(t,3))+" G":n(e/Math.pow(t,4))+" T"},e.getFriendlyInterval=function(e,n,t){void 0===e&&(e=0),void 0===n&&(n=0),void 0===t&&(t=g);var r=(t=Object.assign(g,t)).type;v(e)||(e=new Date(e).getTime()),v(n)||(n=new Date(n).getTime());var o=Number(n)-Number(e),i="",a=new Array(4).fill(0),c=a[0],u=(a[1],a[2],a[3]),s=decodeURIComponent("%20%E5%A4%A9%20"),d=decodeURIComponent("%20%E6%97%B6%20"),f=decodeURIComponent("%20%E5%88%86%20"),l=decodeURIComponent("%20%E7%A7%92");if(o>=0)switch(c=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),u=Math.floor(o/1e3),r){case"d":i=c;break;case"text":i=(c=Math.floor(o/1e3/60/60/24))+s+Math.floor(o/1e3/60/60%24)+d+Math.floor(o/1e3/60%60)+f+(u=Math.floor(o/1e3%60))+l;break;default:i=u}return i},e.getHashQueryParam=function(e){var n=location.hash.split("?");if(1===n.length)return"";var t=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),r=n[1].match(t);return r?r[2]:""},e.getLCP=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return q("largest-contentful-paint")?[2,new Promise((function(e){var n=new PerformanceObserver((function(t){var r=t.getEntries().find((function(e){return"largest-contentful-paint"===e.entryType}));r&&(n.disconnect(),e(Math.round(r.startTime)))}));n.observe({type:"largest-contentful-paint",buffered:!0})}))]:[2,0]}))}))},e.getLocalStorage=function(e){var n=null;if(e){var t=localStorage.getItem(e);t&&(n=JSON.parse(t))}return n},e.getPageMeta=function(e){var n;return document.querySelector&&(null===(n=document.querySelector('meta[name="'.concat(e,'"]')))||void 0===n?void 0:n.getAttribute("content"))||""},e.getPerformance=function(e){return void 0===e&&(e=!1),t(this,void 0,void 0,(function(){function n(){var n={source:I,os:t(),osVersion:o(),deviceType:i(),network:a(),screenDirection:c(),unloadTime:h-y,redirectTime:b-S,dnsTime:E-T,tcpTime:A-x,sslTime:s(A,C),responseTime:O-P,downloadTime:M-O,firstPaintTime:z,firstContentfulPaintTime:V,domReadyTime:k-U,onloadTime:N-U,whiteTime:O-U,renderTime:_-U,decodedBodySize:B,encodedBodySize:L};Object.keys(n).forEach((function(e){v(n[e])&&(n[e]<0?n[e]=0:n[e]=Math.round(n[e]))})),v(n.whiteTime)&&n.whiteTime>n.onloadTime&&(n.whiteTime=0);var r={};e||Object.keys(n).forEach((function(e){r[u(e)]=n[e]})),Object.keys(r).length?f(r):f(n)}function t(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function o(){var e="",n=navigator.userAgent,t=n.indexOf("Android")>-1||n.indexOf("Linux")>-1,r=!!n.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return e;var i=o[1];return i?(t&&(e=(i.match(/\d+\.\d+/g)||[])[0]),r&&(e=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e||(e=""),e):e}function i(){var e,n=navigator.userAgent.toLowerCase(),t=n.match(/(ipad)/i)&&"ipad",r=n.match(/iphone os/i)&&"iphone os",o=n.match(/midp/i)&&"midp",i=n.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=n.match(/ucweb/i)&&"ucweb",c=n.match(/android/i)&&"android",u=n.match(/windows ce/i)&&"windows ce",s=n.match(/windows mobile/i)&&"windows mobile";return(e=t||r||o||i||a||c||u||s?r||o||i||a||c||u||s?"phone":t?"ipad":void 0:"pc")||(e=""),e}function a(){var e="",n=window.navigator;if(n.connection&&n.connection.effectiveType)switch(n.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e||(e=""),e}function c(){var e="";return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function s(e,n){var t=0;return n&&(t=e-n),t}var d,f,l,p,g,m,h,y,b,S,E,T,A,x,C,O,P,M,k,N,_,R,j,B,L,F,I,U,D,z,V;return r(this,(function(e){switch(e.label){case 0:if(!q("navigation"))return[2,Promise.reject(new Error("navigation is not supported"))];if(!(d=window.performance)||"function"!=typeof d.getEntries||"function"!=typeof d.getEntriesByType)return[2,Promise.reject(new Error("performance is not supported"))];if(l=new Promise((function(e){f=[e][0]})),p=null,w(g=d.getEntriesByType("navigation"))&&(p=g[0]),m=new Array(19).fill(0),h=m[0],y=m[1],b=m[2],S=m[3],E=m[4],T=m[5],A=m[6],x=m[7],C=m[8],O=m[9],P=m[10],M=m[11],k=m[12],N=m[13],_=m[14],R=m[15],j=m[16],B=m[17],L=m[18],F=d.timing,I="",p)I="PerformanceNavigationTiming",B=p.decodedBodySize,L=p.encodedBodySize,h=p.unloadEventEnd,y=p.unloadEventStart,b=p.redirectEnd,S=p.redirectStart,E=p.domainLookupEnd,T=p.domainLookupStart,A=p.connectEnd,x=p.connectStart,C=p.secureConnectionStart,O=p.responseStart,P=p.requestStart,M=p.responseEnd,k=p.domContentLoadedEventStart,N=p.loadEventStart,_=p.loadEventEnd,R=p.startTime,j=p.fetchStart;else{if(!F)return[2,Promise.reject(new Error("NavigationTiming and Timing are not supported"))];I="PerformanceTiming",h=F.unloadEventEnd,y=F.unloadEventStart,b=F.redirectEnd,S=F.redirectStart,E=F.domainLookupEnd,T=F.domainLookupStart,A=F.connectEnd,x=F.connectStart,C=F.secureConnectionStart,O=F.responseStart,P=F.requestStart,M=F.responseEnd,k=F.domContentLoadedEventStart,N=F.loadEventStart,_=F.loadEventEnd,R=F.navigationStart,j=F.fetchStart}if(U=0,v(R))U=R;else{if(!v(j))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];U=j}return[4,Promise.all([Z(),H()])];case 1:return D=e.sent(),z=D[0],V=D[1],v(_)&&_>0?n():window.addEventListener("load",(function(){window.setTimeout((function(){n()}),0)})),[2,l]}}))}))},e.getQueryParam=function(e){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),t=location.search.substring(1).match(n);return null!==t?decodeURIComponent(t[2]):""},e.getScriptQueryParam=function(e,n){void 0===n&&(n=""),n||(n=".js");for(var t=new RegExp("[?&]".concat(e,"=([^&]*)")),r=document.querySelectorAll('script[src*="'.concat(n,'"]')),o=0;o<r.length;o++){var i=r[o].getAttribute("src");if(i&&-1!==i.indexOf(n)){var a=i.match(t);if(a)return decodeURIComponent(a[1])}}return""},e.getSessionStorage=function(e){var n=null;if(e){var t=sessionStorage.getItem(e);t&&(n=JSON.parse(t))}return n},e.getTTFB=function(){return t(this,void 0,void 0,(function(){var e,n;return r(this,(function(t){return q("navigation")&&window.performance&&window.performance.getEntriesByType?(e=performance.getEntriesByType("navigation")[0],0,e?(n=e.responseStart-e.requestStart,[2,Math.round(n)]):[2,0]):[2,0]}))}))},e.getUrlFileType=function(e){var n="";if("string"!=typeof e||""==e)return n;var t=/\.[^/?#]+$/.exec(e);return t?(t[0].length>1&&(n=t[0].substring(1)),n):n},e.getUrlHost=function(e){var n="";return!k(e)&&k(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),_(e)&&(n=new URL(e).host),n},e.getUrlParam=function(e,n,t){void 0===t&&(t={});var r=null;if(e.includes("#")){r=new URL(e).searchParams.getAll(n)}else{var o={};e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,n,t){return void 0!==o[n]?o[n].push(t):o[n]=[t],""})),r=o[n]||[]}return t.returnArray?r:r.length?r[0]:null},e.getUrlPath=function(e){var n="";return!k(e)&&k(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),_(e)&&(n=new URL(e).pathname),n},e.hasClass=function(e,n){if(!e)return j.error("The element is not exist."),!1;for(var t=e.className.split(/\s+/),r=0;r<t.length;r++)if(t[r]===n)return!0;return!1},e.inRate=function(e){return M(e)},e.invokeEvent=function(e){I(e)},e.invokeFn=m,e.isBrowser=function(){if(C)return"browser"===C;var e="undefined"!=typeof window;return e&&(C="browser"),e},e.isHit=M,e.isJSONString=s,e.isJsonString=function(e){return s(e)},e.isNonEmptyArray=w,e.isNonEmptyObject=function(e){return!!y(e)&&0!==Object.keys(e).length},e.isNumber=v,e.isPureObject=y,e.isSafePWAEnv=function(){if(V)return"pwa"===V;var e=W();return"serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches)&&!e.shell?(V="pwa",!0):(V="no-pwa",!1)},e.isSupportWebp=function(){return $?Promise.resolve("webp"===$):new Promise((function(e){var n=new Image;n.onload=function(){var t=n.width>0&&n.height>0;$=t?"webp":"no-webp",e(t)},n.onerror=function(){$="no-webp",e(!1)},n.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},e.isSupportedEntryType=q,e.isValidData=function(e,n,t){var r=!1;return"object"!=typeof e||n.reduce((function(e,n){return void 0===e[n]?Object.create(null):e=e[n]}),e)===t&&(r=!0),r},e.isValidEmail=function(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},e.isValidHttpUrl=k,e.isValidPhoneNumber=function(e){return/^1\d{10}$/.test(e)},e.isValidUrl=function(e){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)$/.test(e)},e.loadCSS=function(e,n){void 0===n&&(n={id:""});var t,r=n.id,o=function(){},i=new Promise((function(e,n){var r;t=(r=[e,n])[0],o=r[1]})),a=function(){t("loaded")},c=document.createElement("link");c||o(new Error("Not support create link element"));var u="onload"in c,s=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(c.rel="stylesheet",c.type="text/css",c.href=e,void 0!==r&&(c.id=r),document.getElementsByTagName("head")[0].appendChild(c),s||!u)return setTimeout((function(){f(c,a,0)}),1),i;function d(){c&&(c.onload=c.onerror=c.onreadystatechange=null),c=null,a()}function f(e,n,t){if(e){var r,o=e.sheet;if((t+=1)>3e5)return r=!0,e&&(e=null),void n();if(s)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){var i=e;if(!i.name)return;"NS_ERROR_DOM_SECURITY_ERR"===i.name&&(r=!0)}setTimeout((function(){r?n():f(e,n,t)}),20)}}return u?(c.onload=d,c.onerror=function(){d()}):c.onreadystatechange=function(){c&&/loaded|complete/.test(c.readyState)&&d()},i},e.loadImage=function(e){return new Promise((function(n,t){var r=new Image;r.onload=function(){n(r)},r.onerror=function(e){t(e)},r.src=e}))},e.loadScript=z,e.loadScriptIfUndefined=function(e,n){return window[e]?Promise.resolve("defined"):z(n)},e.longestComSubsequence=P,e.longestComSubstring=O,e.mNow=p,e.mTrim=function(e){for(var n=(e=e.replace(/^\s+/,"")).length-1,t=/\s/;t.test(e.charAt(n));)n--;return e.slice(0,n+1)},e.mazeyCon=j,e.newLine=function(e){return b(e)},e.removeClass=function(e,n){var t;e?(t=(t=(t=(t=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+n+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=t):j.error("The element is not exist.")},e.removeCookie=D,e.removeEvent=function(e,n){var t=F(),r=t[e];if("string"==typeof e&&r instanceof Array)if("function"==typeof n){for(var o=0,i=r.length;o<i;o++)if(r[o]===n){t[e].splice(o,1);break}}else delete t[e]},e.removeHTML=S,e.removeHtml=function(e,n){return void 0===n&&(n={}),S(e,n)},e.repeatUntilConditionMet=function(e,n,o){var i=this;void 0===n&&(n={}),void 0===o&&(o=function(e){return!0===e});var a=n.interval,c=void 0===a?1e3:a,u=n.times,s=void 0===u?10:u,d=n.context,f=n.args,l=0;"function"!=typeof e&&console.error("Expected a function."),("number"!=typeof c||c<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof s||s<0)&&console.error("Expected a non-negative number for times."),function n(){setTimeout((function(){return t(i,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,e.apply(d,f)];case 1:return t=r.sent(),o(t)||++l>=s?[2]:(n(),[2])}}))}))}),c)}()},e.replaceHttp=function(e){return N(e)},e.sanitizeInput=function(e){var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/[&<>"'/]/g,(function(e){return n[e]}))},e.setClass=function(e,n){B(e,n)},e.setCookie=function(e,n,t,r){var o,i;if(t){var a=new Date;a.setTime(a.getTime()+24*t*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var c=location.host;1===c.split(".").length?document.cookie=e+"="+n+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+n+i+"; path=/; domain="+r,null!==U(e)&&U(e)===n||(r=r||"."+c,document.cookie=e+"="+n+i+"; path=/; domain="+r))},e.setImgSizeBySrc=L,e.setImgWidHeiBySrc=function(){return L()},e.setLocalStorage=function(e,n){void 0===n&&(n=null),e&&localStorage.setItem(e,JSON.stringify(n))},e.setSessionStorage=function(e,n){void 0===n&&(n=null),e&&sessionStorage.setItem(e,JSON.stringify(n))},e.sleep=function(e){return t(this,void 0,void 0,(function(){return r(this,(function(n){return[2,x(e)]}))}))},e.throttle=function(e,n,t){void 0===t&&(t={}),t=Object.assign({},t);var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1],s=function(){u=!1===t.leading?0:p(),i=null,c=e.apply(this,o),i||(r=o=null)};return function(){for(var a=[],d=0;d<arguments.length;d++)a[d]=arguments[d];var f=p();u||!1!==t.leading||(u=f);var l=n-(f-u);return r=this,o=a,l<=0||l>n?(i&&(clearTimeout(i),i=null),u=f,c=e.apply(r,o),i||(r=o=null)):i||!1===t.trailing||(i=setTimeout(s.bind(r),l)),c}},e.truncateZHString=A,e.unsanitize=function(e){return E(e)},e.unsanitizeInput=E,e.updateQueryParam=function(e,n,t){if(e.includes("#")){var r=new URL(e);return r.searchParams.set(n,t),r.toString()}var o=new RegExp("([?&])"+n+"=.*?(&|$)","i"),i=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+n+"="+t+"$2"):e+i+n+"="+t},e.waitTime=x,e.windowLoaded=function(e){void 0===e&&(e=90);var n,t=function(){},r=new Promise((function(e,r){t=e,n=r}));return"complete"===document.readyState?t("complete"):window.addEventListener("load",(function(){return t("load")})),setTimeout((function(){return n(Error("timeout"))}),1e3*e),r},e.zAxiosIsValidRes=function(e,n){void 0===n&&(n={validStatusRange:[200,300],validCode:[0]});var t=Object.assign({validStatusRange:[200,300],validCode:[0]},n),r=t.validStatusRange,o=t.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i},e}({});
package/lib/util.d.ts CHANGED
@@ -916,4 +916,24 @@ export declare function waitTime(time: number): Promise<number>;
916
916
  * @hidden
917
917
  */
918
918
  export declare function sleep(time: number): Promise<number>;
919
+ /**
920
+ * Determine if it is a browser environment.
921
+ *
922
+ * Usage:
923
+ *
924
+ * ```javascript
925
+ * const ret = isBrowser();
926
+ * console.log(ret);
927
+ * ```
928
+ *
929
+ * Output:
930
+ *
931
+ * ```text
932
+ * true
933
+ * ```
934
+ *
935
+ * @returns {boolean} true Yes
936
+ * @category Browser Information
937
+ */
938
+ export declare function isBrowser(): boolean;
919
939
  //# sourceMappingURL=util.d.ts.map
package/lib/util.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mazey",
3
- "version": "4.7.2",
3
+ "version": "4.7.3",
4
4
  "description": "A functional library for daily front-end work.",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",