febs-browser
Version:
febs is a useful utilities set in browser
5 lines • 94.7 kB
JavaScript
/*!
* febs v1.2.13
* Copyright (c) 2026 bpoint.lee@gmail.com All Rights Reserved.
* Released under the MIT License.
*/(function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):(e=e||self,t(e.febs={}))})(this,function(e){'use strict';var Z=Math.max,ee=Math.min,te=String.fromCharCode,ne=Math.ceil,re=Math.floor;function t(e,t){return t={exports:{}},e(t,t.exports),t.exports}function n(e,t){return RegExp(e,t)}function r(e,n,r){if("number"!=typeof e)return"";n=n||"HH:mm:ss";var s=new Date(e),t={"M+":s.getMonth()+1,"d+":s.getDate(),"h+":0==s.getHours()%12?12:s.getHours()%12,"H+":s.getHours(),"m+":s.getMinutes(),"s+":s.getSeconds(),"q+":re((s.getMonth()+3)/3),S:s.getMilliseconds()},o=r||{0:"\u661F\u671F\u5929",1:"\u661F\u671F\u4E00",2:"\u661F\u671F\u4E8C",3:"\u661F\u671F\u4E09",4:"\u661F\u671F\u56DB",5:"\u661F\u671F\u4E94",6:"\u661F\u671F\u516D"};for(var a in /(y+)/.test(n)&&(n=n.replace(RegExp.$1,(s.getFullYear()+"").substr(4-RegExp.$1.length))),/(E+)/.test(n)&&(n=n.replace(RegExp.$1,o[s.getDay()+""])),t)new RegExp("("+a+")").test(n)&&(n=n.replace(RegExp.$1,1==RegExp.$1.length?t[a]:("00"+t[a]).substr((""+t[a]).length)));return n}function o(e){"@babel/helpers - typeof";return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n,r=0;r<t.length;r++)n=t[r],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function p(){return p=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=Function.bind.apply(e,r),s=new o;return n&&c(s,n.prototype),s},p.apply(null,arguments)}function g(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function m(e){var t="function"==typeof Map?new Map:void 0;return m=function(e){function n(){return p(e,arguments,d(this).constructor)}if(null===e||!g(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!=typeof t){if(t.has(e))return t.get(e);t.set(e,n)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)},m(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return t&&("object"==typeof t||"function"==typeof t)?t:h(e)}function b(e){return function(){var t,n=d(e);if(u()){var r=d(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return y(this,t)}}function _(e,t){t||(t=0),t^=-1;for(var n=0,r=e.length;n<r;n++)t=t>>>8^Fi.crc32_table[255&(t^e.charCodeAt(n))];return-1^t}function E(e,t,n,r){if(!e||!r)return void(r&&r(0));if(t>=e.size||0>t||0==n)return void(r&&r(0));0>n&&(n=e.size);var o=File.prototype.mozSlice||File.prototype.webkitSlice||File.prototype.slice,s=new FileReader;e.size-t<n&&(n=e.size-t);var a=ne(n/2097152),i=0,l=function(){var r=i*2097152+t,a=r+2097152>=n+t?n+t:r+2097152;s.readAsBinaryString(o.call(e,r,a))},d=0;s.onload=function(t){d=_(t.target.result,d),i++,i<a?l():r(d)},l()}function T(e){var t,n=32*e.length,r="";for(t=0;t<n;t+=8)r+=te(255&e[t>>5]>>>t%32);return r}function v(e,t){return e<<t|e>>>32-t}function A(e){var t,n=8*e.length,r=Array(e.length>>2),o=r.length;for(t=0;t<o;t+=1)r[t]=0;for(t=0;t<n;t+=8)r[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return r}function S(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function C(e){for(var t,n=T(I(A(e),8*e.length)),r="0123456789abcdef",o="",s=0,a=n.length;s<a;s+=1)t=n.charCodeAt(s),o+=r.charAt(15&t>>>4)+r.charAt(15&t);return o}function I(e,t){var n,r,o,s,l,u=1732584193,p=-271733879,g=-1732584194,m=271733878;for(e[t>>5]|=128<<t%32,e[(t+64>>>9<<4)+14]=t,n=0;n<e.length;n+=16)r=u,o=p,s=g,l=m,u=k(u,p,g,m,e[n+0],7,-680876936),m=k(m,u,p,g,e[n+1],12,-389564586),g=k(g,m,u,p,e[n+2],17,606105819),p=k(p,g,m,u,e[n+3],22,-1044525330),u=k(u,p,g,m,e[n+4],7,-176418897),m=k(m,u,p,g,e[n+5],12,1200080426),g=k(g,m,u,p,e[n+6],17,-1473231341),p=k(p,g,m,u,e[n+7],22,-45705983),u=k(u,p,g,m,e[n+8],7,1770035416),m=k(m,u,p,g,e[n+9],12,-1958414417),g=k(g,m,u,p,e[n+10],17,-42063),p=k(p,g,m,u,e[n+11],22,-1990404162),u=k(u,p,g,m,e[n+12],7,1804603682),m=k(m,u,p,g,e[n+13],12,-40341101),g=k(g,m,u,p,e[n+14],17,-1502002290),p=k(p,g,m,u,e[n+15],22,1236535329),u=w(u,p,g,m,e[n+1],5,-165796510),m=w(m,u,p,g,e[n+6],9,-1069501632),g=w(g,m,u,p,e[n+11],14,643717713),p=w(p,g,m,u,e[n+0],20,-373897302),u=w(u,p,g,m,e[n+5],5,-701558691),m=w(m,u,p,g,e[n+10],9,38016083),g=w(g,m,u,p,e[n+15],14,-660478335),p=w(p,g,m,u,e[n+4],20,-405537848),u=w(u,p,g,m,e[n+9],5,568446438),m=w(m,u,p,g,e[n+14],9,-1019803690),g=w(g,m,u,p,e[n+3],14,-187363961),p=w(p,g,m,u,e[n+8],20,1163531501),u=w(u,p,g,m,e[n+13],5,-1444681467),m=w(m,u,p,g,e[n+2],9,-51403784),g=w(g,m,u,p,e[n+7],14,1735328473),p=w(p,g,m,u,e[n+12],20,-1926607734),u=N(u,p,g,m,e[n+5],4,-378558),m=N(m,u,p,g,e[n+8],11,-2022574463),g=N(g,m,u,p,e[n+11],16,1839030562),p=N(p,g,m,u,e[n+14],23,-35309556),u=N(u,p,g,m,e[n+1],4,-1530992060),m=N(m,u,p,g,e[n+4],11,1272893353),g=N(g,m,u,p,e[n+7],16,-155497632),p=N(p,g,m,u,e[n+10],23,-1094730640),u=N(u,p,g,m,e[n+13],4,681279174),m=N(m,u,p,g,e[n+0],11,-358537222),g=N(g,m,u,p,e[n+3],16,-722521979),p=N(p,g,m,u,e[n+6],23,76029189),u=N(u,p,g,m,e[n+9],4,-640364487),m=N(m,u,p,g,e[n+12],11,-421815835),g=N(g,m,u,p,e[n+15],16,530742520),p=N(p,g,m,u,e[n+2],23,-995338651),u=P(u,p,g,m,e[n+0],6,-198630844),m=P(m,u,p,g,e[n+7],10,1126891415),g=P(g,m,u,p,e[n+14],15,-1416354905),p=P(p,g,m,u,e[n+5],21,-57434055),u=P(u,p,g,m,e[n+12],6,1700485571),m=P(m,u,p,g,e[n+3],10,-1894986606),g=P(g,m,u,p,e[n+10],15,-1051523),p=P(p,g,m,u,e[n+1],21,-2054922799),u=P(u,p,g,m,e[n+8],6,1873313359),m=P(m,u,p,g,e[n+15],10,-30611744),g=P(g,m,u,p,e[n+6],15,-1560198380),p=P(p,g,m,u,e[n+13],21,1309151649),u=P(u,p,g,m,e[n+4],6,-145523070),m=P(m,u,p,g,e[n+11],10,-1120210379),g=P(g,m,u,p,e[n+2],15,718787259),p=P(p,g,m,u,e[n+9],21,-343485551),u=S(u,r),p=S(p,o),g=S(g,s),m=S(m,l);return[u,p,g,m]}function O(e,n,r,o,a,s){return S(v(S(S(n,e),S(o,s)),a),r)}function k(e,n,r,o,a,i,s){return O(n&r|~n&o,e,n,a,i,s)}function w(e,n,r,o,a,i,s){return O(n&o|r&~o,e,n,a,i,s)}function N(e,n,r,o,a,i,s){return O(n^r^o,e,n,a,i,s)}function P(e,n,r,o,a,i,s){return O(r^(n|~o),e,n,a,i,s)}function R(e){var t,n=32*e.length,r="";for(t=0;t<n;t+=8)r+=te(255&e[t>>5]>>>24-t%32);return r}function L(e,t){return e<<t|e>>>32-t}function M(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function F(e,t,n,r){return 20>e?t&n|~t&r:40>e?t^n^r:60>e?t&n|t&r|n&r:t^n^r}function D(e){return 20>e?1518500249:40>e?1859775393:60>e?-1894007588:-899497514}function B(e){var t,n=8*e.length,r=Array(e.length>>2),o=r.length;for(t=0;t<o;t+=1)r[t]=0;for(t=0;t<n;t+=8)r[t>>5]|=(255&e.charCodeAt(t/8))<<24-t%32;return r}function H(e){for(var t,n=R(U(B(e),8*e.length)),r="0123456789abcdef",o="",s=0,a=n.length;s<a;s+=1)t=n.charCodeAt(s),o+=r.charAt(15&t>>>4)+r.charAt(15&t);return o}function U(n,r){var o,s,l,u,p,g,m,f,h=Array(80),y=1732584193,_=-271733879,E=-1732584194,T=271733878,v=-1009589776;for(n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r,o=0;o<n.length;o+=16){for(u=y,p=_,g=E,m=T,f=v,s=0;80>s;s+=1)h[s]=16>s?n[o+s]:L(h[s-3]^h[s-8]^h[s-14]^h[s-16],1),l=M(M(L(y,5),F(s,_,E,T)),M(M(v,h[s]),D(s))),v=T,T=E,E=L(_,30),_=y,y=l;y=M(y,u),_=M(_,p),E=M(E,g),T=M(T,m),v=M(v,f)}return[y,_,E,T,v]}function q(e){{if(e.url){Hi._FeBs_ajaxmark||(Hi._FeBs_ajaxmark=1);var t=e.url.indexOf("?");e.url+=0>t?"?ajaxmark="+Hi._FeBs_ajaxmark:t==e.url.length-1?"ajaxmark="+Hi._FeBs_ajaxmark:"&ajaxmark="+Hi._FeBs_ajaxmark}Hi._FeBs_ajaxmark++}var n=e.error||function(){},r=e.success||function(){},o=e.complete||function(){};e.processData=!e.hasOwnProperty("processData")||e.processData;var s=Bi.transfer(Hi);s.onreadystatechange=function(){if(4==s.readyState){var e=1223===s.status?204:s.status;if(100>e||599<e)return n(s,s.statusText,new TypeError("Network request failed")),void(n=null);var t="response"in s?s.response:s.responseText;200==e&&r(t,s.statusText,s),o(s,s.statusText)}},s.ontimeout=function(){n&&n(s,null,"timeout")},s.onerror=function(){n&&n(s,null,new TypeError("Network request failed"))},e&&e.progress&&("upload"in s&&"onprogress"in s.upload?s.upload.onprogress=function(t){t.lengthComputable&&e.progress(t.loaded/t.total)}:console.log("The browser not support progress event")),s.open(e.type,e.url,!1!==e.async);var a=!1===e.async?0:e.timeout;if(s.timeout=void 0!==a&&null!==a?a:Bi.DefaultTimeout,s.withCredentials=!e.hasOwnProperty("withCredentials")||e.withCredentials,e.headers)if(s.setRequestHeader)for(var i in e.headers){var l=e.headers[i];("Content-Type"!=i||!1!==l)&&s.setRequestHeader(i,l)}else console.log("ajax can't set headers");e.headers&&e.headers.hasOwnProperty("Content-Type")||s.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");var d=e.data;if(d&&e.processData&&"string"!=typeof d)try{if(e.headers&&e.headers["Content-Type"]&&0<=e.headers["Content-Type"].toLowerCase().indexOf("json"))d=JSON.stringify(d);else{var c="";for(var i in d){var l=d[i];0<c.length&&(c+="&"),c+=i+"="+(l?l.toString():"")}d=c}}catch(t){console.log("ajax stringify data error"),console.log(t)}return e.beforeSend&&e.beforeSend(s),s.send(d),{abort:function(){s.abort()}}}function Y(e,t,n){var r,o,s,a=0,l=t.split(":");if(t=l[0],t=ji.trim(t),l=l[1],l&&"checked"!=l&&"disabled"!=l)throw new Error("only support `:checked or :disabled` selector");if(0<t.indexOf("[")){var d=t.indexOf("[");if(o=t.substring(d+1,t.length-1),o=o.split("="),2!=o.length)throw new Error("Syntax error, unrecognized expression: "+t);s=o[1],(0<=s.indexOf("'")||0<=s.indexOf("\""))&&(s=s.substring(1,s.length-1)),o=o[0],t=t.substr(0,d)}if("."==t[0]?(a=2,t=t.substr(1)):"#"==t[0]&&(a=1,t=t.substr(1)),!e||0==e.length){if(2==a?r=Md.document.getElementsByClassName(t):1==a?(r=Md.document.getElementById(t),r=r?[r]:[]):0==a&&(r=Md.document.getElementsByTagName(t)),o){var c=r;r=[];for(var u=0;u<c.length;u++)c[u].getAttribute(o)===s&&r.push(c[u])}if(l){var c=r;r=[];for(var u=0;u<c.length;u++)"disabled"==l?c[u].disabled&&r.push(c[u]):"checked"==l&&c[u].checked&&r.push(c[u])}}else{r=[];for(var p,u=0;u<e.length;u++)if(p=e[u].childNodes,p){for(var g=[],m=0;m<p.length;m++)g.push(p[m]);for(var f,m=0;m<g.length;m++){if(f=!0,l&&("disabled"==l?!g[m].disabled&&(f=!1):"checked"==l&&!g[m].checked&&(f=!1)),f&&o&&g[m].getAttribute(o)!==s&&(f=!1),f)if(2==a){if(W(g[m],t)){r.push(g[m]);continue}}else if(1==a){if(g[m].id==t){r.push(g[m]);continue}}else if(0==a&&g[m].nodeName.toUpperCase()==t.toUpperCase()){r.push(g[m]);continue}if(!n){var h=g[m].childNodes;if(h&&0<h.length){for(var y=0;y<h.length;y++)g.push(h[y]);20<m&&(g=g.slice(m+1),m=-1)}}}}}return r}function z(e,t){""===e&&(e=null);var n,r=!1;if(!("string"==typeof e))n=e;else if("<"==e[0])n=Md.document.createElement("div"),n.innerHTML=e,1==n.childNodes.length?(n=n.childNodes[0],r=!1):(n=n.childNodes,r=!0);else{if(0<e.indexOf("<")||0<e.indexOf(">"))throw new Error("Syntax error, unrecognized");for(var o=e.split(" "),s=t?[t]:null,a=0;a<o.length;a++)""!=o[a]&&(s=Y(s,o[a],!!t));1>=s.length?(n=s[0],r=!1):(n=s,r=!0)}return{_elem:n,_isarr:r}}function W(e,t){return!!(e&&e.className&&"function"==typeof e.className.match)&&!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function V(e,t){e&&("string"!=typeof e.className||W(e,t)||(ji.isEmpty(e.className)?e.className+=t:e.className+=" "+t))}function G(e,t){!e||"string"==typeof e.className&&W(e,t)&&(e.className=e.className.replace(new RegExp("(\\s|^)"+t+"(\\s|$)")," "),e.className=ji.trim(e.className))}function X(e){if(e){var t=e.parentNode;t&&t.removeChild(e)}}function K(e,t){if(e)if(!(t instanceof jd))e.appendChild(t);else if(!t._isArray())e.appendChild(t[0]);else for(var n=0;n<t.length;n++)e.appendChild(t[n])}function Q(e,t){if(e)if(e.hasChildNodes()){if(!(t instanceof jd))e.insertBefore(t,e.firstChild);else if(!t._isArray())e.insertBefore(t[0],e.firstChild);else for(var n=t.length-1;0<=n;n--)e.insertBefore(t[n],e.firstChild);}else if(!(t instanceof jd))e.appendChild(t);else if(!t._isArray())e.appendChild(t[0]);else for(var n=0;n<t.length;n++)e.appendChild(t[n])}function J(t){var n=document.createElement("div");try{return n.appendChild(t.cloneNode(!0)),1==t.nodeType}catch(n){return t==Md||t==document}}var oe="undefined"==typeof globalThis?"undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?{}:self:global:window:globalThis,se=function(e){return e&&e.Math==Math&&e},ae=se("object"==typeof globalThis&&globalThis)||se("object"==typeof window&&window)||se("object"==typeof self&&self)||se("object"==typeof oe&&oe)||Function("return this")(),ie=function(e){try{return!!e()}catch(e){return!0}},le=!ie(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),de=function(e){return"object"==typeof e?null!==e:"function"==typeof e},ce=ae.document,ue=de(ce)&&de(ce.createElement),pe=function(e){return ue?ce.createElement(e):{}},ge=!le&&!ie(function(){return 7!=Object.defineProperty(pe("div"),"a",{get:function(){return 7}}).a}),me=function(e){if(!de(e))throw TypeError(e+" is not an object");return e},fe=function(e,t){if(!de(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!de(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!de(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!de(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},he=Object.defineProperty,ye=le?he:function(e,t,n){if(me(e),t=fe(t,!0),me(n),ge)try{return he(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e},f={f:ye},x=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},be=le?function(e,t,n){return f.f(e,t,x(1,n))}:function(e,t,n){return e[t]=n,e},_e=function(e,t){try{be(ae,e,t)}catch(n){ae[e]=t}return t},Ee="__core-js_shared__",Te=ae[Ee]||_e(Ee,{}),ve=Te,Ae=t(function(e){(e.exports=function(e,t){return ve[e]||(ve[e]=t===void 0?{}:t)})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})}),xe={}.hasOwnProperty,Se=function(e,t){return xe.call(e,t)},Ce=0,Ie=Math.random(),Oe=function(e){return"Symbol("+((e===void 0?"":e)+"")+")_"+(++Ce+Ie).toString(36)},ke=!!Object.getOwnPropertySymbols&&!ie(function(){return!(Symbol()+"")}),we=ke&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ne=Ae("wks"),Pe=ae.Symbol,Re=we?Pe:Pe&&Pe.withoutSetter||Oe,Le=function(e){return Se(Ne,e)||(ke&&Se(Pe,e)?Ne[e]=Pe[e]:Ne[e]=Re("Symbol."+e)),Ne[e]},Me=Le("toStringTag"),je={};je[Me]="z";var Fe="[object z]"===je+"",De=Function.toString;"function"!=typeof ve.inspectSource&&(ve.inspectSource=function(e){return De.call(e)});var Be,He,Ue,$e=ve.inspectSource,qe=ae.WeakMap,Ye="function"==typeof qe&&/native code/.test($e(qe)),ze=Ae("keys"),We=function(e){return ze[e]||(ze[e]=Oe(e))},Ve={},Ge=ae.WeakMap,Xe=function(e){return Ue(e)?He(e):Be(e,{})};if(Ye){var Ke=new Ge,Qe=Ke.get,Je=Ke.has,Ze=Ke.set;Be=function(e,t){return Ze.call(Ke,e,t),t},He=function(e){return Qe.call(Ke,e)||{}},Ue=function(e){return Je.call(Ke,e)}}else{var et=We("state");Ve[et]=!0,Be=function(e,t){return be(e,et,t),t},He=function(e){return Se(e,et)?e[et]:{}},Ue=function(e){return Se(e,et)}}var tt={set:Be,get:He,has:Ue,enforce:Xe,getterFor:function(e){return function(t){var n;if(!de(t)||(n=He(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},nt=t(function(e){var t=tt.get,n=tt.enforce,r=(String+"").split("String");(e.exports=function(e,t,o,s){var a=!!s&&!!s.unsafe,i=!!s&&!!s.enumerable,l=!!s&&!!s.noTargetGet;return("function"==typeof o&&("string"==typeof t&&!Se(o,"name")&&be(o,"name",t),n(o).source=r.join("string"==typeof t?t:"")),e===ae)?void(i?e[t]=o:_e(t,o)):void(a?!l&&e[t]&&(i=!0):delete e[t],i?e[t]=o:be(e,t,o))})(Function.prototype,"toString",function(){return"function"==typeof this&&t(this).source||$e(this)})}),rt={}.toString,ot=function(e){return rt.call(e).slice(8,-1)},st=Le("toStringTag"),at="Arguments"==ot(function(){return arguments}()),lt=function(e,t){try{return e[t]}catch(e){}},dt=function(e){var t,n,r;return e===void 0?"Undefined":null===e?"Null":"string"==typeof(n=lt(t=Object(e),st))?n:at?ot(t):"Object"==(r=ot(t))&&"function"==typeof t.callee?"Arguments":r},ct=function(){return"[object "+dt(this)+"]"};Fe||nt(Object.prototype,"toString",ct,{unsafe:!0});var ut={}.propertyIsEnumerable,pt=Object.getOwnPropertyDescriptor,gt=pt&&!ut.call({1:2},1),mt=gt?function(e){var t=pt(this,e);return!!t&&t.enumerable}:ut,ft={f:mt},ht="".split,yt=ie(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==ot(e)?ht.call(e,""):Object(e)}:Object,bt=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},_t=function(e){return yt(bt(e))},Et=Object.getOwnPropertyDescriptor,Tt=le?Et:function(e,t){if(e=_t(e),t=fe(t,!0),ge)try{return Et(e,t)}catch(e){}return Se(e,t)?x(!ft.f.call(e,t),e[t]):void 0},vt={f:Tt},At=ae,xt=function(e){return"function"==typeof e?e:void 0},St=function(e,t){return 2>arguments.length?xt(At[e])||xt(ae[e]):At[e]&&At[e][t]||ae[e]&&ae[e][t]},Ct=function(e){return isNaN(e=+e)?0:(0<e?re:ne)(e)},It=function(e){return 0<e?ee(Ct(e),9007199254740991):0},Ot=function(e,t){var n=Ct(e);return 0>n?Z(n+t,0):ee(n,t)},kt=function(e){return function(t,n,r){var o,s=_t(t),a=It(s.length),i=Ot(r,a);if(e&&n!=n){for(;a>i;)if(o=s[i++],o!=o)return!0;}else for(;a>i;i++)if((e||i in s)&&s[i]===n)return e||i||0;return!e&&-1}},wt={includes:kt(!0),indexOf:kt(!1)},Nt=wt.indexOf,Pt=function(e,t){var n,r=_t(e),o=0,s=[];for(n in r)!Se(Ve,n)&&Se(r,n)&&s.push(n);for(;t.length>o;)Se(r,n=t[o++])&&(~Nt(s,n)||s.push(n));return s},Rt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Lt=Rt.concat("length","prototype"),Mt=Object.getOwnPropertyNames||function(e){return Pt(e,Lt)},jt={f:Mt},Ft=Object.getOwnPropertySymbols,Dt={f:Ft},Bt=St("Reflect","ownKeys")||function(e){var t=jt.f(me(e)),n=Dt.f;return n?t.concat(n(e)):t},Ht=function(e,t){for(var n,r=Bt(t),o=f.f,s=vt.f,a=0;a<r.length;a++)n=r[a],Se(e,n)||o(e,n,s(t,n))},Ut=function(e,t){var n=qt[$t(e)];return!(n!=zt)||n!=Yt&&("function"==typeof t?ie(t):!!t)},$t=Ut.normalize=function(e){return(e+"").replace(/#|\.prototype\./,".").toLowerCase()},qt=Ut.data={},Yt=Ut.NATIVE="N",zt=Ut.POLYFILL="P",Wt=Ut,Vt=vt.f,Gt=function(e,t){var n,r,o,s,a,i,l=e.target,d=e.global,c=e.stat;if(r=d?ae:c?ae[l]||_e(l,{}):(ae[l]||{}).prototype,r)for(o in t){if(a=t[o],e.noTargetGet?(i=Vt(r,o),s=i&&i.value):s=r[o],n=Wt(d?o:l+(c?".":"#")+o,e.forced),!n&&void 0!==s){if(typeof a==typeof s)continue;Ht(a,s)}(e.sham||s&&s.sham)&&be(a,"sham",!0),nt(r,o,a,e)}},Xt=ae.Promise,Kt=function(e,t,n){for(var r in t)nt(e,r,t[r],n);return e},Qt=f.f,Jt=Le("toStringTag"),Zt=function(e,t,n){e&&!Se(e=n?e:e.prototype,Jt)&&Qt(e,Jt,{configurable:!0,value:t})},en=Le("species"),tn=function(e){var t=St(e),n=f.f;le&&t&&!t[en]&&n(t,en,{configurable:!0,get:function(){return this}})},nn=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function");return e},rn=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},on={},sn=Le("iterator"),an=Array.prototype,ln=function(e){return e!==void 0&&(on.Array===e||an[sn]===e)},dn=function(e,t,n){return(nn(e),void 0===t)?e:0===n?function(){return e.call(t)}:1===n?function(n){return e.call(t,n)}:2===n?function(n,r){return e.call(t,n,r)}:3===n?function(n,r,o){return e.call(t,n,r,o)}:function(){return e.apply(t,arguments)}},cn=Le("iterator"),un=function(e){if(e!=null)return e[cn]||e["@@iterator"]||on[dt(e)]},pn=function(e,t,n,r){try{return r?t(me(n)[0],n[1]):t(n)}catch(t){var o=e["return"];throw void 0!==o&&me(o.call(e)),t}},gn=t(function(e){var t=function(e,t){this.stopped=e,this.result=t},n=e.exports=function(e,n,r,o,s){var a,i,l,d,c,u,p,g=dn(n,r,o?2:1);if(s)a=e;else{if(i=un(e),"function"!=typeof i)throw TypeError("Target is not iterable");if(ln(i)){for(l=0,d=It(e.length);d>l;l++)if(c=o?g(me(p=e[l])[0],p[1]):g(e[l]),c&&c instanceof t)return c;return new t(!1)}a=i.call(e)}for(u=a.next;!(p=u.call(a)).done;)if(c=pn(a,g,p.value,o),"object"==typeof c&&c&&c instanceof t)return c;return new t(!1)};n.stop=function(e){return new t(!0,e)}}),mn=Le("iterator"),fn=!1;try{var hn=0,yn={next:function(){return{done:!!hn++}},return:function(){fn=!0}};yn[mn]=function(){return this},Array.from(yn,function(){throw 2})}catch(e){}var bn,_n,En,Tn=function(e,t){if(!t&&!fn)return!1;var n=!1;try{var r={};r[mn]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},vn=Le("species"),An=function(e,t){var n,r=me(e).constructor;return r===void 0||(n=me(r)[vn])==null?t:nn(n)},xn=St("document","documentElement"),Sn=St("navigator","userAgent")||"",Cn=/(iphone|ipod|ipad).*applewebkit/i.test(Sn),In=ae.location,On=ae.setImmediate,kn=ae.clearImmediate,wn=ae.process,Nn=ae.MessageChannel,Pn=ae.Dispatch,Rn=0,Ln={},Mn="onreadystatechange",jn=function(e){if(Ln.hasOwnProperty(e)){var t=Ln[e];delete Ln[e],t()}},Fn=function(e){return function(){jn(e)}},Dn=function(e){jn(e.data)},Bn=function(e){ae.postMessage(e+"",In.protocol+"//"+In.host)};On&&kn||(On=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Ln[++Rn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},bn(Rn),Rn},kn=function(e){delete Ln[e]},"process"==ot(wn)?bn=function(e){wn.nextTick(Fn(e))}:Pn&&Pn.now?bn=function(e){Pn.now(Fn(e))}:Nn&&!Cn?(_n=new Nn,En=_n.port2,_n.port1.onmessage=Dn,bn=dn(En.postMessage,En,1)):!ae.addEventListener||"function"!=typeof postMessage||ae.importScripts||ie(Bn)||"file:"===In.protocol?Mn in pe("script")?bn=function(e){xn.appendChild(pe("script"))[Mn]=function(){xn.removeChild(this),jn(e)}}:bn=function(e){setTimeout(Fn(e),0)}:(bn=Bn,ae.addEventListener("message",Dn,!1)));var Hn,Un,$n,qn,Yn,zn,Wn,Vn,Gn={set:On,clear:kn},Xn=vt.f,Kn=Gn.set,Qn=ae.MutationObserver||ae.WebKitMutationObserver,Jn=ae.process,Zn=ae.Promise,er="process"==ot(Jn),tr=Xn(ae,"queueMicrotask"),nr=tr&&tr.value;nr||(Hn=function(){var e,t;for(er&&(e=Jn.domain)&&e.exit();Un;){t=Un.fn,Un=Un.next;try{t()}catch(e){throw Un?qn():$n=void 0,e}}$n=void 0,e&&e.enter()},er?qn=function(){Jn.nextTick(Hn)}:Qn&&!Cn?(Yn=!0,zn=document.createTextNode(""),new Qn(Hn).observe(zn,{characterData:!0}),qn=function(){zn.data=Yn=!Yn}):Zn&&Zn.resolve?(Wn=Zn.resolve(void 0),Vn=Wn.then,qn=function(){Vn.call(Wn,Hn)}):qn=function(){Kn.call(ae,Hn)});var rr,or,sr=nr||function(e){var t={fn:e,next:void 0};$n&&($n.next=t),Un||(Un=t,qn()),$n=t},ar=function(e){var t,n;this.promise=new e(function(e,r){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=nn(t),this.reject=nn(n)},ir={f:function(e){return new ar(e)}},lr=function(e,t){if(me(e),de(t)&&t.constructor===e)return t;var n=ir.f(e),r=n.resolve;return r(t),n.promise},dr=function(e,t){var n=ae.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))},cr=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},ur=ae.process,pr=ur&&ur.versions,gr=pr&&pr.v8;gr?(rr=gr.split("."),or=rr[0]+rr[1]):Sn&&(rr=Sn.match(/Edge\/(\d+)/),(!rr||74<=rr[1])&&(rr=Sn.match(/Chrome\/(\d+)/),rr&&(or=rr[1])));var it,mr,fr,hr,yr=or&&+or,br=Gn.set,_r=Le("species"),Er="Promise",Tr=tt.get,vr=tt.set,Ar=tt.getterFor(Er),xr=Xt,Sr=ae.TypeError,Cr=ae.document,Ir=ae.process,Or=St("fetch"),kr=ir.f,wr=kr,Nr="process"==ot(Ir),Pr=!!(Cr&&Cr.createEvent&&ae.dispatchEvent),Rr="unhandledrejection",Lr=0,Mr=1,jr=1,Fr=2,Dr=Wt(Er,function(){var e=$e(xr)!==xr+"";if(!e){if(66===yr)return!0;if(!Nr&&"function"!=typeof PromiseRejectionEvent)return!0}if(51<=yr&&/native code/.test(xr))return!1;var t=xr.resolve(1),n=function(e){e(function(){},function(){})},r=t.constructor={};return r[_r]=n,!(t.then(function(){})instanceof n)}),Br=Dr||!Tn(function(e){xr.all(e)["catch"](function(){})}),Hr=function(e){var t;return!!(de(e)&&"function"==typeof(t=e.then))&&t},Ur=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;sr(function(){for(var o=t.value,s=t.state==Mr,a=0;r.length>a;){var i,l,d,c=r[a++],u=s?c.ok:c.fail,p=c.resolve,g=c.reject,m=c.domain;try{u?(!s&&(t.rejection===Fr&&zr(e,t),t.rejection=jr),!0===u?i=o:(m&&m.enter(),i=u(o),m&&(m.exit(),d=!0)),i===c.promise?g(Sr("Promise-chain cycle")):(l=Hr(i))?l.call(i,p,g):p(i)):g(o)}catch(e){m&&!d&&m.exit(),g(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&qr(e,t)})}},$r=function(e,t,n){var r,o;Pr?(r=Cr.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),ae.dispatchEvent(r)):r={promise:t,reason:n},(o=ae["on"+e])?o(r):e===Rr&&dr("Unhandled promise rejection",n)},qr=function(e,t){br.call(ae,function(){var n,r=t.value,o=Yr(t);if(o&&(n=cr(function(){Nr?Ir.emit("unhandledRejection",r,e):$r(Rr,e,r)}),t.rejection=Nr||Yr(t)?Fr:jr,n.error))throw n.value})},Yr=function(e){return e.rejection!==jr&&!e.parent},zr=function(e,t){br.call(ae,function(){Nr?Ir.emit("rejectionHandled",e):$r("rejectionhandled",e,t.value)})},Wr=function(e,t,n,r){return function(o){e(t,n,o,r)}},Vr=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Ur(e,t,!0))},Gr=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw Sr("Promise can't be resolved itself");var o=Hr(n);o?sr(function(){var r={done:!1};try{o.call(n,Wr(Gr,e,r,t),Wr(Vr,e,r,t))}catch(n){Vr(e,r,n,t)}}):(t.value=n,t.state=Mr,Ur(e,t,!1))}catch(n){Vr(e,{done:!1},n,t)}}};Dr&&(xr=function(e){rn(this,xr,Er),nn(e),it.call(this);var t=Tr(this);try{e(Wr(Gr,this,t),Wr(Vr,this,t))}catch(e){Vr(this,t,e)}},it=function(){vr(this,{type:Er,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Lr,value:void 0})},it.prototype=Kt(xr.prototype,{then:function(e,t){var n=Ar(this),r=kr(An(this,xr));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Nr?Ir.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=Lr&&Ur(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),mr=function(){var e=new it,t=Tr(e);this.promise=e,this.resolve=Wr(Gr,e,t),this.reject=Wr(Vr,e,t)},ir.f=kr=function(e){return e===xr||e===fr?new mr(e):wr(e)},"function"==typeof Xt&&(hr=Xt.prototype.then,nt(Xt.prototype,"then",function(e,t){var n=this;return new xr(function(e,t){hr.call(n,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof Or&&Gt({global:!0,enumerable:!0,forced:!0},{fetch:function(){return lr(xr,Or.apply(ae,arguments))}}))),Gt({global:!0,wrap:!0,forced:Dr},{Promise:xr}),Zt(xr,Er,!1),tn(Er),fr=St(Er),Gt({target:Er,stat:!0,forced:Dr},{reject:function(e){var t=kr(this);return t.reject.call(void 0,e),t.promise}}),Gt({target:Er,stat:!0,forced:Dr},{resolve:function(e){return lr(this,e)}}),Gt({target:Er,stat:!0,forced:Br},{all:function(e){var t=this,n=kr(t),r=n.resolve,o=n.reject,s=cr(function(){var n=nn(t.resolve),s=[],a=0,i=1;gn(e,function(e){var l=a++,d=!1;s.push(void 0),i++,n.call(t,e).then(function(e){d||(d=!0,s[l]=e,--i||r(s))},o)}),--i||r(s)});return s.error&&o(s.value),n.promise},race:function(e){var t=this,n=kr(t),r=n.reject,o=cr(function(){var o=nn(t.resolve);gn(e,function(e){o.call(t,e).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Xr=!!Xt&&ie(function(){Xt.prototype["finally"].call({then:function(){}},function(){})});Gt({target:"Promise",proto:!0,real:!0,forced:Xr},{finally:function(t){var n=An(this,St("Promise")),e="function"==typeof t;return this.then(e?function(e){return lr(n,t()).then(function(){return e})}:t,e?function(r){return lr(n,t()).then(function(){throw r})}:t)}}),"function"!=typeof Xt||Xt.prototype["finally"]||nt(Xt.prototype,"finally",St("Promise").prototype["finally"]),function(){"function"==typeof Promise.prototype.finally||(Promise.prototype.finally=function(e){return this.then(function(t){return this.constructor.resolve(e()).then(function(){return t})}).catch(function(t){return this.constructor.resolve(e()).then(function(){throw t})})})}();var Kr=[].slice,Qr=/MSIE .\./.test(Sn),Jr=function(e){return function(t,n){var r=2<arguments.length,o=r?Kr.call(arguments,2):void 0;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};Gt({global:!0,bind:!0,forced:Qr},{setTimeout:Jr(ae.setTimeout),setInterval:Jr(ae.setInterval)});var Zr="undefined"==typeof window?"undefined"==typeof oe?"undefined"==typeof self?void 0:self:oe:window,eo={},to=0;Zr.requestAnimationFrame=Zr.requestAnimationFrame||Zr.mozRequestAnimationFrame||Zr.webkitRequestAnimationFrame||Zr.msRequestAnimationFrame,Zr.cancelAnimationFrame=Zr.cancelAnimationFrame||Zr.mozCancelAnimationFrame,Zr.requestAnimationFrame||(Zr.requestAnimationFrame=function(e){var t=Date.now(),n=Z(0,16-(t-to)),r=Zr.setTimeout(function(){e(t+n)},n);return to=t+n,r}),Zr.cancelAnimationFrame||(Zr.cancelAnimationFrame=function(e){clearTimeout(e)}),eo.requestAnimationFrame=Zr.requestAnimationFrame,eo.cancelAnimationFrame=Zr.cancelAnimationFrame;var no=eo,ro=function(e){if(!de(e)&&null!==e)throw TypeError("Can't set "+(e+" as a prototype"));return e},oo=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return me(n),ro(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),so=function(e,t,n){var r,o;return oo&&"function"==typeof(r=t.constructor)&&r!==n&&de(o=r.prototype)&&o!==n.prototype&&oo(e,o),e},ao=Le("match"),io=function(e){var t;return de(e)&&((t=e[ao])===void 0?"RegExp"==ot(e):!!t)},lo=function(){var e=me(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},co=ie(function(){var e=n("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),uo=ie(function(){var e=n("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),po={UNSUPPORTED_Y:co,BROKEN_CARET:uo},go=f.f,mo=jt.f,fo=tt.set,ho=Le("match"),yo=ae.RegExp,bo=yo.prototype,_o=/a/g,Eo=/a/g,To=new yo(_o)!==_o,vo=po.UNSUPPORTED_Y,Ao=le&&Wt("RegExp",!To||vo||ie(function(){return Eo[ho]=!1,yo(_o)!=_o||yo(Eo)==Eo||"/a/i"!=yo(_o,"i")}));if(Ao){for(var xo=function(e,t){var n,r=this instanceof xo,o=io(e),s=void 0===t;if(!r&&o&&e.constructor===xo&&s)return e;To?o&&!s&&(e=e.source):e instanceof xo&&(s&&(t=lo.call(e)),e=e.source),vo&&(n=!!t&&-1<t.indexOf("y"),n&&(t=t.replace(/y/g,"")));var a=so(To?new yo(e,t):yo(e,t),r?this:bo,xo);return vo&&n&&fo(a,{sticky:n}),a},So=function(e){(e in xo)||go(xo,e,{configurable:!0,get:function(){return yo[e]},set:function(t){yo[e]=t}})},Co=mo(yo),Io=0;Co.length>Io;)So(Co[Io++]);bo.constructor=xo,xo.prototype=bo,nt(ae,"RegExp",xo)}tn("RegExp");var Oo=RegExp.prototype.exec,ko=String.prototype.replace,wo=Oo,No=function(){var e=/a/,t=/b*/g;return Oo.call(e,"a"),Oo.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Po=po.UNSUPPORTED_Y||po.BROKEN_CARET,Ro=/()??/.exec("")[1]!==void 0;(No||Ro||Po)&&(wo=function(e){var t,n,r,o,s=this,a=Po&&s.sticky,l=lo.call(s),d=s.source,c=0,u=e;return a&&(l=l.replace("y",""),-1===l.indexOf("g")&&(l+="g"),u=(e+"").slice(s.lastIndex),0<s.lastIndex&&(!s.multiline||s.multiline&&"\n"!==e[s.lastIndex-1])&&(d="(?: "+d+")",u=" "+u,c++),n=new RegExp("^(?:"+d+")",l)),Ro&&(n=new RegExp("^"+d+"$(?!\\s)",l)),No&&(t=s.lastIndex),r=Oo.call(a?n:s,u),a?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=s.lastIndex,s.lastIndex+=r[0].length):s.lastIndex=0:No&&r&&(s.lastIndex=s.global?r.index+r[0].length:t),Ro&&r&&1<r.length&&ko.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r});var Lo=wo;Gt({target:"RegExp",proto:!0,forced:/./.exec!==Lo},{exec:Lo});var Mo=RegExp.prototype,jo=Mo.toString,Fo=ie(function(){return"/a/b"!=jo.call({source:"a",flags:"b"})}),Do=jo.name!="toString";(Fo||Do)&&nt(RegExp.prototype,"toString",function(){var e=me(this),t=e.source+"",n=e.flags,r=(n===void 0&&e instanceof RegExp&&!("flags"in Mo)?lo.call(e):n)+"";return"/"+t+"/"+r},{unsafe:!0});var Bo=Le("species"),Ho=!ie(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),Uo=function(){return"$0"==="a".replace(/./,"$0")}(),$o=Le("replace"),qo=function(){return!!/./[$o]&&""===/./[$o]("a","$0")}(),Yo=!ie(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),zo=function(e,t,n,r){var o=Le(e),s=!ie(function(){var t={};return t[o]=function(){return 7},7!=""[e](t)}),a=s&&!ie(function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[Bo]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t});if(!s||!a||"replace"===e&&!(Ho&&Uo&&!qo)||"split"===e&&!Yo){var i=/./[o],l=n(o,""[e],function(e,t,n,r,o){return t.exec===Lo?s&&!o?{done:!0,value:i.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:Uo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:qo}),d=l[0],c=l[1];nt(String.prototype,e,d),nt(RegExp.prototype,o,2==t?function(e,t){return c.call(e,this,t)}:function(e){return c.call(e,this)})}r&&be(RegExp.prototype[o],"sham",!0)},Wo=function(e){return Object(bt(e))},Vo=function(e){return function(t,n){var r,o,s=bt(t)+"",a=Ct(n),i=s.length;return 0>a||a>=i?e?"":void 0:(r=s.charCodeAt(a),55296>r||56319<r||a+1===i||56320>(o=s.charCodeAt(a+1))||57343<o?e?s.charAt(a):r:e?s.slice(a,a+2):(r-55296<<10)+(o-56320)+65536)}},Go={codeAt:Vo(!1),charAt:Vo(!0)},Xo=Go.charAt,Ko=function(e,t,n){return t+(n?Xo(e,t).length:1)},Qo=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==ot(e))throw TypeError("RegExp#exec called on incompatible receiver");return Lo.call(e,t)},Jo=function(e){return e===void 0?e:e+""};zo("replace",2,function(e,t,n,r){function o(e,r,o,s,a,i){var l=o+e.length,d=s.length,n=/\$([$&'`]|\d\d?)/g;return void 0!==a&&(a=Wo(a),n=/\$([$&'`]|\d\d?|<[^>]*>)/g),t.call(i,n,function(t,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return r.slice(0,o);case"'":return r.slice(l);case"<":c=a[i.slice(1,-1)];break;default:var u=+i;if(0==u)return t;if(u>d){var n=re(u/10);return 0===n?t:n<=d?void 0===s[n-1]?i.charAt(1):s[n-1]+i.charAt(1):t}c=s[u-1];}return void 0===c?"":c})}var s=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=r.REPLACE_KEEPS_$0,l=s?"$":"$0";return[function(n,r){var o=bt(this),s=n==null?void 0:n[e];return s===void 0?t.call(o+"",n,r):s.call(n,o,r)},function(e,r){if(!s&&a||"string"==typeof r&&-1===r.indexOf(l)){var d=n(t,e,this,r);if(d.done)return d.value}var c=me(e),u=this+"",p="function"==typeof r;p||(r=r+"");var g=c.global;if(g){var m=c.unicode;c.lastIndex=0}for(var f,h=[];(f=Qo(c,u),null!==f)&&!(h.push(f),!g);){var y=f[0]+"";""==y&&(c.lastIndex=Ko(u,It(c.lastIndex),m))}for(var b="",_=0,E=0;E<h.length;E++){f=h[E];for(var T=f[0]+"",v=Z(ee(Ct(f.index),u.length),0),A=[],x=1;x<f.length;x++)A.push(Jo(f[x]));var S=f.groups;if(p){var C=[T].concat(A,v,u);S!==void 0&&C.push(S);var I=r.apply(void 0,C)+""}else I=o(T,u,v,A,S,r);v>=_&&(b+=u.slice(_,v)+I,_=v+T.length)}return b+u.slice(_)}]});var Zo={isValidate:function(e){return!isNaN(e)&&e&&"Invalid Date"!=e.toString()&&e instanceof Date},getTimeString:r,getTimeStringFromNow:function(e,t){t=t||{},t.now=t.now||"\u521A\u521A",t.second=t.second||"\u79D2\u524D",t.minute=t.minute||"\u5206\u949F\u524D",t.hour=t.hour||"\u5C0F\u65F6\u524D",t.day_yesterday=t.day_yesterday||"\u6628\u5929",t.day=t.day||"\u5929\u524D",t.month=t.month||"\u4E2A\u6708\u524D",t.time=t.time||"yyyy-M-d h:m:s";var n=ne(Date.now()/1e3);if(e=ne(e/1e3),n>e){var o=n-e;if(3>o)return t.now;if(60>o)return o.toString()+t.second;if(3600>o)return ne(o/60).toString()+t.minute;if(86400>o)return ne(o/60/60).toString()+t.hour;if(2592000>o){var s=new Date(1e3*n);return s.setHours(0,0,1),86400>=s.getTime()-e?t.day_yesterday:ne(o/60/60/24).toString()+t.day}return 15552000>o?ne(o/60/60/24/30).toString()+t.month:r(e,t.time)}return t.now},getTime:function(e){var t=new Date;return t.setFullYear(parseInt(e.substr(0,4)),parseInt(e.substr(5,2),10)-1,parseInt(e.substr(8,2))),t.setHours(parseInt(e.substr(11,2))||0,parseInt(e.substr(14,2))||0,parseInt(e.substr(17,2))||0,0),t},getTime2:function(e){var t=new Date;return t.setFullYear(parseInt(e.substr(0,4)),parseInt(e.substr(4,2),10)-1,parseInt(e.substr(6,2))),t.setHours(parseInt(e.substr(8,2))||0,parseInt(e.substr(10,2))||0,parseInt(e.substr(12,2))||0,0),t},getDate:function(e){var t=new Date(parseInt(e.substr(0,4)),parseInt(e.substr(5,2),10)-1,parseInt(e.substr(8,2)));return t},getDate2:function(e){var t=new Date(parseInt(e.substr(0,4)),parseInt(e.substr(4,2),10)-1,parseInt(e.substr(6,2)));return t},getUTCTimeString:function(e,n,r){if("number"!=typeof e)return"";n=n||"HH:mm:ss";var s=new Date(e),t={"M+":s.getUTCMonth()+1,"d+":s.getUTCDate(),"h+":0==s.getUTCHours()%12?12:s.getUTCHours()%12,"H+":s.getUTCHours(),"m+":s.getUTCMinutes(),"s+":s.getUTCSeconds(),"q+":re((s.getUTCMonth()+3)/3),S:s.getUTCMilliseconds()},o=r||{0:"\u661F\u671F\u5929",1:"\u661F\u671F\u4E00",2:"\u661F\u671F\u4E8C",3:"\u661F\u671F\u4E09",4:"\u661F\u671F\u56DB",5:"\u661F\u671F\u4E94",6:"\u661F\u671F\u516D"};for(var a in /(y+)/.test(n)&&(n=n.replace(RegExp.$1,(s.getUTCFullYear()+"").substr(4-RegExp.$1.length))),/(E+)/.test(n)&&(n=n.replace(RegExp.$1,o[s.getUTCDay()+""])),t)new RegExp("("+a+")").test(n)&&(n=n.replace(RegExp.$1,1==RegExp.$1.length?t[a]:("00"+t[a]).substr((""+t[a]).length)));return n},getDateFromUTC:function(e){var t=new Date;return t.setUTCFullYear(parseInt(e.substr(0,4)),parseInt(e.substr(5,2),10)-1,parseInt(e.substr(8,2))),t.setUTCHours(0,0,0,0),t},getDate2FromUTC:function(e){var t=new Date;return t.setUTCFullYear(parseInt(e.substr(0,4)),parseInt(e.substr(4,2),10)-1,parseInt(e.substr(6,2))),t.setUTCHours(0,0,0,0),t},getTimeFromUTC:function(e){var t=new Date;return t.setUTCFullYear(parseInt(e.substr(0,4)),parseInt(e.substr(5,2),10)-1,parseInt(e.substr(8,2))),t.setUTCHours(parseInt(e.substr(11,2))||0,parseInt(e.substr(14,2))||0,parseInt(e.substr(17,2))||0,0),t},getTime2FromUTC:function(e){var t=new Date;return t.setUTCFullYear(parseInt(e.substr(0,4)),parseInt(e.substr(4,2),10)-1,parseInt(e.substr(6,2))),t.setUTCHours(parseInt(e.substr(8,2))||0,parseInt(e.substr(10,2))||0,parseInt(e.substr(12,2))||0,0),t}},es=Zo.isValidate,ts=Zo.getDate,ns=Zo.getDate2,rs=Zo.getDate2FromUTC,os=Zo.getDateFromUTC,ss=Zo.getTime2FromUTC,as=Zo.getTimeString,is=Zo.getUTCTimeString,ls=Zo.getTimeStringFromNow,ds=Zo.getTimeFromUTC,cs=Zo.getTime,us=Zo.getTime2,ps=Array.isArray||function(e){return"Array"==ot(e)},gs=function(e,t,n){var r=fe(t);r in e?f.f(e,r,x(0,n)):e[r]=n},ms=Le("species"),fs=function(e){return 51<=yr||!ie(function(){var t=[],n=t.constructor={};return n[ms]=function(){return{foo:1}},1!==t[e](Boolean).foo})},hs=Object.defineProperty,ys={},bs=function(e){throw e},_s=function(e,t){if(Se(ys,e))return ys[e];t||(t={});var n=[][e],r=!!Se(t,"ACCESSORS")&&t.ACCESSORS,o=Se(t,0)?t[0]:bs,s=Se(t,1)?t[1]:void 0;return ys[e]=!!n&&!ie(function(){if(r&&!le)return!0;var e={length:-1};r?hs(e,1,{enumerable:!0,get:bs}):e[1]=1,n.call(e,o,s)})},Es=fs("slice"),Ts=_s("slice",{ACCESSORS:!0,0:0,1:2}),vs=Le("species"),As=[].slice;Gt({target:"Array",proto:!0,forced:!Es||!Ts},{slice:function(e,t){var r,o,s,a=_t(this),i=It(a.length),l=Ot(e,i),d=Ot(void 0===t?i:t,i);if(ps(a)&&(r=a.constructor,"function"==typeof r&&(r===Array||ps(r.prototype))?r=void 0:de(r)&&(r=r[vs],null===r&&(r=void 0)),r===Array||void 0===r))return As.call(a,l,d);for(o=new(void 0===r?Array:r)(Z(d-l,0)),s=0;l<d;l++,s++)l in a&&gs(o,s,a[l]);return o.length=s,o}});var xs,Ss=Object.keys||function(e){return Pt(e,Rt)},Cs=le?Object.defineProperties:function(e,t){me(e);for(var n,r=Ss(t),o=r.length,s=0;o>s;)f.f(e,n=r[s++],t[n]);return e},Is=">",Os="<",ks="prototype",ws="script",Ns=We("IE_PROTO"),Ps=function(){},Rs=function(e){return Os+ws+Is+e+Os+"/"+ws+Is},Ls=function(e){e.write(Rs("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ms=function(){var e,t=pe("iframe");return t.style.display="none",xn.appendChild(t),t.src="java"+ws+":"+"",e=t.contentWindow.document,e.open(),e.write(Rs("document.F=Object")),e.close(),e.F},js=function(){try{xs=document.domain&&new ActiveXObject("htmlfile")}catch(e){}js=xs?Ls(xs):Ms();for(var e=Rt.length;e--;)delete js[ks][Rt[e]];return js()};Ve[Ns]=!0;var Fs=Object.create||function(e,t){var n;return null===e?n=js():(Ps[ks]=me(e),n=new Ps,Ps[ks]=null,n[Ns]=e),void 0===t?n:Cs(n,t)},Ds="\t\n\x0B\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF",Bs="["+Ds+"]",Hs=RegExp("^"+Bs+Bs+"*"),Us=RegExp(Bs+Bs+"*$"),$s=function(e){return function(t){var n=bt(t)+"";return 1&e&&(n=n.replace(Hs,"")),2&e&&(n=n.replace(Us,"")),n}},qs={start:$s(1),end:$s(2),trim:$s(3)},Ys=jt.f,zs=vt.f,Ws=f.f,Vs=qs.trim,Gs="Number",Xs=ae[Gs],Ks=Xs.prototype,Qs=ot(Fs(Ks))==Gs,Js=function(e){var t,n,r,o,s,a,i,l,d=fe(e,!1);if("string"==typeof d&&2<d.length)if(d=Vs(d),t=d.charCodeAt(0),43===t||45===t){if(n=d.charCodeAt(2),88===n||120===n)return NaN;}else if(48===t){switch(d.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+d;}for(s=d.slice(2),a=s.length,i=0;i<a;i++)if(l=s.charCodeAt(i),48>l||l>o)return NaN;return parseInt(s,r)}return+d};if(Wt(Gs,!Xs(" 0o1")||!Xs("0b1")||Xs("+0x1"))){for(var Zs,ea=function(e){var t=1>arguments.length?0:e,n=this;return n instanceof ea&&(Qs?ie(function(){Ks.valueOf.call(n)}):ot(n)!=Gs)?so(new Xs(Js(t)),n,ea):Js(t)},ta=le?Ys(Xs):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),na=0;ta.length>na;na++)Se(Xs,Zs=ta[na])&&!Se(ea,Zs)&&Ws(ea,Zs,zs(Xs,Zs));ea.prototype=Ks,Ks.constructor=ea,nt(ae,Gs,ea)}Gt({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var ra=t(function(e,t){var n=Promise;t.sleep=function(e){return new n(function(t,n){try{setTimeout(function(){t()},e)}catch(e){n(e)}})},t.mergeMap=function(){for(var e,t={},n=0;n<arguments.length;n++)if(e=arguments[n],e)for(var r in e)t[r]=e[r];return t},t.isNull=function(t){return null===t||t===void 0||Number.isNaN(t)},t.getTimeString=Zo.getTimeString,t.getTimeStringFromNow=Zo.getTimeStringFromNow,t.getDate=Zo.getDate,t.getDate2=Zo.getDate2,t.denodeify=function(e,t,r){return r=r||1/0,function(){var s=Array.prototype.slice.call(arguments,0,0<r?r:0);return new n(function(n,r){s.push(function(e,t){e?r(e):n(t)});var a=e.apply(t,s);a&&("object"===o(a)||"function"==typeof a)&&"function"==typeof a.then&&n(a)})}},t.promisify=t.denodeify}),oa=ra.sleep,sa=ra.mergeMap,aa=ra.isNull,ia=ra.getTimeString,la=ra.getTimeStringFromNow,da=ra.getDate,ca=ra.getDate2,ua=ra.denodeify,pa=ra.promisify,ga=function(e,t){var n=[][e];return!!n&&ie(function(){n.call(null,t||function(){throw 1},1)})},ma=wt.indexOf,fa=[].indexOf,ha=!!fa&&0>1/[1].indexOf(1,-0),ya=ga("indexOf"),ba=_s("indexOf",{ACCESSORS:!0,1:0});Gt({target:"Array",proto:!0,forced:ha||!ya||!ba},{indexOf:function(e){return ha?fa.apply(this,arguments)||0:ma(this,e,1<arguments.length?arguments[1]:void 0)}});var _a=[].join,Ea=yt!=Object,Ta=ga("join",",");Gt({target:"Array",proto:!0,forced:Ea||!Ta},{join:function(e){return _a.call(_t(this),e===void 0?",":e)}}),Gt({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991}),zo("match",1,function(e,t,r){return[function(t){var n=bt(this),r=t==null?void 0:t[e];return r===void 0?new RegExp(t)[e](n+""):r.call(t,n)},function(e){var o=r(t,e,this);if(o.done)return o.value;var s=me(e),a=this+"";if(!s.global)return Qo(s,a);var i=s.unicode;s.lastIndex=0;for(var l,d=[],c=0;null!==(l=Qo(s,a));){var u=l[0]+"";d[c]=u,""==u&&(s.lastIndex=Ko(a,It(s.lastIndex),i)),c++}return 0===c?null:d}]});var va=t(function(e,t){var n="undefined"==typeof window?"undefined"==typeof oe?"undefined"==typeof self?void 0:self:oe:window;t.browserIsIE=function(){return!(!n.ActiveXObject&&!("ActiveXObject"in n))},t.browserIEVer=function(){var e=Number.MAX_SAFE_INTEGER;if(!t.browserIsIE())return e;var n=navigator.userAgent,r=-1<n.indexOf("compatible")&&-1<n.indexOf("MSIE"),o=-1<n.indexOf("Trident")&&-1<n.indexOf("rv:11.0");if(r){/MSIE (\d+\.\d+);/.test(n);var s=parseFloat(RegExp.$1);return 7==s?7:8==s?8:9==s?9:10==s?10:6}return o?11:e},t.browserIsSupportHtml5=function(){return"undefined"!=typeof Worker},t.browserIsMobile=function(e){e||o(n)===void 0||(e=n.navigator.userAgent);var t=e,r=new RegExp(["Android","webOS","iPhone","iPad","iPod","Blackberry","Windows Phone"].join("|"),"i");return null!=t.match(r)},t.browserIsIOS=function(e){e||o(n)===void 0||(e=n.navigator.userAgent);var t=e,r=new RegExp(["iPhone","iPad","iPod"].join("|"),"i");return null!=t.match(r)},t.browserIsPhone=function(e){e||o(n)===void 0||(e=n.navigator.userAgent);var t=e,r=new RegExp(["Android","iPhone","iPod","Blackberry","Windows Phone"].join("|"),"i");return null!=t.match(r)},t.browserIsSafari=function(e){e||o(n)===void 0||(e=n.navigator.userAgent);var t=e.toLowerCase();return t.match(/version\/([\d.]+).*safari/)},t.browserIsOpera=function(e){e||o(n)===void 0||(e=n.navigator.userAgent);var t=e.toLowerCase();return t.match(/opera.([\d.]+)/)},t.browserIsFirefox=function(e){e||o(n)===void 0||(e=n.navigator.userAgent);var t=e.toLowerCase();return t.match(/firefox\/([\d.]+)/)},t.browserIsChrome=function(e){e||o(n)===void 0||(e=n.navigator.userAgent);var t=e.toLowerCase();return!!t.match(/chrome\/([\d.]+)/)&&!!!t.match(/edg\/([\d.]+)/)},t.browserIsEdge=function(e){e||o(n)===void 0||(e=n.navigator.userAgent);var t=e.toLowerCase();return t.match(/edg\/([\d.]+)/)},t.browserIsWeixin=function(e){e||o(n)===void 0||(e=n.navigator.userAgent);var t=e;return!("MicroMessenger"!=t.match(/MicroMessenger/i))},t.platformIsWin=function(e){e||o(n)===void 0||(e=n.navigator.userAgent);var t=e;return!!(0<=t.indexOf("win32")||0<=t.indexOf("wow32"))||!!(0<=t.indexOf("win64")||0<=t.indexOf("wow64"))},t.platformIsMac=function(e){e||o(n)===void 0||(e=n.navigator.userAgent);var t=e;return!!/macintosh|mac os x/i.test(t)}}),Aa=va.browserIsIE,xa=va.browserIEVer,Sa=va.browserIsSupportHtml5,Ca=va.browserIsMobile,Ia=va.browserIsIOS,Oa=va.browserIsPhone,ka=va.browserIsSafari,wa=va.browserIsOpera,Na=va.browserIsFirefox,Pa=va.browserIsChrome,Ra=va.browserIsEdge,La=va.browserIsWeixin,Ma=va.platformIsWin,ja=va.platformIsMac,Fa=ra.sleep,Da=ra.getTimeString,Ba=ra.getTimeStringFromNow,Ha=ra.getDate,Ua=ra.getDate2,$a=ra.mergeMap,qa=ra.isNull,Ya=ra.denodeify,za=ra.promisify,Wa=va.browserIsIE,Va=va.browserIEVer,Ga=va.browserIsSupportHtml5,Xa=va.browserIsMobile,Ka=va.browserIsIOS,Qa=va.browserIsPhone,Ja=va.browserIsSafari,Za=va.browserIsOpera,ei=va.browserIsFirefox,ti=va.browserIsChrome,ni=va.browserIsEdge,ri=va.browserIsWeixin,oi=va.platformIsWin,si=va.platformIsMac,ai={sleep:Fa,getTimeString:Da,getTimeStringFromNow:Ba,getDate:Ha,getDate2:Ua,mergeMap:$a,isNull:qa,denodeify:Ya,promisify:za,browserIsIE:Wa,browserIEVer:Va,browserIsSupportHtml5:Ga,browserIsMobile:Xa,browserIsIOS:Ka,browserIsPhone:Qa,browserIsSafari:Ja,browserIsOpera:Za,browserIsFirefox:ei,browserIsChrome:ti,browserIsEdge:ni,browserIsWeixin:ri,platformIsWin:oi,platformIsMac:si},ii="\u200B\x85\u180E",li=qs.trim;Gt({target:"String",proto:!0,forced:function(e){return ie(function(){return!!Ds[e]()||ii[e]()!=ii||Ds[e].name!==e})}("trim")},{trim:function(){return li(this)}});var di=t(function(e,t){t.isPhoneMobile=function(e){return!!e&&!!/^(1[2-9][0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89]|98[0-9]|99[0-9])\d{8}$/.test(e)},t.isEmail=function(e){return!!e&&!!/^(([A-Za-z0-9\u4e00-\u9fa5_-]|\.)+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+)$/.test(e)},t.isAlphaOrDigit=function(e){return!!e&&!!/^[A-Za-z0-9]+$/.test(e)},t.isChinese=function(e){return!!e&&!!/^[\u4e00-\u9fa5]{0,}$/.test(e)},t.isEmpty=function(e){return!e||"string"!=typeof e||!(0!=e.length)},t.getByteSize=function(e){if(!e)return 0;var t,n,r=0;for(t=0;t<e.length;t++)n=e.charCodeAt(t),127>n?++r:128<=n&&2047>=n?r+=2:2048<=n&&65535>=n?r+=3:65536<=n&&(r+=4);return r},t.replace=function(e,t,n){if(!e||!t)return e;if(0==e.length)return e;var r="",o=e.length,a=0,l=0;do if(a=e.indexOf(t,l),-1!=a&&a<o)a!=l&&(r+=e.slice(l,a)),r+=n,l=a+t.length;else{r+=e.slice(l);break}while(a<o);return r},t.utf8ToBytes=function(e){if(!e)return[];var t,n,r=[];t=e.length;for(var o=0;o<t;o++)n=e.charCodeAt(o),65536<=n&&1114111>=n?(r.push(240|7&n>>18),r.push(128|63&n>>12),r.push(128|63&n>>6),r.push(128|63&n)):2048<=n&&65535>=n?(r.push(224|15&n>>12),r.push(128|63&n>>6),r.push(128|63&n)):128<=n&&2047>=n?(r.push(192|31&n>>6),r.push(128|63&n)):r.push(255&n);return r},t.bytesToUtf8=function(e){for(var t="",n=0;n<e.length;){var r=e[n],o=0;0==r>>>7?(t+=te(e[n]),n+=1):252==(252&r)?(o=(3&e[n])<<30,o|=(63&e[n+1])<<24,o|=(63&e[n+2])<<18,o|=(63&e[n+3])<<12,o|=(63&e[n+4])<<6,o|=63&e[n+5],t+=te(o),n+=6):248==(248&r)?(o=(7&e[n])<<24,o|=(63&e[n+1])<<18,o|=