chimee-helper
Advanced tools
Comparing version 0.1.3 to 0.1.4
/** | ||
* chimee-helper v0.1.3 | ||
* chimee-helper v0.1.4 | ||
* (c) 2017 toxic-johann | ||
@@ -15,2 +15,3 @@ * Released under MIT | ||
var chimeeHelperUtils = require('chimee-helper-utils'); | ||
var chimeeHelperEvents = require('chimee-helper-events'); | ||
@@ -22,1 +23,2 @@ | ||
Object.keys(chimeeHelperUtils).forEach(function (key) { exports[key] = chimeeHelperUtils[key]; }); | ||
Object.keys(chimeeHelperEvents).forEach(function (key) { exports[key] = chimeeHelperEvents[key]; }); |
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.chimeeHelper=t.chimeeHelper||{})}(this,function(t){"use strict";function n(t){return t&&t.__esModule?t.default:t}function e(t,n){return n={exports:{}},t(n,n.exports),n.exports}function r(t){return void 0===t||null===t}function o(t){return Array.isArray(t)}function i(t){return"function"==typeof t}function u(t){return Object(t)===t&&"[object Object]"===String(t)&&!i(t)&&!o(t)}function c(t){return"number"==typeof t}function a(t){return t instanceof Blob}function f(t){return"string"==typeof t||t instanceof String}function s(t){return"boolean"==typeof t}function l(t){return r(t)||s(t)||f(t)||c(t)}function p(t){return!!("object"===("undefined"==typeof Node?"undefined":oe(Node))?t instanceof Node:t&&"object"===(void 0===t?"undefined":oe(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName)}function d(t){function n(e,r,i){if(o(e)||u(e)){r=r||(u(e)?{}:[]);for(var c in e)r[c]=n(e[c],r[c],c);return r}return t(e,r,i)}return n}function h(t,n){return t.replace(/(^|[^a-zA-Z]+)([a-zA-Z])/g,function(t,e,r,o){return n||0!==o?r.toUpperCase():r.toLowerCase()})}function v(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function y(t,n,e){if(l(t))throw TypeError("setFrozenAttr obj parameter can not be primitive type");if(!f(n))throw TypeError("setFrozenAttr key parameter must be String");Pe(t,n,{value:e,configurable:!1,enumerable:!1,writable:!1})}function m(t,n,e){var r=t;if(n+e<r.length){for(;e--;)if(128!=(192&r[++n]))return!1;return!0}return!1}function g(t,n){var e=n,r=(t=""+(t||"")).length;return(((n=(n||r)-r)>0?t.repeat?"0".repeat(n):new Array(n+1).join("0"):"")+t).slice(0,e)}var b=Math.ceil,w=Math.floor,_=function(t){return isNaN(t=+t)?0:(t>0?w:b)(t)},S=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},j=e(function(t){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)}),O=e(function(t){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)}),A=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},E=function(t,n,e){if(A(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}},M=function(t){return"object"==typeof t?null!==t:"function"==typeof t},P=function(t){if(!M(t))throw TypeError(t+" is not an object!");return t},T=function(t){try{return!!t()}catch(t){return!0}},F=!T(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),x=j.document,C=M(x)&&M(x.createElement),N=function(t){return C?x.createElement(t):{}},k=!F&&!T(function(){return 7!=Object.defineProperty(N("div"),"a",{get:function(){return 7}}).a}),R=function(t,n){if(!M(t))return t;var e,r;if(n&&"function"==typeof(e=t.toString)&&!M(r=e.call(t)))return r;if("function"==typeof(e=t.valueOf)&&!M(r=e.call(t)))return r;if(!n&&"function"==typeof(e=t.toString)&&!M(r=e.call(t)))return r;throw TypeError("Can't convert object to primitive value")},I=Object.defineProperty,z={f:F?Object.defineProperty:function(t,n,e){if(P(t),n=R(n,!0),P(e),k)try{return I(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},D=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},L=F?function(t,n,e){return z.f(t,n,D(1,e))}:function(t,n,e){return t[n]=e,t},H=function(t,n,e){var r,o,i,u=t&H.F,c=t&H.G,a=t&H.S,f=t&H.P,s=t&H.B,l=t&H.W,p=c?O:O[n]||(O[n]={}),d=p.prototype,h=c?j:a?j[n]:(j[n]||{}).prototype;c&&(e=n);for(r in e)(o=!u&&h&&void 0!==h[r])&&r in p||(i=o?h[r]:e[r],p[r]=c&&"function"!=typeof h[r]?e[r]:s&&o?E(i,j):l&&h[r]==i?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(i):f&&"function"==typeof i?E(Function.call,i):i,f&&((p.virtual||(p.virtual={}))[r]=i,t&H.R&&d&&!d[r]&&L(d,r,i)))};H.F=1,H.G=2,H.S=4,H.P=8,H.B=16,H.W=32,H.U=64,H.R=128;var q=H,B=L,W={}.hasOwnProperty,G=function(t,n){return W.call(t,n)},U={},$={}.toString,K=function(t){return $.call(t).slice(8,-1)},J=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==K(t)?t.split(""):Object(t)},Q=function(t){return J(S(t))},Y=Math.min,Z=function(t){return t>0?Y(_(t),9007199254740991):0},V=Math.max,X=Math.min,tt=function(t,n){return(t=_(t))<0?V(t+n,0):X(t,n)},nt=j["__core-js_shared__"]||(j["__core-js_shared__"]={}),et=function(t){return nt[t]||(nt[t]={})},rt=0,ot=Math.random(),it=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++rt+ot).toString(36))},ut=et("keys"),ct=function(t){return ut[t]||(ut[t]=it(t))},at=function(t){return function(n,e,r){var o,i=Q(n),u=Z(i.length),c=tt(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}}(!1),ft=ct("IE_PROTO"),st=function(t,n){var e,r=Q(t),o=0,i=[];for(e in r)e!=ft&&G(r,e)&&i.push(e);for(;n.length>o;)G(r,e=n[o++])&&(~at(i,e)||i.push(e));return i},lt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),pt=Object.keys||function(t){return st(t,lt)},dt=F?Object.defineProperties:function(t,n){P(t);for(var e,r=pt(n),o=r.length,i=0;o>i;)z.f(t,e=r[i++],n[e]);return t},ht=j.document&&document.documentElement,vt=ct("IE_PROTO"),yt=function(){},mt=function(){var t,n=N("iframe"),e=lt.length;for(n.style.display="none",ht.appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),mt=t.F;e--;)delete mt.prototype[lt[e]];return mt()},gt=Object.create||function(t,n){var e;return null!==t?(yt.prototype=P(t),e=new yt,yt.prototype=null,e[vt]=t):e=mt(),void 0===n?e:dt(e,n)},bt=e(function(t){var n=et("wks"),e=j.Symbol,r="function"==typeof e;(t.exports=function(t){return n[t]||(n[t]=r&&e[t]||(r?e:it)("Symbol."+t))}).store=n}),wt=z.f,_t=bt("toStringTag"),St=function(t,n,e){t&&!G(t=e?t:t.prototype,_t)&&wt(t,_t,{configurable:!0,value:n})},jt={};L(jt,bt("iterator"),function(){return this});var Ot=function(t,n,e){t.prototype=gt(jt,{next:D(1,e)}),St(t,n+" Iterator")},At=function(t){return Object(S(t))},Et=ct("IE_PROTO"),Mt=Object.prototype,Pt=Object.getPrototypeOf||function(t){return t=At(t),G(t,Et)?t[Et]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Mt:null},Tt=bt("iterator"),Ft=!([].keys&&"next"in[].keys()),xt=function(){return this},Ct=function(t,n,e,r,o,i,u){Ot(e,n,r);var c,a,f,s=function(t){if(!Ft&&t in h)return h[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},l=n+" Iterator",p="values"==o,d=!1,h=t.prototype,v=h[Tt]||h["@@iterator"]||o&&h[o],y=v||s(o),m=o?p?s("entries"):y:void 0,g="Array"==n?h.entries||v:v;if(g&&(f=Pt(g.call(new t)))!==Object.prototype&&St(f,l,!0),p&&v&&"values"!==v.name&&(d=!0,y=function(){return v.call(this)}),u&&(Ft||d||!h[Tt])&&L(h,Tt,y),U[n]=y,U[l]=xt,o)if(c={values:p?y:s("values"),keys:i?y:s("keys"),entries:m},u)for(a in c)a in h||B(h,a,c[a]);else q(q.P+q.F*(Ft||d),n,c);return c},Nt=function(t){return function(n,e){var r,o,i=String(S(n)),u=_(e),c=i.length;return u<0||u>=c?t?"":void 0:(r=i.charCodeAt(u))<55296||r>56319||u+1===c||(o=i.charCodeAt(u+1))<56320||o>57343?t?i.charAt(u):r:t?i.slice(u,u+2):o-56320+(r-55296<<10)+65536}}(!0);Ct(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=Nt(n,e),this._i+=t.length,{value:t,done:!1})});var kt=function(t,n,e,r){try{return r?n(P(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&P(o.call(t)),n}},Rt=bt("iterator"),It=Array.prototype,zt=function(t){return void 0!==t&&(U.Array===t||It[Rt]===t)},Dt=function(t,n,e){n in t?z.f(t,n,D(0,e)):t[n]=e},Lt=bt("toStringTag"),Ht="Arguments"==K(function(){return arguments}()),qt=function(t,n){try{return t[n]}catch(t){}},Bt=function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=qt(n=Object(t),Lt))?e:Ht?K(n):"Object"==(r=K(n))&&"function"==typeof n.callee?"Arguments":r},Wt=bt("iterator"),Gt=O.getIteratorMethod=function(t){if(void 0!=t)return t[Wt]||t["@@iterator"]||U[Bt(t)]},Ut=bt("iterator"),$t=!1;try{var Kt=[7][Ut]();Kt.return=function(){$t=!0},Array.from(Kt,function(){throw 2})}catch(t){}var Jt=function(t,n){if(!n&&!$t)return!1;var e=!1;try{var r=[7],o=r[Ut]();o.next=function(){return{done:e=!0}},r[Ut]=function(){return o},t(r)}catch(t){}return e};q(q.S+q.F*!Jt(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,r,o,i=At(t),u="function"==typeof this?this:Array,c=arguments.length,a=c>1?arguments[1]:void 0,f=void 0!==a,s=0,l=Gt(i);if(f&&(a=E(a,c>2?arguments[2]:void 0,2)),void 0==l||u==Array&&zt(l))for(e=new u(n=Z(i.length));n>s;s++)Dt(e,s,f?a(i[s],s):i[s]);else for(o=l.call(i),e=new u;!(r=o.next()).done;s++)Dt(e,s,f?kt(o,a,[r.value,s],!0):r.value);return e.length=s,e}});var Qt=O.Array.from,Yt=e(function(t){t.exports={default:Qt,__esModule:!0}}),Zt=n(Yt),Vt=n(e(function(t,n){n.__esModule=!0;var e=function(t){return t&&t.__esModule?t:{default:t}}(Yt);n.default=function(t){if(Array.isArray(t)){for(var n=0,r=Array(t.length);n<t.length;n++)r[n]=t[n];return r}return(0,e.default)(t)}})),Xt=function(){},tn=function(t,n){return{value:n,done:!!t}};Ct(Array,"Array",function(t,n){this._t=Q(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,tn(1)):"keys"==n?tn(0,e):"values"==n?tn(0,t[e]):tn(0,[e,t[e]])},"values");U.Arguments=U.Array,Xt(),Xt(),Xt();for(var nn=bt("toStringTag"),en=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],rn=0;rn<5;rn++){var on=en[rn],un=j[on],cn=un&&un.prototype;cn&&!cn[nn]&&L(cn,nn,on),U[on]=U.Array}var an={f:bt},fn=an.f("iterator"),sn=e(function(t){t.exports={default:fn,__esModule:!0}}),ln=e(function(t){var n=it("meta"),e=z.f,r=0,o=Object.isExtensible||function(){return!0},i=!T(function(){return o(Object.preventExtensions({}))}),u=function(t){e(t,n,{value:{i:"O"+ ++r,w:{}}})},c=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!M(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!G(t,n)){if(!o(t))return"F";if(!e)return"E";u(t)}return t[n].i},getWeak:function(t,e){if(!G(t,n)){if(!o(t))return!0;if(!e)return!1;u(t)}return t[n].w},onFreeze:function(t){return i&&c.NEED&&o(t)&&!G(t,n)&&u(t),t}}}),pn=z.f,dn=function(t){var n=O.Symbol||(O.Symbol={});"_"==t.charAt(0)||t in n||pn(n,t,{value:an.f(t)})},hn=function(t,n){for(var e,r=Q(t),o=pt(r),i=o.length,u=0;i>u;)if(r[e=o[u++]]===n)return e},vn={f:Object.getOwnPropertySymbols},yn={f:{}.propertyIsEnumerable},mn=function(t){var n=pt(t),e=vn.f;if(e)for(var r,o=e(t),i=yn.f,u=0;o.length>u;)i.call(t,r=o[u++])&&n.push(r);return n},gn=Array.isArray||function(t){return"Array"==K(t)},bn=lt.concat("length","prototype"),wn={f:Object.getOwnPropertyNames||function(t){return st(t,bn)}},_n=wn.f,Sn={}.toString,jn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],On=function(t){try{return _n(t)}catch(t){return jn.slice()}},An={f:function(t){return jn&&"[object Window]"==Sn.call(t)?On(t):_n(Q(t))}},En=Object.getOwnPropertyDescriptor,Mn={f:F?En:function(t,n){if(t=Q(t),n=R(n,!0),k)try{return En(t,n)}catch(t){}if(G(t,n))return D(!yn.f.call(t,n),t[n])}},Pn=ln.KEY,Tn=Mn.f,Fn=z.f,xn=An.f,Cn=j.Symbol,Nn=j.JSON,kn=Nn&&Nn.stringify,Rn=bt("_hidden"),In=bt("toPrimitive"),zn={}.propertyIsEnumerable,Dn=et("symbol-registry"),Ln=et("symbols"),Hn=et("op-symbols"),qn=Object.prototype,Bn="function"==typeof Cn,Wn=j.QObject,Gn=!Wn||!Wn.prototype||!Wn.prototype.findChild,Un=F&&T(function(){return 7!=gt(Fn({},"a",{get:function(){return Fn(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=Tn(qn,n);r&&delete qn[n],Fn(t,n,e),r&&t!==qn&&Fn(qn,n,r)}:Fn,$n=function(t){var n=Ln[t]=gt(Cn.prototype);return n._k=t,n},Kn=Bn&&"symbol"==typeof Cn.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Cn},Jn=function(t,n,e){return t===qn&&Jn(Hn,n,e),P(t),n=R(n,!0),P(e),G(Ln,n)?(e.enumerable?(G(t,Rn)&&t[Rn][n]&&(t[Rn][n]=!1),e=gt(e,{enumerable:D(0,!1)})):(G(t,Rn)||Fn(t,Rn,D(1,{})),t[Rn][n]=!0),Un(t,n,e)):Fn(t,n,e)},Qn=function(t,n){P(t);for(var e,r=mn(n=Q(n)),o=0,i=r.length;i>o;)Jn(t,e=r[o++],n[e]);return t},Yn=function(t){var n=zn.call(this,t=R(t,!0));return!(this===qn&&G(Ln,t)&&!G(Hn,t))&&(!(n||!G(this,t)||!G(Ln,t)||G(this,Rn)&&this[Rn][t])||n)},Zn=function(t,n){if(t=Q(t),n=R(n,!0),t!==qn||!G(Ln,n)||G(Hn,n)){var e=Tn(t,n);return!e||!G(Ln,n)||G(t,Rn)&&t[Rn][n]||(e.enumerable=!0),e}},Vn=function(t){for(var n,e=xn(Q(t)),r=[],o=0;e.length>o;)G(Ln,n=e[o++])||n==Rn||n==Pn||r.push(n);return r},Xn=function(t){for(var n,e=t===qn,r=xn(e?Hn:Q(t)),o=[],i=0;r.length>i;)!G(Ln,n=r[i++])||e&&!G(qn,n)||o.push(Ln[n]);return o};Bn||(B((Cn=function(){if(this instanceof Cn)throw TypeError("Symbol is not a constructor!");var t=it(arguments.length>0?arguments[0]:void 0),n=function(e){this===qn&&n.call(Hn,e),G(this,Rn)&&G(this[Rn],t)&&(this[Rn][t]=!1),Un(this,t,D(1,e))};return F&&Gn&&Un(qn,t,{configurable:!0,set:n}),$n(t)}).prototype,"toString",function(){return this._k}),Mn.f=Zn,z.f=Jn,wn.f=An.f=Vn,yn.f=Yn,vn.f=Xn,an.f=function(t){return $n(bt(t))}),q(q.G+q.W+q.F*!Bn,{Symbol:Cn});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)bt(te[ne++]);for(var te=pt(bt.store),ne=0;te.length>ne;)dn(te[ne++]);q(q.S+q.F*!Bn,"Symbol",{for:function(t){return G(Dn,t+="")?Dn[t]:Dn[t]=Cn(t)},keyFor:function(t){if(Kn(t))return hn(Dn,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){Gn=!0},useSimple:function(){Gn=!1}}),q(q.S+q.F*!Bn,"Object",{create:function(t,n){return void 0===n?gt(t):Qn(gt(t),n)},defineProperty:Jn,defineProperties:Qn,getOwnPropertyDescriptor:Zn,getOwnPropertyNames:Vn,getOwnPropertySymbols:Xn}),Nn&&q(q.S+q.F*(!Bn||T(function(){var t=Cn();return"[null]"!=kn([t])||"{}"!=kn({a:t})||"{}"!=kn(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!Kn(t)){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return"function"==typeof(n=r[1])&&(e=n),!e&&gn(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!Kn(n))return n}),r[1]=n,kn.apply(Nn,r)}}}),Cn.prototype[In]||L(Cn.prototype,In,Cn.prototype.valueOf),St(Cn,"Symbol"),St(Math,"Math",!0),St(j.JSON,"JSON",!0),dn("asyncIterator"),dn("observable");var ee=O.Symbol,re=e(function(t){t.exports={default:ee,__esModule:!0}}),oe=n(e(function(t,n){function e(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=e(sn),o=e(re),i="function"==typeof o.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};n.default="function"==typeof o.default&&"symbol"===i(r.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":i(t)}}));!function(t,n){var e=(O.Object||{})[t]||Object[t],r={};r[t]=n(e),q(q.S+q.F*T(function(){e(1)}),"Object",r)}("keys",function(){return function(t){return pt(At(t))}});var ie=O.Object.keys,ue=n(e(function(t){t.exports={default:ie,__esModule:!0}})),ce=Math.floor;q(q.S,"Number",{isInteger:function(t){return!M(t)&&isFinite(t)&&ce(t)===t}});var ae=O.Number.isInteger,fe=n(e(function(t){t.exports={default:ae,__esModule:!0}})),se="\t\n\v\f\r \u2028\u2029\ufeff",le="["+se+"]",pe=RegExp("^"+le+le+"*"),de=RegExp(le+le+"*$"),he=function(t,n,e){var r={},o=T(function(){return!!se[t]()||" "!=" "[t]()}),i=r[t]=o?n(ve):se[t];e&&(r[e]=i),q(q.P+q.F*o,"String",r)},ve=he.trim=function(t,n){return t=String(S(t)),1&n&&(t=t.replace(pe,"")),2&n&&(t=t.replace(de,"")),t},ye=he,me=j.parseFloat,ge=ye.trim,be=1/me(se+"-0")!=-1/0?function(t){var n=ge(String(t),3),e=me(n);return 0===e&&"-"==n.charAt(0)?-0:e}:me;q(q.S+q.F*(Number.parseFloat!=be),"Number",{parseFloat:be});var we=parseFloat,_e=n(e(function(t){t.exports={default:we,__esModule:!0}})),Se=d(function(t){return t});q(q.S+q.F*!F,"Object",{defineProperty:z.f});var je,Oe,Ae,Ee=O.Object,Me=function(t,n,e){return Ee.defineProperty(t,n,e)},Pe=n(e(function(t){t.exports={default:Me,__esModule:!0}})),Te=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t},Fe=e(function(t){var n={},e={},r=t.exports=function(t,r,o,i,u){var c,a,f,s,l=u?function(){return t}:Gt(t),p=E(o,i,r?2:1),d=0;if("function"!=typeof l)throw TypeError(t+" is not iterable!");if(zt(l)){for(c=Z(t.length);c>d;d++)if((s=r?p(P(a=t[d])[0],a[1]):p(t[d]))===n||s===e)return s}else for(f=l.call(t);!(a=f.next()).done;)if((s=kt(f,p,a.value,r))===n||s===e)return s};r.BREAK=n,r.RETURN=e}),xe=bt("species"),Ce=function(t,n){var e,r=P(t).constructor;return void 0===r||void 0==(e=P(r)[xe])?n:A(e)},Ne=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)},ke=j.process,Re=j.setImmediate,Ie=j.clearImmediate,ze=j.MessageChannel,De=0,Le={},He=function(){var t=+this;if(Le.hasOwnProperty(t)){var n=Le[t];delete Le[t],n()}},qe=function(t){He.call(t.data)};Re&&Ie||(Re=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return Le[++De]=function(){Ne("function"==typeof t?t:Function(t),n)},je(De),De},Ie=function(t){delete Le[t]},"process"==K(ke)?je=function(t){ke.nextTick(E(He,t,1))}:ze?(Ae=(Oe=new ze).port2,Oe.port1.onmessage=qe,je=E(Ae.postMessage,Ae,1)):j.addEventListener&&"function"==typeof postMessage&&!j.importScripts?(je=function(t){j.postMessage(t+"","*")},j.addEventListener("message",qe,!1)):je="onreadystatechange"in N("script")?function(t){ht.appendChild(N("script")).onreadystatechange=function(){ht.removeChild(this),He.call(t)}}:function(t){setTimeout(E(He,t,1),0)});var Be,We,Ge,Ue={set:Re,clear:Ie},$e=Ue.set,Ke=j.MutationObserver||j.WebKitMutationObserver,Je=j.process,Qe=j.Promise,Ye="process"==K(Je),Ze=bt("species"),Ve=Ue.set,Xe=function(){var t,n,e,r=function(){var r,o;for(Ye&&(r=Je.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(Ye)e=function(){Je.nextTick(r)};else if(Ke){var o=!0,i=document.createTextNode("");new Ke(r).observe(i,{characterData:!0}),e=function(){i.data=o=!o}}else if(Qe&&Qe.resolve){var u=Qe.resolve();e=function(){u.then(r)}}else e=function(){$e.call(j,r)};return function(r){var o={fn:r,next:void 0};n&&(n.next=o),t||(t=o,e()),n=o}}(),tr=j.TypeError,nr=j.process,er=j.Promise,nr=j.process,rr="process"==Bt(nr),or=function(){},ir=!!function(){try{var t=er.resolve(1),n=(t.constructor={})[bt("species")]=function(t){t(or,or)};return(rr||"function"==typeof PromiseRejectionEvent)&&t.then(or)instanceof n}catch(t){}}(),ur=function(t,n){return t===n||t===er&&n===Ge},cr=function(t){var n;return!(!M(t)||"function"!=typeof(n=t.then))&&n},ar=function(t){return ur(er,t)?new fr(t):new We(t)},fr=We=function(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw tr("Bad Promise constructor");n=t,e=r}),this.resolve=A(n),this.reject=A(e)},sr=function(t){try{t()}catch(t){return{error:t}}},lr=function(t,n){if(!t._n){t._n=!0;var e=t._c;Xe(function(){for(var r=t._v,o=1==t._s,i=0;e.length>i;)!function(n){var e,i,u=o?n.ok:n.fail,c=n.resolve,a=n.reject,f=n.domain;try{u?(o||(2==t._h&&hr(t),t._h=1),!0===u?e=r:(f&&f.enter(),e=u(r),f&&f.exit()),e===n.promise?a(tr("Promise-chain cycle")):(i=cr(e))?i.call(e,c,a):c(e)):a(r)}catch(t){a(t)}}(e[i++]);t._c=[],t._n=!1,n&&!t._h&&pr(t)})}},pr=function(t){Ve.call(j,function(){var n,e,r,o=t._v;if(dr(t)&&(n=sr(function(){rr?nr.emit("unhandledRejection",o,t):(e=j.onunhandledrejection)?e({promise:t,reason:o}):(r=j.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=rr||dr(t)?2:1),t._a=void 0,n)throw n.error})},dr=function(t){if(1==t._h)return!1;for(var n,e=t._a||t._c,r=0;e.length>r;)if((n=e[r++]).fail||!dr(n.promise))return!1;return!0},hr=function(t){Ve.call(j,function(){var n;rr?nr.emit("rejectionHandled",t):(n=j.onrejectionhandled)&&n({promise:t,reason:t._v})})},vr=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),lr(n,!0))},yr=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw tr("Promise can't be resolved itself");(n=cr(t))?Xe(function(){var r={_w:e,_d:!1};try{n.call(t,E(yr,r,1),E(vr,r,1))}catch(t){vr.call(r,t)}}):(e._v=t,e._s=1,lr(e,!1))}catch(t){vr.call({_w:e,_d:!1},t)}}};ir||(er=function(t){Te(this,er,"Promise","_h"),A(t),Be.call(this);try{t(E(yr,this,1),E(vr,this,1))}catch(t){vr.call(this,t)}},(Be=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(t,n,e){for(var r in n)e&&t[r]?t[r]=n[r]:L(t,r,n[r]);return t}(er.prototype,{then:function(t,n){var e=ar(Ce(this,er));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=rr?nr.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&lr(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),fr=function(){var t=new Be;this.promise=t,this.resolve=E(yr,t,1),this.reject=E(vr,t,1)}),q(q.G+q.W+q.F*!ir,{Promise:er}),St(er,"Promise"),function(t){var n="function"==typeof O[t]?O[t]:j[t];F&&n&&!n[Ze]&&z.f(n,Ze,{configurable:!0,get:function(){return this}})}("Promise"),Ge=O.Promise,q(q.S+q.F*!ir,"Promise",{reject:function(t){var n=ar(this);return(0,n.reject)(t),n.promise}}),q(q.S+!0*q.F,"Promise",{resolve:function(t){if(t instanceof er&&ur(t.constructor,this))return t;var n=ar(this);return(0,n.resolve)(t),n.promise}}),q(q.S+q.F*!(ir&&Jt(function(t){er.all(t).catch(or)})),"Promise",{all:function(t){var n=this,e=ar(n),r=e.resolve,o=e.reject,i=sr(function(){var e=[],i=0,u=1;Fe(t,!1,function(t){var c=i++,a=!1;e.push(void 0),u++,n.resolve(t).then(function(t){a||(a=!0,e[c]=t,--u||r(e))},o)}),--u||r(e)});return i&&o(i.error),e.promise},race:function(t){var n=this,e=ar(n),r=e.reject,o=sr(function(){Fe(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return o&&r(o.error),e.promise}});var mr=O.Promise,gr=n(e(function(t){t.exports={default:mr,__esModule:!0}})),br="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),wr=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return setTimeout(t,17)},_r=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame||function(t){clearTimeout(t)};t.genTraversalHandler=d,t.deepClone=function(t){if(l(t))throw new TypeError("deepClone only accept non primitive type");return Se(t)},t.deepAssign=function(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];if(n.length<2)throw new Error("deepAssign accept two and more argument");for(var r=n.length-1;r>-1;r--)if(l(n[r]))throw new TypeError("deepAssign only accept non primitive type");var o=n.shift();return n.forEach(function(t){return Se(t,o)}),o},t.camelize=h,t.hypenate=function(t){return h(t).replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})},t.bind=function(t,n){return t.bind?t.bind(n):t.apply?function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(n,r)}:function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.call.apply(t,[n].concat(Vt(r)))}},t.uuid=function(){return v()+v()+"-"+v()+"-"+v()+"-"+v()+"-"+v()+v()+v()},t.S4=v,t.rand=function(t){for(var n="";n.length<t;)n+=v();return n.slice(0,t)},t.isVoid=r,t.isArray=o,t.isFunction=i,t.isObject=u,t.isNumber=c,t.isNumeric=function(t){return!o(t)&&t-_e(t)+1>=0},t.isInteger=function(t){return fe(t)},t.isEmpty=function(t){return o(t)?0===t.length:u(t)?0===ue(t).length:!t},t.isEvent=function(t){return t instanceof Event||t.originalEvent instanceof Event},t.isBlob=a,t.isFile=function(t){return a(t)&&f(t.name)},t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isString=f,t.isBoolean=s,t.isPromise=function(t){return!!t&&("object"===(void 0===t?"undefined":oe(t))||"function"==typeof t)&&"function"==typeof t.then},t.isPrimitive=l,t.isUrl=function(t){return f(t)&&!!t.match(/^((https?|ftp|rtsp|mms):\/\/)(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?(([0-9]{1,3}\.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+\.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\.[a-z]{2,6}|localhost)(:[0-9]{1,4})?((\/?)|(\/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+\/?)$/i)},t.isNode=p,t.isElement=function(t){return!!("object"===("undefined"==typeof HTMLElement?"undefined":oe(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":oe(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)},t.isChildNode=function(t,n){return!(!p(t)||!p(n))&&n.parentNode===t},t.isPosterityNode=function(t,n){if(!p(t)||!p(n))return!1;for(;n.parentNode;)if((n=n.parentNode)===t)return!0;return!1},t.isHTMLString=function(t){return/<[^>]+?>/.test(t)},t.isError=function(t){return t instanceof Error},t.inBrowser=br,t.makeArray=function(t){return Zt(t)},t.transObjectAttrIntoArray=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t,n){return+t-+n};return ue(t).sort(n).reduce(function(n,e){return n.concat(t[e])},[])},t.runRejectableQueue=function(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return new gr(function(n,r){!function o(u){if(!(u>=t.length)){var c=i(t[u])?t[u].apply(t,Vt(e)):t[u];return!1===c?r("stop"):gr.resolve(c).then(function(){return o(u+1)}).catch(function(){return r("stop")})}n()}(0)})},t.runStoppableQueue=function(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return function n(r){return r>=t.length||!1!==(i(t[r])?t[r].apply(t,Vt(e)):t[r])&&n(++r)}(0)},t.setFrozenAttr=y,t.setAttrGetterAndSetter=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.get,o=e.set,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"__";if(l(t))throw TypeError("setFrozenAttr obj parameter can not be primitive type");if(!f(n))throw TypeError("setAttrGetterAndSetter key parameter must be String");var c=t[n];if(!i(r)&&(Pe(t,u+n,{value:c,configurable:!0,writable:!0,enumerable:!1}),r=function(){return this[u+n]},o&&i(o))){var a=o;o=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];this[u+n]=a.call.apply(a,[this].concat(e))}}Pe(t,n,{get:r,set:o})},t.decodeUTF8=function(t){for(var n=[],e=t,r=0,o=t.length;r<o;)if(e[r]<128)n.push(String.fromCharCode(e[r])),++r;else{if(e[r]<192);else if(e[r]<224){if(m(e,r,1)){var i=(31&e[r])<<6|63&e[r+1];if(i>=128){n.push(String.fromCharCode(65535&i)),r+=2;continue}}}else if(e[r]<240){if(m(e,r,2)){var u=(15&e[r])<<12|(63&e[r+1])<<6|63&e[r+2];if(u>=2048&&55296!=(63488&u)){n.push(String.fromCharCode(65535&u)),r+=3;continue}}}else if(e[r]<248&&m(e,r,3)){var c=(7&e[r])<<18|(63&e[r+1])<<12|(63&e[r+2])<<6|63&e[r+3];if(c>65536&&c<1114112){c-=65536,n.push(String.fromCharCode(c>>>10|55296)),n.push(String.fromCharCode(1023&c|56320)),r+=4;continue}}n.push(String.fromCharCode(65533)),++r}return n.join("")},t.debounce=function(t,n,e){var r=void 0,o=void 0,i=void 0,u=void 0,c=void 0,a=function a(){var f=new Date-u;f<n&&f>=0?r=setTimeout(a,n-f):(r=null,e||(c=t.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,u=new Date;var f=e&&!r;return r||(r=setTimeout(a,n)),f&&(c=t.apply(i,o),i=o=null),c}},t.throttle=function(t,n,e,r){var o=void 0,i=void 0,u=void 0,c=null,a=0;e||(e={});var f=function(){a=!1===e.leading?0:new Date-0,c=null,u=t.apply(o,i),c||(o=i=null)};return n=n||0,function(){var s=new Date;a||!1!==e.leading||(a=s);var l=n-(s-a);return o=r||this,i=arguments,l<=0||l>n?(c&&(clearTimeout(c),c=null),a=s,u=t.apply(o,i),c||(o=i=null)):c||!1===e.trailing||(c=setTimeout(f,l)),u}},t.raf=wr,t.caf=_r,t.strRepeat=g,t.formatTime=function(t){var n=Math.floor(t/3600);t=Math.floor(t%3600);var e=g(Math.floor(t/60),2),r=g(t=Math.floor(t%60),2);return n>=1?n+":"+e+":"+r:e+":"+r},t.addTransMethod=function(t){y(t,"trans",function(n){return t.__fns||y(t,"__fns",{}),t.__fns[n]||(t.__fns[n]=function(){if(!i(t[n]))throw TypeError("obj.trans(methodName) parameter must be Function");return t[n].apply(t,arguments)}),t.__fns[n]})},t.appendCSS=function(t){var n=document,e=n.querySelector("style");if(!e){e=n.createElement("style");var r=n.querySelector("head");r&&r.appendChild(e)}return e.appendChild(n.createTextNode(t)),e},t.formatDate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss.i",e=t.getFullYear().toString(),r={M:t.getMonth()+1,d:t.getDate(),h:t.getHours(),m:t.getMinutes(),s:t.getSeconds(),i:t.getMilliseconds()};n=n.replace(/(y+)/gi,function(t,n){return e.substr(4-Math.min(4,n.length))});for(var o in r)!function(t){n=n.replace(new RegExp("("+t+"+)","g"),function(n,e){return(r[t]<10&&e.length>1?"0":"")+r[t]})}(o);return n},t.getLocalStorage=function(t){try{return window.localStorage&&localStorage.getItem(t)}catch(e){try{var n=document.cookie.match(new RegExp("(^| )"+t+"=([^;]*)(;|$)"));return o(n)?unescape(n[2]):""}catch(t){return""}}},t.setLocalStorage=function(t,n){try{window.localStorage&&localStorage.setItem(t,n)}catch(r){var e=new Date;e.setTime(e.getTime()+2592e7);try{document.cookie=t+"="+escape(n)+";expires="+e.toGMTString()+";path=/;"}catch(t){}}},Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.chimeeHelper=t.chimeeHelper||{})}(this,function(t){"use strict";function e(t){return t&&t.__esModule?t.default:t}function n(t,e){return e={exports:{}},t(e,e.exports),e.exports}function r(t){return void 0===t||null===t}function o(t){return Array.isArray(t)}function i(t){return"function"==typeof t}function u(t){return Object(t)===t&&"[object Object]"===String(t)&&!i(t)&&!o(t)}function c(t){return"number"==typeof t}function a(t){return t instanceof Blob}function f(t){return"string"==typeof t||t instanceof String}function s(t){return"boolean"==typeof t}function l(t){return r(t)||s(t)||f(t)||c(t)}function p(t){return!!("object"===("undefined"==typeof Node?"undefined":an(Node))?t instanceof Node:t&&"object"===(void 0===t?"undefined":an(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName)}function d(t){function e(n,r,i){if(o(n)||u(n)){r=r||(u(n)?{}:[]);for(var c in n)r[c]=e(n[c],r[c],c);return r}return t(n,r,i)}return e}function h(t,e){return t.replace(/(^|[^a-zA-Z]+)([a-zA-Z])/g,function(t,n,r,o){return e||0!==o?r.toUpperCase():r.toLowerCase()})}function v(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function y(t,e,n){if(l(t))throw TypeError("setFrozenAttr obj parameter can not be primitive type");if(!f(e))throw TypeError("setFrozenAttr key parameter must be String");kn(t,e,{value:n,configurable:!1,enumerable:!1,writable:!1})}function m(t,e,n){var r=t;if(e+n<r.length){for(;n--;)if(128!=(192&r[++e]))return!1;return!0}return!1}function g(t,e){var n=e,r=(t=""+(t||"")).length;return(((e=(e||r)-r)>0?t.repeat?"0".repeat(e):new Array(e+1).join("0"):"")+t).slice(0,n)}function b(t,e){var n=t.__evt_id;n||(Object.defineProperty(t,"__evt_id",{writable:!0,enumerable:!1,configurable:!0}),n=t.__evt_id=++Ir.count);var r=n+"_"+e,o=Ir[r];return o||(o=Ir[r]=[]),o}function _(t,e,n){var r=Rr(null);r.type=e,r.target=t,n&&Cr(r,u(n)?n:{data:n}),b(t,e).forEach(function(e){(e[1]||e[0]).apply(t,[r])})}function w(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments[4];i(r)&&!o&&(o=r,r=void 0);var u=[n,void 0,r];r&&!o&&(o=function(){S(t,e,n,r);for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];n.apply(t,i)}),o&&(u[1]=o),b(t,e).push(u)}function S(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=b(t,e);if(n||r){var i=-1,u=void 0;return o.find(function(t,e){if((!n||t[0]===n)&&(!r||t[2]))return i=e,u=t[1],!0}),-1!==i&&o.splice(i,1),u}o.length=0}var j=Math.ceil,O=Math.floor,E=function(t){return isNaN(t=+t)?0:(t>0?O:j)(t)},A=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},M=n(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),P=n(function(t){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)}),T=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},F=function(t,e,n){if(T(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},x=function(t){return"object"==typeof t?null!==t:"function"==typeof t},C=function(t){if(!x(t))throw TypeError(t+" is not an object!");return t},k=function(t){try{return!!t()}catch(t){return!0}},N=!k(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),R=M.document,I=x(R)&&x(R.createElement),z=function(t){return I?R.createElement(t):{}},D=!N&&!k(function(){return 7!=Object.defineProperty(z("div"),"a",{get:function(){return 7}}).a}),L=function(t,e){if(!x(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!x(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!x(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!x(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},q=Object.defineProperty,H={f:N?Object.defineProperty:function(t,e,n){if(C(t),e=L(e,!0),C(n),D)try{return q(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},B=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},W=N?function(t,e,n){return H.f(t,e,B(1,n))}:function(t,e,n){return t[e]=n,t},G=function(t,e,n){var r,o,i,u=t&G.F,c=t&G.G,a=t&G.S,f=t&G.P,s=t&G.B,l=t&G.W,p=c?P:P[e]||(P[e]={}),d=p.prototype,h=c?M:a?M[e]:(M[e]||{}).prototype;c&&(n=e);for(r in n)(o=!u&&h&&void 0!==h[r])&&r in p||(i=o?h[r]:n[r],p[r]=c&&"function"!=typeof h[r]?n[r]:s&&o?F(i,M):l&&h[r]==i?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(i):f&&"function"==typeof i?F(Function.call,i):i,f&&((p.virtual||(p.virtual={}))[r]=i,t&G.R&&d&&!d[r]&&W(d,r,i)))};G.F=1,G.G=2,G.S=4,G.P=8,G.B=16,G.W=32,G.U=64,G.R=128;var U=G,$=W,K={}.hasOwnProperty,J=function(t,e){return K.call(t,e)},Q={},Y={}.toString,Z=function(t){return Y.call(t).slice(8,-1)},V=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==Z(t)?t.split(""):Object(t)},X=function(t){return V(A(t))},tt=Math.min,et=function(t){return t>0?tt(E(t),9007199254740991):0},nt=Math.max,rt=Math.min,ot=function(t,e){return(t=E(t))<0?nt(t+e,0):rt(t,e)},it=M["__core-js_shared__"]||(M["__core-js_shared__"]={}),ut=function(t){return it[t]||(it[t]={})},ct=0,at=Math.random(),ft=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++ct+at).toString(36))},st=ut("keys"),lt=function(t){return st[t]||(st[t]=ft(t))},pt=function(t){return function(e,n,r){var o,i=X(e),u=et(i.length),c=ot(r,u);if(t&&n!=n){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}}(!1),dt=lt("IE_PROTO"),ht=function(t,e){var n,r=X(t),o=0,i=[];for(n in r)n!=dt&&J(r,n)&&i.push(n);for(;e.length>o;)J(r,n=e[o++])&&(~pt(i,n)||i.push(n));return i},vt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),yt=Object.keys||function(t){return ht(t,vt)},mt=N?Object.defineProperties:function(t,e){C(t);for(var n,r=yt(e),o=r.length,i=0;o>i;)H.f(t,n=r[i++],e[n]);return t},gt=M.document&&document.documentElement,bt=lt("IE_PROTO"),_t=function(){},wt=function(){var t,e=z("iframe"),n=vt.length;for(e.style.display="none",gt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),wt=t.F;n--;)delete wt.prototype[vt[n]];return wt()},St=Object.create||function(t,e){var n;return null!==t?(_t.prototype=C(t),n=new _t,_t.prototype=null,n[bt]=t):n=wt(),void 0===e?n:mt(n,e)},jt=n(function(t){var e=ut("wks"),n=M.Symbol,r="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=r&&n[t]||(r?n:ft)("Symbol."+t))}).store=e}),Ot=H.f,Et=jt("toStringTag"),At=function(t,e,n){t&&!J(t=n?t:t.prototype,Et)&&Ot(t,Et,{configurable:!0,value:e})},Mt={};W(Mt,jt("iterator"),function(){return this});var Pt=function(t,e,n){t.prototype=St(Mt,{next:B(1,n)}),At(t,e+" Iterator")},Tt=function(t){return Object(A(t))},Ft=lt("IE_PROTO"),xt=Object.prototype,Ct=Object.getPrototypeOf||function(t){return t=Tt(t),J(t,Ft)?t[Ft]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?xt:null},kt=jt("iterator"),Nt=!([].keys&&"next"in[].keys()),Rt=function(){return this},It=function(t,e,n,r,o,i,u){Pt(n,e,r);var c,a,f,s=function(t){if(!Nt&&t in h)return h[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},l=e+" Iterator",p="values"==o,d=!1,h=t.prototype,v=h[kt]||h["@@iterator"]||o&&h[o],y=v||s(o),m=o?p?s("entries"):y:void 0,g="Array"==e?h.entries||v:v;if(g&&(f=Ct(g.call(new t)))!==Object.prototype&&At(f,l,!0),p&&v&&"values"!==v.name&&(d=!0,y=function(){return v.call(this)}),u&&(Nt||d||!h[kt])&&W(h,kt,y),Q[e]=y,Q[l]=Rt,o)if(c={values:p?y:s("values"),keys:i?y:s("keys"),entries:m},u)for(a in c)a in h||$(h,a,c[a]);else U(U.P+U.F*(Nt||d),e,c);return c},zt=function(t){return function(e,n){var r,o,i=String(A(e)),u=E(n),c=i.length;return u<0||u>=c?t?"":void 0:(r=i.charCodeAt(u))<55296||r>56319||u+1===c||(o=i.charCodeAt(u+1))<56320||o>57343?t?i.charAt(u):r:t?i.slice(u,u+2):o-56320+(r-55296<<10)+65536}}(!0);It(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=zt(e,n),this._i+=t.length,{value:t,done:!1})});var Dt=function(t,e,n,r){try{return r?e(C(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&C(o.call(t)),e}},Lt=jt("iterator"),qt=Array.prototype,Ht=function(t){return void 0!==t&&(Q.Array===t||qt[Lt]===t)},Bt=function(t,e,n){e in t?H.f(t,e,B(0,n)):t[e]=n},Wt=jt("toStringTag"),Gt="Arguments"==Z(function(){return arguments}()),Ut=function(t,e){try{return t[e]}catch(t){}},$t=function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=Ut(e=Object(t),Wt))?n:Gt?Z(e):"Object"==(r=Z(e))&&"function"==typeof e.callee?"Arguments":r},Kt=jt("iterator"),Jt=P.getIteratorMethod=function(t){if(void 0!=t)return t[Kt]||t["@@iterator"]||Q[$t(t)]},Qt=jt("iterator"),Yt=!1;try{var Zt=[7][Qt]();Zt.return=function(){Yt=!0},Array.from(Zt,function(){throw 2})}catch(t){}var Vt=function(t,e){if(!e&&!Yt)return!1;var n=!1;try{var r=[7],o=r[Qt]();o.next=function(){return{done:n=!0}},r[Qt]=function(){return o},t(r)}catch(t){}return n};U(U.S+U.F*!Vt(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,o,i=Tt(t),u="function"==typeof this?this:Array,c=arguments.length,a=c>1?arguments[1]:void 0,f=void 0!==a,s=0,l=Jt(i);if(f&&(a=F(a,c>2?arguments[2]:void 0,2)),void 0==l||u==Array&&Ht(l))for(n=new u(e=et(i.length));e>s;s++)Bt(n,s,f?a(i[s],s):i[s]);else for(o=l.call(i),n=new u;!(r=o.next()).done;s++)Bt(n,s,f?Dt(o,a,[r.value,s],!0):r.value);return n.length=s,n}});var Xt=P.Array.from,te=n(function(t){t.exports={default:Xt,__esModule:!0}}),ee=e(te),ne=e(n(function(t,e){e.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(te);e.default=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return(0,n.default)(t)}})),re=function(){},oe=function(t,e){return{value:e,done:!!t}};It(Array,"Array",function(t,e){this._t=X(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,oe(1)):"keys"==e?oe(0,n):"values"==e?oe(0,t[n]):oe(0,[n,t[n]])},"values");Q.Arguments=Q.Array,re(),re(),re();for(var ie=jt("toStringTag"),ue=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],ce=0;ce<5;ce++){var ae=ue[ce],fe=M[ae],se=fe&&fe.prototype;se&&!se[ie]&&W(se,ie,ae),Q[ae]=Q.Array}var le={f:jt},pe=le.f("iterator"),de=n(function(t){t.exports={default:pe,__esModule:!0}}),he=n(function(t){var e=ft("meta"),n=H.f,r=0,o=Object.isExtensible||function(){return!0},i=!k(function(){return o(Object.preventExtensions({}))}),u=function(t){n(t,e,{value:{i:"O"+ ++r,w:{}}})},c=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!x(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!J(t,e)){if(!o(t))return"F";if(!n)return"E";u(t)}return t[e].i},getWeak:function(t,n){if(!J(t,e)){if(!o(t))return!0;if(!n)return!1;u(t)}return t[e].w},onFreeze:function(t){return i&&c.NEED&&o(t)&&!J(t,e)&&u(t),t}}}),ve=H.f,ye=function(t){var e=P.Symbol||(P.Symbol={});"_"==t.charAt(0)||t in e||ve(e,t,{value:le.f(t)})},me=function(t,e){for(var n,r=X(t),o=yt(r),i=o.length,u=0;i>u;)if(r[n=o[u++]]===e)return n},ge={f:Object.getOwnPropertySymbols},be={f:{}.propertyIsEnumerable},_e=function(t){var e=yt(t),n=ge.f;if(n)for(var r,o=n(t),i=be.f,u=0;o.length>u;)i.call(t,r=o[u++])&&e.push(r);return e},we=Array.isArray||function(t){return"Array"==Z(t)},Se=vt.concat("length","prototype"),je={f:Object.getOwnPropertyNames||function(t){return ht(t,Se)}},Oe=je.f,Ee={}.toString,Ae="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Me=function(t){try{return Oe(t)}catch(t){return Ae.slice()}},Pe={f:function(t){return Ae&&"[object Window]"==Ee.call(t)?Me(t):Oe(X(t))}},Te=Object.getOwnPropertyDescriptor,Fe={f:N?Te:function(t,e){if(t=X(t),e=L(e,!0),D)try{return Te(t,e)}catch(t){}if(J(t,e))return B(!be.f.call(t,e),t[e])}},xe=he.KEY,Ce=Fe.f,ke=H.f,Ne=Pe.f,Re=M.Symbol,Ie=M.JSON,ze=Ie&&Ie.stringify,De=jt("_hidden"),Le=jt("toPrimitive"),qe={}.propertyIsEnumerable,He=ut("symbol-registry"),Be=ut("symbols"),We=ut("op-symbols"),Ge=Object.prototype,Ue="function"==typeof Re,$e=M.QObject,Ke=!$e||!$e.prototype||!$e.prototype.findChild,Je=N&&k(function(){return 7!=St(ke({},"a",{get:function(){return ke(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=Ce(Ge,e);r&&delete Ge[e],ke(t,e,n),r&&t!==Ge&&ke(Ge,e,r)}:ke,Qe=function(t){var e=Be[t]=St(Re.prototype);return e._k=t,e},Ye=Ue&&"symbol"==typeof Re.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Re},Ze=function(t,e,n){return t===Ge&&Ze(We,e,n),C(t),e=L(e,!0),C(n),J(Be,e)?(n.enumerable?(J(t,De)&&t[De][e]&&(t[De][e]=!1),n=St(n,{enumerable:B(0,!1)})):(J(t,De)||ke(t,De,B(1,{})),t[De][e]=!0),Je(t,e,n)):ke(t,e,n)},Ve=function(t,e){C(t);for(var n,r=_e(e=X(e)),o=0,i=r.length;i>o;)Ze(t,n=r[o++],e[n]);return t},Xe=function(t){var e=qe.call(this,t=L(t,!0));return!(this===Ge&&J(Be,t)&&!J(We,t))&&(!(e||!J(this,t)||!J(Be,t)||J(this,De)&&this[De][t])||e)},tn=function(t,e){if(t=X(t),e=L(e,!0),t!==Ge||!J(Be,e)||J(We,e)){var n=Ce(t,e);return!n||!J(Be,e)||J(t,De)&&t[De][e]||(n.enumerable=!0),n}},en=function(t){for(var e,n=Ne(X(t)),r=[],o=0;n.length>o;)J(Be,e=n[o++])||e==De||e==xe||r.push(e);return r},nn=function(t){for(var e,n=t===Ge,r=Ne(n?We:X(t)),o=[],i=0;r.length>i;)!J(Be,e=r[i++])||n&&!J(Ge,e)||o.push(Be[e]);return o};Ue||($((Re=function(){if(this instanceof Re)throw TypeError("Symbol is not a constructor!");var t=ft(arguments.length>0?arguments[0]:void 0),e=function(n){this===Ge&&e.call(We,n),J(this,De)&&J(this[De],t)&&(this[De][t]=!1),Je(this,t,B(1,n))};return N&&Ke&&Je(Ge,t,{configurable:!0,set:e}),Qe(t)}).prototype,"toString",function(){return this._k}),Fe.f=tn,H.f=Ze,je.f=Pe.f=en,be.f=Xe,ge.f=nn,le.f=function(t){return Qe(jt(t))}),U(U.G+U.W+U.F*!Ue,{Symbol:Re});for(var rn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),on=0;rn.length>on;)jt(rn[on++]);for(var rn=yt(jt.store),on=0;rn.length>on;)ye(rn[on++]);U(U.S+U.F*!Ue,"Symbol",{for:function(t){return J(He,t+="")?He[t]:He[t]=Re(t)},keyFor:function(t){if(Ye(t))return me(He,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){Ke=!0},useSimple:function(){Ke=!1}}),U(U.S+U.F*!Ue,"Object",{create:function(t,e){return void 0===e?St(t):Ve(St(t),e)},defineProperty:Ze,defineProperties:Ve,getOwnPropertyDescriptor:tn,getOwnPropertyNames:en,getOwnPropertySymbols:nn}),Ie&&U(U.S+U.F*(!Ue||k(function(){var t=Re();return"[null]"!=ze([t])||"{}"!=ze({a:t})||"{}"!=ze(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!Ye(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return"function"==typeof(e=r[1])&&(n=e),!n&&we(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!Ye(e))return e}),r[1]=e,ze.apply(Ie,r)}}}),Re.prototype[Le]||W(Re.prototype,Le,Re.prototype.valueOf),At(Re,"Symbol"),At(Math,"Math",!0),At(M.JSON,"JSON",!0),ye("asyncIterator"),ye("observable");var un=P.Symbol,cn=n(function(t){t.exports={default:un,__esModule:!0}}),an=e(n(function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(de),o=n(cn),i="function"==typeof o.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};e.default="function"==typeof o.default&&"symbol"===i(r.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":i(t)}}));!function(t,e){var n=(P.Object||{})[t]||Object[t],r={};r[t]=e(n),U(U.S+U.F*k(function(){n(1)}),"Object",r)}("keys",function(){return function(t){return yt(Tt(t))}});var fn=P.Object.keys,sn=e(n(function(t){t.exports={default:fn,__esModule:!0}})),ln=Math.floor;U(U.S,"Number",{isInteger:function(t){return!x(t)&&isFinite(t)&&ln(t)===t}});var pn=P.Number.isInteger,dn=e(n(function(t){t.exports={default:pn,__esModule:!0}})),hn="\t\n\v\f\r \u2028\u2029\ufeff",vn="["+hn+"]",yn=RegExp("^"+vn+vn+"*"),mn=RegExp(vn+vn+"*$"),gn=function(t,e,n){var r={},o=k(function(){return!!hn[t]()||" "!=" "[t]()}),i=r[t]=o?e(bn):hn[t];n&&(r[n]=i),U(U.P+U.F*o,"String",r)},bn=gn.trim=function(t,e){return t=String(A(t)),1&e&&(t=t.replace(yn,"")),2&e&&(t=t.replace(mn,"")),t},_n=gn,wn=M.parseFloat,Sn=_n.trim,jn=1/wn(hn+"-0")!=-1/0?function(t){var e=Sn(String(t),3),n=wn(e);return 0===n&&"-"==e.charAt(0)?-0:n}:wn;U(U.S+U.F*(Number.parseFloat!=jn),"Number",{parseFloat:jn});var On=parseFloat,En=e(n(function(t){t.exports={default:On,__esModule:!0}})),An=d(function(t){return t});U(U.S+U.F*!N,"Object",{defineProperty:H.f});var Mn,Pn,Tn,Fn=P.Object,xn=function(t,e,n){return Fn.defineProperty(t,e,n)},Cn=n(function(t){t.exports={default:xn,__esModule:!0}}),kn=e(Cn),Nn=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t},Rn=n(function(t){var e={},n={},r=t.exports=function(t,r,o,i,u){var c,a,f,s,l=u?function(){return t}:Jt(t),p=F(o,i,r?2:1),d=0;if("function"!=typeof l)throw TypeError(t+" is not iterable!");if(Ht(l)){for(c=et(t.length);c>d;d++)if((s=r?p(C(a=t[d])[0],a[1]):p(t[d]))===e||s===n)return s}else for(f=l.call(t);!(a=f.next()).done;)if((s=Dt(f,p,a.value,r))===e||s===n)return s};r.BREAK=e,r.RETURN=n}),In=jt("species"),zn=function(t,e){var n,r=C(t).constructor;return void 0===r||void 0==(n=C(r)[In])?e:T(n)},Dn=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)},Ln=M.process,qn=M.setImmediate,Hn=M.clearImmediate,Bn=M.MessageChannel,Wn=0,Gn={},Un=function(){var t=+this;if(Gn.hasOwnProperty(t)){var e=Gn[t];delete Gn[t],e()}},$n=function(t){Un.call(t.data)};qn&&Hn||(qn=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Gn[++Wn]=function(){Dn("function"==typeof t?t:Function(t),e)},Mn(Wn),Wn},Hn=function(t){delete Gn[t]},"process"==Z(Ln)?Mn=function(t){Ln.nextTick(F(Un,t,1))}:Bn?(Tn=(Pn=new Bn).port2,Pn.port1.onmessage=$n,Mn=F(Tn.postMessage,Tn,1)):M.addEventListener&&"function"==typeof postMessage&&!M.importScripts?(Mn=function(t){M.postMessage(t+"","*")},M.addEventListener("message",$n,!1)):Mn="onreadystatechange"in z("script")?function(t){gt.appendChild(z("script")).onreadystatechange=function(){gt.removeChild(this),Un.call(t)}}:function(t){setTimeout(F(Un,t,1),0)});var Kn,Jn,Qn,Yn={set:qn,clear:Hn},Zn=Yn.set,Vn=M.MutationObserver||M.WebKitMutationObserver,Xn=M.process,tr=M.Promise,er="process"==Z(Xn),nr=jt("species"),rr=Yn.set,or=function(){var t,e,n,r=function(){var r,o;for(er&&(r=Xn.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(er)n=function(){Xn.nextTick(r)};else if(Vn){var o=!0,i=document.createTextNode("");new Vn(r).observe(i,{characterData:!0}),n=function(){i.data=o=!o}}else if(tr&&tr.resolve){var u=tr.resolve();n=function(){u.then(r)}}else n=function(){Zn.call(M,r)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}(),ir=M.TypeError,ur=M.process,cr=M.Promise,ur=M.process,ar="process"==$t(ur),fr=function(){},sr=!!function(){try{var t=cr.resolve(1),e=(t.constructor={})[jt("species")]=function(t){t(fr,fr)};return(ar||"function"==typeof PromiseRejectionEvent)&&t.then(fr)instanceof e}catch(t){}}(),lr=function(t,e){return t===e||t===cr&&e===Qn},pr=function(t){var e;return!(!x(t)||"function"!=typeof(e=t.then))&&e},dr=function(t){return lr(cr,t)?new hr(t):new Jn(t)},hr=Jn=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw ir("Bad Promise constructor");e=t,n=r}),this.resolve=T(e),this.reject=T(n)},vr=function(t){try{t()}catch(t){return{error:t}}},yr=function(t,e){if(!t._n){t._n=!0;var n=t._c;or(function(){for(var r=t._v,o=1==t._s,i=0;n.length>i;)!function(e){var n,i,u=o?e.ok:e.fail,c=e.resolve,a=e.reject,f=e.domain;try{u?(o||(2==t._h&&br(t),t._h=1),!0===u?n=r:(f&&f.enter(),n=u(r),f&&f.exit()),n===e.promise?a(ir("Promise-chain cycle")):(i=pr(n))?i.call(n,c,a):c(n)):a(r)}catch(t){a(t)}}(n[i++]);t._c=[],t._n=!1,e&&!t._h&&mr(t)})}},mr=function(t){rr.call(M,function(){var e,n,r,o=t._v;if(gr(t)&&(e=vr(function(){ar?ur.emit("unhandledRejection",o,t):(n=M.onunhandledrejection)?n({promise:t,reason:o}):(r=M.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=ar||gr(t)?2:1),t._a=void 0,e)throw e.error})},gr=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if((e=n[r++]).fail||!gr(e.promise))return!1;return!0},br=function(t){rr.call(M,function(){var e;ar?ur.emit("rejectionHandled",t):(e=M.onrejectionhandled)&&e({promise:t,reason:t._v})})},_r=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),yr(e,!0))},wr=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw ir("Promise can't be resolved itself");(e=pr(t))?or(function(){var r={_w:n,_d:!1};try{e.call(t,F(wr,r,1),F(_r,r,1))}catch(t){_r.call(r,t)}}):(n._v=t,n._s=1,yr(n,!1))}catch(t){_r.call({_w:n,_d:!1},t)}}};sr||(cr=function(t){Nn(this,cr,"Promise","_h"),T(t),Kn.call(this);try{t(F(wr,this,1),F(_r,this,1))}catch(t){_r.call(this,t)}},(Kn=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(t,e,n){for(var r in e)n&&t[r]?t[r]=e[r]:W(t,r,e[r]);return t}(cr.prototype,{then:function(t,e){var n=dr(zn(this,cr));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=ar?ur.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&yr(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),hr=function(){var t=new Kn;this.promise=t,this.resolve=F(wr,t,1),this.reject=F(_r,t,1)}),U(U.G+U.W+U.F*!sr,{Promise:cr}),At(cr,"Promise"),function(t){var e="function"==typeof P[t]?P[t]:M[t];N&&e&&!e[nr]&&H.f(e,nr,{configurable:!0,get:function(){return this}})}("Promise"),Qn=P.Promise,U(U.S+U.F*!sr,"Promise",{reject:function(t){var e=dr(this);return(0,e.reject)(t),e.promise}}),U(U.S+!0*U.F,"Promise",{resolve:function(t){if(t instanceof cr&&lr(t.constructor,this))return t;var e=dr(this);return(0,e.resolve)(t),e.promise}}),U(U.S+U.F*!(sr&&Vt(function(t){cr.all(t).catch(fr)})),"Promise",{all:function(t){var e=this,n=dr(e),r=n.resolve,o=n.reject,i=vr(function(){var n=[],i=0,u=1;Rn(t,!1,function(t){var c=i++,a=!1;n.push(void 0),u++,e.resolve(t).then(function(t){a||(a=!0,n[c]=t,--u||r(n))},o)}),--u||r(n)});return i&&o(i.error),n.promise},race:function(t){var e=this,n=dr(e),r=n.reject,o=vr(function(){Rn(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o&&r(o.error),n.promise}});var Sr=P.Promise,jr=e(n(function(t){t.exports={default:Sr,__esModule:!0}})),Or="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Er=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return setTimeout(t,17)},Ar=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame||function(t){clearTimeout(t)},Mr=e(n(function(t,e){e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}})),Pr=e(n(function(t,e){e.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(Cn);e.default=function(){function t(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,n.default)(t,o.key,o)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()})),Tr=Object.assign,Fr=!Tr||k(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=Tr({},t)[n]||Object.keys(Tr({},e)).join("")!=r})?function(t,e){for(var n=Tt(t),r=arguments.length,o=1,i=ge.f,u=be.f;r>o;)for(var c,a=V(arguments[o++]),f=i?yt(a).concat(i(a)):yt(a),s=f.length,l=0;s>l;)u.call(a,c=f[l++])&&(n[c]=a[c]);return n}:Tr;U(U.S+U.F,"Object",{assign:Fr});var xr=P.Object.assign,Cr=e(n(function(t){t.exports={default:xr,__esModule:!0}}));U(U.S,"Object",{create:St});var kr=P.Object,Nr=function(t,e){return kr.create(t,e)},Rr=e(n(function(t){t.exports={default:Nr,__esModule:!0}})),Ir=Rr(null);Ir.count=0;var zr=function(){function t(e,n){var r=this;if(Mr(this,t),Object.defineProperty(this,"__target",{writable:!0,enumerable:!1,configurable:!0}),this.__target=this,e){if("object"!==(void 0===e?"undefined":an(e)))throw new Error("CusEvent target are not object");this.__target=e,n&&["on","once","off","emit"].forEach(function(t){e[t]=r[t]})}}return Pr(t,[{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return w(this.__target,t,e,n),this}},{key:"once",value:function(t,e){return this.on(t,e,!0)}},{key:"off",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return S(this.__target,t,e,n),this}},{key:"emit",value:function(t,e){return _(this.__target,t,{data:e}),this}}]),t}();t.genTraversalHandler=d,t.deepClone=function(t){if(l(t))throw new TypeError("deepClone only accept non primitive type");return An(t)},t.deepAssign=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<2)throw new Error("deepAssign accept two and more argument");for(var r=e.length-1;r>-1;r--)if(l(e[r]))throw new TypeError("deepAssign only accept non primitive type");var o=e.shift();return e.forEach(function(t){return An(t,o)}),o},t.camelize=h,t.hypenate=function(t){return h(t).replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})},t.bind=function(t,e){return t.bind?t.bind(e):t.apply?function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.apply(e,r)}:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.call.apply(t,[e].concat(ne(r)))}},t.uuid=function(){return v()+v()+"-"+v()+"-"+v()+"-"+v()+"-"+v()+v()+v()},t.S4=v,t.rand=function(t){for(var e="";e.length<t;)e+=v();return e.slice(0,t)},t.isVoid=r,t.isArray=o,t.isFunction=i,t.isObject=u,t.isNumber=c,t.isNumeric=function(t){return!o(t)&&t-En(t)+1>=0},t.isInteger=function(t){return dn(t)},t.isEmpty=function(t){return o(t)?0===t.length:u(t)?0===sn(t).length:!t},t.isEvent=function(t){return t instanceof Event||t.originalEvent instanceof Event},t.isBlob=a,t.isFile=function(t){return a(t)&&f(t.name)},t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isString=f,t.isBoolean=s,t.isPromise=function(t){return!!t&&("object"===(void 0===t?"undefined":an(t))||"function"==typeof t)&&"function"==typeof t.then},t.isPrimitive=l,t.isUrl=function(t){return f(t)&&!!t.match(/^((https?|ftp|rtsp|mms):\/\/)(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?(([0-9]{1,3}\.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+\.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\.[a-z]{2,6}|localhost)(:[0-9]{1,4})?((\/?)|(\/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+\/?)$/i)},t.isNode=p,t.isElement=function(t){return!!("object"===("undefined"==typeof HTMLElement?"undefined":an(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":an(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)},t.isChildNode=function(t,e){return!(!p(t)||!p(e))&&e.parentNode===t},t.isPosterityNode=function(t,e){if(!p(t)||!p(e))return!1;for(;e.parentNode;)if((e=e.parentNode)===t)return!0;return!1},t.isHTMLString=function(t){return/<[^>]+?>/.test(t)},t.isError=function(t){return t instanceof Error},t.inBrowser=Or,t.makeArray=function(t){return ee(t)},t.transObjectAttrIntoArray=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t,e){return+t-+e};return sn(t).sort(e).reduce(function(e,n){return e.concat(t[n])},[])},t.runRejectableQueue=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new jr(function(e,r){!function o(u){if(!(u>=t.length)){var c=i(t[u])?t[u].apply(t,ne(n)):t[u];return!1===c?r("stop"):jr.resolve(c).then(function(){return o(u+1)}).catch(function(){return r("stop")})}e()}(0)})},t.runStoppableQueue=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return function e(r){return r>=t.length||!1!==(i(t[r])?t[r].apply(t,ne(n)):t[r])&&e(++r)}(0)},t.setFrozenAttr=y,t.setAttrGetterAndSetter=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.get,o=n.set,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"__";if(l(t))throw TypeError("setFrozenAttr obj parameter can not be primitive type");if(!f(e))throw TypeError("setAttrGetterAndSetter key parameter must be String");var c=t[e];if(!i(r)&&(kn(t,u+e,{value:c,configurable:!0,writable:!0,enumerable:!1}),r=function(){return this[u+e]},o&&i(o))){var a=o;o=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];this[u+e]=a.call.apply(a,[this].concat(n))}}kn(t,e,{get:r,set:o})},t.decodeUTF8=function(t){for(var e=[],n=t,r=0,o=t.length;r<o;)if(n[r]<128)e.push(String.fromCharCode(n[r])),++r;else{if(n[r]<192);else if(n[r]<224){if(m(n,r,1)){var i=(31&n[r])<<6|63&n[r+1];if(i>=128){e.push(String.fromCharCode(65535&i)),r+=2;continue}}}else if(n[r]<240){if(m(n,r,2)){var u=(15&n[r])<<12|(63&n[r+1])<<6|63&n[r+2];if(u>=2048&&55296!=(63488&u)){e.push(String.fromCharCode(65535&u)),r+=3;continue}}}else if(n[r]<248&&m(n,r,3)){var c=(7&n[r])<<18|(63&n[r+1])<<12|(63&n[r+2])<<6|63&n[r+3];if(c>65536&&c<1114112){c-=65536,e.push(String.fromCharCode(c>>>10|55296)),e.push(String.fromCharCode(1023&c|56320)),r+=4;continue}}e.push(String.fromCharCode(65533)),++r}return e.join("")},t.debounce=function(t,e,n){var r=void 0,o=void 0,i=void 0,u=void 0,c=void 0,a=function a(){var f=new Date-u;f<e&&f>=0?r=setTimeout(a,e-f):(r=null,n||(c=t.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,u=new Date;var f=n&&!r;return r||(r=setTimeout(a,e)),f&&(c=t.apply(i,o),i=o=null),c}},t.throttle=function(t,e,n,r){var o=void 0,i=void 0,u=void 0,c=null,a=0;n||(n={});var f=function(){a=!1===n.leading?0:new Date-0,c=null,u=t.apply(o,i),c||(o=i=null)};return e=e||0,function(){var s=new Date;a||!1!==n.leading||(a=s);var l=e-(s-a);return o=r||this,i=arguments,l<=0||l>e?(c&&(clearTimeout(c),c=null),a=s,u=t.apply(o,i),c||(o=i=null)):c||!1===n.trailing||(c=setTimeout(f,l)),u}},t.raf=Er,t.caf=Ar,t.strRepeat=g,t.formatTime=function(t){var e=Math.floor(t/3600);t=Math.floor(t%3600);var n=g(Math.floor(t/60),2),r=g(t=Math.floor(t%60),2);return e>=1?e+":"+n+":"+r:n+":"+r},t.addTransMethod=function(t){y(t,"trans",function(e){return t.__fns||y(t,"__fns",{}),t.__fns[e]||(t.__fns[e]=function(){if(!i(t[e]))throw TypeError("obj.trans(methodName) parameter must be Function");return t[e].apply(t,arguments)}),t.__fns[e]})},t.appendCSS=function(t){var e=document,n=e.querySelector("style");if(!n){n=e.createElement("style");var r=e.querySelector("head");r&&r.appendChild(n)}return n.appendChild(e.createTextNode(t)),n},t.formatDate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss.i",n=t.getFullYear().toString(),r={M:t.getMonth()+1,d:t.getDate(),h:t.getHours(),m:t.getMinutes(),s:t.getSeconds(),i:t.getMilliseconds()};e=e.replace(/(y+)/gi,function(t,e){return n.substr(4-Math.min(4,e.length))});for(var o in r)!function(t){e=e.replace(new RegExp("("+t+"+)","g"),function(e,n){return(r[t]<10&&n.length>1?"0":"")+r[t]})}(o);return e},t.getLocalStorage=function(t){try{return window.localStorage&&localStorage.getItem(t)}catch(n){try{var e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]*)(;|$)"));return o(e)?unescape(e[2]):""}catch(t){return""}}},t.setLocalStorage=function(t,e){try{window.localStorage&&localStorage.setItem(t,e)}catch(r){var n=new Date;n.setTime(n.getTime()+2592e7);try{document.cookie=t+"="+escape(e)+";expires="+n.toGMTString()+";path=/;"}catch(t){}}},t.emitEventCache=_,t.addEventCache=w,t.removeEventCache=S,t.CustEvent=zr,Object.defineProperty(t,"__esModule",{value:!0})}); |
{ | ||
"name": "chimee-helper", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "utils of chimee", | ||
@@ -39,3 +39,4 @@ "main": "lib/index.js", | ||
"babel-runtime": "^6.23.0", | ||
"chimee-helper-utils": "^0.1.0", | ||
"chimee-helper-events": "^0.1.0", | ||
"chimee-helper-utils": "^0.1.1", | ||
"toxic-predicate-functions": "^0.1.2", | ||
@@ -42,0 +43,0 @@ "toxic-utils": "^0.1.3" |
@@ -5,1 +5,2 @@ // @flow | ||
export * from 'chimee-helper-utils'; | ||
export * from 'chimee-helper-events'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143142
5
19
2875
+ Addedchimee-helper-events@^0.1.0
+ Addedchimee-helper-events@0.1.0(transitive)
Updatedchimee-helper-utils@^0.1.1