/*!
 * OverlayScrollbars
 * https://github.com/KingSora/OverlayScrollbars
 *
 * Version: 1.13.0
 *
 * Copyright KingSora | Rene Haas.
 * https://github.com/KingSora
 *
 * Released under the MIT license.
 * Date: 02.08.2020
*/ !function(t,n){"function"==typeof define&&define.amd?define(function(){return n(t,t.document,void 0)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=n(t,t.document,void 0):n(t,t.document,void 0)}("undefined"!=typeof window?window:this,function(window,document,undefined){"use strict";var _easingsMath,_targets,_instancePropertyString,TYPES={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},LEXICON={c:"class",s:"style",i:"id",l:"length",p:"prototype",ti:"tabindex",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth",hOP:"hasOwnProperty",bCR:"getBoundingClientRect"},VENDORS=function(){var t={},n={},e=["-webkit-","-moz-","-o-","-ms-"],r=["WebKit","Moz","O","MS"];function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}return{_cssPrefixes:e,_jsPrefixes:r,_cssProperty:function(t){var r,o,a,s=n[t];if(n[LEXICON.hOP](t))return s;for(var c=i(t),u=document.createElement("div")[LEXICON.s],l=0;l<e.length;l++)for(o=0,a=e[l].replace(/-/g,""),r=[t,e[l]+t,a+c,i(a)+c];o<r[LEXICON.l];o++)if(undefined!==u[r[o]]){s=r[o];break}return n[t]=s,s},_cssPropertyValue:function(t,e,r){var i,o=t+" "+e,a=n[o];if(n[LEXICON.hOP](o))return a;for(var s=document.createElement("div")[LEXICON.s],c=e.split(" "),u=r||"",l=0,f=-1;l<c[LEXICON.l];l++)for(;f<VENDORS._cssPrefixes[LEXICON.l];f++)if(i=f<0?c[l]:VENDORS._cssPrefixes[f]+c[l],s.cssText=t+":"+i+u,s[LEXICON.l]){a=i;break}return n[o]=a,a},_jsAPI:function(n,e,o){var a=0,s=t[n];if(!t[LEXICON.hOP](n)){for(s=window[n];a<r[LEXICON.l];a++)s=s||window[(e?r[a]:r[a].toLowerCase())+i(n)];t[n]=s}return s||o}}}(),COMPATIBILITY=function(){function t(t){return t?window.innerWidth||document.documentElement[LEXICON.cW]||document.body[LEXICON.cW]:window.innerHeight||document.documentElement[LEXICON.cH]||document.body[LEXICON.cH]}function n(t,n){if(typeof t!=TYPES.f)throw"Can't bind function!";var e=LEXICON.p,r=Array[e].slice.call(arguments,2),i=function(){},o=function(){return t.apply(this instanceof i?this:n,r.concat(Array[e].slice.call(arguments)))};return t[e]&&(i[e]=t[e]),o[e]=new i,o}return{wW:n(t,0,!0),wH:n(t,0),mO:n(VENDORS._jsAPI,0,"MutationObserver",!0),rO:n(VENDORS._jsAPI,0,"ResizeObserver",!0),rAF:n(VENDORS._jsAPI,0,"requestAnimationFrame",!1,function(t){return window.setTimeout(t,1e3/60)}),cAF:n(VENDORS._jsAPI,0,"cancelAnimationFrame",!1,function(t){return window.clearTimeout(t)}),now:function(){return Date.now&&Date.now()||new Date().getTime()},stpP:function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},prvD:function(t){t.preventDefault&&t.cancelable?t.preventDefault():t.returnValue=!1},page:function(t){t=t.originalEvent||t;var n="page",e="client",r=(t.target||t.srcElement||document).ownerDocument||document,i=r.documentElement,o=r.body;if(undefined!==t.touches){var a=t.touches[0];return{x:a[n+"X"],y:a[n+"Y"]}}return!t[n+"X"]&&t[e+"X"]&&null!=t[e+"X"]?{x:t[e+"X"]+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),y:t[e+"Y"]+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)}:{x:t[n+"X"],y:t[n+"Y"]}},mBtn:function(t){var n=t.button;return t.which||n===undefined?t.which:1&n?1:2&n?3:4&n?2:0},inA:function(t,n){for(var e=0;e<n[LEXICON.l];e++)try{if(n[e]===t)return e}catch(r){}return -1},isA:function(t){var n=Array.isArray;return n?n(t):this.type(t)==TYPES.a},type:function(t){return t===undefined||null===t?t+"":Object[LEXICON.p].toString.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},bind:n}}(),MATH=Math,JQUERY=window.jQuery,EASING=(_easingsMath={p:MATH.PI,c:MATH.cos,s:MATH.sin,w:MATH.pow,t:MATH.sqrt,n:MATH.asin,a:MATH.abs,o:1.70158},{swing:function(t,n,e,r,i){return .5-_easingsMath.c(t*_easingsMath.p)/2},linear:function(t,n,e,r,i){return t},easeInQuad:function(t,n,e,r,i){return r*(n/=i)*n+e},easeOutQuad:function(t,n,e,r,i){return-r*(n/=i)*(n-2)+e},easeInOutQuad:function(t,n,e,r,i){return(n/=i/2)<1?r/2*n*n+e:-r/2*(--n*(n-2)-1)+e},easeInCubic:function(t,n,e,r,i){return r*(n/=i)*n*n+e},easeOutCubic:function(t,n,e,r,i){return r*((n=n/i-1)*n*n+1)+e},easeInOutCubic:function(t,n,e,r,i){return(n/=i/2)<1?r/2*n*n*n+e:r/2*((n-=2)*n*n+2)+e},easeInQuart:function(t,n,e,r,i){return r*(n/=i)*n*n*n+e},easeOutQuart:function(t,n,e,r,i){return-r*((n=n/i-1)*n*n*n-1)+e},easeInOutQuart:function(t,n,e,r,i){return(n/=i/2)<1?r/2*n*n*n*n+e:-r/2*((n-=2)*n*n*n-2)+e},easeInQuint:function(t,n,e,r,i){return r*(n/=i)*n*n*n*n+e},easeOutQuint:function(t,n,e,r,i){return r*((n=n/i-1)*n*n*n*n+1)+e},easeInOutQuint:function(t,n,e,r,i){return(n/=i/2)<1?r/2*n*n*n*n*n+e:r/2*((n-=2)*n*n*n*n+2)+e},easeInSine:function(t,n,e,r,i){return-r*_easingsMath.c(n/i*(_easingsMath.p/2))+r+e},easeOutSine:function(t,n,e,r,i){return r*_easingsMath.s(n/i*(_easingsMath.p/2))+e},easeInOutSine:function(t,n,e,r,i){return-r/2*(_easingsMath.c(_easingsMath.p*n/i)-1)+e},easeInExpo:function(t,n,e,r,i){return 0==n?e:r*_easingsMath.w(2,10*(n/i-1))+e},easeOutExpo:function(t,n,e,r,i){return n==i?e+r:r*(-_easingsMath.w(2,-10*n/i)+1)+e},easeInOutExpo:function(t,n,e,r,i){return 0==n?e:n==i?e+r:(n/=i/2)<1?r/2*_easingsMath.w(2,10*(n-1))+e:r/2*(-_easingsMath.w(2,-10*--n)+2)+e},easeInCirc:function(t,n,e,r,i){return-r*(_easingsMath.t(1-(n/=i)*n)-1)+e},easeOutCirc:function(t,n,e,r,i){return r*_easingsMath.t(1-(n=n/i-1)*n)+e},easeInOutCirc:function(t,n,e,r,i){return(n/=i/2)<1?-r/2*(_easingsMath.t(1-n*n)-1)+e:r/2*(_easingsMath.t(1-(n-=2)*n)+1)+e},easeInElastic:function(t,n,e,r,i){var o=_easingsMath.o,a=0,s=r;return 0==n?e:1==(n/=i)?e+r:(a||(a=.3*i),s<_easingsMath.a(r)?(s=r,o=a/4):o=a/(2*_easingsMath.p)*_easingsMath.n(r/s),-(s*_easingsMath.w(2,10*(n-=1))*_easingsMath.s((n*i-o)*(2*_easingsMath.p)/a))+e)},easeOutElastic:function(t,n,e,r,i){var o=_easingsMath.o,a=0,s=r;return 0==n?e:1==(n/=i)?e+r:(a||(a=.3*i),s<_easingsMath.a(r)?(s=r,o=a/4):o=a/(2*_easingsMath.p)*_easingsMath.n(r/s),s*_easingsMath.w(2,-10*n)*_easingsMath.s((n*i-o)*(2*_easingsMath.p)/a)+r+e)},easeInOutElastic:function(t,n,e,r,i){var o=_easingsMath.o,a=0,s=r;return 0==n?e:2==(n/=i/2)?e+r:(a||(a=i*(.3*1.5)),s<_easingsMath.a(r)?(s=r,o=a/4):o=a/(2*_easingsMath.p)*_easingsMath.n(r/s),n<1)?-.5*(s*_easingsMath.w(2,10*(n-=1))*_easingsMath.s((n*i-o)*(2*_easingsMath.p)/a))+e:s*_easingsMath.w(2,-10*(n-=1))*_easingsMath.s((n*i-o)*(2*_easingsMath.p)/a)*.5+r+e},easeInBack:function(t,n,e,r,i,o){return o=o||_easingsMath.o,r*(n/=i)*n*((o+1)*n-o)+e},easeOutBack:function(t,n,e,r,i,o){return o=o||_easingsMath.o,r*((n=n/i-1)*n*((o+1)*n+o)+1)+e},easeInOutBack:function(t,n,e,r,i,o){return o=o||_easingsMath.o,(n/=i/2)<1?r/2*(n*n*(((o*=1.525)+1)*n-o))+e:r/2*((n-=2)*n*(((o*=1.525)+1)*n+o)+2)+e},easeInBounce:function(t,n,e,r,i){return r-this.easeOutBounce(t,i-n,0,r,i)+e},easeOutBounce:function(t,n,e,r,i){return(n/=i)<1/2.75?r*(7.5625*n*n)+e:n<2/2.75?r*(7.5625*(n-=1.5/2.75)*n+.75)+e:n<2.5/2.75?r*(7.5625*(n-=2.25/2.75)*n+.9375)+e:r*(7.5625*(n-=2.625/2.75)*n+.984375)+e},easeInOutBounce:function(t,n,e,r,i){return n<i/2?.5*this.easeInBounce(t,2*n,0,r,i)+e:.5*this.easeOutBounce(t,2*n-i,0,r,i)+.5*r+e}}),FRAMEWORK=function(){var t=/[^\x20\t\r\n\f]+/g,n="scrollLeft",e="scrollTop",r=[],i=COMPATIBILITY.type,o={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0};function a(){var t,n,e,r,o,s,c=arguments[0]||{},u=1,f=arguments[LEXICON.l],h=!1;for(i(c)==TYPES.b&&(h=c,c=arguments[1]||{},u=2),i(c)!=TYPES.o&&!i(c)==TYPES.f&&(c={}),f===u&&(c=x,--u);u<f;u++)if(null!=(o=arguments[u]))for(r in o)t=c[r],c!==(e=o[r])&&(h&&e&&(l(e)||(n=COMPATIBILITY.isA(e)))?(n?(n=!1,s=t&&COMPATIBILITY.isA(t)?t:[]):s=t&&l(t)?t:{},c[r]=a(h,s,e)):e!==undefined&&(c[r]=e));return c}function s(t,n,e){for(var r=e||0;r<n[LEXICON.l];r++)if(n[r]===t)return r;return -1}function c(t){return i(t)==TYPES.f}function u(t){for(var n in t)return!1;return!0}function l(t){if(!t||i(t)!=TYPES.o)return!1;var n,e=LEXICON.p,r=Object[e].hasOwnProperty,o=r.call(t,"constructor"),a=t.constructor&&t.constructor[e]&&r.call(t.constructor[e],"isPrototypeOf");if(t.constructor&&!o&&!a)return!1;for(n in t);return i(n)==TYPES.u||r.call(t,n)}function f(t,n){var e=0;if(h(t))for(;e<t[LEXICON.l]&&!1!==n.call(t[e],e,t[e]);e++);else for(e in t)if(!1===n.call(t[e],e,t[e]))break;return t}function h(t){var n=!!t&&[LEXICON.l]in t&&t[LEXICON.l],e=i(t);return!c(e)&&(e==TYPES.a||0===n||i(n)==TYPES.n&&n>0&&n-1 in t)}function d(n){return(n.match(t)||[]).join(" ")}function $(t,n){for(var e=(t.parentNode||document).querySelectorAll(n)||[],r=e[LEXICON.l];r--;)if(e[r]==t)return!0;return!1}function p(t,n,e){if(COMPATIBILITY.isA(e))for(var r=0;r<e[LEXICON.l];r++)p(t,n,e[r]);else i(e)==TYPES.s?t.insertAdjacentHTML(n,e):t.insertAdjacentElement(n,e.nodeType?e:e[0])}function v(t,n,e){try{var r,a;undefined!==t[LEXICON.s][n]&&(t[LEXICON.s][n]=(r=n,a=e,o[r.toLowerCase()]||i(a)!=TYPES.n||(a+="px"),a))}catch(s){}}function _(t,n){var e,i;!1!==n&&t.q.splice(0,1),t.q[LEXICON.l]>0?(i=t.q[0],m(t.el,i.props,i.duration,i.easing,i.complete,!0)):(e=s(t,r))>-1&&r.splice(e,1)}function y(t,r,i){r===n||r===e?t[r]=i:v(t,r,i)}function m(t,i,o,a,f,h){var d=l(o),$={},p={},v=0;for(d?(a=o.easing,g=o.start,w=o.progress,O=o.step,S=o.specialEasing,f=o.complete,C=o.duration):C=o,S=S||{},C=C||400,a=a||"swing",h=h||!1;v<r[LEXICON.l];v++)if(r[v].el===t){b=r[v];break}for(m in b||(b={el:t,q:[]},r.push(b)),i)m===n||m===e?$[m]=t[m]:$[m]=x(t).css(m);for(m in $)$[m]!==i[m]&&undefined!==i[m]&&(p[m]=i[m]);if(u(p))h&&_(b);else{var m,b,g,w,O,S,C,A,z,H,P,E,L,k,W,I,T=h?0:s(j,b.q),j={props:p,duration:d?o:C,easing:a,complete:f};if(-1===T&&(T=b.q[LEXICON.l],b.q.push(j)),0===T){if(C>0)k=COMPATIBILITY.now(),W=function(){for(m in I=(A=COMPATIBILITY.now())-k,z=j.stop||I>=C,H=1-(MATH.max(0,k+C-A)/C||0),p)P=parseFloat($[m]),L=((E=parseFloat(p[m]))-P)*EASING[S[m]||a](H,H*C,0,1,C)+P,y(t,m,L),c(O)&&O(L,{elem:t,prop:m,start:P,now:L,end:E,pos:H,options:{easing:a,speacialEasing:S,duration:C,complete:f,step:O},startTime:k});c(w)&&w({},H,MATH.max(0,C-I)),z?(_(b),c(f)&&f()):j.frame=COMPATIBILITY.rAF()(W)},j.frame=COMPATIBILITY.rAF()(W);else{for(m in p)y(t,m,p[m]);_(b)}}}}function b(t){return!!(t[LEXICON.oW]||t[LEXICON.oH]||t.getClientRects()[LEXICON.l])}function x(t){if(0===arguments[LEXICON.l])return this;var n,e,r=new x,o=t,a=0;if(i(t)==TYPES.s)for(o=[],"<"===t.charAt(0)?((e=document.createElement("div")).innerHTML=t,n=e.children):n=document.querySelectorAll(t);a<n[LEXICON.l];a++)o.push(n[a]);if(o){for(i(o)==TYPES.s||h(o)&&o!==window&&o!==o.self||(o=[o]),a=0;a<o[LEXICON.l];a++)r[a]=o[a];r[LEXICON.l]=o[LEXICON.l]}return r}return x[LEXICON.p]={on:function(n,e){var r,i=(n=(n||"").match(t)||[""])[LEXICON.l],o=0;return this.each(function(){r=this;try{if(r.addEventListener)for(;o<i;o++)r.addEventListener(n[o],e);else if(r.detachEvent)for(;o<i;o++)r.attachEvent("on"+n[o],e)}catch(t){}})},off:function(n,e){var r,i=(n=(n||"").match(t)||[""])[LEXICON.l],o=0;return this.each(function(){r=this;try{if(r.removeEventListener)for(;o<i;o++)r.removeEventListener(n[o],e);else if(r.detachEvent)for(;o<i;o++)r.detachEvent("on"+n[o],e)}catch(t){}})},one:function(n,e){return n=(n||"").match(t)||[""],this.each(function(){var t=x(this);x.each(n,function(n,r){var i=function(n){e.call(this,n),t.off(r,i)};t.on(r,i)})})},trigger:function(t){var n,e;return this.each(function(){n=this,document.createEvent?((e=document.createEvent("HTMLEvents")).initEvent(t,!0,!1),n.dispatchEvent(e)):n.fireEvent("on"+t)})},append:function(t){return this.each(function(){p(this,"beforeend",t)})},prepend:function(t){return this.each(function(){p(this,"afterbegin",t)})},before:function(t){return this.each(function(){p(this,"beforebegin",t)})},after:function(t){return this.each(function(){p(this,"afterend",t)})},remove:function(){return this.each(function(){var t=this.parentNode;null!=t&&t.removeChild(this)})},unwrap:function(){var t,n,e,r=[];for(this.each(function(){-1===s(e=this.parentNode,r)&&r.push(e)}),t=0;t<r[LEXICON.l];t++){for(e=(n=r[t]).parentNode;n.firstChild;)e.insertBefore(n.firstChild,n);e.removeChild(n)}return this},wrapAll:function(t){for(var n,e=x(t)[0],r=e,i=this[0].parentNode,o=this[0].previousSibling;r.childNodes[LEXICON.l]>0;)r=r.childNodes[0];for(n=0;this[LEXICON.l]-n;r.firstChild===this[0]&&n++)r.appendChild(this[n]);var a=o?o.nextSibling:i.firstChild;return i.insertBefore(e,a),this},wrapInner:function(t){return this.each(function(){var n=x(this),e=n.contents();e[LEXICON.l]?e.wrapAll(t):n.append(t)})},wrap:function(t){return this.each(function(){x(this).wrapAll(t)})},css:function(t,n){var e,r,o,a=window.getComputedStyle;return i(t)!=TYPES.s?this.each(function(){for(r in t)v(this,r,t[r])}):n===undefined?(e=this[0],o=a?a(e,null):e.currentStyle[t],a?null!=o?o.getPropertyValue(t):e[LEXICON.s][t]:o):this.each(function(){v(this,t,n)})},hasClass:function(t){for(var n,e,r=0,i=" "+t+" ";e=this[r++];)if((n=e.classList)&&n.contains(t)||1===e.nodeType&&(" "+d(e.className+"")+" ").indexOf(i)>-1)return!0;return!1},addClass:function(n){var e,r,i,o,a,s,c,u,l=0,f=0;if(n){for(e=n.match(t)||[];r=this[l++];)if(u=r.classList,c===undefined&&(c=u!==undefined),c)for(;a=e[f++];)u.add(a);else if(o=r.className+"",i=1===r.nodeType&&" "+d(o)+" "){for(;a=e[f++];)0>i.indexOf(" "+a+" ")&&(i+=a+" ");o!==(s=d(i))&&(r.className=s)}}return this},removeClass:function(n){var e,r,i,o,a,s,c,u,l=0,f=0;if(n){for(e=n.match(t)||[];r=this[l++];)if(u=r.classList,c===undefined&&(c=u!==undefined),c)for(;a=e[f++];)u.remove(a);else if(o=r.className+"",i=1===r.nodeType&&" "+d(o)+" "){for(;a=e[f++];)for(;i.indexOf(" "+a+" ")>-1;)i=i.replace(" "+a+" "," ");o!==(s=d(i))&&(r.className=s)}}return this},hide:function(){return this.each(function(){this[LEXICON.s].display="none"})},show:function(){return this.each(function(){this[LEXICON.s].display="block"})},attr:function(t,n){for(var e,r=0;e=this[r++];){if(n===undefined)return e.getAttribute(t);e.setAttribute(t,n)}return this},removeAttr:function(t){return this.each(function(){this.removeAttribute(t)})},offset:function(){var t=this[0][LEXICON.bCR](),r=window.pageXOffset||document.documentElement[n],i=window.pageYOffset||document.documentElement[e];return{top:t.top+i,left:t.left+r}},position:function(){var t=this[0];return{top:t.offsetTop,left:t.offsetLeft}},scrollLeft:function(t){for(var e,r=0;e=this[r++];){if(t===undefined)return e[n];e[n]=t}return this},scrollTop:function(t){for(var n,r=0;n=this[r++];){if(t===undefined)return n[e];n[e]=t}return this},val:function(t){var n=this[0];return t?(n.value=t,this):n.value},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){return x(this[t>=0?t:this[LEXICON.l]+t])},find:function(t){var n,e=[];return this.each(function(){var r=this.querySelectorAll(t);for(n=0;n<r[LEXICON.l];n++)e.push(r[n])}),x(e)},children:function(t){var n,e,r,i=[];return this.each(function(){for(r=0,e=this.children;r<e[LEXICON.l];r++)n=e[r],t?(n.matches&&n.matches(t)||$(n,t))&&i.push(n):i.push(n)}),x(i)},parent:function(t){var n,e=[];return this.each(function(){n=this.parentNode,(!t||x(n).is(t))&&e.push(n)}),x(e)},is:function(t){var n,e;for(e=0;e<this[LEXICON.l];e++){if(n=this[e],":visible"===t)return b(n);if(":hidden"===t)return!b(n);if(n.matches&&n.matches(t)||$(n,t))return!0}return!1},contents:function(){var t,n,e=[];return this.each(function(){for(n=0,t=this.childNodes;n<t[LEXICON.l];n++)e.push(t[n])}),x(e)},each:function(t){return f(this,t)},animate:function(t,n,e,r){return this.each(function(){m(this,t,n,e,r)})},stop:function(t,n){return this.each(function(){!function t(n,e,i){for(var o,a,s,c=0;c<r[LEXICON.l];c++)if((o=r[c]).el===n){if(o.q[LEXICON.l]>0){if((a=o.q[0]).stop=!0,COMPATIBILITY.cAF()(a.frame),o.q.splice(0,1),i)for(s in a.props)y(n,s,a.props[s]);e?o.q=[]:_(o,!1)}break}}(this,t,n)})}},a(x,{extend:a,inArray:s,isEmptyObject:u,isPlainObject:l,each:f}),x}(),INSTANCES=(_targets=[],_instancePropertyString="__overlayScrollbars__",function(t,n){var e=arguments[LEXICON.l];if(e<1)return _targets;if(n)t[_instancePropertyString]=n,_targets.push(t);else{var r=COMPATIBILITY.inA(t,_targets);if(r>-1){if(!(e>1))return _targets[r][_instancePropertyString];delete t[_instancePropertyString],_targets.splice(r,1)}}}),PLUGIN=function(){var _plugin,_pluginsGlobals,_pluginsAutoUpdateLoop,type,possibleTemplateTypes,classNameAllowedValues,numberAllowedValues,booleanNullAllowedValues,booleanTrueTemplate,booleanFalseTemplate,callbackTemplate,updateOnLoadTemplate,inheritedAttrsTemplate,overflowBehaviorAllowedValues,optionsDefaultsAndTemplate,convert,_pluginsExtensions=[],_pluginsOptions=(type=COMPATIBILITY.type,possibleTemplateTypes=[TYPES.b,TYPES.n,TYPES.s,TYPES.a,TYPES.o,TYPES.f,TYPES.z],classNameAllowedValues=[TYPES.z,TYPES.s],numberAllowedValues=TYPES.n,booleanNullAllowedValues=[TYPES.z,TYPES.b],booleanTrueTemplate=[!0,TYPES.b],booleanFalseTemplate=[!1,TYPES.b],callbackTemplate=[null,[TYPES.z,TYPES.f]],updateOnLoadTemplate=[["img"],[TYPES.s,TYPES.a,TYPES.z]],inheritedAttrsTemplate=[["style","class"],[TYPES.s,TYPES.a,TYPES.z]],optionsDefaultsAndTemplate={className:["os-theme-dark",classNameAllowedValues],resize:["none","n:none b:both h:horizontal v:vertical"],sizeAutoCapable:booleanTrueTemplate,clipAlways:booleanTrueTemplate,normalizeRTL:booleanTrueTemplate,paddingAbsolute:booleanFalseTemplate,autoUpdate:[null,booleanNullAllowedValues],autoUpdateInterval:[33,numberAllowedValues],updateOnLoad:updateOnLoadTemplate,nativeScrollbarsOverlaid:{showNativeScrollbars:booleanFalseTemplate,initialize:booleanTrueTemplate},overflowBehavior:{x:["scroll",overflowBehaviorAllowedValues="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden"],y:["scroll",overflowBehaviorAllowedValues]},scrollbars:{visibility:["auto","v:visible h:hidden a:auto"],autoHide:["never","n:never s:scroll l:leave m:move"],autoHideDelay:[800,numberAllowedValues],dragScrolling:booleanTrueTemplate,clickScrolling:booleanFalseTemplate,touchSupport:booleanTrueTemplate,snapHandle:booleanFalseTemplate},textarea:{dynWidth:booleanFalseTemplate,dynHeight:booleanFalseTemplate,inheritedAttrs:inheritedAttrsTemplate},callbacks:{onInitialized:callbackTemplate,onInitializationWithdrawn:callbackTemplate,onDestroyed:callbackTemplate,onScrollStart:callbackTemplate,onScroll:callbackTemplate,onScrollStop:callbackTemplate,onOverflowChanged:callbackTemplate,onOverflowAmountChanged:callbackTemplate,onDirectionChanged:callbackTemplate,onContentSizeChanged:callbackTemplate,onHostSizeChanged:callbackTemplate,onUpdated:callbackTemplate}},{_defaults:(convert=function(t){var n=function(e){var r,i,o;for(r in e)e[LEXICON.hOP](r)&&((o=type(i=e[r]))==TYPES.a?e[r]=i[t?1:0]:o==TYPES.o&&(e[r]=n(i)));return e};return n(FRAMEWORK.extend(!0,{},optionsDefaultsAndTemplate))})(),_template:convert(!0),_validate:function(t,n,e,r){var i={},o={},a=FRAMEWORK.extend(!0,{},t),s=FRAMEWORK.inArray,c=FRAMEWORK.isEmptyObject,u=function(t,n,r,i,o,a){for(var l in n)if(n[LEXICON.hOP](l)&&t[LEXICON.hOP](l)){var f,h,d,$,p,v,_,y,m=!1,b=!1,x=n[l],g=type(x),w=g==TYPES.o,O=COMPATIBILITY.isA(x)?x:[x],S=r[l],C=t[l],A=type(C),z=a?a+".":"",H='The option "'+z+l+"\" wasn't set, because",P=[],E=[];if(S=S===undefined?{}:S,w&&A==TYPES.o)i[l]={},o[l]={},u(C,x,S,i[l],o[l],z+l),FRAMEWORK.each([t,i,o],function(t,n){c(n[l])&&delete n[l]});else if(!w){for(v=0;v<O[LEXICON.l];v++)if(d=(g=type(p=O[v]))==TYPES.s&&-1===s(p,possibleTemplateTypes))for(P.push(TYPES.s),f=p.split(" "),E=E.concat(f),_=0;_<f[LEXICON.l];_++){for(y=0,$=(h=f[_].split(":"))[0];y<h[LEXICON.l];y++)if(C===h[y]){m=!0;break}if(m)break}else if(P.push(p),A===p){m=!0;break}m?((b=C!==S)&&(i[l]=C),(d?0>s(S,h):b)&&(o[l]=d?$:C)):e&&console.warn(H+" it doesn't accept the type [ "+A.toUpperCase()+' ] with the value of "'+C+'".\r\nAccepted types are: [ '+P.join(", ").toUpperCase()+" ]."+(E[length]>0?"\r\nValid strings are: [ "+E.join(", ").split(":").join(", ")+" ].":"")),delete t[l]}}};return u(a,n,r||{},i,o),!c(a)&&e&&console.warn("The following options are discarded due to invalidity:\r\n"+window.JSON.stringify(a,null,2)),{_default:i,_prepared:o}}});function initOverlayScrollbarsStatics(){_pluginsGlobals||(_pluginsGlobals=new OverlayScrollbarsGlobals(_pluginsOptions._defaults)),_pluginsAutoUpdateLoop||(_pluginsAutoUpdateLoop=new OverlayScrollbarsAutoUpdateLoop(_pluginsGlobals))}function OverlayScrollbarsGlobals(t){var n=this,e="overflow",r="hidden",i=FRAMEWORK("body"),o=FRAMEWORK('<div id="os-dummy-scrollbar-size"><div></div></div>'),a=o[0],s=FRAMEWORK(o.children("div").eq(0));i.append(o),o.hide().show();var c,u,l,f,h,d,$,p,v,_,y,m,b,x,g=S(a),w={x:0===g.x,y:0===g.y},O=(u=window.navigator.userAgent,f="substring",h=u[l="indexOf"]("MSIE "),d=u[l]("Trident/"),$=u[l]("Edge/"),p=u[l]("rv:"),v=parseInt,h>0?c=v(u[f](h+5,u[l](".",h)),10):d>0?c=v(u[f](p+3,u[l](".",p)),10):$>0&&(c=v(u[f]($+5,u[l](".",$)),10)),c);function S(t){return{x:t[LEXICON.oH]-t[LEXICON.cH],y:t[LEXICON.oW]-t[LEXICON.cW]}}FRAMEWORK.extend(n,{defaultOptions:t,msie:O,autoUpdateLoop:!1,autoUpdateRecommended:!COMPATIBILITY.mO(),nativeScrollbarSize:g,nativeScrollbarIsOverlaid:w,nativeScrollbarStyling:function(){var t=!1;o.addClass("os-viewport-native-scrollbars-invisible");try{t="none"===o.css("scrollbar-width")&&(O>9||!O)||"none"===window.getComputedStyle(a,"::-webkit-scrollbar").getPropertyValue("display")}catch(n){}return t}(),overlayScrollbarDummySize:{x:30,y:30},cssCalc:VENDORS._cssPropertyValue("width","calc","(1px)")||null,restrictedMeasuring:(o.css(e,r),_={w:a[LEXICON.sW],h:a[LEXICON.sH]},o.css(e,"visible"),y={w:a[LEXICON.sW],h:a[LEXICON.sH]},_.w-y.w!=0||_.h-y.h!=0),rtlScrollBehavior:(o.css({"overflow-y":r,"overflow-x":"scroll",direction:"rtl"}).scrollLeft(0),m=o.offset(),b=s.offset(),o.scrollLeft(-999),x=s.offset(),{i:m.left===b.left,n:b.left!==x.left}),supportTransform:!!VENDORS._cssProperty("transform"),supportTransition:!!VENDORS._cssProperty("transition"),supportPassiveEvents:function(){var t=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){t=!0}}))}catch(n){}return t}(),supportResizeObserver:!!COMPATIBILITY.rO(),supportMutationObserver:!!COMPATIBILITY.mO()}),o.removeAttr(LEXICON.s).remove(),function(){if(!w.x||!w.y){var t=MATH.abs,e=COMPATIBILITY.wW(),r=COMPATIBILITY.wH(),a=c(),s=function(){if(INSTANCES().length>0){var s,u=COMPATIBILITY.wW(),l=COMPATIBILITY.wH(),f=u-e,h=l-r;if(0!==f||0!==h){var d,$,p,v,_=MATH.round(u/(e/100)),y=MATH.round(l/(r/100)),m=t(f),b=t(h),x=t(_),g=t(y),w=c(),O=(d=x,$=g,p=t(d),v=t($),!!(p===v||p+1===v||p-1===v)),C=w!==a&&a>0,A=n.nativeScrollbarSize;m>2&&b>2&&O&&C&&(i.append(o),s=n.nativeScrollbarSize=S(o[0]),o.remove(),(A.x!==s.x||A.y!==s.y)&&FRAMEWORK.each(INSTANCES(),function(){INSTANCES(this)&&INSTANCES(this).update("zoom")})),e=u,r=l,a=w}}};FRAMEWORK(window).on("resize",s)}function c(){var t=window.screen.deviceXDPI||0,n=window.screen.logicalXDPI||1;return window.devicePixelRatio||t/n}}()}function OverlayScrollbarsAutoUpdateLoop(t){var n,e=this,r=FRAMEWORK.inArray,i=COMPATIBILITY.now,o="autoUpdate",a=o+"Interval",s=LEXICON.l,c=[],u=[],l=!1,f=33,h=i(),d=function(){if(c[s]>0&&l){n=COMPATIBILITY.rAF()(function(){d()});var t,e,r,$,p,v,_=i(),y=_-h;if(y>f){h=_-y%f,t=33;for(var m=0;m<c[s];m++)undefined!==(e=c[m])&&($=(r=e.options())[o],p=MATH.max(1,r[a]),v=i(),(!0===$||null===$)&&v-u[m]>p&&(e.update("auto"),u[m]=new Date(v+=p)),t=MATH.max(1,MATH.min(t,p)));f=t}}else f=33};e.add=function(n){-1===r(n,c)&&(c.push(n),u.push(i()),c[s]>0&&!l&&(l=!0,t.autoUpdateLoop=l,d()))},e.remove=function(e){var i=r(e,c);i>-1&&(u.splice(i,1),c.splice(i,1),0===c[s]&&l&&(l=!1,t.autoUpdateLoop=l,n!==undefined&&(COMPATIBILITY.cAF()(n),n=-1)))}}return(_plugin=window.OverlayScrollbars=function(pluginTargetElements,options,extensions){if(0===arguments[LEXICON.l])return this;var inst,result,arr=[],optsIsPlainObj=FRAMEWORK.isPlainObject(options);return pluginTargetElements?(pluginTargetElements=undefined!=pluginTargetElements[LEXICON.l]?pluginTargetElements:[pluginTargetElements[0]||pluginTargetElements],initOverlayScrollbarsStatics(),pluginTargetElements[LEXICON.l]>0&&(optsIsPlainObj?FRAMEWORK.each(pluginTargetElements,function(i,v){undefined!==(inst=v)&&arr.push(function OverlayScrollbarsInstance(pluginTargetElement,options,extensions,globals,autoUpdateLoop){var _nativeScrollbarIsOverlaid,_overlayScrollbarDummySize,_rtlScrollBehavior,_autoUpdateRecommended,_msieVersion,_nativeScrollbarStyling,_cssCalc,_nativeScrollbarSize,_supportTransition,_supportTransform,_supportPassiveEvents,_supportResizeObserver,_supportMutationObserver,_restrictedMeasuring,_initialized,_destroyed,_isTextarea,_isBody,_documentMixed,_domExists,_isBorderBox,_sizeAutoObserverAdded,_paddingX,_paddingY,_borderX,_borderY,_marginX,_marginY,_isRTL,_sleeping,_defaultOptions,_currentOptions,_currentPreparedOptions,_lastUpdateTime,_swallowedUpdateTimeout,_windowElement,_documentElement,_htmlElement,_bodyElement,_targetElement,_hostElement,_sizeAutoObserverElement,_sizeObserverElement,_paddingElement,_viewportElement,_contentElement,_contentArrangeElement,_contentGlueElement,_textareaCoverElement,_scrollbarCornerElement,_scrollbarHorizontalElement,_scrollbarHorizontalTrackElement,_scrollbarHorizontalHandleElement,_scrollbarVerticalElement,_scrollbarVerticalTrackElement,_scrollbarVerticalHandleElement,_windowElementNative,_documentElementNative,_targetElementNative,_hostElementNative,_sizeAutoObserverElementNative,_sizeObserverElementNative,_paddingElementNative,_viewportElementNative,_contentElementNative,_hostSizeCache,_contentScrollSizeCache,_arrangeContentSizeCache,_hasOverflowCache,_hideOverflowCache,_widthAutoCache,_heightAutoCache,_cssBoxSizingCache,_cssPaddingCache,_cssBorderCache,_cssMarginCache,_cssDirectionCache,_cssDirectionDetectedCache,_paddingAbsoluteCache,_clipAlwaysCache,_contentGlueSizeCache,_overflowBehaviorCache,_overflowAmountCache,_ignoreOverlayScrollbarHidingCache,_autoUpdateCache,_sizeAutoCapableCache,_contentElementScrollSizeChangeDetectedCache,_hostElementSizeChangeDetectedCache,_scrollbarsVisibilityCache,_scrollbarsAutoHideCache,_scrollbarsClickScrollingCache,_scrollbarsDragScrollingCache,_resizeCache,_normalizeRTLCache,_classNameCache,_oldClassName,_textareaAutoWrappingCache,_textareaInfoCache,_textareaSizeCache,_textareaDynHeightCache,_textareaDynWidthCache,_bodyMinSizeCache,_mutationObserverHost,_mutationObserverContent,_mutationObserverHostCallback,_mutationObserverContentCallback,_mutationObserversConnected,_textareaHasFocus,_scrollbarsAutoHideTimeoutId,_scrollbarsAutoHideMoveTimeoutId,_scrollbarsAutoHideDelay,_scrollbarsAutoHideNever,_scrollbarsAutoHideScroll,_scrollbarsAutoHideMove,_scrollbarsAutoHideLeave,_scrollbarsHandleHovered,_scrollbarsHandlesDefineScrollPos,_resizeNone,_resizeBoth,_resizeHorizontal,_resizeVertical,type=COMPATIBILITY.type,inArray=FRAMEWORK.inArray,each=FRAMEWORK.each,_base=new _plugin,_frameworkProto=FRAMEWORK[LEXICON.p];if(isHTMLElement(pluginTargetElement)){if(INSTANCES(pluginTargetElement)){var inst=INSTANCES(pluginTargetElement);return inst.options(options),inst}var targetElement,options,extensions,initBodyScroll,bodyMouseTouchDownListener,_contentBorderSize={},_scrollHorizontalInfo={},_scrollVerticalInfo={},_viewportSize={},_nativeScrollbarMinSize={},_strMinusHidden="-hidden",_strMarginMinus="margin-",_strPaddingMinus="padding-",_strBorderMinus="border-",_strTop="top",_strRight="right",_strBottom="bottom",_strLeft="left",_strMinMinus="min-",_strMaxMinus="max-",_strWidth="width",_strHeight="height",_strFloat="float",_strEmpty="",_strAuto="auto",_strSync="sync",_strScroll="scroll",_strHundredPercent="100%",_strX="x",_strY="y",_strDot=".",_strSpace=" ",_strScrollbar="scrollbar",_strMinusHorizontal="-horizontal",_strMinusVertical="-vertical",_strScrollLeft=_strScroll+"Left",_strScrollTop=_strScroll+"Top",_strMouseTouchDownEvent="mousedown touchstart",_strMouseTouchUpEvent="mouseup touchend touchcancel",_strMouseTouchMoveEvent="mousemove touchmove",_strMouseEnter="mouseenter",_strMouseLeave="mouseleave",_strKeyDownEvent="keydown",_strKeyUpEvent="keyup",_strSelectStartEvent="selectstart",_strTransitionEndEvent="transitionend webkitTransitionEnd oTransitionEnd",_strResizeObserverProperty="__overlayScrollbarsRO__",_classNameHTMLElement="os-html",_classNameHostElement="os-host",_classNameHostElementForeign=_classNameHostElement+"-foreign",_classNameHostTextareaElement=_classNameHostElement+"-textarea",_classNameHostScrollbarHorizontalHidden=_classNameHostElement+"-"+_strScrollbar+_strMinusHorizontal+_strMinusHidden,_classNameHostScrollbarVerticalHidden=_classNameHostElement+"-"+_strScrollbar+_strMinusVertical+_strMinusHidden,_classNameHostTransition=_classNameHostElement+"-transition",_classNameHostRTL=_classNameHostElement+"-rtl",_classNameHostResizeDisabled=_classNameHostElement+"-resize-disabled",_classNameHostScrolling=_classNameHostElement+"-scrolling",_classNameHostOverflow=_classNameHostElement+"-overflow",_classNameHostOverflow=_classNameHostElement+"-overflow",_classNameHostOverflowX=_classNameHostOverflow+"-x",_classNameHostOverflowY=_classNameHostOverflow+"-y",_classNameTextareaElement="os-textarea",_classNameTextareaCoverElement=_classNameTextareaElement+"-cover",_classNamePaddingElement="os-padding",_classNameViewportElement="os-viewport",_classNameViewportNativeScrollbarsInvisible=_classNameViewportElement+"-native-scrollbars-invisible",_classNameViewportNativeScrollbarsOverlaid=_classNameViewportElement+"-native-scrollbars-overlaid",_classNameContentElement="os-content",_classNameContentArrangeElement="os-content-arrange",_classNameContentGlueElement="os-content-glue",_classNameSizeAutoObserverElement="os-size-auto-observer",_classNameResizeObserverElement="os-resize-observer",_classNameResizeObserverItemElement="os-resize-observer-item",_classNameResizeObserverItemFinalElement=_classNameResizeObserverItemElement+"-final",_classNameTextInherit="os-text-inherit",_classNameScrollbar="os-"+_strScrollbar,_classNameScrollbarTrack=_classNameScrollbar+"-track",_classNameScrollbarTrackOff=_classNameScrollbarTrack+"-off",_classNameScrollbarHandle=_classNameScrollbar+"-handle",_classNameScrollbarHandleOff=_classNameScrollbarHandle+"-off",_classNameScrollbarUnusable=_classNameScrollbar+"-unusable",_classNameScrollbarAutoHidden=_classNameScrollbar+"-"+_strAuto+_strMinusHidden,_classNameScrollbarCorner=_classNameScrollbar+"-corner",_classNameScrollbarCornerResize=_classNameScrollbarCorner+"-resize",_classNameScrollbarCornerResizeB=_classNameScrollbarCornerResize+"-both",_classNameScrollbarCornerResizeH=_classNameScrollbarCornerResize+_strMinusHorizontal,_classNameScrollbarCornerResizeV=_classNameScrollbarCornerResize+_strMinusVertical,_classNameScrollbarHorizontal=_classNameScrollbar+_strMinusHorizontal,_classNameScrollbarVertical=_classNameScrollbar+_strMinusVertical,_classNameDragging="os-dragging",_classNameThemeNone="os-theme-none",_classNamesDynamicDestroy=[_classNameViewportNativeScrollbarsInvisible,_classNameViewportNativeScrollbarsOverlaid,_classNameScrollbarTrackOff,_classNameScrollbarHandleOff,_classNameScrollbarUnusable,_classNameScrollbarAutoHidden,_classNameScrollbarCornerResize,_classNameScrollbarCornerResizeB,_classNameScrollbarCornerResizeH,_classNameScrollbarCornerResizeV,_classNameDragging].join(_strSpace),_callbacksInitQeueue=[],_viewportAttrsFromTarget=[LEXICON.ti],_extensions={},_swallowedUpdateHints={},_swallowUpdateLag=42,_updateOnLoadEventName="load",_updateOnLoadElms=[],_updateAutoCache={},_mutationObserverAttrsTextarea=["wrap","cols","rows"],_mutationObserverAttrsHost=[LEXICON.i,LEXICON.c,LEXICON.s,"open"].concat(_viewportAttrsFromTarget),_destroyEvents=[];return _base.sleep=function(){_sleeping=!0},_base.update=function(t){if(!_destroyed){var n,e,r,i,o;return type(t)==TYPES.s?t===_strAuto?(n=function t(){if(!_sleeping&&!_mutationObserversConnected){var n,e,r,i=[],o=[{_elem:_hostElement,_attrs:_mutationObserverAttrsHost.concat(":visible")},{_elem:_isTextarea?_targetElement:undefined,_attrs:_mutationObserverAttrsTextarea}];return each(o,function(t,o){(n=o._elem)&&each(o._attrs,function(t,o){checkCache(e=":"===o.charAt(0)?n.is(o):n.attr(o),r=_updateAutoCache[o])&&i.push(o),_updateAutoCache[o]=e})}),updateViewportAttrsFromTarget(i),i[LEXICON.l]>0}}(),e=function t(){if(_sleeping)return!1;var n,e,r,i,o=getContentMeasureElement(),a=_isTextarea&&_widthAutoCache&&!_textareaAutoWrappingCache?_targetElement.val().length:0,s=!_mutationObserversConnected&&_widthAutoCache&&!_isTextarea,c={};return s&&(n=_contentElement.css(_strFloat),c[_strFloat]=_isRTL?_strRight:_strLeft,c[_strWidth]=_strAuto,_contentElement.css(c)),i={w:o[LEXICON.sW]+a,h:o[LEXICON.sH]+a},s&&(c[_strFloat]=n,c[_strWidth]=_strHundredPercent,_contentElement.css(c)),e=bodyMinSizeChanged(),r=checkCache(i,_contentElementScrollSizeChangeDetectedCache),_contentElementScrollSizeChangeDetectedCache=i,r||e}(),(r=n||e)&&update({_contentSizeChanged:e,_changedOptions:_initialized?undefined:_currentPreparedOptions})):t===_strSync?_mutationObserversConnected?(i=_mutationObserverHostCallback(_mutationObserverHost.takeRecords()),o=_mutationObserverContentCallback(_mutationObserverContent.takeRecords())):i=_base.update(_strAuto):"zoom"===t&&update({_hostSizeChanged:!0,_contentSizeChanged:!0}):(t=_sleeping||t,_sleeping=!1,(!_base.update(_strSync)||t)&&update({_force:t})),updateElementsOnLoad(),r||i||o}},_base.options=function(t,n){var e,r={};if(FRAMEWORK.isEmptyObject(t)||!FRAMEWORK.isPlainObject(t)){if(type(t)!=TYPES.s)return _currentOptions;if(!(arguments.length>1))return getObjectPropVal(_currentOptions,t);(function t(n,e,r){for(var i=e.split(_strDot),o=i.length,a=0,s={},c=s;a<o;a++)s=s[i[a]]=a+1<o?{}:r;FRAMEWORK.extend(n,c,!0)})(r,t,n),e=setOptions(r)}else e=setOptions(t);FRAMEWORK.isEmptyObject(e)||update({_changedOptions:e})},_base.destroy=function(){if(!_destroyed){for(var t in autoUpdateLoop.remove(_base),disconnectMutationObservers(),setupResizeObserver(_sizeObserverElement),setupResizeObserver(_sizeAutoObserverElement),_extensions)_base.removeExt(t);for(;_destroyEvents[LEXICON.l]>0;)_destroyEvents.pop()();setupHostMouseTouchEvents(!0),_contentGlueElement&&remove(_contentGlueElement),_contentArrangeElement&&remove(_contentArrangeElement),_sizeAutoObserverAdded&&remove(_sizeAutoObserverElement),setupScrollbarsDOM(!0),setupScrollbarCornerDOM(!0),setupStructureDOM(!0);for(var n=0;n<_updateOnLoadElms[LEXICON.l];n++)FRAMEWORK(_updateOnLoadElms[n]).off(_updateOnLoadEventName,updateOnLoadCallback);_updateOnLoadElms=undefined,_destroyed=!0,_sleeping=!0,INSTANCES(pluginTargetElement,0),dispatchCallback("onDestroyed")}},_base.scroll=function(coordinates,duration,easing,complete){if(0===arguments.length||coordinates===undefined){var infoX=_scrollHorizontalInfo,infoY=_scrollVerticalInfo,normalizeInvert=_normalizeRTLCache&&_isRTL&&_rtlScrollBehavior.i,normalizeNegate=_normalizeRTLCache&&_isRTL&&_rtlScrollBehavior.n,scrollX=infoX._currentScroll,scrollXRatio=infoX._currentScrollRatio,maxScrollX=infoX._maxScroll;return scrollXRatio=normalizeInvert?1-scrollXRatio:scrollXRatio,scrollX=normalizeInvert?maxScrollX-scrollX:scrollX,scrollX*=normalizeNegate?-1:1,maxScrollX*=normalizeNegate?-1:1,{position:{x:scrollX,y:infoY._currentScroll},ratio:{x:scrollXRatio,y:infoY._currentScrollRatio},max:{x:maxScrollX,y:infoY._maxScroll},handleOffset:{x:infoX._handleOffset,y:infoY._handleOffset},handleLength:{x:infoX._handleLength,y:infoY._handleLength},handleLengthRatio:{x:infoX._handleLengthRatio,y:infoY._handleLengthRatio},trackLength:{x:infoX._trackLength,y:infoY._trackLength},snappedHandleOffset:{x:infoX._snappedHandleOffset,y:infoY._snappedHandleOffset},isRTL:_isRTL,isRTLNormalized:_normalizeRTLCache}}_base.update(_strSync);var normalizeRTL=_normalizeRTLCache,coordinatesXAxisProps=[_strX,_strLeft,"l"],coordinatesYAxisProps=[_strY,_strTop,"t"],coordinatesOperators=["+=","-=","*=","/="],durationIsObject=type(duration)==TYPES.o,completeCallback=durationIsObject?duration.complete:complete,finalScroll={},specialEasing={},strBegin="begin",strCenter="center",strNearest="nearest",strAlways="always",strNever="never",strIfNeeded="ifneeded",strLength=LEXICON.l,coordinatesIsElementObj=coordinates[LEXICON.hOP]("el"),possibleElement=coordinatesIsElementObj?coordinates.el:coordinates,possibleElementIsJQuery=(possibleElement instanceof FRAMEWORK||!!JQUERY)&&possibleElement instanceof JQUERY,possibleElementIsHTMLElement=!possibleElementIsJQuery&&isHTMLElement(possibleElement),updateScrollbarInfos=function(){doScrollLeft&&refreshScrollbarHandleOffset(!0),doScrollTop&&refreshScrollbarHandleOffset(!1)},proxyCompleteCallback=type(completeCallback)!=TYPES.f?undefined:function(){updateScrollbarInfos(),completeCallback()};function checkSettingsStringValue(t,n){for(i=0;i<n[strLength];i++)if(t===n[i])return!0;return!1}function getRawScroll(t,n){var e=t?coordinatesXAxisProps:coordinatesYAxisProps;if(n=type(n)==TYPES.s||type(n)==TYPES.n?[n,n]:n,COMPATIBILITY.isA(n))return t?n[0]:n[1];if(type(n)==TYPES.o){for(i=0;i<e[strLength];i++)if(e[i]in n)return n[e[i]]}}function getFinalScroll(isX,rawScroll){var operator,amount,finalValue,possibleOperator,isString=type(rawScroll)==TYPES.s,scrollInfo=isX?_scrollHorizontalInfo:_scrollVerticalInfo,currScroll=scrollInfo._currentScroll,maxScroll=scrollInfo._maxScroll,isRTLisX=_isRTL&&isX,normalizeShortcuts=isRTLisX&&_rtlScrollBehavior.n&&!normalizeRTL,strReplace="replace",evalFunc=eval;if(isString?(rawScroll[strLength]>2&&inArray(possibleOperator=rawScroll.substr(0,2),coordinatesOperators)>-1&&(operator=possibleOperator),rawScroll=(rawScroll=operator?rawScroll.substr(2):rawScroll)[strReplace](/min/g,0)[strReplace](/</g,0)[strReplace](/max/g,(normalizeShortcuts?"-":_strEmpty)+_strHundredPercent)[strReplace](/>/g,(normalizeShortcuts?"-":_strEmpty)+_strHundredPercent)[strReplace](/px/g,_strEmpty)[strReplace](/%/g," * "+maxScroll*(isRTLisX&&_rtlScrollBehavior.n?-1:1)/100)[strReplace](/vw/g," * "+_viewportSize.w)[strReplace](/vh/g," * "+_viewportSize.h),amount=parseToZeroOrNumber(isNaN(rawScroll)?parseToZeroOrNumber(evalFunc(rawScroll),!0).toFixed():rawScroll)):amount=rawScroll,amount!==undefined&&!isNaN(amount)&&type(amount)==TYPES.n){var normalizeIsRTLisX=normalizeRTL&&isRTLisX,operatorCurrScroll=currScroll*(normalizeIsRTLisX&&_rtlScrollBehavior.n?-1:1),invert=normalizeIsRTLisX&&_rtlScrollBehavior.i,negate=normalizeIsRTLisX&&_rtlScrollBehavior.n;switch(operatorCurrScroll=invert?maxScroll-operatorCurrScroll:operatorCurrScroll,operator){case"+=":finalValue=operatorCurrScroll+amount;break;case"-=":finalValue=operatorCurrScroll-amount;break;case"*=":finalValue=operatorCurrScroll*amount;break;case"/=":finalValue=operatorCurrScroll/amount;break;default:finalValue=amount}finalValue=invert?maxScroll-finalValue:finalValue,finalValue*=negate?-1:1,finalValue=isRTLisX&&_rtlScrollBehavior.n?MATH.min(0,MATH.max(maxScroll,finalValue)):MATH.max(0,MATH.min(maxScroll,finalValue))}return finalValue===currScroll?undefined:finalValue}function getPerAxisValue(t,n,e,r){var o,a,s=[e,e],c=type(t);if(c==n)t=[t,t];else if(c==TYPES.a){if((o=t[strLength])>2||o<1)t=s;else for(1===o&&(t[1]=e),i=0;i<o;i++)if(type(a=t[i])!=n||!checkSettingsStringValue(a,r)){t=s;break}}else t=c==TYPES.o?[t[_strX]||e,t[_strY]||e]:s;return{x:t[0],y:t[1]}}function generateMargin(t){var n,e,r=[],o=[_strTop,_strRight,_strBottom,_strLeft];for(i=0;i<t[strLength]&&i!==o[strLength];i++)(e=type(n=t[i]))==TYPES.b?r.push(n?parseToZeroOrNumber(finalElement.css(_strMarginMinus+o[i])):0):r.push(e==TYPES.n?n:0);return r}if(possibleElementIsJQuery||possibleElementIsHTMLElement){var i,doScrollLeft,doScrollTop,animationOptions,settingsAxis,settingsScroll,settingsBlock,settingsMargin,finalElement,marginLength,margin=coordinatesIsElementObj?coordinates.margin:0,axis=coordinatesIsElementObj?coordinates.axis:0,scroll=coordinatesIsElementObj?coordinates.scroll:0,block=coordinatesIsElementObj?coordinates.block:0,marginDefault=[0,0,0,0],marginType=type(margin);if((finalElement=possibleElementIsJQuery?possibleElement:FRAMEWORK(possibleElement))[strLength]>0){margin=marginType==TYPES.n||marginType==TYPES.b?generateMargin([margin,margin,margin,margin]):marginType==TYPES.a?2===(marginLength=margin[strLength])?generateMargin([margin[0],margin[1],margin[0],margin[1]]):marginLength>=4?generateMargin(margin):marginDefault:marginType==TYPES.o?generateMargin([margin[_strTop],margin[_strRight],margin[_strBottom],margin[_strLeft]]):marginDefault,settingsAxis=checkSettingsStringValue(axis,[_strX,_strY,"xy","yx"])?axis:"xy",settingsScroll=getPerAxisValue(scroll,TYPES.s,strAlways,[strAlways,strNever,strIfNeeded]),settingsBlock=getPerAxisValue(block,TYPES.s,strBegin,[strBegin,"end",strCenter,strNearest]),settingsMargin=margin;var viewportScroll={l:_scrollHorizontalInfo._currentScroll,t:_scrollVerticalInfo._currentScroll},viewportOffset=_paddingElement.offset(),elementOffset=finalElement.offset(),doNotScroll={x:settingsScroll.x==strNever||settingsAxis==_strY,y:settingsScroll.y==strNever||settingsAxis==_strX};elementOffset[_strTop]-=settingsMargin[0],elementOffset[_strLeft]-=settingsMargin[3];var elementScrollCoordinates={x:MATH.round(elementOffset[_strLeft]-viewportOffset[_strLeft]+viewportScroll.l),y:MATH.round(elementOffset[_strTop]-viewportOffset[_strTop]+viewportScroll.t)};if(_isRTL&&(_rtlScrollBehavior.n||_rtlScrollBehavior.i||(elementScrollCoordinates.x=MATH.round(viewportOffset[_strLeft]-elementOffset[_strLeft]+viewportScroll.l)),_rtlScrollBehavior.n&&normalizeRTL&&(elementScrollCoordinates.x*=-1),_rtlScrollBehavior.i&&normalizeRTL&&(elementScrollCoordinates.x=MATH.round(viewportOffset[_strLeft]-elementOffset[_strLeft]+(_scrollHorizontalInfo._maxScroll-viewportScroll.l)))),settingsBlock.x!=strBegin||settingsBlock.y!=strBegin||settingsScroll.x==strIfNeeded||settingsScroll.y==strIfNeeded||_isRTL){var measuringElm=finalElement[0],rawElementSize=_supportTransform?measuringElm[LEXICON.bCR]():{width:measuringElm[LEXICON.oW],height:measuringElm[LEXICON.oH]},elementSize={w:rawElementSize[_strWidth]+settingsMargin[3]+settingsMargin[1],h:rawElementSize[_strHeight]+settingsMargin[0]+settingsMargin[2]},finalizeBlock=function(t){var n=getScrollbarVars(t),e=n._w_h,r=n._left_top,i=n._x_y,o=settingsBlock[i]==(t&&_isRTL?strBegin:"end"),a=settingsBlock[i]==strCenter,s=settingsBlock[i]==strNearest,c=settingsScroll[i]==strNever,u=settingsScroll[i]==strIfNeeded,l=_viewportSize[e],f=viewportOffset[r],h=elementSize[e],d=elementOffset[r],$=a?2:1,p=d+h/2,v=f+l/2;c?doNotScroll[i]=!0:doNotScroll[i]||((s||u)&&(doNotScroll[i]=!!u&&h<=l&&d>=f&&d+h<=f+l,o=h<l?p>v:p<v),elementScrollCoordinates[i]-=o||a?(l/$-h/$)*(t&&_isRTL&&normalizeRTL?-1:1):0)};finalizeBlock(!0),finalizeBlock(!1)}doNotScroll.y&&delete elementScrollCoordinates.y,doNotScroll.x&&delete elementScrollCoordinates.x,coordinates=elementScrollCoordinates}}finalScroll[_strScrollLeft]=getFinalScroll(!0,getRawScroll(!0,coordinates)),finalScroll[_strScrollTop]=getFinalScroll(!1,getRawScroll(!1,coordinates)),doScrollLeft=undefined!==finalScroll[_strScrollLeft],doScrollTop=undefined!==finalScroll[_strScrollTop],(doScrollLeft||doScrollTop)&&(duration>0||durationIsObject)?durationIsObject?(duration.complete=proxyCompleteCallback,_viewportElement.animate(finalScroll,duration)):(animationOptions={duration:duration,complete:proxyCompleteCallback},COMPATIBILITY.isA(easing)||FRAMEWORK.isPlainObject(easing)?(specialEasing[_strScrollLeft]=easing[0]||easing.x,specialEasing[_strScrollTop]=easing[1]||easing.y,animationOptions.specialEasing=specialEasing):animationOptions.easing=easing,_viewportElement.animate(finalScroll,animationOptions)):(doScrollLeft&&_viewportElement[_strScrollLeft](finalScroll[_strScrollLeft]),doScrollTop&&_viewportElement[_strScrollTop](finalScroll[_strScrollTop]),updateScrollbarInfos())},_base.scrollStop=function(t,n,e){return _viewportElement.stop(t,n,e),_base},_base.getElements=function(t){var n={target:_targetElementNative,host:_hostElementNative,padding:_paddingElementNative,viewport:_viewportElementNative,content:_contentElementNative,scrollbarHorizontal:{scrollbar:_scrollbarHorizontalElement[0],track:_scrollbarHorizontalTrackElement[0],handle:_scrollbarHorizontalHandleElement[0]},scrollbarVertical:{scrollbar:_scrollbarVerticalElement[0],track:_scrollbarVerticalTrackElement[0],handle:_scrollbarVerticalHandleElement[0]},scrollbarCorner:_scrollbarCornerElement[0]};return type(t)==TYPES.s?getObjectPropVal(n,t):n},_base.getState=function(t){function n(t){if(!FRAMEWORK.isPlainObject(t))return t;var n=extendDeep({},t),e=function(t,e){n[LEXICON.hOP](t)&&(n[e]=n[t],delete n[t])};return e("w",_strWidth),e("h",_strHeight),delete n.c,n}var e={destroyed:!!n(_destroyed),sleeping:!!n(_sleeping),autoUpdate:n(!_mutationObserversConnected),widthAuto:n(_widthAutoCache),heightAuto:n(_heightAutoCache),padding:n(_cssPaddingCache),overflowAmount:n(_overflowAmountCache),hideOverflow:n(_hideOverflowCache),hasOverflow:n(_hasOverflowCache),contentScrollSize:n(_contentScrollSizeCache),viewportSize:n(_viewportSize),hostSize:n(_hostSizeCache),documentMixed:n(_documentMixed)};return type(t)==TYPES.s?getObjectPropVal(e,t):e},_base.ext=function(t){var n,e="added removed on contract".split(" "),r=0;if(type(t)==TYPES.s){if(_extensions[LEXICON.hOP](t))for(n=extendDeep({},_extensions[t]);r<e.length;r++)delete n[e[r]]}else for(r in n={},_extensions)n[r]=extendDeep({},_base.ext(r));return n},_base.addExt=function(t,n){var e,r,i,o,a=_plugin.extension(t),s=!0;if(a){if(_extensions[LEXICON.hOP](t))return _base.ext(t);if((e=a.extensionFactory.call(_base,extendDeep({},a.defaultOptions),FRAMEWORK,COMPATIBILITY))&&(type(i=e.contract)==TYPES.f&&(o=i(window),s=type(o)==TYPES.b?o:s),s))return _extensions[t]=e,type(r=e.added)==TYPES.f&&r(n),_base.ext(t)}else console.warn('A extension with the name "'+t+"\" isn't registered.")},_base.removeExt=function(t){var n,e=_extensions[t];return!!e&&(delete _extensions[t],type(n=e.removed)==TYPES.f&&n(),!0)},_plugin.valid((targetElement=pluginTargetElement,options=options,extensions=extensions,(_defaultOptions=globals.defaultOptions,_nativeScrollbarStyling=globals.nativeScrollbarStyling,_nativeScrollbarSize=extendDeep({},globals.nativeScrollbarSize),_nativeScrollbarIsOverlaid=extendDeep({},globals.nativeScrollbarIsOverlaid),_overlayScrollbarDummySize=extendDeep({},globals.overlayScrollbarDummySize),_rtlScrollBehavior=extendDeep({},globals.rtlScrollBehavior),setOptions(extendDeep({},_defaultOptions,options)),_cssCalc=globals.cssCalc,_msieVersion=globals.msie,_autoUpdateRecommended=globals.autoUpdateRecommended,_supportTransition=globals.supportTransition,_supportTransform=globals.supportTransform,_supportPassiveEvents=globals.supportPassiveEvents,_supportResizeObserver=globals.supportResizeObserver,_supportMutationObserver=globals.supportMutationObserver,_restrictedMeasuring=globals.restrictedMeasuring,_documentElementNative=(_documentElement=FRAMEWORK(targetElement.ownerDocument))[0],_windowElementNative=(_windowElement=FRAMEWORK(_documentElementNative.defaultView||_documentElementNative.parentWindow))[0],_htmlElement=findFirst(_documentElement,"html"),_bodyElement=findFirst(_htmlElement,"body"),_targetElementNative=(_targetElement=FRAMEWORK(targetElement))[0],_isTextarea=_targetElement.is("textarea"),_isBody=_targetElement.is("body"),_documentMixed=_documentElementNative!==document,_domExists=_isTextarea?_targetElement.hasClass(_classNameTextareaElement)&&_targetElement.parent().hasClass(_classNameContentElement):_targetElement.hasClass(_classNameHostElement)&&_targetElement.children(_strDot+_classNamePaddingElement)[LEXICON.l],_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y&&!_currentPreparedOptions.nativeScrollbarsOverlaid.initialize)?(dispatchCallback("onInitializationWithdrawn"),_domExists&&(setupStructureDOM(!0),setupScrollbarsDOM(!0),setupScrollbarCornerDOM(!0)),_destroyed=!0,_sleeping=!0,_base):(_isBody&&((initBodyScroll={}).l=MATH.max(_targetElement[_strScrollLeft](),_htmlElement[_strScrollLeft](),_windowElement[_strScrollLeft]()),initBodyScroll.t=MATH.max(_targetElement[_strScrollTop](),_htmlElement[_strScrollTop](),_windowElement[_strScrollTop]()),bodyMouseTouchDownListener=function(){_viewportElement.removeAttr(LEXICON.ti),setupResponsiveEventListener(_viewportElement,_strMouseTouchDownEvent,bodyMouseTouchDownListener,!0,!0)}),setupStructureDOM(),setupScrollbarsDOM(),setupScrollbarCornerDOM(),function t(){var n,e,r=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],i=[],o="focus";function a(t){textareaUpdate(),_base.update(_strAuto),t&&_autoUpdateRecommended&&clearInterval(n)}_isTextarea?(_msieVersion>9||!_autoUpdateRecommended?addDestroyEventListener(_targetElement,"input",a):addDestroyEventListener(_targetElement,[_strKeyDownEvent,_strKeyUpEvent],[function t(e){var o=e.keyCode;0>inArray(o,r)&&(i[LEXICON.l]||(a(),n=setInterval(a,1e3/60)),0>inArray(o,i)&&i.push(o))},function t(n){var e=n.keyCode,o=inArray(e,i);0>inArray(e,r)&&(o>-1&&i.splice(o,1),i[LEXICON.l]||a(!0))}]),addDestroyEventListener(_targetElement,[_strScroll,"drop",o,o+"out"],[function t(n){return _targetElement[_strScrollLeft](_rtlScrollBehavior.i&&_normalizeRTLCache?9999999:0),_targetElement[_strScrollTop](0),COMPATIBILITY.prvD(n),COMPATIBILITY.stpP(n),!1},function t(n){setTimeout(function(){_destroyed||a()},50)},function t(){_textareaHasFocus=!0,addClass(_hostElement,o)},function t(){_textareaHasFocus=!1,i=[],removeClass(_hostElement,o),a(!0)}])):addDestroyEventListener(_contentElement,_strTransitionEndEvent,function t(n){!0!==_autoUpdateCache&&function t(n){if(!_initialized)return!0;var e="flex-grow",r="flex-shrink",i="flex-basis",o="s"===_overflowBehaviorCache.x||"v-s"===_overflowBehaviorCache.x,a="s"===_overflowBehaviorCache.y||"v-s"===_overflowBehaviorCache.y,s=!1,c=function(t,n){for(var e=0;e<t[LEXICON.l];e++)if(t[e]===n)return!0;return!1};return!a||(s=c([_strHeight,_strMinMinus+_strHeight,_strMaxMinus+_strHeight,_strMarginMinus+_strTop,_strMarginMinus+_strBottom,_strTop,_strBottom,"line-height",e,r,i],n))||_isBorderBox||(s=c([_strPaddingMinus+_strTop,_strPaddingMinus+_strBottom,_strBorderMinus+_strTop+_strWidth,_strBorderMinus+_strBottom+_strWidth],n)),!o||s||(s=c([_strWidth,_strMinMinus+_strWidth,_strMaxMinus+_strWidth,_strMarginMinus+_strLeft,_strMarginMinus+_strRight,_strLeft,_strRight,"font-weight","word-spacing",e,r,i],n))||_isBorderBox||(s=c([_strPaddingMinus+_strLeft,_strPaddingMinus+_strRight,_strBorderMinus+_strLeft+_strWidth,_strBorderMinus+_strRight+_strWidth],n)),s}((n=n.originalEvent||n).propertyName)&&_base.update(_strAuto)}),addDestroyEventListener(_viewportElement,_strScroll,function t(n){_sleeping||(e!==undefined?clearTimeout(e):((_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!0),nativeOverlayScrollbarsAreActive()||addClass(_hostElement,_classNameHostScrolling),dispatchCallback("onScrollStart",n)),_scrollbarsHandlesDefineScrollPos||(refreshScrollbarHandleOffset(!0),refreshScrollbarHandleOffset(!1)),dispatchCallback("onScroll",n),e=setTimeout(function(){_destroyed||(clearTimeout(e),e=undefined,(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!1),nativeOverlayScrollbarsAreActive()||removeClass(_hostElement,_classNameHostScrolling),dispatchCallback("onScrollStop",n))},175))},!0)}(),setupScrollbarEvents(!0),setupScrollbarEvents(!1),function t(){var n,e=_windowElementNative.top!==_windowElementNative,r={},i={},o={};function a(t){if(c(t)){var n=u(t),e={};(_resizeHorizontal||_resizeBoth)&&(e[_strWidth]=i.w+(n.x-r.x)*o.x),(_resizeVertical||_resizeBoth)&&(e[_strHeight]=i.h+(n.y-r.y)*o.y),_hostElement.css(e),COMPATIBILITY.stpP(t)}else s(t)}function s(t){setupResponsiveEventListener(_documentElement,[_strSelectStartEvent,_strMouseTouchMoveEvent,_strMouseTouchUpEvent],[documentOnSelectStart,a,s],!0),removeClass(_bodyElement,_classNameDragging),_scrollbarCornerElement.releaseCapture&&_scrollbarCornerElement.releaseCapture(),t!==undefined&&(n&&connectMutationObservers(),_base.update(_strAuto)),n=!1}function c(t){var n=undefined!==(t.originalEvent||t).touches;return!_sleeping&&!_destroyed&&(1===COMPATIBILITY.mBtn(t)||n)}function u(t){return _msieVersion&&e?{x:t.screenX,y:t.screenY}:COMPATIBILITY.page(t)}addDestroyEventListener(_scrollbarCornerElement,_strMouseTouchDownEvent,function(t){c(t)&&!_resizeNone&&(_mutationObserversConnected&&(n=!0,disconnectMutationObservers()),r=u(t),i.w=_hostElementNative[LEXICON.oW]-(_isBorderBox?0:_paddingX),i.h=_hostElementNative[LEXICON.oH]-(_isBorderBox?0:_paddingY),o=getHostElementInvertedScale(),setupResponsiveEventListener(_documentElement,[_strSelectStartEvent,_strMouseTouchMoveEvent,_strMouseTouchUpEvent],[documentOnSelectStart,a,s]),addClass(_bodyElement,_classNameDragging),_scrollbarCornerElement.setCapture&&_scrollbarCornerElement.setCapture(),COMPATIBILITY.prvD(t),COMPATIBILITY.stpP(t))})}(),function t(){if(_supportMutationObserver){var n,e,r,i,o,a,s,c,u,l,f=COMPATIBILITY.mO(),h=COMPATIBILITY.now();_mutationObserverHostCallback=function(t){var s,c=!1,u=!1,l=[];return _initialized&&!_sleeping&&(each(t,function(){s=this,n=s.target,r=(e=s.attributeName)===LEXICON.c,i=s.oldValue,o=n.className,_domExists&&r&&!u&&i.indexOf(_classNameHostElementForeign)>-1&&0>o.indexOf(_classNameHostElementForeign)&&(a=createHostClassNameRegExp(!0),_hostElementNative.className=o.split(_strSpace).concat(i.split(_strSpace).filter(function(t){return t.match(a)})).join(_strSpace),c=u=!0),c||(c=r?hostClassNamesChanged(i,o):e!==LEXICON.s||i!==n[LEXICON.s].cssText),l.push(e)}),updateViewportAttrsFromTarget(l),c&&_base.update(u||_strAuto)),c},_mutationObserverContentCallback=function(t){var n,e=!1;return _initialized&&!_sleeping&&(each(t,function(){return n=this,!(e=function t(n){var e=n.attributeName,r=n.target,i=n.type,o="closest";if(r===_contentElementNative)return null===e;if("attributes"===i&&(e===LEXICON.c||e===LEXICON.s)&&!_isTextarea){if(e===LEXICON.c&&FRAMEWORK(r).hasClass(_classNameHostElement))return hostClassNamesChanged(n.oldValue,r.className);if(typeof r[o]!=TYPES.f)return!0;if(null!==r[o](_strDot+_classNameResizeObserverElement)||null!==r[o](_strDot+_classNameScrollbar)||null!==r[o](_strDot+_classNameScrollbarCorner))return!1}return!0}(n))}),e&&(c=COMPATIBILITY.now(),u=_heightAutoCache||_widthAutoCache,l=function(){_destroyed||(h=c,_isTextarea&&textareaUpdate(),u?update():_base.update(_strAuto))},clearTimeout(s),c-h>11||!u?l():s=setTimeout(l,11))),e},_mutationObserverHost=new f(_mutationObserverHostCallback),_mutationObserverContent=new f(_mutationObserverContentCallback)}}(),setupResizeObserver(_sizeObserverElement,hostOnResized),_isBody&&(_viewportElement[_strScrollLeft](initBodyScroll.l)[_strScrollTop](initBodyScroll.t),document.activeElement==targetElement&&_viewportElementNative.focus&&(_viewportElement.attr(LEXICON.ti,"-1"),_viewportElementNative.focus(),setupResponsiveEventListener(_viewportElement,_strMouseTouchDownEvent,bodyMouseTouchDownListener,!1,!0))),_base.update(_strAuto),_initialized=!0,dispatchCallback("onInitialized"),each(_callbacksInitQeueue,function(t,n){dispatchCallback(n.n,n.a)}),_callbacksInitQeueue=[],type(extensions)==TYPES.s&&(extensions=[extensions]),COMPATIBILITY.isA(extensions)?each(extensions,function(t,n){_base.addExt(n)}):FRAMEWORK.isPlainObject(extensions)&&each(extensions,function(t,n){_base.addExt(t,n)}),setTimeout(function(){_supportTransition&&!_destroyed&&addClass(_hostElement,_classNameHostTransition)},333),_base)))&&INSTANCES(pluginTargetElement,_base),_base}function setupResponsiveEventListener(t,n,e,r,i){var o=COMPATIBILITY.isA(n)&&COMPATIBILITY.isA(e),a=r?"removeEventListener":"addEventListener",s=r?"off":"on",c=!o&&n.split(_strSpace),u=0,l=FRAMEWORK.isPlainObject(i),f=_supportPassiveEvents&&(l?i._passive:i)||!1,h=l&&!!i._capture,d=_supportPassiveEvents?{passive:f,capture:h}:h;if(o)for(;u<n[LEXICON.l];u++)setupResponsiveEventListener(t,n[u],e[u],r,i);else for(;u<c[LEXICON.l];u++)_supportPassiveEvents?t[0][a](c[u],e,d):t[s](c[u],e)}function addDestroyEventListener(t,n,e,r){setupResponsiveEventListener(t,n,e,!1,r),_destroyEvents.push(COMPATIBILITY.bind(setupResponsiveEventListener,0,t,n,e,!0,r))}function setupResizeObserver(t,n){if(t){var e=COMPATIBILITY.rO(),r="animationstart mozAnimationStart webkitAnimationStart MSAnimationStart",i="childNodes",o=function(){t[_strScrollTop](3333333)[_strScrollLeft](_isRTL?_rtlScrollBehavior.n?-3333333:_rtlScrollBehavior.i?0:3333333:3333333),n()};if(n){if(_supportResizeObserver){var a=t.addClass("observed").append(generateDiv(_classNameResizeObserverElement)).contents()[0];(a[_strResizeObserverProperty]=new e(o)).observe(a)}else if(_msieVersion>9||!_autoUpdateRecommended){t.prepend(generateDiv(_classNameResizeObserverElement,generateDiv({c:_classNameResizeObserverItemElement,dir:"ltr"},generateDiv(_classNameResizeObserverItemElement,generateDiv(_classNameResizeObserverItemFinalElement))+generateDiv(_classNameResizeObserverItemElement,generateDiv({c:_classNameResizeObserverItemFinalElement,style:"width: 200%; height: 200%"})))));var s,c,u,l,f=t[0][i][0][i][0],h=FRAMEWORK(f[i][1]),d=FRAMEWORK(f[i][0]),$=FRAMEWORK(d[0][i][0]),p=f[LEXICON.oW],v=f[LEXICON.oH],_=globals.nativeScrollbarSize,y=function(){d[_strScrollLeft](3333333)[_strScrollTop](3333333),h[_strScrollLeft](3333333)[_strScrollTop](3333333)},m=function(){c=0,s&&(p=u,v=l,o())},b=function(t){return u=f[LEXICON.oW],l=f[LEXICON.oH],s=u!=p||l!=v,t&&s&&!c?(COMPATIBILITY.cAF()(c),c=COMPATIBILITY.rAF()(m)):t||m(),y(),t&&(COMPATIBILITY.prvD(t),COMPATIBILITY.stpP(t)),!1},x={},g={};setTopRightBottomLeft(g,_strEmpty,[-((_.y+1)*2),-(2*_.x),-(2*_.y),-((_.x+1)*2)]),FRAMEWORK(f).css(g),d.on(_strScroll,b),h.on(_strScroll,b),t.on(r,function(){b(!1)}),x[_strWidth]=3333333,x[_strHeight]=3333333,$.css(x),y()}else{var w=_documentElementNative.attachEvent,O=_msieVersion!==undefined;if(w)t.prepend(generateDiv(_classNameResizeObserverElement)),findFirst(t,_strDot+_classNameResizeObserverElement)[0].attachEvent("onresize",o);else{var S=_documentElementNative.createElement(TYPES.o);S.setAttribute(LEXICON.ti,"-1"),S.setAttribute(LEXICON.c,_classNameResizeObserverElement),S.onload=function(){var t=this.contentDocument.defaultView;t.addEventListener("resize",o),t.document.documentElement.style.display="none"},S.type="text/html",O&&t.prepend(S),S.data="about:blank",O||t.prepend(S),t.on(r,o)}}if(t[0]===_sizeObserverElementNative){var C=function(){var t=_hostElement.css("direction"),n={},e=0,r=!1;return t!==_cssDirectionDetectedCache&&("ltr"===t?(n[_strLeft]=0,n[_strRight]=_strAuto,e=3333333):(n[_strLeft]=_strAuto,n[_strRight]=0,e=_rtlScrollBehavior.n?-3333333:_rtlScrollBehavior.i?0:3333333),_sizeObserverElement.children().eq(0).css(n),_sizeObserverElement[_strScrollLeft](e)[_strScrollTop](3333333),_cssDirectionDetectedCache=t,r=!0),r};C(),addDestroyEventListener(t,_strScroll,function(t){return C()&&update(),COMPATIBILITY.prvD(t),COMPATIBILITY.stpP(t),!1})}}else if(_supportResizeObserver){var a=t.contents()[0],A=a[_strResizeObserverProperty];A&&(A.disconnect(),delete a[_strResizeObserverProperty])}else remove(t.children(_strDot+_classNameResizeObserverElement).eq(0))}}function connectMutationObservers(){_supportMutationObserver&&!_mutationObserversConnected&&(_mutationObserverHost.observe(_hostElementNative,{attributes:!0,attributeOldValue:!0,attributeFilter:_mutationObserverAttrsHost}),_mutationObserverContent.observe(_isTextarea?_targetElementNative:_contentElementNative,{attributes:!0,attributeOldValue:!0,subtree:!_isTextarea,childList:!_isTextarea,characterData:!_isTextarea,attributeFilter:_isTextarea?_mutationObserverAttrsTextarea:_mutationObserverAttrsHost}),_mutationObserversConnected=!0)}function disconnectMutationObservers(){_supportMutationObserver&&_mutationObserversConnected&&(_mutationObserverHost.disconnect(),_mutationObserverContent.disconnect(),_mutationObserversConnected=!1)}function hostOnResized(){if(!_sleeping){var t,n={w:_sizeObserverElementNative[LEXICON.sW],h:_sizeObserverElementNative[LEXICON.sH]};t=checkCache(n,_hostElementSizeChangeDetectedCache),_hostElementSizeChangeDetectedCache=n,t&&update({_hostSizeChanged:!0})}}function hostOnMouseEnter(){_scrollbarsAutoHideLeave&&refreshScrollbarsAutoHide(!0)}function hostOnMouseLeave(){_scrollbarsAutoHideLeave&&!_bodyElement.hasClass(_classNameDragging)&&refreshScrollbarsAutoHide(!1)}function hostOnMouseMove(){_scrollbarsAutoHideMove&&(refreshScrollbarsAutoHide(!0),clearTimeout(_scrollbarsAutoHideMoveTimeoutId),_scrollbarsAutoHideMoveTimeoutId=setTimeout(function(){_scrollbarsAutoHideMove&&!_destroyed&&refreshScrollbarsAutoHide(!1)},100))}function documentOnSelectStart(t){return COMPATIBILITY.prvD(t),!1}function updateOnLoadCallback(t){var n=FRAMEWORK(t.target);eachUpdateOnLoad(function(t,e){n.is(e)&&update({_contentSizeChanged:!0})})}function setupHostMouseTouchEvents(t){t||setupHostMouseTouchEvents(!0),setupResponsiveEventListener(_hostElement,_strMouseTouchMoveEvent.split(_strSpace)[0],hostOnMouseMove,!_scrollbarsAutoHideMove||t,!0),setupResponsiveEventListener(_hostElement,[_strMouseEnter,_strMouseLeave],[hostOnMouseEnter,hostOnMouseLeave],!_scrollbarsAutoHideLeave||t,!0),_initialized||t||_hostElement.one("mouseover",hostOnMouseEnter)}function bodyMinSizeChanged(){var t={};return _isBody&&_contentArrangeElement&&(t.w=parseToZeroOrNumber(_contentArrangeElement.css(_strMinMinus+_strWidth)),t.h=parseToZeroOrNumber(_contentArrangeElement.css(_strMinMinus+_strHeight)),t.c=checkCache(t,_bodyMinSizeCache),t.f=!0),_bodyMinSizeCache=t,!!t.c}function hostClassNamesChanged(t,n){var e,r,i,o=typeof n==TYPES.s?n.split(_strSpace):[],a=function t(n,e){var r,i,o=[],a=[];for(r=0;r<n.length;r++)o[n[r]]=!0;for(r=0;r<e.length;r++)o[e[r]]?delete o[e[r]]:o[e[r]]=!0;for(i in o)a.push(i);return a}(typeof t==TYPES.s?t.split(_strSpace):[],o),s=inArray(_classNameThemeNone,a);if(s>-1&&a.splice(s,1),a[LEXICON.l]>0){for(e=0,r=createHostClassNameRegExp(!0,!0);e<a.length;e++)if(!a[e].match(r))return!0}return!1}function updateViewportAttrsFromTarget(t){each(t=t||_viewportAttrsFromTarget,function(t,n){if(COMPATIBILITY.inA(n,_viewportAttrsFromTarget)>-1){var e=_targetElement.attr(n);type(e)==TYPES.s?_viewportElement.attr(n,e):_viewportElement.removeAttr(n)}})}function textareaUpdate(){if(!_sleeping){var t,n,e,r,i=!_textareaAutoWrappingCache,o=_viewportSize.w,a=_viewportSize.h,s={},c=_widthAutoCache||i;return s[_strMinMinus+_strWidth]=_strEmpty,s[_strMinMinus+_strHeight]=_strEmpty,s[_strWidth]=_strAuto,_targetElement.css(s),t=_targetElementNative[LEXICON.oW],n=c?MATH.max(t,_targetElementNative[LEXICON.sW]-1):1,s[_strWidth]=_widthAutoCache?_strAuto:_strHundredPercent,s[_strMinMinus+_strWidth]=_strHundredPercent,s[_strHeight]=_strAuto,_targetElement.css(s),e=_targetElementNative[LEXICON.oH],r=MATH.max(e,_targetElementNative[LEXICON.sH]-1),s[_strWidth]=n,s[_strHeight]=r,_textareaCoverElement.css(s),s[_strMinMinus+_strWidth]=o,s[_strMinMinus+_strHeight]=a,_targetElement.css(s),{_originalWidth:t,_originalHeight:e,_dynamicWidth:n,_dynamicHeight:r}}}function update(t){clearTimeout(_swallowedUpdateTimeout),t=t||{},_swallowedUpdateHints._hostSizeChanged|=t._hostSizeChanged,_swallowedUpdateHints._contentSizeChanged|=t._contentSizeChanged,_swallowedUpdateHints._force|=t._force;var n=COMPATIBILITY.now(),e=!!_swallowedUpdateHints._hostSizeChanged,r=!!_swallowedUpdateHints._contentSizeChanged,i=!!_swallowedUpdateHints._force,o=t._changedOptions,a=_swallowUpdateLag>0&&_initialized&&!_destroyed&&!i&&!o&&n-_lastUpdateTime<_swallowUpdateLag&&!_heightAutoCache&&!_widthAutoCache;if(a&&(_swallowedUpdateTimeout=setTimeout(update,_swallowUpdateLag)),!(_destroyed||a||_sleeping&&!o||_initialized&&!i&&(t7=_hostElement.is(":hidden")))&&"inline"!==_hostElement.css("display")){_lastUpdateTime=n,_swallowedUpdateHints={},_nativeScrollbarStyling&&!(_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y)?(_nativeScrollbarSize.x=0,_nativeScrollbarSize.y=0):_nativeScrollbarSize=extendDeep({},globals.nativeScrollbarSize),_nativeScrollbarMinSize={x:(_nativeScrollbarSize.x+(_nativeScrollbarIsOverlaid.x?0:3))*3,y:(_nativeScrollbarSize.y+(_nativeScrollbarIsOverlaid.y?0:3))*3},o=o||{};var s=function(){return checkCache.apply(this,[].slice.call(arguments).concat([i]))},c={x:_viewportElement[_strScrollLeft](),y:_viewportElement[_strScrollTop]()},u=_currentPreparedOptions.scrollbars,l=_currentPreparedOptions.textarea,f=u.visibility,h=s(f,_scrollbarsVisibilityCache),d=u.autoHide,$=s(d,_scrollbarsAutoHideCache),p=u.clickScrolling,v=s(p,_scrollbarsClickScrollingCache),_=u.dragScrolling,y=s(_,_scrollbarsDragScrollingCache),m=_currentPreparedOptions.className,b=s(m,_classNameCache),x=_currentPreparedOptions.resize,g=s(x,_resizeCache)&&!_isBody,w=_currentPreparedOptions.paddingAbsolute,O=s(w,_paddingAbsoluteCache),S=_currentPreparedOptions.clipAlways,C=s(S,_clipAlwaysCache),A=_currentPreparedOptions.sizeAutoCapable&&!_isBody,z=s(A,_sizeAutoCapableCache),H=_currentPreparedOptions.nativeScrollbarsOverlaid.showNativeScrollbars,P=s(H,_ignoreOverlayScrollbarHidingCache),E=_currentPreparedOptions.autoUpdate,L=s(E,_autoUpdateCache),k=_currentPreparedOptions.overflowBehavior,W=s(k,_overflowBehaviorCache,i),I=l.dynWidth,T=s(_textareaDynWidthCache,I),j=l.dynHeight,R=s(_textareaDynHeightCache,j);if(_scrollbarsAutoHideNever="n"===d,_scrollbarsAutoHideScroll="s"===d,_scrollbarsAutoHideMove="m"===d,_scrollbarsAutoHideLeave="l"===d,_scrollbarsAutoHideDelay=u.autoHideDelay,_oldClassName=_classNameCache,_resizeNone="n"===x,_resizeBoth="b"===x,_resizeHorizontal="h"===x,_resizeVertical="v"===x,_normalizeRTLCache=_currentPreparedOptions.normalizeRTL,H=H&&_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y,_scrollbarsVisibilityCache=f,_scrollbarsAutoHideCache=d,_scrollbarsClickScrollingCache=p,_scrollbarsDragScrollingCache=_,_classNameCache=m,_resizeCache=x,_paddingAbsoluteCache=w,_clipAlwaysCache=S,_sizeAutoCapableCache=A,_ignoreOverlayScrollbarHidingCache=H,_autoUpdateCache=E,_overflowBehaviorCache=extendDeep({},k),_textareaDynWidthCache=I,_textareaDynHeightCache=j,_hasOverflowCache=_hasOverflowCache||{x:!1,y:!1},b&&(removeClass(_hostElement,_oldClassName+_strSpace+_classNameThemeNone),addClass(_hostElement,m!==undefined&&null!==m&&m.length>0?m:_classNameThemeNone)),L&&(!0===E||null===E&&_autoUpdateRecommended?(disconnectMutationObservers(),autoUpdateLoop.add(_base)):(autoUpdateLoop.remove(_base),connectMutationObservers())),z){if(A){if(_contentGlueElement?_contentGlueElement.show():(_contentGlueElement=FRAMEWORK(generateDiv(_classNameContentGlueElement)),_paddingElement.before(_contentGlueElement)),_sizeAutoObserverAdded)_sizeAutoObserverElement.show();else{_sizeAutoObserverElementNative=(_sizeAutoObserverElement=FRAMEWORK(generateDiv(_classNameSizeAutoObserverElement)))[0],_contentGlueElement.before(_sizeAutoObserverElement);var N={w:-1,h:-1};setupResizeObserver(_sizeAutoObserverElement,function(){var t={w:_sizeAutoObserverElementNative[LEXICON.oW],h:_sizeAutoObserverElementNative[LEXICON.oH]};checkCache(t,N)&&(_initialized&&_heightAutoCache&&t.h>0||_widthAutoCache&&t.w>0?update():(!_initialized||_heightAutoCache||0!==t.h)&&(_widthAutoCache||0!==t.w)||update()),N=t}),_sizeAutoObserverAdded=!0,null!==_cssCalc&&_sizeAutoObserverElement.css(_strHeight,_cssCalc+"(100% + 1px)")}}else _sizeAutoObserverAdded&&_sizeAutoObserverElement.hide(),_contentGlueElement&&_contentGlueElement.hide()}i&&(_sizeObserverElement.find("*").trigger(_strScroll),_sizeAutoObserverAdded&&_sizeAutoObserverElement.find("*").trigger(_strScroll)),t7=t7===undefined?_hostElement.is(":hidden"):t7;var D=!!_isTextarea&&"off"!==_targetElement.attr("wrap"),q=s(D,_textareaAutoWrappingCache),B=_hostElement.css("direction"),F=s(B,_cssDirectionCache),M=_hostElement.css("box-sizing"),X=s(M,_cssBoxSizingCache),U=getTopRightBottomLeftHost(_strPaddingMinus);try{tM=_sizeAutoObserverAdded?_sizeAutoObserverElementNative[LEXICON.bCR]():null}catch(V){return}_isRTL="rtl"===B,_isBorderBox="border-box"===M;var Y=_isRTL?_strLeft:_strRight,Q=_isRTL?_strRight:_strLeft,K=!1,G=!!_sizeAutoObserverAdded&&"none"!==_hostElement.css(_strFloat)&&0===MATH.round(tM.right-tM.left)&&(!!w||_hostElementNative[LEXICON.cW]-_paddingX>0);if(A&&!G){var J=_hostElementNative[LEXICON.oW],Z=_contentGlueElement.css(_strWidth);_contentGlueElement.css(_strWidth,_strAuto);var tt=_hostElementNative[LEXICON.oW];_contentGlueElement.css(_strWidth,Z),(K=J!==tt)||(_contentGlueElement.css(_strWidth,J+1),tt=_hostElementNative[LEXICON.oW],_contentGlueElement.css(_strWidth,Z),K=J!==tt)}var tn=(G||K)&&A&&!t7,te=s(tn,_widthAutoCache),tr=!tn&&_widthAutoCache,ti=!!_sizeAutoObserverAdded&&!!A&&!t7&&0===MATH.round(tM.bottom-tM.top),to=s(ti,_heightAutoCache),ta=!ti&&_heightAutoCache,ts=tn&&_isBorderBox||!_isBorderBox,tc=ti&&_isBorderBox||!_isBorderBox,tu=getTopRightBottomLeftHost(_strBorderMinus,"-"+_strWidth,!ts,!tc),tl=getTopRightBottomLeftHost(_strMarginMinus),tf={},th={},td=function(){return{w:_hostElementNative[LEXICON.cW],h:_hostElementNative[LEXICON.cH]}},t$=function(){return{w:_paddingElementNative[LEXICON.oW]+MATH.max(0,_contentElementNative[LEXICON.cW]-_contentElementNative[LEXICON.sW]),h:_paddingElementNative[LEXICON.oH]+MATH.max(0,_contentElementNative[LEXICON.cH]-_contentElementNative[LEXICON.sH])}},tp=_paddingX=U.l+U.r,tv=_paddingY=U.t+U.b;if(tp*=w?1:0,tv*=w?1:0,U.c=s(U,_cssPaddingCache),_borderX=tu.l+tu.r,_borderY=tu.t+tu.b,tu.c=s(tu,_cssBorderCache),_marginX=tl.l+tl.r,_marginY=tl.t+tl.b,tl.c=s(tl,_cssMarginCache),_textareaAutoWrappingCache=D,_cssDirectionCache=B,_cssBoxSizingCache=M,_widthAutoCache=tn,_heightAutoCache=ti,_cssPaddingCache=U,_cssBorderCache=tu,_cssMarginCache=tl,F&&_sizeAutoObserverAdded&&_sizeAutoObserverElement.css(_strFloat,Q),U.c||F||O||te||to||X||z){var t_={},t8={},ty=[U.t,U.r,U.b,U.l];setTopRightBottomLeft(th,_strMarginMinus,[-U.t,-U.r,-U.b,-U.l]),w?(setTopRightBottomLeft(t_,_strEmpty,ty),setTopRightBottomLeft(_isTextarea?t8:tf,_strPaddingMinus)):(setTopRightBottomLeft(t_,_strEmpty),setTopRightBottomLeft(_isTextarea?t8:tf,_strPaddingMinus,ty)),_paddingElement.css(t_),_targetElement.css(t8)}_viewportSize=t$();var tm=!!_isTextarea&&textareaUpdate(),tb=_isTextarea&&s(tm,_textareaSizeCache),tx=_isTextarea&&tm?{w:I?tm._dynamicWidth:tm._originalWidth,h:j?tm._dynamicHeight:tm._originalHeight}:{};if(_textareaSizeCache=tm,ti&&(to||O||X||U.c||tu.c)?tf[_strHeight]=_strAuto:(to||O)&&(tf[_strHeight]=_strHundredPercent),tn&&(te||O||X||U.c||tu.c||F)?(tf[_strWidth]=_strAuto,th[_strMaxMinus+_strWidth]=_strHundredPercent):(te||O)&&(tf[_strWidth]=_strHundredPercent,tf[_strFloat]=_strEmpty,th[_strMaxMinus+_strWidth]=_strEmpty),tn?(th[_strWidth]=_strAuto,tf[_strWidth]=VENDORS._cssPropertyValue(_strWidth,"max-content intrinsic")||_strAuto,tf[_strFloat]=Q):th[_strWidth]=_strEmpty,ti?th[_strHeight]=tx.h||_contentElementNative[LEXICON.cH]:th[_strHeight]=_strEmpty,A&&_contentGlueElement.css(th),_contentElement.css(tf),tf={},th={},e||r||tb||F||X||O||te||tn||to||ti||P||W||C||g||h||$||y||v||T||R||q){var tg="overflow",tw=tg+"-x",t1=tg+"-y";if(!_nativeScrollbarStyling){var tO={},tS=_hasOverflowCache.y&&_hideOverflowCache.ys&&!H?_nativeScrollbarIsOverlaid.y?_viewportElement.css(Y):-_nativeScrollbarSize.y:0,t0=_hasOverflowCache.x&&_hideOverflowCache.xs&&!H?_nativeScrollbarIsOverlaid.x?_viewportElement.css(_strBottom):-_nativeScrollbarSize.x:0;setTopRightBottomLeft(tO,_strEmpty),_viewportElement.css(tO)}var tC=getContentMeasureElement(),tA={w:tx.w||tC[LEXICON.cW],h:tx.h||tC[LEXICON.cH]},tz={w:tC[LEXICON.sW],h:tC[LEXICON.sH]};_nativeScrollbarStyling||(tO[_strBottom]=ta?_strEmpty:t0,tO[Y]=tr?_strEmpty:tS,_viewportElement.css(tO)),_viewportSize=t$();var tH=td(),tP={w:tH.w-_marginX-_borderX-(_isBorderBox?0:_paddingX),h:tH.h-_marginY-_borderY-(_isBorderBox?0:_paddingY)},tE={w:MATH.max((tn?tA.w:tz.w)+tp,tP.w),h:MATH.max((ti?tA.h:tz.h)+tv,tP.h)};if(tE.c=s(tE,_contentGlueSizeCache),_contentGlueSizeCache=tE,A){(tE.c||ti||tn)&&(th[_strWidth]=tE.w,th[_strHeight]=tE.h,_isTextarea||(tA={w:tC[LEXICON.cW],h:tC[LEXICON.cH]}));var tL={},tk=function(t){var n=getScrollbarVars(t),e=n._w_h,r=n._width_height,i=t?tn:ti,o=t?_borderX:_borderY,a=t?_paddingX:_paddingY,s=t?_marginX:_marginY,c=_viewportSize[e]-o-s-(_isBorderBox?0:a);i&&(i||!tu.c)||(th[r]=tP[e]-1),!i||!(tA[e]<c)||t&&_isTextarea&&D||(_isTextarea&&(tL[r]=parseToZeroOrNumber(_textareaCoverElement.css(r))-1),th[r]-=1),tA[e]>0&&(th[r]=MATH.max(1,th[r]))};tk(!0),tk(!1),_isTextarea&&_textareaCoverElement.css(tL),_contentGlueElement.css(th)}tn&&(tf[_strWidth]=_strHundredPercent),!tn||_isBorderBox||_mutationObserversConnected||(tf[_strFloat]="none"),_contentElement.css(tf),tf={};var tW={w:tC[LEXICON.sW],h:tC[LEXICON.sH]};tW.c=r=s(tW,_contentScrollSizeCache),_contentScrollSizeCache=tW,_viewportSize=t$(),e=s(tH=td(),_hostSizeCache),_hostSizeCache=tH;var tI=_isTextarea&&(0===_viewportSize.w||0===_viewportSize.h),tT=_overflowAmountCache,t3={},tj={},tR={},tN={},tD={},tq={},tB={},t5=_paddingElementNative[LEXICON.bCR](),tF=function(t){var n=getScrollbarVars(t),e=getScrollbarVars(!t)._x_y,r=n._x_y,i=n._w_h,o=n._width_height,a=_strScroll+n._Left_Top+"Max",s=t5[o]?MATH.abs(t5[o]-_viewportSize[i]):0,c=tT&&tT[r]>0&&0===_viewportElementNative[a];t3[r]="v-s"===k[r],tj[r]="v-h"===k[r],tR[r]="s"===k[r],tN[r]=MATH.max(0,MATH.round((tW[i]-_viewportSize[i])*100)/100),tN[r]*=tI||c&&s>0&&s<1?0:1,tD[r]=tN[r]>0,tq[r]=t3[r]||tj[r]?tD[e]&&!t3[e]&&!tj[e]:tD[r],tq[r+"s"]=!!tq[r]&&(tR[r]||t3[r]),tB[r]=tD[r]&&tq[r+"s"]};if(tF(!0),tF(!1),tN.c=s(tN,_overflowAmountCache),_overflowAmountCache=tN,tD.c=s(tD,_hasOverflowCache),_hasOverflowCache=tD,tq.c=s(tq,_hideOverflowCache),_hideOverflowCache=tq,_nativeScrollbarIsOverlaid.x||_nativeScrollbarIsOverlaid.y){var t7,tM,tX,tU={},tV={},t2=i;(tD.x||tD.y)&&(tV.w=_nativeScrollbarIsOverlaid.y&&tD.y?tW.w+_overlayScrollbarDummySize.y:_strEmpty,tV.h=_nativeScrollbarIsOverlaid.x&&tD.x?tW.h+_overlayScrollbarDummySize.x:_strEmpty,t2=s(tV,_arrangeContentSizeCache),_arrangeContentSizeCache=tV),(tD.c||tq.c||tW.c||F||te||to||tn||ti||P)&&(tf[_strMarginMinus+Q]=tf[_strBorderMinus+Q]=_strEmpty,tX=function(t){var n=getScrollbarVars(t),e=getScrollbarVars(!t),r=n._x_y,i=t?_strBottom:Y,o=t?ti:tn;_nativeScrollbarIsOverlaid[r]&&tD[r]&&tq[r+"s"]?(tf[_strMarginMinus+i]=o?H?_strEmpty:_overlayScrollbarDummySize[r]:_strEmpty,tf[_strBorderMinus+i]=t&&o||H?_strEmpty:_overlayScrollbarDummySize[r]+"px solid transparent"):(tV[e._w_h]=tf[_strMarginMinus+i]=tf[_strBorderMinus+i]=_strEmpty,t2=!0)},_nativeScrollbarStyling?addRemoveClass(_viewportElement,_classNameViewportNativeScrollbarsInvisible,!H):(tX(!0),tX(!1))),H&&(tV.w=tV.h=_strEmpty,t2=!0),t2&&!_nativeScrollbarStyling&&(tU[_strWidth]=tq.y?tV.w:_strEmpty,tU[_strHeight]=tq.x?tV.h:_strEmpty,_contentArrangeElement||(_contentArrangeElement=FRAMEWORK(generateDiv(_classNameContentArrangeElement)),_viewportElement.prepend(_contentArrangeElement)),_contentArrangeElement.css(tU)),_contentElement.css(tf)}var tY={},t_={};if((e||tD.c||tq.c||tW.c||W||X||P||F||C||to)&&(tY[Q]=_strEmpty,(tQ=function(t){var n=getScrollbarVars(t),e=getScrollbarVars(!t),r=n._x_y,i=n._X_Y,o=t?_strBottom:Y,a=function(){tY[o]=_strEmpty,_contentBorderSize[e._w_h]=0};tD[r]&&tq[r+"s"]?(tY[tg+i]=_strScroll,H||_nativeScrollbarStyling?a():(tY[o]=-(_nativeScrollbarIsOverlaid[r]?_overlayScrollbarDummySize[r]:_nativeScrollbarSize[r]),_contentBorderSize[e._w_h]=_nativeScrollbarIsOverlaid[r]?_overlayScrollbarDummySize[e._x_y]:0)):(tY[tg+i]=_strEmpty,a())})(!0),tQ(!1),!_nativeScrollbarStyling&&(_viewportSize.h<_nativeScrollbarMinSize.x||_viewportSize.w<_nativeScrollbarMinSize.y)&&(tD.x&&tq.x&&!_nativeScrollbarIsOverlaid.x||tD.y&&tq.y&&!_nativeScrollbarIsOverlaid.y)?(tY[_strPaddingMinus+_strTop]=_nativeScrollbarMinSize.x,tY[_strMarginMinus+_strTop]=-_nativeScrollbarMinSize.x,tY[_strPaddingMinus+Q]=_nativeScrollbarMinSize.y,tY[_strMarginMinus+Q]=-_nativeScrollbarMinSize.y):tY[_strPaddingMinus+_strTop]=tY[_strMarginMinus+_strTop]=tY[_strPaddingMinus+Q]=tY[_strMarginMinus+Q]=_strEmpty,tY[_strPaddingMinus+Y]=tY[_strMarginMinus+Y]=_strEmpty,tD.x&&tq.x||tD.y&&tq.y||tI?_isTextarea&&tI&&(t_[tw]=t_[t1]="hidden"):(!S||tj.x||t3.x||tj.y||t3.y)&&(_isTextarea&&(t_[tw]=t_[t1]=_strEmpty),tY[tw]=tY[t1]="visible"),_paddingElement.css(t_),_viewportElement.css(tY),tY={},(tD.c||X||te||to)&&!(_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y))){var tQ,t4,t6=_contentElementNative[LEXICON.s];t6.webkitTransform="scale(1)",t6.display="run-in",t4=_contentElementNative[LEXICON.oH],t6.display=_strEmpty,t6.webkitTransform=_strEmpty}if(tf={},F||te||to){if(_isRTL&&tn){var t9=_contentElement.css(_strFloat),tK=MATH.round(_contentElement.css(_strFloat,_strEmpty).css(_strLeft,_strEmpty).position().left);_contentElement.css(_strFloat,t9),tK!==MATH.round(_contentElement.position().left)&&(tf[_strLeft]=tK)}else tf[_strLeft]=_strEmpty}if(_contentElement.css(tf),_isTextarea&&r){var tG=function t(){var n,e,r=_targetElementNative.selectionStart;if(r!==undefined){var i=_targetElement.val(),o=i[LEXICON.l],a=i.split("\n"),s=a[LEXICON.l],c=i.substr(0,r).split("\n"),u=0,l=0,f=c[LEXICON.l],h=c[c[LEXICON.l]-1][LEXICON.l];for(e=0;e<a[LEXICON.l];e++)(n=a[e][LEXICON.l])>l&&(u=e+1,l=n);return{_cursorRow:f,_cursorColumn:h,_rows:s,_columns:l,_widestRow:u,_cursorPosition:r,_cursorMax:o}}}();if(tG){var tJ,tZ=_textareaInfoCache===undefined||tG._rows!==_textareaInfoCache._rows,nt=tG._cursorRow,nn=tG._cursorColumn,ne=tG._widestRow,nr=tG._rows,ni=tG._columns,no=tG._cursorPosition>=tG._cursorMax&&_textareaHasFocus,na={x:D||nn!==ni||nt!==ne?-1:_overflowAmountCache.x,y:(D?no||tZ&&!!tT&&c.y===tT.y:(no||tZ)&&nt===nr)?_overflowAmountCache.y:-1};c.x=na.x>-1?_isRTL&&_normalizeRTLCache&&_rtlScrollBehavior.i?0:na.x:c.x,c.y=na.y>-1?na.y:c.y}_textareaInfoCache=tG}_isRTL&&_rtlScrollBehavior.i&&_nativeScrollbarIsOverlaid.y&&tD.x&&_normalizeRTLCache&&(c.x+=_contentBorderSize.w||0),tn&&_hostElement[_strScrollLeft](0),ti&&_hostElement[_strScrollTop](0),_viewportElement[_strScrollLeft](c.x)[_strScrollTop](c.y);var ns=function(t,n){n=n===undefined?t:n,refreshScrollbarAppearance(!0,t,tB.x),refreshScrollbarAppearance(!1,n,tB.y)};addRemoveClass(_hostElement,_classNameHostOverflow,tq.x||tq.y),addRemoveClass(_hostElement,_classNameHostOverflowX,tq.x),addRemoveClass(_hostElement,_classNameHostOverflowY,tq.y),F&&!_isBody&&addRemoveClass(_hostElement,_classNameHostRTL,_isRTL),_isBody&&addClass(_hostElement,_classNameHostResizeDisabled),g&&(addRemoveClass(_hostElement,_classNameHostResizeDisabled,_resizeNone),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResize,!_resizeNone),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResizeB,_resizeBoth),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResizeH,_resizeHorizontal),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResizeV,_resizeVertical)),(h||W||tq.c||tD.c||P)&&(H?P&&(removeClass(_hostElement,_classNameHostScrolling),H&&ns(!1)):"a"===f?ns(tB.x,tB.y):"v"===f?ns(!0):"h"===f&&ns(!1)),($||P)&&(setupHostMouseTouchEvents(!_scrollbarsAutoHideLeave&&!_scrollbarsAutoHideMove),refreshScrollbarsAutoHide(_scrollbarsAutoHideNever,!_scrollbarsAutoHideNever)),(e||tN.c||to||te||g||X||O||P||F)&&(refreshScrollbarHandleLength(!0),refreshScrollbarHandleOffset(!0),refreshScrollbarHandleLength(!1),refreshScrollbarHandleOffset(!1)),v&&refreshScrollbarsInteractive(!0,p),y&&refreshScrollbarsInteractive(!1,_),dispatchCallback("onDirectionChanged",{isRTL:_isRTL,dir:B},F),dispatchCallback("onHostSizeChanged",{width:_hostSizeCache.w,height:_hostSizeCache.h},e),dispatchCallback("onContentSizeChanged",{width:_contentScrollSizeCache.w,height:_contentScrollSizeCache.h},r),dispatchCallback("onOverflowChanged",{x:tD.x,y:tD.y,xScrollable:tq.xs,yScrollable:tq.ys,clipped:tq.x||tq.y},tD.c||tq.c),dispatchCallback("onOverflowAmountChanged",{x:tN.x,y:tN.y},tN.c)}_isBody&&_bodyMinSizeCache&&(_hasOverflowCache.c||_bodyMinSizeCache.c)&&(_bodyMinSizeCache.f||bodyMinSizeChanged(),_nativeScrollbarIsOverlaid.y&&_hasOverflowCache.x&&_contentElement.css(_strMinMinus+_strWidth,_bodyMinSizeCache.w+_overlayScrollbarDummySize.y),_nativeScrollbarIsOverlaid.x&&_hasOverflowCache.y&&_contentElement.css(_strMinMinus+_strHeight,_bodyMinSizeCache.h+_overlayScrollbarDummySize.x),_bodyMinSizeCache.c=!1),_initialized&&o.updateOnLoad&&updateElementsOnLoad(),dispatchCallback("onUpdated",{forced:i})}}function updateElementsOnLoad(){_isTextarea||eachUpdateOnLoad(function(t,n){_contentElement.find(n).each(function(t,n){0>COMPATIBILITY.inA(n,_updateOnLoadElms)&&(_updateOnLoadElms.push(n),FRAMEWORK(n).off(_updateOnLoadEventName,updateOnLoadCallback).on(_updateOnLoadEventName,updateOnLoadCallback))})})}function setOptions(t){var n=_pluginsOptions._validate(t,_pluginsOptions._template,!0,_currentOptions);return _currentOptions=extendDeep({},_currentOptions,n._default),_currentPreparedOptions=extendDeep({},_currentPreparedOptions,n._prepared),n._prepared}function setupStructureDOM(t){var n="parent",e=_isTextarea?_strSpace+_classNameTextInherit:_strEmpty,r=_currentPreparedOptions.textarea.inheritedAttrs,i={},o=function(){var n=t?_targetElement:_hostElement;each(i,function(t,e){type(e)==TYPES.s&&(t==LEXICON.c?n.addClass(e):n.attr(t,e))})},a=[_classNameHostElement,_classNameHostElementForeign,_classNameHostTextareaElement,_classNameHostResizeDisabled,_classNameHostRTL,_classNameHostScrollbarHorizontalHidden,_classNameHostScrollbarVerticalHidden,_classNameHostTransition,_classNameHostScrolling,_classNameHostOverflow,_classNameHostOverflowX,_classNameHostOverflowY,_classNameThemeNone,_classNameTextareaElement,_classNameTextInherit,_classNameCache].join(_strSpace),s={};_hostElement=_hostElement||(_isTextarea?_domExists?_targetElement[n]()[n]()[n]()[n]():FRAMEWORK(generateDiv(_classNameHostTextareaElement)):_targetElement),_contentElement=_contentElement||selectOrGenerateDivByClass(_classNameContentElement+e),_viewportElement=_viewportElement||selectOrGenerateDivByClass(_classNameViewportElement+e),_paddingElement=_paddingElement||selectOrGenerateDivByClass(_classNamePaddingElement+e),_sizeObserverElement=_sizeObserverElement||selectOrGenerateDivByClass("os-resize-observer-host"),_textareaCoverElement=_textareaCoverElement||(_isTextarea?selectOrGenerateDivByClass(_classNameTextareaCoverElement):undefined),_domExists&&addClass(_hostElement,_classNameHostElementForeign),t&&removeClass(_hostElement,a),r=type(r)==TYPES.s?r.split(_strSpace):r,COMPATIBILITY.isA(r)&&_isTextarea&&each(r,function(n,e){type(e)==TYPES.s&&(i[e]=t?_hostElement.attr(e):_targetElement.attr(e))}),t?(_domExists&&_initialized?(_sizeObserverElement.children().remove(),each([_paddingElement,_viewportElement,_contentElement,_textareaCoverElement],function(t,n){n&&removeClass(n.removeAttr(LEXICON.s),_classNamesDynamicDestroy)}),addClass(_hostElement,_isTextarea?_classNameHostTextareaElement:_classNameHostElement)):(remove(_sizeObserverElement),_contentElement.contents().unwrap().unwrap().unwrap(),_isTextarea&&(_targetElement.unwrap(),remove(_hostElement),remove(_textareaCoverElement),o())),_isTextarea&&_targetElement.removeAttr(LEXICON.s),_isBody&&removeClass(_htmlElement,_classNameHTMLElement)):(_isTextarea&&(_currentPreparedOptions.sizeAutoCapable||(s[_strWidth]=_targetElement.css(_strWidth),s[_strHeight]=_targetElement.css(_strHeight)),_domExists||_targetElement.addClass(_classNameTextInherit).wrap(_hostElement),_hostElement=_targetElement[n]().css(s)),!_domExists&&(addClass(_targetElement,_isTextarea?_classNameTextareaElement+_strSpace+_classNameTextInherit:_classNameHostElement),_hostElement.wrapInner(_contentElement).wrapInner(_viewportElement).wrapInner(_paddingElement).prepend(_sizeObserverElement),_contentElement=findFirst(_hostElement,_strDot+_classNameContentElement),_viewportElement=findFirst(_hostElement,_strDot+_classNameViewportElement),_paddingElement=findFirst(_hostElement,_strDot+_classNamePaddingElement),_isTextarea&&(_contentElement.prepend(_textareaCoverElement),o())),_nativeScrollbarStyling&&addClass(_viewportElement,_classNameViewportNativeScrollbarsInvisible),_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y&&addClass(_viewportElement,_classNameViewportNativeScrollbarsOverlaid),_isBody&&addClass(_htmlElement,_classNameHTMLElement),_sizeObserverElementNative=_sizeObserverElement[0],_hostElementNative=_hostElement[0],_paddingElementNative=_paddingElement[0],_viewportElementNative=_viewportElement[0],_contentElementNative=_contentElement[0],updateViewportAttrsFromTarget())}function setupScrollbarsDOM(t){var n,e,r=function(n){var e=selectOrGenerateDivByClass(_classNameScrollbar+_strSpace+(n?_classNameScrollbarHorizontal:_classNameScrollbarVertical),!0),r=selectOrGenerateDivByClass(_classNameScrollbarTrack,e),i=selectOrGenerateDivByClass(_classNameScrollbarHandle,e);return _domExists||t||(e.append(r),r.append(i)),{_scrollbar:e,_track:r,_handle:i}};function i(t){var n=getScrollbarVars(t),e=n._scrollbar,i=n._track,o=n._handle;_domExists&&_initialized?each([e,i,o],function(t,n){removeClass(n.removeAttr(LEXICON.s),_classNamesDynamicDestroy)}):remove(e||r(t)._scrollbar)}t?(i(!0),i()):(n=r(!0),e=r(),_scrollbarHorizontalElement=n._scrollbar,_scrollbarHorizontalTrackElement=n._track,_scrollbarHorizontalHandleElement=n._handle,_scrollbarVerticalElement=e._scrollbar,_scrollbarVerticalTrackElement=e._track,_scrollbarVerticalHandleElement=e._handle,_domExists||(_paddingElement.after(_scrollbarVerticalElement),_paddingElement.after(_scrollbarHorizontalElement)))}function setupScrollbarEvents(t){var n,e,r,i,o=getScrollbarVars(t),a=o._info,s=_windowElementNative.top!==_windowElementNative,c=o._x_y,u=o._X_Y,l=_strScroll+o._Left_Top,f="active",h="snapHandle",d="click",$=1,p=[16,17];function v(t){return _msieVersion&&s?t["screen"+u]:COMPATIBILITY.page(t)[c]}function _(t){return _currentPreparedOptions.scrollbars[t]}function y(){$=.5}function m(){$=1}function b(t){COMPATIBILITY.stpP(t)}function x(t){inArray(t.keyCode,p)>-1&&y()}function g(t){inArray(t.keyCode,p)>-1&&m()}function w(t){var n=undefined!==(t.originalEvent||t).touches;return!(_sleeping||_destroyed||nativeOverlayScrollbarsAreActive())&&!!_scrollbarsDragScrollingCache&&(!n||!!_("touchSupport"))&&(1===COMPATIBILITY.mBtn(t)||n)}function O(n){if(w(n)){var o,s=a._trackLength,c=a._handleLength,u=a._maxScroll,f=u*((v(n)-r)*i/(s-c));f=isFinite(f)?f:0,_isRTL&&t&&!_rtlScrollBehavior.i&&(f*=-1),_viewportElement[l](MATH.round(e+f)),_scrollbarsHandlesDefineScrollPos&&refreshScrollbarHandleOffset(t,e+f),_supportPassiveEvents||COMPATIBILITY.prvD(n)}else S(n)}function S(a){if(a=a||a.originalEvent,setupResponsiveEventListener(_documentElement,[_strMouseTouchMoveEvent,_strMouseTouchUpEvent,_strKeyDownEvent,_strKeyUpEvent,_strSelectStartEvent],[O,S,x,g,documentOnSelectStart],!0),COMPATIBILITY.rAF()(function(){setupResponsiveEventListener(_documentElement,d,b,!0,{_capture:!0})}),_scrollbarsHandlesDefineScrollPos&&refreshScrollbarHandleOffset(t,!0),_scrollbarsHandlesDefineScrollPos=!1,removeClass(_bodyElement,_classNameDragging),removeClass(o._handle,f),removeClass(o._track,f),removeClass(o._scrollbar,f),e=undefined,r=undefined,i=1,m(),n!==undefined&&(_base.scrollStop(),clearTimeout(n),n=undefined),a){var s=_hostElementNative[LEXICON.bCR]();a.clientX>=s.left&&a.clientX<=s.right&&a.clientY>=s.top&&a.clientY<=s.bottom||hostOnMouseLeave(),(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!1)}}function C(n){e=isNaN(e=_viewportElement[l]())?0:e,(_isRTL&&t&&!_rtlScrollBehavior.n||!_isRTL)&&(e=e<0?0:e),i=getHostElementInvertedScale()[c],r=v(n),_scrollbarsHandlesDefineScrollPos=!_(h),addClass(_bodyElement,_classNameDragging),addClass(o._handle,f),addClass(o._scrollbar,f),setupResponsiveEventListener(_documentElement,[_strMouseTouchMoveEvent,_strMouseTouchUpEvent,_strSelectStartEvent],[O,S,documentOnSelectStart]),COMPATIBILITY.rAF()(function(){setupResponsiveEventListener(_documentElement,d,b,!1,{_capture:!0})}),(_msieVersion||!_documentMixed)&&COMPATIBILITY.prvD(n),COMPATIBILITY.stpP(n)}addDestroyEventListener(o._handle,_strMouseTouchDownEvent,function t(n){w(n)&&C(n)}),addDestroyEventListener(o._track,[_strMouseTouchDownEvent,_strMouseEnter,_strMouseLeave],[function e(s){if(w(s)){var u,d,p=o._info._handleLength/Math.round(MATH.min(1,_viewportSize[o._w_h]/_contentScrollSizeCache[o._w_h])*o._info._trackLength),v=MATH.round(_viewportSize[o._w_h]*p),m=270*p,b=400*p,O=o._track.offset()[o._left_top],A=s.ctrlKey,z=s.shiftKey,H=z&&A,P=!0,E="linear",L=function(n){_scrollbarsHandlesDefineScrollPos&&refreshScrollbarHandleOffset(t,n)},k=function(){L(),C(s)},W=function(){if(!_destroyed){var e=(r-O)*i,o=a._handleOffset,s=a._trackLength,f=a._handleLength,h=a._maxScroll,p=a._currentScroll,_=m*$,y=P?MATH.max(b,_):_,x=h*((e-f/2)/(s-f)),g=_isRTL&&t&&(!_rtlScrollBehavior.i&&!_rtlScrollBehavior.n||_normalizeRTLCache),w={},S={easing:E,step:function(n){_scrollbarsHandlesDefineScrollPos&&(_viewportElement[l](n),refreshScrollbarHandleOffset(t,n))}};x=isFinite(x)?x:0,x=_isRTL&&t&&!_rtlScrollBehavior.i?h-x:x,z?(_viewportElement[l](x),H?(x=_viewportElement[l](),_viewportElement[l](p),x=g&&_rtlScrollBehavior.i?h-x:x,x=g&&_rtlScrollBehavior.n?-x:x,w[c]=x,_base.scroll(w,extendDeep(S,{duration:130,complete:k}))):k()):(u=P?g?o<e:o>e:u,(d=g?u?o+f>=e:o<=e:u?o<=e:o+f>=e)?(clearTimeout(n),_base.scrollStop(),n=undefined,L(!0)):(n=setTimeout(W,y),w[c]=(u?"-=":"+=")+v,_base.scroll(w,extendDeep(S,{duration:_}))),P=!1)}};A&&y(),i=getHostElementInvertedScale()[c],r=COMPATIBILITY.page(s)[c],_scrollbarsHandlesDefineScrollPos=!_(h),addClass(_bodyElement,_classNameDragging),addClass(o._track,f),addClass(o._scrollbar,f),setupResponsiveEventListener(_documentElement,[_strMouseTouchUpEvent,_strKeyDownEvent,_strKeyUpEvent,_strSelectStartEvent],[S,x,g,documentOnSelectStart]),W(),COMPATIBILITY.prvD(s),COMPATIBILITY.stpP(s)}},function t(n){_scrollbarsHandleHovered=!0,(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!0)},function t(n){_scrollbarsHandleHovered=!1,(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!1)}]),addDestroyEventListener(o._scrollbar,_strMouseTouchDownEvent,function t(n){COMPATIBILITY.stpP(n)}),_supportTransition&&addDestroyEventListener(o._scrollbar,_strTransitionEndEvent,function(n){n.target===o._scrollbar[0]&&(refreshScrollbarHandleLength(t),refreshScrollbarHandleOffset(t))})}function refreshScrollbarAppearance(t,n,e){var r=t?_scrollbarHorizontalElement:_scrollbarVerticalElement;addRemoveClass(_hostElement,t?_classNameHostScrollbarHorizontalHidden:_classNameHostScrollbarVerticalHidden,!n),addRemoveClass(r,_classNameScrollbarUnusable,!e)}function refreshScrollbarsAutoHide(t,n){if(clearTimeout(_scrollbarsAutoHideTimeoutId),t)removeClass(_scrollbarHorizontalElement,_classNameScrollbarAutoHidden),removeClass(_scrollbarVerticalElement,_classNameScrollbarAutoHidden);else{var e,r="active",i=function(){!_scrollbarsHandleHovered&&!_destroyed&&(!(e=_scrollbarHorizontalHandleElement.hasClass(r)||_scrollbarVerticalHandleElement.hasClass(r))&&(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove||_scrollbarsAutoHideLeave)&&addClass(_scrollbarHorizontalElement,_classNameScrollbarAutoHidden),!e&&(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove||_scrollbarsAutoHideLeave)&&addClass(_scrollbarVerticalElement,_classNameScrollbarAutoHidden))};_scrollbarsAutoHideDelay>0&&!0!==n?_scrollbarsAutoHideTimeoutId=setTimeout(i,_scrollbarsAutoHideDelay):i()}}function refreshScrollbarHandleLength(t){var n={},e=getScrollbarVars(t),r=e._info,i=MATH.min(1,_viewportSize[e._w_h]/_contentScrollSizeCache[e._w_h]);n[e._width_height]=MATH.floor(100*i*1e6)/1e6+"%",nativeOverlayScrollbarsAreActive()||e._handle.css(n),r._handleLength=e._handle[0]["offset"+e._Width_Height],r._handleLengthRatio=i}function refreshScrollbarHandleOffset(t,n){var e,r,i=type(n)==TYPES.b,o=_isRTL&&t,a=getScrollbarVars(t),s=a._info,c="translate(",u=VENDORS._cssProperty("transform"),l=VENDORS._cssProperty("transition"),f=t?_viewportElement[_strScrollLeft]():_viewportElement[_strScrollTop](),h=s._handleLength,d=a._track[0]["offset"+a._Width_Height],$=d-h,p={},v=(_viewportElementNative[_strScroll+a._Width_Height]-_viewportElementNative["client"+a._Width_Height])*(_rtlScrollBehavior.n&&o?-1:1),_=function(t){return isNaN(t/v)?0:MATH.max(0,MATH.min(1,t/v))},y=function(t){var n=$*t;return n=isNaN(n)?0:n,n=o&&!_rtlScrollBehavior.i?d-h-n:n,n=MATH.max(0,n)},m=_(f),b=_(n===undefined||i?f:n),x=y(b),g=y(m);s._maxScroll=v,s._currentScroll=f,s._currentScrollRatio=m,_supportTransform?(e=o?-(d-h-x):x,r=t?c+e+"px, 0)":c+"0, "+e+"px)",p[u]=r,_supportTransition&&(p[l]=i&&MATH.abs(x-s._handleOffset)>1?function t(n){var e,r,i,o=VENDORS._cssProperty("transition"),a=n.css(o);if(a)return a;for(var s="\\s*(([^,(]+(\\(.+?\\))?)+)[\\s,]*",c=RegExp(s),u=RegExp("^("+s+")+$"),l="property duration timing-function delay".split(" "),f=[],h=0;h<l[LEXICON.l];h++)for(i=0,r=function(t){if(e=[],!t.match(u))return t;for(;t.match(c);)e.push(RegExp.$1),t=t.replace(c,_strEmpty);return e}(n.css(o+"-"+l[h]));i<r[LEXICON.l];i++)f[i]=(f[i]?f[i]+_strSpace:_strEmpty)+r[i];return f.join(", ")}(a._handle)+", "+(u+_strSpace+250)+"ms":_strEmpty)):p[a._left_top]=x,!nativeOverlayScrollbarsAreActive()&&(a._handle.css(p),_supportTransform&&_supportTransition&&i&&a._handle.one(_strTransitionEndEvent,function(){_destroyed||a._handle.css(l,_strEmpty)})),s._handleOffset=x,s._snappedHandleOffset=g,s._trackLength=d}function refreshScrollbarsInteractive(t,n){var e=n?"removeClass":"addClass",r=t?_scrollbarHorizontalTrackElement:_scrollbarHorizontalHandleElement,i=t?_scrollbarVerticalTrackElement:_scrollbarVerticalHandleElement,o=t?_classNameScrollbarTrackOff:_classNameScrollbarHandleOff;r[e](o),i[e](o)}function getScrollbarVars(t){return{_width_height:t?_strWidth:_strHeight,_Width_Height:t?"Width":"Height",_left_top:t?_strLeft:_strTop,_Left_Top:t?"Left":"Top",_x_y:t?_strX:_strY,_X_Y:t?"X":"Y",_w_h:t?"w":"h",_l_t:t?"l":"t",_track:t?_scrollbarHorizontalTrackElement:_scrollbarVerticalTrackElement,_handle:t?_scrollbarHorizontalHandleElement:_scrollbarVerticalHandleElement,_scrollbar:t?_scrollbarHorizontalElement:_scrollbarVerticalElement,_info:t?_scrollHorizontalInfo:_scrollVerticalInfo}}function setupScrollbarCornerDOM(t){_scrollbarCornerElement=_scrollbarCornerElement||selectOrGenerateDivByClass(_classNameScrollbarCorner,!0),t?_domExists&&_initialized?removeClass(_scrollbarCornerElement.removeAttr(LEXICON.s),_classNamesDynamicDestroy):remove(_scrollbarCornerElement):_domExists||_hostElement.append(_scrollbarCornerElement)}function dispatchCallback(t,n,e){if(!1!==e){if(_initialized){var r,i=_currentPreparedOptions.callbacks[t],o=t;"on"===o.substr(0,2)&&(o=o.substr(2,1).toLowerCase()+o.substr(3)),type(i)==TYPES.f&&i.call(_base,n),each(_extensions,function(){r=this,type(r.on)==TYPES.f&&r.on(o,n)})}else _destroyed||_callbacksInitQeueue.push({n:t,a:n})}}function setTopRightBottomLeft(t,n,e){n=n||_strEmpty,e=e||[_strEmpty,_strEmpty,_strEmpty,_strEmpty],t[n+_strTop]=e[0],t[n+_strRight]=e[1],t[n+_strBottom]=e[2],t[n+_strLeft]=e[3]}function getTopRightBottomLeftHost(t,n,e,r){return n=n||_strEmpty,t=t||_strEmpty,{t:r?0:parseToZeroOrNumber(_hostElement.css(t+_strTop+n)),r:e?0:parseToZeroOrNumber(_hostElement.css(t+_strRight+n)),b:r?0:parseToZeroOrNumber(_hostElement.css(t+_strBottom+n)),l:e?0:parseToZeroOrNumber(_hostElement.css(t+_strLeft+n))}}function createHostClassNameRegExp(t,n){var e,r,i,o=function(t,n){if(i="",n&&typeof t==TYPES.s)for(e=0,r=t.split(_strSpace);e<r[LEXICON.l];e++)i+="|"+r[e]+"$";return i};return RegExp("(^"+_classNameHostElement+"([-_].+|)$)"+o(_classNameCache,t)+o(_oldClassName,n),"g")}function getHostElementInvertedScale(){var t=_paddingElementNative[LEXICON.bCR]();return{x:_supportTransform&&1/(MATH.round(t.width)/_paddingElementNative[LEXICON.oW])||1,y:_supportTransform&&1/(MATH.round(t.height)/_paddingElementNative[LEXICON.oH])||1}}function isHTMLElement(t){var n="ownerDocument",e="HTMLElement",r=t&&t[n]&&t[n].parentWindow||window;return typeof r[e]==TYPES.o?t instanceof r[e]:t&&typeof t==TYPES.o&&null!==t&&1===t.nodeType&&typeof t.nodeName==TYPES.s}function parseToZeroOrNumber(t,n){var e=n?parseFloat(t):parseInt(t,10);return isNaN(e)?0:e}function nativeOverlayScrollbarsAreActive(){return _ignoreOverlayScrollbarHidingCache&&_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y}function getContentMeasureElement(){return _isTextarea?_textareaCoverElement[0]:_contentElementNative}function generateDiv(t,n){return"<div "+(t?type(t)==TYPES.s?'class="'+t+'"':function(){var n,e=_strEmpty;if(FRAMEWORK.isPlainObject(t))for(n in t)e+=("c"===n?"class":n)+'="'+t[n]+'" ';return e}():_strEmpty)+">"+(n||_strEmpty)+"</div>"}function selectOrGenerateDivByClass(t,n){var e=type(n)==TYPES.b,r=e?_hostElement:n||_hostElement;return _domExists&&!r[LEXICON.l]?null:_domExists?r[e?"children":"find"](_strDot+t.replace(/\s/g,_strDot)).eq(0):FRAMEWORK(generateDiv(t))}function getObjectPropVal(t,n){for(var e,r=n.split(_strDot),i=0;i<r.length;i++){if(!t[LEXICON.hOP](r[i]))return;e=t[r[i]],i<r.length&&type(e)==TYPES.o&&(t=e)}return e}function eachUpdateOnLoad(t){var n=_currentPreparedOptions.updateOnLoad;n=type(n)==TYPES.s?n.split(_strSpace):n,COMPATIBILITY.isA(n)&&!_destroyed&&each(n,t)}function checkCache(t,n,e){if(e)return e;if(type(t)!=TYPES.o||type(n)!=TYPES.o)return t!==n;for(var r in t)if("c"!==r&&(!(t[LEXICON.hOP](r)&&n[LEXICON.hOP](r))||checkCache(t[r],n[r])))return!0;return!1}function extendDeep(){return FRAMEWORK.extend.apply(this,[!0].concat([].slice.call(arguments)))}function addClass(t,n){return _frameworkProto.addClass.call(t,n)}function removeClass(t,n){return _frameworkProto.removeClass.call(t,n)}function addRemoveClass(t,n,e){return e?addClass(t,n):removeClass(t,n)}function remove(t){return _frameworkProto.remove.call(t)}function findFirst(t,n){return _frameworkProto.find.call(t,n).eq(0)}}(inst,options,extensions,_pluginsGlobals,_pluginsAutoUpdateLoop))}):FRAMEWORK.each(pluginTargetElements,function(t,n){inst=INSTANCES(n),"!"===options&&_plugin.valid(inst)||COMPATIBILITY.type(options)==TYPES.f&&options(n,inst)?arr.push(inst):options===undefined&&arr.push(inst)}),result=1===arr[LEXICON.l]?arr[0]:arr),result):optsIsPlainObj||!options?result:arr}).globals=function(){initOverlayScrollbarsStatics();var t=FRAMEWORK.extend(!0,{},_pluginsGlobals);return delete t.msie,t},_plugin.defaultOptions=function(t){initOverlayScrollbarsStatics();var n=_pluginsGlobals.defaultOptions;if(t===undefined)return FRAMEWORK.extend(!0,{},n);_pluginsGlobals.defaultOptions=FRAMEWORK.extend(!0,{},n,_pluginsOptions._validate(t,_pluginsOptions._template,!0,n)._default)},_plugin.valid=function(t){return t instanceof _plugin&&!t.getState().destroyed},_plugin.extension=function(t,n,e){var r=COMPATIBILITY.type(t)==TYPES.s,i=arguments[LEXICON.l],o=0;if(i<1||!r)return FRAMEWORK.extend(!0,{length:_pluginsExtensions[LEXICON.l]},_pluginsExtensions);if(r){if(COMPATIBILITY.type(n)==TYPES.f)_pluginsExtensions.push({name:t,extensionFactory:n,defaultOptions:e});else for(;o<_pluginsExtensions[LEXICON.l];o++)if(_pluginsExtensions[o].name===t){if(!(i>1))return FRAMEWORK.extend(!0,{},_pluginsExtensions[o]);_pluginsExtensions.splice(o,1)}}},_plugin}();return JQUERY&&JQUERY.fn&&(JQUERY.fn.overlayScrollbars=function(t,n){return JQUERY.isPlainObject(t)?(JQUERY.each(this,function(){PLUGIN(this,t,n)}),this):PLUGIN(this,t)}),PLUGIN});