/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ !function(a,H){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?H(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return H(a)}:H(a)}("undefined"!=typeof window?window:this,function(a,H){"use strict";var c=[],C=Object.getPrototypeOf,b=c.slice,X=c.flat?function(a){return c.flat.call(a)}:function(a){return c.concat.apply([],a)},f=c.push,L=c.indexOf,be={},e=be.toString,bg=be.hasOwnProperty,ff=bg.toString,E=ff.call(Object),d={},G=function(a){return"function"==typeof a&&"number"!=typeof a.nodeType},g=function(a){return null!=a&&a===a.window},K=a.document,ec={type:!0,src:!0,nonce:!0,noModule:!0};function gd(a,H,c){var C,b,X=(c=c||K).createElement("script");if(X.text=a,H)for(C in ec)(b=H[C]||H.getAttribute&&H.getAttribute(C))&&X.setAttribute(C,b);c.head.appendChild(X).parentNode.removeChild(X)}function aF(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?be[e.call(a)]||"object":typeof a}var da="3.5.1",dW=function(a,H){return new dW.fn.init(a,H)};function aS(a){var H=!!a&&"length"in a&&a.length,c=aF(a);return!G(a)&&!g(a)&&("array"===c||0===H||"number"==typeof H&&0+~]|"+i+")"+i+"*"),q=new RegExp(i+"|>"),r=new RegExp(l),s=new RegExp("^"+j+"$"),t={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+k),PSEUDO:new RegExp("^"+l),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+h+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},u=/HTML$/i,v=/^(?:input|select|textarea|button)$/i,w=/^h\d$/i,x=/^[^{]+\{\s*\[native \w/,y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,z=/[+~]/,A=new RegExp("\\\\[\\da-fA-F]{1,6}"+i+"?|\\\\([^\\r\\n\\f])","g"),B=function(a,H){var c="0x"+a.slice(1)-65536;return H||(c<0?String.fromCharCode(c+65536):String.fromCharCode(c>>10|55296,1023&c|56320))},D=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,F=function(a,H){return H?"\0"===a?"�":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},I=function(){E()},J=$(function(a){return!0===a.disabled&&"fieldset"===a.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{bO.apply(ci=aG.call(dW.childNodes),dW.childNodes),ci[dW.childNodes.length].nodeType}catch(H){bO={apply:ci.length?function(a,H){cT.apply(a,aG.call(H))}:function(a,H){var c=a.length,C=0;while(a[c++]=H[C++]);a.length=c-1}}}function M(a,H,C,b){var X,L,e,bg,ff,G,ec,gd=H&&H.ownerDocument,dW=H?H.nodeType:9;if(C=C||[],"string"!=typeof a||!a||1!==dW&&9!==dW&&11!==dW)return C;if(!b&&(E(H),H=H||d,g)){if(11!==dW&&(ff=y.exec(a)))if(X=ff[1]){if(9===dW){if(!(e=H.getElementById(X)))return C;if(e.id===X)return C.push(e),C}else if(gd&&(e=gd.getElementById(X))&&aF(H,e)&&e.id===X)return C.push(e),C}else{if(ff[2])return bO.apply(C,H.getElementsByTagName(a)),C;if((X=ff[3])&&c.getElementsByClassName&&H.getElementsByClassName)return bO.apply(C,H.getElementsByClassName(X)),C}if(c.qsa&&!dZ[a+" "]&&(!K||!K.test(a))&&(1!==dW||"object"!==H.nodeName.toLowerCase())){if(ec=a,gd=H,1===dW&&(q.test(a)||p.test(a))){(gd=z.test(a)&&W(H.parentNode)||H)===H&&c.scope||((bg=H.getAttribute("id"))?bg=bg.replace(D,F):H.setAttribute("id",bg=da)),L=(G=f(a)).length;while(L--)G[L]=(bg?"#"+bg:":scope")+" "+Z(G[L]);ec=G.join(",")}try{return bO.apply(C,gd.querySelectorAll(ec)),C}catch(H){dZ(a,!0)}finally{bg===da&&H.removeAttribute("id")}}}return be(a.replace(n,"$1"),H,C,b)}function N(){var a=[];return function H(c,b){return a.push(c+" ")>C.cacheLength&&delete H[a.shift()],H[c+" "]=b}}function O(a){return a[da]=!0,a}function P(a){var H=d.createElement("fieldset");try{return!!a(H)}catch(a){return!1}finally{H.parentNode&&H.parentNode.removeChild(H),H=null}}function Q(a,H){var c=a.split("|"),b=c.length;while(b--)C.attrHandle[c[b]]=H}function R(a,H){var c=H&&a,C=c&&1===a.nodeType&&1===H.nodeType&&a.sourceIndex-H.sourceIndex;if(C)return C;if(c)while(c=c.nextSibling)if(c===H)return-1;return a?1:-1}function S(a){return function(H){return"input"===H.nodeName.toLowerCase()&&H.type===a}}function T(a){return function(H){var c=H.nodeName.toLowerCase();return("input"===c||"button"===c)&&H.type===a}}function U(a){return function(H){return"form"in H?H.parentNode&&!1===H.disabled?"label"in H?"label"in H.parentNode?H.parentNode.disabled===a:H.disabled===a:H.isDisabled===a||H.isDisabled!==!a&&J(H)===a:H.disabled===a:"label"in H&&H.disabled===a}}function V(a){return O(function(H){return H=+H,O(function(c,C){var b,X=a([],c.length,H),f=X.length;while(f--)c[b=X[f]]&&(c[b]=!(C[b]=c[b]))})})}function W(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}for(H in c=M.support={},X=M.isXML=function(a){var H=a.namespaceURI,c=(a.ownerDocument||a).documentElement;return!u.test(H||c&&c.nodeName||"HTML")},E=M.setDocument=function(a){var H,b,f=a?a.ownerDocument||a:dW;return f!=d&&9===f.nodeType&&f.documentElement&&(G=(d=f).documentElement,g=!X(d),dW!=d&&(b=d.defaultView)&&b.top!==b&&(b.addEventListener?b.addEventListener("unload",I,!1):b.attachEvent&&b.attachEvent("onunload",I)),c.scope=P(function(a){return G.appendChild(a).appendChild(d.createElement("div")),"undefined"!=typeof a.querySelectorAll&&!a.querySelectorAll(":scope fieldset div").length}),c.attributes=P(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=P(function(a){return a.appendChild(d.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=x.test(d.getElementsByClassName),c.getById=P(function(a){return G.appendChild(a).id=da,!d.getElementsByName||!d.getElementsByName(da).length}),c.getById?(C.filter.ID=function(a){var H=a.replace(A,B);return function(a){return a.getAttribute("id")===H}},C.find.ID=function(a,H){if("undefined"!=typeof H.getElementById&&g){var c=H.getElementById(a);return c?[c]:[]}}):(C.filter.ID=function(a){var H=a.replace(A,B);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===H}},C.find.ID=function(a,H){if("undefined"!=typeof H.getElementById&&g){var c,C,b,X=H.getElementById(a);if(X){if((c=X.getAttributeNode("id"))&&c.value===a)return[X];b=H.getElementsByName(a),C=0;while(X=b[C++])if((c=X.getAttributeNode("id"))&&c.value===a)return[X]}return[]}}),C.find.TAG=c.getElementsByTagName?function(a,H){return"undefined"!=typeof H.getElementsByTagName?H.getElementsByTagName(a):c.qsa?H.querySelectorAll(a):void 0}:function(a,H){var c,C=[],b=0,X=H.getElementsByTagName(a);if("*"===a){while(c=X[b++])1===c.nodeType&&C.push(c);return C}return X},C.find.CLASS=c.getElementsByClassName&&function(a,H){if("undefined"!=typeof H.getElementsByClassName&&g)return H.getElementsByClassName(a)},ec=[],K=[],(c.qsa=x.test(d.querySelectorAll))&&(P(function(a){var H;G.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&K.push("[*^$]="+i+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||K.push("\\["+i+"*(?:value|"+h+")"),a.querySelectorAll("[id~="+da+"-]").length||K.push("~="),(H=d.createElement("input")).setAttribute("name",""),a.appendChild(H),a.querySelectorAll("[name='']").length||K.push("\\["+i+"*name"+i+"*="+i+"*(?:''|\"\")"),a.querySelectorAll(":checked").length||K.push(":checked"),a.querySelectorAll("a#"+da+"+*").length||K.push(".#.+[+~]"),a.querySelectorAll("\\\f"),K.push("[\\r\\n\\f]")}),P(function(a){a.innerHTML="";var H=d.createElement("input");H.setAttribute("type","hidden"),a.appendChild(H).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&K.push("name"+i+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&K.push(":enabled",":disabled"),G.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&K.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),K.push(",.*:")})),(c.matchesSelector=x.test(gd=G.matches||G.webkitMatchesSelector||G.mozMatchesSelector||G.oMatchesSelector||G.msMatchesSelector))&&P(function(a){c.disconnectedMatch=gd.call(a,"*"),gd.call(a,"[s!='']:x"),ec.push("!=",l)}),K=K.length&&new RegExp(K.join("|")),ec=ec.length&&new RegExp(ec.join("|")),H=x.test(G.compareDocumentPosition),aF=H||x.test(G.contains)?function(a,H){var c=9===a.nodeType?a.documentElement:a,C=H&&H.parentNode;return a===C||!(!C||1!==C.nodeType||!(c.contains?c.contains(C):a.compareDocumentPosition&&16&a.compareDocumentPosition(C)))}:function(a,H){if(H)while(H=H.parentNode)if(H===a)return!0;return!1},cb=H?function(a,H){if(a===H)return ff=!0,0;var C=!a.compareDocumentPosition-!H.compareDocumentPosition;return C||(1&(C=(a.ownerDocument||a)==(H.ownerDocument||H)?a.compareDocumentPosition(H):1)||!c.sortDetached&&H.compareDocumentPosition(a)===C?a==d||a.ownerDocument==dW&&aF(dW,a)?-1:H==d||H.ownerDocument==dW&&aF(dW,H)?1:bg?eN(bg,a)-eN(bg,H):0:4&C?-1:1)}:function(a,H){if(a===H)return ff=!0,0;var c,C=0,b=a.parentNode,X=H.parentNode,f=[a],L=[H];if(!b||!X)return a==d?-1:H==d?1:b?-1:X?1:bg?eN(bg,a)-eN(bg,H):0;if(b===X)return R(a,H);c=a;while(c=c.parentNode)f.unshift(c);c=H;while(c=c.parentNode)L.unshift(c);while(f[C]===L[C])C++;return C?R(f[C],L[C]):f[C]==dW?-1:L[C]==dW?1:0}),d},M.matches=function(a,H){return M(a,null,null,H)},M.matchesSelector=function(a,H){if(E(a),c.matchesSelector&&g&&!dZ[H+" "]&&(!ec||!ec.test(H))&&(!K||!K.test(H)))try{var C=gd.call(a,H);if(C||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return C}catch(a){dZ(H,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(A,B),a[3]=(a[3]||a[4]||a[5]||"").replace(A,B),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||M.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&M.error(a[0]),a},PSEUDO:function(a){var H,c=!a[6]&&a[2];return t.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&r.test(c)&&(H=f(c,!0))&&(H=c.indexOf(")",c.length-H)-c.length)&&(a[0]=a[0].slice(0,H),a[2]=c.slice(0,H)),a.slice(0,3))}},filter:{TAG:function(a){var H=a.replace(A,B).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===H}},CLASS:function(a){var H=dU[a+" "];return H||(H=new RegExp("(^|"+i+")"+a+"("+i+"|$)"))&&dU(a,function(a){return H.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,H,c){return function(C){var b=M.attr(C,a);return null==b?"!="===H:!H||(b+="","="===H?b===c:"!="===H?b!==c:"^="===H?c&&0===b.indexOf(c):"*="===H?c&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function fH(a,H,c){return G(H)?dW.grep(a,function(a,C){return!!H.call(a,C,a)!==c}):H.nodeType?dW.grep(a,function(a){return a===H!==c}):"string"!=typeof H?dW.grep(a,function(a){return-1)[^>]*|#([\w-]+))$/;(dW.fn.init=function(a,H,c){var C,b;if(!a)return this;if(c=c||ci,"string"==typeof a){if(!(C="<"===a[0]&&">"===a[a.length-1]&&3<=a.length?[null,a,null]:bT.exec(a))||!C[1]&&H)return!H||H.jquery?(H||c).find(a):this.constructor(H).find(a);if(C[1]){if(H=H instanceof dW?H[0]:H,dW.merge(this,dW.parseHTML(C[1],H&&H.nodeType?H.ownerDocument||H:K,!0)),cb.test(C[1])&&dW.isPlainObject(H))for(C in H)G(this[C])?this[C](H[C]):this.attr(C,H[C]);return this}return(b=K.getElementById(C[2]))&&(this[0]=b,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):G(a)?void 0!==c.ready?c.ready(a):a(dW):dW.makeArray(a,this)}).prototype=dW.fn,ci=dW(K);var cT=/^(?:parents|prev(?:Until|All))/,bO={children:!0,contents:!0,next:!0,prev:!0};function aG(a,H){while((a=a[H])&&1!==a.nodeType);return a}dW.fn.extend({has:function(a){var H=dW(a,this),c=H.length;return this.filter(function(){for(var a=0;a\x20\t\r\n\f]*)/i,T=/^$|^module$|\/(?:java|ecma)script/i;P=K.createDocumentFragment().appendChild(K.createElement("div")),(Q=K.createElement("input")).setAttribute("type","radio"),Q.setAttribute("checked","checked"),Q.setAttribute("name","t"),P.appendChild(Q),d.checkClone=P.cloneNode(!0).cloneNode(!0).lastChild.checked,P.innerHTML="",d.noCloneChecked=!!P.cloneNode(!0).lastChild.defaultValue,P.innerHTML="",d.option=!!P.lastChild;var U={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function V(a,H){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(H||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(H||"*"):[],void 0===H||H&&dZ(a,H)?dW.merge([a],c):c}function W(a,H){for(var c=0,C=a.length;c",""]);var Y=/<|&#?\w+;/;function Z(a,H,c,C,b){for(var X,f,L,be,e,bg,ff=H.createDocumentFragment(),E=[],d=0,G=a.length;d\s*$/g;function ea(a,H){return dZ(a,"table")&&dZ(11!==H.nodeType?H:H.firstChild,"tr")&&dW(a).children("tbody")[0]||a}function bga(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function ffa(a){return"true/"===(a.type||"").slice(0,5)?a.type=a.type.slice(5):a.removeAttribute("type"),a}function Ea(a,H){var c,C,b,X,f,L;if(1===H.nodeType){if(u.hasData(a)&&(L=u.get(a).events))for(b in u.remove(H,"handle events"),L)for(c=0,C=L[b].length;c").attr(a.scriptAttrs||{}).prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){H.remove(),c=null,a&&b("error"===a.type?404:200,a.type)}),K.head.appendChild(H[0])},abort:function(){c&&c()}}});var cH,CH=[],bH=/(=)\?(?=&|$)|\?\?/;dW.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=CH.pop()||dW.expando+"_"+Ba.guid++;return this[a]=!0,a}}),dW.ajaxPrefilter("json jsonp",function(H,c,C){var b,X,f,L=!1!==H.jsonp&&(bH.test(H.url)?"url":"string"==typeof H.data&&0===(H.contentType||"").indexOf("application/x-www-form-urlencoded")&&bH.test(H.data)&&"data");if(L||"jsonp"===H.dataTypes[0])return b=H.jsonpCallback=G(H.jsonpCallback)?H.jsonpCallback():H.jsonpCallback,L?H[L]=H[L].replace(bH,"$1"+b):!1!==H.jsonp&&(H.url+=(Da.test(H.url)?"&":"?")+H.jsonp+"="+b),H.converters["script json"]=function(){return f||dW.error(b+" was not called"),f[0]},H.dataTypes[0]="json",X=a[b],a[b]=function(){f=arguments},C.always(function(){void 0===X?dW(a).removeProp(b):a[b]=X,H[b]&&(H.jsonpCallback=c.jsonpCallback,CH.push(b)),f&&G(X)&&X(f[0]),f=X=void 0}),"script"}),d.createHTMLDocument=((cH=K.implementation.createHTMLDocument("").body).innerHTML="
",2===cH.childNodes.length),dW.parseHTML=function(a,H,c){return"string"!=typeof a?[]:("boolean"==typeof H&&(c=H,H=!1),H||(d.createHTMLDocument?((C=(H=K.implementation.createHTMLDocument("")).createElement("base")).href=K.location.href,H.head.appendChild(C)):H=K),X=!c&&[],(b=cb.exec(a))?[H.createElement(b[1])]:(b=Z([a],H,X),X&&X.length&&dW(X).remove(),dW.merge([],b.childNodes)));var C,b,X},dW.fn.load=function(a,H,c){var C,b,X,f=this,L=a.indexOf(" ");return-1").append(dW.parseHTML(a)).find(C):a)}).always(c&&function(a,H){f.each(function(){c.apply(this,X||[a.responseText,H,a])})}),this},dW.expr.pseudos.animated=function(a){return dW.grep(dW.timers,function(H){return a===H.elem}).length},dW.offset={setOffset:function(a,H,c){var C,b,X,f,L,be,e=dW.css(a,"position"),bg=dW(a),ff={};"static"===e&&(a.style.position="relative"),L=bg.offset(),X=dW.css(a,"top"),be=dW.css(a,"left"),("absolute"===e||"fixed"===e)&&-1<(X+be).indexOf("auto")?(f=(C=bg.position()).top,b=C.left):(f=parseFloat(X)||0,b=parseFloat(be)||0),G(H)&&(H=H.call(a,c,dW.extend({},L))),null!=H.top&&(ff.top=H.top-L.top+f),null!=H.left&&(ff.left=H.left-L.left+b),"using"in H?H.using.call(a,ff):("number"==typeof ff.top&&(ff.top+="px"),"number"==typeof ff.left&&(ff.left+="px"),bg.css(ff))}},dW.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(H){dW.offset.setOffset(this,a,H)});var H,c,C=this[0];return C?C.getClientRects().length?(H=C.getBoundingClientRect(),c=C.ownerDocument.defaultView,{top:H.top+c.pageYOffset,left:H.left+c.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var a,H,c,C=this[0],b={top:0,left:0};if("fixed"===dW.css(C,"position"))H=C.getBoundingClientRect();else{H=this.offset(),c=C.ownerDocument,a=C.offsetParent||c.documentElement;while(a&&(a===c.body||a===c.documentElement)&&"static"===dW.css(a,"position"))a=a.parentNode;a&&a!==C&&1===a.nodeType&&((b=dW(a).offset()).top+=dW.css(a,"borderTopWidth",!0),b.left+=dW.css(a,"borderLeftWidth",!0))}return{top:H.top-b.top-dW.css(C,"marginTop",!0),left:H.left-b.left-dW.css(C,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===dW.css(a,"position"))a=a.offsetParent;return a||D})}}),dW.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,H){var c="pageYOffset"===H;dW.fn[a]=function(C){return n(this,function(a,C,b){var X;if(g(a)?X=a:9===a.nodeType&&(X=a.defaultView),void 0===b)return X?X[H]:a[C];X?X.scrollTo(c?X.pageXOffset:b,c?b:X.pageYOffset):a[C]=b},a,C,arguments.length)}}),dW.each(["top","left"],function(a,H){dW.cssHooks[H]=dWa(d.pixelPosition,function(a,c){if(c)return c=daa(a,H),Ka.test(c)?dW(a).position()[H]+"px":c})}),dW.each({Height:"height",Width:"width"},function(a,H){dW.each({padding:"inner"+a,content:H,"":"outer"+a},function(c,C){dW.fn[C]=function(b,X){var f=arguments.length&&(c||"boolean"!=typeof b),L=c||(!0===b||!0===X?"margin":"border");return n(this,function(H,c,b){var X;return g(H)?0===C.indexOf("outer")?H["inner"+a]:H.document.documentElement["client"+a]:9===H.nodeType?(X=H.documentElement,Math.max(H.body["scroll"+a],X["scroll"+a],H.body["offset"+a],X["offset"+a],X["client"+a])):void 0===b?dW.css(H,c,L):dW.style(H,c,b,L)},H,f?b:void 0,f)}})}),dW.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,H){dW.fn[H]=function(a){return this.on(H,a)}}),dW.fn.extend({bind:function(a,H,c){return this.on(a,null,H,c)},unbind:function(a,H){return this.off(a,null,H)},delegate:function(a,H,c,C){return this.on(H,a,c,C)},undelegate:function(a,H,c){return 1===arguments.length?this.off(a,"**"):this.off(H,a||"**",c)},hover:function(a,H){return this.mouseenter(a).mouseleave(H||a)}}),dW.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,H){dW.fn[H]=function(a,c){return 0",{size:1}).attr("size")&&d.attrFn,a=d.attr,J=d.attrHooks.value&&d.attrHooks.value.get||function(){return null},f=d.attrHooks.value&&d.attrHooks.value.set||function(){return b},cg=/^(?:input|button)$/i,G=/^[238]$/,fj=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,bT=/^(?:checked|selected)$/i;eb(d,"attrFn",S||{},"jQuery.attrFn is deprecated"),d.attr=function(e,eb,c,J){var f=eb.toLowerCase(),eZ=e&&e.nodeType;return J&&(a.length<4&&M("jQuery.fn.attr( props, pass ) is deprecated"),e&&!G.test(eZ)&&(S?eb in S:d.isFunction(d.fn[eb])))?d(e)[eb](c):("type"===eb&&c!==b&&cg.test(e.nodeName)&&e.parentNode&&M("Can't change the 'type' of an input or button in IE 6/7/8"),!d.attrHooks[f]&&fj.test(f)&&(d.attrHooks[f]={get:function(e,M){var eb,c=d.prop(e,M);return c===!0||"boolean"!=typeof c&&(eb=e.getAttributeNode(M))&&eb.nodeValue!==!1?M.toLowerCase():b},set:function(e,b,M){var eb;return b===!1?d.removeAttr(e,M):(eb=d.propFix[M]||M,eb in e&&(e[eb]=!0),e.setAttribute(M,M.toLowerCase())),M}},bT.test(f)&&M("jQuery.fn.attr('"+f+"') might use property instead of attribute")),a.call(d,e,eb,c))},d.attrHooks.value={get:function(d,e){var b=(d.nodeName||"").toLowerCase();return"button"===b?J.apply(this,arguments):("input"!==b&&"option"!==b&&M("jQuery.fn.attr('value') no longer gets properties"),e in d?d.value:null)},set:function(d,e){var b=(d.nodeName||"").toLowerCase();return"button"===b?f.apply(this,arguments):("input"!==b&&"option"!==b&&M("jQuery.fn.attr('value', val) no longer sets properties"),void(d.value=e))}};var eZ,bF,g=d.fn.init,N=d.find,eB=d.parseJSON,bb=/^\s*)([^>]*)$/;d.fn.init=function(e,eb,c){var S,a;return e&&"string"==typeof e&&!d.isPlainObject(eb)&&(S=aY.exec(d.trim(e)))&&S[0]&&(bb.test(e)||M("$(html) HTML strings must start with '<' character"),S[3]&&M("$(html) HTML text after last tag is ignored"),"#"===S[0].charAt(0)&&(M("HTML string cannot start with a '#' character"),d.error("JQMIGRATE: Invalid selector string (XSS)")),eb&&eb.context&&eb.context.nodeType&&(eb=eb.context),d.parseHTML)?g.call(this,d.parseHTML(S[2],eb&&eb.ownerDocument||eb||document,!0),eb,c):(a=g.apply(this,arguments),e&&e.selector!==b?(a.selector=e.selector,a.context=e.context):(a.selector="string"==typeof e?e:"",e&&(a.context=e.nodeType?e:eb||document)),a)},d.fn.init.prototype=d.fn,d.find=function(d){var e=Array.prototype.slice.call(arguments);if("string"==typeof d&&fd.test(d))try{document.querySelector(d)}catch(b){d=d.replace(dJ,function(d,e,b,M){return"["+e+b+'"'+M+'"]'});try{document.querySelector(d),M("Attribute selector with '#' must be quoted: "+e[0]),e[0]=d}catch(d){M("Attribute selector with '#' was not fixed: "+e[0])}}return N.apply(this,e)};var bg;for(bg in N)Object.prototype.hasOwnProperty.call(N,bg)&&(d.find[bg]=N[bg]);d.parseJSON=function(d){return d?eB.apply(this,arguments):(M("jQuery.parseJSON requires a valid JSON string"),null)},d.uaMatch=function(d){d=d.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(d)||/(webkit)[ \/]([\w.]+)/.exec(d)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(d)||/(msie) ([\w.]+)/.exec(d)||d.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(d)||[];return{browser:e[1]||"",version:e[2]||"0"}},d.browser||(eZ=d.uaMatch(navigator.userAgent),bF={},eZ.browser&&(bF[eZ.browser]=!0,bF.version=eZ.version),bF.chrome?bF.webkit=!0:bF.webkit&&(bF.safari=!0),d.browser=bF),eb(d,"browser",d.browser,"jQuery.browser is deprecated"),d.boxModel=d.support.boxModel="CSS1Compat"===document.compatMode,eb(d,"boxModel",d.boxModel,"jQuery.boxModel is deprecated"),eb(d.support,"boxModel",d.support.boxModel,"jQuery.support.boxModel is deprecated"),d.sub=function(){function e(d,b){return new e.fn.init(d,b)}d.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(M,eb){var c=d.fn.init.call(this,M,eb,b);return c instanceof e?c:e(c)},e.fn.init.prototype=e.fn;var b=e(document);return M("jQuery.sub() is deprecated"),e},d.fn.size=function(){return M("jQuery.fn.size() is deprecated; use the .length property"),this.length};var dg=!1;d.swap&&d.each(["height","width","reliableMarginRight"],function(e,b){var M=d.cssHooks[b]&&d.cssHooks[b].get;M&&(d.cssHooks[b].get=function(){var d;return dg=!0,d=M.apply(this,arguments),dg=!1,d})}),d.swap=function(d,e,b,eb){var c,S,a={};dg||M("jQuery.swap() is undocumented and deprecated");for(S in e)a[S]=d.style[S],d.style[S]=e[S];c=b.apply(d,eb||[]);for(S in e)d.style[S]=a[S];return c},d.ajaxSetup({converters:{"text json":d.parseJSON}});var dT=d.fn.data;d.fn.data=function(e){var eb,c,S=this[0];return!S||"events"!==e||1!==arguments.length||(eb=d.data(S,e),c=d._data(S,e),eb!==b&&eb!==c||c===b)?dT.apply(this,arguments):(M("Use of jQuery.fn.data('events') is deprecated"),c)};var aa=/\/(java|ecma)script/i;d.clean||(d.clean=function(e,b,eb,c){b=b||document,b=!b.nodeType&&b[0]||b,b=b.ownerDocument||b,M("jQuery.clean() is deprecated");var S,a,J,f,cg=[];if(d.merge(cg,d.buildFragment(e,b).childNodes),eb)for(J=function(d){return!d.type||aa.test(d.type)?c?c.push(d.parentNode?d.parentNode.removeChild(d):d):eb.appendChild(d):void 0},S=0;null!=(a=cg[S]);S++)d.nodeName(a,"script")&&J(a)||(eb.appendChild(a),"undefined"!=typeof a.getElementsByTagName&&(f=d.grep(d.merge([],a.getElementsByTagName("script")),J),cg.splice.apply(cg,[S+1,0].concat(f)),S+=f.length));return cg});var db=d.event.add,cG=d.event.remove,de=d.event.trigger,ah=d.fn.toggle,eW=d.fn.live,fdf=d.fn.die,Ne=d.fn.load,F="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",h=new RegExp("\\b(?:"+F+")\\b"),i=/(?:^|\s)hover(\.\S+|)\b/,j=function(e){return"string"!=typeof e||d.event.special.hover?e:(i.test(e)&&M("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),e&&e.replace(i,"mouseenter$1 mouseleave$1"))};d.event.props&&"attrChange"!==d.event.props[0]&&d.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),d.event.dispatch&&eb(d.event,"handle",d.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),d.event.add=function(d,e,b,eb,c){d!==document&&h.test(e)&&M("AJAX events should be attached to document: "+e),db.call(this,d,j(e||""),b,eb,c)},d.event.remove=function(d,e,b,M,eb){cG.call(this,d,j(e)||"",b,M,eb)},d.each(["load","unload","error"],function(e,b){d.fn[b]=function(){var d=Array.prototype.slice.call(arguments,0);return"load"===b&&"string"==typeof d[0]?Ne.apply(this,d):(M("jQuery.fn."+b+"() is deprecated"),d.splice(0,0,b),arguments.length?this.bind.apply(this,d):(this.triggerHandler.apply(this,d),this))}}),d.fn.toggle=function(e,b){if(!d.isFunction(e)||!d.isFunction(b))return ah.apply(this,arguments);M("jQuery.fn.toggle(handler, handler...) is deprecated");var eb=arguments,c=e.guid||d.guid++,S=0,a=function(b){var M=(d._data(this,"lastToggle"+e.guid)||0)%S;return d._data(this,"lastToggle"+e.guid,M+1),b.preventDefault(),eb[M].apply(this,arguments)||!1};for(a.guid=c;S dwh) ? dwh - scrollTop : 0; for (var i = 0, l = sticked.length; i < l; i++) { var s = sticked[i], elementTop = s.stickyWrapper.offset().top, etse = elementTop - s.topSpacing - extra; //update height in case of dynamic content s.stickyWrapper.css('height', s.stickyElement.outerHeight()); if (scrollTop <= etse) { if (s.currentTop !== null) { s.stickyElement .css({ 'width': '', 'position': '', 'top': '', 'z-index': '' }); s.stickyElement.parent().removeClass(s.className); s.stickyElement.trigger('sticky-end', [s]); s.currentTop = null; } } else { var newTop = documentHeight - s.stickyElement.outerHeight() - s.topSpacing - s.bottomSpacing - scrollTop - extra; if (newTop < 0) { newTop = newTop + s.topSpacing; } else { newTop = s.topSpacing; } if (s.currentTop !== newTop) { var newWidth; if (s.getWidthFrom) { newWidth = $(s.getWidthFrom).width() || null; } else if (s.widthFromWrapper) { newWidth = s.stickyWrapper.width(); } if (newWidth == null) { newWidth = s.stickyElement.width(); } s.stickyElement .css('width', newWidth) .css('position', 'fixed') .css('top', newTop) .css('z-index', s.zIndex); s.stickyElement.parent().addClass(s.className); if (s.currentTop === null) { s.stickyElement.trigger('sticky-start', [s]); } else { // sticky is started but it have to be repositioned s.stickyElement.trigger('sticky-update', [s]); } if (s.currentTop === s.topSpacing && s.currentTop > newTop || s.currentTop === null && newTop < s.topSpacing) { // just reached bottom || just started to stick but bottom is already reached s.stickyElement.trigger('sticky-bottom-reached', [s]); } else if(s.currentTop !== null && newTop === s.topSpacing && s.currentTop < newTop) { // sticky is started && sticked at topSpacing && overflowing from top just finished s.stickyElement.trigger('sticky-bottom-unreached', [s]); } s.currentTop = newTop; } // Check if sticky has reached end of container and stop sticking var stickyWrapperContainer = s.stickyWrapper.parent(); var unstick = (s.stickyElement.offset().top + s.stickyElement.outerHeight() >= stickyWrapperContainer.offset().top + stickyWrapperContainer.outerHeight()) && (s.stickyElement.offset().top <= s.topSpacing); if( unstick ) { s.stickyElement .css('position', 'absolute') .css('top', '') .css('bottom', 0) .css('z-index', ''); } else { s.stickyElement .css('position', 'fixed') .css('top', newTop) .css('bottom', '') .css('z-index', s.zIndex); } } } }, resizer = function() { windowHeight = $window.height(); for (var i = 0, l = sticked.length; i < l; i++) { var s = sticked[i]; var newWidth = null; if (s.getWidthFrom) { if (s.responsiveWidth) { newWidth = $(s.getWidthFrom).width(); } } else if(s.widthFromWrapper) { newWidth = s.stickyWrapper.width(); } if (newWidth != null) { s.stickyElement.css('width', newWidth); } } }, methods = { init: function(options) { return this.each(function() { var o = $.extend({}, defaults, options); var stickyElement = $(this); var stickyId = stickyElement.attr('id'); var wrapperId = stickyId ? stickyId + '-' + defaults.wrapperClassName : defaults.wrapperClassName; var wrapper = $('
') .attr('id', wrapperId) .addClass(o.wrapperClassName); stickyElement.wrapAll(function() { if ($(this).parent("#" + wrapperId).length == 0) { return wrapper; } }); var stickyWrapper = stickyElement.parent(); if (o.center) { stickyWrapper.css({width:stickyElement.outerWidth(),marginLeft:"auto",marginRight:"auto"}); } if (stickyElement.css("float") === "right") { stickyElement.css({"float":"none"}).parent().css({"float":"right"}); } o.stickyElement = stickyElement; o.stickyWrapper = stickyWrapper; o.currentTop = null; sticked.push(o); methods.setWrapperHeight(this); methods.setupChangeListeners(this); }); }, setWrapperHeight: function(stickyElement) { var element = $(stickyElement); var stickyWrapper = element.parent(); if (stickyWrapper) { stickyWrapper.css('height', element.outerHeight()); } }, setupChangeListeners: function(stickyElement) { if (window.MutationObserver) { var mutationObserver = new window.MutationObserver(function(mutations) { if (mutations[0].addedNodes.length || mutations[0].removedNodes.length) { methods.setWrapperHeight(stickyElement); } }); mutationObserver.observe(stickyElement, {subtree: true, childList: true}); } else { if (window.addEventListener) { stickyElement.addEventListener('DOMNodeInserted', function() { methods.setWrapperHeight(stickyElement); }, false); stickyElement.addEventListener('DOMNodeRemoved', function() { methods.setWrapperHeight(stickyElement); }, false); } else if (window.attachEvent) { stickyElement.attachEvent('onDOMNodeInserted', function() { methods.setWrapperHeight(stickyElement); }); stickyElement.attachEvent('onDOMNodeRemoved', function() { methods.setWrapperHeight(stickyElement); }); } } }, update: scroller, unstick: function(options) { return this.each(function() { var that = this; var unstickyElement = $(that); var removeIdx = -1; var i = sticked.length; while (i-- > 0) { if (sticked[i].stickyElement.get(0) === that) { splice.call(sticked,i,1); removeIdx = i; } } if(removeIdx !== -1) { unstickyElement.unwrap(); unstickyElement .css({ 'width': '', 'position': '', 'top': '', 'float': '', 'z-index': '' }) ; } }); } }; // should be more efficient than using $window.scroll(scroller) and $window.resize(resizer): if (window.addEventListener) { window.addEventListener('scroll', scroller, false); window.addEventListener('resize', resizer, false); } else if (window.attachEvent) { window.attachEvent('onscroll', scroller); window.attachEvent('onresize', resizer); } $.fn.sticky = function(method) { if (methods[method]) { return methods[method].apply(this, slice.call(arguments, 1)); } else if (typeof method === 'object' || !method ) { return methods.init.apply( this, arguments ); } else { $.error('Method ' + method + ' does not exist on jQuery.sticky'); } }; $.fn.unstick = function(method) { if (methods[method]) { return methods[method].apply(this, slice.call(arguments, 1)); } else if (typeof method === 'object' || !method ) { return methods.unstick.apply( this, arguments ); } else { $.error('Method ' + method + ' does not exist on jQuery.sticky'); } }; $(function() { setTimeout(scroller, 0); }); }));