
(function(n,u){"object"==typeof exports&&"undefined"!=typeof module?module.exports=u():"function"==typeof define&&define.amd?define(u):(n=n||self).SimpleBar=u()})(this,function(){function n(a,c){return a(c={exports:{}},c.exports),c.exports}function u(a,c,b){function e(p){var x=l,A=k;return l=k=void 0,w=p,t=a.apply(A,x)}function d(p){var x=p-s;return void 0===s||x>=c||0>x||v&&p-w>=q}function f(){var p=oa.Date.now();if(d(p))return g(p);var x=setTimeout,A=f,F=c-(p-s),p=v?Fb(F,q-(p-w)):F;m=x(A,p)}function g(p){return m=
void 0,y&&l?e(p):(l=k=void 0,t)}function h(){var p=oa.Date.now(),x=d(p);if(l=arguments,k=this,s=p,x){if(void 0===m)return w=s,m=setTimeout(f,c),r?e(s):t;if(v)return m=setTimeout(f,c),e(s)}return void 0===m&&(m=setTimeout(f,c)),t}var l,k,q,t,m,s,w=0,r=!1,v=!1,y=!0;if("function"!=typeof a)throw new TypeError(Ha);return c=M(c)||0,D(b)&&(r=!!b.leading,q=(v="maxWait"in b)?Gb(M(b.maxWait)||0,c):q,y="trailing"in b?!!b.trailing:y),h.cancel=function(){void 0!==m&&clearTimeout(m);w=0;l=s=k=m=void 0},h.flush=
function(){return void 0===m?t:g(oa.Date.now())},h}function D(a){var c=typeof a;return!!a&&("object"==c||"function"==c)}function M(a){if("number"==typeof a)return a;if("symbol"==typeof a||a&&"object"==typeof a&&Hb.call(a)==Ib)return Ia;D(a)&&(a="function"==typeof a.valueOf?a.valueOf():a,a=D(a)?a+"":a);if("string"!=typeof a)return 0===a?a:+a;a=a.replace(Jb,"");var c=Kb.test(a);return c||Lb.test(a)?Mb(a.slice(2),c?2:8):Nb.test(a)?Ia:+a}function H(a){var c=typeof a;return!!a&&("object"==c||"function"==
c)}function Ja(a){if("number"==typeof a)return a;if("symbol"==typeof a||a&&"object"==typeof a&&Ob.call(a)==Pb)return Ka;H(a)&&(a="function"==typeof a.valueOf?a.valueOf():a,a=H(a)?a+"":a);if("string"!=typeof a)return 0===a?a:+a;a=a.replace(Qb,"");var c=Rb.test(a);return c||Sb.test(a)?Tb(a.slice(2),c?2:8):Ub.test(a)?Ka:+a}function J(a){var c=-1,b=a?a.length:0;for(this.clear();++c<b;){var e=a[c];this.set(e[0],e[1])}}function N(a){var c=-1,b=a?a.length:0;for(this.clear();++c<b;){var e=a[c];this.set(e[0],
e[1])}}function K(a){var c=-1,b=a?a.length:0;for(this.clear();++c<b;){var e=a[c];this.set(e[0],e[1])}}function aa(a,c){for(var b,e,d=a.length;d--;)if((b=a[d][0])===(e=c)||b!=b&&e!=e)return d;return-1}function Vb(a){return!(!La(a)||(c=a,Ma&&Ma in c))&&(function(b){b=La(b)?Wb.call(b):"";return b==Xb||b==Yb}(a)||function(b){var e=!1;if(null!=b&&"function"!=typeof b.toString)try{e=!!(b+"")}catch(d){}return e}(a)?Zb:$b).test(function(b){if(null!=b){try{return Na.call(b)}catch(e){}return b+""}return""}(a));
var c}function ba(a,c){var b,e=a.__data__;return("string"==(b=typeof c)||"number"==b||"symbol"==b||"boolean"==b?"__proto__"!==c:null===c)?e["string"==typeof c?"string":"hash"]:e.map}function Oa(a,c){var b=null==a?void 0:a[c];return Vb(b)?b:void 0}function pa(a,c){if("function"!=typeof a||c&&"function"!=typeof c)throw new TypeError(ac);var b=function(){var e=arguments,d=c?c.apply(this,e):e[0],f=b.cache;if(f.has(d))return f.get(d);e=a.apply(this,e);return b.cache=f.set(d,e),e};return b.cache=new (pa.Cache||
K),b}function La(a){var c=typeof a;return!!a&&("object"==c||"function"==c)}function Pa(a){for(var c=[],b=1;b<arguments.length;b++)c[b-1]=arguments[b];return c.reduce(function(e,d){return e+(parseFloat(a["border-"+d+"-width"])||0)},0)}var Qa=function(a){if("function"!=typeof a)throw TypeError(String(a)+" is not a function");return a},B=function(a){try{return!!a()}catch(c){return!0}},qa={}.toString,bc="".split,O=B(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return"String"==qa.call(a).slice(8,
-1)?bc.call(a,""):Object(a)}:Object,E=function(a){if(null==a)throw TypeError("Can't call method on "+a);return a},cc=Math.ceil,dc=Math.floor,ca=function(a){return isNaN(a=+a)?0:(0<a?dc:cc)(a)},ec=Math.min,T=function(a){return 0<a?ec(ca(a),9007199254740991):0},G=function(a){return"object"==typeof a?null!==a:"function"==typeof a},Ra=Array.isArray||function(a){return"Array"==qa.call(a).slice(8,-1)},C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?
global:"undefined"!=typeof self?self:{},da,U,ea,z="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")(),V=!B(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),ra=z.document,fc=G(ra)&&G(ra.createElement),Sa=!V&&!B(function(){return 7!=Object.defineProperty((a="div",fc?ra.createElement(a):{}),"a",{get:function(){return 7}}).a;var a}),P=function(a){if(!G(a))throw TypeError(String(a)+" is not an object");
return a},Ta=function(a,c){if(!G(a))return a;var b,e;if(c&&"function"==typeof(b=a.toString)&&!G(e=b.call(a))||"function"==typeof(b=a.valueOf)&&!G(e=b.call(a))||!c&&"function"==typeof(b=a.toString)&&!G(e=b.call(a)))return e;throw TypeError("Can't convert object to primitive value");},Ua=Object.defineProperty,sa={f:V?Ua:function(a,c,b){if(P(a),c=Ta(c,!0),P(b),Sa)try{return Ua(a,c,b)}catch(e){}if("get"in b||"set"in b)throw TypeError("Accessors not supported");return"value"in b&&(a[c]=b.value),a}},Va=
function(a,c){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:c}},L=V?function(a,c,b){return sa.f(a,c,Va(1,b))}:function(a,c,b){return a[c]=b,a},ta=function(a,c){try{L(z,a,c)}catch(b){z[a]=c}return c},fa=n(function(a){var c=z["__core-js_shared__"]||ta("__core-js_shared__",{});(a.exports=function(b,e){return c[b]||(c[b]=void 0!==e?e:{})})("versions",[]).push({version:"3.0.1",mode:"global",copyright:"\u00a9 2019 Denis Pushkarev (zloirock.ru)"})}),gc=0,hc=Math.random(),Wa=function(a){return"Symbol(".concat(void 0===
a?"":a,")_",(++gc+hc).toString(36))},Xa=!B(function(){return!String(Symbol())}),Ya=fa("wks"),Za=z.Symbol,ga=function(a){return Ya[a]||(Ya[a]=Xa&&Za[a]||(Xa?Za:Wa)("Symbol."+a))},ic=ga("species"),jc=function(a,c){var b;return Ra(a)&&("function"!=typeof(b=a.constructor)||b!==Array&&!Ra(b.prototype)?G(b)&&null===(b=b[ic])&&(b=void 0):b=void 0),new (void 0===b?Array:b)(0===c?0:c)},$a=function(a,c){var b=1==a,e=2==a,d=3==a,f=4==a,g=6==a,h=5==a||g,l=c||jc;return function(k,q,t){var m,s,w=Object(E(k)),r=
O(w);q=function(y,p,x){if(Qa(y),void 0===p)return y;switch(x){case 0:return function(){return y.call(p)};case 1:return function(A){return y.call(p,A)};case 2:return function(A,F){return y.call(p,A,F)};case 3:return function(A,F,kc){return y.call(p,A,F,kc)}}return function(){return y.apply(p,arguments)}}(q,t,3);t=T(r.length);var v=0;for(k=b?l(k,t):e?l(k,0):void 0;t>v;v++)if((h||v in r)&&(s=q(m=r[v],v,w),a))if(b)k[v]=s;else if(s)switch(a){case 3:return!0;case 5:return m;case 6:return v;case 2:k.push(m)}else if(f)return!1;
return g?-1:d||f?f:k}},lc=ga("species"),ab={}.propertyIsEnumerable,bb=Object.getOwnPropertyDescriptor,cb={f:bb&&!ab.call({1:2},1)?function(a){a=bb(this,a);return!!a&&a.enumerable}:ab},I={}.hasOwnProperty,db=Object.getOwnPropertyDescriptor,eb={f:V?db:function(a,c){if(a=O(E(a)),c=Ta(c,!0),Sa)try{return db(a,c)}catch(b){}if(I.call(a,c))return Va(!cb.f.call(a,c),a[c])}},ha=fa("native-function-to-string",Function.toString),fb=z.WeakMap,mc="function"==typeof fb&&/native code/.test(ha.call(fb)),gb=fa("keys"),
hb={},nc=z.WeakMap;if(mc){var Q=new nc,oc=Q.get,pc=Q.has,qc=Q.set;da=function(a,c){return qc.call(Q,a,c),c};U=function(a){return oc.call(Q,a)||{}};ea=function(a){return pc.call(Q,a)}}else{var W=gb.state||(gb.state=Wa("state"));hb[W]=!0;da=function(a,c){return L(a,W,c),c};U=function(a){return I.call(a,W)?a[W]:{}};ea=function(a){return I.call(a,W)}}var ib={set:da,get:U,has:ea,enforce:function(a){return ea(a)?U(a):da(a,{})},getterFor:function(a){return function(c){var b;if(!G(c)||(b=U(c)).type!==a)throw TypeError("Incompatible receiver, "+
a+" required");return b}}},ua=n(function(a){var c=ib.get,b=ib.enforce,e=String(ha).split("toString");fa("inspectSource",function(d){return ha.call(d)});(a.exports=function(d,f,g,h){var l=!!h&&!!h.unsafe,k=!!h&&!!h.enumerable;h=!!h&&!!h.noTargetGet;"function"==typeof g&&("string"!=typeof f||I.call(g,"name")||L(g,"name",f),b(g).source=e.join("string"==typeof f?f:""));d!==z?(l?!h&&d[f]&&(k=!0):delete d[f],k?d[f]=g:L(d,f,g)):k?d[f]=g:ta(f,g)})(Function.prototype,"toString",function(){return"function"==
typeof this&&c(this).source||ha.call(this)})}),rc=Math.max,sc=Math.min,jb=function(a,c){var b,e=O(E(a)),d=0,f=[];for(b in e)!I.call(hb,b)&&I.call(e,b)&&f.push(b);for(;c.length>d;){var g=b=c[d++];if(I.call(e,g)){a:{for(var g=b,h=O(E(f)),l=T(h.length),k=void 0,k=ca(void 0),k=0>k?rc(k+l,0):sc(k,l);l>k;k++)if(k in h&&h[k]===g){g=k||0;break a}g=-1}~g||f.push(b)}}return f},kb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),tc=kb.concat("length",
"prototype"),uc={f:Object.getOwnPropertyNames||function(a){return jb(a,tc)}},lb={f:Object.getOwnPropertySymbols},mb=z.Reflect,vc=mb&&mb.ownKeys||function(a){var c=uc.f(P(a)),b=lb.f;return b?c.concat(b(a)):c},wc=/#|\.prototype\./,X=function(a,c){var b=xc[yc(a)];return b==zc||b!=Ac&&("function"==typeof c?B(c):!!c)},yc=X.normalize=function(a){return String(a).replace(wc,".").toLowerCase()},xc=X.data={},Ac=X.NATIVE="N",zc=X.POLYFILL="P",Bc=eb.f,R=function(a,c){var b,e,d,f,g,h=a.target,l=a.global,k=a.stat;
if(b=l?z:k?z[h]||ta(h,{}):(z[h]||{}).prototype)for(e in c){if(f=c[e],d=a.noTargetGet?(g=Bc(b,e))&&g.value:b[e],!X(l?e:h+(k?".":"#")+e,a.forced)&&void 0!==d){if(typeof f==typeof d)continue;for(var q=f,t=d,m=vc(t),s=sa.f,w=eb.f,r=0;r<m.length;r++){var v=m[r];I.call(q,v)||s(q,v,w(t,v))}}(a.sham||d&&d.sham)&&L(f,"sham",!0);ua(b,e,f,a)}},Cc=$a(2);R({target:"Array",proto:!0,forced:!!B(function(){var a=[];return(a.constructor={})[lc]=function(){return{foo:1}},1!==a.filter(Boolean).foo})},{filter:function(a,
c){return Cc(this,a,c)}});var nb=function(a,c){var b=[][a];return!b||!B(function(){b.call(null,c||function(){throw 1;},1)})},Dc=[].forEach,Ec=$a(0),Y=nb("forEach")?function(a,c){return Ec(this,a,c)}:Dc;R({target:"Array",proto:!0,forced:[].forEach!=Y},{forEach:Y});R({target:"Array",proto:!0,forced:nb("reduce")},{reduce:function(a){var c=arguments.length,b=arguments[1];Qa(a);var e=Object(E(this)),d=O(e),f=T(e.length),g=0;if(2>c)for(;;){if(g in d){b=d[g];g+=1;break}if(g+=1,f<=g)throw TypeError("Reduce of empty array with no initial value");
}for(;f>g;g+=1)g in d&&(b=a(b,d[g],g,e));return b}});var Fc=sa.f,va=Function.prototype,Gc=va.toString,Hc=/^\s*function ([^ (]*)/;!V||"name"in va||Fc(va,"name",{configurable:!0,get:function(){try{return Gc.call(this).match(Hc)[1]}catch(a){return""}}});var wa=Object.keys||function(a){return jb(a,kb)},ia=Object.assign,ob=!ia||B(function(){var a={},c={},b=Symbol();return a[b]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){c[e]=e}),7!=ia({},a)[b]||"abcdefghijklmnopqrst"!=wa(ia({},c)).join("")})?
function(a,c){for(var b=Object(E(a)),e=arguments.length,d=1,f=lb.f,g=cb.f;e>d;)for(var h,l=O(arguments[d++]),k=f?wa(l).concat(f(l)):wa(l),q=k.length,t=0;q>t;)g.call(l,h=k[t++])&&(b[h]=l[h]);return b}:ia;R({target:"Object",stat:!0,forced:Object.assign!==ob},{assign:ob});var Ic=/^[\t\n\x0B\f\r  \u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff][\t\n\x0B\f\r  \u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff]*/,
Jc=/[\t\n\x0B\f\r  \u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff][\t\n\x0B\f\r  \u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff]*$/,ja=z.parseInt,Kc=/^[-+]?0[xX]/,pb=8!==ja("\t\n\x0B\f\r  \u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff08")||22!==ja("\t\n\x0B\f\r  \u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff0x16")?
function(a,c){var b,e=String(a);b=(e=String(E(e)),e=e.replace(Ic,""),e=e.replace(Jc,""),e);return ja(b,c>>>0||(Kc.test(b)?16:10))}:ja;R({global:!0,forced:parseInt!=pb},{parseInt:pb});var xa,ya,ka=RegExp.prototype.exec,Lc=String.prototype.replace,qb=ka,za=(xa=/a/,ya=/b*/g,ka.call(xa,"a"),ka.call(ya,"a"),0!==xa.lastIndex||0!==ya.lastIndex),Aa=void 0!==/()??/.exec("")[1];(za||Aa)&&(qb=function(a){var c,b,e,d;return Aa&&(b=RegExp("^"+this.source+"$(?!\\s)",function(){var f=P(this),g="";return f.global&&
(g+="g"),f.ignoreCase&&(g+="i"),f.multiline&&(g+="m"),f.unicode&&(g+="u"),f.sticky&&(g+="y"),g}.call(this))),za&&(c=this.lastIndex),e=ka.call(this,a),za&&e&&(this.lastIndex=this.global?e.index+e[0].length:c),Aa&&e&&1<e.length&&Lc.call(e[0],b,function(){for(d=1;d<arguments.length-2;d++)void 0===arguments[d]&&(e[d]=void 0)}),e});var la=qb;R({target:"RegExp",proto:!0,forced:/./.exec!==la},{exec:la});var rb=function(a,c,b){if(b){var e,d;a=String(E(a));b=ca(c);var f=a.length;a=(0>b||b>=f?"":55296>(e=a.charCodeAt(b))||
56319<e||b+1===f||56320>(d=a.charCodeAt(b+1))||57343<d?a.charAt(b):a.slice(b,b+2)).length}else a=1;return c+a},Ba=function(a,c){var b=a.exec;if("function"==typeof b){b=b.call(a,c);if("object"!=typeof b)throw TypeError("RegExp exec method returned something other than an Object or null");return b}if("RegExp"!==qa.call(a).slice(8,-1))throw TypeError("RegExp#exec called on incompatible receiver");return la.call(a,c)},Mc=ga("species"),Nc=!B(function(){var a=/./;return a.exec=function(){var c=[];return c.groups=
{a:"7"},c},"7"!=="".replace(a,"$\x3ca\x3e")}),Oc=!B(function(){var a=/(?:)/,c=a.exec;a.exec=function(){return c.apply(this,arguments)};a="ab".split(a);return 2!==a.length||"a"!==a[0]||"b"!==a[1]}),sb=function(a,c,b,e){var d=ga(a),f=!B(function(){var k={};return k[d]=function(){return 7},7!=""[a](k)}),g=f&&!B(function(){var k=!1,q=/a/;return q.exec=function(){return k=!0,null},"split"===a&&(q.constructor={},q.constructor[Mc]=function(){return q}),q[d](""),!k});if(!f||!g||"replace"===a&&!Nc||"split"===
a&&!Oc){var h=/./[d];b=b(d,""[a],function(k,q,t,m,s){return q.exec===la?f&&!s?{done:!0,value:h.call(q,t,m)}:{done:!0,value:k.call(t,q,m)}:{done:!1}});var l=b[1];ua(String.prototype,a,b[0]);ua(RegExp.prototype,d,2==c?function(k,q){return l.call(k,this,q)}:function(k){return l.call(k,this)});e&&L(RegExp.prototype[d],"sham",!0)}};sb("match",1,function(a,c,b){return[function(e){var d=E(this),f=null==e?void 0:e[a];return void 0!==f?f.call(e,d):RegExp(e)[a](String(d))},function(e){var d=b(c,e,this);if(d.done)return d.value;
e=P(e);d=String(this);if(!e.global)return Ba(e,d);var f=e.unicode;e.lastIndex=0;for(var g,h=[],l=0;null!==(g=Ba(e,d));)g=String(g[0]),h[l]=g,""===g&&(e.lastIndex=rb(d,T(e.lastIndex),f)),l++;return 0===l?null:h}]});var Pc=Math.max,Qc=Math.min,Rc=Math.floor,Sc=/\$([$&`']|\d\d?|<[^>]*>)/g,Tc=/\$([$&`']|\d\d?)/g;sb("replace",2,function(a,c,b){function e(d,f,g,h,l,k){var q=g+d.length,t=h.length,m=Tc;return void 0!==l&&(l=Object(E(l)),m=Sc),c.call(k,m,function(s,w){var r;switch(w.charAt(0)){case "$":return"$";
case "\x26":return d;case "`":return f.slice(0,g);case "'":return f.slice(q);case "\x3c":r=l[w.slice(1,-1)];break;default:r=+w;if(0===r)return s;if(r>t)return r=Rc(r/10),0===r?s:r<=t?void 0===h[r-1]?w.charAt(1):h[r-1]+w.charAt(1):s;r=h[r-1]}return void 0===r?"":r})}return[function(d,f){var g=E(this),h=null==d?void 0:d[a];return void 0!==h?h.call(d,g,f):c.call(String(g),d,f)},function(d,f){var g=b(c,d,this,f);if(g.done)return g.value;var h=P(d),g=String(this),l="function"==typeof f;l||(f=String(f));
var k=h.global;if(k){var q=h.unicode;h.lastIndex=0}for(var t=[];;){var m=Ba(h,g);if(null===m)break;if(t.push(m),!k)break;""===String(m[0])&&(h.lastIndex=rb(g,T(h.lastIndex),q))}for(var s,q="",k=h=0;k<t.length;k++){for(var m=t[k],w=String(m[0]),r=Pc(Qc(ca(m.index),g.length),0),v=[],y=1;y<m.length;y++)v.push(void 0===(s=m[y])?s:String(s));m=m.groups;l?(v=[w].concat(v,r,g),void 0!==m&&v.push(m),m=String(f.apply(void 0,v))):m=e(w,g,r,v,m,f);r>=h&&(q+=g.slice(h,r)+m,h=r+w.length)}return q+g.slice(h)}]});
for(var Uc in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,
TouchList:0}){var tb=z[Uc],ma=tb&&tb.prototype;if(ma&&ma.forEach!==Y)try{L(ma,"forEach",Y)}catch(pd){ma.forEach=Y}}var ub=n(function(a,c){a.exports=function(){if("undefined"==typeof document)return 0;var b,e=document.body,d=document.createElement("div"),f=d.style;return f.position="absolute",f.top=f.left="-9999px",f.width=f.height="100px",f.overflow="scroll",e.appendChild(d),b=d.offsetWidth-d.clientWidth,e.removeChild(d),b}}),Ha="Expected a function",Ia=NaN,Ib="[object Symbol]",Jb=/^\s+|\s+$/g,Nb=
/^[-+]0x[0-9a-f]+$/i,Kb=/^0b[01]+$/i,Lb=/^0o[0-7]+$/i,Mb=parseInt,Vc="object"==typeof self&&self&&self.Object===Object&&self,oa="object"==typeof C&&C&&C.Object===Object&&C||Vc||Function("return this")(),Hb=Object.prototype.toString,Gb=Math.max,Fb=Math.min,vb=function(a,c,b){var e=!0,d=!0;if("function"!=typeof a)throw new TypeError(Ha);return D(b)&&(e="leading"in b?!!b.leading:e,d="trailing"in b?!!b.trailing:d),u(a,c,{leading:e,maxWait:c,trailing:d})},Ka=NaN,Pb="[object Symbol]",Qb=/^\s+|\s+$/g,Ub=
/^[-+]0x[0-9a-f]+$/i,Rb=/^0b[01]+$/i,Sb=/^0o[0-7]+$/i,Tb=parseInt,Wc="object"==typeof self&&self&&self.Object===Object&&self,Ca="object"==typeof C&&C&&C.Object===Object&&C||Wc||Function("return this")(),Ob=Object.prototype.toString,Xc=Math.max,Yc=Math.min,wb=function(a,c,b){function e(p){var x=l,A=k;return l=k=void 0,w=p,t=a.apply(A,x)}function d(p){var x=p-s;return void 0===s||x>=c||0>x||v&&p-w>=q}function f(){var p=Ca.Date.now();if(d(p))return g(p);var x=setTimeout,A=f,F=c-(p-s),p=v?Yc(F,q-(p-w)):
F;m=x(A,p)}function g(p){return m=void 0,y&&l?e(p):(l=k=void 0,t)}function h(){var p=Ca.Date.now(),x=d(p);if(l=arguments,k=this,s=p,x){if(void 0===m)return w=s,m=setTimeout(f,c),r?e(s):t;if(v)return m=setTimeout(f,c),e(s)}return void 0===m&&(m=setTimeout(f,c)),t}var l,k,q,t,m,s,w=0,r=!1,v=!1,y=!0;if("function"!=typeof a)throw new TypeError("Expected a function");return c=Ja(c)||0,H(b)&&(r=!!b.leading,q=(v="maxWait"in b)?Xc(Ja(b.maxWait)||0,c):q,y="trailing"in b?!!b.trailing:y),h.cancel=function(){void 0!==
m&&clearTimeout(m);w=0;l=s=k=m=void 0},h.flush=function(){return void 0===m?t:g(Ca.Date.now())},h},ac="Expected a function",Xb="[object Function]",Yb="[object GeneratorFunction]",$b=/^\[object .+?Constructor\]$/,Zc="object"==typeof self&&self&&self.Object===Object&&self,xb="object"==typeof C&&C&&C.Object===Object&&C||Zc||Function("return this")(),$c=Array.prototype,ad=Function.prototype,yb=Object.prototype,Da=xb["__core-js_shared__"],Ma=function(){var a=/[^.]+$/.exec(Da&&Da.keys&&Da.keys.IE_PROTO||
"");return a?"Symbol(src)_1."+a:""}(),Na=ad.toString,Ea=yb.hasOwnProperty,Wb=yb.toString,Zb=RegExp("^"+Na.call(Ea).replace(/[\\^$.*+?()[\]{}|]/g,"\\$\x26").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bd=$c.splice,cd=Oa(xb,"Map"),Z=Oa(Object,"create");J.prototype.clear=function(){this.__data__=Z?Z(null):{}};J.prototype.delete=function(a){return this.has(a)&&delete this.__data__[a]};J.prototype.get=function(a){var c=this.__data__;return Z?(a=c[a],"__lodash_hash_undefined__"===
a?void 0:a):Ea.call(c,a)?c[a]:void 0};J.prototype.has=function(a){var c=this.__data__;return Z?void 0!==c[a]:Ea.call(c,a)};J.prototype.set=function(a,c){return this.__data__[a]=Z&&void 0===c?"__lodash_hash_undefined__":c,this};N.prototype.clear=function(){this.__data__=[]};N.prototype.delete=function(a){var c=this.__data__;a=aa(c,a);return!(0>a||(a==c.length-1?c.pop():bd.call(c,a,1),0))};N.prototype.get=function(a){var c=this.__data__;a=aa(c,a);return 0>a?void 0:c[a][1]};N.prototype.has=function(a){return-1<
aa(this.__data__,a)};N.prototype.set=function(a,c){var b=this.__data__,e=aa(b,a);return 0>e?b.push([a,c]):b[e][1]=c,this};K.prototype.clear=function(){this.__data__={hash:new J,map:new (cd||N),string:new J}};K.prototype.delete=function(a){return ba(this,a).delete(a)};K.prototype.get=function(a){return ba(this,a).get(a)};K.prototype.has=function(a){return ba(this,a).has(a)};K.prototype.set=function(a,c){return ba(this,a).set(a,c),this};pa.Cache=K;var dd=pa,zb=function(){function a(c,b){var e=-1;return c.some(function(d,
f){return d[0]===b&&(e=f,!0)}),e}return"undefined"!=typeof Map?Map:function(){function c(){this.__entries__=[]}return Object.defineProperty(c.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),c.prototype.get=function(b){b=a(this.__entries__,b);return(b=this.__entries__[b])&&b[1]},c.prototype.set=function(b,e){var d=a(this.__entries__,b);~d?this.__entries__[d][1]=e:this.__entries__.push([b,e])},c.prototype.delete=function(b){var e=this.__entries__;b=a(e,
b);~b&&e.splice(b,1)},c.prototype.has=function(b){return!!~a(this.__entries__,b)},c.prototype.clear=function(){this.__entries__.splice(0)},c.prototype.forEach=function(b,e){void 0===e&&(e=null);for(var d=0,f=this.__entries__;d<f.length;d++){var g=f[d];b.call(e,g[1],g[0])}},c}()}(),Fa="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,na="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&
window.Math===Math?window:Function("return this")(),ed="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(na):function(a){return setTimeout(function(){return a(Date.now())},1E3/60)},fd=2,gd=20,hd="top right bottom left width height size weight".split(" "),id="undefined"!=typeof MutationObserver,jd=function(){function a(){this.mutationEventsAdded_=this.connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=
function(c,b){function e(){g&&(g=!1,c());h&&f()}function d(){ed(e)}function f(){var k=Date.now();if(g){if(k-l<fd)return;h=!0}else g=!0,h=!1,setTimeout(d,b);l=k}var g=!1,h=!1,l=0;return f}(this.refresh.bind(this),gd)}return a.prototype.addObserver=function(c){~this.observers_.indexOf(c)||this.observers_.push(c);this.connected_||this.connect_()},a.prototype.removeObserver=function(c){var b=this.observers_;c=b.indexOf(c);~c&&b.splice(c,1);!b.length&&this.connected_&&this.disconnect_()},a.prototype.refresh=
function(){this.updateObservers_()&&this.refresh()},a.prototype.updateObservers_=function(){var c=this.observers_.filter(function(b){return b.gatherActive(),b.hasActive()});return c.forEach(function(b){return b.broadcastActive()}),0<c.length},a.prototype.connect_=function(){Fa&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),id?(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)},a.prototype.disconnect_=function(){Fa&&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)},a.prototype.onTransitionEnd_=function(c){c=c.propertyName;var b=void 0===c?"":c;hd.some(function(e){return!!~b.indexOf(e)})&&this.refresh()},a.getInstance=function(){return this.instance_||(this.instance_=new a),this.instance_},a.instance_=null,a}(),Ab=function(a,c){for(var b=0,e=Object.keys(c);b<e.length;b++){var d=e[b];Object.defineProperty(a,d,{value:c[d],enumerable:!1,writable:!1,configurable:!0})}return a},S=function(a){return a&&a.ownerDocument&&
a.ownerDocument.defaultView||na},Bb={x:0,y:0,width:0,height:0},kd="undefined"!=typeof SVGGraphicsElement?function(a){return a instanceof S(a).SVGGraphicsElement}:function(a){return a instanceof S(a).SVGElement&&"function"==typeof a.getBBox},ld=function(){function a(c){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=c}return a.prototype.isActive=function(){var c,b=this.target;if(Fa)if(kd(b))c=b.getBBox(),c={x:0,y:0,width:c.width,height:c.height};
else{var e=b.clientWidth,d=b.clientHeight;if(e||d){var f=S(b).getComputedStyle(b);c={};for(var g=0,h=["top","right","bottom","left"];g<h.length;g++){var l=h[g];c[l]=parseFloat(f["padding-"+l])||0}var k=c.left+c.right,l=c.top+c.bottom,g=parseFloat(f.width)||0,h=parseFloat(f.height)||0;if("border-box"===f.boxSizing&&(Math.round(g+k)!==e&&(g-=Pa(f,"left","right")+k),Math.round(h+l)!==d&&(h-=Pa(f,"top","bottom")+l)),b!==S(b).document.documentElement)b=Math.round(g+k)-e,d=Math.round(h+l)-d,1!==Math.abs(b)&&
(g-=b),1!==Math.abs(d)&&(h-=d);c={x:c.left,y:c.top,width:g,height:h}}else c=Bb}else c=Bb;return this.contentRect_=c,c.width!==this.broadcastWidth||c.height!==this.broadcastHeight},a.prototype.broadcastRect=function(){var c=this.contentRect_;return this.broadcastWidth=c.width,this.broadcastHeight=c.height,c},a}(),md=function(){return function(a,c){var b,e,d,f,g,h,l=(b=c.x,e=c.y,d=c.width,f=c.height,g="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,h=Object.create(g.prototype),Ab(h,{x:b,
y:e,width:d,height:f,top:e,right:b+d,bottom:f+e,left:b}),h);Ab(this,{target:a,contentRect:l})}}(),nd=function(){function a(c,b,e){if(this.activeObservations_=[],this.observations_=new zb,"function"!=typeof c)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=c;this.controller_=b;this.callbackCtx_=e}return a.prototype.observe=function(c){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof
Object){if(!(c instanceof S(c).Element))throw new TypeError('parameter 1 is not of type "Element".');var b=this.observations_;b.has(c)||(b.set(c,new ld(c)),this.controller_.addObserver(this),this.controller_.refresh())}},a.prototype.unobserve=function(c){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(c instanceof S(c).Element))throw new TypeError('parameter 1 is not of type "Element".');var b=this.observations_;
b.has(c)&&(b.delete(c),b.size||this.controller_.removeObserver(this))}},a.prototype.disconnect=function(){this.clearActive();this.observations_.clear();this.controller_.removeObserver(this)},a.prototype.gatherActive=function(){var c=this;this.clearActive();this.observations_.forEach(function(b){b.isActive()&&c.activeObservations_.push(b)})},a.prototype.broadcastActive=function(){if(this.hasActive()){var c=this.callbackCtx_,b=this.activeObservations_.map(function(e){return new md(e.target,e.broadcastRect())});
this.callback_.call(c,b,c);this.clearActive()}},a.prototype.clearActive=function(){this.activeObservations_.splice(0)},a.prototype.hasActive=function(){return 0<this.activeObservations_.length},a}(),Cb="undefined"!=typeof WeakMap?new WeakMap:new zb,Db=function(){return function c(b){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=jd.getInstance(),e=new nd(b,e,this);Cb.set(this,
e)}}();["observe","unobserve","disconnect"].forEach(function(a){Db.prototype[a]=function(){var c;return(c=Cb.get(this))[a].apply(c,arguments)}});var od=void 0!==na.ResizeObserver?na.ResizeObserver:Db,Eb=!("undefined"==typeof window||!window.document||!window.document.createElement),Ga=function(){function a(b,e){var d=this;this.onScroll=function(){d.scrollXTicking||(window.requestAnimationFrame(d.scrollX),d.scrollXTicking=!0);d.scrollYTicking||(window.requestAnimationFrame(d.scrollY),d.scrollYTicking=
!0)};this.scrollX=function(){d.axis.x.isOverflowing&&(d.showScrollbar("x"),d.positionScrollbar("x"));d.scrollXTicking=!1};this.scrollY=function(){d.axis.y.isOverflowing&&(d.showScrollbar("y"),d.positionScrollbar("y"));d.scrollYTicking=!1};this.onMouseEnter=function(){d.showScrollbar("x");d.showScrollbar("y")};this.onMouseMove=function(f){d.mouseX=f.clientX;d.mouseY=f.clientY;(d.axis.x.isOverflowing||d.axis.x.forceVisible)&&d.onMouseMoveForAxis("x");(d.axis.y.isOverflowing||d.axis.y.forceVisible)&&
d.onMouseMoveForAxis("y")};this.onMouseLeave=function(){d.onMouseMove.cancel();(d.axis.x.isOverflowing||d.axis.x.forceVisible)&&d.onMouseLeaveForAxis("x");(d.axis.y.isOverflowing||d.axis.y.forceVisible)&&d.onMouseLeaveForAxis("y");d.mouseX=-1;d.mouseY=-1};this.onWindowResize=function(){d.scrollbarWidth=ub();d.hideNativeScrollbar()};this.hideScrollbars=function(){d.axis.x.track.rect=d.axis.x.track.el.getBoundingClientRect();d.axis.y.track.rect=d.axis.y.track.el.getBoundingClientRect();d.isWithinBounds(d.axis.y.track.rect)||
(d.axis.y.scrollbar.el.classList.remove(d.classNames.visible),d.axis.y.isVisible=!1);d.isWithinBounds(d.axis.x.track.rect)||(d.axis.x.scrollbar.el.classList.remove(d.classNames.visible),d.axis.x.isVisible=!1)};this.onPointerEvent=function(f){var g,h;d.axis.x.scrollbar.rect=d.axis.x.scrollbar.el.getBoundingClientRect();d.axis.y.scrollbar.rect=d.axis.y.scrollbar.el.getBoundingClientRect();(d.axis.x.isOverflowing||d.axis.x.forceVisible)&&(h=d.isWithinBounds(d.axis.x.scrollbar.rect));(d.axis.y.isOverflowing||
d.axis.y.forceVisible)&&(g=d.isWithinBounds(d.axis.y.scrollbar.rect));(g||h)&&(f.preventDefault(),f.stopPropagation(),"mousedown"===f.type&&(g&&d.onDragStart(f,"y"),h&&d.onDragStart(f,"x")))};this.drag=function(f){var g=d.axis[d.draggedAxis].track,h=g.rect[d.axis[d.draggedAxis].sizeAttr],l=d.axis[d.draggedAxis].scrollbar;f.preventDefault();f.stopPropagation();f=(("y"===d.draggedAxis?f.pageY:f.pageX)-g.rect[d.axis[d.draggedAxis].offsetAttr]-d.axis[d.draggedAxis].dragOffset)/g.rect[d.axis[d.draggedAxis].sizeAttr]*
d.contentWrapperEl[d.axis[d.draggedAxis].scrollSizeAttr];"x"===d.draggedAxis&&(f=d.isRtl&&a.getRtlHelpers().isRtlScrollbarInverted?f-(h+l.size):f,f=d.isRtl&&a.getRtlHelpers().isRtlScrollingInverted?-f:f);d.contentWrapperEl[d.axis[d.draggedAxis].scrollOffsetAttr]=f};this.onEndDrag=function(f){f.preventDefault();f.stopPropagation();d.el.classList.remove(d.classNames.dragging);document.removeEventListener("mousemove",d.drag,!0);document.removeEventListener("mouseup",d.onEndDrag,!0);d.removePreventClickId=
window.setTimeout(function(){document.removeEventListener("click",d.preventClick,!0);document.removeEventListener("dblclick",d.preventClick,!0);d.removePreventClickId=null})};this.preventClick=function(f){f.preventDefault();f.stopPropagation()};this.el=b;this.minScrollbarWidth=20;this.options=Object.assign({},a.defaultOptions,e);this.classNames=Object.assign({},a.defaultOptions.classNames,this.options.classNames);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.removePreventClickId=null;this.el.SimpleBar||(this.recalculate=vb(this.recalculate.bind(this),64),this.onMouseMove=vb(this.onMouseMove.bind(this),64),this.hideScrollbars=
wb(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=wb(this.onWindowResize.bind(this),64,{leading:!0}),a.getRtlHelpers=dd(a.getRtlHelpers),this.init())}a.getRtlHelpers=function(){var b=document.createElement("div");b.innerHTML='\x3cdiv class\x3d"hs-dummy-scrollbar-size"\x3e\x3cdiv style\x3d"height: 200%; width: 200%; margin: 10px 0;"\x3e\x3c/div\x3e\x3c/div\x3e';var e=b.firstElementChild;document.body.appendChild(e);var d=e.firstElementChild;e.scrollLeft=0;var b=a.getOffset(e),
f=a.getOffset(d);e.scrollLeft=999;e=a.getOffset(d);return{isRtlScrollingInverted:b.left!==f.left&&0!=f.left-e.left,isRtlScrollbarInverted:b.left!==f.left}};a.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this);"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(function(b){b.forEach(function(e){Array.prototype.forEach.call(e.addedNodes,function(d){1===d.nodeType&&(d.hasAttribute("data-simplebar")?!d.SimpleBar&&new a(d,a.getElOptions(d)):
Array.prototype.forEach.call(d.querySelectorAll("[data-simplebar]"),function(f){!f.SimpleBar&&new a(f,a.getElOptions(f))}))});Array.prototype.forEach.call(e.removedNodes,function(d){1===d.nodeType&&(d.hasAttribute("data-simplebar")?d.SimpleBar&&d.SimpleBar.unMount():Array.prototype.forEach.call(d.querySelectorAll("[data-simplebar]"),function(f){f.SimpleBar&&f.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))};a.getElOptions=function(b){return Array.prototype.reduce.call(b.attributes,function(e,d){var f=d.name.match(/data-simplebar-(.+)/);if(f)switch(f=f[1].replace(/\W+(.)/g,function(g,h){return h.toUpperCase()}),d.value){case "true":e[f]=!0;break;case "false":e[f]=!1;break;
case void 0:e[f]=!0;break;default:e[f]=d.value}return e},{})};a.removeObserver=function(){this.globalObserver.disconnect()};a.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements);window.removeEventListener("load",this.initDOMLoadedElements);Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(b){b.SimpleBar||new a(b,a.getElOptions(b))})};a.getOffset=function(b){b=b.getBoundingClientRect();return{top:b.top+(window.pageYOffset||
document.documentElement.scrollTop),left:b.left+(window.pageXOffset||document.documentElement.scrollLeft)}};var c=a.prototype;return c.init=function(){this.el.SimpleBar=this;Eb&&(this.initDOM(),this.scrollbarWidth=ub(),this.recalculate(),this.initListeners())},c.initDOM=function(){var b=this;if(Array.prototype.filter.call(this.el.children,function(f){return f.classList.contains(b.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.el.querySelector("."+
this.classNames.contentWrapper),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.contentEl=this.el.querySelector("."+this.classNames.contentEl),this.placeholderEl=this.el.querySelector("."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=
this.el.querySelector("."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.el.querySelector("."+this.classNames.track+"."+this.classNames.vertical);else{this.wrapperEl=document.createElement("div");this.contentWrapperEl=document.createElement("div");this.offsetEl=document.createElement("div");this.maskEl=document.createElement("div");this.contentEl=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.contentWrapperEl.classList.add(this.classNames.contentWrapper);this.offsetEl.classList.add(this.classNames.offset);this.maskEl.classList.add(this.classNames.mask);this.contentEl.classList.add(this.classNames.contentEl);this.placeholderEl.classList.add(this.classNames.placeholder);this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl);for(this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);
this.contentWrapperEl.appendChild(this.contentEl);this.offsetEl.appendChild(this.contentWrapperEl);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"),d=document.createElement("div");
e.classList.add(this.classNames.track);d.classList.add(this.classNames.scrollbar);e.appendChild(d);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("."+this.classNames.scrollbar);this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+
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")},c.initListeners=function(){var b=this;this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter);"mousedown click dblclick touchstart touchend touchmove".split(" ").forEach(function(e){b.el.addEventListener(e,b.onPointerEvent,!0)});this.el.addEventListener("mousemove",
this.onMouseMove);this.el.addEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl.addEventListener("scroll",this.onScroll);window.addEventListener("resize",this.onWindowResize);this.resizeObserver=new od(this.recalculate);this.resizeObserver.observe(this.el);this.resizeObserver.observe(this.contentEl)},c.recalculate=function(){var b=1>=this.heightAutoObserverEl.offsetHeight,e=1>=this.heightAutoObserverEl.offsetWidth;this.elStyles=window.getComputedStyle(this.el);this.isRtl="rtl"===
this.elStyles.direction;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft;this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;this.contentWrapperEl.style.height=b?"auto":"100%";this.placeholderEl.style.width=e?this.contentEl.offsetWidth+"px":"auto";this.placeholderEl.style.height=this.contentEl.scrollHeight+
"px";this.axis.x.isOverflowing=this.contentWrapperEl.scrollWidth>this.contentWrapperEl.offsetWidth;this.axis.y.isOverflowing=this.contentWrapperEl.scrollHeight>this.contentWrapperEl.offsetHeight;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.hideNativeScrollbar();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.scrollbar.size=this.getScrollbarSize("x");this.axis.y.scrollbar.size=this.getScrollbarSize("y");this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px";this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px";this.positionScrollbar("x");this.positionScrollbar("y");this.toggleTrackVisibility("x");
this.toggleTrackVisibility("y")},c.getScrollbarSize=function(b){void 0===b&&(b="y");var e,d=this.scrollbarWidth?this.contentWrapperEl[this.axis[b].scrollSizeAttr]:this.contentWrapperEl[this.axis[b].scrollSizeAttr]-this.minScrollbarWidth,f=this.axis[b].track.rect[this.axis[b].sizeAttr];if(this.axis[b].isOverflowing)return e=Math.max(~~(f/d*f),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(e=Math.min(e,this.options.scrollbarMaxSize)),e},c.positionScrollbar=function(b){void 0===b&&(b=
"y");var e=this.contentWrapperEl[this.axis[b].scrollSizeAttr],d=this.axis[b].track.rect[this.axis[b].sizeAttr],f=parseInt(this.elStyles[this.axis[b].sizeAttr],10),g=this.axis[b].scrollbar,h=this.contentWrapperEl[this.axis[b].scrollOffsetAttr],e=("x"===b&&this.isRtl&&a.getRtlHelpers().isRtlScrollingInverted?-h:h)/(e-f),e=~~((d-g.size)*e),e="x"===b&&this.isRtl&&a.getRtlHelpers().isRtlScrollbarInverted?e+(d-g.size):e;g.el.style.transform="x"===b?"translate3d("+e+"px, 0, 0)":"translate3d(0, "+e+"px, 0)"},
c.toggleTrackVisibility=function(b){void 0===b&&(b="y");var e=this.axis[b].track.el,d=this.axis[b].scrollbar.el;this.axis[b].isOverflowing||this.axis[b].forceVisible?(e.style.visibility="visible",this.contentWrapperEl.style[this.axis[b].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentWrapperEl.style[this.axis[b].overflowAttr]="hidden");this.axis[b].isOverflowing?d.style.display="block":d.style.display="none"},c.hideNativeScrollbar=function(){(this.offsetEl.style[this.isRtl?"left":
"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+(this.scrollbarWidth||this.minScrollbarWidth)+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+(this.scrollbarWidth||this.minScrollbarWidth)+"px":0,this.scrollbarWidth)||(this.contentWrapperEl.style[[this.isRtl?"paddingLeft":"paddingRight"]]=this.axis.y.isOverflowing||this.axis.y.forceVisible?this.minScrollbarWidth+"px":0,this.contentWrapperEl.style.paddingBottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?
this.minScrollbarWidth+"px":0)},c.onMouseMoveForAxis=function(b){void 0===b&&(b="y");this.axis[b].track.rect=this.axis[b].track.el.getBoundingClientRect();this.axis[b].scrollbar.rect=this.axis[b].scrollbar.el.getBoundingClientRect();this.isWithinBounds(this.axis[b].scrollbar.rect)?this.axis[b].scrollbar.el.classList.add(this.classNames.hover):this.axis[b].scrollbar.el.classList.remove(this.classNames.hover);this.isWithinBounds(this.axis[b].track.rect)?(this.showScrollbar(b),this.axis[b].track.el.classList.add(this.classNames.hover)):
this.axis[b].track.el.classList.remove(this.classNames.hover)},c.onMouseLeaveForAxis=function(b){void 0===b&&(b="y");this.axis[b].track.el.classList.remove(this.classNames.hover);this.axis[b].scrollbar.el.classList.remove(this.classNames.hover)},c.showScrollbar=function(b){void 0===b&&(b="y");var e=this.axis[b].scrollbar.el;this.axis[b].isVisible||(e.classList.add(this.classNames.visible),this.axis[b].isVisible=!0);this.options.autoHide&&this.hideScrollbars()},c.onDragStart=function(b,e){void 0===
e&&(e="y");this.axis[e].dragOffset=("y"===e?b.pageY:b.pageX)-this.axis[e].scrollbar.el.getBoundingClientRect()[this.axis[e].offsetAttr];this.draggedAxis=e;this.el.classList.add(this.classNames.dragging);document.addEventListener("mousemove",this.drag,!0);document.addEventListener("mouseup",this.onEndDrag,!0);null===this.removePreventClickId?(document.addEventListener("click",this.preventClick,!0),document.addEventListener("dblclick",this.preventClick,!0)):(window.clearTimeout(this.removePreventClickId),
this.removePreventClickId=null)},c.getContentElement=function(){return this.contentEl},c.getScrollElement=function(){return this.contentWrapperEl},c.removeListeners=function(){var b=this;this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter);"mousedown click dblclick touchstart touchend touchmove".split(" ").forEach(function(e){b.el.removeEventListener(e,b.onPointerEvent)});this.el.removeEventListener("mousemove",this.onMouseMove);this.el.removeEventListener("mouseleave",
this.onMouseLeave);this.contentWrapperEl.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()},c.unMount=function(){this.removeListeners();this.el.SimpleBar=null},c.isChildNode=function(b){return null!==b&&(b===this.el||this.isChildNode(b.parentNode))},
c.isWithinBounds=function(b){return this.mouseX>=b.left&&this.mouseX<=b.left+b.width&&this.mouseY>=b.top&&this.mouseY<=b.top+b.height},a}();return Ga.defaultOptions={autoHide:!0,forceVisible:!1,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",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},Eb&&Ga.initHtmlApi(),Ga});var state={categoriesListState:!1,selectedCategory:"",selectedMission:"",text:"",autocompleteItems:[]},currentFocus;init();
function registerShowDropdown(){$(".category__wrapper").click(function(){state.categoriesListState?($("div.searchCategoriesList ").removeClass("show"),$("i.icon-arrow-down").removeClass("rotate")):($("div.searchCategoriesList ").addClass("show"),$("i.icon-arrow-down").addClass("rotate"));state.categoriesListState=!state.categoriesListState})}function updateSelectValue(){$("div.chosenCategory \x3e p").text(state.selectedCategory);$("div.chosenCategory \x3e select").val(state.selectedCategory)}
function registerOnCategoryChoose(){$("div.searchCategoryName").click(function(n){state.selectedCategory=n.target.innerText;updateSelectValue()})}function renderAutcompleteList(){$(".input__autocomplete").empty();state.autocompleteItems&&state.autocompleteItems.length?(currentFocus=-1,state.autocompleteItems.forEach(function(n){$(".input__autocomplete").append("\x3cli\x3e"+n+"\x3c/li\x3e")}),$(".input__autocomplete").removeClass("hidden")):$(".input__autocomplete").addClass("hidden")}
function registerOnInputChange(){var n;$(".input__wrapper \x3e input").keyup(function(u){state.text=u.target.value;if(state.text&&2<state.text.length&&40!==u.keyCode&&38!==u.keyCode){u=$("#autocompleteURL").val();var D=$("#portletNamespace").val();u=removeParameterFromUrl(u,D+"category");u=removeParameterFromUrl(u,D+"text");u=removeParameterFromUrl(u,D+"sortby");u=removeParameterFromUrl(u,D+"filter");var M={};M[D+"text"]=state.text;M[D+"filter"]=state.selectedMission;$.ajax({url:u,data:M,success:function(H){(H=
JSON.parse(H))&&H.constructor==Array&&(state.autocompleteItems=H);renderAutcompleteList();n=document.querySelectorAll("ul.input__autocomplete li");registerOnAutoCompleteItemClick()}})}else 40==u.keyCode?(u.preventDefault(),currentFocus++,addActive(n),document.querySelector("#text").value=n[currentFocus].textContent):38==u.keyCode&&(u.preventDefault(),currentFocus--,addActive(n),document.querySelector("#text").value=n[currentFocus].textContent)})}
function addActive(n){removeActive(n);currentFocus>=n.length&&(currentFocus=0);0>currentFocus&&(currentFocus=n.length-1);n[currentFocus].classList.add("active")}function removeActive(n){for(var u=0;u<n.length;u++)n[u].classList.remove("active")}function refreshInputText(){$("input#text").val(state.text)}function refreshSelectedCategory(){$("div.chosenCategory \x3e select").val(state.selectedCategory)}
function registerOnAutoCompleteItemClick(){$("ul.input__autocomplete \x3e li").click(function(n){n=$(this).text();state.text=n;state.autocompleteItems=[];refreshInputText();document.querySelector(".loader").classList.add("loader--visible");$(this).closest("form").submit();renderAutcompleteList()})}function removeParameterFromUrl(n,u){return n.replace(RegExp("[?\x26]"+u+"\x3d[^\x26#]*(#.*)?$"),"$1").replace(RegExp("([?\x26])"+u+"\x3d[^\x26]*\x26"),"$1")}function registerOnFormSubmit(){}
function registerOnFilterClick(){$(".filter__wrapper").click(function(n){$(".filter__wrapper__filter_by").toggleClass("hidden");n.target.classList.contains("mission__filter")&&(n=n.target,n.classList.contains("active")?clearSearchBarFilters():(clearSearchBarFilters(),n.classList.add("active"),$(".filter__wrapper .mission__filter--current").val(n.dataset.filterBy),state.selectedMission=n.dataset.filterBy,onFilterActive()))});$(".active__mission__filter-clear").click(function(){clearSearchBarFilters()})}
function onFilterActive(){if(""!=$(".filter__wrapper .mission__filter--current").val()){var n=$(".filter__wrapper .mission__filter--current");$(".filter__wrapper").addClass("active");$(".filter__wrapper .filter__wrapper__filter_by li").each(function(){$(this).attr("data-filter-by")===n.val()&&($(this).addClass("active"),$(".active__mission__filter").addClass("visible"),$(".active__mission__filter-value").text($(this).text()))})}}
function clearSearchBarFilters(){this.state.selectedMission="";$(".active__mission__filter").removeClass("visible");$(".active__mission__filter-value").text("");$(".filter__wrapper .mission__filter--current").val("");$(".filter__wrapper").removeClass("active");$(".filter__wrapper .filter__wrapper__filter_by li").each(function(){$(this).removeClass("active")})}function out(){$("#text").blur(function(){setTimeout(function(){$(".input__autocomplete").addClass("hidden")},200)})}
function triggerMobileSearchBar(){document.querySelector(".mobile-form-trigger")&&document.querySelector(".mobile-form-trigger").addEventListener("click",function(n){document.querySelector(".searchform-mobile").classList.toggle("active");document.querySelector(".mobile-search-form-container").classList.toggle("active");document.querySelector(".mobile-form-trigger .icon-search").classList.toggle("active");document.querySelector(".mobile-form-trigger .icon-clear-filters").classList.toggle("active")})}
function initializeScrollbars(){if(SimpleBar){var n=document.querySelector(".filter__wrapper__filter_by");n&&new SimpleBar(n,{autohide:!1});(n=document.querySelector(".searchform-mobile .filter__wrapper__filter_by"))&&new SimpleBar(n,{autohide:!1})}}
function init(){$(document).ready(function(){state.text=$("input#text").val();state.selectedCategory=$("div.chosenCategory \x3e p").text()?$("div.chosenCategory \x3e p").text().trim():"";state.selectedMission=$(".filter__wrapper .mission__filter--current").val()?$(".filter__wrapper .mission__filter--current").val():"";refreshSelectedCategory();registerShowDropdown();registerOnCategoryChoose();registerOnInputChange();registerOnAutoCompleteItemClick();registerOnFormSubmit();out();triggerMobileSearchBar();
registerOnFilterClick();onFilterActive();initializeScrollbars()});Liferay.on("endNavigate",function(n){state.text=$("input#text").val();state.selectedCategory=$("div.chosenCategory \x3e p").text()?$("div.chosenCategory \x3e p").text().trim():"";state.selectedMission=$(".filter__wrapper .mission__filter--current").val()?$(".filter__wrapper .mission__filter--current").val():"";refreshSelectedCategory();registerShowDropdown();registerOnCategoryChoose();registerOnInputChange();registerOnAutoCompleteItemClick();
registerOnFormSubmit();out();triggerMobileSearchBar();registerOnFilterClick();onFilterActive();initializeScrollbars()})};
