function setCookie(e,t,n,r,i,o){document.cookie=e+"="+escape(t)+(n?"; expires="+n.toGMTString():"")+(r?"; path="+r:"")+(i?"; domain="+i:"")+(o?"; secure":"")}function getCookie(e){var t=document.cookie,n=e+"=",r=t.indexOf("; "+n);if(-1==r){if(0!=(r=t.indexOf(n)))return null}else r+=2;var i=document.cookie.indexOf(";",r);return-1==i&&(i=t.length),unescape(decodeURI(t.substring(r+n.length,i))).split("+").join(" ")}function deleteCookie(e,t,n){getCookie(e)&&(document.cookie=e+"="+(t?"; path="+t:"")+(n?"; domain="+n:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT")}!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(N,e){function s(e){var t=!!e&&"length"in e&&e.length,n=he.type(e);return"function"!==n&&!he.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0"!==c[1]||Je.test(a)?0:u:u.firstChild)&&a.childNodes.length;o--;)he.nodeName(l=a.childNodes[o],"tbody")&&!l.childNodes.length&&a.removeChild(l);for(he.merge(m,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=h.lastChild}else m.push(t.createTextNode(a));for(u&&h.removeChild(u),ce.appendChecked||he.grep(y(m,"input"),x),p=0;a=m[p++];)if(r&&-1")).appendTo(t.documentElement))[0].contentWindow||lt[0].contentDocument).document).write(),t.close(),n=F(e,t),lt.detach()),ct[e]=n),n}function _(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function D(e){if(e in At)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=Tt.length;n--;)if((e=Tt[n]+t)in At)return e}function L(e,t){for(var n,r,i,o=[],a=0,s=e.length;ak.cacheLength&&delete n[r.shift()],n[e+" "]=t}var r=[];return n}function u(e){return e[O]=!0,e}function i(e){var t=D.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function t(e,t){for(var n=e.split("|"),r=n.length;r--;)k.attrHandle[n[r]]=t}function d(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function r(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function o(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function a(a){return u(function(o){return o=+o,u(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function p(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function s(){}function g(e){for(var t=0,n=e.length,r="";t+~]|"+ne+")"+ne+"*"),le=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),ce=new RegExp(oe),fe=new RegExp("^"+re+"$"),he={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},me=/^(?:input|select|textarea|button)$/i,pe=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,xe=/'|\\/g,be=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},ke=function(){_()};try{K.apply(Y=Z.call($.childNodes),$.childNodes),Y[$.childNodes.length].nodeType}catch(Ne){K={apply:Y.length?function(e,t){G.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}for(m in y=b.support={},j=b.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},_=b.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:$;return r!==D&&9===r.nodeType&&r.documentElement&&(L=(D=r).documentElement,q=!j(D),(n=D.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",ke,!1):n.attachEvent&&n.attachEvent("onunload",ke)),y.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),y.getElementsByTagName=i(function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length}),y.getElementsByClassName=ge.test(D.getElementsByClassName),y.getById=i(function(e){return L.appendChild(e).id=O,!D.getElementsByName||!D.getElementsByName(O).length}),y.getById?(k.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&q){var n=t.getElementById(e);return n?[n]:[]}},k.filter.ID=function(e){var t=e.replace(be,we);return function(e){return e.getAttribute("id")===t}}):(delete k.find.ID,k.filter.ID=function(e){var n=e.replace(be,we);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}}),k.find.TAG=y.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):y.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},k.find.CLASS=y.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&q)return t.getElementsByClassName(e)},M=[],H=[],(y.qsa=ge.test(D.querySelectorAll))&&(i(function(e){L.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&H.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||H.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+O+"-]").length||H.push("~="),e.querySelectorAll(":checked").length||H.push(":checked"),e.querySelectorAll("a#"+O+"+*").length||H.push(".#.+[+~]")}),i(function(e){var t=D.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&H.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||H.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),H.push(",.*:")})),(y.matchesSelector=ge.test(I=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&i(function(e){y.disconnectedMatch=I.call(e,"div"),I.call(e,"[s!='']:x"),M.push("!=",oe)}),H=H.length&&new RegExp(H.join("|")),M=M.length&&new RegExp(M.join("|")),t=ge.test(L.compareDocumentPosition),R=t||ge.test(L.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},X=t?function(e,t){if(e===t)return E=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!y.sortDetached&&t.compareDocumentPosition(e)===n?e===D||e.ownerDocument===$&&R($,e)?-1:t===D||t.ownerDocument===$&&R($,t)?1:F?ee(F,e)-ee(F,t):0:4&n?-1:1)}:function(e,t){if(e===t)return E=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===D?-1:t===D?1:i?-1:o?1:F?ee(F,e)-ee(F,t):0;if(i===o)return d(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?d(a[r],s[r]):a[r]===$?-1:s[r]===$?1:0}),D},b.matches=function(e,t){return b(e,null,null,t)},b.matchesSelector=function(e,t){if((e.ownerDocument||e)!==D&&_(e),t=t.replace(le,"='$1']"),y.matchesSelector&&q&&!W[t+" "]&&(!M||!M.test(t))&&(!H||!H.test(t)))try{var n=I.call(e,t);if(n||y.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(Ne){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||b.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&b.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=T(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Q[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&Q(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=b.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1(?:<\/\1>|)$/,Ne=/^.[^:#\[\.,]*$/;he.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?he.find.matchesSelector(r,e)?[r]:[]:he.find.matches(e,he.grep(t,function(e){return 1===e.nodeType}))},he.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(he(e).filter(function(){for(t=0;t)[^>]*|#([\w-]*))$/;(he.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||je,"string"==typeof e){if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Te.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof he?t[0]:t,he.merge(this,he.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:re,!0)),ke.test(r[1])&&he.isPlainObject(t))for(r in t)he.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if((i=re.getElementById(r[2]))&&i.parentNode){if(i.id!==r[2])return je.find(e);this.length=1,this[0]=i}return this.context=re,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):he.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(he):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),he.makeArray(e,this))}).prototype=he.fn,je=he(re);var Ae=/^(?:parents|prev(?:Until|All))/,Ce={children:!0,contents:!0,next:!0,prev:!0};he.fn.extend({has:function(e){var t,n=he(e,this),r=n.length;return this.filter(function(){for(t=0;t
a",ce.leadingWhitespace=3===He.firstChild.nodeType,ce.tbody=!He.getElementsByTagName("tbody").length,ce.htmlSerialize=!!He.getElementsByTagName("link").length,ce.html5Clone="<:nav>"!==re.createElement("nav").cloneNode(!0).outerHTML,Ie.type="checkbox",Ie.checked=!0,Me.appendChild(Ie),ce.appendChecked=Ie.checked,He.innerHTML="",ce.noCloneChecked=!!He.cloneNode(!0).lastChild.defaultValue,Me.appendChild(He),(Ie=re.createElement("input")).setAttribute("type","radio"),Ie.setAttribute("checked","checked"),Ie.setAttribute("name","t"),He.appendChild(Ie),ce.checkClone=He.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.noCloneEvent=!!He.addEventListener,He[he.expando]=1,ce.attributes=!He.getAttribute(he.expando);var Ue={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:ce.htmlSerialize?[0,"",""]:[1,"X
","
"]};Ue.optgroup=Ue.option,Ue.tbody=Ue.tfoot=Ue.colgroup=Ue.caption=Ue.thead,Ue.th=Ue.td;var Ye=/<|&#?\w+;/,Je=/]","i"),it=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ot=/\s*$/g,dt=g(re).appendChild(re.createElement("div"));he.extend({htmlPrefilter:function(e){return e.replace(it,"<$1>")},clone:function(e,t,n){var r,i,o,a,s,u=he.contains(e.ownerDocument,e);if(ce.html5Clone||he.isXMLDoc(e)||!rt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(dt.innerHTML=e.outerHTML,dt.removeChild(o=dt.firstChild)),!(ce.noCloneEvent&&ce.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||he.isXMLDoc(e)))for(r=y(o),s=y(e),a=0;null!=(i=s[a]);++a)r[a]&&A(i,r[a]);if(t)if(n)for(s=s||y(e),r=r||y(o),a=0;null!=(i=s[a]);a++)T(i,r[a]);else T(e,o);return 0<(r=y(o,"script")).length&&v(r,!u&&y(e,"script")),r=s=i=null,o},cleanData:function(e,t){for(var n,r,i,o,a=0,s=he.expando,u=he.cache,d=ce.attributes,l=he.event.special;null!=(n=e[a]);a++)if((t||De(n))&&(o=(i=n[s])&&u[i])){if(o.events)for(r in o.events)l[r]?he.event.remove(n,r):he.removeEvent(n,r,o.handle);u[i]&&(delete u[i],d||"undefined"==typeof n.removeAttribute?n[s]=undefined:n.removeAttribute(s),ne.push(i))}}}),he.fn.extend({domManip:C,detach:function(e){return S(this,e,!0)},remove:function(e){return S(this,e)},text:function(e){return ze(this,function(e){return e===undefined?he.text(this):this.empty().append((this[0]&&this[0].ownerDocument||re).createTextNode(e))},null,e,arguments.length)},append:function(){return C(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||w(this,e).appendChild(e)})},prepend:function(){return C(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=w(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return C(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return C(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&he.cleanData(y(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&he.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return he.clone(this,e,t)})},html:function(e){return ze(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined)return 1===t.nodeType?t.innerHTML.replace(nt,""):undefined;if("string"==typeof e&&!ot.test(e)&&(ce.htmlSerialize||!rt.test(e))&&(ce.leadingWhitespace||!Xe.test(e))&&!Ue[(Be.exec(e)||["",""])[1].toLowerCase()]){e=he.htmlPrefilter(e);try{for(;nt",l.childNodes[0].style.borderCollapse="separate",(e=l.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(a=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",a=0===e[0].offsetHeight)),n.removeChild(d)}var r,i,o,a,s,u,d=re.createElement("div"),l=re.createElement("div");l.style&&(l.style.cssText="float:left;opacity:.5",ce.opacity="0.5"===l.style.opacity,ce.cssFloat=!!l.style.cssFloat,l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",ce.clearCloneStyle="content-box"===l.style.backgroundClip,(d=re.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",l.innerHTML="",d.appendChild(l),ce.boxSizing=""===l.style.boxSizing||""===l.style.MozBoxSizing||""===l.style.WebkitBoxSizing,he.extend(ce,{reliableHiddenOffsets:function(){return null==r&&e(),a},boxSizingReliable:function(){return null==r&&e(),o},pixelMarginRight:function(){return null==r&&e(),i},pixelPosition:function(){return null==r&&e(),r},reliableMarginRight:function(){return null==r&&e(),s},reliableMarginLeft:function(){return null==r&&e(),u}}))}();var gt,yt,vt=/^(top|right|bottom|left)$/;N.getComputedStyle?(gt=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=N),t.getComputedStyle(e)},yt=function(e,t,n){var r,i,o,a,s=e.style;return""!==(a=(n=n||gt(e))?n.getPropertyValue(t)||n[t]:undefined)&&a!==undefined||he.contains(e.ownerDocument,e)||(a=he.style(e,t)),n&&!ce.pixelMarginRight()&&ht.test(a)&&ft.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o),a===undefined?a:a+""}):pt.currentStyle&&(gt=function(e){return e.currentStyle},yt=function(e,t,n){var r,i,o,a,s=e.style;return null==(a=(n=n||gt(e))?n[t]:undefined)&&s&&s[t]&&(a=s[t]),ht.test(a)&&!vt.test(t)&&(r=s.left,(o=(i=e.runtimeStyle)&&i.left)&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),a===undefined?a:a+""||"auto"});var xt=/alpha\([^)]*\)/i,bt=/opacity\s*=\s*([^)]*)/i,wt=/^(none|table(?!-c[ea]).+)/,kt=new RegExp("^("+Re+")(.*)$","i"),Nt={position:"absolute",visibility:"hidden",display:"block"},jt={letterSpacing:"0",fontWeight:"400"},Tt=["Webkit","O","Moz","ms"],At=re.createElement("div").style;he.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=yt(e,"opacity");return""===n?"1":n}}}},cssNumber:{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},cssProps:{"float":ce.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=he.camelCase(t),u=e.style;if(t=he.cssProps[s]||(he.cssProps[s]=D(s)||s),a=he.cssHooks[t]||he.cssHooks[s],n===undefined)return a&&"get"in a&&(i=a.get(e,!1,r))!==undefined?i:u[t];if("string"===(o=typeof n)&&(i=Oe.exec(n))&&i[1]&&(n=c(e,t,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(he.cssNumber[s]?"":"px")),ce.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),!(a&&"set"in a&&(n=a.set(e,n,r))===undefined)))try{u[t]=n}catch(d){}}},css:function(e,t,n,r){var i,o,a,s=he.camelCase(t);return t=he.cssProps[s]||(he.cssProps[s]=D(s)||s),(a=he.cssHooks[t]||he.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),o===undefined&&(o=yt(e,t,r)),"normal"===o&&t in jt&&(o=jt[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),he.each(["height","width"],function(e,i){he.cssHooks[i]={get:function(e,t,n){if(t)return wt.test(he.css(e,"display"))&&0===e.offsetWidth?mt(e,Nt,function(){return M(e,i,n)}):M(e,i,n)},set:function(e,t,n){var r=n&>(e);return q(e,t,n?H(e,i,n,ce.boxSizing&&"border-box"===he.css(e,"boxSizing",!1,r),r):0)}}}),ce.opacity||(he.cssHooks.opacity={get:function(e,t){return bt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=he.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";((n.zoom=1)<=t||""===t)&&""===he.trim(o.replace(xt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=xt.test(o)?o.replace(xt,i):o+" "+i)}}),he.cssHooks.marginRight=_(ce.reliableMarginRight,function(e,t){if(t)return mt(e,{display:"inline-block"},yt,[e,"marginRight"])}),he.cssHooks.marginLeft=_(ce.reliableMarginLeft,function(e,t){if(t)return(parseFloat(yt(e,"marginLeft"))||(he.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-mt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),he.each({margin:"",padding:"",border:"Width"},function(i,o){he.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+$e[t]+o]=r[t]||r[t-2]||r[0];return n}},ft.test(i)||(he.cssHooks[i+o].set=q)}),he.fn.extend({css:function(e,t){return ze(this,function(e,t,n){var r,i,o={},a=0;if(he.isArray(t)){for(r=gt(e),i=t.length;a
a",Ft=_t.getElementsByTagName("a")[0],Et.setAttribute("type","checkbox"),_t.appendChild(Et),(Ft=_t.getElementsByTagName("a")[0]).style.cssText="top:1px",ce.getSetAttribute="t"!==_t.className,ce.style=/top/.test(Ft.getAttribute("style")),ce.hrefNormalized="/a"===Ft.getAttribute("href"),ce.checkOn=!!Et.value,ce.optSelected=Lt.selected,ce.enctype=!!re.createElement("form").enctype,Dt.disabled=!0,ce.optDisabled=!Lt.disabled,(Et=re.createElement("input")).setAttribute("value",""),ce.input=""===Et.getAttribute("value"),Et.value="t",Et.setAttribute("type","radio"),ce.radioValue="t"===Et.value;var Mt=/\r/g,It=/[\x20\t\r\n\f]+/g;he.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=he.isFunction(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,he(this).val()):n)?t="":"number"==typeof t?t+="":he.isArray(t)&&(t=he.map(t,function(e){return null==e?"":e+""})),(r=he.valHooks[this.type]||he.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&r.set(this,t,"value")!==undefined||(this.value=t))})):t?(r=he.valHooks[t.type]||he.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&(e=r.get(t,"value"))!==undefined?e:"string"==typeof(e=t.value)?e.replace(Mt,""):null==e?"":e:void 0}}),he.extend({valHooks:{option:{get:function(e){var t=he.find.attr(e,"value");return null!=t?t:he.trim(he.text(e)).replace(It," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u").append(he.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){he.fn[t]=function(e){return this.on(t,e)}}),he.expr.filters.animated=function(t){return he.grep(he.timers,function(e){return t===e.elem}).length},he.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,d=he.css(e,"position"),l=he(e),c={};"static"===d&&(e.style.position="relative"),s=l.offset(),o=he.css(e,"top"),u=he.css(e,"left"),("absolute"===d||"fixed"===d)&&-1'),s='';o===u||i===u||d.isCrossDomain(t)||(s+=''),r&&a.attr("target",r),a.hide().append(s).appendTo("body"),a.submit()},formElements:function(e,t){return e.is("form")?l(e[0].elements).filter(t):e.find(t)},disableFormElements:function(e){d.formElements(e,d.disableSelector).each(function(){d.disableFormElement(l(this))})},disableFormElement:function(e){var t,n;t=e.is("button")?"html":"val",(n=e.data("disable-with"))!==u&&(e.data("ujs:enable-with",e[t]()),e[t](n)),e.prop("disabled",!0),e.data("ujs:disabled",!0)},enableFormElements:function(e){d.formElements(e,d.enableSelector).each(function(){d.enableFormElement(l(this))})},enableFormElement:function(e){var t=e.is("button")?"html":"val";e.data("ujs:enable-with")!==u&&(e[t](e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.prop("disabled",!1),e.removeData("ujs:disabled")},allowAction:function(e){var t,n=e.data("confirm"),r=!1;if(!n)return!0;if(d.fire(e,"confirm")){try{r=d.confirm(n)}catch(i){(console.error||console.log).call(console,i.stack||i)}t=d.fire(e,"confirm:complete",[r])}return r&&t},blankInputs:function(e,t,n){var r,i,o,a=l(),s=t||"input,textarea",u=e.find(s),d={};return u.each(function(){(r=l(this)).is("input[type=radio]")?(o=r.attr("name"),d[o]||(0===e.find('input[type=radio]:checked[name="'+o+'"]').length&&(i=e.find('input[type=radio][name="'+o+'"]'),a=a.add(i)),d[o]=o)):(r.is("input[type=checkbox],input[type=radio]")?r.is(":checked"):!!r.val())===n&&(a=a.add(r))}),!!a.length&&a},nonBlankInputs:function(e,t){return d.blankInputs(e,t,!0)},stopEverything:function(e){return l(e.target).trigger("ujs:everythingStopped"),e.stopImmediatePropagation(),!1},disableElement:function(e){var t=e.data("disable-with");t!==u&&(e.data("ujs:enable-with",e.html()),e.html(t)),e.bind("click.railsDisable",function(e){return d.stopEverything(e)}),e.data("ujs:disabled",!0)},enableElement:function(e){e.data("ujs:enable-with")!==u&&(e.html(e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.unbind("click.railsDisable"),e.removeData("ujs:disabled")}},d.fire(e,"rails:attachBindings")&&(l.ajaxPrefilter(function(e,t,n){e.crossDomain||d.CSRFProtection(n)}),l(window).on("pageshow.rails",function(){l(l.rails.enableSelector).each(function(){var e=l(this);e.data("ujs:disabled")&&l.rails.enableFormElement(e)}),l(l.rails.linkDisableSelector).each(function(){var e=l(this);e.data("ujs:disabled")&&l.rails.enableElement(e)})}),e.on("ajax:complete",d.linkDisableSelector,function(){d.enableElement(l(this))}),e.on("ajax:complete",d.buttonDisableSelector,function(){d.enableFormElement(l(this))}),e.on("click.rails",d.linkClickSelector,function(e){var t=l(this),n=t.data("method"),r=t.data("params"),i=e.metaKey||e.ctrlKey;if(!d.allowAction(t))return d.stopEverything(e);if(!i&&t.is(d.linkDisableSelector)&&d.disableElement(t),d.isRemote(t)){if(i&&(!n||"GET"===n)&&!r)return!0;var o=d.handleRemote(t);return!1===o?d.enableElement(t):o.fail(function(){d.enableElement(t)}),!1}return n?(d.handleMethod(t),!1):void 0}),e.on("click.rails",d.buttonClickSelector,function(e){var t=l(this);if(!d.allowAction(t)||!d.isRemote(t))return d.stopEverything(e);t.is(d.buttonDisableSelector)&&d.disableFormElement(t);var n=d.handleRemote(t);return!1===n?d.enableFormElement(t):n.fail(function(){d.enableFormElement(t)}),!1}),e.on("change.rails",d.inputChangeSelector,function(e){var t=l(this);return d.allowAction(t)&&d.isRemote(t)?(d.handleRemote(t),!1):d.stopEverything(e)}),e.on("submit.rails",d.formSubmitSelector,function(e){var t,n,r=l(this),i=d.isRemote(r);if(!d.allowAction(r))return d.stopEverything(e);if(r.attr("novalidate")===u)if(r.data("ujs:formnovalidate-button")===u){if((t=d.blankInputs(r,d.requiredInputSelector,!1))&&d.fire(r,"ajax:aborted:required",[t]))return d.stopEverything(e)}else r.data("ujs:formnovalidate-button",u);if(i){if(n=d.nonBlankInputs(r,d.fileInputSelector)){setTimeout(function(){d.disableFormElements(r)},13);var o=d.fire(r,"ajax:aborted:file",[n]);return o||setTimeout(function(){d.enableFormElements(r)},13),o}return d.handleRemote(r),!1}setTimeout(function(){d.disableFormElements(r)},13)}),e.on("click.rails",d.formInputClickSelector,function(e){var t=l(this);if(!d.allowAction(t))return d.stopEverything(e);var n=t.attr("name"),r=n?{name:n,value:t.val()}:null,i=t.closest("form");0===i.length&&(i=l("#"+t.attr("form"))),i.data("ujs:submit-button",r),i.data("ujs:formnovalidate-button",t.attr("formnovalidate")),i.data("ujs:submit-button-formaction",t.attr("formaction")),i.data("ujs:submit-button-formmethod",t.attr("formmethod"))}),e.on("ajax:send.rails",d.formSubmitSelector,function(e){this===e.target&&d.disableFormElements(l(this))}),e.on("ajax:complete.rails",d.formSubmitSelector,function(e){this===e.target&&d.enableFormElements(l(this))}),l(function(){d.refreshCSRFTokens()}))}(jQuery),function(){"use strict";var o,n;o=jQuery,(n=function(e,t){var n,r,i=this;return this.options=o.extend({title:null,footer:null,remote:null},o.fn.ekkoLightbox.defaults,t||{}),this.$element=o(e),"",this.modal_id=this.options.modal_id?this.options.modal_id:"ekkoLightbox-"+Math.floor(1e3*Math.random()+1),r='",n='",o(document.body).append('"),this.modal=o("#"+this.modal_id),this.modal_dialog=this.modal.find(".modal-dialog").first(),this.modal_content=this.modal.find(".modal-content").first(),this.modal_body=this.modal.find(".modal-body").first(),this.lightbox_container=this.modal_body.find(".ekko-lightbox-container").first(),this.lightbox_body=this.lightbox_container.find("> div:first-child").first(),this.showLoading(),this.modal_arrows=null,this.border={top:parseFloat(this.modal_dialog.css("border-top-width"))+parseFloat(this.modal_content.css("border-top-width"))+parseFloat(this.modal_body.css("border-top-width")),right:parseFloat(this.modal_dialog.css("border-right-width"))+parseFloat(this.modal_content.css("border-right-width"))+parseFloat(this.modal_body.css("border-right-width")),bottom:parseFloat(this.modal_dialog.css("border-bottom-width"))+parseFloat(this.modal_content.css("border-bottom-width"))+parseFloat(this.modal_body.css("border-bottom-width")),left:parseFloat(this.modal_dialog.css("border-left-width"))+parseFloat(this.modal_content.css("border-left-width"))+parseFloat(this.modal_body.css("border-left-width"))},this.padding={top:parseFloat(this.modal_dialog.css("padding-top"))+parseFloat(this.modal_content.css("padding-top"))+parseFloat(this.modal_body.css("padding-top")),right:parseFloat(this.modal_dialog.css("padding-right"))+parseFloat(this.modal_content.css("padding-right"))+parseFloat(this.modal_body.css("padding-right")),bottom:parseFloat(this.modal_dialog.css("padding-bottom"))+parseFloat(this.modal_content.css("padding-bottom"))+parseFloat(this.modal_body.css("padding-bottom")),left:parseFloat(this.modal_dialog.css("padding-left"))+parseFloat(this.modal_content.css("padding-left"))+parseFloat(this.modal_body.css("padding-left"))},this.modal.on("show.bs.modal",this.options.onShow.bind(this)).on("shown.bs.modal",function(){return i.modal_shown(),i.options.onShown.call(i)}).on("hide.bs.modal",this.options.onHide.bind(this)).on("hidden.bs.modal",function(){return i.gallery&&o(document).off("keydown.ekkoLightbox"),i.modal.remove(),i.options.onHidden.call(i)}).modal("show",t),this.modal}).prototype={modal_shown:function(){var e,t=this;return this.options.remote?(this.gallery=this.$element.data("gallery"),this.gallery&&("document.body"===this.options.gallery_parent_selector||""===this.options.gallery_parent_selector?this.gallery_items=o(document.body).find('*[data-toggle="lightbox"][data-gallery="'+this.gallery+'"]'):this.gallery_items=this.$element.parents(this.options.gallery_parent_selector).first().find('*[data-toggle="lightbox"][data-gallery="'+this.gallery+'"]'),this.gallery_index=this.gallery_items.index(this.$element),o(document).on("keydown.ekkoLightbox",this.navigate.bind(this)),this.options.directional_arrows&&1'),this.modal_arrows=this.lightbox_container.find("div.ekko-lightbox-nav-overlay").first(),this.lightbox_container.find("a"+this.strip_spaces(this.options.left_arrow_class)).on("click",function(e){return e.preventDefault(),t.navigate_left()}),this.lightbox_container.find("a"+this.strip_spaces(this.options.right_arrow_class)).on("click",function(e){return e.preventDefault(),t.navigate_right()}))),this.options.type?"image"===this.options.type?this.preloadImage(this.options.remote,!0):"youtube"===this.options.type&&(e=this.getYoutubeId(this.options.remote))?this.showYoutubeVideo(e):"vimeo"===this.options.type?this.showVimeoVideo(this.options.remote):"instagram"===this.options.type?this.showInstagramVideo(this.options.remote):this.error('Could not detect remote target type. Force the type using data-type="image|youtube|vimeo"'):this.detectRemoteType(this.options.remote)):this.error("No remote target given")},strip_stops:function(e){return e.replace(/\./g,"")},strip_spaces:function(e){return e.replace(/\s/g,"")},isImage:function(e){return e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSwf:function(e){return e.match(/\.(swf)((\?|#).*)?$/i)},getYoutubeId:function(e){var t;return!(!(t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/))||11!==t[2].length)&&t[2]},getVimeoId:function(e){return 0Loading..'),this},showYoutubeVideo:function(e){var t,n,r;if(t=560/315,r=this.$element.data("width")||560,n=(r=this.checkDimensions(r))/t,this.resize(r),this.lightbox_body.html(''),this.modal_arrows)return this.modal_arrows.css("display","none")},showVimeoVideo:function(e){var t,n,r;if(t=500/281,r=this.$element.data("width")||560,n=(r=this.checkDimensions(r))/t,this.resize(r),this.lightbox_body.html(''),this.modal_arrows)return this.modal_arrows.css("display","none")},showInstagramVideo:function(e){var t,n;if(n=this.$element.data("width")||612,t=n=this.checkDimensions(n),this.resize(n),this.lightbox_body.html(''),this.modal_arrows)return this.modal_arrows.css("display","none")},error:function(e){return this.lightbox_body.html(e),this},preloadImage:function(e,t){var n,r=this;return n=new Image,null!=t&&!0!==t||(n.onload=function(){var e;return(e=o("")).attr("src",n.src),e.addClass("img-responsive"),r.lightbox_body.html(e),r.modal_arrows&&r.modal_arrows.css("display","block"),r.resize(n.width)},n.onerror=function(){return r.error("Failed to load image: "+e)}),n.src=e,n},resize:function(e){var t;return t=e+this.border.left+this.padding.left+this.padding.right+this.border.right,this.modal_dialog.css("width","auto").css("max-width",t),this.lightbox_container.find("a").css("padding-top",function(){return o(this).parent().height()/2}),this},checkDimensions:function(e){var t;return t=e+this.border.left+this.padding.left+this.padding.right+this.border.right,document.body.clientWidth