text: !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,t){function n(e){var t="length"in e&&e.length,n=Z.type(e);return"function"===n||Z.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function r(e,t,n){if(Z.isFunction(t))return Z.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return Z.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(se.test(t))return Z.filter(t,e,n);t=Z.filter(t,e)}return Z.grep(e,function(e){return U.call(t,e)>=0!==n})}function o(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function i(e){var t=he[e]={};return Z.each(e.match(de)||[],function(e,n){t[n]=!0}),t}function a(){Y.removeEventListener("DOMContentLoaded",a,!1),e.removeEventListener("load",a,!1),Z.ready()}function s(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Z.expando+s.uid++}function u(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(we,"-$1").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:be.test(n)?Z.parseJSON(n):n}catch(o){}ye.set(e,t,n)}else n=void 0;return n}function c(){return!0}function l(){return!1}function f(){try{return Y.activeElement}catch(e){}}function p(e,t){return Z.nodeName(e,"table")&&Z.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function d(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function h(e){var t=$e.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function v(e,t){for(var n=0,r=e.length;r>n;n++)ge.set(e[n],"globalEval",!t||ge.get(t[n],"globalEval"))}function m(e,t){var n,r,o,i,a,s,u,c;if(1===t.nodeType){if(ge.hasData(e)&&(i=ge.access(e),a=ge.set(t,i),c=i.events)){delete a.handle,a.events={};for(o in c)for(n=0,r=c[o].length;r>n;n++)Z.event.add(t,o,c[o][n])}ye.hasData(e)&&(s=ye.access(e),u=Z.extend({},s),ye.set(t,u))}}function g(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&Z.nodeName(e,t)?Z.merge([e],n):n}function y(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ke.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function b(t,n){var r,o=Z(n.createElement(t)).appendTo(n.body),i=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(o[0]))?r.display:Z.css(o[0],"display");return o.detach(),i}function w(e){var t=Y,n=He[e];return n||(n=b(e,t),"none"!==n&&n||(Ie=(Ie||Z("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=Ie[0].contentDocument,t.write(),t.close(),n=b(e,t),Ie.detach()),He[e]=n),n}function x(e,t,n){var r,o,i,a,s=e.style;return n=n||ze(e),n&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||Z.contains(e.ownerDocument,e)||(a=Z.style(e,t)),Fe.test(a)&&Re.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i)),void 0!==a?a+"":a}function C(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function T(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),r=t,o=Ke.length;o--;)if(t=Ke[o]+n,t in e)return t;return r}function k(e,t,n){var r=Ve.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function S(e,t,n,r,o){for(var i=n===(r?"border":"content")?4:"width"===t?1:0,a=0;4>i;i+=2)"margin"===n&&(a+=Z.css(e,n+Ce[i],!0,o)),r?("content"===n&&(a-=Z.css(e,"padding"+Ce[i],!0,o)),"margin"!==n&&(a-=Z.css(e,"border"+Ce[i]+"Width",!0,o))):(a+=Z.css(e,"padding"+Ce[i],!0,o),"padding"!==n&&(a+=Z.css(e,"border"+Ce[i]+"Width",!0,o)));return a}function E(e,t,n){var r=!0,o="width"===t?e.offsetWidth:e.offsetHeight,i=ze(e),a="border-box"===Z.css(e,"boxSizing",!1,i);if(0>=o||null==o){if(o=x(e,t,i),(0>o||null==o)&&(o=e.style[t]),Fe.test(o))return o;r=a&&(Q.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+S(e,t,n||(a?"border":"content"),r,i)+"px"}function N(e,t){for(var n,r,o,i=[],a=0,s=e.length;s>a;a++)r=e[a],r.style&&(i[a]=ge.get(r,"olddisplay"),n=r.style.display,t?(i[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Te(r)&&(i[a]=ge.access(r,"olddisplay",w(r.nodeName)))):(o=Te(r),"none"===n&&o||ge.set(r,"olddisplay",o?n:Z.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?i[a]||"":"none"));return e}function j(e,t,n,r,o){return new j.prototype.init(e,t,n,r,o)}function D(){return setTimeout(function(){Qe=void 0}),Qe=Z.now()}function A(e,t){var n,r=0,o={height:e};for(t=t?1:0;4>r;r+=2-t)n=Ce[r],o["margin"+n]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function O(e,t,n){for(var r,o=(nt[t]||[]).concat(nt["*"]),i=0,a=o.length;a>i;i++)if(r=o[i].call(n,t,e))return r}function q(e,t,n){var r,o,i,a,s,u,c,l,f=this,p={},d=e.style,h=e.nodeType&&Te(e),v=ge.get(e,"fxshow");n.queue||(s=Z._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,Z.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],c=Z.css(e,"display"),l="none"===c?ge.get(e,"olddisplay")||w(e.nodeName):c,"inline"===l&&"none"===Z.css(e,"float")&&(d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in t)if(o=t[r],Ge.exec(o)){if(delete t[r],i=i||"toggle"===o,o===(h?"hide":"show")){if("show"!==o||!v||void 0===v[r])continue;h=!0}p[r]=v&&v[r]||Z.style(e,r)}else c=void 0;if(Z.isEmptyObject(p))"inline"===("none"===c?w(e.nodeName):c)&&(d.display=c);else{v?"hidden"in v&&(h=v.hidden):v=ge.access(e,"fxshow",{}),i&&(v.hidden=!h),h?Z(e).show():f.done(function(){Z(e).hide()}),f.done(function(){var t;ge.remove(e,"fxshow");for(t in p)Z.style(e,t,p[t])});for(r in p)a=O(h?v[r]:0,r,f),r in v||(v[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function M(e,t){var n,r,o,i,a;for(n in e)if(r=Z.camelCase(n),o=t[r],i=e[n],Z.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),a=Z.cssHooks[r],a&&"expand"in a){i=a.expand(i),delete e[r];for(n in i)n in e||(e[n]=i[n],t[n]=o)}else t[r]=o}function B(e,t,n){var r,o,i=0,a=tt.length,s=Z.Deferred().always(function(){delete u.elem}),u=function(){if(o)return!1;for(var t=Qe||D(),n=Math.max(0,c.startTime+c.duration-t),r=n/c.duration||0,i=1-r,a=0,u=c.tweens.length;u>a;a++)c.tweens[a].run(i);return s.notifyWith(e,[c,i,n]),1>i&&u?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:Z.extend({},t),opts:Z.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Qe||D(),duration:n.duration,tweens:[],createTween:function(t,n){var r=Z.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(o)return this;for(o=!0;r>n;n++)c.tweens[n].run(1);return t?s.resolveWith(e,[c,t]):s.rejectWith(e,[c,t]),this}}),l=c.props;for(M(l,c.opts.specialEasing);a>i;i++)if(r=tt[i].call(c,e,l,c.opts))return r;return Z.map(l,O,c),Z.isFunction(c.opts.start)&&c.opts.start.call(e,c),Z.fx.timer(Z.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function P(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(de)||[];if(Z.isFunction(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function $(e,t,n,r){function o(s){var u;return i[s]=!0,Z.each(e[s]||[],function(e,s){var c=s(t,n,r);return"string"!=typeof c||a||i[c]?a?!(u=c):void 0:(t.dataTypes.unshift(c),o(c),!1)}),u}var i={},a=e===bt;return o(t.dataTypes[0])||!i["*"]&&o("*")}function L(e,t){var n,r,o=Z.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&Z.extend(!0,e,r),e}function _(e,t,n){for(var r,o,i,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){u.unshift(o);break}if(u[0]in n)i=u[0];else{for(o in n){if(!u[0]||e.converters[o+" "+u[0]]){i=o;break}a||(a=o)}i=i||a}return i?(i!==u[0]&&u.unshift(i),n[i]):void 0}function I(e,t,n,r){var o,i,a,s,u,c={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=l.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=i,i=l.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(a=c[u+" "+i]||c["* "+i],!a)for(o in c)if(s=o.split(" "),s[1]===i&&(a=c[u+" "+s[0]]||c["* "+s[0]])){a===!0?a=c[o]:c[o]!==!0&&(i=s[0],l.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+i}}}return{state:"success",data:t}}function H(e,t,n,r){var o;if(Z.isArray(t))Z.each(t,function(t,o){n||kt.test(e)?r(e,o):H(e+"["+("object"==typeof o?t:"")+"]",o,n,r)});else if(n||"object"!==Z.type(t))r(e,t);else for(o in t)H(e+"["+o+"]",t[o],n,r)}function R(e){return Z.isWindow(e)?e:9===e.nodeType&&e.defaultView}var F=[],z=F.slice,W=F.concat,V=F.push,U=F.indexOf,X={},J=X.toString,K=X.hasOwnProperty,Q={},Y=e.document,G="2.1.4",Z=function(e,t){return new Z.fn.init(e,t)},ee=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,te=/^-ms-/,ne=/-([\da-z])/gi,re=function(e,t){return t.toUpperCase()};Z.fn=Z.prototype={jquery:G,constructor:Z,selector:"",length:0,toArray:function(){return z.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:z.call(this)},pushStack:function(e){var t=Z.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return Z.each(this,e,t)},map:function(e){return this.pushStack(Z.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(z.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:V,sort:F.sort,splice:F.splice},Z.extend=Z.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||Z.isFunction(a)||(a={}),s===u&&(a=this,s--);u>s;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],r=e[t],a!==r&&(c&&r&&(Z.isPlainObject(r)||(o=Z.isArray(r)))?(o?(o=!1,i=n&&Z.isArray(n)?n:[]):i=n&&Z.isPlainObject(n)?n:{},a[t]=Z.extend(c,i,r)):void 0!==r&&(a[t]=r));return a},Z.extend({expando:"jQuery"+(G+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===Z.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!Z.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return"object"!==Z.type(e)||e.nodeType||Z.isWindow(e)?!1:e.constructor&&!K.call(e.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?X[J.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=Z.trim(e),e&&(1===e.indexOf("use strict")?(t=Y.createElement("script"),t.text=e,Y.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(te,"ms-").replace(ne,re)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var o,i=0,a=e.length,s=n(e);if(r){if(s)for(;a>i&&(o=t.apply(e[i],r),o!==!1);i++);else for(i in e)if(o=t.apply(e[i],r),o===!1)break}else if(s)for(;a>i&&(o=t.call(e[i],i,e[i]),o!==!1);i++);else for(i in e)if(o=t.call(e[i],i,e[i]),o===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(ee,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?Z.merge(r,"string"==typeof e?[e]:e):V.call(r,e)),r},inArray:function(e,t,n){return null==t?-1:U.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;n>r;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r,o=[],i=0,a=e.length,s=!n;a>i;i++)r=!t(e[i],i),r!==s&&o.push(e[i]);return o},map:function(e,t,r){var o,i=0,a=e.length,s=n(e),u=[];if(s)for(;a>i;i++)o=t(e[i],i,r),null!=o&&u.push(o);else for(i in e)o=t(e[i],i,r),null!=o&&u.push(o);return W.apply([],u)},guid:1,proxy:function(e,t){var n,r,o;return"string"==typeof t&&(n=e[t],t=e,e=n),Z.isFunction(e)?(r=z.call(arguments,2),o=function(){return e.apply(t||this,r.concat(z.call(arguments)))},o.guid=e.guid=e.guid||Z.guid++,o):void 0},now:Date.now,support:Q}),Z.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){X["[object "+t+"]"]=t.toLowerCase()});var oe=function(e){function t(e,t,n,r){var o,i,a,s,u,c,f,d,h,v;if((t?t.ownerDocument||t:H)!==q&&O(t),t=t||q,n=n||[],s=t.nodeType,"string"!=typeof e||!e||1!==s&&9!==s&&11!==s)return n;if(!r&&B){if(11!==s&&(o=ye.exec(e)))if(a=o[1]){if(9===s){if(i=t.getElementById(a),!i||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&_(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return G.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&x.getElementsByClassName)return G.apply(n,t.getElementsByClassName(a)),n}if(x.qsa&&(!P||!P.test(e))){if(d=f=I,h=t,v=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(c=S(e),(f=t.getAttribute("id"))?d=f.replace(we,"\\$&"):t.setAttribute("id",d),d="[id='"+d+"'] ",u=c.length;u--;)c[u]=d+p(c[u]);h=be.test(e)&&l(t.parentNode)||t,v=c.join(",")}if(v)try{return G.apply(n,h.querySelectorAll(v)),n}catch(m){}finally{f||t.removeAttribute("id")}}}return N(e.replace(ue,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[I]=!0,e}function o(e){var t=q.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function i(e,t){for(var n=e.split("|"),r=e.length;r--;)C.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||X)-(~e.sourceIndex||X);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return r(function(t){return t=+t,r(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function l(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function p(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=F++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var s,u,c=[R,i];if(a){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||o){if(u=t[I]||(t[I]={}),(s=u[r])&&s[0]===R&&s[1]===i)return c[2]=s[2];if(u[r]=c,c[2]=e(t,n,a))return!0}}}function h(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function v(e,n,r){for(var o=0,i=n.length;i>o;o++)t(e,n[o],r);return r}function m(e,t,n,r,o){for(var i,a=[],s=0,u=e.length,c=null!=t;u>s;s++)(i=e[s])&&(!n||n(i,r,o))&&(a.push(i),c&&t.push(s));return a}function g(e,t,n,o,i,a){return o&&!o[I]&&(o=g(o)),i&&!i[I]&&(i=g(i,a)),r(function(r,a,s,u){var c,l,f,p=[],d=[],h=a.length,g=r||v(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?g:m(g,p,e,s,u),b=n?i||(r?e:h||o)?[]:a:y;if(n&&n(y,b,s,u),o)for(c=m(b,d),o(c,[],s,u),l=c.length;l--;)(f=c[l])&&(b[d[l]]=!(y[d[l]]=f));if(r){if(i||e){if(i){for(c=[],l=b.length;l--;)(f=b[l])&&c.push(y[l]=f);i(null,b=[],c,u)}for(l=b.length;l--;)(f=b[l])&&(c=i?ee(r,f):p[l])>-1&&(r[c]=!(a[c]=f))}}else b=m(b===a?b.splice(h,b.length):b),i?i(null,a,b,u):G.apply(a,b)})}function y(e){for(var t,n,r,o=e.length,i=C.relative[e[0].type],a=i||C.relative[" "],s=i?1:0,u=d(function(e){return e===t},a,!0),c=d(function(e){return ee(t,e)>-1},a,!0),l=[function(e,n,r){var o=!i&&(r||n!==j)||((t=n).nodeType?u(e,n,r):c(e,n,r));return t=null,o}];o>s;s++)if(n=C.relative[e[s].type])l=[d(h(l),n)];else{if(n=C.filter[e[s].type].apply(null,e[s].matches),n[I]){for(r=++s;o>r&&!C.relative[e[r].type];r++);return g(s>1&&h(l),s>1&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ue,"$1"),n,r>s&&y(e.slice(s,r)),o>r&&y(e=e.slice(r)),o>r&&p(e))}l.push(n)}return h(l)}function b(e,n){var o=n.length>0,i=e.length>0,a=function(r,a,s,u,c){var l,f,p,d=0,h="0",v=r&&[],g=[],y=j,b=r||i&&C.find.TAG("*",c),w=R+=null==y?1:Math.random()||.1,x=b.length;for(c&&(j=a!==q&&a);h!==x&&null!=(l=b[h]);h++){if(i&&l){for(f=0;p=e[f++];)if(p(l,a,s)){u.push(l);break}c&&(R=w)}o&&((l=!p&&l)&&d--,r&&v.push(l))}if(d+=h,o&&h!==d){for(f=0;p=n[f++];)p(v,g,a,s);if(r){if(d>0)for(;h--;)v[h]||g[h]||(g[h]=Q.call(u));g=m(g)}G.apply(u,g),c&&!r&&g.length>0&&d+n.length>1&&t.uniqueSort(u)}return c&&(R=w,j=y),v};return o?r(a):a}var w,x,C,T,k,S,E,N,j,D,A,O,q,M,B,P,$,L,_,I="sizzle"+1*new Date,H=e.document,R=0,F=0,z=n(),W=n(),V=n(),U=function(e,t){return e===t&&(A=!0),0},X=1<<31,J={}.hasOwnProperty,K=[],Q=K.pop,Y=K.push,G=K.push,Z=K.slice,ee=function(e,t){for(var n=0,r=e.length;r>n;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]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",oe=re.replace("w","w#"),ie="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+oe+"))|)"+ne+"*\\]",ae=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",se=new RegExp(ne+"+","g"),ue=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ce=new RegExp("^"+ne+"*,"+ne+"*"),le=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),fe=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),pe=new RegExp(ae),de=new RegExp("^"+oe+"$"),he={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re.replace("w","w*")+")"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+ae),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")},ve=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,we=/'|\\/g,xe=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),Ce=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Te=function(){O()};try{G.apply(K=Z.call(H.childNodes),H.childNodes),K[H.childNodes.length].nodeType}catch(ke){G={apply:K.length?function(e,t){Y.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}x=t.support={},k=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},O=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:H;return r!==q&&9===r.nodeType&&r.documentElement?(q=r,M=r.documentElement,n=r.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Te,!1):n.attachEvent&&n.attachEvent("onunload",Te)),B=!k(r),x.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),x.getElementsByTagName=o(function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length}),x.getElementsByClassName=ge.test(r.getElementsByClassName),x.getById=o(function(e){return M.appendChild(e).id=I,!r.getElementsByName||!r.getElementsByName(I).length}),x.getById?(C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&B){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},C.filter.ID=function(e){var t=e.replace(xe,Ce);return function(e){return e.getAttribute("id")===t}}):(delete C.find.ID,C.filter.ID=function(e){var t=e.replace(xe,Ce);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),C.find.TAG=x.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):x.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},C.find.CLASS=x.getElementsByClassName&&function(e,t){return B?t.getElementsByClassName(e):void 0},$=[],P=[],(x.qsa=ge.test(r.querySelectorAll))&&(o(function(e){M.appendChild(e).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&P.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||P.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+I+"-]").length||P.push("~="),e.querySelectorAll(":checked").length||P.push(":checked"),e.querySelectorAll("a#"+I+"+*").length||P.push(".#.+[+~]")}),o(function(e){var t=r.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(",.*:")})),(x.matchesSelector=ge.test(L=M.matches||M.webkitMatchesSelector||M.mozMatchesSelector||M.oMatchesSelector||M.msMatchesSelector))&&o(function(e){x.disconnectedMatch=L.call(e,"div"),L.call(e,"[s!='']:x"),$.push("!=",ae)}),P=P.length&&new RegExp(P.join("|")),$=$.length&&new RegExp($.join("|")),t=ge.test(M.compareDocumentPosition),_=t||ge.test(M.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!x.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===H&&_(H,e)?-1:t===r||t.ownerDocument===H&&_(H,t)?1:D?ee(D,e)-ee(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,o=0,i=e.parentNode,s=t.parentNode,u=[e],c=[t];if(!i||!s)return e===r?-1:t===r?1:i?-1:s?1:D?ee(D,e)-ee(D,t):0;if(i===s)return a(e,t);for(n=e;n=n.parentNode;)u.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;u[o]===c[o];)o++;return o?a(u[o],c[o]):u[o]===H?-1:c[o]===H?1:0},r):q},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==q&&O(e),n=n.replace(fe,"='$1']"),!(!x.matchesSelector||!B||$&&$.test(n)||P&&P.test(n)))try{var r=L.call(e,n);if(r||x.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(o){}return t(n,q,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==q&&O(e),_(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==q&&O(e);var n=C.attrHandle[t.toLowerCase()],r=n&&J.call(C.attrHandle,t.toLowerCase())?n(e,t,!B):void 0;return void 0!==r?r:x.attributes||!B?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,o=0;if(A=!x.detectDuplicates,D=!x.sortStable&&e.slice(0),e.sort(U),A){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return D=null,e},T=t.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=T(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=T(t);return n},C=t.selectors={cacheLength:50,createPseudo:r,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(xe,Ce),e[3]=(e[3]||e[4]||e[5]||"").replace(xe,Ce),"~="===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]||t.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]&&t.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&&pe.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(xe,Ce).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(o){var i=t.attr(o,e);return null==i?"!="===n:n?(i+="","="===n?i===r:"!="===n?i!==r:"^="===n?r&&0===i.indexOf(r):"*="===n?r&&i.indexOf(r)>-1:"$="===n?r&&i.slice(-r.length)===r:"~="===n?(" "+i.replace(se," ")+" ").indexOf(r)>-1:"|="===n?i===r||i.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,p,d,h,v=i!==a?"nextSibling":"previousSibling",m=t.parentNode,g=s&&t.nodeName.toLowerCase(),y=!u&&!s;if(m){if(i){for(;v;){for(f=t;f=f[v];)if(s?f.nodeName.toLowerCase()===g:1===f.nodeType)return!1;h=v="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(l=m[I]||(m[I]={}),c=l[e]||[],d=c[0]===R&&c[1],p=c[0]===R&&c[2],f=d&&m.childNodes[d];f=++d&&f&&f[v]||(p=d=0)||h.pop();)if(1===f.nodeType&&++p&&f===t){l[e]=[R,d,p];break}}else if(y&&(c=(t[I]||(t[I]={}))[e])&&c[0]===R)p=c[1];else for(;(f=++d&&f&&f[v]||(p=d=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==g:1!==f.nodeType)||!++p||(y&&((f[I]||(f[I]={}))[e]=[R,p]),f!==t)););return p-=o,p===r||p%r===0&&p/r>=0}}},PSEUDO:function(e,n){var o,i=C.pseudos[e]||C.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return i[I]?i(n):i.length>1?(o=[e,e,"",n],C.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,o=i(e,n),a=o.length;a--;)r=ee(e,o[a]),e[r]=!(t[r]=o[a])}):function(e){return i(e,0,o)}):i}},pseudos:{not:r(function(e){var t=[],n=[],o=E(e.replace(ue,"$1"));return o[I]?r(function(e,t,n,r){for(var i,a=o(e,null,r,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,r,i){return t[0]=e,o(t,null,i,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(xe,Ce),function(t){return(t.textContent||t.innerText||T(t)).indexOf(e)>-1}}),lang:r(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(xe,Ce).toLowerCase(),function(t){var n;do if(n=B?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===M},focus:function(e){return e===q.activeElement&&(!q.hasFocus||q.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},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,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return ve.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:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[0>n?n+t:n]}),even:c(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:c(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},C.pseudos.nth=C.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[w]=s(w);for(w in{submit:!0,reset:!0})C.pseudos[w]=u(w);return f.prototype=C.filters=C.pseudos,C.setFilters=new f,S=t.tokenize=function(e,n){var r,o,i,a,s,u,c,l=W[e+" "];if(l)return n?0:l.slice(0);for(s=e,u=[],c=C.preFilter;s;){(!r||(o=ce.exec(s)))&&(o&&(s=s.slice(o[0].length)||s),u.push(i=[])),r=!1,(o=le.exec(s))&&(r=o.shift(),i.push({value:r,type:o[0].replace(ue," ")}),s=s.slice(r.length));for(a in C.filter)!(o=he[a].exec(s))||c[a]&&!(o=c[a](o))||(r=o.shift(),i.push({value:r,type:a,matches:o}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):W(e,u).slice(0)},E=t.compile=function(e,t){var n,r=[],o=[],i=V[e+" "];if(!i){for(t||(t=S(e)),n=t.length;n--;)i=y(t[n]),i[I]?r.push(i):o.push(i);i=V(e,b(o,r)),i.selector=e}return i},N=t.select=function(e,t,n,r){var o,i,a,s,u,c="function"==typeof e&&e,f=!r&&S(e=c.selector||e);if(n=n||[],1===f.length){if(i=f[0]=f[0].slice(0),i.length>2&&"ID"===(a=i[0]).type&&x.getById&&9===t.nodeType&&B&&C.relative[i[1].type]){if(t=(C.find.ID(a.matches[0].replace(xe,Ce),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=he.needsContext.test(e)?0:i.length;o--&&(a=i[o],!C.relative[s=a.type]);)if((u=C.find[s])&&(r=u(a.matches[0].replace(xe,Ce),be.test(i[0].type)&&l(t.parentNode)||t))){if(i.splice(o,1),e=r.length&&p(i),!e)return G.apply(n,r),n;break}}return(c||E(e,f))(r,t,!B,n,be.test(e)&&l(t.parentNode)||t),n},x.sortStable=I.split("").sort(U).join("")===I,x.detectDuplicates=!!A,O(),x.sortDetached=o(function(e){return 1&e.compareDocumentPosition(q.createElement("div"))}),o(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||i("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),x.attributes&&o(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||i("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||i(te,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);Z.find=oe,Z.expr=oe.selectors,Z.expr[":"]=Z.expr.pseudos,Z.unique=oe.uniqueSort,Z.text=oe.getText,Z.isXMLDoc=oe.isXML,Z.contains=oe.contains;var ie=Z.expr.match.needsContext,ae=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,se=/^.[^:#\[\.,]*$/;Z.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?Z.find.matchesSelector(r,e)?[r]:[]:Z.find.matches(e,Z.grep(t,function(e){return 1===e.nodeType}))},Z.fn.extend({find:function(e){var t,n=this.length,r=[],o=this;
  
  if("string"!=typeof e)return this.pushStack(Z(e).filter(function(){for(t=0;n>t;t++)if(Z.contains(o[t],this))return!0}));for(t=0;n>t;t++)Z.find(e,o[t],r);return r=this.pushStack(n>1?Z.unique(r):r),r.selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&ie.test(e)?Z(e):e||[],!1).length}});var ue,ce=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,le=Z.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ce.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||ue).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof Z?t[0]:t,Z.merge(this,Z.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:Y,!0)),ae.test(n[1])&&Z.isPlainObject(t))for(n in t)Z.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return r=Y.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=Y,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):Z.isFunction(e)?"undefined"!=typeof ue.ready?ue.ready(e):e(Z):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),Z.makeArray(e,this))};le.prototype=Z.fn,ue=Z(Y);var fe=/^(?:parents|prev(?:Until|All))/,pe={children:!0,contents:!0,next:!0,prev:!0};Z.extend({dir:function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&Z(e).is(n))break;r.push(e)}return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),Z.fn.extend({has:function(e){var t=Z(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(Z.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,o=this.length,i=[],a=ie.test(e)||"string"!=typeof e?Z(e,t||this.context):0;o>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&Z.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?Z.unique(i):i)},index:function(e){return e?"string"==typeof e?U.call(Z(e),this[0]):U.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Z.unique(Z.merge(this.get(),Z(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Z.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Z.dir(e,"parentNode")},parentsUntil:function(e,t,n){return Z.dir(e,"parentNode",n)},next:function(e){return o(e,"nextSibling")},prev:function(e){return o(e,"previousSibling")},nextAll:function(e){return Z.dir(e,"nextSibling")},prevAll:function(e){return Z.dir(e,"previousSibling")},nextUntil:function(e,t,n){return Z.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return Z.dir(e,"previousSibling",n)},siblings:function(e){return Z.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return Z.sibling(e.firstChild)},contents:function(e){return e.contentDocument||Z.merge([],e.childNodes)}},function(e,t){Z.fn[e]=function(n,r){var o=Z.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=Z.filter(r,o)),this.length>1&&(pe[e]||Z.unique(o),fe.test(e)&&o.reverse()),this.pushStack(o)}});var de=/\S+/g,he={};Z.Callbacks=function(e){e="string"==typeof e?he[e]||i(e):Z.extend({},e);var t,n,r,o,a,s,u=[],c=!e.once&&[],l=function(i){for(t=e.memory&&i,n=!0,s=o||0,o=0,a=u.length,r=!0;u&&a>s;s++)if(u[s].apply(i[0],i[1])===!1&&e.stopOnFalse){t=!1;break}r=!1,u&&(c?c.length&&l(c.shift()):t?u=[]:f.disable())},f={add:function(){if(u){var n=u.length;!function i(t){Z.each(t,function(t,n){var r=Z.type(n);"function"===r?e.unique&&f.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})}(arguments),r?a=u.length:t&&(o=n,l(t))}return this},remove:function(){return u&&Z.each(arguments,function(e,t){for(var n;(n=Z.inArray(t,u,n))>-1;)u.splice(n,1),r&&(a>=n&&a--,s>=n&&s--)}),this},has:function(e){return e?Z.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],a=0,this},disable:function(){return u=c=t=void 0,this},disabled:function(){return!u},lock:function(){return c=void 0,t||f.disable(),this},locked:function(){return!c},fireWith:function(e,t){return!u||n&&!c||(t=t||[],t=[e,t.slice?t.slice():t],r?c.push(t):l(t)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!n}};return f},Z.extend({Deferred:function(e){var t=[["resolve","done",Z.Callbacks("once memory"),"resolved"],["reject","fail",Z.Callbacks("once memory"),"rejected"],["notify","progress",Z.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return Z.Deferred(function(n){Z.each(t,function(t,i){var a=Z.isFunction(e[t])&&e[t];o[i[1]](function(){var e=a&&a.apply(this,arguments);e&&Z.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[i[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?Z.extend(e,r):r}},o={};return r.pipe=r.then,Z.each(t,function(e,i){var a=i[2],s=i[3];r[i[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),o[i[0]]=function(){return o[i[0]+"With"](this===o?r:this,arguments),this},o[i[0]+"With"]=a.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(e){var t,n,r,o=0,i=z.call(arguments),a=i.length,s=1!==a||e&&Z.isFunction(e.promise)?a:0,u=1===s?e:Z.Deferred(),c=function(e,n,r){return function(o){n[e]=this,r[e]=arguments.length>1?z.call(arguments):o,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);a>o;o++)i[o]&&Z.isFunction(i[o].promise)?i[o].promise().done(c(o,r,i)).fail(u.reject).progress(c(o,n,t)):--s;return s||u.resolveWith(r,i),u.promise()}});var ve;Z.fn.ready=function(e){return Z.ready.promise().done(e),this},Z.extend({isReady:!1,readyWait:1,holdReady:function(e){e?Z.readyWait++:Z.ready(!0)},ready:function(e){(e===!0?--Z.readyWait:Z.isReady)||(Z.isReady=!0,e!==!0&&--Z.readyWait>0||(ve.resolveWith(Y,[Z]),Z.fn.triggerHandler&&(Z(Y).triggerHandler("ready"),Z(Y).off("ready"))))}}),Z.ready.promise=function(t){return ve||(ve=Z.Deferred(),"complete"===Y.readyState?setTimeout(Z.ready):(Y.addEventListener("DOMContentLoaded",a,!1),e.addEventListener("load",a,!1))),ve.promise(t)},Z.ready.promise();var me=Z.access=function(e,t,n,r,o,i,a){var s=0,u=e.length,c=null==n;if("object"===Z.type(n)){o=!0;for(s in n)Z.access(e,t,s,n[s],!0,i,a)}else if(void 0!==r&&(o=!0,Z.isFunction(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(Z(e),n)})),t))for(;u>s;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:c?t.call(e):u?t(e[0],n):i};Z.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},s.uid=1,s.accepts=Z.acceptData,s.prototype={key:function(e){if(!s.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=s.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,Z.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,o=this.key(e),i=this.cache[o];if("string"==typeof t)i[t]=n;else if(Z.isEmptyObject(i))Z.extend(this.cache[o],t);else for(r in t)i[r]=t[r];return i},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?(r=this.get(e,t),void 0!==r?r:this.get(e,Z.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,o,i=this.key(e),a=this.cache[i];if(void 0===t)this.cache[i]={};else{Z.isArray(t)?r=t.concat(t.map(Z.camelCase)):(o=Z.camelCase(t),t in a?r=[t,o]:(r=o,r=r in a?[r]:r.match(de)||[])),n=r.length;for(;n--;)delete a[r[n]]}},hasData:function(e){return!Z.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var ge=new s,ye=new s,be=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,we=/([A-Z])/g;Z.extend({hasData:function(e){return ye.hasData(e)||ge.hasData(e)},data:function(e,t,n){return ye.access(e,t,n)},removeData:function(e,t){ye.remove(e,t)},_data:function(e,t,n){return ge.access(e,t,n)},_removeData:function(e,t){ge.remove(e,t)}}),Z.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=ye.get(i),1===i.nodeType&&!ge.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=Z.camelCase(r.slice(5)),u(i,r,o[r])));ge.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){ye.set(this,e)}):me(this,function(t){var n,r=Z.camelCase(e);if(i&&void 0===t){if(n=ye.get(i,e),void 0!==n)return n;if(n=ye.get(i,r),void 0!==n)return n;if(n=u(i,r,void 0),void 0!==n)return n}else this.each(function(){var n=ye.get(this,r);ye.set(this,r,t),-1!==e.indexOf("-")&&void 0!==n&&ye.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){ye.remove(this,e)})}}),Z.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=ge.get(e,t),n&&(!r||Z.isArray(n)?r=ge.access(e,t,Z.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=Z.queue(e,t),r=n.length,o=n.shift(),i=Z._queueHooks(e,t),a=function(){Z.dequeue(e,t)};"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,a,i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ge.get(e,n)||ge.access(e,n,{empty:Z.Callbacks("once memory").add(function(){ge.remove(e,[t+"queue",n])})})}}),Z.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Z.queue(this[0],e):void 0===t?this:this.each(function(){var n=Z.queue(this,e,t);Z._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Z.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Z.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=Z.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=ge.get(i[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var xe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ce=["Top","Right","Bottom","Left"],Te=function(e,t){return e=t||e,"none"===Z.css(e,"display")||!Z.contains(e.ownerDocument,e)},ke=/^(?:checkbox|radio)$/i;!function(){var e=Y.createDocumentFragment(),t=e.appendChild(Y.createElement("div")),n=Y.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),Q.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",Q.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Se="undefined";Q.focusinBubbles="onfocusin"in e;var Ee=/^key/,Ne=/^(?:mouse|pointer|contextmenu)|click/,je=/^(?:focusinfocus|focusoutblur)$/,De=/^([^.]*)(?:\.(.+)|)$/;Z.event={global:{},add:function(e,t,n,r,o){var i,a,s,u,c,l,f,p,d,h,v,m=ge.get(e);if(m)for(n.handler&&(i=n,n=i.handler,o=i.selector),n.guid||(n.guid=Z.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(t){return typeof Z!==Se&&Z.event.triggered!==t.type?Z.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(de)||[""],c=t.length;c--;)s=De.exec(t[c])||[],d=v=s[1],h=(s[2]||"").split(".").sort(),d&&(f=Z.event.special[d]||{},d=(o?f.delegateType:f.bindType)||d,f=Z.event.special[d]||{},l=Z.extend({type:d,origType:v,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&Z.expr.match.needsContext.test(o),namespace:h.join(".")},i),(p=u[d])||(p=u[d]=[],p.delegateCount=0,f.setup&&f.setup.call(e,r,h,a)!==!1||e.addEventListener&&e.addEventListener(d,a,!1)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,l):p.push(l),Z.event.global[d]=!0)},remove:function(e,t,n,r,o){var i,a,s,u,c,l,f,p,d,h,v,m=ge.hasData(e)&&ge.get(e);if(m&&(u=m.events)){for(t=(t||"").match(de)||[""],c=t.length;c--;)if(s=De.exec(t[c])||[],d=v=s[1],h=(s[2]||"").split(".").sort(),d){for(f=Z.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,p=u[d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)l=p[i],!o&&v!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(i,1),l.selector&&p.delegateCount--,f.remove&&f.remove.call(e,l));a&&!p.length&&(f.teardown&&f.teardown.call(e,h,m.handle)!==!1||Z.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)Z.event.remove(e,d+t[c],n,r,!0);Z.isEmptyObject(u)&&(delete m.handle,ge.remove(e,"events"))}},trigger:function(t,n,r,o){var i,a,s,u,c,l,f,p=[r||Y],d=K.call(t,"type")?t.type:t,h=K.call(t,"namespace")?t.namespace.split("."):[];if(a=s=r=r||Y,3!==r.nodeType&&8!==r.nodeType&&!je.test(d+Z.event.triggered)&&(d.indexOf(".")>=0&&(h=d.split("."),d=h.shift(),h.sort()),c=d.indexOf(":")<0&&"on"+d,t=t[Z.expando]?t:new Z.Event(d,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:Z.makeArray(n,[t]),f=Z.event.special[d]||{},o||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!o&&!f.noBubble&&!Z.isWindow(r)){for(u=f.delegateType||d,je.test(u+d)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||Y)&&p.push(s.defaultView||s.parentWindow||e)}for(i=0;(a=p[i++])&&!t.isPropagationStopped();)t.type=i>1?u:f.bindType||d,l=(ge.get(a,"events")||{})[t.type]&&ge.get(a,"handle"),l&&l.apply(a,n),l=c&&a[c],l&&l.apply&&Z.acceptData(a)&&(t.result=l.apply(a,n),t.result===!1&&t.preventDefault());return t.type=d,o||t.isDefaultPrevented()||f._default&&f._default.apply(p.pop(),n)!==!1||!Z.acceptData(r)||c&&Z.isFunction(r[d])&&!Z.isWindow(r)&&(s=r[c],s&&(r[c]=null),Z.event.triggered=d,r[d](),Z.event.triggered=void 0,s&&(r[c]=s)),t.result}},dispatch:function(e){e=Z.event.fix(e);var t,n,r,o,i,a=[],s=z.call(arguments),u=(ge.get(this,"events")||{})[e.type]||[],c=Z.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){for(a=Z.event.handlers.call(this,e,u),t=0;(o=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((Z.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s),void 0!==r&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,o,i,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==e.type){for(r=[],n=0;s>n;n++)i=t[n],o=i.selector+" ",void 0===r[o]&&(r[o]=i.needsContext?Z(o,this).index(u)>=0:Z.find(o,this,null,[u]).length),r[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget 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 offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,o,i=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||Y,r=n.documentElement,o=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),e.which||void 0===i||(e.which=1&i?1:2&i?3:4&i?2:0),e}},fix:function(e){if(e[Z.expando])return e;var t,n,r,o=e.type,i=e,a=this.fixHooks[o];for(a||(this.fixHooks[o]=a=Ne.test(o)?this.mouseHooks:Ee.test(o)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new Z.Event(i),t=r.length;t--;)n=r[t],e[n]=i[n];return e.target||(e.target=Y),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,i):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==f()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===f()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&Z.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return Z.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var o=Z.extend(new Z.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?Z.event.trigger(o,null,t):Z.event.dispatch.call(t,o),o.isDefaultPrevented()&&n.preventDefault()}},Z.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},Z.Event=function(e,t){return this instanceof Z.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?c:l):this.type=e,t&&Z.extend(this,t),this.timeStamp=e&&e.timeStamp||Z.now(),void(this[Z.expando]=!0)):new Z.Event(e,t)},Z.Event.prototype={isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=c,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=c,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=c,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},Z.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){Z.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,o=e.relatedTarget,i=e.handleObj;return(!o||o!==r&&!Z.contains(r,o))&&(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),Q.focusinBubbles||Z.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){Z.event.simulate(t,e.target,Z.event.fix(e),!0)};Z.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=ge.access(r,t);o||r.addEventListener(e,n,!0),ge.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=ge.access(r,t)-1;o?ge.access(r,t,o):(r.removeEventListener(e,n,!0),ge.remove(r,t))}}}),Z.fn.extend({on:function(e,t,n,r,o){var i,a;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(a in e)this.on(a,t,n,e[a],o);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),r===!1)r=l;else if(!r)return this;return 1===o&&(i=r,r=function(e){return Z().off(e),i.apply(this,arguments)},r.guid=i.guid||(i.guid=Z.guid++)),this.each(function(){Z.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,Z(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=l),this.each(function(){Z.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){Z.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?Z.event.trigger(e,t,n,!0):void 0}});var Ae=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Oe=/<([\w:]+)/,qe=/<|&#?\w+;/,Me=/<(?:script|style|link)/i,Be=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^$|\/(?:java|ecma)script/i,$e=/^true\/(.*)/,Le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,_e={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};_e.optgroup=_e.option,_e.tbody=_e.tfoot=_e.colgroup=_e.caption=_e.thead,_e.th=_e.td,Z.extend({clone:function(e,t,n){var r,o,i,a,s=e.cloneNode(!0),u=Z.contains(e.ownerDocument,e);if(!(Q.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Z.isXMLDoc(e)))for(a=g(s),i=g(e),r=0,o=i.length;o>r;r++)y(i[r],a[r]);if(t)if(n)for(i=i||g(e),a=a||g(s),r=0,o=i.length;o>r;r++)m(i[r],a[r]);else m(e,s);return a=g(s,"script"),a.length>0&&v(a,!u&&g(e,"script")),s},buildFragment:function(e,t,n,r){for(var o,i,a,s,u,c,l=t.createDocumentFragment(),f=[],p=0,d=e.length;d>p;p++)if(o=e[p],o||0===o)if("object"===Z.type(o))Z.merge(f,o.nodeType?[o]:o);else if(qe.test(o)){for(i=i||l.appendChild(t.createElement("div")),a=(Oe.exec(o)||["",""])[1].toLowerCase(),s=_e[a]||_e._default,i.innerHTML=s[1]+o.replace(Ae,"<$1></$2>")+s[2],c=s[0];c--;)i=i.lastChild;Z.merge(f,i.childNodes),i=l.firstChild,i.textContent=""}else f.push(t.createTextNode(o));for(l.textContent="",p=0;o=f[p++];)if((!r||-1===Z.inArray(o,r))&&(u=Z.contains(o.ownerDocument,o),i=g(l.appendChild(o),"script"),u&&v(i),n))for(c=0;o=i[c++];)Pe.test(o.type||"")&&n.push(o);return l},cleanData:function(e){for(var t,n,r,o,i=Z.event.special,a=0;void 0!==(n=e[a]);a++){if(Z.acceptData(n)&&(o=n[ge.expando],o&&(t=ge.cache[o]))){if(t.events)for(r in t.events)i[r]?Z.event.remove(n,r):Z.removeEvent(n,r,t.handle);ge.cache[o]&&delete ge.cache[o]}delete ye.cache[n[ye.expando]]}}}),Z.fn.extend({text:function(e){return me(this,function(e){return void 0===e?Z.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=p(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=p(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?Z.filter(e,this):this,o=0;null!=(n=r[o]);o++)t||1!==n.nodeType||Z.cleanData(g(n)),n.parentNode&&(t&&Z.contains(n.ownerDocument,n)&&v(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Z.cleanData(g(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return Z.clone(this,e,t)})},html:function(e){return me(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Me.test(e)&&!_e[(Oe.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Ae,"<$1></$2>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(Z.cleanData(g(t,!1)),t.innerHTML=e);t=0}catch(o){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,Z.cleanData(g(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=W.apply([],e);var n,r,o,i,a,s,u=0,c=this.length,l=this,f=c-1,p=e[0],v=Z.isFunction(p);if(v||c>1&&"string"==typeof p&&!Q.checkClone&&Be.test(p))return this.each(function(n){var r=l.eq(n);v&&(e[0]=p.call(this,n,r.html())),r.domManip(e,t)});if(c&&(n=Z.buildFragment(e,this[0].ownerDocument,!1,this),r=n.firstChild,1===n.childNodes.length&&(n=r),r)){for(o=Z.map(g(n,"script"),d),i=o.length;c>u;u++)a=n,u!==f&&(a=Z.clone(a,!0,!0),i&&Z.merge(o,g(a,"script"))),t.call(this[u],a,u);if(i)for(s=o[o.length-1].ownerDocument,Z.map(o,h),u=0;i>u;u++)a=o[u],Pe.test(a.type||"")&&!ge.access(a,"globalEval")&&Z.contains(s,a)&&(a.src?Z._evalUrl&&Z._evalUrl(a.src):Z.globalEval(a.textContent.replace(Le,"")))}return this}}),Z.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Z.fn[e]=function(e){for(var n,r=[],o=Z(e),i=o.length-1,a=0;i>=a;a++)n=a===i?this:this.clone(!0),Z(o[a])[t](n),V.apply(r,n.get());return this.pushStack(r)}});var Ie,He={},Re=/^margin/,Fe=new RegExp("^("+xe+")(?!px)[a-z%]+$","i"),ze=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)};!function(){function t(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",a.innerHTML="",o.appendChild(i);var t=e.getComputedStyle(a,null);n="1%"!==t.top,r="4px"===t.width,o.removeChild(i)}var n,r,o=Y.documentElement,i=Y.createElement("div"),a=Y.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",Q.clearCloneStyle="content-box"===a.style.backgroundClip,i.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",i.appendChild(a),e.getComputedStyle&&Z.extend(Q,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return null==r&&t(),r},reliableMarginRight:function(){var t,n=a.appendChild(Y.createElement("div"));return n.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",a.style.width="1px",o.appendChild(i),t=!parseFloat(e.getComputedStyle(n,null).marginRight),o.removeChild(i),a.removeChild(n),t}}))}(),Z.swap=function(e,t,n,r){var o,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];o=n.apply(e,r||[]);for(i in t)e.style[i]=a[i];return o};var We=/^(none|table(?!-c[ea]).+)/,Ve=new RegExp("^("+xe+")(.*)$","i"),Ue=new RegExp("^([+-])=("+xe+")","i"),Xe={position:"absolute",visibility:"hidden",display:"block"},Je={letterSpacing:"0",fontWeight:"400"},Ke=["Webkit","O","Moz","ms"];Z.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=x(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=Z.camelCase(t),u=e.style;return t=Z.cssProps[s]||(Z.cssProps[s]=T(u,s)),a=Z.cssHooks[t]||Z.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:u[t]:(i=typeof n,"string"===i&&(o=Ue.exec(n))&&(n=(o[1]+1)*o[2]+parseFloat(Z.css(e,t)),i="number"),null!=n&&n===n&&("number"!==i||Z.cssNumber[s]||(n+="px"),Q.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u[t]=n)),void 0)}},css:function(e,t,n,r){var o,i,a,s=Z.camelCase(t);return t=Z.cssProps[s]||(Z.cssProps[s]=T(e.style,s)),a=Z.cssHooks[t]||Z.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=x(e,t,r)),"normal"===o&&t in Je&&(o=Je[t]),""===n||n?(i=parseFloat(o),n===!0||Z.isNumeric(i)?i||0:o):o}}),Z.each(["height","width"],function(e,t){Z.cssHooks[t]={get:function(e,n,r){return n?We.test(Z.css(e,"display"))&&0===e.offsetWidth?Z.swap(e,Xe,function(){return E(e,t,r)}):E(e,t,r):void 0},set:function(e,n,r){var o=r&&ze(e);return k(e,n,r?S(e,t,r,"border-box"===Z.css(e,"boxSizing",!1,o),o):0)}}}),Z.cssHooks.marginRight=C(Q.reliableMarginRight,function(e,t){return t?Z.swap(e,{display:"inline-block"},x,[e,"marginRight"]):void 0}),Z.each({margin:"",padding:"",border:"Width"},function(e,t){Z.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];4>r;r++)o[e+Ce[r]+t]=i[r]||i[r-2]||i[0];return o}},Re.test(e)||(Z.cssHooks[e+t].set=k)}),Z.fn.extend({css:function(e,t){return me(this,function(e,t,n){var r,o,i={},a=0;if(Z.isArray(t)){for(r=ze(e),o=t.length;o>a;a++)i[t[a]]=Z.css(e,t[a],!1,r);return i}return void 0!==n?Z.style(e,t,n):Z.css(e,t)},e,t,arguments.length>1)},show:function(){return N(this,!0)},hide:function(){return N(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Te(this)?Z(this).show():Z(this).hide()})}}),Z.Tween=j,j.prototype={constructor:j,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(Z.cssNumber[n]?"":"px")},cur:function(){var e=j.propHooks[this.prop];return e&&e.get?e.get(this):j.propHooks._default.get(this)},run:function(e){var t,n=j.propHooks[this.prop];return this.pos=t=this.options.duration?Z.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):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):j.propHooks._default.set(this),this}},j.prototype.init.prototype=j.prototype,j.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=Z.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){Z.fx.step[e.prop]?Z.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[Z.cssProps[e.prop]]||Z.cssHooks[e.prop])?Z.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},j.propHooks.scrollTop=j.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Z.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},Z.fx=j.prototype.init,Z.fx.step={};var Qe,Ye,Ge=/^(?:toggle|show|hide)$/,Ze=new RegExp("^(?:([+-])=|)("+xe+")([a-z%]*)$","i"),et=/queueHooks$/,tt=[q],nt={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),o=Ze.exec(t),i=o&&o[3]||(Z.cssNumber[e]?"":"px"),a=(Z.cssNumber[e]||"px"!==i&&+r)&&Ze.exec(Z.css(n.elem,e)),s=1,u=20;if(a&&a[3]!==i){i=i||a[3],o=o||[],a=+r||1;do s=s||".5",a/=s,Z.style(n.elem,e,a+i);while(s!==(s=n.cur()/r)&&1!==s&&--u)}return o&&(a=n.start=+a||+r||0,n.unit=i,n.end=o[1]?a+(o[1]+1)*o[2]:+o[2]),n}]};Z.Animation=Z.extend(B,{tweener:function(e,t){Z.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,o=e.length;o>r;r++)n=e[r],nt[n]=nt[n]||[],nt[n].unshift(t)},prefilter:function(e,t){t?tt.unshift(e):tt.push(e)}}),Z.speed=function(e,t,n){var r=e&&"object"==typeof e?Z.extend({},e):{complete:n||!n&&t||Z.isFunction(e)&&e,duration:e,easing:n&&t||t&&!Z.isFunction(t)&&t};return r.duration=Z.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in Z.fx.speeds?Z.fx.speeds[r.duration]:Z.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){Z.isFunction(r.old)&&r.old.call(this),r.queue&&Z.dequeue(this,r.queue)},r},Z.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Te).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=Z.isEmptyObject(e),i=Z.speed(t,n,r),a=function(){var t=B(this,Z.extend({},e),i);(o||ge.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||i.queue===!1?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",i=Z.timers,a=ge.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&et.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));(t||!n)&&Z.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=ge.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=Z.timers,a=r?r.length:0;for(n.finish=!0,Z.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),
  t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),Z.each(["toggle","show","hide"],function(e,t){var n=Z.fn[t];Z.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(A(t,!0),e,r,o)}}),Z.each({slideDown:A("show"),slideUp:A("hide"),slideToggle:A("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Z.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),Z.timers=[],Z.fx.tick=function(){var e,t=0,n=Z.timers;for(Qe=Z.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||Z.fx.stop(),Qe=void 0},Z.fx.timer=function(e){Z.timers.push(e),e()?Z.fx.start():Z.timers.pop()},Z.fx.interval=13,Z.fx.start=function(){Ye||(Ye=setInterval(Z.fx.tick,Z.fx.interval))},Z.fx.stop=function(){clearInterval(Ye),Ye=null},Z.fx.speeds={slow:600,fast:200,_default:400},Z.fn.delay=function(e,t){return e=Z.fx?Z.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},function(){var e=Y.createElement("input"),t=Y.createElement("select"),n=t.appendChild(Y.createElement("option"));e.type="checkbox",Q.checkOn=""!==e.value,Q.optSelected=n.selected,t.disabled=!0,Q.optDisabled=!n.disabled,e=Y.createElement("input"),e.value="t",e.type="radio",Q.radioValue="t"===e.value}();var rt,ot,it=Z.expr.attrHandle;Z.fn.extend({attr:function(e,t){return me(this,Z.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Z.removeAttr(this,e)})}}),Z.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(e&&3!==i&&8!==i&&2!==i)return typeof e.getAttribute===Se?Z.prop(e,t,n):(1===i&&Z.isXMLDoc(e)||(t=t.toLowerCase(),r=Z.attrHooks[t]||(Z.expr.match.bool.test(t)?ot:rt)),void 0===n?r&&"get"in r&&null!==(o=r.get(e,t))?o:(o=Z.find.attr(e,t),null==o?void 0:o):null!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+""),n):void Z.removeAttr(e,t))},removeAttr:function(e,t){var n,r,o=0,i=t&&t.match(de);if(i&&1===e.nodeType)for(;n=i[o++];)r=Z.propFix[n]||n,Z.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!Q.radioValue&&"radio"===t&&Z.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),ot={set:function(e,t,n){return t===!1?Z.removeAttr(e,n):e.setAttribute(n,n),n}},Z.each(Z.expr.match.bool.source.match(/\w+/g),function(e,t){var n=it[t]||Z.find.attr;it[t]=function(e,t,r){var o,i;return r||(i=it[t],it[t]=o,o=null!=n(e,t,r)?t.toLowerCase():null,it[t]=i),o}});var at=/^(?:input|select|textarea|button)$/i;Z.fn.extend({prop:function(e,t){return me(this,Z.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[Z.propFix[e]||e]})}}),Z.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,o,i,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return i=1!==a||!Z.isXMLDoc(e),i&&(t=Z.propFix[t]||t,o=Z.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||at.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),Q.optSelected||(Z.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),Z.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Z.propFix[this.toLowerCase()]=this});var st=/[\t\r\n\f]/g;Z.fn.extend({addClass:function(e){var t,n,r,o,i,a,s="string"==typeof e&&e,u=0,c=this.length;if(Z.isFunction(e))return this.each(function(t){Z(this).addClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match(de)||[];c>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(st," "):" ")){for(i=0;o=t[i++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=Z.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,o,i,a,s=0===arguments.length||"string"==typeof e&&e,u=0,c=this.length;if(Z.isFunction(e))return this.each(function(t){Z(this).removeClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match(de)||[];c>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(st," "):"")){for(i=0;o=t[i++];)for(;r.indexOf(" "+o+" ")>=0;)r=r.replace(" "+o+" "," ");a=e?Z.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):this.each(Z.isFunction(e)?function(n){Z(this).toggleClass(e.call(this,n,this.className,t),t)}:function(){if("string"===n)for(var t,r=0,o=Z(this),i=e.match(de)||[];t=i[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else(n===Se||"boolean"===n)&&(this.className&&ge.set(this,"__className__",this.className),this.className=this.className||e===!1?"":ge.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(st," ").indexOf(t)>=0)return!0;return!1}});var ut=/\r/g;Z.fn.extend({val:function(e){var t,n,r,o=this[0];{if(arguments.length)return r=Z.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=r?e.call(this,n,Z(this).val()):e,null==o?o="":"number"==typeof o?o+="":Z.isArray(o)&&(o=Z.map(o,function(e){return null==e?"":e+""})),t=Z.valHooks[this.type]||Z.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))});if(o)return t=Z.valHooks[o.type]||Z.valHooks[o.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(ut,""):null==n?"":n)}}}),Z.extend({valHooks:{option:{get:function(e){var t=Z.find.attr(e,"value");return null!=t?t:Z.trim(Z.text(e))}},select:{get:function(e){for(var t,n,r=e.options,o=e.selectedIndex,i="select-one"===e.type||0>o,a=i?null:[],s=i?o+1:r.length,u=0>o?s:i?o:0;s>u;u++)if(n=r[u],!(!n.selected&&u!==o||(Q.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&Z.nodeName(n.parentNode,"optgroup"))){if(t=Z(n).val(),i)return t;a.push(t)}return a},set:function(e,t){for(var n,r,o=e.options,i=Z.makeArray(t),a=o.length;a--;)r=o[a],(r.selected=Z.inArray(r.value,i)>=0)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),Z.each(["radio","checkbox"],function(){Z.valHooks[this]={set:function(e,t){return Z.isArray(t)?e.checked=Z.inArray(Z(e).val(),t)>=0:void 0}},Q.checkOn||(Z.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),Z.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,t){Z.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),Z.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},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,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var ct=Z.now(),lt=/\?/;Z.parseJSON=function(e){return JSON.parse(e+"")},Z.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(r){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&Z.error("Invalid XML: "+e),t};var ft=/#.*$/,pt=/([?&])_=[^&]*/,dt=/^(.*?):[ \t]*([^\r\n]*)$/gm,ht=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,vt=/^(?:GET|HEAD)$/,mt=/^\/\//,gt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,yt={},bt={},wt="*/".concat("*"),xt=e.location.href,Ct=gt.exec(xt.toLowerCase())||[];Z.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt,type:"GET",isLocal:ht.test(Ct[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":Z.parseJSON,"text xml":Z.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?L(L(e,Z.ajaxSettings),t):L(Z.ajaxSettings,e)},ajaxPrefilter:P(yt),ajaxTransport:P(bt),ajax:function(e,t){function n(e,t,n,a){var u,l,g,y,w,C=t;2!==b&&(b=2,s&&clearTimeout(s),r=void 0,i=a||"",x.readyState=e>0?4:0,u=e>=200&&300>e||304===e,n&&(y=_(f,x,n)),y=I(f,y,x,u),u?(f.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(Z.lastModified[o]=w),w=x.getResponseHeader("etag"),w&&(Z.etag[o]=w)),204===e||"HEAD"===f.type?C="nocontent":304===e?C="notmodified":(C=y.state,l=y.data,g=y.error,u=!g)):(g=C,(e||!C)&&(C="error",0>e&&(e=0))),x.status=e,x.statusText=(t||C)+"",u?h.resolveWith(p,[l,C,x]):h.rejectWith(p,[x,C,g]),x.statusCode(m),m=void 0,c&&d.trigger(u?"ajaxSuccess":"ajaxError",[x,f,u?l:g]),v.fireWith(p,[x,C]),c&&(d.trigger("ajaxComplete",[x,f]),--Z.active||Z.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,o,i,a,s,u,c,l,f=Z.ajaxSetup({},t),p=f.context||f,d=f.context&&(p.nodeType||p.jquery)?Z(p):Z.event,h=Z.Deferred(),v=Z.Callbacks("once memory"),m=f.statusCode||{},g={},y={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!a)for(a={};t=dt.exec(i);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?i:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,g[e]=t),this},overrideMimeType:function(e){return b||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||w;return r&&r.abort(t),n(0,t),this}};if(h.promise(x).complete=v.add,x.success=x.done,x.error=x.fail,f.url=((e||f.url||xt)+"").replace(ft,"").replace(mt,Ct[1]+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=Z.trim(f.dataType||"*").toLowerCase().match(de)||[""],null==f.crossDomain&&(u=gt.exec(f.url.toLowerCase()),f.crossDomain=!(!u||u[1]===Ct[1]&&u[2]===Ct[2]&&(u[3]||("http:"===u[1]?"80":"443"))===(Ct[3]||("http:"===Ct[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=Z.param(f.data,f.traditional)),$(yt,f,t,x),2===b)return x;c=Z.event&&f.global,c&&0===Z.active++&&Z.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!vt.test(f.type),o=f.url,f.hasContent||(f.data&&(o=f.url+=(lt.test(o)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=pt.test(o)?o.replace(pt,"$1_="+ct++):o+(lt.test(o)?"&":"?")+"_="+ct++)),f.ifModified&&(Z.lastModified[o]&&x.setRequestHeader("If-Modified-Since",Z.lastModified[o]),Z.etag[o]&&x.setRequestHeader("If-None-Match",Z.etag[o])),(f.data&&f.hasContent&&f.contentType!==!1||t.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+wt+"; q=0.01":""):f.accepts["*"]);for(l in f.headers)x.setRequestHeader(l,f.headers[l]);if(f.beforeSend&&(f.beforeSend.call(p,x,f)===!1||2===b))return x.abort();w="abort";for(l in{success:1,error:1,complete:1})x[l](f[l]);if(r=$(bt,f,t,x)){x.readyState=1,c&&d.trigger("ajaxSend",[x,f]),f.async&&f.timeout>0&&(s=setTimeout(function(){x.abort("timeout")},f.timeout));try{b=1,r.send(g,n)}catch(C){if(!(2>b))throw C;n(-1,C)}}else n(-1,"No Transport");return x},getJSON:function(e,t,n){return Z.get(e,t,n,"json")},getScript:function(e,t){return Z.get(e,void 0,t,"script")}}),Z.each(["get","post"],function(e,t){Z[t]=function(e,n,r,o){return Z.isFunction(n)&&(o=o||r,r=n,n=void 0),Z.ajax({url:e,type:t,dataType:o,data:n,success:r})}}),Z._evalUrl=function(e){return Z.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},Z.fn.extend({wrapAll:function(e){var t;return Z.isFunction(e)?this.each(function(t){Z(this).wrapAll(e.call(this,t))}):(this[0]&&(t=Z(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return this.each(Z.isFunction(e)?function(t){Z(this).wrapInner(e.call(this,t))}:function(){var t=Z(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=Z.isFunction(e);return this.each(function(n){Z(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){Z.nodeName(this,"body")||Z(this).replaceWith(this.childNodes)}).end()}}),Z.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},Z.expr.filters.visible=function(e){return!Z.expr.filters.hidden(e)};var Tt=/%20/g,kt=/\[\]$/,St=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;Z.param=function(e,t){var n,r=[],o=function(e,t){t=Z.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=Z.ajaxSettings&&Z.ajaxSettings.traditional),Z.isArray(e)||e.jquery&&!Z.isPlainObject(e))Z.each(e,function(){o(this.name,this.value)});else for(n in e)H(n,e[n],t,o);return r.join("&").replace(Tt,"+")},Z.fn.extend({serialize:function(){return Z.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Z.prop(this,"elements");return e?Z.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Z(this).is(":disabled")&&Nt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!ke.test(e))}).map(function(e,t){var n=Z(this).val();return null==n?null:Z.isArray(n)?Z.map(n,function(e){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()}}),Z.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var jt=0,Dt={},At={0:200,1223:204},Ot=Z.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Dt)Dt[e]()}),Q.cors=!!Ot&&"withCredentials"in Ot,Q.ajax=Ot=!!Ot,Z.ajaxTransport(function(e){var t;return Q.cors||Ot&&!e.crossDomain?{send:function(n,r){var o,i=e.xhr(),a=++jt;if(i.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)i[o]=e.xhrFields[o];e.mimeType&&i.overrideMimeType&&i.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(o in n)i.setRequestHeader(o,n[o]);t=function(e){return function(){t&&(delete Dt[a],t=i.onload=i.onerror=null,"abort"===e?i.abort():"error"===e?r(i.status,i.statusText):r(At[i.status]||i.status,i.statusText,"string"==typeof i.responseText?{text:i.responseText}:void 0,i.getAllResponseHeaders()))}},i.onload=t(),i.onerror=t("error"),t=Dt[a]=t("abort");try{i.send(e.hasContent&&e.data||null)}catch(s){if(t)throw s}},abort:function(){t&&t()}}:void 0}),Z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return Z.globalEval(e),e}}}),Z.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Z.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,o){t=Z("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),Y.head.appendChild(t[0])},abort:function(){n&&n()}}}});var qt=[],Mt=/(=)\?(?=&|$)|\?\?/;Z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=qt.pop()||Z.expando+"_"+ct++;return this[e]=!0,e}}),Z.ajaxPrefilter("json jsonp",function(t,n,r){var o,i,a,s=t.jsonp!==!1&&(Mt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Mt.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(o=t.jsonpCallback=Z.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Mt,"$1"+o):t.jsonp!==!1&&(t.url+=(lt.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return a||Z.error(o+" was not called"),a[0]},t.dataTypes[0]="json",i=e[o],e[o]=function(){a=arguments},r.always(function(){e[o]=i,t[o]&&(t.jsonpCallback=n.jsonpCallback,qt.push(o)),a&&Z.isFunction(i)&&i(a[0]),a=i=void 0}),"script"):void 0}),Z.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||Y;var r=ae.exec(e),o=!n&&[];return r?[t.createElement(r[1])]:(r=Z.buildFragment([e],t,o),o&&o.length&&Z(o).remove(),Z.merge([],r.childNodes))};var Bt=Z.fn.load;Z.fn.load=function(e,t,n){if("string"!=typeof e&&Bt)return Bt.apply(this,arguments);var r,o,i,a=this,s=e.indexOf(" ");return s>=0&&(r=Z.trim(e.slice(s)),e=e.slice(0,s)),Z.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&Z.ajax({url:e,type:o,dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?Z("<div>").append(Z.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},Z.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Z.fn[t]=function(e){return this.on(t,e)}}),Z.expr.filters.animated=function(e){return Z.grep(Z.timers,function(t){return e===t.elem}).length};var Pt=e.document.documentElement;Z.offset={setOffset:function(e,t,n){var r,o,i,a,s,u,c,l=Z.css(e,"position"),f=Z(e),p={};"static"===l&&(e.style.position="relative"),s=f.offset(),i=Z.css(e,"top"),u=Z.css(e,"left"),c=("absolute"===l||"fixed"===l)&&(i+u).indexOf("auto")>-1,c?(r=f.position(),a=r.top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(u)||0),Z.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(p.top=t.top-s.top+a),null!=t.left&&(p.left=t.left-s.left+o),"using"in t?t.using.call(e,p):f.css(p)}},Z.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){Z.offset.setOffset(this,e,t)});var t,n,r=this[0],o={top:0,left:0},i=r&&r.ownerDocument;if(i)return t=i.documentElement,Z.contains(t,r)?(typeof r.getBoundingClientRect!==Se&&(o=r.getBoundingClientRect()),n=R(i),{top:o.top+n.pageYOffset-t.clientTop,left:o.left+n.pageXOffset-t.clientLeft}):o},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===Z.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),Z.nodeName(e[0],"html")||(r=e.offset()),r.top+=Z.css(e[0],"borderTopWidth",!0),r.left+=Z.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-Z.css(n,"marginTop",!0),left:t.left-r.left-Z.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Pt;e&&!Z.nodeName(e,"html")&&"static"===Z.css(e,"position");)e=e.offsetParent;return e||Pt})}}),Z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var r="pageYOffset"===n;Z.fn[t]=function(o){return me(this,function(t,o,i){var a=R(t);return void 0===i?a?a[n]:t[o]:void(a?a.scrollTo(r?e.pageXOffset:i,r?i:e.pageYOffset):t[o]=i)},t,o,arguments.length,null)}}),Z.each(["top","left"],function(e,t){Z.cssHooks[t]=C(Q.pixelPosition,function(e,n){return n?(n=x(e,t),Fe.test(n)?Z(e).position()[t]+"px":n):void 0})}),Z.each({Height:"height",Width:"width"},function(e,t){Z.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){Z.fn[r]=function(r,o){var i=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||o===!0?"margin":"border");return me(this,function(t,n,r){var o;return Z.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?Z.css(t,n,a):Z.style(t,n,r,a)},t,i?r:void 0,i,null)}})}),Z.fn.size=function(){return this.length},Z.fn.andSelf=Z.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return Z});var $t=e.jQuery,Lt=e.$;return Z.noConflict=function(t){return e.$===Z&&(e.$=Lt),t&&e.jQuery===Z&&(e.jQuery=$t),Z},typeof t===Se&&(e.jQuery=e.$=Z),Z}),function(e){if("function"==typeof bootstrap)bootstrap("promise",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeQ=e}else Q=e()}(function(){"use strict";function e(e){return function(){return X.apply(e,arguments)}}function t(e){return e===Object(e)}function n(e){return"[object StopIteration]"===te(e)||e instanceof z}function r(e,t){if(H&&t.stack&&"object"==typeof e&&null!==e&&e.stack&&-1===e.stack.indexOf(ne)){for(var n=[],r=t;r;r=r.source)r.stack&&n.unshift(r.stack);n.unshift(e.stack);var i=n.join("\n"+ne+"\n");e.stack=o(i)}}function o(e){for(var t=e.split("\n"),n=[],r=0;r<t.length;++r){var o=t[r];s(o)||i(o)||!o||n.push(o)}return n.join("\n")}function i(e){return-1!==e.indexOf("(module.js:")||-1!==e.indexOf("(node.js:")}function a(e){var t=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e);if(t)return[t[1],Number(t[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(e);if(n)return[n[1],Number(n[2])];var r=/.*@(.+):(\d+)$/.exec(e);return r?[r[1],Number(r[2])]:void 0}function s(e){var t=a(e);if(!t)return!1;var n=t[0],r=t[1];return n===F&&r>=W&&ae>=r}function u(){if(H)try{throw new Error}catch(e){var t=e.stack.split("\n"),n=t[0].indexOf("@")>0?t[1]:t[2],r=a(n);if(!r)return;return F=r[0],r[1]}}function c(e,t,n){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t+" is deprecated, use "+n+" instead.",new Error("").stack),e.apply(e,arguments)}}function l(e){return g(e)?e:y(e)?N(e):E(e)}function f(){function e(e){t=e,i.source=e,K(n,function(t,n){U(function(){e.promiseDispatch.apply(e,n)})},void 0),n=void 0,r=void 0}var t,n=[],r=[],o=G(f.prototype),i=G(h.prototype);if(i.promiseDispatch=function(e,o,i){var a=J(arguments);n?(n.push(a),"when"===o&&i[1]&&r.push(i[1])):U(function(){t.promiseDispatch.apply(t,a)})},i.valueOf=function(){if(n)return i;var e=m(t);return g(e)&&(t=e),e},i.inspect=function(){return t?t.inspect():{state:"pending"}},l.longStackSupport&&H)try{throw new Error}catch(a){i.stack=a.stack.substring(a.stack.indexOf("\n")+1)}return o.promise=i,o.resolve=function(n){t||e(l(n))},o.fulfill=function(n){t||e(E(n))},o.reject=function(n){t||e(S(n))},o.notify=function(e){t||K(r,function(t,n){U(function(){n(e)})},void 0)},o}function p(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=f();try{e(t.resolve,t.reject,t.notify)}catch(n){t.reject(n)}return t.promise}function d(e){return p(function(t,n){for(var r=0,o=e.length;o>r;r++)l(e[r]).then(t,n)})}function h(e,t,n){void 0===t&&(t=function(e){return S(new Error("Promise does not support operation: "+e))}),void 0===n&&(n=function(){return{state:"unknown"}});var r=G(h.prototype);if(r.promiseDispatch=function(n,o,i){var a;try{a=e[o]?e[o].apply(r,i):t.call(r,o,i)}catch(s){a=S(s)}n&&n(a)},r.inspect=n,n){var o=n();"rejected"===o.state&&(r.exception=o.reason),r.valueOf=function(){var e=n();return"pending"===e.state||"rejected"===e.state?r:e.value}}return r}function v(e,t,n,r){return l(e).then(t,n,r)}function m(e){if(g(e)){var t=e.inspect();if("fulfilled"===t.state)return t.value}return e}function g(e){return t(e)&&"function"==typeof e.promiseDispatch&&"function"==typeof e.inspect}function y(e){return t(e)&&"function"==typeof e.then}function b(e){return g(e)&&"pending"===e.inspect().state}function w(e){return!g(e)||"fulfilled"===e.inspect().state}function x(e){return g(e)&&"rejected"===e.inspect().state}function C(){re.length=0,oe.length=0,ie||(ie=!0)}function T(e,t){ie&&(oe.push(e),re.push(t&&"undefined"!=typeof t.stack?t.stack:"(no stack) "+t))}function k(e){if(ie){var t=Q(oe,e);-1!==t&&(oe.splice(t,1),re.splice(t,1))}}function S(e){var t=h({when:function(t){return t&&k(this),t?t(e):this}},function(){return this},function(){return{state:"rejected",reason:e}});return T(t,e),t}function E(e){return h({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},"delete":function(t){delete e[t]},post:function(t,n){return null===t||void 0===t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return ee(e)}},void 0,function(){return{state:"fulfilled",value:e}})}function N(e){var t=f();return U(function(){try{e.then(t.resolve,t.reject,t.notify)}catch(n){t.reject(n)}}),t.promise}function j(e){return h({isDef:function(){}},function(t,n){return B(e,t,n)},function(){return l(e).inspect()})}function D(e,t,n){return l(e).spread(t,n)}function A(e){return function(){function t(e,t){var a;if("undefined"==typeof StopIteration){try{a=r[e](t)}catch(s){return S(s)}return a.done?a.value:v(a.value,o,i)}try{a=r[e](t)}catch(s){return n(s)?s.value:S(s)}return v(a,o,i)}var r=e.apply(this,arguments),o=t.bind(t,"next"),i=t.bind(t,"throw");return o()}}function O(e){l.done(l.async(e)())}function q(e){throw new z(e)}function M(e){return function(){return D([this,P(arguments)],function(t,n){return e.apply(t,n)})}}function B(e,t,n){return l(e).dispatch(t,n)}function P(e){return v(e,function(e){var t=0,n=f();return K(e,function(r,o,i){var a;g(o)&&"fulfilled"===(a=o.inspect()).state?e[i]=a.value:(++t,v(o,function(r){e[i]=r,0===--t&&n.resolve(e)},n.reject,function(e){n.notify({index:i,value:e})}))},void 0),0===t&&n.resolve(e),n.promise})}function $(e){return v(e,function(e){return e=Y(e,l),v(P(Y(e,function(e){return v(e,V,V)})),function(){return e})})}function L(e){return l(e).allSettled()}function _(e,t){return l(e).then(void 0,void 0,t)}function I(e,t){return l(e).nodeify(t)}var H=!1;try{throw new Error}catch(R){H=!!R.stack}var F,z,W=u(),V=function(){},U=function(){function e(){for(;t.next;){t=t.next;var n=t.task;t.task=void 0;var o=t.domain;o&&(t.domain=void 0,o.enter());try{n()}catch(a){if(i)throw o&&o.exit(),setTimeout(e,0),o&&o.enter(),a;setTimeout(function(){throw a},0)}o&&o.exit()}r=!1}var t={task:void 0,next:null},n=t,r=!1,o=void 0,i=!1;if(U=function(e){n=n.next={task:e,domain:i&&process.domain,next:null},r||(r=!0,o())},"undefined"!=typeof process&&process.nextTick)i=!0,o=function(){process.nextTick(e)};else if("function"==typeof setImmediate)o="undefined"!=typeof window?setImmediate.bind(window,e):function(){setImmediate(e)};else if("undefined"!=typeof MessageChannel){var a=new MessageChannel;a.port1.onmessage=function(){o=s,a.port1.onmessage=e,e()};var s=function(){a.port2.postMessage(0)};o=function(){setTimeout(e,0),s()}}else o=function(){setTimeout(e,0)};return U}(),X=Function.call,J=e(Array.prototype.slice),K=e(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;r>n;n++)n in this&&(t=e(t,this[n],n));return t}),Q=e(Array.prototype.indexOf||function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return t;return-1}),Y=e(Array.prototype.map||function(e,t){var n=this,r=[];return K(n,function(o,i,a){r.push(e.call(t,i,a,n))},void 0),r}),G=Object.create||function(e){function t(){}return t.prototype=e,new t},Z=e(Object.prototype.hasOwnProperty),ee=Object.keys||function(e){var t=[];for(var n in e)Z(e,n)&&t.push(n);return t},te=e(Object.prototype.toString);z="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e};var ne="From previous event:";l.resolve=l,l.nextTick=U,l.longStackSupport=!1,l.defer=f,f.prototype.makeNodeResolver=function(){var e=this;return function(t,n){t?e.reject(t):e.resolve(arguments.length>2?J(arguments,1):n)}},l.Promise=p,l.promise=p,p.race=d,p.all=P,p.reject=S,p.resolve=l,l.passByCopy=function(e){return e},h.prototype.passByCopy=function(){return this},l.join=function(e,t){return l(e).join(t)},h.prototype.join=function(e){return l([this,e]).spread(function(e,t){if(e===t)return e;throw new Error("Can't join: not the same: "+e+" "+t)})},l.race=d,h.prototype.race=function(){return this.then(l.race)},l.makePromise=h,h.prototype.toString=function(){return"[object Promise]"},h.prototype.then=function(e,t,n){function o(t){try{return"function"==typeof e?e(t):t}catch(n){return S(n)}}function i(e){if("function"==typeof t){r(e,s);try{return t(e)}catch(n){return S(n)}}return S(e)}function a(e){return"function"==typeof n?n(e):e}var s=this,u=f(),c=!1;return U(function(){s.promiseDispatch(function(e){c||(c=!0,u.resolve(o(e)))},"when",[function(e){c||(c=!0,u.resolve(i(e)))}])}),s.promiseDispatch(void 0,"when",[void 0,function(e){var t,n=!1;try{t=a(e)}catch(r){if(n=!0,!l.onerror)throw r;l.onerror(r)}n||u.notify(t)}]),u.promise},l.when=v,h.prototype.thenResolve=function(e){return this.then(function(){return e})},l.thenResolve=function(e,t){return l(e).thenResolve(t)},h.prototype.thenReject=function(e){return this.then(function(){throw e})},l.thenReject=function(e,t){return l(e).thenReject(t)},l.nearer=m,l.isPromise=g,l.isPromiseAlike=y,l.isPending=b,h.prototype.isPending=function(){return"pending"===this.inspect().state},l.isFulfilled=w,h.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},l.isRejected=x,h.prototype.isRejected=function(){return"rejected"===this.inspect().state};var re=[],oe=[],ie=!0;l.resetUnhandledRejections=C,l.getUnhandledReasons=function(){return re.slice()},l.stopUnhandledRejectionTracking=function(){C(),ie=!1},C(),l.reject=S,l.fulfill=E,l.master=j,l.spread=D,h.prototype.spread=function(e,t){return this.all().then(function(t){return e.apply(void 0,t)},t)},l.async=A,l.spawn=O,l["return"]=q,l.promised=M,l.dispatch=B,h.prototype.dispatch=function(e,t){var n=this,r=f();return U(function(){n.promiseDispatch(r.resolve,e,t)}),r.promise},l.get=function(e,t){return l(e).dispatch("get",[t])},h.prototype.get=function(e){return this.dispatch("get",[e])},l.set=function(e,t,n){return l(e).dispatch("set",[t,n])},h.prototype.set=function(e,t){return this.dispatch("set",[e,t])},l.del=l["delete"]=function(e,t){return l(e).dispatch("delete",[t])},h.prototype.del=h.prototype["delete"]=function(e){return this.dispatch("delete",[e])},l.mapply=l.post=function(e,t,n){return l(e).dispatch("post",[t,n])},h.prototype.mapply=h.prototype.post=function(e,t){return this.dispatch("post",[e,t])},l.send=l.mcall=l.invoke=function(e,t){return l(e).dispatch("post",[t,J(arguments,2)])},h.prototype.send=h.prototype.mcall=h.prototype.invoke=function(e){return this.dispatch("post",[e,J(arguments,1)])},l.fapply=function(e,t){return l(e).dispatch("apply",[void 0,t])},h.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},l["try"]=l.fcall=function(e){return l(e).dispatch("apply",[void 0,J(arguments,1)])},h.prototype.fcall=function(){return this.dispatch("apply",[void 0,J(arguments)])},l.fbind=function(e){var t=l(e),n=J(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(J(arguments))])}},h.prototype.fbind=function(){var e=this,t=J(arguments);return function(){return e.dispatch("apply",[this,t.concat(J(arguments))])}},l.keys=function(e){return l(e).dispatch("keys",[])},h.prototype.keys=function(){return this.dispatch("keys",[])},l.all=P,h.prototype.all=function(){return P(this)},l.allResolved=c($,"allResolved","allSettled"),h.prototype.allResolved=function(){return $(this)},l.allSettled=L,h.prototype.allSettled=function(){return this.then(function(e){return P(Y(e,function(e){function t(){return e.inspect()}return e=l(e),e.then(t,t)}))})},l.fail=l["catch"]=function(e,t){return l(e).then(void 0,t)},h.prototype.fail=h.prototype["catch"]=function(e){return this.then(void 0,e)},l.progress=_,h.prototype.progress=function(e){return this.then(void 0,void 0,e)},l.fin=l["finally"]=function(e,t){return l(e)["finally"](t)},h.prototype.fin=h.prototype["finally"]=function(e){return e=l(e),this.then(function(t){return e.fcall().then(function(){return t})},function(t){return e.fcall().then(function(){throw t})})},l.done=function(e,t,n,r){return l(e).done(t,n,r)},h.prototype.done=function(e,t,n){var o=function(e){
  U(function(){if(r(e,i),!l.onerror)throw e;l.onerror(e)})},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(o=process.domain.bind(o)),i.then(void 0,o)},l.timeout=function(e,t,n){return l(e).timeout(t,n)},h.prototype.timeout=function(e,t){var n=f(),r=setTimeout(function(){n.reject(new Error(t||"Timed out after "+e+" ms"))},e);return this.then(function(e){clearTimeout(r),n.resolve(e)},function(e){clearTimeout(r),n.reject(e)},n.notify),n.promise},l.delay=function(e,t){return void 0===t&&(t=e,e=void 0),l(e).delay(t)},h.prototype.delay=function(e){return this.then(function(t){var n=f();return setTimeout(function(){n.resolve(t)},e),n.promise})},l.nfapply=function(e,t){return l(e).nfapply(t)},h.prototype.nfapply=function(e){var t=f(),n=J(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},l.nfcall=function(e){var t=J(arguments,1);return l(e).nfapply(t)},h.prototype.nfcall=function(){var e=J(arguments),t=f();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},l.nfbind=l.denodeify=function(e){var t=J(arguments,1);return function(){var n=t.concat(J(arguments)),r=f();return n.push(r.makeNodeResolver()),l(e).fapply(n).fail(r.reject),r.promise}},h.prototype.nfbind=h.prototype.denodeify=function(){var e=J(arguments);return e.unshift(this),l.denodeify.apply(void 0,e)},l.nbind=function(e,t){var n=J(arguments,2);return function(){function r(){return e.apply(t,arguments)}var o=n.concat(J(arguments)),i=f();return o.push(i.makeNodeResolver()),l(r).fapply(o).fail(i.reject),i.promise}},h.prototype.nbind=function(){var e=J(arguments,0);return e.unshift(this),l.nbind.apply(void 0,e)},l.nmapply=l.npost=function(e,t,n){return l(e).npost(t,n)},h.prototype.nmapply=h.prototype.npost=function(e,t){var n=J(t||[]),r=f();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},l.nsend=l.nmcall=l.ninvoke=function(e,t){var n=J(arguments,2),r=f();return n.push(r.makeNodeResolver()),l(e).dispatch("post",[t,n]).fail(r.reject),r.promise},h.prototype.nsend=h.prototype.nmcall=h.prototype.ninvoke=function(e){var t=J(arguments,1),n=f();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},l.nodeify=I,h.prototype.nodeify=function(e){return e?void this.then(function(t){U(function(){e(null,t)})},function(t){U(function(){e(t)})}):this};var ae=u();return l}),function(){!function(e){var t=this||(0,eval)("this"),n=t.document,r=t.navigator,o=t.jQuery,i=t.JSON;!function(e){"function"==typeof define&&define.amd?define(["exports","require"],e):e("function"==typeof require&&"object"==typeof exports&&"object"==typeof module?module.exports||exports:t.ko={})}(function(a,s){function u(e,t){return null===e||typeof e in d?e===t:!1}function c(t,n){var r;return function(){r||(r=setTimeout(function(){r=e,t()},n))}}function l(e,t){var n;return function(){clearTimeout(n),n=setTimeout(e,t)}}function f(e,t,n,r){p.d[e]={init:function(e,o,i,a,s){var u,c;return p.w(function(){var i=p.a.c(o()),a=!n!=!i,l=!c;(l||t||a!==u)&&(l&&p.Z.oa()&&(c=p.a.la(p.e.childNodes(e),!0)),a?(l||p.e.T(e,p.a.la(c)),p.Ja(r?r(s,i):s,e)):p.e.ma(e),u=a)},null,{q:e}),{controlsDescendantBindings:!0}}},p.h.ka[e]=!1,p.e.R[e]=!0}var p="undefined"!=typeof a?a:{};p.b=function(e,t){for(var n=e.split("."),r=p,o=0;o<n.length-1;o++)r=r[n[o]];r[n[n.length-1]]=t},p.D=function(e,t,n){e[t]=n},p.version="3.3.0",p.b("version",p.version),p.a=function(){function a(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}function s(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function u(e,t){return e.__proto__=t,e}function c(e,t,n,r){var o=e[t].match(m)||[];p.a.o(n.match(m),function(e){p.a.ga(o,e,r)}),e[t]=o.join(" ")}var l={__proto__:[]}instanceof Array,f={},d={};f[r&&/Firefox\/2/i.test(r.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],f.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),a(f,function(e,t){if(t.length)for(var n=0,r=t.length;r>n;n++)d[t[n]]=e});var h={propertychange:!0},v=n&&function(){for(var t=3,r=n.createElement("div"),o=r.getElementsByTagName("i");r.innerHTML="<!--[if gt IE "+ ++t+"]><i></i><![endif]-->",o[0];);return t>4?t:e}(),m=/\S+/g;return{Bb:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],o:function(e,t){for(var n=0,r=e.length;r>n;n++)t(e[n],n)},m:function(e,t){if("function"==typeof Array.prototype.indexOf)return Array.prototype.indexOf.call(e,t);for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},vb:function(e,t,n){for(var r=0,o=e.length;o>r;r++)if(t.call(n,e[r],r))return e[r];return null},ya:function(e,t){var n=p.a.m(e,t);n>0?e.splice(n,1):0===n&&e.shift()},wb:function(e){e=e||[];for(var t=[],n=0,r=e.length;r>n;n++)0>p.a.m(t,e[n])&&t.push(e[n]);return t},Ka:function(e,t){e=e||[];for(var n=[],r=0,o=e.length;o>r;r++)n.push(t(e[r],r));return n},xa:function(e,t){e=e||[];for(var n=[],r=0,o=e.length;o>r;r++)t(e[r],r)&&n.push(e[r]);return n},ia:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var n=0,r=t.length;r>n;n++)e.push(t[n]);return e},ga:function(e,t,n){var r=p.a.m(p.a.cb(e),t);0>r?n&&e.push(t):n||e.splice(r,1)},za:l,extend:s,Fa:u,Ga:l?u:s,A:a,pa:function(e,t){if(!e)return e;var n,r={};for(n in e)e.hasOwnProperty(n)&&(r[n]=t(e[n],n,e));return r},Ra:function(e){for(;e.firstChild;)p.removeNode(e.firstChild)},Jb:function(e){e=p.a.O(e);for(var t=(e[0]&&e[0].ownerDocument||n).createElement("div"),r=0,o=e.length;o>r;r++)t.appendChild(p.S(e[r]));return t},la:function(e,t){for(var n=0,r=e.length,o=[];r>n;n++){var i=e[n].cloneNode(!0);o.push(t?p.S(i):i)}return o},T:function(e,t){if(p.a.Ra(e),t)for(var n=0,r=t.length;r>n;n++)e.appendChild(t[n])},Qb:function(e,t){var n=e.nodeType?[e]:e;if(0<n.length){for(var r=n[0],o=r.parentNode,i=0,a=t.length;a>i;i++)o.insertBefore(t[i],r);for(i=0,a=n.length;a>i;i++)p.removeNode(n[i])}},na:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);if(1<e.length){var n=e[0],r=e[e.length-1];for(e.length=0;n!==r;)if(e.push(n),n=n.nextSibling,!n)return;e.push(r)}}return e},Sb:function(e,t){7>v?e.setAttribute("selected",t):e.selected=t},ib:function(t){return null===t||t===e?"":t.trim?t.trim():t.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Dc:function(e,t){return e=e||"",t.length>e.length?!1:e.substring(0,t.length)===t},jc:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(3===e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},Qa:function(e){return p.a.jc(e,e.ownerDocument.documentElement)},tb:function(e){return!!p.a.vb(e,p.a.Qa)},v:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},n:function(e,t,n){var r=v&&h[t];if(!r&&o)o(e).bind(t,n);else if(r||"function"!=typeof e.addEventListener){if("undefined"==typeof e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var i=function(t){n.call(e,t)},a="on"+t;e.attachEvent(a,i),p.a.C.fa(e,function(){e.detachEvent(a,i)})}else e.addEventListener(t,n,!1)},qa:function(e,r){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var i;if("input"===p.a.v(e)&&e.type&&"click"==r.toLowerCase()?(i=e.type,i="checkbox"==i||"radio"==i):i=!1,o&&!i)o(e).trigger(r);else if("function"==typeof n.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");i=n.createEvent(d[r]||"HTMLEvents"),i.initEvent(r,!0,!0,t,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(i)}else if(i&&e.click)e.click();else{if("undefined"==typeof e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+r)}},c:function(e){return p.F(e)?e():e},cb:function(e){return p.F(e)?e.B():e},Ia:function(e,t,n){var r;t&&("object"==typeof e.classList?(r=e.classList[n?"add":"remove"],p.a.o(t.match(m),function(t){r.call(e.classList,t)})):"string"==typeof e.className.baseVal?c(e.className,"baseVal",t,n):c(e,"className",t,n))},Ha:function(t,n){var r=p.a.c(n);(null===r||r===e)&&(r="");var o=p.e.firstChild(t);!o||3!=o.nodeType||p.e.nextSibling(o)?p.e.T(t,[t.ownerDocument.createTextNode(r)]):o.data=r,p.a.mc(t)},Rb:function(e,t){if(e.name=t,7>=v)try{e.mergeAttributes(n.createElement("<input name='"+e.name+"'/>"),!1)}catch(r){}},mc:function(e){v>=9&&(e=1==e.nodeType?e:e.parentNode,e.style&&(e.style.zoom=e.style.zoom))},kc:function(e){if(v){var t=e.style.width;e.style.width=0,e.style.width=t}},Bc:function(e,t){e=p.a.c(e),t=p.a.c(t);for(var n=[],r=e;t>=r;r++)n.push(r);return n},O:function(e){for(var t=[],n=0,r=e.length;r>n;n++)t.push(e[n]);return t},Hc:6===v,Ic:7===v,M:v,Db:function(e,t){for(var n=p.a.O(e.getElementsByTagName("input")).concat(p.a.O(e.getElementsByTagName("textarea"))),r="string"==typeof t?function(e){return e.name===t}:function(e){return t.test(e.name)},o=[],i=n.length-1;i>=0;i--)r(n[i])&&o.push(n[i]);return o},yc:function(e){return"string"==typeof e&&(e=p.a.ib(e))?i&&i.parse?i.parse(e):new Function("return "+e)():null},jb:function(e,t,n){if(!i||!i.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return i.stringify(p.a.c(e),t,n)},zc:function(e,t,r){r=r||{};var o=r.params||{},i=r.includeFields||this.Bb,s=e;if("object"==typeof e&&"form"===p.a.v(e))for(var s=e.action,u=i.length-1;u>=0;u--)for(var c=p.a.Db(e,i[u]),l=c.length-1;l>=0;l--)o[c[l].name]=c[l].value;t=p.a.c(t);var f=n.createElement("form");f.style.display="none",f.action=s,f.method="post";for(var d in t)e=n.createElement("input"),e.type="hidden",e.name=d,e.value=p.a.jb(p.a.c(t[d])),f.appendChild(e);a(o,function(e,t){var r=n.createElement("input");r.type="hidden",r.name=e,r.value=t,f.appendChild(r)}),n.body.appendChild(f),r.submitter?r.submitter(f):f.submit(),setTimeout(function(){f.parentNode.removeChild(f)},0)}}}(),p.b("utils",p.a),p.b("utils.arrayForEach",p.a.o),p.b("utils.arrayFirst",p.a.vb),p.b("utils.arrayFilter",p.a.xa),p.b("utils.arrayGetDistinctValues",p.a.wb),p.b("utils.arrayIndexOf",p.a.m),p.b("utils.arrayMap",p.a.Ka),p.b("utils.arrayPushAll",p.a.ia),p.b("utils.arrayRemoveItem",p.a.ya),p.b("utils.extend",p.a.extend),p.b("utils.fieldsIncludedWithJsonPost",p.a.Bb),p.b("utils.getFormFields",p.a.Db),p.b("utils.peekObservable",p.a.cb),p.b("utils.postJson",p.a.zc),p.b("utils.parseJson",p.a.yc),p.b("utils.registerEventHandler",p.a.n),p.b("utils.stringifyJson",p.a.jb),p.b("utils.range",p.a.Bc),p.b("utils.toggleDomNodeCssClass",p.a.Ia),p.b("utils.triggerEvent",p.a.qa),p.b("utils.unwrapObservable",p.a.c),p.b("utils.objectForEach",p.a.A),p.b("utils.addOrRemoveItem",p.a.ga),p.b("utils.setTextContent",p.a.Ha),p.b("unwrap",p.a.c),Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if(1===arguments.length)return function(){return t.apply(e,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){var r=n.slice(0);return r.push.apply(r,arguments),t.apply(e,r)}}),p.a.f=new function(){function t(t,i){var a=t[r];if(!a||"null"===a||!o[a]){if(!i)return e;a=t[r]="ko"+n++,o[a]={}}return o[a]}var n=0,r="__ko__"+(new Date).getTime(),o={};return{get:function(n,r){var o=t(n,!1);return o===e?e:o[r]},set:function(n,r,o){(o!==e||t(n,!1)!==e)&&(t(n,!0)[r]=o)},clear:function(e){var t=e[r];return t?(delete o[t],e[r]=null,!0):!1},I:function(){return n++ +r}}},p.b("utils.domData",p.a.f),p.b("utils.domData.clear",p.a.f.clear),p.a.C=new function(){function t(t,n){var o=p.a.f.get(t,r);return o===e&&n&&(o=[],p.a.f.set(t,r,o)),o}function n(e){var r=t(e,!1);if(r)for(var r=r.slice(0),o=0;o<r.length;o++)r[o](e);if(p.a.f.clear(e),p.a.C.cleanExternalData(e),a[e.nodeType])for(r=e.firstChild;e=r;)r=e.nextSibling,8===e.nodeType&&n(e)}var r=p.a.f.I(),i={1:!0,8:!0,9:!0},a={1:!0,9:!0};return{fa:function(e,n){if("function"!=typeof n)throw Error("Callback must be a function");t(e,!0).push(n)},Pb:function(n,o){var i=t(n,!1);i&&(p.a.ya(i,o),0==i.length&&p.a.f.set(n,r,e))},S:function(e){if(i[e.nodeType]&&(n(e),a[e.nodeType])){var t=[];p.a.ia(t,e.getElementsByTagName("*"));for(var r=0,o=t.length;o>r;r++)n(t[r])}return e},removeNode:function(e){p.S(e),e.parentNode&&e.parentNode.removeChild(e)},cleanExternalData:function(e){o&&"function"==typeof o.cleanData&&o.cleanData([e])}}},p.S=p.a.C.S,p.removeNode=p.a.C.removeNode,p.b("cleanNode",p.S),p.b("removeNode",p.removeNode),p.b("utils.domNodeDisposal",p.a.C),p.b("utils.domNodeDisposal.addDisposeCallback",p.a.C.fa),p.b("utils.domNodeDisposal.removeDisposeCallback",p.a.C.Pb),function(){p.a.ca=function(e,r){var i;if(o){if(o.parseHTML)i=o.parseHTML(e,r)||[];else if((i=o.clean([e],r))&&i[0]){for(var a=i[0];a.parentNode&&11!==a.parentNode.nodeType;)a=a.parentNode;a.parentNode&&a.parentNode.removeChild(a)}}else{(a=r)||(a=n),i=a.parentWindow||a.defaultView||t;var s=p.a.ib(e).toLowerCase(),a=a.createElement("div"),s=s.match(/^<(thead|tbody|tfoot)/)&&[1,"<table>","</table>"]||!s.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!s.indexOf("<td")||!s.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||[0,"",""],u="ignored<div>"+s[1]+e+s[2]+"</div>";for("function"==typeof i.innerShiv?a.appendChild(i.innerShiv(u)):a.innerHTML=u;s[0]--;)a=a.lastChild;i=p.a.O(a.lastChild.childNodes)}return i},p.a.gb=function(t,n){if(p.a.Ra(t),n=p.a.c(n),null!==n&&n!==e)if("string"!=typeof n&&(n=n.toString()),o)o(t).html(n);else for(var r=p.a.ca(n,t.ownerDocument),i=0;i<r.length;i++)t.appendChild(r[i])}}(),p.b("utils.parseHtmlFragment",p.a.ca),p.b("utils.setHtml",p.a.gb),p.H=function(){function t(e,n){if(e)if(8==e.nodeType){var r=p.H.Lb(e.nodeValue);null!=r&&n.push({ic:e,wc:r})}else if(1==e.nodeType)for(var r=0,o=e.childNodes,i=o.length;i>r;r++)t(o[r],n)}var n={};return{$a:function(e){if("function"!=typeof e)throw Error("You can only pass a function to ko.memoization.memoize()");var t=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return n[t]=e,"<!--[ko_memo:"+t+"]-->"},Wb:function(t,r){var o=n[t];if(o===e)throw Error("Couldn't find any memo with ID "+t+". Perhaps it's already been unmemoized.");try{return o.apply(null,r||[]),!0}finally{delete n[t]}},Xb:function(e,n){var r=[];t(e,r);for(var o=0,i=r.length;i>o;o++){var a=r[o].ic,s=[a];n&&p.a.ia(s,n),p.H.Wb(r[o].wc,s),a.nodeValue="",a.parentNode&&a.parentNode.removeChild(a)}},Lb:function(e){return(e=e.match(/^\[ko_memo\:(.*?)\]$/))?e[1]:null}}}(),p.b("memoization",p.H),p.b("memoization.memoize",p.H.$a),p.b("memoization.unmemoize",p.H.Wb),p.b("memoization.parseMemoText",p.H.Lb),p.b("memoization.unmemoizeDomNodeAndDescendants",p.H.Xb),p.Sa={throttle:function(e,t){e.throttleEvaluation=t;var n=null;return p.j({read:e,write:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}})},rateLimit:function(e,t){var n,r,o;"number"==typeof t?n=t:(n=t.timeout,r=t.method),o="notifyWhenChangesStop"==r?l:c,e.Za(function(e){return o(e,n)})},notify:function(e,t){e.equalityComparer="always"==t?null:u}};var d={undefined:1,"boolean":1,number:1,string:1};p.b("extenders",p.Sa),p.Ub=function(e,t,n){this.da=e,this.La=t,this.hc=n,this.Gb=!1,p.D(this,"dispose",this.p)},p.Ub.prototype.p=function(){this.Gb=!0,this.hc()},p.Q=function(){p.a.Ga(this,p.Q.fn),this.G={},this.rb=1};var h={U:function(e,t,n){var r=this;n=n||"change";var o=new p.Ub(r,t?e.bind(t):e,function(){p.a.ya(r.G[n],o),r.ua&&r.ua(n)});return r.ja&&r.ja(n),r.G[n]||(r.G[n]=[]),r.G[n].push(o),o},notifySubscribers:function(e,t){if(t=t||"change","change"===t&&this.Yb(),this.Ba(t))try{p.k.xb();for(var n,r=this.G[t].slice(0),o=0;n=r[o];++o)n.Gb||n.La(e)}finally{p.k.end()}},Aa:function(){return this.rb},pc:function(e){return this.Aa()!==e},Yb:function(){++this.rb},Za:function(e){var t,n,r,o=this,i=p.F(o);o.ta||(o.ta=o.notifySubscribers,o.notifySubscribers=function(e,t){t&&"change"!==t?"beforeChange"===t?o.pb(e):o.ta(e,t):o.qb(e)});var a=e(function(){i&&r===o&&(r=o()),t=!1,o.Wa(n,r)&&o.ta(n=r)});o.qb=function(e){t=!0,r=e,a()},o.pb=function(e){t||(n=e,o.ta(e,"beforeChange"))}},Ba:function(e){return this.G[e]&&this.G[e].length},nc:function(e){if(e)return this.G[e]&&this.G[e].length||0;var t=0;return p.a.A(this.G,function(e,n){t+=n.length}),t},Wa:function(e,t){return!this.equalityComparer||!this.equalityComparer(e,t)},extend:function(e){var t=this;return e&&p.a.A(e,function(e,n){var r=p.Sa[e];"function"==typeof r&&(t=r(t,n)||t)}),t}};p.D(h,"subscribe",h.U),p.D(h,"extend",h.extend),p.D(h,"getSubscriptionsCount",h.nc),p.a.za&&p.a.Fa(h,Function.prototype),p.Q.fn=h,p.Hb=function(e){return null!=e&&"function"==typeof e.U&&"function"==typeof e.notifySubscribers},p.b("subscribable",p.Q),p.b("isSubscribable",p.Hb),p.Z=p.k=function(){function e(e){r.push(n),n=e}function t(){n=r.pop()}var n,r=[],o=0;return{xb:e,end:t,Ob:function(e){if(n){if(!p.Hb(e))throw Error("Only subscribable things can act as dependencies");n.La(e,e.ac||(e.ac=++o))}},u:function(n,r,o){try{return e(),n.apply(r,o||[])}finally{t()}},oa:function(){return n?n.w.oa():void 0},Ca:function(){return n?n.Ca:void 0}}}(),p.b("computedContext",p.Z),p.b("computedContext.getDependenciesCount",p.Z.oa),p.b("computedContext.isInitial",p.Z.Ca),p.b("computedContext.isSleeping",p.Z.Jc),p.b("ignoreDependencies",p.Gc=p.k.u),p.r=function(e){function t(){return 0<arguments.length?(t.Wa(n,arguments[0])&&(t.X(),n=arguments[0],t.W()),this):(p.k.Ob(t),n)}var n=e;return p.Q.call(t),p.a.Ga(t,p.r.fn),t.B=function(){return n},t.W=function(){t.notifySubscribers(n)},t.X=function(){t.notifySubscribers(n,"beforeChange")},p.D(t,"peek",t.B),p.D(t,"valueHasMutated",t.W),p.D(t,"valueWillMutate",t.X),t},p.r.fn={equalityComparer:u};var v=p.r.Ac="__ko_proto__";p.r.fn[v]=p.r,p.a.za&&p.a.Fa(p.r.fn,p.Q.fn),p.Ta=function(t,n){return null===t||t===e||t[v]===e?!1:t[v]===n?!0:p.Ta(t[v],n)},p.F=function(e){return p.Ta(e,p.r)},p.Da=function(e){return"function"==typeof e&&e[v]===p.r||"function"==typeof e&&e[v]===p.j&&e.qc?!0:!1},p.b("observable",p.r),p.b("isObservable",p.F),p.b("isWriteableObservable",p.Da),p.b("isWritableObservable",p.Da),p.ba=function(e){if(e=e||[],"object"!=typeof e||!("length"in e))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return e=p.r(e),p.a.Ga(e,p.ba.fn),e.extend({trackArrayChanges:!0})},p.ba.fn={remove:function(e){for(var t=this.B(),n=[],r="function"!=typeof e||p.F(e)?function(t){return t===e}:e,o=0;o<t.length;o++){var i=t[o];r(i)&&(0===n.length&&this.X(),n.push(i),t.splice(o,1),o--)}return n.length&&this.W(),n},removeAll:function(t){if(t===e){var n=this.B(),r=n.slice(0);return this.X(),n.splice(0,n.length),this.W(),r}return t?this.remove(function(e){return 0<=p.a.m(t,e)}):[]},destroy:function(e){var t=this.B(),n="function"!=typeof e||p.F(e)?function(t){return t===e}:e;this.X();for(var r=t.length-1;r>=0;r--)n(t[r])&&(t[r]._destroy=!0);this.W()},destroyAll:function(t){return t===e?this.destroy(function(){return!0}):t?this.destroy(function(e){return 0<=p.a.m(t,e)}):[]},indexOf:function(e){var t=this();return p.a.m(t,e)},replace:function(e,t){var n=this.indexOf(e);n>=0&&(this.X(),this.B()[n]=t,this.W())}},p.a.o("pop push reverse shift sort splice unshift".split(" "),function(e){p.ba.fn[e]=function(){var t=this.B();return this.X(),this.yb(t,e,arguments),t=t[e].apply(t,arguments),this.W(),t}}),p.a.o(["slice"],function(e){p.ba.fn[e]=function(){var t=this();return t[e].apply(t,arguments)}}),p.a.za&&p.a.Fa(p.ba.fn,p.r.fn),p.b("observableArray",p.ba),p.Sa.trackArrayChanges=function(e){function t(){if(!r){r=!0;var t=e.notifySubscribers;e.notifySubscribers=function(e,n){return n&&"change"!==n||++i,t.apply(this,arguments)};var a=[].concat(e.B()||[]);o=null,n=e.U(function(t){if(t=[].concat(t||[]),e.Ba("arrayChange")){var n;(!o||i>1)&&(o=p.a.Ma(a,t,{sparse:!0})),n=o}a=t,o=null,i=0,n&&n.length&&e.notifySubscribers(n,"arrayChange")})}}if(!e.yb){var n,r=!1,o=null,i=0,a=e.ja,s=e.ua;e.ja=function(n){a&&a.call(e,n),"arrayChange"===n&&t()},e.ua=function(t){s&&s.call(e,t),"arrayChange"!==t||e.Ba("arrayChange")||(n.p(),r=!1)},e.yb=function(e,t,n){function a(e,t,n){return s[s.length]={status:e,value:t,index:n}}if(r&&!i){var s=[],u=e.length,c=n.length,l=0;switch(t){case"push":l=u;case"unshift":for(t=0;c>t;t++)a("added",n[t],l+t);break;case"pop":l=u-1;case"shift":u&&a("deleted",e[l],l);break;case"splice":t=Math.min(Math.max(0,0>n[0]?u+n[0]:n[0]),u);for(var u=1===c?u:Math.min(t+(n[1]||0),u),c=t+c-2,l=Math.max(u,c),f=[],d=[],h=2;l>t;++t,++h)u>t&&d.push(a("deleted",e[t],t)),c>t&&f.push(a("added",n[h],t));p.a.Cb(d,f);break;default:return}o=s}}}},p.w=p.j=function(t,n,r){function o(e,t,n){if(w&&t===c)throw Error("A 'pure' computed must not be called recursively");N[e]=n,n.sa=j++,n.ea=t.Aa()}function i(){var e,t;for(e in N)if(N.hasOwnProperty(e)&&(t=N[e],t.da.pc(t.ea)))return!0}function a(){!x&&N&&p.a.A(N,function(e,t){t.p&&t.p()}),N=null,j=0,y=!0,x=v=!1}function s(){var e=c.throttleEvaluation;e&&e>=0?(clearTimeout(D),D=setTimeout(function(){u(!0)},e)):c.nb?c.nb():u(!0)}function u(t){if(!m&&!y){if(S&&S()){if(!g)return void E()}else g=!1;m=!0;try{var r=N,i=j,a=w?e:!j;p.k.xb({La:function(e,t){y||(i&&r[t]?(o(t,e,r[t]),delete r[t],--i):N[t]||o(t,e,x?{da:e}:e.U(s)))},w:c,Ca:a}),N={},j=0;try{var u=n?b.call(n):b()}finally{p.k.end(),i&&!x&&p.a.A(r,function(e,t){t.p&&t.p()}),v=!1}c.Wa(h,u)&&(x||d(h,"beforeChange"),h=u,x?c.Yb():t&&d(h)),a&&d(h,"awake")}finally{m=!1}j||E()}}function c(){if(0<arguments.length){if("function"!=typeof C)throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return C.apply(n,arguments),this}return p.k.Ob(c),(v||x&&i())&&u(),h}function l(){return(v&&!j||x&&i())&&u(),h}function f(){return v||j>0}function d(e,t){c.notifySubscribers(e,t)}var h,v=!0,m=!1,g=!1,y=!1,b=t,w=!1,x=!1;if(b&&"object"==typeof b?(r=b,b=r.read):(r=r||{},b||(b=r.read)),"function"!=typeof b)throw Error("Pass a function that returns the value of the ko.computed");var C=r.write,T=r.disposeWhenNodeIsRemoved||r.q||null,k=r.disposeWhen||r.Pa,S=k,E=a,N={},j=0,D=null;n||(n=r.owner),p.Q.call(c),p.a.Ga(c,p.j.fn),c.B=l,c.oa=function(){return j},c.qc="function"==typeof C,c.p=function(){E()},c.$=f;var A=c.Za;return c.Za=function(e){A.call(c,e),c.nb=function(){c.pb(h),v=!0,c.qb(c)}},r.pure?(x=w=!0,c.ja=function(e){if(!y&&x&&"change"==e){if(x=!1,v||i())N=null,j=0,v=!0,u();else{var t=[];p.a.A(N,function(e,n){t[n.sa]=e}),p.a.o(t,function(e,t){var n=N[e],r=n.da.U(s);r.sa=t,r.ea=n.ea,N[e]=r})}y||d(h,"awake")}},c.ua=function(t){y||"change"!=t||c.Ba("change")||(p.a.A(N,function(e,t){t.p&&(N[e]={da:t.da,sa:t.sa,ea:t.ea},t.p())}),x=!0,d(e,"asleep"))},c.bc=c.Aa,c.Aa=function(){return x&&(v||i())&&u(),c.bc()}):r.deferEvaluation&&(c.ja=function(e){"change"!=e&&"beforeChange"!=e||l()}),p.D(c,"peek",c.B),p.D(c,"dispose",c.p),p.D(c,"isActive",c.$),p.D(c,"getDependenciesCount",c.oa),T&&(g=!0,T.nodeType&&(S=function(){return!p.a.Qa(T)||k&&k()})),x||r.deferEvaluation||u(),T&&f()&&T.nodeType&&(E=function(){p.a.C.Pb(T,E),a()},p.a.C.fa(T,E)),c},p.sc=function(e){return p.Ta(e,p.j)},h=p.r.Ac,p.j[h]=p.r,p.j.fn={equalityComparer:u},p.j.fn[h]=p.j,p.a.za&&p.a.Fa(p.j.fn,p.Q.fn),p.b("dependentObservable",p.j),p.b("computed",p.j),p.b("isComputed",p.sc),p.Nb=function(e,t){return"function"==typeof e?p.w(e,t,{pure:!0}):(e=p.a.extend({},e),e.pure=!0,p.w(e,t))},p.b("pureComputed",p.Nb),function(){function t(o,i,a){if(a=a||new r,o=i(o),"object"!=typeof o||null===o||o===e||o instanceof Date||o instanceof String||o instanceof Number||o instanceof Boolean)return o;var s=o instanceof Array?[]:{};return a.save(o,s),n(o,function(n){var r=i(o[n]);switch(typeof r){case"boolean":case"number":case"string":case"function":s[n]=r;break;case"object":case"undefined":var u=a.get(r);s[n]=u!==e?u:t(r,i,a)}}),s}function n(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)t(n);"function"==typeof e.toJSON&&t("toJSON")}else for(n in e)t(n)}function r(){this.keys=[],this.mb=[]}p.Vb=function(e){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return t(e,function(e){for(var t=0;p.F(e)&&10>t;t++)e=e();return e})},p.toJSON=function(e,t,n){return e=p.Vb(e),p.a.jb(e,t,n)},r.prototype={save:function(e,t){var n=p.a.m(this.keys,e);n>=0?this.mb[n]=t:(this.keys.push(e),this.mb.push(t))},get:function(t){return t=p.a.m(this.keys,t),t>=0?this.mb[t]:e}}}(),p.b("toJS",p.Vb),p.b("toJSON",p.toJSON),function(){p.i={s:function(t){switch(p.a.v(t)){case"option":return!0===t.__ko__hasDomDataOptionValue__?p.a.f.get(t,p.d.options.ab):7>=p.a.M?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?p.i.s(t.options[t.selectedIndex]):e;default:return t.value}},Y:function(t,n,r){switch(p.a.v(t)){case"option":switch(typeof n){case"string":p.a.f.set(t,p.d.options.ab,e),"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__,t.value=n;break;default:p.a.f.set(t,p.d.options.ab,n),t.__ko__hasDomDataOptionValue__=!0,t.value="number"==typeof n?n:""}break;case"select":(""===n||null===n)&&(n=e);for(var o,i=-1,a=0,s=t.options.length;s>a;++a)if(o=p.i.s(t.options[a]),o==n||""==o&&n===e){i=a;break}(r||i>=0||n===e&&1<t.size)&&(t.selectedIndex=i);break;default:(null===n||n===e)&&(n=""),t.value=n}}}}(),p.b("selectExtensions",p.i),p.b("selectExtensions.readValue",p.i.s),p.b("selectExtensions.writeValue",p.i.Y),p.h=function(){function e(e){e=p.a.ib(e),123===e.charCodeAt(0)&&(e=e.slice(1,-1));var t,n=[],a=e.match(r),s=[],u=0;if(a){a.push(",");for(var c,l=0;c=a[l];++l){var f=c.charCodeAt(0);if(44===f){if(0>=u){n.push(t&&s.length?{key:t,value:s.join("")}:{unknown:t||s.join("")}),t=u=0,s=[];continue}}else if(58===f){if(!u&&!t&&1===s.length){t=s.pop();continue}}else 47===f&&l&&1<c.length?(f=a[l-1].match(o))&&!i[f[0]]&&(e=e.substr(e.indexOf(c)+1),a=e.match(r),a.push(","),l=-1,c="/"):40===f||123===f||91===f?++u:41===f||125===f||93===f?--u:t||s.length||34!==f&&39!==f||(c=c.slice(1,-1));s.push(c)}}return n}var t=["true","false","null","undefined"],n=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,r=RegExp("\"(?:[^\"\\\\]|\\\\.)*\"|'(?:[^'\\\\]|\\\\.)*'|/(?:[^/\\\\]|\\\\.)*/w*|[^\\s:,/][^,\"'{}()/:[\\]]*[^\\s,\"'{}()/:[\\]]|[^\\s]","g"),o=/[\])"'A-Za-z0-9_$]+$/,i={"in":1,"return":1,"typeof":1},a={};return{ka:[],V:a,bb:e,Ea:function(r,o){function i(e,r){var o;if(!l){var f=p.getBindingHandler(e);if(f&&f.preprocess&&!(r=f.preprocess(r,e,i)))return;(f=a[e])&&(o=r,0<=p.a.m(t,o)?o=!1:(f=o.match(n),o=null===f?!1:f[1]?"Object("+f[1]+")"+f[2]:o),f=o),f&&u.push("'"+e+"':function(_z){"+o+"=_z}")}c&&(r="function(){return "+r+" }"),s.push("'"+e+"':"+r)}o=o||{};var s=[],u=[],c=o.valueAccessors,l=o.bindingParams,f="string"==typeof r?e(r):r;return p.a.o(f,function(e){i(e.key||e.unknown,e.value)}),u.length&&i("_ko_property_writers","{"+u.join(",")+" }"),s.join(",")},vc:function(e,t){for(var n=0;n<e.length;n++)if(e[n].key==t)return!0;return!1},ra:function(e,t,n,r,o){e&&p.F(e)?!p.Da(e)||o&&e.B()===r||e(r):(e=t.get("_ko_property_writers"))&&e[n]&&e[n](r)}}}(),p.b("expressionRewriting",p.h),p.b("expressionRewriting.bindingRewriteValidators",p.h.ka),p.b("expressionRewriting.parseObjectLiteral",p.h.bb),p.b("expressionRewriting.preProcessBindings",p.h.Ea),p.b("expressionRewriting._twoWayBindings",p.h.V),p.b("jsonExpressionRewriting",p.h),p.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",p.h.Ea),function(){function e(e){return 8==e.nodeType&&a.test(i?e.text:e.nodeValue)}function t(e){return 8==e.nodeType&&s.test(i?e.text:e.nodeValue)}function r(n,r){for(var o=n,i=1,a=[];o=o.nextSibling;){if(t(o)&&(i--,0===i))return a;a.push(o),e(o)&&i++}if(!r)throw Error("Cannot find closing comment tag to match: "+n.nodeValue);return null}function o(e,t){var n=r(e,t);return n?0<n.length?n[n.length-1].nextSibling:e.nextSibling:null}var i=n&&"<!--test-->"===n.createComment("test").text,a=i?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,s=i?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,u={ul:!0,ol:!0};p.e={R:{},childNodes:function(t){return e(t)?r(t):t.childNodes},ma:function(t){if(e(t)){t=p.e.childNodes(t);for(var n=0,r=t.length;r>n;n++)p.removeNode(t[n])}else p.a.Ra(t)},T:function(t,n){if(e(t)){p.e.ma(t);for(var r=t.nextSibling,o=0,i=n.length;i>o;o++)r.parentNode.insertBefore(n[o],r)}else p.a.T(t,n)},Mb:function(t,n){e(t)?t.parentNode.insertBefore(n,t.nextSibling):t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)},Fb:function(t,n,r){r?e(t)?t.parentNode.insertBefore(n,r.nextSibling):r.nextSibling?t.insertBefore(n,r.nextSibling):t.appendChild(n):p.e.Mb(t,n)},firstChild:function(n){return e(n)?!n.nextSibling||t(n.nextSibling)?null:n.nextSibling:n.firstChild},nextSibling:function(n){return e(n)&&(n=o(n)),n.nextSibling&&t(n.nextSibling)?null:n.nextSibling},oc:e,Fc:function(e){return(e=(i?e.text:e.nodeValue).match(a))?e[1]:null},Kb:function(n){if(u[p.a.v(n)]){var r=n.firstChild;if(r)do if(1===r.nodeType){var i;i=r.firstChild;var a=null;if(i)do if(a)a.push(i);else if(e(i)){var s=o(i,!0);s?i=s:a=[i]}else t(i)&&(a=[i]);while(i=i.nextSibling);if(i=a)for(a=r.nextSibling,s=0;s<i.length;s++)a?n.insertBefore(i[s],a):n.appendChild(i[s])}while(r=r.nextSibling)}}}}(),p.b("virtualElements",p.e),p.b("virtualElements.allowedBindings",p.e.R),p.b("virtualElements.emptyNode",p.e.ma),p.b("virtualElements.insertAfter",p.e.Fb),p.b("virtualElements.prepend",p.e.Mb),p.b("virtualElements.setDomNodeChildren",p.e.T),function(){p.L=function(){this.ec={}},p.a.extend(p.L.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return null!=e.getAttribute("data-bind")||p.g.getComponentNameForNode(e);case 8:return p.e.oc(e);default:return!1}},getBindings:function(e,t){var n=this.getBindingsString(e,t),n=n?this.parseBindingsString(n,t,e):null;return p.g.sb(n,e,t,!1)},getBindingAccessors:function(e,t){var n=this.getBindingsString(e,t),n=n?this.parseBindingsString(n,t,e,{valueAccessors:!0}):null;return p.g.sb(n,e,t,!0)},getBindingsString:function(e){switch(e.nodeType){case 1:return e.getAttribute("data-bind");case 8:return p.e.Fc(e);default:return null}},parseBindingsString:function(e,t,n,r){try{var o,i=this.ec,a=e+(r&&r.valueAccessors||"");if(!(o=i[a])){var s,u="with($context){with($data||{}){return{"+p.h.Ea(e,r)+"}}}";s=new Function("$context","$element",u),o=i[a]=s}return o(t,n)}catch(c){throw c.message="Unable to parse bindings.\nBindings value: "+e+"\nMessage: "+c.message,c}}}),p.L.instance=new p.L}(),p.b("bindingProvider",p.L),function(){function n(e){return function(){return e}}function r(e){return e()}function i(e){return p.a.pa(p.k.u(e),function(t,n){return function(){return e()[n]}})}function a(e,t,r){return"function"==typeof e?i(e.bind(null,t,r)):p.a.pa(e,n)}function s(e,t){return i(this.getBindings.bind(this,e,t))}function u(e,t,n){var r,o=p.e.firstChild(t),i=p.L.instance,a=i.preprocessNode;if(a){for(;r=o;)o=p.e.nextSibling(r),a.call(i,r);o=p.e.firstChild(t)}for(;r=o;)o=p.e.nextSibling(r),c(e,r,n)}function c(e,t,n){var r=!0,o=1===t.nodeType;o&&p.e.Kb(t),(o&&n||p.L.instance.nodeHasBindings(t))&&(r=f(t,null,e,n).shouldBindDescendants),r&&!h[p.a.v(t)]&&u(e,t,!o)}function l(e){var t=[],n={},r=[];return p.a.A(e,function o(i){if(!n[i]){var a=p.getBindingHandler(i);a&&(a.after&&(r.push(i),p.a.o(a.after,function(t){if(e[t]){if(-1!==p.a.m(r,t))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+r.join(", "));o(t)}}),r.length--),t.push({key:i,Eb:a})),n[i]=!0}}),t}function f(t,n,o,i){var a=p.a.f.get(t,v);if(!n){if(a)throw Error("You cannot apply bindings multiple times to the same element.");p.a.f.set(t,v,!0)}!a&&i&&p.Tb(t,o);var u;if(n&&"function"!=typeof n)u=n;else{var c=p.L.instance,f=c.getBindingAccessors||s,d=p.j(function(){return(u=n?n(o,t):f.call(c,t,o))&&o.K&&o.K(),
  u},null,{q:t});u&&d.$()||(d=null)}var h;if(u){var m=d?function(e){return function(){return r(d()[e])}}:function(e){return u[e]},g=function(){return p.a.pa(d?d():u,r)};g.get=function(e){return u[e]&&r(m(e))},g.has=function(e){return e in u},i=l(u),p.a.o(i,function(n){var r=n.Eb.init,i=n.Eb.update,a=n.key;if(8===t.nodeType&&!p.e.R[a])throw Error("The binding '"+a+"' cannot be used with virtual elements");try{"function"==typeof r&&p.k.u(function(){var n=r(t,m(a),g,o.$data,o);if(n&&n.controlsDescendantBindings){if(h!==e)throw Error("Multiple bindings ("+h+" and "+a+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");h=a}}),"function"==typeof i&&p.j(function(){i(t,m(a),g,o.$data,o)},null,{q:t})}catch(s){throw s.message='Unable to process binding "'+a+": "+u[a]+'"\nMessage: '+s.message,s}})}return{shouldBindDescendants:h===e}}function d(e){return e&&e instanceof p.N?e:new p.N(e)}p.d={};var h={script:!0,textarea:!0};p.getBindingHandler=function(e){return p.d[e]},p.N=function(t,n,r,o){var i,a=this,s="function"==typeof t&&!p.F(t),u=p.j(function(){var e=s?t():t,i=p.a.c(e);return n?(n.K&&n.K(),p.a.extend(a,n),u&&(a.K=u)):(a.$parents=[],a.$root=i,a.ko=p),a.$rawData=e,a.$data=i,r&&(a[r]=i),o&&o(a,n,i),a.$data},null,{Pa:function(){return i&&!p.a.tb(i)},q:!0});u.$()&&(a.K=u,u.equalityComparer=null,i=[],u.Zb=function(t){i.push(t),p.a.C.fa(t,function(t){p.a.ya(i,t),i.length||(u.p(),a.K=u=e)})})},p.N.prototype.createChildContext=function(e,t,n){return new p.N(e,this,t,function(e,t){e.$parentContext=t,e.$parent=t.$data,e.$parents=(t.$parents||[]).slice(0),e.$parents.unshift(e.$parent),n&&n(e)})},p.N.prototype.extend=function(e){return new p.N(this.K||this.$data,this,null,function(t,n){t.$rawData=n.$rawData,p.a.extend(t,"function"==typeof e?e():e)})};var v=p.a.f.I(),m=p.a.f.I();p.Tb=function(e,t){return 2!=arguments.length?p.a.f.get(e,m):(p.a.f.set(e,m,t),void(t.K&&t.K.Zb(e)))},p.va=function(e,t,n){return 1===e.nodeType&&p.e.Kb(e),f(e,t,d(n),!0)},p.cc=function(e,t,n){return n=d(n),p.va(e,a(t,n,e),n)},p.Ja=function(e,t){1!==t.nodeType&&8!==t.nodeType||u(d(e),t,!0)},p.ub=function(e,n){if(!o&&t.jQuery&&(o=t.jQuery),n&&1!==n.nodeType&&8!==n.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");n=n||t.document.body,c(d(e),n,!0)},p.Oa=function(t){switch(t.nodeType){case 1:case 8:var n=p.Tb(t);if(n)return n;if(t.parentNode)return p.Oa(t.parentNode)}return e},p.gc=function(t){return(t=p.Oa(t))?t.$data:e},p.b("bindingHandlers",p.d),p.b("applyBindings",p.ub),p.b("applyBindingsToDescendants",p.Ja),p.b("applyBindingAccessorsToNode",p.va),p.b("applyBindingsToNode",p.cc),p.b("contextFor",p.Oa),p.b("dataFor",p.gc)}(),function(e){function t(t,r){var a,s=o.hasOwnProperty(t)?o[t]:e;s?s.U(r):(s=o[t]=new p.Q,s.U(r),n(t,function(e,n){var r=!(!n||!n.synchronous);i[t]={definition:e,tc:r},delete o[t],a||r?s.notifySubscribers(e):setTimeout(function(){s.notifySubscribers(e)},0)}),a=!0)}function n(e,t){r("getConfig",[e],function(n){n?r("loadComponent",[e,n],function(e){t(e,n)}):t(null,null)})}function r(t,n,o,i){i||(i=p.g.loaders.slice(0));var a=i.shift();if(a){var s=a[t];if(s){var u=!1;if(s.apply(a,n.concat(function(e){u?o(null):null!==e?o(e):r(t,n,o,i)}))!==e&&(u=!0,!a.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else r(t,n,o,i)}else o(null)}var o={},i={};p.g={get:function(n,r){var o=i.hasOwnProperty(n)?i[n]:e;o?o.tc?p.k.u(function(){r(o.definition)}):setTimeout(function(){r(o.definition)},0):t(n,r)},zb:function(e){delete i[e]},ob:r},p.g.loaders=[],p.b("components",p.g),p.b("components.get",p.g.get),p.b("components.clearCachedDefinition",p.g.zb)}(),function(){function e(e,t,n,r){function o(){0===--s&&r(i)}var i={},s=2,u=n.template;n=n.viewModel,u?a(t,u,function(t){p.g.ob("loadTemplate",[e,t],function(e){i.template=e,o()})}):o(),n?a(t,n,function(t){p.g.ob("loadViewModel",[e,t],function(e){i[l]=e,o()})}):o()}function r(e,t,n){if("function"==typeof t)n(function(e){return new t(e)});else if("function"==typeof t[l])n(t[l]);else if("instance"in t){var o=t.instance;n(function(){return o})}else"viewModel"in t?r(e,t.viewModel,n):e("Unknown viewModel value: "+t)}function o(e){switch(p.a.v(e)){case"script":return p.a.ca(e.text);case"textarea":return p.a.ca(e.value);case"template":if(i(e.content))return p.a.la(e.content.childNodes)}return p.a.la(e.childNodes)}function i(e){return t.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function a(e,n,r){"string"==typeof n.require?s||t.require?(s||t.require)([n.require],r):e("Uses require, but no AMD loader is present"):r(n)}function u(e){return function(t){throw Error("Component '"+e+"': "+t)}}var c={};p.g.register=function(e,t){if(!t)throw Error("Invalid configuration for "+e);if(p.g.Xa(e))throw Error("Component "+e+" is already registered");c[e]=t},p.g.Xa=function(e){return e in c},p.g.Ec=function(e){delete c[e],p.g.zb(e)},p.g.Ab={getConfig:function(e,t){t(c.hasOwnProperty(e)?c[e]:null)},loadComponent:function(t,n,r){var o=u(t);a(o,n,function(n){e(t,o,n,r)})},loadTemplate:function(e,r,a){if(e=u(e),"string"==typeof r)a(p.a.ca(r));else if(r instanceof Array)a(r);else if(i(r))a(p.a.O(r.childNodes));else if(r.element)if(r=r.element,t.HTMLElement?r instanceof HTMLElement:r&&r.tagName&&1===r.nodeType)a(o(r));else if("string"==typeof r){var s=n.getElementById(r);s?a(o(s)):e("Cannot find element with ID "+r)}else e("Unknown element type: "+r);else e("Unknown template value: "+r)},loadViewModel:function(e,t,n){r(u(e),t,n)}};var l="createViewModel";p.b("components.register",p.g.register),p.b("components.isRegistered",p.g.Xa),p.b("components.unregister",p.g.Ec),p.b("components.defaultLoader",p.g.Ab),p.g.loaders.push(p.g.Ab),p.g.$b=c}(),function(){function e(e,n){var r=e.getAttribute("params");if(r){var r=t.parseBindingsString(r,n,e,{valueAccessors:!0,bindingParams:!0}),r=p.a.pa(r,function(t){return p.w(t,null,{q:e})}),o=p.a.pa(r,function(t){var n=t.B();return t.$()?p.w({read:function(){return p.a.c(t())},write:p.Da(n)&&function(e){t()(e)},q:e}):n});return o.hasOwnProperty("$raw")||(o.$raw=r),o}return{$raw:{}}}p.g.getComponentNameForNode=function(e){return e=p.a.v(e),p.g.Xa(e)&&e},p.g.sb=function(t,n,r,o){if(1===n.nodeType){var i=p.g.getComponentNameForNode(n);if(i){if(t=t||{},t.component)throw Error('Cannot use the "component" binding on a custom element matching a component');var a={name:i,params:e(n,r)};t.component=o?function(){return a}:a}}return t};var t=new p.L;9>p.a.M&&(p.g.register=function(e){return function(t){return n.createElement(t),e.apply(this,arguments)}}(p.g.register),n.createDocumentFragment=function(e){return function(){var t,n=e(),r=p.g.$b;for(t in r)r.hasOwnProperty(t)&&n.createElement(t);return n}}(n.createDocumentFragment))}(),function(e){function t(e,t,n){if(t=t.template,!t)throw Error("Component '"+e+"' has no template");e=p.a.la(t),p.e.T(n,e)}function n(e,t,n,r){var o=e.createViewModel;return o?o.call(e,r,{element:t,templateNodes:n}):r}var r=0;p.d.component={init:function(o,i,a,s,u){function c(){var e=l&&l.dispose;"function"==typeof e&&e.call(l),f=null}var l,f,d=p.a.O(p.e.childNodes(o));return p.a.C.fa(o,c),p.w(function(){var a,s,h=p.a.c(i());if("string"==typeof h?a=h:(a=p.a.c(h.name),s=p.a.c(h.params)),!a)throw Error("No component name specified");var v=f=++r;p.g.get(a,function(r){if(f===v){if(c(),!r)throw Error("Unknown component '"+a+"'");t(a,r,o);var i=n(r,o,d,s);r=u.createChildContext(i,e,function(e){e.$component=i,e.$componentTemplateNodes=d}),l=i,p.Ja(r,o)}})},null,{q:o}),{controlsDescendantBindings:!0}}},p.e.R.component=!0}();var m={"class":"className","for":"htmlFor"};p.d.attr={update:function(t,n){var r=p.a.c(n())||{};p.a.A(r,function(n,r){r=p.a.c(r);var o=!1===r||null===r||r===e;o&&t.removeAttribute(n),8>=p.a.M&&n in m?(n=m[n],o?t.removeAttribute(n):t[n]=r):o||t.setAttribute(n,r.toString()),"name"===n&&p.a.Rb(t,o?"":r.toString())})}},function(){p.d.checked={after:["value","attr"],init:function(t,n,r){function o(){var e=t.checked,o=f?a():e;if(!p.Z.Ca()&&(!u||e)){var i=p.k.u(n);c?l!==o?(e&&(p.a.ga(i,o,!0),p.a.ga(i,l,!1)),l=o):p.a.ga(i,o,e):p.h.ra(i,r,"checked",o,!0)}}function i(){var e=p.a.c(n());t.checked=c?0<=p.a.m(e,a()):s?e:a()===e}var a=p.Nb(function(){return r.has("checkedValue")?p.a.c(r.get("checkedValue")):r.has("value")?p.a.c(r.get("value")):t.value}),s="checkbox"==t.type,u="radio"==t.type;if(s||u){var c=s&&p.a.c(n())instanceof Array,l=c?a():e,f=u||c;u&&!t.name&&p.d.uniqueName.init(t,function(){return!0}),p.w(o,null,{q:t}),p.a.n(t,"click",o),p.w(i,null,{q:t})}}},p.h.V.checked=!0,p.d.checkedValue={update:function(e,t){e.value=p.a.c(t())}}}(),p.d.css={update:function(e,t){var n=p.a.c(t());null!==n&&"object"==typeof n?p.a.A(n,function(t,n){n=p.a.c(n),p.a.Ia(e,t,n)}):(n=String(n||""),p.a.Ia(e,e.__ko__cssValue,!1),e.__ko__cssValue=n,p.a.Ia(e,n,!0))}},p.d.enable={update:function(e,t){var n=p.a.c(t());n&&e.disabled?e.removeAttribute("disabled"):n||e.disabled||(e.disabled=!0)}},p.d.disable={update:function(e,t){p.d.enable.update(e,function(){return!p.a.c(t())})}},p.d.event={init:function(e,t,n,r,o){var i=t()||{};p.a.A(i,function(i){"string"==typeof i&&p.a.n(e,i,function(e){var a,s=t()[i];if(s){try{var u=p.a.O(arguments);r=o.$data,u.unshift(r),a=s.apply(r,u)}finally{!0!==a&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===n.get(i+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}})})}},p.d.foreach={Ib:function(e){return function(){var t=e(),n=p.a.cb(t);return n&&"number"!=typeof n.length?(p.a.c(t),{foreach:n.data,as:n.as,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:p.P.Va}):{foreach:t,templateEngine:p.P.Va}}},init:function(e,t){return p.d.template.init(e,p.d.foreach.Ib(t))},update:function(e,t,n,r,o){return p.d.template.update(e,p.d.foreach.Ib(t),n,r,o)}},p.h.ka.foreach=!1,p.e.R.foreach=!0,p.d.hasfocus={init:function(e,t,n){function r(r){e.__ko_hasfocusUpdating=!0;var o=e.ownerDocument;if("activeElement"in o){var i;try{i=o.activeElement}catch(a){i=o.body}r=i===e}o=t(),p.h.ra(o,n,"hasfocus",r,!0),e.__ko_hasfocusLastValue=r,e.__ko_hasfocusUpdating=!1}var o=r.bind(null,!0),i=r.bind(null,!1);p.a.n(e,"focus",o),p.a.n(e,"focusin",o),p.a.n(e,"blur",i),p.a.n(e,"focusout",i)},update:function(e,t){var n=!!p.a.c(t());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===n||(n?e.focus():e.blur(),p.k.u(p.a.qa,null,[e,n?"focusin":"focusout"]))}},p.h.V.hasfocus=!0,p.d.hasFocus=p.d.hasfocus,p.h.V.hasFocus=!0,p.d.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){p.a.gb(e,t())}},f("if"),f("ifnot",!1,!0),f("with",!0,!1,function(e,t){return e.createChildContext(t)});var g={};p.d.options={init:function(e){if("select"!==p.a.v(e))throw Error("options binding applies only to SELECT elements");for(;0<e.length;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(t,n,r){function o(){return p.a.xa(t.options,function(e){return e.selected})}function i(e,t,n){var r=typeof t;return"function"==r?t(e):"string"==r?e[t]:n}function a(e,n){if(v&&l)p.i.Y(t,p.a.c(r.get("value")),!0);else if(h.length){var o=0<=p.a.m(h,p.i.s(n[0]));p.a.Sb(n[0],o),v&&!o&&p.k.u(p.a.qa,null,[t,"change"])}}var s=t.multiple,u=0!=t.length&&s?t.scrollTop:null,c=p.a.c(n()),l=r.get("valueAllowUnset")&&r.has("value"),f=r.get("optionsIncludeDestroyed");n={};var d,h=[];l||(s?h=p.a.Ka(o(),p.i.s):0<=t.selectedIndex&&h.push(p.i.s(t.options[t.selectedIndex]))),c&&("undefined"==typeof c.length&&(c=[c]),d=p.a.xa(c,function(t){return f||t===e||null===t||!p.a.c(t._destroy)}),r.has("optionsCaption")&&(c=p.a.c(r.get("optionsCaption")),null!==c&&c!==e&&d.unshift(g)));var v=!1;n.beforeRemove=function(e){t.removeChild(e)},c=a,r.has("optionsAfterRender")&&"function"==typeof r.get("optionsAfterRender")&&(c=function(t,n){a(0,n),p.k.u(r.get("optionsAfterRender"),null,[n[0],t!==g?t:e])}),p.a.fb(t,d,function(n,o,a){return a.length&&(h=!l&&a[0].selected?[p.i.s(a[0])]:[],v=!0),o=t.ownerDocument.createElement("option"),n===g?(p.a.Ha(o,r.get("optionsCaption")),p.i.Y(o,e)):(a=i(n,r.get("optionsValue"),n),p.i.Y(o,p.a.c(a)),n=i(n,r.get("optionsText"),a),p.a.Ha(o,n)),[o]},n,c),p.k.u(function(){l?p.i.Y(t,p.a.c(r.get("value")),!0):(s?h.length&&o().length<h.length:h.length&&0<=t.selectedIndex?p.i.s(t.options[t.selectedIndex])!==h[0]:h.length||0<=t.selectedIndex)&&p.a.qa(t,"change")}),p.a.kc(t),u&&20<Math.abs(u-t.scrollTop)&&(t.scrollTop=u)}},p.d.options.ab=p.a.f.I(),p.d.selectedOptions={after:["options","foreach"],init:function(e,t,n){p.a.n(e,"change",function(){var r=t(),o=[];p.a.o(e.getElementsByTagName("option"),function(e){e.selected&&o.push(p.i.s(e))}),p.h.ra(r,n,"selectedOptions",o)})},update:function(e,t){if("select"!=p.a.v(e))throw Error("values binding applies only to SELECT elements");var n=p.a.c(t());n&&"number"==typeof n.length&&p.a.o(e.getElementsByTagName("option"),function(e){var t=0<=p.a.m(n,p.i.s(e));p.a.Sb(e,t)})}},p.h.V.selectedOptions=!0,p.d.style={update:function(t,n){var r=p.a.c(n()||{});p.a.A(r,function(n,r){r=p.a.c(r),(null===r||r===e||!1===r)&&(r=""),t.style[n]=r})}},p.d.submit={init:function(e,t,n,r,o){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");p.a.n(e,"submit",function(n){var r,i=t();try{r=i.call(o.$data,e)}finally{!0!==r&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}})}},p.d.text={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){p.a.Ha(e,t())}},p.e.R.text=!0,function(){if(t&&t.navigator)var n=function(e){return e?parseFloat(e[1]):void 0},r=t.opera&&t.opera.version&&parseInt(t.opera.version()),o=t.navigator.userAgent,i=n(o.match(/^(?:(?!chrome).)*version\/([^ ]*) safari/i)),a=n(o.match(/Firefox\/([^ ]*)/));if(10>p.a.M)var s=p.a.f.I(),u=p.a.f.I(),c=function(e){var t=this.activeElement;(t=t&&p.a.f.get(t,u))&&t(e)},l=function(e,t){var n=e.ownerDocument;p.a.f.get(n,s)||(p.a.f.set(n,s,!0),p.a.n(n,"selectionchange",c)),p.a.f.set(e,u,t)};p.d.textInput={init:function(t,n,o){function s(e,n){p.a.n(t,e,n)}function u(){var r=p.a.c(n());(null===r||r===e)&&(r=""),h!==e&&r===h?setTimeout(u,4):t.value!==r&&(v=r,t.value=r)}function c(){d||(h=t.value,d=setTimeout(f,4))}function f(){clearTimeout(d),h=d=e;var r=t.value;v!==r&&(v=r,p.h.ra(n(),o,"textInput",r))}var d,h,v=t.value;10>p.a.M?(s("propertychange",function(e){"value"===e.propertyName&&f()}),8==p.a.M&&(s("keyup",f),s("keydown",f)),8<=p.a.M&&(l(t,f),s("dragend",c))):(s("input",f),5>i&&"textarea"===p.a.v(t)?(s("keydown",c),s("paste",c),s("cut",c)):11>r?s("keydown",c):4>a&&(s("DOMAutoComplete",f),s("dragdrop",f),s("drop",f))),s("change",f),p.w(u,null,{q:t})}},p.h.V.textInput=!0,p.d.textinput={preprocess:function(e,t,n){n("textInput",e)}}}(),p.d.uniqueName={init:function(e,t){if(t()){var n="ko_unique_"+ ++p.d.uniqueName.fc;p.a.Rb(e,n)}}},p.d.uniqueName.fc=0,p.d.value={after:["options","foreach"],init:function(e,t,n){if("input"!=e.tagName.toLowerCase()||"checkbox"!=e.type&&"radio"!=e.type){var r=["change"],o=n.get("valueUpdate"),i=!1,a=null;o&&("string"==typeof o&&(o=[o]),p.a.ia(r,o),r=p.a.wb(r));var s=function(){a=null,i=!1;var r=t(),o=p.i.s(e);p.h.ra(r,n,"value",o)};!p.a.M||"input"!=e.tagName.toLowerCase()||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=p.a.m(r,"propertychange")||(p.a.n(e,"propertychange",function(){i=!0}),p.a.n(e,"focus",function(){i=!1}),p.a.n(e,"blur",function(){i&&s()})),p.a.o(r,function(t){var n=s;p.a.Dc(t,"after")&&(n=function(){a=p.i.s(e),setTimeout(s,0)},t=t.substring(5)),p.a.n(e,t,n)});var u=function(){var r=p.a.c(t()),o=p.i.s(e);if(null!==a&&r===a)setTimeout(u,0);else if(r!==o)if("select"===p.a.v(e)){var i=n.get("valueAllowUnset"),o=function(){p.i.Y(e,r,i)};o(),i||r===p.i.s(e)?setTimeout(o,0):p.k.u(p.a.qa,null,[e,"change"])}else p.i.Y(e,r)};p.w(u,null,{q:e})}else p.va(e,{checkedValue:t})},update:function(){}},p.h.V.value=!0,p.d.visible={update:function(e,t){var n=p.a.c(t()),r="none"!=e.style.display;n&&!r?e.style.display="":!n&&r&&(e.style.display="none")}},function(e){p.d[e]={init:function(t,n,r,o,i){return p.d.event.init.call(this,t,function(){var t={};return t[e]=n(),t},r,o,i)}}}("click"),p.J=function(){},p.J.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},p.J.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},p.J.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){t=t||n;var r=t.getElementById(e);if(!r)throw Error("Cannot find template with ID "+e);return new p.t.l(r)}if(1==e.nodeType||8==e.nodeType)return new p.t.ha(e);throw Error("Unknown template type: "+e)},p.J.prototype.renderTemplate=function(e,t,n,r){return e=this.makeTemplateSource(e,r),this.renderTemplateSource(e,t,n,r)},p.J.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(e,t).data("isRewritten")},p.J.prototype.rewriteTemplate=function(e,t,n){e=this.makeTemplateSource(e,n),t=t(e.text()),e.text(t),e.data("isRewritten",!0)},p.b("templateEngine",p.J),p.kb=function(){function e(e,t,n,r){e=p.h.bb(e);for(var o=p.h.ka,i=0;i<e.length;i++){var a=e[i].key;if(o.hasOwnProperty(a)){var s=o[a];if("function"==typeof s){if(a=s(e[i].value))throw Error(a)}else if(!s)throw Error("This template engine does not support the '"+a+"' binding within its templates")}}return n="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+p.h.Ea(e,{valueAccessors:!0})+" } })()},'"+n.toLowerCase()+"')",r.createJavaScriptEvaluatorBlock(n)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,n=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{lc:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,function(e){return p.kb.xc(e,t)},n)},xc:function(r,o){return r.replace(t,function(t,n,r,i,a){return e(a,n,r,o)}).replace(n,function(t,n){return e(n,"<!-- ko -->","#comment",o)})},dc:function(e,t){return p.H.$a(function(n,r){var o=n.nextSibling;o&&o.nodeName.toLowerCase()===t&&p.va(o,e,r)})}}}(),p.b("__tr_ambtns",p.kb.dc),function(){p.t={},p.t.l=function(e){this.l=e},p.t.l.prototype.text=function(){var e=p.a.v(this.l),e="script"===e?"text":"textarea"===e?"value":"innerHTML";if(0==arguments.length)return this.l[e];var t=arguments[0];"innerHTML"===e?p.a.gb(this.l,t):this.l[e]=t};var t=p.a.f.I()+"_";p.t.l.prototype.data=function(e){return 1===arguments.length?p.a.f.get(this.l,t+e):void p.a.f.set(this.l,t+e,arguments[1])};var n=p.a.f.I();p.t.ha=function(e){this.l=e},p.t.ha.prototype=new p.t.l,p.t.ha.prototype.text=function(){if(0==arguments.length){var t=p.a.f.get(this.l,n)||{};return t.lb===e&&t.Na&&(t.lb=t.Na.innerHTML),t.lb}p.a.f.set(this.l,n,{lb:arguments[0]})},p.t.l.prototype.nodes=function(){return 0==arguments.length?(p.a.f.get(this.l,n)||{}).Na:void p.a.f.set(this.l,n,{Na:arguments[0]})},p.b("templateSources",p.t),p.b("templateSources.domElement",p.t.l),p.b("templateSources.anonymousTemplate",p.t.ha)}(),function(){function t(e,t,n){var r;for(t=p.e.nextSibling(t);e&&(r=e)!==t;)e=p.e.nextSibling(r),n(r,e)}function n(e,n){if(e.length){var r=e[0],o=e[e.length-1],i=r.parentNode,a=p.L.instance,s=a.preprocessNode;if(s){if(t(r,o,function(e,t){var n=e.previousSibling,i=s.call(a,e);i&&(e===r&&(r=i[0]||t),e===o&&(o=i[i.length-1]||n))}),e.length=0,!r)return;r===o?e.push(r):(e.push(r,o),p.a.na(e,i))}t(r,o,function(e){1!==e.nodeType&&8!==e.nodeType||p.ub(n,e)}),t(r,o,function(e){1!==e.nodeType&&8!==e.nodeType||p.H.Xb(e,[n])}),p.a.na(e,i)}}function r(e){return e.nodeType?e:0<e.length?e[0]:null}function o(e,t,o,i,s){s=s||{};var u=(e&&r(e)||o||{}).ownerDocument,c=s.templateEngine||a;if(p.kb.lc(o,c,u),o=c.renderTemplate(o,i,s,u),"number"!=typeof o.length||0<o.length&&"number"!=typeof o[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(u=!1,t){case"replaceChildren":p.e.T(e,o),u=!0;break;case"replaceNode":p.a.Qb(e,o),u=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+t)}return u&&(n(o,i),s.afterRender&&p.k.u(s.afterRender,null,[o,i.$data])),o}function i(e,t,n){return p.F(e)?e():"function"==typeof e?e(t,n):e}var a;p.hb=function(t){if(t!=e&&!(t instanceof p.J))throw Error("templateEngine must inherit from ko.templateEngine");a=t},p.eb=function(t,n,s,u,c){if(s=s||{},(s.templateEngine||a)==e)throw Error("Set a template engine before calling renderTemplate");if(c=c||"replaceChildren",u){var l=r(u);return p.j(function(){var e=n&&n instanceof p.N?n:new p.N(p.a.c(n)),a=i(t,e.$data,e),e=o(u,c,a,e,s);"replaceNode"==c&&(u=e,l=r(u))},null,{Pa:function(){return!l||!p.a.Qa(l)},q:l&&"replaceNode"==c?l.parentNode:l})}return p.H.$a(function(e){p.eb(t,n,s,e,"replaceNode")})},p.Cc=function(t,r,a,s,u){function c(e,t){n(t,f),a.afterRender&&a.afterRender(t,e),f=null}function l(e,n){f=u.createChildContext(e,a.as,function(e){e.$index=n});var r=i(t,e,f);return o(null,"ignoreTargetNode",r,f,a)}var f;return p.j(function(){var t=p.a.c(r)||[];"undefined"==typeof t.length&&(t=[t]),t=p.a.xa(t,function(t){return a.includeDestroyed||t===e||null===t||!p.a.c(t._destroy)}),p.k.u(p.a.fb,null,[s,t,l,a,c])},null,{q:s})};var s=p.a.f.I();p.d.template={init:function(e,t){var n=p.a.c(t());if("string"==typeof n||n.name)p.e.ma(e);else{if("nodes"in n){if(n=n.nodes||[],p.F(n))throw Error('The "nodes" option must be a plain, non-observable array.')}else n=p.e.childNodes(e);n=p.a.Jb(n),new p.t.ha(e).nodes(n)}return{controlsDescendantBindings:!0}},update:function(t,n,r,o,i){var a,u=n();n=p.a.c(u),r=!0,o=null,"string"==typeof n?n={}:(u=n.name,"if"in n&&(r=p.a.c(n["if"])),r&&"ifnot"in n&&(r=!p.a.c(n.ifnot)),a=p.a.c(n.data)),"foreach"in n?o=p.Cc(u||t,r&&n.foreach||[],n,t,i):r?(i="data"in n?i.createChildContext(a,n.as):i,o=p.eb(u||t,i,n,t)):p.e.ma(t),i=o,(a=p.a.f.get(t,s))&&"function"==typeof a.p&&a.p(),p.a.f.set(t,s,i&&i.$()?i:e)}},p.h.ka.template=function(e){return e=p.h.bb(e),1==e.length&&e[0].unknown||p.h.vc(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"},p.e.R.template=!0}(),p.b("setTemplateEngine",p.hb),p.b("renderTemplate",p.eb),p.a.Cb=function(e,t,n){if(e.length&&t.length){var r,o,i,a,s;for(r=o=0;(!n||n>r)&&(a=e[o]);++o){for(i=0;s=t[i];++i)if(a.value===s.value){a.moved=s.index,s.moved=a.index,t.splice(i,1),r=i=0;break}r+=i}}},p.a.Ma=function(){function e(e,t,n,r,o){var i,a,s,u,c,l=Math.min,f=Math.max,d=[],h=e.length,v=t.length,m=v-h||1,g=h+v+1;for(i=0;h>=i;i++)for(u=s,d.push(s=[]),c=l(v,i+m),a=f(0,i-1);c>=a;a++)s[a]=a?i?e[i-1]===t[a-1]?u[a-1]:l(u[a]||g,s[a-1]||g)+1:a+1:i+1;for(l=[],f=[],m=[],i=h,a=v;i||a;)v=d[i][a]-1,a&&v===d[i][a-1]?f.push(l[l.length]={status:n,value:t[--a],index:a}):i&&v===d[i-1][a]?m.push(l[l.length]={status:r,value:e[--i],index:i}):(--a,--i,o.sparse||l.push({status:"retained",value:t[a]}));return p.a.Cb(f,m,10*h),l.reverse()}return function(t,n,r){return r="boolean"==typeof r?{dontLimitMoves:r}:r||{},t=t||[],n=n||[],t.length<=n.length?e(t,n,"added","deleted",r):e(n,t,"deleted","added",r)}}(),p.b("utils.compareArrays",p.a.Ma),function(){function t(t,n,r,o,i){var a=[],s=p.j(function(){var e=n(r,i,p.a.na(a,t))||[];0<a.length&&(p.a.Qb(a,e),o&&p.k.u(o,null,[r,e,i])),a.length=0,p.a.ia(a,e)},null,{q:t,Pa:function(){return!p.a.tb(a)}});return{aa:a,j:s.$()?s:e}}var n=p.a.f.I();p.a.fb=function(r,o,i,a,s){function u(e,t){w=f[t],g!==t&&(T[e]=w),w.Ua(g++),p.a.na(w.aa,r),v.push(w),b.push(w)}function c(e,t){if(e)for(var n=0,r=t.length;r>n;n++)t[n]&&p.a.o(t[n].aa,function(r){e(r,n,t[n].wa)})}o=o||[],a=a||{};var l=p.a.f.get(r,n)===e,f=p.a.f.get(r,n)||[],d=p.a.Ka(f,function(e){return e.wa}),h=p.a.Ma(d,o,a.dontLimitMoves),v=[],m=0,g=0,y=[],b=[];o=[];for(var w,x,C,T=[],d=[],k=0;x=h[k];k++)switch(C=x.moved,x.status){case"deleted":C===e&&(w=f[m],w.j&&w.j.p(),y.push.apply(y,p.a.na(w.aa,r)),a.beforeRemove&&(o[k]=w,b.push(w))),m++;break;case"retained":u(k,m++);break;case"added":C!==e?u(k,C):(w={wa:x.value,Ua:p.r(g++)},v.push(w),b.push(w),l||(d[k]=w))}c(a.beforeMove,T),p.a.o(y,a.beforeRemove?p.S:p.removeNode);for(var S,k=0,l=p.e.firstChild(r);w=b[k];k++){for(w.aa||p.a.extend(w,t(r,i,w.wa,s,w.Ua)),m=0;h=w.aa[m];l=h.nextSibling,S=h,m++)h!==l&&p.e.Fb(r,h,S);!w.rc&&s&&(s(w.wa,w.aa,w.Ua),w.rc=!0)}c(a.beforeRemove,o),c(a.afterMove,T),c(a.afterAdd,d),p.a.f.set(r,n,v)}}(),p.b("utils.setDomNodeChildrenFromArrayMapping",p.a.fb),p.P=function(){this.allowTemplateRewriting=!1},p.P.prototype=new p.J,p.P.prototype.renderTemplateSource=function(e,t,n,r){return(t=(9>p.a.M?0:e.nodes)?e.nodes():null)?p.a.O(t.cloneNode(!0).childNodes):(e=e.text(),p.a.ca(e,r))},p.P.Va=new p.P,p.hb(p.P.Va),p.b("nativeTemplateEngine",p.P),function(){p.Ya=function(){var e=this.uc=function(){if(!o||!o.tmpl)return 0;try{if(0<=o.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(t,r,i,a){if(a=a||n,i=i||{},2>e)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var s=t.data("precompiled");return s||(s=t.text()||"",s=o.template(null,"{{ko_with $item.koBindingContext}}"+s+"{{/ko_with}}"),t.data("precompiled",s)),t=[r.$data],r=o.extend({koBindingContext:r},i.templateOptions),r=o.tmpl(s,t,r),r.appendTo(a.createElement("div")),o.fragments={},r},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){n.write("<script type='text/html' id='"+e+"'>"+t+"</script>")},e>0&&(o.tmpl.tag.ko_code={open:"__.push($1 || '');"},o.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},p.Ya.prototype=new p.J;var e=new p.Ya;0<e.uc&&p.hb(e),p.b("jqueryTmplTemplateEngine",p.Ya)}()})}()}(),!function(e,t){"object"==typeof module&&module.exports?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Spinner=t()}(this,function(){"use strict";function e(e,t){var n,r=document.createElement(e||"div");for(n in t)r[n]=t[n];return r}function t(e){for(var t=1,n=arguments.length;n>t;t++)e.appendChild(arguments[t]);return e}function n(e,t,n,r){var o=["opacity",t,~~(100*e),n,r].join("-"),i=.01+n/r*100,a=Math.max(1-(1-e)/t*(100-i),e),s=c.substring(0,c.indexOf("Animation")).toLowerCase(),u=s&&"-"+s+"-"||"";return p[o]||(l.insertRule("@"+u+"keyframes "+o+"{0%{opacity:"+a+"}"+i+"%{opacity:"+e+"}"+(i+.01)+"%{opacity:1}"+(i+t)%100+"%{opacity:"+e+"}100%{opacity:"+a+"}}",l.cssRules.length),p[o]=1),o}function r(e,t){var n,r,o=e.style;if(t=t.charAt(0).toUpperCase()+t.slice(1),void 0!==o[t])return t;for(r=0;r<f.length;r++)if(n=f[r]+t,void 0!==o[n])return n}function o(e,t){for(var n in t)e.style[r(e,n)||n]=t[n];return e}function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)void 0===e[r]&&(e[r]=n[r])}return e}function a(e,t){return"string"==typeof e?e:e[t%e.length]}function s(e){this.opts=i(e||{},s.defaults,d)}function u(){function n(t,n){return e("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',n)}l.addRule(".spin-vml","behavior:url(#default#VML)"),s.prototype.lines=function(e,r){function i(){return o(n("group",{coordsize:l+" "+l,coordorigin:-c+" "+-c}),{width:l,height:l})}function s(e,s,u){t(p,t(o(i(),{rotation:360/r.lines*e+"deg",left:~~s}),t(o(n("roundrect",{arcsize:r.corners}),{width:c,height:r.scale*r.width,left:r.scale*r.radius,top:-r.scale*r.width>>1,filter:u}),n("fill",{color:a(r.color,e),opacity:r.opacity}),n("stroke",{opacity:0}))))}var u,c=r.scale*(r.length+r.width),l=2*r.scale*c,f=-(r.width+r.length)*r.scale*2+"px",p=o(i(),{position:"absolute",top:f,left:f});if(r.shadow)for(u=1;u<=r.lines;u++)s(u,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(u=1;u<=r.lines;u++)s(u);return t(e,p)},s.prototype.opacity=function(e,t,n,r){var o=e.firstChild;r=r.shadow&&r.lines||0,o&&t+r<o.childNodes.length&&(o=o.childNodes[t+r],o=o&&o.firstChild,o=o&&o.firstChild,o&&(o.opacity=n))}}var c,l,f=["webkit","Moz","ms","O"],p={},d={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",opacity:.25,rotate:0,direction:1,speed:1,trail:100,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:!1,hwaccel:!1,position:"absolute"};if(s.defaults={},i(s.prototype,{spin:function(t){this.stop();var n=this,r=n.opts,i=n.el=e(null,{className:r.className});if(o(i,{position:r.position,width:0,zIndex:r.zIndex,left:r.left,top:r.top}),t&&t.insertBefore(i,t.firstChild||null),i.setAttribute("role","progressbar"),n.lines(i,n.opts),!c){var a,s=0,u=(r.lines-1)*(1-r.direction)/2,l=r.fps,f=l/r.speed,p=(1-r.opacity)/(f*r.trail/100),d=f/r.lines;!function h(){s++;for(var e=0;e<r.lines;e++)a=Math.max(1-(s+(r.lines-e)*d)%f*p,r.opacity),n.opacity(i,e*r.direction+u,a,r);n.timeout=n.el&&setTimeout(h,~~(1e3/l))}()}return n},stop:function(){var e=this.el;return e&&(clearTimeout(this.timeout),e.parentNode&&e.parentNode.removeChild(e),this.el=void 0),this},lines:function(r,i){function s(t,n){return o(e(),{position:"absolute",width:i.scale*(i.length+i.width)+"px",height:i.scale*i.width+"px",background:t,boxShadow:n,transformOrigin:"left",transform:"rotate("+~~(360/i.lines*l+i.rotate)+"deg) translate("+i.scale*i.radius+"px,0)",borderRadius:(i.corners*i.scale*i.width>>1)+"px"})}for(var u,l=0,f=(i.lines-1)*(1-i.direction)/2;l<i.lines;l++)u=o(e(),{position:"absolute",top:1+~(i.scale*i.width/2)+"px",transform:i.hwaccel?"translate3d(0,0,0)":"",opacity:i.opacity,animation:c&&n(i.opacity,i.trail,f+l*i.direction,i.lines)+" "+1/i.speed+"s linear infinite"}),i.shadow&&t(u,o(s("#000","0 0 4px #000"),{top:"2px"})),t(r,t(u,s(a(i.color,l),"0 0 1px rgba(0,0,0,.1)")));return r},opacity:function(e,t,n){t<e.childNodes.length&&(e.childNodes[t].style.opacity=n)}}),"undefined"!=typeof document){l=function(){var n=e("style",{type:"text/css"});return t(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}();var h=o(e("group"),{behavior:"url(#default#VML)"});!r(h,"transform")&&h.adj?u():c=r(h,"animation")}return s}),!function(e,t,n){"use strict";!function r(e,t,n){function o(a,s){if(!t[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=t[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return o(n?n:t)},l,l.exports,r,e,t,n)}return t[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(r){var o,i,a,s,u=function(e){return e&&e.__esModule?e:{"default":e}},c=r("./modules/handle-dom"),l=r("./modules/utils"),f=r("./modules/handle-swal-dom"),p=r("./modules/handle-click"),d=r("./modules/handle-key"),h=u(d),v=r("./modules/default-params"),m=u(v),g=r("./modules/set-params"),y=u(g);a=s=function(){function r(e){var t=a;return t[e]===n?m["default"][e]:t[e]}var a=arguments[0];if(c.addClass(t.body,"stop-scrolling"),f.resetInput(),a===n)return l.logStr("SweetAlert expects at least 1 attribute!"),!1;var u=l.extend({},m["default"]);switch(typeof a){case"string":u.title=a,u.text=arguments[1]||"",u.type=arguments[2]||"";break;case"object":if(a.title===n)return l.logStr('Missing "title" argument!'),!1;u.title=a.title;for(var d in m["default"])u[d]=r(d);u.confirmButtonText=u.showCancelButton?"Confirm":m["default"].confirmButtonText,u.confirmButtonText=r("confirmButtonText"),u.doneFunction=arguments[1]||null;break;default:return l.logStr('Unexpected type of argument! Expected "string" or "object", got '+typeof a),!1}y["default"](u),f.fixVerticalPosition(),f.openModal(arguments[1]);for(var v=f.getModal(),g=v.querySelectorAll("button"),b=["onclick","onmouseover","onmouseout","onmousedown","onmouseup","onfocus"],w=function(e){return p.handleButton(e,u,v)},x=0;x<g.length;x++)for(var C=0;C<b.length;C++){var T=b[C];g[x][T]=w}f.getOverlay().onclick=w,
  o=e.onkeydown;var k=function(e){return h["default"](e,u,v)};e.onkeydown=k,e.onfocus=function(){setTimeout(function(){i!==n&&(i.focus(),i=n)},0)},s.enableButtons()},a.setDefaults=s.setDefaults=function(e){if(!e)throw new Error("userParams is required");if("object"!=typeof e)throw new Error("userParams has to be a object");l.extend(m["default"],e)},a.close=s.close=function(){var r=f.getModal();c.fadeOut(f.getOverlay(),5),c.fadeOut(r,5),c.removeClass(r,"showSweetAlert"),c.addClass(r,"hideSweetAlert"),c.removeClass(r,"visible");var a=r.querySelector(".sa-icon.sa-success");c.removeClass(a,"animate"),c.removeClass(a.querySelector(".sa-tip"),"animateSuccessTip"),c.removeClass(a.querySelector(".sa-long"),"animateSuccessLong");var s=r.querySelector(".sa-icon.sa-error");c.removeClass(s,"animateErrorIcon"),c.removeClass(s.querySelector(".sa-x-mark"),"animateXMark");var u=r.querySelector(".sa-icon.sa-warning");return c.removeClass(u,"pulseWarning"),c.removeClass(u.querySelector(".sa-body"),"pulseWarningIns"),c.removeClass(u.querySelector(".sa-dot"),"pulseWarningIns"),setTimeout(function(){var e=r.getAttribute("data-custom-class");c.removeClass(r,e)},300),c.removeClass(t.body,"stop-scrolling"),e.onkeydown=o,e.previousActiveElement&&e.previousActiveElement.focus(),i=n,clearTimeout(r.timeout),!0},a.showInputError=s.showInputError=function(e){var t=f.getModal(),n=t.querySelector(".sa-input-error");c.addClass(n,"show");var r=t.querySelector(".sa-error-container");c.addClass(r,"show"),r.querySelector("p").innerHTML=e,setTimeout(function(){a.enableButtons()},1),t.querySelector("input").focus()},a.resetInputError=s.resetInputError=function(e){if(e&&13===e.keyCode)return!1;var t=f.getModal(),n=t.querySelector(".sa-input-error");c.removeClass(n,"show");var r=t.querySelector(".sa-error-container");c.removeClass(r,"show")},a.disableButtons=s.disableButtons=function(){var e=f.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!0,n.disabled=!0},a.enableButtons=s.enableButtons=function(){var e=f.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!1,n.disabled=!1},"undefined"!=typeof e?e.sweetAlert=e.swal=a:l.logStr("SweetAlert is a frontend module!")},{"./modules/default-params":2,"./modules/handle-click":3,"./modules/handle-dom":4,"./modules/handle-key":5,"./modules/handle-swal-dom":6,"./modules/set-params":8,"./modules/utils":9}],2:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r={title:"",text:"",type:null,allowOutsideClick:!1,showConfirmButton:!0,showCancelButton:!1,closeOnConfirm:!0,closeOnCancel:!0,confirmButtonText:"OK",confirmButtonColor:"#8CD4F5",cancelButtonText:"Cancel",imageUrl:null,imageSize:null,timer:null,customClass:"",html:!1,animation:!0,allowEscapeKey:!0,inputType:"text",inputPlaceholder:"",inputValue:"",showLoaderOnConfirm:!1};n["default"]=r,t.exports=n["default"]},{}],3:[function(t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var o=t("./utils"),i=(t("./handle-swal-dom"),t("./handle-dom")),a=function(t,n,r){function a(e){h&&n.confirmButtonColor&&(d.style.backgroundColor=e)}var c,l,f,p=t||e.event,d=p.target||p.srcElement,h=-1!==d.className.indexOf("confirm"),v=-1!==d.className.indexOf("sweet-overlay"),m=i.hasClass(r,"visible"),g=n.doneFunction&&"true"===r.getAttribute("data-has-done-function");switch(h&&n.confirmButtonColor&&(c=n.confirmButtonColor,l=o.colorLuminance(c,-.04),f=o.colorLuminance(c,-.14)),p.type){case"mouseover":a(l);break;case"mouseout":a(c);break;case"mousedown":a(f);break;case"mouseup":a(l);break;case"focus":var y=r.querySelector("button.confirm"),b=r.querySelector("button.cancel");h?b.style.boxShadow="none":y.style.boxShadow="none";break;case"click":var w=r===d,x=i.isDescendant(r,d);if(!w&&!x&&m&&!n.allowOutsideClick)break;h&&g&&m?s(r,n):g&&m||v?u(r,n):i.isDescendant(r,d)&&"BUTTON"===d.tagName&&sweetAlert.close()}},s=function(e,t){var n=!0;i.hasClass(e,"show-input")&&(n=e.querySelector("input").value,n||(n="")),t.doneFunction(n),t.closeOnConfirm&&sweetAlert.close(),t.showLoaderOnConfirm&&sweetAlert.disableButtons()},u=function(e,t){var n=String(t.doneFunction).replace(/\s/g,""),r="function("===n.substring(0,9)&&")"!==n.substring(9,10);r&&t.doneFunction(!1),t.closeOnCancel&&sweetAlert.close()};r["default"]={handleButton:a,handleConfirm:s,handleCancel:u},n.exports=r["default"]},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],4:[function(n,r,o){Object.defineProperty(o,"__esModule",{value:!0});var i=function(e,t){return new RegExp(" "+t+" ").test(" "+e.className+" ")},a=function(e,t){i(e,t)||(e.className+=" "+t)},s=function(e,t){var n=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(i(e,t)){for(;n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}},u=function(e){var n=t.createElement("div");return n.appendChild(t.createTextNode(e)),n.innerHTML},c=function(e){e.style.opacity="",e.style.display="block"},l=function(e){if(e&&!e.length)return c(e);for(var t=0;t<e.length;++t)c(e[t])},f=function(e){e.style.opacity="",e.style.display="none"},p=function(e){if(e&&!e.length)return f(e);for(var t=0;t<e.length;++t)f(e[t])},d=function(e,t){for(var n=t.parentNode;null!==n;){if(n===e)return!0;n=n.parentNode}return!1},h=function(e){e.style.left="-9999px",e.style.display="block";var t,n=e.clientHeight;return t="undefined"!=typeof getComputedStyle?parseInt(getComputedStyle(e).getPropertyValue("padding-top"),10):parseInt(e.currentStyle.padding),e.style.left="",e.style.display="none","-"+parseInt((n+t)/2)+"px"},v=function(e,t){if(+e.style.opacity<1){t=t||16,e.style.opacity=0,e.style.display="block";var n=+new Date,r=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity+(new Date-n)/100,n=+new Date,+e.style.opacity<1&&setTimeout(r,t)});r()}e.style.display="block"},m=function(e,t){t=t||16,e.style.opacity=1;var n=+new Date,r=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity-(new Date-n)/100,n=+new Date,+e.style.opacity>0?setTimeout(r,t):e.style.display="none"});r()},g=function(n){if("function"==typeof MouseEvent){var r=new MouseEvent("click",{view:e,bubbles:!1,cancelable:!0});n.dispatchEvent(r)}else if(t.createEvent){var o=t.createEvent("MouseEvents");o.initEvent("click",!1,!1),n.dispatchEvent(o)}else t.createEventObject?n.fireEvent("onclick"):"function"==typeof n.onclick&&n.onclick()},y=function(t){"function"==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):e.event&&e.event.hasOwnProperty("cancelBubble")&&(e.event.cancelBubble=!0)};o.hasClass=i,o.addClass=a,o.removeClass=s,o.escapeHtml=u,o._show=c,o.show=l,o._hide=f,o.hide=p,o.isDescendant=d,o.getTopMargin=h,o.fadeIn=v,o.fadeOut=m,o.fireClick=g,o.stopEventPropagation=y},{}],5:[function(t,r,o){Object.defineProperty(o,"__esModule",{value:!0});var i=t("./handle-dom"),a=t("./handle-swal-dom"),s=function(t,r,o){var s=t||e.event,u=s.keyCode||s.which,c=o.querySelector("button.confirm"),l=o.querySelector("button.cancel"),f=o.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(u)){for(var p=s.target||s.srcElement,d=-1,h=0;h<f.length;h++)if(p===f[h]){d=h;break}9===u?(p=-1===d?c:d===f.length-1?f[0]:f[d+1],i.stopEventPropagation(s),p.focus(),r.confirmButtonColor&&a.setFocusStyle(p,r.confirmButtonColor)):13===u?("INPUT"===p.tagName&&(p=c,c.focus()),p=-1===d?c:n):27===u&&r.allowEscapeKey===!0?(p=l,i.fireClick(p,s)):p=n}};o["default"]=s,r.exports=o["default"]},{"./handle-dom":4,"./handle-swal-dom":6}],6:[function(n,r,o){var i=function(e){return e&&e.__esModule?e:{"default":e}};Object.defineProperty(o,"__esModule",{value:!0});var a=n("./utils"),s=n("./handle-dom"),u=n("./default-params"),c=i(u),l=n("./injected-html"),f=i(l),p=".sweet-alert",d=".sweet-overlay",h=function(){var e=t.createElement("div");for(e.innerHTML=f["default"];e.firstChild;)t.body.appendChild(e.firstChild)},v=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=t.querySelector(p);return e||(h(),e=v()),e}),m=function(){var e=v();return e?e.querySelector("input"):void 0},g=function(){return t.querySelector(d)},y=function(e,t){var n=a.hexToRgb(t);e.style.boxShadow="0 0 2px rgba("+n+", 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)"},b=function(n){var r=v();s.fadeIn(g(),10),s.show(r),s.addClass(r,"showSweetAlert"),s.removeClass(r,"hideSweetAlert"),e.previousActiveElement=t.activeElement;var o=r.querySelector("button.confirm");o.focus(),setTimeout(function(){s.addClass(r,"visible")},500);var i=r.getAttribute("data-timer");if("null"!==i&&""!==i){var a=n;r.timeout=setTimeout(function(){var e=(a||null)&&"true"===r.getAttribute("data-has-done-function");e?a(null):sweetAlert.close()},i)}},w=function(){var e=v(),t=m();s.removeClass(e,"show-input"),t.value=c["default"].inputValue,t.setAttribute("type",c["default"].inputType),t.setAttribute("placeholder",c["default"].inputPlaceholder),x()},x=function(e){if(e&&13===e.keyCode)return!1;var t=v(),n=t.querySelector(".sa-input-error");s.removeClass(n,"show");var r=t.querySelector(".sa-error-container");s.removeClass(r,"show")},C=function(){var e=v();e.style.marginTop=s.getTopMargin(v())};o.sweetAlertInitialize=h,o.getModal=v,o.getOverlay=g,o.getInput=m,o.setFocusStyle=y,o.openModal=b,o.resetInput=w,o.resetInputError=x,o.fixVerticalPosition=C},{"./default-params":2,"./handle-dom":4,"./injected-html":7,"./utils":9}],7:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r='<div class="sweet-overlay" tabIndex="-1"></div><div class="sweet-alert"><div class="sa-icon sa-error">\n      <span class="sa-x-mark">\n        <span class="sa-line sa-left"></span>\n        <span class="sa-line sa-right"></span>\n      </span>\n    </div><div class="sa-icon sa-warning">\n      <span class="sa-body"></span>\n      <span class="sa-dot"></span>\n    </div><div class="sa-icon sa-info"></div><div class="sa-icon sa-success">\n      <span class="sa-line sa-tip"></span>\n      <span class="sa-line sa-long"></span>\n\n      <div class="sa-placeholder"></div>\n      <div class="sa-fix"></div>\n    </div><div class="sa-icon sa-custom"></div><h2>Title</h2>\n    <p>Text</p>\n    <fieldset>\n      <input type="text" tabIndex="3" />\n      <div class="sa-input-error"></div>\n    </fieldset><div class="sa-error-container">\n      <div class="icon">!</div>\n      <p>Not valid!</p>\n    </div><div class="sa-button-container">\n      <button class="cancel" tabIndex="2">Cancel</button>\n      <div class="sa-confirm-button-container">\n        <button class="confirm" tabIndex="1">OK</button><div class="la-ball-fall">\n          <div></div>\n          <div></div>\n          <div></div>\n        </div>\n      </div>\n    </div></div>';n["default"]=r,t.exports=n["default"]},{}],8:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var o=e("./utils"),i=e("./handle-swal-dom"),a=e("./handle-dom"),s=["error","warning","info","success","input","prompt"],u=function(e){var t=i.getModal(),r=t.querySelector("h2"),u=t.querySelector("p"),c=t.querySelector("button.cancel"),l=t.querySelector("button.confirm");if(r.innerHTML=e.html?e.title:a.escapeHtml(e.title).split("\n").join("<br>"),u.innerHTML=e.html?e.text:a.escapeHtml(e.text||"").split("\n").join("<br>"),e.text&&a.show(u),e.customClass)a.addClass(t,e.customClass),t.setAttribute("data-custom-class",e.customClass);else{var f=t.getAttribute("data-custom-class");a.removeClass(t,f),t.setAttribute("data-custom-class","")}if(a.hide(t.querySelectorAll(".sa-icon")),e.type&&!o.isIE8()){var p=function(){for(var r=!1,o=0;o<s.length;o++)if(e.type===s[o]){r=!0;break}if(!r)return logStr("Unknown alert type: "+e.type),{v:!1};var u=["success","error","warning","info"],c=n;-1!==u.indexOf(e.type)&&(c=t.querySelector(".sa-icon.sa-"+e.type),a.show(c));var l=i.getInput();switch(e.type){case"success":a.addClass(c,"animate"),a.addClass(c.querySelector(".sa-tip"),"animateSuccessTip"),a.addClass(c.querySelector(".sa-long"),"animateSuccessLong");break;case"error":a.addClass(c,"animateErrorIcon"),a.addClass(c.querySelector(".sa-x-mark"),"animateXMark");break;case"warning":a.addClass(c,"pulseWarning"),a.addClass(c.querySelector(".sa-body"),"pulseWarningIns"),a.addClass(c.querySelector(".sa-dot"),"pulseWarningIns");break;case"input":case"prompt":l.setAttribute("type",e.inputType),l.value=e.inputValue,l.setAttribute("placeholder",e.inputPlaceholder),a.addClass(t,"show-input"),setTimeout(function(){l.focus(),l.addEventListener("keyup",swal.resetInputError)},400)}}();if("object"==typeof p)return p.v}if(e.imageUrl){var d=t.querySelector(".sa-icon.sa-custom");d.style.backgroundImage="url("+e.imageUrl+")",a.show(d);var h=80,v=80;if(e.imageSize){var m=e.imageSize.toString().split("x"),g=m[0],y=m[1];g&&y?(h=g,v=y):logStr("Parameter imageSize expects value with format WIDTHxHEIGHT, got "+e.imageSize)}d.setAttribute("style",d.getAttribute("style")+"width:"+h+"px; height:"+v+"px")}t.setAttribute("data-has-cancel-button",e.showCancelButton),e.showCancelButton?c.style.display="inline-block":a.hide(c),t.setAttribute("data-has-confirm-button",e.showConfirmButton),e.showConfirmButton?l.style.display="inline-block":a.hide(l),e.cancelButtonText&&(c.innerHTML=a.escapeHtml(e.cancelButtonText)),e.confirmButtonText&&(l.innerHTML=a.escapeHtml(e.confirmButtonText)),e.confirmButtonColor&&(l.style.backgroundColor=e.confirmButtonColor,l.style.borderLeftColor=e.confirmLoadingButtonColor,l.style.borderRightColor=e.confirmLoadingButtonColor,i.setFocusStyle(l,e.confirmButtonColor)),t.setAttribute("data-allow-outside-click",e.allowOutsideClick);var b=e.doneFunction?!0:!1;t.setAttribute("data-has-done-function",b),e.animation?"string"==typeof e.animation?t.setAttribute("data-animation",e.animation):t.setAttribute("data-animation","pop"):t.setAttribute("data-animation","none"),t.setAttribute("data-timer",e.timer)};r["default"]=u,t.exports=r["default"]},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],9:[function(t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var o=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},i=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16):null},a=function(){return e.attachEvent&&!e.addEventListener},s=function(t){e.console&&e.console.log("SweetAlert: "+t)},u=function(e,t){e=String(e).replace(/[^0-9a-f]/gi,""),e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;var n,r,o="#";for(r=0;3>r;r++)n=parseInt(e.substr(2*r,2),16),n=Math.round(Math.min(Math.max(0,n+n*t),255)).toString(16),o+=("00"+n).substr(n.length);return o};r.extend=o,r.hexToRgb=i,r.isIE8=a,r.logStr=s,r.colorLuminance=u},{}]},{},[1]),"function"==typeof define&&define.amd?define(function(){return sweetAlert}):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document),"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),function(e,t,n,r){"use strict";var o="panelSnap",i="plugin_"+o,a={isMouseDown:!1,isSnapping:!1,enabled:!0,scrollInterval:0,scrollOffset:0,init:function(t,r){var o=this;if(o.container=r,o.$container=e(r),o.$eventContainer=o.$container,o.$snapContainer=o.$container,o.$container.is("body")){o.$eventContainer=e(n),o.$snapContainer=e(n.documentElement);var i=navigator.userAgent;~i.indexOf("WebKit")&&(o.$snapContainer=e("body"))}if(o.updateScrollInterval(),o.options=e.extend(!0,{},e.fn.panelSnap.options,t),o.bind(),o.options.$menu!==!1&&e(".active",o.options.$menu).length>0)e(".active",o.options.$menu).click();else{var a=o.getPanel(":first");o.activatePanel(a)}return o},bind:function(){var n=this;n.bindProxied(n.$eventContainer,"scrollstop",n.scrollStop),n.bindProxied(n.$eventContainer,"mousewheel",n.mouseWheel),n.bindProxied(n.$eventContainer,"mousedown",n.mouseDown),n.bindProxied(n.$eventContainer,"mouseup",n.mouseUp),n.bindProxied(e(t),"resizestop",n.resize),n.options.$menu&&n.bindProxied(n.options.$menu,"click",n.captureMenuClick,n.options.menuSelector),(n.options.navigation.keys.nextKey||n.options.navigation.keys.prevKey)&&n.bindProxied(e(t),"keydown",n.keyDown),n.options.navigation.buttons.$nextButton&&n.bindProxied(n.options.navigation.buttons.$nextButton,"click",n.captureNextClick),n.options.navigation.buttons.$prevButton&&n.bindProxied(n.options.navigation.buttons.$prevButton,"click",n.capturePrevClick)},bindProxied:function(t,n,r,o){var i=this;o="string"==typeof o?o:null,t.on(n+i.options.namespace,o,e.proxy(function(e){return r.call(i,e)},i))},destroy:function(){var n=this;n.$eventContainer.off(n.options.namespace),e(t).off(n.options.namespace),n.options.$menu!==!1&&e(n.options.menuSelector,n.options.$menu).off(n.options.namespace),n.$container.removeData(i)},scrollStop:function(e){var t=this;if(e.stopPropagation(),!t.isMouseDown&&!t.isSnapping){t.updateScrollInterval();var n,r=t.$snapContainer.scrollTop(),o=r-t.scrollOffset,i=t.$container[0].scrollHeight-t.scrollInterval,a=t.getPanel().length-1;n=t.enabled&&o<-t.options.directionThreshold&&o>-t.scrollInterval?Math.floor(r/t.scrollInterval):t.enabled&&o>t.options.directionThreshold&&o<t.scrollInterval?Math.ceil(r/t.scrollInterval):Math.round(r/t.scrollInterval),n=Math.max(0,Math.min(n,a));var s=t.getPanel(":eq("+n+")");return t.enabled?void(t.getPanelsInViewport().length<2||(0>=r||r>=i?(t.activatePanel(s),t.scrollOffset=0>=r?0:i):t.snapToPanel(s))):void(s.is(t.getPanel(".active"))||t.activatePanel(s))}},getPanelsInViewport:function(){var n=this,r=e(t),o={top:r.scrollTop()};o.bottom=o.top+r.height();var i=n.getPanel().filter(function(t,n){var r=e(n),i=r.offset();return i.bottom=i.top+r.outerHeight(),!(o.bottom<i.top||o.top>i.bottom)});return i},mouseWheel:function(e){var t=this;t.isSnapping&&(t.scrollOffset=t.$snapContainer.scrollTop(),t.$container.stop(!0),t.isSnapping=!1)},mouseDown:function(e){var t=this;t.isMouseDown=!0},mouseUp:function(e){var t=this;t.isMouseDown=!1,t.scrollOffset!==t.$snapContainer.scrollTop()&&t.scrollStop(e)},keyDown:function(e){var t=this,n=t.options.navigation;if(t.enabled){switch(e.which){case n.keys.prevKey:case n.keys.nextKey:e.preventDefault()}if(!t.isSnapping)switch(e.which){case n.keys.prevKey:t.snapTo("prev",n.wrapAround);break;case n.keys.nextKey:t.snapTo("next",n.wrapAround)}}},captureNextClick:function(e){var t=this;e.preventDefault(),t.isSnapping||t.snapTo("next",t.options.navigation.wrapAround)},capturePrevClick:function(e){var t=this;e.preventDefault(),t.isSnapping||t.snapTo("prev",t.options.navigation.wrapAround)},resize:function(e){var t=this;if(t.updateScrollInterval(),t.enabled){var n=t.getPanel(".active");t.snapToPanel(n)}},captureMenuClick:function(t){var n=this,r=e(t.currentTarget).data("panel"),o=n.getPanel('[data-panel="'+r+'"]');return n.snapToPanel(o),!1},snapToPanel:function(e){var t=this;if(e.jquery){t.isSnapping=!0,t.options.onSnapStart.call(t,e),t.$container.trigger("panelsnap:start",[e]);var n=0;n=t.$container.is("body")?e.offset().top-t.options.offset:t.$snapContainer.scrollTop()+e.position().top-t.options.offset,t.$snapContainer.stop(!0).delay(t.options.delay).animate({scrollTop:n},t.options.slideSpeed,t.options.easing,function(){t.scrollOffset=t.$snapContainer.scrollTop(),t.isSnapping=!1,t.options.onSnapFinish.call(t,e),t.$container.trigger("panelsnap:finish",[e]),t.activatePanel(e)})}},activatePanel:function(t){var n=this;if(n.getPanel(".active").removeClass("active"),t.addClass("active"),n.options.$menu!==!1){var r=n.options.menuSelector+".active";e(r,n.options.$menu).removeClass("active");var o='[data-panel="'+t.data("panel")+'"]',i=n.options.menuSelector+o,a=e(i,n.options.$menu);a.addClass("active")}var s=n.options.navigation;if(!s.wrapAround){var u=n.getPanel(),c=u.index(n.getPanel(".active"));s.buttons.$nextButton!==!1&&(t=u.eq(c+1),t.length<1?(e(s.buttons.$nextButton).attr("aria-disabled","true"),e(s.buttons.$nextButton).addClass("disabled")):(e(s.buttons.$nextButton).attr("aria-disabled","false"),e(s.buttons.$nextButton).removeClass("disabled"))),s.buttons.$prevButton!==!1&&(1>c?(e(s.buttons.$prevButton).attr("aria-disabled","true"),e(s.buttons.$prevButton).addClass("disabled")):(e(s.buttons.$prevButton).attr("aria-disabled","false"),e(s.buttons.$prevButton).removeClass("disabled")))}n.options.onActivate.call(n,t),n.$container.trigger("panelsnap:activate",[t])},getPanel:function(t){var n=this;return"undefined"==typeof t&&(t=""),e(n.options.panelSelector+t,n.$container)},snapTo:function(e,t){var n=this;"boolean"!=typeof t&&(t=!0);var r,o=n.getPanel(),i=o.index(n.getPanel(".active"));switch(e){case"prev":r=o.eq(i-1),1>i&&!t&&(r=[]);break;case"next":r=o.eq(i+1),r.length<1&&t&&(r=o.filter(":first"));break;case"first":r=o.filter(":first");break;case"last":r=o.filter(":last")}r.length>0&&n.snapToPanel(r)},getScrollInterval:function(){return this.$container.is("body")?t.innerHeight:this.$container.height()},updateScrollInterval:function(){this.scrollInterval=this.getScrollInterval()},enable:function(){var e=this;e.scrollOffset=e.$snapContainer.scrollTop(),e.enabled=!0},disable:function(){var e=this;e.enabled=!1},toggle:function(){var e=this;e.enabled?e.disable():e.enable()}};e.fn[o]=function(t){var n=Array.prototype.slice.call(arguments);return this.each(function(){var r=e.data(this,i);if("object"!=typeof t&&"init"!==t&&t){if(!r)return void e.error("Plugin is not initialized for this object yet.");if(!r[t])return void e.error("Method "+t+" does not exist on jQuery.panelSnap.");var o=t;t=n.slice(1),r[o].apply(r,t)}else{if(r)return void e.error("Plugin is already initialized for this object.");"init"===t&&(t=n[1]||{}),r=Object.create(a).init(t,this),e.data(this,i,r)}})},e.fn[o].options={$menu:!1,menuSelector:"a",panelSelector:"> section",namespace:".panelSnap",onSnapStart:function(){},onSnapFinish:function(){},onActivate:function(){},directionThreshold:50,slideSpeed:200,delay:0,easing:"linear",offset:0,navigation:{keys:{nextKey:!1,prevKey:!1},buttons:{$nextButton:!1,$prevButton:!1},wrapAround:!1}}}(jQuery,window,document),function(e){e.event.special.scrollstart={enabled:!0,setup:function(){function t(e,t){e.type=t?"scrollstart":"scrollstop",i.trigger(e)}var n,r,o=this,i=e(o);i.data("scrollwatch",!0),i.on("touchstart",function(e){r=!0}),i.on("touchleave touchcancel touchend",function(e){r=!1,setTimeout(function(){clearTimeout(n)},50)}),i.on("touchmove scroll",function(o){r||e.event.special.scrollstart.enabled&&(e.event.special.scrollstart.scrolling||(e.event.special.scrollstart.scrolling=!0,t(o,!0)),clearTimeout(n),n=setTimeout(function(){e.event.special.scrollstart.scrolling=!1,t(o,!1)},50))})}},e.event.special.scrollstop={setup:function(){var t=this,n=e(t);n.data("scrollwatch")||e(this).on("scrollstart",function(){})}}}(jQuery),function(e){e.event.special.resizestart={enabled:!0,setup:function(){function t(e,t){e.type=t?"resizestart":"resizestop",o.trigger(e)}var n,r=this,o=e(r);o.data("resizewatch",!0),o.on("resize",function(r){e.event.special.resizestart.enabled&&(e.event.special.resizestart.resizing||(e.event.special.resizestart.resizing=!0,t(r,!0)),clearTimeout(n),n=setTimeout(function(){e.event.special.resizestart.resizing=!1,t(r,!1)},200))})}},e.event.special.resizestop={setup:function(){var t=this,n=e(t);n.data("resizewatch")||e(this).on("resizestart",function(){})}}}(jQuery),function(e){function t(t){var n=t||window.event,r=[].slice.call(arguments,1),o=0,i=0,a=0;return t=e.event.fix(n),t.type="mousewheel",n.wheelDelta&&(o=n.wheelDelta/120),n.detail&&(o=-n.detail/3),a=o,void 0!==n.axis&&n.axis===n.HORIZONTAL_AXIS&&(a=0,i=-1*o),void 0!==n.wheelDeltaY&&(a=n.wheelDeltaY/120),void 0!==n.wheelDeltaX&&(i=-1*n.wheelDeltaX/120),r.unshift(t,o,i,a),(e.event.dispatch||e.event.handle).apply(this,r)}var n=["DOMMouseScroll","mousewheel"];if(e.event.fixHooks)for(var r=n.length;r;)e.event.fixHooks[n[--r]]=e.event.mouseHooks;e.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=n.length;e;)this.addEventListener(n[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=n.length;e;)this.removeEventListener(n[--e],t,!1);else this.onmousewheel=null}},e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(jQuery);