invoice_keeper/public/assets/application-0da0ec735818df2...

8 lines
232 KiB
JavaScript

if(function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(_,e){function s(e){var t=!!e&&"length"in e&&e.length,n=he.type(e);return"function"!==n&&!he.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function t(e,n,i){if(he.isFunction(n))return he.grep(e,function(e,t){return!!n.call(e,t,e)!==i});if(n.nodeType)return he.grep(e,function(e){return e===n!==i});if("string"==typeof n){if(_e.test(n))return he.filter(n,e,i);n=he.filter(n,e)}return he.grep(e,function(e){return-1<he.inArray(e,n)!==i})}function n(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function d(e){var n={};return he.each(e.match(Oe)||[],function(e,t){n[t]=!0}),n}function r(){ie.addEventListener?(ie.removeEventListener("DOMContentLoaded",o),_.removeEventListener("load",o)):(ie.detachEvent("onreadystatechange",o),_.detachEvent("onload",o))}function o(){(ie.addEventListener||"load"===_.event.type||"complete"===ie.readyState)&&(r(),he.ready())}function l(e,t,n){if(n===undefined&&1===e.nodeType){var i="data-"+t.replace(Ye,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Ae.test(n)?he.parseJSON(n):n)}catch(r){}he.data(e,t,n)}else n=undefined}return n}function u(e){var t;for(t in e)if(("data"!==t||!he.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function i(e,t,n,i){if(Ne(e)){var r,o,a=he.expando,s=e.nodeType,l=s?he.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(i||l[u].data)||n!==undefined||"string"!=typeof t)return u||(u=s?e[a]=ne.pop()||he.guid++:a),l[u]||(l[u]=s?{}:{toJSON:he.noop}),"object"!=typeof t&&"function"!=typeof t||(i?l[u]=he.extend(l[u],t):l[u].data=he.extend(l[u].data,t)),o=l[u],i||(o.data||(o.data={}),o=o.data),n!==undefined&&(o[he.camelCase(t)]=n),"string"==typeof t?null==(r=o[t])&&(r=o[he.camelCase(t)]):r=o,r}}function a(e,t,n){if(Ne(e)){var i,r,o=e.nodeType,a=o?he.cache:e,s=o?e[he.expando]:he.expando;if(a[s]){if(t&&(i=n?a[s]:a[s].data)){r=(t=he.isArray(t)?t.concat(he.map(t,he.camelCase)):t in i?[t]:(t=he.camelCase(t))in i?[t]:t.split(" ")).length;for(;r--;)delete i[t[r]];if(n?!u(i):!he.isEmptyObject(i))return}(n||(delete a[s].data,u(a[s])))&&(o?he.cleanData([e],!0):ce.deleteExpando||a!=a.window?delete a[s]:a[s]=undefined)}}}function c(e,t,n,i){var r,o=1,a=20,s=i?function(){return i.cur()}:function(){return he.css(e,t,"")},l=s(),u=n&&n[3]||(he.cssNumber[t]?"":"px"),d=(he.cssNumber[t]||"px"!==u&&+l)&&Fe.exec(he.css(e,t));if(d&&d[3]!==u)for(u=u||d[3],n=n||[],d=+l||1;d/=o=o||".5",he.style(e,t,d+u),o!==(o=s()/l)&&1!==o&&--a;);return n&&(d=+d||+l||0,r=n[1]?d+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=d,i.end=r)),r}function g(e){var t=Ve.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function y(e,t){var n,i,r=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):undefined;if(!o)for(o=[],n=e.childNodes||e;null!=(i=n[r]);r++)!t||he.nodeName(i,t)?o.push(i):he.merge(o,y(i,t));return t===undefined||t&&he.nodeName(e,t)?he.merge([e],o):o}function v(e,t){for(var n,i=0;null!=(n=e[i]);i++)he._data(n,"globalEval",!t||he._data(t[i],"globalEval"))}function b(e){qe.test(e.type)&&(e.defaultChecked=e.checked)}function m(e,t,n,i,r){for(var o,a,s,l,u,d,c,f=e.length,h=g(t),p=[],m=0;m<f;m++)if((a=e[m])||0===a)if("object"===he.type(a))he.merge(p,a.nodeType?[a]:a);else if(Xe.test(a)){for(l=l||h.appendChild(t.createElement("div")),u=(ze.exec(a)||["",""])[1].toLowerCase(),c=Ge[u]||Ge._default,l.innerHTML=c[1]+he.htmlPrefilter(a)+c[2],o=c[0];o--;)l=l.lastChild;if(!ce.leadingWhitespace&&Ue.test(a)&&p.push(t.createTextNode(Ue.exec(a)[0])),!ce.tbody)for(o=(a="table"!==u||Qe.test(a)?"<table>"!==c[1]||Qe.test(a)?0:l:l.firstChild)&&a.childNodes.length;o--;)he.nodeName(d=a.childNodes[o],"tbody")&&!d.childNodes.length&&a.removeChild(d);for(he.merge(p,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=h.lastChild}else p.push(t.createTextNode(a));for(l&&h.removeChild(l),ce.appendChecked||he.grep(y(p,"input"),b),m=0;a=p[m++];)if(i&&-1<he.inArray(a,i))r&&r.push(a);else if(s=he.contains(a.ownerDocument,a),l=y(h.appendChild(a),"script"),s&&v(l),n)for(o=0;a=l[o++];)Be.test(a.type||"")&&n.push(a);return l=null,h}function f(){return!0}function h(){return!1}function p(){try{return ie.activeElement}catch(e){}}function w(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=undefined),t)w(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=undefined):null==r&&("string"==typeof n?(r=i,i=undefined):(r=i,i=n,n=undefined)),!1===r)r=h;else if(!r)return e;return 1===o&&(a=r,(r=function(e){return he().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=he.guid++)),e.each(function(){he.event.add(this,t,r,i,n)})}function x(e,t){return he.nodeName(e,"table")&&he.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function k(e){return e.type=(null!==he.find.attr(e,"type"))+"/"+e.type,e}function C(e){var t=st.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function S(e,t){if(1===t.nodeType&&he.hasData(e)){var n,i,r,o=he._data(e),a=he._data(t,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(i=0,r=s[n].length;i<r;i++)he.event.add(t,n,s[n][i]);a.data&&(a.data=he.extend({},a.data))}}function T(e,t){var n,i,r;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ce.noCloneEvent&&t[he.expando]){for(i in(r=he._data(t)).events)he.removeEvent(t,i,r.handle);t.removeAttribute(he.expando)}"script"===n&&t.text!==e.text?(k(t).text=e.text,C(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ce.html5Clone&&e.innerHTML&&!he.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&qe.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function D(n,i,r,o){i=oe.apply([],i);var e,t,a,s,l,u,d=0,c=n.length,f=c-1,h=i[0],p=he.isFunction(h);if(p||1<c&&"string"==typeof h&&!ce.checkClone&&at.test(h))return n.each(function(e){var t=n.eq(e);p&&(i[0]=h.call(this,e,t.html())),D(t,i,r,o)});if(c&&(e=(u=m(i,n[0].ownerDocument,!1,n,o)).firstChild,1===u.childNodes.length&&(u=e),e||o)){for(a=(s=he.map(y(u,"script"),k)).length;d<c;d++)t=u,d!==f&&(t=he.clone(t,!0,!0),a&&he.merge(s,y(t,"script"))),r.call(n[d],t,d);if(a)for(l=s[s.length-1].ownerDocument,he.map(s,C),d=0;d<a;d++)t=s[d],Be.test(t.type||"")&&!he._data(t,"globalEval")&&he.contains(l,t)&&(t.src?he._evalUrl&&he._evalUrl(t.src):he.globalEval((t.text||t.textContent||t.innerHTML||"").replace(lt,"")));u=e=null}return n}function M(e,t,n){for(var i,r=t?he.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||he.cleanData(y(i)),i.parentNode&&(n&&he.contains(i.ownerDocument,i)&&v(y(i,"script")),i.parentNode.removeChild(i));return e}function E(e,t){var n=he(t.createElement(e)).appendTo(t.body),i=he.css(n[0],"display");return n.detach(),i}function O(e){var t=ie,n=ct[e];return n||("none"!==(n=E(e,t))&&n||((t=((dt=(dt||he("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||dt[0].contentDocument).document).write(),t.close(),n=E(e,t),dt.detach()),ct[e]=n),n}function j(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function N(e){if(e in Tt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=St.length;n--;)if((e=St[n]+t)in Tt)return e}function A(e,t){for(var n,i,r,o=[],a=0,s=e.length;a<s;a++)(i=e[a]).style&&(o[a]=he._data(i,"olddisplay"),n=i.style.display,t?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&Re(i)&&(o[a]=he._data(i,"olddisplay",O(i.nodeName)))):(r=Re(i),(n&&"none"!==n||!r)&&he._data(i,"olddisplay",r?n:he.css(i,"display"))));for(a=0;a<s;a++)(i=e[a]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[a]||"":"none"));return e}function Y(e,t,n){var i=kt.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function P(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=he.css(e,n+$e[o],!0,r)),i?("content"===n&&(a-=he.css(e,"padding"+$e[o],!0,r)),"margin"!==n&&(a-=he.css(e,"border"+$e[o]+"Width",!0,r))):(a+=he.css(e,"padding"+$e[o],!0,r),"padding"!==n&&(a+=he.css(e,"border"+$e[o]+"Width",!0,r)));return a}function L(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=gt(e),a=ce.boxSizing&&"border-box"===he.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(((r=yt(e,t,o))<0||null==r)&&(r=e.style[t]),ht.test(r))return r;i=a&&(ce.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+P(e,t,n||(a?"border":"content"),i,o)+"px"}function H(e,t,n,i,r){return new H.prototype.init(e,t,n,i,r)}function W(){return _.setTimeout(function(){Dt=undefined}),Dt=he.now()}function F(e,t){var n,i={height:e},r=0;for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=$e[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function $(e,t,n){for(var i,r=(q.tweeners[t]||[]).concat(q.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function R(t,e,n){var i,r,o,a,s,l,u,d=this,c={},f=t.style,h=t.nodeType&&Re(t),p=he._data(t,"fxshow");for(i in n.queue||(null==(s=he._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,he.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],"inline"===("none"===(u=he.css(t,"display"))?he._data(t,"olddisplay")||O(t.nodeName):u)&&"none"===he.css(t,"float")&&(ce.inlineBlockNeedsLayout&&"inline"!==O(t.nodeName)?f.zoom=1:f.display="inline-block")),n.overflow&&(f.overflow="hidden",ce.shrinkWrapBlocks()||d.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),e)if(r=e[i],Yt.exec(r)){if(delete e[i],o=o||"toggle"===r,r===(h?"hide":"show")){if("show"!==r||!p||p[i]===undefined)continue;h=!0}c[i]=p&&p[i]||he.style(t,i)}else u=undefined;if(he.isEmptyObject(c))"inline"===("none"===u?O(t.nodeName):u)&&(f.display=u);else for(i in p?"hidden"in p&&(h=p.hidden):p=he._data(t,"fxshow",{}),o&&(p.hidden=!h),h?he(t).show():d.done(function(){he(t).hide()}),d.done(function(){var e;for(e in he._removeData(t,"fxshow"),c)he.style(t,e,c[e])}),c)a=$(h?p[i]:0,i,d),i in p||(p[i]=a.start,h&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}function I(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=he.camelCase(n)],o=e[n],he.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=he.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}function q(o,e,t){var n,a,i=0,r=q.prefilters.length,s=he.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var e=Dt||W(),t=Math.max(0,u.startTime+u.duration-e),n=1-(t/u.duration||0),i=0,r=u.tweens.length;i<r;i++)u.tweens[i].run(n);return s.notifyWith(o,[u,n,t]),n<1&&r?t:(s.resolveWith(o,[u]),!1)},u=s.promise({elem:o,props:he.extend({},e),opts:he.extend(!0,{specialEasing:{},easing:he.easing._default},t),originalProperties:e,originalOptions:t,startTime:Dt||W(),duration:t.duration,tweens:[],createTween:function(e,t){var n=he.Tween(o,u.opts,e,t,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var t=0,n=e?u.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)u.tweens[t].run(1);return e?(s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u,e])):s.rejectWith(o,[u,e]),this}}),d=u.props;for(I(d,u.opts.specialEasing);i<r;i++)if(n=q.prefilters[i].call(u,o,d,u.opts))return he.isFunction(n.stop)&&(he._queueHooks(u.elem,u.opts.queue).stop=he.proxy(n.stop,n)),n;return he.map(d,$,u),he.isFunction(u.opts.start)&&u.opts.start.call(o,u),he.fx.timer(he.extend(l,{elem:o,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function z(e){return he.attr(e,"class")||""}function B(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,r=e.toLowerCase().match(Oe)||[];if(he.isFunction(t))for(;n=r[i++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function U(t,r,o,a){function s(e){var i;return l[e]=!0,he.each(t[e]||[],function(e,t){var n=t(r,o,a);return"string"!=typeof n||u||l[n]?u?!(i=n):void 0:(r.dataTypes.unshift(n),s(n),!1)}),i}var l={},u=t===an;return s(r.dataTypes[0])||!l["*"]&&s("*")}function V(e,t){var n,i,r=he.ajaxSettings.flatOptions||{};for(i in t)t[i]!==undefined&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&he.extend(!0,e,n),e}function G(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),r===undefined&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}i||(i=a)}o=o||i}if(o)return o!==l[0]&&l.unshift(o),n[o]}function X(e,t,n,i){var r,o,a,s,l,u={},d=e.dataTypes.slice();if(d[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=d.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=d.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],d.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(c){return{state:"parsererror",error:a?c:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}function Q(e){return e.style&&e.style.display||he.css(e,"display")}function Z(e){if(!he.contains(e.ownerDocument||ie,e))return!0;for(;e&&1===e.nodeType;){if("none"===Q(e)||"hidden"===e.type)return!0;e=e.parentNode}return!1}function J(n,e,i,r){var t;if(he.isArray(e))he.each(e,function(e,t){i||cn.test(n)?r(n,t):J(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,i,r)});else if(i||"object"!==he.type(e))r(n,e);else for(t in e)J(n+"["+t+"]",e[t],i,r)}function K(){try{return new _.XMLHttpRequest}catch(e){}}function ee(){try{return new _.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function te(e){return he.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var ne=[],ie=_.document,re=ne.slice,oe=ne.concat,ae=ne.push,se=ne.indexOf,le={},ue=le.toString,de=le.hasOwnProperty,ce={},fe="1.12.4",he=function(e,t){return new he.fn.init(e,t)},pe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,me=/^-ms-/,ge=/-([\da-z])/gi,ye=function(e,t){return t.toUpperCase()};he.fn=he.prototype={jquery:fe,constructor:he,selector:"",length:0,toArray:function(){return re.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:re.call(this)},pushStack:function(e){var t=he.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return he.each(this,e)},map:function(n){return this.pushStack(he.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(re.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ae,sort:ne.sort,splice:ne.splice},he.extend=he.fn.extend=function(e){var t,n,i,r,o,a,s=e||{},l=1,u=arguments.length,d=!1;for("boolean"==typeof s&&(d=s,s=arguments[l]||{},l++),"object"==typeof s||he.isFunction(s)||(s={}),l===u&&(s=this,l--);l<u;l++)if(null!=(o=arguments[l]))for(r in o)t=s[r],s!==(i=o[r])&&(d&&i&&(he.isPlainObject(i)||(n=he.isArray(i)))?(n?(n=!1,a=t&&he.isArray(t)?t:[]):a=t&&he.isPlainObject(t)?t:{},s[r]=he.extend(d,a,i)):i!==undefined&&(s[r]=i));return s},he.extend({expando:"jQuery"+(fe+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===he.type(e)},isArray:Array.isArray||function(e){return"array"===he.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!he.isArray(e)&&0<=t-parseFloat(t)+1},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==he.type(e)||e.nodeType||he.isWindow(e))return!1;try{if(e.constructor&&!de.call(e,"constructor")&&!de.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!ce.ownFirst)for(t in e)return de.call(e,t);for(t in e);return t===undefined||de.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?le[ue.call(e)]||"object":typeof e},globalEval:function(e){e&&he.trim(e)&&(_.execScript||function(e){_.eval.call(_,e)})(e)},camelCase:function(e){return e.replace(me,"ms-").replace(ge,ye)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(s(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(pe,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(s(Object(e))?he.merge(n,"string"==typeof e?[e]:e):ae.call(n,e)),n},inArray:function(e,t,n){var i;if(t){if(se)return se.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;)e[r++]=t[i++];if(n!=n)for(;t[i]!==undefined;)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!==a&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,a=[];if(s(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&a.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&a.push(r);return oe.apply([],a)},guid:1,proxy:function(e,t){var n,i,r;return"string"==typeof t&&(r=e[t],t=e,e=r),he.isFunction(e)?(n=re.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(re.call(arguments)))}).guid=e.guid=e.guid||he.guid++,i):undefined},now:function(){return+new Date},support:ce}),"function"==typeof Symbol&&(he.fn[Symbol.iterator]=ne[Symbol.iterator]),he.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){le["[object "+t+"]"]=t.toLowerCase()});var ve=function(n){function w(e,t,n,i){var r,o,a,s,l,u,d,c,f=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!i&&((t?t.ownerDocument||t:$)!==N&&j(t),t=t||N,Y)){if(11!==h&&(u=ye.exec(e)))if(r=u[1]){if(9===h){if(!(a=t.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(f&&(a=f.getElementById(r))&&W(t,a)&&a.id===r)return n.push(a),n}else{if(u[2])return J.apply(n,t.getElementsByTagName(e)),n;if((r=u[3])&&y.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(r)),n}if(y.qsa&&!B[e+" "]&&(!P||!P.test(e))){if(1!==h)f=t,c=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(be,"\\$&"):t.setAttribute("id",s=F),o=(d=S(e)).length,l=fe.test(s)?"#"+s:"[id='"+s+"']";o--;)d[o]=l+" "+g(d[o]);c=d.join(","),f=ve.test(e)&&m(t.parentNode)||t}if(c)try{return J.apply(n,f.querySelectorAll(c)),n}catch(p){}finally{s===F&&t.removeAttribute("id")}}}return D(e.replace(se,"$1"),t,n,i)}function e(){function n(e,t){return i.push(e+" ")>k.cacheLength&&delete n[i.shift()],n[e+" "]=t}var i=[];return n}function l(e){return e[F]=!0,e}function r(e){var t=N.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function t(e,t){for(var n=e.split("|"),i=n.length;i--;)k.attrHandle[n[i]]=t}function u(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function i(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function o(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function a(a){return l(function(o){return o=+o,l(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function m(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function s(){}function g(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function c(s,e,t){var l=e.dir,u=t&&"parentNode"===l,d=I++;return e.first?function(e,t,n){for(;e=e[l];)if(1===e.nodeType||u)return s(e,t,n)}:function(e,t,n){var i,r,o,a=[R,d];if(n){for(;e=e[l];)if((1===e.nodeType||u)&&s(e,t,n))return!0}else for(;e=e[l];)if(1===e.nodeType||u){if((i=(r=(o=e[F]||(e[F]={}))[e.uniqueID]||(o[e.uniqueID]={}))[l])&&i[0]===R&&i[1]===d)return a[2]=i[2];if((r[l]=a)[2]=s(e,t,n))return!0}}}function f(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function v(e,t,n){for(var i=0,r=t.length;i<r;i++)w(e,t[i],n);return n}function x(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),u&&t.push(s)));return a}function b(h,p,m,g,y,e){return g&&!g[F]&&(g=b(g)),y&&!y[F]&&(y=b(y,e)),l(function(e,t,n,i){var r,o,a,s=[],l=[],u=t.length,d=e||v(p||"*",n.nodeType?[n]:n,[]),c=!h||!e&&p?d:x(d,s,h,n,i),f=m?y||(e?h:u||g)?[]:t:c;if(m&&m(c,f,n,i),g)for(r=x(f,l),g(r,[],n,i),o=r.length;o--;)(a=r[o])&&(f[l[o]]=!(c[l[o]]=a));if(e){if(y||h){if(y){for(r=[],o=f.length;o--;)(a=f[o])&&r.push(c[o]=a);y(null,f=[],r,i)}for(o=f.length;o--;)(a=f[o])&&-1<(r=y?ee(e,a):s[o])&&(e[r]=!(t[r]=a))}}else f=x(f===t?f.splice(u,f.length):f),y?y(null,t,f,i):J.apply(t,f)})}function h(e){for(var r,t,n,i=e.length,o=k.relative[e[0].type],a=o||k.relative[" "],s=o?1:0,l=c(function(e){return e===r},a,!0),u=c(function(e){return-1<ee(r,e)},a,!0),d=[function(e,t,n){var i=!o&&(n||t!==M)||((r=t).nodeType?l(e,t,n):u(e,t,n));return r=null,i}];s<i;s++)if(t=k.relative[e[s].type])d=[c(f(d),t)];else{if((t=k.filter[e[s].type].apply(null,e[s].matches))[F]){for(n=++s;n<i&&!k.relative[e[n].type];n++);return b(1<s&&f(d),1<s&&g(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),t,s<n&&h(e.slice(s,n)),n<i&&h(e=e.slice(n)),n<i&&g(e))}d.push(t)}return f(d)}function d(g,y){var v=0<y.length,b=0<g.length,e=function(e,t,n,i,r){var o,a,s,l=0,u="0",d=e&&[],c=[],f=M,h=e||b&&k.find.TAG("*",r),p=R+=null==f?1:Math.random()||.1,m=h.length;for(r&&(M=t===N||t||r);u!==m&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument===N||(j(o),n=!Y);s=g[a++];)if(s(o,t||N,n)){i.push(o);break}r&&(R=p)}v&&((o=!s&&o)&&l--,e&&d.push(o))}if(l+=u,v&&u!==l){for(a=0;s=y[a++];)s(d,c,t,n);if(e){if(0<l)for(;u--;)d[u]||c[u]||(c[u]=Q.call(i));c=x(c)}J.apply(i,c),r&&!e&&0<c.length&&1<l+y.length&&w.uniqueSort(i)}return r&&(R=p,M=f),d};return v?l(e):e}var p,y,k,_,C,S,T,D,M,E,O,j,N,A,Y,P,L,H,W,F="sizzle"+1*new Date,$=n.document,R=0,I=0,q=e(),z=e(),B=e(),U=function(e,t){return e===t&&(O=!0),0},V=1<<31,G={}.hasOwnProperty,X=[],Q=X.pop,Z=X.push,J=X.push,K=X.slice,ee=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",re="\\["+ne+"*("+ie+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+ne+"*\\]",oe=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+re+")*)|.*)\\)|)",ae=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),le=new RegExp("^"+ne+"*,"+ne+"*"),ue=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),de=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),ce=new RegExp(oe),fe=new RegExp("^"+ie+"$"),he={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie+"|[*])"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,be=/'|\\/g,we=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),xe=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ke=function(){j()};try{J.apply(X=K.call($.childNodes),$.childNodes),X[$.childNodes.length].nodeType}catch(_e){J={apply:X.length?function(e,t){Z.apply(e,K.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}for(p in y=w.support={},C=w.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},j=w.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:$;return i!==N&&9===i.nodeType&&i.documentElement&&(A=(N=i).documentElement,Y=!C(N),(n=N.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",ke,!1):n.attachEvent&&n.attachEvent("onunload",ke)),y.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),y.getElementsByTagName=r(function(e){return e.appendChild(N.createComment("")),!e.getElementsByTagName("*").length}),y.getElementsByClassName=ge.test(N.getElementsByClassName),y.getById=r(function(e){return A.appendChild(e).id=F,!N.getElementsByName||!N.getElementsByName(F).length}),y.getById?(k.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&Y){var n=t.getElementById(e);return n?[n]:[]}},k.filter.ID=function(e){var t=e.replace(we,xe);return function(e){return e.getAttribute("id")===t}}):(delete k.find.ID,k.filter.ID=function(e){var n=e.replace(we,xe);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}}),k.find.TAG=y.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):y.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},k.find.CLASS=y.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&Y)return t.getElementsByClassName(e)},L=[],P=[],(y.qsa=ge.test(N.querySelectorAll))&&(r(function(e){A.appendChild(e).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&P.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||P.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+F+"-]").length||P.push("~="),e.querySelectorAll(":checked").length||P.push(":checked"),e.querySelectorAll("a#"+F+"+*").length||P.push(".#.+[+~]")}),r(function(e){var t=N.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&P.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||P.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),P.push(",.*:")})),(y.matchesSelector=ge.test(H=A.matches||A.webkitMatchesSelector||A.mozMatchesSelector||A.oMatchesSelector||A.msMatchesSelector))&&r(function(e){y.disconnectedMatch=H.call(e,"div"),H.call(e,"[s!='']:x"),L.push("!=",oe)}),P=P.length&&new RegExp(P.join("|")),L=L.length&&new RegExp(L.join("|")),t=ge.test(A.compareDocumentPosition),W=t||ge.test(A.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return O=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!y.sortDetached&&t.compareDocumentPosition(e)===n?e===N||e.ownerDocument===$&&W($,e)?-1:t===N||t.ownerDocument===$&&W($,t)?1:E?ee(E,e)-ee(E,t):0:4&n?-1:1)}:function(e,t){if(e===t)return O=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e===N?-1:t===N?1:r?-1:o?1:E?ee(E,e)-ee(E,t):0;if(r===o)return u(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?u(a[i],s[i]):a[i]===$?-1:s[i]===$?1:0}),N},w.matches=function(e,t){return w(e,null,null,t)},w.matchesSelector=function(e,t){if((e.ownerDocument||e)!==N&&j(e),t=t.replace(de,"='$1']"),y.matchesSelector&&Y&&!B[t+" "]&&(!L||!L.test(t))&&(!P||!P.test(t)))try{var n=H.call(e,t);if(n||y.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(_e){}return 0<w(t,N,null,[e]).length},w.contains=function(e,t){return(e.ownerDocument||e)!==N&&j(e),W(e,t)},w.attr=function(e,t){(e.ownerDocument||e)!==N&&j(e);var n=k.attrHandle[t.toLowerCase()],i=n&&G.call(k.attrHandle,t.toLowerCase())?n(e,t,!Y):undefined;return i!==undefined?i:y.attributes||!Y?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},w.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},w.uniqueSort=function(e){var t,n=[],i=0,r=0;if(O=!y.detectDuplicates,E=!y.sortStable&&e.slice(0),e.sort(U),O){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return E=null,e},_=w.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=_(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=_(t);return n},(k=w.selectors={cacheLength:50,createPseudo:l,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(we,xe),e[3]=(e[3]||e[4]||e[5]||"").replace(we,xe),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||w.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&w.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=S(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(we,xe).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=q[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&q(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=w.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1<t.indexOf(r):"$="===i?r&&t.slice(-r.length)===r:"~="===i?-1<(" "+t.replace(ae," ")+" ").indexOf(r):"|="===i&&(t===r||t.slice(0,r.length+1)===r+"-"))}},CHILD:function(p,e,t,m,g){var y="nth"!==p.slice(0,3),v="last"!==p.slice(-4),b="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,l,u=y!==v?"nextSibling":"previousSibling",d=e.parentNode,c=b&&e.nodeName.toLowerCase(),f=!n&&!b,h=!1;if(d){if(y){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===c:1===a.nodeType)return!1;l=u="only"===p&&!l&&"nextSibling"}return!0}if(l=[v?d.firstChild:d.lastChild],v&&f){for(h=(s=(i=(r=(o=(a=d)[F]||(a[F]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]||[])[0]===R&&i[1])&&i[2],a=s&&d.childNodes[s];a=++s&&a&&a[u]||(h=s=0)||l.pop();)if(1===a.nodeType&&++h&&a===e){r[p]=[R,s,h];break}}else if(f&&(h=s=(i=(r=(o=(a=e)[F]||(a[F]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]||[])[0]===R&&i[1]),!1===h)for(;(a=++s&&a&&a[u]||(h=s=0)||l.pop())&&((b?a.nodeName.toLowerCase()!==c:1!==a.nodeType)||!++h||(f&&((r=(o=a[F]||(a[F]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]=[R,h]),a!==e)););return(h-=g)===m||h%m==0&&0<=h/m}}},PSEUDO:function(e,o){var t,a=k.pseudos[e]||k.setFilters[e.toLowerCase()]||w.error("unsupported pseudo: "+e);return a[F]?a(o):1<a.length?(t=[e,e,"",o],k.setFilters.hasOwnProperty(e.toLowerCase())?l(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=ee(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{
not:l(function(e){var i=[],r=[],s=T(e.replace(se,"$1"));return s[F]?l(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:l(function(t){return function(e){return 0<w(t,e).length}}),contains:l(function(t){return t=t.replace(we,xe),function(e){return-1<(e.textContent||e.innerText||_(e)).indexOf(t)}}),lang:l(function(n){return fe.test(n||"")||w.error("unsupported lang: "+n),n=n.replace(we,xe).toLowerCase(),function(e){var t;do{if(t=Y?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===A},focus:function(e){return e===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!k.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:a(function(){return[0]}),last:a(function(e,t){return[t-1]}),eq:a(function(e,t,n){return[n<0?n+t:n]}),even:a(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:a(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:a(function(e,t,n){for(var i=n<0?n+t:n;0<=--i;)e.push(i);return e}),gt:a(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=k.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[p]=i(p);for(p in{submit:!0,reset:!0})k.pseudos[p]=o(p);return s.prototype=k.filters=k.pseudos,k.setFilters=new s,S=w.tokenize=function(e,t){var n,i,r,o,a,s,l,u=z[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],l=k.preFilter;a;){for(o in n&&!(i=le.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=ue.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(se," ")}),a=a.slice(n.length)),k.filter)!(i=he[o].exec(a))||l[o]&&!(i=l[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?w.error(e):z(e,s).slice(0)},T=w.compile=function(e,t){var n,i=[],r=[],o=B[e+" "];if(!o){for(t||(t=S(e)),n=t.length;n--;)(o=h(t[n]))[F]?i.push(o):r.push(o);(o=B(e,d(r,i))).selector=e}return o},D=w.select=function(e,t,n,i){var r,o,a,s,l,u="function"==typeof e&&e,d=!i&&S(e=u.selector||e);if(n=n||[],1===d.length){if(2<(o=d[0]=d[0].slice(0)).length&&"ID"===(a=o[0]).type&&y.getById&&9===t.nodeType&&Y&&k.relative[o[1].type]){if(!(t=(k.find.ID(a.matches[0].replace(we,xe),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=he.needsContext.test(e)?0:o.length;r--&&(a=o[r],!k.relative[s=a.type]);)if((l=k.find[s])&&(i=l(a.matches[0].replace(we,xe),ve.test(o[0].type)&&m(t.parentNode)||t))){if(o.splice(r,1),!(e=i.length&&g(o)))return J.apply(n,i),n;break}}return(u||T(e,d))(i,t,!Y,n,!t||ve.test(e)&&m(t.parentNode)||t),n},y.sortStable=F.split("").sort(U).join("")===F,y.detectDuplicates=!!O,j(),y.sortDetached=r(function(e){return 1&e.compareDocumentPosition(N.createElement("div"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||t("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),y.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||t("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||t(te,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),w}(_);he.find=ve,he.expr=ve.selectors,he.expr[":"]=he.expr.pseudos,he.uniqueSort=he.unique=ve.uniqueSort,he.text=ve.getText,he.isXMLDoc=ve.isXML,he.contains=ve.contains;var be=function(e,t,n){for(var i=[],r=n!==undefined;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&he(e).is(n))break;i.push(e)}return i},we=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},xe=he.expr.match.needsContext,ke=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,_e=/^.[^:#\[\.,]*$/;he.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?he.find.matchesSelector(i,e)?[i]:[]:he.find.matches(e,he.grep(t,function(e){return 1===e.nodeType}))},he.fn.extend({find:function(e){var t,n=[],i=this,r=i.length;if("string"!=typeof e)return this.pushStack(he(e).filter(function(){for(t=0;t<r;t++)if(he.contains(i[t],this))return!0}));for(t=0;t<r;t++)he.find(e,i[t],n);return(n=this.pushStack(1<r?he.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(t(this,e||[],!1))},not:function(e){return this.pushStack(t(this,e||[],!0))},is:function(e){return!!t(this,"string"==typeof e&&xe.test(e)?he(e):e||[],!1).length}});var Ce,Se=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(he.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||Ce,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):he.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(he):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),he.makeArray(e,this));if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Se.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof he?t[0]:t,he.merge(this,he.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:ie,!0)),ke.test(i[1])&&he.isPlainObject(t))for(i in t)he.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((r=ie.getElementById(i[2]))&&r.parentNode){if(r.id!==i[2])return Ce.find(e);this.length=1,this[0]=r}return this.context=ie,this.selector=e,this}).prototype=he.fn,Ce=he(ie);var Te=/^(?:parents|prev(?:Until|All))/,De={children:!0,contents:!0,next:!0,prev:!0};he.fn.extend({has:function(e){var t,n=he(e,this),i=n.length;return this.filter(function(){for(t=0;t<i;t++)if(he.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,r=this.length,o=[],a=xe.test(e)||"string"!=typeof e?he(e,t||this.context):0;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&he.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?he.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?he.inArray(this[0],he(e)):he.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(he.uniqueSort(he.merge(this.get(),he(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),he.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return be(e,"parentNode")},parentsUntil:function(e,t,n){return be(e,"parentNode",n)},next:function(e){return n(e,"nextSibling")},prev:function(e){return n(e,"previousSibling")},nextAll:function(e){return be(e,"nextSibling")},prevAll:function(e){return be(e,"previousSibling")},nextUntil:function(e,t,n){return be(e,"nextSibling",n)},prevUntil:function(e,t,n){return be(e,"previousSibling",n)},siblings:function(e){return we((e.parentNode||{}).firstChild,e)},children:function(e){return we(e.firstChild)},contents:function(e){return he.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:he.merge([],e.childNodes)}},function(i,r){he.fn[i]=function(e,t){var n=he.map(this,r,e);return"Until"!==i.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=he.filter(t,n)),1<this.length&&(De[i]||(n=he.uniqueSort(n)),Te.test(i)&&(n=n.reverse())),this.pushStack(n)}});var Me,Ee,Oe=/\S+/g;for(Ee in he.Callbacks=function(i){i="string"==typeof i?d(i):he.extend({},i);var r,e,t,n,o=[],a=[],s=-1,l=function(){for(n=i.once,t=r=!0;a.length;s=-1)for(e=a.shift();++s<o.length;)!1===o[s].apply(e[0],e[1])&&i.stopOnFalse&&(s=o.length,e=!1);i.memory||(e=!1),r=!1,n&&(o=e?[]:"")},u={add:function(){return o&&(e&&!r&&(s=o.length-1,a.push(e)),function n(e){he.each(e,function(e,t){he.isFunction(t)?i.unique&&u.has(t)||o.push(t):t&&t.length&&"string"!==he.type(t)&&n(t)})}(arguments),e&&!r&&l()),this},remove:function(){return he.each(arguments,function(e,t){for(var n;-1<(n=he.inArray(t,o,n));)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?-1<he.inArray(e,o):0<o.length},empty:function(){return o&&(o=[]),this},disable:function(){return n=a=[],o=e="",this},disabled:function(){return!o},lock:function(){return n=!0,e||u.disable(),this},locked:function(){return!!n},fireWith:function(e,t){return n||(t=[e,(t=t||[]).slice?t.slice():t],a.push(t),r||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!t}};return u},he.extend({Deferred:function(e){var o=[["resolve","done",he.Callbacks("once memory"),"resolved"],["reject","fail",he.Callbacks("once memory"),"rejected"],["notify","progress",he.Callbacks("memory")]],r="pending",a={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var r=arguments;return he.Deferred(function(i){he.each(o,function(e,t){var n=he.isFunction(r[e])&&r[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&he.isFunction(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this===a?i.promise():this,n?[e]:arguments)})}),r=null}).promise()},promise:function(e){return null!=e?he.extend(e,a):a}},s={};return a.pipe=a.then,he.each(o,function(e,t){var n=t[2],i=t[3];a[t[1]]=n.add,i&&n.add(function(){r=i},o[1^e][2].disable,o[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?a:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var r,t,n,i=0,o=re.call(arguments),a=o.length,s=1!==a||e&&he.isFunction(e.promise)?a:0,l=1===s?e:he.Deferred(),u=function(t,n,i){return function(e){n[t]=this,i[t]=1<arguments.length?re.call(arguments):e,i===r?l.notifyWith(n,i):--s||l.resolveWith(n,i)}};if(1<a)for(r=new Array(a),t=new Array(a),n=new Array(a);i<a;i++)o[i]&&he.isFunction(o[i].promise)?o[i].promise().progress(u(i,t,r)).done(u(i,n,o)).fail(l.reject):--s;return s||l.resolveWith(n,o),l.promise()}}),he.fn.ready=function(e){return he.ready.promise().done(e),this},he.extend({isReady:!1,readyWait:1,holdReady:function(e){e?he.readyWait++:he.ready(!0)},ready:function(e){(!0===e?--he.readyWait:he.isReady)||(he.isReady=!0)!==e&&0<--he.readyWait||(Me.resolveWith(ie,[he]),he.fn.triggerHandler&&(he(ie).triggerHandler("ready"),he(ie).off("ready")))}}),he.ready.promise=function(e){if(!Me)if(Me=he.Deferred(),"complete"===ie.readyState||"loading"!==ie.readyState&&!ie.documentElement.doScroll)_.setTimeout(he.ready);else if(ie.addEventListener)ie.addEventListener("DOMContentLoaded",o),_.addEventListener("load",o);else{ie.attachEvent("onreadystatechange",o),_.attachEvent("onload",o);var t=!1;try{t=null==_.frameElement&&ie.documentElement}catch(n){}t&&t.doScroll&&function i(){if(!he.isReady){try{t.doScroll("left")}catch(n){return _.setTimeout(i,50)}r(),he.ready()}}()}return Me.promise(e)},he.ready.promise(),he(ce))break;ce.ownFirst="0"===Ee,ce.inlineBlockNeedsLayout=!1,he(function(){var e,t,n,i;(n=ie.getElementsByTagName("body")[0])&&n.style&&(t=ie.createElement("div"),(i=ie.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ce.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(i))}),function(){var e=ie.createElement("div");ce.deleteExpando=!0;try{delete e.test}catch(t){ce.deleteExpando=!1}e=null}();var je,Ne=function(e){var t=he.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)},Ae=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ye=/([A-Z])/g;he.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?he.cache[e[he.expando]]:e[he.expando])&&!u(e)},data:function(e,t,n){return i(e,t,n)},removeData:function(e,t){return a(e,t)},_data:function(e,t,n){return i(e,t,n,!0)},_removeData:function(e,t){return a(e,t,!0)}}),he.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(e!==undefined)return"object"==typeof e?this.each(function(){he.data(this,e)}):1<arguments.length?this.each(function(){he.data(this,e,t)}):o?l(o,e,he.data(o,e)):undefined;if(this.length&&(r=he.data(o),1===o.nodeType&&!he._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&l(o,i=he.camelCase(i.slice(5)),r[i]);he._data(o,"parsedAttrs",!0)}return r},removeData:function(e){return this.each(function(){he.removeData(this,e)})}}),he.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=he._data(e,t),n&&(!i||he.isArray(n)?i=he._data(e,t,he.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=he.queue(e,t),i=n.length,r=n.shift(),o=he._queueHooks(e,t),a=function(){he.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return he._data(e,n)||he._data(e,n,{empty:he.Callbacks("once memory").add(function(){he._removeData(e,t+"queue"),he._removeData(e,n)})})}}),he.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?he.queue(this[0],t):n===undefined?this:this.each(function(){var e=he.queue(this,t,n);he._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&he.dequeue(this,t)})},dequeue:function(e){return this.each(function(){he.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=he.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=undefined),e=e||"fx";a--;)(n=he._data(o[a],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}}),ce.shrinkWrapBlocks=function(){return null!=je?je:(je=!1,(t=ie.getElementsByTagName("body")[0])&&t.style?(e=ie.createElement("div"),(n=ie.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(ie.createElement("div")).style.width="5px",je=3!==e.offsetWidth),t.removeChild(n),je):void 0);var e,t,n};var Pe,Le,He,We=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Fe=new RegExp("^(?:([+-])=|)("+We+")([a-z%]*)$","i"),$e=["Top","Right","Bottom","Left"],Re=function(e,t){return e=t||e,"none"===he.css(e,"display")||!he.contains(e.ownerDocument,e)},Ie=function(e,t,n,i,r,o,a){var s=0,l=e.length,u=null==n;if("object"===he.type(n))for(s in r=!0,n)Ie(e,t,s,n[s],!0,o,a);else if(i!==undefined&&(r=!0,he.isFunction(i)||(a=!0),u&&(a?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(he(e),n)})),t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:u?t.call(e):l?t(e[0],n):o},qe=/^(?:checkbox|radio)$/i,ze=/<([\w:-]+)/,Be=/^$|\/(?:java|ecma)script/i,Ue=/^\s+/,Ve="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";Pe=ie.createElement("div"),Le=ie.createDocumentFragment(),He=ie.createElement("input"),Pe.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ce.leadingWhitespace=3===Pe.firstChild.nodeType,ce.tbody=!Pe.getElementsByTagName("tbody").length,ce.htmlSerialize=!!Pe.getElementsByTagName("link").length,ce.html5Clone="<:nav></:nav>"!==ie.createElement("nav").cloneNode(!0).outerHTML,He.type="checkbox",He.checked=!0,Le.appendChild(He),ce.appendChecked=He.checked,Pe.innerHTML="<textarea>x</textarea>",ce.noCloneChecked=!!Pe.cloneNode(!0).lastChild.defaultValue,Le.appendChild(Pe),(He=ie.createElement("input")).setAttribute("type","radio"),He.setAttribute("checked","checked"),He.setAttribute("name","t"),Pe.appendChild(He),ce.checkClone=Pe.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.noCloneEvent=!!Pe.addEventListener,Pe[he.expando]=1,ce.attributes=!Pe.getAttribute(he.expando);var Ge={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ce.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};Ge.optgroup=Ge.option,Ge.tbody=Ge.tfoot=Ge.colgroup=Ge.caption=Ge.thead,Ge.th=Ge.td;var Xe=/<|&#?\w+;/,Qe=/<tbody/i;!function(){var e,t,n=ie.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(ce[e]=t in _)||(n.setAttribute(t,"t"),ce[e]=!1===n.attributes[t].expando);n=null}();var Ze=/^(?:input|select|textarea)$/i,Je=/^key/,Ke=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,et=/^(?:focusinfocus|focusoutblur)$/,tt=/^([^.]*)(?:\.(.+)|)/;he.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,u,d,c,f,h,p,m,g=he._data(e);if(g){for(n.handler&&(n=(l=n).handler,r=l.selector),n.guid||(n.guid=he.guid++),(a=g.events)||(a=g.events={}),(d=g.handle)||((d=g.handle=function(e){return void 0===he||e&&he.event.triggered===e.type?undefined:he.event.dispatch.apply(d.elem,arguments)}).elem=e),s=(t=(t||"").match(Oe)||[""]).length;s--;)h=m=(o=tt.exec(t[s])||[])[1],p=(o[2]||"").split(".").sort(),h&&(u=he.event.special[h]||{},h=(r?u.delegateType:u.bindType)||h,u=he.event.special[h]||{},c=he.extend({type:h,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&he.expr.match.needsContext.test(r),namespace:p.join(".")},l),(f=a[h])||((f=a[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,i,p,d)||(e.addEventListener?e.addEventListener(h,d,!1):e.attachEvent&&e.attachEvent("on"+h,d))),u.add&&(u.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),he.event.global[h]=!0);e=null}},remove:function(e,t,n,i,r){var o,a,s,l,u,d,c,f,h,p,m,g=he.hasData(e)&&he._data(e);if(g&&(d=g.events)){for(u=(t=(t||"").match(Oe)||[""]).length;u--;)if(h=m=(s=tt.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h){for(c=he.event.special[h]||{},f=d[h=(i?c.delegateType:c.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;o--;)a=f[o],!r&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||i&&i!==a.selector&&("**"!==i||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,c.remove&&c.remove.call(e,a));l&&!f.length&&(c.teardown&&!1!==c.teardown.call(e,p,g.handle)||he.removeEvent(e,h,g.handle),delete d[h])}else for(h in d)he.event.remove(e,h+t[u],n,i,!0);he.isEmptyObject(d)&&(delete g.handle,he._removeData(e,"events"))}},trigger:function(e,t,n,i){var r,o,a,s,l,u,d,c=[n||ie],f=de.call(e,"type")?e.type:e,h=de.call(e,"namespace")?e.namespace.split("."):[];if(a=u=n=n||ie,3!==n.nodeType&&8!==n.nodeType&&!et.test(f+he.event.triggered)&&(-1<f.indexOf(".")&&(f=(h=f.split(".")).shift(),h.sort()),o=f.indexOf(":")<0&&"on"+f,(e=e[he.expando]?e:new he.Event(f,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=undefined,e.target||(e.target=n),t=null==t?[e]:he.makeArray(t,[e]),l=he.event.special[f]||{},i||!l.trigger||!1!==l.trigger.apply(n,t))){if(!i&&!l.noBubble&&!he.isWindow(n)){for(s=l.delegateType||f,et.test(s+f)||(a=a.parentNode);a;a=a.parentNode)c.push(a),u=a;u===(n.ownerDocument||ie)&&c.push(u.defaultView||u.parentWindow||_)}for(d=0;(a=c[d++])&&!e.isPropagationStopped();)e.type=1<d?s:l.bindType||f,(r=(he._data(a,"events")||{})[e.type]&&he._data(a,"handle"))&&r.apply(a,t),(r=o&&a[o])&&r.apply&&Ne(a)&&(e.result=r.apply(a,t),!1===e.result&&e.preventDefault());if(e.type=f,!i&&!e.isDefaultPrevented()&&(!l._default||!1===l._default.apply(c.pop(),t))&&Ne(n)&&o&&n[f]&&!he.isWindow(n)){(u=n[o])&&(n[o]=null),he.event.triggered=f;try{n[f]()}catch(p){}he.event.triggered=undefined,u&&(n[o]=u)}return e.result}},dispatch:function(e){e=he.event.fix(e);var t,n,i,r,o,a=[],s=re.call(arguments),l=(he._data(this,"events")||{})[e.type]||[],u=he.event.special[e.type]||{};if((s[0]=e).delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(a=he.event.handlers.call(this,e,l),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,(i=((he.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))!==undefined&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],n=0;n<s;n++)i[r=(o=t[n]).selector+" "]===undefined&&(i[r]=o.needsContext?-1<he(r,this).index(l):he.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&a.push({elem:l,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[he.expando])return e;var t,n,i,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=Ke.test(r)?this.mouseHooks:Je.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new he.Event(o),t=i.length;t--;)e[n=i[t]]=o[n];return e.target||(e.target=o.srcElement||ie),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},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(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(r=(i=e.target.ownerDocument||ie).documentElement,n=i.body,e.pageX=t.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||o===undefined||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==p()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===p()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(he.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return he.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){var i=he.extend(new he.Event,n,{type:e,isSimulated:!0});he.event.trigger(i,null,t),i.isDefaultPrevented()&&n.preventDefault()}},he.removeEvent=ie.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){var i="on"+t;e.detachEvent&&("undefined"==typeof e[i]&&(e[i]=null),e.detachEvent(i,n))},he.Event=function(e,t){if(!(this instanceof he.Event))return new he.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&!1===e.returnValue?f:h):this.type=e,t&&he.extend(this,t),this.timeStamp=e&&e.timeStamp||he.now(),this[he.expando]=!0},he.Event.prototype={constructor:he.Event,isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=f,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=f,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=f,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},he.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,o){he.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,n=this,i=e.relatedTarget,r=e.handleObj;return i&&(i===n||he.contains(n,i))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=o),t}}}),ce.submit||(he.event.special.submit={setup:function(){if(he.nodeName(this,"form"))return!1;he.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=he.nodeName(t,"input")||he.nodeName(t,"button")?he.prop(t,"form"):undefined;n&&!he._data(n,"submit")&&(he.event.add(n,"submit._submit",function(e){e._submitBubble=!0}),he._data(n,"submit",!0))})},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&he.event.simulate("submit",this.parentNode,e))},teardown:function(){if(he.nodeName(this,"form"))return!1;he.event.remove(this,"._submit")}}),ce.change||(he.event.special.change={setup:function(){if(Ze.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(he.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)}),he.event.add(this,"click._change",function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),he.event.simulate("change",this,e)})),!1;he.event.add(this,"beforeactivate._change",function(e){var t=e.target;Ze.test(t.nodeName)&&!he._data(t,"change")&&(he.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||he.event.simulate("change",this.parentNode,e)}),he._data(t,"change",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return he.event.remove(this,"._change"),!Ze.test(this.nodeName)}}),ce.focusin||he.each({focus:"focusin",blur:"focusout"},function(n,i){var r=function(e){he.event.simulate(i,e.target,he.event.fix(e))};he.event.special[i]={setup:function(){var e=this.ownerDocument||this,t=he._data(e,i);t||e.addEventListener(n,r,!0),he._data(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=he._data(e,i)-1;t?he._data(e,i,t):(e.removeEventListener(n,r,!0),he._removeData(e,i))}}}),he.fn.extend({on:function(e,t,n,i){return w(this,e,t,n,i)},one:function(e,t,n,i){return w(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,he(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=undefined),!1===n&&(n=h),this.each(function(){he.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r]);return this},trigger:function(e,t){return this.each(function(){he.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return he.event.trigger(e,t,n,!0)}});var nt=/ jQuery\d+="(?:null|\d+)"/g,it=new RegExp("<(?:"+Ve+")[\\s/>]","i"),rt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ot=/<script|<style|<link/i,at=/checked\s*(?:[^=]|=\s*.checked.)/i,st=/^true\/(.*)/,lt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ut=g(ie).appendChild(ie.createElement("div"));he.extend({htmlPrefilter:function(e){return e.replace(rt,"<$1></$2>")},clone:function(e,t,n){var i,r,o,a,s,l=he.contains(e.ownerDocument,e);if(ce.html5Clone||he.isXMLDoc(e)||!it.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(ut.innerHTML=e.outerHTML,ut.removeChild(o=ut.firstChild)),!(ce.noCloneEvent&&ce.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||he.isXMLDoc(e)))for(i=y(o),s=y(e),a=0;null!=(r=s[a]);++a)i[a]&&T(r,i[a]);if(t)if(n)for(s=s||y(e),i=i||y(o),a=0;null!=(r=s[a]);a++)S(r,i[a]);else S(e,o);return 0<(i=y(o,"script")).length&&v(i,!l&&y(e,"script")),i=s=r=null,o},cleanData:function(e,t){for(var n,i,r,o,a=0,s=he.expando,l=he.cache,u=ce.attributes,d=he.event.special;null!=(n=e[a]);a++)if((t||Ne(n))&&(o=(r=n[s])&&l[r])){if(o.events)for(i in o.events)d[i]?he.event.remove(n,i):he.removeEvent(n,i,o.handle);l[r]&&(delete l[r],u||"undefined"==typeof n.removeAttribute?n[s]=undefined:n.removeAttribute(s),ne.push(r))}}}),he.fn.extend({domManip:D,detach:function(e){return M(this,e,!0)},remove:function(e){return M(this,e)},text:function(e){return Ie(this,function(e){return e===undefined?he.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ie).createTextNode(e))},null,e,arguments.length)},append:function(){return D(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||x(this,e).appendChild(e)})},prepend:function(){return D(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=x(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&he.cleanData(y(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&he.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return he.clone(this,e,t)})},html:function(e){return Ie(this,function(e){var t=this[0]||{},n=0,i=this.length;if(e===undefined)return 1===t.nodeType?t.innerHTML.replace(nt,""):undefined;if("string"==typeof e&&!ot.test(e)&&(ce.htmlSerialize||!it.test(e))&&(ce.leadingWhitespace||!Ue.test(e))&&!Ge[(ze.exec(e)||["",""])[1].toLowerCase()]){e=he.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(he.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return D(this,arguments,function(e){var t=this.parentNode;he.inArray(this,n)<0&&(he.cleanData(y(this)),t&&t.replaceChild(e,this))},n)}}),he.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){he.fn[e]=function(e){for(var t,n=0,i=[],r=he(e),o=r.length-1;n<=o;n++)t=n===o?this:this.clone(!0),he(r[n])[a](t),ae.apply(i,t.get());return this.pushStack(i)}});var dt,ct={HTML:"block",BODY:"block"},ft=/^margin/,ht=new RegExp("^("+We+")(?!px)[a-z%]+$","i"),pt=function(e,t,n,i){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in r=n.apply(e,i||[]),t)e.style[o]=a[o];return r},mt=ie.documentElement;!function(){function e(){var e,t,n=ie.documentElement;n.appendChild(u),d.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i=o=l=!1,r=s=!0,_.getComputedStyle&&(t=_.getComputedStyle(d),i="1%"!==(t||{}).top,l="2px"===(t||{}).marginLeft,o="4px"===(t||{width:"4px"}).width,d.style.marginRight="50%",r="4px"===(t||{marginRight:"4px"}).marginRight,(e=d.appendChild(ie.createElement("div"))).style.cssText=d.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",d.style.width="1px",s=!parseFloat((_.getComputedStyle(e)||{}).marginRight),d.removeChild(e)),d.style.display="none",(a=0===d.getClientRects().length)&&(d.style.display="",d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",d.childNodes[0].style.borderCollapse="separate",(
e=d.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(a=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",a=0===e[0].offsetHeight)),n.removeChild(u)}var i,r,o,a,s,l,u=ie.createElement("div"),d=ie.createElement("div");d.style&&(d.style.cssText="float:left;opacity:.5",ce.opacity="0.5"===d.style.opacity,ce.cssFloat=!!d.style.cssFloat,d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",ce.clearCloneStyle="content-box"===d.style.backgroundClip,(u=ie.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",d.innerHTML="",u.appendChild(d),ce.boxSizing=""===d.style.boxSizing||""===d.style.MozBoxSizing||""===d.style.WebkitBoxSizing,he.extend(ce,{reliableHiddenOffsets:function(){return null==i&&e(),a},boxSizingReliable:function(){return null==i&&e(),o},pixelMarginRight:function(){return null==i&&e(),r},pixelPosition:function(){return null==i&&e(),i},reliableMarginRight:function(){return null==i&&e(),s},reliableMarginLeft:function(){return null==i&&e(),l}}))}();var gt,yt,vt=/^(top|right|bottom|left)$/;_.getComputedStyle?(gt=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=_),t.getComputedStyle(e)},yt=function(e,t,n){var i,r,o,a,s=e.style;return""!==(a=(n=n||gt(e))?n.getPropertyValue(t)||n[t]:undefined)&&a!==undefined||he.contains(e.ownerDocument,e)||(a=he.style(e,t)),n&&!ce.pixelMarginRight()&&ht.test(a)&&ft.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o),a===undefined?a:a+""}):mt.currentStyle&&(gt=function(e){return e.currentStyle},yt=function(e,t,n){var i,r,o,a,s=e.style;return null==(a=(n=n||gt(e))?n[t]:undefined)&&s&&s[t]&&(a=s[t]),ht.test(a)&&!vt.test(t)&&(i=s.left,(o=(r=e.runtimeStyle)&&r.left)&&(r.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=i,o&&(r.left=o)),a===undefined?a:a+""||"auto"});var bt=/alpha\([^)]*\)/i,wt=/opacity\s*=\s*([^)]*)/i,xt=/^(none|table(?!-c[ea]).+)/,kt=new RegExp("^("+We+")(.*)$","i"),_t={position:"absolute",visibility:"hidden",display:"block"},Ct={letterSpacing:"0",fontWeight:"400"},St=["Webkit","O","Moz","ms"],Tt=ie.createElement("div").style;he.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=yt(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":ce.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=he.camelCase(t),l=e.style;if(t=he.cssProps[s]||(he.cssProps[s]=N(s)||s),a=he.cssHooks[t]||he.cssHooks[s],n===undefined)return a&&"get"in a&&(r=a.get(e,!1,i))!==undefined?r:l[t];if("string"===(o=typeof n)&&(r=Fe.exec(n))&&r[1]&&(n=c(e,t,r),o="number"),null!=n&&n==n&&("number"===o&&(n+=r&&r[3]||(he.cssNumber[s]?"":"px")),ce.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&(n=a.set(e,n,i))===undefined)))try{l[t]=n}catch(u){}}},css:function(e,t,n,i){var r,o,a,s=he.camelCase(t);return t=he.cssProps[s]||(he.cssProps[s]=N(s)||s),(a=he.cssHooks[t]||he.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),o===undefined&&(o=yt(e,t,i)),"normal"===o&&t in Ct&&(o=Ct[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),he.each(["height","width"],function(e,r){he.cssHooks[r]={get:function(e,t,n){if(t)return xt.test(he.css(e,"display"))&&0===e.offsetWidth?pt(e,_t,function(){return L(e,r,n)}):L(e,r,n)},set:function(e,t,n){var i=n&&gt(e);return Y(e,t,n?P(e,r,n,ce.boxSizing&&"border-box"===he.css(e,"boxSizing",!1,i),i):0)}}}),ce.opacity||(he.cssHooks.opacity={get:function(e,t){return wt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=he.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=i&&i.filter||n.filter||"";((n.zoom=1)<=t||""===t)&&""===he.trim(o.replace(bt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=bt.test(o)?o.replace(bt,r):o+" "+r)}}),he.cssHooks.marginRight=j(ce.reliableMarginRight,function(e,t){if(t)return pt(e,{display:"inline-block"},yt,[e,"marginRight"])}),he.cssHooks.marginLeft=j(ce.reliableMarginLeft,function(e,t){if(t)return(parseFloat(yt(e,"marginLeft"))||(he.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-pt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),he.each({margin:"",padding:"",border:"Width"},function(r,o){he.cssHooks[r+o]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+$e[t]+o]=i[t]||i[t-2]||i[0];return n}},ft.test(r)||(he.cssHooks[r+o].set=Y)}),he.fn.extend({css:function(e,t){return Ie(this,function(e,t,n){var i,r,o={},a=0;if(he.isArray(t)){for(i=gt(e),r=t.length;a<r;a++)o[t[a]]=he.css(e,t[a],!1,i);return o}return n!==undefined?he.style(e,t,n):he.css(e,t)},e,t,1<arguments.length)},show:function(){return A(this,!0)},hide:function(){return A(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Re(this)?he(this).show():he(this).hide()})}}),(he.Tween=H).prototype={constructor:H,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||he.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(he.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.options.duration?this.pos=t=he.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=he.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[he.cssProps[e.prop]]&&!he.cssHooks[e.prop]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=H.prototype.init,he.fx.step={};var Dt,Mt,Et,Ot,jt,Nt,At,Yt=/^(?:toggle|show|hide)$/,Pt=/queueHooks$/;he.Animation=he.extend(q,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return c(n.elem,e,Fe.exec(t),n),n}]},tweener:function(e,t){he.isFunction(e)?(t=e,e=["*"]):e=e.match(Oe);for(var n,i=0,r=e.length;i<r;i++)n=e[i],q.tweeners[n]=q.tweeners[n]||[],q.tweeners[n].unshift(t)},prefilters:[R],prefilter:function(e,t){t?q.prefilters.unshift(e):q.prefilters.push(e)}}),he.speed=function(e,t,n){var i=e&&"object"==typeof e?he.extend({},e):{complete:n||!n&&t||he.isFunction(e)&&e,duration:e,easing:n&&t||t&&!he.isFunction(t)&&t};return i.duration=he.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in he.fx.speeds?he.fx.speeds[i.duration]:he.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){he.isFunction(i.old)&&i.old.call(this),i.queue&&he.dequeue(this,i.queue)},i},he.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Re).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){var r=he.isEmptyObject(t),o=he.speed(e,n,i),a=function(){var e=q(this,he.extend({},t),o);(r||he._data(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(r,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof r&&(o=e,e=r,r=undefined),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=he.timers,i=he._data(this);if(t)i[t]&&i[t].stop&&a(i[t]);else for(t in i)i[t]&&i[t].stop&&Pt.test(t)&&a(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||he.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=he._data(this),n=t[a+"queue"],i=t[a+"queueHooks"],r=he.timers,o=n?n.length:0;for(t.finish=!0,he.queue(this,a,[]),i&&i.stop&&i.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===a&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),he.each(["toggle","show","hide"],function(e,i){var r=he.fn[i];he.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(F(i,!0),e,t,n)}}),he.each({slideDown:F("show"),slideUp:F("hide"),slideToggle:F("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){he.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),he.timers=[],he.fx.tick=function(){var e,t=he.timers,n=0;for(Dt=he.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||he.fx.stop(),Dt=undefined},he.fx.timer=function(e){he.timers.push(e),e()?he.fx.start():he.timers.pop()},he.fx.interval=13,he.fx.start=function(){Mt||(Mt=_.setInterval(he.fx.tick,he.fx.interval))},he.fx.stop=function(){_.clearInterval(Mt),Mt=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(i,e){return i=he.fx&&he.fx.speeds[i]||i,e=e||"fx",this.queue(e,function(e,t){var n=_.setTimeout(e,i);t.stop=function(){_.clearTimeout(n)}})},Ot=ie.createElement("input"),jt=ie.createElement("div"),Nt=ie.createElement("select"),At=Nt.appendChild(ie.createElement("option")),(jt=ie.createElement("div")).setAttribute("className","t"),jt.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",Et=jt.getElementsByTagName("a")[0],Ot.setAttribute("type","checkbox"),jt.appendChild(Ot),(Et=jt.getElementsByTagName("a")[0]).style.cssText="top:1px",ce.getSetAttribute="t"!==jt.className,ce.style=/top/.test(Et.getAttribute("style")),ce.hrefNormalized="/a"===Et.getAttribute("href"),ce.checkOn=!!Ot.value,ce.optSelected=At.selected,ce.enctype=!!ie.createElement("form").enctype,Nt.disabled=!0,ce.optDisabled=!At.disabled,(Ot=ie.createElement("input")).setAttribute("value",""),ce.input=""===Ot.getAttribute("value"),Ot.value="t",Ot.setAttribute("type","radio"),ce.radioValue="t"===Ot.value;var Lt=/\r/g,Ht=/[\x20\t\r\n\f]+/g;he.fn.extend({val:function(n){var i,e,r,t=this[0];return arguments.length?(r=he.isFunction(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=r?n.call(this,e,he(this).val()):n)?t="":"number"==typeof t?t+="":he.isArray(t)&&(t=he.map(t,function(e){return null==e?"":e+""})),(i=he.valHooks[this.type]||he.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&i.set(this,t,"value")!==undefined||(this.value=t))})):t?(i=he.valHooks[t.type]||he.valHooks[t.nodeName.toLowerCase()])&&"get"in i&&(e=i.get(t,"value"))!==undefined?e:"string"==typeof(e=t.value)?e.replace(Lt,""):null==e?"":e:void 0}}),he.extend({valHooks:{option:{get:function(e){var t=he.find.attr(e,"value");return null!=t?t:he.trim(he.text(e)).replace(Ht," ")}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type||r<0,a=o?null:[],s=o?r+1:i.length,l=r<0?s:o?r:0;l<s;l++)if(((n=i[l]).selected||l===r)&&(ce.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!he.nodeName(n.parentNode,"optgroup"))){if(t=he(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=he.makeArray(t),a=r.length;a--;)if(i=r[a],-1<he.inArray(he.valHooks.option.get(i),o))try{i.selected=n=!0}catch(s){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),r}}}}),he.each(["radio","checkbox"],function(){he.valHooks[this]={set:function(e,t){if(he.isArray(t))return e.checked=-1<he.inArray(he(e).val(),t)}},ce.checkOn||(he.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Wt,Ft,$t=he.expr.attrHandle,Rt=/^(?:checked|selected)$/i,It=ce.getSetAttribute,qt=ce.input;he.fn.extend({attr:function(e,t){return Ie(this,he.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?he.prop(e,t,n):(1===o&&he.isXMLDoc(e)||(t=t.toLowerCase(),r=he.attrHooks[t]||(he.expr.match.bool.test(t)?Ft:Wt)),n!==undefined?null===n?void he.removeAttr(e,t):r&&"set"in r&&(i=r.set(e,n,t))!==undefined?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=he.find.attr(e,t))?undefined:i)},attrHooks:{type:{set:function(e,t){if(!ce.radioValue&&"radio"===t&&he.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match(Oe);if(o&&1===e.nodeType)for(;n=o[r++];)i=he.propFix[n]||n,he.expr.match.bool.test(n)?qt&&It||!Rt.test(n)?e[i]=!1:e[he.camelCase("default-"+n)]=e[i]=!1:he.attr(e,n,""),e.removeAttribute(It?n:i)}}),Ft={set:function(e,t,n){return!1===t?he.removeAttr(e,n):qt&&It||!Rt.test(n)?e.setAttribute(!It&&he.propFix[n]||n,n):e[he.camelCase("default-"+n)]=e[n]=!0,n}},he.each(he.expr.match.bool.source.match(/\w+/g),function(e,t){var o=$t[t]||he.find.attr;qt&&It||!Rt.test(t)?$t[t]=function(e,t,n){var i,r;return n||(r=$t[t],$t[t]=i,i=null!=o(e,t,n)?t.toLowerCase():null,$t[t]=r),i}:$t[t]=function(e,t,n){if(!n)return e[he.camelCase("default-"+t)]?t.toLowerCase():null}}),qt&&It||(he.attrHooks.value={set:function(e,t,n){if(!he.nodeName(e,"input"))return Wt&&Wt.set(e,t,n);e.defaultValue=t}}),It||(Wt={set:function(e,t,n){var i=e.getAttributeNode(n);if(i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n))return t}},$t.id=$t.name=$t.coords=function(e,t,n){var i;if(!n)return(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},he.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:Wt.set},he.attrHooks.contenteditable={set:function(e,t,n){Wt.set(e,""!==t&&t,n)}},he.each(["width","height"],function(e,n){he.attrHooks[n]={set:function(e,t){if(""===t)return e.setAttribute(n,"auto"),t}}})),ce.style||(he.attrHooks.style={get:function(e){return e.style.cssText||undefined},set:function(e,t){return e.style.cssText=t+""}});var zt=/^(?:input|select|textarea|button|object)$/i,Bt=/^(?:a|area)$/i;he.fn.extend({prop:function(e,t){return Ie(this,he.prop,e,t,1<arguments.length)},removeProp:function(t){return t=he.propFix[t]||t,this.each(function(){try{this[t]=undefined,delete this[t]}catch(e){}})}}),he.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&he.isXMLDoc(e)||(t=he.propFix[t]||t,r=he.propHooks[t]),n!==undefined?r&&"set"in r&&(i=r.set(e,n,t))!==undefined?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=he.find.attr(e,"tabindex");return t?parseInt(t,10):zt.test(e.nodeName)||Bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ce.hrefNormalized||he.each(["href","src"],function(e,t){he.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),ce.optSelected||(he.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),he.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){he.propFix[this.toLowerCase()]=this}),ce.enctype||(he.propFix.enctype="encoding");var Ut=/[\t\r\n\f]/g;he.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,l=0;if(he.isFunction(t))return this.each(function(e){he(this).addClass(t.call(this,e,z(this)))});if("string"==typeof t&&t)for(e=t.match(Oe)||[];n=this[l++];)if(r=z(n),i=1===n.nodeType&&(" "+r+" ").replace(Ut," ")){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=he.trim(i))&&he.attr(n,"class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,l=0;if(he.isFunction(t))return this.each(function(e){he(this).removeClass(t.call(this,e,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Oe)||[];n=this[l++];)if(r=z(n),i=1===n.nodeType&&(" "+r+" ").replace(Ut," ")){for(a=0;o=e[a++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r!==(s=he.trim(i))&&he.attr(n,"class",s)}return this},toggleClass:function(r,t){var o=typeof r;return"boolean"==typeof t&&"string"===o?t?this.addClass(r):this.removeClass(r):he.isFunction(r)?this.each(function(e){he(this).toggleClass(r.call(this,e,z(this),t),t)}):this.each(function(){var e,t,n,i;if("string"===o)for(t=0,n=he(this),i=r.match(Oe)||[];e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else r!==undefined&&"boolean"!==o||((e=z(this))&&he._data(this,"__className__",e),he.attr(this,"class",e||!1===r?"":he._data(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+z(n)+" ").replace(Ut," ").indexOf(t))return!0;return!1}}),he.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(e,n){he.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),he.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Vt=_.location,Gt=he.now(),Xt=/\?/,Qt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;he.parseJSON=function(e){if(_.JSON&&_.JSON.parse)return _.JSON.parse(e+"");var r,o=null,t=he.trim(e+"");return t&&!he.trim(t.replace(Qt,function(e,t,n,i){return r&&t&&(o=0),0===o?e:(r=n||t,o+=!i-!n,"")}))?Function("return "+t)():he.error("Invalid JSON: "+e)},he.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{_.DOMParser?t=(new _.DOMParser).parseFromString(e,"text/xml"):((t=new _.ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(n){t=undefined}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||he.error("Invalid XML: "+e),t};var Zt=/#.*$/,Jt=/([?&])_=[^&]*/,Kt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,en=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,tn=/^(?:GET|HEAD)$/,nn=/^\/\//,rn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,on={},an={},sn="*/".concat("*"),ln=Vt.href,un=rn.exec(ln.toLowerCase())||[];he.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ln,type:"GET",isLocal:en.test(un[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":sn,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":he.parseJSON,"text xml":he.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?V(V(e,he.ajaxSettings),t):V(he.ajaxSettings,e)},ajaxPrefilter:B(on),ajaxTransport:B(an),ajax:function(e,t){function n(e,t,n,i){var r,o,a,s,l,u=t;2!==x&&(x=2,f&&_.clearTimeout(f),p=undefined,c=i||"",k.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(s=G(m,k,n)),s=X(m,s,k,r),r?(m.ifModified&&((l=k.getResponseHeader("Last-Modified"))&&(he.lastModified[d]=l),(l=k.getResponseHeader("etag"))&&(he.etag[d]=l)),204===e||"HEAD"===m.type?u="nocontent":304===e?u="notmodified":(u=s.state,o=s.data,r=!(a=s.error))):(a=u,!e&&u||(u="error",e<0&&(e=0))),k.status=e,k.statusText=(t||u)+"",r?v.resolveWith(g,[o,u,k]):v.rejectWith(g,[k,u,a]),k.statusCode(w),w=undefined,h&&y.trigger(r?"ajaxSuccess":"ajaxError",[k,m,r?o:a]),b.fireWith(g,[k,u]),h&&(y.trigger("ajaxComplete",[k,m]),--he.active||he.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=undefined),t=t||{};var i,r,d,c,f,h,p,o,m=he.ajaxSetup({},t),g=m.context||m,y=m.context&&(g.nodeType||g.jquery)?he(g):he.event,v=he.Deferred(),b=he.Callbacks("once memory"),w=m.statusCode||{},a={},s={},x=0,l="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!o)for(o={};t=Kt.exec(c);)o[t[1].toLowerCase()]=t[2];t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?c:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=s[n]=s[n]||e,a[e]=t),this},overrideMimeType:function(e){return x||(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(x<2)for(t in e)w[t]=[w[t],e[t]];else k.always(e[k.status]);return this},abort:function(e){var t=e||l;return p&&p.abort(t),n(0,t),this}};if(v.promise(k).complete=b.add,k.success=k.done,k.error=k.fail,m.url=((e||m.url||ln)+"").replace(Zt,"").replace(nn,un[1]+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=he.trim(m.dataType||"*").toLowerCase().match(Oe)||[""],null==m.crossDomain&&(i=rn.exec(m.url.toLowerCase()),m.crossDomain=!(!i||i[1]===un[1]&&i[2]===un[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(un[3]||("http:"===un[1]?"80":"443")))),m.data&&m.processData&&"string"!=typeof m.data&&(m.data=he.param(m.data,m.traditional)),U(on,m,t,k),2===x)return k;for(r in(h=he.event&&m.global)&&0==he.active++&&he.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!tn.test(m.type),d=m.url,m.hasContent||(m.data&&(d=m.url+=(Xt.test(d)?"&":"?")+m.data,delete m.data),!1===m.cache&&(m.url=Jt.test(d)?d.replace(Jt,"$1_="+Gt++):d+(Xt.test(d)?"&":"?")+"_="+Gt++)),m.ifModified&&(he.lastModified[d]&&k.setRequestHeader("If-Modified-Since",he.lastModified[d]),he.etag[d]&&k.setRequestHeader("If-None-Match",he.etag[d])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&k.setRequestHeader("Content-Type",m.contentType),k.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+sn+"; q=0.01":""):m.accepts["*"]),m.headers)k.setRequestHeader(r,m.headers[r]);if(m.beforeSend&&(!1===m.beforeSend.call(g,k,m)||2===x))return k.abort();for(r in l="abort",{success:1,error:1,complete:1})k[r](m[r]);if(p=U(an,m,t,k)){if(k.readyState=1,h&&y.trigger("ajaxSend",[k,m]),2===x)return k;m.async&&0<m.timeout&&(f=_.setTimeout(function(){k.abort("timeout")},m.timeout));try{x=1,p.send(a,n)}catch(u){if(!(x<2))throw u;n(-1,u)}}else n(-1,"No Transport");return k},getJSON:function(e,t,n){return he.get(e,t,n,"json")},getScript:function(e,t){return he.get(e,undefined,t,"script")}}),he.each(["get","post"],function(e,r){he[r]=function(e,t,n,i){return he.isFunction(t)&&(i=i||n,n=t,t=undefined),he.ajax(he.extend({url:e,type:r,dataType:i,data:t,success:n},he.isPlainObject(e)&&e))}}),he._evalUrl=function(e){return he.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},he.fn.extend({wrapAll:function(t){if(he.isFunction(t))return this.each(function(e){he(this).wrapAll(t.call(this,e))});if(this[0]){var e=he(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(n){return he.isFunction(n)?this.each(function(e){he(this).wrapInner(n.call(this,e))}):this.each(function(){var e=he(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=he.isFunction(t);return this.each(function(e){he(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){he.nodeName(this,"body")||he(this).replaceWith(this.childNodes)}).end()}}),he.expr.filters.hidden=function(e){return ce.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:Z(e)},he.expr.filters.visible=function(e){return!he.expr.filters.hidden(e)};var dn=/%20/g,cn=/\[\]$/,fn=/\r?\n/g,hn=/^(?:submit|button|image|reset|file)$/i,pn=/^(?:input|select|textarea|keygen)/i;he.param=function(e,t){var n,i=[],r=function(e,t){t=he.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===undefined&&(t=he.ajaxSettings&&he.ajaxSettings.traditional),he.isArray(e)||e.jquery&&!he.isPlainObject(e))he.each(e,function(){r(this.name,this.value)});else for(n in e)J(n,e[n],t,r);return i.join("&").replace(dn,"+")},he.fn.extend({serialize:function(){return he.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=he.prop(this,"elements");return e?he.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!he(this).is(":disabled")&&pn.test(this.nodeName)&&!hn.test(e)&&(this.checked||!qe.test(e))}).map(function(e,t){var n=he(this).val();return null==n?null:he.isArray(n)?he.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),he.ajaxSettings.xhr=_.ActiveXObject!==undefined?function(){return this.isLocal?ee():8<ie.documentMode?K():/^(get|post|head|put|delete|options)$/i.test(this.type)&&K()||ee()}:K;var mn=0,gn={},yn=he.ajaxSettings.xhr();_.attachEvent&&_.attachEvent("onunload",function(){for(var e in gn)gn[e](undefined,!0)}),ce.cors=!!yn&&"withCredentials"in yn,(yn=ce.ajax=!!yn)&&he.ajaxTransport(function(u){var d;if(!u.crossDomain||ce.cors)return{send:function(e,a){var t,s=u.xhr(),l=++mn;if(s.open(u.type,u.url,u.async,u.username,u.password),u.xhrFields)for(t in u.xhrFields)s[t]=u.xhrFields[t];for(t in u.mimeType&&s.overrideMimeType&&s.overrideMimeType(u.mimeType),u.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)e[t]!==undefined&&s.setRequestHeader(t,e[t]+"");s.send(u.hasContent&&u.data||null),d=function(e,t){var n,i,r;if(d&&(t||4===s.readyState))if(delete gn[l],d=undefined,s.onreadystatechange=he.noop,t)4!==s.readyState&&s.abort();else{r={},n=s.status,"string"==typeof s.responseText&&(r.text=s.responseText);try{i=s.statusText}catch(o){i=""}n||!u.isLocal||u.crossDomain?1223===n&&(n=204):n=r.text?200:404}r&&a(n,i,r,s.getAllResponseHeaders())},u.async?4===s.readyState?_.setTimeout(d):s.onreadystatechange=gn[l]=d:d()},abort:function(){d&&d(undefined,!0)}}}),he.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return he.globalEval(e),e}}}),he.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),he.ajaxTransport("script",function(t){if(t.crossDomain){var i,r=ie.head||he("head")[0]||ie.documentElement;return{send:function(e,n){(i=ie.createElement("script")).async=!0,t.scriptCharset&&(i.charset=t.scriptCharset),i.src=t.url,i.onload=i.onreadystatechange=function(e,t){(t||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),i=null,t||n(200,"success"))},r.insertBefore(i,r.firstChild)},abort:function(){i&&i.onload(undefined,!0)}}}});var vn=[],bn=/(=)\?(?=&|$)|\?\?/;he.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=vn.pop()||he.expando+"_"+Gt++;return this[e]=!0,e}}),he.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,a=!1!==e.jsonp&&(bn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&bn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=he.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(bn,"$1"+i):!1!==e.jsonp&&(e.url+=(Xt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||he.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=_[i],_[i]=function(){o=arguments},n.always(function(){r===undefined?he(_).removeProp(i):_[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,vn.push(i)),o&&he.isFunction(r)&&r(o[0]),o=r=undefined}),"script"}),he.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||ie;var i=ke.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=m([e],t,r),r&&r.length&&he(r).remove(),he.merge([],i.childNodes))};var wn=he.fn.load;he.fn.load=function(e,t,n){if("string"!=typeof e&&wn)return wn.apply(this,arguments);var i,r,o,a=this,s=e.indexOf(" ");return-1<s&&(i=he.trim(e.slice(s,e.length)),e=e.slice(0,s)),he.isFunction(t)?(n=t,t=undefined):t&&"object"==typeof t&&(r="POST"),0<a.length&&he.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?he("<div>").append(he.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){he.fn[t]=function(e){return this.on(t,e)}}),he.expr.filters.animated=function(t){return he.grep(he.timers,function(e){return t===e.elem}).length},he.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,u=he.css(e,"position"),d=he(e),c={};"static"===u&&(e.style.position="relative"),s=d.offset(),o=he.css(e,"top"),l=he.css(e,"left"),("absolute"===u||"fixed"===u)&&-1<he.inArray("auto",[o,l])?(a=(i=d.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),he.isFunction(t)&&(t=t.call(e,n,he.extend({},s))),null!=t.top&&(c.top=t.top-s.top+a),null!=t.left&&(c.left=t.left-s.left+r),"using"in t?t.using.call(e,c):d.css(c)}},he.fn.extend({offset:function(t){if(arguments.length)return t===undefined?this:this.each(function(e){he.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},r=this[0],o=r&&r.ownerDocument;return o?(e=o.documentElement,he.contains(e,r)?("undefined"!=typeof r.getBoundingClientRect&&(i=r.getBoundingClientRect()),n=te(o),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===he.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),he.nodeName(e[0],"html")||(n=e.offset()),n.top+=he.css(e[0],"borderTopWidth",!0),n.left+=he.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-he.css(i,"marginTop",!0),left:t.left-n.left-he.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!he.nodeName(e,"html")&&"static"===he.css(e,"position");)e=e.offsetParent;return e||mt})}}),he.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o=/Y/.test(r);he.fn[t]=function(e){return Ie(this,function(e,t,n){var i=te(e);if(n===undefined)return i?r in i?i[r]:i.document.documentElement[t]:e[t];i?i.scrollTo(o?he(i).scrollLeft():n,o?n:he(i).scrollTop()):e[t]=n},t,e,arguments.length,null)}}),he.each(["top","left"],function(e,n){he.cssHooks[n]=j(ce.pixelPosition,function(e,t){if(t)return t=yt(e,n),ht.test(t)?he(e).position()[n]+"px":t})}),he.each({Height:"height",Width:"width"},function(o,a){he.each({padding:"inner"+o,content:a,"":"outer"+o},function(i,e){he.fn[e]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return Ie(this,function(e,t,n){var i;return he.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+o],i["scroll"+o],e.body["offset"+o],i["offset"+o],i["client"+o])):n===undefined?he.css(e,t,r):he.style(e,t,n,r)},a,n?e:undefined,n,null)}})}),he.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),he.fn.size=function(){return this.length},he.fn.andSelf=he.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return he});var xn=_.jQuery,kn=_.$;return he.noConflict=function(e){return _.$===he&&(_.$=kn),e&&_.jQuery===he&&(_.jQuery=xn),he},e||(_.jQuery=_.$=he),he}),function(d,l){"use strict";var u;d.rails!==l&&d.error("jquery-ujs has already been loaded!");var e=d(document);d.rails=u={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 d("meta[name=csrf-token]").attr("content")},csrfParam:function(){return d("meta[name=csrf-param]").attr("content")},CSRFProtection:function(e){var t=u.csrfToken();t&&e.setRequestHeader("X-CSRF-Token",t)},refreshCSRFTokens:function(){d('form input[name="'+u.csrfParam()+'"]').val(u.csrfToken())},fire:function(e,t,n){var i=d.Event(t);return e.trigger(i,n),!1!==i.result},confirm:function(e){return confirm(e)},ajax:function(e){return d.ajax(e)},href:function(e){return e[0].href},isRemote:function(e){return e.data("remote")!==l&&!1!==e.data("remote")},handleRemote:function(i){var e,t,n,r,o,a;if(u.fire(i,"ajax:before")){if(r=i.data("with-credentials")||null,o=i.data("type")||d.ajaxSettings&&d.ajaxSettings.dataType,i.is("form")){e=i.data("ujs:submit-button-formmethod")||i.attr("method"),t=i.data("ujs:submit-button-formaction")||i.attr("action"),n=d(i[0]).serializeArray();var s=i.data("ujs:submit-button");s&&(n.push(s),i.data("ujs:submit-button",null)),i.data("ujs:submit-button-formmethod",null),i.data("ujs:submit-button-formaction",null)}else i.is(u.inputChangeSelector)?(e=i.data("method"),t=i.data("url"),n=i.serialize(),i.data("params")&&(n=n+"&"+i.data("params"))):i.is(u.buttonClickSelector)?(e=i.data("method")||"get",t=i.data("url"),n=i.serialize(),i.data("params")&&(n=n+"&"+i.data("params"))):(e=i.data("method"),t=u.href(i),n=i.data("params")||null);return a={type:e||"GET",data:n,dataType:o,beforeSend:function(e,t){if(t.dataType===l&&e.setRequestHeader("accept","*/*;q=0.5, "+t.accepts.script),!u.fire(i,"ajax:beforeSend",[e,t]))return!1;i.trigger("ajax:send",e)},success:function(e,t,n){i.trigger("ajax:success",[e,t,n])},complete:function(e,t){i.trigger("ajax:complete",[e,t])},error:function(e,t,n){i.trigger("ajax:error",[e,t,n])},crossDomain:u.isCrossDomain(t)},r&&(a.xhrFields={withCredentials:r}),t&&(a.url=t),u.ajax(a)}return!1},isCrossDomain:function(e){var t=document.createElement("a");t.href=location.href;var n=document.createElement("a");try{return n.href=e,n.href=n.href,!((!n.protocol||":"===n.protocol)&&!n.host||t.protocol+"//"+t.host==n.protocol+"//"+n.host)}catch(i){return!0}},handleMethod:function(e){var t=u.href(e),n=e.data("method"),i=e.attr("target"),r=u.csrfToken(),o=u.csrfParam(),a=d('<form method="post" action="'+t+'"></form>'),s='<input name="_method" value="'+n+'" type="hidden" />';o===l||r===l||u.isCrossDomain(t)||(s+='<input name="'+o+'" value="'+r+'" type="hidden" />'),i&&a.attr("target",i),a.hide().append(s).appendTo("body"),a.submit()},formElements:function(e,t){return e.is("form")?d(e[0].elements).filter(t):e.find(t)},disableFormElements:function(e){u.formElements(e,u.disableSelector).each(function(){u.disableFormElement(d(this))})},disableFormElement:function(e){var t,n;t=e.is("button")?"html":"val",(n=e.data("disable-with"))!==l&&(e.data("ujs:enable-with",e[t]()),e[t](n)),e.prop("disabled",!0),e.data("ujs:disabled",!0)},enableFormElements:function(e){u.formElements(e,u.enableSelector).each(function(){u.enableFormElement(d(this))})},enableFormElement:function(e){var t=e.is("button")?"html":"val";e.data("ujs:enable-with")!==l&&(e[t](e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.prop("disabled",!1),e.removeData("ujs:disabled")},allowAction:function(e){var t,n=e.data("confirm"),i=!1;if(!n)return!0;if(u.fire(e,"confirm")){try{i=u.confirm(n)}catch(r){(console.error||console.log).call(console,r.stack||r)}t=u.fire(e,"confirm:complete",[i])}return i&&t},blankInputs:function(e,t,n){var i,r,o,a=d(),s=t||"input,textarea",l=e.find(s),u={};return l.each(function(){(i=d(this)).is("input[type=radio]")?(o=i.attr("name"),u[o]||(0===e.find('input[type=radio]:checked[name="'+o+'"]').length&&(r=e.find('input[type=radio][name="'+o+'"]'),a=a.add(r)),u[o]=o)):(i.is("input[type=checkbox],input[type=radio]")?i.is(":checked"):!!i.val())===n&&(a=a.add(i))}),!!a.length&&a},nonBlankInputs:function(e,t){return u.blankInputs(e,t,!0)},stopEverything:function(e){return d(e.target).trigger("ujs:everythingStopped"),e.stopImmediatePropagation(),!1},disableElement:function(e){var t=e.data("disable-with");t!==l&&(e.data("ujs:enable-with",e.html()),e.html(t)),e.bind("click.railsDisable",function(e){return u.stopEverything(e)}),e.data("ujs:disabled",!0)},enableElement:function(e){e.data("ujs:enable-with")!==l&&(e.html(e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.unbind("click.railsDisable"),e.removeData("ujs:disabled")}},u.fire(e,"rails:attachBindings")&&(d.ajaxPrefilter(function(e,t,n){e.crossDomain||u.CSRFProtection(n)}),d(window).on("pageshow.rails",function(){d(d.rails.enableSelector).each(function(){var e=d(this);e.data("ujs:disabled")&&d.rails.enableFormElement(e)}),d(d.rails.linkDisableSelector).each(function(){var e=d(this);e.data("ujs:disabled")&&d.rails.enableElement(e)})}),e.on("ajax:complete",u.linkDisableSelector,function(){u.enableElement(d(this))}),e.on("ajax:complete",u.buttonDisableSelector,function(){u.enableFormElement(d(this))}),e.on("click.rails",u.linkClickSelector,function(e){var t=d(this),n=t.data("method"),i=t.data("params"),r=e.metaKey||e.ctrlKey;if(!u.allowAction(t))return u.stopEverything(e);if(!r&&t.is(u.linkDisableSelector)&&u.disableElement(t),u.isRemote(t)){if(r&&(!n||"GET"===n)&&!i)return!0;var o=u.handleRemote(t);return!1===o?u.enableElement(t):o.fail(function(){u.enableElement(t)}),!1}return n?(u.handleMethod(t),!1):void 0}),e.on("click.rails",u.buttonClickSelector,function(e){var t=d(this);if(!u.allowAction(t)||!u.isRemote(t))return u.stopEverything(e);t.is(u.buttonDisableSelector)&&u.disableFormElement(t);var n=u.handleRemote(t);return!1===n?u.enableFormElement(t):n.fail(function(){u.enableFormElement(t)}),!1}),e.on("change.rails",u.inputChangeSelector,function(e){var t=d(this);return u.allowAction(t)&&u.isRemote(t)?(u.handleRemote(t),!1):u.stopEverything(e)}),e.on("submit.rails",u.formSubmitSelector,function(e){var t,n,i=d(this),r=u.isRemote(i);if(!u.allowAction(i))return u.stopEverything(e);if(i.attr("novalidate")===l)if(i.data("ujs:formnovalidate-button")===l){if((t=u.blankInputs(i,u.requiredInputSelector,!1))&&u.fire(i,"ajax:aborted:required",[t]))return u.stopEverything(e)}else i.data("ujs:formnovalidate-button",l);if(r){if(n=u.nonBlankInputs(i,u.fileInputSelector)){setTimeout(function(){u.disableFormElements(i)},13);var o=u.fire(i,"ajax:aborted:file",[n]);return o||setTimeout(function(){u.enableFormElements(i)},13),o}return u.handleRemote(i),!1}setTimeout(function(){u.disableFormElements(i)},13)}),e.on("click.rails",u.formInputClickSelector,function(e){var t=d(this);if(!u.allowAction(t))return u.stopEverything(e);var n=t.attr("name"),i=n?{name:n,value:t.val()}:null,r=t.closest("form");0===r.length&&(r=d("#"+t.attr("form"))),r.data("ujs:submit-button",i),r.data("ujs:formnovalidate-button",t.attr("formnovalidate")),r.data("ujs:submit-button-formaction",t.attr("formaction")),r.data("ujs:submit-button-formmethod",t.attr("formmethod"))}),e.on("ajax:send.rails",u.formSubmitSelector,function(e){this===e.target&&u.disableFormElements(d(this))}),e.on("ajax:complete.rails",u.formSubmitSelector,function(e){this===e.target&&u.enableFormElements(d(this))}),d(function(){u.refreshCSRFTokens()}))}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function u(){return Di.apply(null,arguments)}function e(e){Di=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function o(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function r(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function n(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,i){return Ct(e,t,n,i,!0).utc()}function t(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(e){return null==e._pf&&(e._pf=t()),e._pf}function m(e){if(null==e._isValid){var t=p(e),n=Mi.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&t.bigHour===undefined),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function i(e){var t=h(NaN);return null!=e?f(p(t),e):p(t).userInvalidated=!0,t}function g(e,t){var n,i,r;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=p(t)),o(t._locale)||(e._locale=t._locale),0<Oi.length)for(n=0;n<Oi.length;n++)o(r=t[i=Oi[n]])||(e[i]=r);return e}function y(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===ji&&(ji=!0,u.updateOffset(this),ji=!1)}function v(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function b(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function w(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=b(t)),n}function x(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&w(e[i])!==w(t[i]))&&a++;return a+o}function k(e){!1===u.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(o,a){var s=!0;return f(function(e){if(null!=u.deprecationHandler&&u.deprecationHandler(null,o),s){for(var t,n=[],i=0;i<arguments.length;i++){if(t="","object"==typeof arguments[i]){for(var r in t+="\n["+i+"] ",e)t+=r+": "+arguments[0][r]+", ";t=t.slice(0,-2)}else t=arguments[i];n.push(t)}k(o+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),s=!1}return a.apply(this,arguments)},a)}function C(e,t){null!=u.deprecationHandler&&u.deprecationHandler(e,t),Ni[e]||(k(t),Ni[e]=!0)}function S(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e){var t,n;for(n in e)S(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function D(e,t){var n,i=f({},e);for(n in t)c(t,n)&&(s(e[n])&&s(t[n])?(i[n]={},f(i[n],e[n]),f(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)c(e,n)&&!c(t,n)&&s(e[n])&&(i[n]=f({},i[n]));return i}function M(e){null!=e&&this.set(e)}function E(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return S(i)?i.call(t,n):i}function O(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function j(){return this._invalidDate}function N(e){return this._ordinal.replace("%d",e)}function A(e,t,n,i){var r=this._relativeTime[n];return S(r)?r(e,t,n,i):r.replace(/%d/i,e)}function Y(e,t){var n=this._relativeTime[0<e?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)}function P(e,t){var n=e.toLowerCase();Fi[n]=Fi[n+"s"]=Fi[t]=e}function L(e){return"string"==typeof e?Fi[e]||Fi[e.toLowerCase()]:undefined}function H(e){var t,n,i={};for(n in e)c(e,n)&&(t=L(n))&&(i[t]=e[n]);return i}function W(e,t){$i[e]=t}function F(e){var t=[];for(var n in e)t.push({unit:n,priority:$i[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function $(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function R(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(zi[e]=r),t&&(zi[t[0]]=function(){return $(r.apply(this,arguments),t[1],t[2])}),n&&(zi[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function I(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function q(i){var e,r,o=i.match(Ri);for(e=0,r=o.length;e<r;e++)zi[o[e]]?o[e]=zi[o[e]]:o[e]=I(o[e]);return function(e){var t,n="";for(t=0;t<r;t++)n+=S(o[t])?o[t].call(e,i):o[t];return n}}function z(e,t){return e.isValid()?(t=B(t,e.localeData()),qi[t]=qi[t]||q(t),qi[t](e)):e.localeData().invalidDate()}function B(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(Ii.lastIndex=0;0<=i&&Ii.test(e);)e=e.replace(Ii,n),Ii.lastIndex=0,i-=1;return e}function U(e,t,n){lr[e]=S(t)?t:function(e){return e&&n?n:t}}function V(e,t){return c(lr,e)?lr[e](t._strict,t._locale):new RegExp(G(e))}function G(e){return X(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function X(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(e,n){var t,i=n;for("string"==typeof e&&(e=[e]),d(n)&&(i=function(e,t){t[n]=w(e)}),t=0;t<e.length;t++)ur[e[t]]=i}function Z(e,r){Q(e,function(e,t,n,i){n._w=n._w||{},r(e,n._w,n,i)})}function J(e,t,n){null!=t&&c(ur,e)&&ur[e](t,n._a,n,e)}function K(e){return ee(e)?366:365}function ee(e){return e%4==0&&e%100!=0||e%400==0}function te(){return ee(this.year())}function ne(t,n){return function(e){return null!=e?(re(this,t,e),u.updateOffset(this,n),this):ie(this,t)}}function ie(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function re(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ee(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),le(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function oe(e){return S(this[e=L(e)])?this[e]():this}function ae(e,t){if("object"==typeof e)for(var n=F(e=H(e)),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit]);else if(S(this[e=L(e)]))return this[e](t);return this}function se(e,t){return(e%t+t)%t}function le(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=se(t,12);return e+=(t-n)/12,1===n?ee(e)?29:28:31-n%7%2}function ue(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||xr).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function de(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[xr.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ce(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=h([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=br.call(this._shortMonthsParse,a))?r:null:-1!==(r=br.call(this._longMonthsParse,a))?r:null:"MMM"===t?-1!==(r=br.call(this._shortMonthsParse,a))?r:-1!==(r=br.call(this._longMonthsParse,a))?r:null:-1!==(r=br.call(this._longMonthsParse,a))?r:-1!==(r=br.call(this._shortMonthsParse,a))?r:null}function fe(e,t,n){var i,r,o;if(this._monthsParseExact)return ce.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=h([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function he(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=w(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),le(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function pe(e){return null!=e?(he(this,e),u.updateOffset(this,!0),this):ie(this,"Month")}function me(){return le(this.year(),this.month())}function ge(e){return this._monthsParseExact?(c(this,"_monthsRegex")||ve.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Cr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ye(e){return this._monthsParseExact?(c(this,"_monthsRegex")||ve.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Sr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ve(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],o=[];for(t=0;t<12;t++)n=h([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),o.sort(e),t=0;t<12;t++)i[t]=X(i[t]),r[t]=X(r[t]);for(t=0;t<24;t++)o[t]=X(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function be(e,t,n,i,r,o,a){var s=new Date(e,t,n,i,r,o,a);return e<100&&0<=e&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function we(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&0<=e&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function xe(e,t,n){var i=7+t-n;return-((7+we(e,0,i).getUTCDay()-t)%7)+i-1}function ke(e,t,n,i,r){var o,a,s=1+7*(t-1)+(7+n-i)%7+xe(e,i,r);return s<=0?a=K(o=e-1)+s:s>K(e)?(o=e+1,a=s-K(e)):(o=e,a=s),{year:o,dayOfYear:a}}function _e(e,t,n){var i,r,o=xe(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?i=a+Ce(r=e.year()-1,t,n):a>Ce(e.year(),t,n)?(i=a-Ce(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Ce(e,t,n){var i=xe(e,t,n),r=xe(e+1,t,n);return(K(e)-i+r)/7}function Se(e){return _e(e,this._week.dow,this._week.doy).week}function Te(){return this._week.dow}function De(){return this._week.doy}function Me(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ee(e){var t=_e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Oe(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function je(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ne(e,t){return e?a(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:a(this._weekdays)?this._weekdays:this._weekdays.standalone}function Ae(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ye(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Pe(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=br.call(this._weekdaysParse,a))?r:null:"ddd"===t?-1!==(r=br.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=br.call(this._minWeekdaysParse,a))?r:null:"dddd"===t?-1!==(r=br.call(this._weekdaysParse,a))?r:-1!==(r=br.call(this._shortWeekdaysParse,a))?r:-1!==(r=br.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=br.call(this._shortWeekdaysParse,a))?r:-1!==(r=br.call(this._weekdaysParse,a))?r:-1!==(r=br.call(this._minWeekdaysParse,a))?r:null:-1!==(r=br.call(this._minWeekdaysParse,a))?r:-1!==(r=br.call(this._weekdaysParse,a))?r:-1!==(r=br.call(this._shortWeekdaysParse,a))?r:null}function Le(e,t,n){var i,r,o;if(this._weekdaysParseExact)return Pe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function He(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Oe(e,this.localeData()),this.add(e-t,"d")):t}function We(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Fe(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t=je(e,this.localeData());return this.day(this.day()%7?t:t-7)}function $e(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Or),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Re(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=jr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ie(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function qe(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(i),s.push(r),l.push(o),u.push(i),u.push(r),u.push(o);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=X(s[t]),l[t]=X(l[t]),u[t]=X(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ze(){return this.hours()%12||12}function Be(){return this.hours()||24}function Ue(e,t){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ve(e,t){return t._meridiemParse}function Ge(e){return"p"===(e+"").toLowerCase().charAt(0)}function Xe(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,n,i,r,o=0;o<e.length;){for(t=(r=Qe(e[o]).split("-")).length,n=(n=Qe(e[o+1]))?n.split("-"):null;0<t;){if(i=Je(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&x(r,n,!0)>=t-1)break;t--}o++}return null}function Je(e){var t=null;if(!Hr[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Ar._abbr,require("./locale/"+e),Ke(t)}catch(n){}return Hr[e]}function Ke(e,t){var n;return e&&(n=o(t)?nt(e):et(e,t))&&(Ar=n),Ar._abbr}function et(e,t){if(null===t)return delete Hr[e],null;var n=Lr;if(t.abbr=e,null!=Hr[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Hr[e]._config;else if(null!=t.parentLocale){if(null==Hr[t.parentLocale])return Wr[t.parentLocale]||(Wr[t.parentLocale]=[]),Wr[t.parentLocale].push({name:e,config:t}),null;n=Hr[t.parentLocale]._config}return Hr[e]=new M(D(n,t)),Wr[e]&&Wr[e].forEach(function(e){et(e.name,e.config)}),Ke(e),Hr[e]}function tt(e,t){if(null!=t){var n,i,r=Lr;null!=(i=Je(e))&&(r=i._config),(n=new M(t=D(r,t))).parentLocale=Hr[e],Hr[e]=n,Ke(e)}else null!=Hr[e]&&(null!=Hr[e].parentLocale?Hr[e]=Hr[e].parentLocale:null!=Hr[e]&&delete Hr[e]);return Hr[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ar;if(!a(e)){if(t=Je(e))return t;e=[e]}return Ze(e)}function it(){return Ei(Hr)}function rt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[cr]<0||11<n[cr]?cr:n[fr]<1||n[fr]>le(n[dr],n[cr])?fr:n[hr]<0||24<n[hr]||24===n[hr]&&(0!==n[pr]||0!==n[mr]||0!==n[gr])?hr:n[pr]<0||59<n[pr]?pr:n[mr]<0||59<n[mr]?mr:n[gr]<0||999<n[gr]?gr:-1,p(e)._overflowDayOfYear&&(t<dr||fr<t)&&(t=fr),p(e)._overflowWeeks&&-1===t&&(t=yr),p(e)._overflowWeekday&&-1===t&&(t=vr),p(e).overflow=t),e}function ot(e,t,n){return null!=e?e:null!=t?t:n}function at(e){var t=new Date(u.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function st(e){var t,n,i,r,o,a=[];if(!e._d){for(i=at(e),e._w&&null==e._a[fr]&&null==e._a[cr]&&lt(e),null!=e._dayOfYear&&(o=ot(e._a[dr],i[dr]),(e._dayOfYear>K(o)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=we(o,0,e._dayOfYear),e._a[cr]=n.getUTCMonth(),e._a[fr]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[hr]&&0===e._a[pr]&&0===e._a[mr]&&0===e._a[gr]&&(e._nextDay=!0,e._a[hr]=0),e._d=(e._useUTC?we:be).apply(null,a),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[hr]=24),e._w&&"undefined"!=typeof e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}function lt(e){var t,n,i,r,o,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,n=ot(t.GG,e._a[dr],_e(St(),1,4).year),i=ot(t.W,1),((r=ot(t.E,1))<1||7<r)&&(l=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var u=_e(St(),o,a);n=ot(t.gg,e._a[dr],u.year),i=ot(t.w,u.week),null!=t.d?((r=t.d)<0||6<r)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||6<t.e)&&(l=!0)):r=o}i<1||i>Ce(n,o,a)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=ke(n,i,r,o,a),e._a[dr]=s.year,e._dayOfYear=s.dayOfYear)}function ut(e){var t,n,i,r,o,a,s=e._i,l=Fr.exec(s)||$r.exec(s);if(l){for(p(e).iso=!0,t=0,n=Ir.length;t<n;t++)if(Ir[t][1].exec(l[1])){r=Ir[t][0],i=!1!==Ir[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=qr.length;t<n;t++)if(qr[t][1].exec(l[3])){o=(l[2]||" ")+qr[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Rr.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=r+(o||"")+(a||""),yt(e)}else e._isValid=!1}function dt(e,t,n,i,r,o){var a=[ct(e),_r.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return o&&a.push(parseInt(o,10)),a}function ct(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ft(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function ht(e,t,n){if(e&&Mr.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return p(n).weekdayMismatch=!0,n._isValid=!1;return!0}function pt(e,t,n){if(e)return Ur[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return 60*((i-r)/100)+r}function mt(e){var t=Br.exec(ft(e._i));if(t){var n=dt(t[4],t[3],t[2],t[5],t[6],t[7]);if(!ht(t[1],n,e))return;e._a=n,e._tzm=pt(t[8],t[9],t[10]),e._d=we.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function gt(e){var t=zr.exec(e._i);null===t?(ut(e),!1===e._isValid&&(delete e._isValid,mt(e),!1===e._isValid&&(delete e._isValid,u.createFromInputFallback(e)))):e._d=new Date(+t[1])}function yt(e){if(e._f!==u.ISO_8601)if(e._f!==u.RFC_2822){e._a=[],p(e).empty=!0;var t,n,i,r,o,a=""+e._i,s=a.length,l=0;for(i=B(e._f,e._locale).match(Ri)||[],t=0;t<i.length;t++)r=i[t],(n=(a.match(V(r,e))||[])[0])&&(0<(o=a.substr(0,a.indexOf(n))).length&&p(e).unusedInput.push(o),a=a.slice(a.indexOf(n)+n.length),l+=n.length),zi[r]?(n?p(e).empty=!1:p(e).unusedTokens.push(r),J(r,n,e)):e._strict&&!n&&p(e).unusedTokens.push(r);p(e).charsLeftOver=s-l,0<a.length&&p(e).unusedInput.push(a),e._a[hr]<=12&&!0===p(e).bigHour&&0<e._a[hr]&&(p(e).bigHour=undefined),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[hr]=vt(e._locale,e._a[hr],e._meridiem),st(e),rt(e)}else mt(e);else ut(e)}function vt(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0)),t)}function bt(e){var t,n,i,r,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)o=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],yt(t),m(t)&&(o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,(null==i||o<i)&&(i=o,n=t));f(e,n||t)}function wt(e){if(!e._d){var t=H(e._i);e._a=n([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),st(e)}}function xt(e){var t=new y(rt(kt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function kt(e){var t=e._i,n=e._f;return e._locale=e._locale||nt(e._l),null===t||n===undefined&&""===t?i({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new y(rt(t)):(r(t)?e._d=t:a(n)?bt(e):n?yt(e):_t(e),m(e)||(e._d=null),e))}function _t(e){var t=e._i;o(t)?e._d=new Date(u.now()):r(t)?e._d=new Date(t.valueOf()):"string"==typeof t?gt(e):a(t)?(e._a=n(t.slice(0),function(e){return parseInt(e,10)}),st(e)):s(t)?wt(e):d(t)?e._d=new Date(t):u.createFromInputFallback(e)}function Ct(e,t,n,i,r){var o={};return!0!==n&&!1!==n||(i=n,n=undefined),(s(e)&&l(e)||a(e)&&0===e.length)&&(e=undefined),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=n,o._i=e,o._f=t,o._strict=i,xt(o)}function St(e,t,n,i){return Ct(e,t,n,i,!1)}function Tt(e,t){var n,i;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return St();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function Dt(){return Tt("isBefore",[].slice.call(arguments,0))}function Mt(){return Tt("isAfter",[].slice.call(arguments,0))}function Et(e){for(var t in e)if(-1===br.call(Qr,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<Qr.length;++i)if(e[Qr[i]]){if(n)return!1;parseFloat(e[Qr[i]])!==w(e[Qr[i]])&&(n=!0)}return!0}function Ot(){return this._isValid}function jt(){return Qt(NaN)}function Nt(e){var t=H(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=Et(t),this._milliseconds=+d+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=nt(),this._bubble()}function At(e){return e instanceof Nt}function Yt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,n){R(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+$(~~(
e/60),2)+n+$(~~e%60,2)})}function Lt(e,t){var n=(t||"").match(e);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(Zr)||["-",0,0],r=60*i[1]+w(i[2]);return 0===r?0:"+"===i[0]?r:-r}function Ht(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(v(e)||r(e)?e.valueOf():St(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),u.updateOffset(n,!1),n):St(e).local()}function Wt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ft(e,t,n){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:Wt(this);if("string"==typeof e){if(null===(e=Lt(or,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Wt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?tn(this,Qt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,u.updateOffset(this,!0),this._changeInProgress=null)),this}function $t(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Rt(e){return this.utcOffset(0,e)}function It(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Wt(this),"m")),this}function qt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Lt(rr,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function zt(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Bt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ut(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=kt(e))._a){var t=e._isUTC?h(e._a):St(e._a);this._isDSTShifted=this.isValid()&&0<x(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted}function Vt(){return!!this.isValid()&&!this._isUTC}function Gt(){return!!this.isValid()&&this._isUTC}function Xt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Qt(e,t){var n,i,r,o=e,a=null;return At(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:d(e)?(o={},t?o[t]=e:o.milliseconds=e):(a=Jr.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:w(a[fr])*n,h:w(a[hr])*n,m:w(a[pr])*n,s:w(a[mr])*n,ms:w(Yt(1e3*a[gr]))*n}):(a=Kr.exec(e))?(n="-"===a[1]?-1:(a[1],1),o={y:Zt(a[2],n),M:Zt(a[3],n),w:Zt(a[4],n),d:Zt(a[5],n),h:Zt(a[6],n),m:Zt(a[7],n),s:Zt(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=Kt(St(o.from),St(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),i=new Nt(o),At(e)&&c(e,"_locale")&&(i._locale=e._locale),i}function Zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Jt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Kt(e,t){var n;return e.isValid()&&t.isValid()?(t=Ht(t,e),e.isBefore(t)?n=Jt(e,t):((n=Jt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function en(i,r){return function(e,t){var n;return null===t||isNaN(+t)||(C(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),tn(this,Qt(e="string"==typeof e?+e:e,t),i),this}}function tn(e,t,n,i){var r=t._milliseconds,o=Yt(t._days),a=Yt(t._months);e.isValid()&&(i=null==i||i,a&&he(e,ie(e,"Month")+a*n),o&&re(e,"Date",ie(e,"Date")+o*n),r&&e._d.setTime(e._d.valueOf()+r*n),i&&u.updateOffset(e,o||a))}function nn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function rn(e,t){var n=e||St(),i=Ht(n,this).startOf("day"),r=u.calendarFormat(this,i)||"sameElse",o=t&&(S(t[r])?t[r].call(this,n):t[r]);return this.format(o||this.localeData().calendar(r,this,St(n)))}function on(){return new y(this)}function an(e,t){var n=v(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(o(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function sn(e,t){var n=v(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(o(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function ln(e,t,n,i){return("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))}function un(e,t){var n,i=v(e)?e:St(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=L(t||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function dn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function cn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function fn(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Ht(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=L(t)){case"year":o=hn(this,i)/12;break;case"month":o=hn(this,i);break;case"quarter":o=hn(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:b(o)}function hn(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function pn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function mn(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function gn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]';return this.format(n+i+r+o)}function yn(e){e||(e=this.isUtc()?u.defaultFormatUtc:u.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)}function vn(e,t){return this.isValid()&&(v(e)&&e.isValid()||St(e).isValid())?Qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function bn(e){return this.from(St(),e)}function wn(e,t){return this.isValid()&&(v(e)&&e.isValid()||St(e).isValid())?Qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function xn(e){return this.to(St(),e)}function kn(e){var t;return e===undefined?this._locale._abbr:(null!=(t=nt(e))&&(this._locale=t),this)}function _n(){return this._locale}function Cn(e){switch(e=L(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function Sn(e){return(e=L(e))===undefined||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function Tn(){return this._d.valueOf()-6e4*(this._offset||0)}function Dn(){return Math.floor(this.valueOf()/1e3)}function Mn(){return new Date(this.valueOf())}function En(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function On(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function jn(){return this.isValid()?this.toISOString():null}function Nn(){return m(this)}function An(){return f({},p(this))}function Yn(){return p(this).overflow}function Pn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ln(e,t){R(0,[e,e.length],0,t)}function Hn(e){return Rn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wn(e){return Rn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Fn(){return Ce(this.year(),1,4)}function $n(){var e=this.localeData()._week;return Ce(this.year(),e.dow,e.doy)}function Rn(e,t,n,i,r){var o;return null==e?_e(this,i,r).year:((o=Ce(e,i,r))<t&&(t=o),In.call(this,e,t,n,i,r))}function In(e,t,n,i,r){var o=ke(e,t,n,i,r),a=we(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function qn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function zn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Bn(e,t){t[gr]=w(1e3*("0."+e))}function Un(){return this._isUTC?"UTC":""}function Vn(){return this._isUTC?"Coordinated Universal Time":""}function Gn(e){return St(1e3*e)}function Xn(){return St.apply(null,arguments).parseZone()}function Qn(e){return e}function Zn(e,t,n,i){var r=nt(),o=h().set(i,t);return r[n](o,e)}function Jn(e,t,n){if(d(e)&&(t=e,e=undefined),e=e||"",null!=t)return Zn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Zn(e,i,n,"month");return r}function Kn(e,t,n,i){"boolean"==typeof e?d(t)&&(n=t,t=undefined):(t=e,e=!1,d(n=t)&&(n=t,t=undefined)),t=t||"";var r,o=nt(),a=e?o._week.dow:0;if(null!=n)return Zn(t,(n+a)%7,i,"day");var s=[];for(r=0;r<7;r++)s[r]=Zn(t,(r+a)%7,i,"day");return s}function ei(e,t){return Jn(e,t,"months")}function ti(e,t){return Jn(e,t,"monthsShort")}function ni(e,t,n){return Kn(e,t,n,"weekdays")}function ii(e,t,n){return Kn(e,t,n,"weekdaysShort")}function ri(e,t,n){return Kn(e,t,n,"weekdaysMin")}function oi(){var e=this._data;return this._milliseconds=co(this._milliseconds),this._days=co(this._days),this._months=co(this._months),e.milliseconds=co(e.milliseconds),e.seconds=co(e.seconds),e.minutes=co(e.minutes),e.hours=co(e.hours),e.months=co(e.months),e.years=co(e.years),this}function ai(e,t,n,i){var r=Qt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function si(e,t){return ai(this,e,t,1)}function li(e,t){return ai(this,e,t,-1)}function ui(e){return e<0?Math.floor(e):Math.ceil(e)}function di(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return 0<=o&&0<=a&&0<=s||o<=0&&a<=0&&s<=0||(o+=864e5*ui(fi(s)+a),s=a=0),l.milliseconds=o%1e3,e=b(o/1e3),l.seconds=e%60,t=b(e/60),l.minutes=t%60,n=b(t/60),l.hours=n%24,s+=r=b(ci(a+=b(n/24))),a-=ui(fi(r)),i=b(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function ci(e){return 4800*e/146097}function fi(e){return 146097*e/4800}function hi(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=L(e))||"year"===e)return t=this._days+i/864e5,n=this._months+ci(t),"month"===e?n:n/12;switch(t=this._days+Math.round(fi(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function pi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN}function mi(e){return function(){return this.as(e)}}function gi(){return Qt(this)}function yi(e){return e=L(e),this.isValid()?this[e+"s"]():NaN}function vi(e){return function(){return this.isValid()?this._data[e]:NaN}}function bi(){return b(this.days()/7)}function wi(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function xi(e,t,n){var i=Qt(e).abs(),r=Do(i.as("s")),o=Do(i.as("m")),a=Do(i.as("h")),s=Do(i.as("d")),l=Do(i.as("M")),u=Do(i.as("y")),d=r<=Mo.ss&&["s",r]||r<Mo.s&&["ss",r]||o<=1&&["m"]||o<Mo.m&&["mm",o]||a<=1&&["h"]||a<Mo.h&&["hh",a]||s<=1&&["d"]||s<Mo.d&&["dd",s]||l<=1&&["M"]||l<Mo.M&&["MM",l]||u<=1&&["y"]||["yy",u];return d[2]=t,d[3]=0<+e,d[4]=n,wi.apply(null,d)}function ki(e){return e===undefined?Do:"function"==typeof e&&(Do=e,!0)}function _i(e,t){return Mo[e]!==undefined&&(t===undefined?Mo[e]:(Mo[e]=t,"s"===e&&(Mo.ss=t-1),!0))}function Ci(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=xi(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Si(e){return(0<e)-(e<0)||+e}function Ti(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Eo(this._milliseconds)/1e3,i=Eo(this._days),r=Eo(this._months);t=b((e=b(n/60))/60),n%=60,e%=60;var o=b(r/12),a=r%=12,s=i,l=t,u=e,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var f=c<0?"-":"",h=Si(this._months)!==Si(c)?"-":"",p=Si(this._days)!==Si(c)?"-":"",m=Si(this._milliseconds)!==Si(c)?"-":"";return f+"P"+(o?h+o+"Y":"")+(a?h+a+"M":"")+(s?p+s+"D":"")+(l||u||d?"T":"")+(l?m+l+"H":"")+(u?m+u+"M":"")+(d?m+d+"S":"")}var Di,Mi;Mi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var Ei,Oi=u.momentProperties=[],ji=!1,Ni={};u.suppressDeprecationWarnings=!1,u.deprecationHandler=null,Ei=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};var Ai={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Yi={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Pi="Invalid date",Li="%d",Hi=/\d{1,2}/,Wi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Fi={},$i={},Ri=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ii=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,qi={},zi={},Bi=/\d/,Ui=/\d\d/,Vi=/\d{3}/,Gi=/\d{4}/,Xi=/[+-]?\d{6}/,Qi=/\d\d?/,Zi=/\d\d\d\d?/,Ji=/\d\d\d\d\d\d?/,Ki=/\d{1,3}/,er=/\d{1,4}/,tr=/[+-]?\d{1,6}/,nr=/\d+/,ir=/[+-]?\d+/,rr=/Z|[+-]\d\d:?\d\d/gi,or=/Z|[+-]\d\d(?::?\d\d)?/gi,ar=/[+-]?\d+(\.\d{1,3})?/,sr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,lr={},ur={},dr=0,cr=1,fr=2,hr=3,pr=4,mr=5,gr=6,yr=7,vr=8;R("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),R(0,["YY",2],0,function(){return this.year()%100}),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),P("year","y"),W("year",1),U("Y",ir),U("YY",Qi,Ui),U("YYYY",er,Gi),U("YYYYY",tr,Xi),U("YYYYYY",tr,Xi),Q(["YYYYY","YYYYYY"],dr),Q("YYYY",function(e,t){t[dr]=2===e.length?u.parseTwoDigitYear(e):w(e)}),Q("YY",function(e,t){t[dr]=u.parseTwoDigitYear(e)}),Q("Y",function(e,t){t[dr]=parseInt(e,10)}),u.parseTwoDigitYear=function(e){return w(e)+(68<w(e)?1900:2e3)};var br,wr=ne("FullYear",!0);br=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},R("M",["MM",2],"Mo",function(){return this.month()+1}),R("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),R("MMMM",0,0,function(e){return this.localeData().months(this,e)}),P("month","M"),W("month",8),U("M",Qi),U("MM",Qi,Ui),U("MMM",function(e,t){return t.monthsShortRegex(e)}),U("MMMM",function(e,t){return t.monthsRegex(e)}),Q(["M","MM"],function(e,t){t[cr]=w(e)-1}),Q(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[cr]=r:p(n).invalidMonth=e});var xr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,kr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_r="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Cr=sr,Sr=sr;R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),W("week",5),W("isoWeek",5),U("w",Qi),U("ww",Qi,Ui),U("W",Qi),U("WW",Qi,Ui),Z(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=w(e)});var Tr={dow:0,doy:6};R("d",0,"do","day"),R("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),R("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),R("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),U("d",Qi),U("e",Qi),U("E",Qi),U("dd",function(e,t){return t.weekdaysMinRegex(e)}),U("ddd",function(e,t){return t.weekdaysShortRegex(e)}),U("dddd",function(e,t){return t.weekdaysRegex(e)}),Z(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),Z(["d","e","E"],function(e,t,n,i){t[i]=w(e)});var Dr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Mr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Er="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Or=sr,jr=sr,Nr=sr;R("H",["HH",2],0,"hour"),R("h",["hh",2],0,ze),R("k",["kk",2],0,Be),R("hmm",0,0,function(){return""+ze.apply(this)+$(this.minutes(),2)}),R("hmmss",0,0,function(){return""+ze.apply(this)+$(this.minutes(),2)+$(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+$(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+$(this.minutes(),2)+$(this.seconds(),2)}),Ue("a",!0),Ue("A",!1),P("hour","h"),W("hour",13),U("a",Ve),U("A",Ve),U("H",Qi),U("h",Qi),U("k",Qi),U("HH",Qi,Ui),U("hh",Qi,Ui),U("kk",Qi,Ui),U("hmm",Zi),U("hmmss",Ji),U("Hmm",Zi),U("Hmmss",Ji),Q(["H","HH"],hr),Q(["k","kk"],function(e,t){var n=w(e);t[hr]=24===n?0:n}),Q(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Q(["h","hh"],function(e,t,n){t[hr]=w(e),p(n).bigHour=!0}),Q("hmm",function(e,t,n){var i=e.length-2;t[hr]=w(e.substr(0,i)),t[pr]=w(e.substr(i)),p(n).bigHour=!0}),Q("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[hr]=w(e.substr(0,i)),t[pr]=w(e.substr(i,2)),t[mr]=w(e.substr(r)),p(n).bigHour=!0}),Q("Hmm",function(e,t){var n=e.length-2;t[hr]=w(e.substr(0,n)),t[pr]=w(e.substr(n))}),Q("Hmmss",function(e,t){var n=e.length-4,i=e.length-2;t[hr]=w(e.substr(0,n)),t[pr]=w(e.substr(n,2)),t[mr]=w(e.substr(i))});var Ar,Yr=/[ap]\.?m?\.?/i,Pr=ne("Hours",!0),Lr={calendar:Ai,longDateFormat:Yi,invalidDate:Pi,ordinal:Li,dayOfMonthOrdinalParse:Hi,relativeTime:Wi,months:kr,monthsShort:_r,week:Tr,weekdays:Dr,weekdaysMin:Er,weekdaysShort:Mr,meridiemParse:Yr},Hr={},Wr={},Fr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,$r=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Rr=/Z|[+-]\d\d(?::?\d\d)?/,Ir=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],qr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],zr=/^\/?Date\((\-?\d+)/i,Br=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ur={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};u.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),u.ISO_8601=function(){},u.RFC_2822=function(){};var Vr=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:i()}),Gr=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:i()}),Xr=function(){return Date.now?Date.now():+new Date},Qr=["year","quarter","month","week","day","hour","minute","second","millisecond"];Pt("Z",":"),Pt("ZZ",""),U("Z",or),U("ZZ",or),Q(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Lt(or,e)});var Zr=/([\+\-]|\d\d)/gi;u.updateOffset=function(){};var Jr=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Kr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Qt.fn=Nt.prototype,Qt.invalid=jt;var eo=en(1,"add"),to=en(-1,"subtract");u.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",u.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var no=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===undefined?this.localeData():this.locale(e)});R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ln("gggg","weekYear"),Ln("ggggg","weekYear"),Ln("GGGG","isoWeekYear"),Ln("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),U("G",ir),U("g",ir),U("GG",Qi,Ui),U("gg",Qi,Ui),U("GGGG",er,Gi),U("gggg",er,Gi),U("GGGGG",tr,Xi),U("ggggg",tr,Xi),Z(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=w(e)}),Z(["gg","GG"],function(e,t,n,i){t[i]=u.parseTwoDigitYear(e)}),R("Q",0,"Qo","quarter"),P("quarter","Q"),W("quarter",7),U("Q",Bi),Q("Q",function(e,t){t[cr]=3*(w(e)-1)}),R("D",["DD",2],"Do","date"),P("date","D"),W("date",9),U("D",Qi),U("DD",Qi,Ui),U("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Q(["D","DD"],fr),Q("Do",function(e,t){t[fr]=w(e.match(Qi)[0])});var io=ne("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),W("dayOfYear",4),U("DDD",Ki),U("DDDD",Vi),Q(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)}),R("m",["mm",2],0,"minute"),P("minute","m"),W("minute",14),U("m",Qi),U("mm",Qi,Ui),Q(["m","mm"],pr);var ro=ne("Minutes",!1);R("s",["ss",2],0,"second"),P("second","s"),W("second",15),U("s",Qi),U("ss",Qi,Ui),Q(["s","ss"],mr);var oo,ao=ne("Seconds",!1);for(R("S",0,0,function(){return~~(this.millisecond()/100)}),R(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,function(){return 10*this.millisecond()}),R(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),R(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),R(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),R(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),R(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),W("millisecond",16),U("S",Ki,Bi),U("SS",Ki,Ui),U("SSS",Ki,Vi),oo="SSSS";oo.length<=9;oo+="S")U(oo,nr);for(oo="S";oo.length<=9;oo+="S")Q(oo,Bn);var so=ne("Milliseconds",!1);R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var lo=y.prototype;lo.add=eo,lo.calendar=rn,lo.clone=on,lo.diff=fn,lo.endOf=Sn,lo.format=yn,lo.from=vn,lo.fromNow=bn,lo.to=wn,lo.toNow=xn,lo.get=oe,lo.invalidAt=Yn,lo.isAfter=an,lo.isBefore=sn,lo.isBetween=ln,lo.isSame=un,lo.isSameOrAfter=dn,lo.isSameOrBefore=cn,lo.isValid=Nn,lo.lang=no,lo.locale=kn,lo.localeData=_n,lo.max=Gr,lo.min=Vr,lo.parsingFlags=An,lo.set=ae,lo.startOf=Cn,lo.subtract=to,lo.toArray=En,lo.toObject=On,lo.toDate=Mn,lo.toISOString=mn,lo.inspect=gn,lo.toJSON=jn,lo.toString=pn,lo.unix=Dn,lo.valueOf=Tn,lo.creationData=Pn,lo.year=wr,lo.isLeapYear=te,lo.weekYear=Hn,lo.isoWeekYear=Wn,lo.quarter=lo.quarters=qn,lo.month=pe,lo.daysInMonth=me,lo.week=lo.weeks=Me,lo.isoWeek=lo.isoWeeks=Ee,lo.weeksInYear=$n,lo.isoWeeksInYear=Fn,lo.date=io,lo.day=lo.days=He,lo.weekday=We,lo.isoWeekday=Fe,lo.dayOfYear=zn,lo.hour=lo.hours=Pr,lo.minute=lo.minutes=ro,lo.second=lo.seconds=ao,lo.millisecond=lo.milliseconds=so,lo.utcOffset=Ft,lo.utc=Rt,lo.local=It,lo.parseZone=qt,lo.hasAlignedHourOffset=zt,lo.isDST=Bt,lo.isLocal=Vt,lo.isUtcOffset=Gt,lo.isUtc=Xt,lo.isUTC=Xt,lo.zoneAbbr=Un,lo.zoneName=Vn,lo.dates=_("dates accessor is deprecated. Use date instead.",io),lo.months=_("months accessor is deprecated. Use month instead",pe),lo.years=_("years accessor is deprecated. Use year instead",wr),lo.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",$t),lo.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ut);var uo=M.prototype;uo.calendar=E,uo.longDateFormat=O,uo.invalidDate=j,uo.ordinal=N,uo.preparse=Qn,uo.postformat=Qn,uo.relativeTime=A,uo.pastFuture=Y,uo.set=T,uo.months=ue,uo.monthsShort=de,uo.monthsParse=fe,uo.monthsRegex=ye,uo.monthsShortRegex=ge,uo.week=Se,uo.firstDayOfYear=De,uo.firstDayOfWeek=Te,uo.weekdays=Ne,uo.weekdaysMin=Ye,uo.weekdaysShort=Ae,uo.weekdaysParse=Le,uo.weekdaysRegex=$e,uo.weekdaysShortRegex=Re,uo.weekdaysMinRegex=Ie,uo.isPM=Ge,uo.meridiem=Xe,Ke("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),u.lang=_("moment.lang is deprecated. Use moment.locale instead.",Ke),u.langData=_("moment.langData is deprecated. Use moment.localeData instead.",nt);var co=Math.abs,fo=mi("ms"),ho=mi("s"),po=mi("m"),mo=mi("h"),go=mi("d"),yo=mi("w"),vo=mi("M"),bo=mi("y"),wo=vi("milliseconds"),xo=vi("seconds"),ko=vi("minutes"),_o=vi("hours"),Co=vi("days"),So=vi("months"),To=vi("years"),Do=Math.round,Mo={ss:44,s:45,m:45,h:22,d:26,M:11},Eo=Math.abs,Oo=Nt.prototype;return Oo.isValid=Ot,Oo.abs=oi,Oo.add=si,Oo.subtract=li,Oo.as=hi,Oo.asMilliseconds=fo,Oo.asSeconds=ho,Oo.asMinutes=po,Oo.asHours=mo,Oo.asDays=go,Oo.asWeeks=yo,Oo.asMonths=vo,Oo.asYears=bo,Oo.valueOf=pi,Oo._bubble=di,Oo.clone=gi,Oo.get=yi,Oo.milliseconds=wo,Oo.seconds=xo,Oo.minutes=ko,Oo.hours=_o,Oo.days=Co,Oo.weeks=bi,Oo.months=So,Oo.years=To,Oo.humanize=Ci,Oo.toISOString=Ti,Oo.toString=Ti,Oo.toJSON=Ti,Oo.locale=kn,Oo.localeData=_n,Oo.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ti),Oo.lang=no,R("X",0,0,"unix"),R("x",0,0,"valueOf"),U("x",ir),U("X",ar),Q("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),Q("x",function(e,t,n){n._d=new Date(w(e))}),u.version="2.20.1",e(St),u.fn=lo,u.min=Dt,u.max=Mt,u.now=Xr,u.utc=h,u.unix=Gn,u.months=ei,u.isDate=r,u.locale=Ke,u.invalid=i,u.duration=Qt,u.isMoment=v,u.weekdays=ni,u.parseZone=Xn,u.localeData=nt,u.isDuration=At,u.monthsShort=ti,u.weekdaysMin=ri,u.defineLocale=et,u.updateLocale=tt,u.locales=it,u.weekdaysShort=ii,u.normalizeUnits=L,u.relativeTimeRounding=ki,u.relativeTimeThreshold=_i,u.calendarFormat=nn,u.prototype=lo,u.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},u}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";function r(e){return e%10<5&&1<e%10&&~~(e/10)%10!=1}function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return i+(r(e)?"godziny":"godzin");case"MM":return i+(r(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return i+(r(e)?"lata":"lat")}}var n="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");return e.defineLocale("pl",{months:function(e,t){return e?""===t?"("+i[e.month()]+"|"+n[e.month()]+")":/D MMMM/.test(t)?i[e.month()]:n[e.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:t,m:t,mm:t,h:t,hh:t,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:t,y:"rok",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],e);else if("object"==typeof exports)e(require("jquery"),require("moment"));else{if("undefined"==typeof jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if("undefined"==typeof moment)throw"bootstrap-datetimepicker requires Moment.js to be loaded first";e(jQuery,moment)}}(function(fe,he){"use strict";if(!he)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var n=function(o,d){var n,a,i,t,r,c={},s=he().startOf("d"),l=s.clone(),u=!0,f=!1,h=!1,p=0,m=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],g=["days","months","years","decades"],y=["top","bottom","auto"],v=["left","right","auto"],b=["default","top","bottom"],w={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t","delete":46,46:"delete"},x={},k=function(e){if("string"!=typeof e||1<e.length)throw new TypeError("isEnabled expects a single character string parameter");switch(e){case"y":return-1!==i.indexOf("Y");case"M":return-1!==i.indexOf("M");case"d":return-1!==i.toLowerCase().indexOf("d");case"h":case"H":return-1!==i.toLowerCase().indexOf("h");case"m":return-1!==i.indexOf("m");case"s":return-1!==i.indexOf("s");default:return!1}},_=function(){return k("h")||k("m")||k("s")},C=function(){return k("y")||k("M")||k("d")},S=function(){var e=fe("<thead>").append(fe("<tr>").append(fe("<th>").addClass("prev").attr("data-action","previous").append(fe("<span>").addClass(d.icons.previous))).append(fe("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",d.calendarWeeks?"6":"5")).append(fe("<th>").addClass("next").attr("data-action","next").append(fe("<span>").addClass(d.icons.next)))),t=fe("<tbody>").append(fe("<tr>").append(fe("<td>").attr("colspan",d.calendarWeeks?"8":"7")));return[fe("<div>").addClass("datepicker-days").append(fe("<table>").addClass("table-condensed").append(e).append(fe("<tbody>"))),fe("<div>").addClass("datepicker-months").append(fe("<table>").addClass("table-condensed").append(e.clone()).append(t.clone())),fe("<div>").addClass("datepicker-years").append(fe("<table>").addClass("table-condensed").append(e.clone()).append(t.clone())),fe("<div>").addClass("datepicker-decades").append(fe("<table>").addClass("table-condensed").append(e.clone()).append(t.clone()
))]},T=function(){var e=fe("<tr>"),t=fe("<tr>"),n=fe("<tr>");return k("h")&&(e.append(fe("<td>").append(fe("<a>").attr({href:"#",tabindex:"-1",title:"Increment Hour"}).addClass("btn").attr("data-action","incrementHours").append(fe("<span>").addClass(d.icons.up)))),t.append(fe("<td>").append(fe("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:"Pick Hour"}).attr("data-action","showHours"))),n.append(fe("<td>").append(fe("<a>").attr({href:"#",tabindex:"-1",title:"Decrement Hour"}).addClass("btn").attr("data-action","decrementHours").append(fe("<span>").addClass(d.icons.down))))),k("m")&&(k("h")&&(e.append(fe("<td>").addClass("separator")),t.append(fe("<td>").addClass("separator").html(":")),n.append(fe("<td>").addClass("separator"))),e.append(fe("<td>").append(fe("<a>").attr({href:"#",tabindex:"-1",title:"Increment Minute"}).addClass("btn").attr("data-action","incrementMinutes").append(fe("<span>").addClass(d.icons.up)))),t.append(fe("<td>").append(fe("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:"Pick Minute"}).attr("data-action","showMinutes"))),n.append(fe("<td>").append(fe("<a>").attr({href:"#",tabindex:"-1",title:"Decrement Minute"}).addClass("btn").attr("data-action","decrementMinutes").append(fe("<span>").addClass(d.icons.down))))),k("s")&&(k("m")&&(e.append(fe("<td>").addClass("separator")),t.append(fe("<td>").addClass("separator").html(":")),n.append(fe("<td>").addClass("separator"))),e.append(fe("<td>").append(fe("<a>").attr({href:"#",tabindex:"-1",title:"Increment Second"}).addClass("btn").attr("data-action","incrementSeconds").append(fe("<span>").addClass(d.icons.up)))),t.append(fe("<td>").append(fe("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:"Pick Second"}).attr("data-action","showSeconds"))),n.append(fe("<td>").append(fe("<a>").attr({href:"#",tabindex:"-1",title:"Decrement Second"}).addClass("btn").attr("data-action","decrementSeconds").append(fe("<span>").addClass(d.icons.down))))),a||(e.append(fe("<td>").addClass("separator")),t.append(fe("<td>").append(fe("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:"Toggle Period"}))),n.append(fe("<td>").addClass("separator"))),fe("<div>").addClass("timepicker-picker").append(fe("<table>").addClass("table-condensed").append([e,t,n]))},D=function(){var e=fe("<div>").addClass("timepicker-hours").append(fe("<table>").addClass("table-condensed")),t=fe("<div>").addClass("timepicker-minutes").append(fe("<table>").addClass("table-condensed")),n=fe("<div>").addClass("timepicker-seconds").append(fe("<table>").addClass("table-condensed")),i=[T()];return k("h")&&i.push(e),k("m")&&i.push(t),k("s")&&i.push(n),i},M=function(){var e=[];return d.showTodayButton&&e.push(fe("<td>").append(fe("<a>").attr({"data-action":"today",title:"Go to today"}).append(fe("<span>").addClass(d.icons.today)))),!d.sideBySide&&C()&&_()&&e.push(fe("<td>").append(fe("<a>").attr({"data-action":"togglePicker",title:"Select Time"}).append(fe("<span>").addClass(d.icons.time)))),d.showClear&&e.push(fe("<td>").append(fe("<a>").attr({"data-action":"clear",title:"Clear selection"}).append(fe("<span>").addClass(d.icons.clear)))),d.showClose&&e.push(fe("<td>").append(fe("<a>").attr({"data-action":"close",title:"Close the picker"}).append(fe("<span>").addClass(d.icons.close)))),fe("<table>").addClass("table-condensed").append(fe("<tbody>").append(fe("<tr>").append(e)))},E=function(){var e=fe("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),t=fe("<div>").addClass("datepicker").append(S()),n=fe("<div>").addClass("timepicker").append(D()),i=fe("<ul>").addClass("list-unstyled"),r=fe("<li>").addClass("picker-switch"+(d.collapse?" accordion-toggle":"")).append(M());return d.inline&&e.removeClass("dropdown-menu"),a&&e.addClass("usetwentyfour"),k("s")&&!a&&e.addClass("wider"),d.sideBySide&&C()&&_()?(e.addClass("timepicker-sbs"),e.append(fe("<div>").addClass("row").append(t.addClass("col-sm-6")).append(n.addClass("col-sm-6"))),e.append(r),e):("top"===d.toolbarPlacement&&i.append(r),C()&&i.append(fe("<li>").addClass(d.collapse&&_()?"collapse in":"").append(t)),"default"===d.toolbarPlacement&&i.append(r),_()&&i.append(fe("<li>").addClass(d.collapse&&C()?"collapse":"").append(n)),"bottom"===d.toolbarPlacement&&i.append(r),e.append(i))},e=function(){var n,i={};return(n=o.is("input")||d.inline?o.data():o.find("input").data()).dateOptions&&n.dateOptions instanceof Object&&(i=fe.extend(!0,i,n.dateOptions)),fe.each(d,function(e){var t="date"+e.charAt(0).toUpperCase()+e.slice(1);n[t]!==undefined&&(i[e]=n[t])}),i},O=function(){var e,t=(f||o).position(),n=(f||o).offset(),i=d.widgetPositioning.vertical,r=d.widgetPositioning.horizontal;if(d.widgetParent)e=d.widgetParent.append(h);else if(o.is("input"))e=o.after(h).parent();else{if(d.inline)return void(e=o.append(h));(e=o).children().first().after(h)}if("auto"===i&&(i=n.top+1.5*h.height()>=fe(window).height()+fe(window).scrollTop()&&h.height()+o.outerHeight()<n.top?"top":"bottom"),"auto"===r&&(r=e.width()<n.left+h.outerWidth()/2&&n.left+h.outerWidth()>fe(window).width()?"right":"left"),"top"===i?h.addClass("top").removeClass("bottom"):h.addClass("bottom").removeClass("top"),"right"===r?h.addClass("pull-right"):h.removeClass("pull-right"),"relative"!==e.css("position")&&(e=e.parents().filter(function(){return"relative"===fe(this).css("position")}).first()),0===e.length)throw new Error("datetimepicker component should be placed within a relative positioned container");h.css({top:"top"===i?"auto":t.top+o.outerHeight(),bottom:"top"===i?t.top+o.outerHeight():"auto",left:"left"===r?e===o?0:t.left:"auto",right:"left"===r?"auto":e.outerWidth()-o.outerWidth()-(e===o?0:t.left)})},j=function(e){"dp.change"===e.type&&(e.date&&e.date.isSame(e.oldDate)||!e.date&&!e.oldDate)||o.trigger(e)},N=function(e){"y"===e&&(e="YYYY"),j({type:"dp.update",change:e,viewDate:l.clone()})},A=function(e){h&&(e&&(r=Math.max(p,Math.min(3,r+e))),h.find(".datepicker > div").hide().filter(".datepicker-"+m[r].clsName).show())},Y=function(){var e=fe("<tr>"),t=l.clone().startOf("w").startOf("d");for(!0===d.calendarWeeks&&e.append(fe("<th>").addClass("cw").text("#"));t.isBefore(l.clone().endOf("w"));)e.append(fe("<th>").addClass("dow").text(t.format("dd"))),t.add(1,"d");h.find(".datepicker-days thead").append(e)},P=function(e){return!0===d.disabledDates[e.format("YYYY-MM-DD")]},L=function(e){return!0===d.enabledDates[e.format("YYYY-MM-DD")]},H=function(e){return!0===d.disabledHours[e.format("H")]},W=function(e){return!0===d.enabledHours[e.format("H")]},F=function(e,t){if(!e.isValid())return!1;if(d.disabledDates&&"d"===t&&P(e))return!1;if(d.enabledDates&&"d"===t&&!L(e))return!1;if(d.minDate&&e.isBefore(d.minDate,t))return!1;if(d.maxDate&&e.isAfter(d.maxDate,t))return!1;if(d.daysOfWeekDisabled&&"d"===t&&-1!==d.daysOfWeekDisabled.indexOf(e.day()))return!1;if(d.disabledHours&&("h"===t||"m"===t||"s"===t)&&H(e))return!1;if(d.enabledHours&&("h"===t||"m"===t||"s"===t)&&!W(e))return!1;if(d.disabledTimeIntervals&&("h"===t||"m"===t||"s"===t)){var n=!1;if(fe.each(d.disabledTimeIntervals,function(){if(e.isBetween(this[0],this[1]))return!(n=!0)}),n)return!1}return!0},$=function(){for(var e=[],t=l.clone().startOf("y").startOf("d");t.isSame(l,"y");)e.push(fe("<span>").attr("data-action","selectMonth").addClass("month").text(t.format("MMM"))),t.add(1,"M");h.find(".datepicker-months td").empty().append(e)},R=function(){var e=h.find(".datepicker-months"),t=e.find("th"),n=e.find("tbody").find("span");t.eq(0).find("span").attr("title","Previous Year"),t.eq(1).attr("title","Select Year"),t.eq(2).find("span").attr("title","Next Year"),e.find(".disabled").removeClass("disabled"),F(l.clone().subtract(1,"y"),"y")||t.eq(0).addClass("disabled"),t.eq(1).text(l.year()),F(l.clone().add(1,"y"),"y")||t.eq(2).addClass("disabled"),n.removeClass("active"),s.isSame(l,"y")&&!u&&n.eq(s.month()).addClass("active"),n.each(function(e){F(l.clone().month(e),"M")||fe(this).addClass("disabled")})},I=function(){var e=h.find(".datepicker-years"),t=e.find("th"),n=l.clone().subtract(5,"y"),i=l.clone().add(6,"y"),r="";for(t.eq(0).find("span").attr("title","Previous Decade"),t.eq(1).attr("title","Select Decade"),t.eq(2).find("span").attr("title","Next Decade"),e.find(".disabled").removeClass("disabled"),d.minDate&&d.minDate.isAfter(n,"y")&&t.eq(0).addClass("disabled"),t.eq(1).text(n.year()+"-"+i.year()),d.maxDate&&d.maxDate.isBefore(i,"y")&&t.eq(2).addClass("disabled");!n.isAfter(i,"y");)r+='<span data-action="selectYear" class="year'+(n.isSame(s,"y")&&!u?" active":"")+(F(n,"y")?"":" disabled")+'">'+n.year()+"</span>",n.add(1,"y");e.find("td").html(r)},q=function(){var e=h.find(".datepicker-decades"),t=e.find("th"),n=l.isBefore(he({y:1999}))?he({y:1899}):he({y:1999}),i=n.clone().add(100,"y"),r="";for(t.eq(0).find("span").attr("title","Previous Century"),t.eq(2).find("span").attr("title","Next Century"),e.find(".disabled").removeClass("disabled"),(n.isSame(he({y:1900}))||d.minDate&&d.minDate.isAfter(n,"y"))&&t.eq(0).addClass("disabled"),t.eq(1).text(n.year()+"-"+i.year()),(n.isSame(he({y:2e3}))||d.maxDate&&d.maxDate.isBefore(i,"y"))&&t.eq(2).addClass("disabled");!n.isAfter(i,"y");)r+='<span data-action="selectDecade" class="decade'+(n.isSame(s,"y")?" active":"")+(F(n,"y")?"":" disabled")+'" data-selection="'+(n.year()+6)+'">'+(n.year()+1)+" - "+(n.year()+12)+"</span>",n.add(12,"y");r+="<span></span><span></span><span></span>",e.find("td").html(r)},z=function(){var e,t,n,i,r=h.find(".datepicker-days"),o=r.find("th"),a=[];if(C()){for(o.eq(0).find("span").attr("title","Previous Month"),o.eq(1).attr("title","Select Month"),o.eq(2).find("span").attr("title","Next Month"),r.find(".disabled").removeClass("disabled"),o.eq(1).text(l.format(d.dayViewHeaderFormat)),F(l.clone().subtract(1,"M"),"M")||o.eq(0).addClass("disabled"),F(l.clone().add(1,"M"),"M")||o.eq(2).addClass("disabled"),e=l.clone().startOf("M").startOf("w").startOf("d"),i=0;i<42;i++)0===e.weekday()&&(t=fe("<tr>"),d.calendarWeeks&&t.append('<td class="cw">'+e.week()+"</td>"),a.push(t)),n="",e.isBefore(l,"M")&&(n+=" old"),e.isAfter(l,"M")&&(n+=" new"),e.isSame(s,"d")&&!u&&(n+=" active"),F(e,"d")||(n+=" disabled"),e.isSame(he(),"d")&&(n+=" today"),0!==e.day()&&6!==e.day()||(n+=" weekend"),t.append('<td data-action="selectDay" data-day="'+e.format("L")+'" class="day'+n+'">'+e.date()+"</td>"),e.add(1,"d");r.find("tbody").empty().append(a),R(),I(),q()}},B=function(){var e=h.find(".timepicker-hours table"),t=l.clone().startOf("d"),n=[],i=fe("<tr>");for(11<l.hour()&&!a&&t.hour(12);t.isSame(l,"d")&&(a||l.hour()<12&&t.hour()<12||11<l.hour());)t.hour()%4==0&&(i=fe("<tr>"),n.push(i)),i.append('<td data-action="selectHour" class="hour'+(F(t,"h")?"":" disabled")+'">'+t.format(a?"HH":"hh")+"</td>"),t.add(1,"h");e.empty().append(n)},U=function(){for(var e=h.find(".timepicker-minutes table"),t=l.clone().startOf("h"),n=[],i=fe("<tr>"),r=1===d.stepping?5:d.stepping;l.isSame(t,"h");)t.minute()%(4*r)==0&&(i=fe("<tr>"),n.push(i)),i.append('<td data-action="selectMinute" class="minute'+(F(t,"m")?"":" disabled")+'">'+t.format("mm")+"</td>"),t.add(r,"m");e.empty().append(n)},V=function(){for(var e=h.find(".timepicker-seconds table"),t=l.clone().startOf("m"),n=[],i=fe("<tr>");l.isSame(t,"m");)t.second()%20==0&&(i=fe("<tr>"),n.push(i)),i.append('<td data-action="selectSecond" class="second'+(F(t,"s")?"":" disabled")+'">'+t.format("ss")+"</td>"),t.add(5,"s");e.empty().append(n)},G=function(){var e,t,n=h.find(".timepicker span[data-time-component]");a||(e=h.find(".timepicker [data-action=togglePeriod]"),t=s.clone().add(12<=s.hours()?-12:12,"h"),e.text(s.format("A")),F(t,"h")?e.removeClass("disabled"):e.addClass("disabled")),n.filter("[data-time-component=hours]").text(s.format(a?"HH":"hh")),n.filter("[data-time-component=minutes]").text(s.format("mm")),n.filter("[data-time-component=seconds]").text(s.format("ss")),B(),U(),V()},X=function(){h&&(z(),G())},Q=function(e){var t=u?null:s;if(!e)return u=!0,n.val(""),o.data("date",""),j({type:"dp.change",date:!1,oldDate:t}),void X();e=e.clone().locale(d.locale),1!==d.stepping&&e.minutes(Math.round(e.minutes()/d.stepping)*d.stepping%60).seconds(0),F(e)?(l=(s=e).clone(),n.val(s.format(i)),o.data("date",s.format(i)),u=!1,X(),j({type:"dp.change",date:s.clone(),oldDate:t})):(d.keepInvalid||n.val(u?"":s.format(i)),j({type:"dp.error",date:e}))},Z=function(){var t=!1;return h?(h.find(".collapse").each(function(){var e=fe(this).data("collapse");return!e||!e.transitioning||!(t=!0)}),t||(f&&f.hasClass("btn")&&f.toggleClass("active"),h.hide(),fe(window).off("resize",O),h.off("click","[data-action]"),h.off("mousedown",!1),h.remove(),h=!1,j({type:"dp.hide",date:s.clone()})),c):c},J=function(){Q(null)},K={next:function(){var e=m[r].navFnc;l.add(m[r].navStep,e),z(),N(e)},previous:function(){var e=m[r].navFnc;l.subtract(m[r].navStep,e),z(),N(e)},pickerSwitch:function(){A(1)},selectMonth:function(e){var t=fe(e.target).closest("tbody").find("span").index(fe(e.target));l.month(t),r===p?(Q(s.clone().year(l.year()).month(l.month())),d.inline||Z()):(A(-1),z()),N("M")},selectYear:function(e){var t=parseInt(fe(e.target).text(),10)||0;l.year(t),r===p?(Q(s.clone().year(l.year())),d.inline||Z()):(A(-1),z()),N("YYYY")},selectDecade:function(e){var t=parseInt(fe(e.target).data("selection"),10)||0;l.year(t),r===p?(Q(s.clone().year(l.year())),d.inline||Z()):(A(-1),z()),N("YYYY")},selectDay:function(e){var t=l.clone();fe(e.target).is(".old")&&t.subtract(1,"M"),fe(e.target).is(".new")&&t.add(1,"M"),Q(t.date(parseInt(fe(e.target).text(),10))),_()||d.keepOpen||d.inline||Z()},incrementHours:function(){var e=s.clone().add(1,"h");F(e,"h")&&Q(e)},incrementMinutes:function(){var e=s.clone().add(d.stepping,"m");F(e,"m")&&Q(e)},incrementSeconds:function(){var e=s.clone().add(1,"s");F(e,"s")&&Q(e)},decrementHours:function(){var e=s.clone().subtract(1,"h");F(e,"h")&&Q(e)},decrementMinutes:function(){var e=s.clone().subtract(d.stepping,"m");F(e,"m")&&Q(e)},decrementSeconds:function(){var e=s.clone().subtract(1,"s");F(e,"s")&&Q(e)},togglePeriod:function(){Q(s.clone().add(12<=s.hours()?-12:12,"h"))},togglePicker:function(e){var t,n=fe(e.target),i=n.closest("ul"),r=i.find(".in"),o=i.find(".collapse:not(.in)");if(r&&r.length){if((t=r.data("collapse"))&&t.transitioning)return;r.collapse?(r.collapse("hide"),o.collapse("show")):(r.removeClass("in"),o.addClass("in")),n.is("span")?n.toggleClass(d.icons.time+" "+d.icons.date):n.find("span").toggleClass(d.icons.time+" "+d.icons.date)}},showPicker:function(){h.find(".timepicker > div:not(.timepicker-picker)").hide(),h.find(".timepicker .timepicker-picker").show()},showHours:function(){h.find(".timepicker .timepicker-picker").hide(),h.find(".timepicker .timepicker-hours").show()},showMinutes:function(){h.find(".timepicker .timepicker-picker").hide(),h.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){h.find(".timepicker .timepicker-picker").hide(),h.find(".timepicker .timepicker-seconds").show()},selectHour:function(e){var t=parseInt(fe(e.target).text(),10);a||(12<=s.hours()?12!==t&&(t+=12):12===t&&(t=0)),Q(s.clone().hours(t)),K.showPicker.call(c)},selectMinute:function(e){Q(s.clone().minutes(parseInt(fe(e.target).text(),10))),K.showPicker.call(c)},selectSecond:function(e){Q(s.clone().seconds(parseInt(fe(e.target).text(),10))),K.showPicker.call(c)},clear:J,today:function(){F(he(),"d")&&Q(he())},close:Z},ee=function(e){return fe(e.currentTarget).is(".disabled")||K[fe(e.currentTarget).data("action")].apply(c,arguments),!1},te=function(){var e,t={year:function(e){return e.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(e){return e.date(1).hours(0).seconds(0).minutes(0)},day:function(e){return e.hours(0).seconds(0).minutes(0)},hour:function(e){return e.seconds(0).minutes(0)},minute:function(e){return e.seconds(0)}};return n.prop("disabled")||!d.ignoreReadonly&&n.prop("readonly")||h||(n.val()!==undefined&&0!==n.val().trim().length?Q(ie(n.val().trim())):d.useCurrent&&u&&(n.is("input")&&0===n.val().trim().length||d.inline)&&(e=he(),"string"==typeof d.useCurrent&&(e=t[d.useCurrent](e)),Q(e)),h=E(),Y(),$(),h.find(".timepicker-hours").hide(),h.find(".timepicker-minutes").hide(),h.find(".timepicker-seconds").hide(),X(),A(),fe(window).on("resize",O),h.on("click","[data-action]",ee),h.on("mousedown",!1),f&&f.hasClass("btn")&&f.toggleClass("active"),h.show(),O(),d.focusOnShow&&!n.is(":focus")&&n.focus(),j({type:"dp.show"})),c},ne=function(){return h?Z():te()},ie=function(e){return(e=d.parseInputDate===undefined?he.isMoment(e)||e instanceof Date?he(e):he(e,t,d.useStrict):d.parseInputDate(e)).locale(d.locale),e},re=function(e){var t,n,i,r,o=null,a=[],s={},l=e.which,u="p";for(t in x[l]=u,x)x.hasOwnProperty(t)&&x[t]===u&&(a.push(t),parseInt(t,10)!==l&&(s[t]=!0));for(t in d.keyBinds)if(d.keyBinds.hasOwnProperty(t)&&"function"==typeof d.keyBinds[t]&&(i=t.split(" ")).length===a.length&&w[l]===i[i.length-1]){for(r=!0,n=i.length-2;0<=n;n--)if(!(w[i[n]]in s)){r=!1;break}if(r){o=d.keyBinds[t];break}}o&&(o.call(c,h),e.stopPropagation(),e.preventDefault())},oe=function(e){x[e.which]="r",e.stopPropagation(),e.preventDefault()},ae=function(e){var t=fe(e.target).val().trim(),n=t?ie(t):null;return Q(n),e.stopImmediatePropagation(),!1},se=function(){n.on({change:ae,blur:d.debug?"":Z,keydown:re,keyup:oe,focus:d.allowInputToggle?te:""}),o.is("input")?n.on({focus:te}):f&&(f.on("click",ne),f.on("mousedown",!1))},le=function(){n.off({change:ae,blur:Z,keydown:re,keyup:oe,focus:d.allowInputToggle?Z:""}),o.is("input")?n.off({focus:te}):f&&(f.off("click",ne),f.off("mousedown",!1))},ue=function(e){var t={};return fe.each(e,function(){var e=ie(this);e.isValid()&&(t[e.format("YYYY-MM-DD")]=!0)}),!!Object.keys(t).length&&t},de=function(e){var t={};return fe.each(e,function(){t[this]=!0}),!!Object.keys(t).length&&t},ce=function(){var e=d.format||"L LT";i=e.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return(s.localeData().longDateFormat(e)||e).replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return s.localeData().longDateFormat(e)||e})}),(t=d.extraFormats?d.extraFormats.slice():[]).indexOf(e)<0&&t.indexOf(i)<0&&t.push(i),a=i.toLowerCase().indexOf("a")<1&&i.replace(/\[.*?\]/g,"").indexOf("h")<1,k("y")&&(p=2),k("M")&&(p=1),k("d")&&(p=0),r=Math.max(p,r),u||Q(s)};if(c.destroy=function(){Z(),le(),o.removeData("DateTimePicker"),o.removeData("date")},c.toggle=ne,c.show=te,c.hide=Z,c.disable=function(){return Z(),f&&f.hasClass("btn")&&f.addClass("disabled"),n.prop("disabled",!0),c},c.enable=function(){return f&&f.hasClass("btn")&&f.removeClass("disabled"),n.prop("disabled",!1),c},c.ignoreReadonly=function(e){if(0===arguments.length)return d.ignoreReadonly;if("boolean"!=typeof e)throw new TypeError("ignoreReadonly () expects a boolean parameter");return d.ignoreReadonly=e,c},c.options=function(e){if(0===arguments.length)return fe.extend(!0,{},d);if(!(e instanceof Object))throw new TypeError("options() options parameter should be an object");return fe.extend(!0,d,e),fe.each(d,function(e,t){if(c[e]===undefined)throw new TypeError("option "+e+" is not recognized!");c[e](t)}),c},c.date=function(e){if(0===arguments.length)return u?null:s.clone();if(!(null===e||"string"==typeof e||he.isMoment(e)||e instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return Q(null===e?null:ie(e)),c},c.format=function(e){if(0===arguments.length)return d.format;if("string"!=typeof e&&("boolean"!=typeof e||!1!==e))throw new TypeError("format() expects a sting or boolean:false parameter "+e);return d.format=e,i&&ce(),c},c.dayViewHeaderFormat=function(e){if(0===arguments.length)return d.dayViewHeaderFormat;if("string"!=typeof e)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return d.dayViewHeaderFormat=e,c},c.extraFormats=function(e){if(0===arguments.length)return d.extraFormats;if(!1!==e&&!(e instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return d.extraFormats=e,t&&ce(),c},c.disabledDates=function(e){if(0===arguments.length)return d.disabledDates?fe.extend({},d.disabledDates):d.disabledDates;if(!e)return d.disabledDates=!1,X(),c;if(!(e instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return d.disabledDates=ue(e),d.enabledDates=!1,X(),c},c.enabledDates=function(e){if(0===arguments.length)return d.enabledDates?fe.extend({},d.enabledDates):d.enabledDates;if(!e)return d.enabledDates=!1,X(),c;if(!(e instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return d.enabledDates=ue(e),d.disabledDates=!1,X(),c},c.daysOfWeekDisabled=function(e){if(0===arguments.length)return d.daysOfWeekDisabled.splice(0);if("boolean"==typeof e&&!e)return d.daysOfWeekDisabled=!1,X(),c;if(!(e instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(d.daysOfWeekDisabled=e.reduce(function(e,t){return 6<(t=parseInt(t,10))||t<0||isNaN(t)||-1===e.indexOf(t)&&e.push(t),e},[]).sort(),d.useCurrent&&!d.keepInvalid){for(var t=0;!F(s,"d");){if(s.add(1,"d"),7===t)throw"Tried 7 times to find a valid date";t++}Q(s)}return X(),c},c.maxDate=function(e){if(0===arguments.length)return d.maxDate?d.maxDate.clone():d.maxDate;if("boolean"==typeof e&&!1===e)return d.maxDate=!1,X(),c;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=he()));var t=ie(e);if(!t.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+e);if(d.minDate&&t.isBefore(d.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+t.format(i));return d.maxDate=t,d.useCurrent&&!d.keepInvalid&&s.isAfter(e)&&Q(d.maxDate),l.isAfter(t)&&(l=t.clone()),X(),c},c.minDate=function(e){if(0===arguments.length)return d.minDate?d.minDate.clone():d.minDate;if("boolean"==typeof e&&!1===e)return d.minDate=!1,X(),c;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=he()));var t=ie(e);if(!t.isValid())throw new TypeError("minDate() Could not parse date parameter: "+e);if(d.maxDate&&t.isAfter(d.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+t.format(i));return d.minDate=t,d.useCurrent&&!d.keepInvalid&&s.isBefore(e)&&Q(d.minDate),l.isBefore(t)&&(l=t.clone()),X(),c},c.defaultDate=function(e){if(0===arguments.length)return d.defaultDate?d.defaultDate.clone():d.defaultDate;if(!e)return d.defaultDate=!1,c;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=he()));var t=ie(e);if(!t.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+e);if(!F(t))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return d.defaultDate=t,(d.defaultDate&&d.inline||""===n.val().trim()&&n.attr("placeholder")===undefined)&&Q(d.defaultDate),c},c.locale=function(e){if(0===arguments.length)return d.locale;if(!he.localeData(e))throw new TypeError("locale() locale "+e+" is not loaded from moment locales!");return d.locale=e,s.locale(d.locale),l.locale(d.locale),i&&ce(),h&&(Z(),te()),c},c.stepping=function(e){return 0===arguments.length?d.stepping:(e=parseInt(e,10),(isNaN(e)||e<1)&&(e=1),d.stepping=e,c)},c.useCurrent=function(e){var t=["year","month","day","hour","minute"];if(0===arguments.length)return d.useCurrent;if("boolean"!=typeof e&&"string"!=typeof e)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof e&&-1===t.indexOf(e.toLowerCase()))throw new TypeError("useCurrent() expects a string parameter of "+t.join(", "));return d.useCurrent=e,c},c.collapse=function(e){if(0===arguments.length)return d.collapse;if("boolean"!=typeof e)throw new TypeError("collapse() expects a boolean parameter");return d.collapse===e||(d.collapse=e,h&&(Z(),te())),c},c.icons=function(e){if(0===arguments.length)return fe.extend({},d.icons);if(!(e instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return fe.extend(d.icons,e),h&&(Z(),te()),c},c.useStrict=function(e){if(0===arguments.length)return d.useStrict;if("boolean"!=typeof e)throw new TypeError("useStrict() expects a boolean parameter");return d.useStrict=e,c},c.sideBySide=function(e){if(0===arguments.length)return d.sideBySide;if("boolean"!=typeof e)throw new TypeError("sideBySide() expects a boolean parameter");return d.sideBySide=e,h&&(Z(),te()),c},c.viewMode=function(e){if(0===arguments.length)return d.viewMode;if("string"!=typeof e)throw new TypeError("viewMode() expects a string parameter");if(-1===g.indexOf(e))throw new TypeError("viewMode() parameter must be one of ("+g.join(", ")+") value");return d.viewMode=e,r=Math.max(g.indexOf(e),p),A(),c},c.toolbarPlacement=function(e){if(0===arguments.length)return d.toolbarPlacement;if("string"!=typeof e)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===b.indexOf(e))throw new TypeError("toolbarPlacement() parameter must be one of ("+b.join(", ")+") value");return d.toolbarPlacement=e,h&&(Z(),te()),c},c.widgetPositioning=function(e){if(0===arguments.length)return fe.extend({},d.widgetPositioning);if("[object Object]"!=={}.toString.call(e))throw new TypeError("widgetPositioning() expects an object variable");if(e.horizontal){if("string"!=typeof e.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(e.horizontal=e.horizontal.toLowerCase(),-1===v.indexOf(e.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+v.join(", ")+")");d.widgetPositioning.horizontal=e.horizontal}if(e.vertical){if("string"!=typeof e.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(e.vertical=e.vertical.toLowerCase(),-1===y.indexOf(e.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+y.join(", ")+")");d.widgetPositioning.vertical=e.vertical}return X(),c},c.calendarWeeks=function(e){if(0===arguments.length)return d.calendarWeeks;if("boolean"!=typeof e)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return d.calendarWeeks=e,X(),c},c.showTodayButton=function(e){if(0===arguments.length)return d.showTodayButton;if("boolean"!=typeof e)throw new TypeError("showTodayButton() expects a boolean parameter");return d.showTodayButton=e,h&&(Z(),te()),c},c.showClear=function(e){if(0===arguments.length)return d.showClear;if("boolean"!=typeof e)throw new TypeError("showClear() expects a boolean parameter");return d.showClear=e,h&&(Z(),te()),c},c.widgetParent=function(e){if(0===arguments.length)return d.widgetParent;if("string"==typeof e&&(e=fe(e)),null!==e&&"string"!=typeof e&&!(e instanceof fe))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return d.widgetParent=e,h&&(Z(),te()),c},c.keepOpen=function(e){if(0===arguments.length)return d.keepOpen;if("boolean"!=typeof e)throw new TypeError("keepOpen() expects a boolean parameter");return d.keepOpen=e,c},c.focusOnShow=function(e){if(0===arguments.length)return d.focusOnShow;if("boolean"!=typeof e)throw new TypeError("focusOnShow() expects a boolean parameter");return d.focusOnShow=e,c},c.inline=function(e){if(0===arguments.length)return d.inline;if("boolean"!=typeof e)throw new TypeError("inline() expects a boolean parameter");return d.inline=e,c},c.clear=function(){return J(),c},c.keyBinds=function(e){return d.keyBinds=e,c},c.debug=function(e){if("boolean"!=typeof e)throw new TypeError("debug() expects a boolean parameter");return d.debug=e,c},c.allowInputToggle=function(e){if(0===arguments.length)return d.allowInputToggle;if("boolean"!=typeof e)throw new TypeError("allowInputToggle() expects a boolean parameter");return d.allowInputToggle=e,c},c.showClose=function(e){if(0===arguments.length)return d.showClose;if("boolean"!=typeof e)throw new TypeError("showClose() expects a boolean parameter");return d.showClose=e,c},c.keepInvalid=function(e){if(0===arguments.length)return d.keepInvalid;if("boolean"!=typeof e)throw new TypeError("keepInvalid() expects a boolean parameter");return d.keepInvalid=e,c},c.datepickerInput=function(e){if(0===arguments.length)return d.datepickerInput;if("string"!=typeof e)throw new TypeError("datepickerInput() expects a string parameter");return d.datepickerInput=e,c},c.parseInputDate=function(e){if(0===arguments.length)return d.parseInputDate;if("function"!=typeof e)throw new TypeError("parseInputDate() sholud be as function");return d.parseInputDate=e,c},c.disabledTimeIntervals=function(e){if(0===arguments.length)return d.disabledTimeIntervals?fe.extend({},d.disabledTimeIntervals):d.disabledTimeIntervals;if(!e)return d.disabledTimeIntervals=!1,X(),c;if(!(e instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return d.disabledTimeIntervals=e,X(),c},c.disabledHours=function(e){if(0===arguments.length)return d.disabledHours?fe.extend({},d.disabledHours):d.disabledHours;if(!e)return d.disabledHours=!1,X(),c;if(!(e instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(d.disabledHours=de(e),d.enabledHours=!1,d.useCurrent&&!d.keepInvalid){for(var t=0;!F(s,"h");){if(s.add(1,"h"),24===t)throw"Tried 24 times to find a valid date";t++}Q(s)}return X(),c},c.enabledHours=function(e){if(0===arguments.length)return d.enabledHours?fe.extend({},d.enabledHours):d.enabledHours;if(!e)return d.enabledHours=!1,X(),c;if(!(e instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(d.enabledHours=de(e),d.disabledHours=!1,d.useCurrent&&!d.keepInvalid){for(var t=0;!F(s,"h");){if(s.add(1,"h"),24===t)throw"Tried 24 times to find a valid date";t++}Q(s)}return X(),c},c.viewDate=function(e){if(0===arguments.length)return l.clone();if(!e)return l=s.clone(),c;if(!("string"==typeof e||he.isMoment(e)||e instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return l=ie(e),N(),c},o.is("input"))n=o;else if(0===(n=o.find(d.datepickerInput)).size())n=o.find("input");else if(!n.is("input"))throw new Error('CSS class "'+d.datepickerInput+'" cannot be applied to non input element');if(o.hasClass("input-group")&&(f=0===o.find(".datepickerbutton").size()?o.find('[class^="input-group-"]'):o.find(".datepickerbutton")),!d.inline&&!n.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return fe.extend(!0,d,e()),c.options(d),ce(),se(),n.prop("disabled")&&c.disable(),n.is("input")&&0!==n.val().trim().length?Q(ie(n.val().trim())):d.defaultDate&&n.attr("placeholder")===undefined&&Q(d.defaultDate),d.inline&&te(),c};fe.fn.datetimepicker=function(t){return this.each(function(){var e=fe(this);e.data("DateTimePicker")||(t=fe.extend(!0,{},fe.fn.datetimepicker.defaults,t),e.data("DateTimePicker",n(e,t)))})},fe.fn.datetimepicker.defaults={format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:he.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(e){if(e){var t=this.date()||he();e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(7,"d")):this.date(t.clone().add(1,"m"))}},down:function(e){if(e){var t=this.date()||he();e.find(".datepicker").is(":visible")?this.date(t.clone().add(7,"d")):this.date(t.clone().subtract(1,"m"))}else this.show()},"control up":function(e){if(e){var t=this.date()||he();e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(1,"y")):this.date(t.clone().add(1,"h"))}},"control down":function(e){if(e){var t=this.date()||he();e.find(".datepicker").is(":visible")?this.date(t.clone().add(1,"y")):this.date(t.clone().subtract(1,"h"))}},left:function(e){if(e){var t=this.date()||he();e.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"d"))}},right:function(e){if(e){var t=this.date()||he();e.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"d"))}},pageUp:function(e){if(e){var t=this.date()||he();e.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,
"M"))}},pageDown:function(e){if(e){var t=this.date()||he();e.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(e){e.find(".timepicker").is(":visible")&&e.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(he())},"delete":function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1}}),"undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");!function(i){"use strict";function e(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]}}i.fn.emulateTransitionEnd=function(e){var t=!1,n=this;return i(this).one(i.support.transition.end,function(){t=!0}),setTimeout(function(){t||i(n).trigger(i.support.transition.end)},e),this},i(function(){i.support.transition=e()})}(jQuery),function(o){"use strict";var t='[data-dismiss="alert"]',i=function(e){o(e).on("click",t,this.close)};i.prototype.close=function(e){function t(){r.trigger("closed.bs.alert").remove()}var n=o(this),i=n.attr("data-target");i||(i=(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""));var r=o(i);e&&e.preventDefault(),r.length||(r=n.hasClass("alert")?n:n.parent()),r.trigger(e=o.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),o.support.transition&&r.hasClass("fade")?r.one(o.support.transition.end,t).emulateTransitionEnd(150):t())};var e=o.fn.alert;o.fn.alert=function(n){return this.each(function(){var e=o(this),t=e.data("bs.alert");t||e.data("bs.alert",t=new i(this)),"string"==typeof n&&t[n].call(e)})},o.fn.alert.Constructor=i,o.fn.alert.noConflict=function(){return o.fn.alert=e,this},o(document).on("click.bs.alert.data-api",t,i.prototype.close)}(jQuery),function(r){"use strict";var o=function(e,t){this.$element=r(e),this.options=r.extend({},o.DEFAULTS,t)};o.DEFAULTS={loadingText:"loading..."},o.prototype.setState=function(e){var t="disabled",n=this.$element,i=n.is("input")?"val":"html",r=n.data();e+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[e]||this.options[e]),setTimeout(function(){"loadingText"==e?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},o.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons"]'),t=!0;if(e.length){var n=this.$element.find("input");"radio"===n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var e=r.fn.button;r.fn.button=function(i){return this.each(function(){var e=r(this),t=e.data("bs.button"),n="object"==typeof i&&i;t||e.data("bs.button",t=new o(this,n)),"toggle"==i?t.toggle():i&&t.setState(i)})},r.fn.button.Constructor=o,r.fn.button.noConflict=function(){return r.fn.button=e,this},r(document).on("click.bs.button.data-api","[data-toggle^=button]",function(e){var t=r(e.target);t.hasClass("btn")||(t=t.closest(".btn")),t.button("toggle"),e.preventDefault()})}(jQuery),function(u){"use strict";var o=function(e,t){this.$element=u(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=t,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",u.proxy(this.pause,this)).on("mouseleave",u.proxy(this.cycle,this))};o.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},o.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(u.proxy(this.next,this),this.options.interval)),this},o.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},o.prototype.to=function(e){var t=this,n=this.getActiveIndex();return e>this.$items.length-1||e<0?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(n<e?"next":"prev",u(this.$items[e]))},o.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&u.support.transition.end&&(this.$element.trigger(u.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},o.prototype.next=function(){return this.sliding?void 0:this.slide("next")},o.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},o.prototype.slide=function(e,t){var n=this.$element.find(".item.active"),i=t||n[e](),r=this.interval,o="next"==e?"left":"right",a="next"==e?"first":"last",s=this;if(!i.length){if(!this.options.wrap)return;i=this.$element.find(".item")[a]()}this.sliding=!0,r&&this.pause();var l=u.Event("slide.bs.carousel",{relatedTarget:i[0],direction:o});if(!i.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var e=u(s.$indicators.children()[s.getActiveIndex()]);e&&e.addClass("active")})),u.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(l),l.isDefaultPrevented())return;i.addClass(e),i[0].offsetWidth,n.addClass(o),i.addClass(o),n.one(u.support.transition.end,function(){i.removeClass([e,o].join(" ")).addClass("active"),n.removeClass(["active",o].join(" ")),s.sliding=!1,setTimeout(function(){s.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(l),l.isDefaultPrevented())return;n.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")}return r&&this.cycle(),this}};var e=u.fn.carousel;u.fn.carousel=function(r){return this.each(function(){var e=u(this),t=e.data("bs.carousel"),n=u.extend({},o.DEFAULTS,e.data(),"object"==typeof r&&r),i="string"==typeof r?r:n.slide;t||e.data("bs.carousel",t=new o(this,n)),"number"==typeof r?t.to(r):i?t[i]():n.interval&&t.pause().cycle()})},u.fn.carousel.Constructor=o,u.fn.carousel.noConflict=function(){return u.fn.carousel=e,this},u(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(e){var t,n=u(this),i=u(n.attr("data-target")||(t=n.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"")),r=u.extend({},i.data(),n.data()),o=n.attr("data-slide-to");o&&(r.interval=!1),i.carousel(r),(o=n.attr("data-slide-to"))&&i.data("bs.carousel").to(o),e.preventDefault()}),u(window).on("load",function(){u('[data-ride="carousel"]').each(function(){var e=u(this);e.carousel(e.data())})})}(jQuery),function(u){"use strict";var r=function(e,t){this.$element=u(e),this.options=u.extend({},r.DEFAULTS,t),this.transitioning=null,this.options.parent&&(this.$parent=u(this.options.parent)),this.options.toggle&&this.toggle()};r.DEFAULTS={toggle:!0},r.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},r.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e=u.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var t=this.$parent&&this.$parent.find("> .panel > .in");if(t&&t.length){var n=t.data("bs.collapse");if(n&&n.transitioning)return;t.collapse("hide"),n||t.data("bs.collapse",null)}var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("in")[i]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!u.support.transition)return r.call(this);var o=u.camelCase(["scroll",i].join("-"));this.$element.one(u.support.transition.end,u.proxy(r,this)).emulateTransitionEnd(350)[i](this.$element[0][o])}}},r.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=u.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var t=this.dimension();this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return u.support.transition?void this.$element[t](0).one(u.support.transition.end,u.proxy(n,this)).emulateTransitionEnd(350):n.call(this)}}},r.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var e=u.fn.collapse;u.fn.collapse=function(i){return this.each(function(){var e=u(this),t=e.data("bs.collapse"),n=u.extend({},r.DEFAULTS,e.data(),"object"==typeof i&&i);t||e.data("bs.collapse",t=new r(this,n)),"string"==typeof i&&t[i]()})},u.fn.collapse.Constructor=r,u.fn.collapse.noConflict=function(){return u.fn.collapse=e,this},u(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(e){var t,n=u(this),i=n.attr("data-target")||e.preventDefault()||(t=n.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,""),r=u(i),o=r.data("bs.collapse"),a=o?"toggle":n.data(),s=n.attr("data-parent"),l=s&&u(s);o&&o.transitioning||(l&&l.find('[data-toggle=collapse][data-parent="'+s+'"]').not(n).addClass("collapsed"),n[r.hasClass("in")?"addClass":"removeClass"]("collapsed")),r.collapse(a)})}(jQuery),function(a){"use strict";function r(){a(e).remove(),a(l).each(function(e){var t=s(a(this));t.hasClass("open")&&(t.trigger(e=a.Event("hide.bs.dropdown")),e.isDefaultPrevented()||t.removeClass("open").trigger("hidden.bs.dropdown"))})}function s(e){var t=e.attr("data-target");t||(t=(t=e.attr("href"))&&/#/.test(t)&&t.replace(/.*(?=#[^\s]*$)/,""));var n=t&&a(t);return n&&n.length?n:e.parent()}var e=".dropdown-backdrop",l="[data-toggle=dropdown]",i=function(e){a(e).on("click.bs.dropdown",this.toggle)};i.prototype.toggle=function(e){var t=a(this);if(!t.is(".disabled, :disabled")){var n=s(t),i=n.hasClass("open");if(r(),!i){if("ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&a('<div class="dropdown-backdrop"/>').insertAfter(a(this)).on("click",r),n.trigger(e=a.Event("show.bs.dropdown")),e.isDefaultPrevented())return;n.toggleClass("open").trigger("shown.bs.dropdown"),t.focus()}return!1}},i.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var t=a(this);if(e.preventDefault(),e.stopPropagation(),!t.is(".disabled, :disabled")){var n=s(t),i=n.hasClass("open");if(!i||i&&27==e.keyCode)return 27==e.which&&n.find(l).focus(),t.click();var r=a("[role=menu] li:not(.divider):visible a",n);if(r.length){var o=r.index(r.filter(":focus"));38==e.keyCode&&0<o&&o--,40==e.keyCode&&o<r.length-1&&o++,~o||(o=0),r.eq(o).focus()}}}};var t=a.fn.dropdown;a.fn.dropdown=function(n){return this.each(function(){var e=a(this),t=e.data("bs.dropdown");t||e.data("bs.dropdown",t=new i(this)),"string"==typeof n&&t[n].call(e)})},a.fn.dropdown.Constructor=i,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=t,this},a(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",l,i.prototype.toggle).on("keydown.bs.dropdown.data-api",l+", [role=menu]",i.prototype.keydown)}(jQuery),function(o){"use strict";var a=function(e,t){this.options=t,this.$element=o(e),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)};a.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},a.prototype.toggle=function(e){return this[this.isShown?"hide":"show"](e)},a.prototype.show=function(n){var i=this,e=o.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',o.proxy(this.hide,this)),this.backdrop(function(){var e=o.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(document.body),i.$element.show(),e&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus();var t=o.Event("shown.bs.modal",{relatedTarget:n});e?i.$element.find(".modal-dialog").one(o.support.transition.end,function(){i.$element.focus().trigger(t)}).emulateTransitionEnd(300):i.$element.focus().trigger(t)}))},a.prototype.hide=function(e){e&&e.preventDefault(),e=o.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),o(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),o.support.transition&&this.$element.hasClass("fade")?this.$element.one(o.support.transition.end,o.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},a.prototype.enforceFocus=function(){o(document).off("focusin.bs.modal").on("focusin.bs.modal",o.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.focus()},this))},a.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",o.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},a.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.removeBackdrop(),e.$element.trigger("hidden.bs.modal")})},a.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},a.prototype.backdrop=function(e){var t=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var n=o.support.transition&&t;if(this.$backdrop=o('<div class="modal-backdrop '+t+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",o.proxy(function(e){e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),n&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;n?this.$backdrop.one(o.support.transition.end,e).emulateTransitionEnd(150):e()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(o.support.transition.end,e).emulateTransitionEnd(150):e()):e&&e()};var e=o.fn.modal;o.fn.modal=function(i,r){return this.each(function(){var e=o(this),t=e.data("bs.modal"),n=o.extend({},a.DEFAULTS,e.data(),"object"==typeof i&&i);t||e.data("bs.modal",t=new a(this,n)),"string"==typeof i?t[i](r):n.show&&t.show(r)})},o.fn.modal.Constructor=a,o.fn.modal.noConflict=function(){return o.fn.modal=e,this},o(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var t=o(this),n=t.attr("href"),i=o(t.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),r=i.data("modal")?"toggle":o.extend({remote:!/#/.test(n)&&n},i.data(),t.data());e.preventDefault(),i.modal(r,this).one("hide",function(){t.is(":visible")&&t.focus()})}),o(document).on("show.bs.modal",".modal",function(){o(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){o(document.body).removeClass("modal-open")})}(jQuery),function(m){"use strict";var r=function(e,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",e,t)};r.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},r.prototype.init=function(e,t,n){this.enabled=!0,this.type=e,this.$element=m(t),this.options=this.getOptions(n);for(var i=this.options.trigger.split(" "),r=i.length;r--;){var o=i[r];if("click"==o)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focus",s="hover"==o?"mouseleave":"blur";this.$element.on(a+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},r.prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.getOptions=function(e){return(e=m.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},r.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&m.each(this._options,function(e,t){i[e]!=t&&(n[e]=t)}),n},r.prototype.enter=function(e){var t=e instanceof this.constructor?e:m(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(t.timeout),t.hoverState="in",t.options.delay&&t.options.delay.show?void(t.timeout=setTimeout(function(){"in"==t.hoverState&&t.show()},t.options.delay.show)):t.show()},r.prototype.leave=function(e){var t=e instanceof this.constructor?e:m(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(t.timeout),t.hoverState="out",t.options.delay&&t.options.delay.hide?void(t.timeout=setTimeout(function(){"out"==t.hoverState&&t.hide()},t.options.delay.hide)):t.hide()},r.prototype.show=function(){var e=m.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(e),e.isDefaultPrevented())return;var t=this.tip();this.setContent(),this.options.animation&&t.addClass("fade");var n="function"==typeof this.options.placement?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,r=i.test(n);r&&(n=n.replace(i,"")||"top"),t.detach().css({top:0,left:0,display:"block"}).addClass(n),this.options.container?t.appendTo(this.options.container):t.insertAfter(this.$element);var o=this.getPosition(),a=t[0].offsetWidth,s=t[0].offsetHeight;if(r){var l=this.$element.parent(),u=n,d=document.documentElement.scrollTop||document.body.scrollTop,c="body"==this.options.container?window.innerWidth:l.outerWidth(),f="body"==this.options.container?window.innerHeight:l.outerHeight(),h="body"==this.options.container?0:l.offset().left;n="bottom"==n&&o.top+o.height+s-d>f?"top":"top"==n&&o.top-d-s<0?"bottom":"right"==n&&o.right+a>c?"left":"left"==n&&o.left-a<h?"right":n,t.removeClass(u).addClass(n)}var p=this.getCalculatedOffset(n,o,a,s);this.applyPlacement(p,n),this.$element.trigger("shown.bs."+this.type)}},r.prototype.applyPlacement=function(e,t){var n,i=this.tip(),r=i[0].offsetWidth,o=i[0].offsetHeight,a=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),e.top=e.top+a,e.left=e.left+s,i.offset(e).addClass("in");var l=i[0].offsetWidth,u=i[0].offsetHeight;if("top"==t&&u!=o&&(n=!0,e.top=e.top+o-u),/bottom|top/.test(t)){var d=0;e.left<0&&(d=-2*e.left,e.left=0,i.offset(e),l=i[0].offsetWidth,u=i[0].offsetHeight),this.replaceArrow(d-r+l,l,"left")}else this.replaceArrow(u-o,u,"top");n&&i.offset(e)},r.prototype.replaceArrow=function(e,t,n){this.arrow().css(n,e?50*(1-e/t)+"%":"")},r.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},r.prototype.hide=function(){function e(){"in"!=t.hoverState&&n.detach()}var t=this,n=this.tip(),i=m.Event("hide.bs."+this.type);return this.$element.trigger(i),i.isDefaultPrevented()?void 0:(n.removeClass("in"),m.support.transition&&this.$tip.hasClass("fade")?n.one(m.support.transition.end,e).emulateTransitionEnd(150):e(),this.$element.trigger("hidden.bs."+this.type),this)},r.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},r.prototype.hasContent=function(){return this.getTitle()},r.prototype.getPosition=function(){var e=this.$element[0];return m.extend({},"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():{width:e.offsetWidth,height:e.offsetHeight},this.$element.offset())},r.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},r.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},r.prototype.tip=function(){return this.$tip=this.$tip||m(this.options.template)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},r.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},r.prototype.enable=function(){this.enabled=!0},r.prototype.disable=function(){this.enabled=!1},r.prototype.toggleEnabled=function(){this.enabled=!this.enabled},r.prototype.toggle=function(e){var t=e?m(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;t.tip().hasClass("in")?t.leave(t):t.enter(t)},r.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var e=m.fn.tooltip;m.fn.tooltip=function(i){return this.each(function(){var e=m(this),t=e.data("bs.tooltip"),n="object"==typeof i&&i;t||e.data("bs.tooltip",t=new r(this,n)),"string"==typeof i&&t[i]()})},m.fn.tooltip.Constructor=r,m.fn.tooltip.noConflict=function(){return m.fn.tooltip=e,this}}(jQuery),function(r){"use strict";var o=function(e,t){this.init("popover",e,t)};if(!r.fn.tooltip)throw new Error("Popover requires tooltip.js");o.DEFAULTS=r.extend({},r.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),o.prototype=r.extend({},r.fn.tooltip.Constructor.prototype),(o.prototype.constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content")[this.options.html?"html":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},o.prototype.tip=function(){return this.$tip||(this.$tip=r(this.options.template)),this.$tip};var e=r.fn.popover;r.fn.popover=function(i){return this.each(function(){var e=r(this),t=e.data("bs.popover"),n="object"==typeof i&&i;t||e.data("bs.popover",t=new o(this,n)),"string"==typeof i&&t[i]()})},r.fn.popover.Constructor=o,r.fn.popover.noConflict=function(){return r.fn.popover=e,this}}(jQuery),function(o){"use strict";function r(e,t){var n,i=o.proxy(this.process,this);this.$element=o(e).is("body")?o(window):o(e),this.$body=o("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",i),this.options=o.extend({},r.DEFAULTS,t),this.selector=(this.options.target||(n=o(e).attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=o([]),this.targets=o([]),this.activeTarget=null,this.refresh(),this.process()}r.DEFAULTS={offset:10},r.prototype.refresh=function(){var i=this.$element[0]==window?"offset":"position";this.offsets=o([]),this.targets=o([]);var r=this;this.$body.find(this.selector).map(function(){var e=o(this),t=e.data("target")||e.attr("href"),n=/^#\w/.test(t)&&o(t);return n&&n.length&&[[n[i]().top+(!o.isWindow(r.$scrollElement.get(0))&&r.$scrollElement.scrollTop()),t]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){r.offsets.push(this[0]),r.targets.push(this[1])})},r.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=(this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight)-this.$scrollElement.height(),i=this.offsets,r=this.targets,o=this.activeTarget;if(n<=t)return o!=(e=r.last()[0])&&this.activate(e);for(e=i.length;e--;)o!=r[e]&&t>=i[e]&&(!i[e+1]||t<=i[e+1])&&this.activate(r[e])},r.prototype.activate=function(e){this.activeTarget=e,o(this.selector).parents(".active").removeClass("active");var t=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=o(t).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")};var e=o.fn.scrollspy;o.fn.scrollspy=function(i){return this.each(function(){var e=o(this),t=e.data("bs.scrollspy"),n="object"==typeof i&&i;t||e.data("bs.scrollspy",t=new r(this,n)),"string"==typeof i&&t[i]()})},o.fn.scrollspy.Constructor=r,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=e,this},o(window).on("load",function(){o('[data-spy="scroll"]').each(function(){var e=o(this);e.scrollspy(e.data())})})}(jQuery),function(a){"use strict";var i=function(e){this.element=a(e)};i.prototype.show=function(){var e=this.element,t=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var i=t.find(".active:last a")[0],r=a.Event("show.bs.tab",{relatedTarget:i});if(e.trigger(r),!r.isDefaultPrevented()){var o=a(n);this.activate(e.parent("li"),t),this.activate(o,o.parent(),function(){e.trigger({type:"shown.bs.tab",relatedTarget:i})})}}},i.prototype.activate=function(e,t,n){function i(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),o?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),n&&n()}var r=t.find("> .active"),o=n&&a.support.transition&&r.hasClass("fade");o?r.one(a.support.transition.end,i).emulateTransitionEnd(150):i(),r.removeClass("in")};var e=a.fn.tab;a.fn.tab=function(n){return this.each(function(){var e=a(this),t=e.data("bs.tab");t||e.data("bs.tab",t=new i(this)),"string"==typeof n&&t[n]()})},a.fn.tab.Constructor=i,a.fn.tab.noConflict=function(){return a.fn.tab=e,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault(),a(this).tab("show")})}(jQuery),function(s){"use strict";var l=function(e,t){this.options=s.extend({},l.DEFAULTS,t),this.$window=s(window).on("scroll.bs.affix.data-api",s.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",s.proxy(this.checkPositionWithEventLoop,this)),this.$element=s(e),this.affixed=this.unpin=null,this.checkPosition()};l.RESET="affix affix-top affix-bottom",l.DEFAULTS={offset:0},l.prototype.checkPositionWithEventLoop=function(){setTimeout(s.proxy(this.checkPosition,this),1)},l.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=s(document).height(),t=this.$window.scrollTop(),n=this.$element.offset(),i=this.options.offset,r=i.top,o=i.bottom;"object"!=typeof i&&(o=r=i),"function"==typeof r&&(r=i.top()),"function"==typeof o&&(o=i.bottom());var a=!(null!=this.unpin&&t+this.unpin<=n.top)&&(null!=o&&n.top+this.$element.height()>=e-o?"bottom":null!=r&&t<=r&&"top");this.affixed!==a&&(this.unpin&&this.$element.css("top",""),this.affixed=a,this.unpin="bottom"==a?n.top-t:null,this.$element.removeClass(l.RESET).addClass("affix"+(a?"-"+a:"")),"bottom"==a&&this.$element.offset({top:document.body.offsetHeight-o-this.$element.height()}))}};var e=s.fn.affix;s.fn.affix=function(i){return this.each(function(){var e=s(this),t=e.data("bs.affix"),n="object"==typeof i&&i;t||e.data("bs.affix",t=new l(this,n)),"string"==typeof i&&t[i]()})},s.fn.affix.Constructor=l,s.fn.affix.noConflict=function(){return s.fn.affix=e,this},s(window).on("load",function(){s('[data-spy="affix"]').each(function(){var e=s(this),t=e.data();t.offset=t.offset||{},t.offsetBottom&&(t.offset.bottom=t.offsetBottom),t.offsetTop&&(t.offset.top=t.offsetTop),e.affix(t)})})}(jQuery),function(){(function(){(function(){var t=[].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(e){var t;return null==e&&(e=null!=(t=this.getConfig("url"))?t:this.INTERNAL.default_mount_path),new l.Consumer(this.createWebSocketURL(e))},getConfig:function(e){var t;return null!=(t=document.head.querySelector("meta[name='action-cable-"+e+"']"))?t.getAttribute("content"):void 0},createWebSocketURL:function(e){var t;return e&&!/^wss?:/i.test(e)?((t=document.createElement("a")).href=e,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href):e},startDebugging:function(){return this.debugging=!0},stopDebugging:function(){return this.debugging=null},log:function(){var e;if(e=1<=arguments.length?t.call(arguments,0):[],this.debugging)return e.push(Date.now()),console.log.apply(console,["[ActionCable]"].concat(t.call(e)))}}}).call(this)}).call(this);var l=this.ActionCable;(function(){(function(){var i=function(e,t){return function(){return e.apply(t,arguments)}};l.ConnectionMonitor=function(){function e(e){this.connection=e,this.visibilityDidChange=i(this.visibilityDidChange,this),this.reconnectAttempts=0}var r,t,n;return e.pollInterval={min:3,max:30},e.staleThreshold=6,e.prototype.start=function(){if(!this.isRunning())return this.startedAt=t(),delete this.stoppedAt,this.startPolling(),document.addEventListener("visibilitychange",this.visibilityDidChange),l.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms")},e.prototype.stop=function(){if(this.isRunning())return this.stoppedAt=t(),this.stopPolling(),document.removeEventListener("visibilitychange",this.visibilityDidChange),l.log("ConnectionMonitor stopped")},e.prototype.isRunning=function(){return null!=this.startedAt&&null==this.stoppedAt},e.prototype.recordPing=function(){return this.pingedAt=t()},e.prototype.recordConnect=function(){return this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,l.log("ConnectionMonitor recorded connect")},e.prototype.recordDisconnect=function(){return this.disconnectedAt=t(),l.log("ConnectionMonitor recorded disconnect")},e.prototype.startPolling=function(){return this.stopPolling(),this.poll()},e.prototype.stopPolling=function(){return clearTimeout(this.pollTimeout)},e.prototype.poll=function(){return this.pollTimeout=setTimeout((e=this,function(){return e.reconnectIfStale(),e.poll()}),this.getPollInterval());var e},e.prototype.getPollInterval=function(){var e,t,n,i;return n=(i=this.constructor.pollInterval).min,t=i.max,e=5*Math.log(this.reconnectAttempts+1),Math.round(1e3*r(e,n,t))},e.prototype.reconnectIfStale=function(){if(this.connectionIsStale())return l.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()?l.log("ConnectionMonitor skipping reopening recent disconnect"):(l.log("ConnectionMonitor reopening"),this.connection.reopen())},e.prototype.connectionIsStale=function(){var e;return n(null!=(e=this.pingedAt)?e:this.startedAt)>this.constructor.staleThreshold},e.prototype.disconnectedRecently=function(){return this.disconnectedAt&&n(this.disconnectedAt)<this.constructor.staleThreshold},e.prototype.visibilityDidChange=function(){if("visible"===document.visibilityState)return setTimeout((e=this,function(){if(e.connectionIsStale()||!e.connection.isOpen())return l.log("ConnectionMonitor reopening stale connection on visibilitychange. visbilityState = "+document.visibilityState),e.connection.reopen()}),200);var e},t=function(){return(new Date).getTime()},n=function(e){return(t()-e)/1e3},r=function(e,t,n){return Math.max(t,Math.min(n,e))},e}()}).call(this),function(){var e,r,t,n,i,o=[].slice,a=function(e,t){return function(){return e.apply(t,arguments)}},s=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};n=l.INTERNAL,r=n.message_types,t=n.protocols,i=2<=t.length?o.call(t,0,e=t.length-1):(e=0,[]),t[e++],l.Connection=function(){function e(e){this.consumer=e,this.open=a(this.open,this),this.subscriptions=this.consumer.subscriptions,this.monitor=new l.ConnectionMonitor(this),this.disconnected=!0}return e.reopenDelay=500,e.prototype.send=function(e){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(e)),!0)},e.prototype.open=function(){if(
this.isActive())throw l.log("Attempted to open WebSocket, but existing socket is "+this.getState()),new Error("Existing connection must be closed before opening");return l.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+t),null!=this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new WebSocket(this.consumer.url,t),this.installEventHandlers(),this.monitor.start(),!0},e.prototype.close=function(e){var t;if((null!=e?e:{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return null!=(t=this.webSocket)?t.close():void 0},e.prototype.reopen=function(){var e;if(l.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(t){return e=t,l.log("Failed to reopen WebSocket",e)}finally{l.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},e.prototype.getProtocol=function(){var e;return null!=(e=this.webSocket)?e.protocol:void 0},e.prototype.isOpen=function(){return this.isState("open")},e.prototype.isActive=function(){return this.isState("open","connecting")},e.prototype.isProtocolSupported=function(){var e;return e=this.getProtocol(),0<=s.call(i,e)},e.prototype.isState=function(){var e,t;return t=1<=arguments.length?o.call(arguments,0):[],e=this.getState(),0<=s.call(t,e)},e.prototype.getState=function(){var e,t;for(t in WebSocket)if(WebSocket[t]===(null!=(e=this.webSocket)?e.readyState:void 0))return t.toLowerCase();return null},e.prototype.installEventHandlers=function(){var e,t;for(e in this.events)t=this.events[e].bind(this),this.webSocket["on"+e]=t},e.prototype.uninstallEventHandlers=function(){var e;for(e in this.events)this.webSocket["on"+e]=function(){}},e.prototype.events={message:function(e){var t,n,i;if(this.isProtocolSupported())switch(t=(i=JSON.parse(e.data)).identifier,n=i.message,i.type){case r.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case r.ping:return this.monitor.recordPing();case r.confirmation:return this.subscriptions.notify(t,"connected");case r.rejection:return this.subscriptions.reject(t);default:return this.subscriptions.notify(t,"received",n)}},open:function(){if(l.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return l.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(){if(l.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){return l.log("WebSocket onerror event")}},e}()}.call(this),function(){var u=[].slice;l.Subscriptions=function(){function e(e){this.consumer=e,this.subscriptions=[]}return e.prototype.create=function(e,t){var n,i,r;return i="object"==typeof(n=e)?n:{channel:n},r=new l.Subscription(this.consumer,i,t),this.add(r)},e.prototype.add=function(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.sendCommand(e,"subscribe"),e},e.prototype.remove=function(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e},e.prototype.reject=function(e){var t,n,i,r,o;for(r=[],t=0,n=(i=this.findAll(e)).length;t<n;t++)o=i[t],this.forget(o),this.notify(o,"rejected"),r.push(o);return r},e.prototype.forget=function(r){var o;return this.subscriptions=function(){var e,t,n,i;for(i=[],e=0,t=(n=this.subscriptions).length;e<t;e++)(o=n[e])!==r&&i.push(o);return i}.call(this),r},e.prototype.findAll=function(e){var t,n,i,r,o;for(r=[],t=0,n=(i=this.subscriptions).length;t<n;t++)(o=i[t]).identifier===e&&r.push(o);return r},e.prototype.reload=function(){var e,t,n,i,r;for(i=[],e=0,t=(n=this.subscriptions).length;e<t;e++)r=n[e],i.push(this.sendCommand(r,"subscribe"));return i},e.prototype.notifyAll=function(e){var t,n,i,r,o,a,s;for(n=e,t=2<=arguments.length?u.call(arguments,1):[],a=[],i=0,r=(o=this.subscriptions).length;i<r;i++)s=o[i],a.push(this.notify.apply(this,[s,n].concat(u.call(t))));return a},e.prototype.notify=function(e,t){var n,i,r,o,a,s,l;for(s=e,i=t,n=3<=arguments.length?u.call(arguments,2):[],a=[],r=0,o=(l="string"==typeof s?this.findAll(s):[s]).length;r<o;r++)s=l[r],a.push("function"==typeof s[i]?s[i].apply(s,n):void 0);return a},e.prototype.sendCommand=function(e,t){var n;return n=e.identifier,this.consumer.send({command:t,identifier:n})},e}()}.call(this),function(){l.Subscription=function(){function e(e,t,n){this.consumer=e,null==t&&(t={}),this.identifier=JSON.stringify(t),i(this,n)}var i;return e.prototype.perform=function(e,t){return null==t&&(t={}),t.action=e,this.send(t)},e.prototype.send=function(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})},e.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},i=function(e,t){var n,i;if(null!=t)for(n in t)i=t[n],e[n]=i;return e},e}()}.call(this),function(){l.Consumer=function(){function e(e){this.url=e,this.subscriptions=new l.Subscriptions(this),this.connection=new l.Connection(this)}return e.prototype.send=function(e){return this.connection.send(e)},e.prototype.connect=function(){return this.connection.open()},e.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},e.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},e}()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=l:"function"==typeof define&&define.amd&&define(l)}.call(this),function(){this.App||(this.App={}),App.cable=ActionCable.createConsumer()}.call(this),function(){}.call(this),function(){}.call(this),function(){}.call(this),function(){}.call(this),function(m){var e=0,g=function(){return(new Date).getTime()+e++},y=function(e){return"["+e+"]$1"},v=function(e){return"_"+e+"_$1"},b=function(e,t,n){return e?"function"==typeof e?(t&&console.warn("association-insertion-traversal is ignored, because association-insertion-node is given as a function."),e(n)):"string"==typeof e?t?n[t](e):"this"==e?n:m(e):void 0:n.parent()};m(document).on("click",".add_fields",function(e){e.preventDefault();var t=m(this),n=t.data("association"),i=t.data("associations"),r=t.data("association-insertion-template"),o=t.data("association-insertion-method")||t.data("association-insertion-position")||"before",a=t.data("association-insertion-node"),s=t.data("association-insertion-traversal"),l=parseInt(t.data("count"),10),u=new RegExp("\\[new_"+n+"\\](.*?\\s)","g"),d=new RegExp("_new_"+n+"_(\\w*)","g"),c=g(),f=r.replace(u,y(c)),h=[];for(f==r&&(u=new RegExp("\\[new_"+i+"\\](.*?\\s)","g"),d=new RegExp("_new_"+i+"_(\\w*)","g"),f=r.replace(u,y(c))),h=[f=f.replace(d,v(c))],l=isNaN(l)?1:Math.max(l,1),l-=1;l;)c=g(),f=(f=r.replace(u,y(c))).replace(d,v(c)),h.push(f),l-=1;var p=b(a,s,t);p&&0!=p.length||console.warn("Couldn't find the element to insert the template. Make sure your `data-association-insertion-*` on `link_to_add_association` is correct."),m.each(h,function(e,t){var n=m(t),i=jQuery.Event("cocoon:before-insert");if(p.trigger(i,[n]),!i.isDefaultPrevented()){p[o](n);p.trigger("cocoon:after-insert",[n])}})}),m(document).on("click",".remove_fields.dynamic, .remove_fields.existing",function(e){var t=m(this),n=t.data("wrapper-class")||"nested-fields",i=t.closest("."+n),r=i.parent();e.preventDefault();var o=jQuery.Event("cocoon:before-remove");if(r.trigger(o,[i]),!o.isDefaultPrevented()){var a=r.data("remove-timeout")||0;setTimeout(function(){t.hasClass("dynamic")?i.detach():(t.prev("input[type=hidden]").val("1"),i.hide()),r.trigger("cocoon:after-remove",[i])},a)}}),m(document).on("ready page:load turbolinks:load",function(){m(".remove_fields.existing.destroyed").each(function(){var e=m(this),t=e.data("wrapper-class")||"nested-fields";e.closest("."+t).hide()})})}(jQuery);