/*!
 * jQuery JavaScript Library v2.1.4
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2015-04-28T16:01Z
 */
!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e="length"in t&&t.length,n=Z.type(t);return"function"===n||Z.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function r(t,e,n){if(Z.isFunction(e))return Z.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return Z.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(at.test(e))return Z.filter(e,t,n);e=Z.filter(e,t)}return Z.grep(t,function(t){return X.call(e,t)>=0!==n})}function i(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e=dt[t]={};return Z.each(t.match(pt)||[],function(t,n){e[n]=!0}),e}function s(){K.removeEventListener("DOMContentLoaded",s,!1),t.removeEventListener("load",s,!1),Z.ready()}function a(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Z.expando+a.uid++}function u(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(wt,"-$1").toLowerCase(),n=t.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:bt.test(n)?Z.parseJSON(n):n}catch(i){}yt.set(t,e,n)}else n=void 0;return n}function c(){return!0}function l(){return!1}function h(){try{return K.activeElement}catch(t){}}function f(t,e){return Z.nodeName(t,"table")&&Z.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function p(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function d(t){var e=Lt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function g(t,e){for(var n=0,r=t.length;r>n;n++)vt.set(t[n],"globalEval",!e||vt.get(e[n],"globalEval"))}function m(t,e){var n,r,i,o,s,a,u,c;if(1===e.nodeType){if(vt.hasData(t)&&(o=vt.access(t),s=vt.set(e,o),c=o.events)){delete s.handle,s.events={};for(i in c)for(n=0,r=c[i].length;r>n;n++)Z.event.add(e,i,c[i][n])}yt.hasData(t)&&(a=yt.access(t),u=Z.extend({},a),yt.set(e,u))}}function v(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&Z.nodeName(t,e)?Z.merge([t],n):n}function y(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Et.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function b(e,n){var r,i=Z(n.createElement(e)).appendTo(n.body),o=t.getDefaultComputedStyle&&(r=t.getDefaultComputedStyle(i[0]))?r.display:Z.css(i[0],"display");return i.detach(),o}function w(t){var e=K,n=Ut[t];return n||(n=b(t,e),"none"!==n&&n||(Ft=(Ft||Z("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Ft[0].contentDocument,e.write(),e.close(),n=b(t,e),Ft.detach()),Ut[t]=n),n}function x(t,e,n){var r,i,o,s,a=t.style;return n=n||Bt(t),n&&(s=n.getPropertyValue(e)||n[e]),n&&(""!==s||Z.contains(t.ownerDocument,t)||(s=Z.style(t,e)),Ht.test(s)&&It.test(e)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function _(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function C(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),r=e,i=Yt.length;i--;)if(e=Yt[i]+n,e in t)return e;return r}function E(t,e,n){var r=zt.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function j(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,s=0;4>o;o+=2)"margin"===n&&(s+=Z.css(t,n+_t[o],!0,i)),r?("content"===n&&(s-=Z.css(t,"padding"+_t[o],!0,i)),"margin"!==n&&(s-=Z.css(t,"border"+_t[o]+"Width",!0,i))):(s+=Z.css(t,"padding"+_t[o],!0,i),"padding"!==n&&(s+=Z.css(t,"border"+_t[o]+"Width",!0,i)));return s}function k(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Bt(t),s="border-box"===Z.css(t,"boxSizing",!1,o);if(0>=i||null==i){if(i=x(t,e,o),(0>i||null==i)&&(i=t.style[e]),Ht.test(i))return i;r=s&&(G.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+j(t,e,n||(s?"border":"content"),r,o)+"px"}function T(t,e){for(var n,r,i,o=[],s=0,a=t.length;a>s;s++)r=t[s],r.style&&(o[s]=vt.get(r,"olddisplay"),n=r.style.display,e?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&Ct(r)&&(o[s]=vt.access(r,"olddisplay",w(r.nodeName)))):(i=Ct(r),"none"===n&&i||vt.set(r,"olddisplay",i?n:Z.css(r,"display"))));for(s=0;a>s;s++)r=t[s],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[s]||"":"none"));return t}function S(t,e,n,r,i){return new S.prototype.init(t,e,n,r,i)}function A(){return setTimeout(function(){Gt=void 0}),Gt=Z.now()}function R(t,e){var n,r=0,i={height:t};for(e=e?1:0;4>r;r+=2-e)n=_t[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function O(t,e,n){for(var r,i=(ne[e]||[]).concat(ne["*"]),o=0,s=i.length;s>o;o++)if(r=i[o].call(n,e,t))return r}function $(t,e,n){var r,i,o,s,a,u,c,l,h=this,f={},p=t.style,d=t.nodeType&&Ct(t),g=vt.get(t,"fxshow");n.queue||(a=Z._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,Z.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],c=Z.css(t,"display"),l="none"===c?vt.get(t,"olddisplay")||w(t.nodeName):c,"inline"===l&&"none"===Z.css(t,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in e)if(i=e[r],Qt.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(d?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;d=!0}f[r]=g&&g[r]||Z.style(t,r)}else c=void 0;if(Z.isEmptyObject(f))"inline"===("none"===c?w(t.nodeName):c)&&(p.display=c);else{g?"hidden"in g&&(d=g.hidden):g=vt.access(t,"fxshow",{}),o&&(g.hidden=!d),d?Z(t).show():h.done(function(){Z(t).hide()}),h.done(function(){var e;vt.remove(t,"fxshow");for(e in f)Z.style(t,e,f[e])});for(r in f)s=O(d?g[r]:0,r,h),r in g||(g[r]=s.start,d&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}}function q(t,e){var n,r,i,o,s;for(n in t)if(r=Z.camelCase(n),i=e[r],o=t[n],Z.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),s=Z.cssHooks[r],s&&"expand"in s){o=s.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function N(t,e,n){var r,i,o=0,s=ee.length,a=Z.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=Gt||A(),n=Math.max(0,c.startTime+c.duration-e),r=n/c.duration||0,o=1-r,s=0,u=c.tweens.length;u>s;s++)c.tweens[s].run(o);return a.notifyWith(t,[c,o,n]),1>o&&u?n:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:Z.extend({},e),opts:Z.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Gt||A(),duration:n.duration,tweens:[],createTween:function(e,n){var r=Z.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},stop:function(e){var n=0,r=e?c.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)c.tweens[n].run(1);return e?a.resolveWith(t,[c,e]):a.rejectWith(t,[c,e]),this}}),l=c.props;for(q(l,c.opts.specialEasing);s>o;o++)if(r=ee[o].call(c,t,l,c.opts))return r;return Z.map(l,O,c),Z.isFunction(c.opts.start)&&c.opts.start.call(t,c),Z.fx.timer(Z.extend(u,{elem:t,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(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(pt)||[];if(Z.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function L(t,e,n,r){function i(a){var u;return o[a]=!0,Z.each(t[a]||[],function(t,a){var c=a(e,n,r);return"string"!=typeof c||s||o[c]?s?!(u=c):void 0:(e.dataTypes.unshift(c),i(c),!1)}),u}var o={},s=t===be;return i(e.dataTypes[0])||!o["*"]&&i("*")}function D(t,e){var n,r,i=Z.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&Z.extend(!0,t,r),t}function M(t,e,n){for(var r,i,o,s,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}return o?(o!==u[0]&&u.unshift(o),n[o]):void 0}function F(t,e,n,r){var i,o,s,a,u,c={},l=t.dataTypes.slice();if(l[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(s=c[u+" "+o]||c["* "+o],!s)for(i in c)if(a=i.split(" "),a[1]===o&&(s=c[u+" "+a[0]]||c["* "+a[0]])){s===!0?s=c[i]:c[i]!==!0&&(o=a[0],l.unshift(a[1]));break}if(s!==!0)if(s&&t["throws"])e=s(e);else try{e=s(e)}catch(h){return{state:"parsererror",error:s?h:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}function U(t,e,n,r){var i;if(Z.isArray(e))Z.each(e,function(e,i){n||Ee.test(t)?r(t,i):U(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==Z.type(e))r(t,e);else for(i in e)U(t+"["+i+"]",e[i],n,r)}function I(t){return Z.isWindow(t)?t:9===t.nodeType&&t.defaultView}var H=[],B=H.slice,W=H.concat,z=H.push,X=H.indexOf,V={},J=V.toString,Y=V.hasOwnProperty,G={},K=t.document,Q="2.1.4",Z=function(t,e){return new Z.fn.init(t,e)},tt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,et=/^-ms-/,nt=/-([\da-z])/gi,rt=function(t,e){return e.toUpperCase()};Z.fn=Z.prototype={jquery:Q,constructor:Z,selector:"",length:0,toArray:function(){return B.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:B.call(this)},pushStack:function(t){var e=Z.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return Z.each(this,t,e)},map:function(t){return this.pushStack(Z.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(B.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:z,sort:H.sort,splice:H.splice},Z.extend=Z.fn.extend=function(){var t,e,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||Z.isFunction(s)||(s={}),a===u&&(s=this,a--);u>a;a++)if(null!=(t=arguments[a]))for(e in t)n=s[e],r=t[e],s!==r&&(c&&r&&(Z.isPlainObject(r)||(i=Z.isArray(r)))?(i?(i=!1,o=n&&Z.isArray(n)?n:[]):o=n&&Z.isPlainObject(n)?n:{},s[e]=Z.extend(c,o,r)):void 0!==r&&(s[e]=r));return s},Z.extend({expando:"jQuery"+(Q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===Z.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!Z.isArray(t)&&t-parseFloat(t)+1>=0},isPlainObject:function(t){return"object"!==Z.type(t)||t.nodeType||Z.isWindow(t)?!1:t.constructor&&!Y.call(t.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?V[J.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=Z.trim(t),t&&(1===t.indexOf("use strict")?(e=K.createElement("script"),e.text=t,K.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(et,"ms-").replace(nt,rt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,r){var i,o=0,s=t.length,a=n(t);if(r){if(a)for(;s>o&&(i=e.apply(t[o],r),i!==!1);o++);else for(o in t)if(i=e.apply(t[o],r),i===!1)break}else if(a)for(;s>o&&(i=e.call(t[o],o,t[o]),i!==!1);o++);else for(o in t)if(i=e.call(t[o],o,t[o]),i===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(tt,"")},makeArray:function(t,e){var r=e||[];return null!=t&&(n(Object(t))?Z.merge(r,"string"==typeof t?[t]:t):z.call(r,t)),r},inArray:function(t,e,n){return null==e?-1:X.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;n>r;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r,i=[],o=0,s=t.length,a=!n;s>o;o++)r=!e(t[o],o),r!==a&&i.push(t[o]);return i},map:function(t,e,r){var i,o=0,s=t.length,a=n(t),u=[];if(a)for(;s>o;o++)i=e(t[o],o,r),null!=i&&u.push(i);else for(o in t)i=e(t[o],o,r),null!=i&&u.push(i);return W.apply([],u)},guid:1,proxy:function(t,e){var n,r,i;return"string"==typeof e&&(n=t[e],e=t,t=n),Z.isFunction(t)?(r=B.call(arguments,2),i=function(){return t.apply(e||this,r.concat(B.call(arguments)))},i.guid=t.guid=t.guid||Z.guid++,i):void 0},now:Date.now,support:G}),Z.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){V["[object "+e+"]"]=e.toLowerCase()});var it=/*!
 * Sizzle CSS Selector Engine v2.2.0-pre
 * http://sizzlejs.com/
 *
 * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2014-12-16
 */
function(t){function e(t,e,n,r){var i,o,s,a,u,c,h,p,d,g;if((e?e.ownerDocument||e:U)!==$&&O(e),e=e||$,n=n||[],a=e.nodeType,"string"!=typeof t||!t||1!==a&&9!==a&&11!==a)return n;if(!r&&N){if(11!==a&&(i=yt.exec(t)))if(s=i[1]){if(9===a){if(o=e.getElementById(s),!o||!o.parentNode)return n;if(o.id===s)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(s))&&M(e,o)&&o.id===s)return n.push(o),n}else{if(i[2])return Q.apply(n,e.getElementsByTagName(t)),n;if((s=i[3])&&x.getElementsByClassName)return Q.apply(n,e.getElementsByClassName(s)),n}if(x.qsa&&(!P||!P.test(t))){if(p=h=F,d=e,g=1!==a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(c=j(t),(h=e.getAttribute("id"))?p=h.replace(wt,"\\$&"):e.setAttribute("id",p),p="[id='"+p+"'] ",u=c.length;u--;)c[u]=p+f(c[u]);d=bt.test(t)&&l(e.parentNode)||e,g=c.join(",")}if(g)try{return Q.apply(n,d.querySelectorAll(g)),n}catch(m){}finally{h||e.removeAttribute("id")}}}return T(t.replace(ut,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>_.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[F]=!0,t}function i(t){var e=$.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=t.length;r--;)_.attrHandle[n[r]]=e}function s(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||V)-(~t.sourceIndex||V);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function u(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function l(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function h(){}function f(t){for(var e=0,n=t.length,r="";n>e;e++)r+=t[e].value;return r}function p(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=H++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,s){var a,u,c=[I,o];if(s){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,s))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(u=e[F]||(e[F]={}),(a=u[r])&&a[0]===I&&a[1]===o)return c[2]=a[2];if(u[r]=c,c[2]=t(e,n,s))return!0}}}function d(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function g(t,n,r){for(var i=0,o=n.length;o>i;i++)e(t,n[i],r);return r}function m(t,e,n,r,i){for(var o,s=[],a=0,u=t.length,c=null!=e;u>a;a++)(o=t[a])&&(!n||n(o,r,i))&&(s.push(o),c&&e.push(a));return s}function v(t,e,n,i,o,s){return i&&!i[F]&&(i=v(i)),o&&!o[F]&&(o=v(o,s)),r(function(r,s,a,u){var c,l,h,f=[],p=[],d=s.length,v=r||g(e||"*",a.nodeType?[a]:a,[]),y=!t||!r&&e?v:m(v,f,t,a,u),b=n?o||(r?t:d||i)?[]:s:y;if(n&&n(y,b,a,u),i)for(c=m(b,p),i(c,[],a,u),l=c.length;l--;)(h=c[l])&&(b[p[l]]=!(y[p[l]]=h));if(r){if(o||t){if(o){for(c=[],l=b.length;l--;)(h=b[l])&&c.push(y[l]=h);o(null,b=[],c,u)}for(l=b.length;l--;)(h=b[l])&&(c=o?tt(r,h):f[l])>-1&&(r[c]=!(s[c]=h))}}else b=m(b===s?b.splice(d,b.length):b),o?o(null,s,b,u):Q.apply(s,b)})}function y(t){for(var e,n,r,i=t.length,o=_.relative[t[0].type],s=o||_.relative[" "],a=o?1:0,u=p(function(t){return t===e},s,!0),c=p(function(t){return tt(e,t)>-1},s,!0),l=[function(t,n,r){var i=!o&&(r||n!==S)||((e=n).nodeType?u(t,n,r):c(t,n,r));return e=null,i}];i>a;a++)if(n=_.relative[t[a].type])l=[p(d(l),n)];else{if(n=_.filter[t[a].type].apply(null,t[a].matches),n[F]){for(r=++a;i>r&&!_.relative[t[r].type];r++);return v(a>1&&d(l),a>1&&f(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(ut,"$1"),n,r>a&&y(t.slice(a,r)),i>r&&y(t=t.slice(r)),i>r&&f(t))}l.push(n)}return d(l)}function b(t,n){var i=n.length>0,o=t.length>0,s=function(r,s,a,u,c){var l,h,f,p=0,d="0",g=r&&[],v=[],y=S,b=r||o&&_.find.TAG("*",c),w=I+=null==y?1:Math.random()||.1,x=b.length;for(c&&(S=s!==$&&s);d!==x&&null!=(l=b[d]);d++){if(o&&l){for(h=0;f=t[h++];)if(f(l,s,a)){u.push(l);break}c&&(I=w)}i&&((l=!f&&l)&&p--,r&&g.push(l))}if(p+=d,i&&d!==p){for(h=0;f=n[h++];)f(g,v,s,a);if(r){if(p>0)for(;d--;)g[d]||v[d]||(v[d]=G.call(u));v=m(v)}Q.apply(u,v),c&&!r&&v.length>0&&p+n.length>1&&e.uniqueSort(u)}return c&&(I=w,S=y),g};return i?r(s):s}var w,x,_,C,E,j,k,T,S,A,R,O,$,q,N,P,L,D,M,F="sizzle"+1*new Date,U=t.document,I=0,H=0,B=n(),W=n(),z=n(),X=function(t,e){return t===e&&(R=!0),0},V=1<<31,J={}.hasOwnProperty,Y=[],G=Y.pop,K=Y.push,Q=Y.push,Z=Y.slice,tt=function(t,e){for(var n=0,r=t.length;r>n;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",it=rt.replace("w","w#"),ot="\\["+nt+"*("+rt+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+nt+"*\\]",st=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ot+")*)|.*)\\)|)",at=new RegExp(nt+"+","g"),ut=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),ct=new RegExp("^"+nt+"*,"+nt+"*"),lt=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ht=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ft=new RegExp(st),pt=new RegExp("^"+it+"$"),dt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt.replace("w","w*")+")"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+st),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},gt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,wt=/'|\\/g,xt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),_t=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Ct=function(){O()};try{Q.apply(Y=Z.call(U.childNodes),U.childNodes),Y[U.childNodes.length].nodeType}catch(Et){Q={apply:Y.length?function(t,e){K.apply(t,Z.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}x=e.support={},E=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},O=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:U;return r!==$&&9===r.nodeType&&r.documentElement?($=r,q=r.documentElement,n=r.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Ct,!1):n.attachEvent&&n.attachEvent("onunload",Ct)),N=!E(r),x.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),x.getElementsByTagName=i(function(t){return t.appendChild(r.createComment("")),!t.getElementsByTagName("*").length}),x.getElementsByClassName=vt.test(r.getElementsByClassName),x.getById=i(function(t){return q.appendChild(t).id=F,!r.getElementsByName||!r.getElementsByName(F).length}),x.getById?(_.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&N){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},_.filter.ID=function(t){var e=t.replace(xt,_t);return function(t){return t.getAttribute("id")===e}}):(delete _.find.ID,_.filter.ID=function(t){var e=t.replace(xt,_t);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),_.find.TAG=x.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):x.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},_.find.CLASS=x.getElementsByClassName&&function(t,e){return N?e.getElementsByClassName(t):void 0},L=[],P=[],(x.qsa=vt.test(r.querySelectorAll))&&(i(function(t){q.appendChild(t).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&P.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||P.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+F+"-]").length||P.push("~="),t.querySelectorAll(":checked").length||P.push(":checked"),t.querySelectorAll("a#"+F+"+*").length||P.push(".#.+[+~]")}),i(function(t){var e=r.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&P.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||P.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),P.push(",.*:")})),(x.matchesSelector=vt.test(D=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&i(function(t){x.disconnectedMatch=D.call(t,"div"),D.call(t,"[s!='']:x"),L.push("!=",st)}),P=P.length&&new RegExp(P.join("|")),L=L.length&&new RegExp(L.join("|")),e=vt.test(q.compareDocumentPosition),M=e||vt.test(q.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},X=e?function(t,e){if(t===e)return R=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!x.sortDetached&&e.compareDocumentPosition(t)===n?t===r||t.ownerDocument===U&&M(U,t)?-1:e===r||e.ownerDocument===U&&M(U,e)?1:A?tt(A,t)-tt(A,e):0:4&n?-1:1)}:function(t,e){if(t===e)return R=!0,0;var n,i=0,o=t.parentNode,a=e.parentNode,u=[t],c=[e];if(!o||!a)return t===r?-1:e===r?1:o?-1:a?1:A?tt(A,t)-tt(A,e):0;if(o===a)return s(t,e);for(n=t;n=n.parentNode;)u.unshift(n);for(n=e;n=n.parentNode;)c.unshift(n);for(;u[i]===c[i];)i++;return i?s(u[i],c[i]):u[i]===U?-1:c[i]===U?1:0},r):$},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==$&&O(t),n=n.replace(ht,"='$1']"),x.matchesSelector&&N&&(!L||!L.test(n))&&(!P||!P.test(n)))try{var r=D.call(t,n);if(r||x.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){}return e(n,$,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==$&&O(t),M(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==$&&O(t);var n=_.attrHandle[e.toLowerCase()],r=n&&J.call(_.attrHandle,e.toLowerCase())?n(t,e,!N):void 0;return void 0!==r?r:x.attributes||!N?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(R=!x.detectDuplicates,A=!x.sortStable&&t.slice(0),t.sort(X),R){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return A=null,t},C=e.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=C(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=C(e);return n},_=e.selectors={cacheLength:50,createPseudo:r,match:dt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(xt,_t),t[3]=(t[3]||t[4]||t[5]||"").replace(xt,_t),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ft.test(n)&&(e=j(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(xt,_t).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=B[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&B(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:n?(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(at," ")+" ").indexOf(r)>-1:"|="===n?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var c,l,h,f,p,d,g=o!==s?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!u&&!a;if(m){if(o){for(;g;){for(h=e;h=h[g];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&y){for(l=m[F]||(m[F]={}),c=l[t]||[],p=c[0]===I&&c[1],f=c[0]===I&&c[2],h=p&&m.childNodes[p];h=++p&&h&&h[g]||(f=p=0)||d.pop();)if(1===h.nodeType&&++f&&h===e){l[t]=[I,p,f];break}}else if(y&&(c=(e[F]||(e[F]={}))[t])&&c[0]===I)f=c[1];else for(;(h=++p&&h&&h[g]||(f=p=0)||d.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++f||(y&&((h[F]||(h[F]={}))[t]=[I,f]),h!==e)););return f-=i,f===r||f%r===0&&f/r>=0}}},PSEUDO:function(t,n){var i,o=_.pseudos[t]||_.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[F]?o(n):o.length>1?(i=[t,t,"",n],_.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),s=i.length;s--;)r=tt(t,i[s]),t[r]=!(e[r]=i[s])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=k(t.replace(ut,"$1"));return i[F]?r(function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace(xt,_t),function(e){return(e.textContent||e.innerText||C(e)).indexOf(t)>-1}}),lang:r(function(t){return pt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(xt,_t).toLowerCase(),function(e){var n;do if(n=N?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===q},focus:function(t){return t===$.activeElement&&(!$.hasFocus||$.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return gt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,n){return[0>n?n+e:n]}),even:c(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:c(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:c(function(t,e,n){for(var r=0>n?n+e:n;--r>=0;)t.push(r);return t}),gt:c(function(t,e,n){for(var r=0>n?n+e:n;++r<e;)t.push(r);return t})}},_.pseudos.nth=_.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[w]=a(w);for(w in{submit:!0,reset:!0})_.pseudos[w]=u(w);return h.prototype=_.filters=_.pseudos,_.setFilters=new h,j=e.tokenize=function(t,n){var r,i,o,s,a,u,c,l=W[t+" "];if(l)return n?0:l.slice(0);for(a=t,u=[],c=_.preFilter;a;){(!r||(i=ct.exec(a)))&&(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=lt.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ut," ")}),a=a.slice(r.length));for(s in _.filter)!(i=dt[s].exec(a))||c[s]&&!(i=c[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?e.error(t):W(t,u).slice(0)},k=e.compile=function(t,e){var n,r=[],i=[],o=z[t+" "];if(!o){for(e||(e=j(t)),n=e.length;n--;)o=y(e[n]),o[F]?r.push(o):i.push(o);o=z(t,b(i,r)),o.selector=t}return o},T=e.select=function(t,e,n,r){var i,o,s,a,u,c="function"==typeof t&&t,h=!r&&j(t=c.selector||t);if(n=n||[],1===h.length){if(o=h[0]=h[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&x.getById&&9===e.nodeType&&N&&_.relative[o[1].type]){if(e=(_.find.ID(s.matches[0].replace(xt,_t),e)||[])[0],!e)return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=dt.needsContext.test(t)?0:o.length;i--&&(s=o[i],!_.relative[a=s.type]);)if((u=_.find[a])&&(r=u(s.matches[0].replace(xt,_t),bt.test(o[0].type)&&l(e.parentNode)||e))){if(o.splice(i,1),t=r.length&&f(o),!t)return Q.apply(n,r),n;break}}return(c||k(t,h))(r,e,!N,n,bt.test(t)&&l(e.parentNode)||e),n},x.sortStable=F.split("").sort(X).join("")===F,x.detectDuplicates=!!R,O(),x.sortDetached=i(function(t){return 1&t.compareDocumentPosition($.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),x.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var r;return n?void 0:t[e]===!0?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(t);Z.find=it,Z.expr=it.selectors,Z.expr[":"]=Z.expr.pseudos,Z.unique=it.uniqueSort,Z.text=it.getText,Z.isXMLDoc=it.isXML,Z.contains=it.contains;var ot=Z.expr.match.needsContext,st=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,at=/^.[^:#\[\.,]*$/;Z.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?Z.find.matchesSelector(r,t)?[r]:[]:Z.find.matches(t,Z.grep(e,function(t){return 1===t.nodeType}))},Z.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(Z(t).filter(function(){for(e=0;n>e;e++)if(Z.contains(i[e],this))return!0}));for(e=0;n>e;e++)Z.find(t,i[e],r);return r=this.pushStack(n>1?Z.unique(r):r),r.selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(r(this,t||[],!1))},not:function(t){return this.pushStack(r(this,t||[],!0))},is:function(t){return!!r(this,"string"==typeof t&&ot.test(t)?Z(t):t||[],!1).length}});var ut,ct=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,lt=Z.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:ct.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||ut).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof Z?e[0]:e,Z.merge(this,Z.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:K,!0)),st.test(n[1])&&Z.isPlainObject(e))for(n in e)Z.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return r=K.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=K,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):Z.isFunction(t)?"undefined"!=typeof ut.ready?ut.ready(t):t(Z):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),Z.makeArray(t,this))};lt.prototype=Z.fn,ut=Z(K);var ht=/^(?:parents|prev(?:Until|All))/,ft={children:!0,contents:!0,next:!0,prev:!0};Z.extend({dir:function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&Z(t).is(n))break;r.push(t)}return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),Z.fn.extend({has:function(t){var e=Z(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(Z.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],s=ot.test(t)||"string"!=typeof t?Z(t,e||this.context):0;i>r;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&Z.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?Z.unique(o):o)},index:function(t){return t?"string"==typeof t?X.call(Z(t),this[0]):X.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(Z.unique(Z.merge(this.get(),Z(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),Z.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Z.dir(t,"parentNode")},parentsUntil:function(t,e,n){return Z.dir(t,"parentNode",n)},next:function(t){return i(t,"nextSibling")},prev:function(t){return i(t,"previousSibling")},nextAll:function(t){return Z.dir(t,"nextSibling")},prevAll:function(t){return Z.dir(t,"previousSibling")},nextUntil:function(t,e,n){return Z.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return Z.dir(t,"previousSibling",n)},siblings:function(t){return Z.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return Z.sibling(t.firstChild)},contents:function(t){return t.contentDocument||Z.merge([],t.childNodes)}},function(t,e){Z.fn[t]=function(n,r){var i=Z.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=Z.filter(r,i)),this.length>1&&(ft[t]||Z.unique(i),ht.test(t)&&i.reverse()),this.pushStack(i)}});var pt=/\S+/g,dt={};Z.Callbacks=function(t){t="string"==typeof t?dt[t]||o(t):Z.extend({},t);var e,n,r,i,s,a,u=[],c=!t.once&&[],l=function(o){for(e=t.memory&&o,n=!0,a=i||0,i=0,s=u.length,r=!0;u&&s>a;a++)if(u[a].apply(o[0],o[1])===!1&&t.stopOnFalse){e=!1;break}r=!1,u&&(c?c.length&&l(c.shift()):e?u=[]:h.disable())},h={add:function(){if(u){var n=u.length;!function o(e){Z.each(e,function(e,n){var r=Z.type(n);"function"===r?t.unique&&h.has(n)||u.push(n):n&&n.length&&"string"!==r&&o(n)})}(arguments),r?s=u.length:e&&(i=n,l(e))}return this},remove:function(){return u&&Z.each(arguments,function(t,e){for(var n;(n=Z.inArray(e,u,n))>-1;)u.splice(n,1),r&&(s>=n&&s--,a>=n&&a--)}),this},has:function(t){return t?Z.inArray(t,u)>-1:!(!u||!u.length)},empty:function(){return u=[],s=0,this},disable:function(){return u=c=e=void 0,this},disabled:function(){return!u},lock:function(){return c=void 0,e||h.disable(),this},locked:function(){return!c},fireWith:function(t,e){return!u||n&&!c||(e=e||[],e=[t,e.slice?e.slice():e],r?c.push(e):l(e)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h},Z.extend({Deferred:function(t){var e=[["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 i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return Z.Deferred(function(n){Z.each(e,function(e,o){var s=Z.isFunction(t[e])&&t[e];i[o[1]](function(){var t=s&&s.apply(this,arguments);t&&Z.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?Z.extend(t,r):r}},i={};return r.pipe=r.then,Z.each(e,function(t,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=B.call(arguments),s=o.length,a=1!==s||t&&Z.isFunction(t.promise)?s:0,u=1===a?t:Z.Deferred(),c=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?B.call(arguments):i,r===e?u.notifyWith(n,r):--a||u.resolveWith(n,r)}};if(s>1)for(e=new Array(s),n=new Array(s),r=new Array(s);s>i;i++)o[i]&&Z.isFunction(o[i].promise)?o[i].promise().done(c(i,r,o)).fail(u.reject).progress(c(i,n,e)):--a;return a||u.resolveWith(r,o),u.promise()}});var gt;Z.fn.ready=function(t){return Z.ready.promise().done(t),this},Z.extend({isReady:!1,readyWait:1,holdReady:function(t){t?Z.readyWait++:Z.ready(!0)},ready:function(t){(t===!0?--Z.readyWait:Z.isReady)||(Z.isReady=!0,t!==!0&&--Z.readyWait>0||(gt.resolveWith(K,[Z]),Z.fn.triggerHandler&&(Z(K).triggerHandler("ready"),Z(K).off("ready"))))}}),Z.ready.promise=function(e){return gt||(gt=Z.Deferred(),"complete"===K.readyState?setTimeout(Z.ready):(K.addEventListener("DOMContentLoaded",s,!1),t.addEventListener("load",s,!1))),gt.promise(e)},Z.ready.promise();var mt=Z.access=function(t,e,n,r,i,o,s){var a=0,u=t.length,c=null==n;if("object"===Z.type(n)){i=!0;for(a in n)Z.access(t,e,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,Z.isFunction(r)||(s=!0),c&&(s?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(Z(t),n)})),e))for(;u>a;a++)e(t[a],n,s?r:r.call(t[a],a,e(t[a],n)));return i?t:c?e.call(t):u?e(t[0],n):o};Z.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},a.uid=1,a.accepts=Z.acceptData,a.prototype={key:function(t){if(!a.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=a.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(r){e[this.expando]=n,Z.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var r,i=this.key(t),o=this.cache[i];if("string"==typeof e)o[e]=n;else if(Z.isEmptyObject(o))Z.extend(this.cache[i],e);else for(r in e)o[r]=e[r];return o},get:function(t,e){var n=this.cache[this.key(t)];return void 0===e?n:n[e]},access:function(t,e,n){var r;return void 0===e||e&&"string"==typeof e&&void 0===n?(r=this.get(t,e),void 0!==r?r:this.get(t,Z.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r,i,o=this.key(t),s=this.cache[o];if(void 0===e)this.cache[o]={};else{Z.isArray(e)?r=e.concat(e.map(Z.camelCase)):(i=Z.camelCase(e),e in s?r=[e,i]:(r=i,r=r in s?[r]:r.match(pt)||[])),n=r.length;for(;n--;)delete s[r[n]]}},hasData:function(t){return!Z.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var vt=new a,yt=new a,bt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,wt=/([A-Z])/g;Z.extend({hasData:function(t){return yt.hasData(t)||vt.hasData(t)},data:function(t,e,n){return yt.access(t,e,n)},removeData:function(t,e){yt.remove(t,e)},_data:function(t,e,n){return vt.access(t,e,n)},_removeData:function(t,e){vt.remove(t,e)}}),Z.fn.extend({data:function(t,e){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(i=yt.get(o),1===o.nodeType&&!vt.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=Z.camelCase(r.slice(5)),u(o,r,i[r])));vt.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){yt.set(this,t)}):mt(this,function(e){var n,r=Z.camelCase(t);if(o&&void 0===e){if(n=yt.get(o,t),void 0!==n)return n;if(n=yt.get(o,r),void 0!==n)return n;if(n=u(o,r,void 0),void 0!==n)return n}else this.each(function(){var n=yt.get(this,r);yt.set(this,r,e),-1!==t.indexOf("-")&&void 0!==n&&yt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){yt.remove(this,t)})}}),Z.extend({queue:function(t,e,n){var r;return t?(e=(e||"fx")+"queue",r=vt.get(t,e),n&&(!r||Z.isArray(n)?r=vt.access(t,e,Z.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=Z.queue(t,e),r=n.length,i=n.shift(),o=Z._queueHooks(t,e),s=function(){Z.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return vt.get(t,n)||vt.access(t,n,{empty:Z.Callbacks("once memory").add(function(){vt.remove(t,[e+"queue",n])})})}}),Z.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?Z.queue(this[0],t):void 0===e?this:this.each(function(){var n=Z.queue(this,t,e);Z._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&Z.dequeue(this,t)})},dequeue:function(t){return this.each(function(){Z.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=Z.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)n=vt.get(o[s],t+"queueHooks"),n&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}});var xt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,_t=["Top","Right","Bottom","Left"],Ct=function(t,e){return t=e||t,"none"===Z.css(t,"display")||!Z.contains(t.ownerDocument,t)},Et=/^(?:checkbox|radio)$/i;!function(){var t=K.createDocumentFragment(),e=t.appendChild(K.createElement("div")),n=K.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),G.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",G.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var jt="undefined";G.focusinBubbles="onfocusin"in t;var kt=/^key/,Tt=/^(?:mouse|pointer|contextmenu)|click/,St=/^(?:focusinfocus|focusoutblur)$/,At=/^([^.]*)(?:\.(.+)|)$/;Z.event={global:{},add:function(t,e,n,r,i){var o,s,a,u,c,l,h,f,p,d,g,m=vt.get(t);if(m)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=Z.guid++),(u=m.events)||(u=m.events={}),(s=m.handle)||(s=m.handle=function(e){return typeof Z!==jt&&Z.event.triggered!==e.type?Z.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(pt)||[""],c=e.length;c--;)a=At.exec(e[c])||[],p=g=a[1],d=(a[2]||"").split(".").sort(),p&&(h=Z.event.special[p]||{},p=(i?h.delegateType:h.bindType)||p,h=Z.event.special[p]||{},l=Z.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Z.expr.match.needsContext.test(i),namespace:d.join(".")},o),(f=u[p])||(f=u[p]=[],f.delegateCount=0,h.setup&&h.setup.call(t,r,d,s)!==!1||t.addEventListener&&t.addEventListener(p,s,!1)),h.add&&(h.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,l):f.push(l),Z.event.global[p]=!0)},remove:function(t,e,n,r,i){var o,s,a,u,c,l,h,f,p,d,g,m=vt.hasData(t)&&vt.get(t);if(m&&(u=m.events)){for(e=(e||"").match(pt)||[""],c=e.length;c--;)if(a=At.exec(e[c])||[],p=g=a[1],d=(a[2]||"").split(".").sort(),p){for(h=Z.event.special[p]||{},p=(r?h.delegateType:h.bindType)||p,f=u[p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;o--;)l=f[o],!i&&g!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(f.splice(o,1),l.selector&&f.delegateCount--,h.remove&&h.remove.call(t,l));s&&!f.length&&(h.teardown&&h.teardown.call(t,d,m.handle)!==!1||Z.removeEvent(t,p,m.handle),delete u[p])}else for(p in u)Z.event.remove(t,p+e[c],n,r,!0);Z.isEmptyObject(u)&&(delete m.handle,vt.remove(t,"events"))}},trigger:function(e,n,r,i){var o,s,a,u,c,l,h,f=[r||K],p=Y.call(e,"type")?e.type:e,d=Y.call(e,"namespace")?e.namespace.split("."):[];if(s=a=r=r||K,3!==r.nodeType&&8!==r.nodeType&&!St.test(p+Z.event.triggered)&&(p.indexOf(".")>=0&&(d=p.split("."),p=d.shift(),d.sort()),c=p.indexOf(":")<0&&"on"+p,e=e[Z.expando]?e:new Z.Event(p,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=d.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),
n=null==n?[e]:Z.makeArray(n,[e]),h=Z.event.special[p]||{},i||!h.trigger||h.trigger.apply(r,n)!==!1)){if(!i&&!h.noBubble&&!Z.isWindow(r)){for(u=h.delegateType||p,St.test(u+p)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(r.ownerDocument||K)&&f.push(a.defaultView||a.parentWindow||t)}for(o=0;(s=f[o++])&&!e.isPropagationStopped();)e.type=o>1?u:h.bindType||p,l=(vt.get(s,"events")||{})[e.type]&&vt.get(s,"handle"),l&&l.apply(s,n),l=c&&s[c],l&&l.apply&&Z.acceptData(s)&&(e.result=l.apply(s,n),e.result===!1&&e.preventDefault());return e.type=p,i||e.isDefaultPrevented()||h._default&&h._default.apply(f.pop(),n)!==!1||!Z.acceptData(r)||c&&Z.isFunction(r[p])&&!Z.isWindow(r)&&(a=r[c],a&&(r[c]=null),Z.event.triggered=p,r[p](),Z.event.triggered=void 0,a&&(r[c]=a)),e.result}},dispatch:function(t){t=Z.event.fix(t);var e,n,r,i,o,s=[],a=B.call(arguments),u=(vt.get(this,"events")||{})[t.type]||[],c=Z.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(s=Z.event.handlers.call(this,t,u),e=0;(i=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(o.namespace))&&(t.handleObj=o,t.data=o.data,r=((Z.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a),void 0!==r&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,s=[],a=e.delegateCount,u=t.target;if(a&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==t.type){for(r=[],n=0;a>n;n++)o=e[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?Z(i,this).index(u)>=0:Z.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||K,r=n.documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[Z.expando])return t;var e,n,r,i=t.type,o=t,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=Tt.test(i)?this.mouseHooks:kt.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,t=new Z.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=K),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==h()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===h()&&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(t){return Z.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=Z.extend(new Z.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?Z.event.trigger(i,null,e):Z.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},Z.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},Z.Event=function(t,e){return this instanceof Z.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?c:l):this.type=t,e&&Z.extend(this,e),this.timeStamp=t&&t.timeStamp||Z.now(),void(this[Z.expando]=!0)):new Z.Event(t,e)},Z.Event.prototype={isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=c,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=c,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=c,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},Z.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){Z.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return(!i||i!==r&&!Z.contains(r,i))&&(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),G.focusinBubbles||Z.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){Z.event.simulate(e,t.target,Z.event.fix(t),!0)};Z.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=vt.access(r,e);i||r.addEventListener(t,n,!0),vt.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=vt.access(r,e)-1;i?vt.access(r,e,i):(r.removeEventListener(t,n,!0),vt.remove(r,e))}}}),Z.fn.extend({on:function(t,e,n,r,i){var o,s;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(s in t)this.on(s,e,n,t[s],i);return this}if(null==n&&null==r?(r=e,n=e=void 0):null==r&&("string"==typeof e?(r=n,n=void 0):(r=n,n=e,e=void 0)),r===!1)r=l;else if(!r)return this;return 1===i&&(o=r,r=function(t){return Z().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=Z.guid++)),this.each(function(){Z.event.add(this,t,r,n,e)})},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,Z(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return(e===!1||"function"==typeof e)&&(n=e,e=void 0),n===!1&&(n=l),this.each(function(){Z.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){Z.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?Z.event.trigger(t,e,n,!0):void 0}});var Rt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ot=/<([\w:]+)/,$t=/<|&#?\w+;/,qt=/<(?:script|style|link)/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,Pt=/^$|\/(?:java|ecma)script/i,Lt=/^true\/(.*)/,Dt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Mt={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,"",""]};Mt.optgroup=Mt.option,Mt.tbody=Mt.tfoot=Mt.colgroup=Mt.caption=Mt.thead,Mt.th=Mt.td,Z.extend({clone:function(t,e,n){var r,i,o,s,a=t.cloneNode(!0),u=Z.contains(t.ownerDocument,t);if(!(G.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||Z.isXMLDoc(t)))for(s=v(a),o=v(t),r=0,i=o.length;i>r;r++)y(o[r],s[r]);if(e)if(n)for(o=o||v(t),s=s||v(a),r=0,i=o.length;i>r;r++)m(o[r],s[r]);else m(t,a);return s=v(a,"script"),s.length>0&&g(s,!u&&v(t,"script")),a},buildFragment:function(t,e,n,r){for(var i,o,s,a,u,c,l=e.createDocumentFragment(),h=[],f=0,p=t.length;p>f;f++)if(i=t[f],i||0===i)if("object"===Z.type(i))Z.merge(h,i.nodeType?[i]:i);else if($t.test(i)){for(o=o||l.appendChild(e.createElement("div")),s=(Ot.exec(i)||["",""])[1].toLowerCase(),a=Mt[s]||Mt._default,o.innerHTML=a[1]+i.replace(Rt,"<$1></$2>")+a[2],c=a[0];c--;)o=o.lastChild;Z.merge(h,o.childNodes),o=l.firstChild,o.textContent=""}else h.push(e.createTextNode(i));for(l.textContent="",f=0;i=h[f++];)if((!r||-1===Z.inArray(i,r))&&(u=Z.contains(i.ownerDocument,i),o=v(l.appendChild(i),"script"),u&&g(o),n))for(c=0;i=o[c++];)Pt.test(i.type||"")&&n.push(i);return l},cleanData:function(t){for(var e,n,r,i,o=Z.event.special,s=0;void 0!==(n=t[s]);s++){if(Z.acceptData(n)&&(i=n[vt.expando],i&&(e=vt.cache[i]))){if(e.events)for(r in e.events)o[r]?Z.event.remove(n,r):Z.removeEvent(n,r,e.handle);vt.cache[i]&&delete vt.cache[i]}delete yt.cache[n[yt.expando]]}}}),Z.fn.extend({text:function(t){return mt(this,function(t){return void 0===t?Z.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=f(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=f(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=t?Z.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||Z.cleanData(v(n)),n.parentNode&&(e&&Z.contains(n.ownerDocument,n)&&g(v(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(Z.cleanData(v(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return Z.clone(this,t,e)})},html:function(t){return mt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!qt.test(t)&&!Mt[(Ot.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Rt,"<$1></$2>");try{for(;r>n;n++)e=this[n]||{},1===e.nodeType&&(Z.cleanData(v(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,Z.cleanData(v(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=W.apply([],t);var n,r,i,o,s,a,u=0,c=this.length,l=this,h=c-1,f=t[0],g=Z.isFunction(f);if(g||c>1&&"string"==typeof f&&!G.checkClone&&Nt.test(f))return this.each(function(n){var r=l.eq(n);g&&(t[0]=f.call(this,n,r.html())),r.domManip(t,e)});if(c&&(n=Z.buildFragment(t,this[0].ownerDocument,!1,this),r=n.firstChild,1===n.childNodes.length&&(n=r),r)){for(i=Z.map(v(n,"script"),p),o=i.length;c>u;u++)s=n,u!==h&&(s=Z.clone(s,!0,!0),o&&Z.merge(i,v(s,"script"))),e.call(this[u],s,u);if(o)for(a=i[i.length-1].ownerDocument,Z.map(i,d),u=0;o>u;u++)s=i[u],Pt.test(s.type||"")&&!vt.access(s,"globalEval")&&Z.contains(a,s)&&(s.src?Z._evalUrl&&Z._evalUrl(s.src):Z.globalEval(s.textContent.replace(Dt,"")))}return this}}),Z.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){Z.fn[t]=function(t){for(var n,r=[],i=Z(t),o=i.length-1,s=0;o>=s;s++)n=s===o?this:this.clone(!0),Z(i[s])[e](n),z.apply(r,n.get());return this.pushStack(r)}});var Ft,Ut={},It=/^margin/,Ht=new RegExp("^("+xt+")(?!px)[a-z%]+$","i"),Bt=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)};!function(){function e(){s.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",s.innerHTML="",i.appendChild(o);var e=t.getComputedStyle(s,null);n="1%"!==e.top,r="4px"===e.width,i.removeChild(o)}var n,r,i=K.documentElement,o=K.createElement("div"),s=K.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",G.clearCloneStyle="content-box"===s.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(s),t.getComputedStyle&&Z.extend(G,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return null==r&&e(),r},reliableMarginRight:function(){var e,n=s.appendChild(K.createElement("div"));return n.style.cssText=s.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",s.style.width="1px",i.appendChild(o),e=!parseFloat(t.getComputedStyle(n,null).marginRight),i.removeChild(o),s.removeChild(n),e}}))}(),Z.swap=function(t,e,n,r){var i,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=s[o];return i};var Wt=/^(none|table(?!-c[ea]).+)/,zt=new RegExp("^("+xt+")(.*)$","i"),Xt=new RegExp("^([+-])=("+xt+")","i"),Vt={position:"absolute",visibility:"hidden",display:"block"},Jt={letterSpacing:"0",fontWeight:"400"},Yt=["Webkit","O","Moz","ms"];Z.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=x(t,"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(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,s,a=Z.camelCase(e),u=t.style;return e=Z.cssProps[a]||(Z.cssProps[a]=C(u,a)),s=Z.cssHooks[e]||Z.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(i=s.get(t,!1,r))?i:u[e]:(o=typeof n,"string"===o&&(i=Xt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(Z.css(t,e)),o="number"),null!=n&&n===n&&("number"!==o||Z.cssNumber[a]||(n+="px"),G.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,r))||(u[e]=n)),void 0)}},css:function(t,e,n,r){var i,o,s,a=Z.camelCase(e);return e=Z.cssProps[a]||(Z.cssProps[a]=C(t.style,a)),s=Z.cssHooks[e]||Z.cssHooks[a],s&&"get"in s&&(i=s.get(t,!0,n)),void 0===i&&(i=x(t,e,r)),"normal"===i&&e in Jt&&(i=Jt[e]),""===n||n?(o=parseFloat(i),n===!0||Z.isNumeric(o)?o||0:i):i}}),Z.each(["height","width"],function(t,e){Z.cssHooks[e]={get:function(t,n,r){return n?Wt.test(Z.css(t,"display"))&&0===t.offsetWidth?Z.swap(t,Vt,function(){return k(t,e,r)}):k(t,e,r):void 0},set:function(t,n,r){var i=r&&Bt(t);return E(t,n,r?j(t,e,r,"border-box"===Z.css(t,"boxSizing",!1,i),i):0)}}}),Z.cssHooks.marginRight=_(G.reliableMarginRight,function(t,e){return e?Z.swap(t,{display:"inline-block"},x,[t,"marginRight"]):void 0}),Z.each({margin:"",padding:"",border:"Width"},function(t,e){Z.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[t+_t[r]+e]=o[r]||o[r-2]||o[0];return i}},It.test(t)||(Z.cssHooks[t+e].set=E)}),Z.fn.extend({css:function(t,e){return mt(this,function(t,e,n){var r,i,o={},s=0;if(Z.isArray(e)){for(r=Bt(t),i=e.length;i>s;s++)o[e[s]]=Z.css(t,e[s],!1,r);return o}return void 0!==n?Z.style(t,e,n):Z.css(t,e)},t,e,arguments.length>1)},show:function(){return T(this,!0)},hide:function(){return T(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Ct(this)?Z(this).show():Z(this).hide()})}}),Z.Tween=S,S.prototype={constructor:S,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(Z.cssNumber[n]?"":"px")},cur:function(){var t=S.propHooks[this.prop];return t&&t.get?t.get(this):S.propHooks._default.get(this)},run:function(t){var e,n=S.propHooks[this.prop];return this.options.duration?this.pos=e=Z.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):S.propHooks._default.set(this),this}},S.prototype.init.prototype=S.prototype,S.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=Z.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){Z.fx.step[t.prop]?Z.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[Z.cssProps[t.prop]]||Z.cssHooks[t.prop])?Z.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},S.propHooks.scrollTop=S.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},Z.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},Z.fx=S.prototype.init,Z.fx.step={};var Gt,Kt,Qt=/^(?:toggle|show|hide)$/,Zt=new RegExp("^(?:([+-])=|)("+xt+")([a-z%]*)$","i"),te=/queueHooks$/,ee=[$],ne={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=Zt.exec(e),o=i&&i[3]||(Z.cssNumber[t]?"":"px"),s=(Z.cssNumber[t]||"px"!==o&&+r)&&Zt.exec(Z.css(n.elem,t)),a=1,u=20;if(s&&s[3]!==o){o=o||s[3],i=i||[],s=+r||1;do a=a||".5",s/=a,Z.style(n.elem,t,s+o);while(a!==(a=n.cur()/r)&&1!==a&&--u)}return i&&(s=n.start=+s||+r||0,n.unit=o,n.end=i[1]?s+(i[1]+1)*i[2]:+i[2]),n}]};Z.Animation=Z.extend(N,{tweener:function(t,e){Z.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,r=0,i=t.length;i>r;r++)n=t[r],ne[n]=ne[n]||[],ne[n].unshift(e)},prefilter:function(t,e){e?ee.unshift(t):ee.push(t)}}),Z.speed=function(t,e,n){var r=t&&"object"==typeof t?Z.extend({},t):{complete:n||!n&&e||Z.isFunction(t)&&t,duration:t,easing:n&&e||e&&!Z.isFunction(e)&&e};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(t,e,n,r){return this.filter(Ct).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=Z.isEmptyObject(t),o=Z.speed(e,n,r),s=function(){var e=N(this,Z.extend({},t),o);(i||vt.get(this,"finish"))&&e.stop(!0)};return s.finish=s,i||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=Z.timers,s=vt.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&te.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));(e||!n)&&Z.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=vt.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=Z.timers,s=r?r.length:0;for(n.finish=!0,Z.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;s>e;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),Z.each(["toggle","show","hide"],function(t,e){var n=Z.fn[e];Z.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(R(e,!0),t,r,i)}}),Z.each({slideDown:R("show"),slideUp:R("hide"),slideToggle:R("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){Z.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),Z.timers=[],Z.fx.tick=function(){var t,e=0,n=Z.timers;for(Gt=Z.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||Z.fx.stop(),Gt=void 0},Z.fx.timer=function(t){Z.timers.push(t),t()?Z.fx.start():Z.timers.pop()},Z.fx.interval=13,Z.fx.start=function(){Kt||(Kt=setInterval(Z.fx.tick,Z.fx.interval))},Z.fx.stop=function(){clearInterval(Kt),Kt=null},Z.fx.speeds={slow:600,fast:200,_default:400},Z.fn.delay=function(t,e){return t=Z.fx?Z.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}})},function(){var t=K.createElement("input"),e=K.createElement("select"),n=e.appendChild(K.createElement("option"));t.type="checkbox",G.checkOn=""!==t.value,G.optSelected=n.selected,e.disabled=!0,G.optDisabled=!n.disabled,t=K.createElement("input"),t.value="t",t.type="radio",G.radioValue="t"===t.value}();var re,ie,oe=Z.expr.attrHandle;Z.fn.extend({attr:function(t,e){return mt(this,Z.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){Z.removeAttr(this,t)})}}),Z.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===jt?Z.prop(t,e,n):(1===o&&Z.isXMLDoc(t)||(e=e.toLowerCase(),r=Z.attrHooks[e]||(Z.expr.match.bool.test(e)?ie:re)),void 0===n?r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=Z.find.attr(t,e),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):void Z.removeAttr(t,e))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(pt);if(o&&1===t.nodeType)for(;n=o[i++];)r=Z.propFix[n]||n,Z.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!G.radioValue&&"radio"===e&&Z.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),ie={set:function(t,e,n){return e===!1?Z.removeAttr(t,n):t.setAttribute(n,n),n}},Z.each(Z.expr.match.bool.source.match(/\w+/g),function(t,e){var n=oe[e]||Z.find.attr;oe[e]=function(t,e,r){var i,o;return r||(o=oe[e],oe[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,oe[e]=o),i}});var se=/^(?:input|select|textarea|button)$/i;Z.fn.extend({prop:function(t,e){return mt(this,Z.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[Z.propFix[t]||t]})}}),Z.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var r,i,o,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return o=1!==s||!Z.isXMLDoc(t),o&&(e=Z.propFix[e]||e,i=Z.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||se.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),G.optSelected||(Z.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),Z.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Z.propFix[this.toLowerCase()]=this});var ae=/[\t\r\n\f]/g;Z.fn.extend({addClass:function(t){var e,n,r,i,o,s,a="string"==typeof t&&t,u=0,c=this.length;if(Z.isFunction(t))return this.each(function(e){Z(this).addClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(pt)||[];c>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(ae," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");s=Z.trim(r),n.className!==s&&(n.className=s)}return this},removeClass:function(t){var e,n,r,i,o,s,a=0===arguments.length||"string"==typeof t&&t,u=0,c=this.length;if(Z.isFunction(t))return this.each(function(e){Z(this).removeClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(pt)||[];c>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(ae," "):"")){for(o=0;i=e[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");s=t?Z.trim(r):"",n.className!==s&&(n.className=s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):Z.isFunction(t)?this.each(function(n){Z(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var e,r=0,i=Z(this),o=t.match(pt)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else(n===jt||"boolean"===n)&&(this.className&&vt.set(this,"__className__",this.className),this.className=this.className||t===!1?"":vt.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(ae," ").indexOf(e)>=0)return!0;return!1}});var ue=/\r/g;Z.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=Z.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,Z(this).val()):t,null==i?i="":"number"==typeof i?i+="":Z.isArray(i)&&(i=Z.map(i,function(t){return null==t?"":t+""})),e=Z.valHooks[this.type]||Z.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return e=Z.valHooks[i.type]||Z.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(ue,""):null==n?"":n)}}}),Z.extend({valHooks:{option:{get:function(t){var e=Z.find.attr(t,"value");return null!=e?e:Z.trim(Z.text(t))}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||0>i,s=o?null:[],a=o?i+1:r.length,u=0>i?a:o?i:0;a>u;u++)if(n=r[u],(n.selected||u===i)&&(G.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!Z.nodeName(n.parentNode,"optgroup"))){if(e=Z(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,r,i=t.options,o=Z.makeArray(e),s=i.length;s--;)r=i[s],(r.selected=Z.inArray(r.value,o)>=0)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),Z.each(["radio","checkbox"],function(){Z.valHooks[this]={set:function(t,e){return Z.isArray(e)?t.checked=Z.inArray(Z(t).val(),e)>=0:void 0}},G.checkOn||(Z.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.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(t,e){Z.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),Z.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var ce=Z.now(),le=/\?/;Z.parseJSON=function(t){return JSON.parse(t+"")},Z.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{n=new DOMParser,e=n.parseFromString(t,"text/xml")}catch(r){e=void 0}return(!e||e.getElementsByTagName("parsererror").length)&&Z.error("Invalid XML: "+t),e};var he=/#.*$/,fe=/([?&])_=[^&]*/,pe=/^(.*?):[ \t]*([^\r\n]*)$/gm,de=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ge=/^(?:GET|HEAD)$/,me=/^\/\//,ve=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ye={},be={},we="*/".concat("*"),xe=t.location.href,_e=ve.exec(xe.toLowerCase())||[];Z.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xe,type:"GET",isLocal:de.test(_e[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":we,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(t,e){return e?D(D(t,Z.ajaxSettings),e):D(Z.ajaxSettings,t)},ajaxPrefilter:P(ye),ajaxTransport:P(be),ajax:function(t,e){function n(t,e,n,s){var u,l,v,y,w,_=e;2!==b&&(b=2,a&&clearTimeout(a),r=void 0,o=s||"",x.readyState=t>0?4:0,u=t>=200&&300>t||304===t,n&&(y=M(h,x,n)),y=F(h,y,x,u),u?(h.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(Z.lastModified[i]=w),w=x.getResponseHeader("etag"),w&&(Z.etag[i]=w)),204===t||"HEAD"===h.type?_="nocontent":304===t?_="notmodified":(_=y.state,l=y.data,v=y.error,u=!v)):(v=_,(t||!_)&&(_="error",0>t&&(t=0))),x.status=t,x.statusText=(e||_)+"",u?d.resolveWith(f,[l,_,x]):d.rejectWith(f,[x,_,v]),x.statusCode(m),m=void 0,c&&p.trigger(u?"ajaxSuccess":"ajaxError",[x,h,u?l:v]),g.fireWith(f,[x,_]),c&&(p.trigger("ajaxComplete",[x,h]),--Z.active||Z.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,s,a,u,c,l,h=Z.ajaxSetup({},e),f=h.context||h,p=h.context&&(f.nodeType||f.jquery)?Z(f):Z.event,d=Z.Deferred(),g=Z.Callbacks("once memory"),m=h.statusCode||{},v={},y={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!s)for(s={};e=pe.exec(o);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=y[n]=y[n]||t,v[t]=e),this},overrideMimeType:function(t){return b||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>b)for(e in t)m[e]=[m[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return r&&r.abort(e),n(0,e),this}};if(d.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,h.url=((t||h.url||xe)+"").replace(he,"").replace(me,_e[1]+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=Z.trim(h.dataType||"*").toLowerCase().match(pt)||[""],null==h.crossDomain&&(u=ve.exec(h.url.toLowerCase()),h.crossDomain=!(!u||u[1]===_e[1]&&u[2]===_e[2]&&(u[3]||("http:"===u[1]?"80":"443"))===(_e[3]||("http:"===_e[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=Z.param(h.data,h.traditional)),L(ye,h,e,x),2===b)return x;c=Z.event&&h.global,c&&0===Z.active++&&Z.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!ge.test(h.type),i=h.url,h.hasContent||(h.data&&(i=h.url+=(le.test(i)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=fe.test(i)?i.replace(fe,"$1_="+ce++):i+(le.test(i)?"&":"?")+"_="+ce++)),h.ifModified&&(Z.lastModified[i]&&x.setRequestHeader("If-Modified-Since",Z.lastModified[i]),Z.etag[i]&&x.setRequestHeader("If-None-Match",Z.etag[i])),(h.data&&h.hasContent&&h.contentType!==!1||e.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+we+"; q=0.01":""):h.accepts["*"]);for(l in h.headers)x.setRequestHeader(l,h.headers[l]);if(h.beforeSend&&(h.beforeSend.call(f,x,h)===!1||2===b))return x.abort();w="abort";for(l in{success:1,error:1,complete:1})x[l](h[l]);if(r=L(be,h,e,x)){x.readyState=1,c&&p.trigger("ajaxSend",[x,h]),h.async&&h.timeout>0&&(a=setTimeout(function(){x.abort("timeout")},h.timeout));try{b=1,r.send(v,n)}catch(_){if(!(2>b))throw _;n(-1,_)}}else n(-1,"No Transport");return x},getJSON:function(t,e,n){return Z.get(t,e,n,"json")},getScript:function(t,e){return Z.get(t,void 0,e,"script")}}),Z.each(["get","post"],function(t,e){Z[e]=function(t,n,r,i){return Z.isFunction(n)&&(i=i||r,r=n,n=void 0),Z.ajax({url:t,type:e,dataType:i,data:n,success:r})}}),Z._evalUrl=function(t){return Z.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},Z.fn.extend({wrapAll:function(t){var e;return Z.isFunction(t)?this.each(function(e){Z(this).wrapAll(t.call(this,e))}):(this[0]&&(e=Z(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return Z.isFunction(t)?this.each(function(e){Z(this).wrapInner(t.call(this,e))}):this.each(function(){var e=Z(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=Z.isFunction(t);return this.each(function(n){Z(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){Z.nodeName(this,"body")||Z(this).replaceWith(this.childNodes)}).end()}}),Z.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},Z.expr.filters.visible=function(t){return!Z.expr.filters.hidden(t)};var Ce=/%20/g,Ee=/\[\]$/,je=/\r?\n/g,ke=/^(?:submit|button|image|reset|file)$/i,Te=/^(?:input|select|textarea|keygen)/i;Z.param=function(t,e){var n,r=[],i=function(t,e){e=Z.isFunction(e)?e():null==e?"":e,
r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=Z.ajaxSettings&&Z.ajaxSettings.traditional),Z.isArray(t)||t.jquery&&!Z.isPlainObject(t))Z.each(t,function(){i(this.name,this.value)});else for(n in t)U(n,t[n],e,i);return r.join("&").replace(Ce,"+")},Z.fn.extend({serialize:function(){return Z.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=Z.prop(this,"elements");return t?Z.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!Z(this).is(":disabled")&&Te.test(this.nodeName)&&!ke.test(t)&&(this.checked||!Et.test(t))}).map(function(t,e){var n=Z(this).val();return null==n?null:Z.isArray(n)?Z.map(n,function(t){return{name:e.name,value:t.replace(je,"\r\n")}}):{name:e.name,value:n.replace(je,"\r\n")}}).get()}}),Z.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Se=0,Ae={},Re={0:200,1223:204},Oe=Z.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in Ae)Ae[t]()}),G.cors=!!Oe&&"withCredentials"in Oe,G.ajax=Oe=!!Oe,Z.ajaxTransport(function(t){var e;return G.cors||Oe&&!t.crossDomain?{send:function(n,r){var i,o=t.xhr(),s=++Se;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)o.setRequestHeader(i,n[i]);e=function(t){return function(){e&&(delete Ae[s],e=o.onload=o.onerror=null,"abort"===t?o.abort():"error"===t?r(o.status,o.statusText):r(Re[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=e(),o.onerror=e("error"),e=Ae[s]=e("abort");try{o.send(t.hasContent&&t.data||null)}catch(a){if(e)throw a}},abort:function(){e&&e()}}:void 0}),Z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return Z.globalEval(t),t}}}),Z.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),Z.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=Z("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),K.head.appendChild(e[0])},abort:function(){n&&n()}}}});var $e=[],qe=/(=)\?(?=&|$)|\?\?/;Z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=$e.pop()||Z.expando+"_"+ce++;return this[t]=!0,t}}),Z.ajaxPrefilter("json jsonp",function(e,n,r){var i,o,s,a=e.jsonp!==!1&&(qe.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&qe.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=Z.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(qe,"$1"+i):e.jsonp!==!1&&(e.url+=(le.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||Z.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=t[i],t[i]=function(){s=arguments},r.always(function(){t[i]=o,e[i]&&(e.jsonpCallback=n.jsonpCallback,$e.push(i)),s&&Z.isFunction(o)&&o(s[0]),s=o=void 0}),"script"):void 0}),Z.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||K;var r=st.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=Z.buildFragment([t],e,i),i&&i.length&&Z(i).remove(),Z.merge([],r.childNodes))};var Ne=Z.fn.load;Z.fn.load=function(t,e,n){if("string"!=typeof t&&Ne)return Ne.apply(this,arguments);var r,i,o,s=this,a=t.indexOf(" ");return a>=0&&(r=Z.trim(t.slice(a)),t=t.slice(0,a)),Z.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),s.length>0&&Z.ajax({url:t,type:i,dataType:"html",data:e}).done(function(t){o=arguments,s.html(r?Z("<div>").append(Z.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){s.each(n,o||[t.responseText,e,t])}),this},Z.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){Z.fn[e]=function(t){return this.on(e,t)}}),Z.expr.filters.animated=function(t){return Z.grep(Z.timers,function(e){return t===e.elem}).length};var Pe=t.document.documentElement;Z.offset={setOffset:function(t,e,n){var r,i,o,s,a,u,c,l=Z.css(t,"position"),h=Z(t),f={};"static"===l&&(t.style.position="relative"),a=h.offset(),o=Z.css(t,"top"),u=Z.css(t,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=h.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),Z.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(f.top=e.top-a.top+s),null!=e.left&&(f.left=e.left-a.left+i),"using"in e?e.using.call(t,f):h.css(f)}},Z.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){Z.offset.setOffset(this,t,e)});var e,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return e=o.documentElement,Z.contains(e,r)?(typeof r.getBoundingClientRect!==jt&&(i=r.getBoundingClientRect()),n=I(o),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}):i},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===Z.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),Z.nodeName(t[0],"html")||(r=t.offset()),r.top+=Z.css(t[0],"borderTopWidth",!0),r.left+=Z.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-Z.css(n,"marginTop",!0),left:e.left-r.left-Z.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Pe;t&&!Z.nodeName(t,"html")&&"static"===Z.css(t,"position");)t=t.offsetParent;return t||Pe})}}),Z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r="pageYOffset"===n;Z.fn[e]=function(i){return mt(this,function(e,i,o){var s=I(e);return void 0===o?s?s[n]:e[i]:void(s?s.scrollTo(r?t.pageXOffset:o,r?o:t.pageYOffset):e[i]=o)},e,i,arguments.length,null)}}),Z.each(["top","left"],function(t,e){Z.cssHooks[e]=_(G.pixelPosition,function(t,n){return n?(n=x(t,e),Ht.test(n)?Z(t).position()[e]+"px":n):void 0})}),Z.each({Height:"height",Width:"width"},function(t,e){Z.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){Z.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),s=n||(r===!0||i===!0?"margin":"border");return mt(this,function(e,n,r){var i;return Z.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?Z.css(e,n,s):Z.style(e,n,r,s)},e,o?r:void 0,o,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 Le=t.jQuery,De=t.$;return Z.noConflict=function(e){return t.$===Z&&(t.$=De),e&&t.jQuery===Z&&(t.jQuery=Le),Z},typeof e===jt&&(t.jQuery=t.$=Z),Z}),function(){var t=this,e=t._,n=Array.prototype,r=Object.prototype,i=Function.prototype,o=n.push,s=n.slice,a=n.concat,u=r.toString,c=r.hasOwnProperty,l=Array.isArray,h=Object.keys,f=i.bind,p=function(t){return t instanceof p?t:this instanceof p?void(this._wrapped=t):new p(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=p),exports._=p):t._=p,p.VERSION="1.7.0";var d=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return function(){return t.apply(e,arguments)}};p.iteratee=function(t,e,n){return null==t?p.identity:p.isFunction(t)?d(t,e,n):p.isObject(t)?p.matches(t):p.property(t)},p.each=p.forEach=function(t,e,n){if(null==t)return t;e=d(e,n);var r,i=t.length;if(i===+i)for(r=0;i>r;r++)e(t[r],r,t);else{var o=p.keys(t);for(r=0,i=o.length;i>r;r++)e(t[o[r]],o[r],t)}return t},p.map=p.collect=function(t,e,n){if(null==t)return[];e=p.iteratee(e,n);for(var r,i=t.length!==+t.length&&p.keys(t),o=(i||t).length,s=Array(o),a=0;o>a;a++)r=i?i[a]:a,s[a]=e(t[r],r,t);return s};var g="Reduce of empty array with no initial value";p.reduce=p.foldl=p.inject=function(t,e,n,r){null==t&&(t=[]),e=d(e,r,4);var i,o=t.length!==+t.length&&p.keys(t),s=(o||t).length,a=0;if(arguments.length<3){if(!s)throw new TypeError(g);n=t[o?o[a++]:a++]}for(;s>a;a++)i=o?o[a]:a,n=e(n,t[i],i,t);return n},p.reduceRight=p.foldr=function(t,e,n,r){null==t&&(t=[]),e=d(e,r,4);var i,o=t.length!==+t.length&&p.keys(t),s=(o||t).length;if(arguments.length<3){if(!s)throw new TypeError(g);n=t[o?o[--s]:--s]}for(;s--;)i=o?o[s]:s,n=e(n,t[i],i,t);return n},p.find=p.detect=function(t,e,n){var r;return e=p.iteratee(e,n),p.some(t,function(t,n,i){return e(t,n,i)?(r=t,!0):void 0}),r},p.filter=p.select=function(t,e,n){var r=[];return null==t?r:(e=p.iteratee(e,n),p.each(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r)},p.reject=function(t,e,n){return p.filter(t,p.negate(p.iteratee(e)),n)},p.every=p.all=function(t,e,n){if(null==t)return!0;e=p.iteratee(e,n);var r,i,o=t.length!==+t.length&&p.keys(t),s=(o||t).length;for(r=0;s>r;r++)if(i=o?o[r]:r,!e(t[i],i,t))return!1;return!0},p.some=p.any=function(t,e,n){if(null==t)return!1;e=p.iteratee(e,n);var r,i,o=t.length!==+t.length&&p.keys(t),s=(o||t).length;for(r=0;s>r;r++)if(i=o?o[r]:r,e(t[i],i,t))return!0;return!1},p.contains=p.include=function(t,e){return null==t?!1:(t.length!==+t.length&&(t=p.values(t)),p.indexOf(t,e)>=0)},p.invoke=function(t,e){var n=s.call(arguments,2),r=p.isFunction(e);return p.map(t,function(t){return(r?e:t[e]).apply(t,n)})},p.pluck=function(t,e){return p.map(t,p.property(e))},p.where=function(t,e){return p.filter(t,p.matches(e))},p.findWhere=function(t,e){return p.find(t,p.matches(e))},p.max=function(t,e,n){var r,i,o=-(1/0),s=-(1/0);if(null==e&&null!=t){t=t.length===+t.length?t:p.values(t);for(var a=0,u=t.length;u>a;a++)r=t[a],r>o&&(o=r)}else e=p.iteratee(e,n),p.each(t,function(t,n,r){i=e(t,n,r),(i>s||i===-(1/0)&&o===-(1/0))&&(o=t,s=i)});return o},p.min=function(t,e,n){var r,i,o=1/0,s=1/0;if(null==e&&null!=t){t=t.length===+t.length?t:p.values(t);for(var a=0,u=t.length;u>a;a++)r=t[a],o>r&&(o=r)}else e=p.iteratee(e,n),p.each(t,function(t,n,r){i=e(t,n,r),(s>i||i===1/0&&o===1/0)&&(o=t,s=i)});return o},p.shuffle=function(t){for(var e,n=t&&t.length===+t.length?t:p.values(t),r=n.length,i=Array(r),o=0;r>o;o++)e=p.random(0,o),e!==o&&(i[o]=i[e]),i[e]=n[o];return i},p.sample=function(t,e,n){return null==e||n?(t.length!==+t.length&&(t=p.values(t)),t[p.random(t.length-1)]):p.shuffle(t).slice(0,Math.max(0,e))},p.sortBy=function(t,e,n){return e=p.iteratee(e,n),p.pluck(p.map(t,function(t,n,r){return{value:t,index:n,criteria:e(t,n,r)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(r>n||void 0===r)return-1}return t.index-e.index}),"value")};var m=function(t){return function(e,n,r){var i={};return n=p.iteratee(n,r),p.each(e,function(r,o){var s=n(r,o,e);t(i,r,s)}),i}};p.groupBy=m(function(t,e,n){p.has(t,n)?t[n].push(e):t[n]=[e]}),p.indexBy=m(function(t,e,n){t[n]=e}),p.countBy=m(function(t,e,n){p.has(t,n)?t[n]++:t[n]=1}),p.sortedIndex=function(t,e,n,r){n=p.iteratee(n,r,1);for(var i=n(e),o=0,s=t.length;s>o;){var a=o+s>>>1;n(t[a])<i?o=a+1:s=a}return o},p.toArray=function(t){return t?p.isArray(t)?s.call(t):t.length===+t.length?p.map(t,p.identity):p.values(t):[]},p.size=function(t){return null==t?0:t.length===+t.length?t.length:p.keys(t).length},p.partition=function(t,e,n){e=p.iteratee(e,n);var r=[],i=[];return p.each(t,function(t,n,o){(e(t,n,o)?r:i).push(t)}),[r,i]},p.first=p.head=p.take=function(t,e,n){return null==t?void 0:null==e||n?t[0]:0>e?[]:s.call(t,0,e)},p.initial=function(t,e,n){return s.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},p.last=function(t,e,n){return null==t?void 0:null==e||n?t[t.length-1]:s.call(t,Math.max(t.length-e,0))},p.rest=p.tail=p.drop=function(t,e,n){return s.call(t,null==e||n?1:e)},p.compact=function(t){return p.filter(t,p.identity)};var v=function(t,e,n,r){if(e&&p.every(t,p.isArray))return a.apply(r,t);for(var i=0,s=t.length;s>i;i++){var u=t[i];p.isArray(u)||p.isArguments(u)?e?o.apply(r,u):v(u,e,n,r):n||r.push(u)}return r};p.flatten=function(t,e){return v(t,e,!1,[])},p.without=function(t){return p.difference(t,s.call(arguments,1))},p.uniq=p.unique=function(t,e,n,r){if(null==t)return[];p.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=p.iteratee(n,r));for(var i=[],o=[],s=0,a=t.length;a>s;s++){var u=t[s];if(e)s&&o===u||i.push(u),o=u;else if(n){var c=n(u,s,t);p.indexOf(o,c)<0&&(o.push(c),i.push(u))}else p.indexOf(i,u)<0&&i.push(u)}return i},p.union=function(){return p.uniq(v(arguments,!0,!0,[]))},p.intersection=function(t){if(null==t)return[];for(var e=[],n=arguments.length,r=0,i=t.length;i>r;r++){var o=t[r];if(!p.contains(e,o)){for(var s=1;n>s&&p.contains(arguments[s],o);s++);s===n&&e.push(o)}}return e},p.difference=function(t){var e=v(s.call(arguments,1),!0,!0,[]);return p.filter(t,function(t){return!p.contains(e,t)})},p.zip=function(t){if(null==t)return[];for(var e=p.max(arguments,"length").length,n=Array(e),r=0;e>r;r++)n[r]=p.pluck(arguments,r);return n},p.object=function(t,e){if(null==t)return{};for(var n={},r=0,i=t.length;i>r;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n},p.indexOf=function(t,e,n){if(null==t)return-1;var r=0,i=t.length;if(n){if("number"!=typeof n)return r=p.sortedIndex(t,e),t[r]===e?r:-1;r=0>n?Math.max(0,i+n):n}for(;i>r;r++)if(t[r]===e)return r;return-1},p.lastIndexOf=function(t,e,n){if(null==t)return-1;var r=t.length;for("number"==typeof n&&(r=0>n?r+n+1:Math.min(r,n+1));--r>=0;)if(t[r]===e)return r;return-1},p.range=function(t,e,n){arguments.length<=1&&(e=t||0,t=0),n=n||1;for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),o=0;r>o;o++,t+=n)i[o]=t;return i};var y=function(){};p.bind=function(t,e){var n,r;if(f&&t.bind===f)return f.apply(t,s.call(arguments,1));if(!p.isFunction(t))throw new TypeError("Bind must be called on a function");return n=s.call(arguments,2),r=function(){if(!(this instanceof r))return t.apply(e,n.concat(s.call(arguments)));y.prototype=t.prototype;var i=new y;y.prototype=null;var o=t.apply(i,n.concat(s.call(arguments)));return p.isObject(o)?o:i}},p.partial=function(t){var e=s.call(arguments,1);return function(){for(var n=0,r=e.slice(),i=0,o=r.length;o>i;i++)r[i]===p&&(r[i]=arguments[n++]);for(;n<arguments.length;)r.push(arguments[n++]);return t.apply(this,r)}},p.bindAll=function(t){var e,n,r=arguments.length;if(1>=r)throw new Error("bindAll must be passed function names");for(e=1;r>e;e++)n=arguments[e],t[n]=p.bind(t[n],t);return t},p.memoize=function(t,e){var n=function(r){var i=n.cache,o=e?e.apply(this,arguments):r;return p.has(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return n.cache={},n},p.delay=function(t,e){var n=s.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},p.defer=function(t){return p.delay.apply(p,[t,1].concat(s.call(arguments,1)))},p.throttle=function(t,e,n){var r,i,o,s=null,a=0;n||(n={});var u=function(){a=n.leading===!1?0:p.now(),s=null,o=t.apply(r,i),s||(r=i=null)};return function(){var c=p.now();a||n.leading!==!1||(a=c);var l=e-(c-a);return r=this,i=arguments,0>=l||l>e?(clearTimeout(s),s=null,a=c,o=t.apply(r,i),s||(r=i=null)):s||n.trailing===!1||(s=setTimeout(u,l)),o}},p.debounce=function(t,e,n){var r,i,o,s,a,u=function(){var c=p.now()-s;e>c&&c>0?r=setTimeout(u,e-c):(r=null,n||(a=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,s=p.now();var c=n&&!r;return r||(r=setTimeout(u,e)),c&&(a=t.apply(o,i),o=i=null),a}},p.wrap=function(t,e){return p.partial(e,t)},p.negate=function(t){return function(){return!t.apply(this,arguments)}},p.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},p.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},p.before=function(t,e){var n;return function(){return--t>0?n=e.apply(this,arguments):e=null,n}},p.once=p.partial(p.before,2),p.keys=function(t){if(!p.isObject(t))return[];if(h)return h(t);var e=[];for(var n in t)p.has(t,n)&&e.push(n);return e},p.values=function(t){for(var e=p.keys(t),n=e.length,r=Array(n),i=0;n>i;i++)r[i]=t[e[i]];return r},p.pairs=function(t){for(var e=p.keys(t),n=e.length,r=Array(n),i=0;n>i;i++)r[i]=[e[i],t[e[i]]];return r},p.invert=function(t){for(var e={},n=p.keys(t),r=0,i=n.length;i>r;r++)e[t[n[r]]]=n[r];return e},p.functions=p.methods=function(t){var e=[];for(var n in t)p.isFunction(t[n])&&e.push(n);return e.sort()},p.extend=function(t){if(!p.isObject(t))return t;for(var e,n,r=1,i=arguments.length;i>r;r++){e=arguments[r];for(n in e)c.call(e,n)&&(t[n]=e[n])}return t},p.pick=function(t,e,n){var r,i={};if(null==t)return i;if(p.isFunction(e)){e=d(e,n);for(r in t){var o=t[r];e(o,r,t)&&(i[r]=o)}}else{var u=a.apply([],s.call(arguments,1));t=new Object(t);for(var c=0,l=u.length;l>c;c++)r=u[c],r in t&&(i[r]=t[r])}return i},p.omit=function(t,e,n){if(p.isFunction(e))e=p.negate(e);else{var r=p.map(a.apply([],s.call(arguments,1)),String);e=function(t,e){return!p.contains(r,e)}}return p.pick(t,e,n)},p.defaults=function(t){if(!p.isObject(t))return t;for(var e=1,n=arguments.length;n>e;e++){var r=arguments[e];for(var i in r)void 0===t[i]&&(t[i]=r[i])}return t},p.clone=function(t){return p.isObject(t)?p.isArray(t)?t.slice():p.extend({},t):t},p.tap=function(t,e){return e(t),t};var b=function(t,e,n,r){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof p&&(t=t._wrapped),e instanceof p&&(e=e._wrapped);var i=u.call(t);if(i!==u.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!==+t?+e!==+e:0===+t?1/+t===1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e}if("object"!=typeof t||"object"!=typeof e)return!1;for(var o=n.length;o--;)if(n[o]===t)return r[o]===e;var s=t.constructor,a=e.constructor;if(s!==a&&"constructor"in t&&"constructor"in e&&!(p.isFunction(s)&&s instanceof s&&p.isFunction(a)&&a instanceof a))return!1;n.push(t),r.push(e);var c,l;if("[object Array]"===i){if(c=t.length,l=c===e.length)for(;c--&&(l=b(t[c],e[c],n,r)););}else{var h,f=p.keys(t);if(c=f.length,l=p.keys(e).length===c)for(;c--&&(h=f[c],l=p.has(e,h)&&b(t[h],e[h],n,r)););}return n.pop(),r.pop(),l};p.isEqual=function(t,e){return b(t,e,[],[])},p.isEmpty=function(t){if(null==t)return!0;if(p.isArray(t)||p.isString(t)||p.isArguments(t))return 0===t.length;for(var e in t)if(p.has(t,e))return!1;return!0},p.isElement=function(t){return!(!t||1!==t.nodeType)},p.isArray=l||function(t){return"[object Array]"===u.call(t)},p.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},p.each(["Arguments","Function","String","Number","Date","RegExp"],function(t){p["is"+t]=function(e){return u.call(e)==="[object "+t+"]"}}),p.isArguments(arguments)||(p.isArguments=function(t){return p.has(t,"callee")}),"function"!=typeof/./&&(p.isFunction=function(t){return"function"==typeof t||!1}),p.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},p.isNaN=function(t){return p.isNumber(t)&&t!==+t},p.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===u.call(t)},p.isNull=function(t){return null===t},p.isUndefined=function(t){return void 0===t},p.has=function(t,e){return null!=t&&c.call(t,e)},p.noConflict=function(){return t._=e,this},p.identity=function(t){return t},p.constant=function(t){return function(){return t}},p.noop=function(){},p.property=function(t){return function(e){return e[t]}},p.matches=function(t){var e=p.pairs(t),n=e.length;return function(t){if(null==t)return!n;t=new Object(t);for(var r=0;n>r;r++){var i=e[r],o=i[0];if(i[1]!==t[o]||!(o in t))return!1}return!0}},p.times=function(t,e,n){var r=Array(Math.max(0,t));e=d(e,n,1);for(var i=0;t>i;i++)r[i]=e(i);return r},p.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},p.now=Date.now||function(){return(new Date).getTime()};var w={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},x=p.invert(w),_=function(t){var e=function(e){return t[e]},n="(?:"+p.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}};p.escape=_(w),p.unescape=_(x),p.result=function(t,e){if(null==t)return void 0;var n=t[e];return p.isFunction(n)?t[e]():n};var C=0;p.uniqueId=function(t){var e=++C+"";return t?t+e:e},p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var E=/(.)^/,j={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},k=/\\|'|\r|\n|\u2028|\u2029/g,T=function(t){return"\\"+j[t]};p.template=function(t,e,n){!e&&n&&(e=n),e=p.defaults({},e,p.templateSettings);var r=RegExp([(e.escape||E).source,(e.interpolate||E).source,(e.evaluate||E).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,function(e,n,r,s,a){return o+=t.slice(i,a).replace(k,T),i=a+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var s=new Function(e.variable||"obj","_",o)}catch(a){throw a.source=o,a}var u=function(t){return s.call(this,t,p)},c=e.variable||"obj";return u.source="function("+c+"){\n"+o+"}",u},p.chain=function(t){var e=p(t);return e._chain=!0,e};var S=function(t){return this._chain?p(t).chain():t};p.mixin=function(t){p.each(p.functions(t),function(e){var n=p[e]=t[e];p.prototype[e]=function(){var t=[this._wrapped];return o.apply(t,arguments),S.call(this,n.apply(p,t))}})},p.mixin(p),p.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=n[t];p.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],S.call(this,n)}}),p.each(["concat","join","slice"],function(t){var e=n[t];p.prototype[t]=function(){return S.call(this,e.apply(this._wrapped,arguments))}}),p.prototype.value=function(){return this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return p})}.call(this),function(t,e){if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(n,r,i){t.Backbone=e(t,i,n,r)});else if("undefined"!=typeof exports){var n=require("underscore");e(t,exports,n)}else t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e,n,r){var i=t.Backbone,o=[],s=(o.push,o.slice);o.splice;e.VERSION="1.1.2",e.$=r,e.noConflict=function(){return t.Backbone=i,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=e.Events={on:function(t,e,n){if(!c(this,"on",t,[e,n])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);return r.push({callback:e,context:n,ctx:n||this}),this},once:function(t,e,r){if(!c(this,"once",t,[e,r])||!e)return this;var i=this,o=n.once(function(){i.off(t,o),e.apply(this,arguments)});return o._callback=e,this.on(t,o,r)},off:function(t,e,r){var i,o,s,a,u,l,h,f;if(!this._events||!c(this,"off",t,[e,r]))return this;if(!t&&!e&&!r)return this._events=void 0,this;for(a=t?[t]:n.keys(this._events),u=0,l=a.length;l>u;u++)if(t=a[u],s=this._events[t]){if(this._events[t]=i=[],e||r)for(h=0,f=s.length;f>h;h++)o=s[h],(e&&e!==o.callback&&e!==o.callback._callback||r&&r!==o.context)&&i.push(o);i.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=s.call(arguments,1);if(!c(this,"trigger",t,e))return this;var n=this._events[t],r=this._events.all;return n&&l(n,e),r&&l(r,arguments),this},stopListening:function(t,e,r){var i=this._listeningTo;if(!i)return this;var o=!e&&!r;r||"object"!=typeof e||(r=this),t&&((i={})[t._listenId]=t);for(var s in i)t=i[s],t.off(e,r,this),(o||n.isEmpty(t._events))&&delete this._listeningTo[s];return this}},u=/\s+/,c=function(t,e,n,r){if(!n)return!0;if("object"==typeof n){for(var i in n)t[e].apply(t,[i,n[i]].concat(r));return!1}if(u.test(n)){for(var o=n.split(u),s=0,a=o.length;a>s;s++)t[e].apply(t,[o[s]].concat(r));return!1}return!0},l=function(t,e){var n,r=-1,i=t.length,o=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++r<i;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o);return;case 2:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,s);return;case 3:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,s,a);return;default:for(;++r<i;)(n=t[r]).callback.apply(n.ctx,e);return}},h={listenTo:"on",listenToOnce:"once"};n.each(h,function(t,e){a[e]=function(e,r,i){var o=this._listeningTo||(this._listeningTo={}),s=e._listenId||(e._listenId=n.uniqueId("l"));return o[s]=e,i||"object"!=typeof r||(i=this),e[t](r,i,this),this}}),a.bind=a.on,a.unbind=a.off,n.extend(e,a);var f=e.Model=function(t,e){var r=t||{};e||(e={}),this.cid=n.uniqueId("c"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(r=this.parse(r,e)||{}),r=n.defaults({},r,n.result(this,"defaults")),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(f.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,r){var i,o,s,a,u,c,l,h;if(null==t)return this;if("object"==typeof t?(o=t,r=e):(o={})[t]=e,r||(r={}),!this._validate(o,r))return!1;s=r.unset,u=r.silent,a=[],c=this._changing,this._changing=!0,c||(this._previousAttributes=n.clone(this.attributes),this.changed={}),h=this.attributes,l=this._previousAttributes,this.idAttribute in o&&(this.id=o[this.idAttribute]);for(i in o)e=o[i],n.isEqual(h[i],e)||a.push(i),n.isEqual(l[i],e)?delete this.changed[i]:this.changed[i]=e,s?delete h[i]:h[i]=e;if(!u){a.length&&(this._pending=r);for(var f=0,p=a.length;p>f;f++)this.trigger("change:"+a[f],this,h[a[f]],r)}if(c)return this;if(!u)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?n.clone(this.changed):!1;var e,r=!1,i=this._changing?this._previousAttributes:this.attributes;for(var o in t)n.isEqual(i[o],e=t[o])||((r||(r={}))[o]=e);return r},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=this,r=t.success;return t.success=function(n){return e.set(e.parse(n,t),t)?(r&&r(e,n,t),void e.trigger("sync",e,n,t)):!1},D(this,t),this.sync("read",this,t)},save:function(t,e,r){var i,o,s,a=this.attributes;if(null==t||"object"==typeof t?(i=t,r=e):(i={})[t]=e,r=n.extend({validate:!0},r),i&&!r.wait){if(!this.set(i,r))return!1}else if(!this._validate(i,r))return!1;i&&r.wait&&(this.attributes=n.extend({},a,i)),void 0===r.parse&&(r.parse=!0);var u=this,c=r.success;return r.success=function(t){u.attributes=a;var e=u.parse(t,r);return r.wait&&(e=n.extend(i||{},e)),n.isObject(e)&&!u.set(e,r)?!1:(c&&c(u,t,r),void u.trigger("sync",u,t,r))},D(this,r),o=this.isNew()?"create":r.patch?"patch":"update","patch"===o&&(r.attrs=i),s=this.sync(o,this,r),i&&r.wait&&(this.attributes=a),s},destroy:function(t){t=t?n.clone(t):{};var e=this,r=t.success,i=function(){e.trigger("destroy",e,e.collection,t)};if(t.success=function(n){(t.wait||e.isNew())&&i(),r&&r(e,n,t),e.isNew()||e.trigger("sync",e,n,t)},this.isNew())return t.success(),!1;D(this,t);var o=this.sync("delete",this,t);return t.wait||i(),o},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||L();return this.isNew()?t:t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;return r?(this.trigger("invalid",this,r,n.extend(e,{validationError:r})),!1):!0}});var p=["keys","values","pairs","invert","pick","omit"];n.each(p,function(t){f.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.attributes),n[t].apply(n,e)}});var d=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},g={add:!0,remove:!0,merge:!0},m={add:!0,remove:!1};n.extend(d.prototype,a,{model:f,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,m))},remove:function(t,e){var r=!n.isArray(t);t=r?[t]:n.clone(t),e||(e={});var i,o,s,a;for(i=0,o=t.length;o>i;i++)a=t[i]=this.get(t[i]),a&&(delete this._byId[a.id],delete this._byId[a.cid],s=this.indexOf(a),this.models.splice(s,1),this.length--,e.silent||(e.index=s,a.trigger("remove",a,this,e)),this._removeReference(a,e));return r?t[0]:t},set:function(t,e){e=n.defaults({},e,g),e.parse&&(t=this.parse(t,e));var r=!n.isArray(t);t=r?t?[t]:[]:n.clone(t);var i,o,s,a,u,c,l,h=e.at,p=this.model,d=this.comparator&&null==h&&e.sort!==!1,m=n.isString(this.comparator)?this.comparator:null,v=[],y=[],b={},w=e.add,x=e.merge,_=e.remove,C=!d&&w&&_?[]:!1;for(i=0,o=t.length;o>i;i++){if(u=t[i]||{},s=u instanceof f?a=u:u[p.prototype.idAttribute||"id"],c=this.get(s))_&&(b[c.cid]=!0),x&&(u=u===a?a.attributes:u,e.parse&&(u=c.parse(u,e)),c.set(u,e),d&&!l&&c.hasChanged(m)&&(l=!0)),t[i]=c;else if(w){if(a=t[i]=this._prepareModel(u,e),!a)continue;v.push(a),this._addReference(a,e)}a=c||a,!C||!a.isNew()&&b[a.id]||C.push(a),b[a.id]=!0}if(_){for(i=0,o=this.length;o>i;++i)b[(a=this.models[i]).cid]||y.push(a);y.length&&this.remove(y,e)}if(v.length||C&&C.length)if(d&&(l=!0),this.length+=v.length,null!=h)for(i=0,o=v.length;o>i;i++)this.models.splice(h+i,0,v[i]);else{C&&(this.models.length=0);var E=C||v;for(i=0,o=E.length;o>i;i++)this.models.push(E[i])}if(l&&this.sort({silent:!0}),!e.silent){for(i=0,o=v.length;o>i;i++)(a=v[i]).trigger("add",a,this,e);(l||C&&C.length)&&this.trigger("sort",this,e)}return r?t[0]:t},reset:function(t,e){e||(e={});for(var r=0,i=this.models.length;i>r;r++)this._removeReference(this.models[r],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return s.apply(this.models,arguments)},get:function(t){return null==t?void 0:this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(t,e){return n.isEmpty(t)?e?void 0:[]:this[e?"find":"filter"](function(e){for(var n in t)if(t[n]!==e.get(n))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),
t.silent||this.trigger("sort",this,t),this},pluck:function(t){return n.invoke(this.models,"get",t)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=t.success,r=this;return t.success=function(n){var i=t.reset?"reset":"set";r[i](n,t),e&&e(r,n,t),r.trigger("sync",r,n,t)},D(this,t),this.sync("read",this,t)},create:function(t,e){if(e=e?n.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var r=this,i=e.success;return e.success=function(t,n){e.wait&&r.add(t,e),i&&i(t,n,e)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof f)return t;e=e?n.clone(e):{},e.collection=this;var r=new this.model(t,e);return r.validationError?(this.trigger("invalid",this,r.validationError,e),!1):r},_addReference:function(t,e){this._byId[t.cid]=t,null!=t.id&&(this._byId[t.id]=t),t.collection||(t.collection=this),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,r){("add"!==t&&"remove"!==t||n===this)&&("destroy"===t&&this.remove(e,r),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});var v=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];n.each(v,function(t){d.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.models),n[t].apply(n,e)}});var y=["groupBy","countBy","sortBy","indexBy"];n.each(y,function(t){d.prototype[t]=function(e,r){var i=n.isFunction(e)?e:function(t){return t.get(e)};return n[t](this.models,i,r)}});var b=e.View=function(t){this.cid=n.uniqueId("view"),t||(t={}),n.extend(this,n.pick(t,x)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},w=/^(\S+)\s*(.*)$/,x=["model","collection","el","id","attributes","className","tagName","events"];n.extend(b.prototype,a,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,n){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],n!==!1&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=n.result(this,"events")))return this;this.undelegateEvents();for(var e in t){var r=t[e];if(n.isFunction(r)||(r=this[t[e]]),r){var i=e.match(w),o=i[1],s=i[2];r=n.bind(r,this),o+=".delegateEvents"+this.cid,""===s?this.$el.on(o,r):this.$el.on(o,s,r)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t["class"]=n.result(this,"className"));var r=e.$("<"+n.result(this,"tagName")+">").attr(t);this.setElement(r,!1)}}}),e.sync=function(t,r,i){var o=C[t];n.defaults(i||(i={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var s={type:o,dataType:"json"};if(i.url||(s.url=n.result(r,"url")||L()),null!=i.data||!r||"create"!==t&&"update"!==t&&"patch"!==t||(s.contentType="application/json",s.data=JSON.stringify(i.attrs||r.toJSON(i))),i.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),i.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){s.type="POST",i.emulateJSON&&(s.data._method=o);var a=i.beforeSend;i.beforeSend=function(t){return t.setRequestHeader("X-HTTP-Method-Override",o),a?a.apply(this,arguments):void 0}}"GET"===s.type||i.emulateJSON||(s.processData=!1),"PATCH"===s.type&&_&&(s.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var u=i.xhr=e.ajax(n.extend(s,i));return r.trigger("request",r,u,i),u};var _=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),C={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var E=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},j=/\((.*?)\)/g,k=/(\(\?)?:\w+/g,T=/\*\w+/g,S=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(E.prototype,a,{initialize:function(){},route:function(t,r,i){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(r)&&(i=r,r=""),i||(i=this[r]);var o=this;return e.history.route(t,function(n){var s=o._extractParameters(t,n);o.execute(i,s),o.trigger.apply(o,["route:"+r].concat(s)),o.trigger("route",r,s),e.history.trigger("route",o,r,s)}),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(S,"\\$&").replace(j,"(?:$1)?").replace(k,function(t,e){return e?t:"([^/?]+)"}).replace(T,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return n.map(r,function(t,e){return e===r.length-1?t||null:t?decodeURIComponent(t):null})}});var A=e.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},R=/^[#\/]|\s+$/g,O=/^\/+|\/+$/g,$=/msie [\w.]+/,q=/\/$/,N=/#.*$/;A.started=!1,n.extend(A.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(q,"");t.indexOf(n)||(t=t.slice(n.length))}else t=this.getHash();return t.replace(R,"")},start:function(t){if(A.started)throw new Error("Backbone.history has already been started");A.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment(),i=document.documentMode,o=$.exec(navigator.userAgent.toLowerCase())&&(!i||7>=i);if(this.root=("/"+this.root+"/").replace(O,"/"),o&&this._wantsHashChange){var s=e.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=s.hide().appendTo("body")[0].contentWindow,this.navigate(r)}this._hasPushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!o?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=r;var a=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&a.hash&&(this.fragment=this.getHash().replace(R,""),this.history.replaceState({},document.title,this.root+this.fragment))}return this.options.silent?void 0:this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),A.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();return e===this.fragment&&this.iframe&&(e=this.getFragment(this.getHash(this.iframe))),e===this.fragment?!1:(this.iframe&&this.navigate(e),void this.loadUrl())},loadUrl:function(t){return t=this.fragment=this.getFragment(t),n.any(this.handlers,function(e){return e.route.test(t)?(e.callback(t),!0):void 0})},navigate:function(t,e){if(!A.started)return!1;e&&e!==!0||(e={trigger:!!e});var n=this.root+(t=this.getFragment(t||""));if(t=t.replace(N,""),this.fragment!==t){if(this.fragment=t,""===t&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else t.hash="#"+e}}),e.history=new A;var P=function(t,e){var r,i=this;r=t&&n.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)},n.extend(r,i,e);var o=function(){this.constructor=r};return o.prototype=i.prototype,r.prototype=new o,t&&n.extend(r.prototype,t),r.__super__=i.prototype,r};f.extend=d.extend=E.extend=b.extend=A.extend=P;var L=function(){throw new Error('A "url" property or function must be specified')},D=function(t,e){var n=e.error;e.error=function(r){n&&n(t,r,e),t.trigger("error",t,r,e)}};return e}),/*!
 * jsUri
 * https://github.com/derek-watson/jsUri
 *
 * Copyright 2013, Derek Watson
 * Released under the MIT license.
 *
 * Includes parseUri regular expressions
 * http://blog.stevenlevithan.com/archives/parseuri
 * Copyright 2007, Steven Levithan
 * Released under the MIT license.
 */
function(t){function e(t){return t&&(t=decodeURIComponent(t),t=t.replace(o.pluses," ")),t}function n(t){var e=o.uri_parser,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],r=e.exec(t||""),i={};return n.forEach(function(t,e){i[t]=r[e]||""}),i}function r(t){var e,n,r,i,s,a,u=[];if("undefined"==typeof t||null===t||""===t)return u;for(0===t.indexOf("?")&&(t=t.substring(1)),n=t.toString().split(o.query_separator),e=0,l=n.length;e<l;e++)r=n[e],i=r.indexOf("="),0!==i&&(s=decodeURIComponent(r.substring(0,i)),a=decodeURIComponent(r.substring(i+1)),u.push(-1===i?[r,null]:[s,a]));return u}function i(t){this.uriParts=n(t),this.queryPairs=r(this.uriParts.query),this.hasAuthorityPrefixUserPref=null}var o={starts_with_slashes:/^\/+/,ends_with_slashes:/\/+$/,pluses:/\+/g,query_separator:/[&;]/,uri_parser:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/};Array.prototype.forEach||(Array.prototype.forEach=function(t,e){var n,r;if(null==this)throw new TypeError(" this is null or not defined");var i=Object(this),o=i.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),r=0;o>r;){var s;r in i&&(s=i[r],t.call(n,s,r,i)),r++}}),["protocol","userInfo","host","port","path","anchor"].forEach(function(t){i.prototype[t]=function(e){return"undefined"!=typeof e&&(this.uriParts[t]=e),this.uriParts[t]}}),i.prototype.hasAuthorityPrefix=function(t){return"undefined"!=typeof t&&(this.hasAuthorityPrefixUserPref=t),null===this.hasAuthorityPrefixUserPref?-1!==this.uriParts.source.indexOf("//"):this.hasAuthorityPrefixUserPref},i.prototype.query=function(t){var e,n,i="";for("undefined"!=typeof t&&(this.queryPairs=r(t)),e=0,l=this.queryPairs.length;e<l;e++)n=this.queryPairs[e],i.length>0&&(i+="&"),null===n[1]?i+=n[0]:(i+=n[0],i+="=",n[1]&&(i+=encodeURIComponent(n[1])));return i.length>0?"?"+i:i},i.prototype.getQueryParamValue=function(t){var e,n;for(n=0,l=this.queryPairs.length;n<l;n++)if(e=this.queryPairs[n],t===e[0])return e[1]},i.prototype.getQueryParamValues=function(t){var e,n,r=[];for(e=0,l=this.queryPairs.length;e<l;e++)n=this.queryPairs[e],t===n[0]&&r.push(n[1]);return r},i.prototype.deleteQueryParam=function(t,n){var r,i,o,s,a=[];for(r=0,l=this.queryPairs.length;r<l;r++)i=this.queryPairs[r],o=e(i[0])===e(t),s=i[1]===n,(1!==arguments.length||o)&&(2!==arguments.length||o&&s)||a.push(i);return this.queryPairs=a,this},i.prototype.addQueryParam=function(t,e,n){return 3===arguments.length&&-1!==n?(n=Math.min(n,this.queryPairs.length),this.queryPairs.splice(n,0,[t,e])):arguments.length>0&&this.queryPairs.push([t,e]),this},i.prototype.replaceQueryParam=function(t,n,r){var i,o,s=-1,a=this.queryPairs.length;if(3===arguments.length){for(i=0;a>i;i++)if(o=this.queryPairs[i],e(o[0])===e(t)&&decodeURIComponent(o[1])===e(r)){s=i;break}s>=0&&this.deleteQueryParam(t,e(r)).addQueryParam(t,n,s)}else{for(i=0;a>i;i++)if(o=this.queryPairs[i],e(o[0])===e(t)){s=i;break}this.deleteQueryParam(t),this.addQueryParam(t,n,s)}return this},["protocol","hasAuthorityPrefix","userInfo","host","port","path","query","anchor"].forEach(function(t){var e="set"+t.charAt(0).toUpperCase()+t.slice(1);i.prototype[e]=function(e){return this[t](e),this}}),i.prototype.scheme=function(){var t="";return this.protocol()?(t+=this.protocol(),this.protocol().indexOf(":")!==this.protocol().length-1&&(t+=":"),t+="//"):this.hasAuthorityPrefix()&&this.host()&&(t+="//"),t},i.prototype.origin=function(){var t=this.scheme();return"file://"==t?t+this.uriParts.authority:(this.userInfo()&&this.host()&&(t+=this.userInfo(),this.userInfo().indexOf("@")!==this.userInfo().length-1&&(t+="@")),this.host()&&(t+=this.host(),this.port()&&(t+=":"+this.port())),t)},i.prototype.addTrailingSlash=function(){var t=this.path()||"";return"/"!==t.substr(-1)&&this.path(t+"/"),this},i.prototype.toString=function(){var t,e=this.origin();return this.path()?(t=this.path(),o.ends_with_slashes.test(e)||o.starts_with_slashes.test(t)?(e&&e.replace(o.ends_with_slashes,"/"),t=t.replace(o.starts_with_slashes,"/")):e+="/",e+=t):this.host()&&(this.query().toString()||this.anchor())&&(e+="/"),this.query().toString()&&(0!==this.query().toString().indexOf("?")&&(e+="?"),e+=this.query().toString()),this.anchor()&&(0!==this.anchor().indexOf("#")&&(e+="#"),e+=this.anchor()),e},i.prototype.clone=function(){return new i(this.toString())},"function"==typeof define&&define.amd?define(function(){return i}):"undefined"!=typeof module&&"undefined"!=typeof module.exports?module.exports=i:t.Uri=i}(this),function(){function t(e){var n=t.resolve(e),r=t.modules[n];if(!r)throw new Error('failed to require "'+e+'"');return r.exports||(r.exports={},r.call(r.exports,r,r.exports,t.relative(n))),r.exports}function e(){for(var t=(new r).getTime();h.length&&(new r).getTime()-t<100;)h.shift()();l=h.length?i(e,0):null}t.modules={},t.resolve=function(e){var n=e,r=e+".js",i=e+"/index.js";return t.modules[r]&&r||t.modules[i]&&i||n},t.register=function(e,n){t.modules[e]=n},t.relative=function(e){return function(n){if("."!=n.charAt(0))return t(n);var r=e.split("/"),i=n.split("/");r.pop();for(var o=0;o<i.length;o++){var s=i[o];".."==s?r.pop():"."!=s&&r.push(s)}return t(r.join("/"))}},t.register("browser/debug.js",function(t,e,n){t.exports=function(t){return function(){}}}),t.register("browser/diff.js",function(t,e,n){var r=function(){function t(t){return{newPos:t.newPos,components:t.components.slice(0)}}function e(t){for(var e=[],n=0;n<t.length;n++)t[n]&&e.push(t[n]);return e}function n(t){var e=t;return e=e.replace(/&/g,"&amp;"),e=e.replace(/</g,"&lt;"),e=e.replace(/>/g,"&gt;"),e=e.replace(/"/g,"&quot;")}var r=function(t){this.ignoreWhitespace=t};r.prototype={diff:function(e,n){if(n===e)return[{value:n}];if(!n)return[{value:e,removed:!0}];if(!e)return[{value:n,added:!0}];n=this.tokenize(n),e=this.tokenize(e);var r=n.length,i=e.length,o=r+i,s=[{newPos:-1,components:[]}],a=this.extractCommon(s[0],n,e,0);if(s[0].newPos+1>=r&&a+1>=i)return s[0].components;for(var u=1;o>=u;u++)for(var c=-1*u;u>=c;c+=2){var l,h=s[c-1],f=s[c+1];a=(f?f.newPos:0)-c,h&&(s[c-1]=void 0);var p=h&&h.newPos+1<r,d=f&&a>=0&&i>a;if(p||d){!p||d&&h.newPos<f.newPos?(l=t(f),this.pushComponent(l.components,e[a],void 0,!0)):(l=t(h),l.newPos++,this.pushComponent(l.components,n[l.newPos],!0,void 0));var a=this.extractCommon(l,n,e,c);if(l.newPos+1>=r&&a+1>=i)return l.components;s[c]=l}else s[c]=void 0}},pushComponent:function(t,e,n,r){var i=t[t.length-1];i&&i.added===n&&i.removed===r?t[t.length-1]={value:this.join(i.value,e),added:n,removed:r}:t.push({value:e,added:n,removed:r})},extractCommon:function(t,e,n,r){for(var i=e.length,o=n.length,s=t.newPos,a=s-r;i>s+1&&o>a+1&&this.equals(e[s+1],n[a+1]);)s++,a++,this.pushComponent(t.components,e[s],void 0,void 0);return t.newPos=s,a},equals:function(t,e){var n=/\S/;return!this.ignoreWhitespace||n.test(t)||n.test(e)?t===e:!0},join:function(t,e){return t+e},tokenize:function(t){return t}};var i=new r,o=new r(!0),s=new r;o.tokenize=s.tokenize=function(t){return e(t.split(/(\s+|\b)/))};var a=new r(!0);a.tokenize=function(t){return e(t.split(/([{}:;,]|\s+)/))};var u=new r;return u.tokenize=function(t){for(var e=[],n=t.split(/^/m),r=0;r<n.length;r++){var i=n[r],o=n[r-1];"\n"==i&&o&&"\r"===o[o.length-1]?e[e.length-1]+="\n":i&&e.push(i)}return e},{Diff:r,diffChars:function(t,e){return i.diff(t,e)},diffWords:function(t,e){return o.diff(t,e)},diffWordsWithSpace:function(t,e){return s.diff(t,e)},diffLines:function(t,e){return u.diff(t,e)},diffCss:function(t,e){return a.diff(t,e)},createPatch:function(t,e,n,r,i){function o(t){return t.map(function(t){return" "+t})}function s(t,e,n){var r=c[c.length-2],i=e===c.length-2,o=e===c.length-3&&(n.added!==r.added||n.removed!==r.removed);/\n$/.test(n.value)||!i&&!o||t.push("\\ No newline at end of file")}var a=[];a.push("Index: "+t),a.push("==================================================================="),a.push("--- "+t+("undefined"==typeof r?"":"	"+r)),a.push("+++ "+t+("undefined"==typeof i?"":"	"+i));var c=u.diff(e,n);c[c.length-1].value||c.pop(),c.push({value:"",lines:[]});for(var l=0,h=0,f=[],p=1,d=1,g=0;g<c.length;g++){var m=c[g],v=m.lines||m.value.replace(/\n$/,"").split("\n");if(m.lines=v,m.added||m.removed){if(!l){var y=c[g-1];l=p,h=d,y&&(f=o(y.lines.slice(-4)),l-=f.length,h-=f.length)}f.push.apply(f,v.map(function(t){return(m.added?"+":"-")+t})),s(f,g,m),m.added?d+=v.length:p+=v.length}else{if(l)if(v.length<=8&&g<c.length-2)f.push.apply(f,o(v));else{var b=Math.min(v.length,4);a.push("@@ -"+l+","+(p-l+b)+" +"+h+","+(d-h+b)+" @@"),a.push.apply(a,f),a.push.apply(a,o(v.slice(0,b))),v.length<=4&&s(a,g,m),l=0,h=0,f=[]}p+=v.length,d+=v.length}}return a.join("\n")+"\n"},applyPatch:function(t,e){for(var n=e.split("\n"),r=[],i=!1,o=!1,s="I"===n[0][0]?4:0;s<n.length;s++)if("@"===n[s][0]){var a=n[s].split(/@@ -(\d+),(\d+) \+(\d+),(\d+) @@/);r.unshift({start:a[3],oldlength:a[2],oldlines:[],newlength:a[4],newlines:[]})}else"+"===n[s][0]?r[0].newlines.push(n[s].substr(1)):"-"===n[s][0]?r[0].oldlines.push(n[s].substr(1)):" "===n[s][0]?(r[0].newlines.push(n[s].substr(1)),r[0].oldlines.push(n[s].substr(1))):"\\"===n[s][0]&&("+"===n[s-1][0]?i=!0:"-"===n[s-1][0]&&(o=!0));for(var u=t.split("\n"),s=r.length-1;s>=0;s--){for(var c=r[s],l=0;l<c.oldlength;l++)if(u[c.start-1+l]!==c.oldlines[l])return!1;Array.prototype.splice.apply(u,[c.start-1,+c.oldlength].concat(c.newlines))}if(i)for(;!u[u.length-1];)u.pop();else o&&u.push("");return u.join("\n")},convertChangesToXML:function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];i.added?e.push("<ins>"):i.removed&&e.push("<del>"),e.push(n(i.value)),i.added?e.push("</ins>"):i.removed&&e.push("</del>")}return e.join("")},convertChangesToDMP:function(t){for(var e,n=[],r=0;r<t.length;r++)e=t[r],n.push([e.added?1:e.removed?-1:0,e.value]);return n}}}();"undefined"!=typeof t&&(t.exports=r)}),t.register("browser/escape-string-regexp.js",function(t,e,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(r,"\\$&")}}),t.register("browser/events.js",function(t,e,n){function r(t){return"[object Array]"=={}.toString.call(t)}function i(){}e.EventEmitter=i,i.prototype.on=function(t,e){return this.$events||(this.$events={}),this.$events[t]?r(this.$events[t])?this.$events[t].push(e):this.$events[t]=[this.$events[t],e]:this.$events[t]=e,this},i.prototype.addListener=i.prototype.on,i.prototype.once=function(t,e){function n(){r.removeListener(t,n),e.apply(this,arguments)}var r=this;return n.listener=e,this.on(t,n),this},i.prototype.removeListener=function(t,e){if(this.$events&&this.$events[t]){var n=this.$events[t];if(r(n)){for(var i=-1,o=0,s=n.length;s>o;o++)if(n[o]===e||n[o].listener&&n[o].listener===e){i=o;break}if(0>i)return this;n.splice(i,1),n.length||delete this.$events[t]}else(n===e||n.listener&&n.listener===e)&&delete this.$events[t]}return this},i.prototype.removeAllListeners=function(t){return void 0===t?(this.$events={},this):(this.$events&&this.$events[t]&&(this.$events[t]=null),this)},i.prototype.listeners=function(t){return this.$events||(this.$events={}),this.$events[t]||(this.$events[t]=[]),r(this.$events[t])||(this.$events[t]=[this.$events[t]]),this.$events[t]},i.prototype.emit=function(t){if(!this.$events)return!1;var e=this.$events[t];if(!e)return!1;var n=[].slice.call(arguments,1);if("function"==typeof e)e.apply(this,n);else{if(!r(e))return!1;for(var i=e.slice(),o=0,s=i.length;s>o;o++)i[o].apply(this,n)}return!0}}),t.register("browser/fs.js",function(t,e,n){}),t.register("browser/glob.js",function(t,e,n){}),t.register("browser/path.js",function(t,e,n){}),t.register("browser/progress.js",function(t,e,n){function r(){this.percent=0,this.size(0),this.fontSize(11),this.font("helvetica, arial, sans-serif")}t.exports=r,r.prototype.size=function(t){return this._size=t,this},r.prototype.text=function(t){return this._text=t,this},r.prototype.fontSize=function(t){return this._fontSize=t,this},r.prototype.font=function(t){return this._font=t,this},r.prototype.update=function(t){return this.percent=t,this},r.prototype.draw=function(t){try{var e=Math.min(this.percent,100),n=this._size,r=n/2,i=r,o=r,s=r-1,a=this._fontSize;t.font=a+"px "+this._font;var u=2*Math.PI*(e/100);t.clearRect(0,0,n,n),t.strokeStyle="#9f9f9f",t.beginPath(),t.arc(i,o,s,0,u,!1),t.stroke(),t.strokeStyle="#eee",t.beginPath(),t.arc(i,o,s-1,0,u,!0),t.stroke();var c=this._text||(0|e)+"%",l=t.measureText(c).width;t.fillText(c,i-l/2+1,o+a/2-1)}catch(h){}return this}}),t.register("browser/tty.js",function(t,e,r){e.isatty=function(){return!0},e.getWindowSize=function(){return"innerHeight"in n?[n.innerHeight,n.innerWidth]:[640,480]}}),t.register("context.js",function(t,e,n){function r(){}t.exports=r,r.prototype.runnable=function(t){return 0==arguments.length?this._runnable:(this.test=this._runnable=t,this)},r.prototype.timeout=function(t){return 0===arguments.length?this.runnable().timeout():(this.runnable().timeout(t),this)},r.prototype.enableTimeouts=function(t){return this.runnable().enableTimeouts(t),this},r.prototype.slow=function(t){return this.runnable().slow(t),this},r.prototype.skip=function(){return this.runnable().skip(),this},r.prototype.inspect=function(){return JSON.stringify(this,function(t,e){return"_runnable"!=t&&"test"!=t?e:void 0},2)}}),t.register("hook.js",function(t,e,n){function r(t,e){o.call(this,t,e),this.type="hook"}function i(){}var o=n("./runnable");t.exports=r,i.prototype=o.prototype,r.prototype=new i,r.prototype.constructor=r,r.prototype.error=function(t){if(0==arguments.length){var t=this._error;return this._error=null,t}this._error=t}}),t.register("interfaces/bdd.js",function(t,e,n){var r=n("../suite"),i=n("../test"),o=(n("../utils"),n("browser/escape-string-regexp"));t.exports=function(t){var e=[t];t.on("pre-require",function(s,a,u){var c=n("./common")(e,s);s.before=c.before,s.after=c.after,s.beforeEach=c.beforeEach,s.afterEach=c.afterEach,s.run=u.options.delay&&c.runWithSuite(t),s.describe=s.context=function(t,n){var i=r.create(e[0],t);return i.file=a,e.unshift(i),n.call(i),e.shift(),i},s.xdescribe=s.xcontext=s.describe.skip=function(t,n){var i=r.create(e[0],t);i.pending=!0,e.unshift(i),n.call(i),e.shift()},s.describe.only=function(t,e){var n=s.describe(t,e);return u.grep(n.fullTitle()),n},s.it=s.specify=function(t,n){var r=e[0];r.pending&&(n=null);var o=new i(t,n);return o.file=a,r.addTest(o),o},s.it.only=function(t,e){var n=s.it(t,e),r="^"+o(n.fullTitle())+"$";return u.grep(new RegExp(r)),n},s.xit=s.xspecify=s.it.skip=function(t){s.it(t)}})}}),t.register("interfaces/common.js",function(t,e,n){"use strict";t.exports=function(t,e){return{runWithSuite:function(t){return function(){t.run()}},before:function(e,n){t[0].beforeAll(e,n)},after:function(e,n){t[0].afterAll(e,n)},beforeEach:function(e,n){t[0].beforeEach(e,n)},afterEach:function(e,n){t[0].afterEach(e,n)},test:{skip:function(t){e.test(t)}}}}}),t.register("interfaces/exports.js",function(t,e,n){var r=n("../suite"),i=n("../test");t.exports=function(t){function e(t,o){var s;for(var a in t)if("function"==typeof t[a]){var u=t[a];switch(a){case"before":n[0].beforeAll(u);break;case"after":n[0].afterAll(u);break;case"beforeEach":n[0].beforeEach(u);break;case"afterEach":n[0].afterEach(u);break;default:var c=new i(a,u);c.file=o,n[0].addTest(c)}}else s=r.create(n[0],a),n.unshift(s),e(t[a]),n.shift()}var n=[t];t.on("require",e)}}),t.register("interfaces/index.js",function(t,e,n){e.bdd=n("./bdd"),e.tdd=n("./tdd"),e.qunit=n("./qunit"),e.exports=n("./exports")}),t.register("interfaces/qunit.js",function(t,e,n){var r=n("../suite"),i=n("../test"),o=n("browser/escape-string-regexp");n("../utils");t.exports=function(t){var e=[t];t.on("pre-require",function(s,a,u){var c=n("./common")(e,s);s.before=c.before,s.after=c.after,s.beforeEach=c.beforeEach,s.afterEach=c.afterEach,s.run=u.options.delay&&c.runWithSuite(t),s.suite=function(t){e.length>1&&e.shift();var n=r.create(e[0],t);return n.file=a,e.unshift(n),n},s.suite.only=function(t,e){var n=s.suite(t,e);u.grep(n.fullTitle())},s.test=function(t,n){var r=new i(t,n);return r.file=a,e[0].addTest(r),r},s.test.only=function(t,e){var n=s.test(t,e),r="^"+o(n.fullTitle())+"$";u.grep(new RegExp(r))},s.test.skip=c.test.skip})}}),t.register("interfaces/tdd.js",function(t,e,n){var r=n("../suite"),i=n("../test"),o=n("browser/escape-string-regexp");n("../utils");t.exports=function(t){var e=[t];t.on("pre-require",function(s,a,u){var c=n("./common")(e,s);s.setup=c.beforeEach,s.teardown=c.afterEach,s.suiteSetup=c.before,s.suiteTeardown=c.after,s.run=u.options.delay&&c.runWithSuite(t),s.suite=function(t,n){var i=r.create(e[0],t);return i.file=a,e.unshift(i),n.call(i),e.shift(),i},s.suite.skip=function(t,n){var i=r.create(e[0],t);i.pending=!0,e.unshift(i),n.call(i),e.shift()},s.suite.only=function(t,e){var n=s.suite(t,e);u.grep(n.fullTitle())},s.test=function(t,n){var r=e[0];r.pending&&(n=null);var o=new i(t,n);return o.file=a,r.addTest(o),o},s.test.only=function(t,e){var n=s.test(t,e),r="^"+o(n.fullTitle())+"$";u.grep(new RegExp(r))},s.test.skip=c.test.skip})}}),t.register("mocha.js",function(t,e,r){function i(t){return __dirname+"/../images/"+t+".png"}function s(t){t=t||{},this.files=[],this.options=t,t.grep&&this.grep(new RegExp(t.grep)),t.fgrep&&this.grep(t.fgrep),this.suite=new e.Suite("",new e.Context),this.ui(t.ui),this.bail(t.bail),this.reporter(t.reporter,t.reporterOptions),null!=t.timeout&&this.timeout(t.timeout),this.useColors(t.useColors),null!==t.enableTimeouts&&this.enableTimeouts(t.enableTimeouts),t.slow&&this.slow(t.slow),this.suite.on("pre-require",function(t){e.afterEach=t.afterEach||t.teardown,e.after=t.after||t.suiteTeardown,e.beforeEach=t.beforeEach||t.setup,e.before=t.before||t.suiteSetup,e.describe=t.describe||t.suite,e.it=t.it||t.test,e.setup=t.setup||t.beforeEach,e.suiteSetup=t.suiteSetup||t.before,e.suiteTeardown=t.suiteTeardown||t.after,e.suite=t.suite||t.describe,e.teardown=t.teardown||t.afterEach,e.test=t.test||t.it,e.run=t.run})}/*!
 * mocha
 * Copyright(c) 2011 TJ Holowaychuk <tj@vision-media.ca>
 * MIT Licensed
 */
var a=r("browser/path"),u=r("browser/escape-string-regexp"),c=r("./utils");if(e=t.exports=s,"undefined"!=typeof o&&"function"==typeof o.cwd){var l=a.join,h=o.cwd();t.paths.push(h,l(h,"node_modules"))}e.utils=c,e.interfaces=r("./interfaces"),e.reporters=r("./reporters"),e.Runnable=r("./runnable"),e.Context=r("./context"),e.Runner=r("./runner"),e.Suite=r("./suite"),e.Hook=r("./hook"),e.Test=r("./test"),s.prototype.bail=function(t){return 0==arguments.length&&(t=!0),this.suite.bail(t),this},s.prototype.addFile=function(t){return this.files.push(t),this},s.prototype.reporter=function(t,e){if("function"==typeof t)this._reporter=t;else{t=t||"spec";var n;try{n=r("./reporters/"+t)}catch(i){}if(!n)try{n=r(t)}catch(i){}if(n||"teamcity"!==t||console.warn("The Teamcity reporter was moved to a package named mocha-teamcity-reporter (https://npmjs.org/package/mocha-teamcity-reporter)."),!n)throw new Error('invalid reporter "'+t+'"');this._reporter=n}return this.options.reporterOptions=e,this},s.prototype.ui=function(t){if(t=t||"bdd",this._ui=e.interfaces[t],!this._ui)try{this._ui=r(t)}catch(n){}if(!this._ui)throw new Error('invalid interface "'+t+'"');return this._ui=this._ui(this.suite),this},s.prototype.loadFiles=function(t){var e=this,i=this.suite,o=this.files.length;this.files.forEach(function(s){s=a.resolve(s),i.emit("pre-require",n,s,e),i.emit("require",r(s),s,e),i.emit("post-require",n,s,e),--o||t&&t()})},s.prototype._growl=function(t,e){var n=r("growl");t.on("end",function(){var r=e.stats;if(r.failures){var o=r.failures+" of "+t.total+" tests failed";n(o,{name:"mocha",title:"Failed",image:i("error")})}else n(r.passes+" tests passed in "+r.duration+"ms",{name:"mocha",title:"Passed",image:i("ok")})})},s.prototype.grep=function(t){return this.options.grep="string"==typeof t?new RegExp(u(t)):t,this},s.prototype.invert=function(){return this.options.invert=!0,this},s.prototype.ignoreLeaks=function(t){return this.options.ignoreLeaks=!!t,this},s.prototype.checkLeaks=function(){return this.options.ignoreLeaks=!1,this},s.prototype.growl=function(){return this.options.growl=!0,this},s.prototype.globals=function(t){return this.options.globals=(this.options.globals||[]).concat(t),this},s.prototype.useColors=function(t){return void 0!==t&&(this.options.useColors=t),this},s.prototype.useInlineDiffs=function(t){return this.options.useInlineDiffs=arguments.length&&void 0!=t?t:!1,this},s.prototype.timeout=function(t){return this.suite.timeout(t),this},s.prototype.slow=function(t){return this.suite.slow(t),this},s.prototype.enableTimeouts=function(t){return this.suite.enableTimeouts(arguments.length&&void 0!==t?t:!0),this},s.prototype.asyncOnly=function(){return this.options.asyncOnly=!0,this},s.prototype.noHighlighting=function(){return this.options.noHighlighting=!0,this},s.prototype.delay=function(){return this.options.delay=!0,this},s.prototype.run=function(t){function n(e){s.done?s.done(e,t):t&&t(e)}this.files.length&&this.loadFiles();var r=this.suite,i=this.options;i.files=this.files;var o=new e.Runner(r,i.delay),s=new this._reporter(o,i);return o.ignoreLeaks=!1!==i.ignoreLeaks,o.asyncOnly=i.asyncOnly,i.grep&&o.grep(i.grep,i.invert),i.globals&&o.globals(i.globals),i.growl&&this._growl(o,s),void 0!==i.useColors&&(e.reporters.Base.useColors=i.useColors),e.reporters.Base.inlineDiffs=i.useInlineDiffs,o.run(n)}}),t.register("ms.js",function(t,e,n){function r(t){var e=/^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"y":return n*h;case"days":case"day":case"d":return n*l;case"hours":case"hour":case"h":return n*c;case"minutes":case"minute":case"m":return n*u;case"seconds":case"second":case"s":return n*a;case"ms":return n}}}function i(t){return t>=l?Math.round(t/l)+"d":t>=c?Math.round(t/c)+"h":t>=u?Math.round(t/u)+"m":t>=a?Math.round(t/a)+"s":t+"ms"}function o(t){return s(t,l,"day")||s(t,c,"hour")||s(t,u,"minute")||s(t,a,"second")||t+" ms"}function s(t,e,n){return e>t?void 0:1.5*e>t?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var a=1e3,u=60*a,c=60*u,l=24*c,h=365.25*l;t.exports=function(t,e){return e=e||{},"string"==typeof t?r(t):e["long"]?o(t):i(t)}}),t.register("pending.js",function(t,e,n){function r(t){this.message=t}t.exports=r}),t.register("reporters/base.js",function(t,e,r){function i(t){var e=this.stats={suites:0,tests:0,passes:0,pending:0,failures:0},n=this.failures=[];t&&(this.runner=t,t.stats=e,t.on("start",function(){e.start=new y}),t.on("suite",function(t){e.suites=e.suites||0,t.root||e.suites++}),t.on("test end",function(t){e.tests=e.tests||0,e.tests++}),t.on("pass",function(t){e.passes=e.passes||0;var n=t.slow()/2;t.speed=t.duration>t.slow()?"slow":t.duration>n?"medium":"fast",e.passes++}),t.on("fail",function(t,r){e.failures=e.failures||0,e.failures++,t.err=r,n.push(t)}),t.on("end",function(){e.end=new y,e.duration=new y-e.start}),t.on("pending",function(){e.pending++}))}function s(t,e){return t=String(t),Array(e-t.length+1).join(" ")+t}function a(t,e){var n=c(t,"WordsWithSpace",e),r=n.split("\n");if(r.length>4){var i=String(r.length).length;n=r.map(function(t,e){return s(++e,i)+" | "+t}).join("\n")}return n="\n"+w("diff removed","actual")+" "+w("diff added","expected")+"\n\n"+n+"\n",n=n.replace(/^/gm,"      ")}function u(t,e){function n(t){return e&&(t=l(t)),"+"===t[0]?i+h("diff added",t):"-"===t[0]?i+h("diff removed",t):t.match(/\@\@/)?null:t.match(/\\ No newline/)?null:i+t}function r(t){return null!=t}var i="      ",o=d.createPatch("string",t.actual,t.expected),s=o.split("\n").splice(4);return"\n      "+h("diff added","+ expected")+" "+h("diff removed","- actual")+"\n\n"+s.map(n).filter(r).join("\n")}function c(t,e,n){var r=n?l(t.actual):t.actual,i=n?l(t.expected):t.expected;return d["diff"+e](r,i).map(function(t){return t.added?h("diff added",t.value):t.removed?h("diff removed",t.value):t.value}).join("")}function l(t){return t.replace(/\t/g,"<tab>").replace(/\r/g,"<CR>").replace(/\n/g,"<LF>\n")}function h(t,e){return e.split("\n").map(function(e){return w(t,e)}).join("\n")}function f(t,e){return t=Object.prototype.toString.call(t),e=Object.prototype.toString.call(e),t==e}var p=r("browser/tty"),d=r("browser/diff"),g=r("../ms"),m=r("../utils"),v=o.env?r("supports-color"):null,y=n.Date,b=(n.setTimeout,n.setInterval,n.clearTimeout,n.clearInterval,p.isatty(1)&&p.isatty(2));e=t.exports=i,e.useColors=o.env?v||void 0!==o.env.MOCHA_COLORS:!1,e.inlineDiffs=!1,e.colors={pass:90,fail:31,"bright pass":92,"bright fail":91,"bright yellow":93,pending:36,suite:0,"error title":0,"error message":31,"error stack":90,checkmark:32,fast:90,medium:33,slow:31,green:32,light:90,"diff gutter":90,"diff added":42,"diff removed":41},e.symbols={ok:"✓",err:"✖",dot:"․"},"win32"==o.platform&&(e.symbols.ok="√",e.symbols.err="×",e.symbols.dot=".");var w=e.color=function(t,n){return e.useColors?"["+e.colors[t]+"m"+n+"[0m":String(n)};e.window={width:b?o.stdout.getWindowSize?o.stdout.getWindowSize(1)[0]:p.getWindowSize()[1]:75},e.cursor={hide:function(){b&&o.stdout.write("[?25l")},show:function(){b&&o.stdout.write("[?25h")},deleteLine:function(){b&&o.stdout.write("[2K")},beginningOfLine:function(){b&&o.stdout.write("[0G")},CR:function(){b?(e.cursor.deleteLine(),e.cursor.beginningOfLine()):o.stdout.write("\r")}},e.list=function(t){console.log(),t.forEach(function(t,n){var r=w("error title","  %s) %s:\n")+w("error message","     %s")+w("error stack","\n%s\n"),i=t.err,o=i.message||"",s=i.stack||o,c=s.indexOf(o)+o.length,l=s.slice(0,c),h=i.actual,p=i.expected,d=!0;if(i.uncaught&&(l="Uncaught "+l),i.showDiff&&f(h,p)){"string"!=typeof h&&(d=!1,i.actual=h=m.stringify(h),i.expected=p=m.stringify(p)),r=w("error title","  %s) %s:\n%s")+w("error stack","\n%s\n");var g=o.match(/^([^:]+): expected/);l="\n      "+w("error message",g?g[1]:l),l+=e.inlineDiffs?a(i,d):u(i,d)}s=s.slice(c?c+1:c).replace(/^/gm,"  "),console.log(r,n+1,t.fullTitle(),l,s)})},i.prototype.epilogue=function(){var t,e=this.stats;console.log(),t=w("bright pass"," ")+w("green"," %d passing")+w("light"," (%s)"),console.log(t,e.passes||0,g(e.duration)),e.pending&&(t=w("pending"," ")+w("pending"," %d pending"),console.log(t,e.pending)),e.failures&&(t=w("fail","  %d failing"),console.log(t,e.failures),i.list(this.failures),console.log()),console.log()}}),t.register("reporters/doc.js",function(t,e,n){function r(t){function e(){return Array(n).join("  ")}i.call(this,t);var n=(this.stats,t.total,2);t.on("suite",function(t){t.root||(++n,console.log('%s<section class="suite">',e()),++n,console.log("%s<h1>%s</h1>",e(),o.escape(t.title)),console.log("%s<dl>",e()))}),t.on("suite end",function(t){t.root||(console.log("%s</dl>",e()),--n,console.log("%s</section>",e()),--n)}),t.on("pass",function(t){console.log("%s  <dt>%s</dt>",e(),o.escape(t.title));var n=o.escape(o.clean(t.fn.toString()));console.log("%s  <dd><pre><code>%s</code></pre></dd>",e(),n)}),t.on("fail",function(t,n){console.log('%s  <dt class="error">%s</dt>',e(),o.escape(t.title));var r=o.escape(o.clean(t.fn.toString()));console.log('%s  <dd class="error"><pre><code>%s</code></pre></dd>',e(),r),console.log('%s  <dd class="error">%s</dd>',e(),o.escape(n))})}var i=n("./base"),o=n("../utils");e=t.exports=r}),t.register("reporters/dot.js",function(t,e,n){function r(t){s.call(this,t);var e=this,n=(this.stats,.75*s.window.width|0),r=-1;t.on("start",function(){o.stdout.write("\n  ")}),t.on("pending",function(t){++r%n==0&&o.stdout.write("\n  "),o.stdout.write(a("pending",s.symbols.dot))}),t.on("pass",function(t){++r%n==0&&o.stdout.write("\n  "),"slow"==t.speed?o.stdout.write(a("bright yellow",s.symbols.dot)):o.stdout.write(a(t.speed,s.symbols.dot))}),t.on("fail",function(t,e){++r%n==0&&o.stdout.write("\n  "),o.stdout.write(a("fail",s.symbols.dot))}),t.on("end",function(){console.log(),e.epilogue()})}function i(){}var s=n("./base"),a=s.color;e=t.exports=r,i.prototype=s.prototype,r.prototype=new i,r.prototype.constructor=r}),t.register("reporters/html-cov.js",function(t,e,n){function r(t){var e=n("jade"),r=__dirname+"/templates/coverage.jade",u=a.readFileSync(r,"utf8"),c=e.compile(u,{filename:r}),l=this;s.call(this,t,!1),t.on("end",function(){o.stdout.write(c({cov:l.cov,coverageClass:i}))})}function i(t){return t>=75?"high":t>=50?"medium":t>=25?"low":"terrible"}var s=n("./json-cov"),a=n("browser/fs");e=t.exports=r}),t.register("reporters/html.js",function(t,e,r){function i(t){h.call(this,t);var e,n,r=this,i=this.stats,v=(t.total,s(m)),y=v.getElementsByTagName("li"),b=y[1].getElementsByTagName("em")[0],w=y[1].getElementsByTagName("a")[0],x=y[2].getElementsByTagName("em")[0],_=y[2].getElementsByTagName("a")[0],C=y[3].getElementsByTagName("em")[0],E=v.getElementsByTagName("canvas")[0],j=s('<ul id="mocha-report"></ul>'),k=[j],T=document.getElementById("mocha");if(E.getContext){var S=window.devicePixelRatio||1;E.style.width=E.width,E.style.height=E.height,E.width*=S,E.height*=S,n=E.getContext("2d"),n.scale(S,S),e=new p}return T?(l(w,"click",function(){u();var t=/pass/.test(j.className)?"":" pass";j.className=j.className.replace(/fail|pass/g,"")+t,j.className.trim()&&a("test pass")}),l(_,"click",function(){u();var t=/fail/.test(j.className)?"":" fail";j.className=j.className.replace(/fail|pass/g,"")+t,j.className.trim()&&a("test fail")}),T.appendChild(v),T.appendChild(j),e&&e.size(40),t.on("suite",function(t){if(!t.root){var e=r.suiteURL(t),n=s('<li class="suite"><h1><a href="%s">%s</a></h1></li>',e,d(t.title));k[0].appendChild(n),k.unshift(document.createElement("ul")),n.appendChild(k[0])}}),t.on("suite end",function(t){t.root||k.shift()}),t.on("fail",function(e,n){"hook"==e.type&&t.emit("test end",e)}),void t.on("test end",function(t){var o=i.tests/this.total*100|0;e&&e.update(o).draw(n);var a=new g-i.start;if(c(b,i.passes),c(x,i.failures),c(C,(a/1e3).toFixed(2)),"passed"==t.state)var u=r.testURL(t),h=s('<li class="test pass %e"><h2>%e<span class="duration">%ems</span> <a href="%s" class="replay">‣</a></h2></li>',t.speed,t.title,t.duration,u);else if(t.pending)var h=s('<li class="test pass pending"><h2>%e</h2></li>',t.title);else{var h=s('<li class="test fail"><h2>%e <a href="%e" class="replay">‣</a></h2></li>',t.title,r.testURL(t)),p=t.err.stack||t.err.toString();~p.indexOf(t.err.message)||(p=t.err.message+"\n"+p),"[object Error]"==p&&(p=t.err.message),!t.err.stack&&t.err.sourceURL&&void 0!==t.err.line&&(p+="\n("+t.err.sourceURL+":"+t.err.line+")"),h.appendChild(s('<pre class="error">%e</pre>',p))}if(!t.pending){var d=h.getElementsByTagName("h2")[0];l(d,"click",function(){m.style.display="none"==m.style.display?"block":"none"});var m=s("<pre><code>%e</code></pre>",f.clean(t.fn.toString()));h.appendChild(m),m.style.display="none"}k[0]&&k[0].appendChild(h)})):o("#mocha div missing, add it to your document")}function o(t){document.body.appendChild(s('<div id="mocha-error">%s</div>',t))}function s(t){var e=arguments,n=document.createElement("div"),r=1;return n.innerHTML=t.replace(/%([se])/g,function(t,n){switch(n){case"s":return String(e[r++]);case"e":return d(e[r++])}}),n.firstChild}function a(t){for(var e=document.getElementsByClassName("suite"),n=0;n<e.length;n++){var r=e[n].getElementsByClassName(t);0==r.length&&(e[n].className+=" hidden")}}function u(){for(var t=document.getElementsByClassName("suite hidden"),e=0;e<t.length;++e)t[e].className=t[e].className.replace("suite hidden","suite")}function c(t,e){t.textContent?t.textContent=e:t.innerText=e}function l(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}var h=r("./base"),f=r("../utils"),p=r("../browser/progress"),d=f.escape,g=n.Date;n.setTimeout,n.setInterval,n.clearTimeout,n.clearInterval;e=t.exports=i;var m='<ul id="mocha-stats"><li class="progress"><canvas width="40" height="40"></canvas></li><li class="passes"><a href="#">passes:</a> <em>0</em></li><li class="failures"><a href="#">failures:</a> <em>0</em></li><li class="duration">duration: <em>0</em>s</li></ul>',v=function(t){var e=window.location.search;return e&&(e=e.replace(/[?&]grep=[^&\s]*/g,"").replace(/^&/,"?")),window.location.pathname+(e?e+"&":"?")+"grep="+encodeURIComponent(t)};i.prototype.suiteURL=function(t){return v(t.fullTitle())},i.prototype.testURL=function(t){return v(t.fullTitle())}}),t.register("reporters/index.js",function(t,e,n){e.Base=n("./base"),e.Dot=n("./dot"),e.Doc=n("./doc"),e.TAP=n("./tap"),e.JSON=n("./json"),e.HTML=n("./html"),e.List=n("./list"),e.Min=n("./min"),e.Spec=n("./spec"),e.Nyan=n("./nyan"),e.XUnit=n("./xunit"),e.Markdown=n("./markdown"),e.Progress=n("./progress"),e.Landing=n("./landing"),e.JSONCov=n("./json-cov"),e.HTMLCov=n("./html-cov"),e.JSONStream=n("./json-stream")}),t.register("reporters/json-cov.js",function(t,e,r){function i(t,e){var r=this,e=1==arguments.length?!0:e;c.call(this,t);var i=[],a=[],l=[];t.on("test end",function(t){i.push(t)}),t.on("pass",function(t){l.push(t)}),t.on("fail",function(t){a.push(t)}),t.on("end",function(){var t=n._$jscoverage||{},c=r.cov=s(t);c.stats=r.stats,c.tests=i.map(u),c.failures=a.map(u),c.passes=l.map(u),e&&o.stdout.write(JSON.stringify(c,null,2))})}function s(t){var e={instrumentation:"node-jscoverage",sloc:0,hits:0,misses:0,coverage:0,files:[]};for(var n in t){var r=a(n,t[n]);e.files.push(r),e.hits+=r.hits,e.misses+=r.misses,e.sloc+=r.sloc}return e.files.sort(function(t,e){return t.filename.localeCompare(e.filename)}),e.sloc>0&&(e.coverage=e.hits/e.sloc*100),e}function a(t,e){var n={filename:t,coverage:0,hits:0,misses:0,sloc:0,source:{}};return e.source.forEach(function(t,r){r++,0===e[r]?(n.misses++,n.sloc++):void 0!==e[r]&&(n.hits++,n.sloc++),n.source[r]={source:t,coverage:void 0===e[r]?"":e[r]}}),n.coverage=n.hits/n.sloc*100,n}function u(t){return{title:t.title,fullTitle:t.fullTitle(),duration:t.duration}}var c=r("./base");e=t.exports=i}),t.register("reporters/json-stream.js",function(t,e,n){function r(t){s.call(this,t);var e=this,n=(this.stats,t.total);t.on("start",function(){console.log(JSON.stringify(["start",{total:n}]))}),t.on("pass",function(t){console.log(JSON.stringify(["pass",i(t)]))}),t.on("fail",function(t,e){t=i(t),t.err=e.message,console.log(JSON.stringify(["fail",t]))}),t.on("end",function(){o.stdout.write(JSON.stringify(["end",e.stats]))})}function i(t){return{title:t.title,fullTitle:t.fullTitle(),duration:t.duration}}var s=n("./base");s.color;e=t.exports=r}),t.register("reporters/json.js",function(t,e,n){function r(t){var e=this;a.call(this,t);var n=[],r=[],s=[],u=[];t.on("test end",function(t){n.push(t)}),t.on("pass",function(t){u.push(t)}),t.on("fail",function(t){s.push(t)}),t.on("pending",function(t){r.push(t)}),t.on("end",function(){var a={stats:e.stats,tests:n.map(i),pending:r.map(i),failures:s.map(i),passes:u.map(i)};t.testResults=a,o.stdout.write(JSON.stringify(a,null,2))})}function i(t){return{title:t.title,fullTitle:t.fullTitle(),duration:t.duration,err:s(t.err||{})}}function s(t){var e={};return Object.getOwnPropertyNames(t).forEach(function(n){e[n]=t[n]},t),e}var a=n("./base");a.cursor,a.color;e=t.exports=r}),t.register("reporters/landing.js",function(t,e,n){function r(t){function e(){var t=Array(r).join("-");return"  "+u("runway",t)}s.call(this,t);var n=this,r=(this.stats,.75*s.window.width|0),i=t.total,c=o.stdout,l=u("plane","✈"),h=-1,f=0;t.on("start",function(){c.write("\n\n\n  "),a.hide()}),t.on("test end",function(t){var n=-1==h?r*++f/i|0:h;"failed"==t.state&&(l=u("plane crash","✈"),h=n),c.write("["+(r+1)+"D[2A"),c.write(e()),c.write("\n  "),c.write(u("runway",Array(n).join("⋅"))),c.write(l),c.write(u("runway",Array(r-n).join("⋅")+"\n")),c.write(e()),c.write("[0m")}),t.on("end",function(){a.show(),console.log(),n.epilogue()})}function i(){}var s=n("./base"),a=s.cursor,u=s.color;e=t.exports=r,s.colors.plane=0,s.colors["plane crash"]=31,s.colors.runway=90,i.prototype=s.prototype,r.prototype=new i,r.prototype.constructor=r}),t.register("reporters/list.js",function(t,e,n){function r(t){s.call(this,t);var e=this,n=(this.stats,0);t.on("start",function(){console.log()}),t.on("test",function(t){o.stdout.write(u("pass","    "+t.fullTitle()+": "))}),t.on("pending",function(t){var e=u("checkmark","  -")+u("pending"," %s");console.log(e,t.fullTitle())}),t.on("pass",function(t){var e=u("checkmark","  "+s.symbols.dot)+u("pass"," %s: ")+u(t.speed,"%dms");a.CR(),console.log(e,t.fullTitle(),t.duration)}),t.on("fail",function(t,e){a.CR(),console.log(u("fail","  %d) %s"),++n,t.fullTitle())}),t.on("end",e.epilogue.bind(e))}function i(){}var s=n("./base"),a=s.cursor,u=s.color;e=t.exports=r,i.prototype=s.prototype,r.prototype=new i,r.prototype.constructor=r}),t.register("reporters/markdown.js",function(t,e,n){function r(t){function e(t){return Array(c).join("#")+" "+t}function n(t,e){var r=e,i=a+t.title;return e=e[i]=e[i]||{suite:t},t.suites.forEach(function(t){n(t,e)}),r}function r(t,e){++e;var n,i="";for(var o in t)"suite"!=o&&(o!==a&&(n=" - ["+o.substring(1)+"]",n+="(#"+s.slug(t[o].suite.fullTitle())+")\n",i+=Array(e).join("  ")+n),i+=r(t[o],e));return i}function u(t){var e=n(t,{});return r(e,0)}i.call(this,t);var c=(this.stats,0),l="";u(t.suite),t.on("suite",function(t){++c;var n=s.slug(t.fullTitle());l+='<a name="'+n+'"></a>\n',l+=e(t.title)+"\n"}),t.on("suite end",function(t){--c}),t.on("pass",function(t){var e=s.clean(t.fn.toString());l+=t.title+".\n",l+="\n```js\n",l+=e+"\n",l+="```\n\n"}),t.on("end",function(){o.stdout.write("# TOC\n"),o.stdout.write(u(t.suite)),o.stdout.write(l)})}var i=n("./base"),s=n("../utils"),a="$";e=t.exports=r}),t.register("reporters/min.js",function(t,e,n){function r(t){s.call(this,t),t.on("start",function(){o.stdout.write("[2J"),o.stdout.write("[1;3H")}),t.on("end",this.epilogue.bind(this))}function i(){}var s=n("./base");e=t.exports=r,i.prototype=s.prototype,r.prototype=new i,r.prototype.constructor=r}),t.register("reporters/nyan.js",function(t,e,n){function r(t){a.call(this,t);var e=this,n=(this.stats,.75*a.window.width|0),r=(this.rainbowColors=e.generateColors(),this.colorIndex=0,this.numberOfLines=4,this.trajectories=[[],[],[],[]],this.nyanCatWidth=11);this.trajectoryWidthMax=n-r,this.scoreboardWidth=5,this.tick=0;t.on("start",function(){a.cursor.hide(),e.draw()}),t.on("pending",function(t){e.draw()}),t.on("pass",function(t){e.draw()}),t.on("fail",function(t,n){e.draw()}),t.on("end",function(){a.cursor.show();for(var t=0;t<e.numberOfLines;t++)i("\n");e.epilogue()})}function i(t){o.stdout.write(t)}function s(){}var a=n("./base");e=t.exports=r,r.prototype.draw=function(){this.appendRainbow(),this.drawScoreboard(),this.drawRainbow(),this.drawNyanCat(),this.tick=!this.tick},r.prototype.drawScoreboard=function(){function t(t,e){i(" "),i(a.color(t,e)),i("\n")}var e=this.stats;t("green",e.passes),t("fail",e.failures),t("pending",e.pending),i("\n"),this.cursorUp(this.numberOfLines)},r.prototype.appendRainbow=function(){for(var t=this.tick?"_":"-",e=this.rainbowify(t),n=0;n<this.numberOfLines;n++){var r=this.trajectories[n];r.length>=this.trajectoryWidthMax&&r.shift(),r.push(e)}},r.prototype.drawRainbow=function(){var t=this;this.trajectories.forEach(function(e,n){i("["+t.scoreboardWidth+"C"),i(e.join("")),i("\n")}),this.cursorUp(this.numberOfLines)},r.prototype.drawNyanCat=function(){var t=this,e=this.scoreboardWidth+this.trajectories[0].length,n="["+e+"C",r="";i(n),i("_,------,"),i("\n"),i(n),r=t.tick?"  ":"   ",i("_|"+r+"/\\_/\\ "),i("\n"),i(n),r=t.tick?"_":"__";var o=t.tick?"~":"^";i(o+"|"+r+this.face()+" "),i("\n"),i(n),r=t.tick?" ":"  ",i(r+'""  "" '),i("\n"),this.cursorUp(this.numberOfLines)},r.prototype.face=function(){var t=this.stats;return t.failures?"( x .x)":t.pending?"( o .o)":t.passes?"( ^ .^)":"( - .-)"},r.prototype.cursorUp=function(t){i("["+t+"A")},r.prototype.cursorDown=function(t){i("["+t+"B")},r.prototype.generateColors=function(){for(var t=[],e=0;42>e;e++){var n=Math.floor(Math.PI/3),r=e*(1/6),i=Math.floor(3*Math.sin(r)+3),o=Math.floor(3*Math.sin(r+2*n)+3),s=Math.floor(3*Math.sin(r+4*n)+3);t.push(36*i+6*o+s+16)}return t},r.prototype.rainbowify=function(t){if(!a.useColors)return t;var e=this.rainbowColors[this.colorIndex%this.rainbowColors.length];return this.colorIndex+=1,"[38;5;"+e+"m"+t+"[0m"},s.prototype=a.prototype,r.prototype=new s,r.prototype.constructor=r}),t.register("reporters/progress.js",function(t,e,n){function r(t,e){s.call(this,t);var n=this,e=e||{},r=(this.stats,.5*s.window.width|0),i=t.total,c=0,l=(Math.max,-1);e.open=e.open||"[",e.complete=e.complete||"▬",e.incomplete=e.incomplete||s.symbols.dot,e.close=e.close||"]",e.verbose=!1,t.on("start",function(){console.log(),a.hide()}),t.on("test end",function(){c++;var t=c/i,n=r*t|0,s=r-n;(l!==n||e.verbose)&&(l=n,a.CR(),o.stdout.write("[J"),o.stdout.write(u("progress","  "+e.open)),o.stdout.write(Array(n).join(e.complete)),o.stdout.write(Array(s).join(e.incomplete)),o.stdout.write(u("progress",e.close)),e.verbose&&o.stdout.write(u("progress"," "+c+" of "+i)))}),t.on("end",function(){a.show(),console.log(),n.epilogue()})}function i(){}var s=n("./base"),a=s.cursor,u=s.color;e=t.exports=r,s.colors.progress=90,i.prototype=s.prototype,r.prototype=new i,r.prototype.constructor=r}),t.register("reporters/spec.js",function(t,e,n){function r(t){function e(){return Array(r).join("  ")}o.call(this,t);var n=this,r=(this.stats,0),i=0;t.on("start",function(){console.log()}),t.on("suite",function(t){++r,console.log(a("suite","%s%s"),e(),t.title)}),t.on("suite end",function(t){--r,1==r&&console.log()}),t.on("pending",function(t){var n=e()+a("pending","  - %s");console.log(n,t.title)}),t.on("pass",function(t){if("fast"==t.speed){var n=e()+a("checkmark","  "+o.symbols.ok)+a("pass"," %s ");s.CR(),console.log(n,t.title)}else{var n=e()+a("checkmark","  "+o.symbols.ok)+a("pass"," %s ")+a(t.speed,"(%dms)");s.CR(),console.log(n,t.title,t.duration)}}),t.on("fail",function(t,n){s.CR(),console.log(e()+a("fail","  %d) %s"),++i,t.title)}),t.on("end",n.epilogue.bind(n))}function i(){}var o=n("./base"),s=o.cursor,a=o.color;e=t.exports=r,i.prototype=o.prototype,r.prototype=new i,r.prototype.constructor=r}),t.register("reporters/tap.js",function(t,e,n){function r(t){o.call(this,t);var e=(this.stats,1),n=0,r=0;t.on("start",function(){var e=t.grepTotal(t.suite);console.log("%d..%d",1,e)}),t.on("test end",function(){++e}),t.on("pending",function(t){console.log("ok %d %s # SKIP -",e,i(t))}),t.on("pass",function(t){n++,console.log("ok %d %s",e,i(t))}),t.on("fail",function(t,n){r++,console.log("not ok %d %s",e,i(t)),n.stack&&console.log(n.stack.replace(/^/gm,"  "))}),t.on("end",function(){console.log("# tests "+(n+r)),console.log("# pass "+n),console.log("# fail "+r)})}function i(t){return t.fullTitle().replace(/#/g,"")}var o=n("./base");o.cursor,o.color;e=t.exports=r}),t.register("reporters/xunit.js",function(t,e,r){function i(t,e){u.call(this,t);var n=this.stats,r=[],i=this;if(e.reporterOptions&&e.reporterOptions.output){if(!l.createWriteStream)throw new Error("file output not supported in browser");i.fileStream=l.createWriteStream(e.reporterOptions.output)}t.on("pending",function(t){r.push(t)}),t.on("pass",function(t){r.push(t)}),t.on("fail",function(t){r.push(t)}),t.on("end",function(){i.write(s("testsuite",{name:"Mocha Tests",tests:n.tests,failures:n.failures,errors:n.failures,skipped:n.tests-n.failures-n.passes,timestamp:(new f).toUTCString(),time:n.duration/1e3||0},!1)),r.forEach(function(t){i.test(t)}),i.write("</testsuite>")})}function o(){}function s(t,e,n,r){var i,o=n?"/>":">",s=[];for(var a in e)s.push(a+'="'+h(e[a])+'"');return i="<"+t+(s.length?" "+s.join(" "):"")+o,r&&(i+=r+"</"+t+o),i}function a(t){return"<![CDATA["+h(t)+"]]>"}var u=r("./base"),c=r("../utils"),l=r("browser/fs"),h=c.escape,f=n.Date;n.setTimeout,n.setInterval,n.clearTimeout,n.clearInterval;e=t.exports=i,i.prototype.done=function(t,e){this.fileStream?this.fileStream.end(function(){e(t)}):e(t)},o.prototype=u.prototype,i.prototype=new o,i.prototype.constructor=i,i.prototype.write=function(t){this.fileStream?this.fileStream.write(t+"\n"):console.log(t)},i.prototype.test=function(t,e){var n={classname:t.parent.fullTitle(),name:t.title,time:t.duration/1e3||0};if("failed"==t.state){var r=t.err;this.write(s("testcase",n,!1,s("failure",{},!1,a(h(r.message)+"\n"+r.stack))))}else t.pending?this.write(s("testcase",n,!1,s("skipped",{},!0))):this.write(s("testcase",n,!0))}}),t.register("runnable.js",function(t,e,r){function i(t,e){this.title=t,this.fn=e,this.async=e&&e.length,this.sync=!this.async,this._timeout=2e3,this._slow=75,this._enableTimeouts=!0,this.timedOut=!1,this._trace=new Error("done() called multiple times")}function o(){}var s=r("browser/events").EventEmitter,a=r("browser/debug")("mocha:runnable"),u=r("./pending"),c=r("./ms"),l=r("./utils"),h=n.Date,f=n.setTimeout,p=(n.setInterval,n.clearTimeout),d=(n.clearInterval,Object.prototype.toString);t.exports=i,o.prototype=s.prototype,i.prototype=new o,i.prototype.constructor=i,i.prototype.timeout=function(t){return 0==arguments.length?this._timeout:(0===t&&(this._enableTimeouts=!1),"string"==typeof t&&(t=c(t)),a("timeout %d",t),this._timeout=t,this.timer&&this.resetTimeout(),this)},i.prototype.slow=function(t){return 0===arguments.length?this._slow:("string"==typeof t&&(t=c(t)),a("timeout %d",t),this._slow=t,this)},i.prototype.enableTimeouts=function(t){return 0===arguments.length?this._enableTimeouts:(a("enableTimeouts %s",t),this._enableTimeouts=t,this)},i.prototype.skip=function(){throw new u},i.prototype.fullTitle=function(){return this.parent.fullTitle()+" "+this.title},i.prototype.clearTimeout=function(){p(this.timer)},i.prototype.inspect=function(){return JSON.stringify(this,function(t,e){return"_"!=t[0]?"parent"==t?"#<Suite>":"ctx"==t?"#<Context>":e:void 0},2)},i.prototype.resetTimeout=function(){var t=this,e=this.timeout()||1e9;this._enableTimeouts&&(this.clearTimeout(),this.timer=f(function(){t._enableTimeouts&&(t.callback(new Error("timeout of "+e+"ms exceeded. Ensure the done() callback is being called in this test.")),t.timedOut=!0)},e))},i.prototype.globals=function(t){this._allowedGlobals=t},i.prototype.run=function(t){function e(t){o||(o=!0,s.emit("error",t||new Error("done() called multiple times; stacktrace may be inaccurate")))}function n(n){var r=s.timeout();if(!s.timedOut)return i?e(n||s._trace):void(s.state||(s.clearTimeout(),s.duration=new h-a,i=!0,!n&&s.duration>r&&s._enableTimeouts&&(n=new Error("timeout of "+r+"ms exceeded. Ensure the done() callback is being called in this test.")),t(n)))}function r(t){var e=t.call(u);e&&"function"==typeof e.then?(s.resetTimeout(),e.then(function(){n()},function(t){n(t||new Error("Promise rejected with no or falsy reason"))})):n()}var i,o,s=this,a=new h,u=this.ctx;if(u&&u.runnable&&u.runnable(this),this.callback=n,this.async){this.resetTimeout();try{this.fn.call(u,function(t){return t instanceof Error||"[object Error]"===d.call(t)?n(t):null!=t?n("[object Object]"===Object.prototype.toString.call(t)?new Error("done() invoked with non-Error: "+JSON.stringify(t)):new Error("done() invoked with non-Error: "+t)):void n()})}catch(c){n(l.getError(c))}}else{if(this.asyncOnly)return n(new Error("--async-only option in use without declaring `done()`"));try{this.pending?n():r(this.fn)}catch(c){n(l.getError(c))}}}}),t.register("runner.js",function(t,e,r){function i(t,e){var n=this;this._globals=[],this._abort=!1,this._delay=e,this.suite=t,this.total=t.total(),this.failures=0,this.on("test end",function(t){n.checkGlobals(t)}),this.on("hook end",function(t){n.checkGlobals(t)}),this.grep(/.*/),this.globals(this.globalProps().concat(u()))}function s(){}function a(t,e){return p(e,function(e){if(/^d+/.test(e))return!1;if(n.navigator&&/^getInterface/.test(e))return!1;if(n.navigator&&/^\d+/.test(e))return!1;if(/^mocha-/.test(e))return!1;var r=p(t,function(t){return~t.indexOf("*")?0==e.indexOf(t.split("*")[0]):e==t});return 0==r.length&&(!n.navigator||"onerror"!==e)})}function u(){if("object"==typeof o&&"string"==typeof o.version){var t=o.version.split(".").reduce(function(t,e){return t<<8|e});if(2315>t)return["errno"]}return[]}var c=r("browser/events").EventEmitter,l=r("browser/debug")("mocha:runner"),h=r("./pending"),f=(r("./test"),r("./utils")),p=f.filter,d=(f.keys,f.type),g=f.stringify,m=["setTimeout","clearTimeout","setInterval","clearInterval","XMLHttpRequest","Date","setImmediate","clearImmediate"];t.exports=i,i.immediately=n.setImmediate||o.nextTick,s.prototype=c.prototype,i.prototype=new s,i.prototype.constructor=i,i.prototype.grep=function(t,e){return l("grep %s",t),this._grep=t,this._invert=e,this.total=this.grepTotal(this.suite),this},i.prototype.grepTotal=function(t){var e=this,n=0;return t.eachTest(function(t){var r=e._grep.test(t.fullTitle());e._invert&&(r=!r),r&&n++}),n},i.prototype.globalProps=function(){for(var t=f.keys(n),e=0;e<m.length;++e)~f.indexOf(t,m[e])||t.push(m[e]);return t},i.prototype.globals=function(t){return 0==arguments.length?this._globals:(l("globals %j",t),this._globals=this._globals.concat(t),this)},i.prototype.checkGlobals=function(t){if(!this.ignoreLeaks){var e,n=this._globals,r=this.globalProps();t&&(n=n.concat(t._allowedGlobals||[])),this.prevGlobalsLength!=r.length&&(this.prevGlobalsLength=r.length,e=a(n,r),this._globals=this._globals.concat(e),e.length>1?this.fail(t,new Error("global leaks detected: "+e.join(", "))):e.length&&this.fail(t,new Error("global leak detected: "+e[0])))}},i.prototype.fail=function(t,e){++this.failures,t.state="failed","string"==typeof e?e=new Error('the string "'+e+'" was thrown, throw an Error :)'):e instanceof Error||(e=new Error("the "+d(e)+" "+g(e)+" was thrown, throw an Error :)")),this.emit("fail",t,e)},i.prototype.failHook=function(t,e){this.fail(t,e),this.suite.bail()&&this.emit("end")},i.prototype.hook=function(t,e){function n(t){var i=o[t];return i?(s.currentRunnable=i,i.ctx.currentTest=s.test,s.emit("hook",i),i.on("error",function(t){s.failHook(i,t)}),void i.run(function(o){i.removeAllListeners("error");var a=i.error();if(a&&s.fail(s.test,a),
o){if(!(o instanceof h))return s.failHook(i,o),e(o);r.pending=!0}s.emit("hook end",i),delete i.ctx.currentTest,n(++t)})):e()}var r=this.suite,o=r["_"+t],s=this;i.immediately(function(){n(0)})},i.prototype.hooks=function(t,e,n){function r(s){return i.suite=s,s?void i.hook(t,function(t){if(t){var s=i.suite;return i.suite=o,n(t,s)}r(e.pop())}):(i.suite=o,n())}var i=this,o=this.suite;r(e.pop())},i.prototype.hookUp=function(t,e){var n=[this.suite].concat(this.parents()).reverse();this.hooks(t,n,e)},i.prototype.hookDown=function(t,e){var n=[this.suite].concat(this.parents());this.hooks(t,n,e)},i.prototype.parents=function(){for(var t=this.suite,e=[];t=t.parent;)e.push(t);return e},i.prototype.runTest=function(t){var e=this.test,n=this;this.asyncOnly&&(e.asyncOnly=!0);try{e.on("error",function(t){n.fail(e,t)}),e.run(t)}catch(r){t(r)}},i.prototype.runTests=function(t,e){function n(t,r,i){var s=o.suite;o.suite=i?r.parent:r,o.suite?o.hookUp("afterEach",function(t,i){return o.suite=s,t?n(t,i,!0):void e(r)}):(o.suite=s,e(r))}function r(a,u){if(o.failures&&t._bail)return e();if(o._abort)return e();if(a)return n(a,u,!0);if(i=s.shift(),!i)return e();var c=o._grep.test(i.fullTitle());return o._invert&&(c=!c),c?i.pending?(o.emit("pending",i),o.emit("test end",i),r()):(o.emit("test",o.test=i),void o.hookDown("beforeEach",function(e,s){return t.pending?(o.emit("pending",i),o.emit("test end",i),r()):e?n(e,s,!1):(o.currentRunnable=o.test,void o.runTest(function(t){return i=o.test,t?(t instanceof h?o.emit("pending",i):o.fail(i,t),o.emit("test end",i),t instanceof h?r():o.hookUp("afterEach",r)):(i.state="passed",o.emit("pass",i),o.emit("test end",i),void o.hookUp("afterEach",r))}))})):r()}var i,o=this,s=t.tests.slice();this.next=r,r()},i.prototype.runSuite=function(t,e){function n(e){if(e)return e==t?r():r(e);if(o._abort)return r();var i=t.suites[s++];return i?void o.runSuite(i,n):r()}function r(n){o.suite=t,o.hook("afterAll",function(){o.emit("suite end",t),e(n)})}var i=this.grepTotal(t),o=this,s=0;return l("run suite %s",t.fullTitle()),i?(this.emit("suite",this.suite=t),void this.hook("beforeAll",function(e){return e?r():void o.runTests(t,n)})):e()},i.prototype.uncaught=function(t){t?l("uncaught exception %s",t!==function(){return this}.call(t)?t:t.message||t):(l("uncaught undefined exception"),t=f.undefinedError()),t.uncaught=!0;var e=this.currentRunnable;return e&&(e.clearTimeout(),!e.state)?(this.fail(e,t),"test"==e.type?(this.emit("test end",e),void this.hookUp("afterEach",this.next)):void this.emit("end")):void 0},i.prototype.run=function(t){function e(t){r.uncaught(t)}function n(){r.emit("start"),r.runSuite(i,function(){l("finished running"),r.emit("end")})}var r=this,i=this.suite;return t=t||function(){},l("start"),this.on("end",function(){l("end"),o.removeListener("uncaughtException",e),t(r.failures)}),o.on("uncaughtException",e),this._delay?(this.emit("waiting",i),i.once("run",n)):n(),this},i.prototype.abort=function(){l("aborting"),this._abort=!0}}),t.register("suite.js",function(t,e,n){function r(t,e){this.title=t;var n=function(){};n.prototype=e,this.ctx=new n,this.suites=[],this.tests=[],this.pending=!1,this._beforeEach=[],this._beforeAll=[],this._afterEach=[],this._afterAll=[],this.root=!t,this._timeout=2e3,this._enableTimeouts=!0,this._slow=75,this._bail=!1,this.delayed=!1}function i(){}var o=n("browser/events").EventEmitter,s=n("browser/debug")("mocha:suite"),a=n("./ms"),u=n("./utils"),c=n("./hook");e=t.exports=r,e.create=function(t,e){var n=new r(e,t.ctx);return n.parent=t,t.pending&&(n.pending=!0),e=n.fullTitle(),t.addSuite(n),n},i.prototype=o.prototype,r.prototype=new i,r.prototype.constructor=r,r.prototype.clone=function(){var t=new r(this.title);return s("clone"),t.ctx=this.ctx,t.timeout(this.timeout()),t.enableTimeouts(this.enableTimeouts()),t.slow(this.slow()),t.bail(this.bail()),t},r.prototype.timeout=function(t){return 0==arguments.length?this._timeout:("0"===t.toString()&&(this._enableTimeouts=!1),"string"==typeof t&&(t=a(t)),s("timeout %d",t),this._timeout=parseInt(t,10),this)},r.prototype.enableTimeouts=function(t){return 0===arguments.length?this._enableTimeouts:(s("enableTimeouts %s",t),this._enableTimeouts=t,this)},r.prototype.slow=function(t){return 0===arguments.length?this._slow:("string"==typeof t&&(t=a(t)),s("slow %d",t),this._slow=t,this)},r.prototype.bail=function(t){return 0==arguments.length?this._bail:(s("bail %s",t),this._bail=t,this)},r.prototype.beforeAll=function(t,e){if(this.pending)return this;"function"==typeof t&&(e=t,t=e.name),t='"before all" hook'+(t?": "+t:"");var n=new c(t,e);return n.parent=this,n.timeout(this.timeout()),n.enableTimeouts(this.enableTimeouts()),n.slow(this.slow()),n.ctx=this.ctx,this._beforeAll.push(n),this.emit("beforeAll",n),this},r.prototype.afterAll=function(t,e){if(this.pending)return this;"function"==typeof t&&(e=t,t=e.name),t='"after all" hook'+(t?": "+t:"");var n=new c(t,e);return n.parent=this,n.timeout(this.timeout()),n.enableTimeouts(this.enableTimeouts()),n.slow(this.slow()),n.ctx=this.ctx,this._afterAll.push(n),this.emit("afterAll",n),this},r.prototype.beforeEach=function(t,e){if(this.pending)return this;"function"==typeof t&&(e=t,t=e.name),t='"before each" hook'+(t?": "+t:"");var n=new c(t,e);return n.parent=this,n.timeout(this.timeout()),n.enableTimeouts(this.enableTimeouts()),n.slow(this.slow()),n.ctx=this.ctx,this._beforeEach.push(n),this.emit("beforeEach",n),this},r.prototype.afterEach=function(t,e){if(this.pending)return this;"function"==typeof t&&(e=t,t=e.name),t='"after each" hook'+(t?": "+t:"");var n=new c(t,e);return n.parent=this,n.timeout(this.timeout()),n.enableTimeouts(this.enableTimeouts()),n.slow(this.slow()),n.ctx=this.ctx,this._afterEach.push(n),this.emit("afterEach",n),this},r.prototype.addSuite=function(t){return t.parent=this,t.timeout(this.timeout()),t.enableTimeouts(this.enableTimeouts()),t.slow(this.slow()),t.bail(this.bail()),this.suites.push(t),this.emit("suite",t),this},r.prototype.addTest=function(t){return t.parent=this,t.timeout(this.timeout()),t.enableTimeouts(this.enableTimeouts()),t.slow(this.slow()),t.ctx=this.ctx,this.tests.push(t),this.emit("test",t),this},r.prototype.fullTitle=function(){if(this.parent){var t=this.parent.fullTitle();if(t)return t+" "+this.title}return this.title},r.prototype.total=function(){return u.reduce(this.suites,function(t,e){return t+e.total()},0)+this.tests.length},r.prototype.eachTest=function(t){return u.forEach(this.tests,t),u.forEach(this.suites,function(e){e.eachTest(t)}),this},r.prototype.run=function(){this.root&&this.emit("run")}}),t.register("test.js",function(t,e,n){function r(t,e){o.call(this,t,e),this.pending=!e,this.type="test"}function i(){}var o=n("./runnable");t.exports=r,i.prototype=o.prototype,r.prototype=new i,r.prototype.constructor=r}),t.register("utils.js",function(t,e,n){function r(t){return!~p.indexOf(t)}function i(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\/\/(.*)/gm,'<span class="comment">//$1</span>').replace(/('.*?')/gm,'<span class="string">$1</span>').replace(/(\d+\.\d+)/gm,'<span class="number">$1</span>').replace(/(\d+)/gm,'<span class="number">$1</span>').replace(/\bnew[ \t]+(\w+)/gm,'<span class="keyword">new</span> <span class="init">$1</span>').replace(/\b(function|new|throw|return|var|if|else)\b/gm,'<span class="keyword">$1</span>')}function o(t,n,r){function i(t){switch(e.type(t)){case"null":case"undefined":t="["+t+"]";break;case"array":case"object":t=o(t,n,r+1);break;case"boolean":case"regexp":case"number":t=0===t&&1/t===-(1/0)?"-0":t.toString();break;case"date":t="[Date: "+t.toISOString()+"]";break;case"buffer":var i=t.toJSON();i=i.data&&i.type?i.data:i,t="[Buffer: "+o(i,2,r+1)+"]";break;default:t="[Function]"==t||"[Circular]"==t?t:'"'+t+'"'}return t}if("undefined"==typeof n)return i(t);r=r||1;var s=n*r,a=d(t)?"[":"{",u=d(t)?"]":"}",c=t.length||e.keys(t).length,l=function(t,e){return new Array(e).join(t)};for(var h in t)t.hasOwnProperty(h)&&(--c,a+="\n "+l(" ",s)+(d(t)?"":'"'+h+'": ')+i(t[h])+(c?",":""));return a+(1!=a.length?"\n"+l(" ",--s)+u:u)}var s=n("browser/fs"),a=n("browser/path"),u=a.basename,c=s.existsSync||a.existsSync,l=n("browser/glob"),h=a.join,f=n("browser/debug")("mocha:watch"),p=["node_modules",".git"];e.escape=function(t){return String(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},e.forEach=function(t,e,n){for(var r=0,i=t.length;i>r;r++)e.call(n,t[r],r)},e.map=function(t,e,n){for(var r=[],i=0,o=t.length;o>i;i++)r.push(e.call(n,t[i],i,t));return r},e.indexOf=function(t,e,n){for(var r=n||0,i=t.length;i>r;r++)if(t[r]===e)return r;return-1},e.reduce=function(t,e,n){for(var r=n,i=0,o=t.length;o>i;i++)r=e(r,t[i],i,t);return r},e.filter=function(t,e){for(var n=[],r=0,i=t.length;i>r;r++){var o=t[r];e(o,r,t)&&n.push(o)}return n},e.keys=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&e.push(r);return e},e.watch=function(t,e){var n={interval:100};t.forEach(function(t){f("file %s",t),s.watchFile(t,n,function(n,r){r.mtime<n.mtime&&e(t)})})};var d=Array.isArray||function(t){return"[object Array]"=={}.toString.call(t)};"undefined"!=typeof Buffer&&Buffer.prototype&&(Buffer.prototype.toJSON=Buffer.prototype.toJSON||function(){return Array.prototype.slice.call(this,0)}),e.files=function(t,n,i){i=i||[],n=n||["js"];var o=new RegExp("\\.("+n.join("|")+")$");return s.readdirSync(t).filter(r).forEach(function(r){r=h(t,r),s.statSync(r).isDirectory()?e.files(r,n,i):r.match(o)&&i.push(r)}),i},e.slug=function(t){return t.toLowerCase().replace(/ +/g,"-").replace(/[^-\w]/g,"")},e.clean=function(t){t=t.replace(/\r\n?|[\n\u2028\u2029]/g,"\n").replace(/^\uFEFF/,"").replace(/^function *\(.*\) *{|\(.*\) *=> *{?/,"").replace(/\s+\}$/,"");var n=t.match(/^\n?( *)/)[1].length,r=t.match(/^\n?(\t*)/)[1].length,i=new RegExp("^\n?"+(r?"	":" ")+"{"+(r?r:n)+"}","gm");return t=t.replace(i,""),e.trim(t)},e.trim=function(t){return t.replace(/^\s+|\s+$/g,"")},e.parseQuery=function(t){return e.reduce(t.replace("?","").split("&"),function(t,e){var n=e.indexOf("="),r=e.slice(0,n),i=e.slice(++n);return t[r]=decodeURIComponent(i),t},{})},e.highlightTags=function(t){for(var e=document.getElementById("mocha").getElementsByTagName(t),n=0,r=e.length;r>n;++n)e[n].innerHTML=i(e[n].innerHTML)};var g=function(t,n){switch(n=n||e.type(t)){case"function":return"[Function]";case"object":return"{}";case"array":return"[]";default:return t.toString()}};e.type=function(t){return"undefined"!=typeof Buffer&&Buffer.isBuffer(t)?"buffer":Object.prototype.toString.call(t).replace(/^\[.+\s(.+?)\]$/,"$1").toLowerCase()},e.stringify=function(t){var n=e.type(t);if(!~e.indexOf(["object","array","function"],n)){if("buffer"!=n)return o(t);var r=t.toJSON();return o(r.data&&r.type?r.data:r,2).replace(/,(\n|$)/g,"$1")}for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))return o(e.canonicalize(t),2).replace(/,(\n|$)/g,"$1");return g(t,n)},e.isBuffer=function(t){return"undefined"!=typeof Buffer&&Buffer.isBuffer(t)},e.canonicalize=function(t,n){var r,i,o=e.type(t),s=function(t,e){n.push(t),e(),n.pop()};if(n=n||[],-1!==e.indexOf(n,t))return"[Circular]";switch(o){case"undefined":case"buffer":case"null":r=t;break;case"array":s(t,function(){r=e.map(t,function(t){return e.canonicalize(t,n)})});break;case"function":for(i in t){r={};break}if(!r){r=g(t,o);break}case"object":r=r||{},s(t,function(){e.forEach(e.keys(t).sort(),function(i){r[i]=e.canonicalize(t[i],n)})});break;case"date":case"number":case"regexp":case"boolean":r=t;break;default:r=t.toString()}return r},e.lookupFiles=function m(t,e,n){var r=[],i=new RegExp("\\.("+e.join("|")+")$");if(!c(t)){if(!c(t+".js")){if(r=l.sync(t),!r.length)throw new Error("cannot resolve path (or pattern) '"+t+"'");return r}t+=".js"}try{var o=s.statSync(t);if(o.isFile())return t}catch(a){return}return s.readdirSync(t).forEach(function(o){o=h(t,o);try{var a=s.statSync(o);if(a.isDirectory())return void(n&&(r=r.concat(m(o,e,n))))}catch(c){return}a.isFile()&&i.test(o)&&"."!==u(o)[0]&&r.push(o)}),r},e.undefinedError=function(){return new Error("Caught undefined error, did you throw without specifying what?")},e.getError=function(t){return t||e.undefinedError()}});var n=function(){return this}(),r=n.Date,i=n.setTimeout,o=(n.setInterval,n.clearTimeout,n.clearInterval,{});o.exit=function(t){},o.stdout={};var s=[],a=n.onerror;o.removeListener=function(t,e){if("uncaughtException"==t){a?n.onerror=a:n.onerror=function(){};var r=u.utils.indexOf(s,e);-1!=r&&s.splice(r,1)}},o.on=function(t,e){"uncaughtException"==t&&(n.onerror=function(t,n,r){return e(new Error(t+" ("+n+":"+r+")")),!0},s.push(e))};var u=n.Mocha=t("mocha"),c=n.mocha=new u({reporter:"html"});c.suite.removeAllListeners("pre-require");var l,h=[];u.Runner.immediately=function(t){h.push(t),l||(l=i(e,0))},c.throwError=function(t){throw u.utils.forEach(s,function(e){e(t)}),t},c.ui=function(t){return u.prototype.ui.call(this,t),this.suite.emit("pre-require",n,null,this),this},c.setup=function(t){"string"==typeof t&&(t={ui:t});for(var e in t)this[e](t[e]);return this},c.run=function(t){var e=c.options;c.globals("location");var r=u.utils.parseQuery(n.location.search||"");return r.grep&&c.grep(new RegExp(r.grep)),r.fgrep&&c.grep(r.fgrep),r.invert&&c.invert(),u.prototype.run.call(c,function(r){var i=n.document;i&&i.getElementById("mocha")&&e.noHighlighting!==!0&&u.utils.highlightTags("code"),t&&t(r)})},u.process=o}(),function(){function require(t,e,n){var r=require.resolve(t);if(null==r){n=n||t,e=e||"root";var i=new Error('Failed to require "'+n+'" from "'+e+'"');throw i.path=n,i.parent=e,i.require=!0,i}var o=require.modules[r];if(!o._resolving&&!o.exports){var s={};s.exports={},s.client=s.component=!0,o._resolving=!0,o.call(this,s.exports,require.relative(r),s),delete o._resolving,o.exports=s.exports}return o.exports}require.modules={},require.aliases={},require.resolve=function(t){"/"===t.charAt(0)&&(t=t.slice(1));for(var e=[t,t+".js",t+".json",t+"/index.js",t+"/index.json"],n=0;n<e.length;n++){var t=e[n];if(require.modules.hasOwnProperty(t))return t;if(require.aliases.hasOwnProperty(t))return require.aliases[t]}},require.normalize=function(t,e){var n=[];if("."!=e.charAt(0))return e;t=t.split("/"),e=e.split("/");for(var r=0;r<e.length;++r)".."==e[r]?t.pop():"."!=e[r]&&""!=e[r]&&n.push(e[r]);return t.concat(n).join("/")},require.register=function(t,e){require.modules[t]=e},require.alias=function(t,e){if(!require.modules.hasOwnProperty(t))throw new Error('Failed to alias "'+t+'", it does not exist');require.aliases[e]=t},require.relative=function(t){function e(t,e){for(var n=t.length;n--;)if(t[n]===e)return n;return-1}function n(e){var r=n.resolve(e);return require(r,t,e)}var r=require.normalize(t,"..");return n.resolve=function(n){var i=n.charAt(0);if("/"==i)return n.slice(1);if("."==i)return require.normalize(r,n);var o=t.split("/"),s=e(o,"deps")+1;return s||(s=0),n=o.slice(0,s+1).join("/")+"/deps/"+n},n.exists=function(t){return require.modules.hasOwnProperty(n.resolve(t))},n},require.register("chaijs-assertion-error/index.js",function(t,e,n){/*!
 * assertion-error
 * Copyright(c) 2013 Jake Luer <jake@qualiancy.com>
 * MIT Licensed
 */
/*!
 * Return a function that will copy properties from
 * one object to another excluding any originally
 * listed. Returned function will create a new `{}`.
 *
 * @param {String} excluded properties ...
 * @return {Function}
 */
function r(){function t(t,n){Object.keys(n).forEach(function(r){~e.indexOf(r)||(t[r]=n[r])})}var e=[].slice.call(arguments);return function(){for(var e=[].slice.call(arguments),n=0,r={};n<e.length;n++)t(r,e[n]);return r}}function i(t,e,n){var i=r("name","message","stack","constructor","toJSON"),o=i(e||{});this.message=t||"Unspecified AssertionError",this.showDiff=!1;for(var s in o)this[s]=o[s];n=n||arguments.callee,n&&Error.captureStackTrace&&Error.captureStackTrace(this,n)}/*!
 * Primary Exports
 */
n.exports=i,/*!
 * Inherit from Error.prototype
 */
i.prototype=Object.create(Error.prototype),/*!
 * Statically set name
 */
i.prototype.name="AssertionError",/*!
 * Ensure correct constructor
 */
i.prototype.constructor=i,i.prototype.toJSON=function(t){var e=r("constructor","toJSON","stack"),n=e({name:this.name},this);return!1!==t&&this.stack&&(n.stack=this.stack),n}}),require.register("chaijs-type-detect/lib/type.js",function(t,e,n){function r(t){var e=Object.prototype.toString.call(t);return o[e]?o[e]:null===t?"null":void 0===t?"undefined":t===Object(t)?"object":typeof t}function i(){this.tests={}}/*!
 * type-detect
 * Copyright(c) 2013 jake luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
/*!
 * Primary Exports
 */
var t=n.exports=r,o={"[object Array]":"array","[object RegExp]":"regexp","[object Function]":"function","[object Arguments]":"arguments","[object Date]":"date"};t.Library=i,i.prototype.of=r,i.prototype.define=function(t,e){return 1===arguments.length?this.tests[t]:(this.tests[t]=e,this)},i.prototype.test=function(t,e){if(e===r(t))return!0;var n=this.tests[e];if(n&&"regexp"===r(n))return n.test(t);if(n&&"function"===r(n))return n(t);throw new ReferenceError('Type test "'+e+'" not defined or invalid.')}}),require.register("chaijs-deep-eql/lib/eql.js",function(t,e,n){function r(t,e,n){return i(t,e)?!0:"date"===g(t)?s(t,e):"regexp"===g(t)?a(t,e):d.isBuffer(t)?h(t,e):"arguments"===g(t)?u(t,e,n):o(t,e)?"object"!==g(t)&&"object"!==g(e)&&"array"!==g(t)&&"array"!==g(e)?i(t,e):p(t,e,n):!1}/*!
 * Strict (egal) equality test. Ensures that NaN always
 * equals NaN and `-0` does not equal `+0`.
 *
 * @param {Mixed} a
 * @param {Mixed} b
 * @return {Boolean} equal match
 */
function i(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}/*!
 * Compare the types of two given objects and
 * return if they are equal. Note that an Array
 * has a type of `array` (not `object`) and arguments
 * have a type of `arguments` (not `array`/`object`).
 *
 * @param {Mixed} a
 * @param {Mixed} b
 * @return {Boolean} result
 */
function o(t,e){return g(t)===g(e)}/*!
 * Compare two Date objects by asserting that
 * the time values are equal using `saveValue`.
 *
 * @param {Date} a
 * @param {Date} b
 * @return {Boolean} result
 */
function s(t,e){return"date"!==g(e)?!1:i(t.getTime(),e.getTime())}/*!
 * Compare two regular expressions by converting them
 * to string and checking for `sameValue`.
 *
 * @param {RegExp} a
 * @param {RegExp} b
 * @return {Boolean} result
 */
function a(t,e){return"regexp"!==g(e)?!1:i(t.toString(),e.toString())}/*!
 * Assert deep equality of two `arguments` objects.
 * Unfortunately, these must be sliced to arrays
 * prior to test to ensure no bad behavior.
 *
 * @param {Arguments} a
 * @param {Arguments} b
 * @param {Array} memoize (optional)
 * @return {Boolean} result
 */
function u(t,e,n){return"arguments"!==g(e)?!1:(t=[].slice.call(t),e=[].slice.call(e),r(t,e,n))}/*!
 * Get enumerable properties of a given object.
 *
 * @param {Object} a
 * @return {Array} property names
 */
function c(t){var e=[];for(var n in t)e.push(n);return e}/*!
 * Simple equality for flat iterable objects
 * such as Arrays or Node.js buffers.
 *
 * @param {Iterable} a
 * @param {Iterable} b
 * @return {Boolean} result
 */
function l(t,e){if(t.length!==e.length)return!1;for(var n=0,r=!0;n<t.length;n++)if(t[n]!==e[n]){r=!1;break}return r}/*!
 * Extension to `iterableEqual` specifically
 * for Node.js Buffers.
 *
 * @param {Buffer} a
 * @param {Mixed} b
 * @return {Boolean} result
 */
function h(t,e){return d.isBuffer(e)?l(t,e):!1}/*!
 * Block for `objectEqual` ensuring non-existing
 * values don't get in.
 *
 * @param {Mixed} object
 * @return {Boolean} result
 */
function f(t){return null!==t&&void 0!==t}/*!
 * Recursively check the equality of two objects.
 * Once basic sameness has been established it will
 * defer to `deepEqual` for each enumerable key
 * in the object.
 *
 * @param {Mixed} a
 * @param {Mixed} b
 * @return {Boolean} result
 */
function p(t,e,n){if(!f(t)||!f(e))return!1;if(t.prototype!==e.prototype)return!1;var i;if(n){for(i=0;i<n.length;i++)if(n[i][0]===t&&n[i][1]===e||n[i][0]===e&&n[i][1]===t)return!0}else n=[];try{var o=c(t),s=c(e)}catch(a){return!1}if(o.sort(),s.sort(),!l(o,s))return!1;n.push([t,e]);var u;for(i=o.length-1;i>=0;i--)if(u=o[i],!r(t[u],e[u],n))return!1;return!0}/*!
 * deep-eql
 * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
/*!
 * Module dependencies
 */
var d,g=e("type-detect");try{d=e("buffer").Buffer}catch(m){d={},d.isBuffer=function(){return!1}}/*!
 * Primary Export
 */
n.exports=r}),require.register("chai/index.js",function(t,e,n){n.exports=e("./lib/chai")}),require.register("chai/lib/chai.js",function(t,e,n){/*!
 * chai
 * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
var r=[],t=n.exports={};/*!
 * Chai version
 */
t.version="1.9.2",/*!
 * Assertion Error
 */
t.AssertionError=e("assertion-error");/*!
 * Utils for plugins (not exported)
 */
var i=e("./chai/utils");t.use=function(t){return~r.indexOf(t)||(t(this,i),r.push(t)),this};/*!
 * Configuration
 */
var o=e("./chai/config");t.config=o;/*!
 * Primary `Assertion` prototype
 */
var s=e("./chai/assertion");t.use(s);/*!
 * Core Assertions
 */
var a=e("./chai/core/assertions");t.use(a);/*!
 * Expect interface
 */
var u=e("./chai/interface/expect");t.use(u);/*!
 * Should interface
 */
var c=e("./chai/interface/should");t.use(c);/*!
 * Assert interface
 */
var l=e("./chai/interface/assert");t.use(l)}),require.register("chai/lib/chai/assertion.js",function(t,e,n){/*!
 * chai
 * http://chaijs.com
 * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
var r=e("./config");n.exports=function(t,e){/*!
   * Assertion Constructor
   *
   * Creates object for chaining.
   *
   * @api private
   */
function n(t,e,n){o(this,"ssfi",n||arguments.callee),o(this,"object",t),o(this,"message",e)}/*!
   * Module dependencies.
   */
var i=t.AssertionError,o=e.flag;/*!
   * Module export.
   */
t.Assertion=n,Object.defineProperty(n,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),r.includeStack},set:function(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),r.includeStack=t}}),Object.defineProperty(n,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),r.showDiff},set:function(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),r.showDiff=t}}),n.addProperty=function(t,n){e.addProperty(this.prototype,t,n)},n.addMethod=function(t,n){e.addMethod(this.prototype,t,n)},n.addChainableMethod=function(t,n,r){e.addChainableMethod(this.prototype,t,n,r)},n.overwriteProperty=function(t,n){e.overwriteProperty(this.prototype,t,n)},n.overwriteMethod=function(t,n){e.overwriteMethod(this.prototype,t,n)},n.overwriteChainableMethod=function(t,n,r){e.overwriteChainableMethod(this.prototype,t,n,r)},/*!
   * ### .assert(expression, message, negateMessage, expected, actual)
   *
   * Executes an expression and check expectations. Throws AssertionError for reporting if test doesn't pass.
   *
   * @name assert
   * @param {Philosophical} expression to be tested
   * @param {String or Function} message or function that returns message to display if fails
   * @param {String or Function} negatedMessage or function that returns negatedMessage to display if negated expression fails
   * @param {Mixed} expected value (remember to check for negation)
   * @param {Mixed} actual (optional) will default to `this.obj`
   * @api private
   */
n.prototype.assert=function(t,n,s,a,u,c){var l=e.test(this,arguments);if(!0!==c&&(c=!1),!0!==r.showDiff&&(c=!1),!l){var n=e.getMessage(this,arguments),h=e.getActual(this,arguments);throw new i(n,{actual:h,expected:a,showDiff:c},r.includeStack?this.assert:o(this,"ssfi"))}},/*!
   * ### ._obj
   *
   * Quick reference to stored `actual` value for plugin developers.
   *
   * @api private
   */
Object.defineProperty(n.prototype,"_obj",{get:function(){return o(this,"object")},set:function(t){o(this,"object",t)}})}}),require.register("chai/lib/chai/config.js",function(t,e,n){n.exports={includeStack:!1,showDiff:!0,truncateThreshold:40}}),require.register("chai/lib/chai/core/assertions.js",function(t,e,n){/*!
 * chai
 * http://chaijs.com
 * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
n.exports=function(t,e){function n(t,n){n&&w(this,"message",n),t=t.toLowerCase();var r=w(this,"object"),i=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an ":"a ";this.assert(t===e.type(r),"expected #{this} to be "+i+t,"expected #{this} not to be "+i+t)}function r(){w(this,"contains",!0)}function i(t,n){n&&w(this,"message",n);var r=w(this,"object"),i=!1;if("array"===e.type(r)&&"object"===e.type(t)){for(var o in r)if(e.eql(r[o],t)){i=!0;break}}else if("object"===e.type(t)){if(!w(this,"negate")){for(var s in t)new b(r).property(s,t[s]);return}var a={};for(var s in t)a[s]=r[s];i=e.eql(a,t)}else i=r&&~r.indexOf(t);this.assert(i,"expected #{this} to include "+e.inspect(t),"expected #{this} to not include "+e.inspect(t))}function o(){var t=w(this,"object"),e=Object.prototype.toString.call(t);this.assert("[object Arguments]"===e,"expected #{this} to be arguments but got "+e,"expected #{this} to not be arguments")}function s(t,e){e&&w(this,"message",e);var n=w(this,"object");return w(this,"deep")?this.eql(t):void this.assert(t===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",t,this._obj,!0)}function a(t,n){n&&w(this,"message",n),this.assert(e.eql(t,w(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",t,this._obj,!0)}function u(t,e){e&&w(this,"message",e);var n=w(this,"object");if(w(this,"doLength")){new b(n,e).to.have.property("length");var r=n.length;this.assert(r>t,"expected #{this} to have a length above #{exp} but got #{act}","expected #{this} to not have a length above #{exp}",t,r)}else this.assert(n>t,"expected #{this} to be above "+t,"expected #{this} to be at most "+t)}function c(t,e){e&&w(this,"message",e);var n=w(this,"object");if(w(this,"doLength")){new b(n,e).to.have.property("length");var r=n.length;this.assert(r>=t,"expected #{this} to have a length at least #{exp} but got #{act}","expected #{this} to have a length below #{exp}",t,r)}else this.assert(n>=t,"expected #{this} to be at least "+t,"expected #{this} to be below "+t)}function l(t,e){e&&w(this,"message",e);var n=w(this,"object");if(w(this,"doLength")){new b(n,e).to.have.property("length");var r=n.length;this.assert(t>r,"expected #{this} to have a length below #{exp} but got #{act}","expected #{this} to not have a length below #{exp}",t,r)}else this.assert(t>n,"expected #{this} to be below "+t,"expected #{this} to be at least "+t)}function h(t,e){e&&w(this,"message",e);var n=w(this,"object");if(w(this,"doLength")){new b(n,e).to.have.property("length");var r=n.length;this.assert(t>=r,"expected #{this} to have a length at most #{exp} but got #{act}","expected #{this} to have a length above #{exp}",t,r)}else this.assert(t>=n,"expected #{this} to be at most "+t,"expected #{this} to be above "+t)}function f(t,n){n&&w(this,"message",n);var r=e.getName(t);this.assert(w(this,"object")instanceof t,"expected #{this} to be an instance of "+r,"expected #{this} to not be an instance of "+r)}function p(t,n){n&&w(this,"message",n);var r=w(this,"object");this.assert(r.hasOwnProperty(t),"expected #{this} to have own property "+e.inspect(t),"expected #{this} to not have own property "+e.inspect(t))}function d(){w(this,"doLength",!0)}function g(t,e){e&&w(this,"message",e);var n=w(this,"object");new b(n,e).to.have.property("length");var r=n.length;this.assert(r==t,"expected #{this} to have a length of #{exp} but got #{act}","expected #{this} to not have a length of #{act}",t,r)}function m(t){var n,r=w(this,"object"),i=!0;if(t=t instanceof Array?t:Array.prototype.slice.call(arguments),!t.length)throw new Error("keys required");var o=Object.keys(r),s=t,a=t.length;if(i=t.every(function(t){return~o.indexOf(t)}),w(this,"negate")||w(this,"contains")||(i=i&&t.length==o.length),a>1){t=t.map(function(t){return e.inspect(t)});var u=t.pop();n=t.join(", ")+", and "+u}else n=e.inspect(t[0]);n=(a>1?"keys ":"key ")+n,n=(w(this,"contains")?"contain ":"have ")+n,this.assert(i,"expected #{this} to "+n,"expected #{this} to not "+n,s.sort(),o.sort(),!0)}function v(t,n,r){r&&w(this,"message",r);var i=w(this,"object");new b(i,r).is.a("function");var o=!1,s=null,a=null,u=null;0===arguments.length?(n=null,t=null):t&&(t instanceof RegExp||"string"==typeof t)?(n=t,t=null):t&&t instanceof Error?(s=t,t=null,n=null):"function"==typeof t?(a=t.prototype.name||t.name,"Error"===a&&t!==Error&&(a=(new t).name)):t=null;try{i()}catch(c){if(s)return this.assert(c===s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}",s instanceof Error?s.toString():s,c instanceof Error?c.toString():c),w(this,"object",c),this;if(t&&(this.assert(c instanceof t,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp} but #{act} was thrown",a,c instanceof Error?c.toString():c),!n))return w(this,"object",c),this;var l="object"===e.type(c)&&"message"in c?c.message:""+c;if(null!=l&&n&&n instanceof RegExp)return this.assert(n.exec(l),"expected #{this} to throw error matching #{exp} but got #{act}","expected #{this} to throw error not matching #{exp}",n,l),w(this,"object",c),this;if(null!=l&&n&&"string"==typeof n)return this.assert(~l.indexOf(n),"expected #{this} to throw error including #{exp} but got #{act}","expected #{this} to throw error not including #{act}",n,l),w(this,"object",c),this;o=!0,u=c}var h="",f=null!==a?a:s?"#{exp}":"an error";o&&(h=" but #{act} was thrown"),this.assert(o===!0,"expected #{this} to throw "+f+h,"expected #{this} to not throw "+f+h,s instanceof Error?s.toString():s,u instanceof Error?u.toString():u),w(this,"object",u)}function y(t,e,n){return t.every(function(t){return n?e.some(function(e){return n(t,e)}):-1!==e.indexOf(t)})}var b=t.Assertion,w=(Object.prototype.toString,e.flag);["to","be","been","is","and","has","have","with","that","at","of","same"].forEach(function(t){b.addProperty(t,function(){return this})}),b.addProperty("not",function(){w(this,"negate",!0)}),b.addProperty("deep",function(){w(this,"deep",!0)}),b.addChainableMethod("an",n),b.addChainableMethod("a",n),b.addChainableMethod("include",i,r),b.addChainableMethod("contain",i,r),b.addProperty("ok",function(){this.assert(w(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")}),b.addProperty("true",function(){this.assert(!0===w(this,"object"),"expected #{this} to be true","expected #{this} to be false",this.negate?!1:!0)}),b.addProperty("false",function(){this.assert(!1===w(this,"object"),"expected #{this} to be false","expected #{this} to be true",this.negate?!0:!1)}),b.addProperty("null",function(){this.assert(null===w(this,"object"),"expected #{this} to be null","expected #{this} not to be null")}),b.addProperty("undefined",function(){this.assert(void 0===w(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")}),b.addProperty("exist",function(){this.assert(null!=w(this,"object"),"expected #{this} to exist","expected #{this} to not exist")}),b.addProperty("empty",function(){var t=w(this,"object"),e=t;Array.isArray(t)||"string"==typeof object?e=t.length:"object"==typeof t&&(e=Object.keys(t).length),this.assert(!e,"expected #{this} to be empty","expected #{this} not to be empty")}),b.addProperty("arguments",o),b.addProperty("Arguments",o),b.addMethod("equal",s),b.addMethod("equals",s),b.addMethod("eq",s),b.addMethod("eql",a),b.addMethod("eqls",a),b.addMethod("above",u),b.addMethod("gt",u),b.addMethod("greaterThan",u),b.addMethod("least",c),b.addMethod("gte",c),b.addMethod("below",l),b.addMethod("lt",l),b.addMethod("lessThan",l),b.addMethod("most",h),b.addMethod("lte",h),b.addMethod("within",function(t,e,n){n&&w(this,"message",n);var r=w(this,"object"),i=t+".."+e;if(w(this,"doLength")){new b(r,n).to.have.property("length");var o=r.length;this.assert(o>=t&&e>=o,"expected #{this} to have a length within "+i,"expected #{this} to not have a length within "+i)}else this.assert(r>=t&&e>=r,"expected #{this} to be within "+i,"expected #{this} to not be within "+i)}),b.addMethod("instanceof",f),b.addMethod("instanceOf",f),b.addMethod("property",function(t,n,r){r&&w(this,"message",r);var i=w(this,"deep")?"deep property ":"property ",o=w(this,"negate"),s=w(this,"object"),a=w(this,"deep")?e.getPathValue(t,s):s[t];if(o&&void 0!==n){if(void 0===a)throw r=null!=r?r+": ":"",new Error(r+e.inspect(s)+" has no "+i+e.inspect(t))}else this.assert(void 0!==a,"expected #{this} to have a "+i+e.inspect(t),"expected #{this} to not have "+i+e.inspect(t));void 0!==n&&this.assert(n===a,"expected #{this} to have a "+i+e.inspect(t)+" of #{exp}, but got #{act}","expected #{this} to not have a "+i+e.inspect(t)+" of #{act}",n,a),w(this,"object",a)}),b.addMethod("ownProperty",p),b.addMethod("haveOwnProperty",p),b.addChainableMethod("length",g,d),b.addMethod("lengthOf",g),b.addMethod("match",function(t,e){e&&w(this,"message",e);var n=w(this,"object");this.assert(t.exec(n),"expected #{this} to match "+t,"expected #{this} not to match "+t)}),b.addMethod("string",function(t,n){n&&w(this,"message",n);var r=w(this,"object");new b(r,n).is.a("string"),this.assert(~r.indexOf(t),"expected #{this} to contain "+e.inspect(t),"expected #{this} to not contain "+e.inspect(t))}),b.addMethod("keys",m),b.addMethod("key",m),b.addMethod("throw",v),b.addMethod("throws",v),b.addMethod("Throw",v),b.addMethod("respondTo",function(t,n){n&&w(this,"message",n);var r=w(this,"object"),i=w(this,"itself"),o="function"!==e.type(r)||i?r[t]:r.prototype[t];this.assert("function"==typeof o,"expected #{this} to respond to "+e.inspect(t),"expected #{this} to not respond to "+e.inspect(t))}),b.addProperty("itself",function(){w(this,"itself",!0)}),b.addMethod("satisfy",function(t,n){n&&w(this,"message",n);var r=w(this,"object"),i=t(r);this.assert(i,"expected #{this} to satisfy "+e.objDisplay(t),"expected #{this} to not satisfy"+e.objDisplay(t),this.negate?!1:!0,i)}),b.addMethod("closeTo",function(t,n,r){r&&w(this,"message",r);var i=w(this,"object");if(new b(i,r).is.a("number"),"number"!==e.type(t)||"number"!==e.type(n))throw new Error("the arguments to closeTo must be numbers");this.assert(Math.abs(i-t)<=n,"expected #{this} to be close to "+t+" +/- "+n,"expected #{this} not to be close to "+t+" +/- "+n)}),b.addMethod("members",function(t,n){n&&w(this,"message",n);var r=w(this,"object");new b(r).to.be.an("array"),new b(t).to.be.an("array");var i=w(this,"deep")?e.eql:void 0;return w(this,"contains")?this.assert(y(t,r,i),"expected #{this} to be a superset of #{act}","expected #{this} to not be a superset of #{act}",r,t):void this.assert(y(r,t,i)&&y(t,r,i),"expected #{this} to have the same members as #{act}","expected #{this} to not have the same members as #{act}",r,t)})}}),require.register("chai/lib/chai/interface/assert.js",function(exports,require,module){/*!
 * chai
 * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
module.exports=function(chai,util){/*!
   * Chai dependencies.
   */
var Assertion=chai.Assertion,flag=util.flag,assert=chai.assert=function(t,e){var n=new Assertion(null,null,chai.assert);n.assert(t,e,"[ negation message unavailable ]")};assert.fail=function(t,e,n,r){throw n=n||"assert.fail()",new chai.AssertionError(n,{actual:t,expected:e,operator:r},assert.fail)},assert.ok=function(t,e){new Assertion(t,e).is.ok},assert.notOk=function(t,e){new Assertion(t,e).is.not.ok},assert.equal=function(t,e,n){var r=new Assertion(t,n,assert.equal);r.assert(e==flag(r,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",e,t)},assert.notEqual=function(t,e,n){var r=new Assertion(t,n,assert.notEqual);r.assert(e!=flag(r,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",e,t)},assert.strictEqual=function(t,e,n){new Assertion(t,n).to.equal(e)},assert.notStrictEqual=function(t,e,n){new Assertion(t,n).to.not.equal(e)},assert.deepEqual=function(t,e,n){new Assertion(t,n).to.eql(e)},assert.notDeepEqual=function(t,e,n){new Assertion(t,n).to.not.eql(e)},assert.isTrue=function(t,e){new Assertion(t,e).is["true"]},assert.isFalse=function(t,e){new Assertion(t,e).is["false"]},assert.isNull=function(t,e){new Assertion(t,e).to.equal(null)},assert.isNotNull=function(t,e){new Assertion(t,e).to.not.equal(null)},assert.isUndefined=function(t,e){new Assertion(t,e).to.equal(void 0)},assert.isDefined=function(t,e){new Assertion(t,e).to.not.equal(void 0)},assert.isFunction=function(t,e){new Assertion(t,e).to.be.a("function")},assert.isNotFunction=function(t,e){new Assertion(t,e).to.not.be.a("function")},assert.isObject=function(t,e){new Assertion(t,e).to.be.a("object")},assert.isNotObject=function(t,e){new Assertion(t,e).to.not.be.a("object")},assert.isArray=function(t,e){new Assertion(t,e).to.be.an("array")},assert.isNotArray=function(t,e){new Assertion(t,e).to.not.be.an("array")},assert.isString=function(t,e){new Assertion(t,e).to.be.a("string")},assert.isNotString=function(t,e){new Assertion(t,e).to.not.be.a("string")},assert.isNumber=function(t,e){new Assertion(t,e).to.be.a("number")},assert.isNotNumber=function(t,e){new Assertion(t,e).to.not.be.a("number")},assert.isBoolean=function(t,e){new Assertion(t,e).to.be.a("boolean")},assert.isNotBoolean=function(t,e){new Assertion(t,e).to.not.be.a("boolean")},assert.typeOf=function(t,e,n){new Assertion(t,n).to.be.a(e)},assert.notTypeOf=function(t,e,n){new Assertion(t,n).to.not.be.a(e)},assert.instanceOf=function(t,e,n){new Assertion(t,n).to.be.instanceOf(e)},assert.notInstanceOf=function(t,e,n){new Assertion(t,n).to.not.be.instanceOf(e)},assert.include=function(t,e,n){new Assertion(t,n,assert.include).include(e)},assert.notInclude=function(t,e,n){new Assertion(t,n,assert.notInclude).not.include(e)},assert.match=function(t,e,n){new Assertion(t,n).to.match(e)},assert.notMatch=function(t,e,n){new Assertion(t,n).to.not.match(e)},assert.property=function(t,e,n){new Assertion(t,n).to.have.property(e)},assert.notProperty=function(t,e,n){new Assertion(t,n).to.not.have.property(e)},assert.deepProperty=function(t,e,n){new Assertion(t,n).to.have.deep.property(e)},assert.notDeepProperty=function(t,e,n){new Assertion(t,n).to.not.have.deep.property(e)},assert.propertyVal=function(t,e,n,r){new Assertion(t,r).to.have.property(e,n)},assert.propertyNotVal=function(t,e,n,r){new Assertion(t,r).to.not.have.property(e,n)},assert.deepPropertyVal=function(t,e,n,r){new Assertion(t,r).to.have.deep.property(e,n)},assert.deepPropertyNotVal=function(t,e,n,r){new Assertion(t,r).to.not.have.deep.property(e,n)},assert.lengthOf=function(t,e,n){new Assertion(t,n).to.have.length(e)},assert.Throw=function(t,e,n,r){("string"==typeof e||e instanceof RegExp)&&(n=e,e=null);var i=new Assertion(t,r).to.Throw(e,n);return flag(i,"object")},assert.doesNotThrow=function(t,e,n){"string"==typeof e&&(n=e,e=null),new Assertion(t,n).to.not.Throw(e)},assert.operator=function(val,operator,val2,msg){if(!~["==","===",">",">=","<","<=","!=","!=="].indexOf(operator))throw new Error('Invalid operator "'+operator+'"');var test=new Assertion(eval(val+operator+val2),msg);test.assert(!0===flag(test,"object"),"expected "+util.inspect(val)+" to be "+operator+" "+util.inspect(val2),"expected "+util.inspect(val)+" to not be "+operator+" "+util.inspect(val2))},assert.closeTo=function(t,e,n,r){new Assertion(t,r).to.be.closeTo(e,n)},assert.sameMembers=function(t,e,n){new Assertion(t,n).to.have.same.members(e)},assert.includeMembers=function(t,e,n){new Assertion(t,n).to.include.members(e)},/*!
   * Undocumented / untested
   */
assert.ifError=function(t,e){new Assertion(t,e).to.not.be.ok},/*!
   * Aliases.
   */
function t(e,n){return assert[n]=assert[e],t}("Throw","throw")("Throw","throws")}}),require.register("chai/lib/chai/interface/expect.js",function(t,e,n){/*!
 * chai
 * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
n.exports=function(t,e){t.expect=function(e,n){return new t.Assertion(e,n)}}}),require.register("chai/lib/chai/interface/should.js",function(t,e,n){/*!
 * chai
 * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
n.exports=function(t,e){function n(){function t(){return this instanceof String||this instanceof Number?new r(this.constructor(this),null,t):this instanceof Boolean?new r(1==this,null,t):new r(this,null,t)}function e(t){Object.defineProperty(this,"should",{value:t,enumerable:!0,configurable:!0,writable:!0})}Object.defineProperty(Object.prototype,"should",{set:e,get:t,configurable:!0});var n={};return n.equal=function(t,e,n){new r(t,n).to.equal(e)},n.Throw=function(t,e,n,i){new r(t,i).to.Throw(e,n)},n.exist=function(t,e){new r(t,e).to.exist},n.not={},n.not.equal=function(t,e,n){new r(t,n).to.not.equal(e)},n.not.Throw=function(t,e,n,i){new r(t,i).to.not.Throw(e,n)},n.not.exist=function(t,e){new r(t,e).to.not.exist},n["throw"]=n.Throw,n.not["throw"]=n.not.Throw,n}var r=t.Assertion;t.should=n,t.Should=n}}),require.register("chai/lib/chai/utils/addChainableMethod.js",function(t,e,n){/*!
 * Chai - addChainingMethod utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
/*!
 * Module dependencies
 */
var r=e("./transferFlags"),i=e("./flag"),o=e("../config"),s="__proto__"in Object,a=/^(?:length|name|arguments|caller)$/,u=Function.prototype.call,c=Function.prototype.apply;n.exports=function(t,e,n,l){"function"!=typeof l&&(l=function(){});var h={method:n,chainingBehavior:l};t.__methods||(t.__methods={}),t.__methods[e]=h,Object.defineProperty(t,e,{get:function(){h.chainingBehavior.call(this);var e=function f(){var t=i(this,"ssfi");t&&o.includeStack===!1&&i(this,"ssfi",f);var e=h.method.apply(this,arguments);return void 0===e?this:e};if(s){var n=e.__proto__=Object.create(this);n.call=u,n.apply=c}else{var l=Object.getOwnPropertyNames(t);l.forEach(function(n){if(!a.test(n)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r)}})}return r(this,e),e},configurable:!0})}}),require.register("chai/lib/chai/utils/addMethod.js",function(t,e,n){/*!
 * Chai - addMethod utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
var r=e("../config"),i=e("./flag");n.exports=function(t,e,n){t[e]=function(){var o=i(this,"ssfi");o&&r.includeStack===!1&&i(this,"ssfi",t[e]);var s=n.apply(this,arguments);return void 0===s?this:s}}}),require.register("chai/lib/chai/utils/addProperty.js",function(t,e,n){/*!
 * Chai - addProperty utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
n.exports=function(t,e,n){Object.defineProperty(t,e,{get:function(){var t=n.call(this);return void 0===t?this:t},configurable:!0})}}),require.register("chai/lib/chai/utils/flag.js",function(t,e,n){/*!
 * Chai - flag utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
n.exports=function(t,e,n){var r=t.__flags||(t.__flags=Object.create(null));return 3!==arguments.length?r[e]:void(r[e]=n)}}),require.register("chai/lib/chai/utils/getActual.js",function(t,e,n){/*!
 * Chai - getActual utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
n.exports=function(t,e){return e.length>4?e[4]:t._obj}}),require.register("chai/lib/chai/utils/getEnumerableProperties.js",function(t,e,n){/*!
 * Chai - getEnumerableProperties utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
n.exports=function(t){var e=[];for(var n in t)e.push(n);return e}}),require.register("chai/lib/chai/utils/getMessage.js",function(t,e,n){/*!
 * Chai - message composition utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
/*!
 * Module dependancies
 */
var r=e("./flag"),i=e("./getActual"),o=(e("./inspect"),e("./objDisplay"));n.exports=function(t,e){var n=r(t,"negate"),s=r(t,"object"),a=e[3],u=i(t,e),c=n?e[2]:e[1],l=r(t,"message");return"function"==typeof c&&(c=c()),c=c||"",c=c.replace(/#{this}/g,o(s)).replace(/#{act}/g,o(u)).replace(/#{exp}/g,o(a)),l?l+": "+c:c}}),require.register("chai/lib/chai/utils/getName.js",function(t,e,n){/*!
 * Chai - getName utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
n.exports=function(t){if(t.name)return t.name;var e=/^\s?function ([^(]*)\(/.exec(t);return e&&e[1]?e[1]:""}}),require.register("chai/lib/chai/utils/getPathValue.js",function(t,e,n){/*!
 * ## parsePath(path)
 *
 * Helper function used to parse string object
 * paths. Use in conjunction with `_getPathValue`.
 *
 *      var parsed = parsePath('myobject.property.subprop');
 *
 * ### Paths:
 *
 * * Can be as near infinitely deep and nested
 * * Arrays are also valid using the formal `myobject.document[3].property`.
 *
 * @param {String} path
 * @returns {Object} parsed
 * @api private
 */
function r(t){var e=t.replace(/\[/g,".["),n=e.match(/(\\\.|[^.]+?)+/g);return n.map(function(t){var e=/\[(\d+)\]$/,n=e.exec(t);return n?{i:parseFloat(n[1])}:{p:t}})}/*!
 * ## _getPathValue(parsed, obj)
 *
 * Helper companion function for `.parsePath` that returns
 * the value located at the parsed address.
 *
 *      var value = getPathValue(parsed, obj);
 *
 * @param {Object} parsed definition from `parsePath`.
 * @param {Object} object to search against
 * @returns {Object|Undefined} value
 * @api private
 */
function i(t,e){for(var n,r=e,i=0,o=t.length;o>i;i++){var s=t[i];r?("undefined"!=typeof s.p?r=r[s.p]:"undefined"!=typeof s.i&&(r=r[s.i]),i==o-1&&(n=r)):n=void 0}return n}/*!
 * Chai - getPathValue utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * @see https://github.com/logicalparadox/filtr
 * MIT Licensed
 */
n.exports=function(t,e){var n=r(t);return i(n,e)}}),require.register("chai/lib/chai/utils/getProperties.js",function(t,e,n){/*!
 * Chai - getProperties utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
n.exports=function(t){function e(t){-1===n.indexOf(t)&&n.push(t)}for(var n=Object.getOwnPropertyNames(subject),r=Object.getPrototypeOf(subject);null!==r;)Object.getOwnPropertyNames(r).forEach(e),r=Object.getPrototypeOf(r);return n}}),require.register("chai/lib/chai/utils/index.js",function(t,e,n){/*!
 * chai
 * Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
/*!
 * Main exports
 */
var t=n.exports={};/*!
 * test utility
 */
t.test=e("./test"),/*!
 * type utility
 */
t.type=e("./type"),/*!
 * message utility
 */
t.getMessage=e("./getMessage"),/*!
 * actual utility
 */
t.getActual=e("./getActual"),/*!
 * Inspect util
 */
t.inspect=e("./inspect"),/*!
 * Object Display util
 */
t.objDisplay=e("./objDisplay"),/*!
 * Flag utility
 */
t.flag=e("./flag"),/*!
 * Flag transferring utility
 */
t.transferFlags=e("./transferFlags"),/*!
 * Deep equal utility
 */
t.eql=e("deep-eql"),/*!
 * Deep path value
 */
t.getPathValue=e("./getPathValue"),/*!
 * Function name
 */
t.getName=e("./getName"),/*!
 * add Property
 */
t.addProperty=e("./addProperty"),/*!
 * add Method
 */
t.addMethod=e("./addMethod"),/*!
 * overwrite Property
 */
t.overwriteProperty=e("./overwriteProperty"),/*!
 * overwrite Method
 */
t.overwriteMethod=e("./overwriteMethod"),/*!
 * Add a chainable method
 */
t.addChainableMethod=e("./addChainableMethod"),/*!
 * Overwrite chainable method
 */
t.overwriteChainableMethod=e("./overwriteChainableMethod")}),require.register("chai/lib/chai/utils/inspect.js",function(t,e,n){function r(t,e,n,r){var o={showHidden:e,seen:[],stylize:function(t){return t}};return i(o,t,"undefined"==typeof n?2:n)}function i(e,n,r){if(n&&"function"==typeof n.inspect&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var d=n.inspect(r);return"string"!=typeof d&&(d=i(e,d,r)),d}var b=o(e,n);if(b)return b;if(y(n)){if("outerHTML"in n)return n.outerHTML;try{if(document.xmlVersion){var w=new XMLSerializer;return w.serializeToString(n)}var x="http://www.w3.org/1999/xhtml",_=document.createElementNS(x,"_");return _.appendChild(n.cloneNode(!1)),html=_.innerHTML.replace("><",">"+n.innerHTML+"<"),_.innerHTML="",html}catch(C){}}var E=v(n),j=e.showHidden?m(n):E;if(0===j.length||p(n)&&(1===j.length&&"stack"===j[0]||2===j.length&&"description"===j[0]&&"stack"===j[1])){if("function"==typeof n){var k=g(n),T=k?": "+k:"";return e.stylize("[Function"+T+"]","special")}if(h(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(f(n))return e.stylize(Date.prototype.toUTCString.call(n),"date");if(p(n))return s(n)}var S="",A=!1,R=["{","}"];if(l(n)&&(A=!0,R=["[","]"]),"function"==typeof n){var k=g(n),T=k?": "+k:"";S=" [Function"+T+"]"}if(h(n)&&(S=" "+RegExp.prototype.toString.call(n)),f(n)&&(S=" "+Date.prototype.toUTCString.call(n)),p(n))return s(n);if(0===j.length&&(!A||0==n.length))return R[0]+S+R[1];if(0>r)return h(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var O;return O=A?a(e,n,r,E,j):j.map(function(t){return u(e,n,r,E,t,A)}),e.seen.pop(),c(O,S,R)}function o(t,e){switch(typeof e){case"undefined":return t.stylize("undefined","undefined");case"string":var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string");case"number":return t.stylize(""+e,"number");case"boolean":return t.stylize(""+e,"boolean")}return null===e?t.stylize("null","null"):void 0}function s(t){return"["+Error.prototype.toString.call(t)+"]"}function a(t,e,n,r,i){for(var o=[],s=0,a=e.length;a>s;++s)Object.prototype.hasOwnProperty.call(e,String(s))?o.push(u(t,e,n,r,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(u(t,e,n,r,i,!0))}),o}function u(t,e,n,r,o,s){var a,u;if(e.__lookupGetter__&&(e.__lookupGetter__(o)?u=e.__lookupSetter__(o)?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):e.__lookupSetter__(o)&&(u=t.stylize("[Setter]","special"))),r.indexOf(o)<0&&(a="["+o+"]"),u||(t.seen.indexOf(e[o])<0?(u=null===n?i(t,e[o],null):i(t,e[o],n-1),u.indexOf("\n")>-1&&(u=s?u.split("\n").map(function(t){return"  "+t}).join("\n").substr(2):"\n"+u.split("\n").map(function(t){return"   "+t}).join("\n"))):u=t.stylize("[Circular]","special")),"undefined"==typeof a){if(s&&o.match(/^\d+$/))return u;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+u}function c(t,e,n){var r=0,i=t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.length+1},0);return i>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function l(t){return Array.isArray(t)||"object"==typeof t&&"[object Array]"===d(t)}function h(t){return"object"==typeof t&&"[object RegExp]"===d(t)}function f(t){return"object"==typeof t&&"[object Date]"===d(t)}function p(t){return"object"==typeof t&&"[object Error]"===d(t)}function d(t){return Object.prototype.toString.call(t)}var g=e("./getName"),m=e("./getProperties"),v=e("./getEnumerableProperties");n.exports=r;var y=function(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.nodeName}}),require.register("chai/lib/chai/utils/objDisplay.js",function(t,e,n){/*!
 * Chai - flag utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
/*!
 * Module dependancies
 */
var r=e("./inspect"),i=e("../config");n.exports=function(t){var e=r(t),n=Object.prototype.toString.call(t);if(i.truncateThreshold&&e.length>=i.truncateThreshold){if("[object Function]"===n)return t.name&&""!==t.name?"[Function: "+t.name+"]":"[Function]";if("[object Array]"===n)return"[ Array("+t.length+") ]";if("[object Object]"===n){var o=Object.keys(t),s=o.length>2?o.splice(0,2).join(", ")+", ...":o.join(", ");return"{ Object ("+s+") }"}return e}return e}}),require.register("chai/lib/chai/utils/overwriteMethod.js",function(t,e,n){/*!
 * Chai - overwriteMethod utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
n.exports=function(t,e,n){var r=t[e],i=function(){return this};r&&"function"==typeof r&&(i=r),t[e]=function(){var t=n(i).apply(this,arguments);return void 0===t?this:t}}}),require.register("chai/lib/chai/utils/overwriteProperty.js",function(t,e,n){/*!
 * Chai - overwriteProperty utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
n.exports=function(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e),i=function(){};r&&"function"==typeof r.get&&(i=r.get),Object.defineProperty(t,e,{get:function(){var t=n(i).call(this);return void 0===t?this:t},configurable:!0})}}),require.register("chai/lib/chai/utils/overwriteChainableMethod.js",function(t,e,n){/*!
 * Chai - overwriteChainableMethod utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
n.exports=function(t,e,n,r){var i=t.__methods[e],o=i.chainingBehavior;i.chainingBehavior=function(){var t=r(o).call(this);return void 0===t?this:t};var s=i.method;i.method=function(){var t=n(s).apply(this,arguments);return void 0===t?this:t}}}),require.register("chai/lib/chai/utils/test.js",function(t,e,n){/*!
 * Chai - test utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
/*!
 * Module dependancies
 */
var r=e("./flag");n.exports=function(t,e){var n=r(t,"negate"),i=e[0];return n?!i:i}}),require.register("chai/lib/chai/utils/transferFlags.js",function(t,e,n){/*!
 * Chai - transferFlags utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
n.exports=function(t,e,n){var r=t.__flags||(t.__flags=Object.create(null));e.__flags||(e.__flags=Object.create(null)),n=3===arguments.length?n:!0;for(var i in r)(n||"object"!==i&&"ssfi"!==i&&"message"!=i)&&(e.__flags[i]=r[i])}}),require.register("chai/lib/chai/utils/type.js",function(t,e,n){/*!
 * Chai - type utility
 * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
 * MIT Licensed
 */
/*!
 * Detectable javascript natives
 */
var r={"[object Arguments]":"arguments","[object Array]":"array","[object Date]":"date","[object Function]":"function","[object Number]":"number","[object RegExp]":"regexp","[object String]":"string"};n.exports=function(t){var e=Object.prototype.toString.call(t);return r[e]?r[e]:null===t?"null":void 0===t?"undefined":t===Object(t)?"object":typeof t}}),require.alias("chaijs-assertion-error/index.js","chai/deps/assertion-error/index.js"),require.alias("chaijs-assertion-error/index.js","chai/deps/assertion-error/index.js"),require.alias("chaijs-assertion-error/index.js","assertion-error/index.js"),require.alias("chaijs-assertion-error/index.js","chaijs-assertion-error/index.js"),require.alias("chaijs-deep-eql/lib/eql.js","chai/deps/deep-eql/lib/eql.js"),require.alias("chaijs-deep-eql/lib/eql.js","chai/deps/deep-eql/index.js"),require.alias("chaijs-deep-eql/lib/eql.js","deep-eql/index.js"),require.alias("chaijs-type-detect/lib/type.js","chaijs-deep-eql/deps/type-detect/lib/type.js"),require.alias("chaijs-type-detect/lib/type.js","chaijs-deep-eql/deps/type-detect/index.js"),require.alias("chaijs-type-detect/lib/type.js","chaijs-type-detect/index.js"),require.alias("chaijs-deep-eql/lib/eql.js","chaijs-deep-eql/index.js"),require.alias("chai/index.js","chai/index.js"),"object"==typeof exports?module.exports=require("chai"):"function"==typeof define&&define.amd?define([],function(){return require("chai")}):this.chai=require("chai")}(),function(){function t(t){return"undefined"!=typeof t.value?"value":"undefined"!=typeof t.text?"text":"undefined"!=typeof t.textContent?"textContent":"innerText"}function e(){}function n(){}function r(t,e){var n=e.text.replace(/\r/g,"").length;if(t.compareEndPoints("StartToStart",e)<=0)return 0;if(t.compareEndPoints("StartToEnd",e)>=0)return n;for(var r=0;t.compareEndPoints("StartToStart",e)>0;++r,t.moveStart("character",-1));return r}function i(t,e){var n=e.text.replace(/\r/g,"").length;if(t.compareEndPoints("EndToEnd",e)>=0)return n;if(t.compareEndPoints("EndToStart",e)<=0)return 0;for(var r=0;t.compareEndPoints("EndToStart",e)>0;++r,t.moveEnd("character",-1));return r}function o(){}function s(){}function a(t,e){if(t.firstChild)return t.firstChild;if(t.nextSibling)return t.nextSibling;if(t===e)return null;for(;t.parentNode;){if(t=t.parentNode,t==e)return null;if(t.nextSibling)return t.nextSibling}return null}function u(t,e,n,r){if(!(0>=e)){var i=t[n?"startContainer":"endContainer"];for(3==i.nodeType&&(e+=t[n?"startOffset":"endOffset"]);i;){if(3==i.nodeType){var o=i.nodeValue.length;if(o>=e){if(t[n?"setStart":"setEnd"](i,e),e==o){for(var s=a(i,r);s&&3==s.nodeType&&0==s.nodeValue.length;s=a(s,r))t[n?"setStartAfter":"setEndAfter"](s);s&&1==s.nodeType&&"BR"==s.nodeName&&t[n?"setStartAfter":"setEndAfter"](s)}return}t[n?"setStartAfter":"setEndAfter"](i),e-=o}i=a(i,r)}}}function c(t,e){return t.compareBoundaryPoints(d,e)<=0?0:t.compareBoundaryPoints(v,e)>=0?e.toString().length:(t=t.cloneRange(),t.setEnd(e.endContainer,e.endOffset),e.toString().replace(/\r/g,"").length-t.toString().replace(/\r/g,"").length)}function l(t,e){return t.compareBoundaryPoints(m,e)>=0?e.toString().length:t.compareBoundaryPoints(g,e)<=0?0:(t=t.cloneRange(),t.setStart(e.startContainer,e.startOffset),t.toString().replace(/\r/g,"").length)}function h(){}var f=("onfocusin"in document.createElement("input")?"focusin":"focus",document.createElement("div"));f.appendChild(document.createTextNode("x-")),f.appendChild(document.createTextNode("x")),f.normalize();var p=3==f.firstChild.length;bililiteRange=function(e,r){function i(t){t&&9==t.which?a._nativeSelect(a._nativeRange(e.bililiteRangeSelection)):e.bililiteRangeSelection=a._nativeSelection()}var a;if(r)a=new h;else if(window.getSelection&&e.setSelectionRange)try{e.selectionStart,a=new o}catch(u){a=new h}else a=window.getSelection?new s:document.selection?new n:new h;return a._el=e,a._doc=e.ownerDocument,a._win="defaultView"in a._doc?a._doc.defaultView:a._doc.parentWindow,a._textProp=t(e),a._bounds=[0,a.length()],"bililiteRangeSelection"in e||i(),a},e.prototype={length:function(){return this._el[this._textProp].replace(/\r/g,"").length},bounds:function(t){if(bililiteRange.bounds[t])this._bounds=bililiteRange.bounds[t].apply(this);else{if(!t){var e=[Math.max(0,Math.min(this.length(),this._bounds[0])),Math.max(0,Math.min(this.length(),this._bounds[1]))];return e[1]=Math.max(e[0],e[1]),e}this._bounds=t}return this},select:function(){var t=this._el.bililiteRangeSelection=this.bounds();return this._el===this._doc.activeElement&&this._nativeSelect(this._nativeRange(t)),this.dispatch({type:"select"}),this},text:function(t,e){if(arguments.length){var n=this.bounds();this._el;return this.dispatch({type:"beforeinput",data:t,bounds:n}),this._nativeSetText(t,this._nativeRange(n)),"start"==e?this.bounds([n[0],n[0]]):"end"==e?this.bounds([n[0]+t.length,n[0]+t.length]):"all"==e&&this.bounds([n[0],n[0]+t.length]),this.dispatch({type:"input",data:t,bounds:n}),this}return this._nativeGetText(this._nativeRange(this.bounds())).replace(/\r/g,"")},insertEOL:function(){return this._nativeEOL(),this._bounds=[this._bounds[0]+1,this._bounds[0]+1],this},top:function(){return this._nativeTop(this._nativeRange(this.bounds()))},scrollIntoView:function(t){var e=this.top();return(this._el.scrollTop>e||this._el.scrollTop+this._el.clientHeight<e)&&(t?t.call(this._el,e):this._el.scrollTop=e),this},wrap:function(t){return this._nativeWrap(t,this._nativeRange(this.bounds())),this},selection:function(t){return arguments.length?this.bounds("selection").text(t,"end").select():this.bounds("selection").text()},clone:function(){return bililiteRange(this._el).bounds(this.bounds())},all:function(t){return arguments.length?(this.dispatch({type:"beforeinput",data:t}),this._el[this._textProp]=t,this.dispatch({type:"input",data:t}),this):this._el[this._textProp].replace(/\r/g,"")},element:function(){return this._el},dispatch:function(t){return this}},bililiteRange.fn=e.prototype,bililiteRange.extend=function(t){for(fn in t)e.prototype[fn]=t[fn]},bililiteRange.bounds={all:function(){return[0,this.length()]},start:function(){return[0,0]},end:function(){return[this.length(),this.length()]},selection:function(){return this._el===this._doc.activeElement?(this.bounds("all"),this._nativeSelection()):this._el.bililiteRangeSelection}},bililiteRange.sendkeys={"{enter}":function(t){simplechar(t,"\n"),t.insertEOL()},"{tab}":function(t,e,n){n(t,"	")},"{newline}":function(t,e,n){n(t,"\n")},"{backspace}":function(t){var e=t.bounds();e[0]==e[1]&&t.bounds([e[0]-1,e[0]]),t.text("","end")},"{del}":function(t){var e=t.bounds();e[0]==e[1]&&t.bounds([e[0],e[0]+1]),t.text("","end")},"{rightarrow}":function(t){var e=t.bounds();e[0]==e[1]&&++e[1],t.bounds([e[1],e[1]])},"{leftarrow}":function(t){var e=t.bounds();e[0]==e[1]&&--e[0],t.bounds([e[0],e[0]])},"{selectall}":function(t){t.bounds("all")},"{selection}":function(t){for(var e=t.data().sendkeysOriginalText,n=0;n<e.length;++n){var r=e.charCodeAt(n);t.dispatch({type:"keypress",keyCode:r,which:r,charCode:r})}t.text(e,"end")},"{mark}":function(t){t.data().sendkeysBounds=t.bounds()}},bililiteRange.sendkeys["{Enter}"]=bililiteRange.sendkeys["{enter}"],bililiteRange.sendkeys["{Backspace}"]=bililiteRange.sendkeys["{backspace}"],bililiteRange.sendkeys["{Delete}"]=bililiteRange.sendkeys["{del}"],bililiteRange.sendkeys["{ArrowRight}"]=bililiteRange.sendkeys["{rightarrow}"],bililiteRange.sendkeys["{ArrowLeft}"]=bililiteRange.sendkeys["{leftarrow}"],n.prototype=new e,n.prototype._nativeRange=function(t){var e;return"INPUT"==this._el.tagName?e=this._el.createTextRange():(e=this._doc.body.createTextRange(),e.moveToElementText(this._el)),t&&(t[1]<0&&(t[1]=0),t[0]>this.length()&&(t[0]=this.length()),t[1]<e.text.replace(/\r/g,"").length&&(e.moveEnd("character",-1),e.moveEnd("character",t[1]-e.text.replace(/\r/g,"").length)),t[0]>0&&e.moveStart("character",t[0])),e},n.prototype._nativeSelect=function(t){t.select()},n.prototype._nativeSelection=function(){var t=this._nativeRange(),e=this.length(),n=this._doc.selection.createRange();try{return[r(n,t),i(n,t)]}catch(o){return n.parentElement().sourceIndex<this._el.sourceIndex?[0,0]:[e,e]}},n.prototype._nativeGetText=function(t){return t.text},n.prototype._nativeSetText=function(t,e){e.text=t},n.prototype._nativeEOL=function(){"value"in this._el?this.text("\n"):this._nativeRange(this.bounds()).pasteHTML("\n<br/>")},n.prototype._nativeTop=function(t){var e=this._nativeRange([0,0]);return t.boundingTop-e.boundingTop},n.prototype._nativeWrap=function(t,e){var n=document.createElement("div");n.appendChild(t);var r=n.innerHTML.replace("><",">"+e.htmlText+"<");e.pasteHTML(r)},o.prototype=new e,o.prototype._nativeRange=function(t){return t||[0,this.length()]},o.prototype._nativeSelect=function(t){this._el.setSelectionRange(t[0],t[1])},o.prototype._nativeSelection=function(){return[this._el.selectionStart,this._el.selectionEnd]},o.prototype._nativeGetText=function(t){return this._el.value.substring(t[0],t[1])},o.prototype._nativeSetText=function(t,e){var n=this._el.value;this._el.value=n.substring(0,e[0])+t+n.substring(e[1])},o.prototype._nativeEOL=function(){this.text("\n")},o.prototype._nativeTop=function(t){var e=this._el.cloneNode(!0);e.style.visibility="hidden",e.style.position="absolute",this._el.parentNode.insertBefore(e,this._el),e.style.height="1px",e.value=this._el.value.slice(0,t[0]);var n=e.scrollHeight;return e.value="X",n-=e.scrollHeight,e.parentNode.removeChild(e),n},o.prototype._nativeWrap=function(){throw new Error("Cannot wrap in a text element")},s.prototype=new e,s.prototype._nativeRange=function(t){var e=this._doc.createRange();return e.selectNodeContents(this._el),t&&(u(e,t[0],!0,this._el),e.collapse(!0),u(e,t[1]-t[0],!1,this._el)),e},s.prototype._nativeSelect=function(t){this._win.getSelection().removeAllRanges(),this._win.getSelection().addRange(t)},s.prototype._nativeSelection=function(){var t=this._nativeRange();if(0==this._win.getSelection().rangeCount)return[this.length(),this.length()];var e=this._win.getSelection().getRangeAt(0);return[c(e,t),l(e,t)]},s.prototype._nativeGetText=function(t){return String.prototype.slice.apply(this._el.textContent,this.bounds())},s.prototype._nativeSetText=function(t,e){e.deleteContents(),e.insertNode(this._doc.createTextNode(t)),p&&this._el.normalize()},s.prototype._nativeEOL=function(){var t=this._nativeRange(this.bounds());t.deleteContents();var e=this._doc.createElement("br");e.setAttribute("_moz_dirty",""),t.insertNode(e),t.insertNode(this._doc.createTextNode("\n")),t.collapse(!1)},s.prototype._nativeTop=function(t){if(0==this.length)return 0;if(""==t.toString()){var e=this._doc.createTextNode("X");t.insertNode(e)}var n=this._nativeRange([0,1]),r=t.getBoundingClientRect().top-n.getBoundingClientRect().top;return e&&e.parentNode.removeChild(e),r},s.prototype._nativeWrap=function(t,e){e.surroundContents(t)};var d=0,g=1,m=2,v=3;h.prototype=new e,h.prototype._nativeRange=function(t){return t||[0,this.length()]},h.prototype._nativeSelect=function(t){},h.prototype._nativeSelection=function(){return[0,0]},h.prototype._nativeGetText=function(t){return this._el[this._textProp].substring(t[0],t[1])},h.prototype._nativeSetText=function(t,e){var n=this._el[this._textProp];this._el[this._textProp]=n.substring(0,e[0])+t+n.substring(e[1])},h.prototype._nativeEOL=function(){this.text("\n")},h.prototype._nativeTop=function(){return 0},h.prototype._nativeWrap=function(){throw new Error("Wrapping not implemented")};var y=[];bililiteRange.fn.data=function(){var t=this.element().bililiteRangeData;return void 0==t&&(t=this.element().bililiteRangeData=y.length,y[t]=new b(this)),y[t]};try{Object.defineProperty({},"foo",{});var b=function(t){Object.defineProperty(this,"values",{value:{}}),Object.defineProperty(this,"sourceRange",{value:t}),Object.defineProperty(this,"toJSON",{value:function(){var t={};for(var e in b.prototype)e in this.values&&(t[e]=this.values[e]);return t}}),Object.defineProperty(this,"all",{get:function(){var t={};for(var e in b.prototype)t[e]=this[e];return t}})};b.prototype={},Object.defineProperty(b.prototype,"values",{value:{}}),Object.defineProperty(b.prototype,"monitored",{value:{}}),bililiteRange.data=function(t,e){e=e||{};var n=Object.getOwnPropertyDescriptor(b.prototype,t)||{};"enumerable"in e&&(n.enumerable=!!e.enumerable),"enumerable"in n||(n.enumerable=!0),"value"in e&&(b.prototype.values[t]=e.value),"monitored"in e&&(b.prototype.monitored[t]=e.monitored),n.configurable=!0,n.get=function(){return t in this.values?this.values[t]:b.prototype.values[t]},n.set=function(e){this.values[t]=e,b.prototype.monitored[t]&&this.sourceRange.dispatch({type:"bililiteRangeData",bubbles:!0,detail:{name:t,value:e}})},Object.defineProperty(b.prototype,t,n)}}catch(w){b=function(t){this.sourceRange=t},b.prototype={},bililiteRange.data=function(t,e){"value"in e&&(b.prototype[t]=e.value)}}}(),Array.prototype.forEach||(Array.prototype.forEach=function(t){"use strict";if(void 0===this||null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var r=arguments.length>=2?arguments[1]:void 0,i=0;n>i;i++)i in e&&t.call(r,e[i],i,e)}),function(){window.$Cypress=function(t,e,n,r){var i;return i=function(){function t(){this.cy=null,this.chai=null,this.mocha=null,this.runner=null}return t.prototype.start=function(){return window.Cypress=this},t.prototype.setConfig=function(n){var r;return null==n&&(n={}),r=n.environmentVariables,n=e.omit(n,"environmentVariables"),t.EnvironmentVariables.create(this,r),t.Config.create(this,n),this.trigger("config",n)},t.prototype.initialize=function(t,e){return this.mocha.options(this.runner),this.trigger("initialize",{specWindow:t,$remoteIframe:e}),this.trigger("initialized",{cy:this.cy,runner:this.runner,mocha:this.mocha,chai:this.chai}),this},t.prototype.run=function(t){if(!this.runner)throw new Error("Cannot call Cypress#run without a runner instance!");return this.runner.run(t)},t.prototype.after=function(t){return this._on&&(this.on=this._on),this},t.prototype.set=function(e,n){return t.Cy.set(this,e,n)},t.prototype.window=function(e){var n,r,i,o,s;return r=t.Cy.create(this,e),n=t.Chai.create(this,e),o=t.Mocha.create(this,e),s=t.Runner.create(this,e,o),i=t.Log.create(this,r),this.prepareForSpecEvents(),this.prepareForCustomCommands()},t.prototype.onBeforeLoad=function(e){return this.cy?(t.isHeadless&&this.cy.silenceConsole(e),this.cy.bindWindowListeners(e),this.trigger("before:window:load",e)):void 0},t.prototype.prepareForSpecEvents=function(){var t;return null==this._specEvents&&(this._specEvents=e.extend({},n.Events)),this._specEvents.stopListening(),this._on=this.on,t=this,this.on=e.wrap(this.on,function(e,n,r,i){return i?e.call(this,n,r,i):t._specEvents.listenTo(t,n,r),this})},t.prototype.stop=function(){return delete window.Cypress,this.abort().then(function(t){return function(){return t.trigger("stop"),t.removeCustomCommands(),t.off()}}(this))},t.prototype.abort=function(){var t;return t=[].concat(this.invoke("abort")),t=e.reject(t,function(t){return t===this.cy}),r.all(t).then(function(t){return function(){return t.restore()}}(this))},t.prototype.restore=function(){var t;return t=[].concat(this.invoke("restore")),t=e.reject(t,function(t){return t===this.cy}),r.all(t)["return"](null)},e.extend(t.prototype,n.Events),t.create=function(n){var r,i,o,s,a;for(null==n&&(n={}),e.defaults(n,{loadModules:!1}),r=new t,a="Cy Log Utils Chai Mocha Runner Agents Server Chainer Location LocalStorage Cookies Keyboard Mouse Command Commands EnvironmentVariables".split(" "),i=0,s=a.length;s>i;i++)o=a[i],r[o]=t[o];return r.modules=t.modules,n.loadModules&&r.loadModules(),r},t.extend=function(t){return e.extend(this.prototype,t)},t.register=function(t,e){return null==this.modules&&(this.modules={}),this.modules[t]=e,this},t.remove=function(t){return null==this.modules&&(this.modules={}),delete this.modules[t],this},t.reset=function(){return this.modules={}},t}()}($,_,Backbone,Promise)}.call(this),function(){$Cypress.Agents=function(t,e){var n;return n=function(){function t(t,e){this.sandbox=t,this.options=e,this.count=0}return t.prototype._getMessage=function(t,n){var r;return null==t&&(t="function"),r=function(){var t;return t=e.map(n,function(t,e){return"arg"+(e+1)}),t.join(", ")},t+"("+r()+")"},t.prototype._wrap=function(t,n,r,i,o){var s;return s=this,n._cy=s.count,n.invoke=e.wrap(n.invoke,function(e,a,u,c){var l,h,f,p,d;h=null,d=null;try{d=e.call(this,a,u,c)}catch(f){l=f,h=l}return p={count:n._cy,name:t,message:s._getMessage(i,c),obj:r,agent:n,call:n.lastCall,callCount:n.callCount,error:h,log:o},s.options.onInvoke(p),h&&s.options.onError(h),d})},t.prototype.spy=function(t,e){var n,r;return r=this.sandbox.spy(t,e),n=this.options.onCreate({type:"spy",functionName:e,count:this.count+=1}),this._wrap("spy",r,t,e,n),r},t.prototype.stub=function(t,e){var n,r;return r=this.sandbox.stub(t,e),n=this.options.onCreate({type:"stub",functionName:e,count:this.count+=1}),this._wrap("stub",r,t,e,n),r},t.prototype.mock=function(){throw new Error("Not yet implemented!")},t.prototype.useFakeTimers=function(){},t.create=function(e,n){return new t(e,n)},t}()}($Cypress,_)}.call(this),function(){var t=[].slice;!function(e,n,r,i){var o,s,a;return o=/('.*?')$/g,a=/('.*?')(.+)/g,s=/(#{.+?})/g,i.use(function(i,u){var c,l,h,f,p,d,g,m,v;return d=i.expect,l=i.assert,h=i.Assertion.prototype.assert,v=i.Assertion.prototype.match,m=i.Assertion.prototype.__methods.length.method,f=i.Assertion.prototype.__methods.contain.method,p=Object.getOwnPropertyDescriptor(i.Assertion.prototype,"exist").get,g=u.getMessage,c=function(){function c(t,e){this.Cypress=t,this.override(),this.listeners(),c.setGlobals(e),this.addCustomProperties()}return c.prototype.addCustomProperties=function(){var t,o,s,a;return t=this,a=function(t){var e;return e=Number(t),n.isNaN(e)?t:e},u.getMessage=n.wrap(g,function(t,n,r){var i,o;return o=n._obj,(e.Utils.hasElement(o)||e.Utils.hasWindow(o)||e.Utils.hasDocument(o))&&(n._obj=e.Utils.stringifyElement(o,"short")),i=t.call(this,n,r),o!==n._obj&&(n._obj=o),i}),i.Assertion.overwriteMethod("match",function(t){return function(r){var i;if(n.isRegExp(r)||e.Utils.hasElement(this._obj))return t.apply(this,arguments);throw i=cy.cypressErr("'match' requires its argument be a 'RegExp'. You passed: '"+r+"'"),i.retry=!1,i}}),i.Assertion.overwriteChainableMethod("contain",o=function(n){return function(i){var o,s,a,u;return o=t.Cypress.cy,a=this._obj,o&&(e.Utils.isInstanceOf(a,r)||e.Utils.hasElement(a))?(s=e.Utils.escapeQuotes(i),u=":contains('"+s+"'), [type='submit'][value~='"+s+"']",this.assert(a.is(u)||!!a.find(u).length,"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",i)):n.apply(this,arguments)}},s=function(t){return function(){return t.apply(this,arguments)}}),i.Assertion.overwriteChainableMethod("length",o=function(i){return function(o){var s,c,l,h,f,p,d;if(s=t.Cypress.cy,d=this._obj,!s||!e.Utils.isInstanceOf(d,r)&&!e.Utils.hasElement(d))return i.apply(this,arguments);o=a(o),s._contains(d)||(d=this._obj=d.filter(function(t,e){return s._contains(e)})),p=d&&d.length?e.Utils.stringifyElement(d,"short"):d.selector;try{return this.assert(d.length===o,"expected '"+p+"' to have a length of #{exp} but got #{act}","expected '"+p+"' to not have a length of #{act}",o,d.length)}catch(h){if(c=h,c.node=p,c.negated=u.flag(this,"negate"),c.type="length",n.isFinite(o))throw f=function(t,e){return t>e?"Too many elements found. Found '"+t+"', expected '"+e+"'.":"Not enough elements found. Found '"+t+"', expected '"+e+"'."},c.longMessage=f(d.length,o),c;throw l=s.cypressErr("You must provide a valid number to a length assertion. You passed: '"+o+"'"),l.retry=!1,l}}},s=function(t){return function(){return t.apply(this,arguments)}}),i.Assertion.overwriteProperty("exist",function(n){return function(){var i,o,s,a,c,l,h;if(i=t.Cypress.cy,h=this._obj,!i||!e.Utils.isInstanceOf(h,r)&&!e.Utils.hasElement(h))return n.apply(this,arguments);h.length||(this._obj=null),l=h&&h.length?e.Utils.stringifyElement(h,"short"):h.selector;try{return this.assert(c=i._contains(h),"expected #{act} to exist in the DOM","expected #{act} not to exist in the DOM",l,l)}catch(s){throw o=s,o.node=l,o.negated=u.flag(this,"negate"),o.type="existence",a=function(t){return c?"Expected "+l+" not to exist in the DOM, but it was continuously found.":"Expected to find element: '"+t.selector+"', but never found it."},o.longMessage=a(h),o}}})},c.prototype.listeners=function(){return this.listenTo(this.Cypress,"stop",function(t){return function(){return t.stop()}}(this)),this},c.prototype.stop=function(){return this.stopListening(),this.restore(),this.Cypress.chai=null,this},c.prototype.restore=function(){return i.expect=d,i.assert=l,this.restoreAsserts(),this},c.prototype.override=function(){var t;return t={expect:d,assert:l},n.each(t,this.patchMethod),this.patchAssert(),this},c.prototype.restoreAsserts=function(){return u.getMessage=g,i.Assertion.prototype.assert=h,i.Assertion.prototype.match=v,i.Assertion.prototype.__methods.length.method=m,i.Assertion.prototype.__methods.contain.method=f,Object.defineProperty(i.Assertion.prototype,"exist",{get:p})},c.prototype.patchAssert=function(){var e;return e=this,i.Assertion.prototype.assert=n.wrap(h,function(){var n,r,i,o,s,a,c,l,h,f,p;h=arguments[0],r=2<=arguments.length?t.call(arguments,1):[],f=u.test(this,r),p=u.flag(this,"object"),c=r[3],i=e.replaceArgMessages(r,this._obj),l=u.getMessage(this,i),n=u.getActual(this,i),l=l.replace(/\[b\].*\[\\b\]/,function(t){return t.replace(/'/g,"")});try{h.apply(this,r)}catch(a){o=a,s=o}if(e.Cypress.trigger("assert",f,l,p,n,c,s),s)throw s}),this},c.prototype.replaceArgMessages=function(t,e){return n.reduce(t,function(t){return function(t,e,r){return n.isString(e)?(e=e.replace(s,"[b]$1[\\b]").replace(a,"[b]$1[\\b]$2").replace(o,"[b]$1[\\b]"),t.push(e)):t.push(e),t}}(this),[])},c.prototype.patchMethod=function(r,o){return i[o]=n.wrap(r,function(){var r,i;return i=arguments[0],r=2<=arguments.length?t.call(arguments,1):[],r=n.map(r,function(t){var n;return(n=e.Utils.getCypressNamespace(t))?n:t}),i.apply(this,r)}),this},n.extend(c.prototype,Backbone.Events),c.expect=function(){return i.expect.apply(i,arguments)},c.setGlobals=function(t){return t.chai=i,t.expect=i.expect,t.expectOriginal=d,t.assert=i.assert,t.assertOriginal=l},c.create=function(t,e){var n;return(n=t.chai)&&n.stopListening(),t.chai=new c(t,e)},c}(),e.Chai=c})}($Cypress,_,$,chai)}.call(this),function(){var t=[].slice;$Cypress.Chainer=function(e,n){var r;return r=function(){function e(t){this.cy=t,this.id=n.uniqueId("chainer")}return e.extend=function(t){return n.extend(this.prototype,t)},e.remove=function(t){return delete e.prototype[t]},e.inject=function(n,r){return e.prototype[n]=function(){var e;return e=1<=arguments.length?t.call(arguments,0):[],r.call(this.cy,this.id,e),this}},e.create=function(t,n,r){var i;return i=new e(t),i[n].apply(i,r)},e}()}($Cypress,_)}.call(this),function(){var t=[].slice;!function(e,n){var r,i;return r=function(){function t(t){null==t&&(t={}),this.reset(),this.set(t)}return t.prototype.set=function(t,e){var r;return n.isString(t)?(r={},r[t]=e):r=t,n.extend(this.attributes,r),this},t.prototype.finishLogs=function(){return n.invoke(this.get("logs"),"finish")},t.prototype.log=function(t){return t.set("chainerId",this.get("chainerId")),this.get("logs").push(t),this},t.prototype.getLastLog=function(){var t,e,n;if(n=this.get("logs"),!n.length)return void 0;for(t=n.length-1;t>=0;t+=-1)if(e=n[t],e.get("event")===!1)return e},t.prototype.hasPreviouslyLinkedCommand=function(){var t;return t=this.get("prev"),!(!t||t.get("chainerId")!==this.get("chainerId"))},t.prototype.is=function(t){return this.get("type")===t},t.prototype.get=function(t){return this.attributes[t]},t.prototype.toJSON=function(){return this.attributes},t.prototype._removeNonPrimitives=function(t){var e,r,i,o;for(r=i=t.length-1;i>=0;r=i+=-1)if(e=t[r],n.isObject(e))return o=n(e).omit(n.isObject),o.log=!0,void(t[r]=o)},t.prototype.skip=function(){return this.set("skip",!0)},t.prototype.clone=function(){return this._removeNonPrimitives(this.get("args")),t.create(n.clone(this.attributes))},t.prototype.reset=function(){return this.attributes={},this.attributes.logs=[],this},t.create=function(e){return new t(e)},t}(),i=function(){function t(t){null==t&&(t=[]),this.commands=t}return t.prototype.logs=function(t){var e,r;return e=n.flatten(this.invoke("get","logs")),t&&(r=n.matches(t),e=n(e).filter(function(t){return r(t.attributes)})),e},t.prototype.add=function(t){return e.Utils.isInstanceOf(t,r)?t:r.create(t)},t.prototype.get=function(){return this.commands},t.prototype.names=function(){return this.invoke("get","name")},t.prototype.splice=function(t,e,n){var r;return r=this.add(n),this.commands.splice(t,e,r),r},t.prototype.slice=function(){var e;return e=this.commands.slice.apply(this.commands,arguments),t.create(e)},t.prototype.at=function(t){return this.commands[t]},t.prototype._filterByAttrs=function(t,e){var r;return r=n.matches(t),this[e](function(t){return r(t.attributes)})},t.prototype.where=function(t){return this._filterByAttrs(t,"filter")},t.prototype.findWhere=function(t){return this._filterByAttrs(t,"find")},t.prototype.toJSON=function(){return this.invoke("toJSON")},t.prototype.reset=function(){return this.commands.splice(0,this.commands.length),this},t.create=function(e){return new t(e)},t}(),Object.defineProperty(i.prototype,"length",{get:function(){return this.commands.length}}),n.each(["pick"],function(e){return r.prototype[e]=function(){var r;return r=1<=arguments.length?t.call(arguments,0):[],r.unshift(this.attributes),n[e].apply(n,r)}}),n.each(["invoke","map","pluck","first","find","filter","last","indexOf","each"],function(e){return i.prototype[e]=function(){var r;return r=1<=arguments.length?t.call(arguments,0):[],r.unshift(this.commands),n[e].apply(n,r)}}),e.Command=r,e.Commands=i,e.extend({addChildCommand:function(t,e){return this.add(t,e,"child")},addParentCommand:function(t,e){return this.add(t,e,"parent")},addDualCommand:function(t,e){return this.add(t,e,"dual")},addAssertionCommand:function(t,e){return this.add(t,e,"assertion")},addUtilityCommand:function(t,e){return this.add(t,e,"utility")},prepareForCustomCommands:function(){var t;return this.removeCustomCommands(),this._inject=this.inject,t=this,this._customCommands=[],this.inject=n.wrap(this.inject,function(e,n,r,i){return t._customCommands.push(n),e.call(this,n,r,i)})},removeCustomCommands:function(){var t;return this._inject&&(this.inject=this._inject),n.each(null!=(t=this._customCommands)?t:[],function(t){return delete e.Cy.prototype[t],delete e.Cy.prototype.sync[t],e.Chainer.remove(t)})},add:function(t,e,r){if(!r)throw new Error("Cypress.add(key, fn, type) must include a type!");return n.isObject(t)?(n.each(t,function(t){return function(e,n){return t.add(n,e,r)}}(this)),this):(this.inject(t,e,r),this)},inject:function(r,i,o){var s,a,u,c;return s=this,a=function(t,e){return e.hasSubject?e.splice(0,1,t):e.unshift(t),e.hasSubject||(e.hasSubject=!0),e},u=function(t){var e;return e=c(t),e.originalFn=t,e},c=function(e){switch(o){case"parent":return e;case"dual":case"utility":return n.wrap(e,function(){var e,n,r;return n=arguments[0],e=2<=arguments.length?t.call(arguments,1):[],r=this.prop("subject"),e=a(r,e),n.apply(this,e)});case"child":case"assertion":return n.wrap(e,function(){var e,n,r,i;return n=arguments[0],e=2<=arguments.length?t.call(arguments,1):[],this.ensureParent(),i=this.prop("subject"),e=a(i,e),r=n.apply(this,e),null!=r?r:i})}},e.Cy.prototype[r]=function(){var n,i;return n=1<=arguments.length?t.call(arguments,0):[],this["private"]("runnable")||this.throwErr("\nCypress cannot execute commands outside a running test.\nThis usually happens when you accidentally write commands outside an it(...) test.\nIf that is the case, just move these commands inside an 'it(...)' test.\nCheck your test file for errors.\n\nhttp://on.cypress.io/cannot-execute-commands-outside-test"),i=e.Chainer.create(this,r,n),this.prop("chain",i),i},e.Cy.prototype.sync[r]=function(){var e;return e=1<=arguments.length?t.call(arguments,0):[],u(i).apply(s.cy,e)},e.Chainer.inject(r,function(t,e){return this.enqueue(r,u.call(this,i),e,o,t)})}})}($Cypress,_)}.call(this),function(){$Cypress.Config=function(t,e){return{create:function(t,n){var r,i;return r=function(t){return t?n[t]:n},i=function(t,r){var i;return e.isObject(t)?i=t:(i={},i[t]=r),e.extend(n,i)},t.config=function(t,n){switch(arguments.length){case 0:return r();case 1:return e.isString(t)?r(t):i(t);default:return i(t,n)}}}}}($Cypress,_)}.call(this),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},e=[].slice;$Cypress.Cookies=function(n,r){var i,o,s,a,u,c,l;return l=/^http/,o=!1,u="__cypress",c={},i={whitelist:null},s=function(t){return r(t).startsWith(u)},a=function(e){var n;if(n=i.whitelist)switch(!1){case!r.isString(n):return e===n;case!r.isArray(n):return t.call(n,e)>=0;case!r.isFunction(n):return n(e);case!r.isRegExp(n):return n.test(e);default:return!1}},{debug:function(t){return null==t&&(t=!0),o=t},set:function(t,e){return"true"!==this.getCy("unload")?(o&&!s(t)&&console.info("Cypress.Cookies.set","name:"+t,"value:"+e),Cookies.set(t,e,{path:"/"})):void 0},get:function(t){return Cookies.get(t)},remove:function(t,e){var n,i;return null==e&&(e={}),r.defaults(e,{path:"/",force:!0}),n=function(t){return o&&!s(t)&&console.info("Cypress.Cookies.remove","name:"+t),Cookies.remove(t,e)},i=function(t){return c[t]?delete c[t]:void 0},e.force?(i(t),n(t)):a(t)||i(t)?void 0:n(t)},removeCy:function(t){return this.remove(u+"."+t)},setCy:function(t,e){return this.set(u+"."+t,e)},getCy:function(t){return this.get(u+"."+t)},preserveOnce:function(){var t;return t=1<=arguments.length?e.call(arguments,0):[],r.each(t,function(t){return c[t]=!0})},setInitial:function(){return this.setCy("initial",!0)},setInitialRequest:function(t){return this.setCy("remoteHost",t),this.setInitial(),this},getRemoteHost:function(){return this.getCy("remoteHost")},getAllCookies:function(){return r.reduce(Cookies.get(),function(t,e,n){return s(n)||(t[n]=e),t},{})},clearCookies:function(t){return t&&s(t)?void 0:t?this.remove(t,{force:!1}):r.each(Cookies.get(),function(t){return function(e,n){return s(n)?void 0:t.remove(n,{force:!1})}}(this))},defaults:function(t){return null==t&&(t={}),r.extend(i,t)}}}($Cypress,_)}.call(this),function(){var t=[].slice;$Cypress.Cy=function(e,n,r,i){var o;return o=function(){function o(t,n){this.Cypress=t,this.defaults(),this.listeners(),this.commands=e.Commands.create(),this.privates={},n.cy=this}return o.prototype.sync={},o.prototype.initialize=function(t){var e;return this.defaults(),e=t.$remoteIframe,this["private"]("$remoteIframe",e),this._setRemoteIframeProps(e),e.on("load",function(t){return function(){return t._setRemoteIframeProps(e),t.urlChanged(null,{log:!1}),t.pageLoading(!1),t.bindWindowListeners(t["private"]("window")),t.isReady(!0,"load")}}(this)),this.isReady(!0,"initialize")},o.prototype.defaults=function(){return this.props={},this},o.prototype.silenceConsole=function(t){var e;return(e=t.console)?(e.log=function(){},e.warn=function(){},e.info=function(){}):void 0},o.prototype.listeners=function(){return this.listenTo(this.Cypress,"initialize",function(t){return function(e){return t.initialize(e)}}(this)),this.listenTo(this.Cypress,"stop",function(t){return function(){return t.stop()}}(this)),this.listenTo(this.Cypress,"restore",function(t){return function(){return t.restore()}}(this)),this.listenTo(this.Cypress,"abort",function(t){return function(){return t.abort()}}(this)),this.listenTo(this.Cypress,"test:after:hooks",function(t){return function(e){return t.checkTestErr(e)}}(this))},o.prototype.abort=function(){var t,e,n,r;return this.offWindowListeners(),this.offIframeListeners(this["private"]("$remoteIframe")),
this.isReady(!1,"abort"),null!=(r=this["private"]("runnable"))&&r.clearTimeout(),t=this.prop("promise"),null!=t&&t.cancel(),e=this.prop("ready"),e&&(n=e.promise)&&n.isCancellable()&&n.cancel(),i.resolve(t)},o.prototype.stop=function(){return delete window.cy,this.stopListening(),this.offWindowListeners(),this.offIframeListeners(this["private"]("$remoteIframe")),this.privates={},this.Cypress.cy=null},o.prototype.restore=function(){var t;return t=this.prop("index"),t>0&&t<this.commands.length&&this.endedEarlyErr(),this.clearTimeout(this.prop("runId")),this.clearTimeout(this.prop("timerId")),this.commands.reset(),this.off(),this.defaults(),this},o.prototype.options=function(t){null==t&&(t={})},o.prototype.nullSubject=function(){return this.prop("subject",null),this},o.prototype._eventHasReturnValue=function(t){var e;return e=t.originalEvent.returnValue,""===e||n.isUndefined(e)?!1:!0},o.prototype.isReady=function(t,e){var n;return null==t&&(t=!0),t?(this.prop("recentlyReady",!0),(n=this.prop("ready"))&&n.promise.isPending()&&n.promise.then(function(t){return function(){return t.trigger("ready",!0),null}}(this)),null!=n?n.resolve():void 0):this.prop("ready")&&this.prop("ready").promise.isPending()?void 0:(this.trigger("ready",!1),this.prop("ready",i.pending()))},o.prototype.run=function(){var t,e,n,r,o,s,a;return e=null!=(o=this.prop("index"))?o:this.prop("index",0),t=this.commands.at(e),t&&t.get("skip")?(t.set({prev:this.commands.at(e-1),next:this.commands.at(e+1)}),this.prop("index",e+1),this.prop("subject",t.get("subject")),this.run()):(a=this["private"]("runnable"),t?(r=this._timeout(),this._timeout(3e4),s=function(n){return function(){var o;if(n["private"]("runnable")===a)return n._timeout(r),n.trigger("command:start",t),o=n.set(t,n.commands.at(e-1),n.commands.at(e+1)).then(function(){var i;return a.state||n._timeout(r),n.prop("index",e+=1),n.trigger("command:end",t),(i=n.prop("onPaused"))?i.call(n,n.run):n.defer(n.run),null})["catch"](i.CancellationError,function(t){return n.cancel(t),t})["catch"](function(t){return n.fail(t),n.prop("nestedIndex",null),n.prop("recentlyReady",null),t}),n.prop("promise",o),n.trigger("set",t)}}(this),this.defer(s)):(this.trigger("end"),(n=this.prop("next"))&&(n(),this.prop("next",null)),this))},o.prototype.clearTimeout=function(t){return t&&clearImmediate(t),this},o.prototype.set=function(t,e,n){return t.set({prev:e,next:n}),this.prop("current",t),this.invoke2(t)},o.prototype.invoke2=function(){var r,o,s;return o=arguments[0],r=2<=arguments.length?t.call(arguments,1):[],s=this.prop("ready")?i.resolve(this.prop("ready").promise):i.resolve(),s.cancellable().then(function(t){return function(){return t.trigger("invoke:start",o),t.prop("nestedIndex",t.prop("index")),r.length?r:o.get("args")}}(this)).all(r).then(function(t){return function(e){var r;return n.isFunction(e[0])&&e[0]._invokeImmediately&&(e[0]=e[0].call(t)),t._checkForNewChain(o.get("chainerId")),r=o.get("fn").apply(o.get("ctx"),e),t.trigger("command:returned:value",o,r),r===t||r===t.chain()?null:r}}(this)).then(function(t){return function(n){var r;return o.set({subject:n}),o.finishLogs(),t.trigger("invoke:subject",n,o),t.prop("nestedIndex",null),t.prop("recentlyReady",null),t.prop("subject",n),t.prop("pageChangeEvent")&&(t.prop("pageChangeEvent",!1),e.Utils.hasElement(n)&&!t._contains(n)&&t.nullSubject()),t.trigger("invoke:end",o),(r=t.prop("ready"))&&r.promise.isPending()?r.promise["return"](t.prop("subject"))["catch"](function(t){}):t.prop("subject")}}(this))},o.prototype.cancel=function(t){return this.trigger("cancel",this.prop("current"))},o.prototype.enqueue=function(t,e,n,r,i){var o;return this.clearTimeout(this.prop("runId")),o={name:t,ctx:this,fn:e,args:n,type:r,chainerId:i},this.trigger("enqueue",o),this.Cypress.trigger("enqueue",o),this.insertCommand(o)},o.prototype.insertCommand=function(t){var e,r;return r=this.prop("nestedIndex"),n.isNumber(r)&&(this.commands.at(r).set("next",t),this.prop("nestedIndex",r+=1)),e=n.isNumber(r)?r:this.commands.length,this.commands.splice(e,0,t),r||this.prop("runId",this.defer(this.run)),this},o.prototype._contains=function(t){var e,r;return r=this["private"]("document"),e=function(t){return $.contains(r,t)},n.isElement(t)?e(t):0===t.length?!1:n.all(t.toArray(),e)},o.prototype._checkForNewChain=function(t){var e;if(!n.isUndefined(t))return(e=this.prop("chainerId"))?e!==t?(this.prop("chainerId",t),this.nullSubject()):void 0:this.prop("chainerId",t)},o.prototype.execute=function(){var e,n;return n=arguments[0],e=2<=arguments.length?t.call(arguments,1):[],i.resolve(this.sync[n].apply(this,e)).cancellable()},o.prototype.defer=function(t){return this.clearTimeout(this.prop("timerId")),this.prop("timerId",setImmediate(n.bind(t,this)))},o.prototype.hook=function(t){return this["private"]("hookName",t)},o.prototype.chain=function(){return this.prop("chain")},o.prototype._setRemoteIframeProps=function(t){return this["private"]("$remoteIframe",t),this["private"]("window",t.prop("contentWindow")),this["private"]("document",t.prop("contentDocument")),this},o.prototype._setRunnable=function(t,e){var r;return t.startedAt=new Date,n.isFinite(r=this.Cypress.config("commandTimeout"))&&t.timeout(r),this.hook(e),this["private"]("runnable",t),this},o.prototype.$=function(t,e){return null==e&&(e=this["private"]("document")),new $.fn.init(t,e)},o.prototype._=n,o.prototype.Promise=i,o.prototype.moment=window.moment,o.prototype.Blob=window.blobUtil,n.extend(o.prototype.$,n($).pick("Event","Deferred","ajax","get","getJSON","getScript","post","when")),n.extend(o.prototype,r.Events),o.extend=function(t){return n.extend(this.prototype,t)},o.set=function(t,e,n){var r;if(r=t.cy)return r._setRunnable(e,n)},o.create=function(t,e){var n;return(n=t.cy)&&n.stopListening(),t.cy=window.cy=new o(t,e)},o}()}($Cypress,_,Backbone,Promise)}.call(this),function(){$Cypress.EnvironmentVariables=function(t,e){var n;return t.extend({env:function(t,e){var n;if(n=this.environmentVariables,!n)throw new Error("Cypress.environmentVariables is not defined. Open an issue if you see this message.");return n.getOrSet.apply(n,arguments)}}),n=function(){function t(t){null==t&&(t={}),this.env={},this.set(t)}return t.prototype.getOrSet=function(t,n){switch(!1){case 0!==arguments.length:return this.get();case 1!==arguments.length:return e.isString(t)?this.get(t):this.set(t);default:return this.set(t,n)}},t.prototype.get=function(t){return t?this.env[t]:this.env},t.prototype.set=function(t,n){var r;return e.isObject(t)?r=t:(r={},r[t]=n),e.extend(this.env,r)},t.create=function(e,n){return e.environmentVariables=new t(n)},t}()}($Cypress,_)}.call(this),function(){var t=[].slice;!function(e,n){var r;return r=function(t){return this._events.splice(t,1)},e.extend({event:function(t){return this._events?n.pluck(this._events[t],"callback"):void 0},invoke:function(){var e,r,i;return i=arguments[0],e=2<=arguments.length?t.call(arguments,1):[],(r=this.event(i))?n.map(r,function(t){return function(n){return n.apply(t.cy,e)}}(this)):void 0},trigger:function(t){var e,n,r,i;if(n=this._events&&this._events[t]){for(r=0,i=n.length;i>r;r++)e=n[r],e.ctx=this.cy;return Backbone.Events.trigger.apply(this,arguments)}}})}($Cypress,_)}.call(this),function(){$Cypress.Keyboard=function(t,e,n,r){var i;return i=/({.+?})/,{charCodeMap:{33:49,64:50,35:51,36:52,37:53,94:54,38:55,42:56,40:57,41:48,59:186,58:186,61:187,43:187,44:188,60:188,45:189,95:189,46:190,62:190,47:191,63:191,96:192,126:192,91:219,123:219,92:220,124:220,93:221,125:221,39:222,34:222},specialChars:{"{selectall}":function(t,e){return e.rng.bounds("all").select()},"{del}":function(t,e){var n,r;return r=e.rng,n=r.bounds(),this.boundsAreEqual(n)&&r.bounds([n[0],n[0]+1]),e.charCode=46,e.keypress=!1,e.textInput=!1,this.ensureKey(t,null,e,function(){var t;return t=r.all(),r.text("","end"),t===r.all()?e.input=!1:void 0})},"{backspace}":function(t,e){var n,r;return r=e.rng,n=r.bounds(),this.boundsAreEqual(n)&&r.bounds([n[0]-1,n[0]]),e.charCode=8,e.keypress=!1,e.textInput=!1,this.ensureKey(t,null,e,function(){var t;return t=r.all(),r.text("","end"),t===r.all()?e.input=!1:void 0})},"{esc}":function(t,e){return e.charCode=27,e.keypress=!1,e.textInput=!1,e.input=!1,this.ensureKey(t,null,e)},"{{}":function(t,e){return e.key="{",this.typeKey(t,e.key,e)},"{enter}":function(t,e){var n;return n=e.rng,e.charCode=13,e.textInput=!1,e.input=!1,this.ensureKey(t,"\n",e,function(){var t;return n.insertEOL(),t=e.prev!==n.all(),e.onEnterPressed(t,e.id)})},"{leftarrow}":function(t,e){var n,r;return r=e.rng,n=r.bounds(),e.charCode=37,e.keypress=!1,e.textInput=!1,e.input=!1,this.ensureKey(t,null,e,function(){var t,e;switch(!1){case!this.boundsAreEqual(n):t=n[0]-1,e=t;break;case!(n[0]>0):t=n[0],e=t;break;default:t=0,e=0}return r.bounds([t,e])})},"{rightarrow}":function(t,e){var n,r;return r=e.rng,n=r.bounds(),e.charCode=39,e.keypress=!1,e.textInput=!1,e.input=!1,this.ensureKey(t,null,e,function(){var t,e;switch(!1){case!this.boundsAreEqual(n):t=n[0]+1,e=t;break;default:e=n[1],t=e}return r.bounds([t,e])})}},boundsAreEqual:function(t){return t[0]===t[1]},type:function(t){var o,s,a,u,c,l,h;return null==t&&(t={}),e.defaults(t,{delay:10,onEvent:function(){},onBeforeType:function(){},onTypeChange:function(){},onEnterPressed:function(){},onNoMatchingSpecialChars:function(){}}),a=t.$el.get(0),o=a.bililiteRangeSelection,h=r(a).bounds("selection"),t.prev=h.all(),o?h.bounds(o):(c=h.length())&&(s=[c,c],e.isEqual(h._bounds,s)||(a.bililiteRangeSelection=s,h.bounds(s))),u=t.chars.split(i),t.onBeforeType(this.countNumIndividualKeyStrokes(u)),l=[],n.each(u,function(e){return function(n){return e.typeChars(a,h,n,l,t)}}(this)).cancellable().then(function(e){return function(){var n;return e.expectedValueDoesNotMatchCurrentValue(t.prev,h)&&t.onTypeChange(),(n=t.window.getSelection())?n.removeAllRanges():void 0}}(this))["catch"](n.CancellationError,function(t){throw e(l).invoke("cancel"),t})},countNumIndividualKeyStrokes:function(t){return e.reduce(t,function(t,e){return i.test(e)?t+1:t+e.length},0)},typeChars:function(t,r,o,s,a){var u;return a=e.clone(a),a.rng=r,i.test(o)?(u=n.resolve(this.handleSpecialChars(t,o,a)).delay(a.delay).cancellable(),s.push(u),u):n.each(o.split(""),function(e){return function(r){return u=n.resolve(e.typeKey(t,r,a)).delay(a.delay).cancellable(),s.push(u),u}}(this))},getCharCode:function(t){var e,n;return e=t.charCodeAt(0),null!=(n=this.charCodeMap[e])?n:e},expectedValueDoesNotMatchCurrentValue:function(t,e){return t!==e.all()},moveCaretToEnd:function(t){var e;return e=t.length(),t.bounds([e,e])},simulateKey:function(t,n,r,i){var o,s,a,u,c,l,h,f,p,d,g,m;if(i[n]===!1)return!0;switch(r=null!=(p=i.key)?p:r,h=!0,f=!0,c=new Event(n,{bubbles:!0,cancelable:"input"!==n}),n){case"keydown":case"keyup":a=null!=(d=i.charCode)?d:this.getCharCode(r.toUpperCase()),s=0,l=a,m=a;break;case"keypress":a=null!=(g=i.charCode)?g:this.getCharCode(r),s=a,l=a,m=a;break;case"textInput":s=0,l=0,m=0,f=!1,e.extend(c,{data:r});break;case"input":h=!1,f=!1}return f&&e.extend(c,{altKey:!1,ctrlKey:!1,location:0,metaKey:!1,repeat:!1,shiftKey:!1}),h&&e.extend(c,{charCode:s,detail:0,keyCode:l,layerX:0,layerY:0,pageX:0,pageY:0,view:i.window,which:m}),u=t.dispatchEvent(c),o=[i.id,r,n,u],a&&o.push(a),i.onEvent.apply(this,o),u},updateValue:function(t,e){return t.text(e,"end")},typeKey:function(t,e,n){var r;return(r=n.afterKey)&&this.expectedValueDoesNotMatchCurrentValue(r,n.rng)&&this.moveCaretToEnd(n.rng),this.ensureKey(t,e,n,function(){return this.updateValue(n.rng,e)})},ensureKey:function(t,n,r,i){return r.id=e.uniqueId("char"),r.beforeKey=r.rng.all(),this.simulateKey(t,"keydown",n,r)&&this.simulateKey(t,"keypress",n,r)&&this.simulateKey(t,"textInput",n,r)&&(i&&i.call(this),this.simulateKey(t,"input",n,r),r.afterKey=r.rng.all()),this.simulateKey(t,"keyup",n,r)},handleSpecialChars:function(t,n,r){var i,o;return(o=this.specialChars[n])?(r.key=n,o.call(this,t,r)):(i=e.keys(this.specialChars).join(", "),r.onNoMatchingSpecialChars(n,i))}}}($Cypress,_,Promise,bililiteRange)}.call(this),function(){$Cypress.LocalStorage=function(t,e){var n,r;return n=/^ecl-/,r=/(debug)/,{localStorage:null,remoteStorage:null,clear:function(t,n,r){var i;return t=e.compact([].concat(t)),null==n&&(n=this.localStorage),null==r&&(r=this.remoteStorage),i=e.compact([n,r]),e.each(i,function(n){return function(r){return e.chain(r).keys().reject(n._isSpecialKeyword).reject(n._isEclectusItem).each(function(e){return t.length?n._ifItemMatchesAnyKey(e,t,function(t){return n._removeItem(r,t)}):n._removeItem(r,e)})}}(this))},setStorages:function(t,e){return this.localStorage=t,this.remoteStorage=e,this},unsetStorages:function(){return this.localStorage=this.remoteStorage=null,this},_removeItem:function(t,e){return t.removeItem(e)},_isSpecialKeyword:function(t){return r.test(t)},_isEclectusItem:function(t){return n.test(t)},_normalizeRegExpOrString:function(t){switch(!1){case!e.isRegExp(t):return t;case!e.isString(t):return new RegExp("^"+t+"$")}},_ifItemMatchesAnyKey:function(t,e,n){var r,i,o,s;for(r=0,o=e.length;o>r;r++)if(i=e[r],s=this._normalizeRegExpOrString(i),s.test(t))return n(t)}}}($Cypress,_)}.call(this),function(){var t=[].slice;$Cypress.Location=function(e,n,r){var i,o,s,a,u;return o=/^https?:\/\//,u=/^www/,a=/push|replace/,s=/^(localhost|0\.0\.0\.0|127\.0\.0\.1)/,i=function(){function i(t){var n,i;t=new r(t),(n=this.getFqdn(t))?t=new r(n):(i=e.Cookies.getRemoteHost(),i=new r("<root>"===i?"":i),t.setProtocol(i.protocol()),t.setHost(i.host()),t.setPort(i.port())),this.remote=t}return i.prototype.getFqdn=function(t){var e;return t=new r(t),e=t.path().slice(1),o.test(e)?e:void 0},i.prototype.getHash=function(){var t;return(t=this.remote.anchor())?"#"+t:""},i.prototype.getHref=function(){return this.getToString()},i.prototype.getHost=function(){return n([this.remote.host(),this.remote.port()]).compact().join(":")},i.prototype.getHostName=function(){return this.remote.host()},i.prototype.getOrigin=function(){return this.remote.origin()},i.prototype.getProtocol=function(){return this.remote.protocol()+":"},i.prototype.getPathName=function(){return this.remote.path()||"/"},i.prototype.getPort=function(){return this.remote.port()},i.prototype.getSearch=function(){return this.remote.query()},i.prototype.getToString=function(){var t,e,r,i;return i=this.remote.origin(),(e=this.remote.path())&&(i+=e),(r=this.remote.query())&&(n.str.include(r,"?")||(i+="?"),i+=r),(t=this.remote.anchor())&&(n.str.include(t,"#")||(i+="#"),i+=t),i},i.prototype.getObject=function(){return{hash:this.getHash(),href:this.getHref(),host:this.getHost(),hostname:this.getHostName(),origin:this.getOrigin(),pathname:this.getPathName(),port:this.getPort(),protocol:this.getProtocol(),search:this.getSearch(),toString:n.bind(this.getToString,this)}},i.override=function(t,r,i){return n.each(["back","forward","go","pushState","replaceState"],function(t){var n,o;if(n=null!=(o=r.history)?o[t]:void 0)return r.history[t]=function(){var r;if(r=arguments,e.isHeadless&&!a.test(t))throw e.Utils.cypressError("Your app called 'history."+t+"()' when running headlessly.\n\nThis is a known bug. Currently, calling 'history."+t+"()' will cause tests to restart continuously and never finish.\n\nWe are throwing this error temporarily until the issue is resolved.");return n.apply(this,r),i(t,r)}})},i.createInitialRemoteSrc=function(t){var i;return o.test(t)?(t=new r(t),i=t.origin(),t=t.toString().replace(i,"")):i="<root>",e.Cookies.setInitialRequest(i),"/"+n.ltrim(t,"/")},i.isFullyQualifiedUrl=function(t){return o.test(t)},i.missingProtocolAndHostIsLocalOrWww=function(t){var e;if(e=t.toString(),!(s.test(e)||u.test(e)||this.isUrlLike(e)))return!1;switch(t.protocol()){case"":return!0;case"localhost":return t.setPort(t.host()),t.setHost(t.protocol()),!0;default:return!1}},i.isUrlLike=function(t){return t=t.split("/")[0].split("."),3===t.length||4===t.length},i.handleRelativeUrl=function(t){var e;return t=new r(t),e=t.path(),e="/"!==e?e:"",t.setPath(t.host()+e),t.setHost(""),t},i.normalizeUrl=function(t){return t=n.ltrim(t,"/"),t=o.test(t)||u.test(t)||s.test(t)||this.isUrlLike(t)?new r(t):this.handleRelativeUrl(t),this.missingProtocolAndHostIsLocalOrWww(t)&&t.setProtocol("http"),t.protocol()&&!t.path()&&t.addTrailingSlash(),n.ltrim(t.toString(),"/")},i.getRemoteUrl=function(t,e){return e&&!this.isFullyQualifiedUrl(t)&&(t=this.prependBaseUrl(t,e)),this.normalizeUrl(t)},i.prependBaseUrl=function(t,e){return[n.trim(e,"/"),n.trim(t,"/")].join("/")},i.isAbsoluteRelative=function(t){return t&&"/"===t[0]},i.join=function(){var e,r,i,o;return e=arguments[0],o=2<=arguments.length?t.call(arguments,1):[],r=n.last(o),i=n.reduce(o,function(t,e){return e===r?t.push(n.ltrim(e,"/")):t.push(n.trim(e,"/")),t},[n.rtrim(e,"/")]),i.join("/")},i.resolve=function(t,e){var n;return this.isFullyQualifiedUrl(e)?e:this.isAbsoluteRelative(e)?(n=this.parse(t).origin,this.join(n,e)):this.join(t,e)},i.create=function(t){var e;return e=new i(t),e.getObject()},i.parse=function(t){var e;return e=new i(t),e.remote=new r(t),e.getObject()},i}()}($Cypress,_,Uri)}.call(this),function(){var t=[].slice;$Cypress.Log=function(e,n,r){var i,o,s,a;return o=/(AssertionError|CypressError)/,a=/parent|child/,s={agent:function(t,e,r){return null==r&&(r={}),n.defaults(r,{name:"agent"}),this.log("agent",r)},route:function(t,e,r){return null==r&&(r={}),n.defaults(r,{name:"route"}),this.log("route",r)},command:function(t,r,i){var o,s;return null==i&&(i={}),o=r.prop("current"),n.defaults(i,null!=o?o.pick("name","type"):void 0),a.test(i.type)||(i.type=o.hasPreviouslyLinkedCommand()?"child":"parent"),n.defaults(i,{event:!1,onRender:function(){},onConsole:function(){var t;return t=e.Utils.hasElement(o.get("subject"))?e.Utils.getDomElements(o.get("subject")):o.get("subject"),{Returned:t}}}),i.message=e.Utils.stringify(null!=(s=i.message)?s:o.get("args")),n.isFunction(i.type)&&(i.type=i.type.call(r,o,r.prop("subject"))),this.log("command",i)},log:function(t,e,r,o){var s,a;return n.defaults(o,{url:e["private"]("url"),hookName:e["private"]("hookName"),testId:e["private"]("runnable").id,viewportWidth:t.config("viewportWidth"),viewportHeight:t.config("viewportHeight"),referencesAlias:void 0,alias:void 0,aliasType:void 0,message:void 0,onRender:function(){},onConsole:function(){}}),o.instrument=r,s=new i(t,o),s.wrapOnConsole(),n.any(t.invoke("before:log",s),function(t){return t===!1})?void 0:(null!=(a=e.prop("current"))&&a.log(s),t.trigger("log",s),s)}},i=function(){function e(t,e){var r;this.Cypress=t,null==e&&(e={}),n.defaults(e,{state:"pending"}),this.set(e),this.get("snapshot")&&this.snapshot(),this.get("end")&&this.end(),(r=this.get("error"))&&this.error(r)}return e.prototype.get=function(t){return this.attributes[t]},e.prototype.unset=function(t){return this.set(t,void 0)},e.prototype.set=function(t,e){var r;return n.isString(t)?(r={},r[t]=e):r=t,r.alias&&n.defaults(r,{aliasType:r.$el?"dom":"primitive"}),null==this.attributes&&(this.attributes={}),n.extend(this.attributes,r),r&&n.isFunction(r.onConsole)&&this.wrapOnConsole(),r&&r.$el&&this.setElAttrs(),this.trigger("attrs:changed",this.attributes),this},e.prototype.pick=function(){var e;return e=1<=arguments.length?t.call(arguments,0):[],e.unshift(this.attributes),n.pick.apply(n,e)},e.prototype.publicInterface=function(){return{get:n.bind(this.get,this),on:n.bind(this.on,this),off:n.bind(this.off,this),pick:n.bind(this.pick,this),attributes:this.attributes}},e.prototype.snapshot=function(t,e){var r,i,o,s,a;return null==e&&(e={}),n.defaults(e,{at:null,next:null}),o={name:t,state:this.Cypress.createSnapshot(this.get("$el"))},a=null!=(s=this.get("snapshots"))?s:[],a[e.at||a.length]=o,this.set("snapshots",a),(i=e.next)&&(r=this.snapshot,this.snapshot=function(){return delete this.snapshot,r.call(this,i)}),this},e.prototype.error=function(t){return this.set({error:t,state:"failed"}),this},e.prototype.end=function(){return this.set({end:!0,state:"passed"}),this},e.prototype.getError=function(t){return o.test(t.name)?t.toString():t.stack},e.prototype.setElAttrs=function(){var t,e;return(t=this.get("$el"))?(e={highlightAttr:this.Cypress.highlightAttr,numElements:t.length,visible:t.length===t.filter(":visible").length},this.set(e)):void 0},e.prototype.merge=function(t){var e,r;return r=(e=n.chain(this.attributes).keys()).without.apply(e,n(t.attributes).keys()).value(),n.each(r,function(t){return function(e){return t.unset(e)}}(this)),this.set(t.attributes)},e.prototype.reduceMemory=function(){return this.off(),this.attributes=n.omit(this.attributes,n.isObject)},e.prototype._shouldAutoEnd=function(){return this.get("autoEnd")!==!1&&this.get("end")!==!0&&this.get("event")===!1&&"command"===this.get("instrument")},e.prototype.finish=function(){return this._shouldAutoEnd()?this.snapshot().end():void 0},e.prototype.wrapOnConsole=function(){var e;return e=this,this.attributes.onConsole=n.wrap(this.attributes.onConsole,function(){var r,i,o,s,a;return a=arguments[0],r=2<=arguments.length?t.call(arguments,1):[],s=e.get("event")?"Event":"Command",i={},i[s]=e.get("name"),n.extend(i,a.apply(this,r)),(o=e.get("error"))&&n.defaults(i,{Error:e.getError(o)}),"command"!==e.get("instrument")||this.snapshots?delete i.Snapshot:i.Snapshot="The snapshot is missing. Displaying current state of the DOM.",i})},e.create=function(t,r){return n.each(s,function(i,o){return e[o]=n.partial(i,t,r)})},e}(),n.extend(i.prototype,r.Events),e.extend({command:function(t){return null==t&&(t={}),console.warn("Cypress.command() is deprecated. Please update and use: Cypress.Log.command()"),i.command(t)}}),i}($Cypress,_,Backbone)}.call(this),function(){var t=[].slice;$Cypress.Mocha=function(e,n,r){var i,o,s,a,u;return u=r.Runner.prototype.run,a=r.Runner.prototype.fail,s=r.Runnable.prototype.run,o=r.Runnable.prototype.resetTimeout,i=function(){function i(t,n){var i,o;this.Cypress=t,o=null!=(i=e.reporter)?i:function(){},this.mocha=new r({reporter:o,enableTimeouts:!1}),this.override(),this.listeners(),this.specWindow=n,this.set(n)}return i.prototype.override=function(){return this.patchRunnerFail(),this.patchRunnableRun(),this.patchRunnableResetTimeout(),this},i.prototype.listeners=function(){return this.listenTo(this.Cypress,"abort",function(t){return function(){return t.grep(/.*/)}}(this)),this.listenTo(this.Cypress,"stop",function(t){return function(){return t.stop()}}(this)),this},i.prototype.options=function(t){return t.options(this.mocha.options)},i.prototype.grep=function(t){return this.mocha.grep(t)},i.prototype.getRunner=function(){var t;return t=this,r.Runner.prototype.run=function(){return t.restoreRunnerRun(),this},this.mocha.run()},i.prototype.patchRunnerFail=function(){return r.Runner.prototype.fail=n.wrap(a,function(t,e,n){return"[object Error]"!==Object.prototype.toString.call(n)?t.call(this,e,n):(++this.failures,e.state="failed",this.emit("fail",e,n))})},i.prototype.patchRunnableRun=function(){var e,i;return i=this,e=this.Cypress,r.Runnable.prototype.run=n.wrap(s,function(){var r,o,s,a;return s=arguments[0],r=2<=arguments.length?t.call(arguments,1):[],a=this,o=n.once(function(){return a._invokedCy=!0}),this.fn=n.wrap(this.fn,function(){var n,r,s,u,c,l;u=arguments[0],n=2<=arguments.length?t.call(arguments,1):[],i.listenTo(e,"enqueue",o),l=function(){return i.stopListening(e,"enqueue",o),a.fn=u};try{return c=u.apply(this,n),l(),a._invokedCy?e.cy.prop("chain"):c}catch(s){throw r=s,l(),r}}),s.apply(this,r)})},i.prototype.patchRunnableResetTimeout=function(){return r.Runnable.prototype.resetTimeout=n.wrap(o,function(t){var e,n,r;return r=this,n=this.timeout()||1e9,this.clearTimeout(),e=function(){return r.async?"Timed out after '"+n+"ms'. The done() callback was never invoked!":"Cypress command timeout of '"+n+"ms' exceeded."},this.timer=setTimeout(function(){return r.callback(new Error(e())),r.timedOut=!0},n)})},i.prototype.set=function(t){return null==t.Mocha&&(t.Mocha=r),null==t.mocha&&(t.mocha=this.mocha),this.clone(t),this.ui(t,"bdd")},i.prototype.clone=function(t){var e;return e=t.mocha,this.mocha.suite.removeAllListeners(),this.mocha.suite=e.suite.clone()},i.prototype.ui=function(t,e){var n;return n=t.mocha,n.ui=function(e){if(this._ui=r.interfaces[e],!this._ui)throw new Error('invalid interface "'+e+'"');return this._ui=this._ui(this.suite),this.suite.emit("pre-require",t,null,this),this},n.ui(e)},i.prototype.stop=function(){return this.stopListening(),this.restore(),this.mocha.suite.removeAllListeners(),this.mocha.suite.suites=[],this.mocha.suite.tests=[],this.mocha.suite=null,this.Cypress.mocha=null,delete this.specWindow.mocha,delete this.specWindow,delete this.mocha,this},i.prototype.restore=function(){return this.restoreRunnerRun(),this.restoreRunnerFail(),this.restoreRunnableRun(),this.restoreRunnableResetTimeout(),this},i.prototype.restoreRunnableResetTimeout=function(){return r.Runnable.prototype.resetTimeout=o},i.prototype.restoreRunnerRun=function(){return r.Runner.prototype.run=u},i.prototype.restoreRunnerFail=function(){return r.Runner.prototype.fail=a},i.prototype.restoreRunnableRun=function(){return r.Runnable.prototype.run=s},n.extend(i.prototype,Backbone.Events),i.create=function(t,e){var n;return(n=t.mocha)&&n.stopListening(),delete window.mocha,t.mocha=new i(t,e)},i}()}($Cypress,_,Mocha)}.call(this),function(){!function(t,e,n,r){return t.extend({loadModule:function(t){var i;if(i=this.modules[t],!i)throw new Error("$Cypress.Module: "+t+" not registered!");return i.call(this,this,e,n,r)},loadModules:function(t){return null==t&&(t=[]),t.length?e.each(t,function(t){return function(e){return t.loadModule(e)}}(this)):e.each(this.modules,function(t){return function(e,n){return t.loadModule(n)}}(this))}})}($Cypress,_,$,Promise)}.call(this),function(){$Cypress.Mouse=function(t,e,n){var r;return r=MouseEvent.prototype.stopPropagation,{mouseDown:function(t,e,n){var i,o;return o=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:n,clientX:e.x,clientY:e.y,buttons:1,detail:1}),null==o.buttons&&(o.buttons=1),o.stopPropagation=function(){return this._hasStoppedPropagation=!0,r.apply(this,arguments)},i=!t.get(0).dispatchEvent(o),{preventedDefault:i,stoppedPropagation:!!o._hasStoppedPropagation}},mouseUp:function(t,e,n){var i,o;return o=new MouseEvent("mouseup",{bubbles:!0,cancelable:!0,view:n,clientX:e.x,clientY:e.y,buttons:0,detail:1}),null==o.buttons&&(o.buttons=0),o.stopPropagation=function(){return this._hasStoppedPropagation=!0,r.apply(this,arguments)},i=!t.get(0).dispatchEvent(o),{preventedDefault:i,stoppedPropagation:!!o._hasStoppedPropagation}},click:function(t,e,n){var i,o;return o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:n,clientX:e.x,clientY:e.y,buttons:0,detail:1}),null==o.buttons&&(o.buttons=0),o.stopPropagation=function(){return this._hasStoppedPropagation=!0,r.apply(this,arguments)},i=!t.get(0).dispatchEvent(o),{preventedDefault:i,stoppedPropagation:!!o._hasStoppedPropagation}}}}($Cypress,_,Promise)}.call(this),function(){!function(t,e){return t.extend({options:function(t){return null==this._options&&(this._options={}),e.extend(this._options,t)},option:function(t,e){return null==this._options&&(this._options={}),e?this._options[t]=e:this._options[t]}})}($Cypress,_)}.call(this),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},e=[].slice;$Cypress.Runner=function(n,r){var i;return i=function(){function i(t,e){this.Cypress=t,this.runner=e,this.initialize(),this.listeners(),this.override(),this.runner.suite&&this.getRunnables()}return i.prototype.fail=function(t,e){return"passed"===e.state&&this.afterEachFailed(e,t),e.callback(t)},i.prototype.initialize=function(){return this.runnables=[]},i.prototype.listeners=function(){return this.setListeners?void 0:(this.setListeners=!0,this.listenTo(this.Cypress,"fail",function(t){return function(e,n){return t.fail(e,n)}}(this)),this.listenTo(this.Cypress,"abort",function(t){return function(){return t.abort()}}(this)),this.listenTo(this.Cypress,"stop",function(t){return function(){return t.stop()}}(this)),this)},i.prototype.runnerListeners=function(){var t,e;if(!this.setRunnerListeners)return this.setRunnerListeners=!0,t=this.Cypress,e=this,this.runner.on("start",function(){return t.trigger("run:start")}),this.runner.on("end",function(e){return function(){return t.trigger("run:end"),e.restore()}}(this)),this.runner.on("suite",function(e){return function(n){return t.trigger("suite:start",e.wrap(n))}}(this)),this.runner.on("suite end",function(e){return function(n){return t.trigger("suite:end",e.wrap(n)),r.each(n.ctx,function(t,e){return delete n.ctx[e]})}}(this)),this.runner.on("hook",function(e){return function(n){var r,i;return r=e.getHookName(n),"before all"===r&&n.ctx.currentTest&&delete n.ctx.currentTest,i=e.getTestFromHook(n,n.parent),n.id=i.id,n.ctx.currentTest=i,t.set(n,r),t.trigger("hook:start",e.wrap(n))}}(this)),this.runner.on("hook end",function(e){return function(n){var r,i;return r=e.getHookName(n),"before each"===r&&(i=n.ctx.currentTest)&&t.set(i,"test"),t.trigger("hook:end",e.wrap(n))}}(this)),this.runner.on("test",function(e){return function(n){return e.test=n,t.set(n,"test"),t.trigger("test:start",e.wrap(n))}}(this)),this.runner.on("test end",function(e){return function(n){return t.trigger("test:end",e.wrap(n))}}(this)),this.runner.on("pass",function(e){return function(n){return t.trigger("mocha:pass",e.wrap(n))}}(this)),this.runner.on("pending",function(r){return n.isHeadless?t.trigger("mocha:pending",e.wrap(r)):(r.state="pending",this.emit("test",r))}),this.runner.on("fail",function(e){return function(r,i){return n.isHeadless?t.trigger("mocha:fail",e.wrap(r),e.wrapErr(i)):(r.err=i,"hook"===r.type?e.hookFailed(r,i):void 0)}}(this))},i.prototype.wrapErr=function(t){return r.pick(t,"message","type","name","stack","fileName","lineNumber","columnNumber","host","uncaught","actual","expected","showDiff")},i.prototype.wrap=function(t){var e,n;return n=r(t).pick("id","title","originalTitle","root","hookName","err","duration","state","failedFromHook","timedOut","async","sync"),(e=t.parent)&&(n.parent=this.wrap(e)),n},i.prototype.restore=function(){return r.each([this.runnables,this.runner],function(t){return function(e){return t.removeAllListeners(e)}}(this)),this.initialize()},i.prototype.stop=function(){return this.stopListening(),this.restore(),delete this.runner.hook,this.runner=this.tests=this.Cypress.runner=null,this},i.prototype.removeAllListeners=function(t){var e;return e=[].concat(t),r.invoke(e,"removeAllListeners")},i.prototype.abort=function(){return this.runner.abort(),this.runner.emit("end")},i.prototype.options=function(t){var e;return null==t&&(t={}),(e=t.grep)?this.grep(e):void 0},i.prototype.run=function(t){return this.runnerListeners(),this.runner.run(function(e){return function(n){return t?t(n,e.getTestResults()):void 0}}(this))},i.prototype.getTestResults=function(){return r(this.tests).map(function(t){var e;return e=r(t).pick("id","duration","state"),e.title=t.originalTitle,e.state||(e.state="skipped"),e})},i.prototype.getHookName=function(t){var e;return e=t.title.match(/\"(.+)\"/),e&&e[1]},i.prototype.afterEachFailed=function(t,e){return t.state="failed",t.err=e,this.Cypress.trigger("test:end",this.wrap(t))},i.prototype.hookFailed=function(t,e){var n;return n=this.getTestFromHook(t,t.parent),n.err=e,n.state="failed",n.duration=t.duration,n.hookName=this.getHookName(t),n.failedFromHook=!0,this.Cypress.trigger("test:end",this.wrap(n))},i.prototype.getRunnables=function(t){var e,n,i,o;if(null==t&&(t={}),this.tests=[],r.defaults(t,{grep:this.grep(),iterate:!0,pushRunnables:!0,onRunnable:function(){}}),this.runnables.length){for(r.extend(t,{iterate:!1,pushRunnables:!1}),i=this.runnables,e=0,n=i.length;n>e;e++)o=i[e],this.process(o,t);return null}return this.iterateThroughRunnables(this.runner.suite,t)},i.prototype.iterateThroughRunnables=function(t,e){return r.each([t.tests,t.suites],function(t){return function(n){
return r.each(n,function(n){return t.process(n,e)})}}(this))},i.prototype.process=function(t,e){var n,i;if(!t.root){switch(null==t.type&&(t.type="suite"),e.pushRunnables&&this.runnables.push(t),i=function(t,e){return null!=t.matchesGrep&&r.isEqual(t.grepRe,e)||(t.grepRe=e,t.matchesGrep=e.test(t.fullTitle())),t.matchesGrep},t.type){case"suite":n=this.anyTest(t,function(t){return i(t,e.grep)}),n&&e.onRunnable(t);break;case"test":i(t,e.grep)&&(e.onRunnable(t),this.tests.push(t))}return e.iterate?this.iterateThroughRunnables(t,e):void 0}},i.prototype.getTestByTitle=function(t){return this.firstTest(this.runner.suite,function(e){return e.title===t})},i.prototype.firstTest=function(t,e){var n,r,i,o,s,a,u;for(s=t.tests,n=0,i=s.length;i>n;n++)if(u=s[n],e(u))return u;for(a=t.suites,r=0,o=a.length;o>r;r++)if(t=a[r],u=this.firstTest(t,e))return u},i.prototype.anyTest=function(t,e){var n,r,i,o,s,a,u;for(s=t.tests,n=0,i=s.length;i>n;n++)if(u=s[n],e(u)===!0)return!0;for(a=t.suites,r=0,o=a.length;o>r;r++)if(t=a[r],this.anyTest(t,e)===!0)return!0;return!1},i.prototype.grep=function(t){var e;return arguments.length?this.runner._grep=t:null!=(e=this.runner)._grep?e._grep:e._grep=/.*/},i.prototype.ignore=function(t){return t.pending=!0},i.prototype.getTestFromHook=function(t,e){var n,r;return(r=null!=t?t.ctx.currentTest:void 0)?r:(null!=t?t.id:void 0)&&(n=this.firstTest(e,function(e){return function(e){return t.id===e.id}}(this)))?n:(n=this.firstTest(e,function(t){return function(e){return t.testInTests(e)}}(this)),n?n:this.firstTest(e,function(t){return!0}))},i.prototype.testInTests=function(e){return t.call(this.tests,e)>=0},i.prototype.override=function(){var t,n;if(this.runner.hook)return t=this.Cypress,n=this,this.runner.hook=r.wrap(this.runner.hook,function(i,o,s){var a,u,c,l,h,f,p;switch(u=this.suite["_"+o],a=function(t){var e;return e=[],t.eachTest(function(t){return n.testInTests(t)?e.push(t):void 0}),e},c=function(t){var e;return t.root?!1:(e=r.reduce(n.tests,function(t,e){for(var n;n=e.parent;)t.push(n),e=n;return t},[]),r.chain(e).uniq().intersection(t.parent.suites).last().value()===t)},f=function(e,r){var i;return n.test||(n.test=n.getTestFromHook(e,r)),n.test.hasFiredTestBeforeHooks?void 0:(n.test.hasFiredTestBeforeHooks=!0,t.trigger("test:before:hooks",n.wrap(null!=(i=n.test)?i:{})))},h=function(){var e;return e=n.test,n.test=null,t.trigger("test:after:hooks",n.wrap(e)),t.restore()},o){case"beforeAll":f(u[0],this.suite);break;case"beforeEach":this.suite.root&&f(u[0],this.suite);break;case"afterEach":p=a(n.test.parent),this.suite.root&&n.test!==r(n.tests).last()&&n.test!==r(p).last()&&(s=r.wrap(s,function(){var t,n;return n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],h().then(function(){return n.apply(null,t)})}));break;case"afterAll":n.test&&(p=a(n.test.parent),(this.suite.root&&n.test===r(n.tests).last()||(null!=(l=this.suite.parent)?l.root:void 0)&&n.test===r(p).last()||!c(this.suite)&&n.test===r(p).last())&&(s=r.wrap(s,function(){var t,n;return n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],h(),n.apply(null,t)})))}return i.call(this,o,s)})},r.extend(i.prototype,Backbone.Events),i.runner=function(t,e){var n;return(n=t.runner)&&n.stopListening(),t.runner=new i(t,e)},i.create=function(t,e,n){var r;return r=n.getRunner(),r.suite=e.mocha.suite,this.runner(t,r)},i}()}($Cypress,_)}.call(this),function(){$Cypress.Server=function(t,e){var n,r,i,o,s,a,u,c,l,h,f;return l=/\.(jsx?|coffee|html|less|s?css)(\?.*)?$/,o=/^X-Cypress-/i,s=/([a-z][A-Z])/g,h=function(t,n,r,i){return null!=r?(i&&(r=i(r)),n="X-Cypress-"+e.capitalize(n),t.setRequestHeader(n,r)):void 0},u=function(t){return t=t.replace(s,function(t){return t[0]+"-"+t[1]}),t.toLowerCase()},a=function(){return null},c=function(t){try{return JSON.parse(t)}catch(e){return t}},f=function(t){return"GET"===t.method&&l.test(t.url)},i={testId:"",xhrUrl:"",method:"GET",delay:0,status:200,headers:null,response:null,stub:!0,enable:!0,autoRespond:!0,waitOnResponses:1/0,force404:!0,onAnyRequest:void 0,onAnyResponse:void 0,stripOrigin:e.identity,getUrlOptions:e.identity,whitelist:f,onSend:function(){},onAbort:function(){},onError:function(){},onLoad:function(){},onFixtureError:function(){},onNetworkError:function(){}},r=function(){function t(t){this.xhr=t,this.id=this.xhr.id,this.url=this.xhr.url,this.method=this.xhr.method,this.status=null,this.statusMessage=null,this.request={},this.response=null}return t.prototype.getXhr=function(){var t;return function(){if(null!=(t=this.xhr))return t;throw new Error("XMLHttpRequest#xhr is missing!")}.call(this)},t.prototype.setDuration=function(t){return this.duration=new Date-t},t.prototype.setStatus=function(){return this.status=this.xhr.status,this.statusMessage=this.xhr.status+" ("+this.xhr.statusText+")"},t.prototype.setRequestBody=function(t){return null==t&&(t=null),this.request.body=c(t)},t.prototype.setResponseBody=function(){var t;return null==this.response&&(this.response={}),this.response.body=function(){var e;try{return c(this.xhr.responseText)}catch(e){return t=e,this.xhr.response}}.call(this)},t.prototype.setResponseHeaders=function(){var t,e,n,r,i,o,s,a,u,c;if(n=this.xhr.getAllResponseHeaders(),u=function(t){return function(e){return null==t.response&&(t.response={}),t.response.headers=e}}(this),r={},!n)return u(r);for(e=n.split("\r\n"),i=0,a=e.length;a>i;i++)t=e[i],o=t.indexOf(": "),o>0&&(s=t.substring(0,o),c=t.substring(o+2),r[s]=c);return u(r)},t.prototype.setRequestHeader=function(t,e){var n,r;if(!o.test(t))return null==(n=this.request).headers&&(n.headers={}),r=this.request.headers[t],r&&(e=", "+e),this.request.headers[t]=e},t.prototype.getFixtureError=function(){var t,e;return t=this.response&&this.response.body,t&&(e=t.__error)?e:void 0},t.add=function(e){return new t(e)},t}(),Object.defineProperties(r.prototype,{requestHeaders:{get:function(){var t;return null!=(t=this.request)?t.headers:void 0}},requestBody:{get:function(){var t;return null!=(t=this.request)?t.body:void 0}},responseHeaders:{get:function(){var t;return null!=(t=this.response)?t.headers:void 0}},responseBody:{get:function(){var t;return null!=(t=this.response)?t.body:void 0}},requestJSON:{get:function(){return console.warn("requestJSON is now deprecated and will be removed in the next version. Update this to 'requestBody' or 'request.body'."),this.requestBody}},responseJSON:{get:function(){return console.warn("responseJSON is now deprecated and will be removed in the next version. Update this to 'responseBody' or 'response.body'."),this.responseBody}}}),n=function(){function t(t){this.options=null!=t?t:{},e.defaults(this.options,i),this.xhrs={},this.proxies={},this.stubs=[],this.enableStubs(!1)}return t.prototype.getOptions=function(){return e.clone(this.options)},t.prototype.isWhitelisted=function(t){return this.options.whitelist.call(this,t)},t.prototype.getFullyQualifiedUrl=function(t,e){var n;return n=t.document.createElement("a"),n.href=e,n.href},t.prototype.getStack=function(){var t;return t=new Error,t.stack.split("\n").slice(3).join("\n")},t.prototype.shouldApplyStub=function(t){return t&&t.stub!==!1&&this.isStubbed()},t.prototype.transformHeaders=function(t){return t=e.reduce(t,function(t,e,n){return t[u(n)]=e,t},{}),JSON.stringify(t)},t.prototype.applyStubProperties=function(t,n){var r;return r=e.isObject(n.response)?JSON.stringify:null,h(t,"status",n.status),h(t,"response",n.response,r),h(t,"matched",n.url+""),h(t,"delay",n.delay),h(t,"headers",n.headers,this.transformHeaders)},t.prototype.normalizeStubUrl=function(t,n){return t||console.warn("'Server.options.xhrUrl' has not been set"),t=e.compact(t.split("/")).join("/"),n=e.ltrim(n,"/"),["/"+t,n].join("/")},t.prototype.stub=function(t){var n;return null==t&&(t={}),n=e.defaults({},t,e(this.options).pick("delay","method","status","stub","autoRespond","waitOnResponses","onRequest","onResponse")),this.stubs.push(n),n},t.prototype.getStubForXhr=function(t){var e,n,r;if(!this.stubs.length&&this.isStubbed()&&this.options.force404!==!1&&!this.isWhitelisted(t))return this.get404Stub();if(!this.stubs.length)return a();if(this.isWhitelisted(t))return a();for(n=this.stubs,e=n.length-1;e>=0;e+=-1)if(r=n[e],this.xhrMatchesStub(t,r))return r;return this.options.force404?this.get404Stub():a()},t.prototype.get404Stub=function(){return{status:404,response:"",delay:0,headers:null,is404:!0}},t.prototype.xhrMatchesStub=function(t,n){var r,i;return r=function(t,e){return n.url.test(t)||n.url.test(e)},i=function(t,e){return n.url===t||n.url===e},t.method===n.method&&(e.isRegExp(n.url)?r(t.url,this.options.stripOrigin(t.url)):i(t.url,this.options.stripOrigin(t.url)))},t.prototype.add=function(t,n){var i;return null==n&&(n={}),e.extend(t,n),t.id=i=e.uniqueId("xhr"),this.xhrs[i]=t,this.proxies[i]=r.add(t)},t.prototype.getProxyFor=function(t){return this.proxies[t.id]},t.prototype.abort=function(){return e(this.xhrs).chain().filter(function(t){return 4!==t.readyState}).invoke("abort"),this},t.prototype.isStubbed=function(){return!!this.isEnabled},t.prototype.enableStubs=function(t){return null==t&&(t=!0),this.isEnabled=t},t.prototype.set=function(t){return null!=t.enable&&this.enableStubs(t.enable),e.extend(this.options,t)},t.prototype.restore=function(){},t.prototype.bindTo=function(e){return t.bindTo(e,function(t){return function(){return t}}(this))},t.bindTo=function(t,n){var r,i,o,s,a;return r=t.XMLHttpRequest,s=r.prototype.send,o=r.prototype.open,i=r.prototype.abort,a=r.prototype.setRequestHeader,n().restore=function(){return t.XMLHttpRequest=r,e.each({send:s,open:o,abort:i,setRequestHeader:a},function(t,e){return r.prototype[e]=t}),{contentWindow:t,XMLHttpRequest:r}},r.prototype.setRequestHeader=function(){var t;return t=n().getProxyFor(this),t.setRequestHeader.apply(t,arguments),a.apply(this,arguments)},r.prototype.abort=function(){var t,e;return this.aborted=!0,t=n().getStack(),e=n().getProxyFor(this),e.aborted=!0,n().options.onAbort(e,t),i.apply(this,arguments)},r.prototype.open=function(e,r,i,s,a){var u,c,l;return null==i&&(i=!0),u=n().getFullyQualifiedUrl(t,r),r=n().options.getUrlOptions(u),c=n().add(this,{method:e,url:decodeURIComponent(r.display)}),l=n().getStubForXhr(this),n().shouldApplyStub(l)&&(r.actual=n().normalizeStubUrl(n().options.xhrUrl,r.actual)),o.call(this,e,r.actual,i,s,a)},r.prototype.send=function(t){var r,i,o,a,u,c;return h(this,"id",this.id),h(this,"testId",n().options.testId),u=n().getStubForXhr(this),n().shouldApplyStub(u)&&n().applyStubProperties(this,u),a=n().getStack(),o=n().getProxyFor(this),o.setRequestBody(t),n().isWhitelisted(this)||n().options.onSend(o,a,u),e.isFunction(n().options.onAnyRequest)&&n().options.onAnyRequest(u,o),c=new Date,i=this.onload,this.onload=function(){var t,r;if(o.setDuration(c),o.setStatus(),o.setResponseHeaders(),o.setResponseBody(),t=o.getFixtureError())return n().options.onFixtureError(o,t);try{e.isFunction(i)&&i.apply(this,arguments),n().options.onLoad(o,u)}catch(r){t=r,n().options.onError(o,t)}return e.isFunction(n().options.onAnyResponse)?n().options.onAnyResponse(u,o):void 0},r=this.onerror,this.onerror=function(){var t,i;try{return e.isFunction(r)&&r.apply(this,arguments),n().options.onNetworkError(o)}catch(i){return t=i,n().options.onError(o,t)}},s.apply(this,arguments)}},t.defaults=function(t){return null==t&&(t={}),e.extend(i,t)},t.XMLHttpRequest=r,t.create=function(e){return new t(e)},t}()}($Cypress,_)}.call(this),function(){!function(t,e){return t.extend({highlightAttr:"data-cypress-el",createSnapshot:function(t){var e;return(null!=t?t.attr:void 0)&&t.attr(this.highlightAttr,!0),e=this.cy.$("body").clone(),e.find("script,iframe,link[rel='stylesheet']").remove(),(null!=t?t.removeAttr:void 0)&&t.removeAttr(this.highlightAttr),e}})}($Cypress,_)}.call(this),function(){$Cypress.Utils=function(t,e){var n,r,i,o;return o=/\[([a-z\s='"-]+)\]/g,i=/\[\/([a-z]+)\]/g,r=/('|")/g,n="_cypressObj",{cypressError:function(t){return t=new Error(t),t.name="CypressError",t},normalizeObjWithLength:function(t){return e(t).has("length")&&(t.Length=t.length,delete t.length),t},filterDelta:function(t,n){return n=this.normalizeObjWithLength(n),t=e.reduce(n,function(n,r,i){return i=i.toLowerCase(),e(t).has(i)&&t[i]!==r&&(n[i]=t[i]),n},{}),e.isEmpty(t)?void 0:t},_stringifyObj:function(t){var n;return t=this.normalizeObjWithLength(t),n=e.reduce(t,function(t){return function(e,n,r){return e.push(r.toLowerCase()+": "+t._stringify(n)),e}}(this),[]),"{"+n.join(", ")+"}"},_stringify:function(t){var n;switch(!1){case!this.hasElement(t):return this.stringifyElement(t,"short");case!e.isFunction(t):return"function(){}";case!e.isArray(t):return n=t.length,n>3?"Array["+n+"]":"["+e.map(t,e.bind(this._stringify,this)).join(", ")+"]";case!e.isRegExp(t):return t.toString();case!e.isObject(t):return n=e.keys(t).length,n>2?"Object{"+n+"}":this._stringifyObj(t);case!e.isUndefined(t):return void 0;default:return""+t}},stringify:function(t){return t=[].concat(t),e.chain(t).map(e.bind(this._stringify,this)).without(void 0).value().join(", ")},hasWindow:function(t){try{return!(!t||!$.isWindow(t[0]))||$.isWindow(t)}catch(e){return!1}},hasElement:function(t){try{return!!(t&&t[0]&&e.isElement(t[0]))||e.isElement(t)}catch(n){return!1}},hasDocument:function(t){try{return!!(t&&9===t.nodeType||t&&t[0]&&9===t[0].nodeType)}catch(e){return!1}},isDescendent:function(t,e){return e?!(t.get(0)!==e.get(0)&&!t.has(e).length):!1},getDomElements:function(t){return(null!=t?t.length:void 0)?1===t.length?t.get(0):e.reduce(t,function(t,e){return t.push(e),t},[]):void 0},stringifyElement:function(t,n){var r,i,o;if(null==n&&(n="long"),this.hasWindow(t))return"<window>";if(this.hasDocument(t))return"<document>";switch(t=e.isElement(t)?$(t):t,n){case"long":return t.clone().empty().prop("outerHTML");case"short":return o=t.prop("tagName").toLowerCase(),(r=t.prop("id"))&&(o+="#"+r),(i=t.prop("class"))&&(o+="."+i.split(/\s+/).join(".")),"<"+o+">"}},plural:function(t,n,r){return t=e.isNumber(t)?t:t.length,t>1?n:r},convertHtmlTags:function(t){return t.replace(o,"<$1>").replace(i,"</$1>")},isInstanceOf:function(t,e){var n,r;try{return t instanceof e}catch(r){return n=r,!1}},escapeQuotes:function(t){return(""+t).replace(r,"\\$1")},getCypressNamespace:function(t){return t&&t[n]},setCypressNamespace:function(t,e){return t[n]=e}}}($Cypress,_)}.call(this),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};!function(e,n){var r,i;return i=/^@.+/,r=/^([@]+)/,e.Cy.extend({assign:function(t,e){return this["private"]("runnable").ctx[t]=e},getNextAlias:function(){var t;return t=this.prop("current").get("next"),t&&"as"===t.get("name")?t.get("args")[0]:void 0},getAlias:function(t,e){var n,r,o;return r=null!=(o=this.prop("aliases"))?o:{},i.test(t)?((n=r[t.slice(1)])||this.aliasNotFoundFor(t,e),n):void 0},_aliasDisplayName:function(t){return t.replace(r,"")},getAvailableAliases:function(){var t;return(t=this.prop("aliases"))?n(t).keys():[]},aliasNotFoundFor:function(e,n){var r;return r=this.getAvailableAliases(),!i.test(e)&&t.call(r,e)>=0&&this.throwErr("Invalid alias: '"+e+"'. You forgot the '@'. It should be written as: '@"+this._aliasDisplayName(e)+"'."),null==n&&(n=this.prop("current").get("name")),this.throwErr("cy."+n+"() could not find a registered alias for: '"+this._aliasDisplayName(e)+"'. Available aliases are: '"+r.join(", ")+"'.")},_getCommandsUntilFirstParentOrValidSubject:function(t,e){return null==e&&(e=[]),t?(e.unshift(t),"parent"===t.get("type")||this._contains(t.get("subject"))?e:this._getCommandsUntilFirstParentOrValidSubject(t.get("prev"),e)):null},_replayFrom:function(e){var r,i,o,s;return r=this.prop("chainerId"),s=function(t){return function(e){return n.each(e,function(e){return e.set("chainerId",r),t.insertCommand(e.clone())})}}(this),i=this._getCommandsUntilFirstParentOrValidSubject(e),i?(o=i.shift(),s(n.reduce(i,function(e,n,r){var i,s;switch(i=function(){return e.push(n)},!1){case"assertion"!==n.get("type"):s=n.get("prev"),t.call(e,s)>=0&&i();break;case n.get("subject")===o.get("subject"):o=n,i()}return e},[o]))):void 0}})}($Cypress,_)}.call(this),function(){!function(t,e){return t.Cy.extend({_elMatchesCommandOptions:function(t,n){var r;switch(r=null!=t?t.length:void 0,!1){case null===n.length:if(e.isFinite(n.length)||this.throwErr("options.length must be a number",n._log),r===n.length)return t;break;case n.exist!==!1:if(!r)return null;break;case n.visible!==!1:if(r&&r===t.filter(":hidden").length)return t;break;case n.visible!==!0:if(r&&r===t.filter(":visible").length)return t;break;default:if(r)return t}return!1},_elCommandOptionsError:function(t,e){switch(!1){case null===e.length:return t.length>e.length?"Too many elements found. Found '"+t.length+"', expected '"+e.length+"':":"Not enough elements found. Found '"+t.length+"', expected '"+e.length+"':";case e.exist!==!1:return"Found existing element:";case!(e.visible===!1&&t.length):return"Found visible element:";default:return t.length?"Could not find visible element:":"Could not find element:"}}})}($Cypress,_)}.call(this),function(){!function(t,e){var n;return n=function(t,e){return{x:Math.floor(t),y:Math.floor(e)}},t.Cy.extend({getElementAtCoordinates:function(t,e){var n,r,i,o;return o=this["private"]("window"),r=t-o.pageXOffset,i=e-o.pageYOffset,n=this["private"]("document").elementFromPoint(r,i),n&&(n=$(n)),n},getBoundingClientRect:function(t){var n,r,i,o;return Element.prototype.getBoundingClientRect?(o=this["private"]("window"),r=t.get(0).getBoundingClientRect(),r=e(r).pick("top","left","width","height"),r.top+=o.pageYOffset,r.left+=o.pageXOffset,i=r.width,n=r.height,r):(r=t.offset(),i=t.outerWidth(),n=t.outerHeight())},getCenterCoordinates:function(t){var e,r;return e=t.left+t.width/2,r=t.top+t.height/2,n(e,r)},getTopLeftCoordinates:function(t){var e,r;return e=t.left,r=t.top,n(e,r)},getTopRightCoordinates:function(t){var e,r;return e=t.left+t.width,r=t.top,n(e,r)},getBottomLeftCoordinates:function(t){var e,r;return e=t.left,r=t.top+t.height,n(e,r)},getBottomRightCoordinates:function(t){var e,r;return e=t.left+t.width,r=t.top+t.height,n(e,r)},getRelativeCoordinates:function(t,e,r){var i;return i=this.getBoundingClientRect(t),e=i.left+e,r=i.top+r,n(e,r)},getCoordinates:function(t,e){var n;switch(null==e&&(e="center"),n=this.getBoundingClientRect(t),e){case"center":return this.getCenterCoordinates(n);case"topLeft":return this.getTopLeftCoordinates(n);case"topRight":return this.getTopRightCoordinates(n);case"bottomLeft":return this.getBottomLeftCoordinates(n);case"bottomRight":return this.getBottomRightCoordinates(n);default:throw new Error("Invalid position argument: '"+e+"'. Position may only be center, topLeft, topRight, bottomLeft, or bottomRight.")}}})}($Cypress,_)}.call(this),function(){!function(t,e,n){var r,i;return r=["exist","exists","visible","length"],i=function(){return!1},t.Cy.extend({ensureSubject:function(){var t,e;return e=this.prop("subject"),null==e&&(t=this.prop("current").get("name"),this.throwErr("Subject is "+e+"!  You cannot call ."+t+"() without a subject.")),e},ensureParent:function(){var t;return t=this.prop("current"),t.get("prev")?void 0:this.throwErr("cy."+t.get("name")+"() is a child command which operates on an existing subject.  Child commands must be called after a parent command!")},ensureVisibility:function(e,n){var r,i;return null==e&&(e=this.ensureSubject()),r=this.prop("current").get("name"),e.length!==e.filter(":visible").length?(i=t.Utils.stringifyElement(e),this.throwErr("cy."+r+"() cannot be called on the non-visible element: "+i,n)):void 0},ensureDom:function(e,n){var r,i;return null==e&&(e=this.ensureSubject()),null==n&&(n=this.prop("current").get("name")),r=t.Utils.hasWindow(e),r||t.Utils.hasElement(e)||(console.warn("Subject is currently: ",e),this.throwErr("Cannot call ."+n+"() on a non-DOM subject!")),r||this._contains(e)||(i=t.Utils.stringifyElement(e),this.throwErr("cy."+n+"() failed because this element you are chaining off of has become detached or removed from the DOM:\n\n"+i+"\n\nhttp://on.cypress.io/element-has-detached-from-dom")),e},ensureElExistance:function(e){return!t.Utils.isInstanceOf(e,n)||e&&e.length?void 0:(i=function(t){return function(){return t.stopListening(t.Cypress,"before:log",i),!1}}(this),this.listenTo(this.Cypress,"before:log",i),t.Chai.expect(e).to.exist)},ensureNoCommandOptions:function(t){return e.each(r,function(n){return function(r){var i;return e.has(t,r)?(i=function(){switch(r){case"exist":case"exists":return t[r]?"exist":"not.exist";case"visible":return t[r]?"be.visible":"not.be.visible";case"length":return"have.length', '"+t[r]}}(),n.throwErr("Command Options such as: '{"+r+": "+t[r]+"}' have been deprecated. Instead write this as an assertion: .should('"+i+"').")):void 0}}(this))},ensureDescendents:function(e,n,r){var i,o;return i=this.prop("current").get("name"),t.Utils.isDescendent(e,n)?void 0:n?(o=t.Utils.stringifyElement(n),this.throwErr("Cannot call ."+i+"() on this element because it is being covered by another element: "+o,r)):this.throwErr("Cannot call ."+i+"() on this element because its center is currently hidden from view.",r)}})}($Cypress,_,$)}.call(this),function(){!function(t,e){return t.Cy.extend({cypressErr:function(e){return t.Utils.cypressError(e)},throwErr:function(t,n){var r;throw e.isString(t)&&(t=this.cypressErr(t)),n&&!e.isFunction(n)&&(r=n,n=function(t){return r.error(t)}),n&&(t.onFail=n),t},commandErr:function(e){var n;return n=this.prop("current"),this.Cypress.Log.command({end:!0,snapshot:!0,error:e,onConsole:function(){var e,r,i;return e={},"parent"!==n.get("type")&&(r=n.get("prev"))?(i=t.Utils.hasElement(r.get("subject"))?t.Utils.getDomElements(r.get("subject")):r.get("subject"),e["Applied To"]=i,e):void 0}})},checkTestErr:function(t){var e;return(e=t.err&&!this.prop("err"))&&this.prop("err",e),this},endedEarlyErr:function(){var t;if(!this.prop("err"))return t=this.cypressErr("Cypress detected your test ended early before all of the commands have run. This can happen if you explicitly done() a test before all of the commands have finished."),t.onFail=function(){},this.fail(t)},fail:function(t){var e,n,r;return null!=(n=this.prop("promise"))&&n.cancel(),e=this.prop("current"),t.onFail?(t.onFail.call(this,t),delete t.onFail):this.commandErr(t),r=this["private"]("runnable"),this.prop("err",t),this.Cypress.trigger("fail",t,r),this.trigger("fail",t,r)}})}($Cypress,_)}.call(this),function(){!function(t,e,n){var r;return r=function(t){return t&&t!==n},t.Cy.extend({getRemotejQueryInstance:function(e){var n,i;return n=this._getRemoteJQuery(),t.Utils.hasElement(e)&&r(n)?(i=n(e),t.Utils.setCypressNamespace(i,e),i):void 0},_getRemoteJQuery:function(){var t;return(t=this.Cypress.option("jQuery"))?t:this["private"]("window").$}})}($Cypress,_,$)}.call(this),function(){!function(t,e){var n;return n=null,t.Cy.extend({offWindowListeners:function(){return n?(n.off(),n=null):void 0},offIframeListeners:function(t){return null!=t?t.off():void 0},bindWindowListeners:function(t){var e;return this.offWindowListeners(),"about:blank"!==t.location.href?(e=$(t),n=e,e.on("submit",function(t){return function(e){return e.isDefaultPrevented()?void 0:(t.submitting(e),t.isReady(!1,"submit"))}}(this)),e.on("beforeunload",function(t){return function(e){return e.isDefaultPrevented()||t._eventHasReturnValue(e)?void 0:(t.isReady(!1,"beforeunload"),t.loading(),t.Cypress.Cookies.setInitial(),t.pageLoading(),t.offWindowListeners(),void t.Cypress.trigger("before:unload"))}}(this)),e.on("hashchange",function(t){return function(){return t.urlChanged(null,{by:"hashchange"})}}(this)),e.get(0).alert=function(t){return console.info("Automatically resolving alert: ",t)},e.get(0).confirm=function(t){return console.info("Confirming 'true' to: ",t),!0}):void 0}})}($Cypress,_)}.call(this),function(){!function(t,e){return t.Cy.extend({prop:function(t,e){return 1===arguments.length?this.props[t]:this.props[t]=e},"private":function(t,e){return 1===arguments.length?this.privates[t]:this.privates[t]=e}})}($Cypress,_)}.call(this),function(){!function(t,e,n){return t.Cy.extend({_retry:function(t,r,i){var o,s,a,u,c,l,h,f;return r._runnableTimeout||(h=null!=(c=r.timeout)?c:this._timeout(),this._clearTimeout()),s=this.prop("current"),null==i&&(i=null!=(l=r._log)?l:null!=s?s.getLastLog():void 0),e.defaults(r,{_runnableTimeout:h,start:new Date,interval:16,retries:0,name:null!=s?s.get("name"):void 0}),r.total=f=new Date-r.start,r.retries+=1,f+r.interval>=r._runnableTimeout&&(i&&i.snapshot(),(o=r.assertions)&&this.finishAssertions(o),u=function(t){switch(!1){case!(t&&t.longMessage):return t.longMessage;case!(t&&t.message):return t.message;default:return t}},a="Timed out retrying: "+u(r.error),this.throwErr(a,r.onFail||i)),n.delay(r.interval).cancellable().then(function(e){return function(){return e.trigger("retry",r),t.call(e)}}(this))}})}($Cypress,_,Promise)}.call(this),function(){!function(t,e){return t.Cy.extend({_timeout:function(t,e){var n;return null==e&&(e=!1),n=this["private"]("runnable"),n||this.throwErr("Cannot call .timeout() without a currently running test!"),t?(t=e?n.timeout()+t:t,n.timeout(t),this):n.timeout()},_clearTimeout:function(){var t;return t=this["private"]("runnable"),t||this.throwErr("Cannot call .clearTimeout() without a currently running test!"),t.clearTimeout(),this}})}($Cypress,_)}.call(this),function(){!function(t,e){return t.Cy.extend({urlChanged:function(t,n){var r,i,o;return null==n&&(n={}),null==t&&(t=this._getLocation("href")),e.isEmpty(t)?void 0:(o=null!=(i=this.prop("urls"))?i:[],r=e.last(o),o.push(t),this.prop("urls",o),this["private"]("url",t),e.defaults(n,{log:!0,by:null,args:null}),n.log&&t!==r&&Cypress.Log.command({name:"new url",message:t,event:!0,type:"parent",end:!0,snapshot:!0,onConsole:function(){var e;return e={Event:"url updated","New Url":t},n.by&&(e["Url Updated By"]=n.by),e.args=n.args,e}}),this.Cypress.trigger("url:changed",t))},pageLoading:function(t){return null==t&&(t=!0),this.Cypress.trigger("page:loading",t)}})}($Cypress,_)}.call(this),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};$Cypress.register("Actions",function(e,n,r,i){var o,s,a,u,c;return c="textarea,:text,[contenteditable],[type=password],[type=email],[type=number],[type=date],[type=week],[type=month],[type=time],[type=datetime],[type=datetime-local],[type=search],[type=url]",a="a[href],link[href],button,input,select,textarea,[tabindex],[contenteditable]",o=50,s=function(){var t;return(t=this.prop("changeEvent"))?t.call(this):void 0},u=function(t){return function(t){return 1!==t.length?null:t[0]}}(this),e.addChildCommand({submit:function(t,r){var s,a,u,c,l,h;return null==r&&(r={}),n.defaults(r,{log:!0,$el:t}),this.ensureDom(r.$el),a=r.$el.get(0),r.log&&(r._log=e.Log.command({$el:r.$el,onConsole:function(){return{"Applied To":$Cypress.Utils.getDomElements(r.$el),Elements:r.$el.length}}}),r._log.snapshot("before",{next:"after"})),r.$el.is("form")||(u=e.Utils.stringifyElement(r.$el),h=e.Utils.plural(r.$el,"contains","is"),this.throwErr(".submit() can only be called on a <form>! Your subject "+h+" a: "+u,r._log)),(c=r.$el.length)&&c>1&&this.throwErr(".submit() can only be called on a single form! Your subject contained "+c+" form elements!",r._log),l=new Event("submit",{bubbles:!0,cancelable:!0}),!!(s=a.dispatchEvent(l)),s&&a.submit(),this._timeout(o,!0),i.delay(o).then(function(t){return function(){var e;return(e=function(){return t.verifyUpcomingAssertions(r.$el,r,{onRetry:e})})()}}(this))},fill:function(t,e,r){return null==r&&(r={}),n.isObject(e)?void 0:this.throwErr("cy.fill() must be passed an object literal as its 1st argument!")},check:function(t,e,n){return this._check_or_uncheck("check",t,e,n)},uncheck:function(t,e,n){return this._check_or_uncheck("uncheck",t,e,n)},focus:function(t,r){var s,u,c,l,h,f;if(null==r&&(r={}),n.defaults(r,{$el:t,error:!0,log:!0,verify:!0}),this.ensureDom(r.$el,"focus"),r.log&&(r._log=e.Log.command({$el:r.$el,onConsole:function(){return{"Applied To":$Cypress.Utils.getDomElements(r.$el)}}})),!r.$el.is(a)&&!$Cypress.Utils.hasWindow(r.$el)){if(r.error===!1)return;c=e.Utils.stringifyElement(r.$el),this.throwErr(".focus() can only be called on a valid focusable element! Your subject is a: "+c,r._log)}if((l=r.$el.length)&&l>1){if(r.error===!1)return;this.throwErr(".focus() can only be called on a single element! Your subject contained "+l+" elements!",r._log)}return f=.9*this._timeout(),s=null,u=!1,h=new i(function(t){return function(e,n){var a;return s=function(){return r.$el.off("focus",a)},a=function(){var n;return u=!0,n=t.prop("forceFocusedEl"),n!==r.$el.get(0)&&t.prop("forceFocusedEl",null),s(),t._timeout(o,!0),i.delay(o).then(e)},r.$el.on("focus",a),r.$el.get(0).focus(),t.defer(function(){var e;if(!u)return e=function(){var e,n;return t.prop("forceFocusedEl",r.$el.get(0)),n=new FocusEvent("focusin",{bubbles:!0,view:t["private"]("window"),relatedTarget:null}),e=new FocusEvent("focus",{view:t["private"]("window"),relatedTarget:null}),r.$el.get(0).dispatchEvent(e),r.$el.get(0).dispatchEvent(n)},t.execute("focused",{log:!1,verify:!1}).then(function(n){return n&&n.get(0)!==r.$el.get(0)?t.execute("blur",{$el:n,error:!1,verify:!1,log:!1}).then(function(){return e()}):e()})["catch"](function(t){return n(t)})})}}(this)),h.timeout(f)["catch"](i.TimeoutError,function(t){return function(e){return s(),r.error!==!1?t.throwErr(".focus() timed out because your browser did not receive any focus events. This is a known bug in Chrome when it is not the currently focused window.",r._log):void 0}}(this)).then(function(t){return function(){var e;return r.verify===!1?r.$el:(e=function(){return t.verifyUpcomingAssertions(r.$el,r,{onRetry:e})})()}}(this))},blur:function(t,r){var a,u;if(null==r&&(r={}),n.defaults(r,{$el:t,error:!0,log:!0,verify:!0,force:!1}),this.ensureDom(r.$el,"blur"),r.log&&(a=e.Utils.filterDelta(r,{force:!1,timeout:null,interval:null}),r._log=e.Log.command({$el:r.$el,message:a,onConsole:function(){return{"Applied To":$Cypress.Utils.getDomElements(r.$el)}}})),(u=r.$el.length)&&u>1){if(r.error===!1)return;this.throwErr(".blur() can only be called on a single element! Your subject contained "+u+" elements!",r._log)}return this.execute("focused",{log:!1,verify:!1}).then(function(t){return function(n){var a,u,c,l,h;if(r.force!==!0&&!n){if(r.error===!1)return;t.throwErr(".blur() can only be called when there is a currently focused element.",r._log)}if(r.force!==!0&&r.$el.get(0)!==n.get(0)){if(r.error===!1)return;c=e.Utils.stringifyElement(n),t.throwErr(".blur() can only be called on the focused element. Currently the focused element is a: "+c,r._log)}return h=.9*t._timeout(),a=null,u=!1,l=new i(function(e){var n;return a=function(){return r.$el.off("blur",n)},n=function(){var n;return u=!0,n=t.prop("blacklistFocusedEl"),n!==r.$el.get(0)&&t.prop("blacklistFocusedEl",null),a(),t._timeout(o,!0),i.delay(o).then(e)},r.$el.on("blur",n),s.call(t),r.$el.get(0).blur(),t.defer(function(){var e,n;if(!u)return t.prop("blacklistFocusedEl",r.$el.get(0)),n=new FocusEvent("focusout",{bubbles:!0,cancelable:!1,view:t["private"]("window"),relatedTarget:null}),e=new FocusEvent("blur",{bubble:!1,cancelable:!1,view:t["private"]("window"),relatedTarget:null}),r.$el.get(0).dispatchEvent(e),r.$el.get(0).dispatchEvent(n)})}),l.timeout(h)["catch"](i.TimeoutError,function(e){return a(),r.error!==!1?t.throwErr(".blur() timed out because your browser did not receive any blur events. This is a known bug in Chrome when it is not the currently focused window.",command):void 0}).then(function(){var e;return r.verify===!1?r.$el:(e=function(){return t.verifyUpcomingAssertions(r.$el,r,{onRetry:e})})()})}}(this))},dblclick:function(t,s){var a,u;return null==s&&(s={}),n.defaults(s,{log:!0}),this.ensureDom(t),u=[],a=function(t){return function(n,i){var a,c,l;return a=r(n),t._timeout(o,!0),s.log&&(c=e.Log.command({$el:a,onConsole:function(){
return{"Applied To":$Cypress.Utils.getDomElements(a),Elements:a.length}}})),t.ensureVisibility(a,c),l=t.execute("focus",{$el:a,error:!1,verify:!1,log:!1}).then(function(){var t;return t=new MouseEvent("dblclick",{bubbles:!0,cancelable:!0}),n.dispatchEvent(t),null}).delay(o).cancellable(),u.push(l),l}}(this),i.resolve(t.toArray()).each(a).cancellable()["return"](t)["catch"](i.CancellationError,function(t){throw n(u).invoke("cancel"),t})},click:function(t,u,c,l){var h,f,p,d,g;switch(null==l&&(l={}),!1){case!n.isObject(u):l=u,p=null;break;case!n.isObject(c):l=c,p=u,c=null,g=null;break;case!n.all([u,c],n.isFinite):p=null,g=u;break;case!n.isString(u):p=u}return n.defaults(l,{$el:t,log:!0,verify:!0,force:!1,multiple:!1,position:p,x:g,y:c,errorOnSelect:!0}),this.ensureDom(l.$el),l.multiple===!1&&l.$el.length>1&&this.throwErr("Cannot call .click() on multiple elements. You tried to click "+l.$el.length+" elements. Pass {multiple: true} if you want to serially click each element."),d=this["private"]("window"),f=[],h=function(t){return function(u,c){var h,p,g,m,v,y,b,w,x;return h=r(u),v={},p=null,l.log&&(m=e.Utils.filterDelta(l,{force:!1,multiple:!1,timeout:null,interval:null}),l._log=e.Log.command({message:m,$el:h}),l._log.snapshot("before",{next:"after"})),l.errorOnSelect&&h.is("select")&&t.throwErr("Cannot call .click() on a <select> element. Use cy.select() command instead to change the value.",l._log),b=function(t){var e;return t.is(a)?t:(e=t.parent(),e.length?b(t.parent()):r(d))},g=function(e,r){var s,a;return v.mouseUp=t.Cypress.Mouse.mouseUp(e,r,d),v.click=t.Cypress.Mouse.click(e,r,d),l._log&&(s=l._log.attributes.onConsole()),a=function(){return s=n.defaults(null!=s?s:{},{"Applied To":$Cypress.Utils.getDomElements(h),Elements:h.length,Coords:r,Options:m}),h.get(0)!==e.get(0)&&(s["Actual Element Clicked"]=$Cypress.Utils.getDomElements(e)),s.groups=function(){return[{name:"MouseDown",items:n(v.mouseDown).pick("preventedDefault","stoppedPropagation")},{name:"MouseUp",items:n(v.mouseUp).pick("preventedDefault","stoppedPropagation")},{name:"Click",items:n(v.click).pick("preventedDefault","stoppedPropagation")}]},s},i.delay(o).then(function(){return l._log&&l._log.set({coords:r,onConsole:a}),l._log&&l.log?l._log.snapshot().end():void 0})["return"](null)},y=function(e){var n,r,o,s,a;return n=function(t,e){return{coords:t,$elToClick:e}},a=function(t){var e,n;return e=t.outerHeight(),n=t.outerWidth(),d.scrollBy(-n,-e),l._log?l._log.set("scrollBy",{x:-n,y:-e}):void 0},s=function(t){return!t||t.is("body,html")?null:"fixed"===t.css("position")?t:s(t.parent())},o=function(i){var o,u,c,h,f;o=t.getElementAtCoordinates(i.x,i.y);try{t.ensureDescendents(e,o,l._log)}catch(h){return c=h,(u=s(o))?(a(u),f=function(){return r(!1)},t._retry(f,l)):(l._log&&l._log.set({onConsole:function(){var t;return t={},t["Tried to Click"]=$Cypress.Utils.getDomElements(e),t["But its Covered By"]=$Cypress.Utils.getDomElements(o),t}}),c.onFail=function(){return l._log?l._log.snapshot():void 0},l.error=c,t._retry(r,l))}return n(i,o)},r=function(i){var s,a,u,c,h;if(null==i&&(i=!0),l.force!==!0)try{t.ensureVisibility(e,l._log)}catch(u){return a=u,h=function(){return r(i)},l.error=a,t._retry(h,l)}if(i&&e.get(0).scrollIntoView(),l.x&&l.y)s=t.getRelativeCoordinates(e,l.x,l.y);else try{s=t.getCoordinates(e,l.position)}catch(c){a=c,t.throwErr(a,l._log)}return l.force?n(s,e):o(s)},i.resolve(r())},x=function(t,e){return t&&p?t.get(0)!==e.get(0)?!0:p.get(0)!==t.get(0)?!0:!1:!0},t._timeout(o,!0),w=y(h).cancellable().then(function(e){var n,r;return n=e.$elToClick,r=e.coords,t.execute("focused",{log:!1,verify:!1}).then(function(e){var i;return p=e,v.mouseDown=t.Cypress.Mouse.mouseDown(n,r,d),v.mouseDown.preventedDefault?g(n,r):(i=b(n),t.execute("focused",{log:!1,verify:!1}).then(function(e){return x(e,i)?(s.call(t),t.execute("focus",{$el:i,error:!1,verify:!1,log:!1}).then(function(){return g(n,r)})):g(n,r)}))})}),f.push(w),w}}(this),i.each(l.$el.toArray(),h).cancellable().then(function(t){return function(){var e;return l.verify===!1?l.$el:(e=function(){return t.verifyUpcomingAssertions(l.$el,l,{onRetry:e})})()}}(this))["catch"](i.CancellationError,function(t){throw n(f).invoke("cancel"),t})},type:function(t,r,s){var a,u,l,h,f,p,d,g;return null==s&&(s={}),n.defaults(s,{$el:t,log:!0,verify:!0,force:!1,delay:10}),this.ensureDom(s.$el),s.log&&(a=e.Utils.filterDelta(s,{force:!1,timeout:null,interval:null,delay:10}),p={},u=function(t,e,n){return p[t]||function(){var r;return p[t]=r={},e&&(r.typed=e,n&&(r.which=n)),r}()},g=function(t,e,n,r,i){var o;return o=u(t,e,i),o[n]=r||"preventedDefault"},l=function(){return n.reduce(n(p).values(),function(t,e,n){return t[n+1]=e,t},{})},s._log=e.Log.command({message:[r,a],$el:s.$el,onConsole:function(){return{Typed:r,"Applied To":$Cypress.Utils.getDomElements(s.$el),Options:a,table:function(){return{name:"Key Events Table",data:l(),columns:["typed","which","keydown","keypress","textInput","input","keyup","change"]}}}}}),s._log.snapshot("before",{next:"after"})),s.$el.is(c)||(h=e.Utils.stringifyElement(s.$el),this.throwErr(".type() can only be called on textarea or :text! Your subject is a: "+h,s._log)),(f=s.$el.length)&&f>1&&this.throwErr(".type() can only be called on a single textarea or :text! Your subject contained "+f+" elements!",s._log),n.isString(r)||n.isFinite(r)||this.throwErr(".type() can only accept a String or Number. You passed in: '"+r+"'",s._log),n.isBlank(r)&&this.throwErr(".type() cannot accept an empty String! You need to actually type something.",s._log),s.chars=""+r,d=function(t){return function(){var e,n;return n=function(){var e,n,r,i,o,a;return i=s.$el.parents("form"),!i.length||(a=function(t){var e,n;return e=t.find("input"),n=t.find("input[type=submit], button[type!=button]"),e.length>1&&0===n.length},a(i)||(e=function(t){return t.length?(t.get(0).click(),!0):!1},o=function(t){return t.find("input[type=submit], button[type!=button]").first()},r=function(t){return t.prop("disabled")},n=o(i),r(n)))?void 0:e(n)?void 0:t.execute("submit",{log:!1,$el:i})},e=function(e){var n,r;return n=document.createEvent("HTMLEvents"),n.initEvent("change",!0,!1),r=s.$el.get(0).dispatchEvent(n),e&&g&&g.call(t,e,null,"change",r),r},t.Cypress.Keyboard.type({$el:s.$el,chars:s.chars,delay:s.delay,window:t["private"]("window"),onBeforeType:function(e){return t._timeout(e*s.delay,!0)},onEvent:function(){return g?g.apply(t,arguments):void 0},onTypeChange:function(){return s.$el.is("[contenteditable]")?void 0:t.prop("changeEvent",function(){return e(),this.prop("changeEvent",null)})},onEnterPressed:function(t,r){return s.$el.is("textarea,[contenteditable]")?void 0:(t&&e(r),n())},onNoMatchingSpecialChars:function(e,n){return"{tab}"===e?t.throwErr("{tab} isn't a supported character sequence. You'll want to use the command: 'cy.tab()' which is not ready yet, but when it is done that's what you'll use.",s._log):t.throwErr("Special character sequence: '"+e+"' is not recognized. Available sequences are: "+n,s._log)}})}}(this),this.execute("focused",{log:!1,verify:!1}).then(function(t){return function(e){return!e||e&&e.get(0)!==s.$el.get(0)?t.execute("click",{$el:s.$el,log:!1,verify:!1,_log:s._log,force:s.force,timeout:s.timeout,interval:s.interval}).then(function(){return d()}):d()}}(this)).then(function(t){return function(){return t._timeout(o,!0),i.delay(o).then(function(){var e;return s.verify===!1?s.$el:(e=function(){return t.verifyUpcomingAssertions(s.$el,s,{onRetry:e})})()})}}(this))},clear:function(t,o){var s;return null==o&&(o={}),n.defaults(o,{log:!0,force:!1}),this.ensureDom(t),s=function(n){return function(i,s){var a,u,l,h;return a=r(i),o.log&&(u=e.Utils.filterDelta(o,{force:!1,timeout:null,interval:null}),o._log=e.Log.command({message:u,$el:a,onConsole:function(){return{"Applied To":$Cypress.Utils.getDomElements(a),Elements:a.length,Options:u}}})),l=e.Utils.stringifyElement(a),a.is(c)||(h=e.Utils.plural(t,"contains","is"),n.throwErr(".clear() can only be called on textarea or :text! Your subject "+h+" a: "+l,o._log)),n.execute("type","{selectall}{del}",{$el:a,log:!1,verify:!1,_log:o._log,force:o.force,timeout:o.timeout,interval:o.interval}).then(function(){return o._log&&o._log.snapshot().end(),null})}}(this),i.resolve(t.toArray()).each(s).cancellable().then(function(e){return function(){var n;return(n=function(){return e.verifyUpcomingAssertions(t,o,{onRetry:n})})()}}(this))},select:function(o,s,a){var u,c,l,h,f,p,d;return null==a&&(a={}),n.defaults(a,{$el:o,log:!0,force:!1}),this.ensureDom(a.$el),a.log&&(u=e.Utils.filterDelta(a,{force:!1,timeout:null,interval:null}),a._log=e.Log.command({message:u,$el:a.$el,onConsole:function(){return{Selected:d,"Applied To":$Cypress.Utils.getDomElements(a.$el),Options:u}}}),a._log.snapshot("before",{next:"after"})),a.$el.is("select")||(l=e.Utils.stringifyElement(a.$el),this.throwErr(".select() can only be called on a <select>! Your subject is a: "+l)),(h=a.$el.length)&&h>1&&this.throwErr(".select() can only be called on a single <select>! Your subject contained "+h+" elements!"),s=[].concat(s),c=a.$el.prop("multiple"),!c&&s.length>1&&this.throwErr(".select() was called with an array of arguments but does not have a 'multiple' attribute set!"),d=[],f=[],p=a.$el.children().map(function(e,n){var i,o;return o=n.value,i=r(n),t.call(s,o)>=0&&(f.push(i),d.push(o)),{value:o,text:i.text(),$el:i}}),d.length||n.each(p.get(),function(e,n){var r;return r=e.text,t.call(s,r)>=0?(f.push(e.$el),d.push(e.value)):void 0}),!c&&d.length>1&&this.throwErr(".select() matched than one option by value or text: "+s.join(", ")),this.execute("click",{$el:a.$el,log:!1,verify:!1,errorOnSelect:!1,_log:a._log,force:a.force,timeout:a.timeout,interval:a.interval}).then(function(t){return function(){return i.resolve(f).each(function(e){return t.execute("click",{$el:e,log:!1,verify:!1,force:!0,timeout:a.timeout,interval:a.interval})}).cancellable().then(function(){var t,e;return a.$el.val(d),e=new Event("input",{bubbles:!0,cancelable:!1}),a.$el.get(0).dispatchEvent(e),t=document.createEvent("HTMLEvents"),t.initEvent("change",!0,!1),a.$el.get(0).dispatchEvent(t)})}}(this)).then(function(t){return function(){var e;return(e=function(){return t.verifyUpcomingAssertions(a.$el,a,{onRetry:e})})()}}(this))}}),e.addParentCommand({focused:function(t){var o,s,a;return null==t&&(t={}),n.defaults(t,{verify:!0,log:!0}),t.log&&(t._log=e.Log.command()),s=function(e){return t.log!==!1?t._log.set({$el:e,onConsole:function(){var t,n;return n=e?$Cypress.Utils.getDomElements(e):"--nothing--",{Returned:n,Elements:null!=(t=null!=e?e.length:void 0)?t:0}}}):void 0},o=function(t){return function(){var e,n,i;try{return e=t["private"]("document"),i=t.prop("forceFocusedEl"),i?t._contains(i)?n=i:t.prop("forceFocusedEl",null):n=e.activeElement,n&&n!==t.prop("blacklistFocusedEl")?(n=r(n),n.is("body")?(s(null),null):(s(n),n)):(s(null),null)}catch(o){return s(null),null}}}(this),(a=function(e){return function(n){return i["try"](o).then(function(n){return t.verify===!1?n:(t.$el=n,e.verifyUpcomingAssertions(null!=n?n:r(null),t,{onRetry:a})["return"](t.$el))})}}(this))(!1)}}),e.Cy.extend({_check_or_uncheck:function(o,s,a,u){var c,l,h;return null==a&&(a=[]),null==u&&(u={}),!n.isArray(a)&&n.isObject(a)?(u=a,a=[]):a=[].concat(a),n.defaults(u,{$el:s,log:!0,force:!1}),this.ensureDom(u.$el),h=function(t){switch(o){case"check":return t.prop("checked");case"uncheck":return!t.prop("checked")}},l=function(t){switch(o){case"check":return t.is(":checkbox,:radio");case"uncheck":return t.is(":checkbox")}},c=function(i){return function(s,c){var f,p,d,g,m,v,y,b;return f=r(s),m={"Applied To":$Cypress.Utils.getDomElements(f),Elements:f.length},u.log&&(d=e.Utils.filterDelta(u,{force:!1,timeout:null,interval:null}),u._log=e.Log.command({message:d,$el:f,onConsole:function(){return n.extend(m,{Options:d})}}),u._log.snapshot("before",{next:"after"})),l(f)||(g=e.Utils.stringifyElement(f),b=e.Utils.plural(u.$el,"contains","is"),v="check"===o?" and :radio":"",i.throwErr("."+o+"() can only be called on :checkbox"+v+"! Your subject "+b+" a: "+g,u._log)),h(f)?(i.ensureVisibility(f,u._log),m.Note="This checkbox was already "+o+"ed. No operation took place.",u._log&&u._log.snapshot().end(),null):(p=i.getCoordinates(f),m.Coords=p,u._log.set("coords",p),!a.length||(y=f.val(),t.call(a,y)>=0)?i.execute("click",{$el:f,log:!1,verify:!1,_log:u._log,force:u.force,timeout:u.timeout,interval:u.interval}).then(function(){return u._log&&u._log.snapshot().end(),null}):void 0)}}(this),i.resolve(u.$el.toArray()).each(c).cancellable().then(function(t){return function(){var e;return(e=function(){return t.verifyUpcomingAssertions(u.$el,u,{onRetry:e})})()}}(this))}})})}.call(this),function(){$Cypress.register("Agents",function(t,e,n){var r;return r=function(t){switch(t){case"spy":return"Spied Obj";case"stub":return"Stubbed Obj";case"mock":return"Mocked Obj"}},t.Cy.extend({agents:function(){return t.Agents.create(this._getSandbox(),{onCreate:function(e){return function(e){return e.type=[e.type,e.count].join("-"),e.callCount=0,t.Log.agent(e)}}(this),onInvoke:function(e){return function(e){var n;return(n=e.log)&&n.set("callCount",n.get("callCount")+1),t.Log.command({name:[e.name,e.count].join("-"),message:e.message,error:e.error,type:"parent",end:!0,snapshot:!0,event:!0,onConsole:function(){var t;return t={},t.Command=null,t.Error=null,t[e.name]=e.agent,t[r(e.name)]=e.obj,t.Calls=e.agent.callCount,t.groups=function(){var t;if(0!==e.callCount)return t={Arguments:e.call.args,Context:e.call.thisValue,Returned:e.call.returnValue},e.error&&(t.Error=e.error.stack),[{name:"Call #"+e.callCount+":",items:t}]},t}})}}(this),onError:function(t){return function(e){return t.throwErr(e)}}(this)})}})})}.call(this),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};$Cypress.register("Aliasing",function(e,n,r){var i;return i=["test","runnable","timeout","slow","skip","inspect"],e.addUtilityCommand({as:function(e,r){var o,s,a,u,c,l;return this.ensureParent(),this.ensureSubject(),o=null!=(c=this.prop("aliases"))?c:{},n.isString(r)||this.throwErr("cy.as() can only accept a string!"),n.isBlank(r)&&this.throwErr("cy.as() cannot be passed an empty string!"),t.call(i,r)>=0&&this.throwErr("cy.as() cannot be aliased as: '"+r+"'. This word is reserved."),u=this.prop("current").get("prev"),u.set("alias",r),a=function(){return n.all(u.get("logs"),function(t){return t.get("alias")!==r})},(s=n.last(this.commands.logs({instrument:"command",event:!1,chainerId:this.prop("chainerId")})))&&a()&&s.set({alias:r,aliasType:$Cypress.Utils.hasElement(e)?"dom":"primitive"}),o[r]={subject:e,command:u,alias:r},this.prop("aliases",o),l=this.getRemotejQueryInstance(e),this.assign(r,null!=l?l:e),e}})})}.call(this),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};$Cypress.register("Angular",function(e,n,r,i){var o;return o=["ng-","ng_","data-ng-","x-ng-"],e.addParentCommand({ng:function(t,r,i){switch(null==i&&(i={}),this["private"]("window").angular||this.throwErr("Angular global (window.angular) was not found in your window! You cannot use .ng() methods without angular."),n.defaults(i,{log:!0}),i.log&&(i._log=e.Log.command()),t){case"model":return this._findByNgAttr("model","model=",r,i);case"repeater":return this._findByNgAttr("repeater","repeat*=",r,i);case"binding":return this._findByNgBinding(r,i)}}}),e.Cy.extend({_findByNgBinding:function(e,i){var o,s,a,u;return u=".ng-binding",o=this["private"]("window").angular,n.extend(i,{verify:!1,log:!1}),s=function(n){var i;return i=n.filter(function(n,r){var i,s;return s=o.element(r).data("$binding"),s?(i=s.exp||s[0].exp||s,t.call(i,e)>=0):void 0}),i.length?i:r(null)},(a=function(t){return function(){return t.execute("get",u,i).then(function(n){return t.verifyUpcomingAssertions(s(n),i,{onRetry:a,onFail:function(t){return t.longMessage="Could not find element for binding: '"+e+"'!"}})})}}(this))()},_findByNgAttr:function(t,e,r,s){var a,u,c,l;return l=[],u="Could not find element for "+t+": '"+r+"'.  Searched ",n.extend(s,{verify:!1,log:!1}),c=n.map(o,function(t){return function(n){var i,o;return o="["+n+e+"'"+r+"']",l.push(o),(i=function(){return t.execute("get",o,s).then(function(e){return t.verifyUpcomingAssertions(e,s,{onRetry:i})})})()}}(this)),u+=l.join(", ")+".",a=function(){return n(c).invoke("cancel")},i.any(c).cancellable().then(function(t){return a(),t})["catch"](i.CancellationError,function(t){throw a(),t})["catch"](i.AggregateError,function(t){return function(e){return t.throwErr(u)}}(this))}})})}.call(this),function(){var t=[].slice;$Cypress.register("Assertions",function(e,n,r,i){var o,s,a,u,c,l,h,f,p,d,g,m,v;return s=/(\[b\])(.+)(\[\\b\])/,u=/\[b\]/g,a=/\[\\b\]/g,o=/\bbut\b/g,d=/exist/,p=/^eventually/,g=/length/,e.on("assert",function(){return this.assert.apply(this,arguments)}),h=function(t){return t=n.escape(t),s.test(t)?t.replace(u,": <strong>").replace(a,"</strong>").split(" :").join(":"):t},c=function(t,e){return e=h(e),t.find("[data-js=message]").html(e)},l=function(t,e){var n;return n=e.length,100>n?void 0:t.css({fontSize:"85%",lineHeight:"14px"})},f=function(t,e,i){var o;return o={actual:e,expected:i},t instanceof r&&(o.subject=t,(n.isUndefined(e)||e!==i)&&(delete o.actual,delete o.expected)),o},v=function(t,e){return i["try"](function(n){return function(){var r;return r=n.getRemotejQueryInstance(t),e.call(n["private"]("runnable").ctx,null!=r?r:t)}}(this))["return"](t)},m=function(){var r,o,s,a,u,c,l,h,f,m,y,b;return y=arguments[0],a=arguments[1],s=3<=arguments.length?t.call(arguments,2):[],n.isFunction(a)?v.apply(this,arguments):(c=e.Chai.expect(y).to,f=a,b=function(t){return function(n){var r,i;return r=t.prop("current"),i=e.Log.command({name:"should",type:"child",message:[].concat(f,s),end:!0,snapshot:!0,error:n}),t.throwErr(n,i)}}(this),a=a.split("."),l=n(a).last(),m=c._obj,h={},p.test(a)&&(u=this.cypressErr("The 'eventually' assertion chainer has been deprecated. This is now the default behavior so you can safely remove this word and everything should work as before."),u.retry=!1,b(u)),(g.test(a)||d.test(a))&&(c.isCheckingExistence=!0),r=function(t,e){var r;if(e!==l)return t[e];if(n.isFunction(t[e]))try{return t[e].apply(t,s)}catch(r){if(u=r,u.retry===!1)return b(u);throw u}},o=function(t){return function(){return!c.isCheckingExistence&&e.Utils.hasElement(y)&&t.ensureDom(y,"should"),n.reduce(a,function(e,n){return n in e||(u=t.cypressErr("The chainer: '"+n+"' was not found. Could not build assertion."),u.retry=!1,b(u)),r(e,n)},c)}}(this),i["try"](o).then(function(){return m!==c._obj?c._obj:y}))},e.addAssertionCommand({should:function(){return m.apply(this,arguments)},and:function(){return m.apply(this,arguments)}}),e.Cy.extend({verifyUpcomingAssertions:function(e,r,o){var s,a,u,c,l,h,f,p,d,g,m,v;return null==r&&(r={}),null==o&&(o={}),c=this.getUpcomingAssertions(),this.prop("upcomingAssertions",c),null==r.assertions&&(r.assertions=[]),l=function(t,e){return n.isUndefined(t)?e:t},d=function(t){return function(){return n.isFunction(o.onPass)?o.onPass.call(t,c):e}}(this),p=function(t){return function(i){var s,a,u,c,h,f;try{t.ensureElExistance(l(r.$el,e))}catch(u){s=u,i=s}if(r.error=i,i.retry===!1)throw i;if(h=o.onFail,f=o.onRetry,!h&&!f)throw i;try{n.isFunction(h)&&h.call(t,i)}catch(c){throw a=c,t.finishAssertions(r.assertions),a}return n.isFunction(f)?t._retry(f,r):void 0}}(this),c.length?(f=0,u=function(t){return n.isFunction(t.get("args")[0])},s=this.assert,this.assert=function(){var e;return e=1<=arguments.length?t.call(arguments,0):[],function(t){return function(e){var n;return n=function(i){var o,s,a,l,h,p;if("assert"===i.get("name"))return t.stopListening(t.Cypress,"before:log",n),h=function(t){return e.log(t),r.assertions.push(t)},e?f+=1:e=c[f-1],u(e)?(l=e.get("assertionIndex"),s=e.get("assertions"),a=function(){return e.set("assertionIndex",l+=1)},(o=s[l])?(a(),o.merge(i),!1):(s.push(i),a(),h(i))):(p=e.getLastLog())?(p.merge(i),!1):h(i)},t.listenTo(t.Cypress,"before:log",n)}}(this)(c[f]),s.apply(this,e.concat(!0))},h=this._injectAssertionFns(c),v=[],m=function(){var t,n,r,i;for(i=[],f=n=0,r=v.length;r>n;f=++n)e=v[f],t=c[f],t.set("subject",e),i.push(t.skip());return i},a=function(t){return function(t,e,n){return e(t).then(function(t){return v[n]=t})}}(this),g=function(t){return function(){return t.prop("upcomingAssertions",[]),t.assert=s}}(this),i.reduce(h,a,e).then(g).then(m).then(function(t){return function(){return t.finishAssertions(r.assertions)}}(this)).then(d).cancellable()["catch"](i.CancellationError,function(){return g()})["catch"](function(t){return function(e){var n,i;if(g(),e.retry===!1){t.finishAssertions(r.assertions);try{t.throwErr(e,r._log)}catch(i){n=i,e=n}}throw e}}(this))["catch"](p)):i["try"](function(t){return function(){return t.ensureElExistance(l(r.$el,e))}}(this)).then(d)["catch"](p)},finishAssertions:function(t){return n.each(t,function(t){var e;return t.snapshot(),(e=t.get("_error"))?t.error(e):t.end()})},_injectAssertionFns:function(t){return n.map(t,n.bind(this._injectAssertion,this))},_injectAssertion:function(t){return function(e){return function(n){return t.get("assertions")||t.set("assertions",[]),t.set("assertionIndex",0),t.get("fn").originalFn.apply(e,[n].concat(t.get("args")))}}(this)},getUpcomingAssertions:function(){var t,e,n,r,i,o,s;for(n=this.prop("current"),r=this.prop("index")+1,t=[],s=this.commands.slice(r).get(),i=0,o=s.length;o>i;i++)if(e=s[i],!e.is("utility")){if(!e.is("assertion")||e.get("chainerId")!==n.get("chainerId"))break;t.push(e)}return t},assert:function(t,r,i,s,h,p,d){var g,m,v,y,b;return null==d&&(d=!1),r&&t&&(r=r.split(o).join("and")),b=f(i,s,h),e.Utils.hasElement(i)&&(b.$el=i),m=function(t){var e;return e=t&&t.get("args")&&t.get("args")[0],e&&n.isFunction(e)&&e.length>0},v=function(t){return t&&t.is("assertion")},g=this.prop("current"),d?b._error=p:(b.end=!0,b.snapshot=!0,b.error=p),y=function(t){return function(e,n){var r;return i===e||v(n)||(null!=(r=t.prop("upcomingAssertions"))?r.length:void 0)>0||m(n)}}(this),n.extend(b,{name:"assert",message:r,passed:t,selector:null!=i?i.selector:void 0,type:function(t,e){return y(e,t)?"child":"parent"},onRender:function(t){var e;return t.find("[data-js=numElements]").remove(),e="command-assertion-failed command-assertion-passed command-assertion-pending",t.removeClass(e).addClass("command-assertion-"+this.state),l(t,this.message),c(t,this.message)},onConsole:function(t){return function(){return b={Command:"assert"},n.extend(b,f(i,s,h)),n.extend(b,{Message:r.replace(u,"").replace(a,"")})}}(this)}),p&&(p.onFail=function(t){}),e.Log.command(b),e}})})}.call(this),function(){var t=[].slice;$Cypress.register("Commands",function(e,n){var r;return r=function(){var r,i,o,s,a;return s=arguments[0],r=2<=arguments.length?t.call(arguments,1):[],o=null!=(a=this.prop("chain"))?a:this,null==o[s]&&(i=n.keys(e.Chainer.prototype).join(", "),this.throwErr("Could not find a command for: '"+s+"'.\n\nAvailable commands are: "+i+".\n")),o[s].apply(o,r)},e.Cy.extend({cmd:function(){return r.apply(this,arguments)},command:function(){return r.apply(this,arguments)}}),["cmd","command"].forEach(function(t){return e.Chainer.inject(t,function(t,e){return r.apply(this,e)})})})}.call(this),function(){$Cypress.register("Communications",function(t,e,n,r){return t.addParentCommand({msg:function(){return this.sync.message.apply(this,arguments)},message:function(n,i,o){return null==o&&(o={}),e.defaults(o,{log:!0}),e.defaults(o,{log:!0}),new r(function(e){return function(r,s){return o.log!==!1&&(o._log=t.Log.command({name:"message",message:t.Utils.stringify([n,i])})),t.trigger("message",n,i,function(t){var a,u,c;if(!(u=t.__error))return o._log&&(o._log.set({onConsole:function(){return{Message:n,"Data Sent":i,"Data Returned":t.response,Logs:t.__logs}}}),o._log.snapshot()),r(t.response);try{return e.throwErr(u,o._log)}catch(c){return a=c,a.__isMessage=!0,t.__name&&(a.name=t.__name),t.__stack&&(a.stack=t.__stack),s(a)}})}}(this))}})})}.call(this),function(){var t=[].slice;$Cypress.register("Connectors",function(e,n,r){var i,o;return e.Cy.extend({isCommandFromMocha:function(t){return!t.get("next")&&2===t.get("args").length&&("done"===t.get("args")[1].name||1===t.get("args")[1].length)}}),o=function(t,n){var i,o,s,a,u,c;if(o=this.prop("current"),this.isCommandFromMocha(o))return this.prop("next",n);u=this.getRemotejQueryInstance(t);try{return i=u||t,i=(null!=i?i._spreadArray:void 0)?i:[i],c=n.apply(this["private"]("runnable").ctx,i),c&&e.Utils.hasElement(c)&&!e.Utils.isInstanceOf(c,r)&&(c=e.cy.$(c)),null!=c?c:t}catch(a){throw s=a}},i=function(){var i,o,s,a,u,c,l,h;return h=arguments[0],o=arguments[1],i=3<=arguments.length?t.call(arguments,2):[],this.ensureParent(),this.ensureSubject(),u={},u._log=e.Log.command({$el:e.Utils.hasElement(h)?h:null,onConsole:function(){return{Subject:h}}}),a=this.prop("current").get("name"),n.isString(o)||this.throwErr("cy."+a+"() only accepts a string as the first argument.",u._log),s=function(t){return function(){var s,c,l,f,p,d,g,m,v,y;v=t.getRemotejQueryInstance(h),m=(v||h)[o],l=function(){return t.throwErr("cy."+a+"() errored because the property: '"+o+"' does not exist on your subject.",u._log)};try{o in(v||h)||l()}catch(c){s=c,n.isUndefined(m)&&l()}return d=function(){var o;return n.isFunction(m)?(o=m.apply(v||h,i),o&&e.Utils.hasElement(o)&&!e.Utils.isInstanceOf(o,r)?t.$(o):o):m},p=function(){return n.isFunction(m)?"."+o+"("+e.Utils.stringify(i)+")":"."+o},f=function(t){return e.Utils.hasElement(t)?e.Utils.getDomElements(t):t},y=d(),u._log&&(g=p(),u._log.set({message:g,onConsole:function(){var t;return t={},n.isFunction(m)?(t.Function=g,i.length&&(t["With Arguments"]=i)):t.Property=g,n.extend(t,{On:f(v||h),Returned:f(y)}),t}})),y}}(this),l=function(t){return function(){return Promise["try"](s)["catch"](function(e){return u.error=e,t._retry(l,u)})}}(this),(c=function(t){return function(){return Promise["try"](l).then(function(e){return t.verifyUpcomingAssertions(e,u,{onRetry:c})})}}(this))()},e.addChildCommand({spread:function(t,e){return n.isArray(t)||this.throwErr("cy.spread() requires the existing subject be an array!"),t._spreadArray=!0,o.call(this,t,e)}}),e.addDualCommand({then:function(){return o.apply(this,arguments)},invoke:function(){return i.apply(this,arguments)},its:function(){return i.apply(this,arguments)}})})}.call(this),function(){$Cypress.register("Cookies",function(t,e,n){var r;return r=function(e){return t.Cookies.clearCookies(e),t.Cookies.getAllCookies()},t.on("test:before:hooks",function(){return r()}),t.addParentCommand({clearCookie:function(n){var i;return e.isString(n)||this.throwErr("cy.clearCookie must be passed a string argument"),i=r(n),t.Log.command({end:!0,snapshot:!0,onConsole:function(){return{cookies:i}}}),i},clearCookies:function(){var e;return e=r(),t.Log.command({end:!0,snapshot:!0,onConsole:function(){return{cookies:e}}}),e}})})}.call(this),function(){$Cypress.register("Debugging",function(t,e,n){return t.on("resume:next",function(){return this.resume(!1)}),t.on("resume:all",function(){return this.resume()}),t.on("pause",function(){var t;return(t=this.prop("chain"))?t.pause():this.pause()}),t.Cy.extend({resume:function(t){var n;return null==t&&(t=!0),n=this.prop("onResume"),e.isFunction(n)?(this.prop("onResume",null),n.call(this,t)):void 0},getNextQueuedCommand:function(){var t;return(t=function(e){return function(n){var r;return r=e.commands.at(n),r&&r.get("skip")?t(n+1):r}}(this))(this.prop("index"))}}),t.addUtilityCommand({pause:function(n){var r;return null==n&&(n={}),$Cypress.isHeadless?this.prop("subject"):(e.defaults(n,{log:!0}),n.log&&(n._log=t.Log.command({snapshot:!0,autoEnd:!1})),r=function(t){return function(e,r){return t.prop("onResume",function(t){return t&&(this.prop("onPaused",null),n.log&&n._log.end()),this._timeout(r),e.call(this)})}}(this),this.prop("onPaused",function(e){var n,i;return n=this.getNextQueuedCommand(),n&&this.isCommandFromMocha(n)?e.call(this):(t.trigger("paused",null!=n?n.get("name"):void 0),i=this._timeout(),this._clearTimeout(),r(e,i))}),this.prop("subject"))},debug:function(n){return null==n&&(n={}),e.defaults(n,{log:!0}),n.log&&(n._log=t.Log.command({snapshot:!0,end:!0})),console.log("\n%c------------------------Cypress Command Info------------------------","font-weight: bold;"),console.log("Runnable:           ",this["private"]("runnable")),console.log("Subject:            ",this.prop("subject")),console.log("Available Aliases:  ",this.getAvailableAliases()),console.log("Pending Requests:   ",this.getPendingRequests()),console.log("Completed Requests: ",this.getCompletedRequests()),this.prop("subject")}})})}.call(this),function(){$Cypress.register("Eval",function(t,e,n,r){return t.on("abort",function(){var t;return this.prop&&null!=(t=this.prop("xhr"))?t.abort():void 0}),t.addParentCommand({eval:function(t,i){var o,s;return null==i&&(i={}),e.defaults(i,{timeout:15e3}),o=this._timeout(),this._timeout(i.timeout),s=this.prop("xhr",n.getJSON("/eval",{code:t})),r.resolve(s).then(function(t){return function(e){try{e=JSON.parse(e)}catch(n){}return t._timeout(o),e}}(this))}})})}.call(this),function(){$Cypress.register("Fixtures",function(t,e,n,r){var i,o,s,a;return i={},a=/^(fx:|fixture:)/,o=function(t){return JSON.parse(JSON.stringify(t))},s=function(e){return function(e){return new r(function(n){return t.trigger("fixture",e,n)})}}(this),t.on("stop",function(){return i={}}),t.addParentCommand({fixture:function(t){var e;return(e=i[t])?r.resolve(o(e)):s(t).then(function(e){return function(n){var r;return(r=n.__error)?e.throwErr(r):(i[t]=n,o(n))}}(this))}}),t.Cy.extend({matchesFixture:function(t){return a.test(t)},parseFixture:function(t){return t.replace(a,"")}})})}.call(this),function(){$Cypress.register("LocalStorage",function(t,e,n){var r;return r=function(e){var n,r;return n=window.localStorage,r=this["private"]("window").localStorage,t.LocalStorage.setStorages(n,r),t.LocalStorage.clear(e),t.LocalStorage.unsetStorages(),r},t.on("test:before:hooks",function(){return r.call(this,[])}),t.addParentCommand({clearLocalStorage:function(n){var i;return!n||e.isString(n)||e.isRegExp(n)||this.throwErr("cy.clearLocalStorage() must be called with either a string or regular expression!"),i=r.call(this,n),t.Log.command({name:"clear ls",snapshot:!0,end:!0}),i}})})}.call(this),function(){$Cypress.register("Location",function(t,e,n){return t.Cy.extend({_getLocation:function(e){var n,r;return r=this["private"]("window").location.toString(),n=t.Location.create(r),e?n[e]:n}}),t.addParentCommand({url:function(n){var r,i;return null==n&&(n={}),e.defaults(n,{log:!0}),n.log!==!1&&(n._log=t.Log.command({message:""})),r=function(t){return function(){return t._getLocation("href")}}(this),(i=function(t){return function(){return Promise["try"](r).then(function(e){return t.verifyUpcomingAssertions(e,n,{onRetry:i})})}}(this))()},hash:function(n){var r,i;return null==n&&(n={}),e.defaults(n,{log:!0}),n.log!==!1&&(n._log=t.Log.command({message:""})),r=function(t){return function(){return t._getLocation("hash")}}(this),(i=function(t){return function(){return Promise["try"](r).then(function(e){return t.verifyUpcomingAssertions(e,n,{onRetry:i})})}}(this))()},location:function(n,r){var i,o;return e.isObject(n)&&e.isUndefined(r)&&(r=n),null==r&&(r={}),e.defaults(r,{log:!0}),i=function(t){return function(){var r,i,o;return r=t._getLocation(),o=e.isString(n)?null!=(i=r[n])?i:t.throwErr("Location object does not have key: "+n):r}}(this),r.log!==!1&&(r._log=t.Log.command({message:null!=n?n:""})),(o=function(t){return function(){return Promise["try"](i).then(function(e){return t.verifyUpcomingAssertions(e,r,{onRetry:o})})}}(this))()}})})}.call(this),function(){$Cypress.register("Misc",function(t,e,n){return t.addDualCommand({end:function(){return null}}),t.addParentCommand({options:function(t){null==t&&(t={});
},noop:function(t){return t},wrap:function(n,r){var i;return null==r&&(r={}),e.defaults(r,{log:!0}),r.log!==!1&&(r._log=t.Log.command(),t.Utils.hasElement(n)&&r._log.set({$el:n})),(i=function(t){return function(){return t.verifyUpcomingAssertions(n,r,{onRetry:i})}}(this))()}})})}.call(this),function(){$Cypress.register("Navigation",function(t,e,n,r){var i;return i=function(e,n){var r;return r=function(t,n){return e.urlChanged(null,{by:t,args:n})},t.Location.override(t,n,r)},t.on("before:window:load",function(t){var n,r,o;return i(this,t),(n=this.prop("current"))?(r=e.last(n.get("args")),null!=r&&null!=(o=r.onBeforeLoad)?o.call(this,t):void 0):void 0}),t.Cy.extend({_href:function(t,e){return t.location.href=e},submitting:function(e,n){return null==n&&(n={}),this.prop("pageChangeEvent",!0),t.Log.command({type:"parent",name:"form sub",message:"--submitting form---",event:!0,end:!0,snapshot:!0,onConsole:function(){return{"Originated From":e.target}}})},loading:function(n){var i,o,s;return null==n&&(n={}),i=this.prop("current"),"visit"!==(null!=i?i.get("name"):void 0)&&this["private"]("runnable")?(this.prop("pageChangeEvent",!0),e.defaults(n,{timeout:t.config("visitTimeout")}),n._log=t.Log.command({type:"parent",name:"page load",message:"--waiting for new page to load---",event:!0,onConsole:function(){return{Notes:"This page event automatically nulls the current subject. This prevents chaining off of DOM objects which existed on the previous page."}}}),o=this._timeout(),this._clearTimeout(),s=this.prop("ready"),s.promise.cancellable().timeout(n.timeout).then(function(e){return function(){var r,i;if(e._timeout(o),t.cy.$("[data-cypress-visit-error]").length)try{e.throwErr("Loading the new page failed.",n._log)}catch(i){r=i,e.fail(r)}else n._log.set("message","--page loaded--").snapshot().end();return null}}(this))["catch"](r.CancellationError,function(t){})["catch"](r.TimeoutError,function(t){return function(e){var r,i;try{return t.throwErr("Timed out after waiting '"+n.timeout+"ms' for your remote page to load.",n._log)}catch(i){return r=i,t.fail(r)}}}(this))):void 0}}),t.addParentCommand({visit:function(n,i){var o,s,a,u,c;return null==i&&(i={}),e.isString(n)||this.throwErr("cy.visit() must be called with a string as its 1st argument"),e.defaults(i,{log:!0,timeout:t.config("visitTimeout"),onBeforeLoad:function(){},onLoad:function(){}}),i.log&&(i._log=t.Log.command()),s=this.Cypress.config("baseUrl"),n=t.Location.getRemoteUrl(n,s),u=this._timeout(),this._clearTimeout(),c=this["private"]("window"),o=this["private"]("$remoteIframe"),a=new r(function(e){return function(r,s){var a;return a=function(n,i,a){return o.one("load",function(){var o,c,l;if(e._timeout(u),null!=(l=a.onLoad)&&l.call(e,n),!t.cy.$("[data-cypress-visit-error]").length)return a._log&&a._log.set({url:i}).snapshot(),r(n);try{return e.throwErr("Could not load the remote page: "+i,a._log)}catch(c){return o=c,s(o)}}),o.prop("src",t.Location.createInitialRemoteSrc(i))},"about:blank"!==e._getLocation("href")?(o.one("load",function(){return a(c,n,i)}),e._href(c,"about:blank")):a(c,n,i)}}(this)),a.timeout(i.timeout)["catch"](r.TimeoutError,function(t){return function(e){return o.off("load"),t.throwErr("Timed out after waiting '"+i.timeout+"ms' for your remote page to load.",i._log)}}(this))}})})}.call(this),function(){$Cypress.register("Querying",function(t,e,n){var r;return r="input[type='submit'], button, a, label",t.addParentCommand({get:function(n,r){var i,o,s,a,u,c,l,h,f,p,d;return null==r&&(r={}),e.defaults(r,{retry:!0,withinSubject:this.prop("withinSubject"),log:!0,command:null,verify:!0}),this.ensureNoCommandOptions(r),c={},p=function(e){return r.log!==!1?null!=r._log?r._log:r._log=t.Log.command({message:n,referencesAlias:"undefined"!=typeof o&&null!==o?o.alias:void 0,aliasType:e,onConsole:function(){return c}}):void 0},u=function(i,s){var a;return null==s&&(s="dom"),r.log!==!1?(e.isObject(r._log)||p(s),a={},"dom"===s&&e.extend(a,{$el:i,numRetries:r.retries}),a.onConsole=function(){var r;switch(r=o?"Alias":"Selector",c[r]=n,s){case"dom":e.extend(c,{Returned:t.Utils.getDomElements(i),Elements:null!=i?i.length:void 0});break;case"primitive":e.extend(c,{Returned:i});break;case"route":e.extend(c,{Returned:i})}return c},r._log.set(a)):void 0},(o=this.getAlias(n.split(".")[0]))?(d=o.subject,i=o.alias,s=o.command,(l=function(o){return function(){var a,c,h,f;switch(!1){case!t.Utils.hasElement(d):return h=!1,c=function(){return o._replayFrom(s),null},o._contains(d)||(d=d.filter(function(t,e){return cy._contains(e)}),d.length)?(u(d),o.verifyUpcomingAssertions(d,r,{onFail:function(t){return"length"===t.type&&t.actual<t.expected?h=!0:void 0},onRetry:function(){return h?c():l()}})):c();case"route"!==s.get("name"):return i=e.compact([i,n.split(".")[1]]).join("."),f=null!=(a=o.getResponsesByAlias(i))?a:null,u(f,"route"),f;default:return u(d,"primitive"),d}}}(this))()):(p("dom"),f=function(e){return r.log!==!1?(c.Returned=t.Utils.getDomElements(e),c.Elements=null!=e?e.length:void 0,r._log.set({$el:e})):void 0},a=function(t){return function(){var i,o,s,a,c;try{i=t.$(n,r.withinSubject)}catch(s){throw o=s,o.onFail=function(){return r._log.error(o)},o}return!i.length&&r.withinSubject&&r.filter&&(a=r.withinSubject.filter(n),a.length&&(i=a)),f(i),e.isFunction(r.onRetry)?(c=r.onRetry.call(t,i))?(u(i),c):void 0:(u(i),i)}}(this),(h=function(t){return function(){return Promise["try"](a).then(function(e){return r.verify===!1?e:t.verifyUpcomingAssertions(e,r,{onRetry:h})})}}(this))())},root:function(n){var r,i;return null==n&&(n={}),e.defaults(n,{log:!0}),n.log!==!1&&(n._log=t.Log.command({message:""})),r=function(t){return n.log&&n._log.set({$el:t}),t},(i=this.prop("withinSubject"))?r(i):this.execute("get","html",{log:!1}).then(r)}}),t.addDualCommand({contains:function(i,o,s,a){var u,c,l,h,f,p,d,g,m;switch(null==a&&(a={}),i&&!t.Utils.hasElement(i)&&(i=null),!1){case!e.isObject(s):a=s,s=o,o="";break;case!e.isUndefined(s):s=o,o=""}return e.defaults(a,{log:!0}),this.ensureNoCommandOptions(a),e.isString(s)||e.isFinite(s)||this.throwErr("cy.contains() can only accept a string or number!"),e.isBlank(s)&&this.throwErr("cy.contains() cannot be passed an empty string!"),f=function(e,n){var r;switch(!1){case!o:return"within the selector: '"+o+"' ";case!i:return r=t.Utils.stringifyElement(i,"short"),"within the element: "+r+" ";default:return""}},c=function(t){var e,n,r;switch(r=t.type,e=t.negated,n=t.node,r){case"existence":return e?"Expected not to find content: '"+s+"' "+f(r,e)+"but continuously found it.":"Expected to find content: '"+s+"' "+f(r,e)+"but never did."}},a.log!==!1&&(p={Content:s,"Applied To":t.Utils.getDomElements(i||this.prop("withinSubject"))},a._log=t.Log.command({message:e.compact([o,s]),type:i?"child":"parent",onConsole:function(){return p}})),h=e.extend(e.clone(a),{withinSubject:i||this.prop("withinSubject")||this.$("body"),filter:!0,log:!1,verify:!1}),m=function(e){return a.log!==!1?(p.Returned=t.Utils.getDomElements(e),p.Elements=null!=e?e.length:void 0,a._log.set({$el:e})):void 0},l=function(t,e){var i,o,s;return null==e&&(e=0),i=t.slice(e,e+1),o=t.slice(e+1,e+2),o?n.contains(i.get(0),o.get(0))?l(t,e+1):i.is(r)?i:(s=t.filter(i.parents(r)),s.length?s.last():i):i},s=t.Utils.escapeQuotes(s),g=o+":not(script):contains('"+s+"'), "+o+"[type='submit'][value~='"+s+"']",u=function(t,e){if(!(0!==t||e&&e.length))throw new Error},(d=function(t){return function(){return t.execute("get",g,h).then(function(e){var n;return n=function(){switch(!1){case!(e&&e.length&&o):return e.last();case!(e&&e.length):return l(e);default:return e}}(),m(n),t.verifyUpcomingAssertions(n,a,{onRetry:d,onFail:function(e){switch(e.type){case"length":if(e.expected>1)return t.throwErr("cy.contains() cannot be passed a length option because it will only ever return 1 element.",a._log);break;case"existence":return e.longMessage=c(e)}}})})}}(this))()}}),t.addChildCommand({within:function(n,r,i){var o,s,a,u;return this.ensureDom(n),e.isUndefined(i)&&(i=r,r={}),e.defaults(r,{log:!0}),r.log&&(r._log=t.Log.command({$el:n,message:""})),e.isFunction(i)||this.throwErr("cy.within() must be called with a function!",r._log),o=this.prop("current").get("next"),s=this.prop("withinSubject"),this.prop("withinSubject",n),i.call(this["private"]("runnable").ctx,n),u=function(t){return function(){return t.off("command:start",a)}}(this),a=function(t){return t===o?(o!==this.prop("nextWithinSubject")&&(this.prop("withinSubject",s||null),this.prop("nextWithinSubject",o)),u()):void 0},o?this.on("command:start",a):this.once("end",function(){return u(),this.prop("withinSubject",null)}),n}})})}.call(this),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},e=[].slice;$Cypress.register("Request",function(n,r,i){var o,s,a,u,c,l,h,f;return a=/^2/,h=/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS)$/,c="body auth headers json cookies".split(" "),s={log:!0,body:null,auth:null,headers:null,json:!1,cookies:!1,gzip:!0,failOnStatus:!0,method:"GET"},l=function(t){return function(t){return new Promise(function(e){return n.trigger("request",t,e)})}}(this),o=function(t){return r.isString(t)&&h.test(t.toUpperCase())},u=function(t){return r.isObject(t)&&!r.isFunction(t)},f=function(e,n){return!e&&t.call(c,n)>=0},n.addParentCommand({request:function(){var t,i,c,p,d,g,m,v;switch(i=1<=arguments.length?e.call(arguments,0):[],g=d={},!1){case!r.isObject(i[0]):r.extend(g,i[0]);break;case 1!==i.length:d.url=i[0];break;case 2!==i.length:o(i[0])?(d.method=i[0],d.url=i[1]):(d.url=i[0],d.body=i[1]);break;case 3!==i.length:d.method=i[0],d.url=i[1],d.body=i[2]}if(r.defaults(g,s,{timeout:n.config("requestTimeout")}),g.method=g.method.toUpperCase(),h.test(g.method)||this.throwErr("cy.request() was called with an invalid method: '"+d.method+"'.  Method can only be: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS"),g.url||this.throwErr("cy.request requires a url. You did not provide a url."),r.isString(g.url)||this.throwErr("cy.request requires the url to be a string."),m=this._getLocation("origin")||this.Cypress.config("baseUrl"),g.url=n.Location.getRemoteUrl(g.url,m),n.Location.isFullyQualifiedUrl(g.url)||this.throwErr("cy.request must be provided a fully qualified url - one that begins with 'http'. By default cy.request will use either the current window's origin or the 'baseUrl' in cypress.json. Neither of those values were present."),u(g.body)&&(g.json=!0),g=r.omit(g,f),(t=g.auth)&&(r.isObject(t)||this.throwErr("cy.request must be passed an object literal for the 'auth' option.")),(p=g.headers)&&(r.isObject(p)?g.headers=p:this.throwErr("cy.request requires headers to be an object literal.")),c=g.cookies)switch(!1){case!(r.isObject(c)&&!r.isArray(c)&&!r.isFunction(c)):g.cookies=c;break;case c!==!0:g.cookies=n.Cookies.getAllCookies();break;default:this.throwErr("cy.request requires cookies to be true, or an object literal.")}return r.isBoolean(g.gzip)||this.throwErr("cy.request requires gzip to be a boolean."),v=r(g).pick("method","url","body","headers","cookies","json","auth","gzip"),g.log&&(g._log=n.Log.command({message:"",onConsole:function(){return{Request:v,Returned:g.response}},onRender:function(t){var e,n,i;return i=function(){switch(!1){case!(n=g.response):return n.status;default:return e="pending","---"}}(),null==e&&(e=a.test(i)?"successful":"bad"),t.find(".command-message").html(function(){return["<i class='fa fa-circle "+e+"'></i>"+g.method,i,r.truncate(g.url,25)].join(" ")})}})),this._clearTimeout(),l(v).timeout(g.timeout).then(function(t){return function(e){var n;return g.response=e,(n=e.__error)&&t.throwErr(n,g._log),g.failOnStatus&&!a.test(e.status)&&t.throwErr("cy.request failed because the response had the status code: "+e.status,g._log),e}}(this))["catch"](Promise.TimeoutError,function(t){return function(e){return t.throwErr("cy.request timed out waiting '"+g.timeout+"ms' for a response. No response ever occured.",g._log)}}(this))}})})}.call(this),function(){$Cypress.register("Sandbox",function(t,e,n){var r;return r=function(t){return t.format=function(){return""},t.sandbox.create()},t.on("restore",function(){var t;if(this.prop)return(t=this.prop("sandbox"))?t.restore():void 0}),t.Cy.extend({_getSandbox:function(){var t,e,n;return n=this["private"]("window").sinon,n||this.throwErr("Could not access the Server, Routes, Stub, Spies, or Mocks. Check to see if your application is loaded and is visible. Please open an issue if you see this message."),e=null!=(t=this.prop("sandbox"))?t:r(n),this.prop("sandbox",e)}})})}.call(this),function(){$Cypress.register("Traversals",function(t,e,n){var r;return r="find filter not children eq closest first last next parent parents prev siblings".split(" "),e.each(r,function(n){return t.addChildCommand(n,function(r,i,o,s){var a,u,c,l;return this.ensureDom(r),e.isObject(o)&&(s=o),e.isObject(i)&&(s=i),null==s&&(s={}),e.defaults(s,{log:!0}),this.ensureNoCommandOptions(s),u=function(){var t;return t=e([i,o]).chain().reject(e.isFunction).reject(e.isObject).value(),t=e(t).without(null,void 0),t.join(", ")},c={Selector:u(),"Applied To":$Cypress.Utils.getDomElements(r)},s.log!==!1&&(s._log=t.Log.command({message:u(),onConsole:function(){return c}})),l=function(e){return s.log!==!1?(c.Returned=t.Utils.getDomElements(e),c.Elements=null!=e?e.length:void 0,s._log.set({$el:e})):void 0},(a=function(t){return function(){var e,c,h;try{e=r[n].call(r,i,o),e.selector=u()}catch(h){throw c=h,c.onFail=function(){return s._log.error(c)},c}return l(e),t.verifyUpcomingAssertions(e,s,{onRetry:a,onFail:function(t){var e;return"existence"===t.type?(e=$Cypress.Utils.stringifyElement(r,"short"),t.longMessage+=" Queried from element: "+e):void 0}})}}(this))()})})})}.call(this),function(){$Cypress.register("Waiting",function(t,e,n,r){return t.addDualCommand({wait:function(t,n,r){var i;switch(null==r&&(r={}),null==n&&(n=1e9),e.isString(r)&&this.throwErr("cy.wait() was passed invalid arguments. You cannot pass multiple strings. If you're trying to wait for multiple routes, use an array."),e.defaults(r,{log:!0}),i=[t,n,r],!1){case!e.isNumber(n):return this._waitNumber.apply(this,i);case!e.isFunction(n):return this._waitFunction.apply(this,i);case!e.isString(n):return this._waitString.apply(this,i);case!e.isArray(n):return this._waitString.apply(this,i);default:return this.throwErr("wait() must be invoked with either a number, a function, or an alias for a route!")}}}),t.Cy.extend({_waitNumber:function(e,n,i){return this._timeout(n,!0),i.log!==!1&&(i._log=t.Log.command({onConsole:function(){return{"Waited For":n+"ms before continuing",Returned:e}}})),r.delay(n)["return"](e)},_waitFunction:function(t,e,n){return this.throwErr("cy.wait(fn) has been deprecated. Instead just change this command to be .should(fn).")},_waitString:function(n,i,o){var s,a,u,c;return o.log!==!1&&(o._log=t.Log.command({type:"parent",aliasType:"route"})),a=function(t){return function(n){var r,i;return i=null!=(r=t.prop("aliasRequests"))?r:{},null==i[n]&&(i[n]=0),i[n]+=1,t.prop("aliasRequests",i),e.ordinalize(i[n])}}(this),s=function(t,e,n){var r,i;return i=this.getLastXhrByAlias(t),r=this.getXhrTypeByAlias(t),i?i:(null==n.error&&(n.error="cy.wait() timed out waiting for the "+a(t)+" "+r+" to the route: '"+e+"'. No "+r+" ever occured."),null==n.runnableTimeout&&(n.runnableTimeout=this._timeout()),this._clearTimeout(),this._retry(function(){return s.call(this,t,e,n)},n))},u=function(t){var n,r,i,a,u,c,l,h;return u=t.split("."),t=u[0],h=u[1],(r=this.getAlias(t))?(n=r.alias,a=r.command,t=e.compact([n,h]).join("."),o._log&&(l=null!=(c=o._log.get("referencesAlias"))?c:[],i=[].concat(l),i.push(t),o._log.set("referencesAlias",i)),"route"!==a.get("name")&&this.throwErr("cy.wait() can only accept aliases for routes.  The alias: '"+n+"' did not match a route.",o._log),s.call(this,t,n,e.clone(o))):this.aliasNotFoundFor(t)},c=[],r.map([].concat(i),function(t){return function(e){var n;return n=r.resolve(u.call(t,e)),c.push(n),n}}(this)).then(function(t){var e;return e=1===t.length?t[0]:t,o._log&&(o._log.set("onConsole",function(){return{"Waited For":this.referencesAlias.join(", "),Returned:e}}),o._log.snapshot().end()),e})["catch"](function(t){throw e(c).invoke("cancel"),t})}})})}.call(this),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};$Cypress.register("Window",function(e,n,r){var i,o;return o={"macbook-15":"1440x900","macbook-13":"1280x800","macbook-11":"1366x768","ipad-2":"1024x768","ipad-mini":"1024x768","iphone-6+":"414x736","iphone-6":"375x667","iphone-5":"320x568","iphone-4":"320x480","iphone-3":"320x480"},i=["landscape","portrait"],e.addParentCommand({title:function(t){var r;return null==t&&(t={}),n.defaults(t,{log:!0}),t.log&&(t._log=e.Log.command()),(r=function(e){return function(){return e.execute("get","title",{log:!1,verify:!1}).then(function(n){return t.$el=n.filter("head title"),t.$el.selector=n.selector,e.verifyUpcomingAssertions(t.$el.text(),t,{onRetry:r})})}}(this))()},window:function(t){var r,i,o;return null==t&&(t={}),n.defaults(t,{log:!0}),t.log&&(t._log=e.Log.command()),r=function(e){return function(){var n;return n=e["private"]("window"),n||e.throwErr("The remote iframe is undefined!",t._log),n}}(this),i=function(e){return function(){return Promise["try"](r)["catch"](function(n){return t.error=n,e._retry(i,t)})}}(this),(o=function(e){return function(){return Promise["try"](i).then(function(n){return e.verifyUpcomingAssertions(n,t,{onRetry:o})})}}(this))()},document:function(t){var r,i,o;return null==t&&(t={}),n.defaults(t,{log:!0}),t.log&&(t._log=e.Log.command()),r=function(t){return function(){var e;return e=t["private"]("window"),(null!=e?e.document:void 0)||t.throwErr("The remote iframe's document is undefined!"),e.document}}(this),i=function(e){return function(){return Promise["try"](r)["catch"](function(n){return t.error=n,e._retry(i,t)})}}(this),(o=function(e){return function(){return Promise["try"](i).then(function(n){return e.verifyUpcomingAssertions(n,t,{onRetry:o})})}}(this))()},doc:function(){return this.sync.document()},viewport:function(r,s,a){var u,c,l,h,f,p,d,g,m,v,y;switch(null==a&&(a={}),n.isObject(s)&&(a=s),n.defaults(a,{log:!0}),a.log&&(a._log=e.Log.command({onConsole:function(){var t;return t={},p&&(t.Preset=p),t.Width=m,t.Height=l,t}})),d=function(t){return function(){return t.throwErr("cy.viewport can only accept a string preset or a width and height as numbers.",a._log)}}(this),v=function(t,e){return n.all([t,e],function(t){return n.isNumber(t)&&n.isFinite(t)})},y=function(t,e){return n.all([t,e],function(t){return t>200&&3e3>t})},!1){case!(n.isString(r)&&n.isBlank(r)):this.throwErr("cy.viewport cannot be passed an empty string.",a._log);break;case!n.isString(r):c=function(t){return function(e){var i,s,u;try{return n(o[r].split("x")).map(Number)}catch(s){return i=s,u=n.keys(o).join(", "),t.throwErr("cy.viewport could not find a preset for: '"+e+"'. Available presets are: "+u,a._log)}}}(this),f=function(e){return function(n){var r;return t.call(i,n)<0&&(r=i.join("' or '"),e.throwErr("cy.viewport can only accept '"+r+"' as valid orientations. Your orientation was: '"+n+"'",a._log)),"landscape"===n}}(this),p=r,h=s,u=c(p),n.isString(h)&&f(h)&&u.reverse(),m=u[0],l=u[1];break;case!v(r,s):m=r,l=s,y(m,l)||this.throwErr("cy.viewport width and height must be between 200px and 3000px.",a._log);break;default:d()}return this.Cypress.config("viewportWidth",m),this.Cypress.config("viewportHeight",l),g={viewportWidth:m,viewportHeight:l},e.trigger("viewport",g),a._log&&a._log.set(g),null}})})}.call(this),function(){var t=[].slice;$Cypress.register("XHR2",function(e,n){var r,i,o,s,a,u,c,l,h,f,p,d,g,m;return m=/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS)$/i,c=/\.request$/,g=/^(\d+|all)$/,l=null,s=function(){return null!=l?l:d.call(this)},r=function(){return l?l.abort():void 0},u=function(t,e){return!n.isObject(t)&&!n.isObject(e)||n.isRegExp(t)||n.isString(t)},a=function(t){return t.originalUrl||t.url},d=function(){return this.throwErr("The XHR server is unavailable or missing. This should never happen and likely is a bug. Open an issue if you see this message.")},o=function(t){return t&&t.stub!==!1?"xhr stub":"xhr"},p=function(t){var n;return n=e.Location.parse(t),t.replace(n.origin,"")},h=function(t,e){var n,r;return r=null!=(n=this.prop("requests"))?n:[],r.push({xhr:t,alias:e}),this.prop("requests",r)},f=function(t){var e,r,i;return e=n.findWhere(this.prop("requests"),{xhr:t}),i=null!=(r=this.prop("responses"))?r:[],i.push({xhr:t,alias:null!=e?e.alias:void 0}),this.prop("responses",i)},i={method:void 0,status:void 0,stub:void 0,delay:void 0,headers:void 0,response:void 0,autoRespond:void 0,waitOnResponses:void 0,onRequest:void 0,onResponse:void 0},e.on("before:unload",function(){return l?l.abort():void 0}),e.on("abort",r),e.on("test:before:hooks",function(t){return null==t&&(t={}),r(),l=this.startXhrServer(t.id)}),e.on("before:window:load",function(t){return l?$Cypress.Server.bindTo(t,n.bind(s,this)):d.call(this)}),e.Cy.extend({getXhrServer:function(){var t;return null!=(t=this.prop("server"))?t:d.call(this)},startXhrServer:function(t){var r,i;return i={},r=this,this.prop("server",$Cypress.Server.create({testId:t,xhrUrl:this.Cypress.config("xhrUrl"),stripOrigin:p,getUrlOptions:function(t){return function(n){var r,i,o;switch(o=e.Location.parse(n).origin,r=e.Location.parse(window.location.href).origin,i=t._getLocation("origin"),!1){case o!==r:return{actual:p(n),display:e.Location.resolve(i||r,p(n))};case o!==i:return{actual:p(n),display:n};default:return{actual:"/"+n,display:n}}}}(this),onSend:function(t){return function(r,s,a){var u,c,l,f;return u=null!=a?a.alias:void 0,h.call(t,r,u),(f=a&&a.log)&&(l=f.get("numResponses"),f.set("numResponses",l+1)),i[r.id]=c=e.Log.command({message:"",name:"xhr",displayName:o(a),alias:u,aliasType:"route",type:"parent",event:!0,onConsole:function(){var t;return t={Alias:u,Method:r.method,URL:r.url,"Matched URL":null!=a?a.url:void 0,Status:r.statusMessage,Duration:r.duration,Request:r.request,Response:r.response,XHR:r.getXhr()},a&&a.is404&&(t.Note="The Method + URL for this request did not match any of your routes. It was automatically sent back '404'. Setting cy.server({force404: false}) will turn off this behavior."),t.groups=function(){return[{name:"Initiator",items:[s],label:!1}]},t},onRender:function(t){var e,i;return i=function(){switch(!1){case!r.aborted:return e="aborted","(aborted)";case!(r.status>0):return r.status;default:return e="pending","---"}}(),null==e&&(e=/^2/.test(i)?"successful":"bad"),t.find(".command-message").html(function(){return["<i class='fa fa-circle "+e+"'></i>"+r.method,i,n.truncate(p(r.url),20)].join(" ")})}}),c.snapshot("request")}}(this),onLoad:function(t){return function(e){var n;return f.call(t,e),(n=i[e.id])?n.snapshot("response").end():void 0}}(this),onNetworkError:function(t){var e,n;return e=r.cypressErr("The network request for this XHR could not be made. Check your console for the reason."),(n=i[t.id])?n.snapshot("failed").error(e):void 0},onFixtureError:function(t,e){return e=r.cypressErr(e),this.onError(t,e)},onError:function(t){return function(e,n){var r;return n.onFail=function(){},(r=i[e.id])&&r.snapshot("error").error(n),t.fail(n)}}(this),onAbort:function(t){return function(e,n){var r,o;return f.call(t,e),r=new Error("This XHR was aborted by your code -- check this stack trace below."),r.name="AbortError",r.stack=n,(o=i[e.id])?o.snapshot("aborted").error(r):void 0}}(this),onAnyRequest:function(t){return function(e,r){return e&&n.isFunction(e.onRequest)?e.onRequest.call(t,r):void 0}}(this),onAnyResponse:function(t){return function(e,r){return e&&n.isFunction(e.onResponse)?e.onResponse.call(t,r):void 0}}(this)}))}}),e.addParentCommand({server:function(t){return 0===arguments.length&&(t={}),n.isObject(t)||this.throwErr("cy.server() accepts only an object literal as its argument!"),n.defaults(t,{enable:!0}),this.prop("serverIsStubbed",t.enable),this.getXhrServer().set(t)},route:function(){var r,o,s,c,l,h,f;switch(s=1<=arguments.length?t.call(arguments,0):[],this.prop("serverIsStubbed")||this.throwErr("cy.route() cannot be invoked before starting the cy.server()"),f=function(t){return function(){return t.throwErr("cy.route() must be called with a response.")}}(this),h=l=this.getXhrServer().getOptions(),c=function(){return h.stub!==!1},!1){case!(n.isObject(s[0])&&!n.isRegExp(s[0])):h=l=n.extend({},h,s[0]);break;case 0!==s.length:this.throwErr("cy.route() must be given a method, url, and response.");break;case 1!==s.length:c()?f():l.url=s[0];break;case 2!==s.length:c()?(l.url=s[0],l.response=s[1],n.isString(l.url)&&m.test(l.url)&&c()&&f()):(l.method=s[0],l.url=s[1]);break;case 3!==s.length:m.test(s[0])||u(s[1],s[2])?(l.method=s[0],l.url=s[1],l.response=s[2]):(l.url=s[0],l.response=s[1],n.extend(l,s[2]));break;case 4!==s.length:l.method=s[0],l.url=s[1],l.response=s[2],n.extend(l,s[3])}return n.isString(l.method)&&(l.method=l.method.toUpperCase()),n.defaults(h,i),h.url||this.throwErr("cy.route() must be called with a url. It can be a string or regular expression."),n.isString(h.url)||n.isRegExp(h.url)||this.throwErr("cy.route() was called with a invalid url. Url must be either a string or regular expression."),m.test(h.method)||this.throwErr("cy.route() was called with an invalid method: '"+l.method+"'.  Method can only be: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS"),n.has(h,"response")&&null==h.response&&c()&&this.throwErr("cy.route() cannot accept an undefined or null response. It must be set to something, even an empty string will work."),"*"===h.url&&(h.originalUrl="*",h.url=/.*/),(r=this.getNextAlias())&&(h.alias=r),n.isString(l.response)&&(o=this.getAlias(l.response,"route"))&&(h.response=o.subject),h.log=e.Log.route({method:h.method,url:a(h),status:h.status,response:h.response,alias:h.alias,numResponses:0,onConsole:function(){return{Method:h.method,URL:a(h),Status:h.status,Response:h.response,Alias:h.alias}}}),this.getXhrServer().stub(h)}}),e.Cy.extend({getPendingRequests:function(){var t,e;return(t=this.prop("requests"))?(e=this.prop("responses"))?n.difference(t,e):t:[]},getCompletedRequests:function(){var t;return null!=(t=this.prop("responses"))?t:[]},_getLastXhrByAlias:function(t,e){var n,r,i,o,s,a;for(a=null!=(s=this.prop(e))?s:[],o="_has"+e+"BeenWaitedOn",n=0,r=a.length;r>n;n++)if(i=a[n],!i[o]&&i.alias===t)return i[o]=!0,i.xhr},getResponsesByAlias:function(t){var e,r,i;return i=t.split("."),t=i[0],r=i[1],r&&!g.test(r)&&this.throwErr("'"+r+"' is not a valid alias property. Only 'numbers' or 'all' is permitted."),"0"===r&&this.throwErr("'0' is not a valid alias property. Are you trying to ask for the first response? If so write @"+t+".1"),e=n(this.prop("responses")).chain().where({alias:t}).pluck("xhr").value(),"all"===r?e:r?e[n.toNumber(r)-1]:n.last(e)},getLastXhrByAlias:function(t){var e,n,r;if(n=t.split("."),r=n[0],e=n[1],e){if("request"===e)return this._getLastXhrByAlias(r,"requests");this.throwErr("'"+e+"' is not a valid alias property. Are you trying to ask for the first request? If so write @"+r+".request")}return this._getLastXhrByAlias(t,"responses")},getXhrTypeByAlias:function(t){return c.test(t)?"request":"response"}})})}.call(this),function(){!function(t,e,n){var r,i,o,s,a,u,c;return c=/\[(.{3})\]$/,r=$Cypress.create(),r.start(),u=Mocha.prototype.run,i=n.connect({path:"/__socket.io"}),i.on("generate:ids:for:test",function(e,n){var r;return t("iframe").remove(),r=t("<iframe>",{src:"/__cypress/iframes/"+n,load:function(){var t;return t=this.contentWindow.mocha,this.contentWindow.Mocha.prototype.run.call(t,e,i,function(){return i.emit("finished:generating:ids:for:test",n)})}}),r.appendTo(t("body"))}),Mocha.prototype.run=function(e,n,r){var i;return i=[],a(this.suite,e,n,i),t.when.apply(t,i).done(r)},a=function(t,n,r,i){return e.each([t.tests,t.suites],function(t){return function(t){return e.each(t,function(t){return o(t,n,r,i)})}}(this))},o=function(n,r,i,o){var u,c;if(!n.root)return null==n.cid&&(n.cid=s(n)),n.cid||(c=t.Deferred(),u={title:n.title,spec:r},i.emit("generate:test:id",u,function(t){return e.isObject(t)?c.reject(t.message):(n.cid=t,c.resolve(t))}),o.push(c)),a(n,r,i,o)},s=function(t){var e;return e=c.exec(t.title),e&&e[1]}}($,_,io)}.call(this);