chimee-helper
Advanced tools
Comparing version 0.1.15 to 0.2.0
@@ -43,3 +43,2 @@ declare module 'chimee-helper' { | ||
declare export function runStoppableQueue (queue: Array<any>, ...args: any): boolean; | ||
declare export function setFrozenAttr (obj: Object, key: string, value: any): void; | ||
declare export function setAttrGetterAndSetter (obj: Object, key: string, option: {get?: Function, set?: Function}, prefix: string): void; | ||
@@ -51,3 +50,2 @@ declare export function decodeUTF8 (uint8array: any): string; | ||
declare export function formatTime (time: number): string; | ||
declare export function addTransMethod (obj: Object): Function; | ||
declare export function appendCSS (cssText: string): HTMLElement; | ||
@@ -54,0 +52,0 @@ declare export function formatDate (date: Date, pattern: string): string; |
/** | ||
* chimee-helper v0.1.15 | ||
* chimee-helper v0.2.0 | ||
* (c) 2017 toxic-johann | ||
@@ -20,2 +20,3 @@ * Released under MIT | ||
var chimeeHelperLog = _interopDefault(require('chimee-helper-log')); | ||
var uaParserJs = _interopDefault(require('ua-parser-js')); | ||
@@ -25,2 +26,3 @@ | ||
exports.Log = chimeeHelperLog; | ||
exports.UAParser = uaParserJs; | ||
Object.keys(toxicUtils).forEach(function (key) { exports[key] = toxicUtils[key]; }); | ||
@@ -27,0 +29,0 @@ Object.keys(toxicPredicateFunctions).forEach(function (key) { exports[key] = toxicPredicateFunctions[key]; }); |
@@ -1,1 +0,1 @@ | ||
!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 a(t){return"number"==typeof t}function c(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)||a(t)}function h(t){return!!("object"===("undefined"==typeof Node?"undefined":Nn(Node))?t instanceof Node:t&&"object"===(void 0===t?"undefined":Nn(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName)}function v(t){function e(n,r,i){if(o(n)||u(n)){r=r||(u(n)?{}:[]);for(var a in n)r[a]=e(n[a],r[a],a);return r}return t(n,r,i)}return e}function p(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 d(){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");tr(t,e,{value:n,configurable:!1,enumerable:!1,writable:!1})}function g(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 m(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 _(t,e){var n=t.__evt_id;n||(Object.defineProperty(t,"__evt_id",{writable:!0,enumerable:!1,configurable:!0}),n=t.__evt_id=++ro.count);var r=n+"_"+e,o=ro[r];return o||(o=ro[r]=[]),o}function b(t,e,n){var r=no(null);r.type=e,r.target=t,n&&Xr(r,u(n)?n:{data:n}),_(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(){E(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),_(t,e).push(u)}function E(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=_(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}function A(t,e){var n=t.__evt_id;n||(Object.defineProperty(t,"__evt_id",{writable:!0,enumerable:!1,configurable:!0}),n=t.__evt_id=++io.count);var r=n+"_"+e,o=io[r];return o||(o=io[r]=[]),o}function O(t,e,n){var r=no(null);r.type=e,r.target=t,n&&Xr(r,u(n)?n:{data:n}),A(t,e).forEach(function(e){(e[1]||e[0]).apply(t,[r])})}function S(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(){j(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),A(t,e).push(u)}function j(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=A(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}function k(t){return Ee(t)}function T(t,e){return t.getAttribute(e)}function N(t,e,n){void 0===n?t.removeAttribute(e):t.setAttribute(e,n)}function M(t,e){if(e&&(e=e.trim())){var n=e.split(/\s+/);if(t.classList)n.forEach(function(e){return t.classList.add(e)});else{var r=" "+(t.className||"")+" ";n.forEach(function(t){-1===r.indexOf(" "+t+" ")&&(r+=" "+t)}),t.className=r.trim()}}}function C(t,e){if(e&&(e=e.trim())){var n=e.split(/\s+/);if(t.classList)n.forEach(function(e){return t.classList.remove(e)});else{var r=" "+t.className+" ";n.forEach(function(t){for(var e=" "+t+" ";-1!==r.indexOf(e);)r=r.replace(e," ")}),t.className=r.trim()}}}function P(t,e){return new RegExp("(?:^|\\s)"+e+"(?=\\s|$)").test(t.className)}function F(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(r){var i=j(t,e+"_once",n);i&&(n=i)}t.removeEventListener(e,n,o)}function L(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(r){var i=n;S(t,e+"_once",i,n=function(){for(var u=arguments.length,a=Array(u),c=0;c<u;c++)a[c]=arguments[c];i.apply(this,a),F(t,e,n,r,o)})}t.addEventListener(e,n,o)}function x(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=function(n){var o=z(n.target||n.srcElement,t,!0),i=I(e,t,!0).find(function(t){return o.find(function(e){return t===e})});i&&r.apply(i,arguments)};S(t,n+"_delegate_"+e,r,i),t.addEventListener(n,i,o)}function R(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=j(t,n+"_delegate_"+e,r);i&&t.removeEventListener(n,i,o)}function B(t,e){return(t.currentStyle||document.defaultView.getComputedStyle(t,null))[e]||t.style[e]}function D(t,e,n){if(u(e))for(var r in e)D(t,r,e[r]);else t.style[e]=n}function I(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=arguments[2],r=e.querySelectorAll(t);return n?Ee(r):r}function G(t){t.parentNode.removeChild(t)}function z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments[2],r=arguments[3],o=[];for(n&&o.push(t);t&&t.parentNode!==e;)(t=t.parentNode)&&o.push(t);return r&&o.push(e),o}function H(t,e){return t.constructor===fo?t:new fo(t,e)}function q(t,e){if(!f(t))throw new TypeError("Log's method only acccept string as argument");return f(e)?"["+(t=so.FORCE_GLOBAL_TAG?so.GLOBAL_TAG:t||so.GLOBAL_TAG)+"] > "+e:"["+so.GLOBAL_TAG+"] > "+t}var W=Math.ceil,U=Math.floor,$=function(t){return isNaN(t=+t)?0:(t>0?U:W)(t)},K=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},J=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)}),V=n(function(t){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)}),Q=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},Y=function(t,e,n){if(Q(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)}},Z=function(t){return"object"==typeof t?null!==t:"function"==typeof t},X=function(t){if(!Z(t))throw TypeError(t+" is not an object!");return t},tt=function(t){try{return!!t()}catch(t){return!0}},et=!tt(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),nt=J.document,rt=Z(nt)&&Z(nt.createElement),ot=function(t){return rt?nt.createElement(t):{}},it=!et&&!tt(function(){return 7!=Object.defineProperty(ot("div"),"a",{get:function(){return 7}}).a}),ut=function(t,e){if(!Z(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!Z(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!Z(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!Z(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},at=Object.defineProperty,ct={f:et?Object.defineProperty:function(t,e,n){if(X(t),e=ut(e,!0),X(n),it)try{return at(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}},ft=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},st=et?function(t,e,n){return ct.f(t,e,ft(1,n))}:function(t,e,n){return t[e]=n,t},lt=function(t,e,n){var r,o,i,u=t<.F,a=t<.G,c=t<.S,f=t<.P,s=t<.B,l=t<.W,h=a?V:V[e]||(V[e]={}),v=h.prototype,p=a?J:c?J[e]:(J[e]||{}).prototype;a&&(n=e);for(r in n)(o=!u&&p&&void 0!==p[r])&&r in h||(i=o?p[r]:n[r],h[r]=a&&"function"!=typeof p[r]?n[r]:s&&o?Y(i,J):l&&p[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?Y(Function.call,i):i,f&&((h.virtual||(h.virtual={}))[r]=i,t<.R&&v&&!v[r]&&st(v,r,i)))};lt.F=1,lt.G=2,lt.S=4,lt.P=8,lt.B=16,lt.W=32,lt.U=64,lt.R=128;var ht=lt,vt=st,pt={}.hasOwnProperty,dt=function(t,e){return pt.call(t,e)},yt={},gt={}.toString,mt=function(t){return gt.call(t).slice(8,-1)},_t=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==mt(t)?t.split(""):Object(t)},bt=function(t){return _t(K(t))},wt=Math.min,Et=function(t){return t>0?wt($(t),9007199254740991):0},At=Math.max,Ot=Math.min,St=function(t,e){return(t=$(t))<0?At(t+e,0):Ot(t,e)},jt=J["__core-js_shared__"]||(J["__core-js_shared__"]={}),kt=function(t){return jt[t]||(jt[t]={})},Tt=0,Nt=Math.random(),Mt=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++Tt+Nt).toString(36))},Ct=kt("keys"),Pt=function(t){return Ct[t]||(Ct[t]=Mt(t))},Ft=function(t){return function(e,n,r){var o,i=bt(e),u=Et(i.length),a=St(r,u);if(t&&n!=n){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}}(!1),Lt=Pt("IE_PROTO"),xt=function(t,e){var n,r=bt(t),o=0,i=[];for(n in r)n!=Lt&&dt(r,n)&&i.push(n);for(;e.length>o;)dt(r,n=e[o++])&&(~Ft(i,n)||i.push(n));return i},Rt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Bt=Object.keys||function(t){return xt(t,Rt)},Dt=et?Object.defineProperties:function(t,e){X(t);for(var n,r=Bt(e),o=r.length,i=0;o>i;)ct.f(t,n=r[i++],e[n]);return t},It=J.document&&document.documentElement,Gt=Pt("IE_PROTO"),zt=function(){},Ht=function(){var t,e=ot("iframe"),n=Rt.length;for(e.style.display="none",It.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Ht=t.F;n--;)delete Ht.prototype[Rt[n]];return Ht()},qt=Object.create||function(t,e){var n;return null!==t?(zt.prototype=X(t),n=new zt,zt.prototype=null,n[Gt]=t):n=Ht(),void 0===e?n:Dt(n,e)},Wt=n(function(t){var e=kt("wks"),n=J.Symbol,r="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=r&&n[t]||(r?n:Mt)("Symbol."+t))}).store=e}),Ut=ct.f,$t=Wt("toStringTag"),Kt=function(t,e,n){t&&!dt(t=n?t:t.prototype,$t)&&Ut(t,$t,{configurable:!0,value:e})},Jt={};st(Jt,Wt("iterator"),function(){return this});var Vt=function(t,e,n){t.prototype=qt(Jt,{next:ft(1,n)}),Kt(t,e+" Iterator")},Qt=function(t){return Object(K(t))},Yt=Pt("IE_PROTO"),Zt=Object.prototype,Xt=Object.getPrototypeOf||function(t){return t=Qt(t),dt(t,Yt)?t[Yt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Zt:null},te=Wt("iterator"),ee=!([].keys&&"next"in[].keys()),ne=function(){return this},re=function(t,e,n,r,o,i,u){Vt(n,e,r);var a,c,f,s=function(t){if(!ee&&t in p)return p[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},l=e+" Iterator",h="values"==o,v=!1,p=t.prototype,d=p[te]||p["@@iterator"]||o&&p[o],y=d||s(o),g=o?h?s("entries"):y:void 0,m="Array"==e?p.entries||d:d;if(m&&(f=Xt(m.call(new t)))!==Object.prototype&&Kt(f,l,!0),h&&d&&"values"!==d.name&&(v=!0,y=function(){return d.call(this)}),u&&(ee||v||!p[te])&&st(p,te,y),yt[e]=y,yt[l]=ne,o)if(a={values:h?y:s("values"),keys:i?y:s("keys"),entries:g},u)for(c in a)c in p||vt(p,c,a[c]);else ht(ht.P+ht.F*(ee||v),e,a);return a},oe=function(t){return function(e,n){var r,o,i=String(K(e)),u=$(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=i.charCodeAt(u))<55296||r>56319||u+1===a||(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);re(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=oe(e,n),this._i+=t.length,{value:t,done:!1})});var ie=function(t,e,n,r){try{return r?e(X(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&X(o.call(t)),e}},ue=Wt("iterator"),ae=Array.prototype,ce=function(t){return void 0!==t&&(yt.Array===t||ae[ue]===t)},fe=function(t,e,n){e in t?ct.f(t,e,ft(0,n)):t[e]=n},se=Wt("toStringTag"),le="Arguments"==mt(function(){return arguments}()),he=function(t,e){try{return t[e]}catch(t){}},ve=function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=he(e=Object(t),se))?n:le?mt(e):"Object"==(r=mt(e))&&"function"==typeof e.callee?"Arguments":r},pe=Wt("iterator"),de=V.getIteratorMethod=function(t){if(void 0!=t)return t[pe]||t["@@iterator"]||yt[ve(t)]},ye=Wt("iterator"),ge=!1;try{var me=[7][ye]();me.return=function(){ge=!0},Array.from(me,function(){throw 2})}catch(t){}var _e=function(t,e){if(!e&&!ge)return!1;var n=!1;try{var r=[7],o=r[ye]();o.next=function(){return{done:n=!0}},r[ye]=function(){return o},t(r)}catch(t){}return n};ht(ht.S+ht.F*!_e(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,o,i=Qt(t),u="function"==typeof this?this:Array,a=arguments.length,c=a>1?arguments[1]:void 0,f=void 0!==c,s=0,l=de(i);if(f&&(c=Y(c,a>2?arguments[2]:void 0,2)),void 0==l||u==Array&&ce(l))for(n=new u(e=Et(i.length));e>s;s++)fe(n,s,f?c(i[s],s):i[s]);else for(o=l.call(i),n=new u;!(r=o.next()).done;s++)fe(n,s,f?ie(o,c,[r.value,s],!0):r.value);return n.length=s,n}});var be=V.Array.from,we=n(function(t){t.exports={default:be,__esModule:!0}}),Ee=e(we),Ae=e(n(function(t,e){e.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(we);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)}})),Oe=function(){},Se=function(t,e){return{value:e,done:!!t}};re(Array,"Array",function(t,e){this._t=bt(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,Se(1)):"keys"==e?Se(0,n):"values"==e?Se(0,t[n]):Se(0,[n,t[n]])},"values");yt.Arguments=yt.Array,Oe(),Oe(),Oe();for(var je=Wt("toStringTag"),ke=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],Te=0;Te<5;Te++){var Ne=ke[Te],Me=J[Ne],Ce=Me&&Me.prototype;Ce&&!Ce[je]&&st(Ce,je,Ne),yt[Ne]=yt.Array}var Pe={f:Wt},Fe=Pe.f("iterator"),Le=n(function(t){t.exports={default:Fe,__esModule:!0}}),xe=n(function(t){var e=Mt("meta"),n=ct.f,r=0,o=Object.isExtensible||function(){return!0},i=!tt(function(){return o(Object.preventExtensions({}))}),u=function(t){n(t,e,{value:{i:"O"+ ++r,w:{}}})},a=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!Z(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!dt(t,e)){if(!o(t))return"F";if(!n)return"E";u(t)}return t[e].i},getWeak:function(t,n){if(!dt(t,e)){if(!o(t))return!0;if(!n)return!1;u(t)}return t[e].w},onFreeze:function(t){return i&&a.NEED&&o(t)&&!dt(t,e)&&u(t),t}}}),Re=ct.f,Be=function(t){var e=V.Symbol||(V.Symbol={});"_"==t.charAt(0)||t in e||Re(e,t,{value:Pe.f(t)})},De=function(t,e){for(var n,r=bt(t),o=Bt(r),i=o.length,u=0;i>u;)if(r[n=o[u++]]===e)return n},Ie={f:Object.getOwnPropertySymbols},Ge={f:{}.propertyIsEnumerable},ze=function(t){var e=Bt(t),n=Ie.f;if(n)for(var r,o=n(t),i=Ge.f,u=0;o.length>u;)i.call(t,r=o[u++])&&e.push(r);return e},He=Array.isArray||function(t){return"Array"==mt(t)},qe=Rt.concat("length","prototype"),We={f:Object.getOwnPropertyNames||function(t){return xt(t,qe)}},Ue=We.f,$e={}.toString,Ke="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Je=function(t){try{return Ue(t)}catch(t){return Ke.slice()}},Ve={f:function(t){return Ke&&"[object Window]"==$e.call(t)?Je(t):Ue(bt(t))}},Qe=Object.getOwnPropertyDescriptor,Ye={f:et?Qe:function(t,e){if(t=bt(t),e=ut(e,!0),it)try{return Qe(t,e)}catch(t){}if(dt(t,e))return ft(!Ge.f.call(t,e),t[e])}},Ze=xe.KEY,Xe=Ye.f,tn=ct.f,en=Ve.f,nn=J.Symbol,rn=J.JSON,on=rn&&rn.stringify,un=Wt("_hidden"),an=Wt("toPrimitive"),cn={}.propertyIsEnumerable,fn=kt("symbol-registry"),sn=kt("symbols"),ln=kt("op-symbols"),hn=Object.prototype,vn="function"==typeof nn,pn=J.QObject,dn=!pn||!pn.prototype||!pn.prototype.findChild,yn=et&&tt(function(){return 7!=qt(tn({},"a",{get:function(){return tn(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=Xe(hn,e);r&&delete hn[e],tn(t,e,n),r&&t!==hn&&tn(hn,e,r)}:tn,gn=function(t){var e=sn[t]=qt(nn.prototype);return e._k=t,e},mn=vn&&"symbol"==typeof nn.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof nn},_n=function(t,e,n){return t===hn&&_n(ln,e,n),X(t),e=ut(e,!0),X(n),dt(sn,e)?(n.enumerable?(dt(t,un)&&t[un][e]&&(t[un][e]=!1),n=qt(n,{enumerable:ft(0,!1)})):(dt(t,un)||tn(t,un,ft(1,{})),t[un][e]=!0),yn(t,e,n)):tn(t,e,n)},bn=function(t,e){X(t);for(var n,r=ze(e=bt(e)),o=0,i=r.length;i>o;)_n(t,n=r[o++],e[n]);return t},wn=function(t){var e=cn.call(this,t=ut(t,!0));return!(this===hn&&dt(sn,t)&&!dt(ln,t))&&(!(e||!dt(this,t)||!dt(sn,t)||dt(this,un)&&this[un][t])||e)},En=function(t,e){if(t=bt(t),e=ut(e,!0),t!==hn||!dt(sn,e)||dt(ln,e)){var n=Xe(t,e);return!n||!dt(sn,e)||dt(t,un)&&t[un][e]||(n.enumerable=!0),n}},An=function(t){for(var e,n=en(bt(t)),r=[],o=0;n.length>o;)dt(sn,e=n[o++])||e==un||e==Ze||r.push(e);return r},On=function(t){for(var e,n=t===hn,r=en(n?ln:bt(t)),o=[],i=0;r.length>i;)!dt(sn,e=r[i++])||n&&!dt(hn,e)||o.push(sn[e]);return o};vn||(vt((nn=function(){if(this instanceof nn)throw TypeError("Symbol is not a constructor!");var t=Mt(arguments.length>0?arguments[0]:void 0),e=function(n){this===hn&&e.call(ln,n),dt(this,un)&&dt(this[un],t)&&(this[un][t]=!1),yn(this,t,ft(1,n))};return et&&dn&&yn(hn,t,{configurable:!0,set:e}),gn(t)}).prototype,"toString",function(){return this._k}),Ye.f=En,ct.f=_n,We.f=Ve.f=An,Ge.f=wn,Ie.f=On,Pe.f=function(t){return gn(Wt(t))}),ht(ht.G+ht.W+ht.F*!vn,{Symbol:nn});for(var Sn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),jn=0;Sn.length>jn;)Wt(Sn[jn++]);for(var Sn=Bt(Wt.store),jn=0;Sn.length>jn;)Be(Sn[jn++]);ht(ht.S+ht.F*!vn,"Symbol",{for:function(t){return dt(fn,t+="")?fn[t]:fn[t]=nn(t)},keyFor:function(t){if(mn(t))return De(fn,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){dn=!0},useSimple:function(){dn=!1}}),ht(ht.S+ht.F*!vn,"Object",{create:function(t,e){return void 0===e?qt(t):bn(qt(t),e)},defineProperty:_n,defineProperties:bn,getOwnPropertyDescriptor:En,getOwnPropertyNames:An,getOwnPropertySymbols:On}),rn&&ht(ht.S+ht.F*(!vn||tt(function(){var t=nn();return"[null]"!=on([t])||"{}"!=on({a:t})||"{}"!=on(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!mn(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&&He(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!mn(e))return e}),r[1]=e,on.apply(rn,r)}}}),nn.prototype[an]||st(nn.prototype,an,nn.prototype.valueOf),Kt(nn,"Symbol"),Kt(Math,"Math",!0),Kt(J.JSON,"JSON",!0),Be("asyncIterator"),Be("observable");var kn=V.Symbol,Tn=n(function(t){t.exports={default:kn,__esModule:!0}}),Nn=e(n(function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(Le),o=n(Tn),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=(V.Object||{})[t]||Object[t],r={};r[t]=e(n),ht(ht.S+ht.F*tt(function(){n(1)}),"Object",r)}("keys",function(){return function(t){return Bt(Qt(t))}});var Mn=V.Object.keys,Cn=e(n(function(t){t.exports={default:Mn,__esModule:!0}})),Pn=Math.floor;ht(ht.S,"Number",{isInteger:function(t){return!Z(t)&&isFinite(t)&&Pn(t)===t}});var Fn=V.Number.isInteger,Ln=e(n(function(t){t.exports={default:Fn,__esModule:!0}})),xn="\t\n\v\f\r \u2028\u2029\ufeff",Rn="["+xn+"]",Bn=RegExp("^"+Rn+Rn+"*"),Dn=RegExp(Rn+Rn+"*$"),In=function(t,e,n){var r={},o=tt(function(){return!!xn[t]()||" "!=" "[t]()}),i=r[t]=o?e(Gn):xn[t];n&&(r[n]=i),ht(ht.P+ht.F*o,"String",r)},Gn=In.trim=function(t,e){return t=String(K(t)),1&e&&(t=t.replace(Bn,"")),2&e&&(t=t.replace(Dn,"")),t},zn=In,Hn=J.parseFloat,qn=zn.trim,Wn=1/Hn(xn+"-0")!=-1/0?function(t){var e=qn(String(t),3),n=Hn(e);return 0===n&&"-"==e.charAt(0)?-0:n}:Hn;ht(ht.S+ht.F*(Number.parseFloat!=Wn),"Number",{parseFloat:Wn});var Un=parseFloat,$n=e(n(function(t){t.exports={default:Un,__esModule:!0}})),Kn=v(function(t){return t});ht(ht.S+ht.F*!et,"Object",{defineProperty:ct.f});var Jn,Vn,Qn,Yn=V.Object,Zn=function(t,e,n){return Yn.defineProperty(t,e,n)},Xn=n(function(t){t.exports={default:Zn,__esModule:!0}}),tr=e(Xn),er=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t},nr=n(function(t){var e={},n={},r=t.exports=function(t,r,o,i,u){var a,c,f,s,l=u?function(){return t}:de(t),h=Y(o,i,r?2:1),v=0;if("function"!=typeof l)throw TypeError(t+" is not iterable!");if(ce(l)){for(a=Et(t.length);a>v;v++)if((s=r?h(X(c=t[v])[0],c[1]):h(t[v]))===e||s===n)return s}else for(f=l.call(t);!(c=f.next()).done;)if((s=ie(f,h,c.value,r))===e||s===n)return s};r.BREAK=e,r.RETURN=n}),rr=Wt("species"),or=function(t,e){var n,r=X(t).constructor;return void 0===r||void 0==(n=X(r)[rr])?e:Q(n)},ir=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)},ur=J.process,ar=J.setImmediate,cr=J.clearImmediate,fr=J.MessageChannel,sr=0,lr={},hr=function(){var t=+this;if(lr.hasOwnProperty(t)){var e=lr[t];delete lr[t],e()}},vr=function(t){hr.call(t.data)};ar&&cr||(ar=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return lr[++sr]=function(){ir("function"==typeof t?t:Function(t),e)},Jn(sr),sr},cr=function(t){delete lr[t]},"process"==mt(ur)?Jn=function(t){ur.nextTick(Y(hr,t,1))}:fr?(Qn=(Vn=new fr).port2,Vn.port1.onmessage=vr,Jn=Y(Qn.postMessage,Qn,1)):J.addEventListener&&"function"==typeof postMessage&&!J.importScripts?(Jn=function(t){J.postMessage(t+"","*")},J.addEventListener("message",vr,!1)):Jn="onreadystatechange"in ot("script")?function(t){It.appendChild(ot("script")).onreadystatechange=function(){It.removeChild(this),hr.call(t)}}:function(t){setTimeout(Y(hr,t,1),0)});var pr,dr,yr,gr={set:ar,clear:cr},mr=gr.set,_r=J.MutationObserver||J.WebKitMutationObserver,br=J.process,wr=J.Promise,Er="process"==mt(br),Ar=Wt("species"),Or=gr.set,Sr=function(){var t,e,n,r=function(){var r,o;for(Er&&(r=br.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(){br.nextTick(r)};else if(_r){var o=!0,i=document.createTextNode("");new _r(r).observe(i,{characterData:!0}),n=function(){i.data=o=!o}}else if(wr&&wr.resolve){var u=wr.resolve();n=function(){u.then(r)}}else n=function(){mr.call(J,r)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}(),jr=J.TypeError,kr=J.process,Tr=J.Promise,kr=J.process,Nr="process"==ve(kr),Mr=function(){},Cr=!!function(){try{var t=Tr.resolve(1),e=(t.constructor={})[Wt("species")]=function(t){t(Mr,Mr)};return(Nr||"function"==typeof PromiseRejectionEvent)&&t.then(Mr)instanceof e}catch(t){}}(),Pr=function(t,e){return t===e||t===Tr&&e===yr},Fr=function(t){var e;return!(!Z(t)||"function"!=typeof(e=t.then))&&e},Lr=function(t){return Pr(Tr,t)?new xr(t):new dr(t)},xr=dr=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw jr("Bad Promise constructor");e=t,n=r}),this.resolve=Q(e),this.reject=Q(n)},Rr=function(t){try{t()}catch(t){return{error:t}}},Br=function(t,e){if(!t._n){t._n=!0;var n=t._c;Sr(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,a=e.resolve,c=e.reject,f=e.domain;try{u?(o||(2==t._h&&Gr(t),t._h=1),!0===u?n=r:(f&&f.enter(),n=u(r),f&&f.exit()),n===e.promise?c(jr("Promise-chain cycle")):(i=Fr(n))?i.call(n,a,c):a(n)):c(r)}catch(t){c(t)}}(n[i++]);t._c=[],t._n=!1,e&&!t._h&&Dr(t)})}},Dr=function(t){Or.call(J,function(){var e,n,r,o=t._v;if(Ir(t)&&(e=Rr(function(){Nr?kr.emit("unhandledRejection",o,t):(n=J.onunhandledrejection)?n({promise:t,reason:o}):(r=J.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=Nr||Ir(t)?2:1),t._a=void 0,e)throw e.error})},Ir=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||!Ir(e.promise))return!1;return!0},Gr=function(t){Or.call(J,function(){var e;Nr?kr.emit("rejectionHandled",t):(e=J.onrejectionhandled)&&e({promise:t,reason:t._v})})},zr=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()),Br(e,!0))},Hr=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw jr("Promise can't be resolved itself");(e=Fr(t))?Sr(function(){var r={_w:n,_d:!1};try{e.call(t,Y(Hr,r,1),Y(zr,r,1))}catch(t){zr.call(r,t)}}):(n._v=t,n._s=1,Br(n,!1))}catch(t){zr.call({_w:n,_d:!1},t)}}};Cr||(Tr=function(t){er(this,Tr,"Promise","_h"),Q(t),pr.call(this);try{t(Y(Hr,this,1),Y(zr,this,1))}catch(t){zr.call(this,t)}},(pr=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]:st(t,r,e[r]);return t}(Tr.prototype,{then:function(t,e){var n=Lr(or(this,Tr));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=Nr?kr.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&Br(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),xr=function(){var t=new pr;this.promise=t,this.resolve=Y(Hr,t,1),this.reject=Y(zr,t,1)}),ht(ht.G+ht.W+ht.F*!Cr,{Promise:Tr}),Kt(Tr,"Promise"),function(t){var e="function"==typeof V[t]?V[t]:J[t];et&&e&&!e[Ar]&&ct.f(e,Ar,{configurable:!0,get:function(){return this}})}("Promise"),yr=V.Promise,ht(ht.S+ht.F*!Cr,"Promise",{reject:function(t){var e=Lr(this);return(0,e.reject)(t),e.promise}}),ht(ht.S+!0*ht.F,"Promise",{resolve:function(t){if(t instanceof Tr&&Pr(t.constructor,this))return t;var e=Lr(this);return(0,e.resolve)(t),e.promise}}),ht(ht.S+ht.F*!(Cr&&_e(function(t){Tr.all(t).catch(Mr)})),"Promise",{all:function(t){var e=this,n=Lr(e),r=n.resolve,o=n.reject,i=Rr(function(){var n=[],i=0,u=1;nr(t,!1,function(t){var a=i++,c=!1;n.push(void 0),u++,e.resolve(t).then(function(t){c||(c=!0,n[a]=t,--u||r(n))},o)}),--u||r(n)});return i&&o(i.error),n.promise},race:function(t){var e=this,n=Lr(e),r=n.reject,o=Rr(function(){nr(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o&&r(o.error),n.promise}});var qr=V.Promise,Wr=e(n(function(t){t.exports={default:qr,__esModule:!0}})),Ur="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),$r=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return setTimeout(t,17)},Kr=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame||function(t){clearTimeout(t)},Jr=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")}})),Vr=e(n(function(t,e){e.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(Xn);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}}()})),Qr=Object.assign,Yr=!Qr||tt(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=Qr({},t)[n]||Object.keys(Qr({},e)).join("")!=r})?function(t,e){for(var n=Qt(t),r=arguments.length,o=1,i=Ie.f,u=Ge.f;r>o;)for(var a,c=_t(arguments[o++]),f=i?Bt(c).concat(i(c)):Bt(c),s=f.length,l=0;s>l;)u.call(c,a=f[l++])&&(n[a]=c[a]);return n}:Qr;ht(ht.S+ht.F,"Object",{assign:Yr});var Zr=V.Object.assign,Xr=e(n(function(t){t.exports={default:Zr,__esModule:!0}}));ht(ht.S,"Object",{create:qt});var to=V.Object,eo=function(t,e){return to.create(t,e)},no=e(n(function(t){t.exports={default:eo,__esModule:!0}})),ro=no(null);ro.count=0;var oo=function(){function t(e,n){var r=this;if(Jr(this,t),Object.defineProperty(this,"__target",{writable:!0,enumerable:!1,configurable:!0}),this.__target=this,e){if("object"!==(void 0===e?"undefined":Nn(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 Vr(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 E(this.__target,t,e,n),this}},{key:"emit",value:function(t,e){return b(this.__target,t,{data:e}),this}}]),t}(),io=no(null);io.count=0;(function(){function t(e,n){var r=this;if(Jr(this,t),Object.defineProperty(this,"__target",{writable:!0,enumerable:!1,configurable:!0}),this.__target=this,e){if("object"!==(void 0===e?"undefined":Nn(e)))throw new Error("CusEvent target are not object");this.__target=e,n&&["on","once","off","emit"].forEach(function(t){e[t]=r[t]})}}Vr(t,[{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return S(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 j(this.__target,t,e,n),this}},{key:"emit",value:function(t,e){return O(this.__target,t,{data:e}),this}}])})(),"undefined"!=typeof window&&Object.prototype.toString.call(window);var uo=document.createElement("div"),ao="innerText";"textContent"in uo&&(ao="textContent");var co=Array.prototype,fo=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;Jr(this,t);var r=this;r.selector=e;var i=void 0;e&&e.constructor===NodeList?i=k(e):o(e)?i=e:f(e)?0===e.indexOf("<")?(uo.innerHTML=e,i=I("*",uo,!0)):i=I(e,n,!0):i=[e],Xr(r,i),r.length=i.length}return Vr(t,[{key:"each",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return co.forEach.apply(this,e),this}},{key:"push",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return co.push.apply(this,e),this}},{key:"splice",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return H(co.splice.apply(this,e))}},{key:"find",value:function(t){var e=[];this.each(function(n){e=e.concat(I(t,n,!0))});var n=H(e);return n.parent=this,n.selector=t,n}},{key:"append",value:function(t){var e=H(t),n=this[0];return e.each(function(t){return n.appendChild(t)}),this}},{key:"appendTo",value:function(t){return H(t).append(this),this}},{key:"text",value:function(t){return 0===arguments.length?this[0][ao]:this.each(function(e){e[ao]=t})}},{key:"html",value:function(t){return 0===arguments.length?this[0].innerHTML:this.each(function(e){e.innerHTML=t})}},{key:"attr",value:function(t,e){return 1===arguments.length?T(this[0],t):this.each(function(n){return N(n,t,e)})}},{key:"data",value:function(t,e){return 0===arguments.length?this[0].dataset||{}:1===arguments.length?(this[0].dataset||{})[t]:this.each(function(n){(n.dataset||(n.dataset={}))[t]=e})}},{key:"css",value:function(t,e){return 1!==arguments.length||u(t)?this.each(function(n){return D(n,t,e)}):B(this[0],t)}},{key:"addClass",value:function(t){return this.each(function(e){return M(e,t)})}},{key:"removeClass",value:function(t){return this.each(function(e){return C(e,t)})}},{key:"hasClass",value:function(t){return P(this[0],t)}},{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(o){return L(o,t,e,n,r)})}},{key:"off",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(o){return F(o,t,e,n,r)})}},{key:"delegate",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(o){return x(o,t,e,n,r)})}},{key:"undelegate",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(o){return R(o,t,e,n,r)})}},{key:"remove",value:function(){return this.each(function(t){return G(t)})}}]),t}(),so=function(){function t(){Jr(this,t)}return Vr(t,null,[{key:"error",value:function(e,n){t.ENABLE_ERROR&&(console.error||console.warn||console.log)(q(e,n))}},{key:"info",value:function(e,n){t.ENABLE_INFO&&(console.info||console.log)(q(e,n))}},{key:"warn",value:function(e,n){t.ENABLE_WARN&&(console.warn||console.log)(q(e,n))}},{key:"debug",value:function(e,n){t.ENABLE_DEBUG&&(console.debug||console.log)(q(e,n))}},{key:"verbose",value:function(e,n){t.ENABLE_VERBOSE&&console.log(q(e,n))}}]),t}();so.GLOBAL_TAG="chimee",so.FORCE_GLOBAL_TAG=!1,so.ENABLE_ERROR=!0,so.ENABLE_INFO=!0,so.ENABLE_WARN=!0,so.ENABLE_DEBUG=!0,so.ENABLE_VERBOSE=!0,t.Log=so,t.genTraversalHandler=v,t.deepClone=function(t){if(l(t))throw new TypeError("deepClone only accept non primitive type");return Kn(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 Kn(t,o)}),o},t.camelize=p,t.hypenate=function(t){return p(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(Ae(r)))}},t.uuid=function(){return d()+d()+"-"+d()+"-"+d()+"-"+d()+"-"+d()+d()+d()},t.S4=d,t.rand=function(t){for(var e="";e.length<t;)e+=d();return e.slice(0,t)},t.getDeepProperty=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.throwError,u=void 0!==i&&i,a=n.backup;if(f(e)&&(e=e.split(".")),!o(e))throw new TypeError("keys of getDeepProperty must be string or Array<string>");for(var c=[],s=t,l=0,h=e.length;l<h;l++){var v=e[l];if(r(s)){if(u)throw new Error("obj"+(c.length>0?"."+c.join("."):" itself")+" is "+s);return a}s=s[v],c.push(v)}return s},t.isVoid=r,t.isArray=o,t.isFunction=i,t.isObject=u,t.isNumber=a,t.isNumeric=function(t){return!o(t)&&t-$n(t)+1>=0},t.isInteger=function(t){return Ln(t)},t.isEmpty=function(t){return o(t)?0===t.length:u(t)?0===Cn(t).length:!t},t.isEvent=function(t){return t instanceof Event||t.originalEvent instanceof Event},t.isBlob=c,t.isFile=function(t){return c(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":Nn(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=h,t.isElement=function(t){return!!("object"===("undefined"==typeof HTMLElement?"undefined":Nn(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":Nn(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)},t.isChildNode=function(t,e){return!(!h(t)||!h(e))&&e.parentNode===t},t.isPosterityNode=function(t,e){if(!h(t)||!h(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=Ur,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 Cn(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 Wr(function(e,r){!function o(u){if(!(u>=t.length)){var a=i(t[u])?t[u].apply(t,Ae(n)):t[u];return!1===a?r("stop"):Wr.resolve(a).then(function(){return o(u+1)}).catch(function(t){return r(t||"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,Ae(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 a=t[e];if(!i(r)&&(tr(t,u+e,{value:a,configurable:!0,writable:!0,enumerable:!1}),r=function(){return this[u+e]},o&&i(o))){var c=o;o=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];this[u+e]=c.call.apply(c,[this].concat(n))}}tr(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(g(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(g(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&&g(n,r,3)){var a=(7&n[r])<<18|(63&n[r+1])<<12|(63&n[r+2])<<6|63&n[r+3];if(a>65536&&a<1114112){a-=65536,e.push(String.fromCharCode(a>>>10|55296)),e.push(String.fromCharCode(1023&a|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,a=void 0,c=function c(){var f=new Date-u;f<e&&f>=0?r=setTimeout(c,e-f):(r=null,n||(a=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(c,e)),f&&(a=t.apply(i,o),i=o=null),a}},t.throttle=function(t,e,n,r){var o=void 0,i=void 0,u=void 0,a=null,c=0;n||(n={});var f=function(){c=!1===n.leading?0:new Date-0,a=null,u=t.apply(o,i),a||(o=i=null)};return e=e||0,function(){var s=new Date;c||!1!==n.leading||(c=s);var l=e-(s-c);return o=r||this,i=arguments,l<=0||l>e?(a&&(clearTimeout(a),a=null),c=s,u=t.apply(o,i),a||(o=i=null)):a||!1===n.trailing||(a=setTimeout(f,l)),u}},t.raf=$r,t.caf=Kr,t.strRepeat=m,t.formatTime=function(t){var e=Math.floor(t/3600);t=Math.floor(t%3600);var n=m(Math.floor(t/60),2),r=m(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.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.setItem(t,e)}catch(r){var n=new Date;n.setTime(n.getTime()+2592e7);try{document.cookie=t+"="+escape(e)+";expires="+n.toUTCString()+";path=/;"}catch(t){}}},t.emitEventCache=b,t.addEventCache=w,t.removeEventCache=E,t.CustEvent=oo,t.getAttr=T,t.setAttr=N,t.addClassName=M,t.removeClassName=C,t.hasClassName=P,t.removeEvent=F,t.addEvent=L,t.addDelegate=x,t.removeDelegate=R,t.getStyle=B,t.setStyle=D,t.query=I,t.removeEl=G,t.findParents=z,t.$=H,t.NodeWrap=fo,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("ua-parser-js")):"function"==typeof define&&define.amd?define(["exports","ua-parser-js"],e):e(t.chimeeHelper={},t.uaParserJs)}(this,function(t,e){"use strict";function n(t){return t&&t.__esModule?t.default:t}function r(t,e){return e={exports:{}},t(e,e.exports),e.exports}function o(t){return void 0===t||null===t}function i(t){return Array.isArray(t)}function u(t){return"function"==typeof t}function a(t){return Object(t)===t&&"[object Object]"===String(t)&&!u(t)&&!i(t)}function c(t){return"number"==typeof t}function f(t){return t instanceof Blob}function s(t){return"string"==typeof t||t instanceof String}function l(t){return"boolean"==typeof t}function h(t){return o(t)||l(t)||s(t)||c(t)}function v(t){return!!("object"===("undefined"==typeof Node?"undefined":Nn(Node))?t instanceof Node:t&&"object"===(void 0===t?"undefined":Nn(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName)}function d(t){function e(n,r,o){if(i(n)||a(n)){r=r||(a(n)?{}:[]);for(var u in n)r[u]=e(n[u],r[u],u);return r}return t(n,r,o)}return e}function p(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 y(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function g(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=Y(e),this.reject=Y(n)}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 _(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=++fo.count);var r=n+"_"+e,o=fo[r];return o||(o=fo[r]=[]),o}function w(t,e,n){var r=co(null);r.type=e,r.target=t,n&&io(r,a(n)?n:{data:n}),b(t,e).forEach(function(e){(e[1]||e[0]).apply(t,[r])})}function E(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments[4];u(r)&&!o&&(o=r,r=void 0);var i=[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&&(i[1]=o),b(t,e).push(i)}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}function O(t,e){var n=t.__evt_id;n||(Object.defineProperty(t,"__evt_id",{writable:!0,enumerable:!1,configurable:!0}),n=t.__evt_id=++lo.count);var r=n+"_"+e,o=lo[r];return o||(o=lo[r]=[]),o}function A(t,e,n){var r=co(null);r.type=e,r.target=t,n&&io(r,a(n)?n:{data:n}),O(t,e).forEach(function(e){(e[1]||e[0]).apply(t,[r])})}function j(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments[4];u(r)&&!o&&(o=r,r=void 0);var i=[n,void 0,r];r&&!o&&(o=function(){L(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&&(i[1]=o),O(t,e).push(i)}function L(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=O(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}function P(t){return Oe(t)}function T(t,e){return t.getAttribute(e)}function M(t,e,n){void 0===n?t.removeAttribute(e):t.setAttribute(e,n)}function k(t,e){if(e&&(e=e.trim())){var n=e.split(/\s+/);if(t.classList)n.forEach(function(e){return t.classList.add(e)});else{var r=" "+(t.className||"")+" ";n.forEach(function(t){-1===r.indexOf(" "+t+" ")&&(r+=" "+t)}),t.className=r.trim()}}}function C(t,e){if(e&&(e=e.trim())){var n=e.split(/\s+/);if(t.classList)n.forEach(function(e){return t.classList.remove(e)});else{var r=" "+t.className+" ";n.forEach(function(t){for(var e=" "+t+" ";-1!==r.indexOf(e);)r=r.replace(e," ")}),t.className=r.trim()}}}function N(t,e){return new RegExp("(?:^|\\s)"+e+"(?=\\s|$)").test(t.className)}function x(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(r){var i=L(t,e+"_once",n);i&&(n=i)}t.removeEventListener(e,n,o)}function F(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(r){var i=n;j(t,e+"_once",i,n=function(){for(var u=arguments.length,a=Array(u),c=0;c<u;c++)a[c]=arguments[c];i.apply(this,a),x(t,e,n,r,o)})}t.addEventListener(e,n,o)}function R(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=function(n){var o=H(n.target||n.srcElement,t,!0),i=I(e,t,!0).find(function(t){return o.find(function(e){return t===e})});i&&r.apply(i,arguments)};j(t,n+"_delegate_"+e,r,i),t.addEventListener(n,i,o)}function B(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=L(t,n+"_delegate_"+e,r);i&&t.removeEventListener(n,i,o)}function D(t,e){return(t.currentStyle||document.defaultView.getComputedStyle(t,null))[e]||t.style[e]}function G(t,e,n){if(a(e))for(var r in e)G(t,r,e[r]);else t.style[e]=n}function I(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=arguments[2],r=e.querySelectorAll(t);return n?Oe(r):r}function z(t){t.parentNode.removeChild(t)}function H(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments[2],r=arguments[3],o=[];for(n&&o.push(t);t&&t.parentNode!==e;)(t=t.parentNode)&&o.push(t);return r&&o.push(e),o}function q(t,e){return t.constructor===yo?t:new yo(t,e)}function U(t,e){if(!s(t))throw new TypeError("Log's method only acccept string as argument, but not "+t+" in "+(void 0===t?"undefined":Nn(t)));return s(e)?"["+(t=go.FORCE_GLOBAL_TAG?go.GLOBAL_TAG:t||go.GLOBAL_TAG)+"] > "+e:"["+go.GLOBAL_TAG+"] > "+t}e=e&&e.hasOwnProperty("default")?e.default:e;var V=Math.ceil,W=Math.floor,$=function(t){return isNaN(t=+t)?0:(t>0?W:V)(t)},J=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},K=r(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)}),Q=r(function(t){var e=t.exports={version:"2.5.0"};"number"==typeof __e&&(__e=e)}),Y=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},Z=function(t,e,n){if(Y(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},tt=function(t){if(!X(t))throw TypeError(t+" is not an object!");return t},et=function(t){try{return!!t()}catch(t){return!0}},nt=!et(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),rt=K.document,ot=X(rt)&&X(rt.createElement),it=function(t){return ot?rt.createElement(t):{}},ut=!nt&&!et(function(){return 7!=Object.defineProperty(it("div"),"a",{get:function(){return 7}}).a}),at=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")},ct=Object.defineProperty,ft={f:nt?Object.defineProperty:function(t,e,n){if(tt(t),e=at(e,!0),tt(n),ut)try{return ct(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}},st=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},lt=nt?function(t,e,n){return ft.f(t,e,st(1,n))}:function(t,e,n){return t[e]=n,t},ht=function(t,e,n){var r,o,i,u=t&ht.F,a=t&ht.G,c=t&ht.S,f=t&ht.P,s=t&ht.B,l=t&ht.W,h=a?Q:Q[e]||(Q[e]={}),v=h.prototype,d=a?K:c?K[e]:(K[e]||{}).prototype;a&&(n=e);for(r in n)(o=!u&&d&&void 0!==d[r])&&r in h||(i=o?d[r]:n[r],h[r]=a&&"function"!=typeof d[r]?n[r]:s&&o?Z(i,K):l&&d[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?Z(Function.call,i):i,f&&((h.virtual||(h.virtual={}))[r]=i,t&ht.R&&v&&!v[r]&<(v,r,i)))};ht.F=1,ht.G=2,ht.S=4,ht.P=8,ht.B=16,ht.W=32,ht.U=64,ht.R=128;var vt=ht,dt=lt,pt={}.hasOwnProperty,yt=function(t,e){return pt.call(t,e)},gt={},mt={}.toString,_t=function(t){return mt.call(t).slice(8,-1)},bt=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==_t(t)?t.split(""):Object(t)},wt=function(t){return bt(J(t))},Et=Math.min,St=function(t){return t>0?Et($(t),9007199254740991):0},Ot=Math.max,At=Math.min,jt=function(t,e){return(t=$(t))<0?Ot(t+e,0):At(t,e)},Lt=K["__core-js_shared__"]||(K["__core-js_shared__"]={}),Pt=function(t){return Lt[t]||(Lt[t]={})},Tt=0,Mt=Math.random(),kt=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++Tt+Mt).toString(36))},Ct=Pt("keys"),Nt=function(t){return Ct[t]||(Ct[t]=kt(t))},xt=function(t){return function(e,n,r){var o,i=wt(e),u=St(i.length),a=jt(r,u);if(t&&n!=n){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}}(!1),Ft=Nt("IE_PROTO"),Rt=function(t,e){var n,r=wt(t),o=0,i=[];for(n in r)n!=Ft&&yt(r,n)&&i.push(n);for(;e.length>o;)yt(r,n=e[o++])&&(~xt(i,n)||i.push(n));return i},Bt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Dt=Object.keys||function(t){return Rt(t,Bt)},Gt=nt?Object.defineProperties:function(t,e){tt(t);for(var n,r=Dt(e),o=r.length,i=0;o>i;)ft.f(t,n=r[i++],e[n]);return t},It=K.document,zt=It&&It.documentElement,Ht=Nt("IE_PROTO"),qt=function(){},Ut=function(){var t,e=it("iframe"),n=Bt.length;for(e.style.display="none",zt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Ut=t.F;n--;)delete Ut.prototype[Bt[n]];return Ut()},Vt=Object.create||function(t,e){var n;return null!==t?(qt.prototype=tt(t),n=new qt,qt.prototype=null,n[Ht]=t):n=Ut(),void 0===e?n:Gt(n,e)},Wt=r(function(t){var e=Pt("wks"),n=K.Symbol,r="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=r&&n[t]||(r?n:kt)("Symbol."+t))}).store=e}),$t=ft.f,Jt=Wt("toStringTag"),Kt=function(t,e,n){t&&!yt(t=n?t:t.prototype,Jt)&&$t(t,Jt,{configurable:!0,value:e})},Qt={};lt(Qt,Wt("iterator"),function(){return this});var Yt=function(t,e,n){t.prototype=Vt(Qt,{next:st(1,n)}),Kt(t,e+" Iterator")},Zt=function(t){return Object(J(t))},Xt=Nt("IE_PROTO"),te=Object.prototype,ee=Object.getPrototypeOf||function(t){return t=Zt(t),yt(t,Xt)?t[Xt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?te:null},ne=Wt("iterator"),re=!([].keys&&"next"in[].keys()),oe=function(){return this},ie=function(t,e,n,r,o,i,u){Yt(n,e,r);var a,c,f,s=function(t){if(!re&&t in d)return d[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},l=e+" Iterator",h="values"==o,v=!1,d=t.prototype,p=d[ne]||d["@@iterator"]||o&&d[o],y=p||s(o),g=o?h?s("entries"):y:void 0,m="Array"==e?d.entries||p:p;if(m&&(f=ee(m.call(new t)))!==Object.prototype&&f.next&&Kt(f,l,!0),h&&p&&"values"!==p.name&&(v=!0,y=function(){return p.call(this)}),u&&(re||v||!d[ne])&<(d,ne,y),gt[e]=y,gt[l]=oe,o)if(a={values:h?y:s("values"),keys:i?y:s("keys"),entries:g},u)for(c in a)c in d||dt(d,c,a[c]);else vt(vt.P+vt.F*(re||v),e,a);return a},ue=function(t){return function(e,n){var r,o,i=String(J(e)),u=$(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=i.charCodeAt(u))<55296||r>56319||u+1===a||(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);ie(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=ue(e,n),this._i+=t.length,{value:t,done:!1})});var ae=function(t,e,n,r){try{return r?e(tt(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&tt(o.call(t)),e}},ce=Wt("iterator"),fe=Array.prototype,se=function(t){return void 0!==t&&(gt.Array===t||fe[ce]===t)},le=function(t,e,n){e in t?ft.f(t,e,st(0,n)):t[e]=n},he=Wt("toStringTag"),ve="Arguments"==_t(function(){return arguments}()),de=function(t,e){try{return t[e]}catch(t){}},pe=function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=de(e=Object(t),he))?n:ve?_t(e):"Object"==(r=_t(e))&&"function"==typeof e.callee?"Arguments":r},ye=Wt("iterator"),ge=Q.getIteratorMethod=function(t){if(void 0!=t)return t[ye]||t["@@iterator"]||gt[pe(t)]},me=Wt("iterator"),_e=!1;try{var be=[7][me]();be.return=function(){_e=!0},Array.from(be,function(){throw 2})}catch(t){}var we=function(t,e){if(!e&&!_e)return!1;var n=!1;try{var r=[7],o=r[me]();o.next=function(){return{done:n=!0}},r[me]=function(){return o},t(r)}catch(t){}return n};vt(vt.S+vt.F*!we(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,o,i=Zt(t),u="function"==typeof this?this:Array,a=arguments.length,c=a>1?arguments[1]:void 0,f=void 0!==c,s=0,l=ge(i);if(f&&(c=Z(c,a>2?arguments[2]:void 0,2)),void 0==l||u==Array&&se(l))for(n=new u(e=St(i.length));e>s;s++)le(n,s,f?c(i[s],s):i[s]);else for(o=l.call(i),n=new u;!(r=o.next()).done;s++)le(n,s,f?ae(o,c,[r.value,s],!0):r.value);return n.length=s,n}});var Ee=Q.Array.from,Se=r(function(t){t.exports={default:Ee,__esModule:!0}}),Oe=n(Se),Ae=n(r(function(t,e){e.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(Se);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)}})),je=function(){},Le=function(t,e){return{value:e,done:!!t}};ie(Array,"Array",function(t,e){this._t=wt(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,Le(1)):"keys"==e?Le(0,n):"values"==e?Le(0,t[n]):Le(0,[n,t[n]])},"values");gt.Arguments=gt.Array,je(),je(),je();for(var Pe=Wt("toStringTag"),Te="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),Me=0;Me<Te.length;Me++){var ke=Te[Me],Ce=K[ke],Ne=Ce&&Ce.prototype;Ne&&!Ne[Pe]&<(Ne,Pe,ke),gt[ke]=gt.Array}var xe={f:Wt},Fe=xe.f("iterator"),Re=r(function(t){t.exports={default:Fe,__esModule:!0}}),Be=r(function(t){var e=kt("meta"),n=ft.f,r=0,o=Object.isExtensible||function(){return!0},i=!et(function(){return o(Object.preventExtensions({}))}),u=function(t){n(t,e,{value:{i:"O"+ ++r,w:{}}})},a=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(!yt(t,e)){if(!o(t))return"F";if(!n)return"E";u(t)}return t[e].i},getWeak:function(t,n){if(!yt(t,e)){if(!o(t))return!0;if(!n)return!1;u(t)}return t[e].w},onFreeze:function(t){return i&&a.NEED&&o(t)&&!yt(t,e)&&u(t),t}}}),De=ft.f,Ge=function(t){var e=Q.Symbol||(Q.Symbol={});"_"==t.charAt(0)||t in e||De(e,t,{value:xe.f(t)})},Ie=function(t,e){for(var n,r=wt(t),o=Dt(r),i=o.length,u=0;i>u;)if(r[n=o[u++]]===e)return n},ze={f:Object.getOwnPropertySymbols},He={f:{}.propertyIsEnumerable},qe=function(t){var e=Dt(t),n=ze.f;if(n)for(var r,o=n(t),i=He.f,u=0;o.length>u;)i.call(t,r=o[u++])&&e.push(r);return e},Ue=Array.isArray||function(t){return"Array"==_t(t)},Ve=Bt.concat("length","prototype"),We={f:Object.getOwnPropertyNames||function(t){return Rt(t,Ve)}},$e=We.f,Je={}.toString,Ke="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Qe=function(t){try{return $e(t)}catch(t){return Ke.slice()}},Ye={f:function(t){return Ke&&"[object Window]"==Je.call(t)?Qe(t):$e(wt(t))}},Ze=Object.getOwnPropertyDescriptor,Xe={f:nt?Ze:function(t,e){if(t=wt(t),e=at(e,!0),ut)try{return Ze(t,e)}catch(t){}if(yt(t,e))return st(!He.f.call(t,e),t[e])}},tn=Be.KEY,en=Xe.f,nn=ft.f,rn=Ye.f,on=K.Symbol,un=K.JSON,an=un&&un.stringify,cn=Wt("_hidden"),fn=Wt("toPrimitive"),sn={}.propertyIsEnumerable,ln=Pt("symbol-registry"),hn=Pt("symbols"),vn=Pt("op-symbols"),dn=Object.prototype,pn="function"==typeof on,yn=K.QObject,gn=!yn||!yn.prototype||!yn.prototype.findChild,mn=nt&&et(function(){return 7!=Vt(nn({},"a",{get:function(){return nn(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=en(dn,e);r&&delete dn[e],nn(t,e,n),r&&t!==dn&&nn(dn,e,r)}:nn,_n=function(t){var e=hn[t]=Vt(on.prototype);return e._k=t,e},bn=pn&&"symbol"==typeof on.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof on},wn=function(t,e,n){return t===dn&&wn(vn,e,n),tt(t),e=at(e,!0),tt(n),yt(hn,e)?(n.enumerable?(yt(t,cn)&&t[cn][e]&&(t[cn][e]=!1),n=Vt(n,{enumerable:st(0,!1)})):(yt(t,cn)||nn(t,cn,st(1,{})),t[cn][e]=!0),mn(t,e,n)):nn(t,e,n)},En=function(t,e){tt(t);for(var n,r=qe(e=wt(e)),o=0,i=r.length;i>o;)wn(t,n=r[o++],e[n]);return t},Sn=function(t){var e=sn.call(this,t=at(t,!0));return!(this===dn&&yt(hn,t)&&!yt(vn,t))&&(!(e||!yt(this,t)||!yt(hn,t)||yt(this,cn)&&this[cn][t])||e)},On=function(t,e){if(t=wt(t),e=at(e,!0),t!==dn||!yt(hn,e)||yt(vn,e)){var n=en(t,e);return!n||!yt(hn,e)||yt(t,cn)&&t[cn][e]||(n.enumerable=!0),n}},An=function(t){for(var e,n=rn(wt(t)),r=[],o=0;n.length>o;)yt(hn,e=n[o++])||e==cn||e==tn||r.push(e);return r},jn=function(t){for(var e,n=t===dn,r=rn(n?vn:wt(t)),o=[],i=0;r.length>i;)!yt(hn,e=r[i++])||n&&!yt(dn,e)||o.push(hn[e]);return o};pn||(dt((on=function(){if(this instanceof on)throw TypeError("Symbol is not a constructor!");var t=kt(arguments.length>0?arguments[0]:void 0),e=function(n){this===dn&&e.call(vn,n),yt(this,cn)&&yt(this[cn],t)&&(this[cn][t]=!1),mn(this,t,st(1,n))};return nt&&gn&&mn(dn,t,{configurable:!0,set:e}),_n(t)}).prototype,"toString",function(){return this._k}),Xe.f=On,ft.f=wn,We.f=Ye.f=An,He.f=Sn,ze.f=jn,xe.f=function(t){return _n(Wt(t))}),vt(vt.G+vt.W+vt.F*!pn,{Symbol:on});for(var Ln="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Pn=0;Ln.length>Pn;)Wt(Ln[Pn++]);for(var Tn=Dt(Wt.store),Mn=0;Tn.length>Mn;)Ge(Tn[Mn++]);vt(vt.S+vt.F*!pn,"Symbol",{for:function(t){return yt(ln,t+="")?ln[t]:ln[t]=on(t)},keyFor:function(t){if(bn(t))return Ie(ln,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){gn=!0},useSimple:function(){gn=!1}}),vt(vt.S+vt.F*!pn,"Object",{create:function(t,e){return void 0===e?Vt(t):En(Vt(t),e)},defineProperty:wn,defineProperties:En,getOwnPropertyDescriptor:On,getOwnPropertyNames:An,getOwnPropertySymbols:jn}),un&&vt(vt.S+vt.F*(!pn||et(function(){var t=on();return"[null]"!=an([t])||"{}"!=an({a:t})||"{}"!=an(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!bn(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&&Ue(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!bn(e))return e}),r[1]=e,an.apply(un,r)}}}),on.prototype[fn]||lt(on.prototype,fn,on.prototype.valueOf),Kt(on,"Symbol"),Kt(Math,"Math",!0),Kt(K.JSON,"JSON",!0),Ge("asyncIterator"),Ge("observable");var kn=Q.Symbol,Cn=r(function(t){t.exports={default:kn,__esModule:!0}}),Nn=n(r(function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(Re),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=(Q.Object||{})[t]||Object[t],r={};r[t]=e(n),vt(vt.S+vt.F*et(function(){n(1)}),"Object",r)}("keys",function(){return function(t){return Dt(Zt(t))}});var xn=Q.Object.keys,Fn=n(r(function(t){t.exports={default:xn,__esModule:!0}})),Rn=Math.floor;vt(vt.S,"Number",{isInteger:function(t){return!X(t)&&isFinite(t)&&Rn(t)===t}});var Bn=Q.Number.isInteger,Dn=n(r(function(t){t.exports={default:Bn,__esModule:!0}})),Gn="\t\n\v\f\r \u2028\u2029\ufeff",In="["+Gn+"]",zn=RegExp("^"+In+In+"*"),Hn=RegExp(In+In+"*$"),qn=function(t,e,n){var r={},o=et(function(){return!!Gn[t]()||" "!=" "[t]()}),i=r[t]=o?e(Un):Gn[t];n&&(r[n]=i),vt(vt.P+vt.F*o,"String",r)},Un=qn.trim=function(t,e){return t=String(J(t)),1&e&&(t=t.replace(zn,"")),2&e&&(t=t.replace(Hn,"")),t},Vn=qn,Wn=K.parseFloat,$n=Vn.trim,Jn=1/Wn(Gn+"-0")!=-1/0?function(t){var e=$n(String(t),3),n=Wn(e);return 0===n&&"-"==e.charAt(0)?-0:n}:Wn;vt(vt.S+vt.F*(Number.parseFloat!=Jn),"Number",{parseFloat:Jn});var Kn,Qn,Yn,Zn=parseFloat,Xn=n(r(function(t){t.exports={default:Zn,__esModule:!0}})),tr=d(function(t){return t}),er=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t},nr=r(function(t){var e={},n={},r=t.exports=function(t,r,o,i,u){var a,c,f,s,l=u?function(){return t}:ge(t),h=Z(o,i,r?2:1),v=0;if("function"!=typeof l)throw TypeError(t+" is not iterable!");if(se(l)){for(a=St(t.length);a>v;v++)if((s=r?h(tt(c=t[v])[0],c[1]):h(t[v]))===e||s===n)return s}else for(f=l.call(t);!(c=f.next()).done;)if((s=ae(f,h,c.value,r))===e||s===n)return s};r.BREAK=e,r.RETURN=n}),rr=Wt("species"),or=function(t,e){var n,r=tt(t).constructor;return void 0===r||void 0==(n=tt(r)[rr])?e:Y(n)},ir=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)},ur=K.process,ar=K.setImmediate,cr=K.clearImmediate,fr=K.MessageChannel,sr=K.Dispatch,lr=0,hr={},vr=function(){var t=+this;if(hr.hasOwnProperty(t)){var e=hr[t];delete hr[t],e()}},dr=function(t){vr.call(t.data)};ar&&cr||(ar=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return hr[++lr]=function(){ir("function"==typeof t?t:Function(t),e)},Kn(lr),lr},cr=function(t){delete hr[t]},"process"==_t(ur)?Kn=function(t){ur.nextTick(Z(vr,t,1))}:sr&&sr.now?Kn=function(t){sr.now(Z(vr,t,1))}:fr?(Yn=(Qn=new fr).port2,Qn.port1.onmessage=dr,Kn=Z(Yn.postMessage,Yn,1)):K.addEventListener&&"function"==typeof postMessage&&!K.importScripts?(Kn=function(t){K.postMessage(t+"","*")},K.addEventListener("message",dr,!1)):Kn="onreadystatechange"in it("script")?function(t){zt.appendChild(it("script")).onreadystatechange=function(){zt.removeChild(this),vr.call(t)}}:function(t){setTimeout(Z(vr,t,1),0)});var pr,yr,gr,mr,_r={set:ar,clear:cr},br=_r.set,wr=K.MutationObserver||K.WebKitMutationObserver,Er=K.process,Sr=K.Promise,Or="process"==_t(Er),Ar={f:function(t){return new g(t)}},jr=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}},Lr=function(t,e){var n=Ar.f(t);return(0,n.resolve)(e),n.promise},Pr=Wt("species"),Tr=_r.set,Mr=function(){var t,e,n,r=function(){var r,o;for(Or&&(r=Er.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(Or)n=function(){Er.nextTick(r)};else if(wr){var o=!0,i=document.createTextNode("");new wr(r).observe(i,{characterData:!0}),n=function(){i.data=o=!o}}else if(Sr&&Sr.resolve){var u=Sr.resolve();n=function(){u.then(r)}}else n=function(){br.call(K,r)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}(),kr=K.TypeError,Cr=K.process,Nr=K.Promise,xr="process"==pe(Cr),Fr=function(){},Rr=yr=Ar.f,Br=!!function(){try{var t=Nr.resolve(1),e=(t.constructor={})[Wt("species")]=function(t){t(Fr,Fr)};return(xr||"function"==typeof PromiseRejectionEvent)&&t.then(Fr)instanceof e}catch(t){}}(),Dr=function(t,e){return t===e||t===Nr&&e===mr},Gr=function(t){var e;return!(!X(t)||"function"!=typeof(e=t.then))&&e},Ir=function(t,e){if(!t._n){t._n=!0;var n=t._c;Mr(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,a=e.resolve,c=e.reject,f=e.domain;try{u?(o||(2==t._h&&qr(t),t._h=1),!0===u?n=r:(f&&f.enter(),n=u(r),f&&f.exit()),n===e.promise?c(kr("Promise-chain cycle")):(i=Gr(n))?i.call(n,a,c):a(n)):c(r)}catch(t){c(t)}}(n[i++]);t._c=[],t._n=!1,e&&!t._h&&zr(t)})}},zr=function(t){Tr.call(K,function(){var e,n,r,o=t._v,i=Hr(t);if(i&&(e=jr(function(){xr?Cr.emit("unhandledRejection",o,t):(n=K.onunhandledrejection)?n({promise:t,reason:o}):(r=K.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=xr||Hr(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},Hr=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||!Hr(e.promise))return!1;return!0},qr=function(t){Tr.call(K,function(){var e;xr?Cr.emit("rejectionHandled",t):(e=K.onrejectionhandled)&&e({promise:t,reason:t._v})})},Ur=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()),Ir(e,!0))},Vr=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw kr("Promise can't be resolved itself");(e=Gr(t))?Mr(function(){var r={_w:n,_d:!1};try{e.call(t,Z(Vr,r,1),Z(Ur,r,1))}catch(t){Ur.call(r,t)}}):(n._v=t,n._s=1,Ir(n,!1))}catch(t){Ur.call({_w:n,_d:!1},t)}}};Br||(Nr=function(t){er(this,Nr,"Promise","_h"),Y(t),pr.call(this);try{t(Z(Vr,this,1),Z(Ur,this,1))}catch(t){Ur.call(this,t)}},(pr=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]:lt(t,r,e[r]);return t}(Nr.prototype,{then:function(t,e){var n=Rr(or(this,Nr));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=xr?Cr.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&Ir(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),gr=function(){var t=new pr;this.promise=t,this.resolve=Z(Vr,t,1),this.reject=Z(Ur,t,1)},Ar.f=Rr=function(t){return Dr(Nr,t)?new gr(t):yr(t)}),vt(vt.G+vt.W+vt.F*!Br,{Promise:Nr}),Kt(Nr,"Promise"),function(t){var e="function"==typeof Q[t]?Q[t]:K[t];nt&&e&&!e[Pr]&&ft.f(e,Pr,{configurable:!0,get:function(){return this}})}("Promise"),mr=Q.Promise,vt(vt.S+vt.F*!Br,"Promise",{reject:function(t){var e=Rr(this);return(0,e.reject)(t),e.promise}}),vt(vt.S+!0*vt.F,"Promise",{resolve:function(t){return t instanceof Nr&&Dr(t.constructor,this)?t:Lr(this,t)}}),vt(vt.S+vt.F*!(Br&&we(function(t){Nr.all(t).catch(Fr)})),"Promise",{all:function(t){var e=this,n=Rr(e),r=n.resolve,o=n.reject,i=jr(function(){var n=[],i=0,u=1;nr(t,!1,function(t){var a=i++,c=!1;n.push(void 0),u++,e.resolve(t).then(function(t){c||(c=!0,n[a]=t,--u||r(n))},o)}),--u||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=Rr(e),r=n.reject,o=jr(function(){nr(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}}),vt(vt.P+vt.R,"Promise",{finally:function(t){var e=or(this,Q.Promise||K.Promise),n="function"==typeof t;return this.then(n?function(n){return Lr(e,t()).then(function(){return n})}:t,n?function(n){return Lr(e,t()).then(function(){throw n})}:t)}}),vt(vt.S,"Promise",{try:function(t){var e=Ar.f(this),n=jr(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}});var Wr=Q.Promise,$r=n(r(function(t){t.exports={default:Wr,__esModule:!0}})),Jr="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Kr=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return setTimeout(t,17)},Qr=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame||function(t){clearTimeout(t)},Yr=n(r(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")}}));vt(vt.S+vt.F*!nt,"Object",{defineProperty:ft.f});var Zr=Q.Object,Xr=function(t,e,n){return Zr.defineProperty(t,e,n)},to=r(function(t){t.exports={default:Xr,__esModule:!0}}),eo=n(r(function(t,e){e.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(to);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}}()})),no=Object.assign,ro=!no||et(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=no({},t)[n]||Object.keys(no({},e)).join("")!=r})?function(t,e){for(var n=Zt(t),r=arguments.length,o=1,i=ze.f,u=He.f;r>o;)for(var a,c=bt(arguments[o++]),f=i?Dt(c).concat(i(c)):Dt(c),s=f.length,l=0;s>l;)u.call(c,a=f[l++])&&(n[a]=c[a]);return n}:no;vt(vt.S+vt.F,"Object",{assign:ro});var oo=Q.Object.assign,io=n(r(function(t){t.exports={default:oo,__esModule:!0}}));vt(vt.S,"Object",{create:Vt});var uo=Q.Object,ao=function(t,e){return uo.create(t,e)},co=n(r(function(t){t.exports={default:ao,__esModule:!0}})),fo=co(null);fo.count=0;var so=function(){function t(e,n){var r=this;if(Yr(this,t),Object.defineProperty(this,"__target",{writable:!0,enumerable:!1,configurable:!0}),this.__target=this,e){if("object"!==(void 0===e?"undefined":Nn(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 eo(t,[{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return E(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 w(this.__target,t,{data:e}),this}}]),t}(),lo=co(null);lo.count=0;(function(){function t(e,n){var r=this;if(Yr(this,t),Object.defineProperty(this,"__target",{writable:!0,enumerable:!1,configurable:!0}),this.__target=this,e){if("object"!==(void 0===e?"undefined":Nn(e)))throw new Error("CusEvent target are not object");this.__target=e,n&&["on","once","off","emit"].forEach(function(t){e[t]=r[t]})}}eo(t,[{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return j(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 L(this.__target,t,e,n),this}},{key:"emit",value:function(t,e){return A(this.__target,t,{data:e}),this}}])})(),"undefined"!=typeof window&&Object.prototype.toString.call(window);var ho=document.createElement("div"),vo="innerText";"textContent"in ho&&(vo="textContent");var po=Array.prototype,yo=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;Yr(this,t);var r=this;r.selector=e;var o=void 0;e&&e.constructor===NodeList?o=P(e):i(e)?o=e:s(e)?0===e.indexOf("<")?(ho.innerHTML=e,o=I("*",ho,!0)):o=I(e,n,!0):o=[e],io(r,o),r.length=o.length}return eo(t,[{key:"each",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return po.forEach.apply(this,e),this}},{key:"push",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return po.push.apply(this,e),this}},{key:"splice",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return q(po.splice.apply(this,e))}},{key:"find",value:function(t){var e=[];this.each(function(n){e=e.concat(I(t,n,!0))});var n=q(e);return n.parent=this,n.selector=t,n}},{key:"append",value:function(t){var e=q(t),n=this[0];return e.each(function(t){return n.appendChild(t)}),this}},{key:"appendTo",value:function(t){return q(t).append(this),this}},{key:"text",value:function(t){return 0===arguments.length?this[0][vo]:this.each(function(e){e[vo]=t})}},{key:"html",value:function(t){return 0===arguments.length?this[0].innerHTML:this.each(function(e){e.innerHTML=t})}},{key:"attr",value:function(t,e){return 1===arguments.length?T(this[0],t):this.each(function(n){return M(n,t,e)})}},{key:"data",value:function(t,e){return 0===arguments.length?this[0].dataset||{}:1===arguments.length?(this[0].dataset||{})[t]:this.each(function(n){(n.dataset||(n.dataset={}))[t]=e})}},{key:"css",value:function(t,e){return 1!==arguments.length||a(t)?this.each(function(n){return G(n,t,e)}):D(this[0],t)}},{key:"addClass",value:function(t){return this.each(function(e){return k(e,t)})}},{key:"removeClass",value:function(t){return this.each(function(e){return C(e,t)})}},{key:"hasClass",value:function(t){return N(this[0],t)}},{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(o){return F(o,t,e,n,r)})}},{key:"off",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(o){return x(o,t,e,n,r)})}},{key:"delegate",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(o){return R(o,t,e,n,r)})}},{key:"undelegate",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(o){return B(o,t,e,n,r)})}},{key:"remove",value:function(){return this.each(function(t){return z(t)})}}]),t}(),go=function(){function t(){Yr(this,t)}return eo(t,null,[{key:"error",value:function(e,n){t.ENABLE_ERROR&&(console.error||console.warn||console.log)(U(e,n))}},{key:"info",value:function(e,n){t.ENABLE_INFO&&(console.info||console.log)(U(e,n))}},{key:"warn",value:function(e,n){t.ENABLE_WARN&&(console.warn||console.log)(U(e,n))}},{key:"debug",value:function(e,n){t.ENABLE_DEBUG&&(console.debug||console.log)(U(e,n))}},{key:"verbose",value:function(e,n){t.ENABLE_VERBOSE&&console.log(U(e,n))}}]),t}();go.GLOBAL_TAG="chimee",go.FORCE_GLOBAL_TAG=!1,go.ENABLE_ERROR=!0,go.ENABLE_INFO=!0,go.ENABLE_WARN=!0,go.ENABLE_DEBUG=!0,go.ENABLE_VERBOSE=!0,t.Log=go,t.UAParser=e,t.genTraversalHandler=d,t.deepClone=function(t){if(h(t))throw new TypeError("deepClone only accept non primitive type");return tr(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(h(e[r]))throw new TypeError("deepAssign only accept non primitive type");var o=e.shift();return e.forEach(function(t){return tr(t,o)}),o},t.camelize=p,t.hypenate=function(t){return p(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(Ae(r)))}},t.uuid=function(){return y()+y()+"-"+y()+"-"+y()+"-"+y()+"-"+y()+y()+y()},t.S4=y,t.rand=function(t){for(var e="";e.length<t;)e+=y();return e.slice(0,t)},t.getDeepProperty=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.throwError,u=void 0!==r&&r,a=n.backup;if(s(e)&&(e=e.split(".")),!i(e))throw new TypeError("keys of getDeepProperty must be string or Array<string>");for(var c=[],f=t,l=0,h=e.length;l<h;l++){var v=e[l];if(o(f)){if(u)throw new Error("obj"+(c.length>0?"."+c.join("."):" itself")+" is "+f);return a}f=f[v],c.push(v)}return f},t.isVoid=o,t.isArray=i,t.isFunction=u,t.isObject=a,t.isNumber=c,t.isNumeric=function(t){return!i(t)&&t-Xn(t)+1>=0},t.isInteger=function(t){return Dn(t)},t.isEmpty=function(t){return i(t)?0===t.length:a(t)?0===Fn(t).length:!t},t.isEvent=function(t){return t instanceof Event||t.originalEvent instanceof Event},t.isBlob=f,t.isFile=function(t){return f(t)&&s(t.name)},t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isString=s,t.isBoolean=l,t.isPromise=function(t){return!!t&&("object"===(void 0===t?"undefined":Nn(t))||"function"==typeof t)&&"function"==typeof t.then},t.isPrimitive=h,t.isUrl=function(t){return s(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=v,t.isElement=function(t){return!!("object"===("undefined"==typeof HTMLElement?"undefined":Nn(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":Nn(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)},t.isChildNode=function(t,e){return!(!v(t)||!v(e))&&e.parentNode===t},t.isPosterityNode=function(t,e){if(!v(t)||!v(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=Jr,t.makeArray=function(t){return Oe(t)},t.transObjectAttrIntoArray=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t,e){return+t-+e};return Fn(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 $r(function(e,r){!function o(i){if(!(i>=t.length)){var a=u(t[i])?t[i].apply(t,Ae(n)):t[i];return!1===a?r("stop"):$r.resolve(a).then(function(){return o(i+1)}).catch(function(t){return r(t||"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!==(u(t[r])?t[r].apply(t,Ae(n)):t[r])&&e(++r)}(0)},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 a=(7&n[r])<<18|(63&n[r+1])<<12|(63&n[r+2])<<6|63&n[r+3];if(a>65536&&a<1114112){a-=65536,e.push(String.fromCharCode(a>>>10|55296)),e.push(String.fromCharCode(1023&a|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,a=void 0,c=function c(){var f=new Date-u;f<e&&f>=0?r=setTimeout(c,e-f):(r=null,n||(a=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(c,e)),f&&(a=t.apply(i,o),i=o=null),a}},t.throttle=function(t,e,n,r){var o=void 0,i=void 0,u=void 0,a=null,c=0;n||(n={});var f=function(){c=!1===n.leading?0:new Date-0,a=null,u=t.apply(o,i),a||(o=i=null)};return e=e||0,function(){var s=new Date;c||!1!==n.leading||(c=s);var l=e-(s-c);return o=r||this,i=arguments,l<=0||l>e?(a&&(clearTimeout(a),a=null),c=s,u=t.apply(o,i),a||(o=i=null)):a||!1===n.trailing||(a=setTimeout(f,l)),u}},t.raf=Kr,t.caf=Qr,t.strRepeat=_,t.formatTime=function(t){var e=Math.floor(t/3600);t=Math.floor(t%3600);var n=_(Math.floor(t/60),2),r=_(t=Math.floor(t%60),2);return e>=1?e+":"+n+":"+r:n+":"+r},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.getItem(t)}catch(n){try{var e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]*)(;|$)"));return i(e)?unescape(e[2]):""}catch(t){return""}}},t.setLocalStorage=function(t,e){try{window.localStorage.setItem(t,e)}catch(r){var n=new Date;n.setTime(n.getTime()+2592e7);try{document.cookie=t+"="+escape(e)+";expires="+n.toUTCString()+";path=/;"}catch(t){}}},t.emitEventCache=w,t.addEventCache=E,t.removeEventCache=S,t.CustEvent=so,t.getAttr=T,t.setAttr=M,t.addClassName=k,t.removeClassName=C,t.hasClassName=N,t.removeEvent=x,t.addEvent=F,t.addDelegate=R,t.removeDelegate=B,t.getStyle=D,t.setStyle=G,t.query=I,t.removeEl=z,t.findParents=H,t.$=q,t.NodeWrap=yo,Object.defineProperty(t,"__esModule",{value:!0})}); |
{ | ||
"name": "chimee-helper", | ||
"version": "0.1.15", | ||
"version": "0.2.0", | ||
"description": "helper of chimee", | ||
@@ -41,4 +41,4 @@ "main": "lib/index.js", | ||
"chimee-helper-events": "^0.1.0", | ||
"chimee-helper-log": "^0.1.1", | ||
"chimee-helper-utils": "^0.1.3", | ||
"chimee-helper-log": "^0.1.2", | ||
"chimee-helper-utils": "^0.2.0", | ||
"toxic-predicate-functions": "^0.1.2", | ||
@@ -57,7 +57,7 @@ "toxic-utils": "^0.1.5" | ||
"eslint-plugin-jest": "^20.0.3", | ||
"flow-bin": "^0.49.1", | ||
"flow-bin": "^0.52.0", | ||
"husky": "^0.14.1", | ||
"jest": "^20.0.4", | ||
"rollup": "^0.43.0", | ||
"rollup-plugin-babel": "^2.7.1", | ||
"rollup": "^0.47.4", | ||
"rollup-plugin-babel": "^3.0.1", | ||
"rollup-plugin-commonjs": "^8.0.2", | ||
@@ -64,0 +64,0 @@ "rollup-plugin-flow-no-whitespace": "^1.0.0", |
# chimee-helper | ||
[![Build Status](https://img.shields.io/travis/Chimeejs/chimee-helper/master.svg?style=flat-square)](https://travis-ci.org/Chimeejs/chimee-helper.svg?branch=master) | ||
[![Coverage Status](https://img.shields.io/coveralls/Chimeejs/chimee-helper/master.svg?style=flat-square)](https://coveralls.io/github/Chimeejs/chimee-helper?branch=master) | ||
[![npm](https://img.shields.io/npm/v/chimee-helper.svg?colorB=brightgreen&style=flat-square)](https://www.npmjs.com/package/chimee-helper) | ||
@@ -42,2 +41,3 @@ [![dependency Status](https://david-dm.org/Chimeejs/chimee-helper.svg)](https://david-dm.org/Chimeejs/chimee-helper) | ||
| [chimee-helper-log](https://github.com/Chimeejs/chimee-helper-log) | [![npm](https://img.shields.io/npm/v/chimee-helper-log.svg?colorB=brightgreen&style=flat-square)](https://www.npmjs.com/package/chimee-helper-log) | [![Coverage Status](https://img.shields.io/coveralls/Chimeejs/chimee-helper-log/master.svg?style=flat-square)](https://coveralls.io/github/Chimeejs/chimee-helper-log?branch=master) | | ||
| [ua-parser-js](https://github.com/faisalman/ua-parser-js) | [![https://camo.githubusercontent.com/bd29356645a3a686e8eddf3f24a0e21e72d510af/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f75612d7061727365722d6a732e737667](https://camo.githubusercontent.com/bd29356645a3a686e8eddf3f24a0e21e72d510af/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f75612d7061727365722d6a732e737667)](https://www.npmjs.com/package/ua-parser-js) | | | ||
@@ -8,1 +8,2 @@ // @flow | ||
export {default as Log} from 'chimee-helper-log'; | ||
export {default as UAParser} from 'ua-parser-js'; |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
188858
3859
2
4
- Removedchimee-helper-utils@0.1.3(transitive)
Updatedchimee-helper-log@^0.1.2
Updatedchimee-helper-utils@^0.2.0