www.leadertelecom.biz Open in urlscan Pro
217.150.95.183  Public Scan

Submitted URL: http://leadertelecom.nl/assets/application-904ddc22bea6975564f72a8cc6e06bb16f7b7d90475c2d74006f1d42c6d6b6d2.js
Effective URL: https://www.leadertelecom.biz/assets/application-904ddc22bea6975564f72a8cc6e06bb16f7b7d90475c2d74006f1d42c6d6b6d2.js
Submission: On October 08 via api from CH — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

function renderComplaintModal(){$.ajax({type:"GET",url:"/lead/complaint_modal"})}function submitComplaintForm(){document.getElementById("submitComplaintForm").click()}function clearComplaintBlock(){$(".modal-form-complaint-modal-form").modal("hide");var t=document.getElementById("complaintModalForm");if(null!==t||"undefined"!==t)for(;t.firstChild;)t.removeChild(t.firstChild)}function removeComplaintModalForm(){window.modalTimeoutId=setTimeout("clearComplaintBlock()",5e3)}function renderComplaintModal(){$.ajax({type:"GET",url:"/lead/complaint_modal"})}function submitComplaintForm(){document.getElementById("submitComplaintForm").click()}function clearComplaintBlock(){$(".modal-form-complaint-modal-form").modal("hide");var t=document.getElementById("complaintModalForm");if(null!==t||"undefined"!==t)for(;t.firstChild;)t.removeChild(t.firstChild)}function removeComplaintModalForm(){window.modalTimeoutId=setTimeout("clearComplaintBlock()",5e3)}!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(k,t){function a(t){var e=!!t&&"length"in t&&t.length,n=rt.type(t);return"function"!==n&&!rt.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}function e(t,n,i){if(rt.isFunction(n))return rt.grep(t,function(t,e){return!!n.call(t,e,t)!==i});if(n.nodeType)return rt.grep(t,function(t){return t===n!==i});if("string"==typeof n){if(mt.test(n))return rt.filter(n,t,i);n=rt.filter(n,t)}return rt.grep(t,function(t){return-1<Z.call(n,t)!==i})}function n(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function u(t){var n={};return rt.each(t.match(xt)||[],function(t,e){n[e]=!0}),n}function i(){G.removeEventListener("DOMContentLoaded",i),k.removeEventListener("load",i),rt.ready()}function o(){this.expando=rt.expando+o.uid++}function c(t,e,n){var i;if(n===undefined&&1===t.nodeType)if(i="data-"+e.replace(St,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:$t.test(n)?rt.parseJSON(n):n)}catch(o){}Tt.set(t,e,n)}else n=undefined;return n}function l(t,e,n,i){var o,r=1,s=20,a=i?function(){return i.cur()}:function(){return rt.css(t,e,"")},c=a(),l=n&&n[3]||(rt.cssNumber[e]?"":"px"),u=(rt.cssNumber[e]||"px"!==l&&+c)&&Et.exec(rt.css(t,e));if(u&&u[3]!==l)for(l=l||u[3],n=n||[],u=+c||1;u/=r=r||".5",rt.style(t,e,u+l),r!==(r=a()/c)&&1!==r&&--s;);return n&&(u=+u||+c||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=u,i.end=o)),o}function m(t,e){var n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return e===undefined||e&&rt.nodeName(t,e)?rt.merge([t],n):n}function g(t,e){for(var n=0,i=t.length;n<i;n++)Ct.set(t[n],"globalEval",!e||Ct.get(e[n],"globalEval"))}function v(t,e,n,i,o){for(var r,s,a,c,l,u,d=e.createDocumentFragment(),p=[],h=0,f=t.length;h<f;h++)if((r=t[h])||0===r)if("object"===rt.type(r))rt.merge(p,r.nodeType?[r]:r);else if(Lt.test(r)){for(s=s||d.appendChild(e.createElement("div")),a=(Nt.exec(r)||["",""])[1].toLowerCase(),c=Ot[a]||Ot._default,s.innerHTML=c[1]+rt.htmlPrefilter(r)+c[2],u=c[0];u--;)s=s.lastChild;rt.merge(p,s.childNodes),(s=d.firstChild).textContent=""}else p.push(e.createTextNode(r));for(d.textContent="",h=0;r=p[h++];)if(i&&-1<rt.inArray(r,i))o&&o.push(r);else if(l=rt.contains(r.ownerDocument,r),s=m(d.appendChild(r),"script"),l&&g(s),n)for(u=0;r=s[u++];)Pt.test(r.type||"")&&n.push(r);return d}function r(){return!0}function d(){return!1}function s(){try{return G.activeElement}catch(t){}}function p(t,e,n,i,o,r){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=undefined),e)p(t,a,n,i,e[a],r);return t}if(null==i&&null==o?(o=n,i=n=undefined):null==o&&("string"==typeof n?(o=i,i=undefined):(o=i,i=n,n=undefined)),!1===o)o=d;else if(!o)return t;return 1===r&&(s=o,(o=function(t){return rt().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=rt.guid++)),t.each(function(){rt.event.add(this,e,o,i,n)})}function h(t,e){return rt.nodeName(t,"table")&&rt.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function y(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function b(t){var e=zt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function f(t,e){var n,i,o,r,s,a,c,l;if(1===e.nodeType){if(Ct.hasData(t)&&(r=Ct.access(t),s=Ct.set(e,r),l=r.events))for(o in delete s.handle,s.events={},l)for(n=0,i=l[o].length;n<i;n++)rt.event.add(e,o,l[o][n]);Tt.hasData(t)&&(a=Tt.access(t),c=rt.extend({},a),Tt.set(e,c))}}function w(t,e){var n=e.nodeName.toLowerCase();"input"===n&&It.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function x(n,i,o,r){i=Y.apply([],i);var t,e,s,a,c,l,u=0,d=n.length,p=d-1,h=i[0],f=rt.isFunction(h);if(f||1<d&&"string"==typeof h&&!it.checkClone&&Ut.test(h))return n.each(function(t){var e=n.eq(t);f&&(i[0]=h.call(this,t,e.html())),x(e,i,o,r)});if(d&&(e=(t=v(i,n[0].ownerDocument,!1,n,r)).firstChild,1===t.childNodes.length&&(t=e),e||r)){for(a=(s=rt.map(m(t,"script"),y)).length;u<d;u++)c=t,u!==p&&(c=rt.clone(c,!0,!0),a&&rt.merge(s,m(c,"script"))),o.call(n[u],c,u);if(a)for(l=s[s.length-1].ownerDocument,rt.map(s,b),u=0;u<a;u++)c=s[u],Pt.test(c.type||"")&&!Ct.access(c,"globalEval")&&rt.contains(l,c)&&(c.src?rt._evalUrl&&rt._evalUrl(c.src):rt.globalEval(c.textContent.replace(Vt,"")))}return n}function _(t,e,n){for(var i,o=e?rt.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||rt.cleanData(m(i)),i.parentNode&&(n&&rt.contains(i.ownerDocument,i)&&g(m(i,"script")),i.parentNode.removeChild(i));return t}function C(t,e){var n=rt(e.createElement(t)).appendTo(e.body),i=rt.css(n[0],"display");return n.detach(),i}function T(t){var e=G,n=Qt[t];return n||("none"!==(n=C(t,e))&&n||((e=(Xt=(Xt||rt("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),n=C(t,e),Xt.detach()),Qt[t]=n),n}function $(t,e,n){var i,o,r,s,a=t.style;return""!==(s=(n=n||Yt(t))?n.getPropertyValue(e)||n[e]:undefined)&&s!==undefined||rt.contains(t.ownerDocument,t)||(s=rt.style(t,e)),n&&!it.pixelMarginRight()&&Kt.test(s)&&Gt.test(e)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r),s!==undefined?s+"":s}function S(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}function j(t){if(t in oe)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=ie.length;n--;)if((t=ie[n]+e)in oe)return t}function E(t,e,n){var i=Et.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function D(t,e,n,i,o){for(var r=n===(i?"border":"content")?4:"width"===e?1:0,s=0;r<4;r+=2)"margin"===n&&(s+=rt.css(t,n+Dt[r],!0,o)),i?("content"===n&&(s-=rt.css(t,"padding"+Dt[r],!0,o)),"margin"!==n&&(s-=rt.css(t,"border"+Dt[r]+"Width",!0,o))):(s+=rt.css(t,"padding"+Dt[r],!0,o),"padding"!==n&&(s+=rt.css(t,"border"+Dt[r]+"Width",!0,o)));return s}function A(t,e,n){var i=!0,o="width"===e?t.offsetWidth:t.offsetHeight,r=Yt(t),s="border-box"===rt.css(t,"boxSizing",!1,r);if(o<=0||null==o){if(((o=$(t,e,r))<0||null==o)&&(o=t.style[e]),Kt.test(o))return o;i=s&&(it.boxSizingReliable()||o===t.style[e]),o=parseFloat(o)||0}return o+D(t,e,n||(s?"border":"content"),i,r)+"px"}function I(t,e){for(var n,i,o,r=[],s=0,a=t.length;s<a;s++)(i=t[s]).style&&(r[s]=Ct.get(i,"olddisplay"),n=i.style.display,e?(r[s]||"none"!==n||(i.style.display=""),""===i.style.display&&At(i)&&(r[s]=Ct.access(i,"olddisplay",T(i.nodeName)))):(o=At(i),"none"===n&&o||Ct.set(i,"olddisplay",o?n:rt.css(i,"display"))));for(s=0;s<a;s++)(i=t[s]).style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?r[s]||"":"none"));return t}function N(t,e,n,i,o){return new N.prototype.init(t,e,n,i,o)}function P(){return k.setTimeout(function(){re=undefined}),re=rt.now()}function O(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)o["margin"+(n=Dt[i])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function R(t,e,n){for(var i,o=(q.tweeners[e]||[]).concat(q.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,e,t))return i}function F(e,t,n){var i,o,r,s,a,c,l,u=this,d={},p=e.style,h=e.nodeType&&At(e),f=Ct.get(e,"fxshow");for(i in n.queue||(null==(a=rt._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,c=a.empty.fire,a.empty.fire=function(){a.unqueued||c()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,rt.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(l=rt.css(e,"display"))?Ct.get(e,"olddisplay")||T(e.nodeName):l)&&"none"===rt.css(e,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),t)if(o=t[i],ue.exec(o)){if(delete t[i],r=r||"toggle"===o,o===(h?"hide":"show")){if("show"!==o||!f||f[i]===undefined)continue;h=!0}d[i]=f&&f[i]||rt.style(e,i)}else l=undefined;if(rt.isEmptyObject(d))"inline"===("none"===l?T(e.nodeName):l)&&(p.display=l);else for(i in f?"hidden"in f&&(h=f.hidden):f=Ct.access(e,"fxshow",{}),r&&(f.hidden=!h),h?rt(e).show():u.done(function(){rt(e).hide()}),u.done(function(){var t;for(t in Ct.remove(e,"fxshow"),d)rt.style(e,t,d[t])}),d)s=R(h?f[i]:0,i,u),i in f||(f[i]=s.start,h&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}function L(t,e){var n,i,o,r,s;for(n in t)if(o=e[i=rt.camelCase(n)],r=t[n],rt.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(s=rt.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete t[i],r)n in t||(t[n]=r[n],e[n]=o);else e[i]=o}function q(r,t,e){var n,s,i=0,o=q.prefilters.length,a=rt.Deferred().always(function(){delete c.elem}),c=function(){if(s)return!1;for(var t=re||P(),e=Math.max(0,l.startTime+l.duration-t),n=1-(e/l.duration||0),i=0,o=l.tweens.length;i<o;i++)l.tweens[i].run(n);return a.notifyWith(r,[l,n,e]),n<1&&o?e:(a.resolveWith(r,[l]),!1)},l=a.promise({elem:r,props:rt.extend({},t),opts:rt.extend(!0,{specialEasing:{},easing:rt.easing._default},e),originalProperties:t,originalOptions:e,startTime:re||P(),duration:e.duration,tweens:[],createTween:function(t,e){var n=rt.Tween(r,l.opts,t,e,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(n),n},stop:function(t){var e=0,n=t?l.tweens.length:0;if(s)return this;for(s=!0;e<n;e++)l.tweens[e].run(1);return t?(a.notifyWith(r,[l,1,0]),a.resolveWith(r,[l,t])):a.rejectWith(r,[l,t]),this}}),u=l.props;for(L(u,l.opts.specialEasing);i<o;i++)if(n=q.prefilters[i].call(l,r,u,l.opts))return rt.isFunction(n.stop)&&(rt._queueHooks(l.elem,l.opts.queue).stop=rt.proxy(n.stop,n)),n;return rt.map(u,R,l),rt.isFunction(l.opts.start)&&l.opts.start.call(r,l),rt.fx.timer(rt.extend(c,{elem:r,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 W(t){return t.getAttribute&&t.getAttribute("class")||""}function H(r){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,i=0,o=t.toLowerCase().match(xt)||[];if(rt.isFunction(e))for(;n=o[i++];)"+"===n[0]?(n=n.slice(1)||"*",(r[n]=r[n]||[]).unshift(e)):(r[n]=r[n]||[]).push(e)}}function B(e,o,r,s){function a(t){var i;return c[t]=!0,rt.each(e[t]||[],function(t,e){var n=e(o,r,s);return"string"!=typeof n||l||c[n]?l?!(i=n):void 0:(o.dataTypes.unshift(n),a(n),!1)}),i}var c={},l=e===De;return a(o.dataTypes[0])||!c["*"]&&a("*")}function M(t,e){var n,i,o=rt.ajaxSettings.flatOptions||{};for(n in e)e[n]!==undefined&&((o[n]?t:i||(i={}))[n]=e[n]);return i&&rt.extend(!0,t,i),t}function U(t,e,n){for(var i,o,r,s,a=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),i===undefined&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){c.unshift(o);break}if(c[0]in n)r=c[0];else{for(o in n){if(!c[0]||t.converters[o+" "+c[0]]){r=o;break}s||(s=o)}r=r||s}if(r)return r!==c[0]&&c.unshift(r),n[r]}function z(t,e,n,i){var o,r,s,a,c,l={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)l[s.toLowerCase()]=t.converters[s];for(r=u.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!c&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),c=r,r=u.shift())if("*"===r)r=c;else if("*"!==c&&c!==r){if(!(s=l[c+" "+r]||l["* "+r]))for(o in l)if((a=o.split(" "))[1]===r&&(s=l[c+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[o]:!0!==l[o]&&(r=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&t["throws"])e=s(e);else try{e=s(e)}catch(d){return{state:"parsererror",error:s?d:"No conversion from "+c+" to "+r}}}return{state:"success",data:e}}function V(n,t,i,o){var e;if(rt.isArray(t))rt.each(t,function(t,e){i||Pe.test(n)?o(n,e):V(n+"["+("object"==typeof e&&null!=e?t:"")+"]",e,i,o)});else if(i||"object"!==rt.type(t))o(n,t);else for(e in t)V(n+"["+e+"]",t[e],i,o)}function X(t){return rt.isWindow(t)?t:9===t.nodeType&&t.defaultView}var Q=[],G=k.document,K=Q.slice,Y=Q.concat,J=Q.push,Z=Q.indexOf,tt={},et=tt.toString,nt=tt.hasOwnProperty,it={},ot="2.2.4",rt=function(t,e){return new rt.fn.init(t,e)},st=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,at=/^-ms-/,ct=/-([\da-z])/gi,lt=function(t,e){return e.toUpperCase()};rt.fn=rt.prototype={jquery:ot,constructor:rt,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=rt.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return rt.each(this,t)},map:function(n){return this.pushStack(rt.map(this,function(t,e){return n.call(t,e,t)}))},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(0<=n&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:J,sort:Q.sort,splice:Q.splice},rt.extend=rt.fn.extend=function(t){var e,n,i,o,r,s,a=t||{},c=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[c]||{},c++),"object"==typeof a||rt.isFunction(a)||(a={}),c===l&&(a=this,c--);c<l;c++)if(null!=(e=arguments[c]))for(n in e)i=a[n],a!==(o=e[n])&&(u&&o&&(rt.isPlainObject(o)||(r=rt.isArray(o)))?(r?(r=!1,s=i&&rt.isArray(i)?i:[]):s=i&&rt.isPlainObject(i)?i:{},a[n]=rt.extend(u,s,o)):o!==undefined&&(a[n]=o));return a},rt.extend({expando:"jQuery"+(ot+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===rt.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!rt.isArray(t)&&0<=e-parseFloat(e)+1},isPlainObject:function(t){var e;if("object"!==rt.type(t)||t.nodeType||rt.isWindow(t))return!1;if(t.constructor&&!nt.call(t,"constructor")&&!nt.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return e===undefined||nt.call(t,e)},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=rt.trim(t))&&(1===t.indexOf("use strict")?((e=G.createElement("script")).text=t,G.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(at,"ms-").replace(ct,lt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,i=0;if(a(t))for(n=t.length;i<n&&!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 n=e||[];return null!=t&&(a(Object(t))?rt.merge(n,"string"==typeof t?[t]:t):J.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:Z.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,s=!n;o<r;o++)!e(t[o],o)!==s&&i.push(t[o]);return i},map:function(t,e,n){var i,o,r=0,s=[];if(a(t))for(i=t.length;r<i;r++)null!=(o=e(t[r],r,n))&&s.push(o);else for(r in t)null!=(o=e(t[r],r,n))&&s.push(o);return Y.apply([],s)},guid:1,proxy:function(t,e){var n,i,o;return"string"==typeof e&&(n=t[e],e=t,t=n),rt.isFunction(t)?(i=K.call(arguments,2),(o=function(){return t.apply(e||this,i.concat(K.call(arguments)))}).guid=t.guid=t.guid||rt.guid++,o):undefined},now:Date.now,support:it}),"function"==typeof Symbol&&(rt.fn[Symbol.iterator]=Q[Symbol.iterator]),rt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){tt["[object "+e+"]"]=e.toLowerCase()});var ut=function(n){function w(t,e,n,i){var o,r,s,a,c,l,u,d,p=e&&e.ownerDocument,h=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==h&&9!==h&&11!==h)return n;if(!i&&((e?e.ownerDocument||e:W)!==I&&A(e),e=e||I,P)){if(11!==h&&(l=vt.exec(t)))if(o=l[1]){if(9===h){if(!(s=e.getElementById(o)))return n;if(s.id===o)return n.push(s),n}else if(p&&(s=p.getElementById(o))&&L(e,s)&&s.id===o)return n.push(s),n}else{if(l[2])return J.apply(n,e.getElementsByTagName(t)),n;if((o=l[3])&&v.getElementsByClassName&&e.getElementsByClassName)return J.apply(n,e.getElementsByClassName(o)),n}if(v.qsa&&!z[t+" "]&&(!O||!O.test(t))){if(1!==h)p=e,d=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(bt,"\\$&"):e.setAttribute("id",a=q),r=(u=T(t)).length,c=pt.test(a)?"#"+a:"[id='"+a+"']";r--;)u[r]=c+" "+g(u[r]);d=u.join(","),p=yt.test(t)&&m(e.parentNode)||e}if(d)try{return J.apply(n,p.querySelectorAll(d)),n}catch(f){}finally{a===q&&e.removeAttribute("id")}}}return S(t.replace(at,"$1"),e,n,i)}function t(){function n(t,e){return i.push(t+" ")>_.cacheLength&&delete n[i.shift()],n[t+" "]=e}var i=[];return n}function c(t){return t[q]=!0,t}function o(t){var e=I.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function e(t,e){for(var n=t.split("|"),i=n.length;i--;)_.attrHandle[n[i]]=e}function l(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||X)-(~t.sourceIndex||X);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function i(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function r(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function s(s){return c(function(r){return r=+r,c(function(t,e){for(var n,i=s([],t.length,r),o=i.length;o--;)t[n=i[o]]&&(t[n]=!(e[n]=t[n]))})})}function m(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function a(){}function g(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function d(a,t,e){var c=t.dir,l=e&&"parentNode"===c,u=B++;return t.first?function(t,e,n){for(;t=t[c];)if(1===t.nodeType||l)return a(t,e,n)}:function(t,e,n){var i,o,r,s=[H,u];if(n){for(;t=t[c];)if((1===t.nodeType||l)&&a(t,e,n))return!0}else for(;t=t[c];)if(1===t.nodeType||l){if((i=(o=(r=t[q]||(t[q]={}))[t.uniqueID]||(r[t.uniqueID]={}))[c])&&i[0]===H&&i[1]===u)return s[2]=i[2];if((o[c]=s)[2]=a(t,e,n))return!0}}}function p(o){return 1<o.length?function(t,e,n){for(var i=o.length;i--;)if(!o[i](t,e,n))return!1;return!0}:o[0]}function y(t,e,n){for(var i=0,o=e.length;i<o;i++)w(t,e[i],n);return n}function x(t,e,n,i,o){for(var r,s=[],a=0,c=t.length,l=null!=e;a<c;a++)(r=t[a])&&(n&&!n(r,i,o)||(s.push(r),l&&e.push(a)));return s}function b(h,f,m,g,v,t){return g&&!g[q]&&(g=b(g)),v&&!v[q]&&(v=b(v,t)),c(function(t,e,n,i){var o,r,s,a=[],c=[],l=e.length,u=t||y(f||"*",n.nodeType?[n]:n,[]),d=!h||!t&&f?u:x(u,a,h,n,i),p=m?v||(t?h:l||g)?[]:e:d;if(m&&m(d,p,n,i),g)for(o=x(p,c),g(o,[],n,i),r=o.length;r--;)(s=o[r])&&(p[c[r]]=!(d[c[r]]=s));if(t){if(v||h){if(v){for(o=[],r=p.length;r--;)(s=p[r])&&o.push(d[r]=s);v(null,p=[],o,i)}for(r=p.length;r--;)(s=p[r])&&-1<(o=v?tt(t,s):a[r])&&(t[o]=!(e[o]=s))}}else p=x(p===e?p.splice(l,p.length):p),v?v(null,e,p,i):J.apply(e,p)})}function h(t){for(var o,e,n,i=t.length,r=_.relative[t[0].type],s=r||_.relative[" "],a=r?1:0,c=d(function(t){return t===o},s,!0),l=d(function(t){return-1<tt(o,t)},s,!0),u=[function(t,e,n){var i=!r&&(n||e!==j)||((o=e).nodeType?c(t,e,n):l(t,e,n));return o=null,i}];a<i;a++)if(e=_.relative[t[a].type])u=[d(p(u),e)];else{if((e=_.filter[t[a].type].apply(null,t[a].matches))[q]){for(n=++a;n<i&&!_.relative[t[n].type];n++);return b(1<a&&p(u),1<a&&g(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(at,"$1"),e,a<n&&h(t.slice(a,n)),n<i&&h(t=t.slice(n)),n<i&&g(t))}u.push(e)}return p(u)}function u(g,v){var y=0<v.length,b=0<g.length,t=function(t,e,n,i,o){var r,s,a,c=0,l="0",u=t&&[],d=[],p=j,h=t||b&&_.find.TAG("*",o),f=H+=null==p?1:Math.random()||.1,m=h.length;for(o&&(j=e===I||e||o);l!==m&&null!=(r=h[l]);l++){if(b&&r){for(s=0,e||r.ownerDocument===I||(A(r),n=!P);a=g[s++];)if(a(r,e||I,n)){i.push(r);break}o&&(H=f)}y&&((r=!a&&r)&&c--,t&&u.push(r))}if(c+=l,y&&l!==c){for(s=0;a=v[s++];)a(u,d,e,n);if(t){if(0<c)for(;l--;)u[l]||d[l]||(d[l]=K.call(i));d=x(d)}J.apply(i,d),o&&!t&&0<d.length&&1<c+v.length&&w.uniqueSort(i)}return o&&(H=f,j=p),u};return y?c(t):t}var f,v,_,k,C,T,$,S,j,E,D,A,I,N,P,O,R,F,L,q="sizzle"+1*new Date,W=n.document,H=0,B=0,M=t(),U=t(),z=t(),V=function(t,e){return t===e&&(D=!0),0},X=1<<31,Q={}.hasOwnProperty,G=[],K=G.pop,Y=G.push,J=G.push,Z=G.slice,tt=function(t,e){for(var n=0,i=t.length;n<i;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]",it="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ot="\\["+nt+"*("+it+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+nt+"*\\]",rt=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ot+")*)|.*)\\)|)",st=new RegExp(nt+"+","g"),at=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),ct=new RegExp("^"+nt+"*,"+nt+"*"),lt=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ut=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),dt=new RegExp(rt),pt=new RegExp("^"+it+"$"),ht={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it+"|[*])"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+rt),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/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,bt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),xt=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},_t=function(){A()};try{J.apply(G=Z.call(W.childNodes),W.childNodes),G[W.childNodes.length].nodeType}catch(kt){J={apply:G.length?function(t,e){Y.apply(t,Z.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}for(f in v=w.support={},C=w.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},A=w.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:W;return i!==I&&9===i.nodeType&&i.documentElement&&(N=(I=i).documentElement,P=!C(I),(n=I.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",_t,!1):n.attachEvent&&n.attachEvent("onunload",_t)),v.attributes=o(function(t){return t.className="i",!t.getAttribute("className")}),v.getElementsByTagName=o(function(t){return t.appendChild(I.createComment("")),!t.getElementsByTagName("*").length}),v.getElementsByClassName=gt.test(I.getElementsByClassName),v.getById=o(function(t){return N.appendChild(t).id=q,!I.getElementsByName||!I.getElementsByName(q).length}),v.getById?(_.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&P){var n=e.getElementById(t);return n?[n]:[]}},_.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){return t.getAttribute("id")===e}}):(delete _.find.ID,_.filter.ID=function(t){var n=t.replace(wt,xt);return function(t){var e="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}}),_.find.TAG=v.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):v.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"!==t)return r;for(;n=r[o++];)1===n.nodeType&&i.push(n);return i},_.find.CLASS=v.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&P)return e.getElementsByClassName(t)},R=[],O=[],(v.qsa=gt.test(I.querySelectorAll))&&(o(function(t){N.appendChild(t).innerHTML="<a id='"+q+"'></a><select id='"+q+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||O.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+q+"-]").length||O.push("~="),t.querySelectorAll(":checked").length||O.push(":checked"),t.querySelectorAll("a#"+q+"+*").length||O.push(".#.+[+~]")}),o(function(t){var e=I.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&O.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||O.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),O.push(",.*:")})),(v.matchesSelector=gt.test(F=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&o(function(t){v.disconnectedMatch=F.call(t,"div"),F.call(t,"[s!='']:x"),R.push("!=",rt)}),O=O.length&&new RegExp(O.join("|")),R=R.length&&new RegExp(R.join("|")),e=gt.test(N.compareDocumentPosition),L=e||gt.test(N.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},V=e?function(t,e){if(t===e)return D=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!v.sortDetached&&e.compareDocumentPosition(t)===n?t===I||t.ownerDocument===W&&L(W,t)?-1:e===I||e.ownerDocument===W&&L(W,e)?1:E?tt(E,t)-tt(E,e):0:4&n?-1:1)}:function(t,e){if(t===e)return D=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,s=[t],a=[e];if(!o||!r)return t===I?-1:e===I?1:o?-1:r?1:E?tt(E,t)-tt(E,e):0;if(o===r)return l(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?l(s[i],a[i]):s[i]===W?-1:a[i]===W?1:0}),I},w.matches=function(t,e){return w(t,null,null,e)},w.matchesSelector=function(t,e){if((t.ownerDocument||t)!==I&&A(t),e=e.replace(ut,"='$1']"),v.matchesSelector&&P&&!z[e+" "]&&(!R||!R.test(e))&&(!O||!O.test(e)))try{var n=F.call(t,e);if(n||v.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(kt){}return 0<w(e,I,null,[t]).length},w.contains=function(t,e){return(t.ownerDocument||t)!==I&&A(t),L(t,e)},w.attr=function(t,e){(t.ownerDocument||t)!==I&&A(t);var n=_.attrHandle[e.toLowerCase()],i=n&&Q.call(_.attrHandle,e.toLowerCase())?n(t,e,!P):undefined;return i!==undefined?i:v.attributes||!P?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},w.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},w.uniqueSort=function(t){var e,n=[],i=0,o=0;if(D=!v.detectDuplicates,E=!v.sortStable&&t.slice(0),t.sort(V),D){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)t.splice(n[i],1)}return E=null,t},k=w.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=k(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=k(e);return n},(_=w.selectors={cacheLength:50,createPseudo:c,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]||w.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]&&w.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=T(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=M[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&M(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(n,i,o){return function(t){var e=w.attr(t,n);return null==e?"!="===i:!i||(e+="","="===i?e===o:"!="===i?e!==o:"^="===i?o&&0===e.indexOf(o):"*="===i?o&&-1<e.indexOf(o):"$="===i?o&&e.slice(-o.length)===o:"~="===i?-1<(" "+e.replace(st," ")+" ").indexOf(o):"|="===i&&(e===o||e.slice(0,o.length+1)===o+"-"))}},CHILD:function(f,t,e,m,g){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===t;return 1===m&&0===g?function(t){return!!t.parentNode}:function(t,e,n){var i,o,r,s,a,c,l=v!==y?"nextSibling":"previousSibling",u=t.parentNode,d=b&&t.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(u){if(v){for(;l;){for(s=t;s=s[l];)if(b?s.nodeName.toLowerCase()===d:1===s.nodeType)return!1;c=l="only"===f&&!c&&"nextSibling"}return!0}if(c=[y?u.firstChild:u.lastChild],y&&p){for(h=(a=(i=(o=(r=(s=u)[q]||(s[q]={}))[s.uniqueID]||(r[s.uniqueID]={}))[f]||[])[0]===H&&i[1])&&i[2],s=a&&u.childNodes[a];s=++a&&s&&s[l]||(h=a=0)||c.pop();)if(1===s.nodeType&&++h&&s===t){o[f]=[H,a,h];break}}else if(p&&(h=a=(i=(o=(r=(s=t)[q]||(s[q]={}))[s.uniqueID]||(r[s.uniqueID]={}))[f]||[])[0]===H&&i[1]),!1===h)for(;(s=++a&&s&&s[l]||(h=a=0)||c.pop())&&((b?s.nodeName.toLowerCase()!==d:1!==s.nodeType)||!++h||(p&&((o=(r=s[q]||(s[q]={}))[s.uniqueID]||(r[s.uniqueID]={}))[f]=[H,h]),s!==t)););return(h-=g)===m||h%m==0&&0<=h/m}}},PSEUDO:function(t,r){var e,s=_.pseudos[t]||_.setFilters[t.toLowerCase()]||w.error("unsupported pseudo: "+t);return s[q]?s(r):1<s.length?(e=[t,t,"",r],_.setFilters.hasOwnProperty(t.toLowerCase())?c(function(t,e){for(var n,i=s(t,r),o=i.length;o--;)t[n=tt(t,i[o])]=!(e[n]=i[o])}):function(t){return s(t,0,e)}):s}},pseudos:{not:c(function(t){var i=[],o=[],a=$(t.replace(at,"$1"));return a[q]?c(function(t,e,n,i){for(var o,r=a(t,null,i,[]),s=t.length;s--;)(o=r[s])&&(t[s]=!(e[s]=o))}):function(t,e,n){return i[0]=t,a(i,null,n,o),i[0]=null,!o.pop()}}),has:c(function(e){return function(t){return 0<w(e,t).length}}),contains:c(function(e){return e=e.replace(wt,xt),function(t){return-1<(t.textContent||t.innerText||k(t)).indexOf(e)}}),lang:c(function(n){return pt.test(n||"")||w.error("unsupported lang: "+n),n=n.replace(wt,xt).toLowerCase(),function(t){var e;do{if(e=P?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===N},focus:function(t){return t===I.activeElement&&(!I.hasFocus||I.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!_.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:s(function(){return[0]}),last:s(function(t,e){return[e-1]}),eq:s(function(t,e,n){return[n<0?n+e:n]}),even:s(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:s(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:s(function(t,e,n){for(var i=n<0?n+e:n;0<=--i;)t.push(i);return t}),gt:s(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=_.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[f]=i(f);for(f in{submit:!0,reset:!0})_.pseudos[f]=r(f);return a.prototype=_.filters=_.pseudos,_.setFilters=new a,T=w.tokenize=function(t,e){var n,i,o,r,s,a,c,l=U[t+" "];if(l)return e?0:l.slice(0);for(s=t,a=[],c=_.preFilter;s;){for(r in n&&!(i=ct.exec(s))||(i&&(s=s.slice(i[0].length)||s),a.push(o=[])),n=!1,(i=lt.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(at," ")}),s=s.slice(n.length)),_.filter)!(i=ht[r].exec(s))||c[r]&&!(i=c[r](i))||(n=i.shift(),o.push({value:n,type:r,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?w.error(t):U(t,a).slice(0)},$=w.compile=function(t,e){var n,i=[],o=[],r=z[t+" "];if(!r){for(e||(e=T(t)),n=e.length;n--;)(r=h(e[n]))[q]?i.push(r):o.push(r);(r=z(t,u(o,i))).selector=t}return r},S=w.select=function(t,e,n,i){var o,r,s,a,c,l="function"==typeof t&&t,u=!i&&T(t=l.selector||t);if(n=n||[],1===u.length){if(2<(r=u[0]=u[0].slice(0)).length&&"ID"===(s=r[0]).type&&v.getById&&9===e.nodeType&&P&&_.relative[r[1].type]){if(!(e=(_.find.ID(s.matches[0].replace(wt,xt),e)||[])[0]))return n;l&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(o=ht.needsContext.test(t)?0:r.length;o--&&(s=r[o],!_.relative[a=s.type]);)if((c=_.find[a])&&(i=c(s.matches[0].replace(wt,xt),yt.test(r[0].type)&&m(e.parentNode)||e))){if(r.splice(o,1),!(t=i.length&&g(r)))return J.apply(n,i),n;break}}return(l||$(t,u))(i,e,!P,n,!e||yt.test(t)&&m(e.parentNode)||e),n},v.sortStable=q.split("").sort(V).join("")===q,v.detectDuplicates=!!D,A(),v.sortDetached=o(function(t){return 1&t.compareDocumentPosition(I.createElement("div"))}),o(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||e("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),v.attributes&&o(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||e("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),o(function(t){return null==t.getAttribute("disabled")})||e(et,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),w}(k);rt.find=ut,rt.expr=ut.selectors,rt.expr[":"]=rt.expr.pseudos,rt.uniqueSort=rt.unique=ut.uniqueSort,rt.text=ut.getText,rt.isXMLDoc=ut.isXML,rt.contains=ut.contains;var dt=function(t,e,n){for(var i=[],o=n!==undefined;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&rt(t).is(n))break;i.push(t)}return i},pt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},ht=rt.expr.match.needsContext,ft=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,mt=/^.[^:#\[\.,]*$/;rt.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?rt.find.matchesSelector(i,t)?[i]:[]:rt.find.matches(t,rt.grep(e,function(t){return 1===t.nodeType}))},rt.fn.extend({find:function(t){var e,n=this.length,i=[],o=this;if("string"!=typeof t)return this.pushStack(rt(t).filter(function(){for(e=0;e<n;e++)if(rt.contains(o[e],this))return!0}));for(e=0;e<n;e++)rt.find(t,o[e],i);return(i=this.pushStack(1<n?rt.unique(i):i)).selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(e(this,t||[],!1))},not:function(t){return this.pushStack(e(this,t||[],!0))},is:function(t){return!!e(this,"string"==typeof t&&ht.test(t)?rt(t):t||[],!1).length}});var gt,vt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(rt.fn.init=function(t,e,n){var i,o;if(!t)return this;if(n=n||gt,"string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):rt.isFunction(t)?n.ready!==undefined?n.ready(t):t(rt):(t.selector!==undefined&&(this.selector=t.selector,this.context=t.context),rt.makeArray(t,this));if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:vt.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof rt?e[0]:e,rt.merge(this,rt.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:G,!0)),ft.test(i[1])&&rt.isPlainObject(e))for(i in e)rt.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(o=G.getElementById(i[2]))&&o.parentNode&&(this.length=1,this[0]=o),this.context=G,this.selector=t,this}).prototype=rt.fn,gt=rt(G);var yt=/^(?:parents|prev(?:Until|All))/,bt={children:!0,contents:!0,next:!0,prev:!0};rt.fn.extend({has:function(t){var e=rt(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(rt.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,i=0,o=this.length,r=[],s=ht.test(t)||"string"!=typeof t?rt(t,e||this.context):0;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&rt.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(1<r.length?rt.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?Z.call(rt(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(rt.uniqueSort(rt.merge(this.get(),rt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),rt.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 n(t,"nextSibling")},prev:function(t){return n(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||rt.merge([],t.childNodes)}},function(i,o){rt.fn[i]=function(t,e){var n=rt.map(this,o,t);return"Until"!==i.slice(-5)&&(e=t),e&&"string"==typeof e&&(n=rt.filter(e,n)),1<this.length&&(bt[i]||rt.uniqueSort(n),yt.test(i)&&n.reverse()),this.pushStack(n)}});var wt,xt=/\S+/g;rt.Callbacks=function(i){i="string"==typeof i?u(i):rt.extend({},i);var o,t,e,n,r=[],s=[],a=-1,c=function(){for(n=i.once,e=o=!0;s.length;a=-1)for(t=s.shift();++a<r.length;)!1===r[a].apply(t[0],t[1])&&i.stopOnFalse&&(a=r.length,t=!1);i.memory||(t=!1),o=!1,n&&(r=t?[]:"")},l={add:function(){return r&&(t&&!o&&(a=r.length-1,s.push(t)),function n(t){rt.each(t,function(t,e){rt.isFunction(e)?i.unique&&l.has(e)||r.push(e):e&&e.length&&"string"!==rt.type(e)&&n(e)})}(arguments),t&&!o&&c()),this},remove:function(){return rt.each(arguments,function(t,e){for(var n;-1<(n=rt.inArray(e,r,n));)r.splice(n,1),n<=a&&a--}),this},has:function(t){return t?-1<rt.inArray(t,r):0<r.length},empty:function(){return r&&(r=[]),this},disable:function(){return n=s=[],r=t="",this},disabled:function(){return!r},lock:function(){return n=s=[],t||(r=t=""),this},locked:function(){return!!n},fireWith:function(t,e){return n||(e=[t,(e=e||[]).slice?e.slice():e],s.push(e),o||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!e}};return l},rt.extend({Deferred:function(t){var r=[["resolve","done",rt.Callbacks("once memory"),"resolved"],["reject","fail",rt.Callbacks("once memory"),"rejected"],["notify","progress",rt.Callbacks("memory")]],o="pending",s={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var o=arguments;return rt.Deferred(function(i){rt.each(r,function(t,e){var n=rt.isFunction(o[t])&&o[t];a[e[1]](function(){var t=n&&n.apply(this,arguments);t&&rt.isFunction(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[e[0]+"With"](this===s?i.promise():this,n?[t]:arguments)})}),o=null}).promise()},promise:function(t){return null!=t?rt.extend(t,s):s}},a={};return s.pipe=s.then,rt.each(r,function(t,e){var n=e[2],i=e[3];s[e[1]]=n.add,i&&n.add(function(){o=i},r[1^t][2].disable,r[2][2].lock),a[e[0]]=function(){return a[e[0]+"With"](this===a?s:this,arguments),this},a[e[0]+"With"]=n.fireWith}),s.promise(a),t&&t.call(a,a),a},when:function(t){var o,e,n,i=0,r=K.call(arguments),s=r.length,a=1!==s||t&&rt.isFunction(t.promise)?s:0,c=1===a?t:rt.Deferred(),l=function(e,n,i){return function(t){n[e]=this,i[e]=1<arguments.length?K.call(arguments):t,i===o?c.notifyWith(n,i):--a||c.resolveWith(n,i)}};if(1<s)for(o=new Array(s),e=new Array(s),n=new Array(s);i<s;i++)r[i]&&rt.isFunction(r[i].promise)?r[i].promise().progress(l(i,e,o)).done(l(i,n,r)).fail(c.reject):--a;return a||c.resolveWith(n,r),c.promise()}}),rt.fn.ready=function(t){return rt.ready.promise().done(t),this},rt.extend({isReady:!1,readyWait:1,holdReady:function(t){t?rt.readyWait++:rt.ready(!0)},ready:function(t){(!0===t?--rt.readyWait:rt.isReady)||(rt.isReady=!0)!==t&&0<--rt.readyWait||(wt.resolveWith(G,[rt]),rt.fn.triggerHandler&&(rt(G).triggerHandler("ready"),rt(G).off("ready")))}}),rt.ready.promise=function(t){return wt||(wt=rt.Deferred(),"complete"===G.readyState||"loading"!==G.readyState&&!G.documentElement.doScroll?k.setTimeout(rt.ready):(G.addEventListener("DOMContentLoaded",i),k.addEventListener("load",i))),wt.promise(t)},rt.ready.promise();var _t=function(t,e,n,i,o,r,s){var a=0,c=t.length,l=null==n;if("object"===rt.type(n))for(a in o=!0,n)_t(t,e,a,n[a],!0,r,s);else if(i!==undefined&&(o=!0,rt.isFunction(i)||(s=!0),l&&(s?(e.call(t,i),e=null):(l=e,e=function(t,e,n){return l.call(rt(t),n)})),e))for(;a<c;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return o?t:l?e.call(t):c?e(t[0],n):r},kt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};o.uid=1,o.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(!kt(t))return{};var e=t[this.expando];return e||(e={},kt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[e]=n;else for(i in e)o[i]=e[i];return o},get:function(t,e){return e===undefined?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var i;return e===undefined||e&&"string"==typeof e&&n===undefined?(i=this.get(t,e))!==undefined?i:this.get(t,rt.camelCase(e)):(this.set(t,e,n),n!==undefined?n:e)},remove:function(t,e){var n,i,o,r=t[this.expando];if(r!==undefined){if(e===undefined)this.register(t);else{rt.isArray(e)?i=e.concat(e.map(rt.camelCase)):(o=rt.camelCase(e),i=e in r?[e,o]:(i=o)in r?[i]:i.match(xt)||[]),n=i.length;for(;n--;)delete r[i[n]]}(e===undefined||rt.isEmptyObject(r))&&(t.nodeType?t[this.expando]=undefined:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return e!==undefined&&!rt.isEmptyObject(e)}};var Ct=new o,Tt=new o,$t=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,St=/[A-Z]/g;rt.extend({hasData:function(t){return Tt.hasData(t)||Ct.hasData(t)},data:function(t,e,n){return Tt.access(t,e,n)},removeData:function(t,e){Tt.remove(t,e)},_data:function(t,e,n){return Ct.access(t,e,n)},_removeData:function(t,e){Ct.remove(t,e)}}),rt.fn.extend({data:function(i,t){var e,n,o,r=this[0],s=r&&r.attributes;if(i!==undefined)return"object"==typeof i?this.each(function(){Tt.set(this,i)}):_t(this,function(e){var t,n;if(r&&e===undefined)return(t=Tt.get(r,i)||Tt.get(r,i.replace(St,"-$&").toLowerCase()))!==undefined?t:(n=rt.camelCase(i),(t=Tt.get(r,n))!==undefined?t:(t=c(r,n,undefined))!==undefined?t:void 0);n=rt.camelCase(i),this.each(function(){var t=Tt.get(this,n);Tt.set(this,n,e),-1<i.indexOf("-")&&t!==undefined&&Tt.set(this,i,e)})},null,t,1<arguments.length,null,!0);if(this.length&&(o=Tt.get(r),1===r.nodeType&&!Ct.get(r,"hasDataAttrs"))){for(e=s.length;e--;)s[e]&&0===(n=s[e].name).indexOf("data-")&&(n=rt.camelCase(n.slice(5)),c(r,n,o[n]));Ct.set(r,"hasDataAttrs",!0)}return o},removeData:function(t){return this.each(function(){Tt.remove(this,t)})}}),rt.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Ct.get(t,e),n&&(!i||rt.isArray(n)?i=Ct.access(t,e,rt.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=rt.queue(t,e),i=n.length,o=n.shift(),r=rt._queueHooks(t,e),s=function(){rt.dequeue(t,e)};"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,s,r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Ct.get(t,n)||Ct.access(t,n,{empty:rt.Callbacks("once memory").add(function(){Ct.remove(t,[e+"queue",n])})})}}),rt.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?rt.queue(this[0],e):n===undefined?this:this.each(function(){var t=rt.queue(this,e,n);rt._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&rt.dequeue(this,e)})},dequeue:function(t){return this.each(function(){rt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=rt.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=undefined),t=t||"fx";s--;)(n=Ct.get(r[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(e)}});var jt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Et=new RegExp("^(?:([+-])=|)("+jt+")([a-z%]*)$","i"),Dt=["Top","Right","Bottom","Left"],At=function(t,e){return t=e||t,"none"===rt.css(t,"display")||!rt.contains(t.ownerDocument,t)},It=/^(?:checkbox|radio)$/i,Nt=/<([\w:-]+)/,Pt=/^$|\/(?:java|ecma)script/i,Ot={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,"",""]};Ot.optgroup=Ot.option,Ot.tbody=Ot.tfoot=Ot.colgroup=Ot.caption=Ot.thead,Ot.th=Ot.td;var Rt,Ft,Lt=/<|&#?\w+;/;Rt=G.createDocumentFragment().appendChild(G.createElement("div")),(Ft=G.createElement("input")).setAttribute("type","radio"),Ft.setAttribute("checked","checked"),Ft.setAttribute("name","t"),Rt.appendChild(Ft),it.checkClone=Rt.cloneNode(!0).cloneNode(!0).lastChild.checked,Rt.innerHTML="<textarea>x</textarea>",it.noCloneChecked=!!Rt.cloneNode(!0).lastChild.defaultValue;var qt=/^key/,Wt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ht=/^([^.]*)(?:\.(.+)|)/;rt.event={global:{},add:function(e,t,n,i,o){var r,s,a,c,l,u,d,p,h,f,m,g=Ct.get(e);if(g)for(n.handler&&(n=(r=n).handler,o=r.selector),n.guid||(n.guid=rt.guid++),(c=g.events)||(c=g.events={}),(s=g.handle)||(s=g.handle=function(t){return void 0!==rt&&rt.event.triggered!==t.type?rt.event.dispatch.apply(e,arguments):undefined}),l=(t=(t||"").match(xt)||[""]).length;l--;)h=m=(a=Ht.exec(t[l])||[])[1],f=(a[2]||"").split(".").sort(),h&&(d=rt.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,d=rt.event.special[h]||{},u=rt.extend({type:h,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&rt.expr.match.needsContext.test(o),namespace:f.join(".")},r),(p=c[h])||((p=c[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,s)||e.addEventListener&&e.addEventListener(h,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,u):p.push(u),rt.event.global[h]=!0)},remove:function(t,e,n,i,o){var r,s,a,c,l,u,d,p,h,f,m,g=Ct.hasData(t)&&Ct.get(t);if(g&&(c=g.events)){for(l=(e=(e||"").match(xt)||[""]).length;l--;)if(h=m=(a=Ht.exec(e[l])||[])[1],f=(a[2]||"").split(".").sort(),h){for(d=rt.event.special[h]||{},p=c[h=(i?d.delegateType:d.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=p.length;r--;)u=p[r],!o&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(p.splice(r,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(t,u));s&&!p.length&&(d.teardown&&!1!==d.teardown.call(t,f,g.handle)||rt.removeEvent(t,h,g.handle),delete c[h])}else for(h in c)rt.event.remove(t,h+e[l],n,i,!0);rt.isEmptyObject(c)&&Ct.remove(t,"handle events")}},dispatch:function(t){t=rt.event.fix(t);var e,n,i,o,r,s=[],a=K.call(arguments),c=(Ct.get(this,"events")||{})[t.type]||[],l=rt.event.special[t.type]||{};if((a[0]=t).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,t)){for(s=rt.event.handlers.call(this,t,c),e=0;(o=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(r.namespace)||(t.handleObj=r,t.data=r.data,(i=((rt.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,a))!==undefined&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,o,r,s=[],a=e.delegateCount,c=t.target;if(a&&c.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&(!0!==c.disabled||"click"!==t.type)){for(i=[],n=0;n<a;n++)i[o=(r=e[n]).selector+" "]===undefined&&(i[o]=r.needsContext?-1<rt(o,this).index(c):rt.find(o,this,null,[c]).length),i[o]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}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,i,o,r=e.button;return null==t.pageX&&null!=e.clientX&&(i=(n=t.target.ownerDocument||G).documentElement,o=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)),t.which||r===undefined||(t.which=1&r?1:2&r?3:4&r?2:0),t}},fix:function(t){if(t[rt.expando])return t;var e,n,i,o=t.type,r=t,s=this.fixHooks[o];for(s||(this.fixHooks[o]=s=Wt.test(o)?this.mouseHooks:qt.test(o)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,t=new rt.Event(r),e=i.length;e--;)t[n=i[e]]=r[n];return t.target||(t.target=G),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,r):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==s()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===s()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&rt.nodeName(this,"input"))return this.click(),!1},_default:function(t){return rt.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){t.result!==undefined&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},rt.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},rt.Event=function(t,e){if(!(this instanceof rt.Event))return new rt.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.defaultPrevented===undefined&&!1===t.returnValue?r:d):this.type=t,e&&rt.extend(this,e),this.timeStamp=t&&t.timeStamp||rt.now(),this[rt.expando]=!0},rt.Event.prototype={constructor:rt.Event,isDefaultPrevented:d,isPropagationStopped:d,isImmediatePropagationStopped:d,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=r,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=r,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=r,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},rt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,r){rt.event.special[t]={delegateType:r,bindType:r,handle:function(t){var e,n=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===n||rt.contains(n,i))||(t.type=o.origType,e=o.handler.apply(this,arguments),t.type=r),e}}}),rt.fn.extend({on:function(t,e,n,i){return p(this,t,e,n,i)},one:function(t,e,n,i){return p(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,rt(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=undefined),!1===n&&(n=d),this.each(function(){rt.event.remove(this,t,n,e)});for(o in t)this.off(o,e,t[o]);return this}});var Bt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Mt=/<script|<style|<link/i,Ut=/checked\s*(?:[^=]|=\s*.checked.)/i,zt=/^true\/(.*)/,Vt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;rt.extend({htmlPrefilter:function(t){return t.replace(Bt,"<$1></$2>")},clone:function(t,e,n){var i,o,r,s,a=t.cloneNode(!0),c=rt.contains(t.ownerDocument,t);if(!(it.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||rt.isXMLDoc(t)))for(s=m(a),i=0,o=(r=m(t)).length;i<o;i++)w(r[i],s[i]);if(e)if(n)for(r=r||m(t),s=s||m(a),i=0,o=r.length;i<o;i++)f(r[i],s[i]);else f(t,a);return 0<(s=m(a,"script")).length&&g(s,!c&&m(t,"script")),a},cleanData:function(t){for(var e,n,i,o=rt.event.special,r=0;(n=t[r])!==undefined;r++)if(kt(n)){if(e=n[Ct.expando]){if(e.events)for(i in e.events)o[i]?rt.event.remove(n,i):rt.removeEvent(n,i,e.handle);n[Ct.expando]=undefined}n[Tt.expando]&&(n[Tt.expando]=undefined)}}}),rt.fn.extend({domManip:x,detach:function(t){return _(this,t,!0)},remove:function(t){return _(this,t)},text:function(t){return _t(this,function(t){return t===undefined?rt.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 x(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||h(this,t).appendChild(t)})},prepend:function(){return x(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=h(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return x(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return x(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&&(rt.cleanData(m(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return rt.clone(this,t,e)})},html:function(t){return _t(this,function(t){var e=this[0]||{},n=0,i=this.length;if(t===undefined&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Mt.test(t)&&!Ot[(Nt.exec(t)||["",""])[1].toLowerCase()]){t=rt.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(rt.cleanData(m(e,!1)),e.innerHTML=t);e=0}catch(o){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return x(this,arguments,function(t){var e=this.parentNode;rt.inArray(this,n)<0&&(rt.cleanData(m(this)),e&&e.replaceChild(t,this))},n)}}),rt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,s){rt.fn[t]=function(t){for(var e,n=[],i=rt(t),o=i.length-1,r=0;r<=o;r++)e=r===o?this:this.clone(!0),rt(i[r])[s](e),J.apply(n,e.get());return this.pushStack(n)}});var Xt,Qt={HTML:"block",BODY:"block"},Gt=/^margin/,Kt=new RegExp("^("+jt+")(?!px)[a-z%]+$","i"),Yt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=k),e.getComputedStyle(t)},Jt=function(t,e,n,i){var o,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];for(r in o=n.apply(t,i||[]),e)t.style[r]=s[r];return o},Zt=G.documentElement;!function(){function t(){s.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%",s.innerHTML="",Zt.appendChild(r);var t=k.getComputedStyle(s);e="1%"!==t.top,o="2px"===t.marginLeft,n="4px"===t.width,s.style.marginRight="50%",i="4px"===t.marginRight,Zt.removeChild(r)}var e,n,i,o,r=G.createElement("div"),s=G.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",it.clearCloneStyle="content-box"===s.style.backgroundClip,r.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",r.appendChild(s),rt.extend(it,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return null==n&&t(),n},pixelMarginRight:function(){return null==n&&t(),i},reliableMarginLeft:function(){return null==n&&t(),o},reliableMarginRight:function(){var t,e=s.appendChild(G.createElement("div"));return e.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",s.style.width="1px",Zt.appendChild(r),t=!parseFloat(k.getComputedStyle(e).marginRight),Zt.removeChild(r),s.removeChild(e),t}}))}();var te=/^(none|table(?!-c[ea]).+)/,ee={position:"absolute",visibility:"hidden",display:"block"},ne={letterSpacing:"0",fontWeight:"400"},ie=["Webkit","O","Moz","ms"],oe=G.createElement("div").style;rt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=$(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,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,s,a=rt.camelCase(e),c=t.style;if(e=rt.cssProps[a]||(rt.cssProps[a]=j(a)||a),s=rt.cssHooks[e]||rt.cssHooks[a],n===undefined)return s&&"get"in s&&(o=s.get(t,!1,i))!==undefined?o:c[e];"string"===(r=typeof n)&&(o=Et.exec(n))&&o[1]&&(n=l(t,e,o),r="number"),null!=n&&n==n&&("number"===r&&(n+=o&&o[3]||(rt.cssNumber[a]?"":"px")),it.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),s&&"set"in s&&(n=s.set(t,n,i))===undefined||(c[e]=n))}},css:function(t,e,n,i){var o,r,s,a=rt.camelCase(e);return e=rt.cssProps[a]||(rt.cssProps[a]=j(a)||a),(s=rt.cssHooks[e]||rt.cssHooks[a])&&"get"in s&&(o=s.get(t,!0,n)),o===undefined&&(o=$(t,e,i)),"normal"===o&&e in ne&&(o=ne[e]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),rt.each(["height","width"],function(t,s){rt.cssHooks[s]={get:function(t,e,n){if(e)return te.test(rt.css(t,"display"))&&0===t.offsetWidth?Jt(t,ee,function(){return A(t,s,n)}):A(t,s,n)},set:function(t,e,n){var i,o=n&&Yt(t),r=n&&D(t,s,n,"border-box"===rt.css(t,"boxSizing",!1,o),o);return r&&(i=Et.exec(e))&&"px"!==(i[3]||"px")&&(t.style[s]=e,e=rt.css(t,s)),E(t,e,r)}}}),rt.cssHooks.marginLeft=S(it.reliableMarginLeft,function(t,e){if(e)return(parseFloat($(t,"marginLeft"))||t.getBoundingClientRect().left-Jt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),rt.cssHooks.marginRight=S(it.reliableMarginRight,function(t,e){if(e)return Jt(t,{display:"inline-block"},$,[t,"marginRight"])}),rt.each({margin:"",padding:"",border:"Width"},function(o,r){rt.cssHooks[o+r]={expand:function(t){for(var e=0,n={},i="string"==typeof t?t.split(" "):[t];e<4;e++)n[o+Dt[e]+r]=i[e]||i[e-2]||i[0];return n}},Gt.test(o)||(rt.cssHooks[o+r].set=E)}),rt.fn.extend({css:function(t,e){return _t(this,function(t,e,n){var i,o,r={},s=0;if(rt.isArray(e)){for(i=Yt(t),o=e.length;s<o;s++)r[e[s]]=rt.css(t,e[s],!1,i);return r}return n!==undefined?rt.style(t,e,n):rt.css(t,e)},t,e,1<arguments.length)},show:function(){return I(this,!0)},hide:function(){return I(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){At(this)?rt(this).show():rt(this).hide()})}}),(rt.Tween=N).prototype={constructor:N,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||rt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(rt.cssNumber[n]?"":"px")},cur:function(){var t=N.propHooks[this.prop];return t&&t.get?t.get(this):N.propHooks._default.get(this)},run:function(t){var e,n=N.propHooks[this.prop];return this.options.duration?this.pos=e=rt.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):N.propHooks._default.set(this),this}},N.prototype.init.prototype=N.prototype,N.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=rt.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){rt.fx.step[t.prop]?rt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[rt.cssProps[t.prop]]&&!rt.cssHooks[t.prop]?t.elem[t.prop]=t.now:rt.style(t.elem,t.prop,t.now+t.unit)}}},N.propHooks.scrollTop=N.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},rt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},rt.fx=N.prototype.init,rt.fx.step={};var re,se,ae,ce,le,ue=/^(?:toggle|show|hide)$/,de=/queueHooks$/;rt.Animation=rt.extend(q,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return l(n.elem,t,Et.exec(e),n),n}]},tweener:function(t,e){rt.isFunction(t)?(e=t,t=["*"]):t=t.match(xt);for(var n,i=0,o=t.length;i<o;i++)n=t[i],q.tweeners[n]=q.tweeners[n]||[],q.tweeners[n].unshift(e)},prefilters:[F],prefilter:function(t,e){e?q.prefilters.unshift(t):q.prefilters.push(t)}}),rt.speed=function(t,e,n){var i=t&&"object"==typeof t?rt.extend({},t):{complete:n||!n&&e||rt.isFunction(t)&&t,duration:t,easing:n&&e||e&&!rt.isFunction(e)&&e};return i.duration=rt.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in rt.fx.speeds?rt.fx.speeds[i.duration]:rt.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){rt.isFunction(i.old)&&i.old.call(this),i.queue&&rt.dequeue(this,i.queue)},i},rt.fn.extend({fadeTo:function(t,e,n,i){return this.filter(At).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(e,t,n,i){var o=rt.isEmptyObject(e),r=rt.speed(t,n,i),s=function(){var t=q(this,rt.extend({},e),r);(o||Ct.get(this,"finish"))&&t.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(o,t,r){var s=function(t){var e=t.stop;delete t.stop,e(r)};return"string"!=typeof o&&(r=t,t=o,o=undefined),t&&!1!==o&&this.queue(o||"fx",[]),this.each(function(){var t=!0,e=null!=o&&o+"queueHooks",n=rt.timers,i=Ct.get(this);if(e)i[e]&&i[e].stop&&s(i[e]);else for(e in i)i[e]&&i[e].stop&&de.test(e)&&s(i[e]);for(e=n.length;e--;)n[e].elem!==this||null!=o&&n[e].queue!==o||(n[e].anim.stop(r),t=!1,n.splice(e,1));!t&&r||rt.dequeue(this,o)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var t,e=Ct.get(this),n=e[s+"queue"],i=e[s+"queueHooks"],o=rt.timers,r=n?n.length:0;for(e.finish=!0,rt.queue(this,s,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===s&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<r;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),rt.each(["toggle","show","hide"],function(t,i){var o=rt.fn[i];rt.fn[i]=function(t,e,n){return null==t||"boolean"==typeof t?o.apply(this,arguments):this.animate(O(i,!0),t,e,n)}}),rt.each({slideDown:O("show"),slideUp:O("hide"),slideToggle:O("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,i){rt.fn[t]=function(t,e,n){return this.animate(i,t,e,n)}}),rt.timers=[],rt.fx.tick=function(){var t,e=0,n=rt.timers;for(re=rt.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||rt.fx.stop(),re=undefined},rt.fx.timer=function(t){rt.timers.push(t),t()?rt.fx.start():rt.timers.pop()},rt.fx.interval=13,rt.fx.start=function(){se||(se=k.setInterval(rt.fx.tick,rt.fx.interval))},rt.fx.stop=function(){k.clearInterval(se),se=null},rt.fx.speeds={slow:600,fast:200,_default:400},rt.fn.delay=function(i,t){return i=rt.fx&&rt.fx.speeds[i]||i,t=t||"fx",this.queue(t,function(t,e){var n=k.setTimeout(t,i);e.stop=function(){k.clearTimeout(n)}})},ae=G.createElement("input"),ce=G.createElement("select"),le=ce.appendChild(G.createElement("option")),
ae.type="checkbox",it.checkOn=""!==ae.value,it.optSelected=le.selected,ce.disabled=!0,it.optDisabled=!le.disabled,(ae=G.createElement("input")).value="t",ae.type="radio",it.radioValue="t"===ae.value;var pe,he=rt.expr.attrHandle;rt.fn.extend({attr:function(t,e){return _t(this,rt.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){rt.removeAttr(this,t)})}}),rt.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return"undefined"==typeof t.getAttribute?rt.prop(t,e,n):(1===r&&rt.isXMLDoc(t)||(e=e.toLowerCase(),o=rt.attrHooks[e]||(rt.expr.match.bool.test(e)?pe:undefined)),n!==undefined?null===n?void rt.removeAttr(t,e):o&&"set"in o&&(i=o.set(t,n,e))!==undefined?i:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(i=o.get(t,e))?i:null==(i=rt.find.attr(t,e))?undefined:i)},attrHooks:{type:{set:function(t,e){if(!it.radioValue&&"radio"===e&&rt.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i,o=0,r=e&&e.match(xt);if(r&&1===t.nodeType)for(;n=r[o++];)i=rt.propFix[n]||n,rt.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)}}),pe={set:function(t,e,n){return!1===e?rt.removeAttr(t,n):t.setAttribute(n,n),n}},rt.each(rt.expr.match.bool.source.match(/\w+/g),function(t,e){var r=he[e]||rt.find.attr;he[e]=function(t,e,n){var i,o;return n||(o=he[e],he[e]=i,i=null!=r(t,e,n)?e.toLowerCase():null,he[e]=o),i}});var fe=/^(?:input|select|textarea|button)$/i,me=/^(?:a|area)$/i;rt.fn.extend({prop:function(t,e){return _t(this,rt.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[rt.propFix[t]||t]})}}),rt.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&rt.isXMLDoc(t)||(e=rt.propFix[e]||e,o=rt.propHooks[e]),n!==undefined?o&&"set"in o&&(i=o.set(t,n,e))!==undefined?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=rt.find.attr(t,"tabindex");return e?parseInt(e,10):fe.test(t.nodeName)||me.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),it.optSelected||(rt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),rt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){rt.propFix[this.toLowerCase()]=this});var ge=/[\t\r\n\f]/g;rt.fn.extend({addClass:function(e){var t,n,i,o,r,s,a,c=0;if(rt.isFunction(e))return this.each(function(t){rt(this).addClass(e.call(this,t,W(this)))});if("string"==typeof e&&e)for(t=e.match(xt)||[];n=this[c++];)if(o=W(n),i=1===n.nodeType&&(" "+o+" ").replace(ge," ")){for(s=0;r=t[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(a=rt.trim(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,o,r,s,a,c=0;if(rt.isFunction(e))return this.each(function(t){rt(this).removeClass(e.call(this,t,W(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(xt)||[];n=this[c++];)if(o=W(n),i=1===n.nodeType&&(" "+o+" ").replace(ge," ")){for(s=0;r=t[s++];)for(;-1<i.indexOf(" "+r+" ");)i=i.replace(" "+r+" "," ");o!==(a=rt.trim(i))&&n.setAttribute("class",a)}return this},toggleClass:function(o,e){var r=typeof o;return"boolean"==typeof e&&"string"===r?e?this.addClass(o):this.removeClass(o):rt.isFunction(o)?this.each(function(t){rt(this).toggleClass(o.call(this,t,W(this),e),e)}):this.each(function(){var t,e,n,i;if("string"===r)for(e=0,n=rt(this),i=o.match(xt)||[];t=i[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else o!==undefined&&"boolean"!==r||((t=W(this))&&Ct.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===o?"":Ct.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+W(n)+" ").replace(ge," ").indexOf(e))return!0;return!1}});var ve=/\r/g,ye=/[\x20\t\r\n\f]+/g;rt.fn.extend({val:function(n){var i,t,o,e=this[0];return arguments.length?(o=rt.isFunction(n),this.each(function(t){var e;1===this.nodeType&&(null==(e=o?n.call(this,t,rt(this).val()):n)?e="":"number"==typeof e?e+="":rt.isArray(e)&&(e=rt.map(e,function(t){return null==t?"":t+""})),(i=rt.valHooks[this.type]||rt.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&i.set(this,e,"value")!==undefined||(this.value=e))})):e?(i=rt.valHooks[e.type]||rt.valHooks[e.nodeName.toLowerCase()])&&"get"in i&&(t=i.get(e,"value"))!==undefined?t:"string"==typeof(t=e.value)?t.replace(ve,""):null==t?"":t:void 0}}),rt.extend({valHooks:{option:{get:function(t){var e=rt.find.attr(t,"value");return null!=e?e:rt.trim(rt.text(t)).replace(ye," ")}},select:{get:function(t){for(var e,n,i=t.options,o=t.selectedIndex,r="select-one"===t.type||o<0,s=r?null:[],a=r?o+1:i.length,c=o<0?a:r?o:0;c<a;c++)if(((n=i[c]).selected||c===o)&&(it.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!rt.nodeName(n.parentNode,"optgroup"))){if(e=rt(n).val(),r)return e;s.push(e)}return s},set:function(t,e){for(var n,i,o=t.options,r=rt.makeArray(e),s=o.length;s--;)((i=o[s]).selected=-1<rt.inArray(rt.valHooks.option.get(i),r))&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),rt.each(["radio","checkbox"],function(){rt.valHooks[this]={set:function(t,e){if(rt.isArray(e))return t.checked=-1<rt.inArray(rt(t).val(),e)}},it.checkOn||(rt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var be=/^(?:focusinfocus|focusoutblur)$/;rt.extend(rt.event,{trigger:function(t,e,n,i){var o,r,s,a,c,l,u,d=[n||G],p=nt.call(t,"type")?t.type:t,h=nt.call(t,"namespace")?t.namespace.split("."):[];if(r=s=n=n||G,3!==n.nodeType&&8!==n.nodeType&&!be.test(p+rt.event.triggered)&&(-1<p.indexOf(".")&&(p=(h=p.split(".")).shift(),h.sort()),c=p.indexOf(":")<0&&"on"+p,(t=t[rt.expando]?t:new rt.Event(p,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=n),e=null==e?[t]:rt.makeArray(e,[t]),u=rt.event.special[p]||{},i||!u.trigger||!1!==u.trigger.apply(n,e))){if(!i&&!u.noBubble&&!rt.isWindow(n)){for(a=u.delegateType||p,be.test(a+p)||(r=r.parentNode);r;r=r.parentNode)d.push(r),s=r;s===(n.ownerDocument||G)&&d.push(s.defaultView||s.parentWindow||k)}for(o=0;(r=d[o++])&&!t.isPropagationStopped();)t.type=1<o?a:u.bindType||p,(l=(Ct.get(r,"events")||{})[t.type]&&Ct.get(r,"handle"))&&l.apply(r,e),(l=c&&r[c])&&l.apply&&kt(r)&&(t.result=l.apply(r,e),!1===t.result&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),e)||!kt(n)||c&&rt.isFunction(n[p])&&!rt.isWindow(n)&&((s=n[c])&&(n[c]=null),n[rt.event.triggered=p](),rt.event.triggered=undefined,s&&(n[c]=s)),t.result}},simulate:function(t,e,n){var i=rt.extend(new rt.Event,n,{type:t,isSimulated:!0});rt.event.trigger(i,null,e)}}),rt.fn.extend({trigger:function(t,e){return this.each(function(){rt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return rt.event.trigger(t,e,n,!0)}}),rt.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,n){rt.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),rt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),it.focusin="onfocusin"in k,it.focusin||rt.each({focus:"focusin",blur:"focusout"},function(n,i){var o=function(t){rt.event.simulate(i,t.target,rt.event.fix(t))};rt.event.special[i]={setup:function(){var t=this.ownerDocument||this,e=Ct.access(t,i);e||t.addEventListener(n,o,!0),Ct.access(t,i,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=Ct.access(t,i)-1;e?Ct.access(t,i,e):(t.removeEventListener(n,o,!0),Ct.remove(t,i))}}});var we=k.location,xe=rt.now(),_e=/\?/;rt.parseJSON=function(t){return JSON.parse(t+"")},rt.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new k.DOMParser).parseFromString(t,"text/xml")}catch(n){e=undefined}return e&&!e.getElementsByTagName("parsererror").length||rt.error("Invalid XML: "+t),e};var ke=/#.*$/,Ce=/([?&])_=[^&]*/,Te=/^(.*?):[ \t]*([^\r\n]*)$/gm,$e=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Se=/^(?:GET|HEAD)$/,je=/^\/\//,Ee={},De={},Ae="*/".concat("*"),Ie=G.createElement("a");Ie.href=we.href,rt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:$e.test(we.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":rt.parseJSON,"text xml":rt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?M(M(t,rt.ajaxSettings),e):M(rt.ajaxSettings,t)},ajaxPrefilter:H(Ee),ajaxTransport:H(De),ajax:function(t,e){function n(t,e,n,i){var o,r,s,a,c,l=e;2!==x&&(x=2,h&&k.clearTimeout(h),u=undefined,p=i||"",_.readyState=0<t?4:0,o=200<=t&&t<300||304===t,n&&(a=U(m,_,n)),a=z(m,a,_,o),o?(m.ifModified&&((c=_.getResponseHeader("Last-Modified"))&&(rt.lastModified[d]=c),(c=_.getResponseHeader("etag"))&&(rt.etag[d]=c)),204===t||"HEAD"===m.type?l="nocontent":304===t?l="notmodified":(l=a.state,r=a.data,o=!(s=a.error))):(s=l,!t&&l||(l="error",t<0&&(t=0))),_.status=t,_.statusText=(e||l)+"",o?y.resolveWith(g,[r,l,_]):y.rejectWith(g,[_,l,s]),_.statusCode(w),w=undefined,f&&v.trigger(o?"ajaxSuccess":"ajaxError",[_,m,o?r:s]),b.fireWith(g,[_,l]),f&&(v.trigger("ajaxComplete",[_,m]),--rt.active||rt.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=undefined),e=e||{};var u,d,p,i,h,o,f,r,m=rt.ajaxSetup({},e),g=m.context||m,v=m.context&&(g.nodeType||g.jquery)?rt(g):rt.event,y=rt.Deferred(),b=rt.Callbacks("once memory"),w=m.statusCode||{},s={},a={},x=0,c="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!i)for(i={};e=Te.exec(p);)i[e[1].toLowerCase()]=e[2];e=i[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?p:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=a[n]=a[n]||t,s[t]=e),this},overrideMimeType:function(t){return x||(m.mimeType=t),this},statusCode:function(t){var e;if(t)if(x<2)for(e in t)w[e]=[w[e],t[e]];else _.always(t[_.status]);return this},abort:function(t){var e=t||c;return u&&u.abort(e),n(0,e),this}};if(y.promise(_).complete=b.add,_.success=_.done,_.error=_.fail,m.url=((t||m.url||we.href)+"").replace(ke,"").replace(je,we.protocol+"//"),m.type=e.method||e.type||m.method||m.type,m.dataTypes=rt.trim(m.dataType||"*").toLowerCase().match(xt)||[""],null==m.crossDomain){o=G.createElement("a");try{o.href=m.url,o.href=o.href,m.crossDomain=Ie.protocol+"//"+Ie.host!=o.protocol+"//"+o.host}catch(l){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=rt.param(m.data,m.traditional)),B(Ee,m,e,_),2===x)return _;for(r in(f=rt.event&&m.global)&&0==rt.active++&&rt.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Se.test(m.type),d=m.url,m.hasContent||(m.data&&(d=m.url+=(_e.test(d)?"&":"?")+m.data,delete m.data),!1===m.cache&&(m.url=Ce.test(d)?d.replace(Ce,"$1_="+xe++):d+(_e.test(d)?"&":"?")+"_="+xe++)),m.ifModified&&(rt.lastModified[d]&&_.setRequestHeader("If-Modified-Since",rt.lastModified[d]),rt.etag[d]&&_.setRequestHeader("If-None-Match",rt.etag[d])),(m.data&&m.hasContent&&!1!==m.contentType||e.contentType)&&_.setRequestHeader("Content-Type",m.contentType),_.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Ae+"; q=0.01":""):m.accepts["*"]),m.headers)_.setRequestHeader(r,m.headers[r]);if(m.beforeSend&&(!1===m.beforeSend.call(g,_,m)||2===x))return _.abort();for(r in c="abort",{success:1,error:1,complete:1})_[r](m[r]);if(u=B(De,m,e,_)){if(_.readyState=1,f&&v.trigger("ajaxSend",[_,m]),2===x)return _;m.async&&0<m.timeout&&(h=k.setTimeout(function(){_.abort("timeout")},m.timeout));try{x=1,u.send(s,n)}catch(l){if(!(x<2))throw l;n(-1,l)}}else n(-1,"No Transport");return _},getJSON:function(t,e,n){return rt.get(t,e,n,"json")},getScript:function(t,e){return rt.get(t,undefined,e,"script")}}),rt.each(["get","post"],function(t,o){rt[o]=function(t,e,n,i){return rt.isFunction(e)&&(i=i||n,n=e,e=undefined),rt.ajax(rt.extend({url:t,type:o,dataType:i,data:e,success:n},rt.isPlainObject(t)&&t))}}),rt._evalUrl=function(t){return rt.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},rt.fn.extend({wrapAll:function(e){var t;return rt.isFunction(e)?this.each(function(t){rt(this).wrapAll(e.call(this,t))}):(this[0]&&(t=rt(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(n){return rt.isFunction(n)?this.each(function(t){rt(this).wrapInner(n.call(this,t))}):this.each(function(){var t=rt(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=rt.isFunction(e);return this.each(function(t){rt(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){rt.nodeName(this,"body")||rt(this).replaceWith(this.childNodes)}).end()}}),rt.expr.filters.hidden=function(t){return!rt.expr.filters.visible(t)},rt.expr.filters.visible=function(t){return 0<t.offsetWidth||0<t.offsetHeight||0<t.getClientRects().length};var Ne=/%20/g,Pe=/\[\]$/,Oe=/\r?\n/g,Re=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;rt.param=function(t,e){var n,i=[],o=function(t,e){e=rt.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(e===undefined&&(e=rt.ajaxSettings&&rt.ajaxSettings.traditional),rt.isArray(t)||t.jquery&&!rt.isPlainObject(t))rt.each(t,function(){o(this.name,this.value)});else for(n in t)V(n,t[n],e,o);return i.join("&").replace(Ne,"+")},rt.fn.extend({serialize:function(){return rt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=rt.prop(this,"elements");return t?rt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!rt(this).is(":disabled")&&Fe.test(this.nodeName)&&!Re.test(t)&&(this.checked||!It.test(t))}).map(function(t,e){var n=rt(this).val();return null==n?null:rt.isArray(n)?rt.map(n,function(t){return{name:e.name,value:t.replace(Oe,"\r\n")}}):{name:e.name,value:n.replace(Oe,"\r\n")}}).get()}}),rt.ajaxSettings.xhr=function(){try{return new k.XMLHttpRequest}catch(t){}};var Le={0:200,1223:204},qe=rt.ajaxSettings.xhr();it.cors=!!qe&&"withCredentials"in qe,it.ajax=qe=!!qe,rt.ajaxTransport(function(r){var s,a;if(it.cors||qe&&!r.crossDomain)return{send:function(t,e){var n,i=r.xhr();if(i.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(n in r.xhrFields)i[n]=r.xhrFields[n];for(n in r.mimeType&&i.overrideMimeType&&i.overrideMimeType(r.mimeType),r.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);s=function(t){return function(){s&&(s=a=i.onload=i.onerror=i.onabort=i.onreadystatechange=null,"abort"===t?i.abort():"error"===t?"number"!=typeof i.status?e(0,"error"):e(i.status,i.statusText):e(Le[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=s(),a=i.onerror=s("error"),i.onabort!==undefined?i.onabort=a:i.onreadystatechange=function(){4===i.readyState&&k.setTimeout(function(){s&&a()})},s=s("abort");try{i.send(r.hasContent&&r.data||null)}catch(o){if(s)throw o}},abort:function(){s&&s()}}}),rt.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 rt.globalEval(t),t}}}),rt.ajaxPrefilter("script",function(t){t.cache===undefined&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),rt.ajaxTransport("script",function(n){var i,o;if(n.crossDomain)return{send:function(t,e){i=rt("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(t){i.remove(),o=null,t&&e("error"===t.type?404:200,t.type)}),G.head.appendChild(i[0])},abort:function(){o&&o()}}});var We=[],He=/(=)\?(?=&|$)|\?\?/;rt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=We.pop()||rt.expando+"_"+xe++;return this[t]=!0,t}}),rt.ajaxPrefilter("json jsonp",function(t,e,n){var i,o,r,s=!1!==t.jsonp&&(He.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&He.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=rt.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(He,"$1"+i):!1!==t.jsonp&&(t.url+=(_e.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return r||rt.error(i+" was not called"),r[0]},t.dataTypes[0]="json",o=k[i],k[i]=function(){r=arguments},n.always(function(){o===undefined?rt(k).removeProp(i):k[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,We.push(i)),r&&rt.isFunction(o)&&o(r[0]),r=o=undefined}),"script"}),rt.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||G;var i=ft.exec(t),o=!n&&[];return i?[e.createElement(i[1])]:(i=v([t],e,o),o&&o.length&&rt(o).remove(),rt.merge([],i.childNodes))};var Be=rt.fn.load;rt.fn.load=function(t,e,n){if("string"!=typeof t&&Be)return Be.apply(this,arguments);var i,o,r,s=this,a=t.indexOf(" ");return-1<a&&(i=rt.trim(t.slice(a)),t=t.slice(0,a)),rt.isFunction(e)?(n=e,e=undefined):e&&"object"==typeof e&&(o="POST"),0<s.length&&rt.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){r=arguments,s.html(i?rt("<div>").append(rt.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},rt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){rt.fn[e]=function(t){return this.on(e,t)}}),rt.expr.filters.animated=function(e){return rt.grep(rt.timers,function(t){return e===t.elem}).length},rt.offset={setOffset:function(t,e,n){var i,o,r,s,a,c,l=rt.css(t,"position"),u=rt(t),d={};"static"===l&&(t.style.position="relative"),a=u.offset(),r=rt.css(t,"top"),c=rt.css(t,"left"),("absolute"===l||"fixed"===l)&&-1<(r+c).indexOf("auto")?(s=(i=u.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(c)||0),rt.isFunction(e)&&(e=e.call(t,n,rt.extend({},a))),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+o),"using"in e?e.using.call(t,d):u.css(d)}},rt.fn.extend({offset:function(e){if(arguments.length)return e===undefined?this:this.each(function(t){rt.offset.setOffset(this,e,t)});var t,n,i=this[0],o={top:0,left:0},r=i&&i.ownerDocument;return r?(t=r.documentElement,rt.contains(t,i)?(o=i.getBoundingClientRect(),n=X(r),{top:o.top+n.pageYOffset-t.clientTop,left:o.left+n.pageXOffset-t.clientLeft}):o):void 0},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===rt.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),rt.nodeName(t[0],"html")||(i=t.offset()),i.top+=rt.css(t[0],"borderTopWidth",!0),i.left+=rt.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-rt.css(n,"marginTop",!0),left:e.left-i.left-rt.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===rt.css(t,"position");)t=t.offsetParent;return t||Zt})}}),rt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,o){var r="pageYOffset"===o;rt.fn[e]=function(t){return _t(this,function(t,e,n){var i=X(t);if(n===undefined)return i?i[o]:t[e];i?i.scrollTo(r?i.pageXOffset:n,r?n:i.pageYOffset):t[e]=n},e,t,arguments.length)}}),rt.each(["top","left"],function(t,n){rt.cssHooks[n]=S(it.pixelPosition,function(t,e){if(e)return e=$(t,n),Kt.test(e)?rt(t).position()[n]+"px":e})}),rt.each({Height:"height",Width:"width"},function(r,s){rt.each({padding:"inner"+r,content:s,"":"outer"+r},function(i,t){rt.fn[t]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),o=i||(!0===t||!0===e?"margin":"border");return _t(this,function(t,e,n){var i;return rt.isWindow(t)?t.document.documentElement["client"+r]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+r],i["scroll"+r],t.body["offset"+r],i["offset"+r],i["client"+r])):n===undefined?rt.css(t,e,o):rt.style(t,e,n,o)},s,n?t:undefined,n,null)}})}),rt.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,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),rt.fn.andSelf=rt.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return rt});var Me=k.jQuery,Ue=k.$;return rt.noConflict=function(t){return k.$===rt&&(k.$=Ue),t&&k.jQuery===rt&&(k.jQuery=Me),rt},t||(k.jQuery=k.$=rt),rt}),function(u,c){"use strict";var l;u.rails!==c&&u.error("jquery-ujs has already been loaded!");var t=u(document);u.rails=l={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"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",enableSelector:"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",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return u("meta[name=csrf-token]").attr("content")},csrfParam:function(){return u("meta[name=csrf-param]").attr("content")},CSRFProtection:function(t){var e=l.csrfToken();e&&t.setRequestHeader("X-CSRF-Token",e)},refreshCSRFTokens:function(){u('form input[name="'+l.csrfParam()+'"]').val(l.csrfToken())},fire:function(t,e,n){var i=u.Event(e);return t.trigger(i,n),!1!==i.result},confirm:function(t){return confirm(t)},ajax:function(t){return u.ajax(t)},href:function(t){return t[0].href},isRemote:function(t){return t.data("remote")!==c&&!1!==t.data("remote")},handleRemote:function(i){var t,e,n,o,r,s;if(l.fire(i,"ajax:before")){if(o=i.data("with-credentials")||null,r=i.data("type")||u.ajaxSettings&&u.ajaxSettings.dataType,i.is("form")){t=i.data("ujs:submit-button-formmethod")||i.attr("method"),e=i.data("ujs:submit-button-formaction")||i.attr("action"),n=u(i[0]).serializeArray();var a=i.data("ujs:submit-button");a&&(n.push(a),i.data("ujs:submit-button",null)),i.data("ujs:submit-button-formmethod",null),i.data("ujs:submit-button-formaction",null)}else i.is(l.inputChangeSelector)?(t=i.data("method"),e=i.data("url"),n=i.serialize(),i.data("params")&&(n=n+"&"+i.data("params"))):i.is(l.buttonClickSelector)?(t=i.data("method")||"get",e=i.data("url"),n=i.serialize(),i.data("params")&&(n=n+"&"+i.data("params"))):(t=i.data("method"),e=l.href(i),n=i.data("params")||null);return s={type:t||"GET",data:n,dataType:r,beforeSend:function(t,e){if(e.dataType===c&&t.setRequestHeader("accept","*/*;q=0.5, "+e.accepts.script),!l.fire(i,"ajax:beforeSend",[t,e]))return!1;i.trigger("ajax:send",t)},success:function(t,e,n){i.trigger("ajax:success",[t,e,n])},complete:function(t,e){i.trigger("ajax:complete",[t,e])},error:function(t,e,n){i.trigger("ajax:error",[t,e,n])},crossDomain:l.isCrossDomain(e)},o&&(s.xhrFields={withCredentials:o}),e&&(s.url=e),l.ajax(s)}return!1},isCrossDomain:function(t){var e=document.createElement("a");e.href=location.href;var n=document.createElement("a");try{return n.href=t,n.href=n.href,!((!n.protocol||":"===n.protocol)&&!n.host||e.protocol+"//"+e.host==n.protocol+"//"+n.host)}catch(i){return!0}},handleMethod:function(t){var e=l.href(t),n=t.data("method"),i=t.attr("target"),o=l.csrfToken(),r=l.csrfParam(),s=u('<form method="post" action="'+e+'"></form>'),a='<input name="_method" value="'+n+'" type="hidden" />';r===c||o===c||l.isCrossDomain(e)||(a+='<input name="'+r+'" value="'+o+'" type="hidden" />'),i&&s.attr("target",i),s.hide().append(a).appendTo("body"),s.submit()},formElements:function(t,e){return t.is("form")?u(t[0].elements).filter(e):t.find(e)},disableFormElements:function(t){l.formElements(t,l.disableSelector).each(function(){l.disableFormElement(u(this))})},disableFormElement:function(t){var e,n;e=t.is("button")?"html":"val",(n=t.data("disable-with"))!==c&&(t.data("ujs:enable-with",t[e]()),t[e](n)),t.prop("disabled",!0),t.data("ujs:disabled",!0)},enableFormElements:function(t){l.formElements(t,l.enableSelector).each(function(){l.enableFormElement(u(this))})},enableFormElement:function(t){var e=t.is("button")?"html":"val";t.data("ujs:enable-with")!==c&&(t[e](t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.prop("disabled",!1),t.removeData("ujs:disabled")},allowAction:function(t){var e,n=t.data("confirm"),i=!1;if(!n)return!0;if(l.fire(t,"confirm")){try{i=l.confirm(n)}catch(o){(console.error||console.log).call(console,o.stack||o)}e=l.fire(t,"confirm:complete",[i])}return i&&e},blankInputs:function(t,e,n){var i,o,r,s=u(),a=e||"input,textarea",c=t.find(a),l={};return c.each(function(){(i=u(this)).is("input[type=radio]")?(r=i.attr("name"),l[r]||(0===t.find('input[type=radio]:checked[name="'+r+'"]').length&&(o=t.find('input[type=radio][name="'+r+'"]'),s=s.add(o)),l[r]=r)):(i.is("input[type=checkbox],input[type=radio]")?i.is(":checked"):!!i.val())===n&&(s=s.add(i))}),!!s.length&&s},nonBlankInputs:function(t,e){return l.blankInputs(t,e,!0)},stopEverything:function(t){return u(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},disableElement:function(t){var e=t.data("disable-with");e!==c&&(t.data("ujs:enable-with",t.html()),t.html(e)),t.bind("click.railsDisable",function(t){return l.stopEverything(t)}),t.data("ujs:disabled",!0)},enableElement:function(t){t.data("ujs:enable-with")!==c&&(t.html(t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.unbind("click.railsDisable"),t.removeData("ujs:disabled")}},l.fire(t,"rails:attachBindings")&&(u.ajaxPrefilter(function(t,e,n){t.crossDomain||l.CSRFProtection(n)}),u(window).on("pageshow.rails",function(){u(u.rails.enableSelector).each(function(){var t=u(this);t.data("ujs:disabled")&&u.rails.enableFormElement(t)}),u(u.rails.linkDisableSelector).each(function(){var t=u(this);t.data("ujs:disabled")&&u.rails.enableElement(t)})}),t.on("ajax:complete",l.linkDisableSelector,function(){l.enableElement(u(this))}),t.on("ajax:complete",l.buttonDisableSelector,function(){l.enableFormElement(u(this))}),t.on("click.rails",l.linkClickSelector,function(t){var e=u(this),n=e.data("method"),i=e.data("params"),o=t.metaKey||t.ctrlKey;if(!l.allowAction(e))return l.stopEverything(t);if(!o&&e.is(l.linkDisableSelector)&&l.disableElement(e),l.isRemote(e)){if(o&&(!n||"GET"===n)&&!i)return!0;var r=l.handleRemote(e);return!1===r?l.enableElement(e):r.fail(function(){l.enableElement(e)}),!1}return n?(l.handleMethod(e),!1):void 0}),t.on("click.rails",l.buttonClickSelector,function(t){var e=u(this);if(!l.allowAction(e)||!l.isRemote(e))return l.stopEverything(t);e.is(l.buttonDisableSelector)&&l.disableFormElement(e);var n=l.handleRemote(e);return!1===n?l.enableFormElement(e):n.fail(function(){l.enableFormElement(e)}),!1}),t.on("change.rails",l.inputChangeSelector,function(t){var e=u(this);return l.allowAction(e)&&l.isRemote(e)?(l.handleRemote(e),!1):l.stopEverything(t)}),t.on("submit.rails",l.formSubmitSelector,function(t){var e,n,i=u(this),o=l.isRemote(i);if(!l.allowAction(i))return l.stopEverything(t);if(i.attr("novalidate")===c)if(i.data("ujs:formnovalidate-button")===c){if((e=l.blankInputs(i,l.requiredInputSelector,!1))&&l.fire(i,"ajax:aborted:required",[e]))return l.stopEverything(t)}else i.data("ujs:formnovalidate-button",c);if(o){if(n=l.nonBlankInputs(i,l.fileInputSelector)){setTimeout(function(){l.disableFormElements(i)},13);var r=l.fire(i,"ajax:aborted:file",[n]);return r||setTimeout(function(){l.enableFormElements(i)},13),r}return l.handleRemote(i),!1}setTimeout(function(){l.disableFormElements(i)},13)}),t.on("click.rails",l.formInputClickSelector,function(t){var e=u(this);if(!l.allowAction(e))return l.stopEverything(t);var n=e.attr("name"),i=n?{name:n,value:e.val()}:null,o=e.closest("form");0===o.length&&(o=u("#"+e.attr("form"))),o.data("ujs:submit-button",i),o.data("ujs:formnovalidate-button",e.attr("formnovalidate")),o.data("ujs:submit-button-formaction",e.attr("formaction")),o.data("ujs:submit-button-formmethod",e.attr("formmethod"))}),t.on("ajax:send.rails",l.formSubmitSelector,function(t){this===t.target&&l.disableFormElements(u(this))}),t.on("ajax:complete.rails",l.formSubmitSelector,function(t){this===t.target&&l.enableFormElements(u(this))}),u(function(){l.refreshCSRFTokens()}))}(jQuery),function(i){"use strict";function t(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(t.style[n]!==undefined)return{end:e[n]};return!1}i.fn.emulateTransitionEnd=function(t){var e=!1,n=this;return i(this).one("bsTransitionEnd",function(){e=!0}),setTimeout(function(){e||i(n).trigger(i.support.transition.end)},t),this},i(function(){i.support.transition=t(),i.support.transition&&(i.event.special.bsTransitionEnd={bindType:i.support.transition.end,delegateType:i.support.transition.end,handle:function(t){if(i(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(r){"use strict";function t(n){return this.each(function(){var t=r(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new s(this)),"string"==typeof n&&e[n].call(t)})}var e='[data-dismiss="alert"]',s=function(t){r(t).on("click",e,this.close)};s.VERSION="3.3.7",s.TRANSITION_DURATION=150,s.prototype.close=function(t){function e(){o.detach().trigger("closed.bs.alert").remove()}var n=r(this),i=n.attr("data-target");i||(i=(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""));var o=r("#"===i?[]:i);t&&t.preventDefault(),o.length||(o=n.closest(".alert")),o.trigger(t=r.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),r.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",e).emulateTransitionEnd(s.TRANSITION_DURATION):e())};var n=r.fn.alert;r.fn.alert=t,r.fn.alert.Constructor=s,r.fn.alert.noConflict=function(){return r.fn.alert=n,this},r(document).on("click.bs.alert.data-api",e,s.prototype.close)}(jQuery),function(r){"use strict";function n(i){return this.each(function(){var t=r(this),e=t.data("bs.button"),n="object"==typeof i&&i;e||t.data("bs.button",e=new o(this,n)),"toggle"==i?e.toggle():i&&e.setState(i)})}var o=function(t,e){this.$element=r(t),this.options=r.extend({},o.DEFAULTS,e),this.isLoading=!1};o.VERSION="3.3.7",o.DEFAULTS={loadingText:"loading..."},o.prototype.setState=function(t){var e="disabled",n=this.$element,i=n.is("input")?"val":"html",o=n.data();t+="Text",null==o.resetText&&n.data("resetText",n[i]()),setTimeout(r.proxy(function(){n[i](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},o.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop(
"type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var t=r.fn.button;r.fn.button=n,r.fn.button.Constructor=o,r.fn.button.noConflict=function(){return r.fn.button=t,this},r(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=r(t.target).closest(".btn");n.call(e,"toggle"),r(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),e.is("input,button")?e.trigger("focus"):e.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){r(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(d){"use strict";function s(o){return this.each(function(){var t=d(this),e=t.data("bs.carousel"),n=d.extend({},p.DEFAULTS,t.data(),"object"==typeof o&&o),i="string"==typeof o?o:n.slide;e||t.data("bs.carousel",e=new p(this,n)),"number"==typeof o?e.to(o):i?e[i]():n.interval&&e.pause().cycle()})}var p=function(t,e){this.$element=d(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",d.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",d.proxy(this.pause,this)).on("mouseleave.bs.carousel",d.proxy(this.cycle,this))};p.VERSION="3.3.7",p.TRANSITION_DURATION=600,p.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},p.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},p.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(d.proxy(this.next,this),this.options.interval)),this},p.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},p.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var i=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(i)},p.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(n<t?"next":"prev",this.$items.eq(t))},p.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&d.support.transition&&(this.$element.trigger(d.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},p.prototype.next=function(){if(!this.sliding)return this.slide("next")},p.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},p.prototype.slide=function(t,e){var n=this.$element.find(".item.active"),i=e||this.getItemForDirection(t,n),o=this.interval,r="next"==t?"left":"right",s=this;if(i.hasClass("active"))return this.sliding=!1;var a=i[0],c=d.Event("slide.bs.carousel",{relatedTarget:a,direction:r});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=d(this.$indicators.children()[this.getItemIndex(i)]);l&&l.addClass("active")}var u=d.Event("slid.bs.carousel",{relatedTarget:a,direction:r});return d.support.transition&&this.$element.hasClass("slide")?(i.addClass(t),i[0].offsetWidth,n.addClass(r),i.addClass(r),n.one("bsTransitionEnd",function(){i.removeClass([t,r].join(" ")).addClass("active"),n.removeClass(["active",r].join(" ")),s.sliding=!1,setTimeout(function(){s.$element.trigger(u)},0)}).emulateTransitionEnd(p.TRANSITION_DURATION)):(n.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger(u)),o&&this.cycle(),this}};var t=d.fn.carousel;d.fn.carousel=s,d.fn.carousel.Constructor=p,d.fn.carousel.noConflict=function(){return d.fn.carousel=t,this};var e=function(t){var e,n=d(this),i=d(n.attr("data-target")||(e=n.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""));if(i.hasClass("carousel")){var o=d.extend({},i.data(),n.data()),r=n.attr("data-slide-to");r&&(o.interval=!1),s.call(i,o),r&&i.data("bs.carousel").to(r),t.preventDefault()}};d(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),d(window).on("load",function(){d('[data-ride="carousel"]').each(function(){var t=d(this);s.call(t,t.data())})})}(jQuery),function(s){"use strict";function o(t){var e,n=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return s(n)}function a(i){return this.each(function(){var t=s(this),e=t.data("bs.collapse"),n=s.extend({},c.DEFAULTS,t.data(),"object"==typeof i&&i);!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||t.data("bs.collapse",e=new c(this,n)),"string"==typeof i&&e[i]()})}var c=function(t,e){this.$element=s(t),this.options=s.extend({},c.DEFAULTS,e),this.$trigger=s('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};c.VERSION="3.3.7",c.TRANSITION_DURATION=350,c.DEFAULTS={toggle:!0},c.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},c.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(t=e.data("bs.collapse"))&&t.transitioning)){var n=s.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){e&&e.length&&(a.call(e,"hide"),t||e.data("bs.collapse",null));var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!s.support.transition)return o.call(this);var r=s.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",s.proxy(o,this)).emulateTransitionEnd(c.TRANSITION_DURATION)[i](this.$element[0][r])}}}},c.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=s.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!s.support.transition)return n.call(this);this.$element[e](0).one("bsTransitionEnd",s.proxy(n,this)).emulateTransitionEnd(c.TRANSITION_DURATION)}}},c.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},c.prototype.getParent=function(){return s(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(s.proxy(function(t,e){var n=s(e);this.addAriaAndCollapsedClass(o(n),n)},this)).end()},c.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var t=s.fn.collapse;s.fn.collapse=a,s.fn.collapse.Constructor=c,s.fn.collapse.noConflict=function(){return s.fn.collapse=t,this},s(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=s(this);e.attr("data-target")||t.preventDefault();var n=o(e),i=n.data("bs.collapse")?"toggle":e.data();a.call(n,i)})}(jQuery),function(a){"use strict";function c(t){var e=t.attr("data-target");e||(e=(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""));var n=e&&a(e);return n&&n.length?n:t.parent()}function r(i){i&&3===i.which||(a(e).remove(),a(l).each(function(){var t=a(this),e=c(t),n={relatedTarget:this};e.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&a.contains(e[0],i.target)||(e.trigger(i=a.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",n)))))}))}function t(n){return this.each(function(){var t=a(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new i(this)),"string"==typeof n&&e[n].call(t)})}var e=".dropdown-backdrop",l='[data-toggle="dropdown"]',i=function(t){a(t).on("click.bs.dropdown",this.toggle)};i.VERSION="3.3.7",i.prototype.toggle=function(t){var e=a(this);if(!e.is(".disabled, :disabled")){var n=c(e),i=n.hasClass("open");if(r(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",r);var o={relatedTarget:this};if(n.trigger(t=a.Event("show.bs.dropdown",o)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(a.Event("shown.bs.dropdown",o))}return!1}},i.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=a(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=c(e),i=n.hasClass("open");if(!i&&27!=t.which||i&&27==t.which)return 27==t.which&&n.find(l).trigger("focus"),e.trigger("click");var o=" li:not(.disabled):visible a",r=n.find(".dropdown-menu"+o);if(r.length){var s=r.index(t.target);38==t.which&&0<s&&s--,40==t.which&&s<r.length-1&&s++,~s||(s=0),r.eq(s).trigger("focus")}}}};var n=a.fn.dropdown;a.fn.dropdown=t,a.fn.dropdown.Constructor=i,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=n,this},a(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",l,i.prototype.toggle).on("keydown.bs.dropdown.data-api",l,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(r){"use strict";function s(i,o){return this.each(function(){var t=r(this),e=t.data("bs.modal"),n=r.extend({},a.DEFAULTS,t.data(),"object"==typeof i&&i);e||t.data("bs.modal",e=new a(this,n)),"string"==typeof i?e[i](o):n.show&&e.show(o)})}var a=function(t,e){this.options=e,this.$body=r(document.body),this.$element=r(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,r.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};a.VERSION="3.3.7",a.TRANSITION_DURATION=300,a.BACKDROP_TRANSITION_DURATION=150,a.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},a.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},a.prototype.show=function(n){var i=this,t=r.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',r.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){r(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=r.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),t&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var e=r.Event("shown.bs.modal",{relatedTarget:n});t?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(a.TRANSITION_DURATION):i.$element.trigger("focus").trigger(e)}))},a.prototype.hide=function(t){t&&t.preventDefault(),t=r.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),r(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),r.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",r.proxy(this.hideModal,this)).emulateTransitionEnd(a.TRANSITION_DURATION):this.hideModal())},a.prototype.enforceFocus=function(){r(document).off("focusin.bs.modal").on("focusin.bs.modal",r.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},a.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",r.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},a.prototype.resize=function(){this.isShown?r(window).on("resize.bs.modal",r.proxy(this.handleUpdate,this)):r(window).off("resize.bs.modal")},a.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},a.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},a.prototype.backdrop=function(t){var e=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=r.support.transition&&n;if(this.$backdrop=r(document.createElement("div")).addClass("modal-backdrop "+n).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",r.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){e.removeBackdrop(),t&&t()};r.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):o()}else t&&t()},a.prototype.handleUpdate=function(){this.adjustDialog()},a.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},a.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},a.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},a.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=r.fn.modal;r.fn.modal=s,r.fn.modal.Constructor=a,r.fn.modal.noConflict=function(){return r.fn.modal=t,this},r(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=r(this),n=e.attr("href"),i=r(e.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),o=i.data("bs.modal")?"toggle":r.extend({remote:!/#/.test(n)&&n},i.data(),e.data());e.is("a")&&t.preventDefault(),i.one("show.bs.modal",function(t){t.isDefaultPrevented()||i.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),s.call(i,o,this)})}(jQuery),function(a){"use strict";function e(n){return this.each(function(){var t=a(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new s(this)),"string"==typeof n&&e[n]()})}var s=function(t){this.element=a(t)};s.VERSION="3.3.7",s.TRANSITION_DURATION=150,s.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),n=t.data("target");if(n||(n=(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var i=e.find(".active:last a"),o=a.Event("hide.bs.tab",{relatedTarget:t[0]}),r=a.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(o),t.trigger(r),!r.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=a(n);this.activate(t.closest("li"),e),this.activate(s,s.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},s.prototype.activate=function(t,e,n){function i(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}var o=e.find("> .active"),r=n&&a.support.transition&&(o.length&&o.hasClass("fade")||!!e.find("> .fade").length);o.length&&r?o.one("bsTransitionEnd",i).emulateTransitionEnd(s.TRANSITION_DURATION):i(),o.removeClass("in")};var t=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=s,a.fn.tab.noConflict=function(){return a.fn.tab=t,this};var n=function(t){t.preventDefault(),e.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(c){"use strict";function n(i){return this.each(function(){var t=c(this),e=t.data("bs.affix"),n="object"==typeof i&&i;e||t.data("bs.affix",e=new l(this,n)),"string"==typeof i&&e[i]()})}var l=function(t,e){this.options=c.extend({},l.DEFAULTS,e),this.$target=c(this.options.target).on("scroll.bs.affix.data-api",c.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",c.proxy(this.checkPositionWithEventLoop,this)),this.$element=c(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};l.VERSION="3.3.7",l.RESET="affix affix-top affix-bottom",l.DEFAULTS={offset:0,target:window},l.prototype.getState=function(t,e,n,i){var o=this.$target.scrollTop(),r=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return o<n&&"top";if("bottom"==this.affixed)return null!=n?!(o+this.unpin<=r.top)&&"bottom":!(o+s<=t-i)&&"bottom";var a=null==this.affixed,c=a?o:r.top;return null!=n&&o<=n?"top":null!=i&&t-i<=c+(a?s:e)&&"bottom"},l.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(l.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},l.prototype.checkPositionWithEventLoop=function(){setTimeout(c.proxy(this.checkPosition,this),1)},l.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,n=e.top,i=e.bottom,o=Math.max(c(document).height(),c(document.body).height());"object"!=typeof e&&(i=n=e),"function"==typeof n&&(n=e.top(this.$element)),"function"==typeof i&&(i=e.bottom(this.$element));var r=this.getState(o,t,n,i);if(this.affixed!=r){null!=this.unpin&&this.$element.css("top","");var s="affix"+(r?"-"+r:""),a=c.Event(s+".bs.affix");if(this.$element.trigger(a),a.isDefaultPrevented())return;this.affixed=r,this.unpin="bottom"==r?this.getPinnedOffset():null,this.$element.removeClass(l.RESET).addClass(s).trigger(s.replace("affix","affixed")+".bs.affix")}"bottom"==r&&this.$element.offset({top:o-t-i})}};var t=c.fn.affix;c.fn.affix=n,c.fn.affix.Constructor=l,c.fn.affix.noConflict=function(){return c.fn.affix=t,this},c(window).on("load",function(){c('[data-spy="affix"]').each(function(){var t=c(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),n.call(t,e)})})}(jQuery),function(r){"use strict";function o(t,e){this.$body=r(document.body),this.$scrollElement=r(t).is(document.body)?r(window):r(t),this.options=r.extend({},o.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",r.proxy(this.process,this)),this.refresh(),this.process()}function e(i){return this.each(function(){var t=r(this),e=t.data("bs.scrollspy"),n="object"==typeof i&&i;e||t.data("bs.scrollspy",e=new o(this,n)),"string"==typeof i&&e[i]()})}o.VERSION="3.3.7",o.DEFAULTS={offset:10},o.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},o.prototype.refresh=function(){var t=this,i="offset",o=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),r.isWindow(this.$scrollElement[0])||(i="position",o=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=r(this),e=t.data("target")||t.attr("href"),n=/^#./.test(e)&&r(e);return n&&n.length&&n.is(":visible")&&[[n[i]().top+o,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},o.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,r=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=e)return s!=(t=r[r.length-1])&&this.activate(t);if(s&&e<o[0])return this.activeTarget=null,this.clear();for(t=o.length;t--;)s!=r[t]&&e>=o[t]&&(o[t+1]===undefined||e<o[t+1])&&this.activate(r[t])},o.prototype.activate=function(t){this.activeTarget=t,this.clear();var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=r(e).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},o.prototype.clear=function(){r(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=r.fn.scrollspy;r.fn.scrollspy=e,r.fn.scrollspy.Constructor=o,r.fn.scrollspy.noConflict=function(){return r.fn.scrollspy=t,this},r(window).on("load.bs.scrollspy.data-api",function(){r('[data-spy="scroll"]').each(function(){var t=r(this);e.call(t,t.data())})})}(jQuery),function(m){"use strict";function t(i){return this.each(function(){var t=m(this),e=t.data("bs.tooltip"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.tooltip",e=new g(this,n)),"string"==typeof i&&e[i]())})}var g=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};g.VERSION="3.3.7",g.TRANSITION_DURATION=150,g.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},g.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=m(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&m(m.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var r=i[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=r){var s="hover"==r?"mouseenter":"focusin",a="hover"==r?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},g.prototype.getDefaults=function(){return g.DEFAULTS},g.prototype.getOptions=function(t){return(t=m.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},g.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&m.each(this._options,function(t,e){i[t]!=e&&(n[t]=e)}),n},g.prototype.enter=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},g.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},g.prototype.leave=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},g.prototype.show=function(){var t=m.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=m.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var n=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,a=s.test(r);a&&(r=r.replace(s,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),l=i[0].offsetWidth,u=i[0].offsetHeight;if(a){var d=r,p=this.getPosition(this.$viewport);r="bottom"==r&&c.bottom+u>p.bottom?"top":"top"==r&&c.top-u<p.top?"bottom":"right"==r&&c.right+l>p.width?"left":"left"==r&&c.left-l<p.left?"right":r,i.removeClass(d).addClass(r)}var h=this.getCalculatedOffset(r,c,l,u);this.applyPlacement(h,r);var f=function(){var t=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==t&&n.leave(n)};m.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",f).emulateTransitionEnd(g.TRANSITION_DURATION):f()}},g.prototype.applyPlacement=function(t,e){var n=this.tip(),i=n[0].offsetWidth,o=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),s=parseInt(n.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(s)&&(s=0),t.top+=r,t.left+=s,m.offset.setOffset(n[0],m.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),n.addClass("in");var a=n[0].offsetWidth,c=n[0].offsetHeight;"top"==e&&c!=o&&(t.top=t.top+o-c);var l=this.getViewportAdjustedDelta(e,t,a,c);l.left?t.left+=l.left:t.top+=l.top;var u=/top|bottom/.test(e),d=u?2*l.left-i+a:2*l.top-o+c,p=u?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(d,n[0][p],u)},g.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},g.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},g.prototype.hide=function(t){function e(){"in"!=n.hoverState&&i.detach(),n.$element&&n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),t&&t()}var n=this,i=m(this.$tip),o=m.Event("hide.bs."+this.type);if(this.$element.trigger(o),!o.isDefaultPrevented())return i.removeClass("in"),m.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",e).emulateTransitionEnd(g.TRANSITION_DURATION):e(),this.hoverState=null,this},g.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},g.prototype.hasContent=function(){return this.getTitle()},g.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],n="BODY"==e.tagName,i=e.getBoundingClientRect();null==i.width&&(i=m.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var o=window.SVGElement&&e instanceof window.SVGElement,r=n?{top:0,left:0}:o?null:t.offset(),s={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},a=n?{width:m(window).width(),height:m(window).height()}:null;return m.extend({},i,s,a,r)},g.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},g.prototype.getViewportAdjustedDelta=function(t,e,n,i){var o={top:0,left:0};if(!this.$viewport)return o;var r=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-r-s.scroll,c=e.top+r-s.scroll+i;a<s.top?o.top=s.top-a:c>s.top+s.height&&(o.top=s.top+s.height-c)}else{var l=e.left-r,u=e.left+r+n;l<s.left?o.left=s.left-l:u>s.right&&(o.left=s.left+s.width-u)}return o},g.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},g.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},g.prototype.tip=function(){if(!this.$tip&&(this.$tip=m(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},g.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},g.prototype.enable=function(){this.enabled=!0},g.prototype.disable=function(){this.enabled=!1},g.prototype.toggleEnabled=function(){this.enabled=!this.enabled},g.prototype.toggle=function(t){var e=this;t&&((e=m(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},g.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var e=m.fn.tooltip;m.fn.tooltip=t,m.fn.tooltip.Constructor=g,m.fn.tooltip.noConflict=function(){return m.fn.tooltip=e,this}}(jQuery),function(o){"use strict";function t(i){return this.each(function(){var t=o(this),e=t.data("bs.popover"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.popover",e=new r(this,n)),"string"==typeof i&&e[i]())})}var r=function(t,e){this.init("popover",t,e)};if(!o.fn.tooltip)throw new Error("Popover requires tooltip.js");r.VERSION="3.3.7",r.DEFAULTS=o.extend({},o.fn.tooltip.Constructor.DEFAULTS,{
placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),r.prototype=o.extend({},o.fn.tooltip.Constructor.prototype),(r.prototype.constructor=r).prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var e=o.fn.popover;o.fn.popover=t,o.fn.popover.Constructor=r,o.fn.popover.noConflict=function(){return o.fn.popover=e,this}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(h){function f(t){return t}function m(t){return decodeURIComponent(t.replace(e," "))}function g(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return v.json?JSON.parse(t):t}catch(e){}}var e=/\+/g,v=h.cookie=function(t,e,n){if(e!==undefined){if("number"==typeof(n=h.extend({},v.defaults,n)).expires){var i=n.expires,o=n.expires=new Date;o.setDate(o.getDate()+i)}return e=v.json?JSON.stringify(e):String(e),document.cookie=[v.raw?t:encodeURIComponent(t),"=",v.raw?e:encodeURIComponent(e),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("")}for(var r=v.raw?f:m,s=document.cookie.split("; "),a=t?undefined:{},c=0,l=s.length;c<l;c++){var u=s[c].split("="),d=r(u.shift()),p=r(u.join("="));if(t&&t===d){a=g(p);break}t||(a[d]=g(p))}return a};v.defaults={},h.removeCookie=function(t,e){return h.cookie(t)!==undefined&&(h.cookie(t,"",h.extend({},e,{expires:-1})),!0)}}),function(O){O.cookieCuttr=function(e){var t={cookieCutter:!1,cookieCutterDeclineOnly:!1,cookieAnalytics:!0,cookieDeclineButton:!1,cookieAcceptButton:!0,cookieResetButton:!1,cookieOverlayEnabled:!1,cookiePolicyLink:"/privacy-policy/",cookieMessage:'We use cookies on this website, you can <a href="{{cookiePolicyLink}}" title="read about our cookies">read about them here</a>. To use the website as intended please...',cookieAnalyticsMessage:"We use cookies, just to track visits to our website, we store no personal details.",cookieErrorMessage:"We're sorry, this feature places cookies in your browser and has been disabled. <br>To continue using this functionality, please",cookieWhatAreTheyLink:"http://www.allaboutcookies.org/",cookieDisable:"",cookieExpires:365,cookieAcceptButtonText:"ACCEPT COOKIES",cookieDeclineButtonText:"DECLINE COOKIES",cookieResetButtonText:"RESET COOKIES FOR THIS WEBSITE",cookieWhatAreLinkText:"What are cookies?",cookieNotificationLocationBottom:!1,cookiePolicyPage:!1,cookiePolicyPageMessage:"Please read the information below and then choose from the following options",cookieDiscreetLink:!1,cookieDiscreetReset:!1,cookieDiscreetLinkText:"Cookies?",cookieDiscreetPosition:"topleft",cookieNoMessage:!1,cookieDomain:""},n=(e=O.extend(t,e),t.cookieMessage.replace("{{cookiePolicyLink}}",t.cookiePolicyLink));t.cookieMessage='We use cookies on this website, you can <a href="'+t.cookiePolicyLink+'" title="read about our cookies">read about them here</a>. To use the website as intended please...';var i=e.cookiePolicyLink,o=e.cookieCutter,r=e.cookieCutterDeclineOnly,s=e.cookieAnalytics,a=e.cookieDeclineButton,c=e.cookieAcceptButton,l=e.cookieResetButton,u=e.cookieOverlayEnabled,d=(e.cookiePolicyLink,n),p=e.cookieAnalyticsMessage,h=e.cookieErrorMessage,f=e.cookieDisable,m=e.cookieWhatAreTheyLink,g=e.cookieExpires,v=e.cookieAcceptButtonText,y=e.cookieDeclineButtonText,b=e.cookieResetButtonText,w=e.cookieWhatAreLinkText,x=e.cookieNotificationLocationBottom,_=e.cookiePolicyPage,k=e.cookiePolicyPageMessage,C=e.cookieDiscreetLink,T=e.cookieDiscreetReset,$=e.cookieDiscreetLinkText,S=e.cookieDiscreetPosition,j=e.cookieNoMessage,E="cc_cookie_accept"==O.cookie("cc_cookie_accept");O.cookieAccepted=function(){return E};var D="cc_cookie_decline"==O.cookie("cc_cookie_decline");if(O.cookieDeclined=function(){return D},c)var A=' <a href="#accept" class="cc-cookie-accept">'+v+"</a> ";else A="";if(a)var I=' <a href="#decline" class="cc-cookie-decline">'+y+"</a> ";else I="";if(u)var N="cc-overlay";else N="";if(x||"bottomright"==S||"bottomleft"==S)var P=!0;else P=!1;if(E||D)if(l&&T)P?O("body").append('<div class="cc-cookies cc-discreet"><a class="cc-cookie-reset" href="#" title="'+b+'">'+b+"</a></div>"):O("body").prepend('<div class="cc-cookies cc-discreet"><a class="cc-cookie-reset" href="#" title="'+b+'">'+b+"</a></div>"),"topleft"==S&&(O("div.cc-cookies").css("top","0"),O("div.cc-cookies").css("left","0")),"topright"==S&&(O("div.cc-cookies").css("top","0"),O("div.cc-cookies").css("right","0")),"bottomleft"==S&&(O("div.cc-cookies").css("bottom","0"),O("div.cc-cookies").css("left","0")),"bottomright"==S&&(O("div.cc-cookies").css("bottom","0"),O("div.cc-cookies").css("right","0"));else if(l)P?O("body").append('<div class="cc-cookies"><a href="#" class="cc-cookie-reset">'+b+"</a></div>"):O("body").prepend('<div class="cc-cookies"><a href="#" class="cc-cookie-reset">'+b+"</a></div>");else l="";else j&&!_||(C&&!_?(P?O("body").append('<div class="cc-cookies cc-discreet"><a href="'+i+'" title="'+$+'">'+$+"</a></div>"):O("body").prepend('<div class="cc-cookies cc-discreet"><a href="'+i+'" title="'+$+'">'+$+"</a></div>"),"topleft"==S&&(O("div.cc-cookies").css("top","0"),O("div.cc-cookies").css("left","0")),"topright"==S&&(O("div.cc-cookies").css("top","0"),O("div.cc-cookies").css("right","0")),"bottomleft"==S&&(O("div.cc-cookies").css("bottom","0"),O("div.cc-cookies").css("left","0")),"bottomright"==S&&(O("div.cc-cookies").css("bottom","0"),O("div.cc-cookies").css("right","0"))):s&&(P?O("body").append('<div class="cc-cookies '+N+'">'+p+A+I+'<a href="'+m+'" title="Visit All about cookies (External link)">'+w+"</a></div>"):O("body").prepend('<div class="cc-cookies '+N+'">'+p+A+I+'<a href="'+m+'" title="Visit All about cookies (External link)">'+w+"</a></div>"))),_?P?O("body").append('<div class="cc-cookies '+N+'"><div class="cookie-wrapper">'+k+'  <a href="#accept" class="cc-cookie-accept">'+v+'</a>  <a href="#decline" class="cc-cookie-decline">'+y+"</a> </div></div>"):O("body").prepend('<div class="cc-cookies '+N+'"><div class="cookie-wrapper">'+k+'  <a href="#accept" class="cc-cookie-accept">'+v+'</a>  <a href="#decline" class="cc-cookie-decline">'+y+"</a> </div></div>"):s||C||(P?O("body").append('<div class="cc-cookies '+N+'"><div class="cookie-wrapper">'+d+A+I+"</div></div>"):O("body").prepend('<div class="cc-cookies '+N+'"><div class="cookie-wrapper">'+d+A+I+"</div></div>"));!o||r||!D&&E||O(f).html('<div class="cc-cookies-error">'+h+' <a href="#accept" class="cc-cookie-accept">'+v+"</a> </div>"),o&&r&&D&&O(f).html('<div class="cc-cookies-error">'+h+' <a href="#accept" class="cc-cookie-accept">'+v+"</a> </div>"),x&&!C&&(O("div.cc-cookies").css("top","auto"),O("div.cc-cookies").css("bottom","0")),x&&C&&_&&(O("div.cc-cookies").css("top","auto"),O("div.cc-cookies").css("bottom","0")),O(".cc-cookie-accept, .cc-cookie-decline").click(function(t){t.preventDefault(),O(this).is("[href$=#decline]")?(O.cookie("cc_cookie_accept",null,{path:"/"}),O.cookie("cc_cookie_decline","cc_cookie_decline",{expires:g,path:"/"}),e.cookieDomain&&(O.cookie("__utma",null,{domain:"."+e.cookieDomain,path:"/"}),O.cookie("__utmb",null,{domain:"."+e.cookieDomain,path:"/"}),O.cookie("__utmc",null,{domain:"."+e.cookieDomain,path:"/"}),O.cookie("__utmz",null,{domain:"."+e.cookieDomain,path:"/"}))):(O.cookie("cc_cookie_decline",null,{path:"/"}),O.cookie("cc_cookie_accept","cc_cookie_accept",{expires:g,path:"/"})),O(".cc-cookies").fadeOut(function(){location.reload()})}),O("a.cc-cookie-reset").click(function(t){t.preventDefault(),O.cookie("cc_cookie_accept",null,{path:"/"}),O.cookie("cc_cookie_decline",null,{path:"/"}),O(".cc-cookies").fadeOut(function(){location.reload()})}),O(".cc-cookies-error a.cc-cookie-accept").click(function(t){t.preventDefault(),O.cookie("cc_cookie_accept","cc_cookie_accept",{expires:g,path:"/"}),O.cookie("cc_cookie_decline",null,{path:"/"}),location.reload()})}}(jQuery),function(o){function n(t){if(o.facebox.settings.inited)return!0;o.facebox.settings.inited=!0,o(document).trigger("init.facebox"),i();var e=o.facebox.settings.imageTypes.join("|");o.facebox.settings.imageTypesRegexp=new RegExp(".("+e+")$","i"),t&&o.extend(o.facebox.settings,t),o("body").append(o.facebox.settings.faceboxHtml);var n=[new Image,new Image];n[0].src=o.facebox.settings.closeImage,n[1].src=o.facebox.settings.loadingImage,o("#facebox").find(".b:first, .bl").each(function(){n.push(new Image),n.slice(-1).src=o(this).css("background-image").replace(/url\((.+)\)/,"$1")}),o("#facebox .close").click(o.facebox.close),o("#facebox .close_image").attr("src",o.facebox.settings.closeImage)}function t(){var t,e;return self.pageYOffset?(e=self.pageYOffset,t=self.pageXOffset):document.documentElement&&document.documentElement.scrollTop?(e=document.documentElement.scrollTop,t=document.documentElement.scrollLeft):document.body&&(e=document.body.scrollTop,t=document.body.scrollLeft),new Array(t,e)}function e(){var t;return self.innerHeight?t=self.innerHeight:document.documentElement&&document.documentElement.clientHeight?t=document.documentElement.clientHeight:document.body&&(t=document.body.clientHeight),t}function i(){var t=o.facebox.settings;t.loadingImage=t.loading_image||t.loadingImage,t.closeImage=t.close_image||t.closeImage,t.imageTypes=t.image_types||t.imageTypes,t.faceboxHtml=t.facebox_html||t.faceboxHtml}function r(t,e){if(t.match(/#/)){var n=window.location.href.split("#")[0],i=t.replace(n,"");if("#"==i)return;o.facebox.reveal(o(i).html(),e)}else t.match(o.facebox.settings.imageTypesRegexp)?s(t,e):a(t,e)}function s(t,e){var n=new Image;n.onload=function(){o.facebox.reveal('<div class="image"><img src="'+n.src+'" /></div>',e)},n.src=t}function a(t,e){o.get(t,function(t){o.facebox.reveal(t,e)})}function c(){return 0==o.facebox.settings.overlay||null===o.facebox.settings.opacity}function l(){if(!c())return 0==o("#facebox_overlay").length&&o("body").append('<div id="facebox_overlay" class="facebox_hide"></div>'),o("#facebox_overlay").hide().addClass("facebox_overlayBG").css("opacity",o.facebox.settings.opacity).click(function(){o(document).trigger("close.facebox")}).fadeIn(200),!1}function u(){if(!c())return o("#facebox_overlay").fadeOut(200,function(){o("#facebox_overlay").removeClass("facebox_overlayBG"),o("#facebox_overlay").addClass("facebox_hide"),o("#facebox_overlay").remove()}),!1}o.facebox=function(t,e){o.facebox.loading(),t.ajax?a(t.ajax,e):t.image?s(t.image,e):t.div?r(t.div,e):o.isFunction(t)?t.call(o):o.facebox.reveal(t,e)},o.extend(o.facebox,{settings:{opacity:.2,overlay:!0,loadingImage:"/facebox/loading.gif",closeImage:"/facebox/closelabel.png",imageTypes:["png","jpg","jpeg","gif"],faceboxHtml:'    <div id="facebox" style="display:none;">       <div class="popup">         <div class="content">         </div>         <a href="#" class="close"><img src="/facebox/closelabel.png" title="close" class="close_image" /></a>       </div>     </div>'},loading:function(){if(n(),1==o("#facebox .loading").length)return!0;l(),o("#facebox .content").empty(),o("#facebox .body").children().hide().end().append('<div class="loading"><img src="'+o.facebox.settings.loadingImage+'"/></div>'),o("#facebox").css({top:t()[1]+e()/10,left:o(window).width()/2-205}).show(),o(document).bind("keydown.facebox",function(t){return 27==t.keyCode&&o.facebox.close(),!0}),o(document).trigger("loading.facebox")},reveal:function(t,e){o(document).trigger("beforeReveal.facebox"),e&&o("#facebox .content").addClass(e),o("#facebox .content").append(t),o("#facebox .loading").remove(),o("#facebox .body").children().fadeIn("normal"),o("#facebox").css("left",o(window).width()/2-o("#facebox .popup").width()/2),o(document).trigger("reveal.facebox").trigger("afterReveal.facebox")},close:function(){return o(document).trigger("close.facebox"),!1}}),o.fn.facebox=function(t){function e(){o.facebox.loading(!0);var t=this.rel.match(/facebox\[?\.(\w+)\]?/);return t&&(t=t[1]),r(this.href,t),!1}if(0!=o(this).length)return n(t),this.bind("click.facebox",e)},o(document).bind("close.facebox",function(){o(document).unbind("keydown.facebox"),o("#facebox").fadeOut(function(){o("#facebox .content").removeClass().addClass("content"),o("#facebox .loading").remove(),o(document).trigger("afterClose.facebox")}),u()})}(jQuery),function(){$(function(){var t;if($("#accordion .panel-collapse").on("hide.bs.collapse",function(){return $("a[href='"+$(this).attr("id")+"']").removeClass("active"),$(".panel-collapse",this).collapse("hide")}),$("#accordion .panel-collapse").on("show.bs.collapse",function(){return $("a[href='"+$(this).attr("id")+"']").addClass("active"),$(this).parents(".panel-collapse").collapse("show")}),0<$(".ssl-hilfe #accordion").length)return(t=$(window.location.hash)).collapse("show"),$("body").animate({scrollTop:t.offset().top-150},1500)})}.call(this),function(){var t,e=function(t,e){return function(){return t.apply(e,arguments)}};t=function(){function t(){var t;this.submitComment=e(this.submitComment,this),this.container=$(".helpful"),this.comment_form=$("form",this.container),this.success_alert=$(".alert-success",this.container),this.error_alert=$(".alert-danger",this.container),this.comment_form.submit((t=this,function(){return t.submitComment(),!1}))}return t.prototype.submitComment=function(){return $.ajax({url:"/articles/"+$("#article_id").val()+"/feedback.json",dataType:"JSON",type:"POST",data:{comment:this.comment_form.serializeObject()},success:(t=this,function(){return t.comment_form.addClass("hidden"),t.success_alert.removeClass("hidden"),t.error_alert.addClass("hidden")}),error:(e=this,function(t){return console.log(t),e.error_alert.removeClass("hidden")})});var e,t},t}(),$(function(){if(0<$(".helpful").length)return $.fn.serializeObject=function(){var t,e;return e={},t=this.serializeArray(),$.each(t,function(){return void 0!==e[this.name]?(e[this.name].push||(e[this.name]=[e[this.name]]),e[this.name].push(this.value||"")):e[this.name]=this.value||""}),e},new t})}.call(this),function(){var t,e=function(t,e){return function(){return t.apply(e,arguments)}};t=function(){function t(){this.scrolling=e(this.scrolling,this),this.changeTable=e(this.changeTable,this),this.switchers=$(".js_brand-switcher li"),this.tables=$(".js_brand-tables"),this.switchers.click(this.changeTable),this.switchers.first().click()}return t.prototype.changeTable=function(t){var e;return t.preventDefault(),e=$(t.currentTarget),$(".table-certificates",this.tables).addClass("hidden"),this.switchers.removeClass("active-tab"),e.addClass("active-tab"),$(".table-certificates[data-tableid='"+e.data("pricetableid")+"']",this.tables).removeClass("hidden"),this.scrolling()},t.prototype.scrolling=function(){return $("html, body").animate({scrollTop:$(".table-certificates:visible",this.tables).offset().top-50},1e3)},t}(),$(function(){if(0<$(".js_brand-switcher").length&&1<$(".js_brand-tables .table-certificates").length)return new t})}.call(this),function(){var t,e=function(t,e){return function(){return t.apply(e,arguments)}};t=function(){function t(){this.validateForm=e(this.validateForm,this),this.formInvalid=e(this.formInvalid,this),this.onSubmit=e(this.onSubmit,this),this.container=$("#faq-popup-container"),this.form=$("form.form",this.container),this.form.submit(this.onSubmit)}return t.prototype.onSubmit=function(t){if(this.validateForm(),t.preventDefault(),!this.formInvalid())return $.ajax({type:"POST",url:this.form.prop("action"),dataType:"JSON",data:this.form.serialize(),success:(n=this,function(){return n.form.hide(),n.container.find(".alert-success").removeClass("hidden"),n.container.find(".alert-danger").addClass("hidden"),n.container.find(".modal-footer").removeClass("hidden")}),error:(e=this,function(){return e.form.find('button, input[type="submit"]').prop("disabled",!1),e.container.find(".alert-danger").removeClass("hidden")})});var e,n},t.prototype.formInvalid=function(){return 0<this.form.find("input:invalid").length},t.prototype.validateForm=function(){return this.form.toggleClass("invalid",this.formInvalid())},t}(),$(function(){if(0<$('[data-target="#faq-popup-container"]').length)return new t})}.call(this),function(){var t,e=function(t,e){return function(){return t.apply(e,arguments)}};t=function(){function t(){this.onPreFormSubmit=e(this.onPreFormSubmit,this),this.pre_form=$(".js-ip_pool-preform"),this.modal=$("#js-modal-ip_pool"),this.form=$(".js-ip_pool-form",this.modal),this.pre_form.submit(this.onPreFormSubmit)}return t.prototype.onPreFormSubmit=function(t){var e;if(t.preventDefault(),""!==(e=this.pre_form.find("textarea#ip_pool").val()))return this.modal.modal("show"),this.form.find(".js-ip_pool-field").val(e)},t}(),$(function(){if(0<$(".js-ip_pool-preform").length&&0<$("#js-modal-ip_pool").length)return new t})}.call(this),function(){$(function(){return $("select.js-lead_country_select").change(function(){var t,e;return e=$(this).parents("form"),(t=$(this).find("option:selected")).data().vat?($(".vat-number-notice",e).show(),$(".js-vat_field",e).show(),$(".js-vat_field #lead_vat_number").attr("required",!0)):($(".vat-number-notice",e).hide(),$(".js-vat_field",e).hide(),$(".js-vat_field #lead_vat_number").val("").removeAttr("required")),t.data().inn?($(".js-leads_inn_kpp_fields",e).show(),$(".js-vat_ltd",e).show(),$(".js-leads_inn_kpp_fields input").attr("required",!0)):($(".js-leads_inn_kpp_fields",e).hide(),$(".js-vat_ltd",e).hide(),$(".js-leads_inn_kpp_fields input").val("").removeAttr("required"))}),$("select.js-lead_country_select").change(),$('.leads-wrapper a[data-toggle="tab"]').on("shown.bs.tab",function(t){var e;return e=$(".tab-pane"+$(t.relatedTarget).attr("href")).find("select.js-lead_country_select").val(),$(".tab-pane"+$(t.target).attr("href")).find("select.js-lead_country_select").val(e).change()})})}.call(this),function(){var t,e=function(t,e){return function(){return t.apply(e,arguments)}};t=function(){function t(){this.login=e(this.login,this),this.validateForm=e(this.validateForm,this),this.formInvalid=e(this.formInvalid,this),this.container=$(".js-login_form"),this.form=$("form",this.container),this.form.on("submit",this.login)}return t.prototype.formInvalid=function(){return 0<this.form.find("input:invalid").length},t.prototype.validateForm=function(){return this.form.toggleClass("invalid",this.formInvalid()),this.formInvalid()},t.prototype.errorAlert=function(t){return"<div class='alert alert-danger alert-dismissible' role='alert'><button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>&times;</span></button>"+t+"</div>"},t.prototype.login=function(t){if(t.preventDefault(),$(".alert.alert-danger",this.container).remove(),console.log("HI!"),!this.validateForm())return $.post("/session.json",this.form.serialize(),function(){return window.location.reload()}).fail((e=this,function(t){return e.container.prepend(e.errorAlert(t.responseJSON.error)),$('input[type="submit"]',e.form).prop("disabled",!1)}));var e},t}(),$(function(){return $("#js-login_form-link").on("shown.bs.popover",function(){return new t})})}.call(this),function(){$(function(){return $.facebox.settings.closeImage="/assets/facebox/closelabel.png",$.facebox.settings.loadingImage="/assets/facebox/loading.gif",$("a[rel*=facebox]").facebox(),$("[data-toggle=popover]").popover(),$(document).keyup(function(t){if(27===t.keyCode)return $("a[aria-describedby*='popover']").click()}),$(".js-live_chat").click(function(t){return t.preventDefault(),window.$zopim.livechat.window.openPopout()}),window.ga&&ga(function(t){return $(".js-new_lead-client_id").val(t.get("clientId"))}),$("li a[data-path-target]").each(function(){var t,e,n,i,o;for(o=[],t=0,e=(i=$(this).data().pathTarget.split(" ")).length;t<e;t++)n=i[t],window.location.href.includes(n)?o.push($(this).addClass("current_path")):o.push(void 0);return o}),$(".js-scrollToPrice").click(function(){return $("html, body").animate({scrollTop:$("#scrollToPriceContent").offset().top-100},1e3)}),$("a#js-select-other_solution").click(function(){return $("#js-other_solution").toggle()})})}.call(this),function(){var e,n=function(t,e){return function(){return t.apply(e,arguments)}};e=function(){function t(){this.fillData=n(this.fillData,this),this.modal=$("#popup_discount"),this.modal_body=$(".modal-body",this.modal)}return t.prototype.fillData=function(t){var e;return e=t.data(),$("span.brand",this.modal_body).text(e.brand),$("span.brand_price",this.modal_body).text(e.oldPriceEuro),$("span.rate",this.modal_body).text(e.rate),$("span.total_price",this.modal_body).text(e.oldPrice),$("span.our_price",this.modal_body).text(e.endPrice),$("span.discount-sum",this.modal_body).text(e.discount),$("a.js-buy",this.modal_body).prop({href:"/lead/new?days="+e.days+"&product_id="+e.productId})},t}(),$(function(){var t;if(1===$("#popup_discount").length&&0<$(".product-discount .discount-modal").length)return t=new e,$(".product-discount").click(function(){if(898<screen.width)return t.fillData($(".discount-modal:first",this)),t.modal.modal("show")})})}.call(this),function(){var t,e=function(t,e){return function(){return t.apply(e,arguments)}};t=function(){function t(){this.onSubscribe=e(this.onSubscribe,this),this.container=$(".js-subscribe_container"),this.form=$("#new_partner_subscription",this.container),this.form.submit(this.onSubscribe)}return t.prototype.onSubscribe=function(t){return t.preventDefault(),this.form.find('input[type="submit"]').prop("disabled",!1),$.ajax({method:"POST",data:this.form.serialize(),url:"/partner_subscriptions.json",dataType:"JSON",success:(n=this,function(){return $(".alert-success",n.container).removeClass("hidden"),$(".alert-danger",n.container).addClass("hidden"),n.form.addClass("hidden")}),error:(e=this,function(){return $(".alert-danger",e.container).removeClass("hidden")})});var e,n},t}(),$(function(){if(0<$(".js-subscribe_container #new_partner_subscription").length)return new t})}.call(this),function(){var t,e=function(t,e){return function(){return t.apply(e,arguments)}};t=function(){function t(){var t;this.resolveChain=e(this.resolveChain,this),this.container=$(".js-chain_resolver_wrap"),this.resolve_message_wrap=$("#js-resolve_result_wrap",this.container),this.hide_resolve_message_btn=$("button.close",this.container),this.resolve_message=$(".js-resolve_message",this.resolve_message_wrap),this.certificate_text_input=$("#certificate_text",this.container),this.certificate_file_input=$("#certificate_file",this.container),this.certificate_text_input.on("paste",this.resolveChain),this.certificate_file_input.on("change",this.resolveChain),this.hide_resolve_message_btn.on("click",(t=this,function(){return t.resolve_message_wrap.hide()}))}return t.prototype.resolveChain=function(t){var n,i;return this.resolve_message_wrap.hide(),n=$(t.target).prop("type"),setTimeout((i=this,function(){var t,e;return t="textarea"===n?i.certificate_text_input.val():i.certificate_file_input.get(0).files[0],(e=new FormData).append("upload_via",n),e.append("certificate_text",t),$.ajax({url:"/tools/resolve_cert_chain",method:"POST",data:e,processData:!1,contentType:!1,success:function(t){return console.log(t),"ok"===t.status?(i.resolve_message_wrap.removeClass().addClass("alert alert-success"),$.ajax({method:"GET",url:"/tools/download_solved_chain",successs:document.location.href="/tools/download_solved_chain"})):i.resolve_message_wrap.removeClass().addClass("alert alert-danger"),i.resolve_message.text(t.message),console.log,i.resolve_message_wrap.show()}})}),100)},t}(),$(function(){if(0<$(".js-chain_resolver_wrap").length)return new t})}.call(this),function(){var t,e=function(t,e){return function(){return t.apply(e,arguments)}};t=function(){function t(){var t;this.toggleValidateDependentFields=e(this.toggleValidateDependentFields,this),this.container=$("section.csr_generator"),this.form=$(".js-form_csr_generator",this.container),this.validation_types_select=$("select#csr_validation_type",this.form),this.domain_name_input=$("#csr_domain_name",this.form),this.additional_domains_input=$("#csr_additional_domains",this.form),this.additional_domains_input_wrap=this.additional_domains_input.parents(".form-group"),this.wildcard_error=$("#js-ev_wildcard_error",this.form),this.validation_dependend_fields=$(".js-validation_depended_fields",this.form),this.validation_types_select.change(this.toggleValidateDependentFields),this.domain_name_input.keyup((t=this,function(){return t.toggleValidateDependentFields(),-1!==t.domain_name_input.val().indexOf("*")?(t.additional_domains_input.val(),t.additional_domains_input_wrap.hide()):t.additional_domains_input_wrap.show()})),this.validation_types_select.change()}return t.prototype.toggleValidateDependentFields=function(){var t,e;return e=this.validation_types_select.val(),t=this.domain_name_input.val(),"dv"===e?(this.validation_dependend_fields.hide(),$("input",this.validation_dependend_fields).val("DV")):"ev"===e&&-1!==t.indexOf("*")?(this.wildcard_error.show(),this.domain_name_input.parents(".form-group").addClass("has-error")):(this.wildcard_error.hide(),this.domain_name_input.parents(".form-group").removeClass("has-error"),this.validation_dependend_fields.show(),$("input",this.validation_dependend_fields).val(""))},t}(),$(function(){if(0<$("section.csr_generator").length)return new t})}.call(this),function(){var t,o=function(t,e){return function(){return t.apply(e,arguments)}};t=function(){function t(){var t,e,n,i;this.sendMatchRequest=o(this.sendMatchRequest,this),this.toogleCsrPKeyVisibility=o(this.toogleCsrPKeyVisibility,this),this.container=$(".js-csr_pkey_matcher_wrap"),this.csrPkeySelect=$("#js-csr_pkey_select",this.container),this.certificateField=$("#cert_field",this.container),this.csrWrap=$("#js-csr_wrap",this.container),this.csrField=$("#csr_field",this.csrWrap),this.pkeyWrap=$("#js-pkey_wrap",this.container),this.pkeyField=$("#pkey_field",this.pkeyWrap),this.matchSourceWrap=$(".js-match_source_wrap",this.container),this.matchResult=$("#js-match_result",this.container),this.matchCsrPkeyForm=$(".js-match_csr_pkey",this.container),this.textArea=$("textarea",this.container),$('input[type="submit"]',this.container).removeAttr("data-disable-with"),this.csrPkeySelect.change((t=this,function(){return t.toogleCsrPKeyVisibility(),t.matchResult.hide(),t.matchSourceWrap.removeClass("has-success has-error")})),this.certificateField.keyup((e=this,function(){return e.matchResult.hide(),e.matchSourceWrap.removeClass("has-success has-error")})),this.matchSourceWrap.find("textarea:visible").keyup((n=this,function(t){return n.matchResult.hide(),n.matchSourceWrap.removeClass("has-success has-error"),$(t.target).removeClass().addClass("form-control")})),this.matchCsrPkeyForm.submit((i=this,function(t){return t.preventDefault(),i.sendMatchRequest()})),this.toogleCsrPKeyVisibility(),this.matchResult.toggle()}return t.prototype.toogleCsrPKeyVisibility=function(){return"csr"===this.csrPkeySelect.val()?(this.csrWrap.show(),this.pkeyWrap.hide(),this.csrWrap.attr("required","required"),this.pkeyField.removeAttr("required")):(this.pkeyWrap.show(),this.csrWrap.hide(),this.pkeyWrap.attr("required","required"),this.csrField.removeAttr("required"))},t.prototype.sendMatchRequest=function(){return $.ajax({url:"/tools/match_csr_pkey",method:"POST",data:{certificate:this.certificateField.val(),match_source_type:this.csrPkeySelect.val(),match_source:$("[id^="+this.csrPkeySelect.val()+"_field]").val()},success:(e=this,function(t){return e.matchResult.removeClass(),t.is_matched?(e.matchSourceWrap.addClass("has-success"),e.matchResult.addClass("alert alert-success")):(e.matchResult.addClass("alert alert-danger"),t.hasOwnProperty("invalid_source_type")?$("textarea#"+t.invalid_source_type+"_field").addClass("has-error"):e.matchSourceWrap.addClass("has-error")),e.matchResult.show(),e.matchResult.find("span.match_text").text(t.match_text)})});var e},t}(),$(function(){return new t})}.call(this),function(){var t,o=function(t,e){return function(){return t.apply(e,arguments)}};t=function(){function t(){var t,e,n,i;this.validateForm=o(this.validateForm,this),this.removeSubmitDisableWith=o(this.removeSubmitDisableWith,this),this.convertToTypeChanged=o(this.convertToTypeChanged,this),this.convertFromTypeChanged=o(this.convertFromTypeChanged,this),this.resetForm=o(this.resetForm,this),this.clearFileInput=o(this.clearFileInput,this),this.setCertificateType=o(this.setCertificateType,this),this.container=$(".js-converter_form"),this.convert_from_select=$("#convert_from_type",this.container),this.convert_to_select=$("#convert_to_type",this.container),this.convert_errors_wrap=$(".js-convert_errors",this.container),this.cert_file_input=$("#cert_file",this.container),this.pkey_input=$("#private_key_file",this.container),this.pfx_password_wrap=$(".js-pfx_passwd_wrap",this.container),this.convert_from_wrap=$(".js-from_type_wrap",this.container),this.convert_to_wrap=$(".js-to_type_wrap",this.container),this.first_cert_chain_wrap=$(".js-cert_chain1_wrap",this.container),this.second_cert_chain_wrap=$(".js-cert_chain2_wrap",this.container),this.pkey_wrap=$(".js-pkey_wrap",this.container),this.csr_error=$(".js-csr_file_warn",this.convert_errors_wrap),this.cert_not_specified_error=$("p.js-cert_not_specified",this.container),this.select_pkey_error=$(".js-select_pkey",this.container),this.wrong_file_format_error=$(".js-wrong_file_format",this.container),this.submit_button=$('input[type="submit"]',this.container),this.convertFromTypeChanged(this.convert_from_select.val()),this.removeSubmitDisableWith(),this.cert_file_input.on("change",(t=this,function(){return t.setCertificateType(t.cert_file_input)})),this.convert_from_select.on("change",(e=this,function(){return e.convertFromTypeChanged(e.convert_from_select.val())})),this.convert_to_select.on("change",(n=this,function(){return n.convertToTypeChanged(n.convert_to_select.val())})),this.submit_button.on("click",(i=this,function(t){return t.preventDefault(),i.validateForm(),i.resetForm(),!1}))}var n,e;return t.prototype.setCertificateType=function(t){return-1!==t.val().lastIndexOf(".pfx")||-1!==t.val().lastIndexOf(".p12")?this.convert_from_select.val("pfx"):-1!==t.val().lastIndexOf(".p7b")||-1!==t.val().lastIndexOf(".p7c")?this.convert_from_select.val("p7b"):-1!==t.val().lastIndexOf(".cer")||-1!==t.val().lastIndexOf(".crt")||-1!==t.val().lastIndexOf(".key")?this.convert_from_select.val("pem"):-1!==t.val().lastIndexOf(".der")?this.convert_from_select.val("der"):-1!==t.val().lastIndexOf(".csr")?(this.csr_error.show(),this.clearFileInput(this.cert_file_input)):this.csr_error.hide(),this.convert_from_select.change()},t.prototype.clearFileInput=function(t){if(0!==t.val().length)return/MSIE/.test(navigator.userAgent)?t.closest("form").trigger("reset"):t.val("")},t.prototype.resetForm=function(){return this.container.trigger("reset")},t.prototype.convertFromTypeChanged=function(t){switch(this.convert_to_select.find("option").show(),this.pfx_password_wrap.hide(),t){case"p7b":this.convert_to_select.find('option[value="der"]').hide(),this.convert_to_select.find('option[value="p7b"]').hide(),this.convert_to_select.val("pem");break;case"pem":this.convert_to_select.find('option[value="pem"]').hide(),this.convert_to_select.val("der");break;case"der":this.convert_to_select.find('option[value="der"]').hide(),this.convert_to_select.find('option[value="pfx"]').hide(),this.convert_to_select.find('option[value="p7b"]').hide(),this.convert_to_select.val("pem");break;case"pfx":this.convert_to_select.find('option[value="pfx"]').hide(),this.convert_to_select.find('option[value="der"]').hide(),this.convert_to_select.find('option[value="p7b"]').hide(),this.first_cert_chain_wrap.hide(),this.second_cert_chain_wrap.hide(),this.pkey_wrap.hide(),this.pfx_password_wrap.show(),this.convert_to_select.val("pem")}return this.convertToTypeChanged(this.convert_to_select.val())},t.prototype.convertToTypeChanged=function(t){switch(this.first_cert_chain_wrap.hide(),this.second_cert_chain_wrap.hide(),
this.pkey_wrap.hide(),t){case"pfx":return this.first_cert_chain_wrap.show(),this.second_cert_chain_wrap.show(),this.pkey_wrap.show(),this.pfx_password_wrap.show();case"p7b":return this.first_cert_chain_wrap.show(),this.second_cert_chain_wrap.show()}},n=function(t){return-1!==[".pfx",".p12",".p7b",".p7c",".cer",".crt",".key",".der",".pem"].indexOf(t)},e=function(){var i,t;return t=$('input[type="file"]').filter(":visible"),i=[],t.each(function(t,e){var n;if(0!==(n=$(e).val()).length)return i.push(n)}),i.every(function(t){var e;return e=t.substr(t.lastIndexOf(".")),n(e)})},t.prototype.removeSubmitDisableWith=function(){return this.submit_button.removeAttr("data-disable-with")},t.prototype.validateForm=function(){var t;if(t=!1,0===this.cert_file_input.val().length?(t=!0,this.cert_not_specified_error.show()):this.cert_not_specified_error.hide(),"pfx"===this.convert_to_select.val()&&0===this.pkey_input.val().length?(t=!0,this.select_pkey_error.show()):this.select_pkey_error.hide(),e()?this.wrong_file_format_error.hide():(t=!0,this.wrong_file_format_error.show()),e(),!t)return this.container.submit()},t}(),$(function(){if(0<$("#ssl_converter").length)return new t})}.call(this),function(){var t,e,n=function(t,e){return function(){return t.apply(e,arguments)}};e=function(){function t(){var t;this.daysChange=n(this.daysChange,this),t=$(".js-wizard-modal_popup"),$("select.js-wizard-popup-days",t).change(this.daysChange),$("select.js-wizard-popup-days",t).change()}return t.prototype.daysChange=function(t){var e,n,i,o;return i=(n=$(t.currentTarget).find("option:selected")).parents(".modal-content"),o=$(".js-wizard-popup-price_block",i),e=$("a.js-wizard-popup-buy-btn",i),$("a.js-wizard-popup-buy-btn",i).prop("href","/lead/new?product_id="+e.data().product_id+"&days="+n.val()),$(".end-price",o).text(n.data().price),0===n.data().old_price?$(".old-price",o).text(""):$(".old-price",o).text(n.data().old_price)},t}(),t=function(){function t(){this.viewOptionsBlock=n(this.viewOptionsBlock,this),this.viewModal=n(this.viewModal,this),this.bindOptionsShown=n(this.bindOptionsShown,this),this.bindModalShown=n(this.bindModalShown,this),this.container=$(".js-wizard"),this.bindModalShown(),this.bindOptionsShown()}return t.prototype.bindModalShown=function(){var e,n;return $("a.js-wizard-popup",this.container).click((e=this,function(t){return t.preventDefault(),e.viewModal($(t.currentTarget).data().code)})),$("input:radio[data-code]",this.container).change((n=this,function(t){return n.viewModal($(t.currentTarget).data().code)}))},t.prototype.bindOptionsShown=function(){var e,n;return $("a.js-wizard-fast_move",this.container).click((e=this,function(t){return t.preventDefault(),e.viewOptionsBlock($(t.currentTarget).data().dest)})),$("input:radio[data-dest]",this.container).change((n=this,function(t){return n.viewOptionsBlock($(t.currentTarget).data().dest)}))},t.prototype.viewModal=function(t){return $(".js-wizard-modal_popup").modal("hide"),$(".js-wizard-modal_popup[data-code='"+t+"']").modal("show")},t.prototype.viewOptionsBlock=function(t){var e;return $(".js-wizard_options_blocks .js-wizard_options_block",this.container).hide(),e=$(".js-wizard_options_blocks .js-wizard_options_block[data-id='"+t+"']",this.container),$("input:radio:checked",e).prop("checked",!1),e.show(),e.data().parent&&$(".js-wizard_options_blocks .js-wizard_options_block[data-id='"+e.data().parent+"']",this.container).show(),$("html, body").animate({scrollTop:e.offset().top-110},1e3)},t}(),$(function(){if(0<$(".js-wizard-modal_popup").length&&0<$(".js-wizard").length)return new e,new t})}.call(this),function(){window.SocialShareButton={openUrl:function(t,e,n){var i;return null==e&&(e=640),null==n&&(n=480),i="width="+e+",height="+n+",left="+(screen.width/2-e/2)+",top="+(.3*screen.height-n/2)+",menubar=no,status=no,location=no",window.open(t,"popup",i),!1},share:function(n){var t,e,i,o,r,s,a,c,l,u,d,p,h;switch(c=$(n).data("site"),e=$(n).data("appkey")||"",t=$(n).parent(),l=encodeURIComponent($(n).data(c+"-title")||t.data("title")||""),a=encodeURIComponent(t.data("img")||""),d=encodeURIComponent(t.data("url")||""),p=encodeURIComponent(t.data("via")||""),i=encodeURIComponent(t.data("desc")||" "),"function"==typeof(o=window[window.GoogleAnalyticsObject||"ga"])&&o("send","event","Social Share Button","click",c),0===d.length&&(d=encodeURIComponent(location.href)),c){case"email":location.href="mailto:?to=&subject="+l+"&body="+d;break;case"weibo":SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url="+d+"&type=3&pic="+a+"&title="+l+"&appkey="+e,620,370);break;case"twitter":s=encodeURIComponent($(n).data(c+"-hashtags")||t.data("hashtags")||""),h="",0<p.length&&(h="&via="+p),SocialShareButton.openUrl("https://twitter.com/intent/tweet?url="+d+"&text="+l+"&hashtags="+s+h,650,300);break;case"douban":SocialShareButton.openUrl("http://shuo.douban.com/!service/share?href="+d+"&name="+l+"&image="+a+"&sel="+i,770,470);break;case"facebook":SocialShareButton.openUrl("http://www.facebook.com/sharer/sharer.php?u="+d+"&display=popup&quote="+i,555,400);break;case"qq":SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+d+"&title="+l+"&pics="+a+"&summary="+i+"&site="+e);break;case"google_plus":SocialShareButton.openUrl("https://plus.google.com/share?url="+d);break;case"google_bookmark":SocialShareButton.openUrl("https://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk="+d+"&title="+l);break;case"delicious":SocialShareButton.openUrl("https://del.icio.us/save?url="+d+"&title="+l+"&jump=yes&pic="+a);break;case"pinterest":SocialShareButton.openUrl("http://www.pinterest.com/pin/create/button/?url="+d+"&media="+a+"&description="+l);break;case"linkedin":SocialShareButton.openUrl("https://www.linkedin.com/shareArticle?mini=true&url="+d+"&title="+l+"&summary="+i);break;case"xing":SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url="+d);break;case"vkontakte":SocialShareButton.openUrl("http://vk.com/share.php?url="+d+"&title="+l+"&image="+a);break;case"odnoklassniki":SocialShareButton.openUrl("https://connect.ok.ru/offer?url="+d+"&title="+l+"&description="+i+"&imageUrl="+a);break;case"wechat":if(!window.SocialShareWeChatButton)throw new Error("You should require social-share-button/wechat to your application.js");window.SocialShareWeChatButton.qrcode({url:decodeURIComponent(d),header:$(n).attr("title"),footer:$(n).data("wechat-footer")});break;case"tumblr":r=function(t){var e;if(e=$(n).attr("data-"+t))return encodeURIComponent(e)},u=function(){var t,e,n,i;return e=r("type")||"link",t=function(){switch(e){case"text":return"title="+(l=r("title")||l);case"photo":return l=r("caption")||l,i=r("source")||a,"caption="+l+"&source="+i;case"quote":return n=r("quote")||l,i=r("source")||"","quote="+n+"&source="+i;default:return l=r("title")||l,d=r("url")||d,"name="+l+"&url="+d}}(),"/"+e+"?"+t},SocialShareButton.openUrl("http://www.tumblr.com/share"+u());break;case"reddit":SocialShareButton.openUrl("http://www.reddit.com/submit?url="+d+"&newwindow=1",555,400);break;case"hacker_news":SocialShareButton.openUrl("http://news.ycombinator.com/submitlink?u="+d+"&t="+l,770,500);break;case"telegram":SocialShareButton.openUrl("https://telegram.me/share/url?text="+l+"&url="+d)}return!1}}}.call(this),function(){(function(){(function(){var e=[].slice;this.ActionCable={INTERNAL:{message_types:{welcome:"welcome",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},createConsumer:function(t){var e;return null==t&&(t=null!=(e=this.getConfig("url"))?e:this.INTERNAL.default_mount_path),new c.Consumer(this.createWebSocketURL(t))},getConfig:function(t){var e;return null!=(e=document.head.querySelector("meta[name='action-cable-"+t+"']"))?e.getAttribute("content"):void 0},createWebSocketURL:function(t){var e;return t&&!/^wss?:/i.test(t)?((e=document.createElement("a")).href=t,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href):t},startDebugging:function(){return this.debugging=!0},stopDebugging:function(){return this.debugging=null},log:function(){var t;if(t=1<=arguments.length?e.call(arguments,0):[],this.debugging)return t.push(Date.now()),console.log.apply(console,["[ActionCable]"].concat(e.call(t)))}}}).call(this)}).call(this);var c=this.ActionCable;(function(){(function(){var i=function(t,e){return function(){return t.apply(e,arguments)}};c.ConnectionMonitor=function(){function t(t){this.connection=t,this.visibilityDidChange=i(this.visibilityDidChange,this),this.reconnectAttempts=0}var o,e,n;return t.pollInterval={min:3,max:30},t.staleThreshold=6,t.prototype.start=function(){if(!this.isRunning())return this.startedAt=e(),delete this.stoppedAt,this.startPolling(),document.addEventListener("visibilitychange",this.visibilityDidChange),c.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms")},t.prototype.stop=function(){if(this.isRunning())return this.stoppedAt=e(),this.stopPolling(),document.removeEventListener("visibilitychange",this.visibilityDidChange),c.log("ConnectionMonitor stopped")},t.prototype.isRunning=function(){return null!=this.startedAt&&null==this.stoppedAt},t.prototype.recordPing=function(){return this.pingedAt=e()},t.prototype.recordConnect=function(){return this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,c.log("ConnectionMonitor recorded connect")},t.prototype.recordDisconnect=function(){return this.disconnectedAt=e(),c.log("ConnectionMonitor recorded disconnect")},t.prototype.startPolling=function(){return this.stopPolling(),this.poll()},t.prototype.stopPolling=function(){return clearTimeout(this.pollTimeout)},t.prototype.poll=function(){return this.pollTimeout=setTimeout((t=this,function(){return t.reconnectIfStale(),t.poll()}),this.getPollInterval());var t},t.prototype.getPollInterval=function(){var t,e,n,i;return n=(i=this.constructor.pollInterval).min,e=i.max,t=5*Math.log(this.reconnectAttempts+1),Math.round(1e3*o(t,n,e))},t.prototype.reconnectIfStale=function(){if(this.connectionIsStale())return c.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+n(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?c.log("ConnectionMonitor skipping reopening recent disconnect"):(c.log("ConnectionMonitor reopening"),this.connection.reopen())},t.prototype.connectionIsStale=function(){var t;return n(null!=(t=this.pingedAt)?t:this.startedAt)>this.constructor.staleThreshold},t.prototype.disconnectedRecently=function(){return this.disconnectedAt&&n(this.disconnectedAt)<this.constructor.staleThreshold},t.prototype.visibilityDidChange=function(){if("visible"===document.visibilityState)return setTimeout((t=this,function(){if(t.connectionIsStale()||!t.connection.isOpen())return c.log("ConnectionMonitor reopening stale connection on visibilitychange. visbilityState = "+document.visibilityState),t.connection.reopen()}),200);var t},e=function(){return(new Date).getTime()},n=function(t){return(e()-t)/1e3},o=function(t,e,n){return Math.max(e,Math.min(n,t))},t}()}).call(this),function(){var t,o,e,n,i,r=[].slice,s=function(t,e){return function(){return t.apply(e,arguments)}},a=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1};n=c.INTERNAL,o=n.message_types,e=n.protocols,i=2<=e.length?r.call(e,0,t=e.length-1):(t=0,[]),e[t++],c.Connection=function(){function t(t){this.consumer=t,this.open=s(this.open,this),this.subscriptions=this.consumer.subscriptions,this.monitor=new c.ConnectionMonitor(this),this.disconnected=!0}return t.reopenDelay=500,t.prototype.send=function(t){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(t)),!0)},t.prototype.open=function(){if(this.isActive())throw c.log("Attempted to open WebSocket, but existing socket is "+this.getState()),new Error("Existing connection must be closed before opening");return c.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+e),null!=this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new WebSocket(this.consumer.url,e),this.installEventHandlers(),this.monitor.start(),!0},t.prototype.close=function(t){var e;if((null!=t?t:{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return null!=(e=this.webSocket)?e.close():void 0},t.prototype.reopen=function(){var t;if(c.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(e){return t=e,c.log("Failed to reopen WebSocket",t)}finally{c.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},t.prototype.getProtocol=function(){var t;return null!=(t=this.webSocket)?t.protocol:void 0},t.prototype.isOpen=function(){return this.isState("open")},t.prototype.isActive=function(){return this.isState("open","connecting")},t.prototype.isProtocolSupported=function(){var t;return t=this.getProtocol(),0<=a.call(i,t)},t.prototype.isState=function(){var t,e;return e=1<=arguments.length?r.call(arguments,0):[],t=this.getState(),0<=a.call(e,t)},t.prototype.getState=function(){var t,e;for(e in WebSocket)if(WebSocket[e]===(null!=(t=this.webSocket)?t.readyState:void 0))return e.toLowerCase();return null},t.prototype.installEventHandlers=function(){var t,e;for(t in this.events)e=this.events[t].bind(this),this.webSocket["on"+t]=e},t.prototype.uninstallEventHandlers=function(){var t;for(t in this.events)this.webSocket["on"+t]=function(){}},t.prototype.events={message:function(t){var e,n,i;if(this.isProtocolSupported())switch(e=(i=JSON.parse(t.data)).identifier,n=i.message,i.type){case o.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case o.ping:return this.monitor.recordPing();case o.confirmation:return this.subscriptions.notify(e,"connected");case o.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",n)}},open:function(){if(c.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return c.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(){if(c.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){return c.log("WebSocket onerror event")}},t}()}.call(this),function(){var l=[].slice;c.Subscriptions=function(){function t(t){this.consumer=t,this.subscriptions=[]}return t.prototype.create=function(t,e){var n,i,o;return i="object"==typeof(n=t)?n:{channel:n},o=new c.Subscription(this.consumer,i,e),this.add(o)},t.prototype.add=function(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.sendCommand(t,"subscribe"),t},t.prototype.remove=function(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t},t.prototype.reject=function(t){var e,n,i,o,r;for(o=[],e=0,n=(i=this.findAll(t)).length;e<n;e++)r=i[e],this.forget(r),this.notify(r,"rejected"),o.push(r);return o},t.prototype.forget=function(o){var r;return this.subscriptions=function(){var t,e,n,i;for(i=[],t=0,e=(n=this.subscriptions).length;t<e;t++)(r=n[t])!==o&&i.push(r);return i}.call(this),o},t.prototype.findAll=function(t){var e,n,i,o,r;for(o=[],e=0,n=(i=this.subscriptions).length;e<n;e++)(r=i[e]).identifier===t&&o.push(r);return o},t.prototype.reload=function(){var t,e,n,i,o;for(i=[],t=0,e=(n=this.subscriptions).length;t<e;t++)o=n[t],i.push(this.sendCommand(o,"subscribe"));return i},t.prototype.notifyAll=function(t){var e,n,i,o,r,s,a;for(n=t,e=2<=arguments.length?l.call(arguments,1):[],s=[],i=0,o=(r=this.subscriptions).length;i<o;i++)a=r[i],s.push(this.notify.apply(this,[a,n].concat(l.call(e))));return s},t.prototype.notify=function(t,e){var n,i,o,r,s,a,c;for(a=t,i=e,n=3<=arguments.length?l.call(arguments,2):[],s=[],o=0,r=(c="string"==typeof a?this.findAll(a):[a]).length;o<r;o++)a=c[o],s.push("function"==typeof a[i]?a[i].apply(a,n):void 0);return s},t.prototype.sendCommand=function(t,e){var n;return n=t.identifier,this.consumer.send({command:e,identifier:n})},t}()}.call(this),function(){c.Subscription=function(){function t(t,e,n){this.consumer=t,null==e&&(e={}),this.identifier=JSON.stringify(e),i(this,n)}var i;return t.prototype.perform=function(t,e){return null==e&&(e={}),e.action=t,this.send(e)},t.prototype.send=function(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})},t.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},i=function(t,e){var n,i;if(null!=e)for(n in e)i=e[n],t[n]=i;return t},t}()}.call(this),function(){c.Consumer=function(){function t(t){this.url=t,this.subscriptions=new c.Subscriptions(this),this.connection=new c.Connection(this)}return t.prototype.send=function(t){return this.connection.send(t)},t.prototype.connect=function(){return this.connection.open()},t.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},t.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},t}()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=c:"function"==typeof define&&define.amd&&define(c)}.call(this),function(){$(function(){return $("input.js-other_quantity_input").change(function(){return $(this).parent().find("input:radio.js-other_quantity_radio").val($(this).val())}),$("input.js-other_quantity_input").keyup(function(){return $(this).parent().find("input:radio.js-other_quantity_radio").val($(this).val())}),$(".js-goto-reissuance_form").click(function(){var t;return t=$(this).data("service"),$("form.pi_as_reissuance #lead_service").val(t),$("html, body").animate({scrollTop:$("#ip-as-reissuance_form").offset().top-100},350)})})}.call(this),function(){var t,e=function(t,e){return function(){return t.apply(e,arguments)}};t=function(){function t(){this.updateItemPrice=e(this.updateItemPrice,this),this.priceFormat=e(this.priceFormat,this),this.onPeriodChanged=e(this.onPeriodChanged,this),this.updateTotal=e(this.updateTotal,this),this.onCheckBoxChange=e(this.onCheckBoxChange,this),this.onRadioChange=e(this.onRadioChange,this),this.priceWithPenny=e(this.priceWithPenny,this),this.calculatePrice=e(this.calculatePrice,this),this.form=$(".js-order form.js-order_form"),this.total=$(".js-order .js-order_total"),this.order_period_days=$("#js-order-period-days",this.form),this.config=this.total.data().config,$(".js-order_checkbox_group input.js-order_main_checkbox",this.form).change(this.onCheckBoxChange),$('.js-order_radio_group input:radio:not(".js-order_contract_days")',this.form).change(this.onRadioChange),$('.js-order_radio_group input:radio:checked:not(".js-order_contract_days")',this.form).change(),$(".js-order_contract_days",this.form).change(this.onPeriodChanged)}return t.prototype.calculatePrice=function(){var i,t,e,n,o,r,s,a,c,l,u,d,p,h;for(d={monthly:{text:"",price:"",without_vat_text:"",twenty_per_vat_text:""},once:{text:"",price:"",without_vat_price:"",twenty_per_vat_price:""},negotiated:!1},t=$("input.js-order_contract_days:radio:checked",this.form).val(),h=$('.js-order_radio_group input:radio:checked:not(".js-order_contract_days")',this.form).data(),c=[],e=0,o=(p=$(".js-order_checkbox_group input:checked.js-order_main_checkbox",this.form)).length;e<o;e++)i=p[e],c.push($(i).data().text);if(h.setText&&c.push(h.setText),h.netText&&(d.monthly.text=h.netText),d.once.text=c.join(" + "),h.negotiatedPrice)d.monthly.price=this.config.negotiated_price,d.once.price=this.config.negotiated_price,d.negotiated=!0;else{for(s=0,null!=h.monthlyPrice&&(s+=h.monthlyPrice[t]),n=0,r=p.length;n<r;n++)i=p[n],$(i).data().showMonthly&&(s+=$(i).data().monthlyPrice);d.monthly.price=0<s?this.priceFormat(this.priceWithPenny(s)):"",(l=u=a=0)<p.length&&(a+=function(){var t,e,n;for(n=[],t=0,e=p.length;t<e;t++)i=p[t],n.push(parseFloat($(i).data().oncePrice));return n}().reduce(function(t,e){return t+e}),u+=function(){var t,e,n;for(n=[],t=0,e=p.length;t<e;t++)i=p[t],n.push(parseFloat($(i).data().withoutVatPrice));return n}().reduce(function(t,e){return t+e}),l+=function(){var t,e,n;for(n=[],t=0,e=p.length;t<e;t++)i=p[t],n.push(parseFloat($(i).data().twentyPerVatPrice));return n}().reduce(function(t,e){return t+e})),h.oncePrice&&h.showOnce&&(a+=h.oncePrice),console.log(h.withoutVatPrice),console.log(h.twentyPerVatPrice),h.withoutVatPrice&&h.showOnce&&(u+=h.withoutVatPrice),h.twentyPerVatPrice&&h.showOnce&&(l+=h.twentyPerVatPrice),d.once.price=0<a?this.priceFormat(this.priceWithPenny(a)):"",d.once.without_vat_price=0<u?this.priceFormat(this.priceWithPenny(u)):"",d.once.twenty_per_vat_price=0<l?this.priceFormat(this.priceWithPenny(l)):"",h.withoutVatText&&(d.monthly.without_vat_text=h.withoutVatText),h.twentyPerVatText&&(d.monthly.twenty_per_vat_text=h.twentyPerVatText)}return this.updateTotal(d)},t.prototype.priceWithPenny=function(t){return(100*t/100).toFixed(2)},t.prototype.onRadioChange=function(){var t,e;return t=(e=$('.js-order_radio_group input:radio:checked:not(".js-order_contract_days")',this.form)).parents(".js-order_radio_group"),e.hasClass("js-empty_radio")?$("input:hidden, input:radio.js-empty_radio",t).prop("disabled",!0):($("input.js-order_additional_nomenclature",t).val(e.data().additionalId),$("input:hidden, input:radio.js-empty_radio",t).prop("disabled",!1),this.updateItemPrice(e)),this.calculatePrice()},t.prototype.onCheckBoxChange=function(t){var e;return e=$(t.currentTarget).parents(".js-order_checkbox_group"),$('input:checkbox:not(".js-order_main_checkbox")',e).prop("checked",$(t.currentTarget).prop("checked")),this.calculatePrice()},t.prototype.updateTotal=function(t){var e,n;return""!==t.monthly.price?(e="<strong>"+this.config.monthly_text+" ("+t.monthly.text+"):<br>"+t.monthly.price,t.negotiated||(e+=", "+this.config.vat_info+"</strong>"),e+="<br><small>"+t.monthly.without_vat_text+"</small>",$(".js-order_total-monthly_payment",this.total).html(e)):$(".js-order_total-monthly_payment",this.total).html(""),""!==t.once.price?(n="<strong>"+this.config.once_text+" ("+t.once.text+"):<br>"+t.once.price,t.negotiated||(n+=", "+this.config.vat_info+"</strong>"),t.once.without_vat_price&&(n+="<br><small>"+this.config.without_vat_info+" "+t.once.without_vat_price+"</small>"),$(".js-order_total-once_payment",this.total).html(n)):$(".js-order_total-once_payment",this.total).html("")},t.prototype.onPeriodChanged=function(){var t,e,n,i,o;for(i=$('.js-order_radio_group input:radio:not(".js-order_contract_days")',this.form),t=$("input.js-order_contract_days:radio:checked",this.form).val(),this.order_period_days.val(t),e=0,o=i.length;e<o;e++)n=i[e],this.updateItemPrice($(n));return this.calculatePrice()},t.prototype.priceFormat=function(t){var e;return e=1e3<=t?(t/1).toFixed(2):t,this.config.price_format.replace(/%\{value}/g,e).replace(/%\{currency}/g,this.config.currency)},t.prototype.updateItemPrice=function(t){var e,n;if(!t.data().negotiatedPrice&&(e=$("input.js-order_contract_days:radio:checked",this.form).val(),n=t.siblings("label"),t.data().monthlyPrice))return $(".js-order_item_price",n).text(this.priceFormat(t.data().monthlyPrice[e]))},t}(),$(function(){if(0<$(".js-order").length)return new t})}.call(this);