@mrtujiawei/utils
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.utils=e():t.utils=e()}(this,(function(){return(()=>{var t={757:(t,e,n)=>{t.exports=n(666)},666:t=>{var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i=e&&e.prototype instanceof d?e:d,o=Object.create(i.prototype),a=new j(r||[]);return o._invoke=function(t,e,n){var r=l;return function(i,o){if(r===v)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return N()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var u=O(a,n);if(u){if(u===y)continue;return u}}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=v;var c=f(t,e,n);if("normal"===c.type){if(r=n.done?p:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",h="suspendedYield",v="executing",p="completed",y={};function d(){}function g(){}function m(){}var w={};w[o]=function(){return this};var b=Object.getPrototypeOf,k=b&&b(b(P([])));k&&k!==n&&r.call(k,o)&&(w=k);var E=m.prototype=d.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function R(t,e){function n(i,o,a,u){var c=f(t[i],t,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function O(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,O(t,n),"throw"===n.method))return y;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var i=f(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function L(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function P(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:N}}function N(){return{value:e,done:!0}}return g.prototype=E.constructor=m,m.constructor=g,g.displayName=c(m,u,"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,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},x(R.prototype),R.prototype[a]=function(){return this},t.AsyncIterator=R,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new R(s(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(E),c(E,u,"Generator"),E[o]=function(){return this},E.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=P,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(S),!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 i(r,i){return u.type="throw",u.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):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),y},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),S(n),y}},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 i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.d(r,{default:()=>Pt});var t={};function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(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&&i(t,e)}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function f(t,e,n){return(f=s()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&i(o,n.prototype),o}).apply(null,arguments)}function l(t){var e="function"==typeof Map?new Map:void 0;return(l=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return f(t,arguments,c(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i(r,t)})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(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)}}function p(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),t}n.r(t),n.d(t,{TYPES:()=>T,addZero:()=>F,debounce:()=>C,hiddenMobile:()=>W,identify:()=>H,isInteger:()=>J,isPlainObject:()=>_,isPromise:()=>U,objectToUrlParams:()=>B,reentrant:()=>K,retry:()=>G,reverseRange:()=>$,sleep:()=>D,throttle:()=>V,toString:()=>A,trailing:()=>Q,trim:()=>z,urlParamsToObject:()=>M});var y=function(){function t(){h(this,t),e(this,"stack",[])}return p(t,[{key:"size",get:function(){return this.stack.length}},{key:"isEmpty",value:function(){return 0==this.size}},{key:"push",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach((function(e){t.stack.push(e)}))}},{key:"pop",value:function(){if(this.isEmpty())throw new t.StackEmptyError;return this.stack.pop()}},{key:"peak",value:function(){if(this.isEmpty())throw new t.StackEmptyError;return this.stack[this.stack.length-1]}}]),t}();e(y,"StackEmptyError",function(t){o(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=c(e);if(n){var i=c(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return u(this,t)});function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Stack is empty";return h(this,i),r.call(this,t)}return i}(l(Error)));const d=y;var g=function(){function t(){h(this,t),e(this,"queue",[])}return p(t,[{key:"size",get:function(){return this.queue.length}},{key:"isEmpty",value:function(){return 0==this.size}},{key:"enqueue",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach((function(e){t.queue.push(e)}))}},{key:"dequeue",value:function(){if(this.isEmpty())throw new t.QueueEmptyError;return this.queue.shift()}}]),t}();e(g,"QueueEmptyError",function(t){o(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=c(e);if(n){var i=c(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return u(this,t)});function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Queue is empty";return h(this,i),r.call(this,t)}return i}(l(Error)));const m=g;function w(t,e,n,r,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,i)}function b(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){w(o,r,i,a,u,"next",t)}function u(t){w(o,r,i,a,u,"throw",t)}a(void 0)}))}}var k=n(757),E=n.n(k);var x=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;h(this,t),e(this,"queue",new m),e(this,"size",0),e(this,"maxSize",1),this.setSize(n)}var n;return p(t,[{key:"setSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(e<=0)throw new t.InvalidSizeError;this.maxSize=e}},{key:"lock",value:(n=b(E().mark((function t(){var e=this;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.size++,!(this.size<=this.maxSize)){t.next=3;break}return t.abrupt("return");case 3:return t.abrupt("return",new Promise((function(t){e.queue.enqueue(t)})));case 4:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"unLock",value:function(){if(this.size<=0)throw new t.InvalidSizeError;this.size--,this.queue.isEmpty()||this.queue.dequeue()()}}]),t}();e(x,"InvalidSizeError",function(t){o(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=c(e);if(n){var i=c(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return u(this,t)});function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Size is invalid";return h(this,i),r.call(this,t)}return i}(l(Error)));const R=x,O=function(){function t(n){h(this,t),e(this,"access",new R(1)),e(this,"timeout",6e4),e(this,"handler",(function(){})),this.setOptions(n)}var n;return p(t,[{key:"setOptions",value:function(t){t.timeout&&(this.timeout=t.timeout),t.handler&&(this.handler=t.handler)}},{key:"push",value:(n=b(E().mark((function t(){var e=arguments;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.getAccess();case 3:return t.next=5,this.handler.apply(this,e);case 5:return t.abrupt("return",t.sent);case 6:return t.prev=6,this.access.unLock(),t.finish(6);case 9:case"end":return t.stop()}}),t,this,[[0,,6,9]])}))),function(){return n.apply(this,arguments)})},{key:"getAccess",value:function(){var t=this;return new Promise(function(){var e=b(E().mark((function e(n,r){return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.timeout&&setTimeout((function(){r("timeout")}),t.timeout),e.next=3,t.access.lock();case 3:n();case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}}]),t}(),L=function(){function t(){h(this,t),e(this,"chain",[])}return p(t,[{key:"add",value:function(t){this.chain.push(t)}},{key:"doAction",value:function(){for(var t,e=0;e<this.chain.length;e++){var n;if(t=(n=this.chain)[e].apply(n,arguments))break}return t}}]),t}();function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function j(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,i,o=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){u=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var P=void 0,N=Object.prototype.toString,A=function(t){return N.call(t)},T=function t(){h(this,t)};function D(){return I.apply(this,arguments)}function I(){return(I=b(E().mark((function t(){var e,n=arguments;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:0,t.abrupt("return",new Promise((function(t){setTimeout(t,1e3*e)})));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function z(t){if(a(t)==a({}))for(var e in t)t[e]=z(t[e]);else a(t)==a("")&&(t=t.trim());return t}function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return String(t).padStart(e,"0")}function B(t){return Object.entries(t).map((function(t){var e=j(t,2),n=e[0],r=e[1];return"".concat(n,"=").concat(r)})).join("&")}function M(t){return t.substr(1).split("&").map((function(t){return t.split("=")})).reduce((function(t,e){var n=j(e,2),r=n[0],i=n[1];return t[decodeURIComponent(r)]=decodeURIComponent(i),t}),{})}function _(t){if("object"!=a(t))return!1;for(var e in t)return!1;return!0}function C(t,e){var n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n&&clearTimeout(n),n=setTimeout((function(){t.apply(void 0,i),n=null}),e)}}function U(t){return t&&T.FUNCTION==A(t.then)&&T.FUNCTION==A(t.catch)}function H(t){return t}function G(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return function(){var n=0;function r(t){if(n++<e){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return i.apply(void 0,o)}throw new Error(t.message)}function i(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];try{var o=t.apply(void 0,n);return U(o)?o.then(H).catch((function(t){return r.apply(void 0,[t].concat(n))})):o}catch(t){return r.apply(void 0,[t].concat(n))}}return i.apply(void 0,arguments)}}e(T,"UNDEFINED",A(void 0)),e(T,"NULL",A(null)),e(T,"STRING",A("")),e(T,"NUMBER",A(0)),e(T,"BOOLEAN",A(!1)),e(T,"FUNCTION",A(Function.prototype)),e(T,"SYMBOL","[object Symbol]"),e(T,"OBJECT",A({})),e(T,"ARRAY",A([])),e(T,"DATE",A(new Date)),e(T,"ERROR",A(new Error));var q={timeout:500,leading:!1};function V(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q;return e.leading?Y(t,e.timeout):Q(t,e.timeout)}function Y(t,e){var n,r=null,i=!1;function o(a){r?i=!0:(r=setTimeout((function(){i?(i=!1,r=null,o(a)):(r&&clearTimeout(r),r=null)}),e),t.apply(a,n))}return function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n=e,o(this)}}function Q(t,e){var n,r=null;return function(){for(var i=this,o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];n=a,r||(r=setTimeout((function(){r=null,t.apply(i,n)}),e))}}function J(t){var e=A(t);return T.NULL!=e&&T.UNDEFINED!=e&&/^[0-9]+$/.test(t.toString())}function W(t){return(t=t||"").replace(/\d{1,4}(?=(\d{4}$))/,(function(t){return"".padStart(t.length,"*")}))}function $(t,e,n){for(var r=(n-e>>1)+e,i=e;i<r;i++)Z(t,i,n-i-1+e)}function Z(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}var K=function(t){var e=0;return b(E().mark((function n(){var r,i,o,a,u,c=arguments;return E().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(e++,r=e,i=c.length,o=new Array(i),a=0;a<i;a++)o[a]=c[a];return n.next=5,t.apply(P,o);case 5:if(u=n.sent,e!=r){n.next=8;break}return n.abrupt("return",u);case 8:return n.abrupt("return",new Promise((function(){})));case 9:case"end":return n.stop()}}),n)})))};const X=function(){function t(){h(this,t)}return p(t,null,[{key:"timeFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":";return[t.getHours(),t.getMinutes(),t.getSeconds()].map((function(t){return F(t)})).join(e)}},{key:"dateFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return[t.getFullYear(),t.getMonth()+1,t.getDate()].map((function(t){return F(t)})).join(e)}},{key:"dateTimeFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:":";return"".concat(this.dateFormat(t,e)," ").concat(this.timeFormat(t,n))}},{key:"getNthDayBefore",value:function(t){var e=new Date,n=new Date;return n.setTime(n.getTime()-864e5*t),[n,e]}},{key:"getNthHourBefore",value:function(t){var e=new Date,n=new Date;return n.setTime(n.getTime()-36e5*t),[n,e]}},{key:"getNthMonthBefore",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=new Date,n=new Date;return n.setMonth(n.getMonth()-t),[n,e]}},{key:"toDayBegin",value:function(t){t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0)}}]),t}();var tt={start:60,end:60,timeout:1};const et=function(){function t(n){h(this,t),e(this,"message",""),e(this,"callbacks",[]),this.message=n}var n;return p(t,[{key:"start",value:(n=b(E().mark((function t(){var e,n,r=arguments;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=r.length>0&&void 0!==r[0]?r[0]:tt,n=e.start;case 2:if(!(n>e.end)){t.next=9;break}return this.publish(n,!1),t.next=6,D(e.timeout);case 6:n--,t.next=2;break;case 9:this.publish(this.message,!0);case 10:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"publish",value:function(t,e){this.callbacks.forEach((function(n){n({message:t,done:e})}))}},{key:"subscribe",value:function(t){return this.callbacks.push(t),t}},{key:"unsubscribe",value:function(t){var e=this.callbacks.findIndex((function(e){return e==t}));return-1!=e&&(this.callbacks.splice(e,1),!0)}},{key:"clear",value:function(){this.callbacks=[]}}]),t}();function nt(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 rt(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?nt(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const it=function(){function t(n){h(this,t),e(this,"callbacks",[]),this.tableData=n}return p(t,[{key:"setOrder",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"order";this.tableData.list.forEach((function(e,n){e[t]=n+1}))}},{key:"sort",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desc";"asc"==e?this.tableData.list.sort((function(e,n){return e[t]-n[t]})):this.tableData.list.sort((function(e,n){return n[t]-e[t]}))}},{key:"to",value:function(t){t=t||this.tableData.pageNum,this.tableData.pageNum=t;var e=this.tableData.pageSize,n=(t-1)*e,r=n+e,i=this.tableData.list.slice(n,r);return this.publish(rt(rt({},this.tableData),{},{list:i})),i}},{key:"setPageSize",value:function(t){this.tableData.pageSize=t}},{key:"publish",value:function(t){this.callbacks.forEach((function(e){return e(t)}))}},{key:"subscribe",value:function(t){this.callbacks.push(t)}}]),t}();var ot;var at=function t(e,n,r){h(this,t),this.value=e,this.prev=n,this.next=r},ut=a((function(){})),ct=function(t){return a(t)==ut},st=function(t){return t},ft=function(t){return a(t)!==a(void 0)},lt=function(t){o(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=c(e);if(n){var i=c(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return u(this,t)});function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Index is invalid";return h(this,i),r.call(this,t)}return i}(l(Error));ot=Symbol.iterator;var ht=function(){function t(){h(this,t),e(this,"head",new at),e(this,"tail",new at),e(this,"length",0),this.clear()}return p(t,[{key:"checkIndex",value:function(e){if(e<0||e>=this.size())throw new t.InvalidIndexError}},{key:"clear",value:function(){this.head.next=this.tail,this.tail.prev=this.head,this.length=0}},{key:"concat",value:function(t){if(t){var e=t.head.next;this.tail.prev.next=e,e.prev=this.tail.prev,this.tail=t.tail,this.length+=t.size()}return this}},{key:"contains",value:function(t){return-1!=this.indexOf(t)}},{key:"filter",value:function(e){var n=new t;return this.forEach((function(t,n,r){e(t,n,r)&&r.push(t)})),n}},{key:"find",value:function(t){for(var e=0,n=this.head.next;n!=this.tail;n=n.next,e++)if(t(n.value,e,this))return n.value}},{key:"findIndex",value:function(t){for(var e=0,n=this.head.next;n!=this.tail;n=n.next,e++)if(t(n.value,e++,this))return e;return-1}},{key:"forEach",value:function(t){for(var e=0,n=this.head.next;n!=this.tail;n=n.next,e++)t(n.value,e,this)}},{key:"get",value:function(t){this.checkIndex(t);for(var e=this.head.next,n=0;n<t;e=e.next,n++);return e.value}},{key:"includes",value:function(t){return-1!=this.indexOf(t)}},{key:"indexOf",value:function(t){return this.findIndex((function(e){return e==t}))}},{key:"isEmpty",value:function(){return 0==this.size()}},{key:"join",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:st;if(!ct(n))throw new TypeError("transfer is not a function");var r=[];return this.forEach((function(e,i){r.push(n(e,i,t))})),r.join(e)}},{key:"lastIndexOf",value:function(t){for(var e=this.tail.prev,n=this.size()-1;e!=this.head;e=e.prev,n--)if(t==e.value)return n;return-1}},{key:"map",value:function(e){var n=this,r=new t;return this.forEach((function(t,i){r.push(e(t,i,n))})),r}},{key:"pop",value:function(){if(this.size()){this.length--;var t=this.tail.prev;return t.prev.next=this.tail,this.tail.prev=t.prev,t.value}}},{key:"push",value:function(t){var e=new at(t);e.next=this.tail,e.prev=this.tail.prev,this.tail.prev.next=e,this.tail.prev=e,this.length++}},{key:"reduce",value:function(t,e){if(!this.size()&&!ft(e))throw new TypeError("Reduce of empty array with no initial value");return this.forEach((function(n,r){e=0!=r||ft(e)?t(e,n,r):n})),e}},{key:"reduceRight",value:function(t,e){var n=this.size()-1,r=this.tail.prev;if(!ft(e)){if(!this.size())throw new TypeError("Reduce of empty array with no initial value");e=r.value,r=r.prev,n--}for(;r!=this.head;r=r.prev,n--)e=t(e,r.value,n);return e}},{key:"remove",value:function(t){this.checkIndex(t);for(var e=0,n=this.head.next;n!=this.tail;n=n.next,e++)if(e==t)return n.prev.next=n.next,n.next.prev=n.prev,this.length--,n.value}},{key:"reverse",value:function(){var t=this.head.next,e=this.tail;for(this.clear();t!=e;)this.unshift(t.value),t=t.next;return this}},{key:"set",value:function(t,e){this.checkIndex(t);for(var n=0,r=this.head.next;r!=this.tail;r=r.next,n++)if(n==t){r.value=e;break}}},{key:"shift",value:function(){if(this.size()){var t=this.head.next;return this.head.next=t.next,t.next.prev=this.head,this.length--,t.value}}},{key:"size",value:function(){return this.length}},{key:"slice",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;e=e||0,n=(n=ft(n)?n:this.size())>-1?n:this.size()-n;var r=new t;return this.forEach((function(t,i){i>=e&&i<n&&r.push(t)})),r}},{key:"some",value:function(t){return-1!=this.findIndex(t)}},{key:"sort",value:function(t){for(var e=this.head.next;e!=this.tail;e=e.next){for(var n=e,r=e.next;r!=this.tail;r=r.next)t(n.value,r.value)>0&&(n=r);var i=[n.value,e.value];e.value=i[0],n.value=i[1]}return this}},{key:"toString",value:function(){return this.join()}},{key:"toArray",value:function(){return this.reduce((function(t,e){return t.push(e),t}),[])}},{key:"unshift",value:function(t){var e=new at(t);e.next=this.head.next,e.prev=this.head,this.head.next=e,this.length++}},{key:ot,value:function(){var t=this.head.next,e=this.tail;return{next:function(){var n,r=t==e;return r||(n=t.value,t=t.next),{value:n,done:r}}}}}]),t}();e(ht,"InvalidIndexError",lt);const vt=ht;var pt;!function(t){t[t.ALL=0]="ALL",t[t.TRACE=1]="TRACE",t[t.DEBUG=2]="DEBUG",t[t.INFO=3]="INFO",t[t.WARN=4]="WARN",t[t.ERROR=5]="ERROR",t[t.FATAL=6]="FATAL",t[t.OFF=7]="OFF"}(pt||(pt={}));var yt=function(){function t(){h(this,t),e(this,"level",pt.OFF),e(this,"listenHandle",[])}return p(t,[{key:"formatMessage",value:function(t,e){var n=pt[t],r=X.dateTimeFormat(new Date);return"[".concat(n,"] ").concat(r," ").concat(e)}},{key:"getParameters",value:function(t){var e=this;return t.map((function(t){var n=A(t);if([T.FUNCTION,T.STRING,T.UNDEFINED,T.NULL].includes(n))return String(t);if(("undefined"==typeof Symbol?"undefined":a(Symbol))!=a(void 0)&&T.SYMBOL==n)return t.toString();if(T.NUMBER==n)return t;if(T.ERROR==n)return"".concat(t.message,": \n").concat(t.stack);if(T.DATE==n)return"date: ".concat(t.getTime());if(T.ARRAY==n){var r=[];for(var i in r.push("["),t)J(i)?r.push("".concat(e.getParameters([t[i]]),", ")):r.push("".concat(i,": ").concat(e.getParameters([t[i]]),", "));return r.push("length: ".concat(t.length)),r.push("]"),r.join("")}if(T.OBJECT==n){var o=[];for(var u in o.push("{"),t)o.push("".concat(u," => ").concat(e.getParameters([t[u]]),", "));return 1<o.length&&(o[o.length-1]=o[o.length-1].slice(0,-2)),o.push("}"),o.join("")}try{return JSON.stringify(t)}catch(e){return t.toString()}})).join(" ")}},{key:"publish",value:function(t){this.listenHandle.forEach((function(e){try{e(t)}catch(t){console.log(t)}}))}},{key:"setLevel",value:function(t){this.level=t}},{key:"subscribe",value:function(t){this.listenHandle.push(t)}},{key:"unsubscribe",value:function(t){for(var e=0;e<this.listenHandle.length;e++)if(this.listenHandle[e]==t){this.listenHandle.splice(e,1);break}}},{key:"trace",value:function(){var t=pt.TRACE;if(t>=this.level){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.publish(this.formatMessage(t,this.getParameters(n)))}}},{key:"info",value:function(){var t=pt.INFO;if(t>=this.level){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.publish(this.formatMessage(t,this.getParameters(n)))}}},{key:"debug",value:function(){var t=pt.DEBUG;if(t>=this.level){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.publish(this.formatMessage(t,this.getParameters(n)))}}},{key:"warn",value:function(){var t=pt.WARN;if(t>=this.level){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.publish(this.formatMessage(t,this.getParameters(n)))}}},{key:"error",value:function(){var t=pt.ERROR;if(t>=this.level){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.publish(this.formatMessage(t,this.getParameters(n)))}}},{key:"fatal",value:function(){var t=pt.FATAL;if(t>=this.level){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.publish(this.formatMessage(t,this.getParameters(n)))}}}],[{key:"getLogger",value:function(){return this.instance}}]),t}();e(yt,"LOG_LEVEL",pt),e(yt,"instance",new yt);const dt=yt;function gt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}var mt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(h(this,t),!(e instanceof Function))throw new t.CompareInvalidError;this.compare=e,this.heap=n,this.buildHeap()}return p(t,[{key:"buildHeap",value:function(){for(var t=(this.heap.length>>1)-1;t>=0;t--)this.shiftDown(t)}},{key:"shiftDown",value:function(t){for(var e=this.heap,n=e.length,r=e[t],i=n>>1;t<i;){var o=1+(t<<1),a=e[o],u=o+1;if(u<n&&0<this.compare(a,e[u])&&(a=e[u],o=u),0>=this.compare(r,a))break;e[t]=a,t=o}e[t]=r}},{key:"shiftUp",value:function(t){for(var e=this.heap,n=e[t],r=t-1>>1;0<=r&&0<this.compare(e[r],n);)e[t]=e[r],r=(t=r)-1>>1;e[t]=n}},{key:"size",get:function(){return this.heap.length}},{key:"isEmpty",value:function(){return 0==this.size}},{key:"peak",value:function(){if(this.isEmpty())throw new t.HeapEmptyError;return this.heap[0]}},{key:"insert",value:function(t){this.heap.push(t),this.shiftUp(this.size-1)}},{key:"remove",value:function(){if(this.isEmpty())throw new t.HeapEmptyError;var e=this.heap[0],n=this.heap.pop();return this.isEmpty()||(this.heap[0]=n,this.shiftDown(0)),e}}]),t}();e(mt,"CompareInvalidError",function(t){o(n,t);var e=gt(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Param Compare is not a function.";return h(this,n),e.call(this,t)}return n}(l(Error))),e(mt,"HeapEmptyError",function(t){o(n,t);var e=gt(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Heap is empty";return h(this,n),e.call(this,t)}return n}(l(Error)));const wt=mt;function bt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}var kt=function(){function t(e){h(this,t),this.value=e}return p(t,[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(t){this.value=t}},{key:"getLeft",value:function(){return this.left}},{key:"setLeft",value:function(t){this.left=t}},{key:"getRight",value:function(){return this.right}},{key:"setRight",value:function(t){this.right=t}}]),t}(),Et=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(h(this,t),!e)throw new t.CompareInvalidError;this.compare=e,r.forEach((function(t){n.append(t)}))}return p(t,[{key:"append",value:function(t){var e=new kt(t);this.root=this.appendNode(this.root,e)}},{key:"appendNode",value:function(e,n){if(!e)return n;var r=this.compare(e.getValue(),n.getValue());if(0==r)throw new t.DuplicateValueError;if(0>r){var i=e.getRight();e.setRight(this.appendNode(i,n))}else if(0<r){var o=e.getLeft();e.setLeft(this.appendNode(o,n))}return e}},{key:"remove",value:function(t){this.root=this.removeNode(this.root,t)}},{key:"removeNode",value:function(t,e){if(!t)return null;var n=this.compare(t.getValue(),e);if(0==n)return t.getRight()?this.appendNode(t.getLeft(),t.getRight()):t.getLeft();if(0>n){var r=t.getRight();t.setRight(this.removeNode(r,e))}else if(0<n){var i=t.getLeft();t.setLeft(this.removeNode(i,e))}return t}},{key:"getMin",value:function(){var t=this.root;if(!t)return null;for(;t;){var e=t.getLeft();if(!e)break;t=e}return t.getValue()}},{key:"getMax",value:function(){var t=this.root;if(!t)return null;for(;t;){var e=t.getRight();if(!e)break;t=e}return t.getValue()}},{key:"clear",value:function(){this.root=null}},{key:"inorderTraversal",value:function(t){!function e(n){n&&(e(n.getLeft()),t(n.getValue()),e(n.getRight()))}(this.root)}},{key:"toArray",value:function(){var t=[];return this.inorderTraversal((function(e){t.push(e)})),t}}]),t}();e(Et,"CompareInvalidError",function(t){o(n,t);var e=bt(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Param Compare is not a function.";return h(this,n),e.call(this,t)}return n}(l(Error))),e(Et,"DuplicateValueError",function(t){o(n,t);var e=bt(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Value is exist.";return h(this,n),e.call(this,t)}return n}(l(Error)));const xt=Et,Rt=function(){function t(){h(this,t),e(this,"eventListeners",new Map)}return p(t,[{key:"getListeners",value:function(t){return this.eventListeners.get(t)||[]}},{key:"setListeners",value:function(t,e){0==e.length?this.eventListeners.delete(t):this.eventListeners.set(t,e)}},{key:"on",value:function(t,e){var n=this.getListeners(t);return n.push(e),this.setListeners(t,n),e}},{key:"once",value:function(t,e){var n=this,r=this.getListeners(t),i=function r(){try{for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];e.apply(n,o)}catch(t){n.emit("error",t)}n.off(t,r)};return r.push(i),this.setListeners(t,r),i}},{key:"off",value:function(t,e){var n=this.getListeners(t),r=n.findIndex((function(t){return t==e}));-1!=r&&(n.splice(r,1),this.setListeners(t,n))}},{key:"emit",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o,a=this.getListeners(t);"error"==t&&0==a.length&&(o=console).error.apply(o,r),a.forEach((function(t){try{t.apply(e,r)}catch(t){e.emit("error",t)}}))}}]),t}();var Ot=function(){function t(){h(this,t)}return p(t,null,[{key:"checkLength",value:function(t){if(0>=t)throw new Error("Length is not valid")}},{key:"checkRange",value:function(t,e){if(e==t)throw new Error("Number min:".concat(t," is equal to max: ").concat(e))}}]),t}();e(Ot,"getRandomNumber",(function(t,e){Ot.checkRange(t,e);var n=Math.random()*(e-t);return t+Math.floor(n)})),e(Ot,"getRandomBoolean",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5;return t>Math.random()})),e(Ot,"getRandomUppercaseLetter",(function(){var t=Ot.getRandomNumber(65,91);return String.fromCharCode(t)})),e(Ot,"getRandomUppercaseString",(function(t){Ot.checkLength(t);for(var e=new Array(t),n=0;n<t;n++)e[n]=Ot.getRandomUppercaseLetter();return e.join("")})),e(Ot,"getRandomLowercaseLetter",(function(){var t=Ot.getRandomNumber(97,123);return String.fromCharCode(t)})),e(Ot,"getRandomLowercaseString",(function(t){Ot.checkLength(t);for(var e=new Array(t),n=0;n<t;n++)e[n]=Ot.getRandomLowercaseLetter();return e.join("")})),e(Ot,"getRandomAlphabetString",(function(t){Ot.checkLength(t);for(var e=new Array(t),n=0;n<t;n++)e[n]=Ot.getRandomBoolean()?Ot.getRandomUppercaseLetter():Ot.getRandomLowercaseLetter();return e.join("")})),e(Ot,"getRandomString",(function(t){if(t<=0)throw new Error("String length is not valid");for(var e=new Array(t),n=0;n<t;n++){var r=Ot.getRandomNumber(-1,2);-1==r?r=Ot.getRandomLowercaseLetter():0==r?r=Ot.getRandomNumber(0,10):1==r&&(r=Ot.getRandomUppercaseLetter()),e[n]=r}return e.join("")})),e(Ot,"getRandomID",(function(){for(var t=Ot.getRandomString(8).toLowerCase(),e=Ot.getRandomString(12).toLowerCase(),n=[],r=(new Date).getTime(),i=0;i<3;i++){var o=r%65536;r-=o,r/=65536,n.push(F(o.toString(16),4))}return"".concat(t,"-").concat(n.join("-"),"-").concat(e)}));const Lt=Ot;function St(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 jt(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?St(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):St(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const Pt=jt(jt({},t),{},{Lock:R,Heap:wt,Stack:d,Queue:m,Events:Rt,Logger:dt,Random:Lt,LinkList:vt,CountDown:et,TaskQueue:O,Pagination:it,DateTimeTool:X,BinarySearchTree:xt,ResponsibilityChain:L})})(),r.default})()})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.utils=e():t.utils=e()}(this,(function(){return(()=>{var t={757:(t,e,n)=>{t.exports=n(666)},666:t=>{var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i=e&&e.prototype instanceof d?e:d,o=Object.create(i.prototype),a=new j(r||[]);return o._invoke=function(t,e,n){var r=l;return function(i,o){if(r===v)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return N()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var u=O(a,n);if(u){if(u===y)continue;return u}}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=v;var c=f(t,e,n);if("normal"===c.type){if(r=n.done?p:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",h="suspendedYield",v="executing",p="completed",y={};function d(){}function g(){}function m(){}var w={};w[o]=function(){return this};var b=Object.getPrototypeOf,k=b&&b(b(P([])));k&&k!==n&&r.call(k,o)&&(w=k);var E=m.prototype=d.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function R(t,e){function n(i,o,a,u){var c=f(t[i],t,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function O(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,O(t,n),"throw"===n.method))return y;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var i=f(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function L(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function P(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:N}}function N(){return{value:e,done:!0}}return g.prototype=E.constructor=m,m.constructor=g,g.displayName=c(m,u,"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,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},x(R.prototype),R.prototype[a]=function(){return this},t.AsyncIterator=R,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new R(s(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(E),c(E,u,"Generator"),E[o]=function(){return this},E.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=P,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(S),!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 i(r,i){return u.type="throw",u.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):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),y},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),S(n),y}},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 i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.d(r,{default:()=>jt});var t={};function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(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&&i(t,e)}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function f(t,e,n){return(f=s()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&i(o,n.prototype),o}).apply(null,arguments)}function l(t){var e="function"==typeof Map?new Map:void 0;return(l=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return f(t,arguments,c(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i(r,t)})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(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)}}function p(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),t}n.r(t),n.d(t,{TYPES:()=>A,addZero:()=>z,debounce:()=>_,hiddenMobile:()=>J,identify:()=>U,isInteger:()=>Q,isPlainObject:()=>M,isPromise:()=>C,objectToUrlParams:()=>F,reentrant:()=>Z,retry:()=>H,reverseRange:()=>W,sleep:()=>T,throttle:()=>q,toString:()=>N,trailing:()=>Y,trim:()=>I,urlParamsToObject:()=>B});var y=function(){function t(){h(this,t),e(this,"stack",[])}return p(t,[{key:"size",get:function(){return this.stack.length}},{key:"isEmpty",value:function(){return 0==this.size}},{key:"push",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach((function(e){t.stack.push(e)}))}},{key:"pop",value:function(){if(this.isEmpty())throw new t.StackEmptyError;return this.stack.pop()}},{key:"peak",value:function(){if(this.isEmpty())throw new t.StackEmptyError;return this.stack[this.stack.length-1]}}]),t}();e(y,"StackEmptyError",function(t){o(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=c(e);if(n){var i=c(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return u(this,t)});function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Stack is empty";return h(this,i),r.call(this,t)}return i}(l(Error)));const d=y;var g=function(){function t(){h(this,t),e(this,"queue",[])}return p(t,[{key:"size",get:function(){return this.queue.length}},{key:"isEmpty",value:function(){return 0==this.size}},{key:"enqueue",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach((function(e){t.queue.push(e)}))}},{key:"dequeue",value:function(){if(this.isEmpty())throw new t.QueueEmptyError;return this.queue.shift()}}]),t}();e(g,"QueueEmptyError",function(t){o(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=c(e);if(n){var i=c(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return u(this,t)});function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Queue is empty";return h(this,i),r.call(this,t)}return i}(l(Error)));const m=g;function w(t,e,n,r,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,i)}function b(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){w(o,r,i,a,u,"next",t)}function u(t){w(o,r,i,a,u,"throw",t)}a(void 0)}))}}var k=n(757),E=n.n(k);var x=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;h(this,t),e(this,"queue",new m),e(this,"size",0),e(this,"maxSize",1),this.setSize(n)}var n;return p(t,[{key:"setSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(e<=0)throw new t.InvalidSizeError;this.maxSize=e}},{key:"lock",value:(n=b(E().mark((function t(){var e=this;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.size++,!(this.size<=this.maxSize)){t.next=3;break}return t.abrupt("return");case 3:return t.abrupt("return",new Promise((function(t){e.queue.enqueue(t)})));case 4:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"unLock",value:function(){if(this.size<=0)throw new t.InvalidSizeError;this.size--,this.queue.isEmpty()||this.queue.dequeue()()}}]),t}();e(x,"InvalidSizeError",function(t){o(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=c(e);if(n){var i=c(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return u(this,t)});function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Size is invalid";return h(this,i),r.call(this,t)}return i}(l(Error)));const R=x,O=function(){function t(n){h(this,t),e(this,"access",new R(1)),e(this,"timeout",6e4),e(this,"handler",(function(){})),this.setOptions(n)}var n;return p(t,[{key:"setOptions",value:function(t){t.timeout&&(this.timeout=t.timeout),t.handler&&(this.handler=t.handler)}},{key:"push",value:(n=b(E().mark((function t(){var e=arguments;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.getAccess();case 3:return t.next=5,this.handler.apply(this,e);case 5:return t.abrupt("return",t.sent);case 6:return t.prev=6,this.access.unLock(),t.finish(6);case 9:case"end":return t.stop()}}),t,this,[[0,,6,9]])}))),function(){return n.apply(this,arguments)})},{key:"getAccess",value:function(){var t=this;return new Promise(function(){var e=b(E().mark((function e(n,r){return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.timeout&&setTimeout((function(){r("timeout")}),t.timeout),e.next=3,t.access.lock();case 3:n();case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}}]),t}(),L=function(){function t(){h(this,t),e(this,"chain",[])}return p(t,[{key:"add",value:function(t){this.chain.push(t)}},{key:"doAction",value:function(){for(var t,e=0;e<this.chain.length;e++){var n;if(t=(n=this.chain)[e].apply(n,arguments))break}return t}}]),t}();function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function j(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,i,o=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){u=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var P=Object.prototype.toString,N=function(t){return P.call(t)},A=function t(){h(this,t)};function T(){return D.apply(this,arguments)}function D(){return(D=b(E().mark((function t(){var e,n=arguments;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:0,t.abrupt("return",new Promise((function(t){setTimeout(t,1e3*e)})));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function I(t){if(a(t)==a({}))for(var e in t)t[e]=I(t[e]);else a(t)==a("")&&(t=t.trim());return t}function z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return String(t).padStart(e,"0")}function F(t){return Object.entries(t).map((function(t){var e=j(t,2),n=e[0],r=e[1];return"".concat(n,"=").concat(r)})).join("&")}function B(t){return t.substr(1).split("&").map((function(t){return t.split("=")})).reduce((function(t,e){var n=j(e,2),r=n[0],i=n[1];return t[decodeURIComponent(r)]=decodeURIComponent(i),t}),{})}function M(t){if("object"!=a(t))return!1;for(var e in t)return!1;return!0}function _(t,e){var n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n&&clearTimeout(n),n=setTimeout((function(){t.apply(void 0,i),n=null}),e)}}function C(t){return t&&A.FUNCTION==N(t.then)&&A.FUNCTION==N(t.catch)}function U(t){return t}function H(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return function(){var n=0;function r(t){if(n++<e){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return i.apply(void 0,o)}throw new Error(t.message)}function i(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];try{var o=t.apply(void 0,n);return C(o)?o.then(U).catch((function(t){return r.apply(void 0,[t].concat(n))})):o}catch(t){return r.apply(void 0,[t].concat(n))}}return i.apply(void 0,arguments)}}e(A,"UNDEFINED",N(void 0)),e(A,"NULL",N(null)),e(A,"STRING",N("")),e(A,"NUMBER",N(0)),e(A,"BOOLEAN",N(!1)),e(A,"FUNCTION",N(Function.prototype)),e(A,"SYMBOL","[object Symbol]"),e(A,"OBJECT",N({})),e(A,"ARRAY",N([])),e(A,"DATE",N(new Date)),e(A,"ERROR",N(new Error));var G={timeout:500,leading:!1};function q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G;return e.leading?V(t,e.timeout):Y(t,e.timeout)}function V(t,e){var n,r=null,i=!1;function o(a){r?i=!0:(r=setTimeout((function(){i?(i=!1,r=null,o(a)):(r&&clearTimeout(r),r=null)}),e),t.apply(a,n))}return function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n=e,o(this)}}function Y(t,e){var n,r=null;return function(){for(var i=this,o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];n=a,r||(r=setTimeout((function(){r=null,t.apply(i,n)}),e))}}function Q(t){var e=N(t);return A.NULL!=e&&A.UNDEFINED!=e&&/^[0-9]+$/.test(t.toString())}function J(t){return(t=t||"").replace(/\d{1,4}(?=(\d{4}$))/,(function(t){return"".padStart(t.length,"*")}))}function W(t,e,n){for(var r=(n-e>>1)+e,i=e;i<r;i++)$(t,i,n-i-1+e)}function $(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}var Z=function(t){var e=0;return b(E().mark((function n(){var r,i,o,a,u,c=arguments;return E().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(e++,r=e,i=c.length,o=new Array(i),a=0;a<i;a++)o[a]=c[a];return n.next=5,t.apply(null,o);case 5:if(u=n.sent,e!=r){n.next=8;break}return n.abrupt("return",u);case 8:return n.abrupt("return",new Promise((function(){})));case 9:case"end":return n.stop()}}),n)})))};const K=function(){function t(){h(this,t)}return p(t,null,[{key:"timeFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":";return[t.getHours(),t.getMinutes(),t.getSeconds()].map((function(t){return z(t)})).join(e)}},{key:"dateFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return[t.getFullYear(),t.getMonth()+1,t.getDate()].map((function(t){return z(t)})).join(e)}},{key:"dateTimeFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:":";return"".concat(this.dateFormat(t,e)," ").concat(this.timeFormat(t,n))}},{key:"getNthDayBefore",value:function(t){var e=new Date,n=new Date;return n.setTime(n.getTime()-864e5*t),[n,e]}},{key:"getNthHourBefore",value:function(t){var e=new Date,n=new Date;return n.setTime(n.getTime()-36e5*t),[n,e]}},{key:"getNthMonthBefore",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=new Date,n=new Date;return n.setMonth(n.getMonth()-t),[n,e]}},{key:"toDayBegin",value:function(t){t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0)}}]),t}();var X={start:60,end:60,timeout:1};const tt=function(){function t(n){h(this,t),e(this,"message",""),e(this,"callbacks",[]),this.message=n}var n;return p(t,[{key:"start",value:(n=b(E().mark((function t(){var e,n,r=arguments;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=r.length>0&&void 0!==r[0]?r[0]:X,n=e.start;case 2:if(!(n>e.end)){t.next=9;break}return this.publish(n,!1),t.next=6,T(e.timeout);case 6:n--,t.next=2;break;case 9:this.publish(this.message,!0);case 10:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"publish",value:function(t,e){this.callbacks.forEach((function(n){n({message:t,done:e})}))}},{key:"subscribe",value:function(t){return this.callbacks.push(t),t}},{key:"unsubscribe",value:function(t){var e=this.callbacks.findIndex((function(e){return e==t}));return-1!=e&&(this.callbacks.splice(e,1),!0)}},{key:"clear",value:function(){this.callbacks=[]}}]),t}();function et(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 nt(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?et(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const rt=function(){function t(n){h(this,t),e(this,"callbacks",[]),this.tableData=n}return p(t,[{key:"setOrder",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"order";this.tableData.list.forEach((function(e,n){e[t]=n+1}))}},{key:"sort",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desc";"asc"==e?this.tableData.list.sort((function(e,n){return e[t]-n[t]})):this.tableData.list.sort((function(e,n){return n[t]-e[t]}))}},{key:"to",value:function(t){t=t||this.tableData.pageNum,this.tableData.pageNum=t;var e=this.tableData.pageSize,n=(t-1)*e,r=n+e,i=this.tableData.list.slice(n,r);return this.publish(nt(nt({},this.tableData),{},{list:i})),i}},{key:"setPageSize",value:function(t){this.tableData.pageSize=t}},{key:"publish",value:function(t){this.callbacks.forEach((function(e){return e(t)}))}},{key:"subscribe",value:function(t){this.callbacks.push(t)}}]),t}();var it;var ot=function t(e,n,r){h(this,t),this.value=e,this.prev=n,this.next=r},at=a((function(){})),ut=function(t){return a(t)==at},ct=function(t){return t},st=function(t){return a(t)!==a(void 0)},ft=function(t){o(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=c(e);if(n){var i=c(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return u(this,t)});function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Index is invalid";return h(this,i),r.call(this,t)}return i}(l(Error));it=Symbol.iterator;var lt=function(){function t(){h(this,t),e(this,"head",new ot),e(this,"tail",new ot),e(this,"length",0),this.clear()}return p(t,[{key:"checkIndex",value:function(e){if(e<0||e>=this.size())throw new t.InvalidIndexError}},{key:"clear",value:function(){this.head.next=this.tail,this.tail.prev=this.head,this.length=0}},{key:"concat",value:function(t){if(t){var e=t.head.next;this.tail.prev.next=e,e.prev=this.tail.prev,this.tail=t.tail,this.length+=t.size()}return this}},{key:"contains",value:function(t){return-1!=this.indexOf(t)}},{key:"filter",value:function(e){var n=new t;return this.forEach((function(t,n,r){e(t,n,r)&&r.push(t)})),n}},{key:"find",value:function(t){for(var e=0,n=this.head.next;n!=this.tail;n=n.next,e++)if(t(n.value,e,this))return n.value}},{key:"findIndex",value:function(t){for(var e=0,n=this.head.next;n!=this.tail;n=n.next,e++)if(t(n.value,e++,this))return e;return-1}},{key:"forEach",value:function(t){for(var e=0,n=this.head.next;n!=this.tail;n=n.next,e++)t(n.value,e,this)}},{key:"get",value:function(t){this.checkIndex(t);for(var e=this.head.next,n=0;n<t;e=e.next,n++);return e.value}},{key:"includes",value:function(t){return-1!=this.indexOf(t)}},{key:"indexOf",value:function(t){return this.findIndex((function(e){return e==t}))}},{key:"isEmpty",value:function(){return 0==this.size()}},{key:"join",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ct;if(!ut(n))throw new TypeError("transfer is not a function");var r=[];return this.forEach((function(e,i){r.push(n(e,i,t))})),r.join(e)}},{key:"lastIndexOf",value:function(t){for(var e=this.tail.prev,n=this.size()-1;e!=this.head;e=e.prev,n--)if(t==e.value)return n;return-1}},{key:"map",value:function(e){var n=this,r=new t;return this.forEach((function(t,i){r.push(e(t,i,n))})),r}},{key:"pop",value:function(){if(this.size()){this.length--;var t=this.tail.prev;return t.prev.next=this.tail,this.tail.prev=t.prev,t.value}}},{key:"push",value:function(t){var e=new ot(t);e.next=this.tail,e.prev=this.tail.prev,this.tail.prev.next=e,this.tail.prev=e,this.length++}},{key:"reduce",value:function(t,e){if(!this.size()&&!st(e))throw new TypeError("Reduce of empty array with no initial value");return this.forEach((function(n,r){e=0!=r||st(e)?t(e,n,r):n})),e}},{key:"reduceRight",value:function(t,e){var n=this.size()-1,r=this.tail.prev;if(!st(e)){if(!this.size())throw new TypeError("Reduce of empty array with no initial value");e=r.value,r=r.prev,n--}for(;r!=this.head;r=r.prev,n--)e=t(e,r.value,n);return e}},{key:"remove",value:function(t){this.checkIndex(t);for(var e=0,n=this.head.next;n!=this.tail;n=n.next,e++)if(e==t)return n.prev.next=n.next,n.next.prev=n.prev,this.length--,n.value}},{key:"reverse",value:function(){var t=this.head.next,e=this.tail;for(this.clear();t!=e;)this.unshift(t.value),t=t.next;return this}},{key:"set",value:function(t,e){this.checkIndex(t);for(var n=0,r=this.head.next;r!=this.tail;r=r.next,n++)if(n==t){r.value=e;break}}},{key:"shift",value:function(){if(this.size()){var t=this.head.next;return this.head.next=t.next,t.next.prev=this.head,this.length--,t.value}}},{key:"size",value:function(){return this.length}},{key:"slice",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;e=e||0,n=(n=st(n)?n:this.size())>-1?n:this.size()-n;var r=new t;return this.forEach((function(t,i){i>=e&&i<n&&r.push(t)})),r}},{key:"some",value:function(t){return-1!=this.findIndex(t)}},{key:"sort",value:function(t){for(var e=this.head.next;e!=this.tail;e=e.next){for(var n=e,r=e.next;r!=this.tail;r=r.next)t(n.value,r.value)>0&&(n=r);var i=[n.value,e.value];e.value=i[0],n.value=i[1]}return this}},{key:"toString",value:function(){return this.join()}},{key:"toArray",value:function(){return this.reduce((function(t,e){return t.push(e),t}),[])}},{key:"unshift",value:function(t){var e=new ot(t);e.next=this.head.next,e.prev=this.head,this.head.next=e,this.length++}},{key:it,value:function(){var t=this.head.next,e=this.tail;return{next:function(){var n,r=t==e;return r||(n=t.value,t=t.next),{value:n,done:r}}}}}]),t}();e(lt,"InvalidIndexError",ft);const ht=lt;var vt;!function(t){t[t.ALL=0]="ALL",t[t.TRACE=1]="TRACE",t[t.DEBUG=2]="DEBUG",t[t.INFO=3]="INFO",t[t.WARN=4]="WARN",t[t.ERROR=5]="ERROR",t[t.FATAL=6]="FATAL",t[t.OFF=7]="OFF"}(vt||(vt={}));var pt=function(){function t(){h(this,t),e(this,"level",vt.OFF),e(this,"listenHandle",[])}return p(t,[{key:"formatMessage",value:function(t,e){var n=vt[t],r=K.dateTimeFormat(new Date);return"[".concat(n,"] ").concat(r," ").concat(e)}},{key:"getParameters",value:function(t){var e=this;return t.map((function(t){var n=N(t);if([A.FUNCTION,A.STRING,A.UNDEFINED,A.NULL].includes(n))return String(t);if(("undefined"==typeof Symbol?"undefined":a(Symbol))!=a(void 0)&&A.SYMBOL==n)return t.toString();if(A.NUMBER==n)return t;if(A.ERROR==n)return"".concat(t.message,": \n").concat(t.stack);if(A.DATE==n)return"date: ".concat(t.getTime());if(A.ARRAY==n){var r=[];for(var i in r.push("["),t)Q(i)?r.push("".concat(e.getParameters([t[i]]),", ")):r.push("".concat(i,": ").concat(e.getParameters([t[i]]),", "));return r.push("length: ".concat(t.length)),r.push("]"),r.join("")}if(A.OBJECT==n){var o=[];for(var u in o.push("{"),t)o.push("".concat(u," => ").concat(e.getParameters([t[u]]),", "));return 1<o.length&&(o[o.length-1]=o[o.length-1].slice(0,-2)),o.push("}"),o.join("")}try{return JSON.stringify(t)}catch(e){return t.toString()}})).join(" ")}},{key:"publish",value:function(t){this.listenHandle.forEach((function(e){try{e(t)}catch(t){console.log(t)}}))}},{key:"setLevel",value:function(t){this.level=t}},{key:"subscribe",value:function(t){this.listenHandle.push(t)}},{key:"unsubscribe",value:function(t){for(var e=0;e<this.listenHandle.length;e++)if(this.listenHandle[e]==t){this.listenHandle.splice(e,1);break}}},{key:"trace",value:function(){var t=vt.TRACE;if(t>=this.level){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.publish(this.formatMessage(t,this.getParameters(n)))}}},{key:"info",value:function(){var t=vt.INFO;if(t>=this.level){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.publish(this.formatMessage(t,this.getParameters(n)))}}},{key:"debug",value:function(){var t=vt.DEBUG;if(t>=this.level){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.publish(this.formatMessage(t,this.getParameters(n)))}}},{key:"warn",value:function(){var t=vt.WARN;if(t>=this.level){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.publish(this.formatMessage(t,this.getParameters(n)))}}},{key:"error",value:function(){var t=vt.ERROR;if(t>=this.level){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.publish(this.formatMessage(t,this.getParameters(n)))}}},{key:"fatal",value:function(){var t=vt.FATAL;if(t>=this.level){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.publish(this.formatMessage(t,this.getParameters(n)))}}}],[{key:"getLogger",value:function(){return this.instance}}]),t}();e(pt,"LOG_LEVEL",vt),e(pt,"instance",new pt);const yt=pt;function dt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}var gt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(h(this,t),!(e instanceof Function))throw new t.CompareInvalidError;this.compare=e,this.heap=n,this.buildHeap()}return p(t,[{key:"buildHeap",value:function(){for(var t=(this.heap.length>>1)-1;t>=0;t--)this.shiftDown(t)}},{key:"shiftDown",value:function(t){for(var e=this.heap,n=e.length,r=e[t],i=n>>1;t<i;){var o=1+(t<<1),a=e[o],u=o+1;if(u<n&&0<this.compare(a,e[u])&&(a=e[u],o=u),0>=this.compare(r,a))break;e[t]=a,t=o}e[t]=r}},{key:"shiftUp",value:function(t){for(var e=this.heap,n=e[t],r=t-1>>1;0<=r&&0<this.compare(e[r],n);)e[t]=e[r],r=(t=r)-1>>1;e[t]=n}},{key:"size",get:function(){return this.heap.length}},{key:"isEmpty",value:function(){return 0==this.size}},{key:"peak",value:function(){if(this.isEmpty())throw new t.HeapEmptyError;return this.heap[0]}},{key:"insert",value:function(t){this.heap.push(t),this.shiftUp(this.size-1)}},{key:"remove",value:function(){if(this.isEmpty())throw new t.HeapEmptyError;var e=this.heap[0],n=this.heap.pop();return this.isEmpty()||(this.heap[0]=n,this.shiftDown(0)),e}}]),t}();e(gt,"CompareInvalidError",function(t){o(n,t);var e=dt(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Param Compare is not a function.";return h(this,n),e.call(this,t)}return n}(l(Error))),e(gt,"HeapEmptyError",function(t){o(n,t);var e=dt(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Heap is empty";return h(this,n),e.call(this,t)}return n}(l(Error)));const mt=gt;function wt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}var bt=function(){function t(e){h(this,t),this.value=e}return p(t,[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(t){this.value=t}},{key:"getLeft",value:function(){return this.left}},{key:"setLeft",value:function(t){this.left=t}},{key:"getRight",value:function(){return this.right}},{key:"setRight",value:function(t){this.right=t}}]),t}(),kt=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(h(this,t),!e)throw new t.CompareInvalidError;this.compare=e,r.forEach((function(t){n.append(t)}))}return p(t,[{key:"append",value:function(t){var e=new bt(t);this.root=this.appendNode(this.root,e)}},{key:"appendNode",value:function(e,n){if(!e)return n;var r=this.compare(e.getValue(),n.getValue());if(0==r)throw new t.DuplicateValueError;if(0>r){var i=e.getRight();e.setRight(this.appendNode(i,n))}else if(0<r){var o=e.getLeft();e.setLeft(this.appendNode(o,n))}return e}},{key:"remove",value:function(t){this.root=this.removeNode(this.root,t)}},{key:"removeNode",value:function(t,e){if(!t)return null;var n=this.compare(t.getValue(),e);if(0==n)return t.getRight()?this.appendNode(t.getLeft(),t.getRight()):t.getLeft();if(0>n){var r=t.getRight();t.setRight(this.removeNode(r,e))}else if(0<n){var i=t.getLeft();t.setLeft(this.removeNode(i,e))}return t}},{key:"getMin",value:function(){var t=this.root;if(!t)return null;for(;t;){var e=t.getLeft();if(!e)break;t=e}return t.getValue()}},{key:"getMax",value:function(){var t=this.root;if(!t)return null;for(;t;){var e=t.getRight();if(!e)break;t=e}return t.getValue()}},{key:"clear",value:function(){this.root=null}},{key:"inorderTraversal",value:function(t){!function e(n){n&&(e(n.getLeft()),t(n.getValue()),e(n.getRight()))}(this.root)}},{key:"toArray",value:function(){var t=[];return this.inorderTraversal((function(e){t.push(e)})),t}}]),t}();e(kt,"CompareInvalidError",function(t){o(n,t);var e=wt(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Param Compare is not a function.";return h(this,n),e.call(this,t)}return n}(l(Error))),e(kt,"DuplicateValueError",function(t){o(n,t);var e=wt(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Value is exist.";return h(this,n),e.call(this,t)}return n}(l(Error)));const Et=kt,xt=function(){function t(){h(this,t),e(this,"eventListeners",new Map)}return p(t,[{key:"getListeners",value:function(t){return this.eventListeners.get(t)||[]}},{key:"setListeners",value:function(t,e){0==e.length?this.eventListeners.delete(t):this.eventListeners.set(t,e)}},{key:"on",value:function(t,e){var n=this.getListeners(t);return n.push(e),this.setListeners(t,n),e}},{key:"once",value:function(t,e){var n=this,r=this.getListeners(t),i=function r(){try{for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];e.apply(n,o)}catch(t){n.emit("error",t)}n.off(t,r)};return r.push(i),this.setListeners(t,r),i}},{key:"off",value:function(t,e){var n=this.getListeners(t),r=n.findIndex((function(t){return t==e}));-1!=r&&(n.splice(r,1),this.setListeners(t,n))}},{key:"emit",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o,a=this.getListeners(t);"error"==t&&0==a.length&&(o=console).error.apply(o,r),a.forEach((function(t){try{t.apply(e,r)}catch(t){e.emit("error",t)}}))}}]),t}();var Rt=function(){function t(){h(this,t)}return p(t,null,[{key:"checkLength",value:function(t){if(0>=t)throw new Error("Length is not valid")}},{key:"checkRange",value:function(t,e){if(e==t)throw new Error("Number min:".concat(t," is equal to max: ").concat(e))}}]),t}();e(Rt,"getRandomNumber",(function(t,e){Rt.checkRange(t,e);var n=Math.random()*(e-t);return t+Math.floor(n)})),e(Rt,"getRandomBoolean",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5;return t>Math.random()})),e(Rt,"getRandomUppercaseLetter",(function(){var t=Rt.getRandomNumber(65,91);return String.fromCharCode(t)})),e(Rt,"getRandomUppercaseString",(function(t){Rt.checkLength(t);for(var e=new Array(t),n=0;n<t;n++)e[n]=Rt.getRandomUppercaseLetter();return e.join("")})),e(Rt,"getRandomLowercaseLetter",(function(){var t=Rt.getRandomNumber(97,123);return String.fromCharCode(t)})),e(Rt,"getRandomLowercaseString",(function(t){Rt.checkLength(t);for(var e=new Array(t),n=0;n<t;n++)e[n]=Rt.getRandomLowercaseLetter();return e.join("")})),e(Rt,"getRandomAlphabetString",(function(t){Rt.checkLength(t);for(var e=new Array(t),n=0;n<t;n++)e[n]=Rt.getRandomBoolean()?Rt.getRandomUppercaseLetter():Rt.getRandomLowercaseLetter();return e.join("")})),e(Rt,"getRandomString",(function(t){if(t<=0)throw new Error("String length is not valid");for(var e=new Array(t),n=0;n<t;n++){var r=Rt.getRandomNumber(-1,2);-1==r?r=Rt.getRandomLowercaseLetter():0==r?r=Rt.getRandomNumber(0,10):1==r&&(r=Rt.getRandomUppercaseLetter()),e[n]=r}return e.join("")})),e(Rt,"getRandomID",(function(){for(var t=Rt.getRandomString(8).toLowerCase(),e=Rt.getRandomString(12).toLowerCase(),n=[],r=(new Date).getTime(),i=0;i<3;i++){var o=r%65536;r-=o,r/=65536,n.push(z(o.toString(16),4))}return"".concat(t,"-").concat(n.join("-"),"-").concat(e)}));const Ot=Rt;function Lt(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 St(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Lt(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const jt=St(St({},t),{},{Lock:R,Heap:mt,Stack:d,Queue:m,Events:xt,Logger:yt,Random:Ot,LinkList:ht,CountDown:tt,TaskQueue:O,Pagination:rt,DateTimeTool:K,BinarySearchTree:Et,ResponsibilityChain:L})})(),r.default})()})); | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "@mrtujiawei/utils", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "把自己写的工具函数打包发布到npm上", | ||
@@ -12,4 +12,4 @@ "types": "types/index.d.ts", | ||
"scripts": { | ||
"build": "webpack", | ||
"pub": "npm run build && npm publish --access public && echo \"publish success\" && rm dist types -rf", | ||
"build": "tsc && webpack", | ||
"pub": "npm run build && npm publish --access public && echo \"publish success\" && rm dist types ts-build -rf", | ||
"test": "jest", | ||
@@ -16,0 +16,0 @@ "test:coverage": "jest --coverage" |
@@ -40,3 +40,3 @@ # @mrtujiawei/utils # | ||
```javascript | ||
import { Stack } from '@mrtujiawe/utils'; | ||
import { Stack } from '@mrtujiawei/utils'; | ||
@@ -43,0 +43,0 @@ const stack = new Stack(); |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
218172
70
1260
1