Files
OverlayScrollbars/js/OverlayScrollbars.min.js
T
2018-09-09 14:14:21 +02:00

13 lines
52 KiB
JavaScript

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