/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ !function(d,C){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=d.document?C(d,!0):function(d){if(!d.document)throw new Error("jQuery requires a window with a document");return C(d)}:C(d)}("undefined"!=typeof window?window:this,function(d,C){"use strict";var g=[],B=Object.getPrototypeOf,b=g.slice,Z=g.flat?function(d){return g.flat.call(d)}:function(d){return g.concat.apply([],d)},c=g.push,T=g.indexOf,f={},S=f.toString,a=f.hasOwnProperty,Y=a.toString,dO=Y.call(Object),aL={},ai=function(d){return"function"==typeof d&&"number"!=typeof d.nodeType},df=function(d){return null!=d&&d===d.window},e=d.document,E={type:!0,src:!0,nonce:!0,noModule:!0};function aO(d,C,g){var B,b,Z=(g=g||e).createElement("script");if(Z.text=d,C)for(B in E)(b=C[B]||C.getAttribute&&C.getAttribute(B))&&Z.setAttribute(B,b);g.head.appendChild(Z).parentNode.removeChild(Z)}function bi(d){return null==d?d+"":"object"==typeof d||"function"==typeof d?f[S.call(d)]||"object":typeof d}var bF="3.5.1",fc=function(d,C){return new fc.fn.init(d,C)};function cV(d){var C=!!d&&"length"in d&&d.length,g=bi(d);return!ai(d)&&!df(d)&&("array"===g||0===C||"number"==typeof C&&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"),D=function(d,C){var g="0x"+d.slice(1)-65536;return C||(g<0?String.fromCharCode(g+65536):String.fromCharCode(g>>10|55296,1023&g|56320))},F=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,G=function(d,C){return C?"\0"===d?"�":d.slice(0,-1)+"\\"+d.charCodeAt(d.length-1).toString(16)+" ":"\\"+d},H=function(){dO()},I=_(function(d){return!0===d.disabled&&"fieldset"===d.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{eQ.apply(K=aV.call(fc.childNodes),fc.childNodes),K[fc.childNodes.length].nodeType}catch(C){eQ={apply:K.length?function(d,C){gc.apply(d,aV.call(C))}:function(d,C){var g=d.length,B=0;while(d[g++]=C[B++]);d.length=g-1}}}function J(d,C,B,b){var Z,T,S,a,Y,ai,E,aO=C&&C.ownerDocument,fc=C?C.nodeType:9;if(B=B||[],"string"!=typeof d||!d||1!==fc&&9!==fc&&11!==fc)return B;if(!b&&(dO(C),C=C||aL,df)){if(11!==fc&&(Y=y.exec(d)))if(Z=Y[1]){if(9===fc){if(!(S=C.getElementById(Z)))return B;if(S.id===Z)return B.push(S),B}else if(aO&&(S=aO.getElementById(Z))&&bi(C,S)&&S.id===Z)return B.push(S),B}else{if(Y[2])return eQ.apply(B,C.getElementsByTagName(d)),B;if((Z=Y[3])&&g.getElementsByClassName&&C.getElementsByClassName)return eQ.apply(B,C.getElementsByClassName(Z)),B}if(g.qsa&&!aS[d+" "]&&(!e||!e.test(d))&&(1!==fc||"object"!==C.nodeName.toLowerCase())){if(E=d,aO=C,1===fc&&(q.test(d)||p.test(d))){(aO=z.test(d)&&W(C.parentNode)||C)===C&&g.scope||((a=C.getAttribute("id"))?a=a.replace(F,G):C.setAttribute("id",a=bF)),T=(ai=c(d)).length;while(T--)ai[T]=(a?"#"+a:":scope")+" "+$(ai[T]);E=ai.join(",")}try{return eQ.apply(B,aO.querySelectorAll(E)),B}catch(C){aS(d,!0)}finally{a===bF&&C.removeAttribute("id")}}}return f(d.replace(n,"$1"),C,B,b)}function L(){var d=[];return function C(g,b){return d.push(g+" ")>B.cacheLength&&delete C[d.shift()],C[g+" "]=b}}function M(d){return d[bF]=!0,d}function N(d){var C=aL.createElement("fieldset");try{return!!d(C)}catch(d){return!1}finally{C.parentNode&&C.parentNode.removeChild(C),C=null}}function O(d,C){var g=d.split("|"),b=g.length;while(b--)B.attrHandle[g[b]]=C}function P(d,C){var g=C&&d,B=g&&1===d.nodeType&&1===C.nodeType&&d.sourceIndex-C.sourceIndex;if(B)return B;if(g)while(g=g.nextSibling)if(g===C)return-1;return d?1:-1}function Q(d){return function(C){return"input"===C.nodeName.toLowerCase()&&C.type===d}}function R(d){return function(C){var g=C.nodeName.toLowerCase();return("input"===g||"button"===g)&&C.type===d}}function U(d){return function(C){return"form"in C?C.parentNode&&!1===C.disabled?"label"in C?"label"in C.parentNode?C.parentNode.disabled===d:C.disabled===d:C.isDisabled===d||C.isDisabled!==!d&&I(C)===d:C.disabled===d:"label"in C&&C.disabled===d}}function V(d){return M(function(C){return C=+C,M(function(g,B){var b,Z=d([],g.length,C),c=Z.length;while(c--)g[b=Z[c]]&&(g[b]=!(B[b]=g[b]))})})}function W(d){return d&&"undefined"!=typeof d.getElementsByTagName&&d}for(C in g=J.support={},Z=J.isXML=function(d){var C=d.namespaceURI,g=(d.ownerDocument||d).documentElement;return!u.test(C||g&&g.nodeName||"HTML")},dO=J.setDocument=function(d){var C,b,c=d?d.ownerDocument||d:fc;return c!=aL&&9===c.nodeType&&c.documentElement&&(ai=(aL=c).documentElement,df=!Z(aL),fc!=aL&&(b=aL.defaultView)&&b.top!==b&&(b.addEventListener?b.addEventListener("unload",H,!1):b.attachEvent&&b.attachEvent("onunload",H)),g.scope=N(function(d){return ai.appendChild(d).appendChild(aL.createElement("div")),"undefined"!=typeof d.querySelectorAll&&!d.querySelectorAll(":scope fieldset div").length}),g.attributes=N(function(d){return d.className="i",!d.getAttribute("className")}),g.getElementsByTagName=N(function(d){return d.appendChild(aL.createComment("")),!d.getElementsByTagName("*").length}),g.getElementsByClassName=x.test(aL.getElementsByClassName),g.getById=N(function(d){return ai.appendChild(d).id=bF,!aL.getElementsByName||!aL.getElementsByName(bF).length}),g.getById?(B.filter.ID=function(d){var C=d.replace(A,D);return function(d){return d.getAttribute("id")===C}},B.find.ID=function(d,C){if("undefined"!=typeof C.getElementById&&df){var g=C.getElementById(d);return g?[g]:[]}}):(B.filter.ID=function(d){var C=d.replace(A,D);return function(d){var g="undefined"!=typeof d.getAttributeNode&&d.getAttributeNode("id");return g&&g.value===C}},B.find.ID=function(d,C){if("undefined"!=typeof C.getElementById&&df){var g,B,b,Z=C.getElementById(d);if(Z){if((g=Z.getAttributeNode("id"))&&g.value===d)return[Z];b=C.getElementsByName(d),B=0;while(Z=b[B++])if((g=Z.getAttributeNode("id"))&&g.value===d)return[Z]}return[]}}),B.find.TAG=g.getElementsByTagName?function(d,C){return"undefined"!=typeof C.getElementsByTagName?C.getElementsByTagName(d):g.qsa?C.querySelectorAll(d):void 0}:function(d,C){var g,B=[],b=0,Z=C.getElementsByTagName(d);if("*"===d){while(g=Z[b++])1===g.nodeType&&B.push(g);return B}return Z},B.find.CLASS=g.getElementsByClassName&&function(d,C){if("undefined"!=typeof C.getElementsByClassName&&df)return C.getElementsByClassName(d)},E=[],e=[],(g.qsa=x.test(aL.querySelectorAll))&&(N(function(d){var C;ai.appendChild(d).innerHTML="",d.querySelectorAll("[msallowcapture^='']").length&&e.push("[*^$]="+i+"*(?:''|\"\")"),d.querySelectorAll("[selected]").length||e.push("\\["+i+"*(?:value|"+h+")"),d.querySelectorAll("[id~="+bF+"-]").length||e.push("~="),(C=aL.createElement("input")).setAttribute("name",""),d.appendChild(C),d.querySelectorAll("[name='']").length||e.push("\\["+i+"*name"+i+"*="+i+"*(?:''|\"\")"),d.querySelectorAll(":checked").length||e.push(":checked"),d.querySelectorAll("a#"+bF+"+*").length||e.push(".#.+[+~]"),d.querySelectorAll("\\\f"),e.push("[\\r\\n\\f]")}),N(function(d){d.innerHTML="";var C=aL.createElement("input");C.setAttribute("type","hidden"),d.appendChild(C).setAttribute("name","D"),d.querySelectorAll("[name=d]").length&&e.push("name"+i+"*[*^$|!~]?="),2!==d.querySelectorAll(":enabled").length&&e.push(":enabled",":disabled"),ai.appendChild(d).disabled=!0,2!==d.querySelectorAll(":disabled").length&&e.push(":enabled",":disabled"),d.querySelectorAll("*,:x"),e.push(",.*:")})),(g.matchesSelector=x.test(aO=ai.matches||ai.webkitMatchesSelector||ai.mozMatchesSelector||ai.oMatchesSelector||ai.msMatchesSelector))&&N(function(d){g.disconnectedMatch=aO.call(d,"*"),aO.call(d,"[s!='']:x"),E.push("!=",l)}),e=e.length&&new RegExp(e.join("|")),E=E.length&&new RegExp(E.join("|")),C=x.test(ai.compareDocumentPosition),bi=C||x.test(ai.contains)?function(d,C){var g=9===d.nodeType?d.documentElement:d,B=C&&C.parentNode;return d===B||!(!B||1!==B.nodeType||!(g.contains?g.contains(B):d.compareDocumentPosition&&16&d.compareDocumentPosition(B)))}:function(d,C){if(C)while(C=C.parentNode)if(C===d)return!0;return!1},gI=C?function(d,C){if(d===C)return Y=!0,0;var B=!d.compareDocumentPosition-!C.compareDocumentPosition;return B||(1&(B=(d.ownerDocument||d)==(C.ownerDocument||C)?d.compareDocumentPosition(C):1)||!g.sortDetached&&C.compareDocumentPosition(d)===B?d==aL||d.ownerDocument==fc&&bi(fc,d)?-1:C==aL||C.ownerDocument==fc&&bi(fc,C)?1:a?cX(a,d)-cX(a,C):0:4&B?-1:1)}:function(d,C){if(d===C)return Y=!0,0;var g,B=0,b=d.parentNode,Z=C.parentNode,c=[d],T=[C];if(!b||!Z)return d==aL?-1:C==aL?1:b?-1:Z?1:a?cX(a,d)-cX(a,C):0;if(b===Z)return P(d,C);g=d;while(g=g.parentNode)c.unshift(g);g=C;while(g=g.parentNode)T.unshift(g);while(c[B]===T[B])B++;return B?P(c[B],T[B]):c[B]==fc?-1:T[B]==fc?1:0}),aL},J.matches=function(d,C){return J(d,null,null,C)},J.matchesSelector=function(d,C){if(dO(d),g.matchesSelector&&df&&!aS[C+" "]&&(!E||!E.test(C))&&(!e||!e.test(C)))try{var B=aO.call(d,C);if(B||g.disconnectedMatch||d.document&&11!==d.document.nodeType)return B}catch(d){aS(C,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(d){return d[1]=d[1].replace(A,D),d[3]=(d[3]||d[4]||d[5]||"").replace(A,D),"~="===d[2]&&(d[3]=" "+d[3]+" "),d.slice(0,4)},CHILD:function(d){return d[1]=d[1].toLowerCase(),"nth"===d[1].slice(0,3)?(d[3]||J.error(d[0]),d[4]=+(d[4]?d[5]+(d[6]||1):2*("even"===d[3]||"odd"===d[3])),d[5]=+(d[7]+d[8]||"odd"===d[3])):d[3]&&J.error(d[0]),d},PSEUDO:function(d){var C,g=!d[6]&&d[2];return t.CHILD.test(d[0])?null:(d[3]?d[2]=d[4]||d[5]||"":g&&r.test(g)&&(C=c(g,!0))&&(C=g.indexOf(")",g.length-C)-g.length)&&(d[0]=d[0].slice(0,C),d[2]=g.slice(0,C)),d.slice(0,3))}},filter:{TAG:function(d){var C=d.replace(A,D).toLowerCase();return"*"===d?function(){return!0}:function(d){return d.nodeName&&d.nodeName.toLowerCase()===C}},CLASS:function(d){var C=fO[d+" "];return C||(C=new RegExp("(^|"+i+")"+d+"("+i+"|$)"))&&fO(d,function(d){return C.test("string"==typeof d.className&&d.className||"undefined"!=typeof d.getAttribute&&d.getAttribute("class")||"")})},ATTR:function(d,C,g){return function(B){var b=J.attr(B,d);return null==b?"!="===C:!C||(b+="","="===C?b===g:"!="===C?b!==g:"^="===C?g&&0===b.indexOf(g):"*="===C?g&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function djb(d,C,g){return ai(C)?fc.grep(d,function(d,B){return!!C.call(d,B,d)!==g}):C.nodeType?fc.grep(d,function(d){return d===C!==g}):"string"!=typeof C?fc.grep(d,function(d){return-1)[^>]*|#([\w-]+))$/;(fc.fn.init=function(d,C,g){var B,b;if(!d)return this;if(g=g||K,"string"==typeof d){if(!(B="<"===d[0]&&">"===d[d.length-1]&&3<=d.length?[null,d,null]:fh.exec(d))||!B[1]&&C)return!C||C.jquery?(C||g).find(d):this.constructor(C).find(d);if(B[1]){if(C=C instanceof fc?C[0]:C,fc.merge(this,fc.parseHTML(B[1],C&&C.nodeType?C.ownerDocument||C:e,!0)),gI.test(B[1])&&fc.isPlainObject(C))for(B in C)ai(this[B])?this[B](C[B]):this.attr(B,C[B]);return this}return(b=e.getElementById(B[2]))&&(this[0]=b,this.length=1),this}return d.nodeType?(this[0]=d,this.length=1,this):ai(d)?void 0!==g.ready?g.ready(d):d(fc):fc.makeArray(d,this)}).prototype=fc.fn,K=fc(e);var gc=/^(?:parents|prev(?:Until|All))/,eQ={children:!0,contents:!0,next:!0,prev:!0};function aV(d,C){while((d=d[C])&&1!==d.nodeType);return d}fc.fn.extend({has:function(d){var C=fc(d,this),g=C.length;return this.filter(function(){for(var d=0;d\x20\t\r\n\f]*)/i,R=/^$|^module$|\/(?:java|ecma)script/i;N=e.createDocumentFragment().appendChild(e.createElement("div")),(O=e.createElement("input")).setAttribute("type","radio"),O.setAttribute("checked","checked"),O.setAttribute("name","t"),N.appendChild(O),aL.checkClone=N.cloneNode(!0).cloneNode(!0).lastChild.checked,N.innerHTML="",aL.noCloneChecked=!!N.cloneNode(!0).lastChild.defaultValue,N.innerHTML="",aL.option=!!N.lastChild;var U={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function V(d,C){var g;return g="undefined"!=typeof d.getElementsByTagName?d.getElementsByTagName(C||"*"):"undefined"!=typeof d.querySelectorAll?d.querySelectorAll(C||"*"):[],void 0===C||C&&aS(d,C)?fc.merge([d],g):g}function W(d,C){for(var g=0,B=d.length;g",""]);var X=/<|&#?\w+;/;function $(d,C,g,B,b){for(var Z,c,T,f,S,a,Y=C.createDocumentFragment(),dO=[],aL=0,ai=d.length;aL\s*$/g;function ad(d,C){return aS(d,"table")&&aS(11!==C.nodeType?C:C.firstChild,"tr")&&fc(d).children("tbody")[0]||d}function Yd(d){return d.type=(null!==d.getAttribute("type"))+"/"+d.type,d}function dOd(d){return"true/"===(d.type||"").slice(0,5)?d.type=d.type.slice(5):d.removeAttribute("type"),d}function aLd(d,C){var g,B,b,Z,c,T;if(1===C.nodeType){if(u.hasData(d)&&(T=u.get(d).events))for(b in u.remove(C,"handle events"),T)for(g=0,B=T[b].length;g").attr(d.scriptAttrs||{}).prop({charset:d.scriptCharset,src:d.url}).on("load error",g=function(d){C.remove(),g=null,d&&b("error"===d.type?404:200,d.type)}),e.head.appendChild(C[0])},abort:function(){g&&g()}}});var BC,bC=[],ZC=/(=)\?(?=&|$)|\?\?/;fc.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var d=bC.pop()||fc.expando+"_"+Dd.guid++;return this[d]=!0,d}}),fc.ajaxPrefilter("json jsonp",function(C,g,B){var b,Z,c,T=!1!==C.jsonp&&(ZC.test(C.url)?"url":"string"==typeof C.data&&0===(C.contentType||"").indexOf("application/x-www-form-urlencoded")&&ZC.test(C.data)&&"data");if(T||"jsonp"===C.dataTypes[0])return b=C.jsonpCallback=ai(C.jsonpCallback)?C.jsonpCallback():C.jsonpCallback,T?C[T]=C[T].replace(ZC,"$1"+b):!1!==C.jsonp&&(C.url+=(Fd.test(C.url)?"&":"?")+C.jsonp+"="+b),C.converters["script json"]=function(){return c||fc.error(b+" was not called"),c[0]},C.dataTypes[0]="json",Z=d[b],d[b]=function(){c=arguments},B.always(function(){void 0===Z?fc(d).removeProp(b):d[b]=Z,C[b]&&(C.jsonpCallback=g.jsonpCallback,bC.push(b)),c&&ai(Z)&&Z(c[0]),c=Z=void 0}),"script"}),aL.createHTMLDocument=((BC=e.implementation.createHTMLDocument("").body).innerHTML="
",2===BC.childNodes.length),fc.parseHTML=function(d,C,g){return"string"!=typeof d?[]:("boolean"==typeof C&&(g=C,C=!1),C||(aL.createHTMLDocument?((B=(C=e.implementation.createHTMLDocument("")).createElement("base")).href=e.location.href,C.head.appendChild(B)):C=e),Z=!g&&[],(b=gI.exec(d))?[C.createElement(b[1])]:(b=$([d],C,Z),Z&&Z.length&&fc(Z).remove(),fc.merge([],b.childNodes)));var B,b,Z},fc.fn.load=function(d,C,g){var B,b,Z,c=this,T=d.indexOf(" ");return-1").append(fc.parseHTML(d)).find(B):d)}).always(g&&function(d,C){c.each(function(){g.apply(this,Z||[d.responseText,C,d])})}),this},fc.expr.pseudos.animated=function(d){return fc.grep(fc.timers,function(C){return d===C.elem}).length},fc.offset={setOffset:function(d,C,g){var B,b,Z,c,T,f,S=fc.css(d,"position"),a=fc(d),Y={};"static"===S&&(d.style.position="relative"),T=a.offset(),Z=fc.css(d,"top"),f=fc.css(d,"left"),("absolute"===S||"fixed"===S)&&-1<(Z+f).indexOf("auto")?(c=(B=a.position()).top,b=B.left):(c=parseFloat(Z)||0,b=parseFloat(f)||0),ai(C)&&(C=C.call(d,g,fc.extend({},T))),null!=C.top&&(Y.top=C.top-T.top+c),null!=C.left&&(Y.left=C.left-T.left+b),"using"in C?C.using.call(d,Y):("number"==typeof Y.top&&(Y.top+="px"),"number"==typeof Y.left&&(Y.left+="px"),a.css(Y))}},fc.fn.extend({offset:function(d){if(arguments.length)return void 0===d?this:this.each(function(C){fc.offset.setOffset(this,d,C)});var C,g,B=this[0];return B?B.getClientRects().length?(C=B.getBoundingClientRect(),g=B.ownerDocument.defaultView,{top:C.top+g.pageYOffset,left:C.left+g.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var d,C,g,B=this[0],b={top:0,left:0};if("fixed"===fc.css(B,"position"))C=B.getBoundingClientRect();else{C=this.offset(),g=B.ownerDocument,d=B.offsetParent||g.documentElement;while(d&&(d===g.body||d===g.documentElement)&&"static"===fc.css(d,"position"))d=d.parentNode;d&&d!==B&&1===d.nodeType&&((b=fc(d).offset()).top+=fc.css(d,"borderTopWidth",!0),b.left+=fc.css(d,"borderLeftWidth",!0))}return{top:C.top-b.top-fc.css(B,"marginTop",!0),left:C.left-b.left-fc.css(B,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var d=this.offsetParent;while(d&&"static"===fc.css(d,"position"))d=d.offsetParent;return d||F})}}),fc.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(d,C){var g="pageYOffset"===C;fc.fn[d]=function(B){return n(this,function(d,B,b){var Z;if(df(d)?Z=d:9===d.nodeType&&(Z=d.defaultView),void 0===b)return Z?Z[C]:d[B];Z?Z.scrollTo(g?Z.pageXOffset:b,g?b:Z.pageYOffset):d[B]=b},d,B,arguments.length)}}),fc.each(["top","left"],function(d,C){fc.cssHooks[C]=fcd(aL.pixelPosition,function(d,g){if(g)return g=bFd(d,C),ed.test(g)?fc(d).position()[C]+"px":g})}),fc.each({Height:"height",Width:"width"},function(d,C){fc.each({padding:"inner"+d,content:C,"":"outer"+d},function(g,B){fc.fn[B]=function(b,Z){var c=arguments.length&&(g||"boolean"!=typeof b),T=g||(!0===b||!0===Z?"margin":"border");return n(this,function(C,g,b){var Z;return df(C)?0===B.indexOf("outer")?C["inner"+d]:C.document.documentElement["client"+d]:9===C.nodeType?(Z=C.documentElement,Math.max(C.body["scroll"+d],Z["scroll"+d],C.body["offset"+d],Z["offset"+d],Z["client"+d])):void 0===b?fc.css(C,g,T):fc.style(C,g,b,T)},C,c?b:void 0,c)}})}),fc.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(d,C){fc.fn[C]=function(d){return this.on(C,d)}}),fc.fn.extend({bind:function(d,C,g){return this.on(d,null,C,g)},unbind:function(d,C){return this.off(d,null,C)},delegate:function(d,C,g,B){return this.on(C,d,g,B)},undelegate:function(d,C,g){return 1===arguments.length?this.off(d,"**"):this.off(C,d||"**",g)},hover:function(d,C){return this.mouseenter(d).mouseleave(C||d)}}),fc.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(d,C){fc.fn[C]=function(d,g){return 0",{size:1}).attr("size")&&e.attrFn,gG=e.attr,gL=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},d=e.attrHooks.value&&e.attrHooks.value.set||function(){return a},L=/^(?:input|button)$/i,f=/^[238]$/,P=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,c=/^(?:checked|selected)$/i;g(e,"attrFn",aA||{},"jQuery.attrFn is deprecated"),e.attr=function(G,g,J,gL){var d=g.toLowerCase(),af=G&&G.nodeType;return gL&&(gG.length<4&&N("jQuery.fn.attr( props, pass ) is deprecated"),G&&!f.test(af)&&(aA?g in aA:e.isFunction(e.fn[g])))?e(G)[g](J):("type"===g&&J!==a&&L.test(G.nodeName)&&G.parentNode&&N("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[d]&&P.test(d)&&(e.attrHooks[d]={get:function(G,N){var g,J=e.prop(G,N);return J===!0||"boolean"!=typeof J&&(g=G.getAttributeNode(N))&&g.nodeValue!==!1?N.toLowerCase():a},set:function(G,a,N){var g;return a===!1?e.removeAttr(G,N):(g=e.propFix[N]||N,g in G&&(G[g]=!0),G.setAttribute(N,N.toLowerCase())),N}},c.test(d)&&N("jQuery.fn.attr('"+d+"') might use property instead of attribute")),gG.call(e,G,g,J))},e.attrHooks.value={get:function(e,G){var a=(e.nodeName||"").toLowerCase();return"button"===a?gL.apply(this,arguments):("input"!==a&&"option"!==a&&N("jQuery.fn.attr('value') no longer gets properties"),G in e?e.value:null)},set:function(e,G){var a=(e.nodeName||"").toLowerCase();return"button"===a?d.apply(this,arguments):("input"!==a&&"option"!==a&&N("jQuery.fn.attr('value', val) no longer sets properties"),void(e.value=G))}};var af,Ja,i=e.fn.init,ah=e.find,h=e.parseJSON,ad=/^\s*)([^>]*)$/;e.fn.init=function(G,g,J){var aA,gG;return G&&"string"==typeof G&&!e.isPlainObject(g)&&(aA=eg.exec(e.trim(G)))&&aA[0]&&(ad.test(G)||N("$(html) HTML strings must start with '<' character"),aA[3]&&N("$(html) HTML text after last tag is ignored"),"#"===aA[0].charAt(0)&&(N("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),g&&g.context&&g.context.nodeType&&(g=g.context),e.parseHTML)?i.call(this,e.parseHTML(aA[2],g&&g.ownerDocument||g||document,!0),g,J):(gG=i.apply(this,arguments),G&&G.selector!==a?(gG.selector=G.selector,gG.context=G.context):(gG.selector="string"==typeof G?G:"",G&&(gG.context=G.nodeType?G:g||document)),gG)},e.fn.init.prototype=e.fn,e.find=function(e){var G=Array.prototype.slice.call(arguments);if("string"==typeof e&&M.test(e))try{document.querySelector(e)}catch(a){e=e.replace(fd,function(e,G,a,N){return"["+G+a+'"'+N+'"]'});try{document.querySelector(e),N("Attribute selector with '#' must be quoted: "+G[0]),G[0]=e}catch(e){N("Attribute selector with '#' was not fixed: "+G[0])}}return ah.apply(this,G)};var gX;for(gX in ah)Object.prototype.hasOwnProperty.call(ah,gX)&&(e.find[gX]=ah[gX]);e.parseJSON=function(e){return e?h.apply(this,arguments):(N("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var G=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:G[1]||"",version:G[2]||"0"}},e.browser||(af=e.uaMatch(navigator.userAgent),Ja={},af.browser&&(Ja[af.browser]=!0,Ja.version=af.version),Ja.chrome?Ja.webkit=!0:Ja.webkit&&(Ja.safari=!0),e.browser=Ja),g(e,"browser",e.browser,"jQuery.browser is deprecated"),e.boxModel=e.support.boxModel="CSS1Compat"===document.compatMode,g(e,"boxModel",e.boxModel,"jQuery.boxModel is deprecated"),g(e.support,"boxModel",e.support.boxModel,"jQuery.support.boxModel is deprecated"),e.sub=function(){function G(e,a){return new G.fn.init(e,a)}e.extend(!0,G,this),G.superclass=this,G.fn=G.prototype=this(),G.fn.constructor=G,G.sub=this.sub,G.fn.init=function(N,g){var J=e.fn.init.call(this,N,g,a);return J instanceof G?J:G(J)},G.fn.init.prototype=G.fn;var a=G(document);return N("jQuery.sub() is deprecated"),G},e.fn.size=function(){return N("jQuery.fn.size() is deprecated; use the .length property"),this.length};var dO=!1;e.swap&&e.each(["height","width","reliableMarginRight"],function(G,a){var N=e.cssHooks[a]&&e.cssHooks[a].get;N&&(e.cssHooks[a].get=function(){var e;return dO=!0,e=N.apply(this,arguments),dO=!1,e})}),e.swap=function(e,G,a,g){var J,aA,gG={};dO||N("jQuery.swap() is undocumented and deprecated");for(aA in G)gG[aA]=e.style[aA],e.style[aA]=G[aA];J=a.apply(e,g||[]);for(aA in G)e.style[aA]=gG[aA];return J},e.ajaxSetup({converters:{"text json":e.parseJSON}});var ac=e.fn.data;e.fn.data=function(G){var g,J,aA=this[0];return!aA||"events"!==G||1!==arguments.length||(g=e.data(aA,G),J=e._data(aA,G),g!==a&&g!==J||J===a)?ac.apply(this,arguments):(N("Use of jQuery.fn.data('events') is deprecated"),J)};var eJ=/\/(java|ecma)script/i;e.clean||(e.clean=function(G,a,g,J){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,N("jQuery.clean() is deprecated");var aA,gG,gL,d,L=[];if(e.merge(L,e.buildFragment(G,a).childNodes),g)for(gL=function(e){return!e.type||eJ.test(e.type)?J?J.push(e.parentNode?e.parentNode.removeChild(e):e):g.appendChild(e):void 0},aA=0;null!=(gG=L[aA]);aA++)e.nodeName(gG,"script")&&gL(gG)||(g.appendChild(gG),"undefined"!=typeof gG.getElementsByTagName&&(d=e.grep(e.merge([],gG.getElementsByTagName("script")),gL),L.splice.apply(L,[aA+1,0].concat(d)),aA+=d.length));return L});var dh=e.event.add,fX=e.event.remove,fXb=e.event.trigger,Lc=e.fn.toggle,X=e.fn.live,eI=e.fn.die,eQ=e.fn.load,ca="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",dN=new RegExp("\\b(?:"+ca+")\\b"),b=/(?:^|\s)hover(\.\S+|)\b/,j=function(G){return"string"!=typeof G||e.event.special.hover?G:(b.test(G)&&N("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),G&&G.replace(b,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&g(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,G,a,g,J){e!==document&&dN.test(G)&&N("AJAX events should be attached to document: "+G),dh.call(this,e,j(G||""),a,g,J)},e.event.remove=function(e,G,a,N,g){fX.call(this,e,j(G)||"",a,N,g)},e.each(["load","unload","error"],function(G,a){e.fn[a]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===a&&"string"==typeof e[0]?eQ.apply(this,e):(N("jQuery.fn."+a+"() is deprecated"),e.splice(0,0,a),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this))}}),e.fn.toggle=function(G,a){if(!e.isFunction(G)||!e.isFunction(a))return Lc.apply(this,arguments);N("jQuery.fn.toggle(handler, handler...) is deprecated");var g=arguments,J=G.guid||e.guid++,aA=0,gG=function(a){var N=(e._data(this,"lastToggle"+G.guid)||0)%aA;return e._data(this,"lastToggle"+G.guid,N+1),a.preventDefault(),g[N].apply(this,arguments)||!1};for(gG.guid=J;aA 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); }); }));