mazey 4.7.10 → 4.7.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Mazey v4.7.10 https://github.com/mazeyqian/mazey
3
- * (c) 2018-2024 Cheng
2
+ * Mazey v4.7.12 https://github.com/mazeyqian/mazey
3
+ * (c) 2018-2025 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{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,u)}c((r=r.apply(e,n||[])).next())}))}function t(e,n){var t,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(u){return function(c){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(t=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(e,i)}catch(e){u=[6,e],r=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}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 u(e){var n=e.replace(/-([a-z])/g,(function(e,n){return n.toUpperCase()}));return n.endsWith("-")?n.slice(0,-1):n}function c(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 e.replace(/_([a-z])/g,(function(e,n){return n.toUpperCase()}))}function d(e){return s(e)}function l(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 p(e){try{if("object"==typeof JSON.parse(e))return!0}catch(e){}return!1}function v(e){return p(e)}function g(e){void 0===e&&(e=5);for(var n="";e--;)n+=Math.floor(10*Math.random());return n}function h(e){return void 0===e&&(e=5),g(e)}function m(e){void 0===e&&(e=3);var n=[y(),h(e||3)];return n[0]+n[1]}function w(e){return void 0===e&&(e=3),m(e)}function y(){return Date.now?Date.now():(new Date).getTime()}function b(e,n){void 0===n&&(n=0);var t="";return t=n?(100*e).toFixed(n):String(Math.floor(100*e)),"".concat(t,"%")}function E(e,n){return void 0===n&&(n=0),parseFloat(e).toFixed(n)}function A(e,n,t){void 0===t&&(t={}),t=Object.assign({},t);var r=null,o=null,i=null,a=[null,0],u=a[0],c=a[1],s=function(){c=!1===t.leading?0:y(),i=null,u=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=y();c||!1!==t.leading||(c=d);var l=n-(d-c);return r=this,o=a,l<=0||l>n?(i&&(clearTimeout(i),i=null),c=d,u=e.apply(r,o),i||(r=o=null)):i||!1===t.trailing||(i=setTimeout(s.bind(r),l)),u}}function S(e,n,t){var r=null,o=null,i=null,a=null,u=null,c=function(){var s=y()-i;s<n&&s>=0?o=setTimeout(c,n-s):(o=null,t||(u=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=y();var d=t&&!o;return o||(o=setTimeout(c,n)),d&&(u=e.apply(r,a),r=a=null),u}}"function"==typeof SuppressedError&&SuppressedError;var T={type:"d"};function x(e,n,t){void 0===e&&(e=0),void 0===n&&(n=0),void 0===t&&(t=T);var r=(t=Object.assign(T,t)).type,o=decodeURIComponent;O(e)||(e=new Date(e).getTime()),O(n)||(n=new Date(n).getTime());var i=Number(n)-Number(e),a="",u=new Array(4).fill(0),c=u[0],s=(u[1],u[2],u[3]),f=o("%20%E5%A4%A9%20"),d=o("%20%E6%97%B6%20"),l=o("%20%E5%88%86%20"),p=o("%20%E7%A7%92");if(i>=0)switch(c=Math.floor(i/1e3/60/60/24),Math.floor(i/1e3/60/60),Math.floor(i/1e3/60),s=Math.floor(i/1e3),r){case"d":a=c;break;case"text":a=(c=Math.floor(i/1e3/60/60/24))+f+Math.floor(i/1e3/60/60%24)+d+Math.floor(i/1e3/60%60)+l+(s=Math.floor(i/1e3%60))+p;break;default:a=s}return a}function O(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 _(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return M.apply(void 0,r([e],n,!1))}function P(e){var n=!1;return Array.isArray(e)&&e.length&&(n=!0),n}function k(e){var n=Boolean(e),t="object"==typeof e,r="[object Object]"===Object.prototype.toString.call(e);return n&&t&&r}function j(e){return"function"==typeof e}function N(e){return"string"==typeof e}function R(e){return"boolean"==typeof e}function C(e){return R(e)}function B(e){return null==e}function D(e){return"[object Array]"===Object.prototype.toString.call(e)}function L(e){return!!k(e)&&0!==Object.keys(e).length}function F(e){if(!e)return"";var n=new RegExp("\\n","g");return e.replace(n,"<br />")}function I(e){return F(e)}function z(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 q(e,n){return void 0===n&&(n={}),z(e,n)}function U(e,n){return void 0===n&&(n={}),z(e,n)}function Z(e,n){return void 0===n&&(n={}),z(e,n)}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]}))}function W(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 V(e){return W(e)}function J(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="",u=e.replace(i,"**").length,c=0;c<u&&(null!=(a=e.charAt(c).toString()).match(i)?r+=2:r++,!(r>n));c++)o+=a;return t.hasDot&&u>n&&(o+=t.dotText),o}return""}function Y(e,n,t){return void 0===t&&(t=!1),J(e,n,{hasDot:t})}function H(e,n,t){return void 0===t&&(t=!1),Y(e,n,t)}function G(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 K(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 Q(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 X(e){var n,t=0;for(n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function ee(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 ne(e){return/^1\d{10}$/.test(e)}function te(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 re(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 oe(){return"v4"}function ie(e,r,o){var i=this;void 0===r&&(r={}),void 0===o&&(o=function(e){return!0===e});var a=r.interval,u=void 0===a?1e3:a,c=r.times,s=void 0===c?10:c,f=r.context,d=r.args,l=0,p=function(){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]:(p(),[2])}}))}))}),u)};"function"!=typeof e&&console.error("Expected a function."),("number"!=typeof u||u<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof s||s<0)&&console.error("Expected a non-negative number for times."),p()}function ae(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 ue(e){return n(this,void 0,void 0,(function(){return t(this,(function(n){return[2,ae(e)]}))}))}var ce="";function se(){if(ce)return"browser"===ce;var e="undefined"!=typeof window;return e&&(ce="browser"),e}function fe(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 u=0;u<r;++u)if(e[a]===n[u]){var c=0;a>0&&u>0&&(c=i[a-1][u-1]),i[a][u]=c+1}var s=Array.prototype.concat.apply([],i);return Math.max.apply(Math,s)}function de(e,n){return fe(e,n)}function le(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 u=0;u<r;++u)if(e[a]===n[u]){var c=0;a>0&&u>0&&(c=i[a-1][u-1]),i[a][u]=c+1}else{var s=[0,0],f=s[0],d=s[1];u>0&&(f=i[a][u-1]),a>0&&(d=i[a-1][u]),i[a][u]=Math.max(f,d)}var l=Array.prototype.concat.apply([],i);return Math.max.apply(Math,l)}function pe(e,n){return le(e,n)}function ve(e){return Math.random()<e}function ge(e){return ve(e)}function he(e){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),t=location.search.substring(1).match(n);return null!==t?decodeURIComponent(t[2]):""}function me(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 we(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 ye(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 be(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 Ee(e,n){if(void 0===n&&(n=["hostname"]),Pe(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 Ae(e){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5\u3002\uff1b\uff0c\uff1a\u201c\u201d\uff08\uff09\u3001\uff1f\u300a\u300b()!@:%_+.~#?&//=]*)$/.test(e)}function Se(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 Te(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 xe(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 Oe(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 Me(e){return e.replace(/^http:/,"https:")}function _e(e){return Me(e)}function Pe(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 ke(e){var n="";(!Se(e)&&Se(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),Pe(e))&&(n=new URL(e).host);return n}function je(e){var n="";(!Se(e)&&Se(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),Pe(e))&&(n=new URL(e).pathname);return n}function Ne(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,u=t.locales,c=t.logFn,s=t.errorFn,f=Object.create(null),d=function(){return(new Date).toLocaleDateString(u,{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=[],u=0;u<arguments.length;u++)t[u]=arguments[u];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&&c(),"error"===n&&s(),i&&console.log("--- ".concat(f," - end ---"))}})),f}var Re=Ne("[Mazey]"),Ce=Ne("",{showDate:!0,locales:"zh-CN"});function Be(e,n){if(!e)return Re.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 De(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 Re.error("The element is not exist.")}function Le(e,n){De(e,n)}function Fe(e,n){var t;e?(t=(t=(t=(t=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+n+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=t):Re.error("The element is not exist.")}function Ie(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 ze(){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&&P(r)&&r[1]&&e.width(r[1]),o&&P(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&&P(r)&&r[1]&&(n.style.width=r[1]),o&&P(o)&&o[1]&&(n.style.height=o[1])}}})),!0)}function qe(){return ze()}function Ue(e,n){var t="";return n&&n.length>0&&(t=n.join(";")+";"),"".concat(e,"{").concat(t,"}")}function Ze(e){var n;return document.querySelector&&(null===(n=document.querySelector('meta[name="'.concat(e,'"]')))||void 0===n?void 0:n.getAttribute("content"))||""}function $e(e){var n=e||window.event;n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function We(){var e=window.MAZEY_DEFINE_LISTENERS;return"object"!=typeof e&&(e={},window.MAZEY_DEFINE_LISTENERS=e),e}function Ve(e,n){var t=We();void 0===t[e]&&(t[e]=[]),"function"==typeof n&&t[e].push(n)}function Je(e,n){var t=We()[e];if(t instanceof Array)for(var r=0,o=t.length;r<o;r++)"function"==typeof t[r]&&(void 0===n?t[r]():t[r](n))}function Ye(e){Je(e)}function He(e,n){var t=We(),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 Ge(e,n){void 0===n&&(n=null),e&&sessionStorage.setItem(e,JSON.stringify(n))}function Ke(e){var n=null;if(e){var t=sessionStorage.getItem(e);t&&(n=JSON.parse(t))}return n}function Qe(e,n){void 0===n&&(n=null),e&&localStorage.setItem(e,JSON.stringify(n))}function Xe(e){var n=null;if(e){var t=localStorage.getItem(e);t&&(n=JSON.parse(t))}return n}function en(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 nn(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 u=location.host;1===u.split(".").length?document.cookie=e+"="+n+i+"; path=/":((o=u.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+n+i+"; path=/; domain="+r,null!==en(e)&&en(e)===n||(r=r||"."+u,document.cookie=e+"="+n+i+"; path=/; domain="+r))}function tn(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 rn(e){tn(e)}function on(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")},u=document.createElement("link");u||o(new Error("Not support create link element"));var c="onload"in u,s=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(u.rel="stylesheet",u.type="text/css",u.href=e,void 0!==r&&(u.id=r),document.getElementsByTagName("head")[0].appendChild(u),s||!c)return setTimeout((function(){d(u,a,0)}),1),i;function f(){u&&(u.onload=u.onerror=u.onreadystatechange=null),u=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 c?(u.onload=f,u.onerror=function(){f()}):u.onreadystatechange=function(){u&&/loaded|complete/.test(u.readyState)&&f()},i}var an={id:"",callback:function(){},timeout:5e3,isDefer:!1,isAsync:!1,isCrossOrigin:!1,attributes:null};function un(n,t){void 0===t&&(t=e({},an));var r,o,i=Object.assign(e({},an),t),a=i.id,u=i.callback,c=i.timeout,s=i.isDefer,f=i.isAsync,d=i.isCrossOrigin,l=i.attributes,p=document.createElement("script");p||Promise.reject("Not support create script element");var v=document.getElementsByTagName("script")[0];return p.type="text/javascript",s&&(p.defer=!0),f&&(p.async=!0),d&&(p.crossOrigin="anonymous"),a&&(p.id=a),l&&Object.keys(l).forEach((function(e){p.setAttribute(e,l[e])})),p.readyState?p.onreadystatechange=function(){"loaded"!==p.readyState&&"complete"!==p.readyState||(p.onreadystatechange=null,_(u),_(r,"loaded"))}:p.onload=function(){_(u),_(r,"loaded")},p.src=n,v&&v.parentNode.insertBefore(p,v),new Promise((function(e,n){var t;r=(t=[e,n])[0],o=t[1],c&&setTimeout(o.bind(null,"timeout"),c)}))}function cn(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 sn(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 fn(e,n){return window[e]?Promise.resolve("defined"):un(n)}function dn(e){var n=[],t=window.PerformanceObserver;return!!t&&(P(t.supportedEntryTypes)&&(n=t.supportedEntryTypes),n.includes(e))}function ln(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return dn("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 pn(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return dn("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 vn(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return dn("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 gn(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return dn("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 hn(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return dn("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 O(n.value)&&(t=n.value),e+t}),0);n.disconnect(),e(r)}));n.observe({type:"layout-shift",buffered:!0})}))]:[2,0]}))}))}function mn(){return n(this,void 0,void 0,(function(){var e,n;return t(this,(function(t){return dn("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 wn(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:u(),unloadTime:h-m,redirectTime:w-y,dnsTime:b-E,tcpTime:A-S,sslTime:c(A,T),responseTime:x-M,downloadTime:_-x,firstPaintTime:q,firstContentfulPaintTime:U,domReadyTime:k-I,onloadTime:j-I,whiteTime:x-I,renderTime:N-I,decodedBodySize:B,encodedBodySize:D};Object.keys(n).forEach((function(e){O(n[e])&&(n[e]<0?n[e]=0:n[e]=Math.round(n[e]))})),O(n.whiteTime)&&n.whiteTime>n.onloadTime&&(n.whiteTime=0);var t={};e||Object.keys(n).forEach((function(e){t[d(e)]=n[e]})),Object.keys(t).length?f(t):f(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",u=n.match(/android/i)&&"android",c=n.match(/windows ce/i)&&"windows ce",s=n.match(/windows mobile/i)&&"windows mobile";return(e=t||r||o||i||a||u||c||s?r||o||i||a||u||c||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 u(){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 c(e,n){var t=0;return n&&(t=e-n),t}var s,f,l,p,v,g,h,m,w,y,b,E,A,S,T,x,M,_,k,j,N,R,C,B,D,L,F,I,z,q,U;return t(this,(function(e){switch(e.label){case 0:if(!dn("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){f=[e][0]})),p=null,P(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],x=g[9],M=g[10],_=g[11],k=g[12],j=g[13],N=g[14],R=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,x=p.responseStart,M=p.requestStart,_=p.responseEnd,k=p.domContentLoadedEventStart,j=p.loadEventStart,N=p.loadEventEnd,R=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,x=L.responseStart,M=L.requestStart,_=L.responseEnd,k=L.domContentLoadedEventStart,j=L.loadEventStart,N=L.loadEventEnd,R=L.navigationStart,C=L.fetchStart}if(I=0,O(R))I=R;else{if(!O(C))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];I=C}return[4,Promise.all([pn(),ln()])];case 1:return z=e.sent(),q=z[0],U=z[1],O(N)&&N>0?n():window.addEventListener("load",(function(){window.setTimeout((function(){n()}),0)})),[2,l]}}))}))}var yn="";function bn(){if(yn)return"pwa"===yn;var e=En();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?(yn="pwa",!0):(yn="no-pwa",!1)}function En(){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&&P(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 u="";"windows"===i?r(/windows nt 5.0|windows 2000/g)?u="2000":r(/windows nt 5.1|windows xp/g)?u="xp":r(/windows nt 5.2|windows 2003/g)?u="2003":r(/windows nt 6.0|windows vista/g)?u="vista":r(/windows nt 6.1|windows 7/g)?u="7":r(/windows nt 6.2|windows 8/g)?u="8":r(/windows nt 6.3|windows 8.1/g)?u="8.1":r(/windows nt 10.0|windows 10/g)&&(u="10"):"macos"===i?u=o(/os x [\d._]+/g):"android"===i?u=o(/android [\d._]+/g):"ios"===i&&(u=o(/os [\d._]+/g)),n=e(e({},n),{systemVs:u});var c="";"windows"===i||"macos"===i||"linux"===i?c="desktop":("android"===i||"ios"===i||r(/mobile/g))&&(c="mobile"),n=e(e({},n),{platform:c});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 Re.warn(e),n}}function An(e,n){void 0===e&&(e=""),void 0===n&&(n="-");var t=En(),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 Sn="";function Tn(){if(Sn)return Promise.resolve("webp"===Sn);return new Promise((function(e){var n=new Image;n.onload=function(){var t=n.width>0&&n.height>0;Sn=t?"webp":"no-webp",e(t)},n.onerror=function(){Sn="no-webp",e(!1)},n.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))}export{De as addClass,Ve as addEvent,Ie as addStyle,pe as calLongestCommonSubsequence,de as calLongestCommonSubstring,d as camelCase2Underscore,c as camelCaseToKebabCase,$e as cancelBubble,U as clearHTML,Z as clearHtml,re as convert10To26,a as convertCamelToKebab,s as convertCamelToUnder,Me as convertHttpToHttps,u as convertKebabToCamel,Oe as convertObjectToQuery,F as convertToHtmlBreaks,f as convertUnderToCamel,H as cutCHSString,J as cutZHString,S as debounce,o as deepCopy,i as deepCopyObject,rn as delCookie,_ as doFn,Je as fireEvent,E as floatFixed,b as floatToPercent,ee as formatDate,An as genBrowserAttrs,Ne as genCustomConsole,X as genHashCode,g as genRndNumString,Ue as genStyleString,m as genUniqueNumString,h as generateRndNum,w as generateUniqueNum,me as getAllQueryParams,En as getBrowserInfo,hn as getCLS,en as getCookie,oe as getCurrentVersion,We as getDefineListeners,Ee as getDomain,ln as getFCP,gn as getFID,pn as getFP,Q as getFileSize,x as getFriendlyInterval,be as getHashQueryParam,vn as getLCP,Xe as getLocalStorage,Ze as getPageMeta,wn as getPerformance,he as getQueryParam,xe as getScriptQueryParam,Ke as getSessionStorage,mn as getTTFB,Te as getUrlFileType,ke as getUrlHost,we as getUrlParam,je as getUrlPath,Be as hasClass,ge as inRate,Ye as invokeEvent,M as invokeFn,D as isArray,R as isBool,C as isBoolean,se as isBrowser,j as isFunction,ve as isHit,p as isJSONString,v as isJsonString,P as isNonEmptyArray,L as isNonEmptyObject,O as isNumber,k as isPureObject,bn as isSafePWAEnv,N as isString,Tn as isSupportWebp,dn as isSupportedEntryType,B as isUdfOrNul,K as isValidData,te as isValidEmail,Se as isValidHttpUrl,ne as isValidPhoneNumber,Ae as isValidUrl,on as loadCSS,sn as loadImage,un as loadScript,fn as loadScriptIfUndefined,le as longestComSubsequence,fe as longestComSubstring,y as mNow,l as mTrim,Re as mazeyCon,I as newLine,Fe as removeClass,tn as removeCookie,He as removeEvent,z as removeHTML,q as removeHtml,ie as repeatUntilConditionMet,_e as replaceHttp,$ as sanitizeInput,Le as setClass,nn as setCookie,ze as setImgSizeBySrc,qe as setImgWidHeiBySrc,Qe as setLocalStorage,Ge as setSessionStorage,ue as sleep,A as throttle,Ce as timeCon,Y as truncateZHString,V as unsanitize,W as unsanitizeInput,ye as updateQueryParam,ae as waitTime,cn as windowLoaded,G 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{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,u)}c((r=r.apply(e,n||[])).next())}))}function t(e,n){var t,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(u){return function(c){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(t=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(e,i)}catch(e){u=[6,e],r=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}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 u(e){var n=e.replace(/-([a-z])/g,(function(e,n){return n.toUpperCase()}));return n.endsWith("-")?n.slice(0,-1):n}function c(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 e.replace(/_([a-z])/g,(function(e,n){return n.toUpperCase()}))}function d(e){return s(e)}function l(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 p(e){try{if("object"==typeof JSON.parse(e))return!0}catch(e){}return!1}function v(e){return p(e)}function g(e){void 0===e&&(e=5);for(var n="";e--;)n+=Math.floor(10*Math.random());return n}function h(e){return void 0===e&&(e=5),g(e)}function m(e){void 0===e&&(e=3);var n=[y(),h(e||3)];return n[0]+n[1]}function w(e){return void 0===e&&(e=3),m(e)}function y(){return Date.now?Date.now():(new Date).getTime()}function b(e,n){void 0===n&&(n=0);var t="";return t=n?(100*e).toFixed(n):String(Math.floor(100*e)),"".concat(t,"%")}function E(e,n){return void 0===n&&(n=0),parseFloat(e).toFixed(n)}function A(e,n,t){void 0===t&&(t={}),t=Object.assign({},t);var r=null,o=null,i=null,a=[null,0],u=a[0],c=a[1],s=function(){c=!1===t.leading?0:y(),i=null,u=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=y();c||!1!==t.leading||(c=d);var l=n-(d-c);return r=this,o=a,l<=0||l>n?(i&&(clearTimeout(i),i=null),c=d,u=e.apply(r,o),i||(r=o=null)):i||!1===t.trailing||(i=setTimeout(s.bind(r),l)),u}}function S(e,n,t){var r=null,o=null,i=null,a=null,u=null,c=function(){var s=y()-i;s<n&&s>=0?o=setTimeout(c,n-s):(o=null,t||(u=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=y();var d=t&&!o;return o||(o=setTimeout(c,n)),d&&(u=e.apply(r,a),r=a=null),u}}"function"==typeof SuppressedError&&SuppressedError;var T={type:"d"};function x(e,n,t){void 0===e&&(e=0),void 0===n&&(n=0),void 0===t&&(t=T);var r=(t=Object.assign(T,t)).type,o=decodeURIComponent;O(e)||(e=new Date(e).getTime()),O(n)||(n=new Date(n).getTime());var i=Number(n)-Number(e),a="",u=new Array(4).fill(0),c=u[0],s=(u[1],u[2],u[3]),f=o("%20%E5%A4%A9%20"),d=o("%20%E6%97%B6%20"),l=o("%20%E5%88%86%20"),p=o("%20%E7%A7%92");if(i>=0)switch(c=Math.floor(i/1e3/60/60/24),Math.floor(i/1e3/60/60),Math.floor(i/1e3/60),s=Math.floor(i/1e3),r){case"d":a=c;break;case"text":a=(c=Math.floor(i/1e3/60/60/24))+f+Math.floor(i/1e3/60/60%24)+d+Math.floor(i/1e3/60%60)+l+(s=Math.floor(i/1e3%60))+p;break;default:a=s}return a}function O(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 _(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return M.apply(void 0,r([e],n,!1))}function P(e){var n=!1;return Array.isArray(e)&&e.length&&(n=!0),n}function k(e){var n=Boolean(e),t="object"==typeof e,r="[object Object]"===Object.prototype.toString.call(e);return n&&t&&r}function j(e){return"function"==typeof e}function N(e){return"string"==typeof e}function R(e){return"boolean"==typeof e}function C(e){return R(e)}function B(e){return null==e}function D(e){return"[object Array]"===Object.prototype.toString.call(e)}function L(e){return!!k(e)&&0!==Object.keys(e).length}function I(e){if(!e)return"";var n=new RegExp("\\n","g");return e.replace(n,"<br />")}function F(e){return I(e)}function z(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 q(e,n){return void 0===n&&(n={}),z(e,n)}function U(e,n){return void 0===n&&(n={}),z(e,n)}function Z(e,n){return void 0===n&&(n={}),z(e,n)}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]}))}function W(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 V(e){return W(e)}function J(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="",u=e.replace(i,"**").length,c=0;c<u&&(null!=(a=e.charAt(c).toString()).match(i)?r+=2:r++,!(r>n));c++)o+=a;return t.hasDot&&u>n&&(o+=t.dotText),o}return""}function Y(e,n,t){return void 0===t&&(t=!1),J(e,n,{hasDot:t})}function H(e,n,t){return void 0===t&&(t=!1),Y(e,n,t)}function G(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 K(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 Q(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 X(e){var n,t=0;for(n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function ee(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 ne(e){return/^1\d{10}$/.test(e)}function te(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 re(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 oe(){return"v4"}function ie(e,r,o){var i=this;void 0===r&&(r={}),void 0===o&&(o=function(e){return!0===e});var a=r.interval,u=void 0===a?1e3:a,c=r.times,s=void 0===c?10:c,f=r.context,d=r.args,l=0,p=function(){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]:(p(),[2])}}))}))}),u)};"function"!=typeof e&&console.error("Expected a function."),("number"!=typeof u||u<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof s||s<0)&&console.error("Expected a non-negative number for times."),p()}function ae(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 ue(e){return n(this,void 0,void 0,(function(){return t(this,(function(n){return[2,ae(e)]}))}))}var ce="";function se(){if(ce)return"browser"===ce;var e="undefined"!=typeof window;return e&&(ce="browser"),e}function fe(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 u=0;u<r;++u)if(e[a]===n[u]){var c=0;a>0&&u>0&&(c=i[a-1][u-1]),i[a][u]=c+1}var s=Array.prototype.concat.apply([],i);return Math.max.apply(Math,s)}function de(e,n){return fe(e,n)}function le(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 u=0;u<r;++u)if(e[a]===n[u]){var c=0;a>0&&u>0&&(c=i[a-1][u-1]),i[a][u]=c+1}else{var s=[0,0],f=s[0],d=s[1];u>0&&(f=i[a][u-1]),a>0&&(d=i[a-1][u]),i[a][u]=Math.max(f,d)}var l=Array.prototype.concat.apply([],i);return Math.max.apply(Math,l)}function pe(e,n){return le(e,n)}function ve(e){return Math.random()<e}function ge(e){return ve(e)}function he(e){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),t=location.search.substring(1).match(n);return null!==t?decodeURIComponent(t[2]):""}function me(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 we(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 ye(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 be(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 Ee(e,n){if(void 0===n&&(n=["hostname"]),Pe(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 Ae(e){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5\u3002\uff1b\uff0c\uff1a\u201c\u201d\uff08\uff09\u3001\uff1f\u300a\u300b()!@:%_+.~#?&//=]*)$/.test(e)}function Se(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 Te(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 xe(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 Oe(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 Me(e){return e.replace(/^http:/,"https:")}function _e(e){return Me(e)}function Pe(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 ke(e){var n="";(!Se(e)&&Se(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),Pe(e))&&(n=new URL(e).host);return n}function je(e){var n="";(!Se(e)&&Se(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),Pe(e))&&(n=new URL(e).pathname);return n}var Ne={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",isStringifyObject:!1,logFn:function(){},errorFn:function(){}};function Re(n,t){void 0===n&&(n=""),void 0===t&&(t=e({},Ne));var o=Object.assign(e({},Ne),t),i=o.isClosed,a=o.showWrap,u=o.showDate,c=o.locales,s=o.isStringifyObject,f=o.logFn,d=o.errorFn,l=Object.create(null),p=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(e){l[e]=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(i)return!1;var c=n,l=n;if("string"==typeof n&&n.length>=2){var v=n.length;c=":"===n[v-1]?n.substring(0,v-1):n}a&&console.log("--- ".concat(c," - begin ---")),u&&(l=n?"".concat(p()," ").concat(n):"".concat(p())),s&&(t=t.map((function(e){return k(e)?JSON.stringify(e):e}))),n||u?console[e].apply(console,r([l],t,!1)):console[e].apply(console,t),"log"===e&&f(),"error"===e&&d(),a&&console.log("--- ".concat(c," - end ---"))}})),l}var Ce=Re("[Mazey]"),Be=Re("",{showDate:!0,locales:"zh-CN",isStringifyObject:!0});function De(e,n){if(!e)return Ce.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 Le(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 Ce.error("The element is not exist.")}function Ie(e,n){Le(e,n)}function Fe(e,n){var t;e?(t=(t=(t=(t=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+n+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=t):Ce.error("The element is not exist.")}function ze(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 qe(){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&&P(r)&&r[1]&&e.width(r[1]),o&&P(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&&P(r)&&r[1]&&(n.style.width=r[1]),o&&P(o)&&o[1]&&(n.style.height=o[1])}}})),!0)}function Ue(){return qe()}function Ze(e,n){var t="";return n&&n.length>0&&(t=n.join(";")+";"),"".concat(e,"{").concat(t,"}")}function $e(e){var n;return document.querySelector&&(null===(n=document.querySelector('meta[name="'.concat(e,'"]')))||void 0===n?void 0:n.getAttribute("content"))||""}function We(e){var n=e||window.event;n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function Ve(){var e=window.MAZEY_DEFINE_LISTENERS;return"object"!=typeof e&&(e={},window.MAZEY_DEFINE_LISTENERS=e),e}function Je(e,n){var t=Ve();void 0===t[e]&&(t[e]=[]),"function"==typeof n&&t[e].push(n)}function Ye(e,n){var t=Ve()[e];if(t instanceof Array)for(var r=0,o=t.length;r<o;r++)"function"==typeof t[r]&&(void 0===n?t[r]():t[r](n))}function He(e){Ye(e)}function Ge(e,n){var t=Ve(),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 Ke(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 Xe(e,n){void 0===n&&(n=null),e&&localStorage.setItem(e,JSON.stringify(n))}function en(e){var n=null;if(e){var t=localStorage.getItem(e);t&&(n=JSON.parse(t))}return n}function nn(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 tn(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 u=location.host;1===u.split(".").length?document.cookie=e+"="+n+i+"; path=/":((o=u.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+n+i+"; path=/; domain="+r,null!==nn(e)&&nn(e)===n||(r=r||"."+u,document.cookie=e+"="+n+i+"; path=/; domain="+r))}function rn(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 on(e){rn(e)}function an(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")},u=document.createElement("link");u||o(new Error("Not support create link element"));var c="onload"in u,s=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(u.rel="stylesheet",u.type="text/css",u.href=e,void 0!==r&&(u.id=r),document.getElementsByTagName("head")[0].appendChild(u),s||!c)return setTimeout((function(){d(u,a,0)}),1),i;function f(){u&&(u.onload=u.onerror=u.onreadystatechange=null),u=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 c?(u.onload=f,u.onerror=function(){f()}):u.onreadystatechange=function(){u&&/loaded|complete/.test(u.readyState)&&f()},i}var un={id:"",callback:function(){},timeout:5e3,isDefer:!1,isAsync:!1,isCrossOrigin:!1,attributes:null};function cn(n,t){void 0===t&&(t=e({},un));var r,o,i=Object.assign(e({},un),t),a=i.id,u=i.callback,c=i.timeout,s=i.isDefer,f=i.isAsync,d=i.isCrossOrigin,l=i.attributes,p=document.createElement("script");p||Promise.reject("Not support create script element");var v=document.getElementsByTagName("script")[0];return p.type="text/javascript",s&&(p.defer=!0),f&&(p.async=!0),d&&(p.crossOrigin="anonymous"),a&&(p.id=a),l&&Object.keys(l).forEach((function(e){p.setAttribute(e,l[e])})),p.readyState?p.onreadystatechange=function(){"loaded"!==p.readyState&&"complete"!==p.readyState||(p.onreadystatechange=null,_(u),_(r,"loaded"))}:p.onload=function(){_(u),_(r,"loaded")},p.src=n,v&&v.parentNode.insertBefore(p,v),new Promise((function(e,n){var t;r=(t=[e,n])[0],o=t[1],c&&setTimeout(o.bind(null,"timeout"),c)}))}function sn(e){void 0===e&&(e=3e4);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"))}),e),r}function fn(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 dn(e,n){return window[e]?Promise.resolve("defined"):cn(n)}function ln(e){var n=[],t=window.PerformanceObserver;return!!t&&(P(t.supportedEntryTypes)&&(n=t.supportedEntryTypes),n.includes(e))}function pn(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return ln("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 vn(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return ln("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 gn(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return ln("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 hn(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return ln("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 mn(){return n(this,void 0,void 0,(function(){return t(this,(function(e){return ln("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 O(n.value)&&(t=n.value),e+t}),0);n.disconnect(),e(r)}));n.observe({type:"layout-shift",buffered:!0})}))]:[2,0]}))}))}function wn(){return n(this,void 0,void 0,(function(){var e,n;return t(this,(function(t){return ln("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 yn(e){return void 0===e&&(e=!1),n(this,void 0,void 0,(function(){function n(){var n={source:I,os:r(),osVersion:o(),deviceType:i(),network:a(),screenDirection:u(),unloadTime:h-m,redirectTime:w-y,dnsTime:b-E,tcpTime:A-S,sslTime:c(A,T),responseTime:x-M,downloadTime:_-x,firstPaintTime:q,firstContentfulPaintTime:U,domReadyTime:k-F,onloadTime:j-F,whiteTime:x-F,renderTime:N-F,decodedBodySize:B,encodedBodySize:D};Object.keys(n).forEach((function(e){O(n[e])&&(n[e]<0?n[e]=0:n[e]=Math.round(n[e]))})),O(n.whiteTime)&&n.whiteTime>n.onloadTime&&(n.whiteTime=0);var t={};e||Object.keys(n).forEach((function(e){t[d(e)]=n[e]})),Object.keys(t).length?f(t):f(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",u=n.match(/android/i)&&"android",c=n.match(/windows ce/i)&&"windows ce",s=n.match(/windows mobile/i)&&"windows mobile";return(e=t||r||o||i||a||u||c||s?r||o||i||a||u||c||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 u(){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 c(e,n){var t=0;return n&&(t=e-n),t}var s,f,l,p,v,g,h,m,w,y,b,E,A,S,T,x,M,_,k,j,N,R,C,B,D,L,I,F,z,q,U;return t(this,(function(e){switch(e.label){case 0:if(!ln("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){f=[e][0]})),p=null,P(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],x=g[9],M=g[10],_=g[11],k=g[12],j=g[13],N=g[14],R=g[15],C=g[16],B=g[17],D=g[18],L=s.timing,I="",p)I="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,x=p.responseStart,M=p.requestStart,_=p.responseEnd,k=p.domContentLoadedEventStart,j=p.loadEventStart,N=p.loadEventEnd,R=p.startTime,C=p.fetchStart;else{if(!L)return[2,Promise.reject(new Error("NavigationTiming and Timing are not supported"))];I="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,x=L.responseStart,M=L.requestStart,_=L.responseEnd,k=L.domContentLoadedEventStart,j=L.loadEventStart,N=L.loadEventEnd,R=L.navigationStart,C=L.fetchStart}if(F=0,O(R))F=R;else{if(!O(C))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];F=C}return[4,Promise.all([vn(),pn()])];case 1:return z=e.sent(),q=z[0],U=z[1],O(N)&&N>0?n():window.addEventListener("load",(function(){window.setTimeout((function(){n()}),0)})),[2,l]}}))}))}var bn="";function En(){if(bn)return"pwa"===bn;var e=An();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?(bn="pwa",!0):(bn="no-pwa",!1)}function An(){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&&P(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 u="";"windows"===i?r(/windows nt 5.0|windows 2000/g)?u="2000":r(/windows nt 5.1|windows xp/g)?u="xp":r(/windows nt 5.2|windows 2003/g)?u="2003":r(/windows nt 6.0|windows vista/g)?u="vista":r(/windows nt 6.1|windows 7/g)?u="7":r(/windows nt 6.2|windows 8/g)?u="8":r(/windows nt 6.3|windows 8.1/g)?u="8.1":r(/windows nt 10.0|windows 10/g)&&(u="10"):"macos"===i?u=o(/os x [\d._]+/g):"android"===i?u=o(/android [\d._]+/g):"ios"===i&&(u=o(/os [\d._]+/g)),n=e(e({},n),{systemVs:u});var c="";"windows"===i||"macos"===i||"linux"===i?c="desktop":("android"===i||"ios"===i||r(/mobile/g))&&(c="mobile"),n=e(e({},n),{platform:c});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 Ce.warn(e),n}}function Sn(e,n){void 0===e&&(e=""),void 0===n&&(n="-");var t=An(),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 Tn="";function xn(){if(Tn)return Promise.resolve("webp"===Tn);return new Promise((function(e){var n=new Image;n.onload=function(){var t=n.width>0&&n.height>0;Tn=t?"webp":"no-webp",e(t)},n.onerror=function(){Tn="no-webp",e(!1)},n.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))}export{Le as addClass,Je as addEvent,ze as addStyle,pe as calLongestCommonSubsequence,de as calLongestCommonSubstring,d as camelCase2Underscore,c as camelCaseToKebabCase,We as cancelBubble,U as clearHTML,Z as clearHtml,re as convert10To26,a as convertCamelToKebab,s as convertCamelToUnder,Me as convertHttpToHttps,u as convertKebabToCamel,Oe as convertObjectToQuery,I as convertToHtmlBreaks,f as convertUnderToCamel,H as cutCHSString,J as cutZHString,S as debounce,o as deepCopy,i as deepCopyObject,on as delCookie,_ as doFn,Ye as fireEvent,E as floatFixed,b as floatToPercent,ee as formatDate,Sn as genBrowserAttrs,Re as genCustomConsole,X as genHashCode,g as genRndNumString,Ze as genStyleString,m as genUniqueNumString,h as generateRndNum,w as generateUniqueNum,me as getAllQueryParams,An as getBrowserInfo,mn as getCLS,nn as getCookie,oe as getCurrentVersion,Ve as getDefineListeners,Ee as getDomain,pn as getFCP,hn as getFID,vn as getFP,Q as getFileSize,x as getFriendlyInterval,be as getHashQueryParam,gn as getLCP,en as getLocalStorage,$e as getPageMeta,yn as getPerformance,he as getQueryParam,xe as getScriptQueryParam,Qe as getSessionStorage,wn as getTTFB,Te as getUrlFileType,ke as getUrlHost,we as getUrlParam,je as getUrlPath,De as hasClass,ge as inRate,He as invokeEvent,M as invokeFn,D as isArray,R as isBool,C as isBoolean,se as isBrowser,j as isFunction,ve as isHit,p as isJSONString,v as isJsonString,P as isNonEmptyArray,L as isNonEmptyObject,O as isNumber,k as isPureObject,En as isSafePWAEnv,N as isString,xn as isSupportWebp,ln as isSupportedEntryType,B as isUdfOrNul,K as isValidData,te as isValidEmail,Se as isValidHttpUrl,ne as isValidPhoneNumber,Ae as isValidUrl,an as loadCSS,fn as loadImage,cn as loadScript,dn as loadScriptIfUndefined,le as longestComSubsequence,fe as longestComSubstring,y as mNow,l as mTrim,Ce as mazeyCon,F as newLine,Fe as removeClass,rn as removeCookie,Ge as removeEvent,z as removeHTML,q as removeHtml,ie as repeatUntilConditionMet,_e as replaceHttp,$ as sanitizeInput,Ie as setClass,tn as setCookie,qe as setImgSizeBySrc,Ue as setImgWidHeiBySrc,Xe as setLocalStorage,Ke as setSessionStorage,ue as sleep,A as throttle,Be as timeCon,Y as truncateZHString,V as unsanitize,W as unsanitizeInput,ye as updateQueryParam,ae as waitTime,sn as windowLoaded,G as zAxiosIsValidRes};
package/lib/load.d.ts CHANGED
@@ -7,6 +7,8 @@ import type { MazeyFnParams, MazeyFnReturn, LoadScriptReturns } from "./typing";
7
7
  * Usage:
8
8
  *
9
9
  * ```javascript
10
+ * import { loadCSS } from "mazey";
11
+ *
10
12
  * loadCSS(
11
13
  * "http://example.com/path/example.css",
12
14
  * {
@@ -47,6 +49,8 @@ export declare function loadCSS(url: string, options?: {
47
49
  * Usage:
48
50
  *
49
51
  * ```javascript
52
+ * import { loadScript } from "mazey";
53
+ *
50
54
  * loadScript(
51
55
  * "http://example.com/static/js/plugin-2.1.1.min.js",
52
56
  * {
@@ -100,6 +104,8 @@ export declare function loadScript(url: string, options?: {
100
104
  * Usage:
101
105
  *
102
106
  * ```javascript
107
+ * import { windowLoaded } from "mazey";
108
+ *
103
109
  * windowLoaded()
104
110
  * .then(res => {
105
111
  * console.log(`Load Success: ${res}`);
@@ -115,7 +121,7 @@ export declare function loadScript(url: string, options?: {
115
121
  * Load Success: load
116
122
  * ```
117
123
  *
118
- * @param {number} timeout 超时时间 / 单位:秒
124
+ * @param {number} timeout 超时时间 / 单位:毫秒,默认:30000(30 秒)
119
125
  * @returns {Promise<string>} document is loaded? "complete" "load" / "timeout"
120
126
  * @category Load
121
127
  */
@@ -130,6 +136,8 @@ export declare function windowLoaded(timeout?: number): Promise<string | Error>;
130
136
  * Usage:
131
137
  *
132
138
  * ```javascript
139
+ * import { loadImage } from "mazey";
140
+ *
133
141
  * loadImage("https://example.com/example.png")
134
142
  * .then((img) => {
135
143
  * console.log(img);
@@ -150,6 +158,8 @@ export declare function loadImage(url: string): Promise<HTMLImageElement>;
150
158
  * Usage:
151
159
  *
152
160
  * ```javascript
161
+ * import { loadScriptIfUndefined } from "mazey";
162
+ *
153
163
  * loadScriptIfUndefined("xyz", "https://example.com/lib/xyz.min.js")
154
164
  * .then(() => {
155
165
  * console.log("xyz is loaded.");
package/lib/load.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../src/load.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAChD,MAAM,UAAU,CAAC;AAGlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAe,GAAG,OAAO,CAAC,OAAO,CAAC,CAyG5F;AAcD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IACP,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,aAAa,KAAK,aAAa,CAAC;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAG5C,GACA,iBAAiB,CAyDnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAAC,OAAO,SAAK,GAAG,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC,CAelE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAWhE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,qBAAqB,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAK7F"}
1
+ {"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../src/load.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAChD,MAAM,UAAU,CAAC;AAGlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAe,GAAG,OAAO,CAAC,OAAO,CAAC,CAyG5F;AAcD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IACP,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,aAAa,KAAK,aAAa,CAAC;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAG5C,GACA,iBAAiB,CAyDnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,YAAY,CAAC,OAAO,SAAQ,GAAG,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC,CAerE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAWhE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,qBAAqB,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAK7F"}
package/lib/mazey.min.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Mazey v4.7.10 https://github.com/mazeyqian/mazey
3
- * (c) 2018-2024 Cheng
2
+ * Mazey v4.7.12 https://github.com/mazeyqian/mazey
3
+ * (c) 2018-2025 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{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,u)}c((r=r.apply(e,n||[])).next())}))}function r(e,n){var t,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(u){return function(c){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(t=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(e,i)}catch(e){u=[6,e],r=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}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 u(e){var n=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===n[0]?n.substring(1):n}function c(e){return u(e)}function s(e){try{if("object"==typeof JSON.parse(e))return!0}catch(e){}return!1}function f(e){void 0===e&&(e=5);for(var n="";e--;)n+=Math.floor(10*Math.random());return n}function l(e){return void 0===e&&(e=5),f(e)}function d(e){void 0===e&&(e=3);var n=[p(),l(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){return"boolean"==typeof e}function S(e){if(!e)return"";var n=new RegExp("\\n","g");return e.replace(n,"<br />")}function E(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 A(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="",u=e.replace(i,"**").length,c=0;c<u&&(null!=(a=e.charAt(c).toString()).match(i)?r+=2:r++,!(r>n));c++)o+=a;return t.hasDot&&u>n&&(o+=t.dotText),o}return""}function x(e,n,t){return void 0===t&&(t=!1),T(e,n,{hasDot:t})}function O(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 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 u=0;u<r;++u)if(e[a]===n[u]){var c=0;a>0&&u>0&&(c=o[a-1][u-1]),o[a][u]=c+1}var s=Array.prototype.concat.apply([],o);return Math.max.apply(Math,s)}function M(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 u=0;u<r;++u)if(e[a]===n[u]){var c=0;a>0&&u>0&&(c=o[a-1][u-1]),o[a][u]=c+1}else{var s=[0,0],f=s[0],l=s[1];u>0&&(f=o[a][u-1]),a>0&&(l=o[a-1][u]),o[a][u]=Math.max(f,l)}var d=Array.prototype.concat.apply([],o);return Math.max.apply(Math,d)}function k(e){return Math.random()<e}function N(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 _(e){return e.replace(/^http:/,"https:")}function j(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,u=t.locales,c=t.logFn,s=t.errorFn,f=Object.create(null),l=function(){return(new Date).toLocaleDateString(u,{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=[],u=0;u<arguments.length;u++)t[u]=arguments[u];if(r)return!1;var f=e,d=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&&(d=e?"".concat(l()," ").concat(e):"".concat(l())),e||a?console[n].apply(console,o([d],t,!1)):console[n].apply(console,t),"log"===n&&c(),"error"===n&&s(),i&&console.log("--- ".concat(f," - end ---"))}})),f}var B=R("[Mazey]"),L=R("",{showDate:!0,locales:"zh-CN"});function F(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 B.error("The element is not exist.")}function U(){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 D(){var e=window.MAZEY_DEFINE_LISTENERS;return"object"!=typeof e&&(e={},window.MAZEY_DEFINE_LISTENERS=e),e}function I(e,n){var t=D()[e];if(t instanceof Array)for(var r=0,o=t.length;r<o;r++)"function"==typeof t[r]&&(void 0===n?t[r]():t[r](n))}function z(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 q(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}var H={id:"",callback:function(){},timeout:5e3,isDefer:!1,isAsync:!1,isCrossOrigin:!1,attributes:null};function Z(e,t){void 0===t&&(t=n({},H));var r,o,i=Object.assign(n({},H),t),a=i.id,u=i.callback,c=i.timeout,s=i.isDefer,f=i.isAsync,l=i.isCrossOrigin,d=i.attributes,p=document.createElement("script");p||Promise.reject("Not support create script element");var g=document.getElementsByTagName("script")[0];return p.type="text/javascript",s&&(p.defer=!0),f&&(p.async=!0),l&&(p.crossOrigin="anonymous"),a&&(p.id=a),d&&Object.keys(d).forEach((function(e){p.setAttribute(e,d[e])})),p.readyState?p.onreadystatechange=function(){"loaded"!==p.readyState&&"complete"!==p.readyState||(p.onreadystatechange=null,h(u),h(r,"loaded"))}:p.onload=function(){h(u),h(r,"loaded")},p.src=e,g&&g.parentNode.insertBefore(p,g),new Promise((function(e,n){var t;r=(t=[e,n])[0],o=t[1],c&&setTimeout(o.bind(null,"timeout"),c)}))}function V(e){var n=[],t=window.PerformanceObserver;return!!t&&(w(t.supportedEntryTypes)&&(n=t.supportedEntryTypes),n.includes(e))}function W(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return V("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 $(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return V("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 J="";function Q(){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 u="";"windows"===i?r(/windows nt 5.0|windows 2000/g)?u="2000":r(/windows nt 5.1|windows xp/g)?u="xp":r(/windows nt 5.2|windows 2003/g)?u="2003":r(/windows nt 6.0|windows vista/g)?u="vista":r(/windows nt 6.1|windows 7/g)?u="7":r(/windows nt 6.2|windows 8/g)?u="8":r(/windows nt 6.3|windows 8.1/g)?u="8.1":r(/windows nt 10.0|windows 10/g)&&(u="10"):"macos"===i?u=o(/os x [\d._]+/g):"android"===i?u=o(/android [\d._]+/g):"ios"===i&&(u=o(/os [\d._]+/g)),e=n(n({},e),{systemVs:u});var c="";"windows"===i||"macos"===i||"linux"===i?c="desktop":("android"===i||"ios"===i||r(/mobile/g))&&(c="mobile"),e=n(n({},e),{platform:c});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"),e=n(n({},e),{engine:s,supporter:f});var l="";"webkit"===s?l=o(/applewebkit\/[\d._]+/g):"gecko"===s?l=o(/gecko\/[\d._]+/g):"presto"===s?l=o(/presto\/[\d._]+/g):"trident"===s&&(l=o(/trident\/[\d._]+/g)),e=n(n({},e),{engineVs:l});var d="";"chrome"===f?d=o(/chrome\/[\d._]+/g):"safari"===f?d=o(/version\/[\d._]+/g):"firefox"===f?d=o(/firefox\/[\d._]+/g):"opera"===f?d=o(/opr\/[\d._]+/g):"iexplore"===f?d=o(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===f&&(d=o(/edge\/[\d._]+/g)),e=n(n({},e),{supporterVs:d});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 B.warn(n),e}}var Y="";return e.addClass=F,e.addEvent=function(e,n){var t=D();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 M(e,n)},e.calLongestCommonSubstring=function(e,n){return P(e,n)},e.camelCase2Underscore=c,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={}),E(e,n)},e.clearHtml=function(e,n){return void 0===n&&(n={}),E(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=u,e.convertHttpToHttps=_,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=S,e.convertUnderToCamel=function(e){return e.replace(/_([a-z])/g,(function(e,n){return n.toUpperCase()}))},e.cutCHSString=function(e,n,t){return void 0===t&&(t=!1),x(e,n,t)},e.cutZHString=T,e.debounce=function(e,n,t){var r=null,o=null,i=null,a=null,u=null,c=function(){var s=p()-i;s<n&&s>=0?o=setTimeout(c,n-s):(o=null,t||(u=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=p();var l=t&&!o;return o||(o=setTimeout(c,n)),l&&(u=e.apply(r,a),r=a=null),u}},e.deepCopy=i,e.deepCopyObject=function(e){return i(e)},e.delCookie=function(e){q(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=Q(),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=f,e.genStyleString=function(e,n){var t="";return n&&n.length>0&&(t=n.join(";")+";"),"".concat(e,"{").concat(t,"}")},e.genUniqueNumString=d,e.generateRndNum=l,e.generateUniqueNum=function(e){return void 0===e&&(e=3),d(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=Q,e.getCLS=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return V("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=z,e.getCurrentVersion=function(){return"v4"},e.getDefineListeners=D,e.getDomain=function(e,n){if(void 0===n&&(n=["hostname"]),j(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=W,e.getFID=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return V("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=$,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,o=decodeURIComponent;v(e)||(e=new Date(e).getTime()),v(n)||(n=new Date(n).getTime());var i=Number(n)-Number(e),a="",u=new Array(4).fill(0),c=u[0],s=(u[1],u[2],u[3]),f=o("%20%E5%A4%A9%20"),l=o("%20%E6%97%B6%20"),d=o("%20%E5%88%86%20"),p=o("%20%E7%A7%92");if(i>=0)switch(c=Math.floor(i/1e3/60/60/24),Math.floor(i/1e3/60/60),Math.floor(i/1e3/60),s=Math.floor(i/1e3),r){case"d":a=c;break;case"text":a=(c=Math.floor(i/1e3/60/60/24))+f+Math.floor(i/1e3/60/60%24)+l+Math.floor(i/1e3/60%60)+d+(s=Math.floor(i/1e3%60))+p;break;default:a=s}return a},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 V("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:U,os:t(),osVersion:o(),deviceType:i(),network:a(),screenDirection:u(),unloadTime:h-y,redirectTime:b-S,dnsTime:E-A,tcpTime:T-x,sslTime:s(T,O),responseTime:C-P,downloadTime:M-C,firstPaintTime:z,firstContentfulPaintTime:q,domReadyTime:k-D,onloadTime:N-D,whiteTime:C-D,renderTime:_-D,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[c(e)]=n[e]})),Object.keys(r).length?l(r):l(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",u=n.match(/android/i)&&"android",c=n.match(/windows ce/i)&&"windows ce",s=n.match(/windows mobile/i)&&"windows mobile";return(e=t||r||o||i||a||u||c||s?r||o||i||a||u||c||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 u(){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 f,l,d,p,g,m,h,y,b,S,E,A,T,x,O,C,P,M,k,N,_,j,R,B,L,F,U,D,I,z,q;return r(this,(function(e){switch(e.label){case 0:if(!V("navigation"))return[2,Promise.reject(new Error("navigation is not supported"))];if(!(f=window.performance)||"function"!=typeof f.getEntries||"function"!=typeof f.getEntriesByType)return[2,Promise.reject(new Error("performance is not supported"))];if(d=new Promise((function(e){l=[e][0]})),p=null,w(g=f.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],A=m[5],T=m[6],x=m[7],O=m[8],C=m[9],P=m[10],M=m[11],k=m[12],N=m[13],_=m[14],j=m[15],R=m[16],B=m[17],L=m[18],F=f.timing,U="",p)U="PerformanceNavigationTiming",B=p.decodedBodySize,L=p.encodedBodySize,h=p.unloadEventEnd,y=p.unloadEventStart,b=p.redirectEnd,S=p.redirectStart,E=p.domainLookupEnd,A=p.domainLookupStart,T=p.connectEnd,x=p.connectStart,O=p.secureConnectionStart,C=p.responseStart,P=p.requestStart,M=p.responseEnd,k=p.domContentLoadedEventStart,N=p.loadEventStart,_=p.loadEventEnd,j=p.startTime,R=p.fetchStart;else{if(!F)return[2,Promise.reject(new Error("NavigationTiming and Timing are not supported"))];U="PerformanceTiming",h=F.unloadEventEnd,y=F.unloadEventStart,b=F.redirectEnd,S=F.redirectStart,E=F.domainLookupEnd,A=F.domainLookupStart,T=F.connectEnd,x=F.connectStart,O=F.secureConnectionStart,C=F.responseStart,P=F.requestStart,M=F.responseEnd,k=F.domContentLoadedEventStart,N=F.loadEventStart,_=F.loadEventEnd,j=F.navigationStart,R=F.fetchStart}if(D=0,v(j))D=j;else{if(!v(R))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];D=R}return[4,Promise.all([$(),W()])];case 1:return I=e.sent(),z=I[0],q=I[1],v(_)&&_>0?n():window.addEventListener("load",(function(){window.setTimeout((function(){n()}),0)})),[2,d]}}))}))},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 V("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!N(e)&&N(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),j(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!N(e)&&N(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),j(e)&&(n=new URL(e).pathname),n},e.hasClass=function(e,n){if(!e)return B.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 k(e)},e.invokeEvent=function(e){I(e)},e.invokeFn=m,e.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},e.isBool=b,e.isBoolean=function(e){return b(e)},e.isBrowser=function(){if(C)return"browser"===C;var e="undefined"!=typeof window;return e&&(C="browser"),e},e.isFunction=function(e){return"function"==typeof e},e.isHit=k,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(J)return"pwa"===J;var e=Q();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?(J="pwa",!0):(J="no-pwa",!1)},e.isString=function(e){return"string"==typeof e},e.isSupportWebp=function(){return Y?Promise.resolve("webp"===Y):new Promise((function(e){var n=new Image;n.onload=function(){var t=n.width>0&&n.height>0;Y=t?"webp":"no-webp",e(t)},n.onerror=function(){Y="no-webp",e(!1)},n.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},e.isSupportedEntryType=V,e.isUdfOrNul=function(e){return null==e},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=N,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\u3002\uff1b\uff0c\uff1a\u201c\u201d\uff08\uff09\u3001\uff1f\u300a\u300b()!@:%_+.~#?&//=]*)$/.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")},u=document.createElement("link");u||o(new Error("Not support create link element"));var c="onload"in u,s=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(u.rel="stylesheet",u.type="text/css",u.href=e,void 0!==r&&(u.id=r),document.getElementsByTagName("head")[0].appendChild(u),s||!c)return setTimeout((function(){l(u,a,0)}),1),i;function f(){u&&(u.onload=u.onerror=u.onreadystatechange=null),u=null,a()}function l(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():l(e,n,t)}),20)}}return c?(u.onload=f,u.onerror=function(){f()}):u.onreadystatechange=function(){u&&/loaded|complete/.test(u.readyState)&&f()},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=M,e.longestComSubstring=P,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=B,e.newLine=function(e){return S(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):B.error("The element is not exist.")},e.removeCookie=q,e.removeEvent=function(e,n){var t=D(),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=E,e.removeHtml=function(e,n){return void 0===n&&(n={}),E(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,u=void 0===a?1e3:a,c=n.times,s=void 0===c?10:c,f=n.context,l=n.args,d=0,p=function(){setTimeout((function(){return t(i,void 0,void 0,(function(){var n;return r(this,(function(t){switch(t.label){case 0:return[4,e.apply(f,l)];case 1:return n=t.sent(),o(n)||++d>=s?[2]:(p(),[2])}}))}))}),u)};"function"!=typeof e&&console.error("Expected a function."),("number"!=typeof u||u<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof s||s<0)&&console.error("Expected a non-negative number for times."),p()},e.replaceHttp=function(e){return _(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){F(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 u=location.host;1===u.split(".").length?document.cookie=e+"="+n+i+"; path=/":((o=u.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+n+i+"; path=/; domain="+r,null!==z(e)&&z(e)===n||(r=r||"."+u,document.cookie=e+"="+n+i+"; path=/; domain="+r))},e.setImgSizeBySrc=U,e.setImgWidHeiBySrc=function(){return U()},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,O(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],u=a[0],c=a[1],s=function(){c=!1===t.leading?0:p(),i=null,u=e.apply(this,o),i||(r=o=null)};return function(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];var l=p();c||!1!==t.leading||(c=l);var d=n-(l-c);return r=this,o=a,d<=0||d>n?(i&&(clearTimeout(i),i=null),c=l,u=e.apply(r,o),i||(r=o=null)):i||!1===t.trailing||(i=setTimeout(s.bind(r),d)),u}},e.timeCon=L,e.truncateZHString=x,e.unsanitize=function(e){return A(e)},e.unsanitizeInput=A,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=O,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{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,u)}c((r=r.apply(e,n||[])).next())}))}function r(e,n){var t,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(u){return function(c){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(t=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(e,i)}catch(e){u=[6,e],r=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}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 u(e){var n=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===n[0]?n.substring(1):n}function c(e){return u(e)}function s(e){try{if("object"==typeof JSON.parse(e))return!0}catch(e){}return!1}function f(e){void 0===e&&(e=5);for(var n="";e--;)n+=Math.floor(10*Math.random());return n}function d(e){return void 0===e&&(e=5),f(e)}function l(e){void 0===e&&(e=3);var n=[g(),d(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){return"boolean"==typeof e}function S(e){if(!e)return"";var n=new RegExp("\\n","g");return e.replace(n,"<br />")}function E(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 A(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="",u=e.replace(i,"**").length,c=0;c<u&&(null!=(a=e.charAt(c).toString()).match(i)?r+=2:r++,!(r>n));c++)o+=a;return t.hasDot&&u>n&&(o+=t.dotText),o}return""}function O(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 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 u=0;u<r;++u)if(e[a]===n[u]){var c=0;a>0&&u>0&&(c=o[a-1][u-1]),o[a][u]=c+1}var s=Array.prototype.concat.apply([],o);return Math.max.apply(Math,s)}function M(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 u=0;u<r;++u)if(e[a]===n[u]){var c=0;a>0&&u>0&&(c=o[a-1][u-1]),o[a][u]=c+1}else{var s=[0,0],f=s[0],d=s[1];u>0&&(f=o[a][u-1]),a>0&&(d=o[a-1][u]),o[a][u]=Math.max(f,d)}var l=Array.prototype.concat.apply([],o);return Math.max.apply(Math,l)}function k(e){return Math.random()<e}function N(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 _(e){return e.replace(/^http:/,"https:")}function j(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}}var R={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",isStringifyObject:!1,logFn:function(){},errorFn:function(){}};function B(e,t){void 0===e&&(e=""),void 0===t&&(t=n({},R));var r=Object.assign(n({},R),t),i=r.isClosed,a=r.showWrap,u=r.showDate,c=r.locales,s=r.isStringifyObject,f=r.logFn,d=r.errorFn,l=Object.create(null),g=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){l[n]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(i)return!1;var c=e,l=e;if("string"==typeof e&&e.length>=2){var p=e.length;c=":"===e[p-1]?e.substring(0,p-1):e}a&&console.log("--- ".concat(c," - begin ---")),u&&(l=e?"".concat(g()," ").concat(e):"".concat(g())),s&&(t=t.map((function(e){return y(e)?JSON.stringify(e):e}))),e||u?console[n].apply(console,o([l],t,!1)):console[n].apply(console,t),"log"===n&&f(),"error"===n&&d(),a&&console.log("--- ".concat(c," - end ---"))}})),l}var L=B("[Mazey]"),F=B("",{showDate:!0,locales:"zh-CN",isStringifyObject:!0});function I(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 L.error("The element is not exist.")}function U(){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 D(){var e=window.MAZEY_DEFINE_LISTENERS;return"object"!=typeof e&&(e={},window.MAZEY_DEFINE_LISTENERS=e),e}function z(e,n){var t=D()[e];if(t instanceof Array)for(var r=0,o=t.length;r<o;r++)"function"==typeof t[r]&&(void 0===n?t[r]():t[r](n))}function q(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 H(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}var Z={id:"",callback:function(){},timeout:5e3,isDefer:!1,isAsync:!1,isCrossOrigin:!1,attributes:null};function V(e,t){void 0===t&&(t=n({},Z));var r,o,i=Object.assign(n({},Z),t),a=i.id,u=i.callback,c=i.timeout,s=i.isDefer,f=i.isAsync,d=i.isCrossOrigin,l=i.attributes,g=document.createElement("script");g||Promise.reject("Not support create script element");var p=document.getElementsByTagName("script")[0];return g.type="text/javascript",s&&(g.defer=!0),f&&(g.async=!0),d&&(g.crossOrigin="anonymous"),a&&(g.id=a),l&&Object.keys(l).forEach((function(e){g.setAttribute(e,l[e])})),g.readyState?g.onreadystatechange=function(){"loaded"!==g.readyState&&"complete"!==g.readyState||(g.onreadystatechange=null,h(u),h(r,"loaded"))}:g.onload=function(){h(u),h(r,"loaded")},g.src=e,p&&p.parentNode.insertBefore(g,p),new Promise((function(e,n){var t;r=(t=[e,n])[0],o=t[1],c&&setTimeout(o.bind(null,"timeout"),c)}))}function W(e){var n=[],t=window.PerformanceObserver;return!!t&&(w(t.supportedEntryTypes)&&(n=t.supportedEntryTypes),n.includes(e))}function $(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return W("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 J(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return W("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 Q="";function Y(){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 u="";"windows"===i?r(/windows nt 5.0|windows 2000/g)?u="2000":r(/windows nt 5.1|windows xp/g)?u="xp":r(/windows nt 5.2|windows 2003/g)?u="2003":r(/windows nt 6.0|windows vista/g)?u="vista":r(/windows nt 6.1|windows 7/g)?u="7":r(/windows nt 6.2|windows 8/g)?u="8":r(/windows nt 6.3|windows 8.1/g)?u="8.1":r(/windows nt 10.0|windows 10/g)&&(u="10"):"macos"===i?u=o(/os x [\d._]+/g):"android"===i?u=o(/android [\d._]+/g):"ios"===i&&(u=o(/os [\d._]+/g)),e=n(n({},e),{systemVs:u});var c="";"windows"===i||"macos"===i||"linux"===i?c="desktop":("android"===i||"ios"===i||r(/mobile/g))&&(c="mobile"),e=n(n({},e),{platform:c});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"),e=n(n({},e),{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)),e=n(n({},e),{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)),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 L.warn(n),e}}var K="";return e.addClass=I,e.addEvent=function(e,n){var t=D();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 M(e,n)},e.calLongestCommonSubstring=function(e,n){return P(e,n)},e.camelCase2Underscore=c,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={}),E(e,n)},e.clearHtml=function(e,n){return void 0===n&&(n={}),E(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=u,e.convertHttpToHttps=_,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=S,e.convertUnderToCamel=function(e){return e.replace(/_([a-z])/g,(function(e,n){return n.toUpperCase()}))},e.cutCHSString=function(e,n,t){return void 0===t&&(t=!1),O(e,n,t)},e.cutZHString=T,e.debounce=function(e,n,t){var r=null,o=null,i=null,a=null,u=null,c=function(){var s=g()-i;s<n&&s>=0?o=setTimeout(c,n-s):(o=null,t||(u=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=g();var d=t&&!o;return o||(o=setTimeout(c,n)),d&&(u=e.apply(r,a),r=a=null),u}},e.deepCopy=i,e.deepCopyObject=function(e){return i(e)},e.delCookie=function(e){H(e)},e.doFn=h,e.fireEvent=z,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=Y(),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=B,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=f,e.genStyleString=function(e,n){var t="";return n&&n.length>0&&(t=n.join(";")+";"),"".concat(e,"{").concat(t,"}")},e.genUniqueNumString=l,e.generateRndNum=d,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=Y,e.getCLS=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return W("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=q,e.getCurrentVersion=function(){return"v4"},e.getDefineListeners=D,e.getDomain=function(e,n){if(void 0===n&&(n=["hostname"]),j(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=$,e.getFID=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return W("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=J,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,o=decodeURIComponent;v(e)||(e=new Date(e).getTime()),v(n)||(n=new Date(n).getTime());var i=Number(n)-Number(e),a="",u=new Array(4).fill(0),c=u[0],s=(u[1],u[2],u[3]),f=o("%20%E5%A4%A9%20"),d=o("%20%E6%97%B6%20"),l=o("%20%E5%88%86%20"),g=o("%20%E7%A7%92");if(i>=0)switch(c=Math.floor(i/1e3/60/60/24),Math.floor(i/1e3/60/60),Math.floor(i/1e3/60),s=Math.floor(i/1e3),r){case"d":a=c;break;case"text":a=(c=Math.floor(i/1e3/60/60/24))+f+Math.floor(i/1e3/60/60%24)+d+Math.floor(i/1e3/60%60)+l+(s=Math.floor(i/1e3%60))+g;break;default:a=s}return a},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 W("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:u(),unloadTime:h-y,redirectTime:b-S,dnsTime:E-A,tcpTime:T-O,sslTime:s(T,x),responseTime:C-P,downloadTime:M-C,firstPaintTime:z,firstContentfulPaintTime:q,domReadyTime:k-U,onloadTime:N-U,whiteTime:C-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[c(e)]=n[e]})),Object.keys(r).length?d(r):d(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",u=n.match(/android/i)&&"android",c=n.match(/windows ce/i)&&"windows ce",s=n.match(/windows mobile/i)&&"windows mobile";return(e=t||r||o||i||a||u||c||s?r||o||i||a||u||c||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 u(){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 f,d,l,g,p,m,h,y,b,S,E,A,T,O,x,C,P,M,k,N,_,j,R,B,L,F,I,U,D,z,q;return r(this,(function(e){switch(e.label){case 0:if(!W("navigation"))return[2,Promise.reject(new Error("navigation is not supported"))];if(!(f=window.performance)||"function"!=typeof f.getEntries||"function"!=typeof f.getEntriesByType)return[2,Promise.reject(new Error("performance is not supported"))];if(l=new Promise((function(e){d=[e][0]})),g=null,w(p=f.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],A=m[5],T=m[6],O=m[7],x=m[8],C=m[9],P=m[10],M=m[11],k=m[12],N=m[13],_=m[14],j=m[15],R=m[16],B=m[17],L=m[18],F=f.timing,I="",g)I="PerformanceNavigationTiming",B=g.decodedBodySize,L=g.encodedBodySize,h=g.unloadEventEnd,y=g.unloadEventStart,b=g.redirectEnd,S=g.redirectStart,E=g.domainLookupEnd,A=g.domainLookupStart,T=g.connectEnd,O=g.connectStart,x=g.secureConnectionStart,C=g.responseStart,P=g.requestStart,M=g.responseEnd,k=g.domContentLoadedEventStart,N=g.loadEventStart,_=g.loadEventEnd,j=g.startTime,R=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,A=F.domainLookupStart,T=F.connectEnd,O=F.connectStart,x=F.secureConnectionStart,C=F.responseStart,P=F.requestStart,M=F.responseEnd,k=F.domContentLoadedEventStart,N=F.loadEventStart,_=F.loadEventEnd,j=F.navigationStart,R=F.fetchStart}if(U=0,v(j))U=j;else{if(!v(R))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];U=R}return[4,Promise.all([J(),$()])];case 1:return D=e.sent(),z=D[0],q=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 W("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!N(e)&&N(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),j(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!N(e)&&N(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),j(e)&&(n=new URL(e).pathname),n},e.hasClass=function(e,n){if(!e)return L.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 k(e)},e.invokeEvent=function(e){z(e)},e.invokeFn=m,e.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},e.isBool=b,e.isBoolean=function(e){return b(e)},e.isBrowser=function(){if(C)return"browser"===C;var e="undefined"!=typeof window;return e&&(C="browser"),e},e.isFunction=function(e){return"function"==typeof e},e.isHit=k,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(Q)return"pwa"===Q;var e=Y();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?(Q="pwa",!0):(Q="no-pwa",!1)},e.isString=function(e){return"string"==typeof e},e.isSupportWebp=function(){return K?Promise.resolve("webp"===K):new Promise((function(e){var n=new Image;n.onload=function(){var t=n.width>0&&n.height>0;K=t?"webp":"no-webp",e(t)},n.onerror=function(){K="no-webp",e(!1)},n.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},e.isSupportedEntryType=W,e.isUdfOrNul=function(e){return null==e},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=N,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\u3002\uff1b\uff0c\uff1a\u201c\u201d\uff08\uff09\u3001\uff1f\u300a\u300b()!@:%_+.~#?&//=]*)$/.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")},u=document.createElement("link");u||o(new Error("Not support create link element"));var c="onload"in u,s=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(u.rel="stylesheet",u.type="text/css",u.href=e,void 0!==r&&(u.id=r),document.getElementsByTagName("head")[0].appendChild(u),s||!c)return setTimeout((function(){d(u,a,0)}),1),i;function f(){u&&(u.onload=u.onerror=u.onreadystatechange=null),u=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 c?(u.onload=f,u.onerror=function(){f()}):u.onreadystatechange=function(){u&&/loaded|complete/.test(u.readyState)&&f()},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=V,e.loadScriptIfUndefined=function(e,n){return window[e]?Promise.resolve("defined"):V(n)},e.longestComSubsequence=M,e.longestComSubstring=P,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=L,e.newLine=function(e){return S(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):L.error("The element is not exist.")},e.removeCookie=H,e.removeEvent=function(e,n){var t=D(),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=E,e.removeHtml=function(e,n){return void 0===n&&(n={}),E(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,u=void 0===a?1e3:a,c=n.times,s=void 0===c?10:c,f=n.context,d=n.args,l=0,g=function(){setTimeout((function(){return t(i,void 0,void 0,(function(){var n;return r(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]:(g(),[2])}}))}))}),u)};"function"!=typeof e&&console.error("Expected a function."),("number"!=typeof u||u<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof s||s<0)&&console.error("Expected a non-negative number for times."),g()},e.replaceHttp=function(e){return _(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){I(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 u=location.host;1===u.split(".").length?document.cookie=e+"="+n+i+"; path=/":((o=u.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+n+i+"; path=/; domain="+r,null!==q(e)&&q(e)===n||(r=r||"."+u,document.cookie=e+"="+n+i+"; path=/; domain="+r))},e.setImgSizeBySrc=U,e.setImgWidHeiBySrc=function(){return U()},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],u=a[0],c=a[1],s=function(){c=!1===t.leading?0:g(),i=null,u=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=g();c||!1!==t.leading||(c=d);var l=n-(d-c);return r=this,o=a,l<=0||l>n?(i&&(clearTimeout(i),i=null),c=d,u=e.apply(r,o),i||(r=o=null)):i||!1===t.trailing||(i=setTimeout(s.bind(r),l)),u}},e.timeCon=F,e.truncateZHString=O,e.unsanitize=function(e){return A(e)},e.unsanitizeInput=A,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=3e4);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"))}),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/perf.d.ts CHANGED
@@ -10,6 +10,8 @@ export declare function isSupportedEntryType(name: string): boolean;
10
10
  * Usage:
11
11
  *
12
12
  * ```javascript
13
+ * import { getFCP } from "mazey";
14
+ *
13
15
  * getFCP().then(
14
16
  * res => {
15
17
  * console.log(`FCP: ${res}`);
@@ -34,6 +36,8 @@ export declare function getFCP(): Promise<number>;
34
36
  * Usage:
35
37
  *
36
38
  * ```javascript
39
+ * import { getFP } from "mazey";
40
+ *
37
41
  * getFP().then(
38
42
  * res => {
39
43
  * console.log(`FP: ${res}`);
@@ -58,6 +62,8 @@ export declare function getFP(): Promise<number>;
58
62
  * Usage:
59
63
  *
60
64
  * ```javascript
65
+ * import { getLCP } from "mazey";
66
+ *
61
67
  * getLCP().then(
62
68
  * res => {
63
69
  * console.log(`LCP: ${res}`);
@@ -82,6 +88,8 @@ export declare function getLCP(): Promise<number>;
82
88
  * Usage:
83
89
  *
84
90
  * ```javascript
91
+ * import { getFID } from "mazey";
92
+ *
85
93
  * getFID().then(
86
94
  * res => {
87
95
  * console.log(`FID: ${res}`);
@@ -106,6 +114,8 @@ export declare function getFID(): Promise<number>;
106
114
  * Usage:
107
115
  *
108
116
  * ```javascript
117
+ * import { getCLS } from "mazey";
118
+ *
109
119
  * getCLS().then(
110
120
  * res => {
111
121
  * console.log(`CLS: ${res}`);
@@ -130,6 +140,8 @@ export declare function getCLS(): Promise<number>;
130
140
  * Usage:
131
141
  *
132
142
  * ```javascript
143
+ * import { getTTFB } from "mazey";
144
+ *
133
145
  * getTTFB().then(
134
146
  * res => {
135
147
  * console.log(`TTFB: ${res}`);
@@ -160,6 +172,8 @@ export declare function getTTFB(): Promise<number>;
160
172
  * Usage:
161
173
  *
162
174
  * ```javascript
175
+ * import { getPerformance } from "mazey";
176
+ *
163
177
  * // `camelCase:false` (Default) Return underline(`a_b`) data.
164
178
  * // `camelCase:true` Return hump(`aB`) data.
165
179
  * getPerformance()
package/lib/perf.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"perf.d.ts","sourceRoot":"","sources":["../src/perf.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,WAUhD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAe9C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAe7C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAe9C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAoB9C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAmB9C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAc/C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAsB,cAAc,CAAC,SAAS,UAAQ,GAAG,OAAO,CAAC,cAAc,GAAG,KAAK,CAAC,CA8QvF"}
1
+ {"version":3,"file":"perf.d.ts","sourceRoot":"","sources":["../src/perf.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,WAUhD;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAe9C;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAe7C;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAe9C;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAoB9C;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAmB9C;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAc/C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,wBAAsB,cAAc,CAAC,SAAS,UAAQ,GAAG,OAAO,CAAC,cAAc,GAAG,KAAK,CAAC,CA8QvF"}
package/lib/store.d.ts CHANGED
@@ -6,6 +6,8 @@
6
6
  * Usage:
7
7
  *
8
8
  * ```javascript
9
+ * import { setSessionStorage, getSessionStorage, setLocalStorage, getLocalStorage } from "mazey";
10
+ *
9
11
  * setSessionStorage("test", "123");
10
12
  * const ret1 = getSessionStorage("test");
11
13
  * setLocalStorage("test", "123");
@@ -42,6 +44,8 @@ export declare function setSessionStorage<T>(key: string, value?: T | null): voi
42
44
  * Usage:
43
45
  *
44
46
  * ```javascript
47
+ * import { setSessionStorage, getSessionStorage, setLocalStorage, getLocalStorage } from "mazey";
48
+ *
45
49
  * setSessionStorage("test", "123");
46
50
  * const ret1 = getSessionStorage("test");
47
51
  * setLocalStorage("test", "123");
@@ -78,6 +82,8 @@ export declare function getSessionStorage<T>(key: string): T | null;
78
82
  * Usage:
79
83
  *
80
84
  * ```javascript
85
+ * import { setSessionStorage, getSessionStorage, setLocalStorage, getLocalStorage } from "mazey";
86
+ *
81
87
  * setSessionStorage("test", "123");
82
88
  * const ret1 = getSessionStorage("test");
83
89
  * setLocalStorage("test", "123");
@@ -114,6 +120,8 @@ export declare function setLocalStorage<T>(key: string, value?: T | null): void;
114
120
  * Usage:
115
121
  *
116
122
  * ```javascript
123
+ * import { setSessionStorage, getSessionStorage, setLocalStorage, getLocalStorage } from "mazey";
124
+ *
117
125
  * setSessionStorage("test", "123");
118
126
  * const ret1 = getSessionStorage("test");
119
127
  * setLocalStorage("test", "123");
@@ -150,6 +158,8 @@ export declare function getLocalStorage<T>(key: string): T | null;
150
158
  * Usage:
151
159
  *
152
160
  * ```javascript
161
+ * import { setCookie, getCookie } from "mazey";
162
+ *
153
163
  * setCookie("test", "123", 30, "example.com"); // key value day domain
154
164
  * const ret = getCookie("test");
155
165
  * console.log(ret);
@@ -172,6 +182,8 @@ export declare function getCookie(name: string): string;
172
182
  * Usage:
173
183
  *
174
184
  * ```javascript
185
+ * import { setCookie, getCookie } from "mazey";
186
+ *
175
187
  * setCookie("test", "123", 30, "example.com"); // key value day domain
176
188
  * const ret = getCookie("test");
177
189
  * console.log(ret);
@@ -192,6 +204,8 @@ export declare function setCookie(name: string, value: string, days?: number, do
192
204
  * Usage:
193
205
  *
194
206
  * ```javascript
207
+ * import { removeCookie } from "mazey";
208
+ *
195
209
  * const ret = removeCookie("test");
196
210
  * console.log(ret);
197
211
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,CAAC,GAAG,IAAW,GAAG,IAAI,CAI9E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CAS1D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,CAAC,GAAG,IAAW,GAAG,IAAI,CAI5E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CASxD;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAW9C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAmC3F;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAclD;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAE5C"}
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,CAAC,GAAG,IAAW,GAAG,IAAI,CAI9E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CAS1D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,CAAC,GAAG,IAAW,GAAG,IAAI,CAI5E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CASxD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAW9C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAmC3F;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAclD;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAE5C"}