New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

simplebar

Package Overview
Dependencies
Maintainers
2
Versions
108
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 6.0.0-beta.6 to 6.0.0-beta.7

4

dist/simplebar.min.js
/**
* SimpleBar.js - v6.0.0-beta.6
* simplebar - v6.0.0-beta.7
* 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="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e,i){return t(i={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&i.path)}},i.exports),i.exports}var i=function(t){return t&&t.Math==Math&&t},r=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},n=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),o={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,a={f:l&&!o.call({1:2},1)?function(t){var e=l(this,t);return!!e&&e.enumerable}:o},c=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},h={}.toString,u=function(t){return h.call(t).slice(8,-1)},f="".split,d=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?f.call(t,""):Object(t)}:Object,p=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return d(p(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!g(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!g(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!g(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!g(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,b=function(t,e){return y.call(t,e)},x=r.document,E=g(x)&&g(x.createElement),S=!n&&!s((function(){return 7!=Object.defineProperty((t="div",E?x.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),w=Object.getOwnPropertyDescriptor,O={f:n?w:function(t,e){if(t=v(t),e=m(e,!0),S)try{return w(t,e)}catch(t){}if(b(t,e))return c(!a.f.call(t,e),t[e])}},A=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},L=Object.defineProperty,k={f:n?L:function(t,e,i){if(A(t),e=m(e,!0),A(i),S)try{return L(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},_=n?function(t,e,i){return k.f(t,e,c(1,i))}:function(t,e,i){return t[e]=i,t},M=function(t,e){try{_(r,t,e)}catch(i){r[t]=e}return e},C=r["__core-js_shared__"]||M("__core-js_shared__",{}),N=Function.toString;"function"!=typeof C.inspectSource&&(C.inspectSource=function(t){return N.call(t)});var T,W,z,R,P=C.inspectSource,j=r.WeakMap,D="function"==typeof j&&/native code/.test(P(j)),$=e((function(t){(t.exports=function(t,e){return C[t]||(C[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),I=0,V=Math.random(),F=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++I+V).toString(36)},B=$("keys"),q={},H=r.WeakMap;if(D){var Y=new H,X=Y.get,U=Y.has,G=Y.set;T=function(t,e){return G.call(Y,t,e),e},W=function(t){return X.call(Y,t)||{}},z=function(t){return U.call(Y,t)}}else{var K=B[R="state"]||(B[R]=F(R));q[K]=!0,T=function(t,e){return _(t,K,e),e},W=function(t){return b(t,K)?t[K]:{}},z=function(t){return b(t,K)}}var Z={set:T,get:W,has:z,enforce:function(t){return z(t)?W(t):T(t,{})},getterFor:function(t){return function(e){var i;if(!g(e)||(i=W(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},J=e((function(t){var e=Z.get,i=Z.enforce,s=String(String).split("String");(t.exports=function(t,e,n,o){var l=!!o&&!!o.unsafe,a=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof e||b(n,"name")||_(n,"name",e),i(n).source=s.join("string"==typeof e?e:"")),t!==r?(l?!c&&t[e]&&(a=!0):delete t[e],a?t[e]=n:_(t,e,n)):a?t[e]=n:M(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||P(this)}))})),Q=r,tt=function(t){return"function"==typeof t?t:void 0},et=Math.ceil,it=Math.floor,rt=function(t){return isNaN(t=+t)?0:(t>0?it:et)(t)},st=Math.min,nt=function(t){return t>0?st(rt(t),9007199254740991):0},ot=Math.max,lt=Math.min,at=function(t){return function(e,i,r){var s,n=v(e),o=nt(n.length),l=function(t,e){var i=rt(t);return i<0?ot(i+e,0):lt(i,e)}(r,o);if(t&&i!=i){for(;o>l;)if((s=n[l++])!=s)return!0}else for(;o>l;l++)if((t||l in n)&&n[l]===i)return t||l||0;return!t&&-1}},ct={includes:at(!0),indexOf:at(!1)}.indexOf,ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),ut={f:Object.getOwnPropertyNames||function(t){return function(t,e){var i,r=v(t),s=0,n=[];for(i in r)!b(q,i)&&b(r,i)&&n.push(i);for(;e.length>s;)b(r,i=e[s++])&&(~ct(n,i)||n.push(i));return n}(t,ht)}},ft={f:Object.getOwnPropertySymbols},dt=function(t,e){return arguments.length<2?tt(Q[t])||tt(r[t]):Q[t]&&Q[t][e]||r[t]&&r[t][e]}("Reflect","ownKeys")||function(t){var e=ut.f(A(t)),i=ft.f;return i?e.concat(i(t)):e},pt=function(t,e){for(var i=dt(e),r=k.f,s=O.f,n=0;n<i.length;n++){var o=i[n];b(t,o)||r(t,o,s(e,o))}},vt=/#|\.prototype\./,gt=function(t,e){var i=yt[mt(t)];return i==xt||i!=bt&&("function"==typeof e?s(e):!!e)},mt=gt.normalize=function(t){return String(t).replace(vt,".").toLowerCase()},yt=gt.data={},bt=gt.NATIVE="N",xt=gt.POLYFILL="P",Et=gt,St=O.f,wt=function(t,e){var i,s,n,o,l,a=t.target,c=t.global,h=t.stat;if(i=c?r:h?r[a]||M(a,{}):(r[a]||{}).prototype)for(s in e){if(o=e[s],n=t.noTargetGet?(l=St(i,s))&&l.value:i[s],!Et(c?s:a+(h?".":"#")+s,t.forced)&&void 0!==n){if(typeof o==typeof n)continue;pt(o,n)}(t.sham||n&&n.sham)&&_(o,"sham",!0),J(i,s,o,t)}},Ot=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},At=function(t){return Object(p(t))},Lt=Array.isArray||function(t){return"Array"==u(t)},kt=!!Object.getOwnPropertySymbols&&!s((function(){return!String(Symbol())})),_t=kt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Mt=$("wks"),Ct=r.Symbol,Nt=_t?Ct:Ct&&Ct.withoutSetter||F,Tt=function(t){return b(Mt,t)||(kt&&b(Ct,t)?Mt[t]=Ct[t]:Mt[t]=Nt("Symbol."+t)),Mt[t]},Wt=Tt("species"),zt=function(t,e){var i;return Lt(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!Lt(i.prototype)?g(i)&&null===(i=i[Wt])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},Rt=[].push,Pt=function(t){var e=1==t,i=2==t,r=3==t,s=4==t,n=6==t,o=5==t||n;return function(l,a,c,h){for(var u,f,p=At(l),v=d(p),g=function(t,e,i){if(Ot(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};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,s){return t.call(e,i,r,s)}}return function(){return t.apply(e,arguments)}}(a,c,3),m=nt(v.length),y=0,b=h||zt,x=e?b(l,m):i?b(l,0):void 0;m>y;y++)if((o||y in v)&&(f=g(u=v[y],y,p),t))if(e)x[y]=f;else if(f)switch(t){case 3:return!0;case 5:return u;case 6:return y;case 2:Rt.call(x,u)}else if(s)return!1;return n?-1:r||s?s:x}},jt={forEach:Pt(0),map:Pt(1),filter:Pt(2),some:Pt(3),every:Pt(4),find:Pt(5),findIndex:Pt(6)},Dt=function(t,e){var i=[][t];return!!i&&s((function(){i.call(null,e||function(){throw 1},1)}))},$t=Object.defineProperty,It={},Vt=function(t){throw t},Ft=function(t,e){if(b(It,t))return It[t];e||(e={});var i=[][t],r=!!b(e,"ACCESSORS")&&e.ACCESSORS,o=b(e,0)?e[0]:Vt,l=b(e,1)?e[1]:void 0;return It[t]=!!i&&!s((function(){if(r&&!n)return!0;var t={length:-1};r?$t(t,1,{enumerable:!0,get:Vt}):t[1]=1,i.call(t,o,l)}))},Bt=jt.forEach,qt=Dt("forEach"),Ht=Ft("forEach"),Yt=qt&&Ht?[].forEach:function(t){return Bt(this,t,arguments.length>1?arguments[1]:void 0)};wt({target:"Array",proto:!0,forced:[].forEach!=Yt},{forEach:Yt});for(var Xt 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 Ut=r[Xt],Gt=Ut&&Ut.prototype;if(Gt&&Gt.forEach!==Yt)try{_(Gt,"forEach",Yt)}catch(t){Gt.forEach=Yt}}var Kt=!("undefined"==typeof window||!window.document||!window.document.createElement),Zt="object"==typeof global&&global&&global.Object===Object&&global,Jt="object"==typeof self&&self&&self.Object===Object&&self,Qt=Zt||Jt||Function("return this")(),te=Qt.Symbol,ee=Object.prototype,ie=ee.hasOwnProperty,re=ee.toString,se=te?te.toStringTag:void 0;var ne=Object.prototype.toString;var oe=te?te.toStringTag:void 0;function le(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":oe&&oe in Object(t)?function(t){var e=ie.call(t,se),i=t[se];try{t[se]=void 0;var r=!0}catch(t){}var s=re.call(t);return r&&(e?t[se]=i:delete t[se]),s}(t):function(t){return ne.call(t)}(t)}function ae(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var ce=/^\s+|\s+$/g,he=/^[-+]0x[0-9a-f]+$/i,ue=/^0b[01]+$/i,fe=/^0o[0-7]+$/i,de=parseInt;function pe(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==le(t)}(t))return NaN;if(ae(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ae(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(ce,"");var i=ue.test(t);return i||fe.test(t)?de(t.slice(2),i?2:8):he.test(t)?NaN:+t}var ve=Qt["__core-js_shared__"],ge=function(){var t=/[^.]+$/.exec(ve&&ve.keys&&ve.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var me=Function.prototype.toString;var ye=/^\[object .+?Constructor\]$/,be=Function.prototype,xe=Object.prototype,Ee=be.toString,Se=xe.hasOwnProperty,we=RegExp("^"+Ee.call(Se).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Oe(t){return!(!ae(t)||(e=t,ge&&ge in e))&&(function(t){if(!ae(t))return!1;var e=le(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}(t)?we:ye).test(function(t){if(null!=t){try{return me.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function Ae(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return Oe(i)?i:void 0}var Le=Ae(Object,"create");var ke=Object.prototype.hasOwnProperty;var _e=Object.prototype.hasOwnProperty;function Me(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function Ce(t,e){for(var i,r,s=t.length;s--;)if((i=t[s][0])===(r=e)||i!=i&&r!=r)return s;return-1}Me.prototype.clear=function(){this.__data__=Le?Le(null):{},this.size=0},Me.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Me.prototype.get=function(t){var e=this.__data__;if(Le){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return ke.call(e,t)?e[t]:void 0},Me.prototype.has=function(t){var e=this.__data__;return Le?void 0!==e[t]:_e.call(e,t)},Me.prototype.set=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Le&&void 0===e?"__lodash_hash_undefined__":e,this};var Ne=Array.prototype.splice;function Te(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Te.prototype.clear=function(){this.__data__=[],this.size=0},Te.prototype.delete=function(t){var e=this.__data__,i=Ce(e,t);return!(i<0)&&(i==e.length-1?e.pop():Ne.call(e,i,1),--this.size,!0)},Te.prototype.get=function(t){var e=this.__data__,i=Ce(e,t);return i<0?void 0:e[i][1]},Te.prototype.has=function(t){return Ce(this.__data__,t)>-1},Te.prototype.set=function(t,e){var i=this.__data__,r=Ce(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this};var We=Ae(Qt,"Map");function ze(t,e){var i,r,s=t.__data__;return("string"==(r=typeof(i=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?s["string"==typeof e?"string":"hash"]:s.map}function Re(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Re.prototype.clear=function(){this.size=0,this.__data__={hash:new Me,map:new(We||Te),string:new Me}},Re.prototype.delete=function(t){var e=ze(this,t).delete(t);return this.size-=e?1:0,e},Re.prototype.get=function(t){return ze(this,t).get(t)},Re.prototype.has=function(t){return ze(this,t).has(t)},Re.prototype.set=function(t,e){var i=ze(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this};function Pe(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var i=function(){var r=arguments,s=e?e.apply(this,r):r[0],n=i.cache;if(n.has(s))return n.get(s);var o=t.apply(this,r);return i.cache=n.set(s,o)||n,o};return i.cache=new(Pe.Cache||Re),i}Pe.Cache=Re;var je=function(){return Qt.Date.now()},De=Math.max,$e=Math.min;function Ie(t,e,i){var r,s,n,o,l,a,c=0,h=!1,u=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var i=r,n=s;return r=s=void 0,c=e,o=t.apply(n,i)}function p(t){return c=t,l=setTimeout(g,e),h?d(t):o}function v(t){var i=t-a;return void 0===a||i>=e||i<0||u&&t-c>=n}function g(){var t=je();if(v(t))return m(t);l=setTimeout(g,function(t){var i=e-(t-a);return u?$e(i,n-(t-c)):i}(t))}function m(t){return l=void 0,f&&r?d(t):(r=s=void 0,o)}function y(){var t=je(),i=v(t);if(r=arguments,s=this,a=t,i){if(void 0===l)return p(a);if(u)return clearTimeout(l),l=setTimeout(g,e),d(a)}return void 0===l&&(l=setTimeout(g,e)),o}return e=pe(e)||0,ae(i)&&(h=!!i.leading,n=(u="maxWait"in i)?De(pe(i.maxWait)||0,e):n,f="trailing"in i?!!i.trailing:f),y.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=a=s=l=void 0},y.flush=function(){return void 0===l?o:m(je())},y}let Ve=null,Fe=null;function Be(){if(null===Ve){if("undefined"==typeof document)return Ve=0,Ve;const t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);const i=e.getBoundingClientRect().right;t.removeChild(e),Ve=i}return Ve}function qe(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}function He(t){return t&&t.ownerDocument?t.ownerDocument:document}Kt&&window.addEventListener("resize",()=>{Fe!==window.devicePixelRatio&&(Fe=window.devicePixelRatio,Ve=null)});class Ye{constructor(t,e={}){this.onScroll=()=>{const t=qe(this.el);this.scrollXTicking||(t.requestAnimationFrame(this.scrollX),this.scrollXTicking=!0),this.scrollYTicking||(t.requestAnimationFrame(this.scrollY),this.scrollYTicking=!0),this.isScrolling||(this.isScrolling=!0,this.el.classList.add(this.classNames.scrolling)),this.onStopScrolling()},this.scrollX=()=>{this.axis.x.isOverflowing&&this.positionScrollbar("x"),this.scrollXTicking=!1},this.scrollY=()=>{this.axis.y.isOverflowing&&this.positionScrollbar("y"),this.scrollYTicking=!1},this.onStopScrolling=()=>{this.el.classList.remove(this.classNames.scrolling),this.isScrolling=!1},this.onMouseEnter=()=>{this.isMouseEntering||(this.el.classList.add(this.classNames.mouseEntered),this.isMouseEntering=!0),this.onMouseEntered()},this.onMouseEntered=()=>{this.el.classList.remove(this.classNames.mouseEntered),this.isMouseEntering=!1},this.onMouseMove=t=>{this.mouseX=t.clientX,this.mouseY=t.clientY,(this.axis.x.isOverflowing||this.axis.x.forceVisible)&&this.onMouseMoveForAxis("x"),(this.axis.y.isOverflowing||this.axis.y.forceVisible)&&this.onMouseMoveForAxis("y")},this.onMouseLeave=()=>{this.onMouseMove.cancel(),(this.axis.x.isOverflowing||this.axis.x.forceVisible)&&this.onMouseLeaveForAxis("x"),(this.axis.y.isOverflowing||this.axis.y.forceVisible)&&this.onMouseLeaveForAxis("y"),this.mouseX=-1,this.mouseY=-1},this.onWindowResize=()=>{this.scrollbarWidth=this.getScrollbarWidth(),this.hideNativeScrollbar()},this.onPointerEvent=t=>{let e,i;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.axis.x.forceVisible)&&(e=this.isWithinBounds(this.axis.x.track.rect)),(this.axis.y.isOverflowing||this.axis.y.forceVisible)&&(i=this.isWithinBounds(this.axis.y.track.rect)),(e||i)&&(t.stopPropagation(),"pointerdown"===t.type&&"touch"!==t.pointerType&&(e&&(this.axis.x.scrollbar.rect=this.axis.x.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis.x.scrollbar.rect)?this.onDragStart(t,"x"):this.onTrackClick(t,"x")),i&&(this.axis.y.scrollbar.rect=this.axis.y.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis.y.scrollbar.rect)?this.onDragStart(t,"y"):this.onTrackClick(t,"y"))))},this.drag=t=>{let e;const i=this.axis[this.draggedAxis].track,r=i.rect[this.axis[this.draggedAxis].sizeAttr],s=this.axis[this.draggedAxis].scrollbar,n=this.contentWrapperEl[this.axis[this.draggedAxis].scrollSizeAttr],o=parseInt(this.elStyles[this.axis[this.draggedAxis].sizeAttr],10);t.preventDefault(),t.stopPropagation(),e="y"===this.draggedAxis?t.pageY:t.pageX;let l=(e-i.rect[this.axis[this.draggedAxis].offsetAttr]-this.axis[this.draggedAxis].dragOffset)/(r-s.size)*(n-o);"x"===this.draggedAxis&&(l=this.isRtl&&Ye.getRtlHelpers().isScrollOriginAtZero?l-(r+s.size):l),this.contentWrapperEl[this.axis[this.draggedAxis].scrollOffsetAttr]=l},this.onEndDrag=t=>{const e=He(this.el),i=qe(this.el);t.preventDefault(),t.stopPropagation(),this.el.classList.remove(this.classNames.dragging),e.removeEventListener("mousemove",this.drag,!0),e.removeEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId=i.setTimeout(()=>{e.removeEventListener("click",this.preventClick,!0),e.removeEventListener("dblclick",this.preventClick,!0),this.removePreventClickId=null})},this.preventClick=t=>{t.preventDefault(),t.stopPropagation()},this.el=t,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.options={...Ye.defaultOptions,...e},this.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",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered",...this.options.classNames},this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,this.isScrolling=!1,this.isMouseEntering=!1,Ye.instances.has(this.el)||(e.classNames&&console.warn("simplebar: classNames option is deprecated. Please override the styles with CSS instead."),e.autoHide&&console.warn("simplebar: autoHide option is deprecated. Please use CSS instead: '.simplebar-scrollbar::before { opacity: 0.5 };' for autoHide: false"),this.onMouseMove=function(t,e,i){var r=!0,s=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return ae(i)&&(r="leading"in i?!!i.leading:r,s="trailing"in i?!!i.trailing:s),Ie(t,e,{leading:r,maxWait:e,trailing:s})}(this.onMouseMove,64),this.onWindowResize=Ie(this.onWindowResize,64,{leading:!0}),this.onStopScrolling=Ie(this.onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ie(this.onMouseEntered,this.stopScrollDelay),Ye.getRtlHelpers=Pe(Ye.getRtlHelpers),this.init())}static getRtlHelpers(){const t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';const e=t.firstElementChild,i=e.firstElementChild;document.body.appendChild(e),e.scrollLeft=0;const r=Ye.getOffset(e),s=Ye.getOffset(i);e.scrollLeft=-999;const n=Ye.getOffset(i);return{isScrollOriginAtZero:r.left!==s.left,isScrollingToNegative:s.left!==n.left}}static getOffset(t){const e=t.getBoundingClientRect(),i=He(t),r=qe(t);return{top:e.top+(r.pageYOffset||i.documentElement.scrollTop),left:e.left+(r.pageXOffset||i.documentElement.scrollLeft)}}init(){Ye.instances.set(this.el,this),Kt&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())}initDOM(){if(Array.prototype.filter.call(this.el.children,t=>t.classList.contains(this.classNames.wrapper)).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+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.findChild(this.el,`.${this.classNames.track}.${this.classNames.horizontal}`),this.axis.y.track.el=this.findChild(this.el,`.${this.classNames.track}.${this.classNames.vertical}`);else{for(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),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){const t=document.createElement("div"),e=document.createElement("div");t.classList.add(this.classNames.track),e.classList.add(this.classNames.scrollbar),t.appendChild(e),this.axis.x.track.el=t.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=t.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")}initListeners(){const t=qe(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize),window.ResizeObserver){let e=!1;const i=t.ResizeObserver||ResizeObserver;this.resizeObserver=new i(()=>{e&&t.requestAnimationFrame(()=>{this.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),t.requestAnimationFrame(()=>{e=!0})}this.mutationObserver=new t.MutationObserver(()=>{t.requestAnimationFrame(()=>{this.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}recalculate(){const t=qe(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;const e=this.contentEl.offsetWidth,i=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||e>0,s=this.contentWrapperEl.offsetWidth,n=this.elStyles.overflowX,o=this.elStyles.overflowY;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}`;const l=this.contentEl.scrollHeight,a=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=i?"auto":"100%",this.placeholderEl.style.width=r?(e||a)+"px":"auto",this.placeholderEl.style.height=l+"px";const c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=0!==e&&a>e,this.axis.y.isOverflowing=l>c,this.axis.x.isOverflowing="hidden"!==n&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==o&&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();let h=this.axis.x.isOverflowing?this.scrollbarWidth:0,u=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&a>s-u,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>c-h,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")}getScrollbarSize(t="y"){if(!this.axis[t].isOverflowing)return 0;const e=this.contentEl[this.axis[t].scrollSizeAttr],i=this.axis[t].track.el[this.axis[t].offsetSizeAttr];let r,s=i/e;return r=Math.max(~~(s*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(r=Math.min(r,this.options.scrollbarMaxSize)),r}positionScrollbar(t="y"){if(!this.axis[t].isOverflowing)return;const e=this.contentWrapperEl[this.axis[t].scrollSizeAttr],i=this.axis[t].track.el[this.axis[t].offsetSizeAttr],r=parseInt(this.elStyles[this.axis[t].sizeAttr],10),s=this.axis[t].scrollbar;let n=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];n="x"===t&&this.isRtl&&Ye.getRtlHelpers().isScrollOriginAtZero?-n:n;let o=n/(e-r),l=~~((i-s.size)*o);l="x"===t&&this.isRtl&&Ye.getRtlHelpers().isScrollingToNegative?-l+(i-s.size):l,s.el.style.transform="x"===t?`translate3d(${l}px, 0, 0)`:`translate3d(0, ${l}px, 0)`}toggleTrackVisibility(t="y"){const 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.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add(`${this.classNames.scrollable}-${t}`)):(e.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove(`${this.classNames.scrollable}-${t}`)),this.axis[t].isOverflowing?i.style.display="block":i.style.display="none"}hideNativeScrollbar(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?`-${this.scrollbarWidth}px`:0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?`-${this.scrollbarWidth}px`:0}onMouseMoveForAxis(t="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.axis[t].track.el.classList.add(this.classNames.hover):this.axis[t].track.el.classList.remove(this.classNames.hover)}onMouseLeaveForAxis(t="y"){this.axis[t].track.el.classList.remove(this.classNames.hover),this.axis[t].scrollbar.el.classList.remove(this.classNames.hover)}onDragStart(t,e="y"){const i=He(this.el),r=qe(this.el),s=this.axis[e].scrollbar,n="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=n-s.rect[this.axis[e].offsetAttr],this.draggedAxis=e,this.el.classList.add(this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)}onTrackClick(t,e="y"){if(!this.options.clickOnTrack)return;t.preventDefault();const i=qe(this.el);this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect();const r=this.axis[e].scrollbar.rect[this.axis[e].offsetAttr],s=parseInt(this.elStyles[this.axis[e].sizeAttr],10);let n=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];const o=("y"===e?this.mouseY-r:this.mouseX-r)<0?-1:1,l=-1===o?n-s:n+s,a=()=>{-1===o?n>l&&(n-=40,this.contentWrapperEl[this.axis[e].scrollOffsetAttr]=n,i.requestAnimationFrame(a)):n<l&&(n+=40,this.contentWrapperEl[this.axis[e].scrollOffsetAttr]=n,i.requestAnimationFrame(a))};a()}getContentElement(){return this.contentEl}getScrollElement(){return this.contentWrapperEl}getScrollbarWidth(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Be()}catch(t){return Be()}}removeListeners(){const t=qe(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()}unMount(){this.removeListeners(),Ye.instances.delete(this.el)}isWithinBounds(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height}findChild(t,e){const i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,t=>i.call(t,e))[0]}}Ye.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0},Ye.instances=new WeakMap;var Xe=function(t){return function(e,i,r,s){Ot(i);var n=At(e),o=d(n),l=nt(n.length),a=t?l-1:0,c=t?-1:1;if(r<2)for(;;){if(a in o){s=o[a],a+=c;break}if(a+=c,t?a<0:l<=a)throw TypeError("Reduce of empty array with no initial value")}for(;t?a>=0:l>a;a+=c)a in o&&(s=i(s,o[a],a,n));return s}},Ue={left:Xe(!1),right:Xe(!0)}.left,Ge=Dt("reduce"),Ke=Ft("reduce",{1:0});wt({target:"Array",proto:!0,forced:!Ge||!Ke},{reduce:function(t){return Ue(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Ze=k.f,Je=Function.prototype,Qe=Je.toString,ti=/^\s*function ([^ (]*)/;n&&!("name"in Je)&&Ze(Je,"name",{configurable:!0,get:function(){try{return Qe.call(this).match(ti)[1]}catch(t){return""}}});var ei=function(){var t=A(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function ii(t,e){return RegExp(t,e)}var ri,si,ni={UNSUPPORTED_Y:s((function(){var t=ii("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:s((function(){var t=ii("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},oi=RegExp.prototype.exec,li=String.prototype.replace,ai=oi,ci=(ri=/a/,si=/b*/g,oi.call(ri,"a"),oi.call(si,"a"),0!==ri.lastIndex||0!==si.lastIndex),hi=ni.UNSUPPORTED_Y||ni.BROKEN_CARET,ui=void 0!==/()??/.exec("")[1];(ci||ui||hi)&&(ai=function(t){var e,i,r,s,n=this,o=hi&&n.sticky,l=ei.call(n),a=n.source,c=0,h=t;return o&&(-1===(l=l.replace("y","")).indexOf("g")&&(l+="g"),h=String(t).slice(n.lastIndex),n.lastIndex>0&&(!n.multiline||n.multiline&&"\n"!==t[n.lastIndex-1])&&(a="(?: "+a+")",h=" "+h,c++),i=new RegExp("^(?:"+a+")",l)),ui&&(i=new RegExp("^"+a+"$(?!\\s)",l)),ci&&(e=n.lastIndex),r=oi.call(o?i:n,h),o?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=n.lastIndex,n.lastIndex+=r[0].length):n.lastIndex=0:ci&&r&&(n.lastIndex=n.global?r.index+r[0].length:e),ui&&r&&r.length>1&&li.call(r[0],i,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(r[s]=void 0)})),r});var fi=ai;wt({target:"RegExp",proto:!0,forced:/./.exec!==fi},{exec:fi});var di=Tt("species"),pi=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),vi="$0"==="a".replace(/./,"$0"),gi=Tt("replace"),mi=!!/./[gi]&&""===/./[gi]("a","$0"),yi=!s((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]})),bi=function(t,e,i,r){var n=Tt(t),o=!s((function(){var e={};return e[n]=function(){return 7},7!=""[t](e)})),l=o&&!s((function(){var e=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[di]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return e=!0,null},i[n](""),!e}));if(!o||!l||"replace"===t&&(!pi||!vi||mi)||"split"===t&&!yi){var a=/./[n],c=i(n,""[t],(function(t,e,i,r,s){return e.exec===fi?o&&!s?{done:!0,value:a.call(e,i,r)}:{done:!0,value:t.call(i,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:vi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:mi}),h=c[0],u=c[1];J(String.prototype,t,h),J(RegExp.prototype,n,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}r&&_(RegExp.prototype[n],"sham",!0)},xi=function(t){return function(e,i){var r,s,n=String(p(e)),o=rt(i),l=n.length;return o<0||o>=l?t?"":void 0:(r=n.charCodeAt(o))<55296||r>56319||o+1===l||(s=n.charCodeAt(o+1))<56320||s>57343?t?n.charAt(o):r:t?n.slice(o,o+2):s-56320+(r-55296<<10)+65536}},Ei={codeAt:xi(!1),charAt:xi(!0)}.charAt,Si=function(t,e,i){return e+(i?Ei(t,e).length:1)},wi=function(t,e){var i=t.exec;if("function"==typeof i){var r=i.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==u(t))throw TypeError("RegExp#exec called on incompatible receiver");return fi.call(t,e)};bi("match",1,(function(t,e,i){return[function(e){var i=p(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,i):new RegExp(e)[t](String(i))},function(t){var r=i(e,t,this);if(r.done)return r.value;var s=A(t),n=String(this);if(!s.global)return wi(s,n);var o=s.unicode;s.lastIndex=0;for(var l,a=[],c=0;null!==(l=wi(s,n));){var h=String(l[0]);a[c]=h,""===h&&(s.lastIndex=Si(n,nt(s.lastIndex),o)),c++}return 0===c?null:a}]}));var Oi=Math.max,Ai=Math.min,Li=Math.floor,ki=/\$([$&'`]|\d\d?|<[^>]*>)/g,_i=/\$([$&'`]|\d\d?)/g;bi("replace",2,(function(t,e,i,r){var s=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,n=r.REPLACE_KEEPS_$0,o=s?"$":"$0";return[function(i,r){var s=p(this),n=null==i?void 0:i[t];return void 0!==n?n.call(i,s,r):e.call(String(s),i,r)},function(t,r){if(!s&&n||"string"==typeof r&&-1===r.indexOf(o)){var a=i(e,t,this,r);if(a.done)return a.value}var c=A(t),h=String(this),u="function"==typeof r;u||(r=String(r));var f=c.global;if(f){var d=c.unicode;c.lastIndex=0}for(var p=[];;){var v=wi(c,h);if(null===v)break;if(p.push(v),!f)break;""===String(v[0])&&(c.lastIndex=Si(h,nt(c.lastIndex),d))}for(var g,m="",y=0,b=0;b<p.length;b++){v=p[b];for(var x=String(v[0]),E=Oi(Ai(rt(v.index),h.length),0),S=[],w=1;w<v.length;w++)S.push(void 0===(g=v[w])?g:String(g));var O=v.groups;if(u){var L=[x].concat(S,E,h);void 0!==O&&L.push(O);var k=String(r.apply(void 0,L))}else k=l(x,h,E,S,O,r);E>=y&&(m+=h.slice(y,E)+k,y=E+x.length)}return m+h.slice(y)}];function l(t,i,r,s,n,o){var l=r+t.length,a=s.length,c=_i;return void 0!==n&&(n=At(n),c=ki),e.call(o,c,(function(e,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return i.slice(0,r);case"'":return i.slice(l);case"<":c=n[o.slice(1,-1)];break;default:var h=+o;if(0===h)return e;if(h>a){var u=Li(h/10);return 0===u?e:u<=a?void 0===s[u-1]?o.charAt(1):s[u-1]+o.charAt(1):e}c=s[h-1]}return void 0===c?"":c}))}}));var Mi=function(t){return Array.prototype.reduce.call(t,(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}),{})};return Ye.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),(function(t){"init"===t.getAttribute("data-simplebar")||Ye.instances.has(t)||new Ye(t,Mi(t.attributes))}))},Ye.removeObserver=function(){this.globalObserver.disconnect()},Ye.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(Ye.handleMutations),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))},Ye.handleMutations=function(t){t.forEach((function(t){Array.prototype.forEach.call(t.addedNodes,(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!Ye.instances.has(t)&&new Ye(t,Mi(t.attributes)):Array.prototype.forEach.call(t.querySelectorAll("[data-simplebar]"),(function(t){"init"===t.getAttribute("data-simplebar")||Ye.instances.has(t)||new Ye(t,Mi(t.attributes))})))})),Array.prototype.forEach.call(t.removedNodes,(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?Ye.instances.has(t)&&Ye.instances.get(t).unMount():Array.prototype.forEach.call(t.querySelectorAll('[data-simplebar="init"]'),(function(t){Ye.instances.has(t)&&Ye.instances.get(t).unMount()})))}))}))},Ye.getOptions=Mi,Ye.default=Ye,Kt&&Ye.initHtmlApi(),Ye}));
!function(e,t){if("function"==typeof define&&define.amd)define(["exports"],t);else if("undefined"!=typeof exports)t(exports);else{var i={exports:{}};t(i.exports),e.unknown=i.exports}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(e){function t(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function i(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?t(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e,t,i){return e(i={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&i.path)}},i.exports),i.exports}var c=function(e){return e&&e.Math==Math&&e},u=c("object"==("undefined"==typeof globalThis?"undefined":o(globalThis))&&globalThis)||c("object"==("undefined"==typeof window?"undefined":o(window))&&window)||c("object"==("undefined"==typeof self?"undefined":o(self))&&self)||c("object"==o(a)&&a)||Function("return this")(),h=function(e){try{return!!e()}catch(e){return!0}},f=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,v={f:p&&!d.call({1:2},1)?function(e){var t=p(this,e);return!!t&&t.enumerable}:d},g=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},y={}.toString,m=function(e){return y.call(e).slice(8,-1)},b="".split,x=h((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==m(e)?b.call(e,""):Object(e)}:Object,E=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},S=function(e){return x(E(e))},w=function(e){return"object"===o(e)?null!==e:"function"==typeof e},O=function(e,t){if(!w(e))return e;var i,r;if(t&&"function"==typeof(i=e.toString)&&!w(r=i.call(e)))return r;if("function"==typeof(i=e.valueOf)&&!w(r=i.call(e)))return r;if(!t&&"function"==typeof(i=e.toString)&&!w(r=i.call(e)))return r;throw TypeError("Can't convert object to primitive value")},A={}.hasOwnProperty,k=function(e,t){return A.call(e,t)},L=u.document,_=w(L)&&w(L.createElement),M=!f&&!h((function(){return 7!=Object.defineProperty((e="div",_?L.createElement(e):{}),"a",{get:function(){return 7}}).a;var e})),T=Object.getOwnPropertyDescriptor,C={f:f?T:function(e,t){if(e=S(e),t=O(t,!0),M)try{return T(e,t)}catch(e){}if(k(e,t))return g(!v.f.call(e,t),e[t])}},N=function(e){if(!w(e))throw TypeError(String(e)+" is not an object");return e},W=Object.defineProperty,P={f:f?W:function(e,t,i){if(N(e),t=O(t,!0),N(i),M)try{return W(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},z=f?function(e,t,i){return P.f(e,t,g(1,i))}:function(e,t,i){return e[t]=i,e},R=function(e,t){try{z(u,e,t)}catch(i){u[e]=t}return t},j=u["__core-js_shared__"]||R("__core-js_shared__",{}),D=Function.toString;"function"!=typeof j.inspectSource&&(j.inspectSource=function(e){return D.call(e)});var I,V,F,$,q=j.inspectSource,B=u.WeakMap,H="function"==typeof B&&/native code/.test(q(B)),Y=l((function(e){(e.exports=function(e,t){return j[e]||(j[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),X=0,U=Math.random(),G=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++X+U).toString(36)},K=Y("keys"),Z={},J=u.WeakMap;if(H){var Q=new J,ee=Q.get,te=Q.has,ie=Q.set;I=function(e,t){return ie.call(Q,e,t),t},V=function(e){return ee.call(Q,e)||{}},F=function(e){return te.call(Q,e)}}else{var re=K[$="state"]||(K[$]=G($));Z[re]=!0,I=function(e,t){return z(e,re,t),t},V=function(e){return k(e,re)?e[re]:{}},F=function(e){return k(e,re)}}var ne={set:I,get:V,has:F,enforce:function(e){return F(e)?V(e):I(e,{})},getterFor:function(e){return function(t){var i;if(!w(t)||(i=V(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}}},se=l((function(e){var t=ne.get,i=ne.enforce,r=String(String).split("String");(e.exports=function(e,t,n,s){var o=!!s&&!!s.unsafe,a=!!s&&!!s.enumerable,l=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||k(n,"name")||z(n,"name",t),i(n).source=r.join("string"==typeof t?t:"")),e!==u?(o?!l&&e[t]&&(a=!0):delete e[t],a?e[t]=n:z(e,t,n)):a?e[t]=n:R(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||q(this)}))})),oe=u,ae=function(e){return"function"==typeof e?e:void 0},le=Math.ceil,ce=Math.floor,ue=function(e){return isNaN(e=+e)?0:(e>0?ce:le)(e)},he=Math.min,fe=function(e){return e>0?he(ue(e),9007199254740991):0},de=Math.max,pe=Math.min,ve=function(e){return function(t,i,r){var n,s=S(t),o=fe(s.length),a=function(e,t){var i=ue(e);return i<0?de(i+t,0):pe(i,t)}(r,o);if(e&&i!=i){for(;o>a;)if((n=s[a++])!=n)return!0}else for(;o>a;a++)if((e||a in s)&&s[a]===i)return e||a||0;return!e&&-1}},ge={includes:ve(!0),indexOf:ve(!1)}.indexOf,ye=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),me={f:Object.getOwnPropertyNames||function(e){return function(e,t){var i,r=S(e),n=0,s=[];for(i in r)!k(Z,i)&&k(r,i)&&s.push(i);for(;t.length>n;)k(r,i=t[n++])&&(~ge(s,i)||s.push(i));return s}(e,ye)}},be={f:Object.getOwnPropertySymbols},xe=function(e,t){return arguments.length<2?ae(oe[e])||ae(u[e]):oe[e]&&oe[e][t]||u[e]&&u[e][t]}("Reflect","ownKeys")||function(e){var t=me.f(N(e)),i=be.f;return i?t.concat(i(e)):t},Ee=function(e,t){for(var i=xe(t),r=P.f,n=C.f,s=0;s<i.length;s++){var o=i[s];k(e,o)||r(e,o,n(t,o))}},Se=/#|\.prototype\./,we=function(e,t){var i=Ae[Oe(e)];return i==Le||i!=ke&&("function"==typeof t?h(t):!!t)},Oe=we.normalize=function(e){return String(e).replace(Se,".").toLowerCase()},Ae=we.data={},ke=we.NATIVE="N",Le=we.POLYFILL="P",_e=we,Me=C.f,Te=function(e,t){var i,r,n,s,a,l=e.target,c=e.global,h=e.stat;if(i=c?u:h?u[l]||R(l,{}):(u[l]||{}).prototype)for(r in t){if(s=t[r],n=e.noTargetGet?(a=Me(i,r))&&a.value:i[r],!_e(c?r:l+(h?".":"#")+r,e.forced)&&void 0!==n){if(o(s)===o(n))continue;Ee(s,n)}(e.sham||n&&n.sham)&&z(s,"sham",!0),se(i,r,s,e)}},Ce=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Ne=function(e){return Object(E(e))},We=Array.isArray||function(e){return"Array"==m(e)},Pe=!!Object.getOwnPropertySymbols&&!h((function(){return!String(Symbol())})),ze=Pe&&!Symbol.sham&&"symbol"==o(Symbol.iterator),Re=Y("wks"),je=u.Symbol,De=ze?je:je&&je.withoutSetter||G,Ie=function(e){return k(Re,e)||(Pe&&k(je,e)?Re[e]=je[e]:Re[e]=De("Symbol."+e)),Re[e]},Ve=Ie("species"),Fe=function(e,t){var i;return We(e)&&("function"!=typeof(i=e.constructor)||i!==Array&&!We(i.prototype)?w(i)&&null===(i=i[Ve])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===t?0:t)},$e=[].push,qe=function(e){var t=1==e,i=2==e,r=3==e,n=4==e,s=6==e,o=5==e||s;return function(a,l,c,u){for(var h,f,d=Ne(a),p=x(d),v=function(e,t,i){if(Ce(e),void 0===t)return e;switch(i){case 0:return function(){return e.call(t)};case 1:return function(i){return e.call(t,i)};case 2:return function(i,r){return e.call(t,i,r)};case 3:return function(i,r,n){return e.call(t,i,r,n)}}return function(){return e.apply(t,arguments)}}(l,c,3),g=fe(p.length),y=0,m=u||Fe,b=t?m(a,g):i?m(a,0):void 0;g>y;y++)if((o||y in p)&&(f=v(h=p[y],y,d),e))if(t)b[y]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:$e.call(b,h)}else if(n)return!1;return s?-1:r||n?n:b}},Be={forEach:qe(0),map:qe(1),filter:qe(2),some:qe(3),every:qe(4),find:qe(5),findIndex:qe(6)},He=function(e,t){var i=[][e];return!!i&&h((function(){i.call(null,t||function(){throw 1},1)}))},Ye=Object.defineProperty,Xe={},Ue=function(e){throw e},Ge=function(e,t){if(k(Xe,e))return Xe[e];t||(t={});var i=[][e],r=!!k(t,"ACCESSORS")&&t.ACCESSORS,n=k(t,0)?t[0]:Ue,s=k(t,1)?t[1]:void 0;return Xe[e]=!!i&&!h((function(){if(r&&!f)return!0;var e={length:-1};r?Ye(e,1,{enumerable:!0,get:Ue}):e[1]=1,i.call(e,n,s)}))},Ke=Be.forEach,Ze=He("forEach"),Je=Ge("forEach"),Qe=Ze&&Je?[].forEach:function(e){return Ke(this,e,arguments.length>1?arguments[1]:void 0)};Te({target:"Array",proto:!0,forced:[].forEach!=Qe},{forEach:Qe});for(var et 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 tt=u[et],it=tt&&tt.prototype;if(it&&it.forEach!==Qe)try{z(it,"forEach",Qe)}catch(e){it.forEach=Qe}}var rt=!("undefined"==typeof window||!window.document||!window.document.createElement),nt="object"==("undefined"==typeof global?"undefined":o(global))&&global&&global.Object===Object&&global,st="object"==("undefined"==typeof self?"undefined":o(self))&&self&&self.Object===Object&&self,ot=nt||st||Function("return this")(),at=ot.Symbol,lt=Object.prototype,ct=lt.hasOwnProperty,ut=lt.toString,ht=at?at.toStringTag:void 0;var ft=Object.prototype.toString;var dt=at?at.toStringTag:void 0;function pt(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":dt&&dt in Object(e)?function(e){var t=ct.call(e,ht),i=e[ht];try{e[ht]=void 0;var r=!0}catch(e){}var n=ut.call(e);return r&&(t?e[ht]=i:delete e[ht]),n}(e):function(e){return ft.call(e)}(e)}function vt(e){return"symbol"==o(e)||function(e){return null!=e&&"object"==o(e)}(e)&&"[object Symbol]"==pt(e)}function gt(e){var t=o(e);return null!=e&&("object"==t||"function"==t)}var yt=/^\s+|\s+$/g,mt=/^[-+]0x[0-9a-f]+$/i,bt=/^0b[01]+$/i,xt=/^0o[0-7]+$/i,Et=parseInt;function St(e){if("number"==typeof e)return e;if(vt(e))return NaN;if(gt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=gt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(yt,"");var i=bt.test(e);return i||xt.test(e)?Et(e.slice(2),i?2:8):mt.test(e)?NaN:+e}var wt=ot["__core-js_shared__"],Ot=function(){var e=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var At=Function.prototype.toString;var kt=/^\[object .+?Constructor\]$/,Lt=Function.prototype,_t=Object.prototype,Mt=Lt.toString,Tt=_t.hasOwnProperty,Ct=RegExp("^"+Mt.call(Tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Nt(e){return!(!gt(e)||(t=e,Ot&&Ot in t))&&(function(e){if(!gt(e))return!1;var t=pt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)?Ct:kt).test(function(e){if(null!=e){try{return At.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function Wt(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return Nt(i)?i:void 0}var Pt=Wt(Object,"create");var zt=Object.prototype.hasOwnProperty;var Rt=Object.prototype.hasOwnProperty;function jt(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Dt(e,t){for(var i,r,n=e.length;n--;)if((i=e[n][0])===(r=t)||i!=i&&r!=r)return n;return-1}jt.prototype.clear=function(){this.__data__=Pt?Pt(null):{},this.size=0},jt.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},jt.prototype.get=function(e){var t=this.__data__;if(Pt){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return zt.call(t,e)?t[e]:void 0},jt.prototype.has=function(e){var t=this.__data__;return Pt?void 0!==t[e]:Rt.call(t,e)},jt.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Pt&&void 0===t?"__lodash_hash_undefined__":t,this};var It=Array.prototype.splice;function Vt(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}Vt.prototype.clear=function(){this.__data__=[],this.size=0},Vt.prototype.delete=function(e){var t=this.__data__,i=Dt(t,e);return!(i<0)&&(i==t.length-1?t.pop():It.call(t,i,1),--this.size,!0)},Vt.prototype.get=function(e){var t=this.__data__,i=Dt(t,e);return i<0?void 0:t[i][1]},Vt.prototype.has=function(e){return Dt(this.__data__,e)>-1},Vt.prototype.set=function(e,t){var i=this.__data__,r=Dt(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this};var Ft=Wt(ot,"Map");function $t(e,t){var i,r,n=e.__data__;return("string"==(r=o(i=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?n["string"==typeof t?"string":"hash"]:n.map}function qt(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}qt.prototype.clear=function(){this.size=0,this.__data__={hash:new jt,map:new(Ft||Vt),string:new jt}},qt.prototype.delete=function(e){var t=$t(this,e).delete(e);return this.size-=t?1:0,t},qt.prototype.get=function(e){return $t(this,e).get(e)},qt.prototype.has=function(e){return $t(this,e).has(e)},qt.prototype.set=function(e,t){var i=$t(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this};function Bt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function i(){var r=arguments,n=t?t.apply(this,r):r[0],s=i.cache;if(s.has(n))return s.get(n);var o=e.apply(this,r);return i.cache=s.set(n,o)||s,o};return i.cache=new(Bt.Cache||qt),i}Bt.Cache=qt;var Ht=function(){return ot.Date.now()},Yt=Math.max,Xt=Math.min;function Ut(e,t,i){var r,n,s,o,a,l,c=0,u=!1,h=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var i=r,s=n;return r=n=void 0,c=t,o=e.apply(s,i)}function p(e){return c=e,a=setTimeout(g,t),u?d(e):o}function v(e){var i=e-l;return void 0===l||i>=t||i<0||h&&e-c>=s}function g(){var e=Ht();if(v(e))return y(e);a=setTimeout(g,function(e){var i=t-(e-l);return h?Xt(i,s-(e-c)):i}(e))}function y(e){return a=void 0,f&&r?d(e):(r=n=void 0,o)}function m(){var e=Ht(),i=v(e);if(r=arguments,n=this,l=e,i){if(void 0===a)return p(l);if(h)return clearTimeout(a),a=setTimeout(g,t),d(l)}return void 0===a&&(a=setTimeout(g,t)),o}return t=St(t)||0,gt(i)&&(u=!!i.leading,s=(h="maxWait"in i)?Yt(St(i.maxWait)||0,t):s,f="trailing"in i?!!i.trailing:f),m.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=n=a=void 0},m.flush=function(){return void 0===a?o:y(Ht())},m}function Gt(e,t,i){var r=!0,n=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return gt(i)&&(r="leading"in i?!!i.leading:r,n="trailing"in i?!!i.trailing:n),Ut(e,t,{leading:r,maxWait:t,trailing:n})}var Kt=null,Zt=null;function Jt(){if(null===Kt){if("undefined"==typeof document)return Kt=0;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var i=t.getBoundingClientRect().right;e.removeChild(t),Kt=i}return Kt}function Qt(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function ei(e){return e&&e.ownerDocument?e.ownerDocument:document}rt&&window.addEventListener("resize",(function(){Zt!==window.devicePixelRatio&&(Zt=window.devicePixelRatio,Kt=null)}));var ti=function(){function e(t){var r=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.onScroll=function(){var e=Qt(r.el);r.scrollXTicking||(e.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(e.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,r.el.classList.add(r.classNames.scrolling)),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this.onStopScrolling=function(){r.el.classList.remove(r.classNames.scrolling),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(r.el.classList.add(r.classNames.mouseEntered),r.isMouseEntering=!0),r.onMouseEntered()},this.onMouseEntered=function(){r.el.classList.remove(r.classNames.mouseEntered),r.isMouseEntering=!1},this.onMouseMove=function(e){r.mouseX=e.clientX,r.mouseY=e.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=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(e){var t,i;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(t=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(i=r.isWithinBounds(r.axis.y.track.rect)),(t||i)&&(e.stopPropagation(),"pointerdown"===e.type&&"touch"!==e.pointerType&&(t&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(e,"x"):r.onTrackClick(e,"x")),i&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(e,"y"):r.onTrackClick(e,"y"))))},this.drag=function(t){var i=r.axis[r.draggedAxis].track,n=i.rect[r.axis[r.draggedAxis].sizeAttr],s=r.axis[r.draggedAxis].scrollbar,o=r.contentWrapperEl[r.axis[r.draggedAxis].scrollSizeAttr],a=parseInt(r.elStyles[r.axis[r.draggedAxis].sizeAttr],10);t.preventDefault(),t.stopPropagation();var l=(("y"===r.draggedAxis?t.pageY:t.pageX)-i.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset)/(n-s.size)*(o-a);"x"===r.draggedAxis&&(l=r.isRtl&&e.getRtlHelpers().isScrollOriginAtZero?l-(n+s.size):l),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=l},this.onEndDrag=function(e){var t=ei(r.el),i=Qt(r.el);e.preventDefault(),e.stopPropagation(),r.el.classList.remove(r.classNames.dragging),t.removeEventListener("mousemove",r.drag,!0),t.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=i.setTimeout((function(){t.removeEventListener("click",r.preventClick,!0),t.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null}))},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=t,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.options=i(i({},e.defaultOptions),s),this.classNames=i({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",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,this.isScrolling=!1,this.isMouseEntering=!1,e.instances.has(this.el)||(s.classNames&&console.warn("simplebar: classNames option is deprecated. Please override the styles with CSS instead."),s.autoHide&&console.warn("simplebar: autoHide option is deprecated. Please use CSS instead: '.simplebar-scrollbar::before { opacity: 0.5 };' for autoHide: false"),this.onMouseMove=Gt(this.onMouseMove,64),this.onWindowResize=Ut(this.onWindowResize,64,{leading:!0}),this.onStopScrolling=Ut(this.onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ut(this.onMouseEntered,this.stopScrollDelay),e.getRtlHelpers=Bt(e.getRtlHelpers),this.init())}var t,r,o;return t=e,o=[{key:"getRtlHelpers",value:function(){var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var i=t.firstElementChild,r=i.firstElementChild;document.body.appendChild(i),i.scrollLeft=0;var n=e.getOffset(i),s=e.getOffset(r);i.scrollLeft=-999;var o=e.getOffset(r);return{isScrollOriginAtZero:n.left!==s.left,isScrollingToNegative:s.left!==o.left}}},{key:"getOffset",value:function(e){var t=e.getBoundingClientRect(),i=ei(e),r=Qt(e);return{top:t.top+(r.pageYOffset||i.documentElement.scrollTop),left:t.left+(r.pageXOffset||i.documentElement.scrollLeft)}}}],(r=[{key:"init",value:function(){e.instances.set(this.el,this),rt&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())}},{key:"initDOM",value:function(){var e=this;if(Array.prototype.filter.call(this.el.children,(function(t){return t.classList.contains(e.classNames.wrapper)})).length)this.wrapperEl=this.el.querySelector(".".concat(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(".".concat(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(".".concat(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(".".concat(this.classNames.offset)),this.maskEl=this.el.querySelector(".".concat(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,".".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.findChild(this.el,".".concat(this.classNames.track,".").concat(this.classNames.horizontal)),this.axis.y.track.el=this.findChild(this.el,".".concat(this.classNames.track,".").concat(this.classNames.vertical));else{for(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),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 t=document.createElement("div"),i=document.createElement("div");t.classList.add(this.classNames.track),i.classList.add(this.classNames.scrollbar),t.appendChild(i),this.axis.x.track.el=t.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=t.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 e=this,t=Qt(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize),window.ResizeObserver){var i=!1,r=t.ResizeObserver||ResizeObserver;this.resizeObserver=new r((function(){i&&t.requestAnimationFrame((function(){e.recalculate()}))})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),t.requestAnimationFrame((function(){i=!0}))}this.mutationObserver=new t.MutationObserver((function(){t.requestAnimationFrame((function(){e.recalculate()}))})),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},{key:"recalculate",value:function(){var e=Qt(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.contentEl.offsetWidth,i=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||t>0,n=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,o=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var a=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=i?"auto":"100%",this.placeholderEl.style.width=r?"".concat(t||l,"px"):"auto",this.placeholderEl.style.height="".concat(a,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=0!==t&&l>t,this.axis.y.isOverflowing=a>c,this.axis.x.isOverflowing="hidden"!==s&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==o&&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();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>n-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&a>c-u,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")}},{key:"getScrollbarSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";if(!this.axis[e].isOverflowing)return 0;var t,i=this.contentEl[this.axis[e].scrollSizeAttr],r=this.axis[e].track.el[this.axis[e].offsetSizeAttr],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 t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";if(this.axis[t].isOverflowing){var i=this.contentWrapperEl[this.axis[t].scrollSizeAttr],r=this.axis[t].track.el[this.axis[t].offsetSizeAttr],n=parseInt(this.elStyles[this.axis[t].sizeAttr],10),s=this.axis[t].scrollbar,o=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],a=(o="x"===t&&this.isRtl&&e.getRtlHelpers().isScrollOriginAtZero?-o:o)/(i-n),l=~~((r-s.size)*a);l="x"===t&&this.isRtl&&e.getRtlHelpers().isScrollingToNegative?-l+(r-s.size):l,s.el.style.transform="x"===t?"translate3d(".concat(l,"px, 0, 0)"):"translate3d(0, ".concat(l,"px, 0)")}}},{key:"toggleTrackVisibility",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",t=this.axis[e].track.el,i=this.axis[e].scrollbar.el;this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?i.style.display="block":i.style.display="none"}},{key:"hideNativeScrollbar",value:function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):0}},{key:"onMouseMoveForAxis",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.axis[e].track.rect=this.axis[e].track.el.getBoundingClientRect(),this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect();var t=this.isWithinBounds(this.axis[e].scrollbar.rect);t?this.axis[e].scrollbar.el.classList.add(this.classNames.hover):this.axis[e].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[e].track.rect)?this.axis[e].track.el.classList.add(this.classNames.hover):this.axis[e].track.el.classList.remove(this.classNames.hover)}},{key:"onMouseLeaveForAxis",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.axis[e].track.el.classList.remove(this.classNames.hover),this.axis[e].scrollbar.el.classList.remove(this.classNames.hover)}},{key:"onDragStart",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",i=ei(this.el),r=Qt(this.el),n=this.axis[t].scrollbar,s="y"===t?e.pageY:e.pageX;this.axis[t].dragOffset=s-n.rect[this.axis[t].offsetAttr],this.draggedAxis=t,this.el.classList.add(this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)}},{key:"onTrackClick",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y";if(this.options.clickOnTrack){e.preventDefault();var r=Qt(this.el);this.axis[i].scrollbar.rect=this.axis[i].scrollbar.el.getBoundingClientRect();var n=this.axis[i].scrollbar,s=n.rect[this.axis[i].offsetAttr],o=parseInt(this.elStyles[this.axis[i].sizeAttr],10),a=this.contentWrapperEl[this.axis[i].scrollOffsetAttr],l="y"===i?this.mouseY-s:this.mouseX-s,c=l<0?-1:1,u=-1===c?a-o:a+o,h=40,f=function e(){-1===c?a>u&&(a-=h,t.contentWrapperEl[t.axis[i].scrollOffsetAttr]=a,r.requestAnimationFrame(e)):a<u&&(a+=h,t.contentWrapperEl[t.axis[i].scrollOffsetAttr]=a,r.requestAnimationFrame(e))};f()}}},{key:"getContentElement",value:function(){return this.contentEl}},{key:"getScrollElement",value:function(){return this.contentWrapperEl}},{key:"getScrollbarWidth",value:function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Jt()}catch(e){return Jt()}}},{key:"removeListeners",value:function(){var e=Qt(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()}},{key:"unMount",value:function(){this.removeListeners(),e.instances.delete(this.el)}},{key:"isWithinBounds",value:function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height}},{key:"findChild",value:function(e,t){var i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,(function(e){return i.call(e,t)}))[0]}}])&&s(t.prototype,r),o&&s(t,o),e}();ti.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0},ti.instances=new WeakMap;var ii=function(e){return function(t,i,r,n){Ce(i);var s=Ne(t),o=x(s),a=fe(s.length),l=e?a-1:0,c=e?-1:1;if(r<2)for(;;){if(l in o){n=o[l],l+=c;break}if(l+=c,e?l<0:a<=l)throw TypeError("Reduce of empty array with no initial value")}for(;e?l>=0:a>l;l+=c)l in o&&(n=i(n,o[l],l,s));return n}},ri={left:ii(!1),right:ii(!0)}.left,ni=He("reduce"),si=Ge("reduce",{1:0});Te({target:"Array",proto:!0,forced:!ni||!si},{reduce:function(e){return ri(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var oi=P.f,ai=Function.prototype,li=ai.toString,ci=/^\s*function ([^ (]*)/;f&&!("name"in ai)&&oi(ai,"name",{configurable:!0,get:function(){try{return li.call(this).match(ci)[1]}catch(e){return""}}});var ui=function(){var e=N(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function hi(e,t){return RegExp(e,t)}var fi,di,pi={UNSUPPORTED_Y:h((function(){var e=hi("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:h((function(){var e=hi("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},vi=RegExp.prototype.exec,gi=String.prototype.replace,yi=vi,mi=(fi=/a/,di=/b*/g,vi.call(fi,"a"),vi.call(di,"a"),0!==fi.lastIndex||0!==di.lastIndex),bi=pi.UNSUPPORTED_Y||pi.BROKEN_CARET,xi=void 0!==/()??/.exec("")[1];(mi||xi||bi)&&(yi=function(e){var t,i,r,n,s=this,o=bi&&s.sticky,a=ui.call(s),l=s.source,c=0,u=e;return o&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),u=String(e).slice(s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==e[s.lastIndex-1])&&(l="(?: "+l+")",u=" "+u,c++),i=new RegExp("^(?:"+l+")",a)),xi&&(i=new RegExp("^"+l+"$(?!\\s)",a)),mi&&(t=s.lastIndex),r=vi.call(o?i:s,u),o?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=s.lastIndex,s.lastIndex+=r[0].length):s.lastIndex=0:mi&&r&&(s.lastIndex=s.global?r.index+r[0].length:t),xi&&r&&r.length>1&&gi.call(r[0],i,(function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(r[n]=void 0)})),r});var Ei=yi;Te({target:"RegExp",proto:!0,forced:/./.exec!==Ei},{exec:Ei});var Si=Ie("species"),wi=!h((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Oi="$0"==="a".replace(/./,"$0"),Ai=Ie("replace"),ki=!!/./[Ai]&&""===/./[Ai]("a","$0"),Li=!h((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var i="ab".split(e);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),_i=function(e,t,i,r){var n=Ie(e),s=!h((function(){var t={};return t[n]=function(){return 7},7!=""[e](t)})),o=s&&!h((function(){var t=!1,i=/a/;return"split"===e&&((i={}).constructor={},i.constructor[Si]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return t=!0,null},i[n](""),!t}));if(!s||!o||"replace"===e&&(!wi||!Oi||ki)||"split"===e&&!Li){var a=/./[n],l=i(n,""[e],(function(e,t,i,r,n){return t.exec===Ei?s&&!n?{done:!0,value:a.call(t,i,r)}:{done:!0,value:e.call(i,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Oi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:ki}),c=l[0],u=l[1];se(String.prototype,e,c),se(RegExp.prototype,n,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)})}r&&z(RegExp.prototype[n],"sham",!0)},Mi=function(e){return function(t,i){var r,n,s=String(E(t)),o=ue(i),a=s.length;return o<0||o>=a?e?"":void 0:(r=s.charCodeAt(o))<55296||r>56319||o+1===a||(n=s.charCodeAt(o+1))<56320||n>57343?e?s.charAt(o):r:e?s.slice(o,o+2):n-56320+(r-55296<<10)+65536}},Ti={codeAt:Mi(!1),charAt:Mi(!0)}.charAt,Ci=function(e,t,i){return t+(i?Ti(e,t).length:1)},Ni=function(e,t){var i=e.exec;if("function"==typeof i){var r=i.call(e,t);if("object"!==o(r))throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==m(e))throw TypeError("RegExp#exec called on incompatible receiver");return Ei.call(e,t)};_i("match",1,(function(e,t,i){return[function(t){var i=E(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,i):new RegExp(t)[e](String(i))},function(e){var r=i(t,e,this);if(r.done)return r.value;var n=N(e),s=String(this);if(!n.global)return Ni(n,s);var o=n.unicode;n.lastIndex=0;for(var a,l=[],c=0;null!==(a=Ni(n,s));){var u=String(a[0]);l[c]=u,""===u&&(n.lastIndex=Ci(s,fe(n.lastIndex),o)),c++}return 0===c?null:l}]}));var Wi=Math.max,Pi=Math.min,zi=Math.floor,Ri=/\$([$&'`]|\d\d?|<[^>]*>)/g,ji=/\$([$&'`]|\d\d?)/g;_i("replace",2,(function(e,t,i,r){var n=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,s=r.REPLACE_KEEPS_$0,o=n?"$":"$0";return[function(i,r){var n=E(this),s=null==i?void 0:i[e];return void 0!==s?s.call(i,n,r):t.call(String(n),i,r)},function(e,r){if(!n&&s||"string"==typeof r&&-1===r.indexOf(o)){var l=i(t,e,this,r);if(l.done)return l.value}var c=N(e),u=String(this),h="function"==typeof r;h||(r=String(r));var f=c.global;if(f){var d=c.unicode;c.lastIndex=0}for(var p=[];;){var v=Ni(c,u);if(null===v)break;if(p.push(v),!f)break;""===String(v[0])&&(c.lastIndex=Ci(u,fe(c.lastIndex),d))}for(var g,y="",m=0,b=0;b<p.length;b++){v=p[b];for(var x=String(v[0]),E=Wi(Pi(ue(v.index),u.length),0),S=[],w=1;w<v.length;w++)S.push(void 0===(g=v[w])?g:String(g));var O=v.groups;if(h){var A=[x].concat(S,E,u);void 0!==O&&A.push(O);var k=String(r.apply(void 0,A))}else k=a(x,u,E,S,O,r);E>=m&&(y+=u.slice(m,E)+k,m=E+x.length)}return y+u.slice(m)}];function a(e,i,r,n,s,o){var a=r+e.length,l=n.length,c=ji;return void 0!==s&&(s=Ne(s),c=Ri),t.call(o,c,(function(t,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return i.slice(0,r);case"'":return i.slice(a);case"<":c=s[o.slice(1,-1)];break;default:var u=+o;if(0===u)return t;if(u>l){var h=zi(u/10);return 0===h?t:h<=l?void 0===n[h-1]?o.charAt(1):n[h-1]+o.charAt(1):t}c=n[u-1]}return void 0===c?"":c}))}}));var Di=function(e){return Array.prototype.reduce.call(e,(function(e,t){var i=t.name.match(/data-simplebar-(.+)/);if(i){var r=i[1].replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}));switch(t.value){case"true":e[r]=!0;break;case"false":e[r]=!1;break;case void 0:e[r]=!0;break;default:e[r]=t.value}}return e}),{})};ti.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),(function(e){"init"===e.getAttribute("data-simplebar")||ti.instances.has(e)||new ti(e,Di(e.attributes))}))},ti.removeObserver=function(){this.globalObserver.disconnect()},ti.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(ti.handleMutations),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))},ti.handleMutations=function(e){e.forEach((function(e){Array.prototype.forEach.call(e.addedNodes,(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?!ti.instances.has(e)&&new ti(e,Di(e.attributes)):Array.prototype.forEach.call(e.querySelectorAll("[data-simplebar]"),(function(e){"init"===e.getAttribute("data-simplebar")||ti.instances.has(e)||new ti(e,Di(e.attributes))})))})),Array.prototype.forEach.call(e.removedNodes,(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?ti.instances.has(e)&&ti.instances.get(e).unMount():Array.prototype.forEach.call(e.querySelectorAll('[data-simplebar="init"]'),(function(e){ti.instances.has(e)&&ti.instances.get(e).unMount()})))}))}))},ti.getOptions=Di,ti.default=ti,rt&&ti.initHtmlApi();var Ii=ti;e.default=Ii}));
{
"version": "6.0.0-beta.6",
"version": "6.0.0-beta.7",
"name": "simplebar",

@@ -34,3 +34,4 @@ "title": "SimpleBar.js",

"core-js": "^3.6.5",
"simplebar-core": "^1.0.3"
"lodash-es": "^4.17.15",
"simplebar-core": "^1.0.4"
},

@@ -58,3 +59,3 @@ "devDependencies": {

},
"gitHead": "acd602c8e43513e77da3df438ae3dc7a7f217871"
"gitHead": "cd3e548089bd0d986a13811a8f2cd63a9f8d5f48"
}

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is 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