overlayscrollbars
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -5,3 +5,3 @@ /*! | ||
* | ||
* Version: 1.2.1 | ||
* Version: 1.2.2 | ||
* | ||
@@ -12,5 +12,5 @@ * Copyright KingSora. | ||
* Released under the MIT license. | ||
* Date: 10.01.2018 | ||
* Date: 23.01.2018 | ||
*/ | ||
!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(e,e.document,void 0,n)}):"object"==typeof exports?module.exports=t(e,e.document,void 0,require("jquery")):t(e,e.document,void 0,jQuery)}(this,function(e,t,n,r){"use-strict";var i="OverlayScrollbars",o={wW:function(){return e.innerWidth||t.documentElement.clientWidth||t.body.clientWidth},wH:function(){return e.innerHeight||t.documentElement.clientHeight||t.body.clientHeight},mO:function(){return e.MutationObserver||e.WebKitMutationObserver||e.WebkitMutationObserver||e.MozMutationObserver||n},rO:function(){return e.ResizeObserver||e.WebKitResizeObserver||e.WebkitResizeObserver||e.MozResizeObserver||n},rAF:function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)}},cAF:function(){return e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||e.msCancelAnimationFrame||function(t){return e.clearTimeout(t)}},now:function(){return Date.now()||(new Date).getTime()},stpP:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},prvD:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},page:function(e){var r=((e=e.originalEvent||e).target||e.srcElement||t).ownerDocument||t,i=r.documentElement,o=r.body;if(e.touches!==n){var a=e.touches[0];return{x:a.pageX,y:a.pageY}}return!e.pageX&&e.clientX&&null!=e.clientX?{x:e.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),y:e.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)}:{x:e.pageX,y:e.pageY}},mBtn:function(e){return e.which||e.button===n?e.which:1&e.button?1:2&e.button?3:4&e.button?2:0}},a=function(t){return t.fn.overlayScrollbars=function(n){var r=this;return t.isPlainObject(n)?(t.each(r,function(){e[i](this,n)}),r):e[i](r,n)},t}(r);!function(r,o,a,s){function l(){h===n&&(h=new c(v)),d===n&&(d=new f(h))}function c(i){function s(e){var r=!1,i="Webkit Moz ms O".split(" "),o=t.createElement("div"),a=null;if(e=e.toLowerCase(),o.style[e]!==n&&(r=!0),!1===r){a=e.charAt(0).toUpperCase()+e.substr(1);for(var s=0;s<i.length;s++)if(o.style[i[s]+a]!==n){r=!0;break}}return r}var l=this;l.defaultOptions=i,l.autoUpdateLoop=!1,l.autoUpdateRecommended=r.mO()===n;var c=a("body"),f=a('<div id="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%;"></div></div>'),u=function(){c.append(f);var e=f[0],t=a(f.children("div").first());0===e.offsetHeight&&f.hide().show();var n={x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth};f.addClass("os-viewport-native-scrollbars-invisible"),f.css("overflow","hidden").hide().css("overflow","scroll").show(),l.nativeScrollbarStyling=e.offsetHeight-e.clientHeight==0&&e.offsetWidth-e.clientWidth==0,f.css({"overflow-y":"hidden",direction:"rtl"}).scrollLeft(0);var r=f.offset(),i=t.offset();f.scrollLeft(999);var o=t.offset();return l.rtlScrollBehavior={i:r.left===i.left,n:i.left-o.left==0},f.removeAttr("style").remove(),n}(),h={x:0===u.x,y:0===u.y};l.nativeScrollbarSize=u,l.nativeScrollbarIsOverlaid=h,l.overlayScrollbarDummySize={x:30,y:30},l.msie=function(){var t=e.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);if(t.indexOf("Trident/")>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var i=t.indexOf("Edge/");return i>0&&parseInt(t.substring(i+5,t.indexOf(".",i)),10)}(),l.cssCalc=function(){for(var e=t.createElement("div"),n=["calc","-webkit-calc","-moz-calc","-o-calc"],r=0;r<n.length;++r){var i=n[r];if(e.style.cssText="width:"+i+"(1px);",e.style.length)return i}return null}(),l.supportTransform=s("transform"),l.supportTransition=s("transition"),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(r.prototype=this.prototype),i.prototype=new r,i});var d=!1;try{var v=Object.defineProperty({},"passive",{get:function(){d=!0}});e.addEventListener("test",null,v)}catch(e){}l.supportPassiveEvents=d,l.supportResizeObserver=r.rO()!==n,l.supportMutationObserver=r.mO()!==n,function(){function t(e,t){var n=Math.abs(e),r=Math.abs(t);return!(n===r||n+1===r||n-1===r)}function n(){var t=screen.deviceXDPI||0,n=screen.logicalXDPI||1;return e.devicePixelRatio||t/n}if(!h.x||!h.y){var i=r.wW(),s=r.wH(),u=n();a(e).on("resize",function(){if(o.all().length>0){var e=r.wW(),h=r.wH(),d=e-i,v=h-s;if(0===d&&0===v)return;var p=Math.round(e/(i/100)),y=Math.round(h/(s/100)),m=Math.abs(d),g=Math.abs(v),b=Math.abs(p),w=Math.abs(y),x=n(),C=m>2&&g>2,S=!t(b,w),O=x!==u&&u>0;if(!!(C&&S&&O)){c.append(f);var k=f[0];l.nativeScrollbarSize={x:k.offsetHeight-k.clientHeight,y:k.offsetWidth-k.clientWidth},f.remove(),a.each(o.all(),function(){o.has(this)&&o.get(this).update("zoom")})}i=e,s=h,u=x}})}}()}function f(e){var t,i=this,o=[],s=[],l=!1,c=33,f=r.now(),u=function(){if(o.length>0&&l){t=r.rAF()(function(){u()});var e=r.now(),i=e-f;if(i>c){f=e-i%c;for(var a=33,h=0;h<o.length;h++){var d=o[h];if(d!==n){var v=d.options(),p=v.autoUpdate,y=Math.max(1,v.autoUpdateInterval),m=r.now();(!0===p||null===p)&&m-s[h]>y&&(d.update("auto"),s[h]=new Date(m+=y)),a=Math.max(1,Math.min(a,y))}}c=a}}else c=33};i.add=function(t){-1===a.inArray(t,o)&&(o.push(t),s.push(r.now()),o.length>0&&!l&&(l=!0,e.autoUpdateLoop=l,u()))},i.remove=function(i){var c=a.inArray(i,o);c>-1&&(s.splice(c,1),o.splice(c,1),0===o.length&&l&&(l=!1,e.autoUpdateLoop=l,t!==n&&(r.cAF()(t),t=-1)))}}function u(t,l,c,f){function u(){if(!Le){var e=Je[0],t={w:e.scrollWidth,h:e.scrollHeight};if(gn){var n=b(t,jt);jt=t,n&&ue(!0,!1)}else jt=t}}function h(e,t,n){e=e[0];for(var r=t.split(Kn),i=0;i<r.length;i++)e.addEventListener(r[i],n,{passive:!0})}function d(e,t,n){e=e[0];for(var r=t.split(Kn),i=0;i<r.length;i++)e.removeEventListener(r[i],n,{passive:!0})}function v(e){if(e!==n&&ke){var t=e.contents()[0];t[sr].unobserve(t)}}function p(e){if(e!==n&&ke){var t=e.contents()[0];t[sr].observe(t)}}function y(e,t){var n=function(n){e.scrollTop(3333333),e.scrollLeft(Fe?de.n?-3333333:de.i?0:3333333:3333333),t()};if(ke){var i=r.rO(),o=e.append(qn+Mr+" observed"+Yn).contents()[0];(o[sr]=new i(n)).observe(o)}else{var s="animationstart mozAnimationStart webkitAnimationStart MSAnimationStart";if(pe>9||!ve){var l=qn+Mr+'">';l+=qn+Wr+'" dir="ltr">',l+=qn+Wr+'">',l+=qn+Er+Yn,l+="</div>",l+=qn+Wr+'">',l+=qn+Er+'" style="width: 200%; height: 200%'+Yn,l+="</div>",l+="</div>",l+="</div>",e.prepend(l);var f,u,h,d,v=(e=e[0]).childNodes[0].childNodes[0],p=a(v.childNodes[1]),y=a(v.childNodes[0]),m=a(y[0].childNodes[0]),g=v.offsetWidth,b=v.offsetHeight,w=c.nativeScrollbarSize,x=function(){y[Zn](3333333)[$n](3333333),p[Zn](3333333)[$n](3333333)},C=function(){u=0,f&&(g=h,b=d,n())},S=function(e){return h=v.offsetWidth,d=v.offsetHeight,f=h!=g||d!=b,e&&f&&!u?(r.cAF()(u),u=r.rAF()(C)):e||C(),x(),e&&(r.prvD(e),r.stpP(e)),!1},O={};O[Wn]=-2*(w.y+1),O[En]=-2*w.x,O[Fn]=-2*w.y,O[Ln]=-2*(w.x+1),a(v).css(O),y.on(Bn,S),p.on(Bn,S),a(e).on(s,function(){S(!1)});var k={};k[Rn]=3333333,k[Nn]=3333333,m.css(k),x()}else{var z=Be[0],T=e;e=e[0];var A=z.attachEvent,H="undefined"==typeof navigator||(navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));if(A)T.prepend(qn+Mr+Yn),T.find(Jn+Mr).first()[0].attachEvent("onresize",n);else{var M=z.createElement("object");M.setAttribute("tabindex","-1"),M.setAttribute("class",Mr),M.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",n),e.document.documentElement.style.display="none"},M.type="text/html",H&&T.prepend(M),M.data="about:blank",H||T.prepend(M),T.on(s,n)}}}if((e=a(e))[0]===Je[0]){var W=function(){var t=qe.css("direction");if(t!==xt){var n={},r=0;return"ltr"===t?(n[Ln]=0,n[En]=Un,r=3333333):(n[Ln]=Un,n[En]=0,r=de.n?-3333333:de.i?0:3333333),Je.children().first().css(n),e.scrollLeft(r),e.scrollTop(3333333),xt=t,!0}return!1};W(),e.on(Bn,function(e){return W()&&ue(),r.prvD(e),r.stpP(e),!1})}}function m(e){if(ke){var t=e.contents()[0];t[sr].disconnect(),delete t[sr]}else e.children(Jn+Mr).first().remove()}function g(e,t,r){return!0===r?r:t===n||e!==t}function b(e,t,r,i,o){if(!0===o)return o;if(i===n&&o===n){if(!0===r)return r;r=n}return r=r===n?"w":r,i=i===n?"h":i,t===n||(e[r]!==t[r]||e[i]!==t[i])}function w(e,t){return t===n||(e.t!==t.t||e.r!==t.r||e.b!==t.b||e.l!==t.l)}function x(e,t){e.call(mn,t)}function C(e,t,r){r===n&&(r=[jn,jn,jn,jn]),e[t+Wn]=r[0],e[t+En]=r[1],e[t+Fn]=r[2],e[t+Ln]=r[3]}function S(){tn&&!en&&(Zt.observe(qe[0],{attributes:!0,attributeOldValue:!0,attributeFilter:["id","class","style"]}),$t.observe(wn?Ve[0]:$e[0],{attributes:!0,attributeOldValue:!0,subtree:!wn,childList:!wn,characterData:!wn,attributeFilter:wn?["wrap","cols","rows"]:["id","class","style"]}),en=!0)}function O(){tn&&en&&(Zt.disconnect(),$t.disconnect(),en=!1)}function k(e){if(!Le){var t=(e.originalEvent||e).touches!==n;(1===r.mBtn(e)||t)&&(en&&(hn=!0,O()),ti=r.page(e),ni.w=qe[0].offsetWidth-(ze?0:Te),ni.h=qe[0].offsetHeight-(ze?0:Ae),Be.on(or,N),Be.on(nr,z),Be.on(tr,T),_e.addClass(Jr),tt.setCapture&&tt.setCapture(),r.prvD(e),r.stpP(e))}}function z(e){e.originalEvent;var t=r.page(e),n={};(pn||vn)&&(n[Rn]=ni.w+t.x-ti.x),(yn||vn)&&(n[Nn]=ni.h+t.y-ti.y),qe.css(n),r.stpP(e)}function T(e){var t=e!==n;Be.off(or,N),Be.off(nr,z),Be.off(tr,T),_e.removeClass(Jr),tt.releaseCapture&&tt.releaseCapture(),t&&(hn&&S(),mn.update(Un)),hn=!1}function A(){if(!Le){var e=!Mt,t=zn.w-(ze||Ct||!dt?0:Ae+Me),n=zn.h-(ze||Ct||!vt?0:Ae+Me),r={},i=dt||e,o=Ve[0];r[Dn+Rn]=jn,r[Dn+Nn]=jn,r[Rn]=Un,Ve.css(r);var a=o.offsetWidth,s=i?Math.max(a,o.scrollWidth-1):1;s+=dt?We+(ze?0:e?0:Te+He):0,r[Rn]=dt?s:Xn,r[Nn]=Un,Ve.css(r);var l=o.offsetHeight,c=Math.max(l,o.scrollHeight-1);return r[Rn]=s,r[Nn]=c,et.css(r),r[Dn+Rn]=t+(!ze&&dt?Te+He:0),r[Dn+Nn]=n+(!ze&&vt?Ae+Me:0),Ve.css(r),{ow:a,oh:l,dw:s,dh:c}}}function H(){var e=Ve.prop("selectionStart");if(e!==n){for(var t=Ve.val(),r=t.length,i=t.split("\n"),o=i.length,a=t.substr(0,e).split("\n"),s=0,l=0,c=a.length,f=a[a.length-1].length,u=0;u<i.length;u++){var h=i[u].length;h>l&&(s=u+1,l=h)}return{cursorRow:c,cursorCol:f,rows:o,cols:l,wRow:s,pos:e,max:r}}}function M(e){for(var t=0;t<$r.length;t++)if(e===$r[t])return!0;return!1}function W(){A(),mn.update(Un)}function E(e){var t=e.keyCode;if(!M(t)){if(0===ei.length){var n=function(){A(),mn.update(Un)};n(),nn=setInterval(n,1e3/60)}-1===a.inArray(t,ei)&&ei.push(t)}}function F(e){var t=e.keyCode;if(!M(t)){var n=a.inArray(t,ei);n>-1&&ei.splice(n,1),0===ei.length&&(A(),mn.update(Un),clearInterval(nn))}}function L(){setTimeout(function(){A(),mn.update(Un)},50)}function D(){rn=!0}function I(){rn=!1,clearInterval(nn),ei=[],A(),mn.update(Un)}function R(e){return Ve[Zn](de.i&&qt?9999999:0),Ve[$n](0),r.prvD(e),r.stpP(e),!1}function N(e){return r.prvD(e),!1}function P(){return Tt&&we.x&&we.y}function j(e,t,n){var r=e?ur:hr,i=e?nt:ot;t?qe.removeClass(r):qe.addClass(r),n?i.removeClass(Pr):i.addClass(Pr)}function U(e,t){if(clearTimeout(on),e)nt.removeClass(jr),ot.removeClass(jr);else{var n=function(){if(!un){var e=it.hasClass("active")||st.hasClass("active");e||!ln&&!cn||nt.addClass(jr),e||!ln&&!cn||ot.addClass(jr)}};an>0&&!0!==t?on=setTimeout(n,an):n()}}function B(e){var t={},n=Y(e),r=Math.min(1,(lt[n._wh]-(Ct?e?Te:Ae:0))/ct[n._wh]);t[n.wh]=Math.floor(100*r*1e5)/1e5+"%",P()||n.h.css(t),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=r}function X(e,t){var n=Fe&&e,r={},i=Y(e),o=Ge[0][Bn+i.WH]-Ge[0]["client"+i.WH];de.n&&n&&(o*=-1);var a=t/o;a=isNaN(a)?0:Math.min(1,a),i.i.ms=o,i.i.cs=t,i.i.csr=a;var s=i.i.hl,l=i.t[0]["offset"+i.WH],c=(l-s)*a;if(c=isNaN(c)?0:c,n&&(de.n||!de.n&&!de.i)&&(c=l-s-c),c=Math.max(0,c),Se){n&&(c=-(l-s-c));var f;f=e?"translate("+c+"px, 0px)":"translate(0px, "+c+"px)",r["-webkit-transform"]=f,r["-moz-transform"]=f,r["-ms-transform"]=f,r["-o-transform"]=f,r.transform=f}else r[i.lt]=c;P()||i.h.css(r),i.i.ho=c,i.i.tl=l}function _(e,t){var n=t?"removeClass":"addClass",r=e?rt:it,i=e?at:st,o=e?Ir:Nr;r[n](o),i[n](o)}function V(){nt=a(qn+Lr+Kn+qr+Yn),rt=a(qn+Dr+Yn),it=a(qn+Rr+Yn),ot=a(qn+Lr+Kn+Yr+Yn),at=a(qn+Dr+Yn),st=a(qn+Rr+Yn),nt.append(rt),rt.append(it),ot.append(at),at.append(st),Qe.after(ot),Qe.after(nt),Ce&&(nt.on(ar,function(e){e.target===nt[0]&&(B(!0),X(!0,Ge[Zn]()))}),ot.on(ar,function(e){e.target===ot[0]&&(B(!1),X(!1,Ge[$n]()))})),q(!0),q(!1),tt=a(qn+Kn+Ur+Yn),qe.append(tt)}function q(e){var t,i,o,a=Y(e),s=a.xy,l=Bn+a.LT,c=1,f=function(){c=.5},u=function(){c=1},v=function(n){n.originalEvent;var o=a.i.tl,c=a.i.hl,f=a.i.ms*((c/2+r.page(n)[s]-i-c/2)/(o-c));f=isFinite(f)?f:0,Fe&&e&&(de.n||!de.n&&!de.i)&&(f*=-1),Ge[l](t+f),Oe||r.prvD(n)},p=function(e){e=e||e.originalEvent,_e.removeClass(Jr),a.h.removeClass("active"),a.t.removeClass("active"),a.s.removeClass("active"),Oe?(d(Be,nr,v),d(Be,tr,p),d(Be,rr,y),d(Be,ir,m),d(Be,or,N)):(Be.off(nr,v),Be.off(tr,p),Be.off(rr,y),Be.off(ir,m),Be.off(or,N)),u(),t=n,i=n,o!==n&&(mn.scrollStop(),clearTimeout(o),o=n);var r=qe[0].getBoundingClientRect();e.clientX>=r.left&&e.clientX<=r.right&&e.clientY>=r.top&&e.clientY<=r.bottom||K(),ln&&U(!1)},y=function(e){16==e.keyCode&&f()},m=function(e){16==e.keyCode&&u()};a.h.on(er,function(o){if(!Le){var c=(o.originalEvent||o).touches!==n;P()||!_t||c&&!fn||(1===r.mBtn(o)||c)&&(t=Ge[l](),t=t===n?0:t,(Fe&&e&&!de.n||!Fe)&&(t=t<0?0:t),i=r.page(o)[s],_e.addClass(Jr),a.h.addClass("active"),a.s.addClass("active"),Oe?(h(Be,or,N),h(Be,nr,v),h(Be,tr,p)):(Be.on(or,N),Be.on(nr,v),Be.on(tr,p)),r.prvD(o))}}),a.t.on(er,function(t){if(!Le){var l=(t.originalEvent||t).touches!==n;if(!P()&&Xt&&(!l||fn)&&(1===r.mBtn(t)||l)){var u,d=zn[a._wh],v=a.t.offset()[a.lt],g=!0;t.shiftKey&&f();var b=function(){var t=a.i.ho,r=a.i.hl,s=i-v,l=200*c,f=g?Math.max(333,l):l,h={},p=Fe&&e&&(!de.i&&!de.n||qt),y=t>s;p&&(y=t<s),y?(u===n&&(u=!0),h[a.xy]="-="+d):(u===n&&(u=!1),h[a.xy]="+="+d),mn.scrollStop(),mn.scroll(h,l,"linear");var m=u?t<=s:t+r>=s;p&&(m=u?t+r>=s:t<=s),m?(clearTimeout(o),mn.scrollStop(),o=n):o=setTimeout(b,f),g=!1};i=r.page(t)[s],_e.addClass(Jr),a.t.addClass("active"),a.s.addClass("active"),Oe?(h(Be,or,N),h(Be,tr,p),h(Be,rr,y),h(Be,ir,m)):(Be.on(or,N),Be.on(tr,p),Be.on(rr,y),Be.on(ir,m)),b(),r.prvD(t)}}}).hover(function(){ln&&(un=!0,U(!0))},function(){ln&&(un=!1,U(!1))}),a.s.on(er,function(e){r.stpP(e)})}function Y(e){return{wh:e?Rn:Nn,WH:e?"Width":"Height",lt:e?Ln:Wn,LT:e?"Left":"Top",xy:e?_n:Vn,XY:e?"X":"Y",_wh:e?"w":"h",_lt:e?"l":"t",t:e?rt:at,h:e?it:st,s:e?nt:ot,i:e?On:kn}}function J(){cn&&U(!0)}function K(){cn&&!_e.hasClass(Jr)&&U(!1)}function Q(e){if(!Le){var t=Ne.callbacks,r=t.onScrollStart,i=t.onScroll,o=t.onScrollStop;De!==n?clearTimeout(De):(ln&&U(!0),P()||qe.addClass(yr),a.isFunction(r)&&x(r,e)),X(!0,Ge[Zn]()),X(!1,Ge[$n]()),a.isFunction(i)&&x(i,e),De=setTimeout(function(){G(),a.isFunction(o)&&x(o,e)},Tn)}}function G(){clearTimeout(De),De=n,ln&&U(!1),P()||qe.removeClass(yr)}function Z(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function $(e,t,r,i){var o,l,c,f,u,h={n:t,s:!1,v:n,p:n},d="undefined",v=s.has(e,t),p=s.get(e,t),y=!1,m=!0!==v,g=Gn,b=!1;for("array"!==a.type(r)&&(r=[r]),u=r.length,l=0;l<u;l++){var w=r[l];if("*"===w)if(u>1){var x=0;for(f=0;f<u;f++){var C=r[f];if(a.type(C)===g&&++x>1)break}1===x&&(b=!0)}else b=!0;w===n&&(y=!0)}if(m&&!1===v&&y&&(m=!1),!m){o=p,d=a.type(o);var S=function(e){var t=a.type(e);return t===d&&(t!==g||(!!b||o===e))&&(h.s=!0,h.v=o,h.p=o,!0)};for(l=0;l<u;l++){var O=r[l];if(a.type(O)===g){var k=O.split(":"),z=k[0],T=!1;for(c=0;c<k.length;c++)if(S(k[c])){b||(h.p=z),T=!0;break}if(T)break}else if(S(O))break}}if(!h.s){var A='The option "'+t+"\" wasn't set, because";if(m&&!1!==v){var H=s.has(Ie,t);!0===H?console.warn(A+' "'+v+'" is not from type [ OBJECT ].'):(A='The option "'+t+'" is not a default option',!1===H?console.warn(A+Jn):console.warn(A+" and couldn't be resolved, because \""+H+'" is not from type [ OBJECT ].'))}else{var M=[],W=jn,E=!1,F=jn;for(l=0;l<u;l++){var L=r[l],D=a.type(L);if(D===g){E=!b;var I=L.split(":");for(c=0;c<I.length;c++)F+='"'+I[c]+'", '}-1===a.inArray(D,M)&&(M.push(D),W=W+D.toUpperCase()+", ")}W=W.slice(0,-2),E&&(F=F.slice(0,-2)),console.warn(A+" it doesn't accept the type [ "+d.toUpperCase()+' ] with the value of "'+o+'".\r\nAccepted types are: [ '+W+" ]."+(E?"\r\nValid strings are: [ "+F+" ].":jn))}}return(i=i===n||i)&&s.del(e,t),h}function ee(){var e={};return xn&&Ze&&(e.w=le(Ze.css(Dn+Rn)),e.h=le(Ze.css(Dn+Nn)),e.c=b(e,Gt),e.f=!0),Gt=e,e.c}function te(e,t){var n,r,i={};for(n=0;n<e.length;n++){var o=e[n],s=[];if(o.s){var l=o.n.split(".");for(r=0;r<l.length;r++)s[r]={},s[r][l[r]]={};for(r=0;r<s.length;r++){var c=!1,f=s[r];r+1===s.length&&(c=!0);for(var u in f)f.hasOwnProperty(u)&&(f[u]=s[r+1],c&&(f[u]=t?o.p:o.v))}a.extend(!0,i,s[0])}}return i}function ne(e,t){var n,r=[],i=[];for(n=0;n<e.length;n++)r[e[n]]=!0;for(n=0;n<t.length;n++)r[t[n]]?delete r[t[n]]:r[t[n]]=!0;for(var o in r)i.push(o);return i}function re(e,t){var r=t!==n&&null!==t?t.split(Kn):jn,i=e!==n&&null!==e?e.split(Kn):jn;if(r===jn&&i===jn)return!1;var o=ne(i,r),s=!1,l=Jt!==n&&null!==Jt?Jt.split(Kn):[jn],c=Yt!==n&&null!==Yt?Yt.split(Kn):[jn],f=a.inArray(Kr,o);f>-1&&o.splice(f,1);for(var u=0;u<o.length;u++){var h=o[u];if(0!==h.indexOf(cr)){var d,v=!0,p=!0;for(d=0;d<l.length;d++)if(h===l[d]){v=!1;break}for(d=0;d<c.length;d++)if(h===c[d]){p=!1;break}if(v&&p){s=!0;break}}}return s}function ie(e){var t=e.attributeName,n=e.target;if(n===$e[0])return!1;if("attributes"===e.type&&("class"===t||"style"===t)&&!wn){if("function"!=typeof n.closest)return!0;if(null!==n.closest(Jn+Mr)||null!==n.closest(Jn+Lr)||null!==n.closest(Jn+Ur))return!1}return!0}function oe(e){e=a.extend(!0,{},Re,e);var t=["*",null],n=["v-h:visible-hidden","v-s:visible-scroll","s:scroll","h:hidden"],r=["v:visible","h:hidden","a:auto"],i=["n:never","s:scroll","l:leave"],o=["n:none","b:both","h:horizontal","v:vertical"],l=Qn+"s.",c=[!0,null],f=[new Function,null],u=[];u.push($(e,"nativeScrollbarsOverlaid.showNativeScrollbars",!0)),u.push($(e,"nativeScrollbarsOverlaid.initialize",!0)),u.push($(e,"overflowBehavior."+_n,n)),u.push($(e,"overflowBehavior."+Vn,n)),u.push($(e,l+"visibility",r)),u.push($(e,l+"autoHide",i)),u.push($(e,l+"autoHideDelay",0)),u.push($(e,l+"clickScrolling",!0)),u.push($(e,l+"dragScrolling",!0)),u.push($(e,l+"touchSupport",!0)),u.push($(e,"textarea.dynWidth",!0)),u.push($(e,"textarea.dynHeight",!0)),u.push($(e,"className",t)),u.push($(e,"resize",o)),u.push($(e,"sizeAutoCapable",!0)),u.push($(e,"paddingAbsolute",!0)),u.push($(e,"clipAlways",!0)),u.push($(e,"normalizeRTL",!0)),u.push($(e,"autoUpdate",c)),u.push($(e,"autoUpdateInterval",0)),u.push($(e,"callbacks.onInitialized",f)),u.push($(e,"callbacks.onInitializationWithdrawn",f)),u.push($(e,"callbacks.onDestroyed",f)),u.push($(e,"callbacks.onScrollStart",f)),u.push($(e,"callbacks.onScroll",f)),u.push($(e,"callbacks.onScrollStop",f)),u.push($(e,"callbacks.onDirectionChanged",f)),u.push($(e,"callbacks.onContentSizeChanged",f)),u.push($(e,"callbacks.onHostSizeChanged",f)),u.push($(e,"callbacks.onOverflowChanged",f)),u.push($(e,"callbacks.onOverflowAmountChanged",f)),u.push($(e,"callbacks.onUpdated",f));for(var h in e)e.hasOwnProperty(h)&&s.has(Ie,h)&&a.isEmptyObject(e[h])&&delete e[h];if(!a.isEmptyObject(e)){var d=function(e){a.each(e,function(t,n){a.isPlainObject(n)?d(n):"function"===a.type(n)&&(e[t]=a.type(n))})};d(e),console.warn("The following options are discarded due to invalidity:\r\n"+JSON.stringify(e,null,2))}Re=a.extend(!0,{},Re,te(u,!1)),Ne=a.extend(!0,{},Ne,te(u,!0))}function ae(){if(Le)return!1;var e,t=wn&&dt&&!Mt?Ve.val().length:0,n=!en&&dt&&!wn,r={};n&&(e=$e.css(Pn),r[Pn]=Fe?En:Ln,r[Rn]=Un,$e.css(r));var i={w:fe().scrollWidth+t,h:fe().scrollHeight+t};n&&(r[Pn]=e,r[Rn]=Xn,$e.css(r));var o=ee(),a=b(i,Pt)||o;return Pt=i,a}function se(){if(Le||en)return!1;var e=qe.attr("id")||jn,t=g(e,Et),n=qe.attr("class")||jn,r=g(n,Ft),i=qe.attr("style")||jn,o=g(i,Lt),a=qe.is(":visible")||jn,s=g(a,Dt),l=wn?Ve.attr("rows")||jn:jn,c=g(l,It),f=wn?Ve.attr("cols")||jn:jn,u=g(f,Rt),h=wn?Ve.attr("wrap")||jn:jn,d=g(h,Nt);return Et=e,r&&(r=re(Ft,n)),Ft=n,Lt=i,Dt=a,It=l,Rt=f,Nt=h,t||r||o||s||c||u||d}function le(e){var t=parseInt(e);return isNaN(t)?0:t}function ce(e){if(!gn)return!0;var t=[Rn,Dn+Rn,In+Rn,An+Ln,An+En,Ln,En,"font-weight","word-spacing"],n=[Hn+Ln,Hn+En,Mn+Ln+Rn,Mn+En+Rn],r=[Nn,Dn+Nn,In+Nn,An+Wn,An+Fn,Wn,Fn,"line-height"],i=[Hn+Wn,Hn+Fn,Mn+Wn+Rn,Mn+Fn+Rn],o="s"===kt.x||"v-s"===kt.x,a=!1,s=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1};return("s"===kt.y||"v-s"===kt.y)&&((a=s(r,e))||ze||(a=s(i,e))),o&&!a&&((a=s(t,e))||ze||(a=s(n,e))),a}function fe(){return wn?et[0]:$e[0]}function ue(e,t,i){var o=r.now(),s=Gr>0&&gn&&o-Pe<Gr&&!vt&&!dt;if(clearTimeout(je),s&&(Qr.h=e,Qr.c=t,Qr.f=i,je=setTimeout(ue,Gr)),!(s||Le||gn&&!i&&qe.is(":hidden")||"inline"===qe.css("display"))){Pe=o,e=e||Qr.h,t=t||Qr.c,i=i||Qr.f,Qr={},e=e!==n&&e,t=t!==n&&t,i=i!==n&&i,!ye||we.x&&we.y?ge=a.extend(!0,{},c.nativeScrollbarSize):(ge.x=0,ge.y=0),be={x:3*(ge.x+(we.x?0:3)),y:3*(ge.y+(we.y?0:3))},v(Je),v(Ye);var l={l:Ge[Zn](),t:Ge[$n]()},u=Ne.callbacks,m=Ne.scrollbars,z=Ne.textarea,T=u.onUpdated,M=u.onOverflowChanged,W=u.onOverflowAmountChanged,E=u.onDirectionChanged,F=u.onContentSizeChanged,L=u.onHostSizeChanged,D=m.visibility,I=g(D,Ut,i),R=m.autoHide,N=g(R,Bt,i),P=m.clickScrolling,V=g(P,Xt,i),q=m.dragScrolling,Y=g(q,_t,i),Q=Ne.className,G=g(Q,Yt,i),Z=Ne.resize,$=g(Z,Vt,i)&&!xn,te=!!wn&&"off"!==Ve.attr("wrap"),ne=g(te,Mt,i),re=Ne.paddingAbsolute,ie=g(re,Ct,i),oe=Ne.clipAlways,ae=g(oe,St,i),se=Ne.sizeAutoCapable&&!xn,ce=g(se,Ht,i),he=Ne.nativeScrollbarsOverlaid.showNativeScrollbars,pe=g(he,Tt),Ce=Ne.autoUpdate,Se=g(Ce,At),ke=Ne.overflowBehavior,De=b(ke,kt,_n,Vn,i),Ie=z.dynWidth,Re=g(Qt,Ue),Ue=z.dynHeight,Be=g(Kt,Ue);if(sn="n"===R,ln="s"===R,cn="l"===R,an=m.autoHideDelay,fn=m.touchSupport,Jt=Yt,dn="n"===Z,vn="b"===Z,pn="h"===Z,yn="v"===Z,qt=Ne.normalizeRTL,he=he&&we.x&&we.y,Ut=D,Bt=R,Xt=P,_t=q,Yt=Q,Vt=Z,Mt=te,Ct=re,St=oe,Ht=se,Tt=he,At=Ce,kt=a.extend(!0,{},ke),Qt=Ie,Kt=Ue,G&&(qe.removeClass(Jt).removeClass(Kr),Q!==n&&null!==Q&&Q.length>0?qe.addClass(Q):qe.addClass(Kr)),Se&&(!0===Ce?(O(),f.add(mn)):null===Ce&&ve?(O(),f.add(mn)):(f.remove(mn),S())),ce)if(se)if(Ke===n&&(Ke=a(qn+Ar+Yn),Qe.before(Ke)),Cn)Ye.show();else{Ye=a(qn+Hr+Yn),Ke.before(Ye);var Xe={w:-1,h:-1};y(Ye,function(){var e={w:Ye[0].offsetWidth,h:Ye[0].offsetHeight};b(e,Xe)&&(gn&&vt&&e.h>0||dt&&e.w>0?ue():(gn&&!vt&&0===e.h||!dt&&0===e.w)&&ue()),Xe=e}),Cn=!0,null!==me&&Ye.css(Nn,me+"(100% + 1px)")}else Cn&&Ye.hide();i&&(Je.find("*").trigger(Bn),Cn&&Ye.find("*").trigger(Bn));var _e,nt=qe.css("direction"),rt=g(nt,wt,i),it=qe.css("box-sizing"),ot=g(it,yt,i),at={c:i,t:le(qe.css(Hn+Wn)),r:le(qe.css(Hn+En)),b:le(qe.css(Hn+Fn)),l:le(qe.css(Hn+Ln))};try{_e=Cn?Ye[0].getBoundingClientRect():null}catch(e){return}ze="border-box"===it;var st=(Fe="rtl"===nt)?Ln:En,xt=Fe?En:Ln,Et=!1,Ft=!(!Cn||"none"===qe.css(Pn))&&(0===Math.round(_e.right-_e.left)&&(!!re||qe[0].clientWidth-Te>0));if(se&&!Ft){var Lt=qe[0].offsetWidth,Dt=Ke.css(Rn);Ke.css(Rn,Un);var It=qe[0].offsetWidth;Ke.css(Rn,Dt),(Et=Lt!==It)||(Ke.css(Rn,Lt+1),It=qe[0].offsetWidth,Ke.css(Rn,Dt),Et=Lt!==It)}var Rt=(Ft||Et)&&se,Nt=g(Rt,dt,i),Pt=!Rt&&dt,jt=!!Cn&&0===Math.round(_e.bottom-_e.top),Zt=g(jt,vt,i),$t=!jt&&vt,tn="-"+Rn,nn=Rt&&ze||!ze,on=jt&&ze||!ze,un={c:i,t:on?le(qe.css(Mn+Wn+tn)):0,r:nn?le(qe.css(Mn+En+tn)):0,b:on?le(qe.css(Mn+Fn+tn)):0,l:nn?le(qe.css(Mn+Ln+tn)):0},hn={c:i,t:le(qe.css(An+Wn)),r:le(qe.css(An+En)),b:le(qe.css(An+Fn)),l:le(qe.css(An+Ln))},bn={h:String(qe.css(In+Nn)),w:String(qe.css(In+Rn))},On={},kn={};if(Te=at.l+at.r,Ae=at.t+at.b,at.c=w(at,mt),He=un.l+un.r,Me=un.t+un.b,un.c=w(un,gt),We=hn.l+hn.r,Ee=hn.t+hn.b,hn.c=w(hn,bt),bn.ih=parseInt(bn.h),bn.iw=parseInt(bn.w),bn.ch=bn.h.indexOf("px")>-1,bn.cw=bn.w.indexOf("px")>-1,bn.c=b(bn,pt,i),wt=nt,yt=it,dt=Rt,vt=jt,mt=at,gt=un,bt=hn,pt=bn,rt&&Cn&&Ye.css(Pn,xt),at.c||rt||ie||Nt||Zt||ot||ce){var Tn={},Jn={};C(kn,An,[-at.t,-at.r,-at.b,-at.l]),re?(C(Tn,jn,[at.t,at.r,at.b,at.l]),wn?C(Jn,Hn):C(On,Hn)):(C(Tn,jn),wn?C(Jn,Hn,[at.t,at.r,at.b,at.l]):C(On,Hn,[at.t,at.r,at.b,at.l])),Qe.css(Tn),Ve.css(Jn)}zn={w:Qe[0].offsetWidth,h:Qe[0].offsetHeight};var Kn=!!wn&&A();if(jt&&(Zt||ie||ot||bn.c||at.c||un.c)?(bn.cw&&(On[In+Nn]=bn.ch?bn.ih-(re?Ae:0)+(ze?-Me:Ae):jn),On[Nn]=Un):(Zt||ie)&&(On[In+Nn]=jn,On[Nn]=Xn),Rt&&(Nt||ie||ot||bn.c||at.c||un.c||rt)?(bn.cw&&(On[In+Rn]=bn.cw?bn.iw-(re?Te:0)+(ze?-He:Te)+(we.y?xe.y:0):jn),On[Rn]=Un,kn[In+Rn]=Xn):(Nt||ie)&&(On[In+Rn]=jn,On[Rn]=Xn,On[Pn]=jn,kn[In+Rn]=jn),Rt&&(bn.cw||(On[In+Rn]=jn),kn[Rn]=wn&&Ie?Kn.dw:Un,On[Rn]=Un,On[Pn]=xt),jt&&(bn.ch||(On[In+Nn]=jn),kn[Nn]=wn?Ue?Kn.dh:Un:$e[0].clientHeight),se&&Ke.css(kn),$e.css(On),On={},kn={},ut=ut||{x:!1,y:!1},e||t||rt||ot||ie||Nt||Rt||Zt||jt||bn.c||pe||De||ae||$||I||Re||Be||ne||ie||Re||Be||i){var Qn={},Gn=ut.y&&ht.ys&&!he?we.y?Ge.css(st):-ge.y:0,tr=ut.x&&ht.xs&&!he?we.x?Ge.css(Fn):-ge.x:0;C(Qn,jn),Ge.css(Qn),jt&&!wn&&($e.css("overflow","hidden"),On.overflow=jn);var nr=fe(),rr={w:nr.clientWidth,h:nr.clientHeight},ir={w:nr.scrollWidth,h:nr.scrollHeight},or={w:wn&&Kn&&!Ie?Kn.ow:Rt?rr.w:ir.w,h:wn&&Kn&&!Ue?Kn.oh:jt?rr.h:ir.h};Qn[Fn]=$t?jn:tr,Qn[st]=Pt?jn:Gn,Ge.css(Qn);var ar=qe[0],sr={w:ar.clientWidth,h:ar.clientHeight},lr={w:Math.max(or.w+(re?Te:0),sr.w-Te)-(Ie&&wn&&Rt?We+(ze?0:Te+He):0),h:Math.max(or.h+(re?Ae:0),sr.h-Ae)};if(lr.c=b(lr,Ot,i),Ot=lr,se){(lr.c||jt||Rt)&&(kn[Rn]=lr.w,kn[Nn]=lr.h);var cr=kn[Rn]+(ze?He:-Te),fr=kn[Nn]+(ze?Me:-Te),ur={};(!Rt||!Rt&&un.c)&&(kn[Rn]=sr.w-(ze?0:Te+He)-1-We),(!jt||!jt&&un.c)&&(kn[Nn]=sr.h-(ze?0:Ae+Me)-1-Ee),bn.cw&&bn.iw===cr&&(kn[Rn]=cr+(ze?0:Te)+1),bn.ch&&bn.ih===fr&&(kn[Nn]=fr+(ze?0:Ae)+1),Rt&&(rr.w<zn.w||wn&&!te)&&0===Te&&(wn&&(ur[Rn]=le(et.css(Rn))-1),kn[Rn]-=1),jt&&(rr.h<zn.h||wn)&&0===Ae&&(wn&&(ur[Nn]=le(et.css(Nn))-1),kn[Nn]-=1),or.h>0&&(kn[Rn]=Math.max(1,kn[Rn]),kn[Nn]=Math.max(1,kn[Nn])),wn&&et.css(ur),Ke.css(kn)}Rt&&(On[Rn]=Xn),!Rt||ze||en||(On[Pn]="none"),$e.css(On),On={};var hr=nr.getBoundingClientRect(),dr={w:nr.scrollWidth,h:nr.scrollHeight};if(hr.width!==n){var wr=hr.width,xr=hr.height;dr.w+=le(wr+.001)-wr,dr.h+=le(xr+.001)-xr}dr.c=t=b(dr,ct,i),ct=dr,e=b(sr={w:ar.clientWidth,h:ar.clientHeight},lt),lt=sr;var Cr={x:"v-s"===ke.x,y:"v-s"===ke.y},Sr={x:"v-h"===ke.x,y:"v-h"===ke.y},Or={x:"s"===ke.x,y:"s"===ke.y},kr={x:Math.max(0,dr.w-sr.w+(re?Te:0)),y:Math.max(0,dr.h-sr.h+(re?Ae:0))},zr=wn&&(0===zn.w||0===zn.h);zr&&(kr.x=0,kr.y=0);var Mr={x:kr.x>0,y:kr.y>0},Wr={x:Mr.x,y:Mr.y};(Cr.x||Sr.x)&&(Wr.x=Mr.y&&!Cr.y&&!Sr.y),(Cr.y||Sr.y)&&(Wr.y=Mr.x&&!Cr.x&&!Sr.x),Wr.xs=!!Wr.x&&(Or.x||Cr.x),Wr.ys=!!Wr.y&&(Or.y||Cr.y);var Er={x:Mr.x&&Wr.xs,y:Mr.y&&Wr.ys},Fr=zt;if(kr.c=b(kr,zt,_n,Vn,i),zt=kr,Mr.c=b(Mr,ut,_n,Vn,i),ut=Mr,Wr.c=b(Wr,ht,_n,Vn,i),ht=Wr,we.x||we.y){var Lr=i,Dr={};if((Mr.x||Mr.y)&&(Dr.w=we.y&&Mr.y?dr.w+xe.y:jn,Dr.h=we.x&&Mr.x?dr.h+xe.x:jn,Lr=g(Dr,ft,i),ft=Dr),Mr.c||Wr.c||dr.c||rt||Nt||Zt||Rt||jt||pe){On[Mn+xt]=jn,On[An+xt]=jn,we.x&&Mr.x&&Wr.xs?(jt&&(On[An+Fn]=he?jn:xe.x),On[Mn+Fn]=jt||he?jn:xe.x+"px solid transparent"):(Dr.h=jn,Lr=!0,On[Mn+Fn]=jn,On[An+Fn]=jn),we.y&&Mr.y&&Wr.ys?(Rt&&(On[An+st]=he?jn:xe.y),On[Mn+st]=he?jn:xe.y+"px solid transparent"):(Dr.w=jn,Lr=!0,On[Mn+st]=jn,On[An+st]=jn)}if(he&&(Dr.w=jn,Dr.h=jn,Lr=!0),Lr){var Ir={};Ir[Rn]=Wr.y?Dr.w:jn,Ir[Nn]=Wr.x?Dr.h:jn,Ze===n&&(Ze=a(qn+Tr+Yn),Ge.prepend(Ze)),Ze.css(Ir)}$e.css(On)}var Rr={},Tn={};if(e||Mr.c||Wr.c||dr.c||De||ot||pe||rt||ae||Zt){Rr[xt]=jn;var Nr=function(){Rr[Fn]=jn,Sn.h=0},Pr=function(){Rr[st]=jn,Sn.w=0};if(Mr.x&&Wr.xs?(Rr["overflow-x"]=Bn,he?Nr():(Rr[Fn]=-(we.x?xe.x:ge.x),Sn.h=we.x?xe.y:0)):(Rr["overflow-x"]=jn,Nr()),Mr.y&&Wr.ys?(Rr["overflow-y"]=Bn,he?Pr():(Rr[st]=-(we.y?xe.y:ge.y),Sn.w=we.y?xe.x:0)):(Rr["overflow-y"]=jn,Pr()),(zn.h<be.x||zn.w<be.y)&&(Mr.x&&Wr.x&&!we.x||Mr.y&&Wr.y&&!we.y)?(Rr[Hn+Wn]=be.x,Rr[An+Wn]=-be.x,Rr[Hn+xt]=be.y,Rr[An+xt]=-be.y):(Rr[Hn+Wn]=jn,Rr[An+Wn]=jn,Rr[Hn+xt]=jn,Rr[An+xt]=jn),Rr[Hn+st]=jn,Rr[An+st]=jn,Mr.x&&Wr.x||Mr.y&&Wr.y||zr?wn&&zr&&(Tn["overflow-x"]="hidden",Tn["overflow-y"]="hidden"):(!oe||Sr.x||Cr.x||Sr.y||Cr.y)&&(wn&&(Tn["overflow-x"]=jn,Tn["overflow-y"]=jn),Rr["overflow-x"]="visible",Rr["overflow-y"]="visible"),Qe.css(Tn),Ge.css(Rr),Rr={},(Mr.c||ot||Nt||Zt)&&(!we.x||!we.y)){var jr=$e[0],Ur=jr.style;Ur.webkitTransform="scale(1)",Ur.display="run-in";jr.offsetHeight;Ur.display=jn,Ur.webkitTransform=jn}if(pe&&he){qe.hide();qe[0].offsetHeight;qe.show()}}if(On={},rt||Nt||Zt)if(Fe&&Rt){var qr=$e.css(Pn),Yr=Math.round($e.css(Pn,jn).css(Ln,jn).position().left);$e.css(Pn,qr),Yr!==Math.round($e.position().left)&&(On[Ln]=Yr)}else On[Ln]=jn;$e.css(On);var Jr="v"===D,Zr="h"===D,$r="a"===D,ei=j.bind(0,!0,!0,Er.x),ti=j.bind(0,!1,!0,Er.y),ni=j.bind(0,!0,!1,Er.x),ri=j.bind(0,!1,!1,Er.y);if(rt&&(Fe?qe.addClass(vr):qe.removeClass(vr)),xn&&qe.addClass(pr),$){var ii=function(){tt.off(er,k)};dn?(qe.addClass(pr),tt.removeClass(Br).removeClass(Xr).removeClass(_r).removeClass(Vr),ii()):(qe.removeClass(pr),tt.addClass(Br),vn?tt.addClass(Xr):pn?tt.addClass(_r):yn&&tt.addClass(Vr),ii(),tt.on(er,k))}if((I||De||Wr.c||Mr.c||pe)&&(he?pe&&(qe.removeClass(yr),he&&(ni(),ri())):$r?(Er.x?ei():ni(),Er.y?ti():ri()):Jr?(ei(),ti()):Zr&&(ni(),ri())),N||pe){var oi=function(){Oe?(d(qe,"mouseenter",J),d(qe,"mouseleave",K)):(qe.off("mouseenter",J),qe.off("mouseleave",K))};cn?(oi(),Oe?(h(qe,"mouseenter",J),h(qe,"mouseleave",K)):(qe.on("mouseenter",J),qe.on("mouseleave",K))):oi(),sn?U(!0):U(!1,!0)}if((e||kr.c||Zt||Nt||$||ot||ie||pe||rt)&&(B(!0),X(!0,l.l),B(!1),X(!1,l.t)),V&&_(!0,P),Y&&_(!1,q),Wr.x||Wr.y?qe.addClass(mr):qe.removeClass(mr),Wr.x?qe.addClass(gr):qe.removeClass(gr),Wr.y?qe.addClass(br):qe.removeClass(br),wn&&t){var ai=H();if(ai!==n){var si=Wt===n||ai.rows!==Wt.rows,li=ai.wRow,ci=ai.cursorRow,fi=ai.cursorCol,ui=ai.rows,hi=ai.cols,di=ai.pos,vi=ai.max===di&&rn,pi={x:te||fi!==hi||ci!==li?-1:zt.x,y:(te?vi||si&&Fr!==n&&l.t===Fr.y:(vi||si)&&ci===ui)?zt.y:-1},yi=pi.x>-1,mi=pi.y>-1;(yi||mi)&&(mi&&Ge[$n](pi.y),yi&&(Fe&&qt&&de.i?Ge[Zn](0):Ge[Zn](pi.x)))}Wt=ai}else wn||(Fe&&de.i&&we.y&&Mr.x&&qt&&(l.l+=Sn.w),Ge[Zn](l.l),Ge[$n](l.t));rt&&a.isFunction(E)&&x(E,{isRTL:Fe,dir:nt}),e&&a.isFunction(L)&&x(L,{width:lt.w,height:lt.h}),t&&a.isFunction(F)&&x(F,{width:ct.w,height:ct.h}),(Mr.c||Wr.c)&&a.isFunction(M)&&x(M,{x:Mr.x,y:Mr.y,xScrollable:Wr.xs,yScrollable:Wr.ys,clipped:Wr.x||Wr.y}),kr.c&&a.isFunction(W)&&x(W,{x:kr.x,y:kr.y})}xn&&(Mr.c||Gt.c)&&(Gt.f||ee(),we.y&&Mr.x&&$e.css(Dn+Rn,Gt.w+xe.y),we.x&&Mr.y&&$e.css(Dn+Nn,Gt.h+xe.x),Gt.c=!1),p(Je),p(Ye),a.isFunction(T)&&x(T,{forced:i})}}if(Z(t)){if(o.has(t)){var he=o.get(t);return he.options(l),he}var de,ve,pe,ye,me,ge,be,we,xe,Ce,Se,Oe,ke,ze,Te,Ae,He,Me,We,Ee,Fe,Le,De,Ie,Re,Ne,Pe,je,Ue,Be,Xe,_e,Ve,qe,Ye,Je,Ke,Qe,Ge,Ze,$e,et,tt,nt,rt,it,ot,at,st,lt,ct,ft,ut,ht,dt,vt,pt,yt,mt,gt,bt,wt,xt,Ct,St,Ot,kt,zt,Tt,At,Ht,Mt,Wt,Et,Ft,Lt,Dt,It,Rt,Nt,Pt,jt,Ut,Bt,Xt,_t,Vt,qt,Yt,Jt,Kt,Qt,Gt,Zt,$t,en,tn,nn,rn,on,an,sn,ln,cn,fn,un,hn,dn,vn,pn,yn,mn=new e[i],gn=!1,bn=!1,wn=!1,xn=!1,Cn=!1,Sn={w:0,h:0},On={},kn={},zn={},Tn=175,An="margin-",Hn="padding-",Mn="border-",Wn="top",En="right",Fn="bottom",Ln="left",Dn="min-",In="max-",Rn="width",Nn="height",Pn="float",jn="",Un="auto",Bn="scroll",Xn="100%",_n="x",Vn="y",qn='<div class="',Yn='"></div>',Jn=".",Kn=" ",Qn="scrollbar",Gn="string",Zn=Bn+"Left",$n=Bn+"Top",er="mousedown touchstart",tr="mouseup touchend",nr="mousemove touchmove",rr="keydown",ir="keyup",or="selectstart",ar="transitionend webkitTransitionEnd oTransitionEnd",sr="~_overlayScrollbarsRO_~",lr="os-html",cr="os-host",fr=cr+"-textarea",ur=cr+"-"+Qn+"-horizontal-hidden",hr=cr+"-"+Qn+"-vertical-hidden",dr=cr+"-transition",vr=cr+"-rtl",pr=cr+"-resize-disabled",yr=cr+"-scrolling",mr=cr+"-overflow",gr=mr+"-x",br=mr+"-y",wr="os-textarea",xr=wr+"-cover",Cr="os-padding",Sr="os-viewport",Or=Sr+"-native-scrollbars-invisible",kr=Sr+"-native-scrollbars-overlaid",zr="os-content",Tr="os-content-arrange",Ar="os-content-glue",Hr="os-size-auto-observer",Mr="os-resize-observer",Wr="os-resize-observer-item",Er=Wr+"-final",Fr="os-text-inherit",Lr="os-"+Qn,Dr=Lr+"-track",Ir=Dr+"-off",Rr=Lr+"-handle",Nr=Rr+"-off",Pr=Lr+"-unusable",jr=Lr+"-"+Un+"-hidden",Ur=Lr+"-corner",Br=Ur+"-resize",Xr=Br+"-both",_r=Br+"-horizontal",Vr=Br+"-vertical",qr=Lr+"-horizontal",Yr=Lr+"-vertical",Jr="os-dragging",Kr="os-theme-none",Qr={},Gr=33,Zr=11,$r=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],ei=[],ti={x:0,y:0},ni={w:0,h:0};if(mn.sleep=function(){Le=!0},mn.update=function(e){if(e===Un){var t=se(),n=ae();(t||n)&&ue(!1,n)}else"zoom"===e?ue(!0,!0):(e=Le||e,Le=!1,ue(!1,!1,e))},mn.options=function(e,t){if(a.isEmptyObject(e)||!a.isPlainObject(e)){if("string"===a.type(e)){if(arguments.length>=2){var n={};return s.set(n,e,t,!0),oe(n),void ue()}return s.get(Re,e)}return Re}oe(e);var r=Le||!1;Le=!1,ue(),Le=r},mn.destroy=function(){bn=!0,f.remove(mn),O(),m(Je),Cn&&m(Ye),Je.remove(),Ke!==n&&Ke.remove(),Ze!==n&&Ze.remove(),Cn&&Ye.remove(),Oe?(d(qe,"mouseenter",J),d(qe,"mouseleave",K)):(qe.off("mouseenter",J),qe.off("mouseleave",K)),nt.remove(),ot.remove(),tt&&tt.remove(),dn||T(),$e.contents().unwrap().unwrap().unwrap(),xn&&Xe.removeClass(lr),wn?(Ve.off(Bn,R),Ve.off("drop",L),Ve.off("focus",D),Ve.off("focusout",I),pe>9||!ve?Ve.off("input",W):(Ve.off(rr,E),Ve.off(ir,F)),et.remove(),Ve.removeClass(wr).removeClass(Fr),Ve.unwrap().removeAttr("style"),qe.remove()):(Ve.removeClass(cr),qe.removeClass(cr).removeClass(pr).removeClass(vr).removeClass(ur).removeClass(hr).removeClass(dr).removeClass(yr).removeClass(mr).removeClass(gr).removeClass(br).removeClass(Kr).removeClass(Yt)),o.rem(t);var e=Ne.callbacks.onDestroyed;a.isFunction(e)&&x(e);for(var r in mn)delete mn[r];mn=n},mn.scroll=function(t,r,i,o){if(0===arguments.length||t===n){var s=On,l=kn,c=qt&&Fe&&de.i,f=qt&&Fe&&de.n,u=s.cs,h=s.csr,d=s.ms;return h=c?1-h:h,u=c?d-u:u,u*=f?-1:1,d*=f?-1:1,{x:{position:u,ratio:h,max:d,handleOffset:s.ho,handleLength:s.hl,handleLengthRatio:s.hlr,trackLength:s.tl,isRTL:Fe,isRTLNormalized:qt},y:{position:l.cs,ratio:l.csr,max:l.ms,handleOffset:l.ho,handleLength:l.hl,handleLengthRatio:l.hlr,trackLength:l.tl}}}var v,p=[_n,Ln,"l"],y=[Vn,Wn,"t"],m=["+=","-=","*=","/="],g={},b="object"===a.type(r),w={axis:"xy",block:["begin","begin"],margin:[0,0,0,0]},x=[_n,Vn,"xy","yx"],C=["begin","end"],S=t.hasOwnProperty("el"),O=S?t.el:t,k=O instanceof a,z=!k&&Z(O),T=function(e,t){for(v=0;v<t.length;v++)if(e===t[v])return!0;return!1},A=function(e){var t={};if("array"===a.type(e)&&e.length>0)t.x=e[0],t.y=e[1];else if(a.type(e)===Gn||"number"===a.type(e))t.x=e,t.y=e;else if("object"===a.type(e)){e=a.extend({},e),v=0;for(var n in e)e.hasOwnProperty(n)&&(v>2&&delete e[n],v++);var r=function(t){var n=t?p:y;for(v=0;v<n.length;v++)if(n[v]in e)return e[n[v]]};t.x=r(!0),t.y=r(!1)}return t},H=function(t,r){var i,o,s,l=t?On:kn,c=l.cs,f=l.ms,u=Fe&&t,h=u&&de.n&&!qt;if(a.type(r)===Gn){if(r.length>2){var d=r.substr(0,2);for(v=0;v<m.length;v++)if(d===m[v]){i=m[v];break}}r=(r=(r=(r=(r=(r=(r=(r=(r=i!==n?r.substr(2):r).replace(/min/g,0)).replace(/</g,0)).replace(/max/g,(h?"-":jn)+Xn)).replace(/>/g,(h?"-":jn)+Xn)).replace(/px/g,jn)).replace(/%/g," * "+f*(u&&de.n?-1:1)/100)).replace(/vw/g," * "+zn.w)).replace(/vh/g," * "+zn.h),o=e.parseInt(e.parseFloat(e.eval(r)).toFixed())}else"number"===a.type(r)&&(o=r);if(!isNaN(o)&&o!==n&&"number"===a.type(o)){var p=qt&&u,y=c*(p&&de.n?-1:1),g=p&&de.i,b=p&&de.n;switch(y=g?f-y:y,i){case"+=":s=y+o;break;case"-=":s=y-o;break;case"*=":s=y*o;break;case"/=":s=y/o;break;default:s=o}g&&(s=f-s),b&&(s*=-1),u&&de.n?(s=Math.max(f,s),s=Math.min(0,s)):(s=Math.min(f,s),s=Math.max(0,s)),s===c&&(s=n)}return s};if(k||z){var M=k?O:a(O);if(0===M.length)return;if(S){var W,E,F,L=t.axis,D=t.block,I=a.type(D),R=t.margin,N=a.type(R);if(I===Gn)D=[D,D];else if("array"===I)if((E=D.length)>2||E<1)D=n;else{for(W=!0,1===E&&(D[1]="begin"),v=0;v<E;v++){var P=D[v];if(a.type(P)!==Gn||!T(P,C)){W=!1;break}}W||(D=n)}else D=n;if("number"===N)R=[R,R,R,R];else if("boolean"===N)R=R?[le(M.css(An+Wn)),le(M.css(An+En)),le(M.css(An+Fn)),le(M.css(An+Ln))]:[0,0,0,0];else if("array"===N)if(2!==(F=R.length)&&4!==F)R=n;else{for(W=!0,v=0;v<F;v++)if("number"!==a.type(R[v])){W=!1;break}W?2===F&&(R=[R[0],R[1],R[0],R[1]]):R=n}else R=n;w.axis=T(L,x)?L:w.axis,w.block=D||w.block,w.margin=R||w.margin}var j=M.offset(),U=Qe.offset(),B=zn,X={l:On.cs,t:kn.cs},_=w.axis,V=w.block,q=w.margin,Y=V[0]===(Fe?"begin":"end"),J="end"===V[1],K=Y||J;j.top-=q[0],j.left-=q[3];var Q={x:Math.round(j.left-U.left+X.l),y:Math.round(j.top-U.top+X.t)};if(Fe&&(de.n||de.i||(Q.x=Math.round(U.left-j.left+X.l)),de.n&&qt&&(Q.x*=-1),de.i&&qt&&(Q.x=Math.round(U.left-j.left+(On.ms-X.l)))),K){var G,$={},ee={w:($=Se?{w:(G=M[0].getBoundingClientRect())[Rn],h:G[Nn]}:{w:M[0].offsetWidth,h:M[0].offsetHeight}).w+q[3]+q[1],h:$.h+q[0]+q[2]};Y&&(Q.x-=(B.w-ee.w)*(Fe&&qt?-1:1)),J&&(Q.y-=B.h-ee.h)}_===_n&&delete Q.y,_===Vn&&delete Q.x,t=Q}g.x=H(!0,A(t).x),g.y=H(!1,A(t).y);var te=g.x!==n,ne=g.y!==n;if(r>0||b){var re={};if(te&&(re[Zn]=g.x),ne&&(re[$n]=g.y),b)Ge.animate(re,r);else{var ie={duration:r,complete:o};if("array"===a.type(i)){var oe={};oe[Zn]=i[0],oe[$n]=i[1],ie.specialEasing=oe}else ie.easing=i;Ge.animate(re,ie)}}else te&&Ge[Zn](g.x),ne&&Ge[$n](g.y)},mn.scrollStop=function(e,t,n){Ge.stop(e,t,n)},mn.getElements=function(){return{target:Ve[0],host:qe[0],padding:Qe[0],viewport:Ge[0],content:$e[0],scrollbarHorizontal:{scrollbar:nt[0],track:rt[0],handle:it[0]},scrollbarVertical:{scrollbar:ot[0],track:at[0],handle:st[0]},scrollbarCorner:tt}},mn.getState=function(e){var t=function(e){if(!a.isPlainObject(e))return e;var t=a.extend(!0,{},e);s.del(t,"c");var n=function(e,n){t.hasOwnProperty(e)&&(t[n]=t[e],delete t[e])};return n("w",Rn),n("h",Nn),t},n={sleeping:t(Le)||!1,autoUpdate:t(!en),widthAuto:t(dt),heightAuto:t(vt),padding:t(mt),overflowAmount:t(zt),hideOverflow:t(ht),hasOverflow:t(ut),contentScrollSize:t(ct),viewportSize:t(zn),hostSize:t(lt)};return a.type(e)===Gn?s.get(n,e):n},function(e,t){Ie=c.defaultOptions,ye=c.nativeScrollbarStyling,ge=a.extend(!0,{},c.nativeScrollbarSize),we=a.extend(!0,{},c.nativeScrollbarIsOverlaid),xe=a.extend(!0,{},c.overlayScrollbarDummySize),de=a.extend(!0,{},c.rtlScrollBehavior),oe(a.extend(!0,{},Ie,t));var n=Ne.callbacks;if(we.x&&we.x&&!Ne.nativeScrollbarsOverlaid.initialize){var i=n.onInitializationWithdrawn;return a.isFunction(i)&&x(i),!1}me=c.cssCalc,pe=c.msie,ve=c.autoUpdateRecommended,Ce=c.supportTransition,Se=c.supportTransform,Oe=c.supportPassiveEvents,ke=c.supportResizeObserver,tn=c.supportMutationObserver,Be=a(e.ownerDocument),Ue=a(Be[0].defaultView||Be[0].parentWindow),Xe=Be.find("html").first(),_e=Xe.find("body").first(),Ve=a(e),wn=Ve.is("textarea");var o;if((xn=Ve.is("body"))&&((o={}).l=Math.max(Ve[Zn](),Xe[Zn](),Ue[Zn]()),o.t=Math.max(Ve[$n](),Xe[$n](),Ue[$n]())),wn){Ve.wrap(qn+fr+Yn),Ve.addClass(wr).addClass(Fr),qe=Ve.parent();var s={};Ne.sizeAutoCapable||(s[Rn]=Ve.css(Rn),s[Nn]=Ve.css(Nn)),qe.css(s),qe.wrapInner(qn+zr+Kn+Fr+Yn).wrapInner(qn+Sr+Kn+Fr+Yn).wrapInner(qn+Cr+Kn+Fr+Yn),$e=qe.find(Jn+zr).first(),Ge=qe.find(Jn+Sr).first(),Qe=qe.find(Jn+Cr).first(),et=a(qn+xr+Yn),$e.prepend(et),Ve.on(Bn,R),Ve.on("drop",L),Ve.on("focus",D),Ve.on("focusout",I),pe>9||!ve?Ve.on("input",W):(Ve.on(rr,E),Ve.on(ir,F))}else Ve.addClass(cr),(qe=Ve).wrapInner(qn+zr+Yn).wrapInner(qn+Sr+Yn).wrapInner(qn+Cr+Yn),$e=qe.find(Jn+zr).first(),Ge=qe.find(Jn+Sr).first(),Qe=qe.find(Jn+Cr).first(),$e.on(ar,function(e){!0!==At&&ce((e=e.originalEvent||e).propertyName)&&ue(Un)});if(V(),Oe?h(Ge,Bn,Q):Ge.on(Bn,Q),ye&&(we.x&&we.y?Ge.addClass(kr):Ge.addClass(Or)),tn){var l,f=r.mO(),d=r.now();Zt=new f(function(e){if(gn&&!Le){var t=!1;a.each(e,function(){var e=this,n=this.target,r=e.attributeName;if(t="class"===r?re(e.oldValue,n.className):"style"!==r||e.oldValue!==n.style.cssText)return!1}),t&&mn.update(Un)}}),$t=new f(function(e){if(gn&&!Le){for(var t=!1,n=0;n<e.length;n++)if(ie(e[n])){t=!0;break}if(t){var i=r.now(),o=vt||dt,a=function(){d=i,wn&&A(),o?mn.update():mn.update(Un)};clearTimeout(l),Zr<=0||i-d>Zr||!o?a():l=setTimeout(a,Zr)}}})}xn&&(Xe.addClass(lr),Ge[Zn](o.l),Ge[$n](o.t)),Je=a(qn+"os-resize-observer-host"+Yn),qe.prepend(Je),y(Je,u),u(),mn.update(Un),setTimeout(function(){Ce&&!bn&&qe.addClass(dr)},333),gn=!0;var v=n.onInitialized;return a.isFunction(v)&&x(v),gn}(t,l))return o.add(t,mn),mn;mn=n}}var h,d,v={className:"os-theme-dark",resize:"none",sizeAutoCapable:!0,clipAlways:!0,normalizeRTL:!0,paddingAbsolute:!1,autoUpdate:null,autoUpdateInterval:33,nativeScrollbarsOverlaid:{showNativeScrollbars:!1,initialize:!0},overflowBehavior:{x:"scroll",y:"scroll"},scrollbars:{visibility:"auto",autoHide:"never",autoHideDelay:800,dragScrolling:!0,clickScrolling:!1,touchSupport:!0},textarea:{dynWidth:!1,dynHeight:!1},callbacks:{onInitialized:null,onInitializationWithdrawn:null,onDestroyed:null,onScrollStart:null,onScroll:null,onScrollStop:null,onOverflowChanged:null,onOverflowAmountChanged:null,onDirectionChanged:null,onContentSizeChanged:null,onHostSizeChanged:null,onUpdated:null}};e[i]=function(e,t){if(0===arguments.length)return this;l();var r,i=[];return a.isPlainObject(t)?e&&e.length?e.length>1?(a.each(e,function(){(r=this)!==n&&i.push(u(r,t,h,d))}),i):u(e[0],t,h,d):u(e,t,h,d):e?e.length&&e.length>0?e.length>1?(a.each(e,function(){r=o.get(this),"!"===t?r!==n&&i.push(r):i.push(r)}),i):o.get(e[0]):o.get(e):void 0},e[i].globals=function(){l();var e=a.extend(!0,{},h);return delete e.msie,e},e[i].defaultOptions=function(e){l();var t=h.defaultOptions;if(e===n)return a.extend(!0,{},t);h.defaultOptions=a.extend(!0,{},t,e)}}(o,function(e){function t(e){for(var t=0;t<r.length;t++)if(e===r[t])return e[i]}var r=[],i="__overlayScrollbars__";return{all:function(){return r},add:function(e,t){e[i]=t,r.push(e)},rem:function(t){var n=e.inArray(t,r);n>-1&&(delete t[i],r.splice(n,1))},has:function(e){return t(e)!==n},get:t}}(a),a,function(e){function t(r,i,o,a,s){var l=!1;if(o=o===n?"":o,"string"!=typeof i)return l;if(0===i.length)return l;if(""===o){for(var c=i.split("."),f=r,u="",h=!1,d=0;d<c.length;d++){var v=c[d];if(f=f[v],u+=v+".","object"!==e.type(f)&&d+1!==c.length){h=!0;break}}if(h)return u.slice(0,-1)}for(var p in r)if(r.hasOwnProperty(p)){var y=o+p===i;if("object"!==e.type(r[p])||y){if(y){"function"==typeof a&&a(r,p),l=!0;break}}else if(l=t(r[p],i,o+p+".",a,s),"function"==typeof s&&s(r,p),l)break}return l}return{has:function(e,n){return t(e,n)},get:function(e,n){var r;return t(e,n,"",function(e,t){r=e[t]}),r},set:function(n,r,i,o){var a=!1;if(t(n,r,"",function(e,t){e[t]=i,a=!0}),!a&&o){for(var s=r.split("."),l={},c=l,f=0;f<s.length;f++){var u=f===s.length-1?i:{};c=c[s[f]]=u}e.extend(!0,n,l),a=!0}return a},del:function(n,r,i){var o=!1;return t(n,r,"",function(e,t){delete e[t],o=!0},function(t,n){i&&e.isEmptyObject(t[n])&&delete t[n]}),o}}}(a))}); | ||
!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(e,e.document,void 0,n)}):"object"==typeof exports?module.exports=t(e,e.document,void 0,require("jquery")):t(e,e.document,void 0,e.jQuery)}(this,function(e,t,n,r){"use-strict";var i="OverlayScrollbars",o={wW:function(){return e.innerWidth||t.documentElement.clientWidth||t.body.clientWidth},wH:function(){return e.innerHeight||t.documentElement.clientHeight||t.body.clientHeight},mO:function(){return e.MutationObserver||e.WebKitMutationObserver||e.WebkitMutationObserver||e.MozMutationObserver||n},rO:function(){return e.ResizeObserver||e.WebKitResizeObserver||e.WebkitResizeObserver||e.MozResizeObserver||n},rAF:function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)}},cAF:function(){return e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||e.msCancelAnimationFrame||function(t){return e.clearTimeout(t)}},now:function(){return Date.now()||(new Date).getTime()},stpP:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},prvD:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},page:function(e){var r=((e=e.originalEvent||e).target||e.srcElement||t).ownerDocument||t,i=r.documentElement,o=r.body;if(e.touches!==n){var a=e.touches[0];return{x:a.pageX,y:a.pageY}}return!e.pageX&&e.clientX&&null!=e.clientX?{x:e.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),y:e.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)}:{x:e.pageX,y:e.pageY}},mBtn:function(e){return e.which||e.button===n?e.which:1&e.button?1:2&e.button?3:4&e.button?2:0}},a=function(t){return t.fn.overlayScrollbars=function(n){var r=this;return t.isPlainObject(n)?(t.each(r,function(){e[i](this,n)}),r):e[i](r,n)},t}(r);!function(r,o,a,s){function l(){h===n&&(h=new c(v)),d===n&&(d=new f(h))}function c(i){function s(e){var r=!1,i="Webkit Moz ms O".split(" "),o=t.createElement("div"),a=null;if(e=e.toLowerCase(),o.style[e]!==n&&(r=!0),!1===r){a=e.charAt(0).toUpperCase()+e.substr(1);for(var s=0;s<i.length;s++)if(o.style[i[s]+a]!==n){r=!0;break}}return r}var l=this;l.defaultOptions=i,l.autoUpdateLoop=!1,l.autoUpdateRecommended=r.mO()===n;var c=a("body"),f=a('<div id="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%;"></div></div>'),u=function(){c.append(f);var e=f[0],t=a(f.children("div").first());0===e.offsetHeight&&f.hide().show();var n={x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth};f.addClass("os-viewport-native-scrollbars-invisible"),f.css("overflow","hidden").hide().css("overflow","scroll").show(),l.nativeScrollbarStyling=e.offsetHeight-e.clientHeight==0&&e.offsetWidth-e.clientWidth==0,f.css({"overflow-y":"hidden",direction:"rtl"}).scrollLeft(0);var r=f.offset(),i=t.offset();f.scrollLeft(999);var o=t.offset();return l.rtlScrollBehavior={i:r.left===i.left,n:i.left-o.left==0},f.removeAttr("style").remove(),n}(),h={x:0===u.x,y:0===u.y};l.nativeScrollbarSize=u,l.nativeScrollbarIsOverlaid=h,l.overlayScrollbarDummySize={x:30,y:30},l.msie=function(){var t=e.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);if(t.indexOf("Trident/")>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var i=t.indexOf("Edge/");return i>0&&parseInt(t.substring(i+5,t.indexOf(".",i)),10)}(),l.cssCalc=function(){for(var e=t.createElement("div"),n=["calc","-webkit-calc","-moz-calc","-o-calc"],r=0;r<n.length;++r){var i=n[r];if(e.style.cssText="width:"+i+"(1px);",e.style.length)return i}return null}(),l.supportTransform=s("transform"),l.supportTransition=s("transition"),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(r.prototype=this.prototype),i.prototype=new r,i});var d=!1;try{var v=Object.defineProperty({},"passive",{get:function(){d=!0}});e.addEventListener("test",null,v)}catch(e){}l.supportPassiveEvents=d,l.supportResizeObserver=r.rO()!==n,l.supportMutationObserver=r.mO()!==n,function(){function t(e,t){var n=Math.abs(e),r=Math.abs(t);return!(n===r||n+1===r||n-1===r)}function n(){var t=screen.deviceXDPI||0,n=screen.logicalXDPI||1;return e.devicePixelRatio||t/n}if(!h.x||!h.y){var i=r.wW(),s=r.wH(),u=n();a(e).on("resize",function(){if(o.all().length>0){var e=r.wW(),h=r.wH(),d=e-i,v=h-s;if(0===d&&0===v)return;var p=Math.round(e/(i/100)),y=Math.round(h/(s/100)),m=Math.abs(d),g=Math.abs(v),b=Math.abs(p),w=Math.abs(y),x=n(),C=m>2&&g>2,S=!t(b,w),O=x!==u&&u>0;if(!!(C&&S&&O)){c.append(f);var k=f[0];l.nativeScrollbarSize={x:k.offsetHeight-k.clientHeight,y:k.offsetWidth-k.clientWidth},f.remove(),a.each(o.all(),function(){o.has(this)&&o.get(this).update("zoom")})}i=e,s=h,u=x}})}}()}function f(e){var t,i=this,o=[],s=[],l=!1,c=33,f=r.now(),u=function(){if(o.length>0&&l){t=r.rAF()(function(){u()});var e=r.now(),i=e-f;if(i>c){f=e-i%c;for(var a=33,h=0;h<o.length;h++){var d=o[h];if(d!==n){var v=d.options(),p=v.autoUpdate,y=Math.max(1,v.autoUpdateInterval),m=r.now();(!0===p||null===p)&&m-s[h]>y&&(d.update("auto"),s[h]=new Date(m+=y)),a=Math.max(1,Math.min(a,y))}}c=a}}else c=33};i.add=function(t){-1===a.inArray(t,o)&&(o.push(t),s.push(r.now()),o.length>0&&!l&&(l=!0,e.autoUpdateLoop=l,u()))},i.remove=function(i){var c=a.inArray(i,o);c>-1&&(s.splice(c,1),o.splice(c,1),0===o.length&&l&&(l=!1,e.autoUpdateLoop=l,t!==n&&(r.cAF()(t),t=-1)))}}function u(t,l,c,f){function u(){if(!Le){var e=Je[0],t={w:e.scrollWidth,h:e.scrollHeight};if(gn){var n=b(t,jt);jt=t,n&&ue(!0,!1)}else jt=t}}function h(e,t,n){e=e[0];for(var r=t.split(Kn),i=0;i<r.length;i++)e.addEventListener(r[i],n,{passive:!0})}function d(e,t,n){e=e[0];for(var r=t.split(Kn),i=0;i<r.length;i++)e.removeEventListener(r[i],n,{passive:!0})}function v(e){if(e!==n&&ke){var t=e.contents()[0];t[sr].unobserve(t)}}function p(e){if(e!==n&&ke){var t=e.contents()[0];t[sr].observe(t)}}function y(e,t){var n=function(n){e.scrollTop(3333333),e.scrollLeft(Fe?de.n?-3333333:de.i?0:3333333:3333333),t()};if(ke){var i=r.rO(),o=e.append(qn+Mr+" observed"+Yn).contents()[0];(o[sr]=new i(n)).observe(o)}else{var s="animationstart mozAnimationStart webkitAnimationStart MSAnimationStart";if(pe>9||!ve){var l=qn+Mr+'">';l+=qn+Wr+'" dir="ltr">',l+=qn+Wr+'">',l+=qn+Er+Yn,l+="</div>",l+=qn+Wr+'">',l+=qn+Er+'" style="width: 200%; height: 200%'+Yn,l+="</div>",l+="</div>",l+="</div>",e.prepend(l);var f,u,h,d,v=(e=e[0]).childNodes[0].childNodes[0],p=a(v.childNodes[1]),y=a(v.childNodes[0]),m=a(y[0].childNodes[0]),g=v.offsetWidth,b=v.offsetHeight,w=c.nativeScrollbarSize,x=function(){y[Zn](3333333)[$n](3333333),p[Zn](3333333)[$n](3333333)},C=function(){u=0,f&&(g=h,b=d,n())},S=function(e){return h=v.offsetWidth,d=v.offsetHeight,f=h!=g||d!=b,e&&f&&!u?(r.cAF()(u),u=r.rAF()(C)):e||C(),x(),e&&(r.prvD(e),r.stpP(e)),!1},O={};O[Wn]=-2*(w.y+1),O[En]=-2*w.x,O[Fn]=-2*w.y,O[Ln]=-2*(w.x+1),a(v).css(O),y.on(Bn,S),p.on(Bn,S),a(e).on(s,function(){S(!1)});var k={};k[Rn]=3333333,k[Nn]=3333333,m.css(k),x()}else{var z=Be[0],T=e;e=e[0];var A=z.attachEvent,H="undefined"==typeof navigator||(navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));if(A)T.prepend(qn+Mr+Yn),T.find(Jn+Mr).first()[0].attachEvent("onresize",n);else{var M=z.createElement("object");M.setAttribute("tabindex","-1"),M.setAttribute("class",Mr),M.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",n),e.document.documentElement.style.display="none"},M.type="text/html",H&&T.prepend(M),M.data="about:blank",H||T.prepend(M),T.on(s,n)}}}if((e=a(e))[0]===Je[0]){var W=function(){var t=qe.css("direction");if(t!==xt){var n={},r=0;return"ltr"===t?(n[Ln]=0,n[En]=Un,r=3333333):(n[Ln]=Un,n[En]=0,r=de.n?-3333333:de.i?0:3333333),Je.children().first().css(n),e.scrollLeft(r),e.scrollTop(3333333),xt=t,!0}return!1};W(),e.on(Bn,function(e){return W()&&ue(),r.prvD(e),r.stpP(e),!1})}}function m(e){if(ke){var t=e.contents()[0];t[sr].disconnect(),delete t[sr]}else e.children(Jn+Mr).first().remove()}function g(e,t,r){return!0===r?r:t===n||e!==t}function b(e,t,r,i,o){if(!0===o)return o;if(i===n&&o===n){if(!0===r)return r;r=n}return r=r===n?"w":r,i=i===n?"h":i,t===n||(e[r]!==t[r]||e[i]!==t[i])}function w(e,t){return t===n||(e.t!==t.t||e.r!==t.r||e.b!==t.b||e.l!==t.l)}function x(e,t){e.call(mn,t)}function C(e,t,r){r===n&&(r=[jn,jn,jn,jn]),e[t+Wn]=r[0],e[t+En]=r[1],e[t+Fn]=r[2],e[t+Ln]=r[3]}function S(){tn&&!en&&(Zt.observe(qe[0],{attributes:!0,attributeOldValue:!0,attributeFilter:["id","class","style"]}),$t.observe(wn?Ve[0]:$e[0],{attributes:!0,attributeOldValue:!0,subtree:!wn,childList:!wn,characterData:!wn,attributeFilter:wn?["wrap","cols","rows"]:["id","class","style"]}),en=!0)}function O(){tn&&en&&(Zt.disconnect(),$t.disconnect(),en=!1)}function k(e){if(!Le){var t=(e.originalEvent||e).touches!==n;(1===r.mBtn(e)||t)&&(en&&(hn=!0,O()),ti=r.page(e),ni.w=qe[0].offsetWidth-(ze?0:Te),ni.h=qe[0].offsetHeight-(ze?0:Ae),Be.on(or,N),Be.on(nr,z),Be.on(tr,T),_e.addClass(Jr),tt.setCapture&&tt.setCapture(),r.prvD(e),r.stpP(e))}}function z(e){e.originalEvent;var t=r.page(e),n={};(pn||vn)&&(n[Rn]=ni.w+t.x-ti.x),(yn||vn)&&(n[Nn]=ni.h+t.y-ti.y),qe.css(n),r.stpP(e)}function T(e){var t=e!==n;Be.off(or,N),Be.off(nr,z),Be.off(tr,T),_e.removeClass(Jr),tt.releaseCapture&&tt.releaseCapture(),t&&(hn&&S(),mn.update(Un)),hn=!1}function A(){if(!Le){var e=!Mt,t=zn.w-(ze||Ct||!dt?0:Ae+Me),n=zn.h-(ze||Ct||!vt?0:Ae+Me),r={},i=dt||e,o=Ve[0];r[Dn+Rn]=jn,r[Dn+Nn]=jn,r[Rn]=Un,Ve.css(r);var a=o.offsetWidth,s=i?Math.max(a,o.scrollWidth-1):1;s+=dt?We+(ze?0:e?0:Te+He):0,r[Rn]=dt?s:Xn,r[Nn]=Un,Ve.css(r);var l=o.offsetHeight,c=Math.max(l,o.scrollHeight-1);return r[Rn]=s,r[Nn]=c,et.css(r),r[Dn+Rn]=t+(!ze&&dt?Te+He:0),r[Dn+Nn]=n+(!ze&&vt?Ae+Me:0),Ve.css(r),{ow:a,oh:l,dw:s,dh:c}}}function H(){var e=Ve.prop("selectionStart");if(e!==n){for(var t=Ve.val(),r=t.length,i=t.split("\n"),o=i.length,a=t.substr(0,e).split("\n"),s=0,l=0,c=a.length,f=a[a.length-1].length,u=0;u<i.length;u++){var h=i[u].length;h>l&&(s=u+1,l=h)}return{cursorRow:c,cursorCol:f,rows:o,cols:l,wRow:s,pos:e,max:r}}}function M(e){for(var t=0;t<$r.length;t++)if(e===$r[t])return!0;return!1}function W(){A(),mn.update(Un)}function E(e){var t=e.keyCode;if(!M(t)){if(0===ei.length){var n=function(){A(),mn.update(Un)};n(),nn=setInterval(n,1e3/60)}-1===a.inArray(t,ei)&&ei.push(t)}}function F(e){var t=e.keyCode;if(!M(t)){var n=a.inArray(t,ei);n>-1&&ei.splice(n,1),0===ei.length&&(A(),mn.update(Un),clearInterval(nn))}}function L(){setTimeout(function(){A(),mn.update(Un)},50)}function D(){rn=!0}function I(){rn=!1,clearInterval(nn),ei=[],A(),mn.update(Un)}function R(e){return Ve[Zn](de.i&&qt?9999999:0),Ve[$n](0),r.prvD(e),r.stpP(e),!1}function N(e){return r.prvD(e),!1}function P(){return Tt&&we.x&&we.y}function j(e,t,n){var r=e?ur:hr,i=e?nt:ot;t?qe.removeClass(r):qe.addClass(r),n?i.removeClass(Pr):i.addClass(Pr)}function U(e,t){if(clearTimeout(on),e)nt.removeClass(jr),ot.removeClass(jr);else{var n=function(){if(!un){var e=it.hasClass("active")||st.hasClass("active");e||!ln&&!cn||nt.addClass(jr),e||!ln&&!cn||ot.addClass(jr)}};an>0&&!0!==t?on=setTimeout(n,an):n()}}function B(e){var t={},n=Y(e),r=Math.min(1,(lt[n._wh]-(Ct?e?Te:Ae:0))/ct[n._wh]);t[n.wh]=Math.floor(100*r*1e5)/1e5+"%",P()||n.h.css(t),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=r}function X(e,t){var n=Fe&&e,r={},i=Y(e),o=Ge[0][Bn+i.WH]-Ge[0]["client"+i.WH];de.n&&n&&(o*=-1);var a=t/o;a=isNaN(a)?0:Math.min(1,a),i.i.ms=o,i.i.cs=t,i.i.csr=a;var s=i.i.hl,l=i.t[0]["offset"+i.WH],c=(l-s)*a;if(c=isNaN(c)?0:c,n&&(de.n||!de.n&&!de.i)&&(c=l-s-c),c=Math.max(0,c),Se){n&&(c=-(l-s-c));var f;f=e?"translate("+c+"px, 0px)":"translate(0px, "+c+"px)",r["-webkit-transform"]=f,r["-moz-transform"]=f,r["-ms-transform"]=f,r["-o-transform"]=f,r.transform=f}else r[i.lt]=c;P()||i.h.css(r),i.i.ho=c,i.i.tl=l}function _(e,t){var n=t?"removeClass":"addClass",r=e?rt:it,i=e?at:st,o=e?Ir:Nr;r[n](o),i[n](o)}function V(){nt=a(qn+Lr+Kn+qr+Yn),rt=a(qn+Dr+Yn),it=a(qn+Rr+Yn),ot=a(qn+Lr+Kn+Yr+Yn),at=a(qn+Dr+Yn),st=a(qn+Rr+Yn),nt.append(rt),rt.append(it),ot.append(at),at.append(st),Qe.after(ot),Qe.after(nt),Ce&&(nt.on(ar,function(e){e.target===nt[0]&&(B(!0),X(!0,Ge[Zn]()))}),ot.on(ar,function(e){e.target===ot[0]&&(B(!1),X(!1,Ge[$n]()))})),q(!0),q(!1),tt=a(qn+Kn+Ur+Yn),qe.append(tt)}function q(e){var t,i,o,a=Y(e),s=a.xy,l=Bn+a.LT,c=1,f=function(){c=.5},u=function(){c=1},v=function(n){n.originalEvent;var o=a.i.tl,c=a.i.hl,f=a.i.ms*((c/2+r.page(n)[s]-i-c/2)/(o-c));f=isFinite(f)?f:0,Fe&&e&&(de.n||!de.n&&!de.i)&&(f*=-1),Ge[l](t+f),Oe||r.prvD(n)},p=function(e){e=e||e.originalEvent,_e.removeClass(Jr),a.h.removeClass("active"),a.t.removeClass("active"),a.s.removeClass("active"),Oe?(d(Be,nr,v),d(Be,tr,p),d(Be,rr,y),d(Be,ir,m),d(Be,or,N)):(Be.off(nr,v),Be.off(tr,p),Be.off(rr,y),Be.off(ir,m),Be.off(or,N)),u(),t=n,i=n,o!==n&&(mn.scrollStop(),clearTimeout(o),o=n);var r=qe[0].getBoundingClientRect();e.clientX>=r.left&&e.clientX<=r.right&&e.clientY>=r.top&&e.clientY<=r.bottom||K(),ln&&U(!1)},y=function(e){16==e.keyCode&&f()},m=function(e){16==e.keyCode&&u()};a.h.on(er,function(o){if(!Le){var c=(o.originalEvent||o).touches!==n;P()||!_t||c&&!fn||(1===r.mBtn(o)||c)&&(t=Ge[l](),t=t===n?0:t,(Fe&&e&&!de.n||!Fe)&&(t=t<0?0:t),i=r.page(o)[s],_e.addClass(Jr),a.h.addClass("active"),a.s.addClass("active"),Oe?(h(Be,or,N),h(Be,nr,v),h(Be,tr,p)):(Be.on(or,N),Be.on(nr,v),Be.on(tr,p)),r.prvD(o))}}),a.t.on(er,function(t){if(!Le){var l=(t.originalEvent||t).touches!==n;if(!P()&&Xt&&(!l||fn)&&(1===r.mBtn(t)||l)){var u,d=zn[a._wh],v=a.t.offset()[a.lt],g=!0;t.shiftKey&&f();var b=function(){var t=a.i.ho,r=a.i.hl,s=i-v,l=200*c,f=g?Math.max(333,l):l,h={},p=Fe&&e&&(!de.i&&!de.n||qt),y=t>s;p&&(y=t<s),y?(u===n&&(u=!0),h[a.xy]="-="+d):(u===n&&(u=!1),h[a.xy]="+="+d),mn.scrollStop(),mn.scroll(h,l,"linear");var m=u?t<=s:t+r>=s;p&&(m=u?t+r>=s:t<=s),m?(clearTimeout(o),mn.scrollStop(),o=n):o=setTimeout(b,f),g=!1};i=r.page(t)[s],_e.addClass(Jr),a.t.addClass("active"),a.s.addClass("active"),Oe?(h(Be,or,N),h(Be,tr,p),h(Be,rr,y),h(Be,ir,m)):(Be.on(or,N),Be.on(tr,p),Be.on(rr,y),Be.on(ir,m)),b(),r.prvD(t)}}}).hover(function(){ln&&(un=!0,U(!0))},function(){ln&&(un=!1,U(!1))}),a.s.on(er,function(e){r.stpP(e)})}function Y(e){return{wh:e?Rn:Nn,WH:e?"Width":"Height",lt:e?Ln:Wn,LT:e?"Left":"Top",xy:e?_n:Vn,XY:e?"X":"Y",_wh:e?"w":"h",_lt:e?"l":"t",t:e?rt:at,h:e?it:st,s:e?nt:ot,i:e?On:kn}}function J(){cn&&U(!0)}function K(){cn&&!_e.hasClass(Jr)&&U(!1)}function Q(e){if(!Le){var t=Ne.callbacks,r=t.onScrollStart,i=t.onScroll,o=t.onScrollStop;De!==n?clearTimeout(De):(ln&&U(!0),P()||qe.addClass(yr),a.isFunction(r)&&x(r,e)),X(!0,Ge[Zn]()),X(!1,Ge[$n]()),a.isFunction(i)&&x(i,e),De=setTimeout(function(){G(),a.isFunction(o)&&x(o,e)},Tn)}}function G(){clearTimeout(De),De=n,ln&&U(!1),P()||qe.removeClass(yr)}function Z(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function $(e,t,r,i){var o,l,c,f,u,h={n:t,s:!1,v:n,p:n},d="undefined",v=s.has(e,t),p=s.get(e,t),y=!1,m=!0!==v,g=Gn,b=!1;for("array"!==a.type(r)&&(r=[r]),u=r.length,l=0;l<u;l++){var w=r[l];if("*"===w)if(u>1){var x=0;for(f=0;f<u;f++){var C=r[f];if(a.type(C)===g&&++x>1)break}1===x&&(b=!0)}else b=!0;w===n&&(y=!0)}if(m&&!1===v&&y&&(m=!1),!m){o=p,d=a.type(o);var S=function(e){var t=a.type(e);return t===d&&(t!==g||(!!b||o===e))&&(h.s=!0,h.v=o,h.p=o,!0)};for(l=0;l<u;l++){var O=r[l];if(a.type(O)===g){var k=O.split(":"),z=k[0],T=!1;for(c=0;c<k.length;c++)if(S(k[c])){b||(h.p=z),T=!0;break}if(T)break}else if(S(O))break}}if(!h.s){var A='The option "'+t+"\" wasn't set, because";if(m&&!1!==v){var H=s.has(Ie,t);!0===H?console.warn(A+' "'+v+'" is not from type [ OBJECT ].'):(A='The option "'+t+'" is not a default option',!1===H?console.warn(A+Jn):console.warn(A+" and couldn't be resolved, because \""+H+'" is not from type [ OBJECT ].'))}else{var M=[],W=jn,E=!1,F=jn;for(l=0;l<u;l++){var L=r[l],D=a.type(L);if(D===g){E=!b;var I=L.split(":");for(c=0;c<I.length;c++)F+='"'+I[c]+'", '}-1===a.inArray(D,M)&&(M.push(D),W=W+D.toUpperCase()+", ")}W=W.slice(0,-2),E&&(F=F.slice(0,-2)),console.warn(A+" it doesn't accept the type [ "+d.toUpperCase()+' ] with the value of "'+o+'".\r\nAccepted types are: [ '+W+" ]."+(E?"\r\nValid strings are: [ "+F+" ].":jn))}}return(i=i===n||i)&&s.del(e,t),h}function ee(){var e={};return xn&&Ze&&(e.w=le(Ze.css(Dn+Rn)),e.h=le(Ze.css(Dn+Nn)),e.c=b(e,Gt),e.f=!0),Gt=e,e.c}function te(e,t){var n,r,i={};for(n=0;n<e.length;n++){var o=e[n],s=[];if(o.s){var l=o.n.split(".");for(r=0;r<l.length;r++)s[r]={},s[r][l[r]]={};for(r=0;r<s.length;r++){var c=!1,f=s[r];r+1===s.length&&(c=!0);for(var u in f)f.hasOwnProperty(u)&&(f[u]=s[r+1],c&&(f[u]=t?o.p:o.v))}a.extend(!0,i,s[0])}}return i}function ne(e,t){var n,r=[],i=[];for(n=0;n<e.length;n++)r[e[n]]=!0;for(n=0;n<t.length;n++)r[t[n]]?delete r[t[n]]:r[t[n]]=!0;for(var o in r)i.push(o);return i}function re(e,t){var r=t!==n&&null!==t?t.split(Kn):jn,i=e!==n&&null!==e?e.split(Kn):jn;if(r===jn&&i===jn)return!1;var o=ne(i,r),s=!1,l=Jt!==n&&null!==Jt?Jt.split(Kn):[jn],c=Yt!==n&&null!==Yt?Yt.split(Kn):[jn],f=a.inArray(Kr,o);f>-1&&o.splice(f,1);for(var u=0;u<o.length;u++){var h=o[u];if(0!==h.indexOf(cr)){var d,v=!0,p=!0;for(d=0;d<l.length;d++)if(h===l[d]){v=!1;break}for(d=0;d<c.length;d++)if(h===c[d]){p=!1;break}if(v&&p){s=!0;break}}}return s}function ie(e){var t=e.attributeName,n=e.target;if(n===$e[0])return!1;if("attributes"===e.type&&("class"===t||"style"===t)&&!wn){if("function"!=typeof n.closest)return!0;if(null!==n.closest(Jn+Mr)||null!==n.closest(Jn+Lr)||null!==n.closest(Jn+Ur))return!1}return!0}function oe(e){e=a.extend(!0,{},Re,e);var t=["*",null],n=["v-h:visible-hidden","v-s:visible-scroll","s:scroll","h:hidden"],r=["v:visible","h:hidden","a:auto"],i=["n:never","s:scroll","l:leave"],o=["n:none","b:both","h:horizontal","v:vertical"],l=Qn+"s.",c=[!0,null],f=[new Function,null],u=[];u.push($(e,"nativeScrollbarsOverlaid.showNativeScrollbars",!0)),u.push($(e,"nativeScrollbarsOverlaid.initialize",!0)),u.push($(e,"overflowBehavior."+_n,n)),u.push($(e,"overflowBehavior."+Vn,n)),u.push($(e,l+"visibility",r)),u.push($(e,l+"autoHide",i)),u.push($(e,l+"autoHideDelay",0)),u.push($(e,l+"clickScrolling",!0)),u.push($(e,l+"dragScrolling",!0)),u.push($(e,l+"touchSupport",!0)),u.push($(e,"textarea.dynWidth",!0)),u.push($(e,"textarea.dynHeight",!0)),u.push($(e,"className",t)),u.push($(e,"resize",o)),u.push($(e,"sizeAutoCapable",!0)),u.push($(e,"paddingAbsolute",!0)),u.push($(e,"clipAlways",!0)),u.push($(e,"normalizeRTL",!0)),u.push($(e,"autoUpdate",c)),u.push($(e,"autoUpdateInterval",0)),u.push($(e,"callbacks.onInitialized",f)),u.push($(e,"callbacks.onInitializationWithdrawn",f)),u.push($(e,"callbacks.onDestroyed",f)),u.push($(e,"callbacks.onScrollStart",f)),u.push($(e,"callbacks.onScroll",f)),u.push($(e,"callbacks.onScrollStop",f)),u.push($(e,"callbacks.onDirectionChanged",f)),u.push($(e,"callbacks.onContentSizeChanged",f)),u.push($(e,"callbacks.onHostSizeChanged",f)),u.push($(e,"callbacks.onOverflowChanged",f)),u.push($(e,"callbacks.onOverflowAmountChanged",f)),u.push($(e,"callbacks.onUpdated",f));for(var h in e)e.hasOwnProperty(h)&&s.has(Ie,h)&&a.isEmptyObject(e[h])&&delete e[h];if(!a.isEmptyObject(e)){var d=function(e){a.each(e,function(t,n){a.isPlainObject(n)?d(n):"function"===a.type(n)&&(e[t]=a.type(n))})};d(e),console.warn("The following options are discarded due to invalidity:\r\n"+JSON.stringify(e,null,2))}Re=a.extend(!0,{},Re,te(u,!1)),Ne=a.extend(!0,{},Ne,te(u,!0))}function ae(){if(Le)return!1;var e,t=wn&&dt&&!Mt?Ve.val().length:0,n=!en&&dt&&!wn,r={};n&&(e=$e.css(Pn),r[Pn]=Fe?En:Ln,r[Rn]=Un,$e.css(r));var i={w:fe().scrollWidth+t,h:fe().scrollHeight+t};n&&(r[Pn]=e,r[Rn]=Xn,$e.css(r));var o=ee(),a=b(i,Pt)||o;return Pt=i,a}function se(){if(Le||en)return!1;var e=qe.attr("id")||jn,t=g(e,Et),n=qe.attr("class")||jn,r=g(n,Ft),i=qe.attr("style")||jn,o=g(i,Lt),a=qe.is(":visible")||jn,s=g(a,Dt),l=wn?Ve.attr("rows")||jn:jn,c=g(l,It),f=wn?Ve.attr("cols")||jn:jn,u=g(f,Rt),h=wn?Ve.attr("wrap")||jn:jn,d=g(h,Nt);return Et=e,r&&(r=re(Ft,n)),Ft=n,Lt=i,Dt=a,It=l,Rt=f,Nt=h,t||r||o||s||c||u||d}function le(e){var t=parseInt(e);return isNaN(t)?0:t}function ce(e){if(!gn)return!0;var t=[Rn,Dn+Rn,In+Rn,An+Ln,An+En,Ln,En,"font-weight","word-spacing"],n=[Hn+Ln,Hn+En,Mn+Ln+Rn,Mn+En+Rn],r=[Nn,Dn+Nn,In+Nn,An+Wn,An+Fn,Wn,Fn,"line-height"],i=[Hn+Wn,Hn+Fn,Mn+Wn+Rn,Mn+Fn+Rn],o="s"===kt.x||"v-s"===kt.x,a=!1,s=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1};return("s"===kt.y||"v-s"===kt.y)&&((a=s(r,e))||ze||(a=s(i,e))),o&&!a&&((a=s(t,e))||ze||(a=s(n,e))),a}function fe(){return wn?et[0]:$e[0]}function ue(e,t,i){var o=r.now(),s=Gr>0&&gn&&o-Pe<Gr&&!vt&&!dt;if(clearTimeout(je),s&&(Qr.h=e,Qr.c=t,Qr.f=i,je=setTimeout(ue,Gr)),!(s||Le||gn&&!i&&qe.is(":hidden")||"inline"===qe.css("display"))){Pe=o,e=e||Qr.h,t=t||Qr.c,i=i||Qr.f,Qr={},e=e!==n&&e,t=t!==n&&t,i=i!==n&&i,!ye||we.x&&we.y?ge=a.extend(!0,{},c.nativeScrollbarSize):(ge.x=0,ge.y=0),be={x:3*(ge.x+(we.x?0:3)),y:3*(ge.y+(we.y?0:3))},v(Je),v(Ye);var l={l:Ge[Zn](),t:Ge[$n]()},u=Ne.callbacks,m=Ne.scrollbars,z=Ne.textarea,T=u.onUpdated,M=u.onOverflowChanged,W=u.onOverflowAmountChanged,E=u.onDirectionChanged,F=u.onContentSizeChanged,L=u.onHostSizeChanged,D=m.visibility,I=g(D,Ut,i),R=m.autoHide,N=g(R,Bt,i),P=m.clickScrolling,V=g(P,Xt,i),q=m.dragScrolling,Y=g(q,_t,i),Q=Ne.className,G=g(Q,Yt,i),Z=Ne.resize,$=g(Z,Vt,i)&&!xn,te=!!wn&&"off"!==Ve.attr("wrap"),ne=g(te,Mt,i),re=Ne.paddingAbsolute,ie=g(re,Ct,i),oe=Ne.clipAlways,ae=g(oe,St,i),se=Ne.sizeAutoCapable&&!xn,ce=g(se,Ht,i),he=Ne.nativeScrollbarsOverlaid.showNativeScrollbars,pe=g(he,Tt),Ce=Ne.autoUpdate,Se=g(Ce,At),ke=Ne.overflowBehavior,De=b(ke,kt,_n,Vn,i),Ie=z.dynWidth,Re=g(Qt,Ue),Ue=z.dynHeight,Be=g(Kt,Ue);if(sn="n"===R,ln="s"===R,cn="l"===R,an=m.autoHideDelay,fn=m.touchSupport,Jt=Yt,dn="n"===Z,vn="b"===Z,pn="h"===Z,yn="v"===Z,qt=Ne.normalizeRTL,he=he&&we.x&&we.y,Ut=D,Bt=R,Xt=P,_t=q,Yt=Q,Vt=Z,Mt=te,Ct=re,St=oe,Ht=se,Tt=he,At=Ce,kt=a.extend(!0,{},ke),Qt=Ie,Kt=Ue,G&&(qe.removeClass(Jt).removeClass(Kr),Q!==n&&null!==Q&&Q.length>0?qe.addClass(Q):qe.addClass(Kr)),Se&&(!0===Ce?(O(),f.add(mn)):null===Ce&&ve?(O(),f.add(mn)):(f.remove(mn),S())),ce)if(se)if(Ke===n&&(Ke=a(qn+Ar+Yn),Qe.before(Ke)),Cn)Ye.show();else{Ye=a(qn+Hr+Yn),Ke.before(Ye);var Xe={w:-1,h:-1};y(Ye,function(){var e={w:Ye[0].offsetWidth,h:Ye[0].offsetHeight};b(e,Xe)&&(gn&&vt&&e.h>0||dt&&e.w>0?ue():(gn&&!vt&&0===e.h||!dt&&0===e.w)&&ue()),Xe=e}),Cn=!0,null!==me&&Ye.css(Nn,me+"(100% + 1px)")}else Cn&&Ye.hide();i&&(Je.find("*").trigger(Bn),Cn&&Ye.find("*").trigger(Bn));var _e,nt=qe.css("direction"),rt=g(nt,wt,i),it=qe.css("box-sizing"),ot=g(it,yt,i),at={c:i,t:le(qe.css(Hn+Wn)),r:le(qe.css(Hn+En)),b:le(qe.css(Hn+Fn)),l:le(qe.css(Hn+Ln))};try{_e=Cn?Ye[0].getBoundingClientRect():null}catch(e){return}ze="border-box"===it;var st=(Fe="rtl"===nt)?Ln:En,xt=Fe?En:Ln,Et=!1,Ft=!(!Cn||"none"===qe.css(Pn))&&(0===Math.round(_e.right-_e.left)&&(!!re||qe[0].clientWidth-Te>0));if(se&&!Ft){var Lt=qe[0].offsetWidth,Dt=Ke.css(Rn);Ke.css(Rn,Un);var It=qe[0].offsetWidth;Ke.css(Rn,Dt),(Et=Lt!==It)||(Ke.css(Rn,Lt+1),It=qe[0].offsetWidth,Ke.css(Rn,Dt),Et=Lt!==It)}var Rt=(Ft||Et)&&se,Nt=g(Rt,dt,i),Pt=!Rt&&dt,jt=!!Cn&&0===Math.round(_e.bottom-_e.top),Zt=g(jt,vt,i),$t=!jt&&vt,tn="-"+Rn,nn=Rt&&ze||!ze,on=jt&&ze||!ze,un={c:i,t:on?le(qe.css(Mn+Wn+tn)):0,r:nn?le(qe.css(Mn+En+tn)):0,b:on?le(qe.css(Mn+Fn+tn)):0,l:nn?le(qe.css(Mn+Ln+tn)):0},hn={c:i,t:le(qe.css(An+Wn)),r:le(qe.css(An+En)),b:le(qe.css(An+Fn)),l:le(qe.css(An+Ln))},bn={h:String(qe.css(In+Nn)),w:String(qe.css(In+Rn))},On={},kn={};if(Te=at.l+at.r,Ae=at.t+at.b,at.c=w(at,mt),He=un.l+un.r,Me=un.t+un.b,un.c=w(un,gt),We=hn.l+hn.r,Ee=hn.t+hn.b,hn.c=w(hn,bt),bn.ih=parseInt(bn.h),bn.iw=parseInt(bn.w),bn.ch=bn.h.indexOf("px")>-1,bn.cw=bn.w.indexOf("px")>-1,bn.c=b(bn,pt,i),wt=nt,yt=it,dt=Rt,vt=jt,mt=at,gt=un,bt=hn,pt=bn,rt&&Cn&&Ye.css(Pn,xt),at.c||rt||ie||Nt||Zt||ot||ce){var Tn={},Jn={};C(kn,An,[-at.t,-at.r,-at.b,-at.l]),re?(C(Tn,jn,[at.t,at.r,at.b,at.l]),wn?C(Jn,Hn):C(On,Hn)):(C(Tn,jn),wn?C(Jn,Hn,[at.t,at.r,at.b,at.l]):C(On,Hn,[at.t,at.r,at.b,at.l])),Qe.css(Tn),Ve.css(Jn)}zn={w:Qe[0].offsetWidth,h:Qe[0].offsetHeight};var Kn=!!wn&&A();if(jt&&(Zt||ie||ot||bn.c||at.c||un.c)?(bn.cw&&(On[In+Nn]=bn.ch?bn.ih-(re?Ae:0)+(ze?-Me:Ae):jn),On[Nn]=Un):(Zt||ie)&&(On[In+Nn]=jn,On[Nn]=Xn),Rt&&(Nt||ie||ot||bn.c||at.c||un.c||rt)?(bn.cw&&(On[In+Rn]=bn.cw?bn.iw-(re?Te:0)+(ze?-He:Te)+(we.y?xe.y:0):jn),On[Rn]=Un,kn[In+Rn]=Xn):(Nt||ie)&&(On[In+Rn]=jn,On[Rn]=Xn,On[Pn]=jn,kn[In+Rn]=jn),Rt&&(bn.cw||(On[In+Rn]=jn),kn[Rn]=wn&&Ie?Kn.dw:Un,On[Rn]=Un,On[Pn]=xt),jt&&(bn.ch||(On[In+Nn]=jn),kn[Nn]=wn?Ue?Kn.dh:Un:$e[0].clientHeight),se&&Ke.css(kn),$e.css(On),On={},kn={},ut=ut||{x:!1,y:!1},e||t||rt||ot||ie||Nt||Rt||Zt||jt||bn.c||pe||De||ae||$||I||Re||Be||ne||ie||Re||Be||i){var Qn={},Gn=ut.y&&ht.ys&&!he?we.y?Ge.css(st):-ge.y:0,tr=ut.x&&ht.xs&&!he?we.x?Ge.css(Fn):-ge.x:0;C(Qn,jn),Ge.css(Qn),jt&&!wn&&($e.css("overflow","hidden"),On.overflow=jn);var nr=fe(),rr={w:nr.clientWidth,h:nr.clientHeight},ir={w:nr.scrollWidth,h:nr.scrollHeight},or={w:wn&&Kn&&!Ie?Kn.ow:Rt?rr.w:ir.w,h:wn&&Kn&&!Ue?Kn.oh:jt?rr.h:ir.h};Qn[Fn]=$t?jn:tr,Qn[st]=Pt?jn:Gn,Ge.css(Qn);var ar=qe[0],sr={w:ar.clientWidth,h:ar.clientHeight},lr={w:Math.max(or.w+(re?Te:0),sr.w-Te)-(Ie&&wn&&Rt?We+(ze?0:Te+He):0),h:Math.max(or.h+(re?Ae:0),sr.h-Ae)};if(lr.c=b(lr,Ot,i),Ot=lr,se){(lr.c||jt||Rt)&&(kn[Rn]=lr.w,kn[Nn]=lr.h);var cr=kn[Rn]+(ze?He:-Te),fr=kn[Nn]+(ze?Me:-Te),ur={};(!Rt||!Rt&&un.c)&&(kn[Rn]=sr.w-(ze?0:Te+He)-1-We),(!jt||!jt&&un.c)&&(kn[Nn]=sr.h-(ze?0:Ae+Me)-1-Ee),bn.cw&&bn.iw===cr&&(kn[Rn]=cr+(ze?0:Te)+1),bn.ch&&bn.ih===fr&&(kn[Nn]=fr+(ze?0:Ae)+1),Rt&&(rr.w<zn.w||wn&&!te)&&0===Te&&(wn&&(ur[Rn]=le(et.css(Rn))-1),kn[Rn]-=1),jt&&(rr.h<zn.h||wn)&&0===Ae&&(wn&&(ur[Nn]=le(et.css(Nn))-1),kn[Nn]-=1),or.h>0&&(kn[Rn]=Math.max(1,kn[Rn]),kn[Nn]=Math.max(1,kn[Nn])),wn&&et.css(ur),Ke.css(kn)}Rt&&(On[Rn]=Xn),!Rt||ze||en||(On[Pn]="none"),$e.css(On),On={};var hr=nr.getBoundingClientRect(),dr={w:nr.scrollWidth,h:nr.scrollHeight};if(hr.width!==n){var wr=hr.width,xr=hr.height;dr.w+=le(wr+.001)-wr,dr.h+=le(xr+.001)-xr}dr.c=t=b(dr,ct,i),ct=dr,e=b(sr={w:ar.clientWidth,h:ar.clientHeight},lt),lt=sr;var Cr={x:"v-s"===ke.x,y:"v-s"===ke.y},Sr={x:"v-h"===ke.x,y:"v-h"===ke.y},Or={x:"s"===ke.x,y:"s"===ke.y},kr={x:Math.max(0,dr.w-sr.w+(re?Te:0)),y:Math.max(0,dr.h-sr.h+(re?Ae:0))},zr=wn&&(0===zn.w||0===zn.h);zr&&(kr.x=0,kr.y=0);var Mr={x:kr.x>0,y:kr.y>0},Wr={x:Mr.x,y:Mr.y};(Cr.x||Sr.x)&&(Wr.x=Mr.y&&!Cr.y&&!Sr.y),(Cr.y||Sr.y)&&(Wr.y=Mr.x&&!Cr.x&&!Sr.x),Wr.xs=!!Wr.x&&(Or.x||Cr.x),Wr.ys=!!Wr.y&&(Or.y||Cr.y);var Er={x:Mr.x&&Wr.xs,y:Mr.y&&Wr.ys},Fr=zt;if(kr.c=b(kr,zt,_n,Vn,i),zt=kr,Mr.c=b(Mr,ut,_n,Vn,i),ut=Mr,Wr.c=b(Wr,ht,_n,Vn,i),ht=Wr,we.x||we.y){var Lr=i,Dr={};if((Mr.x||Mr.y)&&(Dr.w=we.y&&Mr.y?dr.w+xe.y:jn,Dr.h=we.x&&Mr.x?dr.h+xe.x:jn,Lr=g(Dr,ft,i),ft=Dr),Mr.c||Wr.c||dr.c||rt||Nt||Zt||Rt||jt||pe){On[Mn+xt]=jn,On[An+xt]=jn,we.x&&Mr.x&&Wr.xs?(jt&&(On[An+Fn]=he?jn:xe.x),On[Mn+Fn]=jt||he?jn:xe.x+"px solid transparent"):(Dr.h=jn,Lr=!0,On[Mn+Fn]=jn,On[An+Fn]=jn),we.y&&Mr.y&&Wr.ys?(Rt&&(On[An+st]=he?jn:xe.y),On[Mn+st]=he?jn:xe.y+"px solid transparent"):(Dr.w=jn,Lr=!0,On[Mn+st]=jn,On[An+st]=jn)}if(he&&(Dr.w=jn,Dr.h=jn,Lr=!0),Lr){var Ir={};Ir[Rn]=Wr.y?Dr.w:jn,Ir[Nn]=Wr.x?Dr.h:jn,Ze===n&&(Ze=a(qn+Tr+Yn),Ge.prepend(Ze)),Ze.css(Ir)}$e.css(On)}var Rr={},Tn={};if(e||Mr.c||Wr.c||dr.c||De||ot||pe||rt||ae||Zt){Rr[xt]=jn;var Nr=function(){Rr[Fn]=jn,Sn.h=0},Pr=function(){Rr[st]=jn,Sn.w=0};if(Mr.x&&Wr.xs?(Rr["overflow-x"]=Bn,he?Nr():(Rr[Fn]=-(we.x?xe.x:ge.x),Sn.h=we.x?xe.y:0)):(Rr["overflow-x"]=jn,Nr()),Mr.y&&Wr.ys?(Rr["overflow-y"]=Bn,he?Pr():(Rr[st]=-(we.y?xe.y:ge.y),Sn.w=we.y?xe.x:0)):(Rr["overflow-y"]=jn,Pr()),(zn.h<be.x||zn.w<be.y)&&(Mr.x&&Wr.x&&!we.x||Mr.y&&Wr.y&&!we.y)?(Rr[Hn+Wn]=be.x,Rr[An+Wn]=-be.x,Rr[Hn+xt]=be.y,Rr[An+xt]=-be.y):(Rr[Hn+Wn]=jn,Rr[An+Wn]=jn,Rr[Hn+xt]=jn,Rr[An+xt]=jn),Rr[Hn+st]=jn,Rr[An+st]=jn,Mr.x&&Wr.x||Mr.y&&Wr.y||zr?wn&&zr&&(Tn["overflow-x"]="hidden",Tn["overflow-y"]="hidden"):(!oe||Sr.x||Cr.x||Sr.y||Cr.y)&&(wn&&(Tn["overflow-x"]=jn,Tn["overflow-y"]=jn),Rr["overflow-x"]="visible",Rr["overflow-y"]="visible"),Qe.css(Tn),Ge.css(Rr),Rr={},(Mr.c||ot||Nt||Zt)&&(!we.x||!we.y)){var jr=$e[0],Ur=jr.style;Ur.webkitTransform="scale(1)",Ur.display="run-in";jr.offsetHeight;Ur.display=jn,Ur.webkitTransform=jn}if(pe&&he){qe.hide();qe[0].offsetHeight;qe.show()}}if(On={},rt||Nt||Zt)if(Fe&&Rt){var qr=$e.css(Pn),Yr=Math.round($e.css(Pn,jn).css(Ln,jn).position().left);$e.css(Pn,qr),Yr!==Math.round($e.position().left)&&(On[Ln]=Yr)}else On[Ln]=jn;$e.css(On);var Jr="v"===D,Zr="h"===D,$r="a"===D,ei=j.bind(0,!0,!0,Er.x),ti=j.bind(0,!1,!0,Er.y),ni=j.bind(0,!0,!1,Er.x),ri=j.bind(0,!1,!1,Er.y);if(rt&&(Fe?qe.addClass(vr):qe.removeClass(vr)),xn&&qe.addClass(pr),$){var ii=function(){tt.off(er,k)};dn?(qe.addClass(pr),tt.removeClass(Br).removeClass(Xr).removeClass(_r).removeClass(Vr),ii()):(qe.removeClass(pr),tt.addClass(Br),vn?tt.addClass(Xr):pn?tt.addClass(_r):yn&&tt.addClass(Vr),ii(),tt.on(er,k))}if((I||De||Wr.c||Mr.c||pe)&&(he?pe&&(qe.removeClass(yr),he&&(ni(),ri())):$r?(Er.x?ei():ni(),Er.y?ti():ri()):Jr?(ei(),ti()):Zr&&(ni(),ri())),N||pe){var oi=function(){Oe?(d(qe,"mouseenter",J),d(qe,"mouseleave",K)):(qe.off("mouseenter",J),qe.off("mouseleave",K))};cn?(oi(),Oe?(h(qe,"mouseenter",J),h(qe,"mouseleave",K)):(qe.on("mouseenter",J),qe.on("mouseleave",K))):oi(),sn?U(!0):U(!1,!0)}if((e||kr.c||Zt||Nt||$||ot||ie||pe||rt)&&(B(!0),X(!0,l.l),B(!1),X(!1,l.t)),V&&_(!0,P),Y&&_(!1,q),Wr.x||Wr.y?qe.addClass(mr):qe.removeClass(mr),Wr.x?qe.addClass(gr):qe.removeClass(gr),Wr.y?qe.addClass(br):qe.removeClass(br),wn&&t){var ai=H();if(ai!==n){var si=Wt===n||ai.rows!==Wt.rows,li=ai.wRow,ci=ai.cursorRow,fi=ai.cursorCol,ui=ai.rows,hi=ai.cols,di=ai.pos,vi=ai.max===di&&rn,pi={x:te||fi!==hi||ci!==li?-1:zt.x,y:(te?vi||si&&Fr!==n&&l.t===Fr.y:(vi||si)&&ci===ui)?zt.y:-1},yi=pi.x>-1,mi=pi.y>-1;(yi||mi)&&(mi&&Ge[$n](pi.y),yi&&(Fe&&qt&&de.i?Ge[Zn](0):Ge[Zn](pi.x)))}Wt=ai}else wn||(Fe&&de.i&&we.y&&Mr.x&&qt&&(l.l+=Sn.w),Ge[Zn](l.l),Ge[$n](l.t));rt&&a.isFunction(E)&&x(E,{isRTL:Fe,dir:nt}),e&&a.isFunction(L)&&x(L,{width:lt.w,height:lt.h}),t&&a.isFunction(F)&&x(F,{width:ct.w,height:ct.h}),(Mr.c||Wr.c)&&a.isFunction(M)&&x(M,{x:Mr.x,y:Mr.y,xScrollable:Wr.xs,yScrollable:Wr.ys,clipped:Wr.x||Wr.y}),kr.c&&a.isFunction(W)&&x(W,{x:kr.x,y:kr.y})}xn&&(Mr.c||Gt.c)&&(Gt.f||ee(),we.y&&Mr.x&&$e.css(Dn+Rn,Gt.w+xe.y),we.x&&Mr.y&&$e.css(Dn+Nn,Gt.h+xe.x),Gt.c=!1),p(Je),p(Ye),a.isFunction(T)&&x(T,{forced:i})}}if(Z(t)){if(o.has(t)){var he=o.get(t);return he.options(l),he}var de,ve,pe,ye,me,ge,be,we,xe,Ce,Se,Oe,ke,ze,Te,Ae,He,Me,We,Ee,Fe,Le,De,Ie,Re,Ne,Pe,je,Ue,Be,Xe,_e,Ve,qe,Ye,Je,Ke,Qe,Ge,Ze,$e,et,tt,nt,rt,it,ot,at,st,lt,ct,ft,ut,ht,dt,vt,pt,yt,mt,gt,bt,wt,xt,Ct,St,Ot,kt,zt,Tt,At,Ht,Mt,Wt,Et,Ft,Lt,Dt,It,Rt,Nt,Pt,jt,Ut,Bt,Xt,_t,Vt,qt,Yt,Jt,Kt,Qt,Gt,Zt,$t,en,tn,nn,rn,on,an,sn,ln,cn,fn,un,hn,dn,vn,pn,yn,mn=new e[i],gn=!1,bn=!1,wn=!1,xn=!1,Cn=!1,Sn={w:0,h:0},On={},kn={},zn={},Tn=175,An="margin-",Hn="padding-",Mn="border-",Wn="top",En="right",Fn="bottom",Ln="left",Dn="min-",In="max-",Rn="width",Nn="height",Pn="float",jn="",Un="auto",Bn="scroll",Xn="100%",_n="x",Vn="y",qn='<div class="',Yn='"></div>',Jn=".",Kn=" ",Qn="scrollbar",Gn="string",Zn=Bn+"Left",$n=Bn+"Top",er="mousedown touchstart",tr="mouseup touchend",nr="mousemove touchmove",rr="keydown",ir="keyup",or="selectstart",ar="transitionend webkitTransitionEnd oTransitionEnd",sr="~_overlayScrollbarsRO_~",lr="os-html",cr="os-host",fr=cr+"-textarea",ur=cr+"-"+Qn+"-horizontal-hidden",hr=cr+"-"+Qn+"-vertical-hidden",dr=cr+"-transition",vr=cr+"-rtl",pr=cr+"-resize-disabled",yr=cr+"-scrolling",mr=cr+"-overflow",gr=mr+"-x",br=mr+"-y",wr="os-textarea",xr=wr+"-cover",Cr="os-padding",Sr="os-viewport",Or=Sr+"-native-scrollbars-invisible",kr=Sr+"-native-scrollbars-overlaid",zr="os-content",Tr="os-content-arrange",Ar="os-content-glue",Hr="os-size-auto-observer",Mr="os-resize-observer",Wr="os-resize-observer-item",Er=Wr+"-final",Fr="os-text-inherit",Lr="os-"+Qn,Dr=Lr+"-track",Ir=Dr+"-off",Rr=Lr+"-handle",Nr=Rr+"-off",Pr=Lr+"-unusable",jr=Lr+"-"+Un+"-hidden",Ur=Lr+"-corner",Br=Ur+"-resize",Xr=Br+"-both",_r=Br+"-horizontal",Vr=Br+"-vertical",qr=Lr+"-horizontal",Yr=Lr+"-vertical",Jr="os-dragging",Kr="os-theme-none",Qr={},Gr=33,Zr=11,$r=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],ei=[],ti={x:0,y:0},ni={w:0,h:0};if(mn.sleep=function(){Le=!0},mn.update=function(e){if(e===Un){var t=se(),n=ae();(t||n)&&ue(!1,n)}else"zoom"===e?ue(!0,!0):(e=Le||e,Le=!1,ue(!1,!1,e))},mn.options=function(e,t){if(a.isEmptyObject(e)||!a.isPlainObject(e)){if("string"===a.type(e)){if(arguments.length>=2){var n={};return s.set(n,e,t,!0),oe(n),void ue()}return s.get(Re,e)}return Re}oe(e);var r=Le||!1;Le=!1,ue(),Le=r},mn.destroy=function(){bn=!0,f.remove(mn),O(),m(Je),Cn&&m(Ye),Je.remove(),Ke!==n&&Ke.remove(),Ze!==n&&Ze.remove(),Cn&&Ye.remove(),Oe?(d(qe,"mouseenter",J),d(qe,"mouseleave",K)):(qe.off("mouseenter",J),qe.off("mouseleave",K)),nt.remove(),ot.remove(),tt&&tt.remove(),dn||T(),$e.contents().unwrap().unwrap().unwrap(),xn&&Xe.removeClass(lr),wn?(Ve.off(Bn,R),Ve.off("drop",L),Ve.off("focus",D),Ve.off("focusout",I),pe>9||!ve?Ve.off("input",W):(Ve.off(rr,E),Ve.off(ir,F)),et.remove(),Ve.removeClass(wr).removeClass(Fr),Ve.unwrap().removeAttr("style"),qe.remove()):(Ve.removeClass(cr),qe.removeClass(cr).removeClass(pr).removeClass(vr).removeClass(ur).removeClass(hr).removeClass(dr).removeClass(yr).removeClass(mr).removeClass(gr).removeClass(br).removeClass(Kr).removeClass(Yt)),o.rem(t);var e=Ne.callbacks.onDestroyed;a.isFunction(e)&&x(e);for(var r in mn)delete mn[r];mn=n},mn.scroll=function(t,r,i,o){if(0===arguments.length||t===n){var s=On,l=kn,c=qt&&Fe&&de.i,f=qt&&Fe&&de.n,u=s.cs,h=s.csr,d=s.ms;return h=c?1-h:h,u=c?d-u:u,u*=f?-1:1,d*=f?-1:1,{x:{position:u,ratio:h,max:d,handleOffset:s.ho,handleLength:s.hl,handleLengthRatio:s.hlr,trackLength:s.tl,isRTL:Fe,isRTLNormalized:qt},y:{position:l.cs,ratio:l.csr,max:l.ms,handleOffset:l.ho,handleLength:l.hl,handleLengthRatio:l.hlr,trackLength:l.tl}}}var v,p=[_n,Ln,"l"],y=[Vn,Wn,"t"],m=["+=","-=","*=","/="],g={},b="object"===a.type(r),w={axis:"xy",block:["begin","begin"],margin:[0,0,0,0]},x=[_n,Vn,"xy","yx"],C=["begin","end"],S=t.hasOwnProperty("el"),O=S?t.el:t,k=O instanceof a,z=!k&&Z(O),T=function(e,t){for(v=0;v<t.length;v++)if(e===t[v])return!0;return!1},A=function(e){var t={};if("array"===a.type(e)&&e.length>0)t.x=e[0],t.y=e[1];else if(a.type(e)===Gn||"number"===a.type(e))t.x=e,t.y=e;else if("object"===a.type(e)){e=a.extend({},e),v=0;for(var n in e)e.hasOwnProperty(n)&&(v>2&&delete e[n],v++);var r=function(t){var n=t?p:y;for(v=0;v<n.length;v++)if(n[v]in e)return e[n[v]]};t.x=r(!0),t.y=r(!1)}return t},H=function(t,r){var i,o,s,l=t?On:kn,c=l.cs,f=l.ms,u=Fe&&t,h=u&&de.n&&!qt;if(a.type(r)===Gn){if(r.length>2){var d=r.substr(0,2);for(v=0;v<m.length;v++)if(d===m[v]){i=m[v];break}}r=(r=(r=(r=(r=(r=(r=(r=(r=i!==n?r.substr(2):r).replace(/min/g,0)).replace(/</g,0)).replace(/max/g,(h?"-":jn)+Xn)).replace(/>/g,(h?"-":jn)+Xn)).replace(/px/g,jn)).replace(/%/g," * "+f*(u&&de.n?-1:1)/100)).replace(/vw/g," * "+zn.w)).replace(/vh/g," * "+zn.h),o=e.parseInt(e.parseFloat(e.eval(r)).toFixed())}else"number"===a.type(r)&&(o=r);if(!isNaN(o)&&o!==n&&"number"===a.type(o)){var p=qt&&u,y=c*(p&&de.n?-1:1),g=p&&de.i,b=p&&de.n;switch(y=g?f-y:y,i){case"+=":s=y+o;break;case"-=":s=y-o;break;case"*=":s=y*o;break;case"/=":s=y/o;break;default:s=o}g&&(s=f-s),b&&(s*=-1),u&&de.n?(s=Math.max(f,s),s=Math.min(0,s)):(s=Math.min(f,s),s=Math.max(0,s)),s===c&&(s=n)}return s};if(k||z){var M=k?O:a(O);if(0===M.length)return;if(S){var W,E,F,L=t.axis,D=t.block,I=a.type(D),R=t.margin,N=a.type(R);if(I===Gn)D=[D,D];else if("array"===I)if((E=D.length)>2||E<1)D=n;else{for(W=!0,1===E&&(D[1]="begin"),v=0;v<E;v++){var P=D[v];if(a.type(P)!==Gn||!T(P,C)){W=!1;break}}W||(D=n)}else D=n;if("number"===N)R=[R,R,R,R];else if("boolean"===N)R=R?[le(M.css(An+Wn)),le(M.css(An+En)),le(M.css(An+Fn)),le(M.css(An+Ln))]:[0,0,0,0];else if("array"===N)if(2!==(F=R.length)&&4!==F)R=n;else{for(W=!0,v=0;v<F;v++)if("number"!==a.type(R[v])){W=!1;break}W?2===F&&(R=[R[0],R[1],R[0],R[1]]):R=n}else R=n;w.axis=T(L,x)?L:w.axis,w.block=D||w.block,w.margin=R||w.margin}var j=M.offset(),U=Qe.offset(),B=zn,X={l:On.cs,t:kn.cs},_=w.axis,V=w.block,q=w.margin,Y=V[0]===(Fe?"begin":"end"),J="end"===V[1],K=Y||J;j.top-=q[0],j.left-=q[3];var Q={x:Math.round(j.left-U.left+X.l),y:Math.round(j.top-U.top+X.t)};if(Fe&&(de.n||de.i||(Q.x=Math.round(U.left-j.left+X.l)),de.n&&qt&&(Q.x*=-1),de.i&&qt&&(Q.x=Math.round(U.left-j.left+(On.ms-X.l)))),K){var G,$={},ee={w:($=Se?{w:(G=M[0].getBoundingClientRect())[Rn],h:G[Nn]}:{w:M[0].offsetWidth,h:M[0].offsetHeight}).w+q[3]+q[1],h:$.h+q[0]+q[2]};Y&&(Q.x-=(B.w-ee.w)*(Fe&&qt?-1:1)),J&&(Q.y-=B.h-ee.h)}_===_n&&delete Q.y,_===Vn&&delete Q.x,t=Q}g.x=H(!0,A(t).x),g.y=H(!1,A(t).y);var te=g.x!==n,ne=g.y!==n;if(r>0||b){var re={};if(te&&(re[Zn]=g.x),ne&&(re[$n]=g.y),b)Ge.animate(re,r);else{var ie={duration:r,complete:o};if("array"===a.type(i)){var oe={};oe[Zn]=i[0],oe[$n]=i[1],ie.specialEasing=oe}else ie.easing=i;Ge.animate(re,ie)}}else te&&Ge[Zn](g.x),ne&&Ge[$n](g.y)},mn.scrollStop=function(e,t,n){Ge.stop(e,t,n)},mn.getElements=function(){return{target:Ve[0],host:qe[0],padding:Qe[0],viewport:Ge[0],content:$e[0],scrollbarHorizontal:{scrollbar:nt[0],track:rt[0],handle:it[0]},scrollbarVertical:{scrollbar:ot[0],track:at[0],handle:st[0]},scrollbarCorner:tt}},mn.getState=function(e){var t=function(e){if(!a.isPlainObject(e))return e;var t=a.extend(!0,{},e);s.del(t,"c");var n=function(e,n){t.hasOwnProperty(e)&&(t[n]=t[e],delete t[e])};return n("w",Rn),n("h",Nn),t},n={sleeping:t(Le)||!1,autoUpdate:t(!en),widthAuto:t(dt),heightAuto:t(vt),padding:t(mt),overflowAmount:t(zt),hideOverflow:t(ht),hasOverflow:t(ut),contentScrollSize:t(ct),viewportSize:t(zn),hostSize:t(lt)};return a.type(e)===Gn?s.get(n,e):n},function(e,t){Ie=c.defaultOptions,ye=c.nativeScrollbarStyling,ge=a.extend(!0,{},c.nativeScrollbarSize),we=a.extend(!0,{},c.nativeScrollbarIsOverlaid),xe=a.extend(!0,{},c.overlayScrollbarDummySize),de=a.extend(!0,{},c.rtlScrollBehavior),oe(a.extend(!0,{},Ie,t));var n=Ne.callbacks;if(we.x&&we.x&&!Ne.nativeScrollbarsOverlaid.initialize){var i=n.onInitializationWithdrawn;return a.isFunction(i)&&x(i),!1}me=c.cssCalc,pe=c.msie,ve=c.autoUpdateRecommended,Ce=c.supportTransition,Se=c.supportTransform,Oe=c.supportPassiveEvents,ke=c.supportResizeObserver,tn=c.supportMutationObserver,Be=a(e.ownerDocument),Ue=a(Be[0].defaultView||Be[0].parentWindow),Xe=Be.find("html").first(),_e=Xe.find("body").first(),Ve=a(e),wn=Ve.is("textarea");var o;if((xn=Ve.is("body"))&&((o={}).l=Math.max(Ve[Zn](),Xe[Zn](),Ue[Zn]()),o.t=Math.max(Ve[$n](),Xe[$n](),Ue[$n]())),wn){Ve.wrap(qn+fr+Yn),Ve.addClass(wr).addClass(Fr),qe=Ve.parent();var s={};Ne.sizeAutoCapable||(s[Rn]=Ve.css(Rn),s[Nn]=Ve.css(Nn)),qe.css(s),qe.wrapInner(qn+zr+Kn+Fr+Yn).wrapInner(qn+Sr+Kn+Fr+Yn).wrapInner(qn+Cr+Kn+Fr+Yn),$e=qe.find(Jn+zr).first(),Ge=qe.find(Jn+Sr).first(),Qe=qe.find(Jn+Cr).first(),et=a(qn+xr+Yn),$e.prepend(et),Ve.on(Bn,R),Ve.on("drop",L),Ve.on("focus",D),Ve.on("focusout",I),pe>9||!ve?Ve.on("input",W):(Ve.on(rr,E),Ve.on(ir,F))}else Ve.addClass(cr),(qe=Ve).wrapInner(qn+zr+Yn).wrapInner(qn+Sr+Yn).wrapInner(qn+Cr+Yn),$e=qe.find(Jn+zr).first(),Ge=qe.find(Jn+Sr).first(),Qe=qe.find(Jn+Cr).first(),$e.on(ar,function(e){!0!==At&&ce((e=e.originalEvent||e).propertyName)&&ue(Un)});if(V(),Oe?h(Ge,Bn,Q):Ge.on(Bn,Q),ye&&(we.x&&we.y?Ge.addClass(kr):Ge.addClass(Or)),tn){var l,f=r.mO(),d=r.now();Zt=new f(function(e){if(gn&&!Le){var t=!1;a.each(e,function(){var e=this,n=this.target,r=e.attributeName;if(t="class"===r?re(e.oldValue,n.className):"style"!==r||e.oldValue!==n.style.cssText)return!1}),t&&mn.update(Un)}}),$t=new f(function(e){if(gn&&!Le){for(var t=!1,n=0;n<e.length;n++)if(ie(e[n])){t=!0;break}if(t){var i=r.now(),o=vt||dt,a=function(){d=i,wn&&A(),o?mn.update():mn.update(Un)};clearTimeout(l),Zr<=0||i-d>Zr||!o?a():l=setTimeout(a,Zr)}}})}xn&&(Xe.addClass(lr),Ge[Zn](o.l),Ge[$n](o.t)),Je=a(qn+"os-resize-observer-host"+Yn),qe.prepend(Je),y(Je,u),u(),mn.update(Un),setTimeout(function(){Ce&&!bn&&qe.addClass(dr)},333),gn=!0;var v=n.onInitialized;return a.isFunction(v)&&x(v),gn}(t,l))return o.add(t,mn),mn;mn=n}}var h,d,v={className:"os-theme-dark",resize:"none",sizeAutoCapable:!0,clipAlways:!0,normalizeRTL:!0,paddingAbsolute:!1,autoUpdate:null,autoUpdateInterval:33,nativeScrollbarsOverlaid:{showNativeScrollbars:!1,initialize:!0},overflowBehavior:{x:"scroll",y:"scroll"},scrollbars:{visibility:"auto",autoHide:"never",autoHideDelay:800,dragScrolling:!0,clickScrolling:!1,touchSupport:!0},textarea:{dynWidth:!1,dynHeight:!1},callbacks:{onInitialized:null,onInitializationWithdrawn:null,onDestroyed:null,onScrollStart:null,onScroll:null,onScrollStop:null,onOverflowChanged:null,onOverflowAmountChanged:null,onDirectionChanged:null,onContentSizeChanged:null,onHostSizeChanged:null,onUpdated:null}};e[i]=function(e,t){if(0===arguments.length)return this;l();var r,i=[];return a.isPlainObject(t)?e&&e.length?e.length>1?(a.each(e,function(){(r=this)!==n&&i.push(u(r,t,h,d))}),i):u(e[0],t,h,d):u(e,t,h,d):e?e.length&&e.length>0?e.length>1?(a.each(e,function(){r=o.get(this),"!"===t?r!==n&&i.push(r):i.push(r)}),i):o.get(e[0]):o.get(e):void 0},e[i].globals=function(){l();var e=a.extend(!0,{},h);return delete e.msie,e},e[i].defaultOptions=function(e){l();var t=h.defaultOptions;if(e===n)return a.extend(!0,{},t);h.defaultOptions=a.extend(!0,{},t,e)}}(o,function(e){function t(e){for(var t=0;t<r.length;t++)if(e===r[t])return e[i]}var r=[],i="__overlayScrollbars__";return{all:function(){return r},add:function(e,t){e[i]=t,r.push(e)},rem:function(t){var n=e.inArray(t,r);n>-1&&(delete t[i],r.splice(n,1))},has:function(e){return t(e)!==n},get:t}}(a),a,function(e){function t(r,i,o,a,s){var l=!1;if(o=o===n?"":o,"string"!=typeof i)return l;if(0===i.length)return l;if(""===o){for(var c=i.split("."),f=r,u="",h=!1,d=0;d<c.length;d++){var v=c[d];if(f=f[v],u+=v+".","object"!==e.type(f)&&d+1!==c.length){h=!0;break}}if(h)return u.slice(0,-1)}for(var p in r)if(r.hasOwnProperty(p)){var y=o+p===i;if("object"!==e.type(r[p])||y){if(y){"function"==typeof a&&a(r,p),l=!0;break}}else if(l=t(r[p],i,o+p+".",a,s),"function"==typeof s&&s(r,p),l)break}return l}return{has:function(e,n){return t(e,n)},get:function(e,n){var r;return t(e,n,"",function(e,t){r=e[t]}),r},set:function(n,r,i,o){var a=!1;if(t(n,r,"",function(e,t){e[t]=i,a=!0}),!a&&o){for(var s=r.split("."),l={},c=l,f=0;f<s.length;f++){var u=f===s.length-1?i:{};c=c[s[f]]=u}e.extend(!0,n,l),a=!0}return a},del:function(n,r,i){var o=!1;return t(n,r,"",function(e,t){delete e[t],o=!0},function(t,n){i&&e.isEmptyObject(t[n])&&delete t[n]}),o}}}(a))}); |
@@ -5,3 +5,3 @@ /*! | ||
* | ||
* Version: 1.2.1 | ||
* Version: 1.2.2 | ||
* | ||
@@ -12,5 +12,5 @@ * Copyright KingSora. | ||
* Released under the MIT license. | ||
* Date: 10.01.2018 | ||
* Date: 23.01.2018 | ||
*/ | ||
!function(e,t){"function"==typeof define&&define.amd?define(function(){return t(e,e.document,void 0)}):"object"==typeof exports?module.exports=t(e,e.document,void 0):t(e,e.document,void 0,jQuery)}(this,function(e,t,n,r){"use-strict";var i="OverlayScrollbars",o={wW:function(){return e.innerWidth||t.documentElement.clientWidth||t.body.clientWidth},wH:function(){return e.innerHeight||t.documentElement.clientHeight||t.body.clientHeight},mO:function(){return e.MutationObserver||e.WebKitMutationObserver||e.WebkitMutationObserver||e.MozMutationObserver||n},rO:function(){return e.ResizeObserver||e.WebKitResizeObserver||e.WebkitResizeObserver||e.MozResizeObserver||n},rAF:function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)}},cAF:function(){return e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||e.msCancelAnimationFrame||function(t){return e.clearTimeout(t)}},now:function(){return Date.now()||(new Date).getTime()},stpP:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},prvD:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},page:function(e){var r=((e=e.originalEvent||e).target||e.srcElement||t).ownerDocument||t,i=r.documentElement,o=r.body;if(e.touches!==n){var a=e.touches[0];return{x:a.pageX,y:a.pageY}}return!e.pageX&&e.clientX&&null!=e.clientX?{x:e.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),y:e.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)}:{x:e.pageX,y:e.pageY}},mBtn:function(e){return e.which||e.button===n?e.which:1&e.button?1:2&e.button?3:4&e.button?2:0}},a=function(r){function i(e){var t=!!e&&"length"in e&&e.length,n=C(e);return!O(n)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function o(e){return(e.match(p)||[]).join(m)}function a(e,n){for(var r=(e.parentNode||t).querySelectorAll(n)||[],i=r.length;i--;)if(r[i]==e)return!0;return!1}function s(e,t,n){"string"===x.type(n)?e.insertAdjacentHTML(t,n):n.nodeType?e.insertAdjacentElement(t,n):e.insertAdjacentElement(t,n[0])}function l(e,t,r){try{e.style[t]!==n&&(e.style[t]=c(t,r))}catch(e){}}function c(e,t){return b[e.toLowerCase()]||"number"!==x.type(t)||(t=t+="px"),t}function u(e,t){var n,r;!1!==t&&e.q.splice(0,1),e.q.length>0?(r=e.q[0],anim(e.el,r.props,r.duration,r.easing,r.complete,!0)):(n=x.inArray(e,g))>-1&&g.splice(n,1)}function f(e,t,n){"scrollLeft"===t?e[t]=n:"scrollTop"===t?e[t]=n:l(e,t,n)}function h(e,t,n,i,o,a){var s,l,c,h,d,p,y={},m={},b=0,C=x.isPlainObject(n);for(C?(i=n.easing,n.start,c=n.progress,h=n.step,d=n.specialEasing,o=n.complete,p=n.duration):p=n,d=d||{},p=p||400,i=i||"swing",a=a||!1;b<g.length;b++)if(g[b].el===e){l=g[b];break}l||(l={el:e,q:[]},g.push(l));for(s in t)y[s]="scrollLeft"===s||"scrollTop"===s?e[s]:new v(e).css(s);for(s in y)y[s]!==t[s]&&(m[s]=t[s]);if(x.isEmptyObject(m))a&&u(l);else{var S,M,A,k,z,T,E,I,H,L=a?0:x.inArray(W,l.q),W={props:m,duration:C?n:p,easing:i,complete:o};if(-1===L&&(L=l.q.length,l.q.push(W)),0===L)if(p>0)E=r.now(),I=function(){S=r.now(),H=S-E,M=W.stop||H>=p,A=1-(Math.max(0,E+p-S)/p||0);for(s in m)k=y[s],z=m[s],T=(z-k)*w[d[s]||i](A,A*p,0,1,p)+k,f(e,s,T),O(h)&&h(T,{elem:e,prop:s,start:k,now:T,end:z,pos:A,options:{easing:i,speacialEasing:d,duration:p,complete:o,step:h},startTime:E});O(c)&&c({},A,Math.max(0,p-H)),M?(u(l),O(o)&&o()):W.frame=r.rAF()(I)},W.frame=r.rAF()(I);else{for(s in m)f(e,s,m[s]);u(l)}}}function d(e,t,n){for(var i,o,a,s=0;s<g.length;s++)if((i=g[s]).el===e){if(i.q.length>0){if(o=i.q[0],o.stop=!0,r.cAF()(o.frame),i.q.splice(0,1),n)for(a in o.props)f(e,a,o.props[a]);t?i.q=[]:u(i,!1)}break}}function v(e){var t=this;"string"===x.type(e)||e.length||(e=[e]);for(var n=0;n<e.length;n++)t[n]=e[n];return t.length=e.length,t}var p=/[^\x20\t\r\n\f]+/g,y=Object.prototype.toString,m=" ",g=[],b={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},w={swing:function(e,t,n,r,i){return.5-Math.cos(e*Math.PI)/2},linear:function(e,t,n,r,i){return e},easeInQuad:function(e,t,n,r,i){return r*(t/=i)*t+n},easeOutQuad:function(e,t,n,r,i){return-r*(t/=i)*(t-2)+n},easeInOutQuad:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t+n:-r/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,r,i){return r*(t/=i)*t*t+n},easeOutCubic:function(e,t,n,r,i){return r*((t=t/i-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t+n:r/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,r,i){return r*(t/=i)*t*t*t+n},easeOutQuart:function(e,t,n,r,i){return-r*((t=t/i-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t+n:-r/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,r,i){return r*(t/=i)*t*t*t*t+n},easeOutQuint:function(e,t,n,r,i){return r*((t=t/i-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t*t+n:r/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,r,i){return-r*Math.cos(t/i*(Math.PI/2))+r+n},easeOutSine:function(e,t,n,r,i){return r*Math.sin(t/i*(Math.PI/2))+n},easeInOutSine:function(e,t,n,r,i){return-r/2*(Math.cos(Math.PI*t/i)-1)+n},easeInExpo:function(e,t,n,r,i){return 0==t?n:r*Math.pow(2,10*(t/i-1))+n},easeOutExpo:function(e,t,n,r,i){return t==i?n+r:r*(1-Math.pow(2,-10*t/i))+n},easeInOutExpo:function(e,t,n,r,i){return 0==t?n:t==i?n+r:(t/=i/2)<1?r/2*Math.pow(2,10*(t-1))+n:r/2*(2-Math.pow(2,-10*--t))+n},easeInCirc:function(e,t,n,r,i){return-r*(Math.sqrt(1-(t/=i)*t)-1)+n},easeOutCirc:function(e,t,n,r,i){return r*Math.sqrt(1-(t=t/i-1)*t)+n},easeInOutCirc:function(e,t,n,r,i){return(t/=i/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+n:r/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,r,i){var o=1.70158,a=0,s=r;if(0==t)return n;if(1==(t/=i))return n+r;if(a||(a=.3*i),s<Math.abs(r)){s=r;o=a/4}else o=a/(2*Math.PI)*Math.asin(r/s);return-s*Math.pow(2,10*(t-=1))*Math.sin((t*i-o)*(2*Math.PI)/a)+n},easeOutElastic:function(e,t,n,r,i){var o=1.70158,a=0,s=r;if(0==t)return n;if(1==(t/=i))return n+r;if(a||(a=.3*i),s<Math.abs(r)){s=r;o=a/4}else o=a/(2*Math.PI)*Math.asin(r/s);return s*Math.pow(2,-10*t)*Math.sin((t*i-o)*(2*Math.PI)/a)+r+n},easeInOutElastic:function(e,t,n,r,i){var o=1.70158,a=0,s=r;if(0==t)return n;if(2==(t/=i/2))return n+r;if(a||(a=i*(.3*1.5)),s<Math.abs(r)){s=r;o=a/4}else o=a/(2*Math.PI)*Math.asin(r/s);return t<1?s*Math.pow(2,10*(t-=1))*Math.sin((t*i-o)*(2*Math.PI)/a)*-.5+n:s*Math.pow(2,-10*(t-=1))*Math.sin((t*i-o)*(2*Math.PI)/a)*.5+r+n},easeInBack:function(e,t,r,i,o,a){return a==n&&(a=1.70158),i*(t/=o)*t*((a+1)*t-a)+r},easeOutBack:function(e,t,r,i,o,a){return a==n&&(a=1.70158),i*((t=t/o-1)*t*((a+1)*t+a)+1)+r},easeInOutBack:function(e,t,r,i,o,a){return a==n&&(a=1.70158),(t/=o/2)<1?i/2*(t*t*((1+(a*=1.525))*t-a))+r:i/2*((t-=2)*t*((1+(a*=1.525))*t+a)+2)+r},easeInBounce:function(e,t,n,r,i){return r-this.easeOutBounce(e,i-t,0,r,i)+n},easeOutBounce:function(e,t,n,r,i){return(t/=i)<1/2.75?r*(7.5625*t*t)+n:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+n:r*(7.5625*(t-=2.625/2.75)*t+.984375)+n},easeInOutBounce:function(e,t,n,r,i){return t<i/2?.5*this.easeInBounce(e,2*t,0,r,i)+n:.5*this.easeOutBounce(e,2*t-i,0,r,i)+.5*r+n}},x=function(e){var n,r,i,o=0;if("string"===x.type(e)){for(n=[],"<"===e.charAt(0)?((i=t.createElement("div")).innerHTML=e,r=i.children):r=t.querySelectorAll(e);o<r.length;o++)n.push(r[o]);return new v(n)}return new v(e)},C=(x.extend=function(){var e,t,r,i,o,a,s=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),"object"!=typeof s&&"function"===!x.type(s)&&(s={}),c===l&&(s=x,--l);l<c;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],s!==(r=o[i])&&(u&&r&&(x.isPlainObject(r)||(t=x.isArray(r)))?(t?(t=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(u,a,r)):r!==n&&(s[i]=r));return s},x.type=function(e){return e===n?e+"":null===e?e+"":y.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()}),O=x.isFunction=function(e){return"function"===C(e)},S=(x.isArray=function(e){return"array"===C(e)},x.isEmptyObject=function(e){for(var t in e)return!1;return!0},x.isPlainObject=function(e){if(!e||"object"!==C(e))return!1;var t,n=Object.prototype.hasOwnProperty,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},x.inArray=function(e,t){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1},x.each=function(e,t){var n=0;if(i(e))for(;n<e.length&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e});return v.prototype={each:function(e){return S(this,e)},append:function(e){return this.each(function(){s(this,"beforeend",e)})},prepend:function(e){return this.each(function(){s(this,"afterbegin",e)})},before:function(e){return this.each(function(){s(this,"beforebegin",e)})},after:function(e){return this.each(function(){s(this,"afterend",e)})},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},first:function(){return new v(this[0])},last:function(){return new v(this[this.length-1])},find:function(e){var t,n=[];return this.each(function(){var r=this.querySelectorAll(e);for(t=0;t<r.length;t++)n.push(r[t])}),new v(n)},hide:function(){return this.each(function(){this.style.display="none"})},show:function(){return this.each(function(){this.style.display="block"})},attr:function(e,t){for(var r=0;r<this.length;r++){var i=this[r];if(t===n)return i.getAttribute(e);i.setAttribute(e,t)}return this},removeAttr:function(e){return this.each(function(){this.removeAttribute(e)})},prop:function(e,t){for(var r=0;r<this.length;r++){var i=this[r];if(t===n)return i[e];i[e]=t}return this},val:function(e){var t=this[0];return e?(t.value=e,this):t.value},scrollLeft:function(e){for(var t=0;t<this.length;t++){var r=this[t];if(e===n)return r.scrollLeft;r.scrollLeft=e}return this},scrollTop:function(e){for(var t=0;t<this.length;t++){var r=this[t];if(e===n)return r.scrollTop;r.scrollTop=e}return this},children:function(e){var t,n,r=[];return this.each(function(){for(t=(i=this).children,n=0;n<t.length;n++){var i=t[n];e?(i.matches&&i.matches(e)||a(i,e))&&r.push(i):r.push(i)}}),new v(r)},on:function(e,t){e=(e||"").match(p)||[""];var n,r;return this.each(function(){if((r=this).addEventListener)for(n=0;n<e.length;n++)r.addEventListener(e[n],t);else for(n=0;n<e.length;n++)r.attachEvent("on"+e[n],t)})},off:function(e,t){e=(e||"").match(p)||[""];var n;return this.each(function(){var r=this;if(r.removeEventListener)for(n=0;n<e.length;n++)r.removeEventListener(e[n],t);else for(n=0;n<e.length;n++)r.detachEvent("on"+e[n],t)})},trigger:function(e){var n,r;return this.each(function(){n=this,t.createEvent?((r=t.createEvent("HTMLEvents")).initEvent(e,!0,!1),n.dispatchEvent(r)):n.fireEvent("on"+e)})},hasClass:function(e){for(var t,n=0,r=m+e+m;t=this[n++];)if(t.classList){if(t.classList.contains(e))return!0}else if(1===t.nodeType&&(m+o(t.className)+m).indexOf(r)>-1)return!0;return!1},addClass:function(e){var t,r,i,a,s,l,c=null,u=0,f=0;if(e)for(t=e.match(p)||[];r=this[u++];)if(c===n&&(c=r.classList!==n),c)for(;s=t[f++];)r.classList.add(s);else if(a=r.className,i=1===r.nodeType&&m+o(a)+m){for(;s=t[f++];)i.indexOf(m+s+m)<0&&(i+=s+m);a!==(l=o(i))&&(r.className=l)}return this},removeClass:function(e){var t,r,i,a,s,l,c=null,u=0,f=0;if(e)for(t=e.match(p)||[];r=this[u++];)if(c===n&&(c=r.classList!==n),c)for(;s=t[f++];)r.classList.remove(s);else if(a=r.className,i=1===r.nodeType&&m+o(a)+m){for(;s=t[f++];)for(;i.indexOf(m+s+m)>-1;)i=i.replace(m+s+m,m);a!==(l=o(i))&&(r.className=l)}return this},remove:function(){return this.each(function(){var e=this;null!=e.parentNode&&e.parentNode.removeChild(e)})},offset:function(){var n=this[0].getBoundingClientRect(),r=e.pageXOffset||t.documentElement.scrollLeft,i=e.pageYOffset||t.documentElement.scrollTop;return{top:n.top+i,left:n.left+r}},css:function(t,r){var i,o;return"string"===x.type(t)?r===n?(i=this[0],e.getComputedStyle?e.getComputedStyle(i,null).getPropertyValue(t):i.currentStyle[t]):this.each(function(){l(this,t,r)}):this.each(function(){for(o in t)l(this,o,t[o])})},unwrap:function(){var e,t,n,r=[];for(this.each(function(){n=this.parentNode,-1===x.inArray(n,r)&&r.push(n)}),e=0;e<r.length;e++){for(t=r[e],n=t.parentNode;t.firstChild;)n.insertBefore(t.firstChild,t);n.removeChild(t)}return this},wrapAll:function(e){for(var t,n=this,r=new x(e)[0],i=r,o=n[0].parentNode,a=n[0].previousSibling;i.childNodes.length>0;)i=i.childNodes[0];for(t=0;n.length-t;i.firstChild===n[0]&&t++)i.appendChild(n[t]);var s=a?a.nextSibling:o.firstChild;return o.insertBefore(r,s),this},wrapInner:function(e){return this.each(function(){var t=new v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){return this.each(function(){new x(this).wrapAll(e)})},contents:function(){var e,t,n=[];return this.each(function(){for(e=this.childNodes,t=0;t<e.length;t++)n.push(e[t])}),new v(n)},parent:function(){var e=[];return this.each(function(){e.push(this.parentNode)}),new v(e)},is:function(e){var t,n;for(n=0;n<this.length;n++){if(t=this[n],":visible"===e)return"none"!==t.style.display;if(":hidden"===e)return"none"===t.style.display;if(t.matches&&t.matches(e)||a(t,e))return!0}return!1},animate:function(e,t,n,r){return this.each(function(){h(this,e,t,n,r)})},stop:function(e,t){return this.each(function(){d(this,e,t)})}},x}(o);!function(r,o,a,s){function l(){h===n&&(h=new c(v)),d===n&&(d=new u(h))}function c(i){function s(e){var r=!1,i="Webkit Moz ms O".split(" "),o=t.createElement("div"),a=null;if(e=e.toLowerCase(),o.style[e]!==n&&(r=!0),!1===r){a=e.charAt(0).toUpperCase()+e.substr(1);for(var s=0;s<i.length;s++)if(o.style[i[s]+a]!==n){r=!0;break}}return r}var l=this;l.defaultOptions=i,l.autoUpdateLoop=!1,l.autoUpdateRecommended=r.mO()===n;var c=a("body"),u=a('<div id="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%;"></div></div>'),f=function(){c.append(u);var e=u[0],t=a(u.children("div").first());0===e.offsetHeight&&u.hide().show();var n={x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth};u.addClass("os-viewport-native-scrollbars-invisible"),u.css("overflow","hidden").hide().css("overflow","scroll").show(),l.nativeScrollbarStyling=e.offsetHeight-e.clientHeight==0&&e.offsetWidth-e.clientWidth==0,u.css({"overflow-y":"hidden",direction:"rtl"}).scrollLeft(0);var r=u.offset(),i=t.offset();u.scrollLeft(999);var o=t.offset();return l.rtlScrollBehavior={i:r.left===i.left,n:i.left-o.left==0},u.removeAttr("style").remove(),n}(),h={x:0===f.x,y:0===f.y};l.nativeScrollbarSize=f,l.nativeScrollbarIsOverlaid=h,l.overlayScrollbarDummySize={x:30,y:30},l.msie=function(){var t=e.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);if(t.indexOf("Trident/")>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var i=t.indexOf("Edge/");return i>0&&parseInt(t.substring(i+5,t.indexOf(".",i)),10)}(),l.cssCalc=function(){for(var e=t.createElement("div"),n=["calc","-webkit-calc","-moz-calc","-o-calc"],r=0;r<n.length;++r){var i=n[r];if(e.style.cssText="width:"+i+"(1px);",e.style.length)return i}return null}(),l.supportTransform=s("transform"),l.supportTransition=s("transition"),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(r.prototype=this.prototype),i.prototype=new r,i});var d=!1;try{var v=Object.defineProperty({},"passive",{get:function(){d=!0}});e.addEventListener("test",null,v)}catch(e){}l.supportPassiveEvents=d,l.supportResizeObserver=r.rO()!==n,l.supportMutationObserver=r.mO()!==n,function(){function t(e,t){var n=Math.abs(e),r=Math.abs(t);return!(n===r||n+1===r||n-1===r)}function n(){var t=screen.deviceXDPI||0,n=screen.logicalXDPI||1;return e.devicePixelRatio||t/n}if(!h.x||!h.y){var i=r.wW(),s=r.wH(),f=n();a(e).on("resize",function(){if(o.all().length>0){var e=r.wW(),h=r.wH(),d=e-i,v=h-s;if(0===d&&0===v)return;var p=Math.round(e/(i/100)),y=Math.round(h/(s/100)),m=Math.abs(d),g=Math.abs(v),b=Math.abs(p),w=Math.abs(y),x=n(),C=m>2&&g>2,O=!t(b,w),S=x!==f&&f>0;if(!!(C&&O&&S)){c.append(u);var M=u[0];l.nativeScrollbarSize={x:M.offsetHeight-M.clientHeight,y:M.offsetWidth-M.clientWidth},u.remove(),a.each(o.all(),function(){o.has(this)&&o.get(this).update("zoom")})}i=e,s=h,f=x}})}}()}function u(e){var t,i=this,o=[],s=[],l=!1,c=33,u=r.now(),f=function(){if(o.length>0&&l){t=r.rAF()(function(){f()});var e=r.now(),i=e-u;if(i>c){u=e-i%c;for(var a=33,h=0;h<o.length;h++){var d=o[h];if(d!==n){var v=d.options(),p=v.autoUpdate,y=Math.max(1,v.autoUpdateInterval),m=r.now();(!0===p||null===p)&&m-s[h]>y&&(d.update("auto"),s[h]=new Date(m+=y)),a=Math.max(1,Math.min(a,y))}}c=a}}else c=33};i.add=function(t){-1===a.inArray(t,o)&&(o.push(t),s.push(r.now()),o.length>0&&!l&&(l=!0,e.autoUpdateLoop=l,f()))},i.remove=function(i){var c=a.inArray(i,o);c>-1&&(s.splice(c,1),o.splice(c,1),0===o.length&&l&&(l=!1,e.autoUpdateLoop=l,t!==n&&(r.cAF()(t),t=-1)))}}function f(t,l,c,u){function f(){if(!We){var e=Ye[0],t={w:e.scrollWidth,h:e.scrollHeight};if(gn){var n=b(t,Rt);Rt=t,n&&fe(!0,!1)}else Rt=t}}function h(e,t,n){e=e[0];for(var r=t.split(Jn),i=0;i<r.length;i++)e.addEventListener(r[i],n,{passive:!0})}function d(e,t,n){e=e[0];for(var r=t.split(Jn),i=0;i<r.length;i++)e.removeEventListener(r[i],n,{passive:!0})}function v(e){if(e!==n&&Me){var t=e.contents()[0];t[sr].unobserve(t)}}function p(e){if(e!==n&&Me){var t=e.contents()[0];t[sr].observe(t)}}function y(e,t){var n=function(n){e.scrollTop(3333333),e.scrollLeft(Le?de.n?-3333333:de.i?0:3333333:3333333),t()};if(Me){var i=r.rO(),o=e.append(Qn+Er+" observed"+Vn).contents()[0];(o[sr]=new i(n)).observe(o)}else{var s="animationstart mozAnimationStart webkitAnimationStart MSAnimationStart";if(pe>9||!ve){var l=Qn+Er+'">';l+=Qn+Ir+'" dir="ltr">',l+=Qn+Ir+'">',l+=Qn+Hr+Vn,l+="</div>",l+=Qn+Ir+'">',l+=Qn+Hr+'" style="width: 200%; height: 200%'+Vn,l+="</div>",l+="</div>",l+="</div>",e.prepend(l);var u,f,h,d,v=(e=e[0]).childNodes[0].childNodes[0],p=a(v.childNodes[1]),y=a(v.childNodes[0]),m=a(y[0].childNodes[0]),g=v.offsetWidth,b=v.offsetHeight,w=c.nativeScrollbarSize,x=function(){y[Gn](3333333)[Zn](3333333),p[Gn](3333333)[Zn](3333333)},C=function(){f=0,u&&(g=h,b=d,n())},O=function(e){return h=v.offsetWidth,d=v.offsetHeight,u=h!=g||d!=b,e&&u&&!f?(r.cAF()(f),f=r.rAF()(C)):e||C(),x(),e&&(r.prvD(e),r.stpP(e)),!1},S={};S[In]=-2*(w.y+1),S[Hn]=-2*w.x,S[Ln]=-2*w.y,S[Wn]=-2*(w.x+1),a(v).css(S),y.on(qn,O),p.on(qn,O),a(e).on(s,function(){O(!1)});var M={};M[Nn]=3333333,M[jn]=3333333,m.css(M),x()}else{var A=qe[0],k=e;e=e[0];var z=A.attachEvent,T="undefined"==typeof navigator||(navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));if(z)k.prepend(Qn+Er+Vn),k.find(Yn+Er).first()[0].attachEvent("onresize",n);else{var E=A.createElement("object");E.setAttribute("tabindex","-1"),E.setAttribute("class",Er),E.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",n),e.document.documentElement.style.display="none"},E.type="text/html",T&&k.prepend(E),E.data="about:blank",T||k.prepend(E),k.on(s,n)}}}if((e=a(e))[0]===Ye[0]){var I=function(){var t=Qe.css("direction");if(t!==xt){var n={},r=0;return"ltr"===t?(n[Wn]=0,n[Hn]=Bn,r=3333333):(n[Wn]=Bn,n[Hn]=0,r=de.n?-3333333:de.i?0:3333333),Ye.children().first().css(n),e.scrollLeft(r),e.scrollTop(3333333),xt=t,!0}return!1};I(),e.on(qn,function(e){return I()&&fe(),r.prvD(e),r.stpP(e),!1})}}function m(e){if(Me){var t=e.contents()[0];t[sr].disconnect(),delete t[sr]}else e.children(Yn+Er).first().remove()}function g(e,t,r){return!0===r?r:t===n||e!==t}function b(e,t,r,i,o){if(!0===o)return o;if(i===n&&o===n){if(!0===r)return r;r=n}return r=r===n?"w":r,i=i===n?"h":i,t===n||(e[r]!==t[r]||e[i]!==t[i])}function w(e,t){return t===n||(e.t!==t.t||e.r!==t.r||e.b!==t.b||e.l!==t.l)}function x(e,t){e.call(mn,t)}function C(e,t,r){r===n&&(r=[Rn,Rn,Rn,Rn]),e[t+In]=r[0],e[t+Hn]=r[1],e[t+Ln]=r[2],e[t+Wn]=r[3]}function O(){tn&&!en&&(Gt.observe(Qe[0],{attributes:!0,attributeOldValue:!0,attributeFilter:["id","class","style"]}),Zt.observe(wn?_e[0]:Ze[0],{attributes:!0,attributeOldValue:!0,subtree:!wn,childList:!wn,characterData:!wn,attributeFilter:wn?["wrap","cols","rows"]:["id","class","style"]}),en=!0)}function S(){tn&&en&&(Gt.disconnect(),Zt.disconnect(),en=!1)}function M(e){if(!We){var t=(e.originalEvent||e).touches!==n;(1===r.mBtn(e)||t)&&(en&&(hn=!0,S()),ti=r.page(e),ni.w=Qe[0].offsetWidth-(Ae?0:ke),ni.h=Qe[0].offsetHeight-(Ae?0:ze),qe.on(or,j),qe.on(nr,A),qe.on(tr,k),Xe.addClass(Yr),tt.setCapture&&tt.setCapture(),r.prvD(e),r.stpP(e))}}function A(e){e.originalEvent;var t=r.page(e),n={};(pn||vn)&&(n[Nn]=ni.w+t.x-ti.x),(yn||vn)&&(n[jn]=ni.h+t.y-ti.y),Qe.css(n),r.stpP(e)}function k(e){var t=e!==n;qe.off(or,j),qe.off(nr,A),qe.off(tr,k),Xe.removeClass(Yr),tt.releaseCapture&&tt.releaseCapture(),t&&(hn&&O(),mn.update(Bn)),hn=!1}function z(){if(!We){var e=!Et,t=An.w-(Ae||Ct||!dt?0:ze+Ee),n=An.h-(Ae||Ct||!vt?0:ze+Ee),r={},i=dt||e,o=_e[0];r[Pn+Nn]=Rn,r[Pn+jn]=Rn,r[Nn]=Bn,_e.css(r);var a=o.offsetWidth,s=i?Math.max(a,o.scrollWidth-1):1;s+=dt?Ie+(Ae?0:e?0:ke+Te):0,r[Nn]=dt?s:Un,r[jn]=Bn,_e.css(r);var l=o.offsetHeight,c=Math.max(l,o.scrollHeight-1);return r[Nn]=s,r[jn]=c,et.css(r),r[Pn+Nn]=t+(!Ae&&dt?ke+Te:0),r[Pn+jn]=n+(!Ae&&vt?ze+Ee:0),_e.css(r),{ow:a,oh:l,dw:s,dh:c}}}function T(){var e=_e.prop("selectionStart");if(e!==n){for(var t=_e.val(),r=t.length,i=t.split("\n"),o=i.length,a=t.substr(0,e).split("\n"),s=0,l=0,c=a.length,u=a[a.length-1].length,f=0;f<i.length;f++){var h=i[f].length;h>l&&(s=f+1,l=h)}return{cursorRow:c,cursorCol:u,rows:o,cols:l,wRow:s,pos:e,max:r}}}function E(e){for(var t=0;t<Zr.length;t++)if(e===Zr[t])return!0;return!1}function I(){z(),mn.update(Bn)}function H(e){var t=e.keyCode;if(!E(t)){if(0===ei.length){var n=function(){z(),mn.update(Bn)};n(),nn=setInterval(n,1e3/60)}-1===a.inArray(t,ei)&&ei.push(t)}}function L(e){var t=e.keyCode;if(!E(t)){var n=a.inArray(t,ei);n>-1&&ei.splice(n,1),0===ei.length&&(z(),mn.update(Bn),clearInterval(nn))}}function W(){setTimeout(function(){z(),mn.update(Bn)},50)}function P(){rn=!0}function F(){rn=!1,clearInterval(nn),ei=[],z(),mn.update(Bn)}function N(e){return _e[Gn](de.i&&Qt?9999999:0),_e[Zn](0),r.prvD(e),r.stpP(e),!1}function j(e){return r.prvD(e),!1}function D(){return kt&&we.x&&we.y}function R(e,t,n){var r=e?fr:hr,i=e?nt:ot;t?Qe.removeClass(r):Qe.addClass(r),n?i.removeClass(Dr):i.addClass(Dr)}function B(e,t){if(clearTimeout(on),e)nt.removeClass(Rr),ot.removeClass(Rr);else{var n=function(){if(!fn){var e=it.hasClass("active")||st.hasClass("active");e||!ln&&!cn||nt.addClass(Rr),e||!ln&&!cn||ot.addClass(Rr)}};an>0&&!0!==t?on=setTimeout(n,an):n()}}function q(e){var t={},n=V(e),r=Math.min(1,(lt[n._wh]-(Ct?e?ke:ze:0))/ct[n._wh]);t[n.wh]=Math.floor(100*r*1e5)/1e5+"%",D()||n.h.css(t),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=r}function U(e,t){var n=Le&&e,r={},i=V(e),o=$e[0][qn+i.WH]-$e[0]["client"+i.WH];de.n&&n&&(o*=-1);var a=t/o;a=isNaN(a)?0:Math.min(1,a),i.i.ms=o,i.i.cs=t,i.i.csr=a;var s=i.i.hl,l=i.t[0]["offset"+i.WH],c=(l-s)*a;if(c=isNaN(c)?0:c,n&&(de.n||!de.n&&!de.i)&&(c=l-s-c),c=Math.max(0,c),Oe){n&&(c=-(l-s-c));var u;u=e?"translate("+c+"px, 0px)":"translate(0px, "+c+"px)",r["-webkit-transform"]=u,r["-moz-transform"]=u,r["-ms-transform"]=u,r["-o-transform"]=u,r.transform=u}else r[i.lt]=c;D()||i.h.css(r),i.i.ho=c,i.i.tl=l}function X(e,t){var n=t?"removeClass":"addClass",r=e?rt:it,i=e?at:st,o=e?Fr:jr;r[n](o),i[n](o)}function _(){nt=a(Qn+Wr+Jn+Qr+Vn),rt=a(Qn+Pr+Vn),it=a(Qn+Nr+Vn),ot=a(Qn+Wr+Jn+Vr+Vn),at=a(Qn+Pr+Vn),st=a(Qn+Nr+Vn),nt.append(rt),rt.append(it),ot.append(at),at.append(st),Ke.after(ot),Ke.after(nt),Ce&&(nt.on(ar,function(e){e.target===nt[0]&&(q(!0),U(!0,$e[Gn]()))}),ot.on(ar,function(e){e.target===ot[0]&&(q(!1),U(!1,$e[Zn]()))})),Q(!0),Q(!1),tt=a(Qn+Jn+Br+Vn),Qe.append(tt)}function Q(e){var t,i,o,a=V(e),s=a.xy,l=qn+a.LT,c=1,u=function(){c=.5},f=function(){c=1},v=function(n){n.originalEvent;var o=a.i.tl,c=a.i.hl,u=a.i.ms*((c/2+r.page(n)[s]-i-c/2)/(o-c));u=isFinite(u)?u:0,Le&&e&&(de.n||!de.n&&!de.i)&&(u*=-1),$e[l](t+u),Se||r.prvD(n)},p=function(e){e=e||e.originalEvent,Xe.removeClass(Yr),a.h.removeClass("active"),a.t.removeClass("active"),a.s.removeClass("active"),Se?(d(qe,nr,v),d(qe,tr,p),d(qe,rr,y),d(qe,ir,m),d(qe,or,j)):(qe.off(nr,v),qe.off(tr,p),qe.off(rr,y),qe.off(ir,m),qe.off(or,j)),f(),t=n,i=n,o!==n&&(mn.scrollStop(),clearTimeout(o),o=n);var r=Qe[0].getBoundingClientRect();e.clientX>=r.left&&e.clientX<=r.right&&e.clientY>=r.top&&e.clientY<=r.bottom||J(),ln&&B(!1)},y=function(e){16==e.keyCode&&u()},m=function(e){16==e.keyCode&&f()};a.h.on(er,function(o){if(!We){var c=(o.originalEvent||o).touches!==n;D()||!Xt||c&&!un||(1===r.mBtn(o)||c)&&(t=$e[l](),t=t===n?0:t,(Le&&e&&!de.n||!Le)&&(t=t<0?0:t),i=r.page(o)[s],Xe.addClass(Yr),a.h.addClass("active"),a.s.addClass("active"),Se?(h(qe,or,j),h(qe,nr,v),h(qe,tr,p)):(qe.on(or,j),qe.on(nr,v),qe.on(tr,p)),r.prvD(o))}}),a.t.on(er,function(t){if(!We){var l=(t.originalEvent||t).touches!==n;if(!D()&&Ut&&(!l||un)&&(1===r.mBtn(t)||l)){var f,d=An[a._wh],v=a.t.offset()[a.lt],g=!0;t.shiftKey&&u();var b=function(){var t=a.i.ho,r=a.i.hl,s=i-v,l=200*c,u=g?Math.max(333,l):l,h={},p=Le&&e&&(!de.i&&!de.n||Qt),y=t>s;p&&(y=t<s),y?(f===n&&(f=!0),h[a.xy]="-="+d):(f===n&&(f=!1),h[a.xy]="+="+d),mn.scrollStop(),mn.scroll(h,l,"linear");var m=f?t<=s:t+r>=s;p&&(m=f?t+r>=s:t<=s),m?(clearTimeout(o),mn.scrollStop(),o=n):o=setTimeout(b,u),g=!1};i=r.page(t)[s],Xe.addClass(Yr),a.t.addClass("active"),a.s.addClass("active"),Se?(h(qe,or,j),h(qe,tr,p),h(qe,rr,y),h(qe,ir,m)):(qe.on(or,j),qe.on(tr,p),qe.on(rr,y),qe.on(ir,m)),b(),r.prvD(t)}}}).hover(function(){ln&&(fn=!0,B(!0))},function(){ln&&(fn=!1,B(!1))}),a.s.on(er,function(e){r.stpP(e)})}function V(e){return{wh:e?Nn:jn,WH:e?"Width":"Height",lt:e?Wn:In,LT:e?"Left":"Top",xy:e?Xn:_n,XY:e?"X":"Y",_wh:e?"w":"h",_lt:e?"l":"t",t:e?rt:at,h:e?it:st,s:e?nt:ot,i:e?Sn:Mn}}function Y(){cn&&B(!0)}function J(){cn&&!Xe.hasClass(Yr)&&B(!1)}function K(e){if(!We){var t=je.callbacks,r=t.onScrollStart,i=t.onScroll,o=t.onScrollStop;Pe!==n?clearTimeout(Pe):(ln&&B(!0),D()||Qe.addClass(yr),a.isFunction(r)&&x(r,e)),U(!0,$e[Gn]()),U(!1,$e[Zn]()),a.isFunction(i)&&x(i,e),Pe=setTimeout(function(){$(),a.isFunction(o)&&x(o,e)},kn)}}function $(){clearTimeout(Pe),Pe=n,ln&&B(!1),D()||Qe.removeClass(yr)}function G(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function Z(e,t,r,i){var o,l,c,u,f,h={n:t,s:!1,v:n,p:n},d="undefined",v=s.has(e,t),p=s.get(e,t),y=!1,m=!0!==v,g=$n,b=!1;for("array"!==a.type(r)&&(r=[r]),f=r.length,l=0;l<f;l++){var w=r[l];if("*"===w)if(f>1){var x=0;for(u=0;u<f;u++){var C=r[u];if(a.type(C)===g&&++x>1)break}1===x&&(b=!0)}else b=!0;w===n&&(y=!0)}if(m&&!1===v&&y&&(m=!1),!m){o=p,d=a.type(o);var O=function(e){var t=a.type(e);return t===d&&(t!==g||(!!b||o===e))&&(h.s=!0,h.v=o,h.p=o,!0)};for(l=0;l<f;l++){var S=r[l];if(a.type(S)===g){var M=S.split(":"),A=M[0],k=!1;for(c=0;c<M.length;c++)if(O(M[c])){b||(h.p=A),k=!0;break}if(k)break}else if(O(S))break}}if(!h.s){var z='The option "'+t+"\" wasn't set, because";if(m&&!1!==v){var T=s.has(Fe,t);!0===T?console.warn(z+' "'+v+'" is not from type [ OBJECT ].'):(z='The option "'+t+'" is not a default option',!1===T?console.warn(z+Yn):console.warn(z+" and couldn't be resolved, because \""+T+'" is not from type [ OBJECT ].'))}else{var E=[],I=Rn,H=!1,L=Rn;for(l=0;l<f;l++){var W=r[l],P=a.type(W);if(P===g){H=!b;var F=W.split(":");for(c=0;c<F.length;c++)L+='"'+F[c]+'", '}-1===a.inArray(P,E)&&(E.push(P),I=I+P.toUpperCase()+", ")}I=I.slice(0,-2),H&&(L=L.slice(0,-2)),console.warn(z+" it doesn't accept the type [ "+d.toUpperCase()+' ] with the value of "'+o+'".\r\nAccepted types are: [ '+I+" ]."+(H?"\r\nValid strings are: [ "+L+" ].":Rn))}}return(i=i===n||i)&&s.del(e,t),h}function ee(){var e={};return xn&&Ge&&(e.w=le(Ge.css(Pn+Nn)),e.h=le(Ge.css(Pn+jn)),e.c=b(e,$t),e.f=!0),$t=e,e.c}function te(e,t){var n,r,i={};for(n=0;n<e.length;n++){var o=e[n],s=[];if(o.s){var l=o.n.split(".");for(r=0;r<l.length;r++)s[r]={},s[r][l[r]]={};for(r=0;r<s.length;r++){var c=!1,u=s[r];r+1===s.length&&(c=!0);for(var f in u)u.hasOwnProperty(f)&&(u[f]=s[r+1],c&&(u[f]=t?o.p:o.v))}a.extend(!0,i,s[0])}}return i}function ne(e,t){var n,r=[],i=[];for(n=0;n<e.length;n++)r[e[n]]=!0;for(n=0;n<t.length;n++)r[t[n]]?delete r[t[n]]:r[t[n]]=!0;for(var o in r)i.push(o);return i}function re(e,t){var r=t!==n&&null!==t?t.split(Jn):Rn,i=e!==n&&null!==e?e.split(Jn):Rn;if(r===Rn&&i===Rn)return!1;var o=ne(i,r),s=!1,l=Yt!==n&&null!==Yt?Yt.split(Jn):[Rn],c=Vt!==n&&null!==Vt?Vt.split(Jn):[Rn],u=a.inArray(Jr,o);u>-1&&o.splice(u,1);for(var f=0;f<o.length;f++){var h=o[f];if(0!==h.indexOf(cr)){var d,v=!0,p=!0;for(d=0;d<l.length;d++)if(h===l[d]){v=!1;break}for(d=0;d<c.length;d++)if(h===c[d]){p=!1;break}if(v&&p){s=!0;break}}}return s}function ie(e){var t=e.attributeName,n=e.target;if(n===Ze[0])return!1;if("attributes"===e.type&&("class"===t||"style"===t)&&!wn){if("function"!=typeof n.closest)return!0;if(null!==n.closest(Yn+Er)||null!==n.closest(Yn+Wr)||null!==n.closest(Yn+Br))return!1}return!0}function oe(e){e=a.extend(!0,{},Ne,e);var t=["*",null],n=["v-h:visible-hidden","v-s:visible-scroll","s:scroll","h:hidden"],r=["v:visible","h:hidden","a:auto"],i=["n:never","s:scroll","l:leave"],o=["n:none","b:both","h:horizontal","v:vertical"],l=Kn+"s.",c=[!0,null],u=[new Function,null],f=[];f.push(Z(e,"nativeScrollbarsOverlaid.showNativeScrollbars",!0)),f.push(Z(e,"nativeScrollbarsOverlaid.initialize",!0)),f.push(Z(e,"overflowBehavior."+Xn,n)),f.push(Z(e,"overflowBehavior."+_n,n)),f.push(Z(e,l+"visibility",r)),f.push(Z(e,l+"autoHide",i)),f.push(Z(e,l+"autoHideDelay",0)),f.push(Z(e,l+"clickScrolling",!0)),f.push(Z(e,l+"dragScrolling",!0)),f.push(Z(e,l+"touchSupport",!0)),f.push(Z(e,"textarea.dynWidth",!0)),f.push(Z(e,"textarea.dynHeight",!0)),f.push(Z(e,"className",t)),f.push(Z(e,"resize",o)),f.push(Z(e,"sizeAutoCapable",!0)),f.push(Z(e,"paddingAbsolute",!0)),f.push(Z(e,"clipAlways",!0)),f.push(Z(e,"normalizeRTL",!0)),f.push(Z(e,"autoUpdate",c)),f.push(Z(e,"autoUpdateInterval",0)),f.push(Z(e,"callbacks.onInitialized",u)),f.push(Z(e,"callbacks.onInitializationWithdrawn",u)),f.push(Z(e,"callbacks.onDestroyed",u)),f.push(Z(e,"callbacks.onScrollStart",u)),f.push(Z(e,"callbacks.onScroll",u)),f.push(Z(e,"callbacks.onScrollStop",u)),f.push(Z(e,"callbacks.onDirectionChanged",u)),f.push(Z(e,"callbacks.onContentSizeChanged",u)),f.push(Z(e,"callbacks.onHostSizeChanged",u)),f.push(Z(e,"callbacks.onOverflowChanged",u)),f.push(Z(e,"callbacks.onOverflowAmountChanged",u)),f.push(Z(e,"callbacks.onUpdated",u));for(var h in e)e.hasOwnProperty(h)&&s.has(Fe,h)&&a.isEmptyObject(e[h])&&delete e[h];if(!a.isEmptyObject(e)){var d=function(e){a.each(e,function(t,n){a.isPlainObject(n)?d(n):"function"===a.type(n)&&(e[t]=a.type(n))})};d(e),console.warn("The following options are discarded due to invalidity:\r\n"+JSON.stringify(e,null,2))}Ne=a.extend(!0,{},Ne,te(f,!1)),je=a.extend(!0,{},je,te(f,!0))}function ae(){if(We)return!1;var e,t=wn&&dt&&!Et?_e.val().length:0,n=!en&&dt&&!wn,r={};n&&(e=Ze.css(Dn),r[Dn]=Le?Hn:Wn,r[Nn]=Bn,Ze.css(r));var i={w:ue().scrollWidth+t,h:ue().scrollHeight+t};n&&(r[Dn]=e,r[Nn]=Un,Ze.css(r));var o=ee(),a=b(i,Dt)||o;return Dt=i,a}function se(){if(We||en)return!1;var e=Qe.attr("id")||Rn,t=g(e,Ht),n=Qe.attr("class")||Rn,r=g(n,Lt),i=Qe.attr("style")||Rn,o=g(i,Wt),a=Qe.is(":visible")||Rn,s=g(a,Pt),l=wn?_e.attr("rows")||Rn:Rn,c=g(l,Ft),u=wn?_e.attr("cols")||Rn:Rn,f=g(u,Nt),h=wn?_e.attr("wrap")||Rn:Rn,d=g(h,jt);return Ht=e,r&&(r=re(Lt,n)),Lt=n,Wt=i,Pt=a,Ft=l,Nt=u,jt=h,t||r||o||s||c||f||d}function le(e){var t=parseInt(e);return isNaN(t)?0:t}function ce(e){if(!gn)return!0;var t=[Nn,Pn+Nn,Fn+Nn,zn+Wn,zn+Hn,Wn,Hn,"font-weight","word-spacing"],n=[Tn+Wn,Tn+Hn,En+Wn+Nn,En+Hn+Nn],r=[jn,Pn+jn,Fn+jn,zn+In,zn+Ln,In,Ln,"line-height"],i=[Tn+In,Tn+Ln,En+In+Nn,En+Ln+Nn],o="s"===Mt.x||"v-s"===Mt.x,a=!1,s=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1};return("s"===Mt.y||"v-s"===Mt.y)&&((a=s(r,e))||Ae||(a=s(i,e))),o&&!a&&((a=s(t,e))||Ae||(a=s(n,e))),a}function ue(){return wn?et[0]:Ze[0]}function fe(e,t,i){var o=r.now(),s=$r>0&&gn&&o-De<$r&&!vt&&!dt;if(clearTimeout(Re),s&&(Kr.h=e,Kr.c=t,Kr.f=i,Re=setTimeout(fe,$r)),!(s||We||gn&&!i&&Qe.is(":hidden")||"inline"===Qe.css("display"))){De=o,e=e||Kr.h,t=t||Kr.c,i=i||Kr.f,Kr={},e=e!==n&&e,t=t!==n&&t,i=i!==n&&i,!ye||we.x&&we.y?ge=a.extend(!0,{},c.nativeScrollbarSize):(ge.x=0,ge.y=0),be={x:3*(ge.x+(we.x?0:3)),y:3*(ge.y+(we.y?0:3))},v(Ye),v(Ve);var l={l:$e[Gn](),t:$e[Zn]()},f=je.callbacks,m=je.scrollbars,A=je.textarea,k=f.onUpdated,E=f.onOverflowChanged,I=f.onOverflowAmountChanged,H=f.onDirectionChanged,L=f.onContentSizeChanged,W=f.onHostSizeChanged,P=m.visibility,F=g(P,Bt,i),N=m.autoHide,j=g(N,qt,i),D=m.clickScrolling,_=g(D,Ut,i),Q=m.dragScrolling,V=g(Q,Xt,i),K=je.className,$=g(K,Vt,i),G=je.resize,Z=g(G,_t,i)&&!xn,te=!!wn&&"off"!==_e.attr("wrap"),ne=g(te,Et,i),re=je.paddingAbsolute,ie=g(re,Ct,i),oe=je.clipAlways,ae=g(oe,Ot,i),se=je.sizeAutoCapable&&!xn,ce=g(se,Tt,i),he=je.nativeScrollbarsOverlaid.showNativeScrollbars,pe=g(he,kt),Ce=je.autoUpdate,Oe=g(Ce,zt),Me=je.overflowBehavior,Pe=b(Me,Mt,Xn,_n,i),Fe=A.dynWidth,Ne=g(Kt,Be),Be=A.dynHeight,qe=g(Jt,Be);if(sn="n"===N,ln="s"===N,cn="l"===N,an=m.autoHideDelay,un=m.touchSupport,Yt=Vt,dn="n"===G,vn="b"===G,pn="h"===G,yn="v"===G,Qt=je.normalizeRTL,he=he&&we.x&&we.y,Bt=P,qt=N,Ut=D,Xt=Q,Vt=K,_t=G,Et=te,Ct=re,Ot=oe,Tt=se,kt=he,zt=Ce,Mt=a.extend(!0,{},Me),Kt=Fe,Jt=Be,$&&(Qe.removeClass(Yt).removeClass(Jr),K!==n&&null!==K&&K.length>0?Qe.addClass(K):Qe.addClass(Jr)),Oe&&(!0===Ce?(S(),u.add(mn)):null===Ce&&ve?(S(),u.add(mn)):(u.remove(mn),O())),ce)if(se)if(Je===n&&(Je=a(Qn+zr+Vn),Ke.before(Je)),Cn)Ve.show();else{Ve=a(Qn+Tr+Vn),Je.before(Ve);var Ue={w:-1,h:-1};y(Ve,function(){var e={w:Ve[0].offsetWidth,h:Ve[0].offsetHeight};b(e,Ue)&&(gn&&vt&&e.h>0||dt&&e.w>0?fe():(gn&&!vt&&0===e.h||!dt&&0===e.w)&&fe()),Ue=e}),Cn=!0,null!==me&&Ve.css(jn,me+"(100% + 1px)")}else Cn&&Ve.hide();i&&(Ye.find("*").trigger(qn),Cn&&Ve.find("*").trigger(qn));var Xe,nt=Qe.css("direction"),rt=g(nt,wt,i),it=Qe.css("box-sizing"),ot=g(it,yt,i),at={c:i,t:le(Qe.css(Tn+In)),r:le(Qe.css(Tn+Hn)),b:le(Qe.css(Tn+Ln)),l:le(Qe.css(Tn+Wn))};try{Xe=Cn?Ve[0].getBoundingClientRect():null}catch(e){return}Ae="border-box"===it;var st=(Le="rtl"===nt)?Wn:Hn,xt=Le?Hn:Wn,Ht=!1,Lt=!(!Cn||"none"===Qe.css(Dn))&&(0===Math.round(Xe.right-Xe.left)&&(!!re||Qe[0].clientWidth-ke>0));if(se&&!Lt){var Wt=Qe[0].offsetWidth,Pt=Je.css(Nn);Je.css(Nn,Bn);var Ft=Qe[0].offsetWidth;Je.css(Nn,Pt),(Ht=Wt!==Ft)||(Je.css(Nn,Wt+1),Ft=Qe[0].offsetWidth,Je.css(Nn,Pt),Ht=Wt!==Ft)}var Nt=(Lt||Ht)&&se,jt=g(Nt,dt,i),Dt=!Nt&&dt,Rt=!!Cn&&0===Math.round(Xe.bottom-Xe.top),Gt=g(Rt,vt,i),Zt=!Rt&&vt,tn="-"+Nn,nn=Nt&&Ae||!Ae,on=Rt&&Ae||!Ae,fn={c:i,t:on?le(Qe.css(En+In+tn)):0,r:nn?le(Qe.css(En+Hn+tn)):0,b:on?le(Qe.css(En+Ln+tn)):0,l:nn?le(Qe.css(En+Wn+tn)):0},hn={c:i,t:le(Qe.css(zn+In)),r:le(Qe.css(zn+Hn)),b:le(Qe.css(zn+Ln)),l:le(Qe.css(zn+Wn))},bn={h:String(Qe.css(Fn+jn)),w:String(Qe.css(Fn+Nn))},Sn={},Mn={};if(ke=at.l+at.r,ze=at.t+at.b,at.c=w(at,mt),Te=fn.l+fn.r,Ee=fn.t+fn.b,fn.c=w(fn,gt),Ie=hn.l+hn.r,He=hn.t+hn.b,hn.c=w(hn,bt),bn.ih=parseInt(bn.h),bn.iw=parseInt(bn.w),bn.ch=bn.h.indexOf("px")>-1,bn.cw=bn.w.indexOf("px")>-1,bn.c=b(bn,pt,i),wt=nt,yt=it,dt=Nt,vt=Rt,mt=at,gt=fn,bt=hn,pt=bn,rt&&Cn&&Ve.css(Dn,xt),at.c||rt||ie||jt||Gt||ot||ce){var kn={},Yn={};C(Mn,zn,[-at.t,-at.r,-at.b,-at.l]),re?(C(kn,Rn,[at.t,at.r,at.b,at.l]),wn?C(Yn,Tn):C(Sn,Tn)):(C(kn,Rn),wn?C(Yn,Tn,[at.t,at.r,at.b,at.l]):C(Sn,Tn,[at.t,at.r,at.b,at.l])),Ke.css(kn),_e.css(Yn)}An={w:Ke[0].offsetWidth,h:Ke[0].offsetHeight};var Jn=!!wn&&z();if(Rt&&(Gt||ie||ot||bn.c||at.c||fn.c)?(bn.cw&&(Sn[Fn+jn]=bn.ch?bn.ih-(re?ze:0)+(Ae?-Ee:ze):Rn),Sn[jn]=Bn):(Gt||ie)&&(Sn[Fn+jn]=Rn,Sn[jn]=Un),Nt&&(jt||ie||ot||bn.c||at.c||fn.c||rt)?(bn.cw&&(Sn[Fn+Nn]=bn.cw?bn.iw-(re?ke:0)+(Ae?-Te:ke)+(we.y?xe.y:0):Rn),Sn[Nn]=Bn,Mn[Fn+Nn]=Un):(jt||ie)&&(Sn[Fn+Nn]=Rn,Sn[Nn]=Un,Sn[Dn]=Rn,Mn[Fn+Nn]=Rn),Nt&&(bn.cw||(Sn[Fn+Nn]=Rn),Mn[Nn]=wn&&Fe?Jn.dw:Bn,Sn[Nn]=Bn,Sn[Dn]=xt),Rt&&(bn.ch||(Sn[Fn+jn]=Rn),Mn[jn]=wn?Be?Jn.dh:Bn:Ze[0].clientHeight),se&&Je.css(Mn),Ze.css(Sn),Sn={},Mn={},ft=ft||{x:!1,y:!1},e||t||rt||ot||ie||jt||Nt||Gt||Rt||bn.c||pe||Pe||ae||Z||F||Ne||qe||ne||ie||Ne||qe||i){var Kn={},$n=ft.y&&ht.ys&&!he?we.y?$e.css(st):-ge.y:0,tr=ft.x&&ht.xs&&!he?we.x?$e.css(Ln):-ge.x:0;C(Kn,Rn),$e.css(Kn),Rt&&!wn&&(Ze.css("overflow","hidden"),Sn.overflow=Rn);var nr=ue(),rr={w:nr.clientWidth,h:nr.clientHeight},ir={w:nr.scrollWidth,h:nr.scrollHeight},or={w:wn&&Jn&&!Fe?Jn.ow:Nt?rr.w:ir.w,h:wn&&Jn&&!Be?Jn.oh:Rt?rr.h:ir.h};Kn[Ln]=Zt?Rn:tr,Kn[st]=Dt?Rn:$n,$e.css(Kn);var ar=Qe[0],sr={w:ar.clientWidth,h:ar.clientHeight},lr={w:Math.max(or.w+(re?ke:0),sr.w-ke)-(Fe&&wn&&Nt?Ie+(Ae?0:ke+Te):0),h:Math.max(or.h+(re?ze:0),sr.h-ze)};if(lr.c=b(lr,St,i),St=lr,se){(lr.c||Rt||Nt)&&(Mn[Nn]=lr.w,Mn[jn]=lr.h);var cr=Mn[Nn]+(Ae?Te:-ke),ur=Mn[jn]+(Ae?Ee:-ke),fr={};(!Nt||!Nt&&fn.c)&&(Mn[Nn]=sr.w-(Ae?0:ke+Te)-1-Ie),(!Rt||!Rt&&fn.c)&&(Mn[jn]=sr.h-(Ae?0:ze+Ee)-1-He),bn.cw&&bn.iw===cr&&(Mn[Nn]=cr+(Ae?0:ke)+1),bn.ch&&bn.ih===ur&&(Mn[jn]=ur+(Ae?0:ze)+1),Nt&&(rr.w<An.w||wn&&!te)&&0===ke&&(wn&&(fr[Nn]=le(et.css(Nn))-1),Mn[Nn]-=1),Rt&&(rr.h<An.h||wn)&&0===ze&&(wn&&(fr[jn]=le(et.css(jn))-1),Mn[jn]-=1),or.h>0&&(Mn[Nn]=Math.max(1,Mn[Nn]),Mn[jn]=Math.max(1,Mn[jn])),wn&&et.css(fr),Je.css(Mn)}Nt&&(Sn[Nn]=Un),!Nt||Ae||en||(Sn[Dn]="none"),Ze.css(Sn),Sn={};var hr=nr.getBoundingClientRect(),dr={w:nr.scrollWidth,h:nr.scrollHeight};if(hr.width!==n){var wr=hr.width,xr=hr.height;dr.w+=le(wr+.001)-wr,dr.h+=le(xr+.001)-xr}dr.c=t=b(dr,ct,i),ct=dr,e=b(sr={w:ar.clientWidth,h:ar.clientHeight},lt),lt=sr;var Cr={x:"v-s"===Me.x,y:"v-s"===Me.y},Or={x:"v-h"===Me.x,y:"v-h"===Me.y},Sr={x:"s"===Me.x,y:"s"===Me.y},Mr={x:Math.max(0,dr.w-sr.w+(re?ke:0)),y:Math.max(0,dr.h-sr.h+(re?ze:0))},Ar=wn&&(0===An.w||0===An.h);Ar&&(Mr.x=0,Mr.y=0);var Er={x:Mr.x>0,y:Mr.y>0},Ir={x:Er.x,y:Er.y};(Cr.x||Or.x)&&(Ir.x=Er.y&&!Cr.y&&!Or.y),(Cr.y||Or.y)&&(Ir.y=Er.x&&!Cr.x&&!Or.x),Ir.xs=!!Ir.x&&(Sr.x||Cr.x),Ir.ys=!!Ir.y&&(Sr.y||Cr.y);var Hr={x:Er.x&&Ir.xs,y:Er.y&&Ir.ys},Lr=At;if(Mr.c=b(Mr,At,Xn,_n,i),At=Mr,Er.c=b(Er,ft,Xn,_n,i),ft=Er,Ir.c=b(Ir,ht,Xn,_n,i),ht=Ir,we.x||we.y){var Wr=i,Pr={};if((Er.x||Er.y)&&(Pr.w=we.y&&Er.y?dr.w+xe.y:Rn,Pr.h=we.x&&Er.x?dr.h+xe.x:Rn,Wr=g(Pr,ut,i),ut=Pr),Er.c||Ir.c||dr.c||rt||jt||Gt||Nt||Rt||pe){Sn[En+xt]=Rn,Sn[zn+xt]=Rn,we.x&&Er.x&&Ir.xs?(Rt&&(Sn[zn+Ln]=he?Rn:xe.x),Sn[En+Ln]=Rt||he?Rn:xe.x+"px solid transparent"):(Pr.h=Rn,Wr=!0,Sn[En+Ln]=Rn,Sn[zn+Ln]=Rn),we.y&&Er.y&&Ir.ys?(Nt&&(Sn[zn+st]=he?Rn:xe.y),Sn[En+st]=he?Rn:xe.y+"px solid transparent"):(Pr.w=Rn,Wr=!0,Sn[En+st]=Rn,Sn[zn+st]=Rn)}if(he&&(Pr.w=Rn,Pr.h=Rn,Wr=!0),Wr){var Fr={};Fr[Nn]=Ir.y?Pr.w:Rn,Fr[jn]=Ir.x?Pr.h:Rn,Ge===n&&(Ge=a(Qn+kr+Vn),$e.prepend(Ge)),Ge.css(Fr)}Ze.css(Sn)}var Nr={},kn={};if(e||Er.c||Ir.c||dr.c||Pe||ot||pe||rt||ae||Gt){Nr[xt]=Rn;var jr=function(){Nr[Ln]=Rn,On.h=0},Dr=function(){Nr[st]=Rn,On.w=0};if(Er.x&&Ir.xs?(Nr["overflow-x"]=qn,he?jr():(Nr[Ln]=-(we.x?xe.x:ge.x),On.h=we.x?xe.y:0)):(Nr["overflow-x"]=Rn,jr()),Er.y&&Ir.ys?(Nr["overflow-y"]=qn,he?Dr():(Nr[st]=-(we.y?xe.y:ge.y),On.w=we.y?xe.x:0)):(Nr["overflow-y"]=Rn,Dr()),(An.h<be.x||An.w<be.y)&&(Er.x&&Ir.x&&!we.x||Er.y&&Ir.y&&!we.y)?(Nr[Tn+In]=be.x,Nr[zn+In]=-be.x,Nr[Tn+xt]=be.y,Nr[zn+xt]=-be.y):(Nr[Tn+In]=Rn,Nr[zn+In]=Rn,Nr[Tn+xt]=Rn,Nr[zn+xt]=Rn),Nr[Tn+st]=Rn,Nr[zn+st]=Rn,Er.x&&Ir.x||Er.y&&Ir.y||Ar?wn&&Ar&&(kn["overflow-x"]="hidden",kn["overflow-y"]="hidden"):(!oe||Or.x||Cr.x||Or.y||Cr.y)&&(wn&&(kn["overflow-x"]=Rn,kn["overflow-y"]=Rn),Nr["overflow-x"]="visible",Nr["overflow-y"]="visible"),Ke.css(kn),$e.css(Nr),Nr={},(Er.c||ot||jt||Gt)&&(!we.x||!we.y)){var Rr=Ze[0],Br=Rr.style;Br.webkitTransform="scale(1)",Br.display="run-in";Rr.offsetHeight;Br.display=Rn,Br.webkitTransform=Rn}if(pe&&he){Qe.hide();Qe[0].offsetHeight;Qe.show()}}if(Sn={},rt||jt||Gt)if(Le&&Nt){var Qr=Ze.css(Dn),Vr=Math.round(Ze.css(Dn,Rn).css(Wn,Rn).position().left);Ze.css(Dn,Qr),Vr!==Math.round(Ze.position().left)&&(Sn[Wn]=Vr)}else Sn[Wn]=Rn;Ze.css(Sn);var Yr="v"===P,Gr="h"===P,Zr="a"===P,ei=R.bind(0,!0,!0,Hr.x),ti=R.bind(0,!1,!0,Hr.y),ni=R.bind(0,!0,!1,Hr.x),ri=R.bind(0,!1,!1,Hr.y);if(rt&&(Le?Qe.addClass(vr):Qe.removeClass(vr)),xn&&Qe.addClass(pr),Z){var ii=function(){tt.off(er,M)};dn?(Qe.addClass(pr),tt.removeClass(qr).removeClass(Ur).removeClass(Xr).removeClass(_r),ii()):(Qe.removeClass(pr),tt.addClass(qr),vn?tt.addClass(Ur):pn?tt.addClass(Xr):yn&&tt.addClass(_r),ii(),tt.on(er,M))}if((F||Pe||Ir.c||Er.c||pe)&&(he?pe&&(Qe.removeClass(yr),he&&(ni(),ri())):Zr?(Hr.x?ei():ni(),Hr.y?ti():ri()):Yr?(ei(),ti()):Gr&&(ni(),ri())),j||pe){var oi=function(){Se?(d(Qe,"mouseenter",Y),d(Qe,"mouseleave",J)):(Qe.off("mouseenter",Y),Qe.off("mouseleave",J))};cn?(oi(),Se?(h(Qe,"mouseenter",Y),h(Qe,"mouseleave",J)):(Qe.on("mouseenter",Y),Qe.on("mouseleave",J))):oi(),sn?B(!0):B(!1,!0)}if((e||Mr.c||Gt||jt||Z||ot||ie||pe||rt)&&(q(!0),U(!0,l.l),q(!1),U(!1,l.t)),_&&X(!0,D),V&&X(!1,Q),Ir.x||Ir.y?Qe.addClass(mr):Qe.removeClass(mr),Ir.x?Qe.addClass(gr):Qe.removeClass(gr),Ir.y?Qe.addClass(br):Qe.removeClass(br),wn&&t){var ai=T();if(ai!==n){var si=It===n||ai.rows!==It.rows,li=ai.wRow,ci=ai.cursorRow,ui=ai.cursorCol,fi=ai.rows,hi=ai.cols,di=ai.pos,vi=ai.max===di&&rn,pi={x:te||ui!==hi||ci!==li?-1:At.x,y:(te?vi||si&&Lr!==n&&l.t===Lr.y:(vi||si)&&ci===fi)?At.y:-1},yi=pi.x>-1,mi=pi.y>-1;(yi||mi)&&(mi&&$e[Zn](pi.y),yi&&(Le&&Qt&&de.i?$e[Gn](0):$e[Gn](pi.x)))}It=ai}else wn||(Le&&de.i&&we.y&&Er.x&&Qt&&(l.l+=On.w),$e[Gn](l.l),$e[Zn](l.t));rt&&a.isFunction(H)&&x(H,{isRTL:Le,dir:nt}),e&&a.isFunction(W)&&x(W,{width:lt.w,height:lt.h}),t&&a.isFunction(L)&&x(L,{width:ct.w,height:ct.h}),(Er.c||Ir.c)&&a.isFunction(E)&&x(E,{x:Er.x,y:Er.y,xScrollable:Ir.xs,yScrollable:Ir.ys,clipped:Ir.x||Ir.y}),Mr.c&&a.isFunction(I)&&x(I,{x:Mr.x,y:Mr.y})}xn&&(Er.c||$t.c)&&($t.f||ee(),we.y&&Er.x&&Ze.css(Pn+Nn,$t.w+xe.y),we.x&&Er.y&&Ze.css(Pn+jn,$t.h+xe.x),$t.c=!1),p(Ye),p(Ve),a.isFunction(k)&&x(k,{forced:i})}}if(G(t)){if(o.has(t)){var he=o.get(t);return he.options(l),he}var de,ve,pe,ye,me,ge,be,we,xe,Ce,Oe,Se,Me,Ae,ke,ze,Te,Ee,Ie,He,Le,We,Pe,Fe,Ne,je,De,Re,Be,qe,Ue,Xe,_e,Qe,Ve,Ye,Je,Ke,$e,Ge,Ze,et,tt,nt,rt,it,ot,at,st,lt,ct,ut,ft,ht,dt,vt,pt,yt,mt,gt,bt,wt,xt,Ct,Ot,St,Mt,At,kt,zt,Tt,Et,It,Ht,Lt,Wt,Pt,Ft,Nt,jt,Dt,Rt,Bt,qt,Ut,Xt,_t,Qt,Vt,Yt,Jt,Kt,$t,Gt,Zt,en,tn,nn,rn,on,an,sn,ln,cn,un,fn,hn,dn,vn,pn,yn,mn=new e[i],gn=!1,bn=!1,wn=!1,xn=!1,Cn=!1,On={w:0,h:0},Sn={},Mn={},An={},kn=175,zn="margin-",Tn="padding-",En="border-",In="top",Hn="right",Ln="bottom",Wn="left",Pn="min-",Fn="max-",Nn="width",jn="height",Dn="float",Rn="",Bn="auto",qn="scroll",Un="100%",Xn="x",_n="y",Qn='<div class="',Vn='"></div>',Yn=".",Jn=" ",Kn="scrollbar",$n="string",Gn=qn+"Left",Zn=qn+"Top",er="mousedown touchstart",tr="mouseup touchend",nr="mousemove touchmove",rr="keydown",ir="keyup",or="selectstart",ar="transitionend webkitTransitionEnd oTransitionEnd",sr="~_overlayScrollbarsRO_~",lr="os-html",cr="os-host",ur=cr+"-textarea",fr=cr+"-"+Kn+"-horizontal-hidden",hr=cr+"-"+Kn+"-vertical-hidden",dr=cr+"-transition",vr=cr+"-rtl",pr=cr+"-resize-disabled",yr=cr+"-scrolling",mr=cr+"-overflow",gr=mr+"-x",br=mr+"-y",wr="os-textarea",xr=wr+"-cover",Cr="os-padding",Or="os-viewport",Sr=Or+"-native-scrollbars-invisible",Mr=Or+"-native-scrollbars-overlaid",Ar="os-content",kr="os-content-arrange",zr="os-content-glue",Tr="os-size-auto-observer",Er="os-resize-observer",Ir="os-resize-observer-item",Hr=Ir+"-final",Lr="os-text-inherit",Wr="os-"+Kn,Pr=Wr+"-track",Fr=Pr+"-off",Nr=Wr+"-handle",jr=Nr+"-off",Dr=Wr+"-unusable",Rr=Wr+"-"+Bn+"-hidden",Br=Wr+"-corner",qr=Br+"-resize",Ur=qr+"-both",Xr=qr+"-horizontal",_r=qr+"-vertical",Qr=Wr+"-horizontal",Vr=Wr+"-vertical",Yr="os-dragging",Jr="os-theme-none",Kr={},$r=33,Gr=11,Zr=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],ei=[],ti={x:0,y:0},ni={w:0,h:0};if(mn.sleep=function(){We=!0},mn.update=function(e){if(e===Bn){var t=se(),n=ae();(t||n)&&fe(!1,n)}else"zoom"===e?fe(!0,!0):(e=We||e,We=!1,fe(!1,!1,e))},mn.options=function(e,t){if(a.isEmptyObject(e)||!a.isPlainObject(e)){if("string"===a.type(e)){if(arguments.length>=2){var n={};return s.set(n,e,t,!0),oe(n),void fe()}return s.get(Ne,e)}return Ne}oe(e);var r=We||!1;We=!1,fe(),We=r},mn.destroy=function(){bn=!0,u.remove(mn),S(),m(Ye),Cn&&m(Ve),Ye.remove(),Je!==n&&Je.remove(),Ge!==n&&Ge.remove(),Cn&&Ve.remove(),Se?(d(Qe,"mouseenter",Y),d(Qe,"mouseleave",J)):(Qe.off("mouseenter",Y),Qe.off("mouseleave",J)),nt.remove(),ot.remove(),tt&&tt.remove(),dn||k(),Ze.contents().unwrap().unwrap().unwrap(),xn&&Ue.removeClass(lr),wn?(_e.off(qn,N),_e.off("drop",W),_e.off("focus",P),_e.off("focusout",F),pe>9||!ve?_e.off("input",I):(_e.off(rr,H),_e.off(ir,L)),et.remove(),_e.removeClass(wr).removeClass(Lr),_e.unwrap().removeAttr("style"),Qe.remove()):(_e.removeClass(cr),Qe.removeClass(cr).removeClass(pr).removeClass(vr).removeClass(fr).removeClass(hr).removeClass(dr).removeClass(yr).removeClass(mr).removeClass(gr).removeClass(br).removeClass(Jr).removeClass(Vt)),o.rem(t);var e=je.callbacks.onDestroyed;a.isFunction(e)&&x(e);for(var r in mn)delete mn[r];mn=n},mn.scroll=function(t,r,i,o){if(0===arguments.length||t===n){var s=Sn,l=Mn,c=Qt&&Le&&de.i,u=Qt&&Le&&de.n,f=s.cs,h=s.csr,d=s.ms;return h=c?1-h:h,f=c?d-f:f,f*=u?-1:1,d*=u?-1:1,{x:{position:f,ratio:h,max:d,handleOffset:s.ho,handleLength:s.hl,handleLengthRatio:s.hlr,trackLength:s.tl,isRTL:Le,isRTLNormalized:Qt},y:{position:l.cs,ratio:l.csr,max:l.ms,handleOffset:l.ho,handleLength:l.hl,handleLengthRatio:l.hlr,trackLength:l.tl}}}var v,p=[Xn,Wn,"l"],y=[_n,In,"t"],m=["+=","-=","*=","/="],g={},b="object"===a.type(r),w={axis:"xy",block:["begin","begin"],margin:[0,0,0,0]},x=[Xn,_n,"xy","yx"],C=["begin","end"],O=t.hasOwnProperty("el"),S=O?t.el:t,M=S instanceof a,A=!M&&G(S),k=function(e,t){for(v=0;v<t.length;v++)if(e===t[v])return!0;return!1},z=function(e){var t={};if("array"===a.type(e)&&e.length>0)t.x=e[0],t.y=e[1];else if(a.type(e)===$n||"number"===a.type(e))t.x=e,t.y=e;else if("object"===a.type(e)){e=a.extend({},e),v=0;for(var n in e)e.hasOwnProperty(n)&&(v>2&&delete e[n],v++);var r=function(t){var n=t?p:y;for(v=0;v<n.length;v++)if(n[v]in e)return e[n[v]]};t.x=r(!0),t.y=r(!1)}return t},T=function(t,r){var i,o,s,l=t?Sn:Mn,c=l.cs,u=l.ms,f=Le&&t,h=f&&de.n&&!Qt;if(a.type(r)===$n){if(r.length>2){var d=r.substr(0,2);for(v=0;v<m.length;v++)if(d===m[v]){i=m[v];break}}r=(r=(r=(r=(r=(r=(r=(r=(r=i!==n?r.substr(2):r).replace(/min/g,0)).replace(/</g,0)).replace(/max/g,(h?"-":Rn)+Un)).replace(/>/g,(h?"-":Rn)+Un)).replace(/px/g,Rn)).replace(/%/g," * "+u*(f&&de.n?-1:1)/100)).replace(/vw/g," * "+An.w)).replace(/vh/g," * "+An.h),o=e.parseInt(e.parseFloat(e.eval(r)).toFixed())}else"number"===a.type(r)&&(o=r);if(!isNaN(o)&&o!==n&&"number"===a.type(o)){var p=Qt&&f,y=c*(p&&de.n?-1:1),g=p&&de.i,b=p&&de.n;switch(y=g?u-y:y,i){case"+=":s=y+o;break;case"-=":s=y-o;break;case"*=":s=y*o;break;case"/=":s=y/o;break;default:s=o}g&&(s=u-s),b&&(s*=-1),f&&de.n?(s=Math.max(u,s),s=Math.min(0,s)):(s=Math.min(u,s),s=Math.max(0,s)),s===c&&(s=n)}return s};if(M||A){var E=M?S:a(S);if(0===E.length)return;if(O){var I,H,L,W=t.axis,P=t.block,F=a.type(P),N=t.margin,j=a.type(N);if(F===$n)P=[P,P];else if("array"===F)if((H=P.length)>2||H<1)P=n;else{for(I=!0,1===H&&(P[1]="begin"),v=0;v<H;v++){var D=P[v];if(a.type(D)!==$n||!k(D,C)){I=!1;break}}I||(P=n)}else P=n;if("number"===j)N=[N,N,N,N];else if("boolean"===j)N=N?[le(E.css(zn+In)),le(E.css(zn+Hn)),le(E.css(zn+Ln)),le(E.css(zn+Wn))]:[0,0,0,0];else if("array"===j)if(2!==(L=N.length)&&4!==L)N=n;else{for(I=!0,v=0;v<L;v++)if("number"!==a.type(N[v])){I=!1;break}I?2===L&&(N=[N[0],N[1],N[0],N[1]]):N=n}else N=n;w.axis=k(W,x)?W:w.axis,w.block=P||w.block,w.margin=N||w.margin}var R=E.offset(),B=Ke.offset(),q=An,U={l:Sn.cs,t:Mn.cs},X=w.axis,_=w.block,Q=w.margin,V=_[0]===(Le?"begin":"end"),Y="end"===_[1],J=V||Y;R.top-=Q[0],R.left-=Q[3];var K={x:Math.round(R.left-B.left+U.l),y:Math.round(R.top-B.top+U.t)};if(Le&&(de.n||de.i||(K.x=Math.round(B.left-R.left+U.l)),de.n&&Qt&&(K.x*=-1),de.i&&Qt&&(K.x=Math.round(B.left-R.left+(Sn.ms-U.l)))),J){var $,Z={},ee={w:(Z=Oe?{w:($=E[0].getBoundingClientRect())[Nn],h:$[jn]}:{w:E[0].offsetWidth,h:E[0].offsetHeight}).w+Q[3]+Q[1],h:Z.h+Q[0]+Q[2]};V&&(K.x-=(q.w-ee.w)*(Le&&Qt?-1:1)),Y&&(K.y-=q.h-ee.h)}X===Xn&&delete K.y,X===_n&&delete K.x,t=K}g.x=T(!0,z(t).x),g.y=T(!1,z(t).y);var te=g.x!==n,ne=g.y!==n;if(r>0||b){var re={};if(te&&(re[Gn]=g.x),ne&&(re[Zn]=g.y),b)$e.animate(re,r);else{var ie={duration:r,complete:o};if("array"===a.type(i)){var oe={};oe[Gn]=i[0],oe[Zn]=i[1],ie.specialEasing=oe}else ie.easing=i;$e.animate(re,ie)}}else te&&$e[Gn](g.x),ne&&$e[Zn](g.y)},mn.scrollStop=function(e,t,n){$e.stop(e,t,n)},mn.getElements=function(){return{target:_e[0],host:Qe[0],padding:Ke[0],viewport:$e[0],content:Ze[0],scrollbarHorizontal:{scrollbar:nt[0],track:rt[0],handle:it[0]},scrollbarVertical:{scrollbar:ot[0],track:at[0],handle:st[0]},scrollbarCorner:tt}},mn.getState=function(e){var t=function(e){if(!a.isPlainObject(e))return e;var t=a.extend(!0,{},e);s.del(t,"c");var n=function(e,n){t.hasOwnProperty(e)&&(t[n]=t[e],delete t[e])};return n("w",Nn),n("h",jn),t},n={sleeping:t(We)||!1,autoUpdate:t(!en),widthAuto:t(dt),heightAuto:t(vt),padding:t(mt),overflowAmount:t(At),hideOverflow:t(ht),hasOverflow:t(ft),contentScrollSize:t(ct),viewportSize:t(An),hostSize:t(lt)};return a.type(e)===$n?s.get(n,e):n},function(e,t){Fe=c.defaultOptions,ye=c.nativeScrollbarStyling,ge=a.extend(!0,{},c.nativeScrollbarSize),we=a.extend(!0,{},c.nativeScrollbarIsOverlaid),xe=a.extend(!0,{},c.overlayScrollbarDummySize),de=a.extend(!0,{},c.rtlScrollBehavior),oe(a.extend(!0,{},Fe,t));var n=je.callbacks;if(we.x&&we.x&&!je.nativeScrollbarsOverlaid.initialize){var i=n.onInitializationWithdrawn;return a.isFunction(i)&&x(i),!1}me=c.cssCalc,pe=c.msie,ve=c.autoUpdateRecommended,Ce=c.supportTransition,Oe=c.supportTransform,Se=c.supportPassiveEvents,Me=c.supportResizeObserver,tn=c.supportMutationObserver,qe=a(e.ownerDocument),Be=a(qe[0].defaultView||qe[0].parentWindow),Ue=qe.find("html").first(),Xe=Ue.find("body").first(),_e=a(e),wn=_e.is("textarea");var o;if((xn=_e.is("body"))&&((o={}).l=Math.max(_e[Gn](),Ue[Gn](),Be[Gn]()),o.t=Math.max(_e[Zn](),Ue[Zn](),Be[Zn]())),wn){_e.wrap(Qn+ur+Vn),_e.addClass(wr).addClass(Lr),Qe=_e.parent();var s={};je.sizeAutoCapable||(s[Nn]=_e.css(Nn),s[jn]=_e.css(jn)),Qe.css(s),Qe.wrapInner(Qn+Ar+Jn+Lr+Vn).wrapInner(Qn+Or+Jn+Lr+Vn).wrapInner(Qn+Cr+Jn+Lr+Vn),Ze=Qe.find(Yn+Ar).first(),$e=Qe.find(Yn+Or).first(),Ke=Qe.find(Yn+Cr).first(),et=a(Qn+xr+Vn),Ze.prepend(et),_e.on(qn,N),_e.on("drop",W),_e.on("focus",P),_e.on("focusout",F),pe>9||!ve?_e.on("input",I):(_e.on(rr,H),_e.on(ir,L))}else _e.addClass(cr),(Qe=_e).wrapInner(Qn+Ar+Vn).wrapInner(Qn+Or+Vn).wrapInner(Qn+Cr+Vn),Ze=Qe.find(Yn+Ar).first(),$e=Qe.find(Yn+Or).first(),Ke=Qe.find(Yn+Cr).first(),Ze.on(ar,function(e){!0!==zt&&ce((e=e.originalEvent||e).propertyName)&&fe(Bn)});if(_(),Se?h($e,qn,K):$e.on(qn,K),ye&&(we.x&&we.y?$e.addClass(Mr):$e.addClass(Sr)),tn){var l,u=r.mO(),d=r.now();Gt=new u(function(e){if(gn&&!We){var t=!1;a.each(e,function(){var e=this,n=this.target,r=e.attributeName;if(t="class"===r?re(e.oldValue,n.className):"style"!==r||e.oldValue!==n.style.cssText)return!1}),t&&mn.update(Bn)}}),Zt=new u(function(e){if(gn&&!We){for(var t=!1,n=0;n<e.length;n++)if(ie(e[n])){t=!0;break}if(t){var i=r.now(),o=vt||dt,a=function(){d=i,wn&&z(),o?mn.update():mn.update(Bn)};clearTimeout(l),Gr<=0||i-d>Gr||!o?a():l=setTimeout(a,Gr)}}})}xn&&(Ue.addClass(lr),$e[Gn](o.l),$e[Zn](o.t)),Ye=a(Qn+"os-resize-observer-host"+Vn),Qe.prepend(Ye),y(Ye,f),f(),mn.update(Bn),setTimeout(function(){Ce&&!bn&&Qe.addClass(dr)},333),gn=!0;var v=n.onInitialized;return a.isFunction(v)&&x(v),gn}(t,l))return o.add(t,mn),mn;mn=n}}var h,d,v={className:"os-theme-dark",resize:"none",sizeAutoCapable:!0,clipAlways:!0,normalizeRTL:!0,paddingAbsolute:!1,autoUpdate:null,autoUpdateInterval:33,nativeScrollbarsOverlaid:{showNativeScrollbars:!1,initialize:!0},overflowBehavior:{x:"scroll",y:"scroll"},scrollbars:{visibility:"auto",autoHide:"never",autoHideDelay:800,dragScrolling:!0,clickScrolling:!1,touchSupport:!0},textarea:{dynWidth:!1,dynHeight:!1},callbacks:{onInitialized:null,onInitializationWithdrawn:null,onDestroyed:null,onScrollStart:null,onScroll:null,onScrollStop:null,onOverflowChanged:null,onOverflowAmountChanged:null,onDirectionChanged:null,onContentSizeChanged:null,onHostSizeChanged:null,onUpdated:null}};e[i]=function(e,t){if(0===arguments.length)return this;l();var r,i=[];return a.isPlainObject(t)?e&&e.length?e.length>1?(a.each(e,function(){(r=this)!==n&&i.push(f(r,t,h,d))}),i):f(e[0],t,h,d):f(e,t,h,d):e?e.length&&e.length>0?e.length>1?(a.each(e,function(){r=o.get(this),"!"===t?r!==n&&i.push(r):i.push(r)}),i):o.get(e[0]):o.get(e):void 0},e[i].globals=function(){l();var e=a.extend(!0,{},h);return delete e.msie,e},e[i].defaultOptions=function(e){l();var t=h.defaultOptions;if(e===n)return a.extend(!0,{},t);h.defaultOptions=a.extend(!0,{},t,e)}}(o,function(e){function t(e){for(var t=0;t<r.length;t++)if(e===r[t])return e[i]}var r=[],i="__overlayScrollbars__";return{all:function(){return r},add:function(e,t){e[i]=t,r.push(e)},rem:function(t){var n=e.inArray(t,r);n>-1&&(delete t[i],r.splice(n,1))},has:function(e){return t(e)!==n},get:t}}(a),a,function(e){function t(r,i,o,a,s){var l=!1;if(o=o===n?"":o,"string"!=typeof i)return l;if(0===i.length)return l;if(""===o){for(var c=i.split("."),u=r,f="",h=!1,d=0;d<c.length;d++){var v=c[d];if(u=u[v],f+=v+".","object"!==e.type(u)&&d+1!==c.length){h=!0;break}}if(h)return f.slice(0,-1)}for(var p in r)if(r.hasOwnProperty(p)){var y=o+p===i;if("object"!==e.type(r[p])||y){if(y){"function"==typeof a&&a(r,p),l=!0;break}}else if(l=t(r[p],i,o+p+".",a,s),"function"==typeof s&&s(r,p),l)break}return l}return{has:function(e,n){return t(e,n)},get:function(e,n){var r;return t(e,n,"",function(e,t){r=e[t]}),r},set:function(n,r,i,o){var a=!1;if(t(n,r,"",function(e,t){e[t]=i,a=!0}),!a&&o){for(var s=r.split("."),l={},c=l,u=0;u<s.length;u++){var f=u===s.length-1?i:{};c=c[s[u]]=f}e.extend(!0,n,l),a=!0}return a},del:function(n,r,i){var o=!1;return t(n,r,"",function(e,t){delete e[t],o=!0},function(t,n){i&&e.isEmptyObject(t[n])&&delete t[n]}),o}}}(a))}); | ||
!function(e,t){"function"==typeof define&&define.amd?define(function(){return t(e,e.document,void 0)}):"object"==typeof exports?module.exports=t(e,e.document,void 0):t(e,e.document,void 0)}(this,function(e,t,n){"use-strict";var r="OverlayScrollbars",i={wW:function(){return e.innerWidth||t.documentElement.clientWidth||t.body.clientWidth},wH:function(){return e.innerHeight||t.documentElement.clientHeight||t.body.clientHeight},mO:function(){return e.MutationObserver||e.WebKitMutationObserver||e.WebkitMutationObserver||e.MozMutationObserver||n},rO:function(){return e.ResizeObserver||e.WebKitResizeObserver||e.WebkitResizeObserver||e.MozResizeObserver||n},rAF:function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)}},cAF:function(){return e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||e.msCancelAnimationFrame||function(t){return e.clearTimeout(t)}},now:function(){return Date.now()||(new Date).getTime()},stpP:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},prvD:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},page:function(e){var r=((e=e.originalEvent||e).target||e.srcElement||t).ownerDocument||t,i=r.documentElement,o=r.body;if(e.touches!==n){var a=e.touches[0];return{x:a.pageX,y:a.pageY}}return!e.pageX&&e.clientX&&null!=e.clientX?{x:e.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),y:e.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)}:{x:e.pageX,y:e.pageY}},mBtn:function(e){return e.which||e.button===n?e.which:1&e.button?1:2&e.button?3:4&e.button?2:0}},o=function(r){function i(e){var t=!!e&&"length"in e&&e.length,n=C(e);return!O(n)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function o(e){return(e.match(p)||[]).join(m)}function a(e,n){for(var r=(e.parentNode||t).querySelectorAll(n)||[],i=r.length;i--;)if(r[i]==e)return!0;return!1}function s(e,t,n){"string"===x.type(n)?e.insertAdjacentHTML(t,n):n.nodeType?e.insertAdjacentElement(t,n):e.insertAdjacentElement(t,n[0])}function l(e,t,r){try{e.style[t]!==n&&(e.style[t]=c(t,r))}catch(e){}}function c(e,t){return b[e.toLowerCase()]||"number"!==x.type(t)||(t=t+="px"),t}function u(e,t){var n,r;!1!==t&&e.q.splice(0,1),e.q.length>0?(r=e.q[0],anim(e.el,r.props,r.duration,r.easing,r.complete,!0)):(n=x.inArray(e,g))>-1&&g.splice(n,1)}function f(e,t,n){"scrollLeft"===t?e[t]=n:"scrollTop"===t?e[t]=n:l(e,t,n)}function h(e,t,n,i,o,a){var s,l,c,h,d,p,y={},m={},b=0,C=x.isPlainObject(n);for(C?(i=n.easing,n.start,c=n.progress,h=n.step,d=n.specialEasing,o=n.complete,p=n.duration):p=n,d=d||{},p=p||400,i=i||"swing",a=a||!1;b<g.length;b++)if(g[b].el===e){l=g[b];break}l||(l={el:e,q:[]},g.push(l));for(s in t)y[s]="scrollLeft"===s||"scrollTop"===s?e[s]:new v(e).css(s);for(s in y)y[s]!==t[s]&&(m[s]=t[s]);if(x.isEmptyObject(m))a&&u(l);else{var S,M,A,k,z,T,E,I,H,L=a?0:x.inArray(W,l.q),W={props:m,duration:C?n:p,easing:i,complete:o};if(-1===L&&(L=l.q.length,l.q.push(W)),0===L)if(p>0)E=r.now(),I=function(){S=r.now(),H=S-E,M=W.stop||H>=p,A=1-(Math.max(0,E+p-S)/p||0);for(s in m)k=y[s],z=m[s],T=(z-k)*w[d[s]||i](A,A*p,0,1,p)+k,f(e,s,T),O(h)&&h(T,{elem:e,prop:s,start:k,now:T,end:z,pos:A,options:{easing:i,speacialEasing:d,duration:p,complete:o,step:h},startTime:E});O(c)&&c({},A,Math.max(0,p-H)),M?(u(l),O(o)&&o()):W.frame=r.rAF()(I)},W.frame=r.rAF()(I);else{for(s in m)f(e,s,m[s]);u(l)}}}function d(e,t,n){for(var i,o,a,s=0;s<g.length;s++)if((i=g[s]).el===e){if(i.q.length>0){if(o=i.q[0],o.stop=!0,r.cAF()(o.frame),i.q.splice(0,1),n)for(a in o.props)f(e,a,o.props[a]);t?i.q=[]:u(i,!1)}break}}function v(e){var t=this;"string"===x.type(e)||e.length||(e=[e]);for(var n=0;n<e.length;n++)t[n]=e[n];return t.length=e.length,t}var p=/[^\x20\t\r\n\f]+/g,y=Object.prototype.toString,m=" ",g=[],b={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},w={swing:function(e,t,n,r,i){return.5-Math.cos(e*Math.PI)/2},linear:function(e,t,n,r,i){return e},easeInQuad:function(e,t,n,r,i){return r*(t/=i)*t+n},easeOutQuad:function(e,t,n,r,i){return-r*(t/=i)*(t-2)+n},easeInOutQuad:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t+n:-r/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,r,i){return r*(t/=i)*t*t+n},easeOutCubic:function(e,t,n,r,i){return r*((t=t/i-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t+n:r/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,r,i){return r*(t/=i)*t*t*t+n},easeOutQuart:function(e,t,n,r,i){return-r*((t=t/i-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t+n:-r/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,r,i){return r*(t/=i)*t*t*t*t+n},easeOutQuint:function(e,t,n,r,i){return r*((t=t/i-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t*t+n:r/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,r,i){return-r*Math.cos(t/i*(Math.PI/2))+r+n},easeOutSine:function(e,t,n,r,i){return r*Math.sin(t/i*(Math.PI/2))+n},easeInOutSine:function(e,t,n,r,i){return-r/2*(Math.cos(Math.PI*t/i)-1)+n},easeInExpo:function(e,t,n,r,i){return 0==t?n:r*Math.pow(2,10*(t/i-1))+n},easeOutExpo:function(e,t,n,r,i){return t==i?n+r:r*(1-Math.pow(2,-10*t/i))+n},easeInOutExpo:function(e,t,n,r,i){return 0==t?n:t==i?n+r:(t/=i/2)<1?r/2*Math.pow(2,10*(t-1))+n:r/2*(2-Math.pow(2,-10*--t))+n},easeInCirc:function(e,t,n,r,i){return-r*(Math.sqrt(1-(t/=i)*t)-1)+n},easeOutCirc:function(e,t,n,r,i){return r*Math.sqrt(1-(t=t/i-1)*t)+n},easeInOutCirc:function(e,t,n,r,i){return(t/=i/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+n:r/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,r,i){var o=1.70158,a=0,s=r;if(0==t)return n;if(1==(t/=i))return n+r;if(a||(a=.3*i),s<Math.abs(r)){s=r;o=a/4}else o=a/(2*Math.PI)*Math.asin(r/s);return-s*Math.pow(2,10*(t-=1))*Math.sin((t*i-o)*(2*Math.PI)/a)+n},easeOutElastic:function(e,t,n,r,i){var o=1.70158,a=0,s=r;if(0==t)return n;if(1==(t/=i))return n+r;if(a||(a=.3*i),s<Math.abs(r)){s=r;o=a/4}else o=a/(2*Math.PI)*Math.asin(r/s);return s*Math.pow(2,-10*t)*Math.sin((t*i-o)*(2*Math.PI)/a)+r+n},easeInOutElastic:function(e,t,n,r,i){var o=1.70158,a=0,s=r;if(0==t)return n;if(2==(t/=i/2))return n+r;if(a||(a=i*(.3*1.5)),s<Math.abs(r)){s=r;o=a/4}else o=a/(2*Math.PI)*Math.asin(r/s);return t<1?s*Math.pow(2,10*(t-=1))*Math.sin((t*i-o)*(2*Math.PI)/a)*-.5+n:s*Math.pow(2,-10*(t-=1))*Math.sin((t*i-o)*(2*Math.PI)/a)*.5+r+n},easeInBack:function(e,t,r,i,o,a){return a==n&&(a=1.70158),i*(t/=o)*t*((a+1)*t-a)+r},easeOutBack:function(e,t,r,i,o,a){return a==n&&(a=1.70158),i*((t=t/o-1)*t*((a+1)*t+a)+1)+r},easeInOutBack:function(e,t,r,i,o,a){return a==n&&(a=1.70158),(t/=o/2)<1?i/2*(t*t*((1+(a*=1.525))*t-a))+r:i/2*((t-=2)*t*((1+(a*=1.525))*t+a)+2)+r},easeInBounce:function(e,t,n,r,i){return r-this.easeOutBounce(e,i-t,0,r,i)+n},easeOutBounce:function(e,t,n,r,i){return(t/=i)<1/2.75?r*(7.5625*t*t)+n:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+n:r*(7.5625*(t-=2.625/2.75)*t+.984375)+n},easeInOutBounce:function(e,t,n,r,i){return t<i/2?.5*this.easeInBounce(e,2*t,0,r,i)+n:.5*this.easeOutBounce(e,2*t-i,0,r,i)+.5*r+n}},x=function(e){var n,r,i,o=0;if("string"===x.type(e)){for(n=[],"<"===e.charAt(0)?((i=t.createElement("div")).innerHTML=e,r=i.children):r=t.querySelectorAll(e);o<r.length;o++)n.push(r[o]);return new v(n)}return new v(e)},C=(x.extend=function(){var e,t,r,i,o,a,s=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),"object"!=typeof s&&"function"===!x.type(s)&&(s={}),c===l&&(s=x,--l);l<c;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],s!==(r=o[i])&&(u&&r&&(x.isPlainObject(r)||(t=x.isArray(r)))?(t?(t=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(u,a,r)):r!==n&&(s[i]=r));return s},x.type=function(e){return e===n?e+"":null===e?e+"":y.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()}),O=x.isFunction=function(e){return"function"===C(e)},S=(x.isArray=function(e){return"array"===C(e)},x.isEmptyObject=function(e){for(var t in e)return!1;return!0},x.isPlainObject=function(e){if(!e||"object"!==C(e))return!1;var t,n=Object.prototype.hasOwnProperty,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},x.inArray=function(e,t){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1},x.each=function(e,t){var n=0;if(i(e))for(;n<e.length&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e});return v.prototype={each:function(e){return S(this,e)},append:function(e){return this.each(function(){s(this,"beforeend",e)})},prepend:function(e){return this.each(function(){s(this,"afterbegin",e)})},before:function(e){return this.each(function(){s(this,"beforebegin",e)})},after:function(e){return this.each(function(){s(this,"afterend",e)})},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},first:function(){return new v(this[0])},last:function(){return new v(this[this.length-1])},find:function(e){var t,n=[];return this.each(function(){var r=this.querySelectorAll(e);for(t=0;t<r.length;t++)n.push(r[t])}),new v(n)},hide:function(){return this.each(function(){this.style.display="none"})},show:function(){return this.each(function(){this.style.display="block"})},attr:function(e,t){for(var r=0;r<this.length;r++){var i=this[r];if(t===n)return i.getAttribute(e);i.setAttribute(e,t)}return this},removeAttr:function(e){return this.each(function(){this.removeAttribute(e)})},prop:function(e,t){for(var r=0;r<this.length;r++){var i=this[r];if(t===n)return i[e];i[e]=t}return this},val:function(e){var t=this[0];return e?(t.value=e,this):t.value},scrollLeft:function(e){for(var t=0;t<this.length;t++){var r=this[t];if(e===n)return r.scrollLeft;r.scrollLeft=e}return this},scrollTop:function(e){for(var t=0;t<this.length;t++){var r=this[t];if(e===n)return r.scrollTop;r.scrollTop=e}return this},children:function(e){var t,n,r=[];return this.each(function(){for(t=(i=this).children,n=0;n<t.length;n++){var i=t[n];e?(i.matches&&i.matches(e)||a(i,e))&&r.push(i):r.push(i)}}),new v(r)},on:function(e,t){e=(e||"").match(p)||[""];var n,r;return this.each(function(){if((r=this).addEventListener)for(n=0;n<e.length;n++)r.addEventListener(e[n],t);else for(n=0;n<e.length;n++)r.attachEvent("on"+e[n],t)})},off:function(e,t){e=(e||"").match(p)||[""];var n;return this.each(function(){var r=this;if(r.removeEventListener)for(n=0;n<e.length;n++)r.removeEventListener(e[n],t);else for(n=0;n<e.length;n++)r.detachEvent("on"+e[n],t)})},trigger:function(e){var n,r;return this.each(function(){n=this,t.createEvent?((r=t.createEvent("HTMLEvents")).initEvent(e,!0,!1),n.dispatchEvent(r)):n.fireEvent("on"+e)})},hasClass:function(e){for(var t,n=0,r=m+e+m;t=this[n++];)if(t.classList){if(t.classList.contains(e))return!0}else if(1===t.nodeType&&(m+o(t.className)+m).indexOf(r)>-1)return!0;return!1},addClass:function(e){var t,r,i,a,s,l,c=null,u=0,f=0;if(e)for(t=e.match(p)||[];r=this[u++];)if(c===n&&(c=r.classList!==n),c)for(;s=t[f++];)r.classList.add(s);else if(a=r.className,i=1===r.nodeType&&m+o(a)+m){for(;s=t[f++];)i.indexOf(m+s+m)<0&&(i+=s+m);a!==(l=o(i))&&(r.className=l)}return this},removeClass:function(e){var t,r,i,a,s,l,c=null,u=0,f=0;if(e)for(t=e.match(p)||[];r=this[u++];)if(c===n&&(c=r.classList!==n),c)for(;s=t[f++];)r.classList.remove(s);else if(a=r.className,i=1===r.nodeType&&m+o(a)+m){for(;s=t[f++];)for(;i.indexOf(m+s+m)>-1;)i=i.replace(m+s+m,m);a!==(l=o(i))&&(r.className=l)}return this},remove:function(){return this.each(function(){var e=this;null!=e.parentNode&&e.parentNode.removeChild(e)})},offset:function(){var n=this[0].getBoundingClientRect(),r=e.pageXOffset||t.documentElement.scrollLeft,i=e.pageYOffset||t.documentElement.scrollTop;return{top:n.top+i,left:n.left+r}},css:function(t,r){var i,o;return"string"===x.type(t)?r===n?(i=this[0],e.getComputedStyle?e.getComputedStyle(i,null).getPropertyValue(t):i.currentStyle[t]):this.each(function(){l(this,t,r)}):this.each(function(){for(o in t)l(this,o,t[o])})},unwrap:function(){var e,t,n,r=[];for(this.each(function(){n=this.parentNode,-1===x.inArray(n,r)&&r.push(n)}),e=0;e<r.length;e++){for(t=r[e],n=t.parentNode;t.firstChild;)n.insertBefore(t.firstChild,t);n.removeChild(t)}return this},wrapAll:function(e){for(var t,n=this,r=new x(e)[0],i=r,o=n[0].parentNode,a=n[0].previousSibling;i.childNodes.length>0;)i=i.childNodes[0];for(t=0;n.length-t;i.firstChild===n[0]&&t++)i.appendChild(n[t]);var s=a?a.nextSibling:o.firstChild;return o.insertBefore(r,s),this},wrapInner:function(e){return this.each(function(){var t=new v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){return this.each(function(){new x(this).wrapAll(e)})},contents:function(){var e,t,n=[];return this.each(function(){for(e=this.childNodes,t=0;t<e.length;t++)n.push(e[t])}),new v(n)},parent:function(){var e=[];return this.each(function(){e.push(this.parentNode)}),new v(e)},is:function(e){var t,n;for(n=0;n<this.length;n++){if(t=this[n],":visible"===e)return"none"!==t.style.display;if(":hidden"===e)return"none"===t.style.display;if(t.matches&&t.matches(e)||a(t,e))return!0}return!1},animate:function(e,t,n,r){return this.each(function(){h(this,e,t,n,r)})},stop:function(e,t){return this.each(function(){d(this,e,t)})}},x}(i);!function(i,o,a,s){function l(){h===n&&(h=new c(v)),d===n&&(d=new u(h))}function c(r){function s(e){var r=!1,i="Webkit Moz ms O".split(" "),o=t.createElement("div"),a=null;if(e=e.toLowerCase(),o.style[e]!==n&&(r=!0),!1===r){a=e.charAt(0).toUpperCase()+e.substr(1);for(var s=0;s<i.length;s++)if(o.style[i[s]+a]!==n){r=!0;break}}return r}var l=this;l.defaultOptions=r,l.autoUpdateLoop=!1,l.autoUpdateRecommended=i.mO()===n;var c=a("body"),u=a('<div id="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%;"></div></div>'),f=function(){c.append(u);var e=u[0],t=a(u.children("div").first());0===e.offsetHeight&&u.hide().show();var n={x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth};u.addClass("os-viewport-native-scrollbars-invisible"),u.css("overflow","hidden").hide().css("overflow","scroll").show(),l.nativeScrollbarStyling=e.offsetHeight-e.clientHeight==0&&e.offsetWidth-e.clientWidth==0,u.css({"overflow-y":"hidden",direction:"rtl"}).scrollLeft(0);var r=u.offset(),i=t.offset();u.scrollLeft(999);var o=t.offset();return l.rtlScrollBehavior={i:r.left===i.left,n:i.left-o.left==0},u.removeAttr("style").remove(),n}(),h={x:0===f.x,y:0===f.y};l.nativeScrollbarSize=f,l.nativeScrollbarIsOverlaid=h,l.overlayScrollbarDummySize={x:30,y:30},l.msie=function(){var t=e.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);if(t.indexOf("Trident/")>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var i=t.indexOf("Edge/");return i>0&&parseInt(t.substring(i+5,t.indexOf(".",i)),10)}(),l.cssCalc=function(){for(var e=t.createElement("div"),n=["calc","-webkit-calc","-moz-calc","-o-calc"],r=0;r<n.length;++r){var i=n[r];if(e.style.cssText="width:"+i+"(1px);",e.style.length)return i}return null}(),l.supportTransform=s("transform"),l.supportTransition=s("transition"),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(r.prototype=this.prototype),i.prototype=new r,i});var d=!1;try{var v=Object.defineProperty({},"passive",{get:function(){d=!0}});e.addEventListener("test",null,v)}catch(e){}l.supportPassiveEvents=d,l.supportResizeObserver=i.rO()!==n,l.supportMutationObserver=i.mO()!==n,function(){function t(e,t){var n=Math.abs(e),r=Math.abs(t);return!(n===r||n+1===r||n-1===r)}function n(){var t=screen.deviceXDPI||0,n=screen.logicalXDPI||1;return e.devicePixelRatio||t/n}if(!h.x||!h.y){var r=i.wW(),s=i.wH(),f=n();a(e).on("resize",function(){if(o.all().length>0){var e=i.wW(),h=i.wH(),d=e-r,v=h-s;if(0===d&&0===v)return;var p=Math.round(e/(r/100)),y=Math.round(h/(s/100)),m=Math.abs(d),g=Math.abs(v),b=Math.abs(p),w=Math.abs(y),x=n(),C=m>2&&g>2,O=!t(b,w),S=x!==f&&f>0;if(!!(C&&O&&S)){c.append(u);var M=u[0];l.nativeScrollbarSize={x:M.offsetHeight-M.clientHeight,y:M.offsetWidth-M.clientWidth},u.remove(),a.each(o.all(),function(){o.has(this)&&o.get(this).update("zoom")})}r=e,s=h,f=x}})}}()}function u(e){var t,r=this,o=[],s=[],l=!1,c=33,u=i.now(),f=function(){if(o.length>0&&l){t=i.rAF()(function(){f()});var e=i.now(),r=e-u;if(r>c){u=e-r%c;for(var a=33,h=0;h<o.length;h++){var d=o[h];if(d!==n){var v=d.options(),p=v.autoUpdate,y=Math.max(1,v.autoUpdateInterval),m=i.now();(!0===p||null===p)&&m-s[h]>y&&(d.update("auto"),s[h]=new Date(m+=y)),a=Math.max(1,Math.min(a,y))}}c=a}}else c=33};r.add=function(t){-1===a.inArray(t,o)&&(o.push(t),s.push(i.now()),o.length>0&&!l&&(l=!0,e.autoUpdateLoop=l,f()))},r.remove=function(r){var c=a.inArray(r,o);c>-1&&(s.splice(c,1),o.splice(c,1),0===o.length&&l&&(l=!1,e.autoUpdateLoop=l,t!==n&&(i.cAF()(t),t=-1)))}}function f(t,l,c,u){function f(){if(!We){var e=Ye[0],t={w:e.scrollWidth,h:e.scrollHeight};if(gn){var n=b(t,Rt);Rt=t,n&&fe(!0,!1)}else Rt=t}}function h(e,t,n){e=e[0];for(var r=t.split(Jn),i=0;i<r.length;i++)e.addEventListener(r[i],n,{passive:!0})}function d(e,t,n){e=e[0];for(var r=t.split(Jn),i=0;i<r.length;i++)e.removeEventListener(r[i],n,{passive:!0})}function v(e){if(e!==n&&Me){var t=e.contents()[0];t[sr].unobserve(t)}}function p(e){if(e!==n&&Me){var t=e.contents()[0];t[sr].observe(t)}}function y(e,t){var n=function(n){e.scrollTop(3333333),e.scrollLeft(Le?de.n?-3333333:de.i?0:3333333:3333333),t()};if(Me){var r=i.rO(),o=e.append(Vn+Er+" observed"+Qn).contents()[0];(o[sr]=new r(n)).observe(o)}else{var s="animationstart mozAnimationStart webkitAnimationStart MSAnimationStart";if(pe>9||!ve){var l=Vn+Er+'">';l+=Vn+Ir+'" dir="ltr">',l+=Vn+Ir+'">',l+=Vn+Hr+Qn,l+="</div>",l+=Vn+Ir+'">',l+=Vn+Hr+'" style="width: 200%; height: 200%'+Qn,l+="</div>",l+="</div>",l+="</div>",e.prepend(l);var u,f,h,d,v=(e=e[0]).childNodes[0].childNodes[0],p=a(v.childNodes[1]),y=a(v.childNodes[0]),m=a(y[0].childNodes[0]),g=v.offsetWidth,b=v.offsetHeight,w=c.nativeScrollbarSize,x=function(){y[Gn](3333333)[Zn](3333333),p[Gn](3333333)[Zn](3333333)},C=function(){f=0,u&&(g=h,b=d,n())},O=function(e){return h=v.offsetWidth,d=v.offsetHeight,u=h!=g||d!=b,e&&u&&!f?(i.cAF()(f),f=i.rAF()(C)):e||C(),x(),e&&(i.prvD(e),i.stpP(e)),!1},S={};S[In]=-2*(w.y+1),S[Hn]=-2*w.x,S[Ln]=-2*w.y,S[Wn]=-2*(w.x+1),a(v).css(S),y.on(qn,O),p.on(qn,O),a(e).on(s,function(){O(!1)});var M={};M[Nn]=3333333,M[jn]=3333333,m.css(M),x()}else{var A=qe[0],k=e;e=e[0];var z=A.attachEvent,T="undefined"==typeof navigator||(navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));if(z)k.prepend(Vn+Er+Qn),k.find(Yn+Er).first()[0].attachEvent("onresize",n);else{var E=A.createElement("object");E.setAttribute("tabindex","-1"),E.setAttribute("class",Er),E.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",n),e.document.documentElement.style.display="none"},E.type="text/html",T&&k.prepend(E),E.data="about:blank",T||k.prepend(E),k.on(s,n)}}}if((e=a(e))[0]===Ye[0]){var I=function(){var t=Ve.css("direction");if(t!==xt){var n={},r=0;return"ltr"===t?(n[Wn]=0,n[Hn]=Bn,r=3333333):(n[Wn]=Bn,n[Hn]=0,r=de.n?-3333333:de.i?0:3333333),Ye.children().first().css(n),e.scrollLeft(r),e.scrollTop(3333333),xt=t,!0}return!1};I(),e.on(qn,function(e){return I()&&fe(),i.prvD(e),i.stpP(e),!1})}}function m(e){if(Me){var t=e.contents()[0];t[sr].disconnect(),delete t[sr]}else e.children(Yn+Er).first().remove()}function g(e,t,r){return!0===r?r:t===n||e!==t}function b(e,t,r,i,o){if(!0===o)return o;if(i===n&&o===n){if(!0===r)return r;r=n}return r=r===n?"w":r,i=i===n?"h":i,t===n||(e[r]!==t[r]||e[i]!==t[i])}function w(e,t){return t===n||(e.t!==t.t||e.r!==t.r||e.b!==t.b||e.l!==t.l)}function x(e,t){e.call(mn,t)}function C(e,t,r){r===n&&(r=[Rn,Rn,Rn,Rn]),e[t+In]=r[0],e[t+Hn]=r[1],e[t+Ln]=r[2],e[t+Wn]=r[3]}function O(){tn&&!en&&(Gt.observe(Ve[0],{attributes:!0,attributeOldValue:!0,attributeFilter:["id","class","style"]}),Zt.observe(wn?_e[0]:Ze[0],{attributes:!0,attributeOldValue:!0,subtree:!wn,childList:!wn,characterData:!wn,attributeFilter:wn?["wrap","cols","rows"]:["id","class","style"]}),en=!0)}function S(){tn&&en&&(Gt.disconnect(),Zt.disconnect(),en=!1)}function M(e){if(!We){var t=(e.originalEvent||e).touches!==n;(1===i.mBtn(e)||t)&&(en&&(hn=!0,S()),ti=i.page(e),ni.w=Ve[0].offsetWidth-(Ae?0:ke),ni.h=Ve[0].offsetHeight-(Ae?0:ze),qe.on(or,j),qe.on(nr,A),qe.on(tr,k),Xe.addClass(Yr),tt.setCapture&&tt.setCapture(),i.prvD(e),i.stpP(e))}}function A(e){e.originalEvent;var t=i.page(e),n={};(pn||vn)&&(n[Nn]=ni.w+t.x-ti.x),(yn||vn)&&(n[jn]=ni.h+t.y-ti.y),Ve.css(n),i.stpP(e)}function k(e){var t=e!==n;qe.off(or,j),qe.off(nr,A),qe.off(tr,k),Xe.removeClass(Yr),tt.releaseCapture&&tt.releaseCapture(),t&&(hn&&O(),mn.update(Bn)),hn=!1}function z(){if(!We){var e=!Et,t=An.w-(Ae||Ct||!dt?0:ze+Ee),n=An.h-(Ae||Ct||!vt?0:ze+Ee),r={},i=dt||e,o=_e[0];r[Pn+Nn]=Rn,r[Pn+jn]=Rn,r[Nn]=Bn,_e.css(r);var a=o.offsetWidth,s=i?Math.max(a,o.scrollWidth-1):1;s+=dt?Ie+(Ae?0:e?0:ke+Te):0,r[Nn]=dt?s:Un,r[jn]=Bn,_e.css(r);var l=o.offsetHeight,c=Math.max(l,o.scrollHeight-1);return r[Nn]=s,r[jn]=c,et.css(r),r[Pn+Nn]=t+(!Ae&&dt?ke+Te:0),r[Pn+jn]=n+(!Ae&&vt?ze+Ee:0),_e.css(r),{ow:a,oh:l,dw:s,dh:c}}}function T(){var e=_e.prop("selectionStart");if(e!==n){for(var t=_e.val(),r=t.length,i=t.split("\n"),o=i.length,a=t.substr(0,e).split("\n"),s=0,l=0,c=a.length,u=a[a.length-1].length,f=0;f<i.length;f++){var h=i[f].length;h>l&&(s=f+1,l=h)}return{cursorRow:c,cursorCol:u,rows:o,cols:l,wRow:s,pos:e,max:r}}}function E(e){for(var t=0;t<Zr.length;t++)if(e===Zr[t])return!0;return!1}function I(){z(),mn.update(Bn)}function H(e){var t=e.keyCode;if(!E(t)){if(0===ei.length){var n=function(){z(),mn.update(Bn)};n(),nn=setInterval(n,1e3/60)}-1===a.inArray(t,ei)&&ei.push(t)}}function L(e){var t=e.keyCode;if(!E(t)){var n=a.inArray(t,ei);n>-1&&ei.splice(n,1),0===ei.length&&(z(),mn.update(Bn),clearInterval(nn))}}function W(){setTimeout(function(){z(),mn.update(Bn)},50)}function P(){rn=!0}function F(){rn=!1,clearInterval(nn),ei=[],z(),mn.update(Bn)}function N(e){return _e[Gn](de.i&&Vt?9999999:0),_e[Zn](0),i.prvD(e),i.stpP(e),!1}function j(e){return i.prvD(e),!1}function D(){return kt&&we.x&&we.y}function R(e,t,n){var r=e?fr:hr,i=e?nt:ot;t?Ve.removeClass(r):Ve.addClass(r),n?i.removeClass(Dr):i.addClass(Dr)}function B(e,t){if(clearTimeout(on),e)nt.removeClass(Rr),ot.removeClass(Rr);else{var n=function(){if(!fn){var e=it.hasClass("active")||st.hasClass("active");e||!ln&&!cn||nt.addClass(Rr),e||!ln&&!cn||ot.addClass(Rr)}};an>0&&!0!==t?on=setTimeout(n,an):n()}}function q(e){var t={},n=Q(e),r=Math.min(1,(lt[n._wh]-(Ct?e?ke:ze:0))/ct[n._wh]);t[n.wh]=Math.floor(100*r*1e5)/1e5+"%",D()||n.h.css(t),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=r}function U(e,t){var n=Le&&e,r={},i=Q(e),o=$e[0][qn+i.WH]-$e[0]["client"+i.WH];de.n&&n&&(o*=-1);var a=t/o;a=isNaN(a)?0:Math.min(1,a),i.i.ms=o,i.i.cs=t,i.i.csr=a;var s=i.i.hl,l=i.t[0]["offset"+i.WH],c=(l-s)*a;if(c=isNaN(c)?0:c,n&&(de.n||!de.n&&!de.i)&&(c=l-s-c),c=Math.max(0,c),Oe){n&&(c=-(l-s-c));var u;u=e?"translate("+c+"px, 0px)":"translate(0px, "+c+"px)",r["-webkit-transform"]=u,r["-moz-transform"]=u,r["-ms-transform"]=u,r["-o-transform"]=u,r.transform=u}else r[i.lt]=c;D()||i.h.css(r),i.i.ho=c,i.i.tl=l}function X(e,t){var n=t?"removeClass":"addClass",r=e?rt:it,i=e?at:st,o=e?Fr:jr;r[n](o),i[n](o)}function _(){nt=a(Vn+Wr+Jn+Vr+Qn),rt=a(Vn+Pr+Qn),it=a(Vn+Nr+Qn),ot=a(Vn+Wr+Jn+Qr+Qn),at=a(Vn+Pr+Qn),st=a(Vn+Nr+Qn),nt.append(rt),rt.append(it),ot.append(at),at.append(st),Ke.after(ot),Ke.after(nt),Ce&&(nt.on(ar,function(e){e.target===nt[0]&&(q(!0),U(!0,$e[Gn]()))}),ot.on(ar,function(e){e.target===ot[0]&&(q(!1),U(!1,$e[Zn]()))})),V(!0),V(!1),tt=a(Vn+Jn+Br+Qn),Ve.append(tt)}function V(e){var t,r,o,a=Q(e),s=a.xy,l=qn+a.LT,c=1,u=function(){c=.5},f=function(){c=1},v=function(n){n.originalEvent;var o=a.i.tl,c=a.i.hl,u=a.i.ms*((c/2+i.page(n)[s]-r-c/2)/(o-c));u=isFinite(u)?u:0,Le&&e&&(de.n||!de.n&&!de.i)&&(u*=-1),$e[l](t+u),Se||i.prvD(n)},p=function(e){e=e||e.originalEvent,Xe.removeClass(Yr),a.h.removeClass("active"),a.t.removeClass("active"),a.s.removeClass("active"),Se?(d(qe,nr,v),d(qe,tr,p),d(qe,rr,y),d(qe,ir,m),d(qe,or,j)):(qe.off(nr,v),qe.off(tr,p),qe.off(rr,y),qe.off(ir,m),qe.off(or,j)),f(),t=n,r=n,o!==n&&(mn.scrollStop(),clearTimeout(o),o=n);var i=Ve[0].getBoundingClientRect();e.clientX>=i.left&&e.clientX<=i.right&&e.clientY>=i.top&&e.clientY<=i.bottom||J(),ln&&B(!1)},y=function(e){16==e.keyCode&&u()},m=function(e){16==e.keyCode&&f()};a.h.on(er,function(o){if(!We){var c=(o.originalEvent||o).touches!==n;D()||!Xt||c&&!un||(1===i.mBtn(o)||c)&&(t=$e[l](),t=t===n?0:t,(Le&&e&&!de.n||!Le)&&(t=t<0?0:t),r=i.page(o)[s],Xe.addClass(Yr),a.h.addClass("active"),a.s.addClass("active"),Se?(h(qe,or,j),h(qe,nr,v),h(qe,tr,p)):(qe.on(or,j),qe.on(nr,v),qe.on(tr,p)),i.prvD(o))}}),a.t.on(er,function(t){if(!We){var l=(t.originalEvent||t).touches!==n;if(!D()&&Ut&&(!l||un)&&(1===i.mBtn(t)||l)){var f,d=An[a._wh],v=a.t.offset()[a.lt],g=!0;t.shiftKey&&u();var b=function(){var t=a.i.ho,i=a.i.hl,s=r-v,l=200*c,u=g?Math.max(333,l):l,h={},p=Le&&e&&(!de.i&&!de.n||Vt),y=t>s;p&&(y=t<s),y?(f===n&&(f=!0),h[a.xy]="-="+d):(f===n&&(f=!1),h[a.xy]="+="+d),mn.scrollStop(),mn.scroll(h,l,"linear");var m=f?t<=s:t+i>=s;p&&(m=f?t+i>=s:t<=s),m?(clearTimeout(o),mn.scrollStop(),o=n):o=setTimeout(b,u),g=!1};r=i.page(t)[s],Xe.addClass(Yr),a.t.addClass("active"),a.s.addClass("active"),Se?(h(qe,or,j),h(qe,tr,p),h(qe,rr,y),h(qe,ir,m)):(qe.on(or,j),qe.on(tr,p),qe.on(rr,y),qe.on(ir,m)),b(),i.prvD(t)}}}).hover(function(){ln&&(fn=!0,B(!0))},function(){ln&&(fn=!1,B(!1))}),a.s.on(er,function(e){i.stpP(e)})}function Q(e){return{wh:e?Nn:jn,WH:e?"Width":"Height",lt:e?Wn:In,LT:e?"Left":"Top",xy:e?Xn:_n,XY:e?"X":"Y",_wh:e?"w":"h",_lt:e?"l":"t",t:e?rt:at,h:e?it:st,s:e?nt:ot,i:e?Sn:Mn}}function Y(){cn&&B(!0)}function J(){cn&&!Xe.hasClass(Yr)&&B(!1)}function K(e){if(!We){var t=je.callbacks,r=t.onScrollStart,i=t.onScroll,o=t.onScrollStop;Pe!==n?clearTimeout(Pe):(ln&&B(!0),D()||Ve.addClass(yr),a.isFunction(r)&&x(r,e)),U(!0,$e[Gn]()),U(!1,$e[Zn]()),a.isFunction(i)&&x(i,e),Pe=setTimeout(function(){$(),a.isFunction(o)&&x(o,e)},kn)}}function $(){clearTimeout(Pe),Pe=n,ln&&B(!1),D()||Ve.removeClass(yr)}function G(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function Z(e,t,r,i){var o,l,c,u,f,h={n:t,s:!1,v:n,p:n},d="undefined",v=s.has(e,t),p=s.get(e,t),y=!1,m=!0!==v,g=$n,b=!1;for("array"!==a.type(r)&&(r=[r]),f=r.length,l=0;l<f;l++){var w=r[l];if("*"===w)if(f>1){var x=0;for(u=0;u<f;u++){var C=r[u];if(a.type(C)===g&&++x>1)break}1===x&&(b=!0)}else b=!0;w===n&&(y=!0)}if(m&&!1===v&&y&&(m=!1),!m){o=p,d=a.type(o);var O=function(e){var t=a.type(e);return t===d&&(t!==g||(!!b||o===e))&&(h.s=!0,h.v=o,h.p=o,!0)};for(l=0;l<f;l++){var S=r[l];if(a.type(S)===g){var M=S.split(":"),A=M[0],k=!1;for(c=0;c<M.length;c++)if(O(M[c])){b||(h.p=A),k=!0;break}if(k)break}else if(O(S))break}}if(!h.s){var z='The option "'+t+"\" wasn't set, because";if(m&&!1!==v){var T=s.has(Fe,t);!0===T?console.warn(z+' "'+v+'" is not from type [ OBJECT ].'):(z='The option "'+t+'" is not a default option',!1===T?console.warn(z+Yn):console.warn(z+" and couldn't be resolved, because \""+T+'" is not from type [ OBJECT ].'))}else{var E=[],I=Rn,H=!1,L=Rn;for(l=0;l<f;l++){var W=r[l],P=a.type(W);if(P===g){H=!b;var F=W.split(":");for(c=0;c<F.length;c++)L+='"'+F[c]+'", '}-1===a.inArray(P,E)&&(E.push(P),I=I+P.toUpperCase()+", ")}I=I.slice(0,-2),H&&(L=L.slice(0,-2)),console.warn(z+" it doesn't accept the type [ "+d.toUpperCase()+' ] with the value of "'+o+'".\r\nAccepted types are: [ '+I+" ]."+(H?"\r\nValid strings are: [ "+L+" ].":Rn))}}return(i=i===n||i)&&s.del(e,t),h}function ee(){var e={};return xn&&Ge&&(e.w=le(Ge.css(Pn+Nn)),e.h=le(Ge.css(Pn+jn)),e.c=b(e,$t),e.f=!0),$t=e,e.c}function te(e,t){var n,r,i={};for(n=0;n<e.length;n++){var o=e[n],s=[];if(o.s){var l=o.n.split(".");for(r=0;r<l.length;r++)s[r]={},s[r][l[r]]={};for(r=0;r<s.length;r++){var c=!1,u=s[r];r+1===s.length&&(c=!0);for(var f in u)u.hasOwnProperty(f)&&(u[f]=s[r+1],c&&(u[f]=t?o.p:o.v))}a.extend(!0,i,s[0])}}return i}function ne(e,t){var n,r=[],i=[];for(n=0;n<e.length;n++)r[e[n]]=!0;for(n=0;n<t.length;n++)r[t[n]]?delete r[t[n]]:r[t[n]]=!0;for(var o in r)i.push(o);return i}function re(e,t){var r=t!==n&&null!==t?t.split(Jn):Rn,i=e!==n&&null!==e?e.split(Jn):Rn;if(r===Rn&&i===Rn)return!1;var o=ne(i,r),s=!1,l=Yt!==n&&null!==Yt?Yt.split(Jn):[Rn],c=Qt!==n&&null!==Qt?Qt.split(Jn):[Rn],u=a.inArray(Jr,o);u>-1&&o.splice(u,1);for(var f=0;f<o.length;f++){var h=o[f];if(0!==h.indexOf(cr)){var d,v=!0,p=!0;for(d=0;d<l.length;d++)if(h===l[d]){v=!1;break}for(d=0;d<c.length;d++)if(h===c[d]){p=!1;break}if(v&&p){s=!0;break}}}return s}function ie(e){var t=e.attributeName,n=e.target;if(n===Ze[0])return!1;if("attributes"===e.type&&("class"===t||"style"===t)&&!wn){if("function"!=typeof n.closest)return!0;if(null!==n.closest(Yn+Er)||null!==n.closest(Yn+Wr)||null!==n.closest(Yn+Br))return!1}return!0}function oe(e){e=a.extend(!0,{},Ne,e);var t=["*",null],n=["v-h:visible-hidden","v-s:visible-scroll","s:scroll","h:hidden"],r=["v:visible","h:hidden","a:auto"],i=["n:never","s:scroll","l:leave"],o=["n:none","b:both","h:horizontal","v:vertical"],l=Kn+"s.",c=[!0,null],u=[new Function,null],f=[];f.push(Z(e,"nativeScrollbarsOverlaid.showNativeScrollbars",!0)),f.push(Z(e,"nativeScrollbarsOverlaid.initialize",!0)),f.push(Z(e,"overflowBehavior."+Xn,n)),f.push(Z(e,"overflowBehavior."+_n,n)),f.push(Z(e,l+"visibility",r)),f.push(Z(e,l+"autoHide",i)),f.push(Z(e,l+"autoHideDelay",0)),f.push(Z(e,l+"clickScrolling",!0)),f.push(Z(e,l+"dragScrolling",!0)),f.push(Z(e,l+"touchSupport",!0)),f.push(Z(e,"textarea.dynWidth",!0)),f.push(Z(e,"textarea.dynHeight",!0)),f.push(Z(e,"className",t)),f.push(Z(e,"resize",o)),f.push(Z(e,"sizeAutoCapable",!0)),f.push(Z(e,"paddingAbsolute",!0)),f.push(Z(e,"clipAlways",!0)),f.push(Z(e,"normalizeRTL",!0)),f.push(Z(e,"autoUpdate",c)),f.push(Z(e,"autoUpdateInterval",0)),f.push(Z(e,"callbacks.onInitialized",u)),f.push(Z(e,"callbacks.onInitializationWithdrawn",u)),f.push(Z(e,"callbacks.onDestroyed",u)),f.push(Z(e,"callbacks.onScrollStart",u)),f.push(Z(e,"callbacks.onScroll",u)),f.push(Z(e,"callbacks.onScrollStop",u)),f.push(Z(e,"callbacks.onDirectionChanged",u)),f.push(Z(e,"callbacks.onContentSizeChanged",u)),f.push(Z(e,"callbacks.onHostSizeChanged",u)),f.push(Z(e,"callbacks.onOverflowChanged",u)),f.push(Z(e,"callbacks.onOverflowAmountChanged",u)),f.push(Z(e,"callbacks.onUpdated",u));for(var h in e)e.hasOwnProperty(h)&&s.has(Fe,h)&&a.isEmptyObject(e[h])&&delete e[h];if(!a.isEmptyObject(e)){var d=function(e){a.each(e,function(t,n){a.isPlainObject(n)?d(n):"function"===a.type(n)&&(e[t]=a.type(n))})};d(e),console.warn("The following options are discarded due to invalidity:\r\n"+JSON.stringify(e,null,2))}Ne=a.extend(!0,{},Ne,te(f,!1)),je=a.extend(!0,{},je,te(f,!0))}function ae(){if(We)return!1;var e,t=wn&&dt&&!Et?_e.val().length:0,n=!en&&dt&&!wn,r={};n&&(e=Ze.css(Dn),r[Dn]=Le?Hn:Wn,r[Nn]=Bn,Ze.css(r));var i={w:ue().scrollWidth+t,h:ue().scrollHeight+t};n&&(r[Dn]=e,r[Nn]=Un,Ze.css(r));var o=ee(),a=b(i,Dt)||o;return Dt=i,a}function se(){if(We||en)return!1;var e=Ve.attr("id")||Rn,t=g(e,Ht),n=Ve.attr("class")||Rn,r=g(n,Lt),i=Ve.attr("style")||Rn,o=g(i,Wt),a=Ve.is(":visible")||Rn,s=g(a,Pt),l=wn?_e.attr("rows")||Rn:Rn,c=g(l,Ft),u=wn?_e.attr("cols")||Rn:Rn,f=g(u,Nt),h=wn?_e.attr("wrap")||Rn:Rn,d=g(h,jt);return Ht=e,r&&(r=re(Lt,n)),Lt=n,Wt=i,Pt=a,Ft=l,Nt=u,jt=h,t||r||o||s||c||f||d}function le(e){var t=parseInt(e);return isNaN(t)?0:t}function ce(e){if(!gn)return!0;var t=[Nn,Pn+Nn,Fn+Nn,zn+Wn,zn+Hn,Wn,Hn,"font-weight","word-spacing"],n=[Tn+Wn,Tn+Hn,En+Wn+Nn,En+Hn+Nn],r=[jn,Pn+jn,Fn+jn,zn+In,zn+Ln,In,Ln,"line-height"],i=[Tn+In,Tn+Ln,En+In+Nn,En+Ln+Nn],o="s"===Mt.x||"v-s"===Mt.x,a=!1,s=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1};return("s"===Mt.y||"v-s"===Mt.y)&&((a=s(r,e))||Ae||(a=s(i,e))),o&&!a&&((a=s(t,e))||Ae||(a=s(n,e))),a}function ue(){return wn?et[0]:Ze[0]}function fe(e,t,r){var o=i.now(),s=$r>0&&gn&&o-De<$r&&!vt&&!dt;if(clearTimeout(Re),s&&(Kr.h=e,Kr.c=t,Kr.f=r,Re=setTimeout(fe,$r)),!(s||We||gn&&!r&&Ve.is(":hidden")||"inline"===Ve.css("display"))){De=o,e=e||Kr.h,t=t||Kr.c,r=r||Kr.f,Kr={},e=e!==n&&e,t=t!==n&&t,r=r!==n&&r,!ye||we.x&&we.y?ge=a.extend(!0,{},c.nativeScrollbarSize):(ge.x=0,ge.y=0),be={x:3*(ge.x+(we.x?0:3)),y:3*(ge.y+(we.y?0:3))},v(Ye),v(Qe);var l={l:$e[Gn](),t:$e[Zn]()},f=je.callbacks,m=je.scrollbars,A=je.textarea,k=f.onUpdated,E=f.onOverflowChanged,I=f.onOverflowAmountChanged,H=f.onDirectionChanged,L=f.onContentSizeChanged,W=f.onHostSizeChanged,P=m.visibility,F=g(P,Bt,r),N=m.autoHide,j=g(N,qt,r),D=m.clickScrolling,_=g(D,Ut,r),V=m.dragScrolling,Q=g(V,Xt,r),K=je.className,$=g(K,Qt,r),G=je.resize,Z=g(G,_t,r)&&!xn,te=!!wn&&"off"!==_e.attr("wrap"),ne=g(te,Et,r),re=je.paddingAbsolute,ie=g(re,Ct,r),oe=je.clipAlways,ae=g(oe,Ot,r),se=je.sizeAutoCapable&&!xn,ce=g(se,Tt,r),he=je.nativeScrollbarsOverlaid.showNativeScrollbars,pe=g(he,kt),Ce=je.autoUpdate,Oe=g(Ce,zt),Me=je.overflowBehavior,Pe=b(Me,Mt,Xn,_n,r),Fe=A.dynWidth,Ne=g(Kt,Be),Be=A.dynHeight,qe=g(Jt,Be);if(sn="n"===N,ln="s"===N,cn="l"===N,an=m.autoHideDelay,un=m.touchSupport,Yt=Qt,dn="n"===G,vn="b"===G,pn="h"===G,yn="v"===G,Vt=je.normalizeRTL,he=he&&we.x&&we.y,Bt=P,qt=N,Ut=D,Xt=V,Qt=K,_t=G,Et=te,Ct=re,Ot=oe,Tt=se,kt=he,zt=Ce,Mt=a.extend(!0,{},Me),Kt=Fe,Jt=Be,$&&(Ve.removeClass(Yt).removeClass(Jr),K!==n&&null!==K&&K.length>0?Ve.addClass(K):Ve.addClass(Jr)),Oe&&(!0===Ce?(S(),u.add(mn)):null===Ce&&ve?(S(),u.add(mn)):(u.remove(mn),O())),ce)if(se)if(Je===n&&(Je=a(Vn+zr+Qn),Ke.before(Je)),Cn)Qe.show();else{Qe=a(Vn+Tr+Qn),Je.before(Qe);var Ue={w:-1,h:-1};y(Qe,function(){var e={w:Qe[0].offsetWidth,h:Qe[0].offsetHeight};b(e,Ue)&&(gn&&vt&&e.h>0||dt&&e.w>0?fe():(gn&&!vt&&0===e.h||!dt&&0===e.w)&&fe()),Ue=e}),Cn=!0,null!==me&&Qe.css(jn,me+"(100% + 1px)")}else Cn&&Qe.hide();r&&(Ye.find("*").trigger(qn),Cn&&Qe.find("*").trigger(qn));var Xe,nt=Ve.css("direction"),rt=g(nt,wt,r),it=Ve.css("box-sizing"),ot=g(it,yt,r),at={c:r,t:le(Ve.css(Tn+In)),r:le(Ve.css(Tn+Hn)),b:le(Ve.css(Tn+Ln)),l:le(Ve.css(Tn+Wn))};try{Xe=Cn?Qe[0].getBoundingClientRect():null}catch(e){return}Ae="border-box"===it;var st=(Le="rtl"===nt)?Wn:Hn,xt=Le?Hn:Wn,Ht=!1,Lt=!(!Cn||"none"===Ve.css(Dn))&&(0===Math.round(Xe.right-Xe.left)&&(!!re||Ve[0].clientWidth-ke>0));if(se&&!Lt){var Wt=Ve[0].offsetWidth,Pt=Je.css(Nn);Je.css(Nn,Bn);var Ft=Ve[0].offsetWidth;Je.css(Nn,Pt),(Ht=Wt!==Ft)||(Je.css(Nn,Wt+1),Ft=Ve[0].offsetWidth,Je.css(Nn,Pt),Ht=Wt!==Ft)}var Nt=(Lt||Ht)&&se,jt=g(Nt,dt,r),Dt=!Nt&&dt,Rt=!!Cn&&0===Math.round(Xe.bottom-Xe.top),Gt=g(Rt,vt,r),Zt=!Rt&&vt,tn="-"+Nn,nn=Nt&&Ae||!Ae,on=Rt&&Ae||!Ae,fn={c:r,t:on?le(Ve.css(En+In+tn)):0,r:nn?le(Ve.css(En+Hn+tn)):0,b:on?le(Ve.css(En+Ln+tn)):0,l:nn?le(Ve.css(En+Wn+tn)):0},hn={c:r,t:le(Ve.css(zn+In)),r:le(Ve.css(zn+Hn)),b:le(Ve.css(zn+Ln)),l:le(Ve.css(zn+Wn))},bn={h:String(Ve.css(Fn+jn)),w:String(Ve.css(Fn+Nn))},Sn={},Mn={};if(ke=at.l+at.r,ze=at.t+at.b,at.c=w(at,mt),Te=fn.l+fn.r,Ee=fn.t+fn.b,fn.c=w(fn,gt),Ie=hn.l+hn.r,He=hn.t+hn.b,hn.c=w(hn,bt),bn.ih=parseInt(bn.h),bn.iw=parseInt(bn.w),bn.ch=bn.h.indexOf("px")>-1,bn.cw=bn.w.indexOf("px")>-1,bn.c=b(bn,pt,r),wt=nt,yt=it,dt=Nt,vt=Rt,mt=at,gt=fn,bt=hn,pt=bn,rt&&Cn&&Qe.css(Dn,xt),at.c||rt||ie||jt||Gt||ot||ce){var kn={},Yn={};C(Mn,zn,[-at.t,-at.r,-at.b,-at.l]),re?(C(kn,Rn,[at.t,at.r,at.b,at.l]),wn?C(Yn,Tn):C(Sn,Tn)):(C(kn,Rn),wn?C(Yn,Tn,[at.t,at.r,at.b,at.l]):C(Sn,Tn,[at.t,at.r,at.b,at.l])),Ke.css(kn),_e.css(Yn)}An={w:Ke[0].offsetWidth,h:Ke[0].offsetHeight};var Jn=!!wn&&z();if(Rt&&(Gt||ie||ot||bn.c||at.c||fn.c)?(bn.cw&&(Sn[Fn+jn]=bn.ch?bn.ih-(re?ze:0)+(Ae?-Ee:ze):Rn),Sn[jn]=Bn):(Gt||ie)&&(Sn[Fn+jn]=Rn,Sn[jn]=Un),Nt&&(jt||ie||ot||bn.c||at.c||fn.c||rt)?(bn.cw&&(Sn[Fn+Nn]=bn.cw?bn.iw-(re?ke:0)+(Ae?-Te:ke)+(we.y?xe.y:0):Rn),Sn[Nn]=Bn,Mn[Fn+Nn]=Un):(jt||ie)&&(Sn[Fn+Nn]=Rn,Sn[Nn]=Un,Sn[Dn]=Rn,Mn[Fn+Nn]=Rn),Nt&&(bn.cw||(Sn[Fn+Nn]=Rn),Mn[Nn]=wn&&Fe?Jn.dw:Bn,Sn[Nn]=Bn,Sn[Dn]=xt),Rt&&(bn.ch||(Sn[Fn+jn]=Rn),Mn[jn]=wn?Be?Jn.dh:Bn:Ze[0].clientHeight),se&&Je.css(Mn),Ze.css(Sn),Sn={},Mn={},ft=ft||{x:!1,y:!1},e||t||rt||ot||ie||jt||Nt||Gt||Rt||bn.c||pe||Pe||ae||Z||F||Ne||qe||ne||ie||Ne||qe||r){var Kn={},$n=ft.y&&ht.ys&&!he?we.y?$e.css(st):-ge.y:0,tr=ft.x&&ht.xs&&!he?we.x?$e.css(Ln):-ge.x:0;C(Kn,Rn),$e.css(Kn),Rt&&!wn&&(Ze.css("overflow","hidden"),Sn.overflow=Rn);var nr=ue(),rr={w:nr.clientWidth,h:nr.clientHeight},ir={w:nr.scrollWidth,h:nr.scrollHeight},or={w:wn&&Jn&&!Fe?Jn.ow:Nt?rr.w:ir.w,h:wn&&Jn&&!Be?Jn.oh:Rt?rr.h:ir.h};Kn[Ln]=Zt?Rn:tr,Kn[st]=Dt?Rn:$n,$e.css(Kn);var ar=Ve[0],sr={w:ar.clientWidth,h:ar.clientHeight},lr={w:Math.max(or.w+(re?ke:0),sr.w-ke)-(Fe&&wn&&Nt?Ie+(Ae?0:ke+Te):0),h:Math.max(or.h+(re?ze:0),sr.h-ze)};if(lr.c=b(lr,St,r),St=lr,se){(lr.c||Rt||Nt)&&(Mn[Nn]=lr.w,Mn[jn]=lr.h);var cr=Mn[Nn]+(Ae?Te:-ke),ur=Mn[jn]+(Ae?Ee:-ke),fr={};(!Nt||!Nt&&fn.c)&&(Mn[Nn]=sr.w-(Ae?0:ke+Te)-1-Ie),(!Rt||!Rt&&fn.c)&&(Mn[jn]=sr.h-(Ae?0:ze+Ee)-1-He),bn.cw&&bn.iw===cr&&(Mn[Nn]=cr+(Ae?0:ke)+1),bn.ch&&bn.ih===ur&&(Mn[jn]=ur+(Ae?0:ze)+1),Nt&&(rr.w<An.w||wn&&!te)&&0===ke&&(wn&&(fr[Nn]=le(et.css(Nn))-1),Mn[Nn]-=1),Rt&&(rr.h<An.h||wn)&&0===ze&&(wn&&(fr[jn]=le(et.css(jn))-1),Mn[jn]-=1),or.h>0&&(Mn[Nn]=Math.max(1,Mn[Nn]),Mn[jn]=Math.max(1,Mn[jn])),wn&&et.css(fr),Je.css(Mn)}Nt&&(Sn[Nn]=Un),!Nt||Ae||en||(Sn[Dn]="none"),Ze.css(Sn),Sn={};var hr=nr.getBoundingClientRect(),dr={w:nr.scrollWidth,h:nr.scrollHeight};if(hr.width!==n){var wr=hr.width,xr=hr.height;dr.w+=le(wr+.001)-wr,dr.h+=le(xr+.001)-xr}dr.c=t=b(dr,ct,r),ct=dr,e=b(sr={w:ar.clientWidth,h:ar.clientHeight},lt),lt=sr;var Cr={x:"v-s"===Me.x,y:"v-s"===Me.y},Or={x:"v-h"===Me.x,y:"v-h"===Me.y},Sr={x:"s"===Me.x,y:"s"===Me.y},Mr={x:Math.max(0,dr.w-sr.w+(re?ke:0)),y:Math.max(0,dr.h-sr.h+(re?ze:0))},Ar=wn&&(0===An.w||0===An.h);Ar&&(Mr.x=0,Mr.y=0);var Er={x:Mr.x>0,y:Mr.y>0},Ir={x:Er.x,y:Er.y};(Cr.x||Or.x)&&(Ir.x=Er.y&&!Cr.y&&!Or.y),(Cr.y||Or.y)&&(Ir.y=Er.x&&!Cr.x&&!Or.x),Ir.xs=!!Ir.x&&(Sr.x||Cr.x),Ir.ys=!!Ir.y&&(Sr.y||Cr.y);var Hr={x:Er.x&&Ir.xs,y:Er.y&&Ir.ys},Lr=At;if(Mr.c=b(Mr,At,Xn,_n,r),At=Mr,Er.c=b(Er,ft,Xn,_n,r),ft=Er,Ir.c=b(Ir,ht,Xn,_n,r),ht=Ir,we.x||we.y){var Wr=r,Pr={};if((Er.x||Er.y)&&(Pr.w=we.y&&Er.y?dr.w+xe.y:Rn,Pr.h=we.x&&Er.x?dr.h+xe.x:Rn,Wr=g(Pr,ut,r),ut=Pr),Er.c||Ir.c||dr.c||rt||jt||Gt||Nt||Rt||pe){Sn[En+xt]=Rn,Sn[zn+xt]=Rn,we.x&&Er.x&&Ir.xs?(Rt&&(Sn[zn+Ln]=he?Rn:xe.x),Sn[En+Ln]=Rt||he?Rn:xe.x+"px solid transparent"):(Pr.h=Rn,Wr=!0,Sn[En+Ln]=Rn,Sn[zn+Ln]=Rn),we.y&&Er.y&&Ir.ys?(Nt&&(Sn[zn+st]=he?Rn:xe.y),Sn[En+st]=he?Rn:xe.y+"px solid transparent"):(Pr.w=Rn,Wr=!0,Sn[En+st]=Rn,Sn[zn+st]=Rn)}if(he&&(Pr.w=Rn,Pr.h=Rn,Wr=!0),Wr){var Fr={};Fr[Nn]=Ir.y?Pr.w:Rn,Fr[jn]=Ir.x?Pr.h:Rn,Ge===n&&(Ge=a(Vn+kr+Qn),$e.prepend(Ge)),Ge.css(Fr)}Ze.css(Sn)}var Nr={},kn={};if(e||Er.c||Ir.c||dr.c||Pe||ot||pe||rt||ae||Gt){Nr[xt]=Rn;var jr=function(){Nr[Ln]=Rn,On.h=0},Dr=function(){Nr[st]=Rn,On.w=0};if(Er.x&&Ir.xs?(Nr["overflow-x"]=qn,he?jr():(Nr[Ln]=-(we.x?xe.x:ge.x),On.h=we.x?xe.y:0)):(Nr["overflow-x"]=Rn,jr()),Er.y&&Ir.ys?(Nr["overflow-y"]=qn,he?Dr():(Nr[st]=-(we.y?xe.y:ge.y),On.w=we.y?xe.x:0)):(Nr["overflow-y"]=Rn,Dr()),(An.h<be.x||An.w<be.y)&&(Er.x&&Ir.x&&!we.x||Er.y&&Ir.y&&!we.y)?(Nr[Tn+In]=be.x,Nr[zn+In]=-be.x,Nr[Tn+xt]=be.y,Nr[zn+xt]=-be.y):(Nr[Tn+In]=Rn,Nr[zn+In]=Rn,Nr[Tn+xt]=Rn,Nr[zn+xt]=Rn),Nr[Tn+st]=Rn,Nr[zn+st]=Rn,Er.x&&Ir.x||Er.y&&Ir.y||Ar?wn&&Ar&&(kn["overflow-x"]="hidden",kn["overflow-y"]="hidden"):(!oe||Or.x||Cr.x||Or.y||Cr.y)&&(wn&&(kn["overflow-x"]=Rn,kn["overflow-y"]=Rn),Nr["overflow-x"]="visible",Nr["overflow-y"]="visible"),Ke.css(kn),$e.css(Nr),Nr={},(Er.c||ot||jt||Gt)&&(!we.x||!we.y)){var Rr=Ze[0],Br=Rr.style;Br.webkitTransform="scale(1)",Br.display="run-in";Rr.offsetHeight;Br.display=Rn,Br.webkitTransform=Rn}if(pe&&he){Ve.hide();Ve[0].offsetHeight;Ve.show()}}if(Sn={},rt||jt||Gt)if(Le&&Nt){var Vr=Ze.css(Dn),Qr=Math.round(Ze.css(Dn,Rn).css(Wn,Rn).position().left);Ze.css(Dn,Vr),Qr!==Math.round(Ze.position().left)&&(Sn[Wn]=Qr)}else Sn[Wn]=Rn;Ze.css(Sn);var Yr="v"===P,Gr="h"===P,Zr="a"===P,ei=R.bind(0,!0,!0,Hr.x),ti=R.bind(0,!1,!0,Hr.y),ni=R.bind(0,!0,!1,Hr.x),ri=R.bind(0,!1,!1,Hr.y);if(rt&&(Le?Ve.addClass(vr):Ve.removeClass(vr)),xn&&Ve.addClass(pr),Z){var ii=function(){tt.off(er,M)};dn?(Ve.addClass(pr),tt.removeClass(qr).removeClass(Ur).removeClass(Xr).removeClass(_r),ii()):(Ve.removeClass(pr),tt.addClass(qr),vn?tt.addClass(Ur):pn?tt.addClass(Xr):yn&&tt.addClass(_r),ii(),tt.on(er,M))}if((F||Pe||Ir.c||Er.c||pe)&&(he?pe&&(Ve.removeClass(yr),he&&(ni(),ri())):Zr?(Hr.x?ei():ni(),Hr.y?ti():ri()):Yr?(ei(),ti()):Gr&&(ni(),ri())),j||pe){var oi=function(){Se?(d(Ve,"mouseenter",Y),d(Ve,"mouseleave",J)):(Ve.off("mouseenter",Y),Ve.off("mouseleave",J))};cn?(oi(),Se?(h(Ve,"mouseenter",Y),h(Ve,"mouseleave",J)):(Ve.on("mouseenter",Y),Ve.on("mouseleave",J))):oi(),sn?B(!0):B(!1,!0)}if((e||Mr.c||Gt||jt||Z||ot||ie||pe||rt)&&(q(!0),U(!0,l.l),q(!1),U(!1,l.t)),_&&X(!0,D),Q&&X(!1,V),Ir.x||Ir.y?Ve.addClass(mr):Ve.removeClass(mr),Ir.x?Ve.addClass(gr):Ve.removeClass(gr),Ir.y?Ve.addClass(br):Ve.removeClass(br),wn&&t){var ai=T();if(ai!==n){var si=It===n||ai.rows!==It.rows,li=ai.wRow,ci=ai.cursorRow,ui=ai.cursorCol,fi=ai.rows,hi=ai.cols,di=ai.pos,vi=ai.max===di&&rn,pi={x:te||ui!==hi||ci!==li?-1:At.x,y:(te?vi||si&&Lr!==n&&l.t===Lr.y:(vi||si)&&ci===fi)?At.y:-1},yi=pi.x>-1,mi=pi.y>-1;(yi||mi)&&(mi&&$e[Zn](pi.y),yi&&(Le&&Vt&&de.i?$e[Gn](0):$e[Gn](pi.x)))}It=ai}else wn||(Le&&de.i&&we.y&&Er.x&&Vt&&(l.l+=On.w),$e[Gn](l.l),$e[Zn](l.t));rt&&a.isFunction(H)&&x(H,{isRTL:Le,dir:nt}),e&&a.isFunction(W)&&x(W,{width:lt.w,height:lt.h}),t&&a.isFunction(L)&&x(L,{width:ct.w,height:ct.h}),(Er.c||Ir.c)&&a.isFunction(E)&&x(E,{x:Er.x,y:Er.y,xScrollable:Ir.xs,yScrollable:Ir.ys,clipped:Ir.x||Ir.y}),Mr.c&&a.isFunction(I)&&x(I,{x:Mr.x,y:Mr.y})}xn&&(Er.c||$t.c)&&($t.f||ee(),we.y&&Er.x&&Ze.css(Pn+Nn,$t.w+xe.y),we.x&&Er.y&&Ze.css(Pn+jn,$t.h+xe.x),$t.c=!1),p(Ye),p(Qe),a.isFunction(k)&&x(k,{forced:r})}}if(G(t)){if(o.has(t)){var he=o.get(t);return he.options(l),he}var de,ve,pe,ye,me,ge,be,we,xe,Ce,Oe,Se,Me,Ae,ke,ze,Te,Ee,Ie,He,Le,We,Pe,Fe,Ne,je,De,Re,Be,qe,Ue,Xe,_e,Ve,Qe,Ye,Je,Ke,$e,Ge,Ze,et,tt,nt,rt,it,ot,at,st,lt,ct,ut,ft,ht,dt,vt,pt,yt,mt,gt,bt,wt,xt,Ct,Ot,St,Mt,At,kt,zt,Tt,Et,It,Ht,Lt,Wt,Pt,Ft,Nt,jt,Dt,Rt,Bt,qt,Ut,Xt,_t,Vt,Qt,Yt,Jt,Kt,$t,Gt,Zt,en,tn,nn,rn,on,an,sn,ln,cn,un,fn,hn,dn,vn,pn,yn,mn=new e[r],gn=!1,bn=!1,wn=!1,xn=!1,Cn=!1,On={w:0,h:0},Sn={},Mn={},An={},kn=175,zn="margin-",Tn="padding-",En="border-",In="top",Hn="right",Ln="bottom",Wn="left",Pn="min-",Fn="max-",Nn="width",jn="height",Dn="float",Rn="",Bn="auto",qn="scroll",Un="100%",Xn="x",_n="y",Vn='<div class="',Qn='"></div>',Yn=".",Jn=" ",Kn="scrollbar",$n="string",Gn=qn+"Left",Zn=qn+"Top",er="mousedown touchstart",tr="mouseup touchend",nr="mousemove touchmove",rr="keydown",ir="keyup",or="selectstart",ar="transitionend webkitTransitionEnd oTransitionEnd",sr="~_overlayScrollbarsRO_~",lr="os-html",cr="os-host",ur=cr+"-textarea",fr=cr+"-"+Kn+"-horizontal-hidden",hr=cr+"-"+Kn+"-vertical-hidden",dr=cr+"-transition",vr=cr+"-rtl",pr=cr+"-resize-disabled",yr=cr+"-scrolling",mr=cr+"-overflow",gr=mr+"-x",br=mr+"-y",wr="os-textarea",xr=wr+"-cover",Cr="os-padding",Or="os-viewport",Sr=Or+"-native-scrollbars-invisible",Mr=Or+"-native-scrollbars-overlaid",Ar="os-content",kr="os-content-arrange",zr="os-content-glue",Tr="os-size-auto-observer",Er="os-resize-observer",Ir="os-resize-observer-item",Hr=Ir+"-final",Lr="os-text-inherit",Wr="os-"+Kn,Pr=Wr+"-track",Fr=Pr+"-off",Nr=Wr+"-handle",jr=Nr+"-off",Dr=Wr+"-unusable",Rr=Wr+"-"+Bn+"-hidden",Br=Wr+"-corner",qr=Br+"-resize",Ur=qr+"-both",Xr=qr+"-horizontal",_r=qr+"-vertical",Vr=Wr+"-horizontal",Qr=Wr+"-vertical",Yr="os-dragging",Jr="os-theme-none",Kr={},$r=33,Gr=11,Zr=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],ei=[],ti={x:0,y:0},ni={w:0,h:0};if(mn.sleep=function(){We=!0},mn.update=function(e){if(e===Bn){var t=se(),n=ae();(t||n)&&fe(!1,n)}else"zoom"===e?fe(!0,!0):(e=We||e,We=!1,fe(!1,!1,e))},mn.options=function(e,t){if(a.isEmptyObject(e)||!a.isPlainObject(e)){if("string"===a.type(e)){if(arguments.length>=2){var n={};return s.set(n,e,t,!0),oe(n),void fe()}return s.get(Ne,e)}return Ne}oe(e);var r=We||!1;We=!1,fe(),We=r},mn.destroy=function(){bn=!0,u.remove(mn),S(),m(Ye),Cn&&m(Qe),Ye.remove(),Je!==n&&Je.remove(),Ge!==n&&Ge.remove(),Cn&&Qe.remove(),Se?(d(Ve,"mouseenter",Y),d(Ve,"mouseleave",J)):(Ve.off("mouseenter",Y),Ve.off("mouseleave",J)),nt.remove(),ot.remove(),tt&&tt.remove(),dn||k(),Ze.contents().unwrap().unwrap().unwrap(),xn&&Ue.removeClass(lr),wn?(_e.off(qn,N),_e.off("drop",W),_e.off("focus",P),_e.off("focusout",F),pe>9||!ve?_e.off("input",I):(_e.off(rr,H),_e.off(ir,L)),et.remove(),_e.removeClass(wr).removeClass(Lr),_e.unwrap().removeAttr("style"),Ve.remove()):(_e.removeClass(cr),Ve.removeClass(cr).removeClass(pr).removeClass(vr).removeClass(fr).removeClass(hr).removeClass(dr).removeClass(yr).removeClass(mr).removeClass(gr).removeClass(br).removeClass(Jr).removeClass(Qt)),o.rem(t);var e=je.callbacks.onDestroyed;a.isFunction(e)&&x(e);for(var r in mn)delete mn[r];mn=n},mn.scroll=function(t,r,i,o){if(0===arguments.length||t===n){var s=Sn,l=Mn,c=Vt&&Le&&de.i,u=Vt&&Le&&de.n,f=s.cs,h=s.csr,d=s.ms;return h=c?1-h:h,f=c?d-f:f,f*=u?-1:1,d*=u?-1:1,{x:{position:f,ratio:h,max:d,handleOffset:s.ho,handleLength:s.hl,handleLengthRatio:s.hlr,trackLength:s.tl,isRTL:Le,isRTLNormalized:Vt},y:{position:l.cs,ratio:l.csr,max:l.ms,handleOffset:l.ho,handleLength:l.hl,handleLengthRatio:l.hlr,trackLength:l.tl}}}var v,p=[Xn,Wn,"l"],y=[_n,In,"t"],m=["+=","-=","*=","/="],g={},b="object"===a.type(r),w={axis:"xy",block:["begin","begin"],margin:[0,0,0,0]},x=[Xn,_n,"xy","yx"],C=["begin","end"],O=t.hasOwnProperty("el"),S=O?t.el:t,M=S instanceof a,A=!M&&G(S),k=function(e,t){for(v=0;v<t.length;v++)if(e===t[v])return!0;return!1},z=function(e){var t={};if("array"===a.type(e)&&e.length>0)t.x=e[0],t.y=e[1];else if(a.type(e)===$n||"number"===a.type(e))t.x=e,t.y=e;else if("object"===a.type(e)){e=a.extend({},e),v=0;for(var n in e)e.hasOwnProperty(n)&&(v>2&&delete e[n],v++);var r=function(t){var n=t?p:y;for(v=0;v<n.length;v++)if(n[v]in e)return e[n[v]]};t.x=r(!0),t.y=r(!1)}return t},T=function(t,r){var i,o,s,l=t?Sn:Mn,c=l.cs,u=l.ms,f=Le&&t,h=f&&de.n&&!Vt;if(a.type(r)===$n){if(r.length>2){var d=r.substr(0,2);for(v=0;v<m.length;v++)if(d===m[v]){i=m[v];break}}r=(r=(r=(r=(r=(r=(r=(r=(r=i!==n?r.substr(2):r).replace(/min/g,0)).replace(/</g,0)).replace(/max/g,(h?"-":Rn)+Un)).replace(/>/g,(h?"-":Rn)+Un)).replace(/px/g,Rn)).replace(/%/g," * "+u*(f&&de.n?-1:1)/100)).replace(/vw/g," * "+An.w)).replace(/vh/g," * "+An.h),o=e.parseInt(e.parseFloat(e.eval(r)).toFixed())}else"number"===a.type(r)&&(o=r);if(!isNaN(o)&&o!==n&&"number"===a.type(o)){var p=Vt&&f,y=c*(p&&de.n?-1:1),g=p&&de.i,b=p&&de.n;switch(y=g?u-y:y,i){case"+=":s=y+o;break;case"-=":s=y-o;break;case"*=":s=y*o;break;case"/=":s=y/o;break;default:s=o}g&&(s=u-s),b&&(s*=-1),f&&de.n?(s=Math.max(u,s),s=Math.min(0,s)):(s=Math.min(u,s),s=Math.max(0,s)),s===c&&(s=n)}return s};if(M||A){var E=M?S:a(S);if(0===E.length)return;if(O){var I,H,L,W=t.axis,P=t.block,F=a.type(P),N=t.margin,j=a.type(N);if(F===$n)P=[P,P];else if("array"===F)if((H=P.length)>2||H<1)P=n;else{for(I=!0,1===H&&(P[1]="begin"),v=0;v<H;v++){var D=P[v];if(a.type(D)!==$n||!k(D,C)){I=!1;break}}I||(P=n)}else P=n;if("number"===j)N=[N,N,N,N];else if("boolean"===j)N=N?[le(E.css(zn+In)),le(E.css(zn+Hn)),le(E.css(zn+Ln)),le(E.css(zn+Wn))]:[0,0,0,0];else if("array"===j)if(2!==(L=N.length)&&4!==L)N=n;else{for(I=!0,v=0;v<L;v++)if("number"!==a.type(N[v])){I=!1;break}I?2===L&&(N=[N[0],N[1],N[0],N[1]]):N=n}else N=n;w.axis=k(W,x)?W:w.axis,w.block=P||w.block,w.margin=N||w.margin}var R=E.offset(),B=Ke.offset(),q=An,U={l:Sn.cs,t:Mn.cs},X=w.axis,_=w.block,V=w.margin,Q=_[0]===(Le?"begin":"end"),Y="end"===_[1],J=Q||Y;R.top-=V[0],R.left-=V[3];var K={x:Math.round(R.left-B.left+U.l),y:Math.round(R.top-B.top+U.t)};if(Le&&(de.n||de.i||(K.x=Math.round(B.left-R.left+U.l)),de.n&&Vt&&(K.x*=-1),de.i&&Vt&&(K.x=Math.round(B.left-R.left+(Sn.ms-U.l)))),J){var $,Z={},ee={w:(Z=Oe?{w:($=E[0].getBoundingClientRect())[Nn],h:$[jn]}:{w:E[0].offsetWidth,h:E[0].offsetHeight}).w+V[3]+V[1],h:Z.h+V[0]+V[2]};Q&&(K.x-=(q.w-ee.w)*(Le&&Vt?-1:1)),Y&&(K.y-=q.h-ee.h)}X===Xn&&delete K.y,X===_n&&delete K.x,t=K}g.x=T(!0,z(t).x),g.y=T(!1,z(t).y);var te=g.x!==n,ne=g.y!==n;if(r>0||b){var re={};if(te&&(re[Gn]=g.x),ne&&(re[Zn]=g.y),b)$e.animate(re,r);else{var ie={duration:r,complete:o};if("array"===a.type(i)){var oe={};oe[Gn]=i[0],oe[Zn]=i[1],ie.specialEasing=oe}else ie.easing=i;$e.animate(re,ie)}}else te&&$e[Gn](g.x),ne&&$e[Zn](g.y)},mn.scrollStop=function(e,t,n){$e.stop(e,t,n)},mn.getElements=function(){return{target:_e[0],host:Ve[0],padding:Ke[0],viewport:$e[0],content:Ze[0],scrollbarHorizontal:{scrollbar:nt[0],track:rt[0],handle:it[0]},scrollbarVertical:{scrollbar:ot[0],track:at[0],handle:st[0]},scrollbarCorner:tt}},mn.getState=function(e){var t=function(e){if(!a.isPlainObject(e))return e;var t=a.extend(!0,{},e);s.del(t,"c");var n=function(e,n){t.hasOwnProperty(e)&&(t[n]=t[e],delete t[e])};return n("w",Nn),n("h",jn),t},n={sleeping:t(We)||!1,autoUpdate:t(!en),widthAuto:t(dt),heightAuto:t(vt),padding:t(mt),overflowAmount:t(At),hideOverflow:t(ht),hasOverflow:t(ft),contentScrollSize:t(ct),viewportSize:t(An),hostSize:t(lt)};return a.type(e)===$n?s.get(n,e):n},function(e,t){Fe=c.defaultOptions,ye=c.nativeScrollbarStyling,ge=a.extend(!0,{},c.nativeScrollbarSize),we=a.extend(!0,{},c.nativeScrollbarIsOverlaid),xe=a.extend(!0,{},c.overlayScrollbarDummySize),de=a.extend(!0,{},c.rtlScrollBehavior),oe(a.extend(!0,{},Fe,t));var n=je.callbacks;if(we.x&&we.x&&!je.nativeScrollbarsOverlaid.initialize){var r=n.onInitializationWithdrawn;return a.isFunction(r)&&x(r),!1}me=c.cssCalc,pe=c.msie,ve=c.autoUpdateRecommended,Ce=c.supportTransition,Oe=c.supportTransform,Se=c.supportPassiveEvents,Me=c.supportResizeObserver,tn=c.supportMutationObserver,qe=a(e.ownerDocument),Be=a(qe[0].defaultView||qe[0].parentWindow),Ue=qe.find("html").first(),Xe=Ue.find("body").first(),_e=a(e),wn=_e.is("textarea");var o;if((xn=_e.is("body"))&&((o={}).l=Math.max(_e[Gn](),Ue[Gn](),Be[Gn]()),o.t=Math.max(_e[Zn](),Ue[Zn](),Be[Zn]())),wn){_e.wrap(Vn+ur+Qn),_e.addClass(wr).addClass(Lr),Ve=_e.parent();var s={};je.sizeAutoCapable||(s[Nn]=_e.css(Nn),s[jn]=_e.css(jn)),Ve.css(s),Ve.wrapInner(Vn+Ar+Jn+Lr+Qn).wrapInner(Vn+Or+Jn+Lr+Qn).wrapInner(Vn+Cr+Jn+Lr+Qn),Ze=Ve.find(Yn+Ar).first(),$e=Ve.find(Yn+Or).first(),Ke=Ve.find(Yn+Cr).first(),et=a(Vn+xr+Qn),Ze.prepend(et),_e.on(qn,N),_e.on("drop",W),_e.on("focus",P),_e.on("focusout",F),pe>9||!ve?_e.on("input",I):(_e.on(rr,H),_e.on(ir,L))}else _e.addClass(cr),(Ve=_e).wrapInner(Vn+Ar+Qn).wrapInner(Vn+Or+Qn).wrapInner(Vn+Cr+Qn),Ze=Ve.find(Yn+Ar).first(),$e=Ve.find(Yn+Or).first(),Ke=Ve.find(Yn+Cr).first(),Ze.on(ar,function(e){!0!==zt&&ce((e=e.originalEvent||e).propertyName)&&fe(Bn)});if(_(),Se?h($e,qn,K):$e.on(qn,K),ye&&(we.x&&we.y?$e.addClass(Mr):$e.addClass(Sr)),tn){var l,u=i.mO(),d=i.now();Gt=new u(function(e){if(gn&&!We){var t=!1;a.each(e,function(){var e=this,n=this.target,r=e.attributeName;if(t="class"===r?re(e.oldValue,n.className):"style"!==r||e.oldValue!==n.style.cssText)return!1}),t&&mn.update(Bn)}}),Zt=new u(function(e){if(gn&&!We){for(var t=!1,n=0;n<e.length;n++)if(ie(e[n])){t=!0;break}if(t){var r=i.now(),o=vt||dt,a=function(){d=r,wn&&z(),o?mn.update():mn.update(Bn)};clearTimeout(l),Gr<=0||r-d>Gr||!o?a():l=setTimeout(a,Gr)}}})}xn&&(Ue.addClass(lr),$e[Gn](o.l),$e[Zn](o.t)),Ye=a(Vn+"os-resize-observer-host"+Qn),Ve.prepend(Ye),y(Ye,f),f(),mn.update(Bn),setTimeout(function(){Ce&&!bn&&Ve.addClass(dr)},333),gn=!0;var v=n.onInitialized;return a.isFunction(v)&&x(v),gn}(t,l))return o.add(t,mn),mn;mn=n}}var h,d,v={className:"os-theme-dark",resize:"none",sizeAutoCapable:!0,clipAlways:!0,normalizeRTL:!0,paddingAbsolute:!1,autoUpdate:null,autoUpdateInterval:33,nativeScrollbarsOverlaid:{showNativeScrollbars:!1,initialize:!0},overflowBehavior:{x:"scroll",y:"scroll"},scrollbars:{visibility:"auto",autoHide:"never",autoHideDelay:800,dragScrolling:!0,clickScrolling:!1,touchSupport:!0},textarea:{dynWidth:!1,dynHeight:!1},callbacks:{onInitialized:null,onInitializationWithdrawn:null,onDestroyed:null,onScrollStart:null,onScroll:null,onScrollStop:null,onOverflowChanged:null,onOverflowAmountChanged:null,onDirectionChanged:null,onContentSizeChanged:null,onHostSizeChanged:null,onUpdated:null}};e[r]=function(e,t){if(0===arguments.length)return this;l();var r,i=[];return a.isPlainObject(t)?e&&e.length?e.length>1?(a.each(e,function(){(r=this)!==n&&i.push(f(r,t,h,d))}),i):f(e[0],t,h,d):f(e,t,h,d):e?e.length&&e.length>0?e.length>1?(a.each(e,function(){r=o.get(this),"!"===t?r!==n&&i.push(r):i.push(r)}),i):o.get(e[0]):o.get(e):void 0},e[r].globals=function(){l();var e=a.extend(!0,{},h);return delete e.msie,e},e[r].defaultOptions=function(e){l();var t=h.defaultOptions;if(e===n)return a.extend(!0,{},t);h.defaultOptions=a.extend(!0,{},t,e)}}(i,function(e){function t(e){for(var t=0;t<r.length;t++)if(e===r[t])return e[i]}var r=[],i="__overlayScrollbars__";return{all:function(){return r},add:function(e,t){e[i]=t,r.push(e)},rem:function(t){var n=e.inArray(t,r);n>-1&&(delete t[i],r.splice(n,1))},has:function(e){return t(e)!==n},get:t}}(o),o,function(e){function t(r,i,o,a,s){var l=!1;if(o=o===n?"":o,"string"!=typeof i)return l;if(0===i.length)return l;if(""===o){for(var c=i.split("."),u=r,f="",h=!1,d=0;d<c.length;d++){var v=c[d];if(u=u[v],f+=v+".","object"!==e.type(u)&&d+1!==c.length){h=!0;break}}if(h)return f.slice(0,-1)}for(var p in r)if(r.hasOwnProperty(p)){var y=o+p===i;if("object"!==e.type(r[p])||y){if(y){"function"==typeof a&&a(r,p),l=!0;break}}else if(l=t(r[p],i,o+p+".",a,s),"function"==typeof s&&s(r,p),l)break}return l}return{has:function(e,n){return t(e,n)},get:function(e,n){var r;return t(e,n,"",function(e,t){r=e[t]}),r},set:function(n,r,i,o){var a=!1;if(t(n,r,"",function(e,t){e[t]=i,a=!0}),!a&&o){for(var s=r.split("."),l={},c=l,u=0;u<s.length;u++){var f=u===s.length-1?i:{};c=c[s[u]]=f}e.extend(!0,n,l),a=!0}return a},del:function(n,r,i){var o=!1;return t(n,r,"",function(e,t){delete e[t],o=!0},function(t,n){i&&e.isEmptyObject(t[n])&&delete t[n]}),o}}}(o))}); |
{ | ||
"name": "overlayscrollbars", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "A javascript scrollbar plugin which hides the native scrollbars and provides custom styleable overlay scrollbars, but keeps the native functionality and feeling.", | ||
@@ -5,0 +5,0 @@ "keywords" : [ |
@@ -31,3 +31,3 @@ ![OverlayScrollbars](https://kingsora.github.io/OverlayScrollbars/img/logo.png) | ||
If you are using the jQuery dependent version it obviously requires [jQuery](https://jquery.com/) to work. | ||
If you are using the jQuery dependent version it obviously requires [jQuery](https://jquery.com/) to work. | ||
It was tested with the jQuery versions: 1.9.1, 2.x, 3.x, and it won't work with jQuery slim. | ||
@@ -34,0 +34,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
717304