-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
9 lines (9 loc) · 54.5 KB
/
index.js
1
2
3
4
5
6
7
8
9
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.mUtils=e():t.mUtils=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=46)}([function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}},function(t,e,n){"use strict";var r=n(7),o=n(30),i=Object.prototype.toString;function a(t){return"[object Array]"===i.call(t)}function c(t){return null!==t&&"object"==typeof t}function u(t){return"[object Function]"===i.call(t)}function s(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:a,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:c,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:u,isStream:function(t){return c(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:s,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)s(arguments[r],n);return e},deepMerge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]="object"==typeof n?t({},n):n}for(var r=0,o=arguments.length;r<o;r++)s(arguments[r],n);return e},extend:function(t,e,n){return s(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n},function(t,e,n){var r=n(20),o=n(21),i=n(22);t.exports=function(t){return r(t)||o(t)||i()}},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports=n(26)},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(2);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){var r=n(2),o=n(36),i={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,u={adapter:(void 0!==e&&"[object process]"===Object.prototype.toString.call(e)?c=n(11):"undefined"!=typeof XMLHttpRequest&&(c=n(11)),c),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(i)})),t.exports=u}).call(this,n(35))},function(t,e,n){"use strict";var r=n(2),o=n(37),i=n(8),a=n(39),c=n(40),u=n(12);t.exports=function(t){return new Promise((function(e,s){var l=t.data,f=t.headers;r.isFormData(l)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",h=t.auth.password||"";f.Authorization="Basic "+btoa(p+":"+h)}if(d.open(t.method.toUpperCase(),i(t.url,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:t,request:d};o(e,s,r),d=null}},d.onabort=function(){d&&(s(u("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){s(u("Network Error",t,null,d)),d=null},d.ontimeout=function(){s(u("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var m=n(41),g=(t.withCredentials||c(t.url))&&t.xsrfCookieName?m.read(t.xsrfCookieName):void 0;g&&(f[t.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(f,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete f[e]:d.setRequestHeader(e,t)})),t.withCredentials&&(d.withCredentials=!0),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),s(t),d=null)})),void 0===l&&(l=null),d.send(l)}))}},function(t,e,n){"use strict";var r=n(38);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){e=e||{};var n={};return r.forEach(["url","method","params","data"],(function(t){void 0!==e[t]&&(n[t]=e[t])})),r.forEach(["headers","auth","proxy"],(function(o){r.isObject(e[o])?n[o]=r.deepMerge(t[o],e[o]):void 0!==e[o]?n[o]=e[o]:r.isObject(t[o])?n[o]=r.deepMerge(t[o]):void 0!==t[o]&&(n[o]=t[o])})),r.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],(function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])})),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){var r=n(23),o=n(24),i=n(25);t.exports=function(t,e){return r(t)||o(t,e)||i()}},function(t,e,n){var r=n(3),o=n(27);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e,n){var r=n(28);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},function(t,e,n){t.exports=n(29)},function(t,e){t.exports=function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}},function(t,e){t.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),a=new j(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=S(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=s(t,e,n);if("normal"===u.type){if(r=n.done?p:f,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l="suspendedStart",f="suspendedYield",d="executing",p="completed",h={};function m(){}function g(){}function v(){}var y={};y[i]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(U([])));w&&w!==n&&r.call(w,i)&&(y=w);var x=v.prototype=m.prototype=Object.create(y);function E(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function T(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,a){var c=s(t[n],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(l).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,a)}))}a(c.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function S(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function U(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:C}}function C(){return{value:e,done:!0}}return g.prototype=x.constructor=v,v.constructor=g,v[c]=g.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},E(T.prototype),T.prototype[a]=function(){return this},t.AsyncIterator=T,t.async=function(e,n,r,o){var i=new T(u(e,n,r,o));return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),x[c]="Generator",x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=U,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:U(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,r)}t.exports=n},function(t,e,n){"use strict";var r=n(2),o=n(7),i=n(31),a=n(13);function c(t){var e=new i(t),n=o(i.prototype.request,e);return r.extend(n,i.prototype,e),r.extend(n,e),n}var u=c(n(10));u.Axios=i,u.create=function(t){return c(a(u.defaults,t))},u.Cancel=n(14),u.CancelToken=n(44),u.isCancel=n(9),u.all=function(t){return Promise.all(t)},u.spread=n(45),t.exports=u,t.exports.default=u},function(t,e){
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";var r=n(2),o=n(8),i=n(32),a=n(33),c=n(13);function u(t){this.defaults=t,this.interceptors={request:new i,response:new i}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=c(this.defaults,t)).method=t.method?t.method.toLowerCase():"get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=c(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,o){return this.request(r.merge(o||{},{method:t,url:e,data:n}))}})),t.exports=u},function(t,e,n){"use strict";var r=n(2);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var r=n(2),o=n(34),i=n(9),a=n(10),c=n(42),u=n(43);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.baseURL&&!c(t.url)&&(t.url=u(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(s(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,s=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?s=u.concat(s):f=-1,s.length&&p())}function p(){if(!l){var t=c(d);l=!0;for(var e=s.length;e;){for(u=s,s=[];++f<e;)u&&u[f].run();f=-1,e=s.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function m(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new h(t,e)),1!==s.length||l||c(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(12);t.exports=function(t,e,n){var o=n.config.validateStatus;!o||o(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(2),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(2);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(2);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(14);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"setCookie",(function(){return T})),n.d(r,"getCookie",(function(){return S})),n.d(r,"removeCookie",(function(){return O})),n.d(r,"randomDataFromArr",(function(){return k})),n.d(r,"checkType",(function(){return j})),n.d(r,"deepClone",(function(){return U})),n.d(r,"extend",(function(){return C})),n.d(r,"uniqueArray",(function(){return L})),n.d(r,"dataUrlToBlob",(function(){return P})),n.d(r,"union",(function(){return A})),n.d(r,"intersection",(function(){return R})),n.d(r,"diffset",(function(){return _})),n.d(r,"calcQuantity",(function(){return D}));var o={};n.r(o),n.d(o,"ua",(function(){return N})),n.d(o,"EXP_MOBILE",(function(){return F})),n.d(o,"isMobile",(function(){return I})),n.d(o,"EXP_IOS",(function(){return M})),n.d(o,"isIOS",(function(){return B})),n.d(o,"isAndroid",(function(){return q})),n.d(o,"EXP_PHONE_NUM",(function(){return z})),n.d(o,"isPhoneNum",(function(){return H})),n.d(o,"EXP_EMAIL",(function(){return G})),n.d(o,"isEmail",(function(){return $})),n.d(o,"isWeiXin",(function(){return W})),n.d(o,"EXP_CHINESE",(function(){return X})),n.d(o,"isChinese",(function(){return V})),n.d(o,"isObject",(function(){return J})),n.d(o,"isEmptyObject",(function(){return Q})),n.d(o,"isEmptyStr",(function(){return Y}));var i={};n.r(i),n.d(i,"hasClass",(function(){return rt})),n.d(i,"addClass",(function(){return ot})),n.d(i,"removeClass",(function(){return it})),n.d(i,"computedStyle",(function(){return at})),n.d(i,"cssFilter",(function(){return ct}));var a={};n.r(a),n.d(a,"randomColor",(function(){return ut})),n.d(a,"layoutFramework",(function(){return st})),n.d(a,"calcStringLength",(function(){return lt})),n.d(a,"strTrim",(function(){return ft})),n.d(a,"throttle",(function(){return dt})),n.d(a,"debounce",(function(){return pt})),n.d(a,"formatDate",(function(){return ht})),n.d(a,"copyCode",(function(){return mt})),n.d(a,"base64Encode",(function(){return gt})),n.d(a,"base64Decode",(function(){return vt}));var c={};n.r(c),n.d(c,"checkLayoutOrientation",(function(){return yt})),n.d(c,"initRem",(function(){return bt}));var u={};n.r(u),n.d(u,"parseUrl",(function(){return Tt})),n.d(u,"stringifyUrl",(function(){return St})),n.d(u,"deleteUrlParam",(function(){return Ot}));var s={};n.r(s),n.d(s,"log",(function(){return At})),n.d(s,"fnTime",(function(){return Rt}));var l={};n.r(l),n.d(l,"wait",(function(){return Dt})),n.d(l,"requestOnLoad",(function(){return Nt})),n.d(l,"sleep",(function(){return Ft})),n.d(l,"wrap",(function(){return It}));var f={};n.r(f),n.d(f,"compose",(function(){return Mt})),n.d(f,"curry",(function(){return Bt}));var d={};n.r(d),n.d(d,"notification",(function(){return Jt})),n.d(d,"Toast",(function(){return Qt})),n.d(d,"Loading",(function(){return Yt}));var p=n(3),h=n.n(p),m=n(5),g=n.n(m),v=n(0),y=n.n(v),b=n(1),w=n.n(b),x=n(4),E=n.n(x);function T(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:72e5,r=new Date;r.setTime(r.getTime()+n),document.cookie="".concat(t,"=").concat(escape(e),";expires=").concat(r.toUTCString())}function S(t){if(t){var e=new RegExp("(^| )".concat(t,"=([^;]*)(;|$)")),n=document.cookie.match(e);return n&&n[2]?n[2]:null}var r=[];if(document.cookie.length){var o=document.cookie.split("; ");for(var i in o)r.push({name:"".concat(unescape(o[i].split("=")[0])),value:"".concat(unescape(o[i].split("=")[1]))});return r}return null}function O(t){var e=new Date;if(e.setTime(e.getTime()-1),t){var n=S(t);null!==n&&(document.cookie="".concat(t,"=").concat(n,";expires=").concat(e.toUTCString()))}else{var r=S();for(var o in r)document.cookie="".concat(r[o].name,"=").concat(r[o].value,";expires=").concat(e.toUTCString())}}function k(t,e){var n=Array.from(new Set(t)),r=n.length,o=new Array;if(e>0){if(n){for(var i=0;i<(e>r?r:e);i++){var a=~~(Math.random()*n.length);o.push(n[a]),n.splice(a,1)}return o}}else nt.logError("数量必须大于0","[mUtils] StoreUtils randomDataFromArr => ")}function j(t){return Object.prototype.toString.call(t).match(/\[object (.*?)\]/)[1].toLowerCase()}function U(t){for(var e={},n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];switch(j(t[o])){case"object":e[o]=U(t[o]);break;case"array":e[o]=[].concat(t[o]);break;default:e[o]=t[o]}}return e}function C(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return U(Object.assign.apply(Object,[{}].concat(e)))}function L(t){return E()(new Set(t))}function P(t){for(var e=t.split(","),n=e[0].match(/:(.*?);/)[1],r=atob(e[1]),o=r.length,i=new Uint8Array(o);o--;)i[o]=r.charCodeAt(o);return new Blob([i],{type:n})}function A(){var t;return Array.from(new Set((t=[]).concat.apply(t,arguments)))}function R(t,e){var n=new Set(e);return t.filter((function(t){return n.has(t)}))}function _(t,e){var n=new Set(e),r=new Set(t);return[].concat(E()(E()(t).filter((function(t){return!n.has(t)}))),E()(E()(e).filter((function(t){return!r.has(t)}))))}function D(t,e){return("string"==typeof t?t.split(""):t).reduce((function(t,n){return e===n?t+1:t}),0)}var N=window.navigator.userAgent,F=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;function I(){return F.test(N)}var M=/(iPhone|iPad|iPod|iOS)/i;function B(){return M.test(N)}function q(){return!!~N.indexOf("Android")||!!~N.indexOf("Adr")}var z=/^1[3-9]\d{9}$/;function H(t){return"string"!=typeof t?(nt.logError("参数需要为string类型,但是发现为: ".concat(h()(t)),"[mUtils] ExpUtils isPhoneNum error => "),!1):z.test(t)}var G=/^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/;function $(t){return G.test(t)}function W(){var t=N.toLowerCase();return"micromessenger"===String(t.match(/MicroMessenger/i))}var X=/^[\u3220-\uFA29]+$/;function V(t){return X.test(t)}function J(t){return"object"===j(t)}function Q(t){return J(t)?0===Object.keys(t).length:(nt.logError("参数不是真正的object对象","[mUtils] ExpUtils isEmptyObject error => "),!1)}function Y(t){return 0===t.replace(/(^\s*)|(\s*$)/g,"").length}function K(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?K(Object(n),!0).forEach((function(e){g()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var tt,et,nt=function(){function t(){y()(this,t)}return w()(t,null,[{key:"console",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"数据信息",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.defaultColor;J(e)?Array.isArray(e)?console.log("%c".concat(n),"color: ".concat(r,"; font-weight: bold"),e):console.log("%c".concat(n),"color: ".concat(r,"; font-weight: bold"),Z({},e)):console.log("%c".concat(n),"color: ".concat(r,"; font-weight: bold"),e)}))},{key:"logDefault",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[mUtils] log_utils default => ";t.console(e,n,t.defaultColor)}},{key:"logInfo",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[mUtils] log_utils info => ";t.console(e,n,t.infoColor)}},{key:"logSuccess",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[mUtils] log_utils success => ";t.console(e,n,t.successColor)}},{key:"logError",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[mUtils] log_utils error => ";t.console(e,n,t.errorColor)}},{key:"logWarning",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[mUtils] log_utils warning => ";t.console(e,n,t.warningColor)}},{key:"logBeauty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"疏影横斜水清浅",e=arguments.length>1?arguments[1]:void 0;if(e&&"object"!==h()(e))throw new TypeError("options is an object, but found ".concat(h()(e)));var n={isMax:!1,colors:["#a18cd1","#fbc2eb","#8ec5fc"]},r=Object.assign({},n,e);r.isMax?console.log("%c".concat(t),"background-size: 100%;background-image: -moz-linear-gradient(left, ".concat(r.colors.toString(),");background-image: -webkit-linear-gradient(left, ").concat(r.colors.toString(),");background-image: linear-gradient(to right, ").concat(r.colors.toString(),");padding:20px 40px;color:#fff;font-size:18px;")):console.log("%c".concat(t),"background-size: 100%;background-image: -moz-linear-gradient(left, ".concat(r.colors.toString(),");background-image: -webkit-linear-gradient(left, ").concat(r.colors.toString(),");background-image: linear-gradient(to right, ").concat(r.colors.toString(),");padding:2px 5px;color:#fff;font-size:12px;"))}},{key:"group",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[mUtils] log_utils group => ",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.defaultColor;console.group("%c".concat(e),"color: ".concat(n,"; font-weight: bold"))}},{key:"groupCollapsed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[mUtils] log_utils group_collapsed => ",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.defaultColor;console.groupCollapsed("%c".concat(e),"color: ".concat(n,"; font-weight: bold"))}},{key:"groupEnd",value:function(){console.groupEnd()}},{key:"table",value:function(t){console.table(t)}}]),t}();function rt(t,e){return t.classList.contains(e)}function ot(t,e){Array.isArray(e)?e.forEach((function(e){rt(t,e)||t.classList.add(e)})):rt(t,e)||t.classList.add(e)}function it(t,e){Array.isArray(e)?e.forEach((function(e){rt(t,e)&&t.classList.remove(e)})):rt(t,e)&&t.classList.remove(e)}function at(t,e){if(t){if(e)return document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(t,"")[e]:t.currentStyle[e];nt.logError("请输入需要查询的css属性名称","[mUtils] DomUtils computedStyle error => ")}else nt.logError("dom元素不存在","[mUtils] DomUtils computedStyle error => ")}function ct(t,e,n){if("object"===h()(e)&&!n){var r="";for(var o in e)e.hasOwnProperty(o)&&(r+="".concat(o,"(").concat(e[o],")"));return t.style.filter=r,void(t.style.webkitFilter=r)}t.style.filter="".concat(e,"(").concat(n,")"),t.style.webkitFilter="".concat(e,"(").concat(n,")")}function ut(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=~~(256*Math.random()),n=~~(256*Math.random()),r=~~(256*Math.random());return"rgba(".concat(e,",").concat(n,",").concat(r,",").concat(t,")")}function st(){Array.from(document.querySelectorAll("*"),(function(t){t.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)}))}function lt(t,e){if("string"==typeof t)return e?Array.from(t).reduce((function(t,e){return t+(e.charCodeAt(0)>255?2:1)}),0):t.length;nt.logError("str must be string but found ".concat(h()(t)),"[mUtils] GenericUtils calcStringLength error => ")}function ft(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt.StrTrimType.LEFT_RIGHT;if("string"==typeof t)switch(e){case 0:return t.replace(/(^\s*)|(\s*$)/g,"");case 1:return t.replace(/\s/g,"");case 2:return t.replace(/(^\s*)/g,"");case 3:return t.replace(/(\s*$)/g,"");default:return t.replace(/(^\s*)|(\s*$)/g,"")}else nt.logError("str must be string but found ".concat(h()(t)),"[mUtils] GenericUtils strTrim error => ")}function dt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if("function"==typeof t){var n=t,r=null,o=!0;return function(){var t=arguments,i=this;if(o)return n.apply(i,t),void(o=!1);r||(r=setTimeout((function(){setTimeout(r),r=null,n.apply(i,t)}),e))}}nt.logError("第一个参数必须是方法","[mUtils] GenericUtils throttle error => ")}function pt(t,e){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if("function"==typeof t)return r?function(){clearTimeout(n),n||t.apply(this,arguments),n=setTimeout((function(){setTimeout(n),n=null}),e)}:function(){clearTimeout(n),n=setTimeout((function(){setTimeout(n),t.apply(this,arguments),n=null}),e)};nt.logError("第一个参数必须是方法","[mUtils] GenericUtils debounce error => ")}function ht(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=new Date(e),r={"M+":n.getMonth()+1,"d+":n.getDate(),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":~~((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var o in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?r[o]:("00"+r[o]).substr((""+r[o]).length)));return t}function mt(t){var e=document.createElement("textarea");e.style.cssText="position: absolute; top: -1000px; right: -1000px; z-index: -1000;",document.body.appendChild(e),e.value=t,e.select(),document.execCommand("copy"),document.body.removeChild(e)}function gt(t){return window.btoa(t)}function vt(t){return window.atob(decodeURIComponent(t))}function yt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"请旋转屏幕,以达到更好的浏览效果";if(window.hasOwnProperty("orientation")){var e=null;n(),window.addEventListener("orientationchange",(function(){n()}))}function n(){var n=window.orientation;if(0===n||360===n)e&&(document.body.removeChild(e),e=null);else{if(e)return;(e=document.createElement("div")).style.cssText="position: fixed;\n top: 0;\n left: 0;\n right:0;\n bottom:0;\n display:flex;\n align-items:center;\n justify-content:center;\n font-size: 20px;\n background:#fff;\n z-index: 19940320;\n padding: 40px;",e.innerText=t,document.body.appendChild(e)}}}function bt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:750,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body.clientWidth,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r={},o=e/t;r.Html=document.getElementsByTagName("html")[0],r.intiFontSize=function(){var e=Math.min(document.body.clientWidth,document.body.clientHeight),r=parseFloat((e/t).toFixed(4)),i=r>o?o:r;return n&&(i=r),i},r.updateFontSize=function(){r.Html.setAttribute("style","font-size:"+100*r.intiFontSize()+"px"),!n&&document.body.clientWidth>=e&&document.body.setAttribute("style","margin: 0 auto; width: 7.5rem")},document.addEventListener&&(window.addEventListener("resize",r.updateFontSize,!1),document.addEventListener("DOMContentLoaded",r.updateFontSize,!1))}nt.defaultColor="#9E9E9E",nt.infoColor="#0099FF",nt.successColor="#00CC99",nt.errorColor="#CC0000",nt.warningColor="#FF9966",function(t){!function(t){t[t.LEFT_RIGHT=0]="LEFT_RIGHT",t[t.ALL=1]="ALL",t[t.LEFT=2]="LEFT",t[t.RIGHT=3]="RIGHT"}(t.StrTrimType||(t.StrTrimType={}))}(tt||(tt={})),function(t){!function(t){t.fanmily="14px Arial",t.color="#d4546f"}(t.FontStyle||(t.FontStyle={})),function(t){t.Text="text",t.Image="image"}(t.TextType||(t.TextType={}))}(et||(et={}));var wt=function(){function t(){y()(this,t)}return w()(t,null,[{key:"dnsTime",value:function(){return t.timing.domainLookupEnd-t.timing.domainLookupStart}},{key:"loadTime",value:function(){return t.timing.domLoading-t.timing.navigationStart}},{key:"requestTime",value:function(){return t.timing.responseEnd-t.timing.responseStart}},{key:"tcpTime",value:function(){return t.timing.connectEnd-t.timing.connectStart}},{key:"renderDomTime",value:function(){return t.timing.domComplete-t.timing.domInteractive}},{key:"readyDomTime",value:function(){return t.timing.domContentLoadedEventEnd-t.timing.navigationStart}},{key:"loadFullTime",value:function(){return t.timing.loadEventEnd-t.timing.navigationStart}},{key:"logger",value:function(){window.addEventListener("load",(function(){setTimeout((function(){nt.group("[mUtils] PerformanceUtils logger - list: ",nt.infoColor),nt.logDefault(t.dnsTime(),"DNS查询耗时"),nt.logDefault(t.loadTime(),"白屏时间"),nt.logDefault(t.requestTime(),"request请求耗时"),nt.logDefault(t.tcpTime(),"TCP链接耗时"),nt.logDefault(t.renderDomTime(),"解析dom树耗时"),nt.logDefault(t.readyDomTime(),"用户可操作时间节点"),nt.logDefault(t.loadFullTime(),"onload时间"),nt.groupEnd()}),300)}))}}]),t}();wt.performance=window.performance,wt.timing=window.performance.timing;var xt=n(15),Et=n.n(xt);function Tt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.search,e=t.slice(t.indexOf("?")),n=new URLSearchParams(e),r={},o=!0,i=!1,a=void 0;try{for(var c,u=n.entries()[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var s=Et()(c.value,2),l=s[0],f=s[1];r[l]=f}}catch(t){i=!0,a=t}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}return r}function St(t){return Object.entries(t).map((function(t){var e=E()(t),n=e[0],r=e[1];return"".concat(n,"=").concat(encodeURIComponent(r))})).join("&")}function Ot(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=e.split("?")[1];if(!n)return e;var r=e.split("?")[0],o=new URLSearchParams(n);return t.forEach((function(t){o.delete(t)})),o.toString()?"".concat(r,"?").concat(o.toString()):r}var kt=n(6),jt=n.n(kt);function Ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ct(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ut(Object(n),!0).forEach((function(e){g()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Lt=function(){function t(e,n){y()(this,t),this.persent=1,this.canvas=null,this.context=null,this.mainResource="",this.canvasWidth=0,this.canvasHeight=0,this.resourceList=[],this.mainResource=e,n&&(this.persent=n)}return w()(t,[{key:"addSourse",value:function(t){return this.resourceList.push(t),this}},{key:"loadResourse",value:function(t,e){var n;return jt.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return(n=new Image).crossOrigin="anonymous",n.src=t,r.abrupt("return",new Promise((function(r,o){n.onload=function(){var t=e?Ct({ref:n},e):n;r(t)},n.onerror=function(){nt.logError(t,"[mUtils] ImageUtils loadResourse 裁剪图片加载错误"),o()}})));case 4:case"end":return r.stop()}}))}},{key:"composeMainResource",value:function(t){var e=t.width/t.height;this.canvasWidth=t.width*this.persent,this.canvasHeight=this.canvasWidth/e,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.context.drawImage(t,0,0,this.canvasWidth,this.canvasHeight),this.context.restore()}},{key:"renderResource",value:function(t){var e={left:t.left*this.canvasWidth,top:t.top*this.canvasHeight,width:t.width*this.canvasWidth,height:t.height*this.canvasHeight};this.context.save(),t.needRound?(this.context.arc(e.width/2+e.left,e.width/2+e.top,e.width/2,0,2*Math.PI,!1),this.context.clip(),this.context.drawImage(t.ref,e.left,e.top,e.width,e.width),this.context.restore()):(this.context.drawImage(t.ref,e.left,e.top,e.width,e.height),this.context.restore())}},{key:"compose",value:function(){var t,e,n,r,o=this;return jt.a.async((function(i){for(;;)switch(i.prev=i.next){case 0:return this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),i.next=4,jt.a.awrap(this.loadResourse(this.mainResource));case 4:return t=i.sent,this.composeMainResource(t),e=[],n=this.resourceList.reduce((function(t,e,n){if(e.type===et.TextType.Image){var r=o.loadResourse(e.content,e);t.push(r)}else o.context.font=e.fanmily||et.FontStyle.fanmily,o.context.fillStyle=e.color||et.FontStyle.color,o.context.fillText(e.content,e.left*o.canvasWidth,e.top*o.canvasHeight);return t}),e),i.next=10,jt.a.awrap(Promise.all(n));case 10:return r=i.sent,i.next=13,jt.a.awrap(r.forEach((function(t){o.renderResource(t)})));case 13:return i.abrupt("return",Promise.resolve(this.convertCanvasToImage()));case 14:case"end":return i.stop()}}),null,this)}},{key:"convertCanvasToImage",value:function(){var t=new Image;return t.src=this.canvas.toDataURL("image/png",1),nt.logSuccess(t,"[mUtils] ImageUtils convertCanvasToImage 图片对象创建成功"),t}}]),t}();function Pt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function At(t,e,n){var r=n.value;n.value=function(){var n;nt.groupCollapsed("[mUtils] DecoratorUtils ".concat(e,"方法的执行信息"),nt.defaultColor);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];nt.logDefault("".concat(e,"(").concat(i,")"),"方法准备执行:"),nt.logInfo(i,"详细的参数值: ");try{n=r.apply(t,i),nt.logSuccess(n,"执行成功结果:")}catch(t){nt.logError(t,"执行失败结果:")}nt.groupEnd()}}function Rt(t,e,n){var r=n.value;if("function"==typeof r)return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pt(Object(n),!0).forEach((function(e){g()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},n,{value:function(){console.time("[mUtils] ".concat(e,"方法执行时间: "));try{return r.apply(t,arguments)}finally{console.timeEnd("[mUtils] ".concat(e,"方法执行时间: "))}}});nt.logError("".concat(e,"必须为方法"),"[mUtils] fnTime 执行失败结果: ")}var _t=function(){function t(){y()(this,t)}return w()(t,null,[{key:"on",value:function(e,n){var r={fn:n,type:"on",name:e};return Object.keys(t.handler).includes(e)?(t.handler[e].push(r),t):(t.handler[e]=[].concat(r),t)}},{key:"off",value:function(e,n){var r=t.handler[e];if(r)for(var o=r.length-1;o>=0;o--)r[o].fn===n&&r.splice(o,1);return t}},{key:"emit",value:function(e){for(var n=this,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=t.handler[e],c=[];a&&a.length&&a.forEach((function(t,e){var r;(r=t.fn).call.apply(r,[n].concat(o)),"once"!==t.type&&c.push(a.slice(e,e+1))}));var u=a&&a.length&&a.some((function(t){return"once"===t.type}));return u&&(t.handler[e]=c),t}},{key:"once",value:function(e,n){t.on(e,n),t.handler[e][0].type="once"}}]),t}();function Dt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4;return new Promise((function(r,o){if("function"==typeof t&&"boolean"==typeof t())var i=setInterval((function(){t()&&(clearTimeout(i),clearTimeout(a),r())}),e),a=setTimeout((function(){nt.logError("","[mUtils] PromiseUtils wait timeout"),clearTimeout(i),clearTimeout(a),o()}),n)}))}function Nt(t){return Promise.all(t)}function Ft(t){return new Promise((function(e){setTimeout((function(){e()}),t)}))}function It(t){return t.then((function(t){return[null,t]})).catch((function(t){return[t,null]}))}function Mt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(){for(var t=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.reduceRight((function(e,n){return n.call.apply(n,[t].concat(E()(e)))}),r)}}function Bt(t){var e=this,n=Array.from(arguments).slice(1),r=t.length;return function(){var o=Array.from(arguments);return n.push.apply(n,E()(o)),n.length<r?Bt.call.apply(Bt,[e,t].concat(E()(n))):t.apply(e,n)}}_t.handler={};var qt=n(16),zt=n.n(qt),Ht=n(17),Gt=n.n(Ht),$t=n(18),Wt=n.n($t),Xt=n(19),Vt=n.n(Xt);function Jt(t){var e=Object.assign({},{title:"疏影横斜水清浅",body:"暗香浮动月黄昏",icon:"http://static.huadong.uniqorn.com.cn/js/utils/5deb72135a682e007c405d87.png",show:function(){},click:function(){}},t);return window.Notification&&"denied"!==Notification.permission?(Notification.requestPermission((function(){var t=new Notification(e.title,{body:e.body,icon:e.icon});t.onshow=function(){e.show()},t.onclick=function(){e.click()}})),Promise.resolve(e)):Promise.reject(e)}function Qt(t,e){e=isNaN(e)?3e3:e;var n=document.createElement("div");n.innerHTML=t,n.style.cssText="font-size: .32rem;color: rgb(255, 255, 255);background-color: rgba(0, 0, 0, 0.6);padding: 10px 15px;border-radius: 4px;position: fixed;top: 50%;left: 50%;text-align: center; transform: translate(-50%, -50%); max-width: 90vm;word-break: break-all;z-index: 2;",document.body.appendChild(n),setTimeout((function(){n.style.opacity="0",setTimeout((function(){document.body.removeChild(n)}),500)}),e)}var Yt=function(){function t(){y()(this,t),this.ele}return w()(t,null,[{key:"show",value:function(e){this.ele?document.body.removeChild(this.ele)&&t._init(e):t._init(e)}},{key:"clear",value:function(){this.ele.style.display="none"}},{key:"_init",value:function(t){console.log("start init");var e=t&&"object"===h()(t.spinner),n=e&&t.spinner.color||"#fff",r=e&&t.spinner.bColor||"#000",o=e&&t.spinner.duration||".8",i=document.createElement("div");ot(i,"mUtilsLoading"),i.style.cssText="font-size: .32rem;color: #fff;background-color: rgba(0, 0, 0, 0.6);padding: 20px;border-radius: 4px;position: fixed;top: 50%;left: 50%;width: auto;max-width: 80%;text-align: center; transform: translate(-50%, -50%);z-index: 2;display: block;";var a={point:'\n <svg version="1.1" x="0px" y="0px"\n width="40px" height="40px" viewBox="0 0 40 40" enable-background="new 0 0 40 40" xml:space="preserve">\n <path opacity="0.4" fill="'.concat(r,'" d="M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946\n s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634\n c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z"/>\n <path fill="').concat(n,'" d="M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0\n C22.32,8.481,24.301,9.057,26.013,10.047z">\n <animateTransform attributeType="xml"\n attributeName="transform"\n type="rotate"\n from="0 20 20"\n to="360 20 20"\n dur="').concat(o,'s"\n repeatCount="indefinite"/>\n </path>\n </svg>\n '),line:' <svg version="1.1" x="0px" y="0px"\n width="40px" height="40px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">\n <path fill="'.concat(n,'" d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z">\n <animateTransform attributeType="xml"\n attributeName="transform"\n type="rotate"\n from="0 25 25"\n to="360 25 25"\n dur="').concat(o,'s"\n repeatCount="indefinite"/>\n </path>\n </svg>')};if(i.innerHTML=a[e&&t.spinner.name||"point"],t&&t.message){var c=document.createElement("div");c.innerHTML=t.message,c.style.cssText="font-size: .32rem;color:".concat(t.messageColor),i.appendChild(c)}document.body.appendChild(i),this.ele=i}}]),t}(),Kt=function(t){function e(t){return y()(this,e),zt()(this,Gt()(e).call(this,t))}return Wt()(e,t),w()(e,[{key:"_getDetail",value:function(t){return this._init("duanzi/detail",t)}},{key:"_init",value:function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o={url:t,data:e,method:n,isNoLoading:r};return this.$http(o)}}]),e}(function(){function t(e){y()(this,t),this.baseURL=e.baseURL,this.timeout=e.timeout,this.header=e.header,this.loadingStar=e.loadingStar,this.loadingEnd=e.loadingStar}return w()(t,[{key:"errorCreate",value:function(t){var e=new Error(t);throw this.errorLog(e),e}},{key:"errorLog",value:function(t){Qt(t.message,5e3)}},{key:"createService",value:function(){var t=this,e=Vt.a.create({baseURL:this.baseURL,timeout:this.timeout||5e3});return e.interceptors.request.use((function(t){return t}),(function(t){nt.logError(">>>>>> Error >>>>>>",t),Promise.reject(t)})),e.interceptors.response.use((function(e){var n=e.data,r=n.code;if(void 0===r)return n;switch(r){case 200:return n.data;case-403:Qt("未登录,请先登录!");break;default:t.errorCreate("".concat(n.msg,": ").concat(e.config.url))}}),(function(e){if(e&&e.response)switch(e.response.status){case 400:e.message="请求错误";break;case 401:e.message="未授权,请登录";break;case 403:e.message="拒绝访问";break;case 404:e.message="请求地址出错: ".concat(e.response.config.url);break;case 408:e.message="请求超时";break;case 500:e.message="服务器内部错误";break;case 501:e.message="服务未实现";break;case 502:e.message="网关错误";break;case 503:e.message="服务不可用";break;case 504:e.message="网关超时";break;case 505:e.message="HTTP版本不受支持"}return t.errorLog(e),Promise.reject(e)})),e}},{key:"$http",value:function(t){var e=this,n=this.createService(),r=S("token");return r&&(t.data.token=r),new Promise((function(r,o){!t.isNoLoading&&e.loadingStar?e.loadingStar():Yt.show({message:"加载中..."}),n({method:t.method||"get",url:t.url,header:Object.assign({},{"content-type":"application/x-www-form-urlencoded"},e.header),params:t.data||{}}).then((function(e){nt.group("[mUtils] http_request 请求成功 => ".concat(t.url)),nt.logInfo(e,"http_request data => "),nt.groupEnd(),r(e)})).catch((function(t){nt.group("[mUtils] http_request 请求失败 =>"),nt.logError(t,"http_request error => "),nt.groupEnd(),o(t)})).finally((function(){e.loadingEnd?e.loadingEnd():Yt.clear()}))}))}}]),t}());n.d(e,"DomUtils",(function(){return Zt})),n.d(e,"DecoratorUtils",(function(){return te})),n.d(e,"PerformanceUtils",(function(){return ee})),n.d(e,"DeviceUtils",(function(){return ne})),n.d(e,"StoreUtils",(function(){return re})),n.d(e,"LogUtils",(function(){return oe})),n.d(e,"GenericUtils",(function(){return ie})),n.d(e,"UrlUtils",(function(){return ae})),n.d(e,"ExpUtils",(function(){return ce})),n.d(e,"ImageUtils",(function(){return ue})),n.d(e,"EventUtils",(function(){return se})),n.d(e,"PromiseUtils",(function(){return le})),n.d(e,"FnUtils",(function(){return fe})),n.d(e,"RequestUtils",(function(){return de})),n.d(e,"FeedbackUtils",(function(){return pe}));var Zt=i,te=s,ee=wt,ne=c,re=r,oe=nt,ie=a,ae=u,ce=o,ue=Lt,se=_t,le=l,fe=f,de=Kt,pe=d;e.default={DecoratorUtils:te,DeviceUtils:ne,DomUtils:Zt,GenericUtils:ie,StoreUtils:re,ExpUtils:ce,LogUtils:oe,PerformanceUtils:ee,UrlUtils:ae,ImageUtils:ue,EventUtils:se,PromiseUtils:le,FnUtils:fe,RequestUtils:de,FeedbackUtils:pe}}])}));
//# sourceMappingURL=mUtils.js.map