mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 14:13:46 +09:00
f60c3fda42
- added .editorconfig from wp.org official repo - added webpack.config.js sample - added XML codestyle for PHPStorm
1 line
44 KiB
JavaScript
1 line
44 KiB
JavaScript
!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";function y(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}function c(t){try{return!!t()}catch(t){return!0}}function r(t){return e.call(t).slice(8,-1)}function o(t){if(null==t)throw TypeError("Can't call method on "+t);return t}function w(t){return Object(o(t))}function O(t){return isNaN(t=+t)?0:(0<t?a:s)(t)}function _(t){return 0<t?l(O(t),9007199254740991):0}function n(t){return"object"==typeof t?null!==t:"function"==typeof t}var e={}.toString,i="".split,x=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==r(t)?i.call(t,""):Object(t)}:Object,s=Math.ceil,a=Math.floor,l=Math.min,h=Array.isArray||function(t){return"Array"==r(t)},t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t,e){return t(e={exports:{}},e.exports),e.exports}function S(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}function f(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}function d(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function p(e,i){try{H(z,e,i)}catch(t){z[e]=i}return i}function v(t){return G[t]||(G[t]=Y&&K[t]||(Y?K:X)("Symbol."+t))}function E(t,e){var i;return new(void 0===(i=h(t)&&("function"==typeof(i=t.constructor)&&(i===Array||h(i.prototype))||n(i)&&null===(i=i[U]))?void 0:i)?Array:i)(0===e?0:e)}function g(u,t){var f=1==u,d=2==u,p=3==u,v=4==u,g=6==u,b=5==u||g,m=t||E;return function(t,e,i){for(var r,n,s=w(t),o=x(s),a=function(r,n,t){if(y(r),void 0===n)return r;switch(t){case 0:return function(){return r.call(n)};case 1:return function(t){return r.call(n,t)};case 2:return function(t,e){return r.call(n,t,e)};case 3:return function(t,e,i){return r.call(n,t,e,i)}}return function(){return r.apply(n,arguments)}}(e,i,3),l=_(o.length),c=0,h=f?m(t,l):d?m(t,0):void 0;c<l;c++)if((b||c in o)&&(n=a(r=o[c],c,s),u))if(f)h[c]=n;else if(n)switch(u){case 3:return!0;case 5:return r;case 6:return c;case 2:h.push(r)}else if(v)return!1;return g?-1:p||v?v:h}}function b(t){return x(o(t))}function m(t,e){return et.call(t,e)}var A,L,M,k,W,T,R,j,N,z="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")(),C=!c(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),V=z.document,D=n(V)&&n(V.createElement),B=!C&&!c(function(){return 7!=Object.defineProperty(D?V.createElement("div"):{},"a",{get:function(){return 7}}).a}),I=Object.defineProperty,P={f:C?I:function(t,e,i){if(S(t),e=f(e,!0),S(i),B)try{return I(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}},H=C?function(t,e,i){return P.f(t,e,d(1,i))}:function(t,e,i){return t[e]=i,t},F=u(function(t){var e="__core-js_shared__",i=z[e]||p(e,{});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.0.1",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),q=0,$=Math.random(),X=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++q+$).toString(36))},Y=!c(function(){return!String(Symbol())}),G=F("wks"),K=z.Symbol,U=v("species"),J=v("species"),Q={}.propertyIsEnumerable,Z=Object.getOwnPropertyDescriptor,tt={f:Z&&!Q.call({1:2},1)?function(t){t=Z(this,t);return!!t&&t.enumerable}:Q},et={}.hasOwnProperty,it=Object.getOwnPropertyDescriptor,rt={f:C?it:function(t,e){if(t=b(t),e=f(e,!0),B)try{return it(t,e)}catch(t){}if(m(t,e))return d(!tt.f.call(t,e),t[e])}},nt=F("native-function-to-string",Function.toString),st=z.WeakMap,ot="function"==typeof st&&/native code/.test(nt.call(st)),at=F("keys"),lt={},Q=z.WeakMap;R=ot?(A=new Q,L=A.get,M=A.has,k=A.set,W=function(t,e){return k.call(A,t,e),e},T=function(t){return L.call(A,t)||{}},function(t){return M.call(A,t)}):(j=at[N="state"]||(at[N]=X(N)),lt[j]=!0,W=function(t,e){return H(t,j,e),e},T=function(t){return m(t,j)?t[j]:{}},function(t){return m(t,j)});function ct(t,e){var i,r=b(t),n=0,s=[];for(i in r)!m(lt,i)&&m(r,i)&&s.push(i);for(;e.length>n;)m(r,i=e[n++])&&(~gt(s,i)||s.push(i));return s}var ht,ut,ft={set:W,get:T,has:R,enforce:function(t){return R(t)?T(t):W(t,{})},getterFor:function(i){return function(t){var e;if(!n(t)||(e=T(t)).type!==i)throw TypeError("Incompatible receiver, "+i+" required");return e}}},dt=u(function(t){var e=ft.get,o=ft.enforce,a=String(nt).split("toString");F("inspectSource",function(t){return nt.call(t)}),(t.exports=function(t,e,i,r){var n=!!r&&!!r.unsafe,s=!!r&&!!r.enumerable,r=!!r&&!!r.noTargetGet;"function"==typeof i&&("string"!=typeof e||m(i,"name")||H(i,"name",e),o(i).source=a.join("string"==typeof e?e:"")),t!==z?(n?!r&&t[e]&&(s=!0):delete t[e],s?t[e]=i:H(t,e,i)):s?t[e]=i:p(e,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||nt.call(this)})}),pt=Math.max,vt=Math.min,gt=(ht=!1,function(t,e,i){var r,n=b(t),s=_(n.length),o=function(t,e){t=O(t);return t<0?pt(t+e,0):vt(t,e)}(i,s);if(ht&&e!=e){for(;o<s;)if((r=n[o++])!=r)return!0}else for(;o<s;o++)if((ht||o in n)&&n[o]===e)return ht||o||0;return!ht&&-1}),bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mt=bt.concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return ct(t,mt)}},xt={f:Object.getOwnPropertySymbols},st=z.Reflect,Et=st&&st.ownKeys||function(t){var e=yt.f(S(t)),i=xt.f;return i?e.concat(i(t)):e},wt=/#|\.prototype\./,ot=function(t,e){t=_t[Ot(t)];return t==At||t!=St&&("function"==typeof e?c(e):!!e)},Ot=ot.normalize=function(t){return String(t).replace(wt,".").toLowerCase()},_t=ot.data={},St=ot.NATIVE="N",At=ot.POLYFILL="P",Lt=ot,Mt=rt.f,Q=function(t,e){var i,r,n,s=t.target,o=t.global,a=t.stat,l=o?z:a?z[s]||p(s,{}):(z[s]||{}).prototype;if(l)for(i in e){if(r=e[i],n=t.noTargetGet?(n=Mt(l,i))&&n.value:l[i],!Lt(o?i:s+(a?".":"#")+i,t.forced)&&void 0!==n){if(typeof r==typeof n)continue;!function(t,e){for(var i=Et(e),r=P.f,n=rt.f,s=0;s<i.length;s++){var o=i[s];m(t,o)||r(t,o,n(e,o))}}(r,n)}(t.sham||n&&n.sham)&&H(r,"sham",!0),dt(l,i,r,t)}},kt=g(2);Q({target:"Array",proto:!0,forced:!(ut="filter",!c(function(){var t=[];return(t.constructor={})[J]=function(){return{foo:1}},1!==t[ut](Boolean).foo}))},{filter:function(t){return kt(this,t,arguments[1])}});var st=function(t,e){var i=[][t];return!i||!c(function(){i.call(null,e||function(){throw 1},1)})},ot=[].forEach,Wt=g(0),Tt=st("forEach")?function(t){return Wt(this,t,arguments[1])}:ot;Q({target:"Array",proto:!0,forced:[].forEach!=Tt},{forEach:Tt});Q({target:"Array",proto:!0,forced:st("reduce")},{reduce:function(t){return function(t,e,i,r,n){y(e);var s=w(t),o=x(s),a=_(s.length),l=n?a-1:0,c=n?-1:1;if(i<2)for(;;){if(l in o){r=o[l],l+=c;break}if(l+=c,n?l<0:a<=l)throw TypeError("Reduce of empty array with no initial value")}for(;n?0<=l:l<a;l+=c)l in o&&(r=e(r,o[l],l,s));return r}(this,t,arguments.length,arguments[1],!1)}});var ot=P.f,st=Function.prototype,Rt=st.toString,jt=/^\s*function ([^ (]*)/;!C||"name"in st||ot(st,"name",{configurable:!0,get:function(){try{return Rt.call(this).match(jt)[1]}catch(t){return""}}});var Nt=Object.keys||function(t){return ct(t,bt)},zt=Object.assign,C=!zt||c(function(){var t={},e={},i=Symbol(),r="abcdefghijklmnopqrst";return t[i]=7,r.split("").forEach(function(t){e[t]=t}),7!=zt({},t)[i]||Nt(zt({},e)).join("")!=r})?function(t,e){for(var i=w(t),r=arguments.length,n=1,s=xt.f,o=tt.f;n<r;)for(var a,l=x(arguments[n++]),c=s?Nt(l).concat(s(l)):Nt(l),h=c.length,u=0;u<h;)o.call(l,a=c[u++])&&(i[a]=l[a]);return i}:zt;Q({target:"Object",stat:!0,forced:Object.assign!==C},{assign:C});var ot="\t\n\v\f\r \u2028\u2029\ufeff",st="["+ot+"]",Ct=RegExp("^"+st+st+"*"),Vt=RegExp(st+st+"*$"),Dt=z.parseInt,Bt=/^[-+]?0[xX]/,C=8!==Dt(ot+"08")||22!==Dt(ot+"0x16")?function(t,e){var i,i=(i=String(t),t=3,i=String(o(i)),1&t&&(i=i.replace(Ct,"")),i=2&t?i.replace(Vt,""):i);return Dt(i,e>>>0||(Bt.test(i)?16:10))}:Dt;Q({global:!0,forced:parseInt!=C},{parseInt:C});var It=RegExp.prototype.exec,Pt=String.prototype.replace,st=It,Ht=(ot=/a/,C=/b*/g,It.call(ot,"a"),It.call(C,"a"),0!==ot.lastIndex||0!==C.lastIndex),Ft=void 0!==/()??/.exec("")[1],qt=st=Ht||Ft?function(t){var e,i,r,n,s=this;return Ft&&(i=new RegExp("^"+s.source+"$(?!\\s)",function(){var t=S(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}.call(s))),Ht&&(e=s.lastIndex),r=It.call(s,t),Ht&&r&&(s.lastIndex=s.global?r.index+r[0].length:e),Ft&&r&&1<r.length&&Pt.call(r[0],i,function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(r[n]=void 0)}),r}:st;Q({target:"RegExp",proto:!0,forced:/./.exec!==qt},{exec:qt});function $t(t,e,i){return e+(i?(r=t,n=e,i=!0,t=String(o(r)),e=O(n),r=t.length,(e<0||r<=e?i?"":void 0:(n=t.charCodeAt(e))<55296||56319<n||e+1===r||(s=t.charCodeAt(e+1))<56320||57343<s?i?t.charAt(e):n:i?t.slice(e,e+2):s-56320+(n-55296<<10)+65536).length):1);var r,n,s}function Xt(t,e){var i=t.exec;if("function"==typeof i){i=i.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return qt.call(t,e)}var Yt=v("species"),Gt=!c(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),Kt=!c(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};t="ab".split(t);return 2!==t.length||"a"!==t[0]||"b"!==t[1]}),ot=function(i,t,e,r){var s,n,o=v(i),a=!c(function(){var t={};return t[o]=function(){return 7},7!=""[i](t)}),l=a&&!c(function(){var t=!1,e=/a/;return e.exec=function(){return t=!0,null},"split"===i&&(e.constructor={},e.constructor[Yt]=function(){return e}),e[o](""),!t});a&&l&&("replace"!==i||Gt)&&("split"!==i||Kt)||(s=/./[o],e=(l=e(o,""[i],function(t,e,i,r,n){return e.exec===qt?a&&!n?{done:!0,value:s.call(e,i,r)}:{done:!0,value:t.call(i,e,r)}:{done:!1}}))[0],n=l[1],dt(String.prototype,i,e),dt(RegExp.prototype,o,2==t?function(t,e){return n.call(t,this,e)}:function(t){return n.call(t,this)}),r&&H(RegExp.prototype[o],"sham",!0))};ot("match",1,function(r,l,c){return[function(t){var e=o(this),i=null==t?void 0:t[r];return void 0!==i?i.call(t,e):new RegExp(t)[r](String(e))},function(t){var e=c(l,t,this);if(e.done)return e.value;var i=S(t),r=String(this);if(!i.global)return Xt(i,r);for(var n=i.unicode,s=[],o=i.lastIndex=0;null!==(a=Xt(i,r));){var a=String(a[0]);""===(s[o]=a)&&(i.lastIndex=$t(r,_(i.lastIndex),n)),o++}return 0===o?null:s}]});var Ut=Math.max,Jt=Math.min,Qt=Math.floor,Zt=/\$([$&`']|\d\d?|<[^>]*>)/g,te=/\$([$&`']|\d\d?)/g;ot("replace",2,function(n,x,E){return[function(t,e){var i=o(this),r=null==t?void 0:t[n];return void 0!==r?r.call(t,i,e):x.call(String(i),t,e)},function(t,e){var i=E(x,t,this,e);if(i.done)return i.value;var r=S(t),n=String(this),s="function"==typeof e;s||(e=String(e));var o,a=r.global;a&&(o=r.unicode,r.lastIndex=0);for(var l=[];;){var c=Xt(r,n);if(null===c)break;if(l.push(c),!a)break;""===String(c[0])&&(r.lastIndex=$t(n,_(r.lastIndex),o))}for(var h,u="",f=0,d=0;d<l.length;d++){for(var c=l[d],p=String(c[0]),v=Ut(Jt(O(c.index),n.length),0),g=[],b=1;b<c.length;b++)g.push(void 0===(h=c[b])?h:String(h));var m,y=c.groups,y=s?(m=[p].concat(g,v,n),void 0!==y&&m.push(y),String(e.apply(void 0,m))):function(s,o,a,l,c,t){var h=a+s.length,u=l.length,e=te;void 0!==c&&(c=w(c),e=Zt);return x.call(t,e,function(t,e){var i;switch(e.charAt(0)){case"$":return"$";case"&":return s;case"`":return o.slice(0,a);case"'":return o.slice(h);case"<":i=c[e.slice(1,-1)];break;default:var r=+e;if(0==r)return t;if(u<r){var n=Qt(r/10);return 0===n?t:n<=u?void 0===l[n-1]?e.charAt(1):l[n-1]+e.charAt(1):t}i=l[r-1]}return void 0===i?"":i})}(p,n,v,g,y,e);f<=v&&(u+=n.slice(f,v)+y,f=v+p.length)}return u+n.slice(f)}]});for(var ee 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 ie=z[ee],ie=ie&&ie.prototype;if(ie&&ie.forEach!==Tt)try{H(ie,"forEach",Tt)}catch(t){ie.forEach=Tt}}var re=u(function(t,e){t.exports=function(){if("undefined"==typeof document)return 0;var t=document.body,e=document.createElement("div"),i=e.style;return i.position="absolute",i.top=i.left="-9999px",i.width=i.height="100px",i.overflow="scroll",t.appendChild(e),i=e.offsetWidth-e.clientWidth,t.removeChild(e),i}}),ne="Expected a function",se=NaN,oe="[object Symbol]",ae=/^\s+|\s+$/g,le=/^[-+]0x[0-9a-f]+$/i,ce=/^0b[01]+$/i,he=/^0o[0-7]+$/i,ue=parseInt,C="object"==typeof t&&t&&t.Object===Object&&t,st="object"==typeof self&&self&&self.Object===Object&&self,fe=C||st||Function("return this")(),de=Object.prototype.toString,pe=Math.max,ve=Math.min,ge=function(){return fe.Date.now()};function be(r,i,t){var n,s,o,a,l,c,h=0,u=!1,f=!1,e=!0;if("function"!=typeof r)throw new TypeError(ne);function d(t){var e=n,i=s;return n=s=void 0,h=t,a=r.apply(i,e)}function p(t){var e=t-c;return void 0===c||i<=e||e<0||f&&o<=t-h}function v(){var t,e=ge();if(p(e))return g(e);l=setTimeout(v,(e=i-((t=e)-c),f?ve(e,o-(t-h)):e))}function g(t){return l=void 0,e&&n?d(t):(n=s=void 0,a)}function b(){var t=ge(),e=p(t);if(n=arguments,s=this,c=t,e){if(void 0===l)return h=e=c,l=setTimeout(v,i),u?d(e):a;if(f)return l=setTimeout(v,i),d(c)}return void 0===l&&(l=setTimeout(v,i)),a}return i=ye(i)||0,me(t)&&(u=!!t.leading,f="maxWait"in t,o=f?pe(ye(t.maxWait)||0,i):o,e="trailing"in t?!!t.trailing:e),b.cancel=function(){void 0!==l&&clearTimeout(l),n=c=s=l=void(h=0)},b.flush=function(){return void 0===l?a:g(ge())},b}function me(t){var e=typeof t;return t&&("object"==e||"function"==e)}function ye(t){if("number"==typeof t)return t;if("symbol"==typeof(e=t)||!!(i=e)&&"object"==typeof i&&de.call(e)==oe)return se;var e,i;if("string"!=typeof(t=me(t)?me(r="function"==typeof t.valueOf?t.valueOf():t)?r+"":r:t))return 0===t?t:+t;t=t.replace(ae,"");var r=ce.test(t);return r||he.test(t)?ue(t.slice(2),r?2:8):le.test(t)?se:+t}function xe(){return ke.Date.now()}var Ee=function(t,e,i){var r=!0,n=!0;if("function"!=typeof t)throw new TypeError(ne);return me(i)&&(r="leading"in i?!!i.leading:r,n="trailing"in i?!!i.trailing:n),be(t,e,{leading:r,maxWait:e,trailing:n})},we=NaN,Oe="[object Symbol]",_e=/^\s+|\s+$/g,Se=/^[-+]0x[0-9a-f]+$/i,Ae=/^0b[01]+$/i,Le=/^0o[0-7]+$/i,Me=parseInt,Q="object"==typeof t&&t&&t.Object===Object&&t,ot="object"==typeof self&&self&&self.Object===Object&&self,ke=Q||ot||Function("return this")(),We=Object.prototype.toString,Te=Math.max,Re=Math.min;function je(t){var e=typeof t;return t&&("object"==e||"function"==e)}function Ne(t){if("number"==typeof t)return t;if("symbol"==typeof(e=t)||!!(i=e)&&"object"==typeof i&&We.call(e)==Oe)return we;var e,i;if("string"!=typeof(t=je(t)?je(r="function"==typeof t.valueOf?t.valueOf():t)?r+"":r:t))return 0===t?t:+t;t=t.replace(_e,"");var r=Ae.test(t);return r||Le.test(t)?Me(t.slice(2),r?2:8):Se.test(t)?we:+t}var ze=function(r,i,t){var n,s,o,a,l,c,h=0,u=!1,f=!1,e=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function d(t){var e=n,i=s;return n=s=void 0,h=t,a=r.apply(i,e)}function p(t){var e=t-c;return void 0===c||i<=e||e<0||f&&o<=t-h}function v(){var t,e=xe();if(p(e))return g(e);l=setTimeout(v,(e=i-((t=e)-c),f?Re(e,o-(t-h)):e))}function g(t){return l=void 0,e&&n?d(t):(n=s=void 0,a)}function b(){var t=xe(),e=p(t);if(n=arguments,s=this,c=t,e){if(void 0===l)return h=e=c,l=setTimeout(v,i),u?d(e):a;if(f)return l=setTimeout(v,i),d(c)}return void 0===l&&(l=setTimeout(v,i)),a}return i=Ne(i)||0,je(t)&&(u=!!t.leading,f="maxWait"in t,o=f?Te(Ne(t.maxWait)||0,i):o,e="trailing"in t?!!t.trailing:e),b.cancel=function(){void 0!==l&&clearTimeout(l),n=c=s=l=void(h=0)},b.flush=function(){return void 0===l?a:g(xe())},b},Ce="Expected a function",Ve="__lodash_hash_undefined__",De="[object Function]",Be="[object GeneratorFunction]",Ie=/^\[object .+?Constructor\]$/,C="object"==typeof t&&t&&t.Object===Object&&t,st="object"==typeof self&&self&&self.Object===Object&&self,Q=C||st||Function("return this")();var ot=Array.prototype,t=Function.prototype,C=Object.prototype,st=Q["__core-js_shared__"],Pe=(st=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||""))?"Symbol(src)_1."+st:"",He=t.toString,Fe=C.hasOwnProperty,qe=C.toString,$e=RegExp("^"+He.call(Fe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xe=ot.splice,Ye=ei(Q,"Map"),Ge=ei(Object,"create");function Ke(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function Ue(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function Je(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function Qe(t,e){for(var i,r,n=t.length;n--;)if((i=t[n][0])===(r=e)||i!=i&&r!=r)return n;return-1}function Ze(t){var e;return ri(t)&&(e=t,!(Pe&&Pe in e))&&(function(t){t=ri(t)?qe.call(t):"";return t==De||t==Be}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?$e:Ie).test(function(t){if(null!=t){try{return He.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function ti(t,e){var i,r=t.__data__;return("string"==(t=typeof(i=e))||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==i:null===i)?r["string"==typeof e?"string":"hash"]:r.map}function ei(t,e){e=e,e=null==(t=t)?void 0:t[e];return Ze(e)?e:void 0}function ii(r,n){if("function"!=typeof r||n&&"function"!=typeof n)throw new TypeError(Ce);var s=function(){var t=arguments,e=n?n.apply(this,t):t[0],i=s.cache;if(i.has(e))return i.get(e);t=r.apply(this,t);return s.cache=i.set(e,t),t};return s.cache=new(ii.Cache||Je),s}function ri(t){var e=typeof t;return t&&("object"==e||"function"==e)}Ke.prototype.clear=function(){this.__data__=Ge?Ge(null):{}},Ke.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Ke.prototype.get=function(t){var e=this.__data__;if(Ge){var i=e[t];return i===Ve?void 0:i}return Fe.call(e,t)?e[t]:void 0},Ke.prototype.has=function(t){var e=this.__data__;return Ge?void 0!==e[t]:Fe.call(e,t)},Ke.prototype.set=function(t,e){return this.__data__[t]=Ge&&void 0===e?Ve:e,this},Ue.prototype.clear=function(){this.__data__=[]},Ue.prototype.delete=function(t){var e=this.__data__;return!((t=Qe(e,t))<0)&&(t==e.length-1?e.pop():Xe.call(e,t,1),!0)},Ue.prototype.get=function(t){var e=this.__data__;return(t=Qe(e,t))<0?void 0:e[t][1]},Ue.prototype.has=function(t){return-1<Qe(this.__data__,t)},Ue.prototype.set=function(t,e){var i=this.__data__,r=Qe(i,t);return r<0?i.push([t,e]):i[r][1]=e,this},Je.prototype.clear=function(){this.__data__={hash:new Ke,map:new(Ye||Ue),string:new Ke}},Je.prototype.delete=function(t){return ti(this,t).delete(t)},Je.prototype.get=function(t){return ti(this,t).get(t)},Je.prototype.has=function(t){return ti(this,t).has(t)},Je.prototype.set=function(t,e){return ti(this,t).set(t,e),this},ii.Cache=Je;var ni=ii,si="undefined"!=typeof Map?Map:(Object.defineProperty(ai.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),ai.prototype.get=function(t){t=oi(this.__entries__,t),t=this.__entries__[t];return t&&t[1]},ai.prototype.set=function(t,e){var i=oi(this.__entries__,t);~i?this.__entries__[i][1]=e:this.__entries__.push([t,e])},ai.prototype.delete=function(t){var e=this.__entries__,t=oi(e,t);~t&&e.splice(t,1)},ai.prototype.has=function(t){return!!~oi(this.__entries__,t)},ai.prototype.clear=function(){this.__entries__.splice(0)},ai.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,r=this.__entries__;i<r.length;i++){var n=r[i];t.call(e,n[1],n[0])}},ai);function oi(t,i){var r=-1;return t.some(function(t,e){return t[0]===i&&(r=e,!0)}),r}function ai(){this.__entries__=[]}var li="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ci="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),hi="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ci):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},ui=2;var fi=["top","right","bottom","left","width","height","size","weight"],di="undefined"!=typeof MutationObserver,pi=(vi.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},vi.prototype.removeObserver=function(t){var e=this.observers_,t=e.indexOf(t);~t&&e.splice(t,1),!e.length&&this.connected_&&this.disconnect_()},vi.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},vi.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),0<t.length},vi.prototype.connect_=function(){li&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),di?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},vi.prototype.disconnect_=function(){li&&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)},vi.prototype.onTransitionEnd_=function(t){var t=t.propertyName,e=void 0===t?"":t;fi.some(function(t){return!!~e.indexOf(t)})&&this.refresh()},vi.getInstance=function(){return this.instance_||(this.instance_=new vi),this.instance_},vi.instance_=null,vi);function vi(){function t(){s&&(s=!1,r()),o&&i()}function e(){hi(t)}function i(){var t=Date.now();if(s){if(t-a<ui)return;o=!0}else o=!(s=!0),setTimeout(e,n);a=t}var r,n,s,o,a;this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=(r=this.refresh.bind(this),o=s=!(n=20),a=0,i)}var gi=function(t,e){for(var i=0,r=Object.keys(e);i<r.length;i++){var n=r[i];Object.defineProperty(t,n,{value:e[n],enumerable:!1,writable:!1,configurable:!0})}return t},bi=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||ci},mi=_i(0,0,0,0);function yi(t){return parseFloat(t)||0}function xi(i){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return t.reduce(function(t,e){return t+yi(i["border-"+e+"-width"])},0)}function Ei(t){var e=t.clientWidth,i=t.clientHeight;if(!e&&!i)return mi;var r=bi(t).getComputedStyle(t),n=function(t){for(var e={},i=0,r=["top","right","bottom","left"];i<r.length;i++){var n=r[i],s=t["padding-"+n];e[n]=yi(s)}return e}(r),s=n.left+n.right,o=n.top+n.bottom,a=yi(r.width),l=yi(r.height);return"border-box"===r.boxSizing&&(Math.round(a+s)!==e&&(a-=xi(r,"left","right")+s),Math.round(l+o)!==i&&(l-=xi(r,"top","bottom")+o)),t!==bi(t).document.documentElement&&(e=Math.round(a+s)-e,i=Math.round(l+o)-i,1!==Math.abs(e)&&(a-=e),1!==Math.abs(i)&&(l-=i)),_i(n.left,n.top,a,l)}var wi="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof bi(t).SVGGraphicsElement}:function(t){return t instanceof bi(t).SVGElement&&"function"==typeof t.getBBox};function Oi(t){return li?wi(t)?_i(0,0,(e=(e=t).getBBox()).width,e.height):Ei(t):mi;var e}function _i(t,e,i,r){return{x:t,y:e,width:i,height:r}}var Si=(Ai.prototype.isActive=function(){var t=Oi(this.target);return(this.contentRect_=t).width!==this.broadcastWidth||t.height!==this.broadcastHeight},Ai.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},Ai);function Ai(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_i(0,0,0,0),this.target=t}var Li=function(t,e){var i,r,n,s=(i=(s=e).x,r=s.y,n=s.width,e=s.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(s.prototype),gi(s,{x:i,y:r,width:n,height:e,top:r,right:i+n,bottom:e+r,left:i}),s);gi(this,{target:t,contentRect:s})},Mi=(ki.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof bi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Si(t)),this.controller_.addObserver(this),this.controller_.refresh())}},ki.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof bi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},ki.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},ki.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},ki.prototype.broadcastActive=function(){var t,e;this.hasActive()&&(t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new Li(t.target,t.broadcastRect())}),this.callback_.call(t,e,t),this.clearActive())},ki.prototype.clearActive=function(){this.activeObservations_.splice(0)},ki.prototype.hasActive=function(){return 0<this.activeObservations_.length},ki);function ki(t,e,i){if(this.activeObservations_=[],this.observations_=new si,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=i}var Wi=new("undefined"!=typeof WeakMap?WeakMap:si),Ti=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=pi.getInstance(),i=new Mi(e,i,this);Wi.set(this,i)};["observe","unobserve","disconnect"].forEach(function(e){Ti.prototype[e]=function(){var t;return(t=Wi.get(this))[e].apply(t,arguments)}});var Ri=void 0!==ci.ResizeObserver?ci.ResizeObserver:Ti,ji=!("undefined"==typeof window||!window.document||!window.document.createElement),Q=function(){function o(t,e){var n=this;this.onScroll=function(){n.scrollXTicking||(window.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(window.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0)},this.scrollX=function(){n.axis.x.isOverflowing&&(n.showScrollbar("x"),n.positionScrollbar("x")),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&(n.showScrollbar("y"),n.positionScrollbar("y")),n.scrollYTicking=!1},this.onMouseEnter=function(){n.showScrollbar("x"),n.showScrollbar("y")},this.onMouseMove=function(t){n.mouseX=t.clientX,n.mouseY=t.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this.onWindowResize=function(){n.scrollbarWidth=re(),n.hideNativeScrollbar()},this.hideScrollbars=function(){n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.track.rect)||(n.axis.y.scrollbar.el.classList.remove(n.classNames.visible),n.axis.y.isVisible=!1),n.isWithinBounds(n.axis.x.track.rect)||(n.axis.x.scrollbar.el.classList.remove(n.classNames.visible),n.axis.x.isVisible=!1)},this.onPointerEvent=function(t){var e,i;n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(i=n.isWithinBounds(n.axis.x.scrollbar.rect)),((e=n.axis.y.isOverflowing||n.axis.y.forceVisible?n.isWithinBounds(n.axis.y.scrollbar.rect):e)||i)&&(t.preventDefault(),t.stopPropagation(),"mousedown"===t.type&&(e&&n.onDragStart(t,"y"),i&&n.onDragStart(t,"x")))},this.drag=function(t){var e=n.axis[n.draggedAxis].track,i=e.rect[n.axis[n.draggedAxis].sizeAttr],r=n.axis[n.draggedAxis].scrollbar;t.preventDefault(),t.stopPropagation();e=(("y"===n.draggedAxis?t.pageY:t.pageX)-e.rect[n.axis[n.draggedAxis].offsetAttr]-n.axis[n.draggedAxis].dragOffset)/e.rect[n.axis[n.draggedAxis].sizeAttr]*n.contentWrapperEl[n.axis[n.draggedAxis].scrollSizeAttr];"x"===n.draggedAxis&&(e=n.isRtl&&o.getRtlHelpers().isRtlScrollbarInverted?e-(i+r.size):e,e=n.isRtl&&o.getRtlHelpers().isRtlScrollingInverted?-e:e),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=e},this.onEndDrag=function(t){t.preventDefault(),t.stopPropagation(),n.el.classList.remove(n.classNames.dragging),document.removeEventListener("mousemove",n.drag),document.removeEventListener("mouseup",n.onEndDrag)},this.el=t,this.flashTimeout,this.contentEl,this.contentWrapperEl,this.offsetEl,this.maskEl,this.globalObserver,this.mutationObserver,this.resizeObserver,this.scrollbarWidth,this.minScrollbarWidth=20,this.options=Object.assign({},o.defaultOptions,e),this.classNames=Object.assign({},o.defaultOptions.classNames,this.options.classNames),this.isRtl,this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.el.SimpleBar||(this.recalculate=Ee(this.recalculate.bind(this),64),this.onMouseMove=Ee(this.onMouseMove.bind(this),64),this.hideScrollbars=ze(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=ze(this.onWindowResize.bind(this),64,{leading:!0}),o.getRtlHelpers=ni(o.getRtlHelpers),this.init())}o.getRtlHelpers=function(){var t=document.createElement("div");t.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var e=t.firstElementChild;document.body.appendChild(e);var i=e.firstElementChild;e.scrollLeft=0;var r=o.getOffset(e),t=o.getOffset(i);e.scrollLeft=999;i=o.getOffset(i);return{isRtlScrollingInverted:r.left!==t.left&&t.left-i.left!=0,isRtlScrollbarInverted:r.left!==t.left}},o.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(function(t){t.forEach(function(t){Array.prototype.forEach.call(t.addedNodes,function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?t.SimpleBar||new o(t,o.getElOptions(t)):Array.prototype.forEach.call(t.querySelectorAll("[data-simplebar]"),function(t){t.SimpleBar||new o(t,o.getElOptions(t))}))}),Array.prototype.forEach.call(t.removedNodes,function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?t.SimpleBar&&t.SimpleBar.unMount():Array.prototype.forEach.call(t.querySelectorAll("[data-simplebar]"),function(t){t.SimpleBar&&t.SimpleBar.unMount()}))})})}),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},o.getElOptions=function(t){return Array.prototype.reduce.call(t.attributes,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},{})},o.removeObserver=function(){this.globalObserver.disconnect()},o.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(t){t.SimpleBar||new o(t,o.getElOptions(t))})},o.getOffset=function(t){t=t.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft)}};var t=o.prototype;return t.init=function(){this.el.SimpleBar=this,ji&&(this.initDOM(),this.scrollbarWidth=re(),this.recalculate(),this.initListeners())},t.initDOM=function(){var t,e,i=this;if(Array.prototype.filter.call(this.el.children,function(t){return t.classList.contains(i.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{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)}this.axis.x.track.el&&this.axis.y.track.el||(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")},t.initListeners=function(){var e=this;this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick","touchstart","touchend","touchmove"].forEach(function(t){e.el.addEventListener(t,e.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 Ri(this.recalculate),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl)},t.recalculate=function(){var t=this.heightAutoObserverEl.offsetHeight<=1,e=this.heightAutoObserverEl.offsetWidth<=1;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=t?"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")},t.getScrollbarSize=function(t){void 0===t&&(t="y");var e=this.scrollbarWidth?this.contentWrapperEl[this.axis[t].scrollSizeAttr]:this.contentWrapperEl[this.axis[t].scrollSizeAttr]-this.minScrollbarWidth,i=this.axis[t].track.rect[this.axis[t].sizeAttr];if(this.axis[t].isOverflowing){i=Math.max(~~(i/e*i),this.options.scrollbarMinSize);return i=this.options.scrollbarMaxSize?Math.min(i,this.options.scrollbarMaxSize):i}},t.positionScrollbar=function(t){var e=this.contentWrapperEl[this.axis[t=void 0===t?"y":t].scrollSizeAttr],i=this.axis[t].track.rect[this.axis[t].sizeAttr],r=parseInt(this.elStyles[this.axis[t].sizeAttr],10),n=this.axis[t].scrollbar,s=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],s="x"===t&&this.isRtl&&o.getRtlHelpers().isRtlScrollingInverted?-s:s,r=~~((i-n.size)*(s/(e-r))),r="x"===t&&this.isRtl&&o.getRtlHelpers().isRtlScrollbarInverted?r+(i-n.size):r;n.el.style.transform="x"===t?"translate3d("+r+"px, 0, 0)":"translate3d(0, "+r+"px, 0)"},t.toggleTrackVisibility=function(t){var e=this.axis[t=void 0===t?"y":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"):(e.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden"),this.axis[t].isOverflowing?i.style.display="block":i.style.display="none"},t.hideNativeScrollbar=function(){var t;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||(t=[this.isRtl?"paddingLeft":"paddingRight"],this.contentWrapperEl.style[t]=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)},t.onMouseMoveForAxis=function(t){this.axis[t=void 0===t?"y":t].track.rect=this.axis[t].track.el.getBoundingClientRect(),this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[t].scrollbar.rect)?this.axis[t].scrollbar.el.classList.add(this.classNames.hover):this.axis[t].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[t].track.rect)?(this.showScrollbar(t),this.axis[t].track.el.classList.add(this.classNames.hover)):this.axis[t].track.el.classList.remove(this.classNames.hover)},t.onMouseLeaveForAxis=function(t){this.axis[t=void 0===t?"y":t].track.el.classList.remove(this.classNames.hover),this.axis[t].scrollbar.el.classList.remove(this.classNames.hover)},t.showScrollbar=function(t){var e=this.axis[t=void 0===t?"y":t].scrollbar.el;this.axis[t].isVisible||(e.classList.add(this.classNames.visible),this.axis[t].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},t.onDragStart=function(t,e){var i=this.axis[e=void 0===e?"y":e].scrollbar.el,t="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=t-i.getBoundingClientRect()[this.axis[e].offsetAttr],this.draggedAxis=e,this.el.classList.add(this.classNames.dragging),document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.onEndDrag)},t.getContentElement=function(){return this.contentEl},t.getScrollElement=function(){return this.contentWrapperEl},t.removeListeners=function(){var e=this;this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick","touchstart","touchend","touchmove"].forEach(function(t){e.el.removeEventListener(t,e.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()},t.unMount=function(){this.removeListeners(),this.el.SimpleBar=null},t.isChildNode=function(t){return null!==t&&(t===this.el||this.isChildNode(t.parentNode))},t.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},o}();return Q.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},ji&&Q.initHtmlApi(),Q}); |