Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chimee-helper

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chimee-helper - npm Package Compare versions

Comparing version 0.1.14 to 0.1.15

2

lib/index.js
/**
* chimee-helper v0.1.14
* chimee-helper v0.1.15
* (c) 2017 toxic-johann

@@ -5,0 +5,0 @@ * Released under MIT

@@ -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.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&lt.F,a=t&lt.G,c=t&lt.S,f=t&lt.P,s=t&lt.B,l=t&lt.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&lt.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):"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&lt.F,a=t&lt.G,c=t&lt.S,f=t&lt.P,s=t&lt.B,l=t&lt.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&lt.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})});
{
"name": "chimee-helper",
"version": "0.1.14",
"version": "0.1.15",
"description": "helper of chimee",

@@ -39,3 +39,3 @@ "main": "lib/index.js",

"babel-runtime": "^6.23.0",
"chimee-helper-dom": "^0.1.2",
"chimee-helper-dom": "^0.1.3",
"chimee-helper-events": "^0.1.0",

@@ -42,0 +42,0 @@ "chimee-helper-log": "^0.1.1",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc