1function toggleCampaignTab(t){!0===$(".campaign-update-tab").find("a").hasClass("accent-"+t)?($("#campaign-long-description").show().attr("aria-hidden",!1),$(".campaign-updates").hide().attr("aria-hidden",!0),$(".campaign-about-tab").find("a").addClass("accent-"+t).attr("aria-selected",!0),$(".campaign-update-tab").find("a").removeClass("accent-"+t).attr("aria-selected",!1)):($(".campaign-updates").show().attr("aria-hidden",!1),$("#campaign-long-description").hide().attr("aria-hidden",!0),$(".campaign-about-tab").find("a").removeClass("accent-"+t).attr("aria-selected",!1),$(".campaign-update-tab").find("a").addClass("accent-"+t).attr("aria-selected",!0))}function progressbar(t){$duration=t||200,$(".js-progressbar").each(function(){$percentage=$(this).attr("data-percent-raised"),$percentage>0&&$(this).animate({width:$percentage+"%"},$duration),$percentage>50&&$(this).removeClass("text-shadow")})}function populateName(){0===$("#cardholder-alt-name-text").val().length?putNameInField($("#donation_first_name").val()+" "+$("#donation_last_name").val()):putNameInField($("#cardholder-alt-name-text").val())}function putNameInField(t){$("#cardholder_hidden_name").val(t),$("#cardholder-name").val(t)}function handleDurations(t){t.length>0&&t.each(function(){var t=$(this);if(["",null].includes(t.data("ends-at")))return t.html("Infinity"),void t.next(".js-duration-unit").html("days");
1if(!this.interval){var e,n,r,i=new Date(t.data("ends-at")).getTime(),o=(new Date).getTime();if(this.totalSeconds=(i-o)/1e3,this.totalSeconds<0)return t.html("0"),void t.next(".js-duration-unit").html("mins");var s=this;this.interval=setInterval(function(){s.totalSeconds-=1,e=Math.floor(s.totalSeconds/86400),n=Math.floor(s.totalSeconds%216e3/3600),r=Math.floor(s.totalSeconds%3600/60);var t=$(s);e>=2?(t.html(e),t.next(".js-duration-unit").html("days")):n>1?(t.html(n),t.next(".js-duration-unit").html("hours")):1===n?(t.html(n),t.next(".js-duration-unit").html("hour")):((r>1||0===r)&&(t.html(r),t.next(".js-duration-unit").html("minutes")),1===r&&(t.html(r),t.next(".js-duration-unit").html("minute")))},1e3)}})}function handleRowClick(t){if($(this).data("href")){var e=$(this).data("href");$(t.target).parents(".dropdown-wrapper").length||(t.preventDefault(),window.location=e)}}function handleEnterBtn(t){$(this).data("href")&&13===t.keyCode&&$(t.target).is(":focus")&&!$(t.target).parents(".dropdown-wrapper").length&&(window.location=$(t.target).data("href"))}function truncate(t,e){if(t.length){e=void 0!==e?e:1;var n=t.css("line-height").slice(0,-2);t.each(function(){if($(this).text($(this).attr("title")),$(this).height()>e*n){var t=$(this).attr("title").split(" "),r="",i="";$(this).text("");for(var o=0;o<t.length;o++){if($(this).height()>e*n){$(this).html(i.trim()+"…");break}i=r,r+=t[o]+" ",$(this).html(r.trim()+"…")}$(this).height()>e*n&&$(this).html(i.trim()+"…")}return this})}}function resetUrlInputValidity(t){$(t).next(".inline-form-errors").addClass("is-hidden").find("ul").empty(),t.setCustomValidity("")}function markUrlInputInvalid(t){urlValidationMessage="URLs must be fully formatted (e.g. https://example.com).",t.setCustomValidity(urlValidationMessage),$(t).next(".inline-form-errors").removeClass("is-hidden").find("ul").empty().append(`<li>${urlValidationMessage}</li>`)}!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=!!t&&"length"in t&&t.length,n=ot.type(t);return"function"!==n&&!ot.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function r(t,e,n){if(ot.isFunction(e))return ot.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return ot.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(mt.test(e))return ot.filter(e,t,n);e=ot.filter(e,t)}return ot.grep(t,function(t){return Z.call(e,t)>-1!==n})}function i(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e={};return ot.each(t.match(xt)||[],function(t,n){e[n]=!0}),e}function s(){Q.removeEventListener("DOMContentLoaded",s),t.removeEventListener("load",s),ot.ready()}function a(){this.expando=ot.expando+a.uid++}function u(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(At,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Tt.test(n)?ot.parseJSON(n):n)}catch(t){}kt.set(t,e,n)}else n=void 0;return n}function l(t,e,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return ot.css(t,e,"")},u=a(),l=n&&n[3]||(ot.cssNumber[e]?"":"px"),c=(ot.cssNumber[e]||"px"!==l&&+u)&&$t.exec(ot.css(t,e));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do{c/=o=o||".5",ot.style(t,e,c+l)}while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function c(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&ot.nodeName(t,e)?ot.merge([t],n):n}function d(t,e){for(var n=0,r=t.length;n<r;n++)St.set(t[n],"globalEval",!e||St.get(e[n],"globalEval"))}function p(t,e,n,r,i){for(var o,s,a,u,l,p,h=e.createDocumentFragment(),f=[],m=0,g=t.length;m<g;m++)if((o=t[m])||0===o)if("object"===ot.type(o))ot.merge(f,o.nodeType?[o]:o);else if(Mt.test(o)){for(s=s||h.appendChild(e.createElement("div")),a=(Dt.exec(o)||["",""])[1].toLowerCase(),u=qt[a]||qt._default,s.innerHTML=u[1]+ot.htmlPrefilter(o)+u[2],p=u[0];p--;)s=s.lastChild;ot.merge(f,s.childNodes),(s=h.firstChild).textContent=""}else f.push(e.createTextNode(o));for(h.textContent="",m=0;o=f[m++];)if(r&&ot.inArray(o,r)>-1)i&&i.push(o);else if(l=ot.contains(o.ownerDocument,o),s=c(h.appendChild(o),"script"),l&&d(s),n)for(p=0;o=s[p++];)Rt.test(o.type||"")&&n.push(o);return h}function h(){return!0}function f(){return!1}function m(){try{return Q.activeElement}catch(t){}}function g(t,e,n,r,i,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)g(t,a,n,r,e[a],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=f;else if(!i)return this;
vendor: 5,503 bytes, line 1
1return 1===o&&(s=i,i=function(t){return ot().off(t),s.apply(this,arguments)},i.guid=s.guid||(s.guid=ot.guid++)),t.each(function(){ot.event.add(this,e,i,r,n)})}function y(t,e){return ot.nodeName(t,"table")&&ot.nodeName(11!==e.nodeType?e:e.firstChild,"tr")&&t.getElementsByTagName("tbody")[0]||t}function v(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function b(t){var e=Ut.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function w(t,e){var n,r,i,o,s,a,u,l;if(1===e.nodeType){if(St.hasData(t)&&(o=St.access(t),s=St.set(e,o),l=o.events))for(i in delete s.handle,s.events={},l)for(n=0,r=l[i].length;n<r;n++)ot.event.add(e,i,l[i][n]);kt.hasData(t)&&(a=kt.access(t),u=ot.extend({},a),kt.set(e,u))}}function x(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Nt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function C(t,e,n,r){e=Y.apply([],e);var i,o,s,a,u,l,d=0,h=t.length,f=h-1,m=e[0],g=ot.isFunction(m);if(g||h>1&&"string"==typeof m&&!rt.checkClone&&Vt.test(m))return t.each(function(i){var o=t.eq(i);g&&(e[0]=m.call(this,i,o.html())),C(o,e,n,r)});if(h&&(o=(i=p(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=(s=ot.map(c(i,"script"),v)).length;d<h;d++)u=i,d!==f&&(u=ot.clone(u,!0,!0),a&&ot.merge(s,c(u,"script"))),n.call(t[d],u,d);if(a)for(l=s[s.length-1].ownerDocument,ot.map(s,b),d=0;d<a;d++)u=s[d],Rt.test(u.type||"")&&!St.access(u,"globalEval")&&ot.contains(l,u)&&(u.src?ot._evalUrl&&ot._evalUrl(u.src):ot.globalEval(u.textContent.replace(zt,"")))}return t}function E(t,e,n){for(var r,i=e?ot.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ot.cleanData(c(r)),r.parentNode&&(n&&ot.contains(r.ownerDocument,r)&&d(c(r,"script")),r.parentNode.removeChild(r));return t}function S(t,e){var n=ot(e.createElement(t)).appendTo(e.body),r=ot.css(n[0],"display");return n.detach(),r}function k(t){var e=Q,n=Gt[t];return n||("none"!==(n=S(t,e))&&n||((e=(Xt=(Xt||ot("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),n=S(t,e),Xt.detach()),Gt[t]=n),n}function T(t,e,n){var r,i,o,s,a=t.style;return(n=n||Yt(t))&&(""!==(s=n.getPropertyValue(e)||n[e])||ot.contains(t.ownerDocument,t)||(s=ot.style(t,e)),!rt.pixelMarginRight()&&Kt.test(s)&&Qt.test(e)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function A(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}function L(t){if(t in ie)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=re.length;n--;)if((t=re[n]+e)in ie)return t}function $(t,e,n){var r=$t.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function j(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=ot.css(t,n+jt[o],!0,i)),r?("content"===n&&(s-=ot.css(t,"padding"+jt[o],!0,i)),"margin"!==n&&(s-=ot.css(t,"border"+jt[o]+"Width",!0,i))):(s+=ot.css(t,"padding"+jt[o],!0,i),"padding"!==n&&(s+=ot.css(t,"border"+jt[o]+"Width",!0,i)));return s}function I(e,n,r){var i=!0,o="width"===n?e.offsetWidth:e.offsetHeight,s=Yt(e),a="border-box"===ot.css(e,"boxSizing",!1,s);if(Q.msFullscreenElement&&t.top!==t&&e.getClientRects().length&&(o=Math.round(100*e.getBoundingClientRect()[n])),o<=0||null==o){if(((o=T(e,n,s))<0||null==o)&&(o=e.style[n]),Kt.test(o))return o;i=a&&(rt.boxSizingReliable()||o===e.style[n]),o=parseFloat(o)||0}return o+j(e,n,r||(a?"border":"content"),i,s)+"px"}function N(t,e){for(var n,r,i,o=[],s=0,a=t.length;s<a;s++)(r=t[s]).style&&(o[s]=St.get(r,"olddisplay"),n=r.style.display,e?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&It(r)&&(o[s]=St.access(r,"olddisplay",k(r.nodeName)))):(i=It(r),"none"===n&&i||St.set(r,"olddisplay",i?n:ot.css(r,"display"))));for(s=0;s<a;s++)(r=t[s]).style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[s]||"":"none"));return t}function D(t,e,n,r,i){return new D.prototype.init(t,e,n,r,i)}function R(){return t.setTimeout(function(){oe=void 0}),oe=ot.now()}function q(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=jt[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function P(t,e,n){for(var r,i=(F.tweeners[e]||[]).concat(F.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,e,t))return r}function H(t,e,n){var r,i,o,s,a,u,l,c=this,d={},p=t.style,h=t.nodeType&&It(t),f=St.get(t,"fxshow");for(r in n.queue||(null==(a=ot._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,ot.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(l=ot.css(t,"display"))?St.get(t,"olddisplay")||k(t.nodeName):l)&&"none"===ot.css(t,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",c.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),e)if(i=e[r],ae.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!f||void 0===f[r])continue;h=!0}d[r]=f&&f[r]||ot.style(t,r)}else l=void 0;if(ot.isEmptyObject(d))"inline"===("none"===l?k(t.nodeName):l)&&(p.display=l);else for(r in f?"hidden"in f&&(h=f.hidden):f=St.access(t,"fxshow",{}),o&&(f.hidden=!h),h?ot(t).show():c.done(function(){ot(t).hide()}),c.done(function(){var e;
1for(e in St.remove(t,"fxshow"),d)ot.style(t,e,d[e])}),d)s=P(h?f[r]:0,r,c),r in f||(f[r]=s.start,h&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}function M(t,e){var n,r,i,o,s;for(n in t)if(i=e[r=ot.camelCase(n)],o=t[n],ot.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(s=ot.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}function F(t,e,n){var r,i,o=0,s=F.prefilters.length,a=ot.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=oe||R(),n=Math.max(0,l.startTime+l.duration-e),r=1-(n/l.duration||0),o=0,s=l.tweens.length;o<s;o++)l.tweens[o].run(r);return a.notifyWith(t,[l,r,n]),r<1&&s?n:(a.resolveWith(t,[l]),!1)},l=a.promise({elem:t,props:ot.extend({},e),opts:ot.extend(!0,{specialEasing:{},easing:ot.easing._default},n),originalProperties:e,originalOptions:n,startTime:oe||R(),duration:n.duration,tweens:[],createTween:function(e,n){var r=ot.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return e?(a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l,e])):a.rejectWith(t,[l,e]),this}}),c=l.props;for(M(c,l.opts.specialEasing);o<s;o++)if(r=F.prefilters[o].call(l,t,c,l.opts))return ot.isFunction(r.stop)&&(ot._queueHooks(l.elem,l.opts.queue).stop=ot.proxy(r.stop,r)),r;return ot.map(c,P,l),ot.isFunction(l.opts.start)&&l.opts.start.call(t,l),ot.fx.timer(ot.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function B(t){return t.getAttribute&&t.getAttribute("class")||""}function O(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(xt)||[];if(ot.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function _(t,e,n,r){function i(a){var u;return o[a]=!0,ot.each(t[a]||[],function(t,a){var l=a(e,n,r);return"string"!=typeof l||s||o[l]?s?!(u=l):void 0:(e.dataTypes.unshift(l),i(l),!1)}),u}var o={},s=t===Te;return i(e.dataTypes[0])||!o["*"]&&i("*")}function W(t,e){var n,r,i=ot.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&ot.extend(!0,t,r),t}function V(t,e,n){for(var r,i,o,s,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}function U(t,e,n,r){var i,o,s,a,u,l={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)l[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=l[u+" "+o]||l["* "+o]))for(i in l)if((a=i.split(" "))[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[i]:!0!==l[i]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}function z(t,e,n,r){var i;if(ot.isArray(e))ot.each(e,function(e,i){n||je.test(t)?r(t,i):z(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==ot.type(e))r(t,e);else for(i in e)z(t+"["+i+"]",e[i],n,r)}function X(t){return ot.isWindow(t)?t:9===t.nodeType&&t.defaultView}var G=[],Q=t.document,K=G.slice,Y=G.concat,J=G.push,Z=G.indexOf,tt={},et=tt.toString,nt=tt.hasOwnProperty,rt={},it="2.2.0",ot=function(t,e){return new ot.fn.init(t,e)},st=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,at=/^-ms-/,ut=/-([\da-z])/gi,lt=function(t,e){return e.toUpperCase()};ot.fn=ot.prototype={jquery:it,constructor:ot,selector:"",length:0,toArray:function(){return K.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:K.call(this)},pushStack:function(t){var e=ot.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return ot.each(this,t)},map:function(t){return this.pushStack(ot.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(K.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:J,sort:G.sort,splice:G.splice}
1,ot.extend=ot.fn.extend=function(){var t,e,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||ot.isFunction(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(t=arguments[a]))for(e in t)n=s[e],s!==(r=t[e])&&(l&&r&&(ot.isPlainObject(r)||(i=ot.isArray(r)))?(i?(i=!1,o=n&&ot.isArray(n)?n:[]):o=n&&ot.isPlainObject(n)?n:{},s[e]=ot.extend(l,o,r)):void 0!==r&&(s[e]=r));return s},ot.extend({expando:"jQuery"+(it+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ot.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!ot.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){return"object"===ot.type(t)&&!t.nodeType&&!ot.isWindow(t)&&!(t.constructor&&!nt.call(t.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?tt[et.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;(t=ot.trim(t))&&(1===t.indexOf("use strict")?((e=Q.createElement("script")).text=t,Q.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(at,"ms-").replace(ut,lt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var r,i=0;if(n(t))for(r=t.length;i<r&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(st,"")},makeArray:function(t,e){var r=e||[];return null!=t&&(n(Object(t))?ot.merge(r,"string"==typeof t?[t]:t):J.call(r,t)),r},inArray:function(t,e,n){return null==e?-1:Z.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,s=!n;i<o;i++)!e(t[i],i)!==s&&r.push(t[i]);return r},map:function(t,e,r){var i,o,s=0,a=[];if(n(t))for(i=t.length;s<i;s++)null!=(o=e(t[s],s,r))&&a.push(o);else for(s in t)null!=(o=e(t[s],s,r))&&a.push(o);return Y.apply([],a)},guid:1,proxy:function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),ot.isFunction(t))return r=K.call(arguments,2),i=function(){return t.apply(e||this,r.concat(K.call(arguments)))},i.guid=t.guid=t.guid||ot.guid++,i},now:Date.now,support:rt}),"function"==typeof Symbol&&(ot.fn[Symbol.iterator]=G[Symbol.iterator]),ot.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){tt["[object "+e+"]"]=e.toLowerCase()});var ct=function(t){function e(t,e,n,r){var i,o,s,a,u,l,d,h,f=e&&e.ownerDocument,m=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==m&&9!==m&&11!==m)return n;if(!r&&((e?e.ownerDocument||e:B)!==N&&I(e),e=e||N,R)){if(11!==m&&(l=yt.exec(t)))if(i=l[1]){if(9===m){if(!(s=e.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(f&&(s=f.getElementById(i))&&M(e,s)&&s.id===i)return n.push(s),n}else{if(l[2])return J.apply(n,e.getElementsByTagName(t)),n;if((i=l[3])&&x.getElementsByClassName&&e.getElementsByClassName)return J.apply(n,e.getElementsByClassName(i)),n}if(x.qsa&&!U[t+" "]&&(!q||!q.test(t))){if(1!==m)f=e,h=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(bt,"\\$&"):e.setAttribute("id",a=F),o=(d=k(t)).length,u=pt.test(a)?"#"+a:"[id='"+a+"']";o--;)d[o]=u+" "+p(d[o]);h=d.join(","),f=vt.test(t)&&c(e.parentNode)||e}if(h)try{return J.apply(n,f.querySelectorAll(h)),n}catch(t){}finally{a===F&&e.removeAttribute("id")}}}return A(t.replace(at,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>C.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[F]=!0,t}function i(t){var e=N.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=n.length;r--;)C.attrHandle[n[r]]=e}function s(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||X)-(~t.sourceIndex||X);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function u(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function l(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function c(t){return t&&void 0!==t.getElementsByTagName&&t}function d(){}function p(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function h(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=_++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,s){var a,u,l,c=[O,o];if(s){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,s))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if((a=(u=(l=e[F]||(e[F]={}))[e.uniqueID]||(l[e.uniqueID]={}))[r])&&a[0]===O&&a[1]===o)return c[2]=a[2];
vendor: 20,763 bytes, lines 1-2
1if(u[r]=c,c[2]=t(e,n,s))return!0}}}function f(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function m(t,n,r){for(var i=0,o=n.length;i<o;i++)e(t,n[i],r);return r}function g(t,e,n,r,i){for(var o,s=[],a=0,u=t.length,l=null!=e;a<u;a++)(o=t[a])&&(n&&!n(o,r,i)||(s.push(o),l&&e.push(a)));return s}function y(t,e,n,i,o,s){return i&&!i[F]&&(i=y(i)),o&&!o[F]&&(o=y(o,s)),r(function(r,s,a,u){var l,c,d,p=[],h=[],f=s.length,y=r||m(e||"*",a.nodeType?[a]:a,[]),v=!t||!r&&e?y:g(y,p,t,a,u),b=n?o||(r?t:f||i)?[]:s:v;if(n&&n(v,b,a,u),i)for(l=g(b,h),i(l,[],a,u),c=l.length;c--;)(d=l[c])&&(b[h[c]]=!(v[h[c]]=d));if(r){if(o||t){if(o){for(l=[],c=b.length;c--;)(d=b[c])&&l.push(v[c]=d);o(null,b=[],l,u)}for(c=b.length;c--;)(d=b[c])&&(l=o?tt(r,d):p[c])>-1&&(r[l]=!(s[l]=d))}}else b=g(b===s?b.splice(f,b.length):b),o?o(null,s,b,u):J.apply(s,b)})}function v(t){for(var e,n,r,i=t.length,o=C.relative[t[0].type],s=o||C.relative[" "],a=o?1:0,u=h(function(t){return t===e},s,!0),l=h(function(t){return tt(e,t)>-1},s,!0),c=[function(t,n,r){var i=!o&&(r||n!==L)||((e=n).nodeType?u(t,n,r):l(t,n,r));return e=null,i}];a<i;a++)if(n=C.relative[t[a].type])c=[h(f(c),n)];else{if((n=C.filter[t[a].type].apply(null,t[a].matches))[F]){for(r=++a;r<i&&!C.relative[t[r].type];r++);return y(a>1&&f(c),a>1&&p(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(at,"$1"),n,a<r&&v(t.slice(a,r)),r<i&&v(t=t.slice(r)),r<i&&p(t))}c.push(n)}return f(c)}function b(t,n){var i=n.length>0,o=t.length>0,s=function(r,s,a,u,l){var c,d,p,h=0,f="0",m=r&&[],y=[],v=L,b=r||o&&C.find.TAG("*",l),w=O+=null==v?1:Math.random()||.1,x=b.length;for(l&&(L=s===N||s||l);f!==x&&null!=(c=b[f]);f++){if(o&&c){for(d=0,s||c.ownerDocument===N||(I(c),a=!R);p=t[d++];)if(p(c,s||N,a)){u.push(c);break}l&&(O=w)}i&&((c=!p&&c)&&h--,r&&m.push(c))}if(h+=f,i&&f!==h){for(d=0;p=n[d++];)p(m,y,s,a);if(r){if(h>0)for(;f--;)m[f]||y[f]||(y[f]=K.call(u));y=g(y)}J.apply(u,y),l&&!r&&y.length>0&&h+n.length>1&&e.uniqueSort(u)}return l&&(O=w,L=v),m};return i?r(s):s}var w,x,C,E,S,k,T,A,L,$,j,I,N,D,R,q,P,H,M,F="sizzle"+1*new Date,B=t.document,O=0,_=0,W=n(),V=n(),U=n(),z=function(t,e){return t===e&&(j=!0),0},X=1<<31,G={}.hasOwnProperty,Q=[],K=Q.pop,Y=Q.push,J=Q.push,Z=Q.slice,tt=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",it="\\["+nt+"*("+rt+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+nt+"*\\]",ot=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",st=new RegExp(nt+"+","g"),at=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),ut=new RegExp("^"+nt+"*,"+nt+"*"),lt=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ct=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),dt=new RegExp(ot),pt=new RegExp("^"+rt+"$"),ht={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},ft=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,vt=/[+~]/,bt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),xt=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Ct=function(){I()};try{J.apply(Q=Z.call(B.childNodes),B.childNodes),Q[B.childNodes.length].nodeType}catch(t){J={apply:Q.length?function(t,e){Y.apply(t,Z.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}for(w in x=e.support={},S=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},I=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:B;return r!==N&&9===r.nodeType&&r.documentElement?(D=(N=r).documentElement,R=!S(N),(n=N.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ct,!1):n.attachEvent&&n.attachEvent("onunload",Ct)),x.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),x.getElementsByTagName=i(function(t){return t.appendChild(N.createComment("")),!t.getElementsByTagName("*").length}),x.getElementsByClassName=gt.test(N.getElementsByClassName),x.getById=i(function(t){return D.appendChild(t).id=F,!N.getElementsByName||!N.getElementsByName(F).length}),x.getById?(C.find.ID=function(t,e){if(void 0!==e.getElementById&&R){var n=e.getElementById(t);return n?[n]:[]}},C.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){return t.getAttribute("id")===e}}):(delete C.find.ID,C.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),C.find.TAG=x.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):x.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},C.find.CLASS=x.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&R)return e.getElementsByClassName(t)},P=[],q=[],(x.qsa=gt.test(N.querySelectorAll))&&(i(function(t){D.appendChild(t).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||q.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+F+"-]").length||q.push("~="),t.querySelectorAll(":checked").length||q.push(":checked"),t.querySelectorAll("a#"+F+"+*").length||q.push(".#.+[+~]")}),i(function(t){var e=N.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&q.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),q.push(",.*:")})),(x.matchesSelector=gt.test(H=D.matches||D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&i(function(t){x.disconnectedMatch=H.call(t,"div"),H.call(t,"[s!='']:x"),P.push("!=",ot)}),q=q.length&&new RegExp(q.join("|")),P=P.length&&new RegExp(P.join("|")),e=gt.test(D.compareDocumentPosition),M=e||gt.test(D.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},z=e?function(t,e){if(t===e)return j=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!x.sortDetached&&e.compareDocumentPosition(t)===n?t===N||t.ownerDocument===B&&M(B,t)?-1:e===N||e.ownerDocument===B&&M(B,e)?1:$?tt($,t)-tt($,e):0:4&n?-1:1)}:function(t,e){if(t===e)return j=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],u=[e];if(!i||!o)return t===N?-1:e===N?1:i?-1:o?1:$?tt($,t)-tt($,e):0;if(i===o)return s(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===B?-1:u[r]===B?1:0},N):N},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==N&&I(t),n=n.replace(ct,"='$1']"),x.matchesSelector&&R&&!U[n+" "]&&(!P||!P.test(n))&&(!q||!q.test(n)))try{var r=H.call(t,n);if(r||x.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return e(n,N,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==N&&I(t),M(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==N&&I(t);var n=C.attrHandle[e.toLowerCase()],r=n&&G.call(C.attrHandle,e.toLowerCase())?n(t,e,!R):void 0;return void 0!==r?r:x.attributes||!R?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(j=!x.detectDuplicates,$=!x.sortStable&&t.slice(0),t.sort(z),j){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return $=null,t},E=e.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=E(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=E(e);return n},C=e.selectors={cacheLength:50,createPseudo:r,match:ht,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(wt,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(wt,xt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ht.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&dt.test(n)&&(e=k(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(wt,xt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(st," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,d,p,h,f,m=o!==s?"nextSibling":"previousSibling",g=e.parentNode,y=a&&e.nodeName.toLowerCase(),v=!u&&!a,b=!1;if(g){if(o){for(;m;){for(p=e;p=p[m];)if(a?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&v){for(b=(h=(l=(c=(d=(p=g)[F]||(p[F]={}))[p.uniqueID]||(d[p.uniqueID]={}))[t]||[])[0]===O&&l[1])&&l[2],p=h&&g.childNodes[h];p=++h&&p&&p[m]||(b=h=0)||f.pop();)if(1===p.nodeType&&++b&&p===e){c[t]=[O,h,b];break}}else if(v&&(b=h=(l=(c=(d=(p=e)[F]||(p[F]={}))[p.uniqueID]||(d[p.uniqueID]={}))[t]||[])[0]===O&&l[1]), 2!1===b)for(;(p=++h&&p&&p[m]||(b=h=0)||f.pop())&&((a?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++b||(v&&((c=(d=p[F]||(p[F]={}))[p.uniqueID]||(d[p.uniqueID]={}))[t]=[O,b]),p!==e)););return(b-=i)===r||b%r===0&&b/r>=0}}},PSEUDO:function(t,n){var i,o=C.pseudos[t]||C.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[F]?o(n):o.length>1?(i=[t,t,"",n],C.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),s=i.length;s--;)t[r=tt(t,i[s])]=!(e[r]=i[s])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=T(t.replace(at,"$1"));return i[F]?r(function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace(wt,xt),function(e){return(e.textContent||e.innerText||E(e)).indexOf(t)>-1}}),lang:r(function(t){return pt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(wt,xt).toLowerCase(),function(e){var n;do{if(n=R?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===D},focus:function(t){return t===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!C.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return ft.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[n<0?n+e:n]}),even:l(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:l(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:l(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:l(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},C.pseudos.nth=C.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[w]=a(w);for(w in{submit:!0,reset:!0})C.pseudos[w]=u(w);return d.prototype=C.filters=C.pseudos,C.setFilters=new d,k=e.tokenize=function(t,n){var r,i,o,s,a,u,l,c=V[t+" "];if(c)return n?0:c.slice(0);for(a=t,u=[],l=C.preFilter;a;){for(s in r&&!(i=ut.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=lt.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(at," ")}),a=a.slice(r.length)),C.filter)!(i=ht[s].exec(a))||l[s]&&!(i=l[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?e.error(t):V(t,u).slice(0)},T=e.compile=function(t,e){var n,r=[],i=[],o=U[t+" "];if(!o){for(e||(e=k(t)),n=e.length;n--;)(o=v(e[n]))[F]?r.push(o):i.push(o);(o=U(t,b(i,r))).selector=t}return o},A=e.select=function(t,e,n,r){var i,o,s,a,u,l="function"==typeof t&&t,d=!r&&k(t=l.selector||t);if(n=n||[],1===d.length){if((o=d[0]=d[0].slice(0)).length>2&&"ID"===(s=o[0]).type&&x.getById&&9===e.nodeType&&R&&C.relative[o[1].type]){if(!(e=(C.find.ID(s.matches[0].replace(wt,xt),e)||[])[0]))return n;l&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=ht.needsContext.test(t)?0:o.length;i--&&(s=o[i],!C.relative[a=s.type]);)if((u=C.find[a])&&(r=u(s.matches[0].replace(wt,xt),vt.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(i,1),!(t=r.length&&p(o)))return J.apply(n,r),n;break}}return(l||T(t,d))(r,e,!R,n,!e||vt.test(t)&&c(e.parentNode)||e),n},x.sortStable=F.split("").sort(z).join("")===F,x.detectDuplicates=!!j,I(),x.sortDetached=i(function(t){return 1&t.compareDocumentPosition(N.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),x.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(t);ot.find=ct,ot.expr=ct.selectors,ot.expr[":"]=ot.expr.pseudos,ot.uniqueSort=ot.unique=ct.uniqueSort,ot.text=ct.getText,ot.isXMLDoc=ct.isXML,ot.contains=ct.contains;var dt=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&ot(t).is(n))break;r.push(t)}return r},pt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},ht=ot.expr.match.needsContext,ft=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,mt=/^.[^:#\[\.,]*$/;ot.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?ot.find.matchesSelector(r,t)?[r]:[]:ot.find.matches(t,ot.grep(e,function(t){return 1===t.nodeType}))},ot.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(ot(t).filter(function(){for(e=0;e<n;e++)if(ot.contains(i[e],this))return!0}));for(e=0;e<n;e++)ot.find(t,i[e],r);return(r=this.pushStack(n>1?ot.unique(r):r)).selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(r(this,t||[],!1))},not:function(t){return this.pushStack(r(this,t||[],!0))},is:function(t){return!!r(this,"string"==typeof t&&ht.test(t)?ot(t):t||[],!1).length}});var gt,yt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(ot.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||gt,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:yt.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof ot?e[0]:e,ot.merge(this,ot.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:Q,!0)),ft.test(r[1])&&ot.isPlainObject(e))for(r in e)ot.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=Q.getElementById(r[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=Q,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ot.isFunction(t)?void 0!==n.ready?n.ready(t):t(ot):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ot.makeArray(t,this))}).prototype=ot.fn,gt=ot(Q);var vt=/^(?:parents|prev(?:Until|All))/,bt={children:!0,contents:!0,next:!0,prev:!0};ot.fn.extend({has:function(t){var e=ot(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(ot.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],s=ht.test(t)||"string"!=typeof t?ot(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&ot.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?ot.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?Z.call(ot(t),this[0]):Z.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ot.uniqueSort(ot.merge(this.get(),ot(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ot.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return dt(t,"parentNode")},parentsUntil:function(t,e,n){return dt(t,"parentNode",n)},next:function(t){return i(t,"nextSibling")},prev:function(t){return i(t,"previousSibling")},nextAll:function(t){return dt(t,"nextSibling")},prevAll:function(t){return dt(t,"previousSibling")},nextUntil:function(t,e,n){return dt(t,"nextSibling",n)},prevUntil:function(t,e,n){return dt(t,"previousSibling",n)},siblings:function(t){return pt((t.parentNode||{}).firstChild,t)},children:function(t){return pt(t.firstChild)},contents:function(t){return t.contentDocument||ot.merge([],t.childNodes)}},function(t,e){ot.fn[t]=function(n,r){var i=ot.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ot.filter(r,i)),this.length>1&&(bt[t]||ot.uniqueSort(i),vt.test(t)&&i.reverse()),this.pushStack(i)}});var wt,xt=/\S+/g;ot.Callbacks=function(t){t="string"==typeof t?o(t):ot.extend({},t);var e,n,r,i,s=[],a=[],u=-1,l=function(){for(i=t.once,r=e=!0;a.length;u=-1)for(n=a.shift();++u<s.length;)!1===s[u].apply(n[0],n[1])&&t.stopOnFalse&&(u=s.length,n=!1);t.memory||(n=!1),e=!1,i&&(s=n?[]:"")},c={add:function(){return s&&(n&&!e&&(u=s.length-1,a.push(n)),function e(n){ot.each(n,function(n,r){ot.isFunction(r)?t.unique&&c.has(r)||s.push(r):r&&r.length&&"string"!==ot.type(r)&&e(r)})}(arguments),n&&!e&&l()),this},remove:function(){return ot.each(arguments,function(t,e){for(var n;(n=ot.inArray(e,s,n))>-1;)s.splice(n,1),n<=u&&u--}),this},has:function(t){return t?ot.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=a=[],n||(s=n=""),this},locked:function(){return!!i}
2,fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},ot.extend({Deferred:function(t){var e=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ot.Deferred(function(n){ot.each(e,function(e,o){var s=ot.isFunction(t[e])&&t[e];i[o[1]](function(){var t=s&&s.apply(this,arguments);t&&ot.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ot.extend(t,r):r}},i={};return r.pipe=r.then,ot.each(e,function(t,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=K.call(arguments),s=o.length,a=1!==s||t&&ot.isFunction(t.promise)?s:0,u=1===a?t:ot.Deferred(),l=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?K.call(arguments):i,r===e?u.notifyWith(n,r):--a||u.resolveWith(n,r)}};if(s>1)for(e=new Array(s),n=new Array(s),r=new Array(s);i<s;i++)o[i]&&ot.isFunction(o[i].promise)?o[i].promise().progress(l(i,n,e)).done(l(i,r,o)).fail(u.reject):--a;return a||u.resolveWith(r,o),u.promise()}}),ot.fn.ready=function(t){return ot.ready.promise().done(t),this},ot.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ot.readyWait++:ot.ready(!0)},ready:function(t){(!0===t?--ot.readyWait:ot.isReady)||(ot.isReady=!0,!0!==t&&--ot.readyWait>0||(wt.resolveWith(Q,[ot]),ot.fn.triggerHandler&&(ot(Q).triggerHandler("ready"),ot(Q).off("ready"))))}}),ot.ready.promise=function(e){return wt||(wt=ot.Deferred(),"complete"===Q.readyState||"loading"!==Q.readyState&&!Q.documentElement.doScroll?t.setTimeout(ot.ready):(Q.addEventListener("DOMContentLoaded",s),t.addEventListener("load",s))),wt.promise(e)},ot.ready.promise();var Ct=function(t,e,n,r,i,o,s){var a=0,u=t.length,l=null==n;if("object"===ot.type(n))for(a in i=!0,n)Ct(t,e,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,ot.isFunction(r)||(s=!0),l&&(s?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(ot(t),n)})),e))for(;a<u;a++)e(t[a],n,s?r:r.call(t[a],a,e(t[a],n)));return i?t:l?e.call(t):u?e(t[0],n):o},Et=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};a.uid=1,a.prototype={register:function(t,e){var n=e||{};return t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!Et(t))return{};var e=t[this.expando];return e||(e={},Et(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[e]=n;else for(r in e)i[r]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var r;return void 0===e||e&&"string"==typeof e&&void 0===n?void 0!==(r=this.get(t,e))?r:this.get(t,ot.camelCase(e)):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r,i,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{ot.isArray(e)?r=e.concat(e.map(ot.camelCase)):(i=ot.camelCase(e),r=e in o?[e,i]:(r=i)in o?[r]:r.match(xt)||[]),n=r.length;for(;n--;)delete o[r[n]]}(void 0===e||ot.isEmptyObject(o))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!ot.isEmptyObject(e)}};var St=new a,kt=new a,Tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,At=/[A-Z]/g;ot.extend({hasData:function(t){return kt.hasData(t)||St.hasData(t)},data:function(t,e,n){return kt.access(t,e,n)},removeData:function(t,e){kt.remove(t,e)},_data:function(t,e,n){return St.access(t,e,n)},_removeData:function(t,e){St.remove(t,e)}}),ot.fn.extend({data:function(t,e){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(i=kt.get(o),1===o.nodeType&&!St.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=ot.camelCase(r.slice(5)),u(o,r,i[r]));St.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){kt.set(this,t)}):Ct(this,function(e){var n,r;if(o&&void 0===e)return void 0!==(n=kt.get(o,t)||kt.get(o,t.replace(At,"-$&").toLowerCase()))?n:(r=ot.camelCase(t),void 0!==(n=kt.get(o,r))||void 0!==(n=u(o,r,void 0))?n:void 0);r=ot.camelCase(t),this.each(function(){var n=kt.get(this,r);kt.set(this,r,e),t.indexOf("-")>-1&&void 0!==n&&kt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){kt.remove(this,t)})}}),ot.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=St.get(t,e),n&&(!r||ot.isArray(n)?r=St.access(t,e,ot.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=ot.queue(t,e),r=n.length,i=n.shift(),o=ot._queueHooks(t,e),s=function(){ot.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return St.get(t,n)||St.access(t,n,{empty:ot.Callbacks("once memory").add(function(){St.remove(t,[e+"queue",n])})})}}),ot.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?ot.queue(this[0],t):void 0===e?this:this.each(function(){var n=ot.queue(this,t,e);ot._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&ot.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ot.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=ot.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=St.get(o[s],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}});var Lt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,$t=new RegExp("^(?:([+-])=|)("+Lt+")([a-z%]*)$","i"),jt=["Top","Right","Bottom","Left"],It=function(t,e){return t=e||t,"none"===ot.css(t,"display")||!ot.contains(t.ownerDocument,t)},Nt=/^(?:checkbox|radio)$/i,Dt=/<([\w:-]+)/,Rt=/^$|\/(?:java|ecma)script/i,qt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};qt.optgroup=qt.option,qt.tbody=qt.tfoot=qt.colgroup=qt.caption=qt.thead,qt.th=qt.td;var Pt,Ht,Mt=/<|&#?\w+;/;Pt=Q.createDocumentFragment().appendChild(Q.createElement("div")),(Ht=Q.createElement("input")).setAttribute("type","radio"),Ht.setAttribute("checked","checked"),Ht.setAttribute("name","t"),Pt.appendChild(Ht),rt.checkClone
vendor: 4,050 bytes, line 2
2=Pt.cloneNode(!0).cloneNode(!0).lastChild.checked,Pt.innerHTML="<textarea>x</textarea>",rt.noCloneChecked=!!Pt.cloneNode(!0).lastChild.defaultValue;var Ft=/^key/,Bt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ot=/^([^.]*)(?:\.(.+)|)/;ot.event={global:{},add:function(t,e,n,r,i){var o,s,a,u,l,c,d,p,h,f,m,g=St.get(t);if(g)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=ot.guid++),(u=g.events)||(u=g.events={}),(s=g.handle)||(s=g.handle=function(e){return void 0!==ot&&ot.event.triggered!==e.type?ot.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(xt)||[""]).length;l--;)h=m=(a=Ot.exec(e[l])||[])[1],f=(a[2]||"").split(".").sort(),h&&(d=ot.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,d=ot.event.special[h]||{},c=ot.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ot.expr.match.needsContext.test(i),namespace:f.join(".")},o),(p=u[h])||((p=u[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,r,f,s)||t.addEventListener&&t.addEventListener(h,s)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ot.event.global[h]=!0)},remove:function(t,e,n,r,i){var o,s,a,u,l,c,d,p,h,f,m,g=St.hasData(t)&&St.get(t);if(g&&(u=g.events)){for(l=(e=(e||"").match(xt)||[""]).length;l--;)if(h=m=(a=Ot.exec(e[l])||[])[1],f=(a[2]||"").split(".").sort(),h){for(d=ot.event.special[h]||{},p=u[h=(r?d.delegateType:d.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)c=p[o],!i&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,d.remove&&d.remove.call(t,c));s&&!p.length&&(d.teardown&&!1!==d.teardown.call(t,f,g.handle)||ot.removeEvent(t,h,g.handle),delete u[h])}else for(h in u)ot.event.remove(t,h+e[l],n,r,!0);ot.isEmptyObject(u)&&St.remove(t,"handle events")}},dispatch:function(t){t=ot.event.fix(t);var e,n,r,i,o,s=[],a=K.call(arguments),u=(St.get(this,"events")||{})[t.type]||[],l=ot.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,t)){for(s=ot.event.handlers.call(this,t,u),e=0;(i=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(r=((ot.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(t.result=r)&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,s=[],a=e.delegateCount,u=t.target;if(a&&u.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==t.type)){for(r=[],n=0;n<a;n++)void 0===r[i=(o=e[n]).selector+" "]&&(r[i]=o.needsContext?ot(i,this).index(u)>-1:ot.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button;return null==t.pageX&&null!=e.clientX&&(r=(n=t.target.ownerDocument||Q).documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[ot.expando])return t;var e,n,r,i=t.type,o=t,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=Bt.test(i)?this.mouseHooks:Ft.test(i)?this.keyHooks:{}
2),r=s.props?this.props.concat(s.props):this.props,t=new ot.Event(o),e=r.length;e--;)t[n=r[e]]=o[n];return t.target||(t.target=Q),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==m()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===m()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&ot.nodeName(this,"input"))return this.click(),!1},_default:function(t){return ot.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},ot.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},ot.Event=function(t,e){if(!(this instanceof ot.Event))return new ot.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?h:f):this.type=t,e&&ot.extend(this,e),this.timeStamp=t&&t.timeStamp||ot.now(),this[ot.expando]=!0},ot.Event.prototype={constructor:ot.Event,isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=h,t&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=h,t&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=h,t&&t.stopImmediatePropagation(),this.stopPropagation()}}
2,ot.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ot.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||ot.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),ot.fn.extend({on:function(t,e,n,r){return g(this,t,e,n,r)},one:function(t,e,n,r){return g(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,ot(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=f),this.each(function(){ot.event.remove(this,t,n,e)})}});var _t=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Wt=/<script|<style|<link/i,Vt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ut=/^true\/(.*)/,zt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ot.extend({htmlPrefilter:function(t){return t.replace(_t,"<$1></$2>")},clone:function(t,e,n){var r,i,o,s,a=t.cloneNode(!0),u=ot.contains(t.ownerDocument,t);if(!(rt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ot.isXMLDoc(t)))for(s=c(a),r=0,i=(o=c(t)).length;r<i;r++)x(o[r],s[r]);if(e)if(n)for(o=o||c(t),s=s||c(a),r=0,i=o.length;r<i;r++)w(o[r],s[r]);else w(t,a);return(s=c(a,"script")).length>0&&d(s,!u&&c(t,"script")),a},cleanData:function(t){for(var e,n,r,i=ot.event.special,o=0;void 0!==(n=t[o]);o++)if(Et(n)){if(e=n[St.expando]){if(e.events)for(r in e.events)i[r]?ot.event.remove(n,r):ot.removeEvent(n,r,e.handle);n[St.expando]=void 0}n[kt.expando]&&(n[kt.expando]=void 0)}}}),ot.fn.extend({domManip:C,detach:function(t){return E(this,t,!0)},remove:function(t){return E(this,t)},text:function(t){return Ct(this,function(t){return void 0===t?ot.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return C(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||y(this,t).appendChild(t)})},prepend:function(){return C(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=y(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return C(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return C(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(ot.cleanData(c(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ot.clone(this,t,e)})},html:function(t){return Ct(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Wt.test(t)&&!qt[(Dt.exec(t)||["",""])[1].toLowerCase()]){t=ot.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(ot.cleanData(c(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return C(this,arguments,function(e){var n=this.parentNode;ot.inArray(this,t)<0&&(ot.cleanData(c(this)),n&&n.replaceChild(e,this))},t)}}),ot.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ot.fn[t]=function(t){for(var n,r=[],i=ot(t),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),ot(i[s])[e](n),J.apply(r,n.get());return this.pushStack(r)}});var Xt,Gt={HTML:"block",BODY:"block"},Qt=/^margin/,Kt=new RegExp("^("+Lt+")(?!px)[a-z%]+$","i"),Yt=function(e){var n=e.ownerDocument.defaultView;return n.opener||(n=t),n.getComputedStyle(e)},Jt=function(t,e,n,r){var i,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,r||[]),e)t.style[o]=s[o];return i},Zt=Q.documentElement;!function(){function e(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Zt.appendChild(s);var e=t.getComputedStyle(a);n="1%"!==e.top,o="2px"===e.marginLeft,r="4px"===e.width,a.style.marginRight="50%",i="4px"===e.marginRight,Zt.removeChild(s)}var n,r,i,o,s=Q.createElement("div"),a=Q.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",rt.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),ot.extend(rt,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return null==r&&e(),r},pixelMarginRight:function(){return null==r&&e(),i},reliableMarginLeft:function(){return null==r&&e(),o},reliableMarginRight:function(){var e,n=a.appendChild(Q.createElement("div"));return n.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",a.style.width="1px",Zt.appendChild(s),e=!parseFloat(t.getComputedStyle(n).marginRight),Zt.removeChild(s),a.removeChild(n),e}}))}();var te=/^(none|table(?!-c[ea]).+)/,ee={position:"absolute",visibility:"hidden",display:"block"},ne={letterSpacing:"0",fontWeight:"400"},re=["Webkit","O","Moz","ms"],ie=Q.createElement("div").style;ot.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=T(t,"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:"cssFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,s,a=ot.camelCase(e),u=t.style;if(e=ot.cssProps[a]||(ot.cssProps[a]=L(a)||a),s=ot.cssHooks[e]||ot.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(t,!1,r))?i:u[e];"string"===(o=typeof n)&&(i=$t.exec(n))&&i[1]&&(n=l(t,e,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(ot.cssNumber[a]?"":"px")),rt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,r))||(u[e]=n))}},css:function(t,e,n,r){var i,o,s,a=ot.camelCase(e);return e=ot.cssProps[a]||(ot.cssProps[a]=L(a)||a),(s=ot.cssHooks[e]||ot.cssHooks[a])&&"get"in s&&(i=s.get(t,!0,n)),void 0===i&&(i=T(t,e,r)),"normal"===i&&e in ne&&(i=ne[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ot.each(["height","width"],function(t,e){ot.cssHooks[e]={get:function(t,n,r){if(n)return te.test(ot.css(t,"display"))&&0===t.offsetWidth?Jt(t,ee,function(){return I(t,e,r)}):I(t,e,r)}
vendor: 7,691 bytes, lines 2-3
2,set:function(t,n,r){var i,o=r&&Yt(t),s=r&&j(t,e,r,"border-box"===ot.css(t,"boxSizing",!1,o),o);return s&&(i=$t.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=ot.css(t,e)),$(t,n,s)}}}),ot.cssHooks.marginLeft=A(rt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(T(t,"marginLeft"))||t.getBoundingClientRect().left-Jt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),ot.cssHooks.marginRight=A(rt.reliableMarginRight,function(t,e){if(e)return Jt(t,{display:"inline-block"},T,[t,"marginRight"])}),ot.each({margin:"",padding:"",border:"Width"},function(t,e){ot.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+jt[r]+e]=o[r]||o[r-2]||o[0];return i}},Qt.test(t)||(ot.cssHooks[t+e].set=$)}),ot.fn.extend({css:function(t,e){return Ct(this,function(t,e,n){var r,i,o={},s=0;if(ot.isArray(e)){for(r=Yt(t),i=e.length;s<i;s++)o[e[s]]=ot.css(t,e[s],!1,r);return o}return void 0!==n?ot.style(t,e,n):ot.css(t,e)},t,e,arguments.length>1)},show:function(){return N(this,!0)},hide:function(){return N(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){It(this)?ot(this).show():ot(this).hide()})}}),ot.Tween=D,D.prototype={constructor:D,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||ot.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ot.cssNumber[n]?"":"px")},cur:function(){var t=D.propHooks[this.prop];return t&&t.get?t.get(this):D.propHooks._default.get(this)},run:function(t){var e,n=D.propHooks[this.prop];return this.options.duration?this.pos=e=ot.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=ot.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){ot.fx.step[t.prop]?ot.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ot.cssProps[t.prop]]&&!ot.cssHooks[t.prop]?t.elem[t.prop]=t.now:ot.style(t.elem,t.prop,t.now+t.unit)}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ot.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ot.fx=D.prototype.init,ot.fx.step={};var oe,se,ae=/^(?:toggle|show|hide)$/,ue=/queueHooks$/;ot.Animation=ot.extend(F,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return l(n.elem,t,$t.exec(e),n),n}]},tweener:function(t,e){ot.isFunction(t)?(e=t,t=["*"]):t=t.match(xt);for(var n,r=0,i=t.length;r<i;r++)n=t[r],F.tweeners[n]=F.tweeners[n]||[],F.tweeners[n].unshift(e)},prefilters:[H],prefilter:function(t,e){e?F.prefilters.unshift(t):F.prefilters.push(t)}}),ot.speed=function(t,e,n){var r=t&&"object"==typeof t?ot.extend({},t):{complete:n||!n&&e||ot.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ot.isFunction(e)&&e};return r.duration=ot.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ot.fx.speeds?ot.fx.speeds[r.duration]:ot.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){ot.isFunction(r.old)&&r.old.call(this),r.queue&&ot.dequeue(this,r.queue)},r},ot.fn.extend({fadeTo:function(t,e,n,r){return this.filter(It).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=ot.isEmptyObject(t),o=ot.speed(e,n,r),s=function(){var e=F(this,ot.extend({},t),o) 3;(i||St.get(this,"finish"))&&e.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=ot.timers,s=St.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&ue.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||ot.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=St.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=ot.timers,s=r?r.length:0;for(n.finish=!0,ot.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),ot.each(["toggle","show","hide"],function(t,e){var n=ot.fn[e];ot.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(q(e,!0),t,r,i)}}),ot.each({slideDown:q("show"),slideUp:q("hide"),slideToggle:q("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ot.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),ot.timers=[],ot.fx.tick=function(){var t,e=0,n=ot.timers;for(oe=ot.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||ot.fx.stop(),oe=void 0},ot.fx.timer=function(t){ot.timers.push(t),t()?ot.fx.start():ot.timers.pop()},ot.fx.interval=13,ot.fx.start=function(){se||(se=t.setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){t.clearInterval(se),se=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fn.delay=function(e,n){return e=ot.fx&&ot.fx.speeds[e]||e,n=n||"fx",this.queue(n,function(n,r){var i=t.setTimeout(n,e);r.stop=function(){t.clearTimeout(i)}})},function(){var t=Q.createElement("input"),e=Q.createElement("select"),n=e.appendChild(Q.createElement("option"));t.type="checkbox",rt.checkOn=""!==t.value,rt.optSelected=n.selected,e.disabled=!0,rt.optDisabled=!n.disabled,(t=Q.createElement("input")).value="t",t.type="radio",rt.radioValue="t"===t.value}();var le,ce=ot.expr.attrHandle;ot.fn.extend({attr:function(t,e){return Ct(this,ot.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ot.removeAttr(this,t)})}}),ot.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?ot.prop(t,e,n):(1===o&&ot.isXMLDoc(t)||(e=e.toLowerCase(),i=ot.attrHooks[e]||(ot.expr.match.bool.test(e)?le:void 0)),void 0!==n?null===n?void ot.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=ot.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!rt.radioValue&&"radio"===e&&ot.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(xt);if(o&&1===t.nodeType)for(;n=o[i++];)r=ot.propFix[n]||n,ot.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)}}),le={set:function(t,e,n){return!1===e?ot.removeAttr(t,n):t.setAttribute(n,n),n}},ot.each(ot.expr.match.bool.source.match(/\w+/g),function(t,e){var n=ce[e]||ot.find.attr;ce[e]=function(t,e,r){var i,o;return r||(o=ce[e],ce[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,ce[e]=o),i}});var de=/^(?:input|select|textarea|button)$/i,pe=/^(?:a|area)$/i;ot.fn.extend({prop:function(t,e){return Ct(this,ot.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[ot.propFix[t]||t]})}}),ot.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ot.isXMLDoc(t)||(e=ot.propFix[e]||e,i=ot.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=ot.find.attr(t,"tabindex");
3return e?parseInt(e,10):de.test(t.nodeName)||pe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),rt.optSelected||(ot.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ot.propFix[this.toLowerCase()]=this});var he=/[\t\r\n\f]/g;ot.fn.extend({addClass:function(t){var e,n,r,i,o,s,a,u=0;if(ot.isFunction(t))return this.each(function(e){ot(this).addClass(t.call(this,e,B(this)))});if("string"==typeof t&&t)for(e=t.match(xt)||[];n=this[u++];)if(i=B(n),r=1===n.nodeType&&(" "+i+" ").replace(he," ")){for(s=0;o=e[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(a=ot.trim(r))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,r,i,o,s,a,u=0;if(ot.isFunction(t))return this.each(function(e){ot(this).removeClass(t.call(this,e,B(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(xt)||[];n=this[u++];)if(i=B(n),r=1===n.nodeType&&(" "+i+" ").replace(he," ")){for(s=0;o=e[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(a=ot.trim(r))&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):ot.isFunction(t)?this.each(function(n){ot(this).toggleClass(t.call(this,n,B(this),e),e)}):this.each(function(){var e,r,i,o;if("string"===n)for(r=0,i=ot(this),o=t.match(xt)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==t&&"boolean"!==n||((e=B(this))&&St.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":St.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+B(n)+" ").replace(he," ").indexOf(e)>-1)return!0;return!1}});var fe=/\r/g;ot.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=ot.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,ot(this).val()):t)?i="":"number"==typeof i?i+="":ot.isArray(i)&&(i=ot.map(i,function(t){return null==t?"":t+""})),(e=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=ot.valHooks[i.type]||ot.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(fe,""):null==n?"":n:void 0}}),ot.extend({valHooks:{option:{get:function(t){return ot.trim(t.value)}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,s=o?null:[],a=o?i+1:r.length,u=i<0?a:o?i:0;u<a;u++)if(((n=r[u]).selected||u===i)&&(rt.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ot.nodeName(n.parentNode,"optgroup"))){if(e=ot(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,r,i=t.options,o=ot.makeArray(e),s=i.length;s--;)((r=i[s]).selected=ot.inArray(ot.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),ot.each(["radio","checkbox"],function(){ot.valHooks[this]={set:function(t,e){if(ot.isArray(e))return t.checked=ot.inArray(ot(t).val(),e)>-1}},rt.checkOn||(ot.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var me=/^(?:focusinfocus|focusoutblur)$/;ot.extend(ot.event,{trigger:function(e,n,r,i){var o,s,a,u,l,c,d,p=[r||Q],h=nt.call(e,"type")?e.type:e,f=nt.call(e,"namespace")?e.namespace.split("."):[];if(s=a=r=r||Q,3!==r.nodeType&&8!==r.nodeType&&!me.test(h+ot.event.triggered)&&(h.indexOf(".")>-1&&(f=h.split("."),h=f.shift(),f.sort()),l=h.indexOf(":")<0&&"on"+h,(e=e[ot.expando]?e:new ot.Event(h,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=null==n?[e]:ot.makeArray(n,[e]),d=ot.event.special[h]||{}
vendor: 4,145 bytes, line 3
3,i||!d.trigger||!1!==d.trigger.apply(r,n))){if(!i&&!d.noBubble&&!ot.isWindow(r)){for(u=d.delegateType||h,me.test(u+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(r.ownerDocument||Q)&&p.push(a.defaultView||a.parentWindow||t)}for(o=0;(s=p[o++])&&!e.isPropagationStopped();)e.type=o>1?u:d.bindType||h,(c=(St.get(s,"events")||{})[e.type]&&St.get(s,"handle"))&&c.apply(s,n),(c=l&&s[l])&&c.apply&&Et(s)&&(e.result=c.apply(s,n),!1===e.result&&e.preventDefault());return e.type=h,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),n)||!Et(r)||l&&ot.isFunction(r[h])&&!ot.isWindow(r)&&((a=r[l])&&(r[l]=null),ot.event.triggered=h,r[h](),ot.event.triggered=void 0,a&&(r[l]=a)),e.result}},simulate:function(t,e,n){var r=ot.extend(new ot.Event,n,{type:t,isSimulated:!0});ot.event.trigger(r,null,e),r.isDefaultPrevented()&&n.preventDefault()}}),ot.fn.extend({trigger:function(t,e){return this.each(function(){ot.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return ot.event.trigger(t,e,n,!0)}}),ot.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){ot.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ot.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),rt.focusin="onfocusin"in t,rt.focusin||ot.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){ot.event.simulate(e,t.target,ot.event.fix(t))};ot.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=St.access(r,e);i||r.addEventListener(t,n,!0),St.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=St.access(r,e)-1;i?St.access(r,e,i):(r.removeEventListener(t,n,!0),St.remove(r,e))}}});var ge=t.location,ye=ot.now(),ve=/\?/;ot.parseJSON=function(t){return JSON.parse(t+"")},ot.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||ot.error("Invalid XML: "+e),n};var be=/#.*$/,we=/([?&])_=[^&]*/,xe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ce=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ee=/^(?:GET|HEAD)$/,Se=/^\/\//,ke={},Te={},Ae="*/".concat("*"),Le=Q.createElement("a");Le.href=ge.href,ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ge.href,type:"GET",isLocal:Ce.test(ge.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ae,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?W(W(t,ot.ajaxSettings),e):W(ot.ajaxSettings,t)},ajaxPrefilter:O(ke),ajaxTransport:O(Te),ajax:function(e,n){function r(e,n,r,a){var l,d,v,b,x,E=n;2!==w&&(w=2,u&&t.clearTimeout(u),i=void 0,s=a||"",C.readyState=e>0?4:0,l=e>=200&&e<300||304===e,r&&(b=V(p,C,r)),b=U(p,b,C,l),l?(p.ifModified&&((x=C.getResponseHeader("Last-Modified"))&&(ot.lastModified[o]=x),(x=C.getResponseHeader("etag"))&&(ot.etag[o]=x)),204===e||"HEAD"===p.type?E="nocontent":304===e?E="notmodified":(E=b.state,d=b.data,l=!(v=b.error))):(v=E,!e&&E||(E="error",e<0&&(e=0))),C.status=e,C.statusText=(n||E)+"",l?m.resolveWith(h,[d,E,C]):m.rejectWith(h,[C,E,v]),C.statusCode(y),y=void 0,c&&f.trigger(l?"ajaxSuccess":"ajaxError",[C,p,l?d:v]),g.fireWith(h,[C,E]),c&&(f.trigger("ajaxComplete",[C,p]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{};var i,o,s,a,u,l,c,d,p=ot.ajaxSetup({},n),h=p.context||p,f=p.context&&(h.nodeType||h.jquery)?ot(h):ot.event,m=ot.Deferred(),g=ot.Callbacks("once memory"),y=p.statusCode||{},v={},b={},w=0,x="canceled",C={readyState:0,getResponseHeader:function(t){var e;
vendor: 4,223 bytes, line 3
3if(2===w){if(!a)for(a={};e=xe.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===w?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return w||(t=b[n]=b[n]||t,v[t]=e),this},overrideMimeType:function(t){return w||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(w<2)for(e in t)y[e]=[y[e],t[e]];else C.always(t[C.status]);return this},abort:function(t){var e=t||x;return i&&i.abort(e),r(0,e),this}};if(m.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((e||p.url||ge.href)+"").replace(be,"").replace(Se,ge.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=ot.trim(p.dataType||"*").toLowerCase().match(xt)||[""],null==p.crossDomain){l=Q.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Le.protocol+"//"+Le.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=ot.param(p.data,p.traditional)),_(ke,p,n,C),2===w)return C;for(d in(c=ot.event&&p.global)&&0===ot.active++&&ot.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ee.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(ve.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=we.test(o)?o.replace(we,"$1_="+ye++):o+(ve.test(o)?"&":"?")+"_="+ye++)),p.ifModified&&(ot.lastModified[o]&&C.setRequestHeader("If-Modified-Since",ot.lastModified[o]),ot.etag[o]&&C.setRequestHeader("If-None-Match",ot.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ae+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(h,C,p)||2===w))return C.abort();for(d in x="abort",{success:1,error:1,complete:1})C[d](p[d]);if(i=_(Te,p,n,C)){if(C.readyState=1,c&&f.trigger("ajaxSend",[C,p]),2===w)return C;p.async&&p.timeout>0&&(u=t.setTimeout(function(){C.abort("timeout")},p.timeout));try{w=1,i.send(v,r)}catch(t){if(!(w<2))throw t;r(-1,t)}}else r(-1,"No Transport");return C},getJSON:function(t,e,n){return ot.get(t,e,n,"json")},getScript:function(t,e){return ot.get(t,void 0,e,"script")}}),ot.each(["get","post"],function(t,e){ot[e]=function(t,n,r,i){return ot.isFunction(n)&&(i=i||r,r=n,n=void 0),ot.ajax(ot.extend({url:t,type:e,dataType:i,data:n,success:r},ot.isPlainObject(t)&&t))}}),ot._evalUrl=function(t){return ot.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},ot.fn.extend({wrapAll:function(t){var e;return ot.isFunction(t)?this.each(function(e){ot(this).wrapAll(t.call(this,e))}):(this[0]&&(e=ot(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return ot.isFunction(t)?this.each(function(e){ot(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ot(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ot.isFunction(t);return this.each(function(n){ot(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)}).end()}}),ot.expr.filters.hidden=function(t){return!ot.expr.filters.visible(t)},ot.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var $e=/%20/g,je=/\[\]$/,Ie=/\r?\n/g,Ne=/^(?:submit|button|image|reset|file)$/i,De=/^(?:input|select|textarea|keygen)/i;ot.param=function(t,e){var n,r=[],i=function(t,e){e=ot.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ot.ajaxSettings&&ot.ajaxSettings.traditional),ot.isArray(t)||t.jquery&&!ot.isPlainObject(t))ot.each(t,function(){i(this.name,this.value)});else for(n in t)z(n,t[n],e,i);return r.join("&").replace($e,"+")},ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ot.prop(this,"elements");return t?ot.makeArray(t):this}
3).filter(function(){var t=this.type;return this.name&&!ot(this).is(":disabled")&&De.test(this.nodeName)&&!Ne.test(t)&&(this.checked||!Nt.test(t))}).map(function(t,e){var n=ot(this).val();return null==n?null:ot.isArray(n)?ot.map(n,function(t){return{name:e.name,value:t.replace(Ie,"\r\n")}}):{name:e.name,value:n.replace(Ie,"\r\n")}}).get()}}),ot.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Re={0:200,1223:204},qe=ot.ajaxSettings.xhr();rt.cors=!!qe&&"withCredentials"in qe,rt.ajax=qe=!!qe,ot.ajaxTransport(function(e){var n,r;if(rt.cors||qe&&!e.crossDomain)return{send:function(i,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);n=function(t){return function(){n&&(n=r=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Re[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),r=a.onerror=n("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout(function(){n&&r()})},n=n("abort");try{a.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return ot.globalEval(t),t}}}),ot.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),ot.ajaxTransport("script",function(t){var e,n;if(t.crossDomain)return{send:function(r,i){e=ot("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),Q.head.appendChild(e[0])},abort:function(){n&&n()}}});var Pe,He=[],Me=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=He.pop()||ot.expando+"_"+ye++;return this[t]=!0,t}}),ot.ajaxPrefilter("json jsonp",function(e,n,r){var i,o,s,a=!1!==e.jsonp&&(Me.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Me.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=ot.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Me,"$1"+i):!1!==e.jsonp&&(e.url+=(ve.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||ot.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=t[i],t[i]=function(){s=arguments},r.always(function(){void 0===o?ot(t).removeProp(i):t[i]=o,e[i]&&(e.jsonpCallback=n.jsonpCallback,He.push(i)),s&&ot.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),rt.createHTMLDocument=((Pe=Q.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Pe.childNodes.length),ot.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||(rt.createHTMLDocument?Q.implementation.createHTMLDocument(""):Q);var r=ft.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=p([t],e,i),i&&i.length&&ot(i).remove(),ot.merge([],r.childNodes))};var Fe=ot.fn.load;ot.fn.load=function(t,e,n){if("string"!=typeof t&&Fe)return Fe.apply(this,arguments);var r,i,o,s=this,a=t.indexOf(" ");return a>-1&&(r=ot.trim(t.slice(a)),t=t.slice(0,a)),ot.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),s.length>0&&ot.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){o=arguments,s.html(r?ot("<div>").append(ot.parseHTML(t)).find(r):t)}).always(n&&function(t,e){s.each(function(){n.apply(s,o||[t.responseText,e,t])})}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ot.fn[e]=function(t){return this.on(e,t)}}),ot.expr.filters.animated=function(t){return ot.grep(ot.timers,function(e){return t===e.elem}).length},ot.offset={setOffset:function(t,e,n){var r,i,o,s,a,u,l=ot.css(t,"position"),c=ot(t),d={};"static"===l&&(t.style.position="relative"),a=c.offset(),o=ot.css(t,"top"),u=ot.css(t,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(s=(r=c.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),ot.isFunction(e)&&(e=e.call(t,n,ot.extend({},a))),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+i),"using"in e?e.using.call(t,d):c.css(d)}},ot.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ot.offset.setOffset(this,t,e)});var e,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;return o?(e=o.documentElement,ot.contains(e,r)?(i=r.getBoundingClientRect(),n=X(o),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}):i):void 0},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===ot.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ot.nodeName(t[0],"html")||(r=t.offset()),r.top+=ot.css(t[0],"borderTopWidth",!0)-t.scrollTop(),r.left+=ot.css(t[0],"borderLeftWidth",!0)-t.scrollLeft()),{top:e.top-r.top-ot.css(n,"marginTop",!0),left:e.left-r.left-ot.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===ot.css(t,"position");)t=t.offsetParent;return t||Zt})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;ot.fn[t]=function(r){return Ct(this,function(t,r,i){var o=X(t);if(void 0===i)return o?o[e]:t[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i},t,r,arguments.length)}}),ot.each(["top","left"],function(t,e){ot.cssHooks[e]=A(rt.pixelPosition,function(t,n){if(n)return n=T(t,e),Kt.test(n)?ot(t).position()[e]+"px":n})}),ot.each({Height:"height",Width:"width"},function(t,e){ot.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){ot.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===i?"margin":"border");return Ct(this,function(e,n,r){var i;return ot.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?ot.css(e,n,s):ot.style(e,n,r,s)},e,o?r:void 0,o,null)}})}),ot.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),ot.fn.andSelf=ot.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot});var Be=t.jQuery,Oe=t.$;return ot.noConflict=function(e){return t.$===ot&&(t.$=Oe),e&&t.jQuery===ot&&(t.jQuery=Be),ot},e||(t.jQuery=t.$=ot),ot}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Rails=e()}(this,function(){"use strict";const t="a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",e={selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},n="select[data-remote], input[data-remote], textarea[data-remote]",r="form:not([data-turbo=true])",i="form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",o="input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",s="input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",a="input[name][type=file]:not([disabled])",u="a[data-disable-with], a[data-disable]",l="button[data-remote][data-disable-with], button[data-remote][data-disable]";let c=null;const d=()=>{const t=document.querySelector("meta[name=csp-nonce]");return c=t&&t.content},p=()=>c||d(),h=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,f=function(t,e){return e.exclude?h.call(t,e.selector)&&!h.call(t,e.exclude):h.call(t,e)},m="_ujsData",g=(t,e)=>t[m]?t[m][e]:void 0,y=function(t,e,n){return t[m]||(t[m]={}),t[m][e]=n},v=t=>Array.prototype.slice.call(document.querySelectorAll(t)),b=function(t){var e=!1;do{if(t.isContentEditable){e=!0;break}t=t.parentElement}while(t);return e},w=()=>{const t=document.querySelector("meta[name=csrf-token]");return t&&t.content},x=()=>{const t=document.querySelector("meta[name=csrf-param]");return t&&t.content},C=t=>{const e=w();if(e)return t.setRequestHeader("X-CSRF-Token",e)},E=()=>{const t=w(),e=x();
3if(t&&e)return v('form input[name="'+e+'"]').forEach(e=>e.value=t)},S={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},k=t=>{t=T(t);var e=A(t,function(){const n=L(null!=e.response?e.response:e.responseText,e.getResponseHeader("Content-Type"));return 2===Math.floor(e.status/100)?"function"==typeof t.success&&t.success(n,e.statusText,e):"function"==typeof t.error&&t.error(n,e.statusText,e),"function"==typeof t.complete?t.complete(e,e.statusText):void 0});return!(t.beforeSend&&!t.beforeSend(e,t))&&(e.readyState===XMLHttpRequest.OPENED?e.send(t.data):void 0)};var T=function(t){return t.url=t.url||location.href,t.type=t.type.toUpperCase(),"GET"===t.type&&t.data&&(t.url.indexOf("?")<0?t.url+="?"+t.data:t.url+="&"+t.data),t.dataType in S||(t.dataType="*"),t.accept=S[t.dataType],"*"!==t.dataType&&(t.accept+=", */*; q=0.01"),t},A=function(t,e){const n=new XMLHttpRequest;return n.open(t.type,t.url,!0),n.setRequestHeader("Accept",t.accept),"string"==typeof t.data&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),t.crossDomain||(n.setRequestHeader("X-Requested-With","XMLHttpRequest"),C(n)),n.withCredentials=!!t.withCredentials,n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)return e(n)},n},L=function(t,e){if("string"==typeof t&&"string"==typeof e)if(e.match(/\bjson\b/))try{t=JSON.parse(t)}catch(t){}else if(e.match(/\b(?:java|ecma)script\b/)){const e=document.createElement("script");e.setAttribute("nonce",p()),e.text=t,document.head.appendChild(e).parentNode.removeChild(e)}else if(e.match(/\b(xml|html|svg)\b/)){const n=new DOMParser;e=e.replace(/;.+/,"");try{t=n.parseFromString(t,e)}catch(t){}}return t};const $=t=>t.href,j=function(t){const e=document.createElement("a");e.href=location.href;const n=document.createElement("a");try{return n.href=t,!((!n.protocol||":"===n.protocol)&&!n.host||e.protocol+"//"+e.host==n.protocol+"//"+n.host)}catch(t){return!0}};let I,{CustomEvent:N}=window;"function"!=typeof N&&(N=function(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n},N.prototype=window.Event.prototype,({preventDefault:I}=N.prototype),N.prototype.preventDefault=function(){const t=I.call(this);return this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get:()=>!0}),t});const D=(t,e,n)=>{const r=new N(e,{bubbles:!0,cancelable:!0,detail:n});return t.dispatchEvent(r),!r.defaultPrevented},R=t=>{D(t.target,"ujs:everythingStopped"),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()},q=(t,e,n,r)=>t.addEventListener(n,function(t){let{target:n}=t;for(;n instanceof Element&&!f(n,e);)n=n.parentNode;n instanceof Element&&!1===r.call(n,t)&&(t.preventDefault(),t.stopPropagation())}),P=t=>Array.prototype.slice.call(t),H=(t,e)=>{let n=[t];f(t,"form")&&(n=P(t.elements));const r=[];return n.forEach(function(t){t.name&&!t.disabled&&(f(t,"fieldset[disabled] *")||(f(t,"select")?P(t.options).forEach(function(e){e.selected&&r.push({name:t.name,value:e.value})}):(t.checked||-1===["radio","checkbox","submit"].indexOf(t.type))&&r.push({name:t.name,value:t.value})))}),e&&r.push(e),r.map(function(t){return t.name?`${encodeURIComponent(t.name)}=${encodeURIComponent(t.value)}`:t}).join("&")},M=(t,e)=>f(t,"form")?P(t.elements).filter(t=>f(t,e)):P(t.querySelectorAll(e)),F=t=>function(e){B(this,t)||R(e)};var B=function(t,e){let n;const r=t.getAttribute("data-confirm");if(!r)return!0;let i=!1;if(D(t,"confirm")){try{i=e.confirm(r,t)}catch(t){}n=D(t,"confirm:complete",[i])}return i&&n};const O=function(t){this.disabled&&R(t)},_=t=>{let e;if(t instanceof Event){if(K(t))return;e=t.target}else e=t;if(!b(e))return f(e,u)?U(e):f(e,l)||f(e,s)?Q(e):f(e,r)?G(e):void 0},W=t=>{const e=t instanceof Event?t.target:t;if(!b(e))return f(e,u)?V(e):f(e,l)||f(e,o)?X(e):f(e,r)?z(e):void 0};var V=function(t){if(g(t,"ujs:disabled"))return;const e=t.getAttribute("data-disable-with");return null!=e&&(y(t,"ujs:enable-with",t.innerHTML),t.innerHTML=e),t.addEventListener("click",R),y(t,"ujs:disabled",!0)},U=function(t){const e=g(t,"ujs:enable-with");return null!=e&&(t.innerHTML=e,y(t,"ujs:enable-with",null)),t.removeEventListener("click",R),y(t,"ujs:disabled",null)},z=t=>
3M(t,o).forEach(X),X=function(t){if(g(t,"ujs:disabled"))return;const e=t.getAttribute("data-disable-with");return null!=e&&(f(t,"button")?(y(t,"ujs:enable-with",t.innerHTML),t.innerHTML=e):(y(t,"ujs:enable-with",t.value),t.value=e)),t.disabled=!0,y(t,"ujs:disabled",!0)},G=t=>M(t,s).forEach(t=>Q(t)),Q=function(t){const e=g(t,"ujs:enable-with");return null!=e&&(f(t,"button")?t.innerHTML=e:t.value=e,y(t,"ujs:enable-with",null)),t.disabled=!1,y(t,"ujs:disabled",null)},K=function(t){const e=t.detail?t.detail[0]:void 0;return e&&e.getResponseHeader("X-Xhr-Redirect")};const Y=t=>function(e){const n=this,r=n.getAttribute("data-method");if(!r)return;if(b(this))return;const i=t.href(n),o=w(),s=x(),a=document.createElement("form");let u=`<input name='_method' value='${r}' type='hidden' />`;s&&o&&!j(i)&&(u+=`<input name='${s}' value='${o}' type='hidden' />`),u+='<input type="submit" />',a.method="post",a.action=i,a.target=n.target,a.innerHTML=u,a.style.display="none",document.body.appendChild(a),a.querySelector('[type="submit"]').click(),R(e)},J=function(t){const e=t.getAttribute("data-remote");return null!=e&&"false"!==e},Z=t=>function(i){let o,s,a;const u=this;if(!J(u))return!0;if(!D(u,"ajax:before"))return D(u,"ajax:stopped"),!1;if(b(u))return D(u,"ajax:stopped"),!1;const l=u.getAttribute("data-with-credentials"),c=u.getAttribute("data-type")||"script";if(f(u,r)){const t=g(u,"ujs:submit-button");s=g(u,"ujs:submit-button-formmethod")||u.getAttribute("method")||"get",a=g(u,"ujs:submit-button-formaction")||u.getAttribute("action")||location.href,"GET"===s.toUpperCase()&&(a=a.replace(/\?.*$/,"")),"multipart/form-data"===u.enctype?(o=new FormData(u),null!=t&&o.append(t.name,t.value)):o=H(u,t),y(u,"ujs:submit-button",null),y(u,"ujs:submit-button-formmethod",null),y(u,"ujs:submit-button-formaction",null)}else f(u,e)||f(u,n)?(s=u.getAttribute("data-method"),a=u.getAttribute("data-url"),o=H(u,u.getAttribute("data-params"))):(s=u.getAttribute("data-method"),a=t.href(u),o=u.getAttribute("data-params"));k({type:s||"GET",url:a,data:o,dataType:c,beforeSend:(t,e)=>D(u,"ajax:beforeSend",[t,e])?D(u,"ajax:send",[t]):(D(u,"ajax:stopped"),!1),success:(...t)=>D(u,"ajax:success",t),error:(...t)=>D(u,"ajax:error",t),complete:(...t)=>D(u,"ajax:complete",t),crossDomain:j(a),withCredentials:null!=l&&"false"!==l}),R(i)},tt=function(){const t=this,{form:e}=t;if(e)return t.name&&y(e,"ujs:submit-button",{name:t.name,value:t.value}), 4y(e,"ujs:formnovalidate-button",t.formNoValidate),y(e,"ujs:submit-button-formaction",t.getAttribute("formaction")),y(e,"ujs:submit-button-formmethod",t.getAttribute("formmethod"))},et=function(t){const e=this,n=(e.getAttribute("data-method")||"GET").toUpperCase(),r=e.getAttribute("data-params"),i=(t.metaKey||t.ctrlKey)&&"GET"===n&&!r;(null!=t.button&&0!==t.button||i)&&t.stopImmediatePropagation()},nt={$:v,ajax:k,buttonClickSelector:e,buttonDisableSelector:l,confirm:t=>window.confirm(t),cspNonce:p,csrfToken:w,csrfParam:x,CSRFProtection:C,delegate:q,disableElement:W,enableElement:_,fileInputSelector:a,fire:D,formElements:M,formEnableSelector:s,formDisableSelector:o,formInputClickSelector:i,formSubmitButtonClick:tt,formSubmitSelector:r,getData:g,handleDisabledElement:O,href:$,inputChangeSelector:n,isCrossDomain:j,linkClickSelector:t,linkDisableSelector:u,loadCSPNonce:d,matches:f,preventInsignificantClick:et,refreshCSRFTokens:E,serializeElement:H,setData:y,stopEverything:R},rt=F(nt);nt.handleConfirm=rt;const it=Y(nt);nt.handleMethod=it;const ot=Z(nt);nt.handleRemote=ot;const st=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",function(){v(s).forEach(function(t){g(t,"ujs:disabled")&&_(t)}),v(u).forEach(function(t){g(t,"ujs:disabled")&&_(t)})}),q(document,u,"ajax:complete",_),q(document,u,"ajax:stopped",_),q(document,l,"ajax:complete",_),q(document,l,"ajax:stopped",_),q(document,t,"click",et),q(document,t,"click",O),q(document,t,"click",rt),q(document,t,"click",W),q(document,t,"click",ot),q(document,t,"click",it),q(document,e,"click",et),q(document,e,"click",O),q(document,e,"click",rt),q(document,e,"click",W),q(document,e,"click",ot),q(document,n,"change",O),q(document,n,"change",rt),q(document,n,"change",ot),q(document,r,"submit",O),q(document,r,"submit",rt),q(document,r,"submit",ot),q(document,r,"submit",t=>setTimeout(()=>W(t),13)),q(document,r,"ajax:send",W),q(document,r,"ajax:complete",_),q(document,i,"click",et),q(document,i,"click",O),q(document,i,"click",rt),q(document,i,"click",tt),document.addEventListener("DOMContentLoaded",E),document.addEventListener("DOMContentLoaded",d),window._rail
4s_loaded=!0};if(nt.start=st,"undefined"!=typeof jQuery&&jQuery&&jQuery.ajax){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-ujs, use rails-ujs only.");jQuery.rails=nt,jQuery.ajaxPrefilter(function(t,e,n){if(!t.crossDomain)return C(n)})}return"object"!=typeof exports&&"undefined"==typeof module&&(window.Rails=nt,D(document,"rails:attachBindings")&&st()),nt}),function(){var t=this;(function(){(function(){this.Turbolinks={supported:null!=window.history.pushState&&null!=window.requestAnimationFrame&&null!=window.addEventListener,visit:function(t,n){return e.controller.visit(t,n)},clearCache:function(){return e.controller.clearCache()},setProgressBarDelay:function(t){return e.controller.setProgressBarDelay(t)}}}).call(this)}).call(t);var e=t.Turbolinks;(function(){(function(){var t,n,r,i=[].slice;e.copyObject=function(t){var e,n,r;for(e in n={},t)r=t[e],n[e]=r;return n},e.closest=function(e,n){return t.call(e,n)},t=function(){var t;return null!=(t=document.documentElement.closest)?t:function(t){var e;for(e=this;e;){if(e.nodeType===Node.ELEMENT_NODE&&n.call(e,t))return e;e=e.parentNode}}}(),e.defer=function(t){return setTimeout(t,1)},e.throttle=function(t){var e;return e=null,function(){var n;return n=1<=arguments.length?i.call(arguments,0):[],null!=e?e:e=requestAnimationFrame(function(r){return function(){return e=null,t.apply(r,n)}}(this))}},e.dispatch=function(t,e){var n,i,o,s,a,u;return u=(a=null!=e?e:{}).target,n=a.cancelable,i=a.data,(o=document.createEvent("Events")).initEvent(t,!0,!0===n),o.data=null!=i?i:{},o.cancelable&&!r&&(s=o.preventDefault,o.preventDefault=function(){return this.defaultPrevented||Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),s.call(this)}),(null!=u?u:document).dispatchEvent(o),o},r=function(){var t;return(t=document.createEvent("Events")).initEvent("test",!0,!0),t.preventDefault(),t.defaultPrevented}(),e.match=function(t,e){return n.call(t,e)},n=function(){var t,e,n,r;return null!=(e=null!=(n=null!=(r=(t=document.documentElement).matchesSelector)?r:t.webkitMatchesSelector)?n:t.msMatchesSelector)?e:t.mozMatchesSelector}(),e.uuid=function(){var t,e,n;for(n="",t=e=1;36>=e;t=++e)n+=9===t||14===t||19===t||24===t?"-":15===t?"4":20===t?(Math.floor(4*Math.random())+8).toString(16):Math.floor(15*Math.random()).toString(16);return n}}).call(this),function(){e.Location=function(){function t(t){var e,n;null==t&&(t=""),(n=document.createElement("a")).href=t.toString(),this.absoluteURL=n.href,2>(e=n.hash.length)?this.requestURL=this.absoluteURL:(this.requestURL=this.absoluteURL.slice(0,-e),this.anchor=n.hash.slice(1))}var e,n,r,i;return t.wrap=function(t){return t instanceof this?t:new this(t)},t.prototype.getOrigin=function(){return this.absoluteURL.split("/",3).join("/")},t.prototype.getPath=function(){var t,e;return null!=(t=null!=(e=this.requestURL.match(/\/\/[^\/]*(\/[^?;]*)/))?e[1]:void 0)?t:"/"},t.prototype.getPathComponents=function(){return this.getPath().split("/").slice(1)},t.prototype.getLastPathComponent=function(){return this.getPathComponents().slice(-1)[0]},t.prototype.getExtension=function(){var t,e;return null!=(t=null!=(e=this.getLastPathComponent().match(/\.[^.]*$/))?e[0]:void 0)?t:""},t.prototype.isHTML=function(){return this.getExtension().match(/^(?:|\.(?:htm|html|xhtml))$/)},t.prototype.isPrefixedBy=function(t){var e;return e=n(t),this.isEqualTo(t)||i(this.absoluteURL,e)},t.prototype.isEqualTo=function(t){return this.absoluteURL===(null!=t?t.absoluteURL:void 0)},t.prototype.toCacheKey=function(){return this.requestURL},t.prototype.toJSON=function(){return this.absoluteURL},t.prototype.toString=function(){return this.absoluteURL},t.prototype.valueOf=function(){return this.absoluteURL},n=function(t){return e(t.getOrigin()+t.getPath())},e=function(t){return r(t,"/")?t:t+"/"},i=function(t,e){return t.slice(0,e.length)===e},r=function(t,e){return t.slice(-e.length)===e},t}()}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.HttpRequest=function(){function n(n,r,i){this.delegate=n,this.requestCanceled=t(this.requestCanceled,this),this.requestTimedOut=t(this.requestTimedOut,this),this.requestFailed=t(this.requestFailed,this),this.requestLoaded=t(this.requestLoaded,this),this.requestProgressed=t(this.requestProgressed,this),this.url=e.Location.wrap(r).requestURL,this.referrer=e.Location.wrap(i).absoluteURL,this.createXHR()}return n.NETWORK_FAILURE=0,n.TIMEOUT_FAILURE=-1,n.timeout=60,n.prototype.send=function(){var t;return this.xhr&&!this.sent?(this.notifyApplicationBeforeRequestStart(),this.setProgress(0),this.xhr.send(),this.sent=!0,"function"==typeof(t=this.delegate).requestStarted?t.requestStarted():void 0):void 0},n.prototype.cancel=function(){return this.xhr&&this.sent?this.xhr.abort():void 0},n.prototype.requestProgressed=function(t){return t.lengthComputable?this.setProgress(t.loaded/t.total):void 0},n.prototype.requestLoaded=function(){return this.endRequest(function(t){return function(){var e;return 200<=(e=t.xhr.status)&&300>e?t.delegate.requestCompletedWithResponse(t.xhr.responseText,t.xhr.getResponseHeader("Turbolinks-Location")):(t.failed=!0,t.delegate.requestFailedWithStatusCode(t.xhr.status,t.xhr.responseText))}}(this))},n.prototype.requestFailed=function(){return this.endRequest(function(t){return function(){return t.failed=!0,t.delegate.requestFailedWithStatusCode(t.constructor.NETWORK_FAILURE)}}(this))},n.prototype.requestTimedOut=function(){return this.endRequest(function(t){return function(){return t.failed=!0,t.delegate.requestFailedWithStatusCode(t.constructor.TIMEOUT_FAILURE)}}(this))},n.prototype.requestCanceled=function(){return this.endRequest()},n.prototype.notifyApplicationBeforeRequestStart=function(){return e.dispatch("turbolinks:request-start",{data:{url:this.url,xhr:this.xhr}})},n.prototype.notifyApplicationAfterRequestEnd=function(){return e.dispatch("turbolinks:request-end",{data:{url:this.url,xhr:this.xhr}})},n.prototype.createXHR=function(){return this.xhr=new XMLHttpRequest,this.xhr.open("GET",this.url,!0),this.xhr.timeout=1e3*this.constructor.timeout,this.xhr.setRequestHeader("Accept","text/html, application/xhtml+xml"),this.xhr.setRequestHeader("Turbolinks-Referrer",this.referrer),this.xhr.onprogress=this.requestProgressed,this.xhr.onload=this.requestLoaded,this.xhr.onerror=this.requestFailed,this.xhr.ontimeout=this.requestTimedOut,this.xhr.onabort=this.requestCanceled},n.prototype.endRequest=function(t){return this.xhr?(this.notifyApplicationAfterRequestEnd(),null!=t&&t.call(this),this.destroy()):void 0},n.prototype.setProgress=function(t){var e;return this.progress=t,"function"==typeof(e=this.delegate).requestProgressed?e.requestProgressed(this.progress):void 0},n.prototype.destroy=function(){var t;return this.setProgress(1),"function"==typeof(t=this.delegate).requestFinished&&t.requestFinished(),this.delegate=null,this.xhr=null},n}()}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.ProgressBar=function(){function e(){this.trickle=t(this.trickle,this),this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement()}var n;return n=300,e.defaultCSS=".turbolinks-progress-bar {\n position: fixed;\n display: block;\n top: 0;\n left: 0;\n height: 3px;\n background: #0076ff;\n z-index: 9999;\n transition: width "+n+"ms ease-out, opacity "+n/2+"ms "+n/2+"ms ease-in;\n transform: translate3d(0, 0, 0);\n}",e.prototype.show=function(){return this.visible?void 0:(this.visible=!0,this.installStylesheetElement(),this.installProgressElement(),this.startTrickling())},e.prototype.hide=function(){return this.visible&&!this.hiding?(this.hiding=!0,this.fadeProgressElement(function(t){return function(){return t.uninstallProgressElement(),t.stopTrickling(),t.visible=!1,t.hiding=!1}}(this))):void 0},e.prototype.setValue=function(t){return this.value=t,this.refresh()},e.prototype.installStylesheetElement=function(){return document.head.insertBefore(this.stylesheetElement,document.head.firstChild)},e.prototype.installProgressElement=function(){return this.progressElement.style.width=0,this.progressElement.style.opacity=1,document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()},e.prototype.fadeProgressElement=function(t){return this.progressElement.style.opacity=0,setTimeout(t,1.5*n)},e.prototype.uninstallProgressElement=function(){return this.progressElement.parentNode?document.documentElement.removeChild(this.progressElement):void 0},e.prototype.startTrickling=function(){return null!=this.trickleInterval?this.trickleInterval:this.trickleInterval=setInterval(this.trickle,n)},e.prototype.stopTrickling=function(){return clearInterval(this.trickleInterval),this.trickleInterval=null},e.prototype.trickle=function(){return this.setValue(this.value+Math.random()/100)},e.prototype.refresh=function(){return requestAnimationFrame(function(t){return function(){return t.progressElement.style.width=10+90*t.value+"%"}}(this))},e.prototype.createStylesheetElement=function(){var t;return(t=document.createElement("style")).type="text/css",t.textContent=this.constructor.defaultCSS,t},e.prototype.createProgressElement=function(){var t;return(t=document.createElement("div")).className="turbolinks-progress-bar",t},e}()}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.BrowserAdapter=function(){function n(n){this.controller=n,this.showProgressBar=t(this.showProgressBar,this),this.progressBar=new e.ProgressBar}var r,i,o;return o=e.HttpRequest,r=o.NETWORK_FAILURE,i=o.TIMEOUT_FAILURE,n.prototype.visitProposedToLocationWithAction=function(t,e){return this.controller.startVisitToLocationWithAction(t,e)},n.prototype.visitStarted=function(t){return t.issueRequest(),t.changeHistory(),t.loadCachedSnapshot()},n.prototype.visitRequestStarted=function(t){return this.progressBar.setValue(0),t.hasCachedSnapshot()||"restore"!==t.action?this.showProgressBarAfterDelay():this.showProgressBar()},n.prototype.visitRequestProgressed=function(t){return this.progressBar.setValue(t.progress)},n.prototype.visitRequestCompleted=function(t){return t.loadResponse()},n.prototype.visitRequestFailedWithStatusCode=function(t,e){switch(e){case r:case i:return this.reload();default:return t.loadResponse()}},n.prototype.visitRequestFinished=function(){return this.hideProgressBar()},n.prototype.visitCompleted=function(t){return t.followRedirect()},n.prototype.pageInvalidated=function(){return this.reload()},n.prototype.showProgressBarAfterDelay=function(){return this.progressBarTimeout=setTimeout(this.showProgressBar,this.controller.progressBarDelay)},n.prototype.showProgressBar=function(){return this.progressBar.show()},n.prototype.hideProgressBar=function(){return this.progressBar.hide(),clearTimeout(this.progressBarTimeout)},n.prototype.reload=function(){return window.location.reload()},n}()}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.History=function(){function n(e){this.delegate=e,this.onPageLoad=t(this.onPageLoad,this),this.onPopState=t(this.onPopState,this)}return n.prototype.start=function(){return this.started?void 0:(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.started=!0)},n.prototype.stop=function(){return this.started?(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1):void 0},n.prototype.push=function(t,n){return t=e.Location.wrap(t),this.update("push",t,n)},n.prototype.replace=function(t,n){return t=e.Location.wrap(t),this.update("replace",t,n
4)},n.prototype.onPopState=function(t){var n,r,i,o;return this.shouldHandlePopState()&&(o=null!=(r=t.state)?r.turbolinks:void 0)?(n=e.Location.wrap(window.location),i=o.restorationIdentifier,this.delegate.historyPoppedToLocationWithRestorationIdentifier(n,i)):void 0},n.prototype.onPageLoad=function(){return e.defer(function(t){return function(){return t.pageLoaded=!0}}(this))},n.prototype.shouldHandlePopState=function(){return this.pageIsLoaded()},n.prototype.pageIsLoaded=function(){return this.pageLoaded||"complete"===document.readyState},n.prototype.update=function(t,e,n){var r;return r={turbolinks:{restorationIdentifier:n}},history[t+"State"](r,null,e)},n}()}.call(this),function(){e.HeadDetails=function(){function t(t){var e,n,r,s,a;for(this.elements={},n=0,s=t.length;s>n;n++)(a=t[n]).nodeType===Node.ELEMENT_NODE&&(r=a.outerHTML,(null!=(e=this.elements)[r]?e[r]:e[r]={type:o(a),tracked:i(a),elements:[]}).elements.push(a))}var e,n,r,i,o;return t.fromHeadElement=function(t){var e;return new this(null!=(e=null!=t?t.childNodes:void 0)?e:[])},t.prototype.hasElementWithKey=function(t){return t in this.elements},t.prototype.getTrackedElementSignature=function(){var t;return function(){var e,n;for(t in n=[],e=this.elements)e[t].tracked&&n.push(t);return n}.call(this).join("")},t.prototype.getScriptElementsNotInDetails=function(t){return this.getElementsMatchingTypeNotInDetails("script",t)},t.prototype.getStylesheetElementsNotInDetails=function(t){return this.getElementsMatchingTypeNotInDetails("stylesheet",t)},t.prototype.getElementsMatchingTypeNotInDetails=function(t,e){var n,r,i,o,s,a;for(r in s=[],i=this.elements)a=(o=i[r]).type,n=o.elements,a!==t||e.hasElementWithKey(r)||s.push(n[0]);return s},t.prototype.getProvisionalElements=function(){var t,e,n,r,i,o,s;for(e in n=[],r=this.elements)s=(i=r[e]).type,o=i.tracked,t=i.elements,null!=s||o?t.length>1&&n.push.apply(n,t.slice(1)):n.push.apply(n,t);return n},t.prototype.getMetaValue=function(t){var e;return null!=(e=this.findMetaElementByName(t))?e.getAttribute("content"):void 0},t.prototype.findMetaElementByName=function(t){var n,r,i,o;for(i in n=void 0,o=this.elements)r=o[i].elements,e(r[0],t)&&(n=r[0]);return n},o=function(t){return n(t)?"script":r(t)?"stylesheet":void 0},i=function(t){return"reload"===t.getAttribute("data-turbolinks-track")},n=function(t){return"script"===t.tagName.toLowerCase()},r=function(t){var e;return"style"===(e=t.tagName.toLowerCase())||"link"===e&&"stylesheet"===t.getAttribute("rel")},e=function(t,e){return"meta"===t.tagName.toLowerCase()&&t.getAttribute("name")===e},t}()}.call(this),function(){e.Snapshot=function(){function t(t,e){this.headDetails=t,this.bodyElement=e}return t.wrap=function(t){return t instanceof this?t:"string"==typeof t?this.fromHTMLString(t):this.fromHTMLElement(t)},t.fromHTMLString=function(t){var e;return(e=document.createElement("html")).innerHTML=t,this.fromHTMLElement(e)},t.fromHTMLElement=function(t){var n,r,i;return r=t.querySelector("head"),n=null!=(i=t.querySelector("body"))?i:document.createElement("body"),new this(e.HeadDetails.fromHeadElement(r),n)},t.prototype.clone=function(){return new this.constructor(this.headDetails,this.bodyElement.cloneNode(!0))},t.prototype.getRootLocation=function(){var t,n;return n=null!=(t=this.getSetting("root"))?t:"/",new e.Location(n)},t.prototype.getCacheControlValue=function(){return this.getSetting("cache-control")},t.prototype.getElementForAnchor=function(t){try{return this.bodyElement.querySelector("[id='"+t+"'], a[name='"+t+"']")}catch(t){}},t.prototype.getPermanentElements=function(){return this.bodyElement.querySelectorAll("[id][data-turbolinks-permanent]")},t.prototype.getPermanentElementById=function(t){return this.bodyElement.querySelector("#"+t+"[data-turbolinks-permanent]")},t.prototype.getPermanentElementsPresentInSnapshot=function(t){var e,n,r,i,o;for(o=[],n=0,r=(i=this.getPermanentElements()).length;r>n;n++)e=i[n],t.getPermanentElementById(e.id)&&o.push(e);return o},t.prototype.findFirstAutofocusableElement=function(){return this.bodyElement.querySelector("[autofocus]")},t.prototype.hasAnchor=function(t){return null!=this.getElementForAnchor(t)},t.prototype.isPreviewable=function(){return"no-preview"!==this.getCacheControlValue()},t.prototype.isCacheable=function(){return"no-cache"!==this.getCacheControlValue()}
4,t.prototype.isVisitable=function(){return"reload"!==this.getSetting("visit-control")},t.prototype.getSetting=function(t){return this.headDetails.getMetaValue("turbolinks-"+t)},t}()}.call(this),function(){var t=[].slice;e.Renderer=function(){function e(){}var n;return e.render=function(){var e,n,r;return n=arguments[0],e=arguments[1],r=function(t,e,n){n.prototype=t.prototype;var r=new n,i=t.apply(r,e);return Object(i)===i?i:r}(this,3<=arguments.length?t.call(arguments,2):[],function(){}),r.delegate=n,r.render(e),r},e.prototype.renderView=function(t){return this.delegate.viewWillRender(this.newBody),t(),this.delegate.viewRendered(this.newBody)},e.prototype.invalidateView=function(){return this.delegate.viewInvalidated()},e.prototype.createScriptElement=function(t){var e;return"false"===t.getAttribute("data-turbolinks-eval")?t:((e=document.createElement("script")).textContent=t.textContent,e.async=!1,n(e,t),e)},n=function(t,e){var n,r,i,o,s,a,u;for(a=[],n=0,r=(o=e.attributes).length;r>n;n++)i=(s=o[n]).name,u=s.value,a.push(t.setAttribute(i,u));return a},e}()}.call(this),function(){var t,n,r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.SnapshotRenderer=function(e){function i(t,e,n){this.currentSnapshot=t,this.newSnapshot=e,this.isPreview=n,this.currentHeadDetails=this.currentSnapshot.headDetails,this.newHeadDetails=this.newSnapshot.headDetails,this.currentBody=this.currentSnapshot.bodyElement,this.newBody=this.newSnapshot.bodyElement}return r(i,e),i.prototype.render=function(t){return this.shouldRender()?(this.mergeHead(),this.renderView(function(e){return function(){return e.replaceBody(),e.isPreview||e.focusFirstAutofocusableElement(),t()}}(this))):this.invalidateView()},i.prototype.mergeHead=function(){return this.copyNewHeadStylesheetElements(),this.copyNewHeadScriptElements(),this.removeCurrentHeadProvisionalElements(),this.copyNewHeadProvisionalElements()},i.prototype.replaceBody=function(){var t;return t=this.relocateCurrentBodyPermanentElements(),this.activateNewBodyScriptElements(),this.assignNewBody(),this.replacePlaceholderElementsWithClonedPermanentElements(t)},i.prototype.shouldRender=function(){return this.newSnapshot.isVisitable()&&this.trackedElementsAreIdentical()},i.prototype.trackedElementsAreIdentical=function(){return this.currentHeadDetails.getTrackedElementSignature()===this.newHeadDetails.getTrackedElementSignature()},i.prototype.copyNewHeadStylesheetElements=function(){var t,e,n,r,i;for(i=[],e=0,n=(r=this.getNewHeadStylesheetElements()).length;n>e;e++)t=r[e],i.push(document.head.appendChild(t));return i},i.prototype.copyNewHeadScriptElements=function(){var t,e,n,r,i;for(i=[],e=0,n=(r=this.getNewHeadScriptElements()).length;n>e;e++)t=r[e],i.push(document.head.appendChild(this.createScriptElement(t)));return i},i.prototype.removeCurrentHeadProvisionalElements=function(){var t,e,n,r,i;for(i=[],e=0,n=(r=this.getCurrentHeadProvisionalElements()).length;n>e;e++)t=r[e],i.push(document.head.removeChild(t));return i},i.prototype.copyNewHeadProvisionalElements=function(){var t,e,n,r,i;for(i=[],e=0,n=(r=this.getNewHeadProvisionalElements()).length;n>e;e++)t=r[e],i.push(document.head.appendChild(t));return i},i.prototype.relocateCurrentBodyPermanentElements=function(){var e,r,i,o,s,a,u;for(u=[],e=0,r=(a=this.getCurrentBodyPermanentElements()).length;r>e;e++)o=a[e],s=t(o),i=this.newSnapshot.getPermanentElementById(o.id),n(o,s.element),n(i,o),u.push(s);return u},i.prototype.replacePlaceholderElementsWithClonedPermanentElements=function(t){var e,r,i,o,s,a;for(a=[],i=0,o=t.length;o>i;i++)r=(s=t[i]).element,e=s.permanentElement.cloneNode(!0),a.push(n(r,e));return a},i.prototype.activateNewBodyScriptElements=function(){var t,e,r,i,o,s;for(s=[],e=0,i=(o=this.getNewBodyScriptElements()).length;i>e;e++)r=o[e],t=this.createScriptElement(r),s.push(n(r,t));return s},i.prototype.assignNewBody=function(){return document.body=this.newBody},i.prototype.focusFirstAutofocusableElement=function(){var t;
4return null!=(t=this.newSnapshot.findFirstAutofocusableElement())?t.focus():void 0},i.prototype.getNewHeadStylesheetElements=function(){return this.newHeadDetails.getStylesheetElementsNotInDetails(this.currentHeadDetails)},i.prototype.getNewHeadScriptElements=function(){return this.newHeadDetails.getScriptElementsNotInDetails(this.currentHeadDetails)},i.prototype.getCurrentHeadProvisionalElements=function(){return this.currentHeadDetails.getProvisionalElements()},i.prototype.getNewHeadProvisionalElements=function(){return this.newHeadDetails.getProvisionalElements()},i.prototype.getCurrentBodyPermanentElements=function(){return this.currentSnapshot.getPermanentElementsPresentInSnapshot(this.newSnapshot)},i.prototype.getNewBodyScriptElements=function(){return this.newBody.querySelectorAll("script")},i}(e.Renderer),t=function(t){var e;return(e=document.createElement("meta")).setAttribute("name","turbolinks-permanent-placeholder"),e.setAttribute("content",t.id),{element:e,permanentElement:t}},n=function(t,e){var n;return(n=t.parentNode)?n.replaceChild(e,t):void 0}}.call(this),function(){var t=function(t,e){function r(){this.constructor=t}for(var i in e)n.call(e,i)&&(t[i]=e[i]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.ErrorRenderer=function(e){function n(t){var e;(e=document.createElement("html")).innerHTML=t,this.newHead=e.querySelector("head"),this.newBody=e.querySelector("body")}return t(n,e),n.prototype.render=function(t){return this.renderView(function(e){return function(){return e.replaceHeadAndBody(),e.activateBodyScriptElements(),t()}}(this))},n.prototype.replaceHeadAndBody=function(){var t,e;return e=document.head,t=document.body,e.parentNode.replaceChild(this.newHead,e),t.parentNode.replaceChild(this.newBody,t)},n.prototype.activateBodyScriptElements=function(){var t,e,n,r,i,o;for(o=[],e=0,n=(r=this.getScriptElements()).length;n>e;e++)i=r[e],t=this.createScriptElement(i),o.push(i.parentNode.replaceChild(t,i));return o},n.prototype.getScriptElements=function(){return document.documentElement.querySelectorAll("script")},n}(e.Renderer)}.call(this),function(){e.View=function(){function t(t){this.delegate=t,this.htmlElement=document.documentElement}return t.prototype.getRootLocation=function(){return this.getSnapshot().getRootLocation()},t.prototype.getElementForAnchor=function(t){return this.getSnapshot().getElementForAnchor(t)},t.prototype.getSnapshot=function(){return e.Snapshot.fromHTMLElement(this.htmlElement)},t.prototype.render=function(t,e){var n,r,i;return i=t.snapshot,n=t.error,r=t.isPreview,this.markAsPreview(r),null!=i?this.renderSnapshot(i,r,e):this.renderError(n,e)},t.prototype.markAsPreview=function(t){return t?this.htmlElement.setAttribute("data-turbolinks-preview",""):this.htmlElement.removeAttribute("data-turbolinks-preview")},t.prototype.renderSnapshot=function(t,n,r){return e.SnapshotRenderer.render(this.delegate,r,this.getSnapshot(),e.Snapshot.wrap(t),n)},t.prototype.renderError=function(t,n){return e.ErrorRenderer.render(this.delegate,n,t)},t}()}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.ScrollManager=function(){function n(n){this.delegate=n,this.onScroll=t(this.onScroll,this),this.onScroll=e.throttle(this.onScroll)}return n.prototype.start=function(){return this.started?void 0:(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)},n.prototype.stop=function(){return this.started?(removeEventListener("scroll",this.onScroll,!1),this.started=!1):void 0},n.prototype.scrollToElement=function(t){return t.scrollIntoView()},n.prototype.scrollToPosition=function(t){var e,n;return e=t.x,n=t.y,window.scrollTo(e,n)},n.prototype.onScroll=function(){return this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})},n.prototype.updatePosition=function(t){var e;
4return this.position=t,null!=(e=this.delegate)?e.scrollPositionChanged(this.position):void 0},n}()}.call(this),function(){e.SnapshotCache=function(){function t(t){this.size=t,this.keys=[],this.snapshots={}}var n;return t.prototype.has=function(t){return n(t)in this.snapshots},t.prototype.get=function(t){var e;if(this.has(t))return e=this.read(t),this.touch(t),e},t.prototype.put=function(t,e){return this.write(t,e),this.touch(t),e},t.prototype.read=function(t){var e;return e=n(t),this.snapshots[e]},t.prototype.write=function(t,e){var r;return r=n(t),this.snapshots[r]=e},t.prototype.touch=function(t){var e,r;return r=n(t),(e=this.keys.indexOf(r))>-1&&this.keys.splice(e,1),this.keys.unshift(r),this.trim()},t.prototype.trim=function(){var t,e,n,r,i;for(i=[],t=0,n=(r=this.keys.splice(this.size)).length;n>t;t++)e=r[t],i.push(delete this.snapshots[e]);return i},n=function(t){return e.Location.wrap(t).toCacheKey()},t}()}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.Visit=function(){function n(n,r,i){this.controller=n,this.action=i,this.performScroll=t(this.performScroll,this),this.identifier=e.uuid(),this.location=e.Location.wrap(r),this.adapter=this.controller.adapter,this.state="initialized",this.timingMetrics={}}var r;return n.prototype.start=function(){return"initialized"===this.state?(this.recordTimingMetric("visitStart"),this.state="started",this.adapter.visitStarted(this)):void 0},n.prototype.cancel=function(){var t;return"started"===this.state?(null!=(t=this.request)&&t.cancel(),this.cancelRender(),this.state="canceled"):void 0},n.prototype.complete=function(){var t;return"started"===this.state?(this.recordTimingMetric("visitEnd"),this.state="completed","function"==typeof(t=this.adapter).visitCompleted&&t.visitCompleted(this),this.controller.visitCompleted(this)):void 0},n.prototype.fail=function(){var t;return"started"===this.state?(this.state="failed","function"==typeof(t=this.adapter).visitFailed?t.visitFailed(this):void 0):void 0},n.prototype.changeHistory=function(){var t,e;return this.historyChanged?void 0:(t=this.location.isEqualTo(this.referrer)?"replace":this.action,e=r(t),this.controller[e](this.location,this.restorationIdentifier),this.historyChanged=!0)},n.prototype.issueRequest=function(){return this.shouldIssueRequest()&&null==this.request?(this.progress=0,this.request=new e.HttpRequest(this,this.location,this.referrer),this.request.send()):void 0},n.prototype.getCachedSnapshot=function(){var t;return!(t=this.controller.getCachedSnapshotForLocation(this.location))||null!=this.location.anchor&&!t.hasAnchor(this.location.anchor)||"restore"!==this.action&&!t.isPreviewable()?void 0:t},n.prototype.hasCachedSnapshot=function(){return null!=this.getCachedSnapshot()},n.prototype.loadCachedSnapshot=function(){var t,e;return(e=this.getCachedSnapshot())?(t=this.shouldIssueRequest(),this.render(function(){var n;return this.cacheSnapshot(),this.controller.render({snapshot:e,isPreview:t},this.performScroll),"function"==typeof(n=this.adapter).visitRendered&&n.visitRendered(this),t?void 0:this.complete()})):void 0},n.prototype.loadResponse=function(){return null!=this.response?this.render(function(){var t,e;return this.cacheSnapshot(),this.request.failed?(this.controller.render({error:this.response},this.performScroll),"function"==typeof(t=this.adapter).visitRendered&&t.visitRendered(this),this.fail()):(this.controller.render({snapshot:this.response},this.performScroll),"function"==typeof(e=this.adapter).visitRendered&&e.visitRendered(this),this.complete())}):void 0},n.prototype.followRedirect=function(){return this.redirectedToLocation&&!this.followedRedirect?(this.location=this.redirectedToLocation,this.controller.replaceHistoryWithLocationAndRestorationIdentifier(this.redirectedToLocation,this.restorationIdentifier),this.followedRedirect=!0):void 0},n.prototype.requestStarted=function(){var t;return this.recordTimingMetric("requestStart"),"function"==typeof(t=this.adapter).visitRequestStarted?t.visitRequestStarted(this):void 0},n.prototype.requestProgressed=function(t){var e;return this.progress=t,"function"==typeof(e=this.adapter).visitRequestProgressed?e.visitRequestProgressed(this):void 0},n.prototype.requestCompletedWithResponse=function(t,n){return this.response=t,null!=n&&(this.redirectedToLocation=e.Location.wrap(n)),this.adapter.visitRequestCompleted(this)},n.prototype.requestFailedWithStatusCode=function(t,e){return this.response=e,this.adapter.visitRequestFailedWithStatusCode(this,t)},n.prototype.requestFinished=function(){var t;return this.recordTimingMetric("requestEnd"),"function"==typeof(t=this.adapter).visitRequestFinished?t.visitRequestFinished(this):void 0},n.prototype.performScroll=function(){return this.scrolled?void 0:("restore"===this.action?this.scrollToRestoredPosition()||this.scrollToTop():this.scrollToAnchor()||this.scrollToTop(),this.scrolled=!0)},n.prototype.scrollToRestoredPosition=function(){var t,e;return null!=(t=null!=(e=this.restorationData)?e.scrollPosition:void 0)?(this.controller.scrollToPosition(t),!0):void 0},n.prototype.scrollToAnchor=function(){return null!=this.location.anchor?(this.controller.scrollToAnchor(this.location.anchor),!0):void 0},n.prototype.scrollToTop=function(){return this.controller.scrollToPosition({x:0,y:0})},n.prototype.recordTimingMetric=function(t){var e;return null!=(e=this.timingMetrics)[t]?e[t]:e[t]=(new Date).getTime()},n.prototype.getTimingMetrics=function(){return e.copyObject(this.timingMetrics)},r=function(t){switch(t){case"replace":return"replaceHistoryWithLocationAndRestorationIdentifier";case"advance":case"restore":return"pushHistoryWithLocationAndRestorationIdentifier"}},n.prototype.shouldIssueRequest=function(){return"restore"!==this.action||!this.hasCachedSnapshot()},n.prototype.cacheSnapshot=function(){return this.snapshotCached?void 0:(this.controller.cacheSnapshot(),this.snapshotCached=!0)},n.prototype.render=function(t){return this.cancelRender(),this.frame=requestAnimationFrame(function(e){return function(){return e.frame=null,t.call(e)}}(this))},n.prototype.cancelRender=function(){return this.frame?cancelAnimationFrame(this.frame):void 0},n}()}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.Controller=function(){function n(){this.clickBubbled=t(this.clickBubbled,this),this.clickCaptured=t(this.clickCaptured,this),this.pageLoaded=t(this.pageLoaded,this),this.history=new e.History(this),this.view=new e.View(this),this.scrollManager=new e.ScrollManager(this), 5this.restorationData={},this.clearCache(),this.setProgressBarDelay(500)}
5return n.prototype.start=function(){return e.supported&&!this.started?(addEventListener("click",this.clickCaptured,!0),addEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.start(),this.startHistory(),this.started=!0,this.enabled=!0):void 0},n.prototype.disable=function(){return this.enabled=!1},n.prototype.stop=function(){return this.started?(removeEventListener("click",this.clickCaptured,!0),removeEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.stop(),this.stopHistory(),this.started=!1):void 0},n.prototype.clearCache=function(){return this.cache=new e.SnapshotCache(10)},n.prototype.visit=function(t,n){var r,i;return null==n&&(n={}),t=e.Location.wrap(t),this.applicationAllowsVisitingLocation(t)?this.locationIsVisitable(t)?(r=null!=(i=n.action)?i:"advance",this.adapter.visitProposedToLocationWithAction(t,r)):window.location=t:void 0},n.prototype.startVisitToLocationWithAction=function(t,n,r){var i;return e.supported?(i=this.getRestorationDataForIdentifier(r),this.startVisit(t,n,{restorationData:i})):window.location=t},n.prototype.setProgressBarDelay=function(t){return this.progressBarDelay=t},n.prototype.startHistory=function(){return this.location=e.Location.wrap(window.location),this.restorationIdentifier=e.uuid(),this.history.start(),this.history.replace(this.location,this.restorationIdentifier)},n.prototype.stopHistory=function(){return this.history.stop()},n.prototype.pushHistoryWithLocationAndRestorationIdentifier=function(t,n){return this.restorationIdentifier=n,this.location=e.Location.wrap(t),this.history.push(this.location,this.restorationIdentifier)},n.prototype.replaceHistoryWithLocationAndRestorationIdentifier=function(t,n){return this.restorationIdentifier=n,this.location=e.Location.wrap(t),this.history.replace(this.location,this.restorationIdentifier)},n.prototype.historyPoppedToLocationWithRestorationIdentifier=function(t,n){var r;return this.restorationIdentifier=n,this.enabled?(r=this.getRestorationDataForIdentifier(this.restorationIdentifier),this.startVisit(t,"restore",{restorationIdentifier:this.restorationIdentifier,restorationData:r,historyChanged:!0}),this.location=e.Location.wrap(t)):this.adapter.pageInvalidated()},n.prototype.getCachedSnapshotForLocation=function(t){var e;return null!=(e=this.cache.get(t))?e.clone():void 0},n.prototype.shouldCacheSnapshot=function(){return this.view.getSnapshot().isCacheable()},n.prototype.cacheSnapshot=function(){var t,n;return this.shouldCacheSnapshot()?(this.notifyApplicationBeforeCachingSnapshot(),n=this.view.getSnapshot(),t=this.lastRenderedLocation,e.defer(function(e){return function(){return e.cache.put(t,n.clone())}}(this))):void 0},n.prototype.scrollToAnchor=function(t){var e;return(e=this.view.getElementForAnchor(t))?this.scrollToElement(e):this.scrollToPosition({x:0,y:0})},n.prototype.scrollToElement=function(t){return this.scrollManager.scrollToElement(t)},n.prototype.scrollToPosition=function(t){return this.scrollManager.scrollToPosition(t)},n.prototype.scrollPositionChanged=function(t){return this.getCurrentRestorationData().scrollPosition=t},n.prototype.render=function(t,e){return this.view.render(t,e)},n.prototype.viewInvalidated=function(){return this.adapter.pageInvalidated()},n.prototype.viewWillRender=function(t){return this.notifyApplicationBeforeRender(t)},n.prototype.viewRendered=function(){return this.lastRenderedLocation=this.currentVisit.location,this.notifyApplicationAfterRender()},n.prototype.pageLoaded=function(){return this.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()},n.prototype.clickCaptured=function(){return removeEventListener("click",this.clickBubbled,!1),addEventListener("click",this.clickBubbled,!1)},n.prototype.clickBubbled=function(t){var e,n,r;return this.enabled&&this.clickEventIsSignificant(t)&&(n=this.getVisitableLinkForNode(t.target))&&(r=this.getVisitableLocationForLink(n))&&this.applicationAllowsFollowingLinkToLocation(n,r)?(t.preventDefault(),e=this.getActionForLink(n),this.visit(r,{action:e})):void 0},n.prototype.applicationAllowsFollowingLinkToLocation=function(t,e){return!this.notifyApplicationAfterClickingLinkToLocation(t,e).defaultPrevented},n.prototype.applicationAllowsVisitingLocation=function(t){return!this.notifyApplicationBeforeVisitingLocation(t).defaultPrevented},n.prototype.notifyApplicationAfterClickingLinkToLocation=function(t,n){return e.dispatch("turbolinks:click",{target:t,data:{url:n.absoluteURL},cancelable:!0})},n.prototype.notifyApplicationBeforeVisitingLocation=function(t){return e.dispatch("turbolinks:before-visit",{data:{url:t.absoluteURL},cancelable:!0})},n.prototype.notifyApplicationAfterVisitingLocation=function(t){return e.dispatch("turbolinks:visit",{data:{url:t.absoluteURL}})},n.prototype.notifyApplicationBeforeCachingSnapshot=function(){return e.dispatch("turbolinks:before-cache")},n.prototype.notifyApplicationBeforeRender=function(t){return e.dispatch("turbolinks:before-render",{data:{newBody:t}})},n.prototype.notifyApplicationAfterRender=function(){return e.dispatch("turbolinks:render")},n.prototype.notifyApplicationAfterPageLoad=function(t){return null==t&&(t={}),e.dispatch("turbolinks:load",{data:{url:this.location.absoluteURL,timing:t}})},n.prototype.startVisit=function(t,e,n){var r;return null!=(r=this.currentVisit)&&r.cancel(),this.currentVisit=this.createVisit(t,e,n),this.currentVisit.start(),this.notifyApplicationAfterVisitingLocation(t)},n.prototype.createVisit=function(t,n,r){var i,o,s,a,u;return a=(o=null!=r?r:{}).restorationIdentifier,s=o.restorationData,i=o.historyChanged,(u=new e.Visit(this,t,n)).restorationIdentifier=null!=a?a:e.uuid(),u.restorationData=e.copyObject(s),u.historyChanged=i,u.referrer=this.location,u},n.prototype.visitCompleted=function(t){return this.notifyApplicationAfterPageLoad(t.getTimingMetrics())},n.prototype.clickEventIsSignificant=function(t){return!(t.defaultPrevented||t.target.isContentEditable||t.which>1||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)},n.prototype.getVisitableLinkForNode=function(t){return this.nodeIsVisitable(t)?e.closest(t,"a[href]:not([target]):not([download])"):void 0},n.prototype.getVisitableLocationForLink=function(t){var n;return n=new e.Location(t.getAttribute("href")),this.locationIsVisitable(n)?n:void 0},n.prototype.getActionForLink=function(t){var e;return null!=(e=t.getAttribute("data-turbolinks-action"))?e:"advance"},n.prototype.nodeIsVisitable=function(t){var n;return!(n=e.closest(t,"[data-turbolinks]"))||"false"!==n.getAttribute("data-turbolinks")},n.prototype.locationIsVisitable=function(t){return t.isPrefixedBy(this.view.getRootLocation())&&t.isHTML()},n.prototype.getCurrentRestorationData=function(){return this.getRestorationDataForIdentifier(this.restorationIdentifier)},n.prototype.getRestorationDataForIdentifier=function(t){var e;return null!=(e=this.restorationData)[t]?e[t]:e[t]={}},n}()}.call(this),function(){!function(){var t,e;if((t=e=document.currentScript)&&!e.hasAttribute("data-turbolinks-suppress-warning"))for(;t=t.parentNode;)if(t===document.body)return console.warn("You are loading Turbolinks from a <script> element inside the <body> element. This is probably not what you meant to do!\n\nLoad your application\u2019s JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change.\n\nFor more information, see: https://github.com/turbolinks/turbolinks#working-with-script-elements\n\n\u2014\u2014\nSuppress this warning by adding a `data-turbolinks-suppress-warning` attribute to: %s",e.outerHTML)}()}.call(this),function(){var t,n,r;e.start=function(){return n()?(null==e.controller&&(e.controller=t()),e.controller.start()):void 0},n=function(){return null==window.Turbolinks&&(window.Turbolinks=e),r()},t=function(){var t;return(t=new e.Controller).adapter=new e.BrowserAdapter(t),t},(r=function(){return window.Turbolinks===e})()&&e.start()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=e:"function"==typeof define&&define.amd&&define(e)}.call(this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ActionCable={})}(this,function(t){"use strict";function e(t){if("function"==typeof t&&(t=t()),t&&!/^wss?:/i.test(t)){const e=document.createElement("a");return e.href=t,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}return t}function n(t=r("url")||l.default_mount_path){return new b(t)}function r(t){const e=document.head.querySelector(`meta[name='action-cable-${t}']`);if(e)return e.getAttribute("content")}var i={logger:"undefined"!=typeof console?console:void 0,WebSocket:"undefined"!=typeof WebSocket?WebSocket:void 0},o={log(...t){this.enabled&&(t.push(Date.now()),i.logger.log("[ActionCable]",...t))}};const s=()=>(new Date).getTime(),a=t=>(s()-t)/1e3;class u{constructor(t){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=t,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=s(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),o.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=s(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),o.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordMessage(){this.pingedAt=s()}recordConnect(){this.reconnectAttempts=0,delete this.disconnectedAt,o.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=s(),o.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:t,reconnectionBackoffRate:e}=this.constructor;return 1e3*t*Math.pow(1+e,Math.min(this.reconnectAttempts,10))*(1+(0===this.reconnectAttempts?1:e)*Math.random())}reconnectIfStale(){this.connectionIsStale()&&(o.log(`ConnectionMonitor detected stale c
5onnection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${a(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?o.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${a(this.disconnectedAt)} s`):(o.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return a(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&a(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){"visible"===document.visibilityState&&setTimeout(()=>{!this.connectionIsStale()&&this.connection.isOpen()||(o.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}u.staleThreshold=6,u.reconnectionBackoffRate=.15;var l={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:c,protocols:d}=l,p=d.slice(0,d.length-1),h=[].indexOf;class f{constructor(t){this.open=this.open.bind(this),this.consumer=t,this.subscriptions=this.consumer.subscriptions,this.monitor=new u(this),this.disconnected=!0}send(t){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(t)),!0)}open(){if(this.isActive())return o.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const t=[...d,...this.consumer.subprotocols||[]];return o.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${t}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new i.WebSocket(this.consumer.url,t),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:t}={allowReconnect:!0}){if(t||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(o.log(`Reopening WebSocket, current state is ${this.getState()}`),!this.isActive())return this.open();try{return this.close()}catch(t){o.log("Failed to reopen WebSocket",t)}finally{o.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return h.call(p,this.getProtocol())>=0}isState(...t){return h.call(t,this.getState())>=0}getState(){if(this.webSocket)for(let t in i.WebSocket)if(i.WebSocket[t]===this.webSocket.readyState)return t.toLowerCase();return null}installEventHandlers(){for(let t in this.events){const e=this.events[t].bind(this);this.webSocket[`on${t}`]=e}}uninstallEventHandlers(){for(let t in this.events)this.webSocket[`on${t}`]=function(){}}}f.reopenDelay=500,f.prototype.events={message(t){if(!this.isProtocolSupported())return;const{identifier:e,message:n,reason:r,reconnect:i,type:s}=JSON.parse(t.data);switch(this.monitor.recordMessage(),s){case c.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case c.disconnect:return o.log(`Disconnecting. Reason: ${r}`),this.close({allowReconnect:i});case c.ping:return null;case c.confirmation:return this.subscriptions.confirmSubscription(e),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(e,"connected",{reconnected:!0})):this.subscriptions.notify(e,"connected",{reconnected:!1});case c.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",n)}},open(){if(o.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return o.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(t){if(o.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){o.log("WebSocket onerror event")}};const m=function(t,e){if(null!=e)for(let n in e){const r=e[n];t[n]=r}return t};class g{constructor(t,e={},n){this.consumer=t,this.identifier=JSON.stringify(e),m(this,n)}perform(t,e={}){return e.action=t,this.send(e)}send(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class y{constructor(t){this.subscriptions=t,this.pendingSubscriptions=[]}guarantee(t){-1==this.pendingSubscriptions.indexOf(t)?(o.log(`SubscriptionGuarantor guaranteeing ${t.identifier}`),this.pendingSubscriptions.push(t)):o.log(`SubscriptionGuarantor already guaranteeing ${t.identifier}`),this.startGuaranteeing()}forget(t){o.log(`SubscriptionGuarantor forgetting ${t.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(e=>e!==t)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&"function"==typeof this.subscriptions.subscribe&&this.pendingSubscriptions.map(t=>{o.log(`SubscriptionGuarantor resubscribing ${t.identifier}`),this.subscriptions.subscribe(t)})},500)}}class v{constructor(t){this.consumer=t,this.guarantor=new y(this),this.subscriptions=[]}create(t,e){const n="object"==typeof t?t:{channel:t},r=new g(this.consumer,n,e);return this.add(r)}add(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.subscribe(t),t}remove(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t}reject(t){return this.findAll(t).map(t=>(this.forget(t),this.notify(t,"rejected"),t))}forget(t){return this.guarantor.forget(t),this.subscriptions=this.subscriptions.filter(e=>e!==t),t}findAll(t){return this.subscriptions.filter(e=>e.identifier===t)}reload(){return this.subscriptions.map(t=>this.subscribe(t))}notifyAll(t,...e){return this.subscriptions.map(n=>this.notify(n,t,...e))}notify(t,e,...n){let r;return r="string"==typeof t?this.findAll(t):[t],r.map(t=>"function"==typeof t[e]?t[e](...n):void 0)}subscribe(t){this.sendCommand(t,"subscribe")&&this.guarantor.guarantee(t)}confirmSubscription(t){o.log(`Subscription confirmed ${t}`),this.findAll(t).map(t=>this.guarantor.forget(t))}sendCommand(t,e){const{identifier:n}=t;return this.consumer.send({command:e,identifier:n})}}class b{constructor(t){this._url=t,this.subscriptions=new v(this),this.connection=new f(this),this.subprotocols=[]}get url(){return e(this._url)}send(t){return this.connection.send(t)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(t){this.subprotocols=[...this.subprotocols,t]}}t.Connection=f,t.ConnectionMonitor=u,t.Consumer=b,t.INTERNAL=l,t.Subscription=g,t.SubscriptionGuarantor=y,t.Subscriptions=v,t.adapters=i,t.createConsumer=n,t.createWebSocketURL=e,t.getConfig=r,t.logger=o,Object.defineProperty(t,"__esMo
5dule",{value:!0})}),function(){this.App||(this.App={}),App.cable=ActionCable.createConsumer()}.call(this),AddEmbedly={init:function(){var t='[href*="vimeo.com/"]',e='[href*="youtube.com/"]',n='[href*="youtu.be/"]';e+=':contains("youtube.com/")',n+=':contains("youtu.be/")',e+=':not([href*="youtube.com/channel"])',n+=':not([href*="youtu.be/channel"])',selectors=[t+=':contains("vimeo.com/")',e,n];var r=new RegExp("vimeo.com/[a-zA-Z]");$.each(selectors,function(t,e){e=".fundraiser-media "+e,$(e).filter(function(){return!this.href.match(r)}).addClass("embedly-card")}),setTimeout(function(){$("iframe.embedly-card").each(function(){this.hasAttribute("title")||$(this).attr("title","media")})},1e3)}},CampaignTab={init:function(t){if(window.location.hash.match("#campaign-update")){toggleCampaignTab(t);var e=window.location.hash;location.href=e}else $(".campaign-about-tab").find("a").addClass("accent-"+t).attr("aria-selected",!0),$(".campaign-updates").hide().attr("aria-hidden",!0);$(".campaign-update-tab").click(function(e){e.preventDefault(),toggleCampaignTab(t)}),$(".campaign-about-tab").click(function(e){e.preventDefault(),toggleCampaignTab(t)})}},ChangeCampaign={listen:function(t){App.cable.subscriptions.create({channel:"ChangeCampaignChannel",id:t},{received:ChangeCampaign.received})},received:function(){RefreshLink.alert()}},ChangeFundraiserGeneralSupport={listen:function(t){App.cable.subscriptions.create({channel:"ChangeFundraiserGeneralSupportChannel",id:t},{received:ChangeFundraiserGeneralSupport.received})},received:function(){RefreshLink.alert()}},ChangeFundraiserProfile={listen:function(t){App.cable.subscriptions.create({channel:"ChangeFundraiserProfileChannel",id:t},{received:ChangeFundraiserProfile.received})},received:function(){RefreshLink.alert()}},$(document).on("turbolinks:load",function(){var t=function(t,e){t.addClass("insufficient"),t.siblings(".donation-intent-inline-error").show(),e.attr("disabled",!0)},e=function(t,e){t.removeClass("insufficient"),t.siblings(".donation-intent-inline-error").hide(),e.attr("disabled",!1)};$(document).on("keyup change",".donation-amount-fields",function(){var n=$(this),r=n.data("min-amount"),i=n.closest("form").find(":submit");r&&((parseFloat(n.val())||0)<(r=parseFloat(r)||0)?t(n,i):e(n,i))}),$(".reward-selection").on("click",function(t){var e=$(t.target).closest(".expander-trigger").siblings(".expander-content").find('[name="donation_intent[base_amount_in_dollars]"]');setTimeout(function(){"0.00"===e.val()&&e.val(""),e.focus()})})}),$(document).on("turbolinks:load",function(){$('[name="donor_intent[donation_intent_attributes][attribution_option]"]').click(function(){var t=$(".honoree-text-field"),e=t.find("input");"honoree"===$(this).val()?(e.attr("required",!0).val(""),t.show()):(t.hide(),e.attr("required",!1).val(""))})}),null==jQuery.Event.prototype.keyNavigateForward&&(jQuery.Event.prototype.keyNavigateForward=function(){return 40===this.keyCode}),null==jQuery.Event.prototype.keyNavigateBackward&&(jQuery.Event.prototype.keyNavigateBackward=function(){return 38===this.keyCode}),null==jQuery.Event.prototype.keyNavigating&&(jQuery.Event.prototype.keyNavigating=function(){return[38,40].includes(this.keyCode)}),null==jQuery.Event.prototype.keyLeftOrRight&&(jQuery.Event.prototype.keyLeftOrRight=function(){return[37,39].includes(this.keyCode)}),null==jQuery.Event.prototype.keyIsEnter&&(jQuery.Event.prototype.keyIsEnter=function(){return[13,110].includes(this.keyCode)}),null==jQuery.Event.prototype.keyIsTab&&(jQuery.Event.prototype.keyIsTab=function(){return 9===this.keyCode}),null==jQuery.Event.prototype.keyIsEscape&&(jQuery.Event.prototype.keyIsEscape=function(){return 27===this.keyCode}),expander={toggle:function(t){$content=$(t).next(),$list=$(t).parents(".js-expander-list"),$list.length?$(t).hasClass("is-open")?($(t).removeClass("is-open"),expander.close(t)):($(t).parent().siblings().children(".js-expander-trigger").each(function(){$(this).hasClass("is-open")&&($(this).removeClass("is-open"),$(this).parent().attr("aria-expanded","false"),$(this).next().hide())}),$(t).addClass("is-open"),expander.open(t)):($(t).toggleClass("is-open"),$(t).hasClass("is-open")?expander.open(t):expander.close(t))},open:function(t){$(t).parent().attr("aria-expanded","true"),$(t).hasClass("js-slide")?$content.prop("disabled",!1).slideDown():$content.prop("disabled",!1).show()}
5,close:function(t){$(t).parent().attr("aria-expanded","false"),$content.hide()}},$(document).on("turbolinks:load",function(){$("label.js-expander-trigger").on("change",function(){expander.toggle($(this))}),$(".js-expander-trigger").on("click",function(t){$(this).is("a")&&t.preventDefault(),$(this).is("label")||expander.toggle($(this))})}),FlashMessages={init:function(){FlashMessages.messages().length&&(FlashMessages.display(FlashMessages.messages()),FlashMessages.autoHide())},messages:function(){return $(".flash-message")},generateHTML:function(t,e){return'<div class="flash-message animated fadeInDown '+e+'">'+t+"</div>"},alert:function(t){var e=this.generateHTML(t,"notice");this.display($(e))},error:function(t){var e=this.generateHTML(t,"error");this.display($(e))},success:function(t){var e=this.generateHTML(t,"success");this.display($(e)),this.autoHide()},display:function(t){this.messages().remove(),t.appendTo("body");var e=($(window).width()-t.width())/2;t.css("left",e),t.animate({top:"20px"},1)},autoHide:function(){var t=this.messages();setTimeout(function(){t.addClass("fadeOut")},5e3),setTimeout(function(){t.remove()},6500)},hideAll:function(){this.messages().addClass("fadeOut")}},$(document).on("turbolinks:load",FlashMessages.init),$(window).resize(FlashMessages.init),FormErrors={config:{bodySelector:".form-errors",listSelector:".form-errors ul",fieldErrorClass:"has-error"},_listElement:function(){return $(FormErrors.config.listSelector)},_bodyElement:function(){return $(FormErrors.config.bodySelector)},_fieldsWithError:[],clear:function(){FormErrors._listElement().empty();for(var t=0;t<FormErrors._fieldsWithError.length;t++){FormErrors._fieldsWithError[t].removeClass(FormErrors.config.fieldErrorClass)}FormErrors._fieldsWithError=[],FormErrors.hide()},append:function(t){FormErrors._listElement().append("<li>"+t+"</li>"),FormErrors.show()},show:function(){FormErrors._bodyElement().attr("id","errors"),FormErrors._bodyElement().removeClass("display-none"),FormErrors.focus()},hide:function(){FormErrors._bodyElement().removeAttr("id"),FormErrors._bodyElement().addClass("display-none")},focus:function(){window.location.href="#errors"},addOnField:function(t,e){var n=$(t);if(n.length<1)return!1;n.addClass(FormErrors.config.fieldErrorClass),FormErrors.append(e),FormErrors._fieldsWithError.push(n)}},$(document).on("turbolinks:load",function(){$(".js-hide-element").on("click",function(t){target=$(this).attr("data-target"),$target=$("#"+target),t.preventDefault(),$target.slideUp()})}),RefreshLink={alert:function(){FlashMessages.alert('Changes detected: This page is out of date. <a href="#" class="refresh" onclick="window.location.reload(); return false;">Refresh</a>')}},ReviewConfirmation={init:function(t,e,n){$(t).on("click",function(t){t.preventDefault(),$(n).fadeOut("50ms"),$(e).fadeIn("100ms")}),$(".cancel-approval").on("click",function(t){t.preventDefault(),$(n).fadeIn("100ms"),$(e).fadeOut("50ms")})}},$(document).on("turbolinks:load",function(){$(".js-focus-trigger").on("click",function(){$target=$(this).next(".js-focus-target"),setTimeout(function(){$target.focus()})})}),StateProvinceSelector={states:{AL:"Alabama",AK:"Alaska",AS:"American Samoa",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District of Columbia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"},provinces:{AB:"Alberta",BC:"British Columbia",MB:"Manitoba",NB:"New Brunswick",NL:"Newfoundland and Labrador",NT:"Northwest Territories",NS:"Nova Scotia",NU:"Nunavut",ON:"Ontario",PE:"Prince Edward Island",QC:"Quebec",SK:"Saskatchewan",YT:"Yukon"},init:function(){var t=$("form[data-state-initial-value]");if(t.length){var e=this;this.$form=t,this.rules=t.data("rules"),this.$stateContainer=t.find(".state-container");var n=this.$stateContainer.find(":input");this.stateSelectorID=n.attr("id"),this.stateSelectorName=n.attr("name"),this.$countrySelector=t.find('[id$="
5country"]').not('[id$="legacy_country"]'),this.$zipContainer=t.find('[id$="zip"]').closest("div"),this.setup(t.data("stateInitialValue")),this.$countrySelector.change(function(){e.setup()}),$("#donation_donor_id, #non_cc_donation_report_donor_id, #donation_edit_donor_id").val()&&$("#donor-fields :input").each(function(t,e){var n=$(e);n.prop("readonly",!0).addClass("disabled-field"),n.find("option:not(:selected)").attr("disabled",!0),n.removeAttr("required")})}},setup:function(t){switch(this.$stateContainer.find(":input").remove(),this.$countrySelector.val()){case"US":this.setupUS();break;case"CA":this.setupCanada();break;default:this.setupOther()}var e=this.$stateContainer.find(":input");t&&e.val(t)},setupUS:function(){this.$stateContainer.find("label").text("State*"),this.setupOptions(this.states),this.$zipContainer.find(".optional-attribute").remove(),this.$zipContainer.find("label").text("ZIP/Postal Code*"),"donor"!=this.rules&&this.makeZipOptional()},setupCanada:function(){this.$stateContainer.find("label").text("Province"),this.setupOptions(this.provinces),this.$zipContainer.find(".optional-attribute").remove(),"donor"!=this.rules&&this.makeZipOptional()},setupOther:function(){this.$stateContainer.find("label").text("State/Province/Region"),this.$stateContainer.append('<input type="text" id="'+this.stateSelectorID+'" name="'+this.stateSelectorName+'" class="js-places-autocomplete-state"></input>')},setupOptions:function(t){var e=$('<select id="'+this.stateSelectorID+'" name="'+this.stateSelectorName+'" class="js-places-autocomplete-state"></select>');e.append("<option></option>"),$.each(t,function(t,n){e.append('<option value="'+t+'">'+n+"</option>")}),this.$stateContainer.append(e),"donor"===this.rules?(e.attr("required",!0),this.$zipContainer.find("input").prop("required",!0)):this.makeStateOptional()},makeStateOptional:function(){this.$stateContainer.find(".optional-attribute").length||this.$stateContainer.find("label").text("State")},makeZipOptional:function(){this.$zipContainer.find("input").prop("required",!1),this.$zipContainer.find(".optional-attribute").length||this.$zipContainer.find("label").text("ZIP/Postal Code")}},$(document).on("turbolinks:load",function(){StateProvinceSelector.init()}),TextDiff={init:function(t,e,n,r){$(t).addClass(r);var i=htmldiff(e,n);$(t).html(i)}},ToggleCardholder={init:function(){$(".js-name-trigger").on("keyup input",function(){populateName()})}},$(document).on("turbolinks:load",function(){$(document).on("click","a[data-truncated-content]",function(t){t.preventDefault();var e=$(this).data("truncated-content");return $(this).replaceWith(e),!1})}),ExportCSV={init:function(){exportLink=$(".export"),exportLink.on("click",this.exportLinkHandler)},exportLinkHandler:function(){exportLink.removeAttr("href");var t=$(".export").attr("data-attribute"),e=[];$("[name='frequency']").val()&&e.push("frequency="+$("[name='frequency']").val()),$("[name='query']").val()&&e.push("query="+$("[name='query']").val()),$("[name='from_date']").val()&&e.push("from_date="+$("[name='from_date']").val()),$("[name='to_date']").val()&&e.push("to_date="+$("[name='to_date']").val()),e.length>0&&(t=t+"?"+e.join("&")),exportLink.attr("href",t),window.location=exportLink.attr("href")}},$(document).on("turbolinks:load",function(){function t(t){$(t).next(".inline-form-errors").addClass("is-hidden").find("ul").empty(),t.setCustomValidity("")}function e(t,e,n){var r=parseInt(e.size/1e3/1e3),i=`${e.name} must be under ${n} MB (currently ${r} MB)`;t.setCustomValidity(i),$(t).next(".inline-form-errors").removeClass("is-hidden").find("ul").empty().append(`<li>${i}</li>`)}$("input[type=file][data-maximum-mb]").on("change",function(n){var r=$(n.target).attr("data-maximum-mb"),i=1e3*parseInt(r)*1e3;for(file of(t(n.target),n.target.files))file.size>i&&e(n.target,file,r)})}),$(document).on("turbolinks:load",function(){var t,e=$(".js-places-autocomplete-address"),n=e.siblings("#fakeout"),r=function(){n.on("change",function(){e.val(n.val())}),n.on("keydown",function(t){if(13==t.keyCode)return event.preventDefault(),!1}),t=new google.maps.places.Autocomplete(n[0],{types:["address"],fields:["address_component","geometry"],setFields:[]}),google.maps.event.addListener(t,"place_changed",function(){for(var e=t.getPlace(),r={},i=0;i<e.address_components.length;i++){var o=e.address_components[i];r[o.types[0]]=o}r.country&&$(".js-places-autocomplete-country").val(r.country.short_name).trigger("change");var s,a=[];r.street_number&&a.push(r.street_number.short_name),r.route&&a.push(r.route.long_name),n.val(a.join(" ").trim()).trigger("change"),r.locality?s=r.locality:r.neighborhood?s=r.neighborhood:r.sublocality?s=r.sublocality:r.sublocality_level_1&&(s=r.sublocality_level_1
5),s&&$(".js-places-autocomplete-city").val(s.long_name),r.administrative_area_level_1&&$(".js-places-autocomplete-state").val(r.administrative_area_level_1.short_name);var u=[];r.postal_code&&(u.push(r.postal_code.short_name),r.postal_code_suffix&&u.push(r.postal_code_suffix.short_name)),$(".js-places-autocomplete-zip").val(u.join("-").trim())})};if(e.length)if("undefined"==typeof google||void 0===google.maps){var i=document.createElement("script");i.src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAfOqgAU5wglBZQ4bMrpzpFeczUyKqIb08&libraries=places&callback=initMaps",i.async=!0,window.initMaps=function(){r()},document.head.appendChild(i)}else r()}),$(document).on("turbolinks:load",function(){$('input[type="text"]').on("keydown",function(t){"Enter"===t.key&&t.preventDefault()})}),$(document).on("turbolinks:load",function(){$("nav.site-nav button").on("click",function(){var t=$("nav.site-nav button");t.attr("aria-expanded","false"==t.attr("aria-expanded")),$("#js-fxfa-site-menu").attr("aria-hidden","false"==t.attr("aria-expanded"))})}),BorderHover={init:function(){$(".js-border-hover").hover(function(){$siblings=$(this).siblings(".js-border-hover"),$siblings.removeClass("has-border"),$(this).mouseout(function(){ 6$siblings.each(function(){"is-active"===$(this).attr("data-state")&&$(this).addClass("has-border")})})})}},$(document).on("turbolinks:load",function(){$("input[type=url]").on("blur",function(){this.checkValidity()}),$("input[type=url]").on("invalid",function(t){t.preventDefault(),markUrlInputInvalid(this)}),$("input[type=url]").on("input",function(){resetUrlInputValidity(this)}),$("input[type=url]").on("valid",function(){resetUrlInputValidity(this)})}),function(){"use strict";function t(t){return">"===t}function e(t){return"<"===t}function n(t){return/^\s+$/.test(t)}function r(t){var e=t.match(/^\s*<([^!>][^>]*)>\s*$/);return!!e&&e[1].trim().split(" ")[0]}function i(t){return!r(t)}function o(t){return/^<!--/.test(t)}function s(t){return/--\>$/.test(t)}function a(t){var e=/^<(iframe|object|math|svg|script)/.exec(t);return e&&e[1]}function u(t,e){return t.substring(t.length-e.length-2)==="</"+e}function l(t){return/^\s*<[^>]+\/>\s*$/.test(t)}function c(t){return i(t)||a(t)||l(t)}function d(t){return{string:t,key:f(t)}}function p(t,e,n,r){this.segment=r,this.length=n,this.startInBefore=t+r.beforeIndex,this.startInAfter=e+r.afterIndex,this.endInBefore=this.startInBefore+this.length-1,this.endInAfter=this.startInAfter+this.length-1,this.segmentStartInBefore=t,this.segmentStartInAfter=e,this.segmentEndInBefore=this.segmentStartInBefore+this.length-1,this.segmentEndInAfter=this.segmentStartInAfter+this.length-1}function h(r){for(var i="char",l="",c="",p=[],h=0;h<r.length;h++){var f=r[h];switch(i){case"tag":var m=a(l);m?(i="atomic_tag",c=m,l+=f):o(l)?(i="html_comment",l+=f):t(f)?(l+=">",p.push(d(l)),l="",i=n(f)?"whitespace":"char"):l+=f;break;case"atomic_tag":t(f)&&u(l,c)?(l+=">",p.push(d(l)),l="",c="",i="char"):l+=f;break;case"html_comment":s(l+=f)&&(l="",i="char");break;case"char":e(f)?(l&&p.push(d(l)),l="<",i="tag"):/\s/.test(f)?(l&&p.push(d(l)),l=f,i="whitespace"):/[\w\d\#@]/.test(f)?l+=f:/&/.test(f)?(l&&p.push(d(l)),l=f):(l+=f,p.push(d(l)),l="");break;case"whitespace":e(f)?(l&&p.push(d(l)),l="<",i="tag"):n(f)?l+=f:(l&&p.push(d(l)),l=f,i="char");break;default:throw new Error("Unknown mode "+i)}}return l&&p.push(d(l)),p}function f(t){var e=/<([^\s>]+)[\s>]/.exec(t);return e?"<"+e[1].toLowerCase()+">":t&&t.replace(/(\s+| | )/g," ")}function m(t){return t.reduce(function(t,e,n){return t[e.key]?t[e.key].push(n):t[e.key]=[n],t},Object.create(null))}function g(t,e){return e.endInBefore<t.startInBefore&&e.endInAfter<t.startInAfter?-1:e.startInBefore>t.endInBefore&&e.startInAfter>t.endInAfter?1:0}function y(){this._root=null}function v(t){for(var e=t.beforeTokens,n=t.afterMap,r=null,i=null,o=0;o<e.length;o++){var s=!1,a=e.length-o;if(i&&a<i.length)break;var u=e[o];if(" "!==u.key){r===o-1&&(s=!0);var l=n[u.key];l&&l.forEach(function(e){var n=i?i.length:0,r=b(t,o,e,n,s);r&&r.length>n&&(i=r)})}else r=o}return i}function b(t,e,n,r,i){var o=t.beforeTokens,s=t.afterTokens,a=e+r,u=n+r;if(!(a>=o.length||u>=s.length)){if(r)if(o[a].key!==s[u].key)return;for(var l=!0,c=1,d=e+c,h=n+c;l&&d<o.length&&h<s.length;){o[d].key===s[h].key?(d=e+ ++c,h=n+c):l=!1}if(i&&e>0&&n>0){var f=o[e-1].key,m=s[n-1].key;" "===f&&" "===m&&(e--,n--,c++)}return new p(e,n,c,t)}}function w(t,e,n,r){return{beforeTokens:t,afterTokens:e,beforeMap:m(t),afterMap:m(e),beforeIndex:n,afterIndex:r}}function x(t){for(var e,n=new y,r=[t];r.length;
6)if((e=v(t=r.pop()))&&e.length){if(e.segmentStartInBefore>0&&e.segmentStartInAfter>0){var i=t.beforeTokens.slice(0,e.segmentStartInBefore),o=t.afterTokens.slice(0,e.segmentStartInAfter);r.push(w(i,o,t.beforeIndex,t.afterIndex))}var s=t.beforeTokens.slice(e.segmentEndInBefore+1),a=t.afterTokens.slice(e.segmentEndInAfter+1),u=t.beforeIndex+e.segmentEndInBefore+1,l=t.afterIndex+e.segmentEndInAfter+1;s.length&&a.length&&r.push(w(s,a,u,l)),n.add(e)}return n.toArray()}function C(t,e){function n(e){return"equal"===e.action&&(e.endInBefore-e.startInBefore===0&&/^\s$/.test(t.slice(e.startInBefore,e.endInBefore+1)))}if(!t)throw new Error("Missing beforeTokens");if(!e)throw new Error("Missing afterTokens");var r=0,i=0,o=[],s=w(t,e,0,0),a=x(s);a.push(new p(t.length,e.length,0,s));for(var u=0;u<a.length;u++){var l=a[u],c="none";r===l.startInBefore?i!==l.startInAfter&&(c="insert"):(c="delete",i!==l.startInAfter&&(c="replace")),"none"!==c&&o.push({action:c,startInBefore:r,endInBefore:"insert"!==c?l.startInBefore-1:null,startInAfter:i,endInAfter:"delete"!==c?l.startInAfter-1:null}),0!==l.length&&o.push({action:"equal",startInBefore:l.startInBefore,endInBefore:l.endInBefore,startInAfter:l.startInAfter,endInAfter:l.endInAfter}),r=l.endInBefore+1,i=l.endInAfter+1}for(var d=[],h={action:"none"},f=0;f<o.length;f++){var m=o[f];n(m)&&"replace"===h.action||"replace"===m.action&&"replace"===h.action?(h.endInBefore=m.endInBefore,h.endInAfter=m.endInAfter):(d.push(m),h=m)}return d}function E(t){this.tokens=t,this.notes=t.reduce(function(t,e,n){t.notes.push({isWrappable:c(e),insertedTag:!1});var i=!l(e)&&r(e),o=t.tagStack[t.tagStack.length-1];return i&&(o&&"/"+o.tag===i?(t.notes[o.position].insertedTag=!0,t.tagStack.pop()):t.tagStack.push({tag:i,position:n})),t},{notes:[],tagStack:[]}).notes}function S(t,e,n,r,i){var o=new E(e),s=" data-"+(r=r?r+"-":"")+'operation-index="'+n+'"';return i&&(s+=' class="'+i+'"'),o.combine(function(e){if(!e.isWrappable)return e.tokens.join("");var n=e.tokens.join("");return n.trim()?"<"+t+s+">"+n+"</"+t+">":""},function(e){var i=' data-diff-node="'+t+'"';return i+=" data-"+r+'operation-index="'+n+'"',e.replace(/>\s*$/,i+"$&")})}function k(t,e,n,r,i){return n.reduce(function(n,o,s){return n+A[o.action](o,t,e,s,r,i)},"")}function T(t,e,n,r){return t===e?t:k(t=h(t),e=h(e),C(t,e),r,n)}y.prototype={add:function(t){var e={value:t,left:null,right:null},n=this._root;if(n)for(;;){var r=g(n.value,t);if(-1===r){if(!n.left){n.left=e;break}n=n.left}else{if(1!==r)break;if(!n.right){n.right=e;break}n=n.right}}else this._root=e},toArray:function(){function t(e,n){return e&&(t(e.left,n),n.push(e.value),t(e.right,n)),n}return t(this._root,[])}},E.prototype.combine=function(t,e){var n=this.notes,r=this.tokens.slice();return r.reduce(function(t,i,o){n[o].insertedTag&&(r[o]=e(r[o])),null===t.status&&(t.status=n[o].isWrappable);var s=n[o].isWrappable;return s!==t.status&&(t.list.push({isWrappable:t.status,tokens:r.slice(t.lastIndex,o)}),t.lastIndex=o,t.status=s),o===r.length-1&&t.list.push({isWrappable:t.status,tokens:r.slice(t.lastIndex,o+1)}),t},{list:[],status:null,lastIndex:0}).list.map(t).join("")};var A={equal:function(t,e,n){return n.slice(t.startInAfter,t.endInAfter+1).reduce(function(t,e){return t+e.string},"")},insert:function(t,e,n,r,i,o){return S("ins",n.slice(t.startInAfter,t.endInAfter+1).map(function(t){return t.string}),r,i,o)},delete:function(t,e,n,r,i,o){return S("del",e.slice(t.startInBefore,t.endInBefore+1).map(function(t){return t.string}),r,i,o)},replace:function(){return A.delete.apply(null,arguments)+A.insert.apply(null,arguments)}};T.htmlToTokens=h,T.findMatchingBlocks=x,x.findBestMatch=v,x.createMap=m,x.createToken=d,x.createSegment=w,x.getKeyForToken=f,T.calculateOperations=C,T.renderOperations=k,"function"==typeof define?define([],function(){return T}):"undefined"!=typeof module&&null!==module?module.exports=T:this.htmldiff=T}.call(this);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.