You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AdminLTE/plugins/overlayScrollbars/js/OverlayScrollbars.min.js

13 lines
52 KiB

/*!
* OverlayScrollbars
* https://github.com/KingSora/OverlayScrollbars
*
* Version: 1.7.2
*
* Copyright KingSora.
* https://github.com/KingSora
*
* Released under the MIT license.
* Date: 10.06.2019
*/
!function(n,t){"function"==typeof define&&define.amd?define(function(){return t(n,n.document,undefined)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(n,n.document,undefined):t(n,n.document,undefined)}("undefined"!=typeof window?window:this,function(ht,dt,Se){"use strict";var a,e,o,pt="OverlayScrollbars",bt="object",mt="function",wt="array",gt="string",yt="boolean",xt="number",p="undefined",h="null",Ot="class",_e="style",St="id",_t="length",zt="prototype",ze="offsetHeight",Te="clientHeight",ke="scrollHeight",Ie="offsetWidth",Ce="clientWidth",Ae="scrollWidth",Tt={u:{},v:{},m:["-webkit-","-moz-","-o-","-ms-"],g:["WebKit","Moz","O","MS"],O:function(n){var t=this.v;if(t[n])return t[n];for(var r,i,e=this.m,o=this.S(n),u=dt.createElement("div")[_e],f=0,a=0;f<e.length;f++)for(i=e[f].replace(/-/g,""),r=[n,e[f]+n,i+o,this.S(i)+o],a=0;a<r[_t];a++)if(u[r[a]]!==Se)return t[n]=r[a],r[a];return null},_:function(n,t,r){var i=this.g,e=this.u,o=0,u=e[n];if(!u){for(u=ht[n];o<i[_t];o++)u=u||ht[(t?i[o]:i[o].toLowerCase())+this.S(n)];e[n]=u}return u||r},S:function(n){return n.charAt(0).toUpperCase()+n.slice(1)}},He={wW:function(){return ht.innerWidth||dt.documentElement[Ce]||dt.body[Ce]},wH:function(){return ht.innerHeight||dt.documentElement[Te]||dt.body[Te]},mO:function(){return Tt._("MutationObserver",!0)},rO:function(){return Tt._("ResizeObserver",!0)},rAF:function(){return Tt._("requestAnimationFrame",!1,function(n){return ht.setTimeout(n,1e3/60)})},cAF:function(){return Tt._("cancelAnimationFrame",!1,function(n){return ht.clearTimeout(n)})},now:function(){return Date.now&&Date.now()||(new Date).getTime()},stpP:function(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0},prvD:function(n){n.preventDefault&&n.cancelable?n.preventDefault():n.returnValue=!1},page:function(n){var t="page",r="client",i="X",e=((n=n.originalEvent||n).target||n.srcElement||dt).ownerDocument||dt,o=e.documentElement,u=e.body;if(n.touches===Se)return!n[t+i]&&n[r+i]&&null!=n[r+i]?{x:n[r+i]+(o&&o.scrollLeft||u&&u.scrollLeft||0)-(o&&o.clientLeft||u&&u.clientLeft||0),y:n[r+"Y"]+(o&&o.scrollTop||u&&u.scrollTop||0)-(o&&o.clientTop||u&&u.clientTop||0)}:{x:n[t+i],y:n.pageY};var f=n.touches[0];return{x:f[t+i],y:f.pageY}},mBtn:function(n){var t=n.button;return n.which||t===Se?n.which:1&t?1:2&t?3:4&t?2:0},inA:function(n,t){for(var r=0;r<t[_t];r++)try{if(t[r]===n)return r}catch(i){}return-1},isA:function(n){var t=Array.isArray;return t?t(n):this.type(n)==wt},type:function(n){return n===Se?n+"":null===n?n+"":Object[zt].toString.call(n).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},bind:function(n,t){if(typeof n!=mt)throw"Can't bind function!";var r=zt,i=Array[r].slice.call(arguments,2),e=function(){},o=function(){return n.apply(this instanceof e?this:t,i.concat(Array[r].slice.call(arguments)))};return n[r]&&(e[r]=n[r]),o[r]=new e,o}},Ne=Math,Ee=ht.jQuery,M=(a={p:Ne.PI,c:Ne.cos,s:Ne.sin,w:Ne.pow,t:Ne.sqrt,n:Ne.asin,a:Ne.abs,o:1.70158},{swing:function(n,t,r,i,e){return.5-a.c(n*a.p)/2},linear:function(n,t,r,i,e){return n},easeInQuad:function(n,t,r,i,e){return i*(t/=e)*t+r},easeOutQuad:function(n,t,r,i,e){return-i*(t/=e)*(t-2)+r},easeInOutQuad:function(n,t,r,i,e){return(t/=e/2)<1?i/2*t*t+r:-i/2*(--t*(t-2)-1)+r},easeInCubic:function(n,t,r,i,e){return i*(t/=e)*t*t+r},easeOutCubic:function(n,t,r,i,e){return i*((t=t/e-1)*t*t+1)+r},easeInOutCubic:function(n,t,r,i,e){return(t/=e/2)<1?i/2*t*t*t+r:i/2*((t-=2)*t*t+2)+r},easeInQuart:function(n,t,r,i,e){return i*(t/=e)*t*t*t+r},easeOutQuart:function(n,t,r,i,e){return-i*((t=t/e-1)*t*t*t-1)+r},easeInOutQuart:function(n,t,r,i,e){return(t/=e/2)<1?i/2*t*t*t*t+r:-i/2*((t-=2)*t*t*t-2)+r},easeInQuint:function(n,t,r,i,e){return i*(t/=e)*t*t*t*t+r},easeOutQuint:function(n,t,r,i,e){return i*((t=t/e-1)*t*t*t*t+1)+r},easeInOutQuint:function(n,t,r,i,e){return(t/=e/2)<1?i/2*t*t*t*t*t+r:i/2*((t-=2)*t*t*t*t+2)+r},easeInSine:function(n,t,r,i,e){return-i*a.c(t/e*(a.p/2))+i+r},easeOutSine:function(n,t,r,i,e){return i*a.s(t/e*(a.p/2))+r},easeInOutSine:function(n,t,r,i,e){return-i/2*(a.c(a.p*t/e)-1)+r},easeInExpo:function(n,t,r,i,e){return 0==t?r:i*a.w(2,10*(t/e-1))+r},easeOutExpo:function(n,t,r,i,e){return t==e?r+i:i*(1-a.w(2,-10*t/e))+r},easeInOutExpo:function(n,t,r,i,e){return 0==t?r:t==e?r+i:(t/=e/2)<1?i/2*a.w(2,10*(t-1))+r:i/2*(2-a.w(2,-10*--t))+r},easeInCirc:function(n,t,r,i,e){return-i*(a.t(1-(t/=e)*t)-1)+r},easeOutCirc:function(n,t,r,i,e){return i*a.t(1-(t=t/e-1)*t)+r},easeInOutCirc:function(n,t,r,i,e){return(t/=e/2)<1?-i/2*(a.t(1-t*t)-1)+r:i/2*(a.t(1-(t-=2)*t)+1)+r},easeInElastic:function(n,t,r,i,e){var o=a.o,u=0,f=i;return 0==t?r:1==(t/=e)?r+i:(u||(u=.3*e),o=f<a.a(i)?(f=i,u/4):u/(2*a.p)*a.n(i/f),-f*a.w(2,10*(t-=1))*a.s((t*e-o)*(2*a.p)/u)+r)},easeOutElastic:function(n,t,r,i,e){var o=a.o,u=0,f=i;return 0==t?r:1==(t/=e)?r+i:(u||(u=.3*e),o=f<a.a(i)?(f=i,u/4):u/(2*a.p)*a.n(i/f),f*a.w(2,-10*t)*a.s((t*e-o)*(2*a.p)/u)+i+r)},easeInOutElastic:function(n,t,r,i,e){var o=a.o,u=0,f=i;return 0==t?r:2==(t/=e/2)?r+i:(u||(u=e*(.3*1.5)),o=f<a.a(i)?(f=i,u/4):u/(2*a.p)*a.n(i/f),t<1?f*a.w(2,10*(t-=1))*a.s((t*e-o)*(2*a.p)/u)*-.5+r:f*a.w(2,-10*(t-=1))*a.s((t*e-o)*(2*a.p)/u)*.5+i+r)},easeInBack:function(n,t,r,i,e,o){return i*(t/=e)*t*(((o=o||a.o)+1)*t-o)+r},easeOutBack:function(n,t,r,i,e,o){return i*((t=t/e-1)*t*(((o=o||a.o)+1)*t+o)+1)+r},easeInOutBack:function(n,t,r,i,e,o){return o=o||a.o,(t/=e/2)<1?i/2*(t*t*((1+(o*=1.525))*t-o))+r:i/2*((t-=2)*t*((1+(o*=1.525))*t+o)+2)+r},easeInBounce:function(n,t,r,i,e){return i-this.easeOutBounce(n,e-t,0,i,e)+r},easeOutBounce:function(n,t,r,i,e){var o=7.5625;return(t/=e)<1/2.75?i*(o*t*t)+r:t<2/2.75?i*(o*(t-=1.5/2.75)*t+.75)+r:t<2.5/2.75?i*(o*(t-=2.25/2.75)*t+.9375)+r:i*(o*(t-=2.625/2.75)*t+.984375)+r},easeInOutBounce:function(n,t,r,i,e){return t<e/2?.5*this.easeInBounce(n,2*t,0,i,e)+r:.5*this.easeOutBounce(n,2*t-e,0,i,e)+.5*i+r}}),Le=function(){var l=/[^\x20\t\r\n\f]+/g,v=" ",k="scrollLeft",I="scrollTop",C=[],s=He.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},h=function(){var n,t,r,i,e,o,u=arguments[0]||{},f=1,a=arguments[_t],c=!1;for(s(u)==yt&&(c=u,u=arguments[1]||{},f=2),s(u)!=bt&&!s(u)==mt&&(u={}),a===f&&(u=L,--f);f<a;f++)if(null!=(e=arguments[f]))for(i in e)n=u[i],u!==(r=e[i])&&(c&&r&&(E(r)||(t=He.isA(r)))?(o=t?(t=!1,n&&He.isA(n)?n:[]):n&&E(n)?n:{},u[i]=h(c,o,r)):r!==Se&&(u[i]=r));return u},A=function(n,t,r){for(var i=r||0;i<t[_t];i++)if(t[i]===n)return i;return-1},H=function(n){return s(n)==mt},N=function(n){for(var t in n)return!1;return!0},E=function(n){if(!n||s(n)!=bt)return!1;var t,r=zt,i=Object[r].hasOwnProperty,e=i.call(n,"constructor"),o=n.constructor&&n.constructor[r]&&i.call(n.constructor[r],"isPrototypeOf");if(n.constructor&&!e&&!o)return!1;for(t in n);return s(t)==p||i.call(n,t)},t=function(n,t){var r=0;if(u(n))for(;r<n[_t]&&!1!==t.call(n[r],r,n[r]);r++);else for(r in n)if(!1===t.call(n[r],r,n[r]))break;return n},L=function(n){if(0===arguments[_t])return this;var t,r,i=new L,e=n,o=0;if(s(n)==gt)for(e=[],t="<"===n.charAt(0)?((r=dt.createElement("div")).innerHTML=n,r.children):dt.querySelectorAll(n);o<t[_t];o++)e.push(t[o]);if(e){for(s(e)==gt||u(e)&&e!==ht&&e!==e.self||(e=[e]),o=0;o<e[_t];o++)i[o]=e[o];i[_t]=e[_t]}return i};function u(n){var t=!!n&&[_t]in n&&n[_t],r=s(n);return!H(r)&&(r==wt||0===t||s(t)==xt&&0<t&&t-1 in n)}function d(n){return(n.match(l)||[]).join(v)}function f(n,t){for(var r=(n.parentNode||dt).querySelectorAll(t)||[],i=r[_t];i--;)if(r[i]==n)return!0;return!1}function e(n,t,r){if(s(r)==wt)for(var i=0;i<r[_t];i++)e(n,t,r[i]);else s(r)==gt?n.insertAdjacentHTML(t,r):n.insertAdjacentElement(t,r.nodeType?r:r[0])}function a(n,t,r){try{n[_e][t]!==Se&&(n[_e][t]=function i(n,t){o[n.toLowerCase()]||s(t)!=xt||(t+="px");return t}(t,r))}catch(e){}}function R(n,t){var r,i;!1!==t&&n.q.splice(0,1),0<n.q[_t]?(i=n.q[0],c(n.el,i.props,i.duration,i.easing,i.complete,!0)):-1<(r=A(n,C))&&C.splice(r,1)}function D(n,t,r){t===k||t===I?n[t]=r:a(n,t,r)}function c(n,t,r,i,e,o){var u,f,a,c,s,l,v=E(r),h={},d={},p=0;for(l=v?(i=r.easing,r.start,a=r.progress,c=r.step,s=r.specialEasing,e=r.complete,r.duration):r,s=s||{},l=l||400,i=i||"swing",o=o||!1;p<C[_t];p++)if(C[p].el===n){f=C[p];break}for(u in f||(f={el:n,q:[]},C.push(f)),t)h[u]=u===k||u===I?n[u]:L(n).css(u);for(u in h)h[u]!==t[u]&&t[u]!==Se&&(d[u]=t[u]);if(N(d))o&&R(f);else{var b,m,w,g,y,x,O,S,_,z=o?0:A(T,f.q),T={props:d,duration:v?r:l,easing:i,complete:e};if(-1===z&&(z=f.q[_t],f.q.push(T)),0===z)if(0<l)O=He.now(),S=function(){for(u in b=He.now(),_=b-O,m=T.stop||l<=_,w=1-(Ne.max(0,O+l-b)/l||0),d)g=parseFloat(h[u]),y=parseFloat(d[u]),x=(y-g)*M[s[u]||i](w,w*l,0,1,l)+g,D(n,u,x),H(c)&&c(x,{elem:n,prop:u,start:g,now:x,end:y,pos:w,options:{easing:i,speacialEasing:s,duration:l,complete:e,step:c},startTime:O});H(a)&&a({},w,Ne.max(0,l-_)),m?(R(f),H(e)&&e()):T.frame=He.rAF()(S)},T.frame=He.rAF()(S);else{for(u in d)D(n,u,d[u]);R(f)}}}return L[zt]={on:function(t,r){var i,e=(t=(t||"").match(l)||[""])[_t],o=0;return this.each(function(){i=this;try{if(i.addEventListener)for(;o<e;o++)i.addEventListener(t[o],r);else if(i.detachEvent)for(;o<e;o++)i.attachEvent("on"+t[o],r)}catch(n){}})},off:function(t,r){var i,e=(t=(t||"").match(l)||[""])[_t],o=0;return this.each(function(){i=this;try{if(i.removeEventListener)for(;o<e;o++)i.removeEventListener(t[o],r);else if(i.detachEvent)for(;o<e;o++)i.detachEvent("on"+t[o],r)}catch(n){}})},one:function(n,e){return n=(n||"").match(l)||[""],this.each(function(){var i=L(this);L.each(n,function(n,t){var r=function(n){e.call(this,n),i.off(t,r)};i.on(t,r)})})},trigger:function(n){var t,r;return this.each(function(){t=this,dt.createEvent?((r=dt.createEvent("HTMLEvents")).initEvent(n,!0,!1),t.dispatchEvent(r)):t.fireEvent("on"+n)})},append:function(n){return this.each(function(){e(this,"beforeend",n)})},prepend:function(n){return this.each(function(){e(this,"afterbegin",n)})},before:function(n){return this.each(function(){e(this,"beforebegin",n)})},after:function(n){return this.each(function(){e(this,"afterend",n)})},remove:function(){return this.each(function(){var n=this.parentNode;null!=n&&n.removeChild(this)})},unwrap:function(){var n,t,r,i=[];for(this.each(function(){r=this.parentNode,-1===A(r,i)&&i.push(r)}),n=0;n<i[_t];n++){for(t=i[n],r=t.parentNode;t.firstChild;)r.insertBefore(t.firstChild,t);r.removeChild(t)}return this},wrapAll:function(n){for(var t,r=this,i=L(n)[0],e=i,o=r[0].parentNode,u=r[0].previousSibling;0<e.childNodes[_t];)e=e.childNodes[0];for(t=0;r[_t]-t;e.firstChild===r[0]&&t++)e.appendChild(r[t]);var f=u?u.nextSibling:o.firstChild;return o.insertBefore(i,f),this},wrapInner:function(r){return this.each(function(){var n=L(this),t=n.contents();t[_t]?t.wrapAll(r):n.append(r)})},wrap:function(n){return this.each(function(){L(this).wrapAll(n)})},css:function(n,t){var r,i,e,o=ht.getComputedStyle;return s(n)==gt?t===Se?(r=this[0],e=o?o(r,null):r.currentStyle[n],o?null!=e?e.getPropertyValue(n):r[_e][n]:e):this.each(function(){a(this,n,t)}):this.each(function(){for(i in n)a(this,i,n[i])})},hasClass:function(n){for(var t,r,i=0,e=v+n+v;t=this[i++];){if((r=t.classList)&&r.contains(n))return!0;if(1===t.nodeType&&-1<(v+d(t.className+"")+v).indexOf(e))return!0}return!1},addClass:function(n){var t,r,i,e,o,u,f,a,c=0,s=0;if(n)for(t=n.match(l)||[];r=this[c++];)if(a=r.classList,f===Se&&(f=a!==Se),f)for(;o=t[s++];)a.add(o);else if(e=r.className+"",i=1===r.nodeType&&v+d(e)+v){for(;o=t[s++];)i.indexOf(v+o+v)<0&&(i+=o+v);e!==(u=d(i))&&(r.className=u)}return this},removeClass:function(n){var t,r,i,e,o,u,f,a,c=0,s=0;if(n)for(t=n.match(l)||[];r=this[c++];)if(a=r.classList,f===Se&&(f=a!==Se),f)for(;o=t[s++];)a.remove(o);else if(e=r.className+"",i=1===r.nodeType&&v+d(e)+v){for(;o=t[s++];)for(;-1<i.indexOf(v+o+v);)i=i.replace(v+o+v,v);e!==(u=d(i))&&(r.className=u)}return this},hide:function(){return this.each(function(){this[_e].display="none"})},show:function(){return this.each(function(){this[_e].display="block"})},attr:function(n,t){for(var r,i=0;r=this[i++];){if(t===Se)return r.getAttribute(n);r.setAttribute(n,t)}return this},removeAttr:function(n){return this.each(function(){this.removeAttribute(n)})},offset:function(){var n=this[0].getBoundingClientRect(),t=ht.pageXOffset||dt.documentElement[k],r=ht.pageYOffset||dt.documentElement[I];return{top:n.top+r,left:n.left+t}},position:function(){var n=this[0];return{top:n.offsetTop,left:n.offsetLeft}},scrollLeft:function(n){for(var t,r=0;t=this[r++];){if(n===Se)return t[k];t[k]=n}return this},scrollTop:function(n){for(var t,r=0;t=this[r++];){if(n===Se)return t[I];t[I]=n}return this},val:function(n){var t=this[0];return n?(t.value=n,this):t.value},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){return L(this[0<=n?n:this[_t]+n])},find:function(t){var r,i=[];return this.each(function(){var n=this.querySelectorAll(t);for(r=0;r<n[_t];r++)i.push(n[r])}),L(i)},children:function(n){var t,r,i,e=[];return this.each(function(){for(r=this.children,i=0;i<r[_t];i++)t=r[i],n?(t.matches&&t.matches(n)||f(t,n))&&e.push(t):e.push(t)}),L(e)},parent:function(n){var t,r=[];return this.each(function(){t=this.parentNode,n&&!L(t).is(n)||r.push(t)}),L(r)},is:function(n){var t,r;for(r=0;r<this[_t];r++){if(t=this[r],":visible"===n)return!!(t[Ie]||t[ze]||t.getClientRects()[_t]);if(":hidden"===n)return!(t[Ie]||t[ze]||t.getClientRects()[_t]);if(t.matches&&t.matches(n)||f(t,n))return!0}return!1},contents:function(){var n,t,r=[];return this.each(function(){for(n=this.childNodes,t=0;t<n[_t];t++)r.push(n[t])}),L(r)},each:function(n){return t(this,n)},animate:function(n,t,r,i){return this.each(function(){c(this,n,t,r,i)})},stop:function(n,t){return this.each(function(){!function f(n,t,r){for(var i,e,o,u=0;u<C[_t];u++)if((i=C[u]).el===n){if(0<i.q[_t]){if((e=i.q[0]).stop=!0,He.cAF()(e.frame),i.q.splice(0,1),r)for(o in e.props)D(n,o,e.props[o]);t?i.q=[]:R(i,!1)}break}}(this,n,t)})}},h(L,{extend:h,inArray:A,isEmptyObject:N,isPlainObject:E,each:t}),L}(),Re=(e=[],o="__overlayScrollbars__",function(n,t){var r=arguments[_t];if(r<1)return e;if(t)n[o]=t,e.push(n);else{var i=He.inA(n,e);if(-1<i){if(!(1<r))return e[i][o];delete n[o],e.splice(i,1)}}}),r=function(){var f,a,k,n,t,r,i,u,e,c=[],vt=(u={className:["os-theme-dark",[h,gt]],resize:["none","n:none b:both h:horizontal v:vertical"],sizeAutoCapable:n=[!0,yt],clipAlways:n,normalizeRTL:n,paddingAbsolute:t=[!(k=[yt,xt,gt,wt,bt,mt,h]),yt],autoUpdate:[null,[h,yt]],autoUpdateInterval:[33,xt],nativeScrollbarsOverlaid:{showNativeScrollbars:t,initialize:n},overflowBehavior:{x:["scroll",i="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden"],y:["scroll",i]},scrollbars:{visibility:["auto","v:visible h:hidden a:auto"],autoHide:["never","n:never s:scroll l:leave m:move"],autoHideDelay:[800,xt],dragScrolling:n,clickScrolling:t,touchSupport:n,snapHandle:t},textarea:{dynWidth:t,dynHeight:t,inheritedAttrs:[["style","class"],[gt,wt,h]]},callbacks:{onInitialized:r=[null,[h,mt]],onInitializationWithdrawn:r,onDestroyed:r,onScrollStart:r,onScroll:r,onScrollStop:r,onOverflowChanged:r,onOverflowAmountChanged:r,onDirectionChanged:r,onContentSizeChanged:r,onHostSizeChanged:r,onUpdated:r}},{T:(e=function(e){var o=function(n){var t,r,i;for(t in n)n.hasOwnProperty(t)&&(r=n[t],(i=He.type(r))==wt?n[t]=r[e?1:0]:i==bt&&(n[t]=o(r)));return n};return o(Le.extend(!0,{},u))})(),k:e(!0),I:function(n,t,_,z,r){var i={},e=Le.extend(!0,{},n),T=function(n,t,r,i){for(var e in t)if(t.hasOwnProperty(e)&&n.hasOwnProperty(e)){var o,u,f,a,c,s,l,v,h=!1,d=t[e],p=He.type(d),b=p==bt,m=He.type(d)!=wt?[d]:d,w=n[e],g=He.type(w),y=i?i+".":"",x='The option "'+y+e+"\" wasn't set, because",O=[],S=[];if(b&&g==bt)r[e]={},T(w,d,r[e],y+e),Le.isEmptyObject(w)&&delete n[e];else if(!b){for(s=0;s<m.length;s++)if(c=m[s],f=(p=He.type(c))==gt&&-1===Le.inArray(c,k))for(O.push(gt),o=c.split(" "),S=S.concat(o),l=0;l<o.length;l++){for(a=(u=o[l].split(":"))[0],v=0;v<u.length;v++)if(w===u[v]){h=!0;break}if(h)break}else if(O.push(c),g===c){h=!0;break}h?r[e]=f&&z?a:w:_&&console.warn(x+" it doesn't accept the type [ "+g.toUpperCase()+' ] with the value of "'+w+'".\r\nAccepted types are: [ '+O.join(", ").toUpperCase()+" ]."+(0<S.length?"\r\nValid strings are: [ "+S.join(", ").split(":").join(", ")+" ].":"")),delete n[e]}}};return T(e,t,i),r?Le.extend(!0,i,e):!Le.isEmptyObject(e)&&_&&console.warn("The following options are discarded due to invalidity:\r\n"+ht.JSON.stringify(e,null,2)),i}});function s(){f||(f=new o(vt.T)),a||(a=new l(f))}function o(n){var O=this,e="overflow",S=Le("body"),_=Le('<div id="os-dummy-scrollbar-size"><div></div></div>'),o=_[0],i=Le(_.children("div").eq(0));S.append(_),_.hide().show();var t,r,u,f,a,c,s,l,v,h=z(o),d={x:0===h.x,y:0===h.y};function z(n){return{x:n[ze]-n[Te],y:n[Ie]-n[Ce]}}Le.extend(O,{defaultOptions:n,autoUpdateLoop:!1,autoUpdateRecommended:!He.mO(),nativeScrollbarSize:h,nativeScrollbarIsOverlaid:d,nativeScrollbarStyling:(_.addClass("os-viewport-native-scrollbars-invisible"),"none"===_.css("scrollbar-width")||"none"===ht.getComputedStyle(o,"::-webkit-scrollbar").getPropertyValue("display")),overlayScrollbarDummySize:{x:30,y:30},msie:(r=ht.navigator.userAgent,u="indexOf",f="substring",a=r[u]("MSIE "),c=r[u]("Trident/"),s=r[u]("Edge/"),l=r[u]("rv:"),v=parseInt,0<a?t=v(r[f](a+5,r[u](".",a)),10):0<c?t=v(r[f](l+3,r[u](".",l)),10):0<s&&(t=v(r[f](s+5,r[u](".",s)),10)),t),cssCalc:function(){for(var n,t=dt.createElement("div")[_e],r=-1;r<Tt.m[_t];r++)if(n=r<0?"calc":Tt.m[r]+"calc",t.cssText="width:"+n+"(1px);",t[_t])return n;return null}(),restrictedMeasuring:function(){_.css(e,"hidden");var n=o[Ae],t=o[ke];_.css(e,"visible");var r=o[Ae],i=o[ke];return n-r!=0||t-i!=0}(),rtlScrollBehavior:function(){_.css({"overflow-y":"hidden","overflow-x":"scroll",direction:"rtl"}).scrollLeft(0);var n=_.offset(),t=i.offset();_.scrollLeft(999);var r=i.offset();return{i:n.left===t.left,n:t.left-r.left==0}}(),supportTransform:null!==Tt.O("transform"),supportTransition:null!==Tt.O("transition"),supportPassiveEvents:function(){var n=!1;try{ht.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){n=!0}}))}catch(t){}return n}(),supportResizeObserver:!!He.rO(),supportMutationObserver:!!He.mO()}),_.removeAttr(_e).remove(),function(){if(!d.x||!d.y){var m=Ne.abs,w=He.wW(),g=He.wH(),y=x();Le(ht).on("resize",function(){if(0<Re().length){var n=He.wW(),t=He.wH(),r=n-w,i=t-g;if(0===r&&0===i)return;var e,o=Ne.round(n/(w/100)),u=Ne.round(t/(g/100)),f=m(r),a=m(i),c=m(o),s=m(u),l=x(),v=2<f&&2<a,h=!function b(n,t){var r=m(n),i=m(t);return!(r===i||r+1===i||r-1===i)}(c,s),d=v&&h&&l!==y&&0<y,p=O.nativeScrollbarSize;d&&(S.append(_),e=O.nativeScrollbarSize=z(_[0]),_.remove(),p.x===e.x&&p.y===e.y||Le.each(Re(),function(){Re(this)&&Re(this).update("zoom")})),w=n,g=t,y=l}})}function x(){var n=ht.screen.deviceXDPI||0,t=ht.screen.logicalXDPI||1;return ht.devicePixelRatio||n/t}}()}function l(r){var c,s="autoUpdate",l=_t,v=[],h=[],d=!1,p=33,b=He.now(),m=function(){if(0<v[l]&&d){c=He.rAF()(function(){m()});var n,t,r,i,e,o,u=He.now(),f=u-b;if(p<f){b=u-f%p,n=33;for(var a=0;a<v[l];a++)(t=v[a])!==Se&&(i=(r=t.options())[s],e=Ne.max(1,r.autoUpdateInterval),o=He.now(),(!0===i||null===i)&&o-h[a]>e&&(t.update("auto"),h[a]=new Date(o+=e)),n=Ne.max(1,Ne.min(n,e)));p=n}}else p=33};this.add=function(n){-1===Le.inArray(n,v)&&(v.push(n),h.push(He.now()),0<v[l]&&!d&&(d=!0,r.autoUpdateLoop=d,m()))},this.remove=function(n){var t=Le.inArray(n,v);-1<t&&(h.splice(t,1),v.splice(t,1),0===v[l]&&d&&(d=!1,r.autoUpdateLoop=d,c!==Se&&(He.cAF()(c),c=-1)))}}function v(i,n,t,kt,It){if(ot(i)){if(Re(i)){var r=Re(i);return r.options(n),r}var Ct,At,Ht,Nt,L,Et,Lt,Rt,R,sn,d,I,s,Dt,Mt,Wt,jt,Ft,p,f,Bt,Pt,Qt,Ut,Vt,qt,Xt,Yt,$t,Gt,e,o,Kt,Jt,Zt,u,D,a,M,nr,tr,rr,ir,er,or,ur,fr,ar,cr,sr,c,l,v,h,b,m,w,C,lr,vr,hr,A,dr,pr,br,mr,wr,gr,yr,xr,Or,Sr,_r,zr,Tr,kr,Ir,Cr,H,Ar,Hr,Nr,Er,Lr,Rr,Dr,Mr,Wr,jr,g,y,x,O,S,_,z,T,k,Fr,Br,Pr,Qr,Ur,Vr,qr,Xr,Yr,$r,Gr,N,Kr,E,W,Jr,j,Zr,F,B,ni,ti,ri,ii,ei,P,Q,U,oi,ui,fi,ai,ci,si=new ht[pt],V=Le[zt],li={},ln={},vn={},vi={},hi={},q="-hidden",di="margin-",pi="padding-",bi="border-",mi="top",wi="right",gi="bottom",yi="left",xi="min-",Oi="max-",Si="width",_i="height",zi="float",Ti="",ki="auto",Ii="scroll",Ci="100%",Ai="x",Hi="y",X=".",Ni=" ",Y="scrollbar",$="-horizontal",G="-vertical",Ei=Ii+"Left",Li=Ii+"Top",Ri="mousedown touchstart",K="mouseup touchend touchcancel",J="mousemove touchmove",Z="mouseenter",nn="mouseleave",tn="keydown",rn="keyup",en="selectstart",on="transitionend webkitTransitionEnd oTransitionEnd",un="__overlayScrollbarsRO__",fn="os-",an="os-html",cn="os-host",hn=cn+"-textarea",dn=cn+"-"+Y+$+q,pn=cn+"-"+Y+G+q,bn=cn+"-transition",Di=cn+"-rtl",Mi=cn+"-resize-disabled",Wi=cn+"-scrolling",ji=cn+"-overflow",Fi=ji+"-x",Bi=ji+"-y",mn="os-textarea",wn=mn+"-cover",gn="os-padding",yn="os-viewport",Pi=yn+"-native-scrollbars-invisible",xn=yn+"-native-scrollbars-overlaid",On="os-content",Qi="os-content-arrange",Ui="os-content-glue",Vi="os-size-auto-observer",Sn="os-resize-observer",_n="os-resize-observer-item",zn=_n+"-final",Tn="os-text-inherit",kn=fn+Y,In=kn+"-track",Cn=In+"-off",An=kn+"-handle",Hn=An+"-off",Nn=kn+"-unusable",En=kn+"-"+ki+q,Ln=kn+"-corner",qi=Ln+"-resize",Xi=qi+"-both",Yi=qi+$,$i=qi+G,Rn=kn+$,Dn=kn+G,Mn="os-dragging",Gi="os-theme-none",Wn=[],jn={},Ki={},Ji=42,Fn=[];if(si.sleep=function(){Gt=!0},si.update=function(n){var t,r,i=at(n)==gt,e=i&&"+"==n.slice(-1);i?0===n.indexOf(ki)?(t=function d(){if(Gt||Jr)return!1;var n=tr.attr(St)||Ti,t=me(n,g),r=tr.attr(Ot)||Ti,i=me(r,y),e=tr.attr(_e)||Ti,o=me(e,x),u=tr.is(":visible")||Ti,f=me(u,O),a=jt&&nr.attr("rows")||Ti,c=me(a,S),s=jt&&nr.attr("cols")||Ti,l=me(s,_),v=jt&&nr.attr("wrap")||Ti,h=me(v,z);return g=n,i&&(i=Kn(y,r)),y=r,x=e,O=u,S=a,_=s,z=v,t||i||o||f||c||l||h}(),r=function c(){if(Gt)return!1;var n,t,r,i,e=jt&&Or&&!Wr?nr.val().length:0,o=!Jr&&Or&&!jt,u={},f={};Dt&&(u={x:pr[Ae],y:pr[ke]}),o&&(n=ur.css(zi),f[zi]=$t?wi:yi,f[Si]=ki,ur.css(f));var a={w:pe()[Ae]+e,h:pe()[ke]+e};return o&&(f[zi]=n,f[Si]=Ci,ur.css(f)),t=ie(),r=we(a,T),i=we(u,N,Ai,Hi),T=a,N=u,r||t||i}(),(t||r||e)&&oe(!1,r,!1,e)):"zoom"===n&&oe(!0,!0):(n=Gt||n,oe(Gt=!1,!1,n,!0)),jt||ur.find("img").each(function(n,t){-1===He.inA(t,Fn)&&Le(t).off("load",Gn).on("load",Gn)})},si.options=function(n,t){if(Le.isEmptyObject(n)||!Le.isPlainObject(n)){if(at(n)!=gt)return o;if(1<arguments.length){var r={};return function a(n,t,r){for(var i=t.split(X),e=i.length,o=0,u={},f=u;o<e;o++)u=u[i[o]]=o+1<e?{}:r;Le.extend(n,f,!0)}(r,n,t),Jn(r),void oe()}return ft(o,n)}Jn(n);var i=Gt||!1;Gt=!1,oe(),Gt=i},si.destroy=function(){for(var n in Wt=!0,It.remove(si),te(),Qn(ir),Pt&&Qn(rr),jn)si.removeExt(n);re(!0),nt(!0),ar&&ct(ar),fr&&ct(fr),Pt&&ct(rr),tt(!0),it(!0),Zn(!0);for(var t=0;t<Fn[_t];t++)Le(Fn[t]).off("load",Gn);for(var r in Fn=Se,Re(i,0),ve("onDestroyed"),si)delete si[r];si=Se},si.scroll=function(n,t,r,i){if(0===arguments.length||n===Se){var e=ln,o=vn,u=Vr&&$t&&Ht.i,f=Vr&&$t&&Ht.n,a=e.C,c=e.A,s=e.H;return c=u?1-c:c,a=u?s-a:a,s*=f?-1:1,{position:{x:a*=f?-1:1,y:o.C},ratio:{x:c,y:o.A},max:{x:s,y:o.H},handleOffset:{x:e.N,y:o.N},handleLength:{x:e.L,y:o.L},handleLengthRatio:{x:e.R,y:o.R},trackLength:{x:e.D,y:o.D},snappedHandleOffset:{x:e.M,y:o.M},isRTL:$t,isRTLNormalized:Vr}}var l,v,h,d,p,w,g,b,m,y=Vr,x=[Ai,yi,"l"],O=[Hi,mi,"t"],S=["+=","-=","*=","/="],_=at(t)==bt,z=_?t.complete:i,T={},k={},I="begin",C="nearest",A="never",H="ifneeded",N=_t,E=[Ai,Hi,"xy","yx"],L=[I,"end","center",C],R=["always",A,H],D=n.hasOwnProperty("el"),M=D?n.el:n,W=!!(M instanceof Le||Ee)&&M instanceof Ee,j=!W&&ot(M),F=at(z)!=mt?Se:function(){v&&ce(!0),h&&ce(!1),z()},B=function(n,t){for(l=0;l<t[N];l++)if(n===t[l])return!0;return!1},P=function(n,t){var r=n?x:O;if(at(t=at(t)==gt||at(t)==xt?[t,t]:t)==wt)return n?t[0]:t[1];if(at(t)==bt)for(l=0;l<r[N];l++)if(r[l]in t)return t[r[l]]},Q=function(n,t){var r,i,e=at(t)==gt;e&&si.update(ki+"+");var o,u,f=n?ln:vn,a=f.C,c=f.H,s=$t&&n,l=s&&Ht.n&&!y,v="replace",h=eval;if((i=e?(2<t[N]&&(u=t.substr(0,2),-1<Le.inArray(u,S)&&(r=u)),t=(t=r?t.substr(2):t)[v](/min/g,0)[v](/</g,0)[v](/max/g,(l?"-":Ti)+Ci)[v](/>/g,(l?"-":Ti)+Ci)[v](/px/g,Ti)[v](/%/g," * "+c*(s&&Ht.n?-1:1)/100)[v](/vw/g," * "+vi.w)[v](/vh/g," * "+vi.h),de(isNaN(t)?de(h(t),!0).toFixed():t)):t)!==Se&&!isNaN(i)&&at(i)==xt){var d=y&&s,p=a*(d&&Ht.n?-1:1),b=d&&Ht.i,m=d&&Ht.n;switch(p=b?c-p:p,r){case"+=":o=p+i;break;case"-=":o=p-i;break;case"*=":o=p*i;break;case"/=":o=p/i;break;default:o=i}o=b?c-o:o,o*=m?-1:1,o=s&&Ht.n?Ne.min(0,Ne.max(c,o)):Ne.max(0,Ne.min(c,o))}return o===a?Se:o},U=function(n,t,r,i){var e,o,u=[r,r],f=at(n);if(f==t)n=[n,n];else if(f==wt){if(2<(e=n[N])||e<1)n=u;else for(1===e&&(n[1]=r),l=0;l<e;l++)if(at(o=n[l])!=t||!B(o,i)){n=u;break}}else n=f==bt?[n[Ai]||r,n[Hi]||r]:u;return{x:n[0],y:n[1]}},V=function(n){var t,r,i=[],e=[mi,wi,gi,yi];for(l=0;l<n[N]&&l!==e[N];l++)(r=at(t=n[l]))==yt?i.push(t?de(m.css(di+e[l])):0):i.push(r==xt?t:0);return i};if(W||j){var q,X=D?n.margin:0,Y=D?n.axis:0,$=D?n.scroll:0,G=D?n.block:0,K=[0,0,0,0],J=at(X);if(0===(m=W?M:Le(M))[N])return;si.update(ki+"+"),X=J==xt||J==yt?V([X,X,X,X]):J==wt?2===(q=X[N])?V([X[0],X[1],X[0],X[1]]):4<=q?V(X):K:J==bt?V([X[mi],X[wi],X[gi],X[yi]]):K,p=B(Y,E)?Y:"xy",w=U($,gt,"always",R),g=U(G,gt,I,L),b=X;var Z=ln.C,nn=vn.C,tn=er.offset(),rn=m.offset(),en={x:w.x==A||p==Hi,y:w.y==A||p==Ai};rn[mi]-=b[0],rn[yi]-=b[3];var on={x:Ne.round(rn[yi]-tn[yi]+Z),y:Ne.round(rn[mi]-tn[mi]+nn)};if($t&&(Ht.n||Ht.i||(on.x=Ne.round(tn[yi]-rn[yi]+Z)),Ht.n&&y&&(on.x*=-1),Ht.i&&y&&(on.x=Ne.round(tn[yi]-rn[yi]+(ln.H-Z)))),g.x!=I||g.y!=I||w.x==H||w.y==H||$t){var un=m[0],fn=sn?un.getBoundingClientRect():{width:un[Ie],height:un[ze]},an={w:fn[Si]+b[3]+b[1],h:fn[_i]+b[0]+b[2]},cn=function(n){var t=le(n),r=t.W,i=t.j,e=t.F,o=g[e]==(n&&$t?I:"end"),u="center"==g[e],f=g[e]==C,a=w[e]==A,c=w[e]==H,s=vi[r],l=tn[i],v=an[r],h=rn[i],d=u?2:1,p=h+v/2,b=l+s/2,m=v<=s&&l<=h&&h+v<=l+s;a?en[e]=!0:en[e]||((f||c)&&(en[e]=!!c&&m,o=v<s?b<p:p<b),on[e]-=o||u?(s/d-v/d)*(n&&$t&&y?-1:1):0)};cn(!0),cn(!1)}en.y&&delete on.y,en.x&&delete on.x,n=on}T[Ei]=Q(!0,P(!0,n)),T[Li]=Q(!1,P(!1,n)),v=T[Ei]!==Se,h=T[Li]!==Se,(v||h)&&(0<t||_)?_?(t.complete=F,or.animate(T,t)):(d={duration:t,complete:F},at(r)==wt||Le.isPlainObject(r)?(k[Ei]=r[0]||r.x,k[Li]=r[1]||r.y,d.specialEasing=k):d.easing=r,or.animate(T,d)):(v&&or[Ei](T[Ei]),h&&or[Li](T[Li]))},si.scrollStop=function(n,t,r){return or.stop(n,t,r),si},si.getElements=function(n){var t={target:lr,host:vr,padding:dr,viewport:pr,content:br,scrollbarHorizontal:{scrollbar:c[0],track:l[0],handle:v[0]},scrollbarVertical:{scrollbar:h[0],track:b[0],handle:m[0]},scrollbarCorner:sr[0]};return at(n)==gt?ft(t,n):t},si.getState=function(n){var t=function(n){if(!Le.isPlainObject(n))return n;var r=ye({},n),t=function(n,t){r.hasOwnProperty(n)&&(r[t]=r[n],delete r[n])};return t("w",Si),t("h",_i),delete r.c,r},r={sleeping:t(Gt)||!1,autoUpdate:t(!Jr),widthAuto:t(Or),heightAuto:t(Sr),padding:t(Tr),overflowAmount:t(Lr),hideOverflow:t(xr),hasOverflow:t(yr),contentScrollSize:t(wr),viewportSize:t(vi),hostSize:t(mr),documentMixed:t(p)};return at(n)==gt?ft(r,n):r},si.ext=function(n){var t,r="added removed on contract".split(" "),i=0;if(at(n)==gt){if(jn.hasOwnProperty(n))for(t=ye({},jn[n]);i<r.length;i++)delete t[r[i]]}else for(i in t={},jn)t[i]=ye({},si.ext(i));return t},si.addExt=function(n,t){var r,i,e,o,u=ht[pt].extension(n),f=!0;if(u){if(jn.hasOwnProperty(n))return si.ext(n);if((r=u.extensionFactory.call(si,ye({},u.defaultOptions),Le,He))&&(at(e=r.contract)==mt&&(f=at(o=e(ht))==yt?o:f),f))return at(i=(jn[n]=r).added)==mt&&i(t),si.ext(n)}else console.warn('A extension with the name "'+n+"\" isn't registered.")},si.removeExt=function(n){var t,r=jn[n];return!!r&&(delete jn[n],at(t=r.removed)==mt&&t(),!0)},function lt(n,t,r){return e=kt.defaultOptions,Et=kt.nativeScrollbarStyling,Rt=ye({},kt.nativeScrollbarSize),Ct=ye({},kt.nativeScrollbarIsOverlaid),At=ye({},kt.overlayScrollbarDummySize),Ht=ye({},kt.rtlScrollBehavior),Jn(ye({},e,vt.I(t,vt.k,!0))),Ct.x&&Ct.x&&!Kt.nativeScrollbarsOverlaid.initialize?(ve("onInitializationWithdrawn"),!1):(Lt=kt.cssCalc,L=kt.msie,Nt=kt.autoUpdateRecommended,R=kt.supportTransition,sn=kt.supportTransform,d=kt.supportPassiveEvents,I=kt.supportResizeObserver,s=kt.supportMutationObserver,Dt=kt.restrictedMeasuring,D=Le(n.ownerDocument),C=D[0],u=Le(C.defaultView||C.parentWindow),w=u[0],a=st(D,"html"),M=st(a,"body"),nr=Le(n),lr=nr[0],jt=nr.is("textarea"),Ft=nr.is("body"),p=C!==dt,Ft&&((i={}).l=Ne.max(nr[Ei](),a[Ei](),u[Ei]()),i.t=Ne.max(nr[Li](),a[Li](),u[Li]())),Zn(),nt(),tt(),rt(!0),rt(!1),it(),function c(){var t=w.top!==w,i={},e={},o={};function r(n){if(f(n)){var t=a(n),r={};(fi||ui)&&(r[Si]=e.w+(t.x-i.x)*o.x),(ai||ui)&&(r[_i]=e.h+(t.y-i.y)*o.y),tr.css(r),He.stpP(n)}else u(n)}function u(n){var t=n!==Se;D.off(en,$n).off(J,r).off(K,u),Oe(M,Mn),sr.releaseCapture&&sr.releaseCapture(),t&&(U&&ne(),si.update(ki)),U=!1}function f(n){var t=(n.originalEvent||n).touches!==Se;return!Gt&&!Wt&&(1===He.mBtn(n)||t)}function a(n){return L&&t?{x:n.screenX,y:n.screenY}:He.page(n)}ci=function(n){f(n)&&(Jr&&(U=!0,te()),i=a(n),e.w=vr[Ie]-(Bt?0:Qt),e.h=vr[ze]-(Bt?0:Ut),o=et(),D.on(en,$n).on(J,r).on(K,u),xe(M,Mn),sr.setCapture&&sr.setCapture(),He.prvD(n),He.stpP(n))}}(),Un(),Ft&&(or[Ei](i.l)[Li](i.t),dt.activeElement==n&&pr.focus&&(or.attr("tabindex","-1"),pr.focus(),or.one(Ri,function(){or.removeAttr("tabindex")}))),Zi(ir,Vn),Vn(),si.update(ki),Mt=!0,ve("onInitialized"),Le.each(Wn,function(n,t){ve(t.n,t.a)}),Wn=[],at(r)==gt&&(r=[r]),He.isA(r)?Le.each(r,function(n,t){si.addExt(t)}):Le.isPlainObject(r)&&Le.each(r,function(n,t){si.addExt(n,t)}),setTimeout(function(){R&&!Wt&&xe(tr,bn)},333),Mt);var i}(i,n,t))return Re(i,si),si;si=Se}function Bn(n,t,r){for(var i=t.split(Ni),e=0;e<i.length;e++)n[0].addEventListener(i[e],r,{passive:!0})}function Pn(n,t,r){for(var i=t.split(Ni),e=0;e<i.length;e++)n[0].removeEventListener(i[e],r,{passive:!0})}function Zi(e,n){var o=3333333,t=He.rO(),r="animationstart mozAnimationStart webkitAnimationStart MSAnimationStart",i="childNodes",u=function(){e[Li](o)[Ei]($t?Ht.n?-o:Ht.i?0:o:o),n()};if(I){var f=e.append(be(Sn+" observed")).contents()[0];(f[un]=new t(u)).observe(f)}else if(9<L||!Nt){e.prepend(be(Sn,be({className:_n,dir:"ltr"},be(_n,be(zn))+be(_n,be({className:zn,style:"width: 200%; height: 200%"})))));var a,c,s,l,v=e[0][i][0][i][0],h=Le(v[i][1]),d=Le(v[i][0]),p=Le(d[0][i][0]),b=v[Ie],m=v[ze],w=kt.nativeScrollbarSize,g=function(){d[Ei](o)[Li](o),h[Ei](o)[Li](o)},y=function(){c=0,a&&(b=s,m=l,u())},x=function(n){return s=v[Ie],l=v[ze],a=s!=b||l!=m,n&&a&&!c?(He.cAF()(c),c=He.rAF()(y)):n||y(),g(),n&&(He.prvD(n),He.stpP(n)),!1},O={},S={};he(S,Ti,[-2*(w.y+1),-2*w.x,-2*w.y,-2*(w.x+1)]),Le(v).css(S),d.on(Ii,x),h.on(Ii,x),e.on(r,function(){x(!1)}),O[Si]=o,O[_i]=o,p.css(O),g()}else{var _=C.attachEvent,z=L!==Se;if(_)e.prepend(be(Sn)),st(e,X+Sn)[0].attachEvent("onresize",u);else{var T=C.createElement(bt);T.setAttribute("tabindex","-1"),T.setAttribute(Ot,Sn),T.onload=function(){var n=this.contentDocument.defaultView;n.addEventListener("resize",u),n.document.documentElement.style.display="none"},T.type="text/html",z&&e.prepend(T),T.data="about:blank",z||e.prepend(T),e.on(r,u)}}if(e[0]===A){var k=function(){var n=tr.css("direction"),t={},r=0,i=!1;return n!==H&&(r="ltr"===n?(t[yi]=0,t[wi]=ki,o):(t[yi]=ki,t[wi]=0,Ht.n?-o:Ht.i?0:o),ir.children().eq(0).css(t),e[Ei](r)[Li](o),H=n,i=!0),i};k(),e.on(Ii,function(n){return k()&&oe(),He.prvD(n),He.stpP(n),!1})}}function Qn(n){if(I){var t=n.contents()[0];t[un].disconnect(),delete t[un]}else ct(n.children(X+Sn).eq(0))}function Un(){if(s){var i,e,r,o,u,f,n=He.mO(),a=He.now();E=new n(function(n){if(Mt&&!Gt){var t,r=!1;Le.each(n,function(){if(i=(t=this).target,e=t.attributeName,r=e===Ot?Kn(t.oldValue,i.className):e!==_e||t.oldValue!==i[_e].cssText)return!1}),r&&si.update(ki)}}),W=new n(function(n){if(Mt&&!Gt){var t=!1;Le.each(n,function(){return!(t=function o(n){var t=n.attributeName,r=n.target,i=n.type,e="closest";if(r===br)return null===t;if("attributes"===i&&(t===Ot||t===_e)&&!jt){if(t===Ot&&Le(r).hasClass(cn))return Kn(n.oldValue,r.getAttribute(Ot));if(typeof r[e]!=mt)return!0;if(null!==r[e](X+Sn)||null!==r[e](X+kn)||null!==r[e](X+Ln))return!1}return!0}(this))}),t&&(o=He.now(),u=Sr||Or,f=function(){Wt||(a=o,jt&&ee(),u?oe():si.update(ki))},clearTimeout(r),11<o-a||!u?f():r=setTimeout(f,11))}})}}function ne(){s&&!Jr&&(E.observe(vr,{attributes:!0,attributeOldValue:!0,attributeFilter:[St,Ot,_e]}),W.observe(jt?lr:br,{attributes:!0,attributeOldValue:!0,subtree:!jt,childList:!jt,characterData:!jt,attributeFilter:jt?["wrap","cols","rows"]:[St,Ot,_e]}),Jr=!0)}function te(){s&&Jr&&(E.disconnect(),W.disconnect(),Jr=!1)}function Vn(){if(!Gt){var n,t={w:A[Ae],h:A[ke]};Mt?(n=we(t,k),k=t,n&&oe(!0,!1)):k=t}}function qn(){ei&&fe(!0)}function Xn(){ei&&!M.hasClass(Mn)&&fe(!1)}function Yn(){ii&&(fe(!0),clearTimeout(B),B=setTimeout(function(){ii&&!Wt&&fe(!1)},100))}function re(n){var i=n?Pn:Bn,e=n?"off":"on",t=function(n,t,r){d?i(n,t,r):n[e](t,r)};ii&&!n?t(tr,J,Yn):(n&&t(tr,J,Yn),t(tr,Z,qn),t(tr,nn,Xn)),Mt||n||tr.one("mouseover",qn)}function $n(n){return He.prvD(n),!1}function Gn(){oe(!1,!0)}function ie(){var n={};return Ft&&fr&&(n.w=de(fr.css(xi+Si)),n.h=de(fr.css(xi+_i)),n.c=we(n,Gr),n.f=!0),(Gr=n).c||!1}function Kn(n,t){var r=t!==Se&&null!==t?t.split(Ni):Ti,i=n!==Se&&null!==n?n.split(Ni):Ti;if(r===Ti&&i===Ti)return!1;var e,o,u,f,a,c=function d(n,t){var r,i,e=[],o=[];for(r=0;r<n.length;r++)e[n[r]]=!0;for(r=0;r<t.length;r++)e[t[r]]?delete e[t[r]]:e[t[r]]=!0;for(i in e)o.push(i);return o}(i,r),s=!1,l=Xr!==Se&&null!==Xr?Xr.split(Ni):[Ti],v=qr!==Se&&null!==qr?qr.split(Ni):[Ti],h=Le.inArray(Gi,c);for(-1<h&&c.splice(h,1),o=0;o<c.length;o++)if(0!==(e=c[o]).indexOf(cn)){for(a=f=!0,u=0;u<l.length;u++)if(e===l[u]){f=!1;break}for(u=0;u<v.length;u++)if(e===v[u]){a=!1;break}if(f&&a){s=!0;break}}return s}function ee(){if(!Gt){var n,t,r,i,e=!Wr,o=vi.w,u=vi.h,f={},a=Or||e;return f[xi+Si]=Ti,f[xi+_i]=Ti,f[Si]=ki,nr.css(f),n=lr[Ie],t=a?Ne.max(n,lr[Ae]-1):1,f[Si]=Or?ki:Ci,f[xi+Si]=Ci,f[_i]=ki,nr.css(f),r=lr[ze],i=Ne.max(r,lr[ke]-1),f[Si]=t,f[_i]=i,cr.css(f),f[xi+Si]=o,f[xi+_i]=u,nr.css(f),{B:n,P:r,U:t,V:i}}}function oe(n,t,r,i){var e=He.now(),o=0<Ji&&Mt&&e-Jt<Ji&&!Sr&&!Or&&!i,u=tr.is(":hidden"),f=me(u,Kr,r);if(Kr=u,clearTimeout(Zt),o&&(Ki.h=Ki.h||n,Ki.c=Ki.c||t,Ki.f=Ki.f||r,Zt=setTimeout(oe,Ji)),!(Wt||o||Gt||Mt&&!r&&u||"inline"===tr.css("display"))){Jt=e,n=n||Ki.h,t=t||Ki.c,r=r||Ki.f,Ki={},n=n!==Se&&n,t=t!==Se&&t,r=r!==Se&&r,!Et||Ct.x&&Ct.y?Rt=ye({},kt.nativeScrollbarSize):(Rt.x=0,Rt.y=0),hi={x:3*(Rt.x+(Ct.x?0:3)),y:3*(Rt.y+(Ct.y?0:3))};var a={x:or[Ei](),y:or[Li]()},c=Kt.scrollbars,s=Kt.textarea,l=c.visibility,v=me(l,Fr,r),h=c.autoHide,d=me(h,Br,r),p=c.clickScrolling,b=me(p,Pr,r),m=c.dragScrolling,w=me(m,Qr,r),g=Kt.className,y=me(g,qr,r),x=Kt.resize,O=me(x,Ur,r)&&!Ft,S=!!jt&&"off"!==nr.attr("wrap"),_=me(S,Wr,r),z=Kt.paddingAbsolute,T=me(z,Ar,r),k=Kt.clipAlways,I=me(k,Hr,r),C=Kt.sizeAutoCapable&&!Ft,A=me(C,Mr,r),H=Kt.nativeScrollbarsOverlaid.showNativeScrollbars,N=me(H,Rr),E=Kt.autoUpdate,L=me(E,Dr),R=Kt.overflowBehavior,D=we(R,Er,Ai,Hi,r),M=s.dynWidth,W=me($r,M),j=s.dynHeight,F=me(Yr,j);if(ti="n"===h,ri="s"===h,ii="m"===h,ei="l"===h,ni=c.autoHideDelay,Xr=qr,oi="n"===x,ui="b"===x,fi="h"===x,ai="v"===x,Vr=Kt.normalizeRTL,H=H&&Ct.x&&Ct.y,Fr=l,Br=h,Pr=p,Qr=m,qr=g,Ur=x,Wr=S,Ar=z,Hr=k,Mr=C,Rr=H,Dr=E,Er=ye({},R),$r=M,Yr=j,yr=yr||{x:!1,y:!1},y&&(Oe(tr,Xr+Ni+Gi),xe(tr,g!==Se&&null!==g&&0<g.length?g:Gi)),L&&(!0===E?(te(),It.add(si)):null===E&&Nt?(te(),It.add(si)):(It.remove(si),ne())),A)if(C)if(ar?ar.show():(ar=Le(be(Ui)),er.before(ar)),Pt)rr.show();else{rr=Le(be(Vi)),hr=rr[0],ar.before(rr);var B={w:-1,h:-1};Zi(rr,function(){var n={w:hr[Ie],h:hr[ze]};we(n,B)&&(Mt&&Sr&&0<n.h||Or&&0<n.w?oe():(Mt&&!Sr&&0===n.h||!Or&&0===n.w)&&oe()),B=n}),Pt=!0,null!==Lt&&rr.css(_i,Lt+"(100% + 1px)")}else Pt&&rr.hide(),ar&&ar.hide();r&&(ir.find("*").trigger(Ii),Pt&&rr.find("*").trigger(Ii));var P,Q=tr.css("direction"),U=me(Q,Cr,r),V=tr.css("box-sizing"),q=me(V,zr,r),X={c:r,t:de(tr.css(pi+mi)),r:de(tr.css(pi+wi)),b:de(tr.css(pi+gi)),l:de(tr.css(pi+yi))};try{P=Pt?hr.getBoundingClientRect():null}catch(zt){return}Bt="border-box"===V;var Y=($t="rtl"===Q)?yi:wi,$=$t?wi:yi,G=!1,K=!(!Pt||"none"===tr.css(zi))&&(0===Ne.round(P.right-P.left)&&(!!z||0<vr[Ce]-Qt));if(C&&!K){var J=vr[Ie],Z=ar.css(Si);ar.css(Si,ki);var nn=vr[Ie];ar.css(Si,Z),(G=J!==nn)||(ar.css(Si,J+1),nn=vr[Ie],ar.css(Si,Z),G=J!==nn)}var tn=(K||G)&&C&&!u,rn=me(tn,Or,r),en=!tn&&Or,on=!(!Pt||!C||u)&&0===Ne.round(P.bottom-P.top),un=me(on,Sr,r),fn=!on&&Sr,an="-"+Si,cn=tn&&Bt||!Bt,sn=on&&Bt||!Bt,ln={c:r,t:sn?de(tr.css(bi+mi+an),!0):0,r:cn?de(tr.css(bi+wi+an),!0):0,b:sn?de(tr.css(bi+gi+an),!0):0,l:cn?de(tr.css(bi+yi+an),!0):0},vn={c:r,t:de(tr.css(di+mi)),r:de(tr.css(di+wi)),b:de(tr.css(di+gi)),l:de(tr.css(di+yi))},hn={h:String(tr.css(Oi+_i)),w:String(tr.css(Oi+Si))},dn={},pn={},bn=function(){return{w:vr[Ce],h:vr[Te]}},mn=function(){return{w:dr[Ie]+Ne.max(0,br[Ce]-br[Ae]),h:dr[ze]+Ne.max(0,br[Te]-br[ke])}},wn=Qt=X.l+X.r,gn=Ut=X.t+X.b;if(wn*=z?1:0,gn*=z?1:0,X.c=ge(X,Tr),Vt=ln.l+ln.r,qt=ln.t+ln.b,ln.c=ge(ln,kr),Xt=vn.l+vn.r,Yt=vn.t+vn.b,vn.c=ge(vn,Ir),hn.ih=de(hn.h),hn.iw=de(hn.w),hn.ch=-1<hn.h.indexOf("px"),hn.cw=-1<hn.w.indexOf("px"),hn.c=we(hn,_r,r),Cr=Q,zr=V,Or=tn,Sr=on,Tr=X,kr=ln,Ir=vn,_r=hn,U&&Pt&&rr.css(zi,$),X.c||U||T||rn||un||q||A){var yn={},xn={};he(pn,di,[-X.t,-X.r,-X.b,-X.l]),z?(he(yn,Ti,[X.t,X.r,X.b,X.l]),he(jt?xn:dn,pi)):(he(yn,Ti),he(jt?xn:dn,pi,[X.t,X.r,X.b,X.l])),er.css(yn),nr.css(xn)}vi=mn();var On=!!jt&&ee(),Sn=jt&&On?{w:M?On.U:On.B,h:j?On.V:On.P}:{};if(on&&(un||T||q||hn.c||X.c||ln.c)?(dn[Oi+_i]=hn.ch?hn.ih-gn+(Bt?-qt:Ut):Ti,dn[_i]=ki):(un||T)&&(dn[Oi+_i]=Ti,dn[_i]=Ci),tn&&(rn||T||q||hn.c||X.c||ln.c||U)?(dn[Oi+Si]=hn.cw?hn.iw-wn+(Bt?-Vt:Qt)+(Ct.y?At.y:0):Ti,dn[Si]=ki,pn[Oi+Si]=Ci):(rn||T)&&(dn[Oi+Si]=Ti,dn[Si]=Ci,dn[zi]=Ti,pn[Oi+Si]=Ti),tn?(hn.cw||(dn[Oi+Si]=Ti),pn[Si]=ki,dn[Si]=ki,dn[zi]=$):pn[Si]=Ti,pn[_i]=on?(hn.ch||(dn[Oi+_i]=Ti),Sn.h||br[Te]):Ti,C&&ar.css(pn),ur.css(dn),dn={},pn={},n||t||U||q||T||rn||tn||un||on||hn.c||N||D||I||O||v||d||w||b||W||F||_||r){var _n="overflow",zn=_n+"-x",Tn=_n+"-y",kn=Dt?Ct.x||Ct.y||vi.w<hi.y||vi.h<hi.x||on||f:on,In={},Cn=yr.y&&xr.ys&&!H?Ct.y?or.css(Y):-Rt.y:0,An=yr.x&&xr.xs&&!H?Ct.x?or.css(gi):-Rt.x:0;he(In,Ti),or.css(In),kn&&ur.css(_n,"hidden");var Hn=pe(),Nn=Dt&&!kn?pr:Hn,En={w:Sn.w||Hn[Ce],h:Sn.h||Hn[Te]},Ln=Ne.max(Hn[Ae],Nn[Ae]),Rn=Ne.max(Hn[ke],Nn[ke]);In[gi]=fn?Ti:An,In[Y]=en?Ti:Cn,or.css(In),vi=mn();var Dn=bn(),Mn={w:Ne.max((tn?En.w:Ln)+wn,Dn.w),h:Ne.max((on?En.h:Rn)+gn,Dn.h)};if(Mn.c=we(Mn,Nr,r),Nr=Mn,C){(Mn.c||on||tn)&&(pn[Si]=Mn.w,pn[_i]=Mn.h,jt||(En={w:Hn[Ce],h:Hn[Te]}));var Wn={},jn=function(n){var t=le(n),r=t.W,i=t.X,e=n?tn:on,o=n?Vt:qt,u=n?Qt:Ut,f=n?Xt:Yt,a=pn[i]+(Bt?o:-u);(!e||!e&&ln.c)&&(pn[i]=Dn[r]-(Bt?0:u+o)-1-f),e&&hn["c"+r]&&hn["i"+r]===a&&(pn[i]=a+(Bt?0:u)+1),e&&En[r]<vi[r]&&(!n||jt&&!S)&&(jt&&(Wn[i]=de(cr.css(i))-1),pn[i]-=1),0<En[r]&&(pn[i]=Ne.max(1,pn[i]))};jn(!0),jn(!1),jt&&cr.css(Wn),ar.css(pn)}tn&&(dn[Si]=Ci),!tn||Bt||Jr||(dn[zi]="none"),ur.css(dn),dn={};var Fn={w:Ne.max(Hn[Ae],Nn[Ae]),h:Ne.max(Hn[ke],Nn[ke])};Fn.c=t=we(Fn,wr,r),wr=Fn,kn&&ur.css(_n,Ti),vi=mn(),n=we(Dn=bn(),mr),mr=Dn;var Bn=jt&&(0===vi.w||0===vi.h),Pn=Lr,Qn={},Un={},Vn={},qn={},Xn={},Yn={},$n={},Gn=dr.getBoundingClientRect(),Kn=function(n){var t=le(n),r=le(!n).F,i=t.F,e=t.W,o=t.X,u=Ii+t.Y+"Max",f=Gn[o]?Ne.abs(Gn[o]-vi[e]):0;Qn[i]="v-s"===R[i],Un[i]="v-h"===R[i],Vn[i]="s"===R[i],qn[i]=Ne.max(0,Ne.round(100*(Fn[e]-vi[e]))/100),qn[i]*=Bn||0===pr[u]&&0<f&&f<1?0:1,Xn[i]=0<qn[i],Yn[i]=Qn[i]||Un[i]?Xn[r]&&!Qn[r]&&!Un[r]:Xn[i],Yn[i+"s"]=!!Yn[i]&&(Vn[i]||Qn[i]),$n[i]=Xn[i]&&Yn[i+"s"]};if(Kn(!0),Kn(!1),qn.c=we(qn,Lr,Ai,Hi,r),Lr=qn,Xn.c=we(Xn,yr,Ai,Hi,r),yr=Xn,Yn.c=we(Yn,xr,Ai,Hi,r),xr=Yn,Ct.x||Ct.y){var Jn,Zn={},nt={},tt=r;(Xn.x||Xn.y)&&(nt.w=Ct.y&&Xn.y?Fn.w+At.y:Ti,nt.h=Ct.x&&Xn.x?Fn.h+At.x:Ti,tt=me(nt,gr,r),gr=nt),(Xn.c||Yn.c||Fn.c||U||rn||un||tn||on||N)&&(dn[di+$]=dn[bi+$]=Ti,Jn=function(n){var t=le(n),r=le(!n),i=t.F,e=n?gi:Y,o=n?on:tn;Ct[i]&&Xn[i]&&Yn[i+"s"]?(dn[di+e]=o?H?Ti:At[i]:Ti,dn[bi+e]=n&&o||H?Ti:At[i]+"px solid transparent"):(nt[r.W]=dn[di+e]=dn[bi+e]=Ti,tt=!0)},Et?H?Oe(or,Pi):xe(or,Pi):(Jn(!0),Jn(!1))),H&&(nt.w=nt.h=Ti,tt=!0),tt&&!Et&&(Zn[Si]=Yn.y?nt.w:Ti,Zn[_i]=Yn.x?nt.h:Ti,fr||(fr=Le(be(Qi)),or.prepend(fr)),fr.css(Zn)),ur.css(dn)}var rt,it={};yn={};if((n||Xn.c||Yn.c||Fn.c||D||q||N||U||I||un)&&(it[$]=Ti,(rt=function(n){var t=le(n),r=le(!n),i=t.F,e=t.$,o=n?gi:Y,u=function(){it[o]=Ti,li[r.W]=0};Xn[i]&&Yn[i+"s"]?(it[_n+e]=Ii,H||Et?u():(it[o]=-(Ct[i]?At[i]:Rt[i]),li[r.W]=Ct[i]?At[r.F]:0)):(it[_n+e]=Ti,u())})(!0),rt(!1),!Et&&(vi.h<hi.x||vi.w<hi.y)&&(Xn.x&&Yn.x&&!Ct.x||Xn.y&&Yn.y&&!Ct.y)?(it[pi+mi]=hi.x,it[di+mi]=-hi.x,it[pi+$]=hi.y,it[di+$]=-hi.y):it[pi+mi]=it[di+mi]=it[pi+$]=it[di+$]=Ti,it[pi+Y]=it[di+Y]=Ti,Xn.x&&Yn.x||Xn.y&&Yn.y||Bn?jt&&Bn&&(yn[zn]=yn[Tn]="hidden"):(!k||Un.x||Qn.x||Un.y||Qn.y)&&(jt&&(yn[zn]=yn[Tn]=Ti),it[zn]=it[Tn]="visible"),er.css(yn),or.css(it),it={},(Xn.c||q||rn||un)&&(!Ct.x||!Ct.y))){var et=br[_e];et.webkitTransform="scale(1)",et.display="run-in",br[ze],et.display=Ti,et.webkitTransform=Ti}if(dn={},U||rn||un)if($t&&tn){var ot=ur.css(zi),ut=Ne.round(ur.css(zi,Ti).css(yi,Ti).position().left);ur.css(zi,ot),ut!==Ne.round(ur.position().left)&&(dn[yi]=ut)}else dn[yi]=Ti;if(ur.css(dn),jt&&t){var ft=function Tt(){var n=lr.selectionStart;if(n===Se)return;var t,r,i="length",e=nr.val(),o=e[i],u=e.split("\n"),f=u[i],a=e.substr(0,n).split("\n"),c=0,s=0,l=a[i],v=a[a[i]-1][i];for(r=0;r<u[i];r++)t=u[r][i],s<t&&(c=r+1,s=t);return{G:l,K:v,J:f,Z:s,nn:c,tn:n,rn:o}}();if(ft){var at=jr===Se||ft.J!==jr.J,ct=ft.G,st=ft.K,lt=ft.nn,vt=ft.J,ht=ft.Z,dt=ft.tn,pt=ft.rn<=dt&&Zr,bt={x:S||st!==ht||ct!==lt?-1:Lr.x,y:(S?pt||at&&Pn!==Se&&a.y===Pn.y:(pt||at)&&ct===vt)?Lr.y:-1};a.x=-1<bt.x?$t&&Vr&&Ht.i?0:bt.x:a.x,a.y=-1<bt.y?bt.y:a.y}jr=ft}$t&&Ht.i&&Ct.y&&Xn.x&&Vr&&(a.x+=li.w||0),tn&&tr[Ei](0),on&&tr[Li](0),or[Ei](a.x)[Li](a.y);var mt="v"===l,wt="h"===l,gt="a"===l,yt=He.bind(ue,0,!0,!0,$n.x),xt=He.bind(ue,0,!1,!0,$n.y),Ot=He.bind(ue,0,!0,!1,$n.x),St=He.bind(ue,0,!1,!1,$n.y);if(Yn.x||Yn.y?xe(tr,ji):Oe(tr,ji),Yn.x?xe(tr,Fi):Oe(tr,Fi),Yn.y?xe(tr,Bi):Oe(tr,Bi),U&&($t?xe(tr,Di):Oe(tr,Di)),Ft&&xe(tr,Mi),O){var _t=function(){sr.off(Ri,ci)};Oe(sr,[Mi,qi,Xi,Yi,$i].join(Ni)),oi?(xe(tr,Mi),_t()):(xe(sr,qi),ui?xe(sr,Xi):fi?xe(sr,Yi):ai&&xe(sr,$i),_t(),sr.on(Ri,ci))}(v||D||Yn.c||Xn.c||N)&&(H?N&&(Oe(tr,Wi),H&&(Ot(),St())):gt?($n.x?yt():Ot(),$n.y?xt():St()):mt?(yt(),xt()):wt&&(Ot(),St())),(d||N)&&(ei||ii?(re(!0),re()):re(!0),ti?fe(!0):fe(!1,!0)),(n||qn.c||un||rn||O||q||T||N||U)&&(ae(!0),ce(!0),ae(!1),ce(!1)),b&&se(!0,p),w&&se(!1,m),U&&ve("onDirectionChanged",{isRTL:$t,dir:Q}),n&&ve("onHostSizeChanged",{width:mr.w,height:mr.h}),t&&ve("onContentSizeChanged",{width:wr.w,height:wr.h}),(Xn.c||Yn.c)&&ve("onOverflowChanged",{x:Xn.x,y:Xn.y,xScrollable:Yn.xs,yScrollable:Yn.ys,clipped:Yn.x||Yn.y}),qn.c&&ve("onOverflowAmountChanged",{x:qn.x,y:qn.y})}Ft&&(yr.c||Gr.c)&&(Gr.f||ie(),Ct.y&&yr.x&&ur.css(xi+Si,Gr.w+At.y),Ct.x&&yr.y&&ur.css(xi+_i,Gr.h+At.x),Gr.c=!1),ve("onUpdated",{forced:r})}}function Jn(n){o=ye({},o,vt.I(n,vt.k,!0)),Kt=ye({},Kt,vt.I(n,vt.k,!1,!0))}function Zn(i){var n=Kt.textarea.inheritedAttrs,e={},t=function(){var r=i?nr:tr;Le.each(e,function(n,t){at(t)==gt&&(n==Ot?r.addClass(t):r.attr(n,t))})},r=[cn,hn,Mi,Di,dn,pn,bn,Wi,ji,Fi,Bi,Gi,mn,Tn,qr].join(Ni);if(at(n=at(n)==gt?n.split(" "):n)==wt&&Le.each(n,function(n,t){at(t)==gt&&(e[t]=i?tr.attr(t):nr.attr(t))}),i)ur.contents().unwrap().unwrap().unwrap(),Oe(tr,r),jt?(nr.removeAttr(_e),f&&t(),Oe(nr,r),ct(cr),f?(nr.unwrap(),ct(tr)):xe(tr,hn)):Oe(nr,cn),Ft&&Oe(a,an),ct(ir);else{if(jt){var o={},u=nr.parent();f=!(u.hasClass(hn)&&1===u.children()[_t]),Kt.sizeAutoCapable||(o[Si]=nr.css(Si),o[_i]=nr.css(_i)),f&&nr.wrap(be(hn)),(tr=nr.parent()).css(o).wrapInner(be(On+Ni+Tn)).wrapInner(be(yn+Ni+Tn)).wrapInner(be(gn+Ni+Tn)),ur=st(tr,X+On),or=st(tr,X+yn),er=st(tr,X+gn),cr=Le(be(wn)),ur.prepend(cr),xe(nr,mn+Ni+Tn),f&&t()}else(tr=nr).wrapInner(be(On)).wrapInner(be(yn)).wrapInner(be(gn)),ur=st(tr,X+On),or=st(tr,X+yn),er=st(tr,X+gn),xe(nr,cn);Et&&xe(or,Pi),Ct.x&&Ct.y&&xe(or,xn),Ft&&xe(a,an),ir=Le(be("os-resize-observer-host")),tr.prepend(ir),A=ir[0],vr=tr[0],dr=er[0],pr=or[0],br=ur[0]}}function nt(n){var r,t,i,e,o=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],u=[],f=n?"off":"on";!n&&jt&&(i=function(n){ee(),si.update(ki),n&&clearInterval(r)},(j={})[Ii]=function(n){return nr[Ei](Ht.i&&Vr?9999999:0),nr[Li](0),He.prvD(n),He.stpP(n),!1},j.drop=function(){setTimeout(function(){Wt||i()},50)},j.focus=function(){Zr=!0},j.focusout=function(){i(!(Zr=!(u=[])))},9<L||!Nt?j.input=function(){i()}:(j[tn]=function(n){var t=n.keyCode;-1<Le.inArray(t,o)||(u.length||(i(),r=setInterval(i,1e3/60)),-1===Le.inArray(t,u)&&u.push(t))},j[rn]=function(n){var t=n.keyCode,r=Le.inArray(t,u);-1<Le.inArray(t,o)||(-1<r&&u.splice(r,1),u.length||i(!0))})),jt?Le.each(j,function(n,t){nr[f](n,t)}):ur[f](on,function(n){!0!==Dr&&function l(n){if(!Mt)return!0;var t="flex-grow",r="flex-shrink",i="flex-basis",e=[Si,xi+Si,Oi+Si,di+yi,di+wi,yi,wi,"font-weight","word-spacing",t,r,i],o=[pi+yi,pi+wi,bi+yi+Si,bi+wi+Si],u=[_i,xi+_i,Oi+_i,di+mi,di+gi,mi,gi,"line-height",t,r,i],f=[pi+mi,pi+gi,bi+mi+Si,bi+gi+Si],a="s"===Er.x||"v-s"===Er.x,c=!1,s=function(n,t){for(var r=0;r<n[_t];r++)if(n[r]===t)return!0;return!1};return("s"===Er.y||"v-s"===Er.y)&&((c=s(u,n))||Bt||(c=s(f,n))),a&&!c&&((c=s(e,n))||Bt||(c=s(o,n))),c}((n=n.originalEvent||n).propertyName)&&oe(ki)}),n||(e=function(n){Gt||(t!==Se?clearTimeout(t):((ri||ii)&&fe(!0),ut()||xe(tr,Wi),ve("onScrollStart",n)),Q||(ce(!0),ce(!1)),ve("onScroll",n),t=setTimeout(function(){Wt||(clearTimeout(t),t=Se,(ri||ii)&&fe(!1),ut()||Oe(tr,Wi),ve("onScrollStop",n))},175))},d?Bn(or,Ii,e):or.on(Ii,e))}function tt(n){n?(ct(c),ct(h)):(c=Le(be(kn+Ni+Rn)),l=Le(be(In)),v=Le(be(An)),h=Le(be(kn+Ni+Dn)),b=Le(be(In)),m=Le(be(An)),c.append(l),l.append(v),h.append(b),b.append(m),er.after(h),er.after(c))}function rt(O){var S,e,_,z,r=le(O),T=r["in"],t=w.top!==w,k=r.F,i=r.$,I=Ii+r.Y,o="active",u="snapHandle",C=1,f=[16,17];function a(n){return L&&t?n["screen"+i]:He.page(n)[k]}function c(n){return Kt.scrollbars[n]}function s(){C=.5}function l(){C=1}function v(n){-1<Le.inArray(n.keyCode,f)&&s()}function A(n){-1<Le.inArray(n.keyCode,f)&&l()}function H(n){var t=(n.originalEvent||n).touches!==Se;return!(Gt||Wt||ut()||!Qr||t&&!c("touchSupport"))&&(1===He.mBtn(n)||t)}function h(n){if(H(n)){var t=T.D,r=T.L,i=T.H*((a(n)-_)*z/(t-r));i=isFinite(i)?i:0,$t&&O&&!Ht.i&&(i*=-1),or[I](Ne.round(e+i)),Q&&ce(O,e+i),d||He.prvD(n)}else N(n)}function N(n){if(n=n||n.originalEvent,D.off(J,h).off(K,N).off(tn,v).off(rn,A).off(en,$n),Q&&ce(O,!0),Q=!1,Oe(M,Mn),Oe(r.en,o),Oe(r.un,o),Oe(r.an,o),_=e=Se,z=1,l(),S!==Se&&(si.scrollStop(),clearTimeout(S),S=Se),n){var t=vr.getBoundingClientRect();n.clientX>=t.left&&n.clientX<=t.right&&n.clientY>=t.top&&n.clientY<=t.bottom||Xn(),(ri||ii)&&fe(!1)}}function E(n){e=or[I](),e=isNaN(e)?0:e,($t&&O&&!Ht.n||!$t)&&(e=e<0?0:e),z=et()[k],_=a(n),Q=!c(u),xe(M,Mn),xe(r.en,o),xe(r.an,o),D.on(J,h).on(K,N).on(en,$n),!L&&p||He.prvD(n),He.stpP(n)}r.en.on(Ri,function(n){H(n)&&E(n)}),r.un.on(Ri,function(n){if(H(n)){var h,d=Ne.round(vi[r.W]),p=r.un.offset()[r.j],t=n.ctrlKey,b=n.shiftKey,m=b&&t,w=!0,g=function(n){Q&&ce(O,n)},y=function(){g(),E(n)},x=function(){if(!Wt){var n=(_-p)*z,t=T.N,r=T.D,i=T.L,e=T.H,o=T.C,u=270*C,f=w?Ne.max(400,u):u,a=e*((n-i/2)/(r-i)),c=$t&&O&&(!Ht.i&&!Ht.n||Vr),s=c?t<n:n<t,l={},v={easing:"linear",step:function(n){Q&&(or[I](n),ce(O,n))}};a=isFinite(a)?a:0,a=$t&&O&&!Ht.i?e-a:a,b?(or[I](a),m?(a=or[I](),or[I](o),a=c&&Ht.i?e-a:a,a=c&&Ht.n?-a:a,l[k]=a,si.scroll(l,ye(v,{duration:130,complete:y}))):y()):(h=w?s:h,(c?h?n<=t+i:t<=n:h?t<=n:n<=t+i)?(clearTimeout(S),si.scrollStop(),S=Se,g(!0)):(S=setTimeout(x,f),l[k]=(h?"-=":"+=")+d,si.scroll(l,ye(v,{duration:u}))),w=!1)}};t&&s(),z=et()[k],_=He.page(n)[k],Q=!c(u),xe(M,Mn),xe(r.un,o),xe(r.an,o),D.on(K,N).on(tn,v).on(rn,A).on(en,$n),x(),He.prvD(n),He.stpP(n)}}).on(Z,function(){P=!0,(ri||ii)&&fe(!0)}).on(nn,function(){P=!1,(ri||ii)&&fe(!1)}),r.an.on(Ri,function(n){He.stpP(n)}),R&&r.an.on(on,function(n){n.target===r.an[0]&&(ae(O),ce(O))})}function ue(n,t,r){var i=n?dn:pn,e=n?c:h;t?Oe(tr,i):xe(tr,i),r?Oe(e,Nn):xe(e,Nn)}function fe(n,t){if(clearTimeout(F),n)Oe(c,En),Oe(h,En);else{var r,i=function(){P||Wt||(!(r=v.hasClass("active")||m.hasClass("active"))&&(ri||ii||ei)&&xe(c,En),!r&&(ri||ii||ei)&&xe(h,En))};0<ni&&!0!==t?F=setTimeout(i,ni):i()}}function ae(n){var t={},r=le(n),i=r["in"],e=Ne.min(1,(mr[r.W]-(Ar?n?Qt:Ut:0))/wr[r.W]);t[r.X]=Ne.floor(100*e*1e6)/1e6+"%",ut()||r.en.css(t),i.L=r.en[0]["offset"+r.cn],i.R=e}function ce(n,t){var r,i,e=at(t)==yt,o=$t&&n,u=le(n),f=u["in"],a="translate(",c=Tt.O("transform"),s=Tt.O("transition"),l=n?or[Ei]():or[Li](),v=t===Se||e?l:t,h=f.L,d=u.un[0]["offset"+u.cn],p=d-h,b={},m=(pr[Ii+u.cn]-pr["client"+u.cn])*(Ht.n&&o?-1:1),w=function(n){return isNaN(n/m)?0:Ne.max(0,Ne.min(1,n/m))},g=function(n){var t=p*n;return t=isNaN(t)?0:t,t=o&&!Ht.i?d-h-t:t,t=Ne.max(0,t)},y=w(l),x=g(w(v)),O=g(y);f.H=m,f.C=l,f.A=y,sn?(r=o?-(d-h-x):x,i=n?a+r+"px, 0)":a+"0, "+r+"px)",b[c]=i,R&&(b[s]=e&&1<Ne.abs(x-f.N)?function S(n){var t=Tt.O("transition"),r=n.css(t);if(r)return r;for(var i,e,o,u="\\s*(([^,(]+(\\(.+?\\))?)+)[\\s,]*",f=new RegExp(u),a=new RegExp("^("+u+")+$"),c="property duration timing-function delay".split(" "),s=[],l=0,v=function(n){if(i=[],!n.match(a))return n;for(;n.match(f);)i.push(RegExp.$1),n=n.replace(f,Ti);return i};l<c[_t];l++)for(e=v(n.css(t+"-"+c[l])),o=0;o<e[_t];o++)s[o]=(s[o]?s[o]+Ni:Ti)+e[o];return s.join(", ")}(u.en)+", "+(c+Ni+250)+"ms":Ti)):b[u.j]=x,ut()||(u.en.css(b),sn&&R&&e&&u.en.one(on,function(){Wt||u.en.css(s,Ti)})),f.N=x,f.M=O,f.D=d}function se(n,t){var r=t?"removeClass":"addClass",i=n?b:m,e=n?Cn:Hn;(n?l:v)[r](e),i[r](e)}function le(n){return{X:n?Si:_i,cn:n?"Width":"Height",j:n?yi:mi,Y:n?"Left":"Top",F:n?Ai:Hi,$:n?"X":"Y",W:n?"w":"h",sn:n?"l":"t",un:n?l:b,en:n?v:m,an:n?c:h,"in":n?ln:vn}}function it(n){n?ct(sr):(sr=Le(be(Ln)),tr.append(sr))}function ve(n,t){if(Mt){var r,i=Kt.callbacks[n],e=n;"on"===e.substr(0,2)&&(e=e.substr(2,1).toLowerCase()+e.substr(3)),at(i)==mt&&i.call(si,t),Le.each(jn,function(){at((r=this).on)==mt&&r.on(e,t)})}else Wt||Wn.push({n:n,a:t})}function he(n,t,r){r===Se&&(r=[Ti,Ti,Ti,Ti]),n[t+mi]=r[0],n[t+wi]=r[1],n[t+gi]=r[2],n[t+yi]=r[3]}function et(){var n=dr.getBoundingClientRect();return{x:sn?1/(Ne.round(n.width)/dr[Ie]):1,y:sn?1/(Ne.round(n.height)/dr[ze]):1}}function ot(n){var t="ownerDocument",r="HTMLElement",i=n&&n[t]&&n[t].parentWindow||ht;return typeof i[r]==bt?n instanceof i[r]:n&&typeof n==bt&&null!==n&&1===n.nodeType&&typeof n.nodeName==gt}function de(n,t){var r=t?parseFloat(n):parseInt(n,10);return isNaN(r)?0:r}function ut(){return Rr&&Ct.x&&Ct.y}function pe(){return jt?cr[0]:br}function be(r,n){return"<div "+(r?at(r)==gt?'class="'+r+'"':function(){var n,t="";if(Le.isPlainObject(r))for(n in r)t+=("className"===n?"class":n)+'="'+r[n]+'" ';return t}():Ti)+">"+(n||Ti)+"</div>"}function ft(n,t){for(var r,i=t.split(X),e=0;e<i.length;e++){if(!n.hasOwnProperty(i[e]))return;r=n[i[e]],e<i.length&&at(r)==bt&&(n=r)}return r}function me(n,t,r){return!0===r?r:t===Se||n!==t}function we(n,t,r,i,e){if(!0===e)return e;if(i===Se&&e===Se){if(!0===r)return r;r=Se}return r=r===Se?"w":r,i=i===Se?"h":i,t===Se||(n[r]!==t[r]||n[i]!==t[i])}function ge(n,t){return t===Se||(n.t!==t.t||n.r!==t.r||n.b!==t.b||n.l!==t.l)}function at(n){return He.type(n)}function ye(){return Le.extend.apply(this,[!0].concat([].slice.call(arguments)))}function xe(n,t){return V.addClass.call(n,t)}function Oe(n,t){return V.removeClass.call(n,t)}function ct(n){return V.remove.call(n)}function st(n,t){return V.find.call(n,t).eq(0)}}return ht[pt]=function(n,r,i){if(0===arguments[_t])return this;var e,t,o=[],u=Le.isPlainObject(r);return n?(n=n[_t]!=Se?n:[n[0]||n],s(),0<n[_t]&&(u?Le.each(n,function(n,t){(e=t)!==Se&&o.push(v(e,r,i,f,a))}):Le.each(n,function(n,t){e=Re(t),"!"===r&&e instanceof ht[pt]||He.type(r)==mt&&r(t,e)?o.push(e):r===Se&&o.push(e)}),t=1===o[_t]?o[0]:o),t):u||!r?t:o},ht[pt].globals=function(){s();var n=Le.extend(!0,{},f);return delete n.msie,n},ht[pt].defaultOptions=function(n){s();var t=f.defaultOptions;if(n===Se)return Le.extend(!0,{},t);f.defaultOptions=Le.extend(!0,{},t,vt.I(n,vt.k,!0))},ht[pt].extension=function(n,t,r){var i=He.type(n)==gt,e=arguments[_t],o=0;if(e<1||!i)return Le.extend(!0,{length:c[_t]},c);if(i)if(He.type(t)==mt)c.push({name:n,extensionFactory:t,defaultOptions:r});else for(;o<c[_t];o++)if(c[o].name===n){if(!(1<e))return Le.extend(!0,{},c[o]);c.splice(o,1)}},ht[pt]}();return Ee&&Ee.fn&&(Ee.fn.overlayScrollbars=function(n,t){return Ee.isPlainObject(n)?(Ee.each(this,function(){r(this,n,t)}),this):r(this,n)}),r});