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

simplebar

Package Overview
Dependencies
Maintainers
2
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simplebar - npm Package Compare versions

Comparing version 3.1.4 to 3.1.5

20

dist/simplebar.esm.js
/**
* SimpleBar.js - v3.1.4
* SimpleBar.js - v3.1.5
* Scrollbars, simpler.

@@ -380,7 +380,2 @@ * https://grsmto.github.io/simplebar/

scrollbar.classList.add(this.classNames.scrollbar);
if (!this.options.autoHide) {
scrollbar.classList.add(this.classNames.visible);
}
track.appendChild(scrollbar);

@@ -397,2 +392,8 @@ this.axis.x.track.el = track.cloneNode(true);

this.axis.y.scrollbar.el = this.axis.y.track.el.querySelector(".".concat(this.classNames.scrollbar));
if (!this.options.autoHide) {
this.axis.x.scrollbar.el.classList.add(this.classNames.visible);
this.axis.y.scrollbar.el.classList.add(this.classNames.visible);
}
this.el.setAttribute('data-simplebar', 'init');

@@ -423,9 +424,8 @@ }

mutations.forEach(function (mutation) {
if (mutation.target === _this3.el || !_this3.isChildNode(mutation.target) || mutation.addedNodes.length || mutation.removedNodes.length) {
if (mutation.target === _this3.contentEl || _this3.isChildNode(mutation.target) || mutation.addedNodes.length || mutation.removedNodes.length) {
_this3.recalculate();
}
});
}); // pass in the target node, as well as the observer options
this.mutationObserver.observe(this.el, {
});
this.mutationObserver.observe(this.contentEl, {
attributes: true,

@@ -432,0 +432,0 @@ childList: true,

/**
* SimpleBar.js - v3.1.4
* SimpleBar.js - v3.1.5
* Scrollbars, simpler.

@@ -10,2 +10,2 @@ * https://grsmto.github.io/simplebar/

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).SimpleBar=e()}(this,function(){"use strict";var t=function(t){return"object"==typeof t?null!==t:"function"==typeof t},e=function(e){if(!t(e))throw TypeError(e+" is not an object!");return e},i=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},r=function(t){return Object(i(t))},n=Math.ceil,o=Math.floor,s=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)},a=Math.min,l=function(t){return t>0?a(s(t),9007199254740991):0},c=function(t){return function(e,r){var n,o,a=String(i(e)),l=s(r),c=a.length;return l<0||l>=c?t?"":void 0:(n=a.charCodeAt(l))<55296||n>56319||l+1===c||(o=a.charCodeAt(l+1))<56320||o>57343?t?a.charAt(l):n:t?a.slice(l,l+2):o-56320+(n-55296<<10)+65536}},u=c(!0),h=function(t,e,i){return e+(i?u(t,e).length:1)},f={}.toString,d=function(t){return f.call(t).slice(8,-1)},p="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(t,e){return t(e={exports:{}},e.exports),e.exports}var y,b,g=v(function(t){var e=t.exports={version:"2.6.2"};"number"==typeof __e&&(__e=e)}),m=(g.version,v(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)})),x=v(function(t){var e=m["__core-js_shared__"]||(m["__core-js_shared__"]={});(t.exports=function(t,i){return e[t]||(e[t]=void 0!==i?i:{})})("versions",[]).push({version:g.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),E=0,w=Math.random(),_=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++E+w).toString(36))},O=v(function(t){var e=x("wks"),i=m.Symbol,r="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=r&&i[t]||(r?i:_)("Symbol."+t))}).store=e}),S=O("toStringTag"),k="Arguments"==d(function(){return arguments}()),A=function(t){var e,i,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),S))?i:k?d(e):"Object"==(r=d(e))&&"function"==typeof e.callee?"Arguments":r},M=RegExp.prototype.exec,L=function(t,e){var i=t.exec;if("function"==typeof i){var r=i.call(t,e);if("object"!=typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==A(t))throw new TypeError("RegExp#exec called on incompatible receiver");return M.call(t,e)},T=RegExp.prototype.exec,j=String.prototype.replace,R=T,N=(y=/a/,b=/b*/g,T.call(y,"a"),T.call(b,"a"),0!==y.lastIndex||0!==b.lastIndex),W=void 0!==/()??/.exec("")[1];(N||W)&&(R=function(t){var i,r,n,o,s=this;return W&&(r=new RegExp("^"+s.source+"$(?!\\s)",function(){var t=e(this),i="";return t.global&&(i+="g"),t.ignoreCase&&(i+="i"),t.multiline&&(i+="m"),t.unicode&&(i+="u"),t.sticky&&(i+="y"),i}.call(s))),N&&(i=s.lastIndex),n=T.call(s,t),N&&n&&(s.lastIndex=s.global?n.index+n[0].length:i),W&&n&&n.length>1&&j.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n});var C=R,z=function(t){try{return!!t()}catch(t){return!0}},D=!z(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),V=m.document,B=t(V)&&t(V.createElement),P=function(t){return B?V.createElement(t):{}},F=!D&&!z(function(){return 7!=Object.defineProperty(P("div"),"a",{get:function(){return 7}}).a}),I=Object.defineProperty,H={f:D?Object.defineProperty:function(i,r,n){if(e(i),r=function(e,i){if(!t(e))return e;var r,n;if(i&&"function"==typeof(r=e.toString)&&!t(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!t(n=r.call(e)))return n;if(!i&&"function"==typeof(r=e.toString)&&!t(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")}(r,!0),e(n),F)try{return I(i,r,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(i[r]=n.value),i}},q=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},$=D?function(t,e,i){return H.f(t,e,q(1,i))}:function(t,e,i){return t[e]=i,t},X={}.hasOwnProperty,Y=function(t,e){return X.call(t,e)},G=v(function(t){var e=_("src"),i=Function.toString,r=(""+i).split("toString");g.inspectSource=function(t){return i.call(t)},(t.exports=function(t,i,n,o){var s="function"==typeof n;s&&(Y(n,"name")||$(n,"name",i)),t[i]!==n&&(s&&(Y(n,e)||$(n,e,t[i]?""+t[i]:r.join(String(i)))),t===m?t[i]=n:o?t[i]?t[i]=n:$(t,i,n):(delete t[i],$(t,i,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[e]||i.call(this)})}),U=function(t,e,i){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,r){return t.call(e,i,r)};case 3:return function(i,r,n){return t.call(e,i,r,n)}}return function(){return t.apply(e,arguments)}},J=function(t,e,i){var r,n,o,s,a=t&J.F,l=t&J.G,c=t&J.S,u=t&J.P,h=t&J.B,f=l?m:c?m[e]||(m[e]={}):(m[e]||{}).prototype,d=l?g:g[e]||(g[e]={}),p=d.prototype||(d.prototype={});for(r in l&&(i=e),i)o=((n=!a&&f&&void 0!==f[r])?f:i)[r],s=h&&n?U(o,m):u&&"function"==typeof o?U(Function.call,o):o,f&&G(f,r,o,t&J.U),d[r]!=o&&$(d,r,s),u&&p[r]!=o&&(p[r]=o)};m.core=g,J.F=1,J.G=2,J.S=4,J.P=8,J.B=16,J.W=32,J.U=64,J.R=128;var K=J;K({target:"RegExp",proto:!0,forced:C!==/./.exec},{exec:C});var Q=O("species"),Z=!z(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),tt=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}(),et=function(t,e,r){var n=O(t),o=!z(function(){var e={};return e[n]=function(){return 7},7!=""[t](e)}),s=o?!z(function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[Q]=function(){return i}),i[n](""),!e}):void 0;if(!o||!s||"replace"===t&&!Z||"split"===t&&!tt){var a=/./[n],l=r(i,n,""[t],function(t,e,i,r,n){return e.exec===C?o&&!n?{done:!0,value:a.call(e,i,r)}:{done:!0,value:t.call(i,e,r)}:{done:!1}}),c=l[0],u=l[1];G(String.prototype,t,c),$(RegExp.prototype,n,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}},it=Math.max,rt=Math.min,nt=Math.floor,ot=/\$([$&`']|\d\d?|<[^>]*>)/g,st=/\$([$&`']|\d\d?)/g;et("replace",2,function(t,i,n,o){return[function(e,r){var o=t(this),s=null==e?void 0:e[i];return void 0!==s?s.call(e,o,r):n.call(String(o),e,r)},function(t,i){var r=o(n,t,this,i);if(r.done)return r.value;var c=e(t),u=String(this),f="function"==typeof i;f||(i=String(i));var d=c.global;if(d){var p=c.unicode;c.lastIndex=0}for(var v=[];;){var y=L(c,u);if(null===y)break;if(v.push(y),!d)break;""===String(y[0])&&(c.lastIndex=h(u,l(c.lastIndex),p))}for(var b,g="",m=0,x=0;x<v.length;x++){y=v[x];for(var E=String(y[0]),w=it(rt(s(y.index),u.length),0),_=[],O=1;O<y.length;O++)_.push(void 0===(b=y[O])?b:String(b));var S=y.groups;if(f){var k=[E].concat(_,w,u);void 0!==S&&k.push(S);var A=String(i.apply(void 0,k))}else A=a(E,u,w,_,S,i);w>=m&&(g+=u.slice(m,w)+A,m=w+E.length)}return g+u.slice(m)}];function a(t,e,i,o,s,a){var l=i+t.length,c=o.length,u=st;return void 0!==s&&(s=r(s),u=ot),n.call(a,u,function(r,n){var a;switch(n.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":a=s[n.slice(1,-1)];break;default:var u=+n;if(0===u)return r;if(u>c){var h=nt(u/10);return 0===h?r:h<=c?void 0===o[h-1]?n.charAt(1):o[h-1]+n.charAt(1):r}a=o[u-1]}return void 0===a?"":a})}});var at=H.f,lt=Function.prototype,ct=/^\s*function ([^ (]*)/;"name"in lt||D&&at(lt,"name",{configurable:!0,get:function(){try{return(""+this).match(ct)[1]}catch(t){return""}}}),et("match",1,function(t,i,r,n){return[function(e){var r=t(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,r):new RegExp(e)[i](String(r))},function(t){var i=n(r,t,this);if(i.done)return i.value;var o=e(t),s=String(this);if(!o.global)return L(o,s);var a=o.unicode;o.lastIndex=0;for(var c,u=[],f=0;null!==(c=L(o,s));){var d=String(c[0]);u[f]=d,""===d&&(o.lastIndex=h(s,l(o.lastIndex),a)),f++}return 0===f?null:u}]});var ut=O("unscopables"),ht=Array.prototype;null==ht[ut]&&$(ht,ut,{});var ft,dt=function(t){ht[ut][t]=!0},pt=function(t,e){return{value:e,done:!!t}},vt={},yt=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==d(t)?t.split(""):Object(t)},bt=function(t){return yt(i(t))},gt=Math.max,mt=Math.min,xt=x("keys"),Et=function(t){return xt[t]||(xt[t]=_(t))},wt=(ft=!1,function(t,e,i){var r,n=bt(t),o=l(n.length),a=function(t,e){return(t=s(t))<0?gt(t+e,0):mt(t,e)}(i,o);if(ft&&e!=e){for(;o>a;)if((r=n[a++])!=r)return!0}else for(;o>a;a++)if((ft||a in n)&&n[a]===e)return ft||a||0;return!ft&&-1}),_t=Et("IE_PROTO"),Ot="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),St=Object.keys||function(t){return function(t,e){var i,r=bt(t),n=0,o=[];for(i in r)i!=_t&&Y(r,i)&&o.push(i);for(;e.length>n;)Y(r,i=e[n++])&&(~wt(o,i)||o.push(i));return o}(t,Ot)},kt=D?Object.defineProperties:function(t,i){e(t);for(var r,n=St(i),o=n.length,s=0;o>s;)H.f(t,r=n[s++],i[r]);return t},At=m.document,Mt=At&&At.documentElement,Lt=Et("IE_PROTO"),Tt=function(){},jt=function(){var t,e=P("iframe"),i=Ot.length;for(e.style.display="none",Mt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),jt=t.F;i--;)delete jt.prototype[Ot[i]];return jt()},Rt=Object.create||function(t,i){var r;return null!==t?(Tt.prototype=e(t),r=new Tt,Tt.prototype=null,r[Lt]=t):r=jt(),void 0===i?r:kt(r,i)},Nt=H.f,Wt=O("toStringTag"),Ct=function(t,e,i){t&&!Y(t=i?t:t.prototype,Wt)&&Nt(t,Wt,{configurable:!0,value:e})},zt={};$(zt,O("iterator"),function(){return this});var Dt=function(t,e,i){t.prototype=Rt(zt,{next:q(1,i)}),Ct(t,e+" Iterator")},Vt=Et("IE_PROTO"),Bt=Object.prototype,Pt=Object.getPrototypeOf||function(t){return t=r(t),Y(t,Vt)?t[Vt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Bt:null},Ft=O("iterator"),It=!([].keys&&"next"in[].keys()),Ht=function(){return this},qt=function(t,e,i,r,n,o,s){Dt(i,e,r);var a,l,c,u=function(t){if(!It&&t in p)return p[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},h=e+" Iterator",f="values"==n,d=!1,p=t.prototype,v=p[Ft]||p["@@iterator"]||n&&p[n],y=v||u(n),b=n?f?u("entries"):y:void 0,g="Array"==e&&p.entries||v;if(g&&(c=Pt(g.call(new t)))!==Object.prototype&&c.next&&(Ct(c,h,!0),"function"!=typeof c[Ft]&&$(c,Ft,Ht)),f&&v&&"values"!==v.name&&(d=!0,y=function(){return v.call(this)}),(It||d||!p[Ft])&&$(p,Ft,y),vt[e]=y,vt[h]=Ht,n)if(a={values:f?y:u("values"),keys:o?y:u("keys"),entries:b},s)for(l in a)l in p||G(p,l,a[l]);else K(K.P+K.F*(It||d),e,a);return a},$t=qt(Array,"Array",function(t,e){this._t=bt(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,pt(1)):pt(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])},"values");vt.Arguments=vt.Array,dt("keys"),dt("values"),dt("entries");for(var Xt=O("iterator"),Yt=O("toStringTag"),Gt=vt.Array,Ut={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},Jt=St(Ut),Kt=0;Kt<Jt.length;Kt++){var Qt,Zt=Jt[Kt],te=Ut[Zt],ee=m[Zt],ie=ee&&ee.prototype;if(ie&&(ie[Xt]||$(ie,Xt,Gt),ie[Yt]||$(ie,Yt,Zt),vt[Zt]=Gt,te))for(Qt in $t)ie[Qt]||G(ie,Qt,$t[Qt],!0)}var re=c(!0);qt(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=re(e,i),this._i+=t.length,{value:t,done:!1})});var ne=function(t,i,r,n){try{return n?i(e(r)[0],r[1]):i(r)}catch(i){var o=t.return;throw void 0!==o&&e(o.call(t)),i}},oe=O("iterator"),se=Array.prototype,ae=function(t,e,i){e in t?H.f(t,e,q(0,i)):t[e]=i},le=O("iterator"),ce=g.getIteratorMethod=function(t){if(null!=t)return t[le]||t["@@iterator"]||vt[A(t)]},ue=O("iterator"),he=!1;try{[7][ue]().return=function(){he=!0}}catch(t){}function fe(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function de(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function pe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}))),r.forEach(function(e){de(t,e,i[e])})}return t}K(K.S+K.F*!function(t,e){if(!e&&!he)return!1;var i=!1;try{var r=[7],n=r[ue]();n.next=function(){return{done:i=!0}},r[ue]=function(){return n},t(r)}catch(t){}return i}(function(t){}),"Array",{from:function(t){var e,i,n,o,s,a=r(t),c="function"==typeof this?this:Array,u=arguments.length,h=u>1?arguments[1]:void 0,f=void 0!==h,d=0,p=ce(a);if(f&&(h=U(h,u>2?arguments[2]:void 0,2)),null!=p&&(c!=Array||(void 0===(s=p)||vt.Array!==s&&se[oe]!==s)))for(o=p.call(a),i=new c;!(n=o.next()).done;d++)ae(i,d,f?ne(o,h,[n.value,d],!0):n.value);else for(i=new c(e=l(a.length));e>d;d++)ae(i,d,f?h(a[d],d):a[d]);return i.length=d,i}});var ve=v(function(t,e){t.exports=function(){if("undefined"==typeof document)return 0;var t,e=document.body,i=document.createElement("div"),r=i.style;return r.position="absolute",r.top=r.left="-9999px",r.width=r.height="100px",r.overflow="scroll",e.appendChild(i),t=i.offsetWidth-i.clientWidth,e.removeChild(i),t}}),ye="Expected a function",be=NaN,ge="[object Symbol]",me=/^\s+|\s+$/g,xe=/^[-+]0x[0-9a-f]+$/i,Ee=/^0b[01]+$/i,we=/^0o[0-7]+$/i,_e=parseInt,Oe="object"==typeof p&&p&&p.Object===Object&&p,Se="object"==typeof self&&self&&self.Object===Object&&self,ke=Oe||Se||Function("return this")(),Ae=Object.prototype.toString,Me=Math.max,Le=Math.min,Te=function(){return ke.Date.now()};function je(t,e,i){var r,n,o,s,a,l,c=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(ye);function d(e){var i=r,o=n;return r=n=void 0,c=e,s=t.apply(o,i)}function p(t){var i=t-l;return void 0===l||i>=e||i<0||h&&t-c>=o}function v(){var t=Te();if(p(t))return y(t);a=setTimeout(v,function(t){var i=e-(t-l);return h?Le(i,o-(t-c)):i}(t))}function y(t){return a=void 0,f&&r?d(t):(r=n=void 0,s)}function b(){var t=Te(),i=p(t);if(r=arguments,n=this,l=t,i){if(void 0===a)return function(t){return c=t,a=setTimeout(v,e),u?d(t):s}(l);if(h)return a=setTimeout(v,e),d(l)}return void 0===a&&(a=setTimeout(v,e)),s}return e=Ne(e)||0,Re(i)&&(u=!!i.leading,o=(h="maxWait"in i)?Me(Ne(i.maxWait)||0,e):o,f="trailing"in i?!!i.trailing:f),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=n=a=void 0},b.flush=function(){return void 0===a?s:y(Te())},b}function Re(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Ne(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&Ae.call(t)==ge}(t))return be;if(Re(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Re(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(me,"");var i=Ee.test(t);return i||we.test(t)?_e(t.slice(2),i?2:8):xe.test(t)?be:+t}var We=function(t,e,i){var r=!0,n=!0;if("function"!=typeof t)throw new TypeError(ye);return Re(i)&&(r="leading"in i?!!i.leading:r,n="trailing"in i?!!i.trailing:n),je(t,e,{leading:r,maxWait:e,trailing:n})},Ce="Expected a function",ze=NaN,De="[object Symbol]",Ve=/^\s+|\s+$/g,Be=/^[-+]0x[0-9a-f]+$/i,Pe=/^0b[01]+$/i,Fe=/^0o[0-7]+$/i,Ie=parseInt,He="object"==typeof p&&p&&p.Object===Object&&p,qe="object"==typeof self&&self&&self.Object===Object&&self,$e=He||qe||Function("return this")(),Xe=Object.prototype.toString,Ye=Math.max,Ge=Math.min,Ue=function(){return $e.Date.now()};function Je(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Ke(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&Xe.call(t)==De}(t))return ze;if(Je(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Je(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ve,"");var i=Pe.test(t);return i||Fe.test(t)?Ie(t.slice(2),i?2:8):Be.test(t)?ze:+t}var Qe=function(t,e,i){var r,n,o,s,a,l,c=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(Ce);function d(e){var i=r,o=n;return r=n=void 0,c=e,s=t.apply(o,i)}function p(t){var i=t-l;return void 0===l||i>=e||i<0||h&&t-c>=o}function v(){var t=Ue();if(p(t))return y(t);a=setTimeout(v,function(t){var i=e-(t-l);return h?Ge(i,o-(t-c)):i}(t))}function y(t){return a=void 0,f&&r?d(t):(r=n=void 0,s)}function b(){var t=Ue(),i=p(t);if(r=arguments,n=this,l=t,i){if(void 0===a)return function(t){return c=t,a=setTimeout(v,e),u?d(t):s}(l);if(h)return a=setTimeout(v,e),d(l)}return void 0===a&&(a=setTimeout(v,e)),s}return e=Ke(e)||0,Je(i)&&(u=!!i.leading,o=(h="maxWait"in i)?Ye(Ke(i.maxWait)||0,e):o,f="trailing"in i?!!i.trailing:f),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=n=a=void 0},b.flush=function(){return void 0===a?s:y(Ue())},b},Ze="Expected a function",ti="__lodash_hash_undefined__",ei="[object Function]",ii="[object GeneratorFunction]",ri=/^\[object .+?Constructor\]$/,ni="object"==typeof p&&p&&p.Object===Object&&p,oi="object"==typeof self&&self&&self.Object===Object&&self,si=ni||oi||Function("return this")();var ai,li=Array.prototype,ci=Function.prototype,ui=Object.prototype,hi=si["__core-js_shared__"],fi=(ai=/[^.]+$/.exec(hi&&hi.keys&&hi.keys.IE_PROTO||""))?"Symbol(src)_1."+ai:"",di=ci.toString,pi=ui.hasOwnProperty,vi=ui.toString,yi=RegExp("^"+di.call(pi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bi=li.splice,gi=ki(si,"Map"),mi=ki(Object,"create");function xi(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function Ei(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function wi(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function _i(t,e){for(var i,r,n=t.length;n--;)if((i=t[n][0])===(r=e)||i!=i&&r!=r)return n;return-1}function Oi(t){return!(!Mi(t)||(e=t,fi&&fi in e))&&(function(t){var e=Mi(t)?vi.call(t):"";return e==ei||e==ii}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?yi:ri).test(function(t){if(null!=t){try{return di.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function Si(t,e){var i,r,n=t.__data__;return("string"==(r=typeof(i=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?n["string"==typeof e?"string":"hash"]:n.map}function ki(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return Oi(i)?i:void 0}function Ai(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(Ze);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s),s};return i.cache=new(Ai.Cache||wi),i}function Mi(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}xi.prototype.clear=function(){this.__data__=mi?mi(null):{}},xi.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},xi.prototype.get=function(t){var e=this.__data__;if(mi){var i=e[t];return i===ti?void 0:i}return pi.call(e,t)?e[t]:void 0},xi.prototype.has=function(t){var e=this.__data__;return mi?void 0!==e[t]:pi.call(e,t)},xi.prototype.set=function(t,e){return this.__data__[t]=mi&&void 0===e?ti:e,this},Ei.prototype.clear=function(){this.__data__=[]},Ei.prototype.delete=function(t){var e=this.__data__,i=_i(e,t);return!(i<0||(i==e.length-1?e.pop():bi.call(e,i,1),0))},Ei.prototype.get=function(t){var e=this.__data__,i=_i(e,t);return i<0?void 0:e[i][1]},Ei.prototype.has=function(t){return _i(this.__data__,t)>-1},Ei.prototype.set=function(t,e){var i=this.__data__,r=_i(i,t);return r<0?i.push([t,e]):i[r][1]=e,this},wi.prototype.clear=function(){this.__data__={hash:new xi,map:new(gi||Ei),string:new xi}},wi.prototype.delete=function(t){return Si(this,t).delete(t)},wi.prototype.get=function(t){return Si(this,t).get(t)},wi.prototype.has=function(t){return Si(this,t).has(t)},wi.prototype.set=function(t,e){return Si(this,t).set(t,e),this},Ai.Cache=wi;var Li=Ai,Ti=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,r){return t[0]===e&&(i=r,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),r=this.__entries__[i];return r&&r[1]},e.prototype.set=function(e,i){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,r=t(i,e);~r&&i.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,r=this.__entries__;i<r.length;i++){var n=r[i];t.call(e,n[1],n[0])}},e}()}(),ji="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Ri="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Ni="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ri):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},Wi=2;var Ci=20,zi=["top","right","bottom","left","width","height","size","weight"],Di="undefined"!=typeof MutationObserver,Vi=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var i=!1,r=!1,n=0;function o(){i&&(i=!1,t()),r&&a()}function s(){Ni(o)}function a(){var t=Date.now();if(i){if(t-n<Wi)return;r=!0}else i=!0,r=!1,setTimeout(s,e);n=t}return a}(this.refresh.bind(this),Ci)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,i=e.indexOf(t);~i&&e.splice(i,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){ji&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Di?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){ji&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;zi.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Bi=function(t,e){for(var i=0,r=Object.keys(e);i<r.length;i++){var n=r[i];Object.defineProperty(t,n,{value:e[n],enumerable:!1,writable:!1,configurable:!0})}return t},Pi=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||Ri},Fi=Yi(0,0,0,0);function Ii(t){return parseFloat(t)||0}function Hi(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return e.reduce(function(e,i){return e+Ii(t["border-"+i+"-width"])},0)}function qi(t){var e=t.clientWidth,i=t.clientHeight;if(!e&&!i)return Fi;var r=Pi(t).getComputedStyle(t),n=function(t){for(var e={},i=0,r=["top","right","bottom","left"];i<r.length;i++){var n=r[i],o=t["padding-"+n];e[n]=Ii(o)}return e}(r),o=n.left+n.right,s=n.top+n.bottom,a=Ii(r.width),l=Ii(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==e&&(a-=Hi(r,"left","right")+o),Math.round(l+s)!==i&&(l-=Hi(r,"top","bottom")+s)),!function(t){return t===Pi(t).document.documentElement}(t)){var c=Math.round(a+o)-e,u=Math.round(l+s)-i;1!==Math.abs(c)&&(a-=c),1!==Math.abs(u)&&(l-=u)}return Yi(n.left,n.top,a,l)}var $i="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof Pi(t).SVGGraphicsElement}:function(t){return t instanceof Pi(t).SVGElement&&"function"==typeof t.getBBox};function Xi(t){return ji?$i(t)?function(t){var e=t.getBBox();return Yi(0,0,e.width,e.height)}(t):qi(t):Fi}function Yi(t,e,i,r){return{x:t,y:e,width:i,height:r}}var Gi=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Yi(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=Xi(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),Ui=function(){return function(t,e){var i,r,n,o,s,a,l,c=(r=(i=e).x,n=i.y,o=i.width,s=i.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),Bi(l,{x:r,y:n,width:o,height:s,top:n,right:r+o,bottom:s+n,left:r}),l);Bi(this,{target:t,contentRect:c})}}(),Ji=function(){function t(t,e,i){if(this.activeObservations_=[],this.observations_=new Ti,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=i}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Pi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Gi(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Pi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new Ui(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Ki="undefined"!=typeof WeakMap?new WeakMap:new Ti,Qi=function(){return function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Vi.getInstance(),r=new Ji(e,i,this);Ki.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(t){Qi.prototype[t]=function(){var e;return(e=Ki.get(this))[t].apply(e,arguments)}});var Zi=void 0!==Ri.ResizeObserver?Ri.ResizeObserver:Qi,tr=!("undefined"==typeof window||!window.document||!window.document.createElement),er=function(){function t(e,i){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.onScroll=function(){r.scrollXTicking||(window.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(window.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x")),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y")),r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x"),r.showScrollbar("y")},this.onMouseMove=function(t){r.mouseX=t.clientX,r.mouseY=t.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=ve(),r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1),r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(t){var e,i;r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(i=r.isWithinBounds(r.axis.x.scrollbar.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(e=r.isWithinBounds(r.axis.y.scrollbar.rect)),(e||i)&&(t.preventDefault(),t.stopPropagation(),"mousedown"===t.type&&(e&&r.onDragStart(t,"y"),i&&r.onDragStart(t,"x")))},this.drag=function(e){var i=r.axis[r.draggedAxis].track,n=i.rect[r.axis[r.draggedAxis].sizeAttr],o=r.axis[r.draggedAxis].scrollbar;e.preventDefault(),e.stopPropagation();var s=(("y"===r.draggedAxis?e.pageY:e.pageX)-i.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset)/i.rect[r.axis[r.draggedAxis].sizeAttr]*r.contentEl[r.axis[r.draggedAxis].scrollSizeAttr];"x"===r.draggedAxis&&(s=r.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?s-(n+o.size):s,s=r.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-s:s),r.contentEl[r.axis[r.draggedAxis].scrollOffsetAttr]=s},this.onEndDrag=function(t){t.preventDefault(),t.stopPropagation(),r.el.classList.remove(r.classNames.dragging),document.removeEventListener("mousemove",r.drag),document.removeEventListener("mouseup",r.onEndDrag)},this.el=e,this.flashTimeout,this.contentEl,this.offsetEl,this.maskEl,this.globalObserver,this.mutationObserver,this.resizeObserver,this.scrollbarWidth,this.minScrollbarWidth=20,this.options=pe({},t.defaultOptions,i),this.classNames=pe({},t.defaultOptions.classNames,this.options.classNames),this.isRtl,this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.recalculate=We(this.recalculate.bind(this),64),this.onMouseMove=We(this.onMouseMove.bind(this),64),this.hideScrollbars=Qe(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=Qe(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=Li(t.getRtlHelpers),this.getContentElement=this.getScrollElement,this.init()}var e,i,r;return e=t,r=[{key:"getRtlHelpers",value:function(){var e=document.createElement("div");e.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var i=e.firstElementChild;document.body.appendChild(i);var r=i.firstElementChild;i.scrollLeft=0;var n=t.getOffset(i),o=t.getOffset(r);i.scrollLeft=999;var s=t.getOffset(r);return{isRtlScrollingInverted:n.left!==o.left&&o.left-s.left!=0,isRtlScrollbarInverted:n.left!==o.left}}},{key:"initHtmlApi",value:function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(function(e){e.forEach(function(e){Array.from(e.addedNodes).forEach(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?!e.SimpleBar&&new t(e,t.getElOptions(e)):Array.from(e.querySelectorAll("[data-simplebar]")).forEach(function(e){!e.SimpleBar&&new t(e,t.getElOptions(e))}))}),Array.from(e.removedNodes).forEach(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?t.SimpleBar&&t.SimpleBar.unMount():Array.from(t.querySelectorAll("[data-simplebar]")).forEach(function(t){t.SimpleBar&&t.SimpleBar.unMount()}))})})}),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))}},{key:"getElOptions",value:function(t){return Array.from(t.attributes).reduce(function(t,e){var i=e.name.match(/data-simplebar-(.+)/);if(i){var r=i[1].replace(/\W+(.)/g,function(t,e){return e.toUpperCase()});switch(e.value){case"true":t[r]=!0;break;case"false":t[r]=!1;break;case void 0:t[r]=!0;break;default:t[r]=e.value}}return t},{})}},{key:"removeObserver",value:function(){this.globalObserver.disconnect()}},{key:"initDOMLoadedElements",value:function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.from(document.querySelectorAll("[data-simplebar]")).forEach(function(e){e.SimpleBar||new t(e,t.getElOptions(e))})}},{key:"getOffset",value:function(t){var e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft)}}}],(i=[{key:"init",value:function(){this.el.SimpleBar=this,tr&&(this.initDOM(),this.scrollbarWidth=ve(),this.recalculate(),this.initListeners())}},{key:"initDOM",value:function(){var t=this;if(Array.from(this.el.children).filter(function(e){return e.classList.contains(t.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector(".".concat(this.classNames.wrapper)),this.contentEl=this.el.querySelector(".".concat(this.classNames.content)),this.offsetEl=this.el.querySelector(".".concat(this.classNames.offset)),this.maskEl=this.el.querySelector(".".concat(this.classNames.mask)),this.placeholderEl=this.el.querySelector(".".concat(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(".".concat(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(".".concat(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.el.querySelector(".".concat(this.classNames.track,".").concat(this.classNames.horizontal)),this.axis.y.track.el=this.el.querySelector(".".concat(this.classNames.track,".").concat(this.classNames.vertical));else{for(this.wrapperEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentEl.classList.add(this.classNames.content),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.offsetEl.appendChild(this.contentEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var e=document.createElement("div"),i=document.createElement("div");e.classList.add(this.classNames.track),i.classList.add(this.classNames.scrollbar),this.options.autoHide||i.classList.add(this.classNames.visible),e.appendChild(i),this.axis.x.track.el=e.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=e.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector(".".concat(this.classNames.scrollbar)),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector(".".concat(this.classNames.scrollbar)),this.el.setAttribute("data-simplebar","init")}},{key:"initListeners",value:function(){var t=this;this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick","touchstart","touchend","touchmove"].forEach(function(e){t.el.addEventListener(e,t.onPointerEvent,!0)}),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentEl.addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.onWindowResize),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver(function(e){e.forEach(function(e){(e.target===t.el||!t.isChildNode(e.target)||e.addedNodes.length||e.removedNodes.length)&&t.recalculate()})}),this.mutationObserver.observe(this.el,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this.resizeObserver=new Zi(this.recalculate),this.resizeObserver.observe(this.el)}},{key:"recalculate",value:function(){var t=this.heightAutoObserverEl.offsetHeight<=1;this.elStyles=window.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction,this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.contentEl.style.height=t?"auto":"100%",this.placeholderEl.style.width="".concat(this.contentEl.scrollWidth,"px"),this.placeholderEl.style.height="".concat(this.contentEl.scrollHeight,"px"),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft),this.axis.x.track.rect=this.axis.x.track.el.getBoundingClientRect(),this.axis.y.track.rect=this.axis.y.track.el.getBoundingClientRect(),this.axis.x.isOverflowing=(this.scrollbarWidth?this.contentEl.scrollWidth:this.contentEl.scrollWidth-this.minScrollbarWidth)>Math.ceil(this.axis.x.track.rect.width),this.axis.y.isOverflowing=(this.scrollbarWidth?this.contentEl.scrollHeight:this.contentEl.scrollHeight-this.minScrollbarWidth)>Math.ceil(this.axis.y.track.rect.height),this.axis.x.isOverflowing="hidden"!==this.elStyles.overflowX&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==this.elStyles.overflowY&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px"),this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px"),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y"),this.hideNativeScrollbar()}},{key:"getScrollbarSize",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",i=this.scrollbarWidth?this.contentEl[this.axis[e].scrollSizeAttr]:this.contentEl[this.axis[e].scrollSizeAttr]-this.minScrollbarWidth,r=this.axis[e].track.rect[this.axis[e].sizeAttr];if(this.axis[e].isOverflowing){var n=r/i;return t=Math.max(~~(n*r),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t}}},{key:"positionScrollbar",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",i=this.contentEl[this.axis[e].scrollSizeAttr],r=this.axis[e].track.rect[this.axis[e].sizeAttr],n=parseInt(this.elStyles[this.axis[e].sizeAttr],10),o=this.axis[e].scrollbar,s=this.contentEl[this.axis[e].scrollOffsetAttr],a=(s="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-s:s)/(i-n),l=~~((r-o.size)*a);l="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?l+(r-o.size):l,o.el.style.transform="x"===e?"translate3d(".concat(l,"px, 0, 0)"):"translate3d(0, ".concat(l,"px, 0)")}},{key:"toggleTrackVisibility",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",e=this.axis[t].track.el,i=this.axis[t].scrollbar.el;this.axis[t].isOverflowing||this.axis[t].forceVisible?(e.style.visibility="visible",this.contentEl.style[this.axis[t].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentEl.style[this.axis[t].overflowAttr]="hidden"),this.axis[t].isOverflowing?i.style.visibility="visible":i.style.visibility="hidden"}},{key:"hideNativeScrollbar",value:function(){if(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth||this.minScrollbarWidth,"px"):0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth||this.minScrollbarWidth,"px"):0,!this.scrollbarWidth){var t=[this.isRtl?"paddingLeft":"paddingRight"];this.contentEl.style[t]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"calc(".concat(this.elStyles[t]," + ").concat(this.minScrollbarWidth,"px)"):this.elStyles[t],this.contentEl.style.paddingBottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"calc(".concat(this.elStyles.paddingBottom," + ").concat(this.minScrollbarWidth,"px)"):this.elStyles.paddingBottom}}},{key:"onMouseMoveForAxis",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.axis[t].track.rect=this.axis[t].track.el.getBoundingClientRect(),this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[t].scrollbar.rect)?this.axis[t].scrollbar.el.classList.add(this.classNames.hover):this.axis[t].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[t].track.rect)?(this.showScrollbar(t),this.axis[t].track.el.classList.add(this.classNames.hover)):this.axis[t].track.el.classList.remove(this.classNames.hover)}},{key:"onMouseLeaveForAxis",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.axis[t].track.el.classList.remove(this.classNames.hover),this.axis[t].scrollbar.el.classList.remove(this.classNames.hover)}},{key:"showScrollbar",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",e=this.axis[t].scrollbar.el;this.axis[t].isVisible||(e.classList.add(this.classNames.visible),this.axis[t].isVisible=!0),this.options.autoHide&&this.hideScrollbars()}},{key:"onDragStart",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",i=this.axis[e].scrollbar.el,r="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=r-i.getBoundingClientRect()[this.axis[e].offsetAttr],this.draggedAxis=e,this.el.classList.add(this.classNames.dragging),document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.onEndDrag)}},{key:"getScrollElement",value:function(){return this.contentEl}},{key:"removeListeners",value:function(){var t=this;this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick","touchstart","touchend","touchmove"].forEach(function(e){t.el.removeEventListener(e,t.onPointerEvent)}),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentEl.removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()}},{key:"unMount",value:function(){this.removeListeners(),this.el.SimpleBar=null}},{key:"isChildNode",value:function(t){return null!==t&&(t===this.el||this.isChildNode(t.parentNode))}},{key:"isWithinBounds",value:function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height}}])&&fe(e.prototype,i),r&&fe(e,r),t}();return er.defaultOptions={autoHide:!0,forceVisible:!1,classNames:{content:"simplebar-content",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},tr&&er.initHtmlApi(),er});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).SimpleBar=e()}(this,function(){"use strict";var t=function(t){return"object"==typeof t?null!==t:"function"==typeof t},e=function(e){if(!t(e))throw TypeError(e+" is not an object!");return e},i=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},r=function(t){return Object(i(t))},n=Math.ceil,o=Math.floor,s=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)},a=Math.min,l=function(t){return t>0?a(s(t),9007199254740991):0},c=function(t){return function(e,r){var n,o,a=String(i(e)),l=s(r),c=a.length;return l<0||l>=c?t?"":void 0:(n=a.charCodeAt(l))<55296||n>56319||l+1===c||(o=a.charCodeAt(l+1))<56320||o>57343?t?a.charAt(l):n:t?a.slice(l,l+2):o-56320+(n-55296<<10)+65536}},u=c(!0),h=function(t,e,i){return e+(i?u(t,e).length:1)},f={}.toString,d=function(t){return f.call(t).slice(8,-1)},p="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(t,e){return t(e={exports:{}},e.exports),e.exports}var y,b,g=v(function(t){var e=t.exports={version:"2.6.2"};"number"==typeof __e&&(__e=e)}),m=(g.version,v(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)})),x=v(function(t){var e=m["__core-js_shared__"]||(m["__core-js_shared__"]={});(t.exports=function(t,i){return e[t]||(e[t]=void 0!==i?i:{})})("versions",[]).push({version:g.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),E=0,w=Math.random(),_=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++E+w).toString(36))},O=v(function(t){var e=x("wks"),i=m.Symbol,r="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=r&&i[t]||(r?i:_)("Symbol."+t))}).store=e}),S=O("toStringTag"),k="Arguments"==d(function(){return arguments}()),A=function(t){var e,i,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),S))?i:k?d(e):"Object"==(r=d(e))&&"function"==typeof e.callee?"Arguments":r},M=RegExp.prototype.exec,L=function(t,e){var i=t.exec;if("function"==typeof i){var r=i.call(t,e);if("object"!=typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==A(t))throw new TypeError("RegExp#exec called on incompatible receiver");return M.call(t,e)},T=RegExp.prototype.exec,j=String.prototype.replace,R=T,N=(y=/a/,b=/b*/g,T.call(y,"a"),T.call(b,"a"),0!==y.lastIndex||0!==b.lastIndex),W=void 0!==/()??/.exec("")[1];(N||W)&&(R=function(t){var i,r,n,o,s=this;return W&&(r=new RegExp("^"+s.source+"$(?!\\s)",function(){var t=e(this),i="";return t.global&&(i+="g"),t.ignoreCase&&(i+="i"),t.multiline&&(i+="m"),t.unicode&&(i+="u"),t.sticky&&(i+="y"),i}.call(s))),N&&(i=s.lastIndex),n=T.call(s,t),N&&n&&(s.lastIndex=s.global?n.index+n[0].length:i),W&&n&&n.length>1&&j.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n});var C=R,z=function(t){try{return!!t()}catch(t){return!0}},D=!z(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),V=m.document,B=t(V)&&t(V.createElement),P=function(t){return B?V.createElement(t):{}},F=!D&&!z(function(){return 7!=Object.defineProperty(P("div"),"a",{get:function(){return 7}}).a}),I=Object.defineProperty,H={f:D?Object.defineProperty:function(i,r,n){if(e(i),r=function(e,i){if(!t(e))return e;var r,n;if(i&&"function"==typeof(r=e.toString)&&!t(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!t(n=r.call(e)))return n;if(!i&&"function"==typeof(r=e.toString)&&!t(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")}(r,!0),e(n),F)try{return I(i,r,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(i[r]=n.value),i}},q=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},$=D?function(t,e,i){return H.f(t,e,q(1,i))}:function(t,e,i){return t[e]=i,t},X={}.hasOwnProperty,Y=function(t,e){return X.call(t,e)},G=v(function(t){var e=_("src"),i=Function.toString,r=(""+i).split("toString");g.inspectSource=function(t){return i.call(t)},(t.exports=function(t,i,n,o){var s="function"==typeof n;s&&(Y(n,"name")||$(n,"name",i)),t[i]!==n&&(s&&(Y(n,e)||$(n,e,t[i]?""+t[i]:r.join(String(i)))),t===m?t[i]=n:o?t[i]?t[i]=n:$(t,i,n):(delete t[i],$(t,i,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[e]||i.call(this)})}),U=function(t,e,i){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,r){return t.call(e,i,r)};case 3:return function(i,r,n){return t.call(e,i,r,n)}}return function(){return t.apply(e,arguments)}},J=function(t,e,i){var r,n,o,s,a=t&J.F,l=t&J.G,c=t&J.S,u=t&J.P,h=t&J.B,f=l?m:c?m[e]||(m[e]={}):(m[e]||{}).prototype,d=l?g:g[e]||(g[e]={}),p=d.prototype||(d.prototype={});for(r in l&&(i=e),i)o=((n=!a&&f&&void 0!==f[r])?f:i)[r],s=h&&n?U(o,m):u&&"function"==typeof o?U(Function.call,o):o,f&&G(f,r,o,t&J.U),d[r]!=o&&$(d,r,s),u&&p[r]!=o&&(p[r]=o)};m.core=g,J.F=1,J.G=2,J.S=4,J.P=8,J.B=16,J.W=32,J.U=64,J.R=128;var K=J;K({target:"RegExp",proto:!0,forced:C!==/./.exec},{exec:C});var Q=O("species"),Z=!z(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),tt=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}(),et=function(t,e,r){var n=O(t),o=!z(function(){var e={};return e[n]=function(){return 7},7!=""[t](e)}),s=o?!z(function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[Q]=function(){return i}),i[n](""),!e}):void 0;if(!o||!s||"replace"===t&&!Z||"split"===t&&!tt){var a=/./[n],l=r(i,n,""[t],function(t,e,i,r,n){return e.exec===C?o&&!n?{done:!0,value:a.call(e,i,r)}:{done:!0,value:t.call(i,e,r)}:{done:!1}}),c=l[0],u=l[1];G(String.prototype,t,c),$(RegExp.prototype,n,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}},it=Math.max,rt=Math.min,nt=Math.floor,ot=/\$([$&`']|\d\d?|<[^>]*>)/g,st=/\$([$&`']|\d\d?)/g;et("replace",2,function(t,i,n,o){return[function(e,r){var o=t(this),s=null==e?void 0:e[i];return void 0!==s?s.call(e,o,r):n.call(String(o),e,r)},function(t,i){var r=o(n,t,this,i);if(r.done)return r.value;var c=e(t),u=String(this),f="function"==typeof i;f||(i=String(i));var d=c.global;if(d){var p=c.unicode;c.lastIndex=0}for(var v=[];;){var y=L(c,u);if(null===y)break;if(v.push(y),!d)break;""===String(y[0])&&(c.lastIndex=h(u,l(c.lastIndex),p))}for(var b,g="",m=0,x=0;x<v.length;x++){y=v[x];for(var E=String(y[0]),w=it(rt(s(y.index),u.length),0),_=[],O=1;O<y.length;O++)_.push(void 0===(b=y[O])?b:String(b));var S=y.groups;if(f){var k=[E].concat(_,w,u);void 0!==S&&k.push(S);var A=String(i.apply(void 0,k))}else A=a(E,u,w,_,S,i);w>=m&&(g+=u.slice(m,w)+A,m=w+E.length)}return g+u.slice(m)}];function a(t,e,i,o,s,a){var l=i+t.length,c=o.length,u=st;return void 0!==s&&(s=r(s),u=ot),n.call(a,u,function(r,n){var a;switch(n.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":a=s[n.slice(1,-1)];break;default:var u=+n;if(0===u)return r;if(u>c){var h=nt(u/10);return 0===h?r:h<=c?void 0===o[h-1]?n.charAt(1):o[h-1]+n.charAt(1):r}a=o[u-1]}return void 0===a?"":a})}});var at=H.f,lt=Function.prototype,ct=/^\s*function ([^ (]*)/;"name"in lt||D&&at(lt,"name",{configurable:!0,get:function(){try{return(""+this).match(ct)[1]}catch(t){return""}}}),et("match",1,function(t,i,r,n){return[function(e){var r=t(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,r):new RegExp(e)[i](String(r))},function(t){var i=n(r,t,this);if(i.done)return i.value;var o=e(t),s=String(this);if(!o.global)return L(o,s);var a=o.unicode;o.lastIndex=0;for(var c,u=[],f=0;null!==(c=L(o,s));){var d=String(c[0]);u[f]=d,""===d&&(o.lastIndex=h(s,l(o.lastIndex),a)),f++}return 0===f?null:u}]});var ut=O("unscopables"),ht=Array.prototype;null==ht[ut]&&$(ht,ut,{});var ft,dt=function(t){ht[ut][t]=!0},pt=function(t,e){return{value:e,done:!!t}},vt={},yt=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==d(t)?t.split(""):Object(t)},bt=function(t){return yt(i(t))},gt=Math.max,mt=Math.min,xt=x("keys"),Et=function(t){return xt[t]||(xt[t]=_(t))},wt=(ft=!1,function(t,e,i){var r,n=bt(t),o=l(n.length),a=function(t,e){return(t=s(t))<0?gt(t+e,0):mt(t,e)}(i,o);if(ft&&e!=e){for(;o>a;)if((r=n[a++])!=r)return!0}else for(;o>a;a++)if((ft||a in n)&&n[a]===e)return ft||a||0;return!ft&&-1}),_t=Et("IE_PROTO"),Ot="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),St=Object.keys||function(t){return function(t,e){var i,r=bt(t),n=0,o=[];for(i in r)i!=_t&&Y(r,i)&&o.push(i);for(;e.length>n;)Y(r,i=e[n++])&&(~wt(o,i)||o.push(i));return o}(t,Ot)},kt=D?Object.defineProperties:function(t,i){e(t);for(var r,n=St(i),o=n.length,s=0;o>s;)H.f(t,r=n[s++],i[r]);return t},At=m.document,Mt=At&&At.documentElement,Lt=Et("IE_PROTO"),Tt=function(){},jt=function(){var t,e=P("iframe"),i=Ot.length;for(e.style.display="none",Mt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),jt=t.F;i--;)delete jt.prototype[Ot[i]];return jt()},Rt=Object.create||function(t,i){var r;return null!==t?(Tt.prototype=e(t),r=new Tt,Tt.prototype=null,r[Lt]=t):r=jt(),void 0===i?r:kt(r,i)},Nt=H.f,Wt=O("toStringTag"),Ct=function(t,e,i){t&&!Y(t=i?t:t.prototype,Wt)&&Nt(t,Wt,{configurable:!0,value:e})},zt={};$(zt,O("iterator"),function(){return this});var Dt=function(t,e,i){t.prototype=Rt(zt,{next:q(1,i)}),Ct(t,e+" Iterator")},Vt=Et("IE_PROTO"),Bt=Object.prototype,Pt=Object.getPrototypeOf||function(t){return t=r(t),Y(t,Vt)?t[Vt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Bt:null},Ft=O("iterator"),It=!([].keys&&"next"in[].keys()),Ht=function(){return this},qt=function(t,e,i,r,n,o,s){Dt(i,e,r);var a,l,c,u=function(t){if(!It&&t in p)return p[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},h=e+" Iterator",f="values"==n,d=!1,p=t.prototype,v=p[Ft]||p["@@iterator"]||n&&p[n],y=v||u(n),b=n?f?u("entries"):y:void 0,g="Array"==e&&p.entries||v;if(g&&(c=Pt(g.call(new t)))!==Object.prototype&&c.next&&(Ct(c,h,!0),"function"!=typeof c[Ft]&&$(c,Ft,Ht)),f&&v&&"values"!==v.name&&(d=!0,y=function(){return v.call(this)}),(It||d||!p[Ft])&&$(p,Ft,y),vt[e]=y,vt[h]=Ht,n)if(a={values:f?y:u("values"),keys:o?y:u("keys"),entries:b},s)for(l in a)l in p||G(p,l,a[l]);else K(K.P+K.F*(It||d),e,a);return a},$t=qt(Array,"Array",function(t,e){this._t=bt(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,pt(1)):pt(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])},"values");vt.Arguments=vt.Array,dt("keys"),dt("values"),dt("entries");for(var Xt=O("iterator"),Yt=O("toStringTag"),Gt=vt.Array,Ut={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},Jt=St(Ut),Kt=0;Kt<Jt.length;Kt++){var Qt,Zt=Jt[Kt],te=Ut[Zt],ee=m[Zt],ie=ee&&ee.prototype;if(ie&&(ie[Xt]||$(ie,Xt,Gt),ie[Yt]||$(ie,Yt,Zt),vt[Zt]=Gt,te))for(Qt in $t)ie[Qt]||G(ie,Qt,$t[Qt],!0)}var re=c(!0);qt(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=re(e,i),this._i+=t.length,{value:t,done:!1})});var ne=function(t,i,r,n){try{return n?i(e(r)[0],r[1]):i(r)}catch(i){var o=t.return;throw void 0!==o&&e(o.call(t)),i}},oe=O("iterator"),se=Array.prototype,ae=function(t,e,i){e in t?H.f(t,e,q(0,i)):t[e]=i},le=O("iterator"),ce=g.getIteratorMethod=function(t){if(null!=t)return t[le]||t["@@iterator"]||vt[A(t)]},ue=O("iterator"),he=!1;try{[7][ue]().return=function(){he=!0}}catch(t){}function fe(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function de(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function pe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}))),r.forEach(function(e){de(t,e,i[e])})}return t}K(K.S+K.F*!function(t,e){if(!e&&!he)return!1;var i=!1;try{var r=[7],n=r[ue]();n.next=function(){return{done:i=!0}},r[ue]=function(){return n},t(r)}catch(t){}return i}(function(t){}),"Array",{from:function(t){var e,i,n,o,s,a=r(t),c="function"==typeof this?this:Array,u=arguments.length,h=u>1?arguments[1]:void 0,f=void 0!==h,d=0,p=ce(a);if(f&&(h=U(h,u>2?arguments[2]:void 0,2)),null!=p&&(c!=Array||(void 0===(s=p)||vt.Array!==s&&se[oe]!==s)))for(o=p.call(a),i=new c;!(n=o.next()).done;d++)ae(i,d,f?ne(o,h,[n.value,d],!0):n.value);else for(i=new c(e=l(a.length));e>d;d++)ae(i,d,f?h(a[d],d):a[d]);return i.length=d,i}});var ve=v(function(t,e){t.exports=function(){if("undefined"==typeof document)return 0;var t,e=document.body,i=document.createElement("div"),r=i.style;return r.position="absolute",r.top=r.left="-9999px",r.width=r.height="100px",r.overflow="scroll",e.appendChild(i),t=i.offsetWidth-i.clientWidth,e.removeChild(i),t}}),ye="Expected a function",be=NaN,ge="[object Symbol]",me=/^\s+|\s+$/g,xe=/^[-+]0x[0-9a-f]+$/i,Ee=/^0b[01]+$/i,we=/^0o[0-7]+$/i,_e=parseInt,Oe="object"==typeof p&&p&&p.Object===Object&&p,Se="object"==typeof self&&self&&self.Object===Object&&self,ke=Oe||Se||Function("return this")(),Ae=Object.prototype.toString,Me=Math.max,Le=Math.min,Te=function(){return ke.Date.now()};function je(t,e,i){var r,n,o,s,a,l,c=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(ye);function d(e){var i=r,o=n;return r=n=void 0,c=e,s=t.apply(o,i)}function p(t){var i=t-l;return void 0===l||i>=e||i<0||h&&t-c>=o}function v(){var t=Te();if(p(t))return y(t);a=setTimeout(v,function(t){var i=e-(t-l);return h?Le(i,o-(t-c)):i}(t))}function y(t){return a=void 0,f&&r?d(t):(r=n=void 0,s)}function b(){var t=Te(),i=p(t);if(r=arguments,n=this,l=t,i){if(void 0===a)return function(t){return c=t,a=setTimeout(v,e),u?d(t):s}(l);if(h)return a=setTimeout(v,e),d(l)}return void 0===a&&(a=setTimeout(v,e)),s}return e=Ne(e)||0,Re(i)&&(u=!!i.leading,o=(h="maxWait"in i)?Me(Ne(i.maxWait)||0,e):o,f="trailing"in i?!!i.trailing:f),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=n=a=void 0},b.flush=function(){return void 0===a?s:y(Te())},b}function Re(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Ne(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&Ae.call(t)==ge}(t))return be;if(Re(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Re(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(me,"");var i=Ee.test(t);return i||we.test(t)?_e(t.slice(2),i?2:8):xe.test(t)?be:+t}var We=function(t,e,i){var r=!0,n=!0;if("function"!=typeof t)throw new TypeError(ye);return Re(i)&&(r="leading"in i?!!i.leading:r,n="trailing"in i?!!i.trailing:n),je(t,e,{leading:r,maxWait:e,trailing:n})},Ce="Expected a function",ze=NaN,De="[object Symbol]",Ve=/^\s+|\s+$/g,Be=/^[-+]0x[0-9a-f]+$/i,Pe=/^0b[01]+$/i,Fe=/^0o[0-7]+$/i,Ie=parseInt,He="object"==typeof p&&p&&p.Object===Object&&p,qe="object"==typeof self&&self&&self.Object===Object&&self,$e=He||qe||Function("return this")(),Xe=Object.prototype.toString,Ye=Math.max,Ge=Math.min,Ue=function(){return $e.Date.now()};function Je(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Ke(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&Xe.call(t)==De}(t))return ze;if(Je(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Je(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ve,"");var i=Pe.test(t);return i||Fe.test(t)?Ie(t.slice(2),i?2:8):Be.test(t)?ze:+t}var Qe=function(t,e,i){var r,n,o,s,a,l,c=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(Ce);function d(e){var i=r,o=n;return r=n=void 0,c=e,s=t.apply(o,i)}function p(t){var i=t-l;return void 0===l||i>=e||i<0||h&&t-c>=o}function v(){var t=Ue();if(p(t))return y(t);a=setTimeout(v,function(t){var i=e-(t-l);return h?Ge(i,o-(t-c)):i}(t))}function y(t){return a=void 0,f&&r?d(t):(r=n=void 0,s)}function b(){var t=Ue(),i=p(t);if(r=arguments,n=this,l=t,i){if(void 0===a)return function(t){return c=t,a=setTimeout(v,e),u?d(t):s}(l);if(h)return a=setTimeout(v,e),d(l)}return void 0===a&&(a=setTimeout(v,e)),s}return e=Ke(e)||0,Je(i)&&(u=!!i.leading,o=(h="maxWait"in i)?Ye(Ke(i.maxWait)||0,e):o,f="trailing"in i?!!i.trailing:f),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=n=a=void 0},b.flush=function(){return void 0===a?s:y(Ue())},b},Ze="Expected a function",ti="__lodash_hash_undefined__",ei="[object Function]",ii="[object GeneratorFunction]",ri=/^\[object .+?Constructor\]$/,ni="object"==typeof p&&p&&p.Object===Object&&p,oi="object"==typeof self&&self&&self.Object===Object&&self,si=ni||oi||Function("return this")();var ai,li=Array.prototype,ci=Function.prototype,ui=Object.prototype,hi=si["__core-js_shared__"],fi=(ai=/[^.]+$/.exec(hi&&hi.keys&&hi.keys.IE_PROTO||""))?"Symbol(src)_1."+ai:"",di=ci.toString,pi=ui.hasOwnProperty,vi=ui.toString,yi=RegExp("^"+di.call(pi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bi=li.splice,gi=ki(si,"Map"),mi=ki(Object,"create");function xi(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function Ei(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function wi(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function _i(t,e){for(var i,r,n=t.length;n--;)if((i=t[n][0])===(r=e)||i!=i&&r!=r)return n;return-1}function Oi(t){return!(!Mi(t)||(e=t,fi&&fi in e))&&(function(t){var e=Mi(t)?vi.call(t):"";return e==ei||e==ii}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?yi:ri).test(function(t){if(null!=t){try{return di.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function Si(t,e){var i,r,n=t.__data__;return("string"==(r=typeof(i=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?n["string"==typeof e?"string":"hash"]:n.map}function ki(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return Oi(i)?i:void 0}function Ai(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(Ze);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s),s};return i.cache=new(Ai.Cache||wi),i}function Mi(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}xi.prototype.clear=function(){this.__data__=mi?mi(null):{}},xi.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},xi.prototype.get=function(t){var e=this.__data__;if(mi){var i=e[t];return i===ti?void 0:i}return pi.call(e,t)?e[t]:void 0},xi.prototype.has=function(t){var e=this.__data__;return mi?void 0!==e[t]:pi.call(e,t)},xi.prototype.set=function(t,e){return this.__data__[t]=mi&&void 0===e?ti:e,this},Ei.prototype.clear=function(){this.__data__=[]},Ei.prototype.delete=function(t){var e=this.__data__,i=_i(e,t);return!(i<0||(i==e.length-1?e.pop():bi.call(e,i,1),0))},Ei.prototype.get=function(t){var e=this.__data__,i=_i(e,t);return i<0?void 0:e[i][1]},Ei.prototype.has=function(t){return _i(this.__data__,t)>-1},Ei.prototype.set=function(t,e){var i=this.__data__,r=_i(i,t);return r<0?i.push([t,e]):i[r][1]=e,this},wi.prototype.clear=function(){this.__data__={hash:new xi,map:new(gi||Ei),string:new xi}},wi.prototype.delete=function(t){return Si(this,t).delete(t)},wi.prototype.get=function(t){return Si(this,t).get(t)},wi.prototype.has=function(t){return Si(this,t).has(t)},wi.prototype.set=function(t,e){return Si(this,t).set(t,e),this},Ai.Cache=wi;var Li=Ai,Ti=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,r){return t[0]===e&&(i=r,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),r=this.__entries__[i];return r&&r[1]},e.prototype.set=function(e,i){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,r=t(i,e);~r&&i.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,r=this.__entries__;i<r.length;i++){var n=r[i];t.call(e,n[1],n[0])}},e}()}(),ji="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Ri="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Ni="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ri):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},Wi=2;var Ci=20,zi=["top","right","bottom","left","width","height","size","weight"],Di="undefined"!=typeof MutationObserver,Vi=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var i=!1,r=!1,n=0;function o(){i&&(i=!1,t()),r&&a()}function s(){Ni(o)}function a(){var t=Date.now();if(i){if(t-n<Wi)return;r=!0}else i=!0,r=!1,setTimeout(s,e);n=t}return a}(this.refresh.bind(this),Ci)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,i=e.indexOf(t);~i&&e.splice(i,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){ji&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Di?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){ji&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;zi.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Bi=function(t,e){for(var i=0,r=Object.keys(e);i<r.length;i++){var n=r[i];Object.defineProperty(t,n,{value:e[n],enumerable:!1,writable:!1,configurable:!0})}return t},Pi=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||Ri},Fi=Yi(0,0,0,0);function Ii(t){return parseFloat(t)||0}function Hi(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return e.reduce(function(e,i){return e+Ii(t["border-"+i+"-width"])},0)}function qi(t){var e=t.clientWidth,i=t.clientHeight;if(!e&&!i)return Fi;var r=Pi(t).getComputedStyle(t),n=function(t){for(var e={},i=0,r=["top","right","bottom","left"];i<r.length;i++){var n=r[i],o=t["padding-"+n];e[n]=Ii(o)}return e}(r),o=n.left+n.right,s=n.top+n.bottom,a=Ii(r.width),l=Ii(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==e&&(a-=Hi(r,"left","right")+o),Math.round(l+s)!==i&&(l-=Hi(r,"top","bottom")+s)),!function(t){return t===Pi(t).document.documentElement}(t)){var c=Math.round(a+o)-e,u=Math.round(l+s)-i;1!==Math.abs(c)&&(a-=c),1!==Math.abs(u)&&(l-=u)}return Yi(n.left,n.top,a,l)}var $i="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof Pi(t).SVGGraphicsElement}:function(t){return t instanceof Pi(t).SVGElement&&"function"==typeof t.getBBox};function Xi(t){return ji?$i(t)?function(t){var e=t.getBBox();return Yi(0,0,e.width,e.height)}(t):qi(t):Fi}function Yi(t,e,i,r){return{x:t,y:e,width:i,height:r}}var Gi=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Yi(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=Xi(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),Ui=function(){return function(t,e){var i,r,n,o,s,a,l,c=(r=(i=e).x,n=i.y,o=i.width,s=i.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),Bi(l,{x:r,y:n,width:o,height:s,top:n,right:r+o,bottom:s+n,left:r}),l);Bi(this,{target:t,contentRect:c})}}(),Ji=function(){function t(t,e,i){if(this.activeObservations_=[],this.observations_=new Ti,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=i}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Pi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Gi(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Pi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new Ui(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Ki="undefined"!=typeof WeakMap?new WeakMap:new Ti,Qi=function(){return function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Vi.getInstance(),r=new Ji(e,i,this);Ki.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(t){Qi.prototype[t]=function(){var e;return(e=Ki.get(this))[t].apply(e,arguments)}});var Zi=void 0!==Ri.ResizeObserver?Ri.ResizeObserver:Qi,tr=!("undefined"==typeof window||!window.document||!window.document.createElement),er=function(){function t(e,i){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.onScroll=function(){r.scrollXTicking||(window.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(window.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x")),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y")),r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x"),r.showScrollbar("y")},this.onMouseMove=function(t){r.mouseX=t.clientX,r.mouseY=t.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=ve(),r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1),r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(t){var e,i;r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(i=r.isWithinBounds(r.axis.x.scrollbar.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(e=r.isWithinBounds(r.axis.y.scrollbar.rect)),(e||i)&&(t.preventDefault(),t.stopPropagation(),"mousedown"===t.type&&(e&&r.onDragStart(t,"y"),i&&r.onDragStart(t,"x")))},this.drag=function(e){var i=r.axis[r.draggedAxis].track,n=i.rect[r.axis[r.draggedAxis].sizeAttr],o=r.axis[r.draggedAxis].scrollbar;e.preventDefault(),e.stopPropagation();var s=(("y"===r.draggedAxis?e.pageY:e.pageX)-i.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset)/i.rect[r.axis[r.draggedAxis].sizeAttr]*r.contentEl[r.axis[r.draggedAxis].scrollSizeAttr];"x"===r.draggedAxis&&(s=r.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?s-(n+o.size):s,s=r.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-s:s),r.contentEl[r.axis[r.draggedAxis].scrollOffsetAttr]=s},this.onEndDrag=function(t){t.preventDefault(),t.stopPropagation(),r.el.classList.remove(r.classNames.dragging),document.removeEventListener("mousemove",r.drag),document.removeEventListener("mouseup",r.onEndDrag)},this.el=e,this.flashTimeout,this.contentEl,this.offsetEl,this.maskEl,this.globalObserver,this.mutationObserver,this.resizeObserver,this.scrollbarWidth,this.minScrollbarWidth=20,this.options=pe({},t.defaultOptions,i),this.classNames=pe({},t.defaultOptions.classNames,this.options.classNames),this.isRtl,this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.recalculate=We(this.recalculate.bind(this),64),this.onMouseMove=We(this.onMouseMove.bind(this),64),this.hideScrollbars=Qe(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=Qe(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=Li(t.getRtlHelpers),this.getContentElement=this.getScrollElement,this.init()}var e,i,r;return e=t,r=[{key:"getRtlHelpers",value:function(){var e=document.createElement("div");e.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var i=e.firstElementChild;document.body.appendChild(i);var r=i.firstElementChild;i.scrollLeft=0;var n=t.getOffset(i),o=t.getOffset(r);i.scrollLeft=999;var s=t.getOffset(r);return{isRtlScrollingInverted:n.left!==o.left&&o.left-s.left!=0,isRtlScrollbarInverted:n.left!==o.left}}},{key:"initHtmlApi",value:function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(function(e){e.forEach(function(e){Array.from(e.addedNodes).forEach(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?!e.SimpleBar&&new t(e,t.getElOptions(e)):Array.from(e.querySelectorAll("[data-simplebar]")).forEach(function(e){!e.SimpleBar&&new t(e,t.getElOptions(e))}))}),Array.from(e.removedNodes).forEach(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?t.SimpleBar&&t.SimpleBar.unMount():Array.from(t.querySelectorAll("[data-simplebar]")).forEach(function(t){t.SimpleBar&&t.SimpleBar.unMount()}))})})}),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))}},{key:"getElOptions",value:function(t){return Array.from(t.attributes).reduce(function(t,e){var i=e.name.match(/data-simplebar-(.+)/);if(i){var r=i[1].replace(/\W+(.)/g,function(t,e){return e.toUpperCase()});switch(e.value){case"true":t[r]=!0;break;case"false":t[r]=!1;break;case void 0:t[r]=!0;break;default:t[r]=e.value}}return t},{})}},{key:"removeObserver",value:function(){this.globalObserver.disconnect()}},{key:"initDOMLoadedElements",value:function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.from(document.querySelectorAll("[data-simplebar]")).forEach(function(e){e.SimpleBar||new t(e,t.getElOptions(e))})}},{key:"getOffset",value:function(t){var e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft)}}}],(i=[{key:"init",value:function(){this.el.SimpleBar=this,tr&&(this.initDOM(),this.scrollbarWidth=ve(),this.recalculate(),this.initListeners())}},{key:"initDOM",value:function(){var t=this;if(Array.from(this.el.children).filter(function(e){return e.classList.contains(t.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector(".".concat(this.classNames.wrapper)),this.contentEl=this.el.querySelector(".".concat(this.classNames.content)),this.offsetEl=this.el.querySelector(".".concat(this.classNames.offset)),this.maskEl=this.el.querySelector(".".concat(this.classNames.mask)),this.placeholderEl=this.el.querySelector(".".concat(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(".".concat(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(".".concat(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.el.querySelector(".".concat(this.classNames.track,".").concat(this.classNames.horizontal)),this.axis.y.track.el=this.el.querySelector(".".concat(this.classNames.track,".").concat(this.classNames.vertical));else{for(this.wrapperEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentEl.classList.add(this.classNames.content),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.offsetEl.appendChild(this.contentEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var e=document.createElement("div"),i=document.createElement("div");e.classList.add(this.classNames.track),i.classList.add(this.classNames.scrollbar),e.appendChild(i),this.axis.x.track.el=e.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=e.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector(".".concat(this.classNames.scrollbar)),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector(".".concat(this.classNames.scrollbar)),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")}},{key:"initListeners",value:function(){var t=this;this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick","touchstart","touchend","touchmove"].forEach(function(e){t.el.addEventListener(e,t.onPointerEvent,!0)}),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentEl.addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.onWindowResize),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver(function(e){e.forEach(function(e){(e.target===t.contentEl||t.isChildNode(e.target)||e.addedNodes.length||e.removedNodes.length)&&t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this.resizeObserver=new Zi(this.recalculate),this.resizeObserver.observe(this.el)}},{key:"recalculate",value:function(){var t=this.heightAutoObserverEl.offsetHeight<=1;this.elStyles=window.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction,this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.contentEl.style.height=t?"auto":"100%",this.placeholderEl.style.width="".concat(this.contentEl.scrollWidth,"px"),this.placeholderEl.style.height="".concat(this.contentEl.scrollHeight,"px"),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft),this.axis.x.track.rect=this.axis.x.track.el.getBoundingClientRect(),this.axis.y.track.rect=this.axis.y.track.el.getBoundingClientRect(),this.axis.x.isOverflowing=(this.scrollbarWidth?this.contentEl.scrollWidth:this.contentEl.scrollWidth-this.minScrollbarWidth)>Math.ceil(this.axis.x.track.rect.width),this.axis.y.isOverflowing=(this.scrollbarWidth?this.contentEl.scrollHeight:this.contentEl.scrollHeight-this.minScrollbarWidth)>Math.ceil(this.axis.y.track.rect.height),this.axis.x.isOverflowing="hidden"!==this.elStyles.overflowX&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==this.elStyles.overflowY&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px"),this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px"),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y"),this.hideNativeScrollbar()}},{key:"getScrollbarSize",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",i=this.scrollbarWidth?this.contentEl[this.axis[e].scrollSizeAttr]:this.contentEl[this.axis[e].scrollSizeAttr]-this.minScrollbarWidth,r=this.axis[e].track.rect[this.axis[e].sizeAttr];if(this.axis[e].isOverflowing){var n=r/i;return t=Math.max(~~(n*r),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t}}},{key:"positionScrollbar",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",i=this.contentEl[this.axis[e].scrollSizeAttr],r=this.axis[e].track.rect[this.axis[e].sizeAttr],n=parseInt(this.elStyles[this.axis[e].sizeAttr],10),o=this.axis[e].scrollbar,s=this.contentEl[this.axis[e].scrollOffsetAttr],a=(s="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-s:s)/(i-n),l=~~((r-o.size)*a);l="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?l+(r-o.size):l,o.el.style.transform="x"===e?"translate3d(".concat(l,"px, 0, 0)"):"translate3d(0, ".concat(l,"px, 0)")}},{key:"toggleTrackVisibility",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",e=this.axis[t].track.el,i=this.axis[t].scrollbar.el;this.axis[t].isOverflowing||this.axis[t].forceVisible?(e.style.visibility="visible",this.contentEl.style[this.axis[t].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentEl.style[this.axis[t].overflowAttr]="hidden"),this.axis[t].isOverflowing?i.style.visibility="visible":i.style.visibility="hidden"}},{key:"hideNativeScrollbar",value:function(){if(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth||this.minScrollbarWidth,"px"):0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth||this.minScrollbarWidth,"px"):0,!this.scrollbarWidth){var t=[this.isRtl?"paddingLeft":"paddingRight"];this.contentEl.style[t]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"calc(".concat(this.elStyles[t]," + ").concat(this.minScrollbarWidth,"px)"):this.elStyles[t],this.contentEl.style.paddingBottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"calc(".concat(this.elStyles.paddingBottom," + ").concat(this.minScrollbarWidth,"px)"):this.elStyles.paddingBottom}}},{key:"onMouseMoveForAxis",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.axis[t].track.rect=this.axis[t].track.el.getBoundingClientRect(),this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[t].scrollbar.rect)?this.axis[t].scrollbar.el.classList.add(this.classNames.hover):this.axis[t].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[t].track.rect)?(this.showScrollbar(t),this.axis[t].track.el.classList.add(this.classNames.hover)):this.axis[t].track.el.classList.remove(this.classNames.hover)}},{key:"onMouseLeaveForAxis",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.axis[t].track.el.classList.remove(this.classNames.hover),this.axis[t].scrollbar.el.classList.remove(this.classNames.hover)}},{key:"showScrollbar",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",e=this.axis[t].scrollbar.el;this.axis[t].isVisible||(e.classList.add(this.classNames.visible),this.axis[t].isVisible=!0),this.options.autoHide&&this.hideScrollbars()}},{key:"onDragStart",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",i=this.axis[e].scrollbar.el,r="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=r-i.getBoundingClientRect()[this.axis[e].offsetAttr],this.draggedAxis=e,this.el.classList.add(this.classNames.dragging),document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.onEndDrag)}},{key:"getScrollElement",value:function(){return this.contentEl}},{key:"removeListeners",value:function(){var t=this;this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick","touchstart","touchend","touchmove"].forEach(function(e){t.el.removeEventListener(e,t.onPointerEvent)}),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentEl.removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()}},{key:"unMount",value:function(){this.removeListeners(),this.el.SimpleBar=null}},{key:"isChildNode",value:function(t){return null!==t&&(t===this.el||this.isChildNode(t.parentNode))}},{key:"isWithinBounds",value:function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height}}])&&fe(e.prototype,i),r&&fe(e,r),t}();return er.defaultOptions={autoHide:!0,forceVisible:!1,classNames:{content:"simplebar-content",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},tr&&er.initHtmlApi(),er});
{
"version": "3.1.4",
"version": "3.1.5",
"name": "simplebar",

@@ -41,3 +41,3 @@ "title": "SimpleBar.js",

},
"gitHead": "df94a99dd5d764888ecb50c1f154665321195a33"
"gitHead": "8d281434028a5e4ec4df5cfd80c2646deae7dad6"
}

Sorry, the diff of this file is not supported yet

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

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