/*!
 * jQuery JavaScript Library v2.0.3
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2013-07-03T13:30Z
 */
function s4(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function guid(){return s4()+s4()+"-"+s4()+"-"+s4()+"-"+s4()+"-"+s4()+s4()+s4()}!function(e,t){function n(e){var t=e.length,n=ot.type(e);return ot.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=dt[e]={};return ot.each(e.match(st)||[],function(e,n){t[n]=!0}),t}function i(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=ot.expando+Math.random()}function o(e,n,r){var i;if(r===t&&1===e.nodeType)if(i="data-"+n.replace($t,"-$1").toLowerCase(),r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:vt.test(r)?JSON.parse(r):r}catch(o){}gt.set(e,n,r)}else r=t;return r}function a(){return!0}function s(){return!1}function u(){try{return W.activeElement}catch(e){}}function c(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e,t,n){if(ot.isFunction(t))return ot.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ot.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(At.test(t))return ot.filter(t,e,n);t=ot.filter(t,e)}return ot.grep(e,function(e){return tt.call(t,e)>=0!==n})}function f(e,t){return ot.nodeName(e,"table")&&ot.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function p(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function h(e){var t=Vt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function d(e,t){for(var n=e.length,r=0;n>r;r++)mt.set(e[r],"globalEval",!t||mt.get(t[r],"globalEval"))}function g(e,t){var n,r,i,o,a,s,u,c;if(1===t.nodeType){if(mt.hasData(e)&&(o=mt.access(e),a=mt.set(t,o),c=o.events)){delete a.handle,a.events={};for(i in c)for(n=0,r=c[i].length;r>n;n++)ot.event.add(t,i,c[i][n])}gt.hasData(e)&&(s=gt.access(e),u=ot.extend({},s),gt.set(t,u))}}function m(e,n){var r=e.getElementsByTagName?e.getElementsByTagName(n||"*"):e.querySelectorAll?e.querySelectorAll(n||"*"):[];return n===t||n&&ot.nodeName(e,n)?ot.merge([e],r):r}function v(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Ht.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function $(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Zt.length;i--;)if(t=Zt[i]+n,t in e)return t;return r}function y(e,t){return e=t||e,"none"===ot.css(e,"display")||!ot.contains(e.ownerDocument,e)}function b(t){return e.getComputedStyle(t,null)}function w(e,t){for(var n,r,i,o=[],a=0,s=e.length;s>a;a++)r=e[a],r.style&&(o[a]=mt.get(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&y(r)&&(o[a]=mt.access(r,"olddisplay",T(r.nodeName)))):o[a]||(i=y(r),(n&&"none"!==n||!i)&&mt.set(r,"olddisplay",i?n:ot.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function x(e,t,n){var r=zt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function C(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=ot.css(e,n+Kt[o],!0,i)),r?("content"===n&&(a-=ot.css(e,"padding"+Kt[o],!0,i)),"margin"!==n&&(a-=ot.css(e,"border"+Kt[o]+"Width",!0,i))):(a+=ot.css(e,"padding"+Kt[o],!0,i),"padding"!==n&&(a+=ot.css(e,"border"+Kt[o]+"Width",!0,i)));return a}function k(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=b(e),a=ot.support.boxSizing&&"border-box"===ot.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=It(e,t,o),(0>i||null==i)&&(i=e.style[t]),Xt.test(i))return i;r=a&&(ot.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+C(e,t,n||(a?"border":"content"),r,o)+"px"}function T(e){var t=W,n=Qt[e];return n||(n=S(e,t),"none"!==n&&n||(Bt=(Bt||ot("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Bt[0].contentWindow||Bt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=S(e,t),Bt.detach()),Qt[e]=n),n}function S(e,t){var n=ot(t.createElement(e)).appendTo(t.body),r=ot.css(n[0],"display");return n.remove(),r}function E(e,t,n,r){var i;if(ot.isArray(t))ot.each(t,function(t,i){n||tn.test(e)?r(e,i):E(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==ot.type(t))r(e,t);else for(i in t)E(e+"["+i+"]",t[i],n,r)}function A(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(st)||[];if(ot.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function j(e,t,n,r){function i(s){var u;return o[s]=!0,ot.each(e[s]||[],function(e,s){var c=s(t,n,r);return"string"!=typeof c||a||o[c]?a?!(u=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),u}var o={},a=e===yn;return i(t.dataTypes[0])||!o["*"]&&i("*")}function N(e,n){var r,i,o=ot.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((o[r]?e:i||(i={}))[r]=n[r]);return i&&ot.extend(!0,e,i),e}function D(e,n,r){for(var i,o,a,s,u=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("Content-Type"));if(i)for(o in u)if(u[o]&&u[o].test(i)){c.unshift(o);break}if(c[0]in r)a=c[0];else{for(o in r){if(!c[0]||e.converters[o+" "+c[0]]){a=o;break}s||(s=o)}a=a||s}return a?(a!==c[0]&&c.unshift(a),r[a]):void 0}function M(e,t,n,r){var i,o,a,s,u,c={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=c[u+" "+o]||c["* "+o],!a)for(i in c)if(s=i.split(" "),s[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){a===!0?a=c[i]:c[i]!==!0&&(o=s[0],l.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}function P(){return setTimeout(function(){An=t}),An=ot.now()}function O(e,t,n){for(var r,i=(On[t]||[]).concat(On["*"]),o=0,a=i.length;a>o;o++)if(r=i[o].call(n,t,e))return r}function q(e,t,n){var r,i,o=0,a=Pn.length,s=ot.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=An||P(),n=Math.max(0,c.startTime+c.duration-t),r=n/c.duration||0,o=1-r,a=0,u=c.tweens.length;u>a;a++)c.tweens[a].run(o);return s.notifyWith(e,[c,o,n]),1>o&&u?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:ot.extend({},t),opts:ot.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:An||P(),duration:n.duration,tweens:[],createTween:function(t,n){var r=ot.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)c.tweens[n].run(1);return t?s.resolveWith(e,[c,t]):s.rejectWith(e,[c,t]),this}}),l=c.props;for(H(l,c.opts.specialEasing);a>o;o++)if(r=Pn[o].call(c,e,l,c.opts))return r;return ot.map(l,O,c),ot.isFunction(c.opts.start)&&c.opts.start.call(e,c),ot.fx.timer(ot.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function H(e,t){var n,r,i,o,a;for(n in e)if(r=ot.camelCase(n),i=t[r],o=e[n],ot.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=ot.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function R(e,n,r){var i,o,a,s,u,c,l=this,f={},p=e.style,h=e.nodeType&&y(e),d=mt.get(e,"fxshow");r.queue||(u=ot._queueHooks(e,"fx"),null==u.unqueued&&(u.unqueued=0,c=u.empty.fire,u.empty.fire=function(){u.unqueued||c()}),u.unqueued++,l.always(function(){l.always(function(){u.unqueued--,ot.queue(e,"fx").length||u.empty.fire()})})),1===e.nodeType&&("height"in n||"width"in n)&&(r.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===ot.css(e,"display")&&"none"===ot.css(e,"float")&&(p.display="inline-block")),r.overflow&&(p.overflow="hidden",l.always(function(){p.overflow=r.overflow[0],p.overflowX=r.overflow[1],p.overflowY=r.overflow[2]}));for(i in n)if(o=n[i],Nn.exec(o)){if(delete n[i],a=a||"toggle"===o,o===(h?"hide":"show")){if("show"!==o||!d||d[i]===t)continue;h=!0}f[i]=d&&d[i]||ot.style(e,i)}if(!ot.isEmptyObject(f)){d?"hidden"in d&&(h=d.hidden):d=mt.access(e,"fxshow",{}),a&&(d.hidden=!h),h?ot(e).show():l.done(function(){ot(e).hide()}),l.done(function(){var t;mt.remove(e,"fxshow");for(t in f)ot.style(e,t,f[t])});for(i in f)s=O(h?d[i]:0,i,l),i in d||(d[i]=s.start,h&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}}function L(e,t,n,r,i){return new L.prototype.init(e,t,n,r,i)}function V(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Kt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function _(e){return ot.isWindow(e)?e:9===e.nodeType&&e.defaultView}var F,I,B=typeof t,U=e.location,W=e.document,z=W.documentElement,X=e.jQuery,G=e.$,Q={},Y=[],J="2.0.3",K=Y.concat,Z=Y.push,et=Y.slice,tt=Y.indexOf,nt=Q.toString,rt=Q.hasOwnProperty,it=J.trim,ot=function(e,t){return new ot.fn.init(e,t,F)},at=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,st=/\S+/g,ut=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ct=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,lt=/^-ms-/,ft=/-([\da-z])/gi,pt=function(e,t){return t.toUpperCase()},ht=function(){W.removeEventListener("DOMContentLoaded",ht,!1),e.removeEventListener("load",ht,!1),ot.ready()};ot.fn=ot.prototype={jquery:J,constructor:ot,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:ut.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof ot?n[0]:n,ot.merge(this,ot.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:W,!0)),ct.test(i[1])&&ot.isPlainObject(n))for(i in n)ot.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}return o=W.getElementById(i[2]),o&&o.parentNode&&(this.length=1,this[0]=o),this.context=W,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ot.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),ot.makeArray(e,this))},selector:"",length:0,toArray:function(){return et.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=ot.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return ot.each(this,e,t)},ready:function(e){return ot.ready.promise().done(e),this},slice:function(){return this.pushStack(et.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(ot.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:Z,sort:[].sort,splice:[].splice},ot.fn.init.prototype=ot.fn,ot.extend=ot.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,c=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},u=2),"object"==typeof s||ot.isFunction(s)||(s={}),c===u&&(s=this,--u);c>u;u++)if(null!=(e=arguments[u]))for(n in e)r=s[n],i=e[n],s!==i&&(l&&i&&(ot.isPlainObject(i)||(o=ot.isArray(i)))?(o?(o=!1,a=r&&ot.isArray(r)?r:[]):a=r&&ot.isPlainObject(r)?r:{},s[n]=ot.extend(l,a,i)):i!==t&&(s[n]=i));return s},ot.extend({expando:"jQuery"+(J+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===ot&&(e.$=G),t&&e.jQuery===ot&&(e.jQuery=X),ot},isReady:!1,readyWait:1,holdReady:function(e){e?ot.readyWait++:ot.ready(!0)},ready:function(e){(e===!0?--ot.readyWait:ot.isReady)||(ot.isReady=!0,e!==!0&&--ot.readyWait>0||(I.resolveWith(W,[ot]),ot.fn.trigger&&ot(W).trigger("ready").off("ready")))},isFunction:function(e){return"function"===ot.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?String(e):"object"==typeof e||"function"==typeof e?Q[nt.call(e)]||"object":typeof e},isPlainObject:function(e){if("object"!==ot.type(e)||e.nodeType||ot.isWindow(e))return!1;try{if(e.constructor&&!rt.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||W;var r=ct.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=ot.buildFragment([e],t,i),i&&ot(i).remove(),ot.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(e){var n,r;if(!e||"string"!=typeof e)return null;try{r=new DOMParser,n=r.parseFromString(e,"text/xml")}catch(i){n=t}return(!n||n.getElementsByTagName("parsererror").length)&&ot.error("Invalid XML: "+e),n},noop:function(){},globalEval:function(e){var t,n=eval;e=ot.trim(e),e&&(1===e.indexOf("use strict")?(t=W.createElement("script"),t.text=e,W.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(lt,"ms-").replace(ft,pt)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var i,o=0,a=e.length,s=n(e);if(r){if(s)for(;a>o&&(i=t.apply(e[o],r),i!==!1);o++);else for(o in e)if(i=t.apply(e[o],r),i===!1)break}else if(s)for(;a>o&&(i=t.call(e[o],o,e[o]),i!==!1);o++);else for(o in e)if(i=t.call(e[o],o,e[o]),i===!1)break;return e},trim:function(e){return null==e?"":it.call(e)},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?ot.merge(r,"string"==typeof e?[e]:e):Z.call(r,e)),r},inArray:function(e,t,n){return null==t?-1:tt.call(t,e,n)},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else for(;n[o]!==t;)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,r){var i,o=0,a=e.length,s=n(e),u=[];if(s)for(;a>o;o++)i=t(e[o],o,r),null!=i&&(u[u.length]=i);else for(o in e)i=t(e[o],o,r),null!=i&&(u[u.length]=i);return K.apply([],u)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(r=e[n],n=e,e=r),ot.isFunction(e)?(i=et.call(arguments,2),o=function(){return e.apply(n||this,i.concat(et.call(arguments)))},o.guid=e.guid=e.guid||ot.guid++,o):t},access:function(e,n,r,i,o,a,s){var u=0,c=e.length,l=null==r;if("object"===ot.type(r)){o=!0;for(u in r)ot.access(e,n,u,r[u],!0,a,s)}else if(i!==t&&(o=!0,ot.isFunction(i)||(s=!0),l&&(s?(n.call(e,i),n=null):(l=n,n=function(e,t,n){return l.call(ot(e),n)})),n))for(;c>u;u++)n(e[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:l?n.call(e):c?n(e[0],r):a},now:Date.now,swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),ot.ready.promise=function(t){return I||(I=ot.Deferred(),"complete"===W.readyState?setTimeout(ot.ready):(W.addEventListener("DOMContentLoaded",ht,!1),e.addEventListener("load",ht,!1))),I.promise(t)},ot.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){Q["[object "+t+"]"]=t.toLowerCase()}),F=ot(W),/*!
 * Sizzle CSS Selector Engine v1.9.4-pre
 * http://sizzlejs.com/
 *
 * Copyright 2013 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2013-06-03
 */
function(e,t){function n(e,t,n,r){var i,o,a,s,u,c,l,f,d,g;if((t?t.ownerDocument||t:_)!==M&&D(t),t=t||M,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(O&&!r){if(i=yt.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&L(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return et.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&C.getElementsByClassName&&t.getElementsByClassName)return et.apply(n,t.getElementsByClassName(a)),n}if(C.qsa&&(!q||!q.test(e))){if(f=l=V,d=t,g=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(c=p(e),(l=t.getAttribute("id"))?f=l.replace(xt,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",u=c.length;u--;)c[u]=f+h(c[u]);d=ht.test(e)&&t.parentNode||t,g=c.join(",")}if(g)try{return et.apply(n,d.querySelectorAll(g)),n}catch(m){}finally{l||t.removeAttribute("id")}}}return w(e.replace(lt,"$1"),t,n,r)}function r(){function e(n,r){return t.push(n+=" ")>T.cacheLength&&delete e[t.shift()],e[n]=r}var t=[];return e}function i(e){return e[V]=!0,e}function o(e){var t=M.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(e,t){for(var n=e.split("|"),r=e.length;r--;)T.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Q)-(~e.sourceIndex||Q);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function u(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function c(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return i(function(t){return t=+t,i(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function f(){}function p(e,t){var r,i,o,a,s,u,c,l=U[e+" "];if(l)return t?0:l.slice(0);for(s=e,u=[],c=T.preFilter;s;){(!r||(i=ft.exec(s)))&&(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=pt.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(lt," ")}),s=s.slice(r.length));for(a in T.filter)!(i=vt[a].exec(s))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return t?s.length:s?n.error(e):U(e,u).slice(0)}function h(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=I++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,c,l=F+" "+o;if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i)if(c=t[V]||(t[V]={}),(u=c[r])&&u[0]===l){if((s=u[1])===!0||s===k)return s===!0}else if(u=c[r]=[l],u[1]=e(t,n,a)||k,u[1]===!0)return!0}}function g(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,c=null!=t;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),c&&t.push(s));return a}function v(e,t,n,r,o,a){return r&&!r[V]&&(r=v(r)),o&&!o[V]&&(o=v(o,a)),i(function(i,a,s,u){var c,l,f,p=[],h=[],d=a.length,g=i||b(t||"*",s.nodeType?[s]:s,[]),v=!e||!i&&t?g:m(g,p,e,s,u),$=n?o||(i?e:d||r)?[]:a:v;if(n&&n(v,$,s,u),r)for(c=m($,h),r(c,[],s,u),l=c.length;l--;)(f=c[l])&&($[h[l]]=!(v[h[l]]=f));if(i){if(o||e){if(o){for(c=[],l=$.length;l--;)(f=$[l])&&c.push(v[l]=f);o(null,$=[],c,u)}for(l=$.length;l--;)(f=$[l])&&(c=o?nt.call(i,f):p[l])>-1&&(i[c]=!(a[c]=f))}}else $=m($===a?$.splice(d,$.length):$),o?o(null,a,$,u):et.apply(a,$)})}function $(e){for(var t,n,r,i=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,u=d(function(e){return e===t},a,!0),c=d(function(e){return nt.call(t,e)>-1},a,!0),l=[function(e,n,r){return!o&&(r||n!==j)||((t=n).nodeType?u(e,n,r):c(e,n,r))}];i>s;s++)if(n=T.relative[e[s].type])l=[d(g(l),n)];else{if(n=T.filter[e[s].type].apply(null,e[s].matches),n[V]){for(r=++s;i>r&&!T.relative[e[r].type];r++);return v(s>1&&g(l),s>1&&h(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(lt,"$1"),n,r>s&&$(e.slice(s,r)),i>r&&$(e=e.slice(r)),i>r&&h(e))}l.push(n)}return g(l)}function y(e,t){var r=0,o=t.length>0,a=e.length>0,s=function(i,s,u,c,l){var f,p,h,d=[],g=0,v="0",$=i&&[],y=null!=l,b=j,w=i||a&&T.find.TAG("*",l&&s.parentNode||s),x=F+=null==b?1:Math.random()||.1;for(y&&(j=s!==M&&s,k=r);null!=(f=w[v]);v++){if(a&&f){for(p=0;h=e[p++];)if(h(f,s,u)){c.push(f);break}y&&(F=x,k=++r)}o&&((f=!h&&f)&&g--,i&&$.push(f))}if(g+=v,o&&v!==g){for(p=0;h=t[p++];)h($,d,s,u);if(i){if(g>0)for(;v--;)$[v]||d[v]||(d[v]=K.call(c));d=m(d)}et.apply(c,d),y&&!i&&d.length>0&&g+t.length>1&&n.uniqueSort(c)}return y&&(F=x,j=b),$};return o?i(s):s}function b(e,t,r){for(var i=0,o=t.length;o>i;i++)n(e,t[i],r);return r}function w(e,t,n,r){var i,o,a,s,u,c=p(e);if(!r&&1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&C.getById&&9===t.nodeType&&O&&T.relative[o[1].type]){if(t=(T.find.ID(a.matches[0].replace(Ct,kt),t)||[])[0],!t)return n;e=e.slice(o.shift().value.length)}for(i=vt.needsContext.test(e)?0:o.length;i--&&(a=o[i],!T.relative[s=a.type]);)if((u=T.find[s])&&(r=u(a.matches[0].replace(Ct,kt),ht.test(o[0].type)&&t.parentNode||t))){if(o.splice(i,1),e=r.length&&h(o),!e)return et.apply(n,r),n;break}}return A(e,c)(r,t,!O,n,ht.test(e)),n}var x,C,k,T,S,E,A,j,N,D,M,P,O,q,H,R,L,V="sizzle"+-new Date,_=e.document,F=0,I=0,B=r(),U=r(),W=r(),z=!1,X=function(e,t){return e===t?(z=!0,0):0},G=typeof t,Q=1<<31,Y={}.hasOwnProperty,J=[],K=J.pop,Z=J.push,et=J.push,tt=J.slice,nt=J.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},rt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",at="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",st=at.replace("w","w#"),ut="\\["+it+"*("+at+")"+it+"*(?:([*^$|!~]?=)"+it+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+st+")|)|)"+it+"*\\]",ct=":("+at+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+ut.replace(3,8)+")*)|.*)\\)|)",lt=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),ft=new RegExp("^"+it+"*,"+it+"*"),pt=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),ht=new RegExp(it+"*[+~]"),dt=new RegExp("="+it+"*([^\\]'\"]*)"+it+"*\\]","g"),gt=new RegExp(ct),mt=new RegExp("^"+st+"$"),vt={ID:new RegExp("^#("+at+")"),CLASS:new RegExp("^\\.("+at+")"),TAG:new RegExp("^("+at.replace("w","w*")+")"),ATTR:new RegExp("^"+ut),PSEUDO:new RegExp("^"+ct),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+rt+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},$t=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/^(?:input|select|textarea|button)$/i,wt=/^h\d$/i,xt=/'|\\/g,Ct=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),kt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{et.apply(J=tt.call(_.childNodes),_.childNodes),J[_.childNodes.length].nodeType}catch(Tt){et={apply:J.length?function(e,t){Z.apply(e,tt.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}E=n.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},C=n.support={},D=n.setDocument=function(e){var t=e?e.ownerDocument||e:_,n=t.defaultView;return t!==M&&9===t.nodeType&&t.documentElement?(M=t,P=t.documentElement,O=!E(t),n&&n.attachEvent&&n!==n.top&&n.attachEvent("onbeforeunload",function(){D()}),C.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),C.getElementsByTagName=o(function(e){return e.appendChild(t.createComment("")),!e.getElementsByTagName("*").length}),C.getElementsByClassName=o(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),C.getById=o(function(e){return P.appendChild(e).id=V,!t.getElementsByName||!t.getElementsByName(V).length}),C.getById?(T.find.ID=function(e,t){if(typeof t.getElementById!==G&&O){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},T.filter.ID=function(e){var t=e.replace(Ct,kt);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(Ct,kt);return function(e){var n=typeof e.getAttributeNode!==G&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=C.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==G?t.getElementsByTagName(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},T.find.CLASS=C.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==G&&O?t.getElementsByClassName(e):void 0},H=[],q=[],(C.qsa=$t.test(t.querySelectorAll))&&(o(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||q.push("\\["+it+"*(?:value|"+rt+")"),e.querySelectorAll(":checked").length||q.push(":checked")}),o(function(e){var n=t.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&q.push("[*^$]="+it+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),q.push(",.*:")})),(C.matchesSelector=$t.test(R=P.webkitMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector||P.msMatchesSelector))&&o(function(e){C.disconnectedMatch=R.call(e,"div"),R.call(e,"[s!='']:x"),H.push("!=",ct)}),q=q.length&&new RegExp(q.join("|")),H=H.length&&new RegExp(H.join("|")),L=$t.test(P.contains)||P.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},X=P.compareDocumentPosition?function(e,n){if(e===n)return z=!0,0;var r=n.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(n);return r?1&r||!C.sortDetached&&n.compareDocumentPosition(e)===r?e===t||L(_,e)?-1:n===t||L(_,n)?1:N?nt.call(N,e)-nt.call(N,n):0:4&r?-1:1:e.compareDocumentPosition?-1:1}:function(e,n){var r,i=0,o=e.parentNode,a=n.parentNode,u=[e],c=[n];if(e===n)return z=!0,0;if(!o||!a)return e===t?-1:n===t?1:o?-1:a?1:N?nt.call(N,e)-nt.call(N,n):0;if(o===a)return s(e,n);for(r=e;r=r.parentNode;)u.unshift(r);for(r=n;r=r.parentNode;)c.unshift(r);for(;u[i]===c[i];)i++;return i?s(u[i],c[i]):u[i]===_?-1:c[i]===_?1:0},t):M},n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){if((e.ownerDocument||e)!==M&&D(e),t=t.replace(dt,"='$1']"),!(!C.matchesSelector||!O||H&&H.test(t)||q&&q.test(t)))try{var r=R.call(e,t);if(r||C.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return n(t,M,null,[e]).length>0},n.contains=function(e,t){return(e.ownerDocument||e)!==M&&D(e),L(e,t)},n.attr=function(e,n){(e.ownerDocument||e)!==M&&D(e);var r=T.attrHandle[n.toLowerCase()],i=r&&Y.call(T.attrHandle,n.toLowerCase())?r(e,n,!O):t;return i===t?C.attributes||!O?e.getAttribute(n):(i=e.getAttributeNode(n))&&i.specified?i.value:null:i},n.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},n.uniqueSort=function(e){var t,n=[],r=0,i=0;if(z=!C.detectDuplicates,N=!C.sortStable&&e.slice(0),e.sort(X),z){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return e},S=n.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=S(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=S(t);return n},T=n.selectors={cacheLength:50,createPseudo:i,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Ct,kt),e[3]=(e[4]||e[5]||"").replace(Ct,kt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||n.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&n.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return vt.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&gt.test(r)&&(n=p(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Ct,kt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=B[e+" "];return t||(t=new RegExp("(^|"+it+")"+e+"("+it+"|$)"))&&B(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==G&&e.getAttribute("class")||"")})},ATTR:function(e,t,r){return function(i){var o=n.attr(i,e);return null==o?"!="===t:t?(o+="","="===t?o===r:"!="===t?o!==r:"^="===t?r&&0===o.indexOf(r):"*="===t?r&&o.indexOf(r)>-1:"$="===t?r&&o.slice(-r.length)===r:"~="===t?(" "+o+" ").indexOf(r)>-1:"|="===t?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,p,h,d,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),$=!u&&!s;if(m){if(o){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[a?m.firstChild:m.lastChild],a&&$){for(l=m[V]||(m[V]={}),c=l[e]||[],h=c[0]===F&&c[1],p=c[0]===F&&c[2],f=h&&m.childNodes[h];f=++h&&f&&f[g]||(p=h=0)||d.pop();)if(1===f.nodeType&&++p&&f===t){l[e]=[F,h,p];break}}else if($&&(c=(t[V]||(t[V]={}))[e])&&c[0]===F)p=c[1];else for(;(f=++h&&f&&f[g]||(p=h=0)||d.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++p||($&&((f[V]||(f[V]={}))[e]=[F,p]),f!==t)););return p-=i,p===r||0===p%r&&p/r>=0}}},PSEUDO:function(e,t){var r,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||n.error("unsupported pseudo: "+e);return o[V]?o(t):o.length>1?(r=[e,e,"",t],T.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)r=nt.call(e,i[a]),e[r]=!(n[r]=i[a])}):function(e){return o(e,0,r)}):o}},pseudos:{not:i(function(e){var t=[],n=[],r=A(e.replace(lt,"$1"));return r[V]?i(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:i(function(e){return function(t){return n(e,t).length>0}}),contains:i(function(e){return function(t){return(t.textContent||t.innerText||S(t)).indexOf(e)>-1}}),lang:i(function(e){return mt.test(e||"")||n.error("unsupported lang: "+e),e=e.replace(Ct,kt).toLowerCase(),function(t){var n;do if(n=O?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===P},focus:function(e){return e===M.activeElement&&(!M.hasFocus||M.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return wt.test(e.nodeName)},input:function(e){return bt.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[0>n?n+t:n]}),even:l(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},T.pseudos.nth=T.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[x]=u(x);for(x in{submit:!0,reset:!0})T.pseudos[x]=c(x);f.prototype=T.filters=T.pseudos,T.setFilters=new f,A=n.compile=function(e,t){var n,r=[],i=[],o=W[e+" "];if(!o){for(t||(t=p(e)),n=t.length;n--;)o=$(t[n]),o[V]?r.push(o):i.push(o);o=W(e,y(i,r))}return o},C.sortStable=V.split("").sort(X).join("")===V,C.detectDuplicates=z,D(),C.sortDetached=o(function(e){return 1&e.compareDocumentPosition(M.createElement("div"))}),o(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||a("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),C.attributes&&o(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||a("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||a(rt,function(e,t,n){var r;return n?void 0:(r=e.getAttributeNode(t))&&r.specified?r.value:e[t]===!0?t.toLowerCase():null}),ot.find=n,ot.expr=n.selectors,ot.expr[":"]=ot.expr.pseudos,ot.unique=n.uniqueSort,ot.text=n.getText,ot.isXMLDoc=n.isXML,ot.contains=n.contains}(e);var dt={};ot.Callbacks=function(e){e="string"==typeof e?dt[e]||r(e):ot.extend({},e);var n,i,o,a,s,u,c=[],l=!e.once&&[],f=function(t){for(n=e.memory&&t,i=!0,u=a||0,a=0,s=c.length,o=!0;c&&s>u;u++)if(c[u].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}o=!1,c&&(l?l.length&&f(l.shift()):n?c=[]:p.disable())},p={add:function(){if(c){var t=c.length;!function r(t){ot.each(t,function(t,n){var i=ot.type(n);"function"===i?e.unique&&p.has(n)||c.push(n):n&&n.length&&"string"!==i&&r(n)})}(arguments),o?s=c.length:n&&(a=t,f(n))}return this},remove:function(){return c&&ot.each(arguments,function(e,t){for(var n;(n=ot.inArray(t,c,n))>-1;)c.splice(n,1),o&&(s>=n&&s--,u>=n&&u--)}),this},has:function(e){return e?ot.inArray(e,c)>-1:!(!c||!c.length)},empty:function(){return c=[],s=0,this},disable:function(){return c=l=n=t,this},disabled:function(){return!c},lock:function(){return l=t,n||p.disable(),this},locked:function(){return!l},fireWith:function(e,t){return!c||i&&!l||(t=t||[],t=[e,t.slice?t.slice():t],o?l.push(t):f(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},ot.extend({Deferred:function(e){var t=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ot.Deferred(function(n){ot.each(t,function(t,o){var a=o[0],s=ot.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&ot.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ot.extend(e,r):r}},i={};return r.pipe=r.then,ot.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=et.call(arguments),a=o.length,s=1!==a||e&&ot.isFunction(e.promise)?a:0,u=1===s?e:ot.Deferred(),c=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?et.call(arguments):i,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);a>i;i++)o[i]&&ot.isFunction(o[i].promise)?o[i].promise().done(c(i,r,o)).fail(u.reject).progress(c(i,n,t)):--s;return s||u.resolveWith(r,o),u.promise()}}),ot.support=function(t){var n=W.createElement("input"),r=W.createDocumentFragment(),i=W.createElement("div"),o=W.createElement("select"),a=o.appendChild(W.createElement("option"));return n.type?(n.type="checkbox",t.checkOn=""!==n.value,t.optSelected=a.selected,t.reliableMarginRight=!0,t.boxSizingReliable=!0,t.pixelPosition=!1,n.checked=!0,t.noCloneChecked=n.cloneNode(!0).checked,o.disabled=!0,t.optDisabled=!a.disabled,n=W.createElement("input"),n.value="t",n.type="radio",t.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),r.appendChild(n),t.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,t.focusinBubbles="onfocusin"in e,i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===i.style.backgroundClip,ot(function(){var n,r,o="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",a=W.getElementsByTagName("body")[0];a&&(n=W.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(n).appendChild(i),i.innerHTML="",i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",ot.swap(a,null!=a.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===i.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(i,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(i,null)||{width:"4px"}).width,r=i.appendChild(W.createElement("div")),r.style.cssText=i.style.cssText=o,r.style.marginRight=r.style.width="0",i.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),a.removeChild(n))}),t):t}({});var gt,mt,vt=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,$t=/([A-Z])/g;i.uid=1,i.accepts=function(e){return e.nodeType?1===e.nodeType||9===e.nodeType:!0},i.prototype={key:function(e){if(!i.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=i.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,ot.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),o=this.cache[i];if("string"==typeof t)o[t]=n;else if(ot.isEmptyObject(o))ot.extend(this.cache[i],t);else for(r in t)o[r]=t[r];return o},get:function(e,n){var r=this.cache[this.key(e)];return n===t?r:r[n]},access:function(e,n,r){var i;return n===t||n&&"string"==typeof n&&r===t?(i=this.get(e,n),i!==t?i:this.get(e,ot.camelCase(n))):(this.set(e,n,r),r!==t?r:n)},remove:function(e,n){var r,i,o,a=this.key(e),s=this.cache[a];if(n===t)this.cache[a]={};else{ot.isArray(n)?i=n.concat(n.map(ot.camelCase)):(o=ot.camelCase(n),n in s?i=[n,o]:(i=o,i=i in s?[i]:i.match(st)||[])),r=i.length;for(;r--;)delete s[i[r]]}},hasData:function(e){return!ot.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}},gt=new i,mt=new i,ot.extend({acceptData:i.accepts,hasData:function(e){return gt.hasData(e)||mt.hasData(e)},data:function(e,t,n){return gt.access(e,t,n)},removeData:function(e,t){gt.remove(e,t)},_data:function(e,t,n){return mt.access(e,t,n)},_removeData:function(e,t){mt.remove(e,t)}}),ot.fn.extend({data:function(e,n){var r,i,a=this[0],s=0,u=null;if(e===t){if(this.length&&(u=gt.get(a),1===a.nodeType&&!mt.get(a,"hasDataAttrs"))){for(r=a.attributes;s<r.length;s++)i=r[s].name,0===i.indexOf("data-")&&(i=ot.camelCase(i.slice(5)),o(a,i,u[i]));mt.set(a,"hasDataAttrs",!0)}return u}return"object"==typeof e?this.each(function(){gt.set(this,e)}):ot.access(this,function(n){var r,i=ot.camelCase(e);if(a&&n===t){if(r=gt.get(a,e),r!==t)return r;if(r=gt.get(a,i),r!==t)return r;if(r=o(a,i,t),r!==t)return r}else this.each(function(){var r=gt.get(this,i);gt.set(this,i,n),-1!==e.indexOf("-")&&r!==t&&gt.set(this,e,n)})},null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){gt.remove(this,e)})}}),ot.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=mt.get(e,t),n&&(!r||ot.isArray(n)?r=mt.access(e,t,ot.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=ot.queue(e,t),r=n.length,i=n.shift(),o=ot._queueHooks(e,t),a=function(){ot.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return mt.get(e,n)||mt.access(e,n,{empty:ot.Callbacks("once memory").add(function(){mt.remove(e,[t+"queue",n])})})}}),ot.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),arguments.length<r?ot.queue(this[0],e):n===t?this:this.each(function(){var t=ot.queue(this,e,n);ot._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&ot.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ot.dequeue(this,e)})},delay:function(e,t){return e=ot.fx?ot.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=ot.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveWith(a,[a])};for("string"!=typeof e&&(n=e,e=t),e=e||"fx";s--;)r=mt.get(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var yt,bt,wt=/[\t\r\n\f]/g,xt=/\r/g,Ct=/^(?:input|select|textarea|button)$/i;ot.fn.extend({attr:function(e,t){return ot.access(this,ot.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ot.removeAttr(this,e)})},prop:function(e,t){return ot.access(this,ot.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ot.propFix[e]||e]})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,u="string"==typeof e&&e;if(ot.isFunction(e))return this.each(function(t){ot(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(st)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(wt," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");n.className=ot.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&&e;if(ot.isFunction(e))return this.each(function(t){ot(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(st)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(wt," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");n.className=e?ot.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ot.isFunction(e)?this.each(function(n){ot(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,r=0,i=ot(this),o=e.match(st)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else(n===B||"boolean"===n)&&(this.className&&mt.set(this,"__className__",this.className),this.className=this.className||e===!1?"":mt.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(wt," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=ot.isFunction(e),this.each(function(r){var o;1===this.nodeType&&(o=i?e.call(this,r,ot(this).val()):e,null==o?o="":"number"==typeof o?o+="":ot.isArray(o)&&(o=ot.map(o,function(e){return null==e?"":e+""})),n=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&n.set(this,o,"value")!==t||(this.value=o))});if(o)return n=ot.valHooks[o.type]||ot.valHooks[o.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(o,"value"))!==t?r:(r=o.value,"string"==typeof r?r.replace(xt,""):null==r?"":r)}}}),ot.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;s>u;u++)if(n=r[u],!(!n.selected&&u!==i||(ot.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&ot.nodeName(n.parentNode,"optgroup"))){if(t=ot(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=ot.makeArray(t),a=i.length;a--;)r=i[a],(r.selected=ot.inArray(ot(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var i,o,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return typeof e.getAttribute===B?ot.prop(e,n,r):(1===a&&ot.isXMLDoc(e)||(n=n.toLowerCase(),i=ot.attrHooks[n]||(ot.expr.match.bool.test(n)?bt:yt)),r===t?i&&"get"in i&&null!==(o=i.get(e,n))?o:(o=ot.find.attr(e,n),null==o?t:o):null!==r?i&&"set"in i&&(o=i.set(e,r,n))!==t?o:(e.setAttribute(n,r+""),r):(ot.removeAttr(e,n),void 0))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(st);if(o&&1===e.nodeType)for(;n=o[i++];)r=ot.propFix[n]||n,ot.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!ot.support.radioValue&&"radio"===t&&ot.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!ot.isXMLDoc(e),a&&(n=ot.propFix[n]||n,o=ot.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||Ct.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),bt={set:function(e,t,n){return t===!1?ot.removeAttr(e,n):e.setAttribute(n,n),n}},ot.each(ot.expr.match.bool.source.match(/\w+/g),function(e,n){var r=ot.expr.attrHandle[n]||ot.find.attr;ot.expr.attrHandle[n]=function(e,n,i){var o=ot.expr.attrHandle[n],a=i?t:(ot.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return ot.expr.attrHandle[n]=o,a}}),ot.support.optSelected||(ot.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ot.propFix[this.toLowerCase()]=this}),ot.each(["radio","checkbox"],function(){ot.valHooks[this]={set:function(e,t){return ot.isArray(t)?e.checked=ot.inArray(ot(e).val(),t)>=0:void 0}},ot.support.checkOn||(ot.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var kt=/^key/,Tt=/^(?:mouse|contextmenu)|click/,St=/^(?:focusinfocus|focusoutblur)$/,Et=/^([^.]*)(?:\.(.+)|)$/;ot.event={global:{},add:function(e,n,r,i,o){var a,s,u,c,l,f,p,h,d,g,m,v=mt.get(e);if(v){for(r.handler&&(a=r,r=a.handler,o=a.selector),r.guid||(r.guid=ot.guid++),(c=v.events)||(c=v.events={}),(s=v.handle)||(s=v.handle=function(e){return typeof ot===B||e&&ot.event.triggered===e.type?t:ot.event.dispatch.apply(s.elem,arguments)},s.elem=e),n=(n||"").match(st)||[""],l=n.length;l--;)u=Et.exec(n[l])||[],d=m=u[1],g=(u[2]||"").split(".").sort(),d&&(p=ot.event.special[d]||{},d=(o?p.delegateType:p.bindType)||d,p=ot.event.special[d]||{},f=ot.extend({type:d,origType:m,data:i,handler:r,guid:r.guid,selector:o,needsContext:o&&ot.expr.match.needsContext.test(o),namespace:g.join(".")},a),(h=c[d])||(h=c[d]=[],h.delegateCount=0,p.setup&&p.setup.call(e,i,g,s)!==!1||e.addEventListener&&e.addEventListener(d,s,!1)),p.add&&(p.add.call(e,f),f.handler.guid||(f.handler.guid=r.guid)),o?h.splice(h.delegateCount++,0,f):h.push(f),ot.event.global[d]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,u,c,l,f,p,h,d,g,m=mt.hasData(e)&&mt.get(e);if(m&&(u=m.events)){for(t=(t||"").match(st)||[""],c=t.length;c--;)if(s=Et.exec(t[c])||[],h=g=s[1],d=(s[2]||"").split(".").sort(),h){for(f=ot.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,p=u[h]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)l=p[o],!i&&g!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(o,1),l.selector&&p.delegateCount--,f.remove&&f.remove.call(e,l));
a&&!p.length&&(f.teardown&&f.teardown.call(e,d,m.handle)!==!1||ot.removeEvent(e,h,m.handle),delete u[h])}else for(h in u)ot.event.remove(e,h+t[c],n,r,!0);ot.isEmptyObject(u)&&(delete m.handle,mt.remove(e,"events"))}},trigger:function(n,r,i,o){var a,s,u,c,l,f,p,h=[i||W],d=rt.call(n,"type")?n.type:n,g=rt.call(n,"namespace")?n.namespace.split("."):[];if(s=u=i=i||W,3!==i.nodeType&&8!==i.nodeType&&!St.test(d+ot.event.triggered)&&(d.indexOf(".")>=0&&(g=d.split("."),d=g.shift(),g.sort()),l=d.indexOf(":")<0&&"on"+d,n=n[ot.expando]?n:new ot.Event(d,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=g.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:ot.makeArray(r,[n]),p=ot.event.special[d]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!ot.isWindow(i)){for(c=p.delegateType||d,St.test(c+d)||(s=s.parentNode);s;s=s.parentNode)h.push(s),u=s;u===(i.ownerDocument||W)&&h.push(u.defaultView||u.parentWindow||e)}for(a=0;(s=h[a++])&&!n.isPropagationStopped();)n.type=a>1?c:p.bindType||d,f=(mt.get(s,"events")||{})[n.type]&&mt.get(s,"handle"),f&&f.apply(s,r),f=l&&s[l],f&&ot.acceptData(s)&&f.apply&&f.apply(s,r)===!1&&n.preventDefault();return n.type=d,o||n.isDefaultPrevented()||p._default&&p._default.apply(h.pop(),r)!==!1||!ot.acceptData(i)||l&&ot.isFunction(i[d])&&!ot.isWindow(i)&&(u=i[l],u&&(i[l]=null),ot.event.triggered=d,i[d](),ot.event.triggered=t,u&&(i[l]=u)),n.result}},dispatch:function(e){e=ot.event.fix(e);var n,r,i,o,a,s=[],u=et.call(arguments),c=(mt.get(this,"events")||{})[e.type]||[],l=ot.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(s=ot.event.handlers.call(this,e,c),n=0;(o=s[n++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,r=0;(a=o.handlers[r++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(a.namespace))&&(e.handleObj=a,e.data=a.data,i=((ot.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,u),i!==t&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],u=n.delegateCount,c=e.target;if(u&&c.nodeType&&(!e.button||"click"!==e.type))for(;c!==this;c=c.parentNode||this)if(c.disabled!==!0||"click"!==e.type){for(i=[],r=0;u>r;r++)a=n[r],o=a.selector+" ",i[o]===t&&(i[o]=a.needsContext?ot(o,this).index(c)>=0:ot.find(o,this,null,[c]).length),i[o]&&i.push(a);i.length&&s.push({elem:c,handlers:i})}return u<n.length&&s.push({elem:this,handlers:n.slice(u)}),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(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,a=n.button;return null==e.pageX&&null!=n.clientX&&(r=e.target.ownerDocument||W,i=r.documentElement,o=r.body,e.pageX=n.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)),e.which||a===t||(e.which=1&a?1:2&a?3:4&a?2:0),e}},fix:function(e){if(e[ot.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Tt.test(i)?this.mouseHooks:kt.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new ot.Event(o),t=r.length;t--;)n=r[t],e[n]=o[n];return e.target||(e.target=W),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==u()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===u()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&ot.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return ot.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=ot.extend(new ot.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?ot.event.trigger(i,null,t):ot.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},ot.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},ot.Event=function(e,t){return this instanceof ot.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.getPreventDefault&&e.getPreventDefault()?a:s):this.type=e,t&&ot.extend(this,t),this.timeStamp=e&&e.timeStamp||ot.now(),this[ot.expando]=!0,void 0):new ot.Event(e,t)},ot.Event.prototype={isDefaultPrevented:s,isPropagationStopped:s,isImmediatePropagationStopped:s,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=a,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=a,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=a,this.stopPropagation()}},ot.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){ot.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!ot.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),ot.support.focusinBubbles||ot.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){ot.event.simulate(t,e.target,ot.event.fix(e),!0)};ot.event.special[t]={setup:function(){0===n++&&W.addEventListener(e,r,!0)},teardown:function(){0===--n&&W.removeEventListener(e,r,!0)}}}),ot.fn.extend({on:function(e,n,r,i,o){var a,u;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(u in e)this.on(u,n,r,e[u],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=s;else if(!i)return this;return 1===o&&(a=i,i=function(e){return ot().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=ot.guid++)),this.each(function(){ot.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,ot(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=s),this.each(function(){ot.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){ot.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?ot.event.trigger(e,t,n,!0):void 0}});var At=/^.[^:#\[\.,]*$/,jt=/^(?:parents|prev(?:Until|All))/,Nt=ot.expr.match.needsContext,Dt={children:!0,contents:!0,next:!0,prev:!0};ot.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(ot(e).filter(function(){for(t=0;i>t;t++)if(ot.contains(r[t],this))return!0}));for(t=0;i>t;t++)ot.find(e,r[t],n);return n=this.pushStack(i>1?ot.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t=ot(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(ot.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(l(this,e||[],!0))},filter:function(e){return this.pushStack(l(this,e||[],!1))},is:function(e){return!!l(this,"string"==typeof e&&Nt.test(e)?ot(e):e||[],!1).length},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=Nt.test(e)||"string"!=typeof e?ot(e,t||this.context):0;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ot.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?ot.unique(o):o)},index:function(e){return e?"string"==typeof e?tt.call(ot(e),this[0]):tt.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?ot(e,t):ot.makeArray(e&&e.nodeType?[e]:e),r=ot.merge(this.get(),n);return this.pushStack(ot.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ot.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ot.dir(e,"parentNode")},parentsUntil:function(e,t,n){return ot.dir(e,"parentNode",n)},next:function(e){return c(e,"nextSibling")},prev:function(e){return c(e,"previousSibling")},nextAll:function(e){return ot.dir(e,"nextSibling")},prevAll:function(e){return ot.dir(e,"previousSibling")},nextUntil:function(e,t,n){return ot.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return ot.dir(e,"previousSibling",n)},siblings:function(e){return ot.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return ot.sibling(e.firstChild)},contents:function(e){return e.contentDocument||ot.merge([],e.childNodes)}},function(e,t){ot.fn[e]=function(n,r){var i=ot.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ot.filter(r,i)),this.length>1&&(Dt[e]||ot.unique(i),jt.test(e)&&i.reverse()),this.pushStack(i)}}),ot.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ot.find.matchesSelector(r,e)?[r]:[]:ot.find.matches(e,ot.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){for(var i=[],o=r!==t;(e=e[n])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&ot(e).is(r))break;i.push(e)}return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var Mt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Pt=/<([\w:]+)/,Ot=/<|&#?\w+;/,qt=/<(?:script|style|link)/i,Ht=/^(?:checkbox|radio)$/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,Lt=/^$|\/(?:java|ecma)script/i,Vt=/^true\/(.*)/,_t=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ft={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,"",""]};Ft.optgroup=Ft.option,Ft.tbody=Ft.tfoot=Ft.colgroup=Ft.caption=Ft.thead,Ft.th=Ft.td,ot.fn.extend({text:function(e){return ot.access(this,function(e){return e===t?ot.text(this):this.empty().append((this[0]&&this[0].ownerDocument||W).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=f(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=f(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?ot.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||ot.cleanData(m(n)),n.parentNode&&(t&&ot.contains(n.ownerDocument,n)&&d(m(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ot.cleanData(m(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return ot.clone(this,e,t)})},html:function(e){return ot.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t&&1===n.nodeType)return n.innerHTML;if("string"==typeof e&&!qt.test(e)&&!Ft[(Pt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Mt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(ot.cleanData(m(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=ot.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),ot(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=K.apply([],e);var r,i,o,a,s,u,c=0,l=this.length,f=this,d=l-1,g=e[0],v=ot.isFunction(g);if(v||!(1>=l||"string"!=typeof g||ot.support.checkClone)&&Rt.test(g))return this.each(function(r){var i=f.eq(r);v&&(e[0]=g.call(this,r,i.html())),i.domManip(e,t,n)});if(l&&(r=ot.buildFragment(e,this[0].ownerDocument,!1,!n&&this),i=r.firstChild,1===r.childNodes.length&&(r=i),i)){for(o=ot.map(m(r,"script"),p),a=o.length;l>c;c++)s=r,c!==d&&(s=ot.clone(s,!0,!0),a&&ot.merge(o,m(s,"script"))),t.call(this[c],s,c);if(a)for(u=o[o.length-1].ownerDocument,ot.map(o,h),c=0;a>c;c++)s=o[c],Lt.test(s.type||"")&&!mt.access(s,"globalEval")&&ot.contains(u,s)&&(s.src?ot._evalUrl(s.src):ot.globalEval(s.textContent.replace(_t,"")))}return this}}),ot.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ot.fn[e]=function(e){for(var n,r=[],i=ot(e),o=i.length-1,a=0;o>=a;a++)n=a===o?this:this.clone(!0),ot(i[a])[t](n),Z.apply(r,n.get());return this.pushStack(r)}}),ot.extend({clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=ot.contains(e.ownerDocument,e);if(!(ot.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ot.isXMLDoc(e)))for(a=m(s),o=m(e),r=0,i=o.length;i>r;r++)v(o[r],a[r]);if(t)if(n)for(o=o||m(e),a=a||m(s),r=0,i=o.length;i>r;r++)g(o[r],a[r]);else g(e,s);return a=m(s,"script"),a.length>0&&d(a,!u&&m(e,"script")),s},buildFragment:function(e,t,n,r){for(var i,o,a,s,u,c,l=0,f=e.length,p=t.createDocumentFragment(),h=[];f>l;l++)if(i=e[l],i||0===i)if("object"===ot.type(i))ot.merge(h,i.nodeType?[i]:i);else if(Ot.test(i)){for(o=o||p.appendChild(t.createElement("div")),a=(Pt.exec(i)||["",""])[1].toLowerCase(),s=Ft[a]||Ft._default,o.innerHTML=s[1]+i.replace(Mt,"<$1></$2>")+s[2],c=s[0];c--;)o=o.lastChild;ot.merge(h,o.childNodes),o=p.firstChild,o.textContent=""}else h.push(t.createTextNode(i));for(p.textContent="",l=0;i=h[l++];)if((!r||-1===ot.inArray(i,r))&&(u=ot.contains(i.ownerDocument,i),o=m(p.appendChild(i),"script"),u&&d(o),n))for(c=0;i=o[c++];)Lt.test(i.type||"")&&n.push(i);return p},cleanData:function(e){for(var n,r,o,a,s,u,c=ot.event.special,l=0;(r=e[l])!==t;l++){if(i.accepts(r)&&(s=r[mt.expando],s&&(n=mt.cache[s]))){if(o=Object.keys(n.events||{}),o.length)for(u=0;(a=o[u])!==t;u++)c[a]?ot.event.remove(r,a):ot.removeEvent(r,a,n.handle);mt.cache[s]&&delete mt.cache[s]}delete gt.cache[r[gt.expando]]}},_evalUrl:function(e){return ot.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),ot.fn.extend({wrapAll:function(e){var t;return ot.isFunction(e)?this.each(function(t){ot(this).wrapAll(e.call(this,t))}):(this[0]&&(t=ot(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return ot.isFunction(e)?this.each(function(t){ot(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ot(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ot.isFunction(e);return this.each(function(n){ot(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)}).end()}});var It,Bt,Ut=/^(none|table(?!-c[ea]).+)/,Wt=/^margin/,zt=new RegExp("^("+at+")(.*)$","i"),Xt=new RegExp("^("+at+")(?!px)[a-z%]+$","i"),Gt=new RegExp("^([+-])=("+at+")","i"),Qt={BODY:"block"},Yt={position:"absolute",visibility:"hidden",display:"block"},Jt={letterSpacing:0,fontWeight:400},Kt=["Top","Right","Bottom","Left"],Zt=["Webkit","O","Moz","ms"];ot.fn.extend({css:function(e,n){return ot.access(this,function(e,n,r){var i,o,a={},s=0;if(ot.isArray(n)){for(i=b(e),o=n.length;o>s;s++)a[n[s]]=ot.css(e,n[s],!1,i);return a}return r!==t?ot.style(e,n,r):ot.css(e,n)},e,n,arguments.length>1)},show:function(){return w(this,!0)},hide:function(){return w(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){y(this)?ot(this).show():ot(this).hide()})}}),ot.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=It(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=ot.camelCase(n),c=e.style;return n=ot.cssProps[u]||(ot.cssProps[u]=$(c,u)),s=ot.cssHooks[n]||ot.cssHooks[u],r===t?s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:c[n]:(a=typeof r,"string"===a&&(o=Gt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(ot.css(e,n)),a="number"),null==r||"number"===a&&isNaN(r)||("number"!==a||ot.cssNumber[u]||(r+="px"),ot.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(c[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t||(c[n]=r)),void 0)}},css:function(e,n,r,i){var o,a,s,u=ot.camelCase(n);return n=ot.cssProps[u]||(ot.cssProps[u]=$(e.style,u)),s=ot.cssHooks[n]||ot.cssHooks[u],s&&"get"in s&&(o=s.get(e,!0,r)),o===t&&(o=It(e,n,i)),"normal"===o&&n in Jt&&(o=Jt[n]),""===r||r?(a=parseFloat(o),r===!0||ot.isNumeric(a)?a||0:o):o}}),It=function(e,n,r){var i,o,a,s=r||b(e),u=s?s.getPropertyValue(n)||s[n]:t,c=e.style;return s&&(""!==u||ot.contains(e.ownerDocument,e)||(u=ot.style(e,n)),Xt.test(u)&&Wt.test(n)&&(i=c.width,o=c.minWidth,a=c.maxWidth,c.minWidth=c.maxWidth=c.width=u,u=s.width,c.width=i,c.minWidth=o,c.maxWidth=a)),u},ot.each(["height","width"],function(e,t){ot.cssHooks[t]={get:function(e,n,r){return n?0===e.offsetWidth&&Ut.test(ot.css(e,"display"))?ot.swap(e,Yt,function(){return k(e,t,r)}):k(e,t,r):void 0},set:function(e,n,r){var i=r&&b(e);return x(e,n,r?C(e,t,r,ot.support.boxSizing&&"border-box"===ot.css(e,"boxSizing",!1,i),i):0)}}}),ot(function(){ot.support.reliableMarginRight||(ot.cssHooks.marginRight={get:function(e,t){return t?ot.swap(e,{display:"inline-block"},It,[e,"marginRight"]):void 0}}),!ot.support.pixelPosition&&ot.fn.position&&ot.each(["top","left"],function(e,t){ot.cssHooks[t]={get:function(e,n){return n?(n=It(e,t),Xt.test(n)?ot(e).position()[t]+"px":n):void 0}}})}),ot.expr&&ot.expr.filters&&(ot.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},ot.expr.filters.visible=function(e){return!ot.expr.filters.hidden(e)}),ot.each({margin:"",padding:"",border:"Width"},function(e,t){ot.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+Kt[r]+t]=o[r]||o[r-2]||o[0];return i}},Wt.test(e)||(ot.cssHooks[e+t].set=x)});var en=/%20/g,tn=/\[\]$/,nn=/\r?\n/g,rn=/^(?:submit|button|image|reset|file)$/i,on=/^(?:input|select|textarea|keygen)/i;ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ot.prop(this,"elements");return e?ot.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ot(this).is(":disabled")&&on.test(this.nodeName)&&!rn.test(e)&&(this.checked||!Ht.test(e))}).map(function(e,t){var n=ot(this).val();return null==n?null:ot.isArray(n)?ot.map(n,function(e){return{name:t.name,value:e.replace(nn,"\r\n")}}):{name:t.name,value:n.replace(nn,"\r\n")}}).get()}}),ot.param=function(e,n){var r,i=[],o=function(e,t){t=ot.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=ot.ajaxSettings&&ot.ajaxSettings.traditional),ot.isArray(e)||e.jquery&&!ot.isPlainObject(e))ot.each(e,function(){o(this.name,this.value)});else for(r in e)E(r,e[r],n,o);return i.join("&").replace(en,"+")},ot.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){ot.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ot.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var an,sn,un=ot.now(),cn=/\?/,ln=/#.*$/,fn=/([?&])_=[^&]*/,pn=/^(.*?):[ \t]*([^\r\n]*)$/gm,hn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,dn=/^(?:GET|HEAD)$/,gn=/^\/\//,mn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,vn=ot.fn.load,$n={},yn={},bn="*/".concat("*");try{sn=U.href}catch(wn){sn=W.createElement("a"),sn.href="",sn=sn.href}an=mn.exec(sn.toLowerCase())||[],ot.fn.load=function(e,n,r){if("string"!=typeof e&&vn)return vn.apply(this,arguments);var i,o,a,s=this,u=e.indexOf(" ");return u>=0&&(i=e.slice(u),e=e.slice(0,u)),ot.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(o="POST"),s.length>0&&ot.ajax({url:e,type:o,dataType:"html",data:n}).done(function(e){a=arguments,s.html(i?ot("<div>").append(ot.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,a||[e.responseText,t,e])}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ot.fn[t]=function(e){return this.on(t,e)}}),ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:sn,type:"GET",isLocal:hn.test(an[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":bn,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":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?N(N(e,ot.ajaxSettings),t):N(ot.ajaxSettings,e)},ajaxPrefilter:A($n),ajaxTransport:A(yn),ajax:function(e,n){function r(e,n,r,s){var c,f,$,y,w,C=n;2!==b&&(b=2,u&&clearTimeout(u),i=t,a=s||"",x.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(y=D(p,x,r)),y=M(p,y,x,c),c?(p.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(ot.lastModified[o]=w),w=x.getResponseHeader("etag"),w&&(ot.etag[o]=w)),204===e||"HEAD"===p.type?C="nocontent":304===e?C="notmodified":(C=y.state,f=y.data,$=y.error,c=!$)):($=C,(e||!C)&&(C="error",0>e&&(e=0))),x.status=e,x.statusText=(n||C)+"",c?g.resolveWith(h,[f,C,x]):g.rejectWith(h,[x,C,$]),x.statusCode(v),v=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[x,p,c?f:$]),m.fireWith(h,[x,C]),l&&(d.trigger("ajaxComplete",[x,p]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=t),n=n||{};var i,o,a,s,u,c,l,f,p=ot.ajaxSetup({},n),h=p.context||p,d=p.context&&(h.nodeType||h.jquery)?ot(h):ot.event,g=ot.Deferred(),m=ot.Callbacks("once memory"),v=p.statusCode||{},$={},y={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!s)for(s={};t=pn.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,$[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)v[t]=[v[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||w;return i&&i.abort(t),r(0,t),this}};if(g.promise(x).complete=m.add,x.success=x.done,x.error=x.fail,p.url=((e||p.url||sn)+"").replace(ln,"").replace(gn,an[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=ot.trim(p.dataType||"*").toLowerCase().match(st)||[""],null==p.crossDomain&&(c=mn.exec(p.url.toLowerCase()),p.crossDomain=!(!c||c[1]===an[1]&&c[2]===an[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(an[3]||("http:"===an[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=ot.param(p.data,p.traditional)),j($n,p,n,x),2===b)return x;l=p.global,l&&0===ot.active++&&ot.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!dn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(cn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=fn.test(o)?o.replace(fn,"$1_="+un++):o+(cn.test(o)?"&":"?")+"_="+un++)),p.ifModified&&(ot.lastModified[o]&&x.setRequestHeader("If-Modified-Since",ot.lastModified[o]),ot.etag[o]&&x.setRequestHeader("If-None-Match",ot.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",p.contentType),x.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+bn+"; q=0.01":""):p.accepts["*"]);for(f in p.headers)x.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(p.beforeSend.call(h,x,p)===!1||2===b))return x.abort();w="abort";for(f in{success:1,error:1,complete:1})x[f](p[f]);if(i=j(yn,p,n,x)){x.readyState=1,l&&d.trigger("ajaxSend",[x,p]),p.async&&p.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},p.timeout));try{b=1,i.send($,r)}catch(C){if(!(2>b))throw C;r(-1,C)}}else r(-1,"No Transport");return x},getJSON:function(e,t,n){return ot.get(e,t,n,"json")},getScript:function(e,n){return ot.get(e,t,n,"script")}}),ot.each(["get","post"],function(e,n){ot[n]=function(e,r,i,o){return ot.isFunction(r)&&(o=o||i,i=r,r=t),ot.ajax({url:e,type:n,dataType:o,data:r,success:i})}}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return ot.globalEval(e),e}}}),ot.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ot.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=ot("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),W.head.appendChild(t[0])},abort:function(){n&&n()}}}});var xn=[],Cn=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=xn.pop()||ot.expando+"_"+un++;return this[e]=!0,e}}),ot.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&&(Cn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Cn.test(n.data)&&"data");return u||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=ot.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Cn,"$1"+o):n.jsonp!==!1&&(n.url+=(cn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||ot.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,xn.push(o)),s&&ot.isFunction(a)&&a(s[0]),s=a=t}),"script"):void 0}),ot.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var kn=ot.ajaxSettings.xhr(),Tn={0:200,1223:204},Sn=0,En={};e.ActiveXObject&&ot(e).on("unload",function(){for(var e in En)En[e]();En=t}),ot.support.cors=!!kn&&"withCredentials"in kn,ot.support.ajax=kn=!!kn,ot.ajaxTransport(function(e){var n;return ot.support.cors||kn&&!e.crossDomain?{send:function(r,i){var o,a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)s.setRequestHeader(o,r[o]);n=function(e){return function(){n&&(delete En[a],n=s.onload=s.onerror=null,"abort"===e?s.abort():"error"===e?i(s.status||404,s.statusText):i(Tn[s.status]||s.status,s.statusText,"string"==typeof s.responseText?{text:s.responseText}:t,s.getAllResponseHeaders()))}},s.onload=n(),s.onerror=n("error"),n=En[a=Sn++]=n("abort"),s.send(e.hasContent&&e.data||null)},abort:function(){n&&n()}}:void 0});var An,jn,Nn=/^(?:toggle|show|hide)$/,Dn=new RegExp("^(?:([+-])=|)("+at+")([a-z%]*)$","i"),Mn=/queueHooks$/,Pn=[R],On={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Dn.exec(t),o=i&&i[3]||(ot.cssNumber[e]?"":"px"),a=(ot.cssNumber[e]||"px"!==o&&+r)&&Dn.exec(ot.css(n.elem,e)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,ot.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--u)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};ot.Animation=ot.extend(q,{tweener:function(e,t){ot.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;i>r;r++)n=e[r],On[n]=On[n]||[],On[n].unshift(t)},prefilter:function(e,t){t?Pn.unshift(e):Pn.push(e)}}),ot.Tween=L,L.prototype={constructor:L,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ot.cssNumber[n]?"":"px")},cur:function(){var e=L.propHooks[this.prop];return e&&e.get?e.get(this):L.propHooks._default.get(this)},run:function(e){var t,n=L.propHooks[this.prop];return this.pos=t=this.options.duration?ot.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):L.propHooks._default.set(this),this}},L.prototype.init.prototype=L.prototype,L.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=ot.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){ot.fx.step[e.prop]?ot.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[ot.cssProps[e.prop]]||ot.cssHooks[e.prop])?ot.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},L.propHooks.scrollTop=L.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ot.each(["toggle","show","hide"],function(e,t){var n=ot.fn[t];ot.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(V(t,!0),e,r,i)}}),ot.fn.extend({fadeTo:function(e,t,n,r){return this.filter(y).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=ot.isEmptyObject(e),o=ot.speed(t,n,r),a=function(){var t=q(this,ot.extend({},e),o);(i||mt.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=ot.timers,a=mt.get(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Mn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&ot.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=mt.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=ot.timers,a=r?r.length:0;for(n.finish=!0,ot.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),ot.each({slideDown:V("show"),slideUp:V("hide"),slideToggle:V("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ot.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),ot.speed=function(e,t,n){var r=e&&"object"==typeof e?ot.extend({},e):{complete:n||!n&&t||ot.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ot.isFunction(t)&&t};return r.duration=ot.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ot.fx.speeds?ot.fx.speeds[r.duration]:ot.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){ot.isFunction(r.old)&&r.old.call(this),r.queue&&ot.dequeue(this,r.queue)},r},ot.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},ot.timers=[],ot.fx=L.prototype.init,ot.fx.tick=function(){var e,n=ot.timers,r=0;for(An=ot.now();r<n.length;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||ot.fx.stop(),An=t},ot.fx.timer=function(e){e()&&ot.timers.push(e)&&ot.fx.start()},ot.fx.interval=13,ot.fx.start=function(){jn||(jn=setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){clearInterval(jn),jn=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fx.step={},ot.expr&&ot.expr.filters&&(ot.expr.filters.animated=function(e){return ot.grep(ot.timers,function(t){return e===t.elem
}).length}),ot.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){ot.offset.setOffset(this,e,t)});var n,r,i=this[0],o={top:0,left:0},a=i&&i.ownerDocument;if(a)return n=a.documentElement,ot.contains(n,i)?(typeof i.getBoundingClientRect!==B&&(o=i.getBoundingClientRect()),r=_(a),{top:o.top+r.pageYOffset-n.clientTop,left:o.left+r.pageXOffset-n.clientLeft}):o},ot.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,c,l=ot.css(e,"position"),f=ot(e),p={};"static"===l&&(e.style.position="relative"),s=f.offset(),o=ot.css(e,"top"),u=ot.css(e,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),ot.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(p.top=t.top-s.top+a),null!=t.left&&(p.left=t.left-s.left+i),"using"in t?t.using.call(e,p):f.css(p)}},ot.fn.extend({position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===ot.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ot.nodeName(e[0],"html")||(r=e.offset()),r.top+=ot.css(e[0],"borderTopWidth",!0),r.left+=ot.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-ot.css(n,"marginTop",!0),left:t.left-r.left-ot.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||z;e&&!ot.nodeName(e,"html")&&"static"===ot.css(e,"position");)e=e.offsetParent;return e||z})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var i="pageYOffset"===r;ot.fn[n]=function(o){return ot.access(this,function(n,o,a){var s=_(n);return a===t?s?s[r]:n[o]:(s?s.scrollTo(i?e.pageXOffset:a,i?a:e.pageYOffset):n[o]=a,void 0)},n,o,arguments.length,null)}}),ot.each({Height:"height",Width:"width"},function(e,n){ot.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){ot.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return ot.access(this,function(n,r,i){var o;return ot.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?ot.css(n,r,s):ot.style(n,r,i,s)},n,a?i:t,a,null)}})}),ot.fn.size=function(){return this.length},ot.fn.andSelf=ot.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=ot:"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot}),"object"==typeof e&&"object"==typeof e.document&&(e.jQuery=e.$=ot)}(window),function(e,t,n){"use strict";function r(e){return e&&"number"==typeof e.length?"function"!=typeof e.hasOwnProperty&&"function"!=typeof e.constructor?!0:e instanceof st||Qn&&e instanceof Qn||"[object Object]"!==tr.call(e)||"function"==typeof e.callee:!1}function i(e,t,n){var o;if(e)if(C(e))for(o in e)"prototype"!=o&&"length"!=o&&"name"!=o&&e.hasOwnProperty(o)&&t.call(n,e[o],o);else if(e.forEach&&e.forEach!==i)e.forEach(t,n);else if(r(e))for(o=0;o<e.length;o++)t.call(n,e[o],o);else for(o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o);return e}function o(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t.sort()}function a(e,t,n){for(var r=o(e),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function s(e){return function(t,n){e(n,t)}}function u(){for(var e,t=rr.length;t;){if(t--,e=rr[t].charCodeAt(0),57==e)return rr[t]="A",rr.join("");if(90!=e)return rr[t]=String.fromCharCode(e+1),rr.join("");rr[t]="0"}return rr.unshift("0"),rr.join("")}function c(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function l(e){var t=e.$$hashKey;return i(arguments,function(t){t!==e&&i(t,function(t,n){e[n]=t})}),c(e,t),e}function f(e){return parseInt(e,10)}function p(e,t){return l(new(l(function(){},{prototype:e})),t)}function h(){}function d(e){return e}function g(e){return function(){return e}}function m(e){return"undefined"==typeof e}function v(e){return"undefined"!=typeof e}function $(e){return null!=e&&"object"==typeof e}function y(e){return"string"==typeof e}function b(e){return"number"==typeof e}function w(e){return"[object Date]"==tr.apply(e)}function x(e){return"[object Array]"==tr.apply(e)}function C(e){return"function"==typeof e}function k(e){return"[object RegExp]"==tr.apply(e)}function T(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function S(e){return e&&e.$evalAsync&&e.$watch}function E(e){return"[object File]"===tr.apply(e)}function A(e){return e&&(e.nodeName||e.bind&&e.find)}function j(e,t,n){var r=[];return i(e,function(e,i,o){r.push(t.call(n,e,i,o))}),r}function N(e,t){return-1!=D(e,t)}function D(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;n++)if(t===e[n])return n;return-1}function M(e,t){var n=D(e,t);return n>=0&&e.splice(n,1),t}function P(e,t){if(T(e)||S(e))throw Error("Can't copy Window or Scope");if(t){if(e===t)throw Error("Can't copy equivalent objects or arrays");if(x(e)){t.length=0;for(var n=0;n<e.length;n++)t.push(P(e[n]))}else{var r=t.$$hashKey;i(t,function(e,n){delete t[n]});for(var o in e)t[o]=P(e[o]);c(t,r)}}else t=e,e&&(x(e)?t=P(e,[]):w(e)?t=new Date(e.getTime()):k(e)?t=new RegExp(e.source):$(e)&&(t=P(e,{})));return t}function O(e,t){t=t||{};for(var n in e)e.hasOwnProperty(n)&&"$$"!==n.substr(0,2)&&(t[n]=e[n]);return t}function q(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var r,i,o,a=typeof e,s=typeof t;if(a==s&&"object"==a){if(!x(e)){if(w(e))return w(t)&&e.getTime()==t.getTime();if(k(e)&&k(t))return e.toString()==t.toString();if(S(e)||S(t)||T(e)||T(t)||x(t))return!1;o={};for(i in e)if("$"!==i.charAt(0)&&!C(e[i])){if(!q(e[i],t[i]))return!1;o[i]=!0}for(i in t)if(!o[i]&&"$"!==i.charAt(0)&&t[i]!==n&&!C(t[i]))return!1;return!0}if(!x(t))return!1;if((r=e.length)==t.length){for(i=0;r>i;i++)if(!q(e[i],t[i]))return!1;return!0}}return!1}function H(e,t,n){return e.concat(Zn.call(t,n))}function R(e,t){return Zn.call(e,t||0)}function L(e,t){var n=arguments.length>2?R(arguments,2):[];return!C(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,n.concat(Zn.call(arguments,0))):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function V(e,r){var i=r;return/^\$+/.test(e)?i=n:T(r)?i="$WINDOW":r&&t===r?i="$DOCUMENT":S(r)&&(i="$SCOPE"),i}function _(e,t){return"undefined"==typeof e?n:JSON.stringify(e,V,t?"  ":null)}function F(e){return y(e)?JSON.parse(e):e}function I(e){if(e&&0!==e.length){var t=Un(""+e);e=!("f"==t||"0"==t||"false"==t||"no"==t||"n"==t||"[]"==t)}else e=!1;return e}function B(e){e=Gn(e).clone();try{e.html("")}catch(t){}var n=3,r=Gn("<div>").append(e).html();try{return e[0].nodeType===n?Un(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+Un(t)})}catch(t){return Un(r)}}function U(e){try{return decodeURIComponent(e)}catch(t){}}function W(e){var t,n,r={};return i((e||"").split("&"),function(e){e&&(t=e.split("="),n=U(t[0]),v(n)&&(r[n]=v(t[1])?U(t[1]):!0))}),r}function z(e){var t=[];return i(e,function(e,n){t.push(G(n,!0)+(e===!0?"":"="+G(e,!0)))}),t.length?t.join("&"):""}function X(e){return G(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function G(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function Q(e,n){function r(e){e&&s.push(e)}var o,a,s=[e],u=["ng:app","ng-app","x-ng-app","data-ng-app"],c=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;i(u,function(n){u[n]=!0,r(t.getElementById(n)),n=n.replace(":","\\:"),e.querySelectorAll&&(i(e.querySelectorAll("."+n),r),i(e.querySelectorAll("."+n+"\\:"),r),i(e.querySelectorAll("["+n+"]"),r))}),i(s,function(e){if(!o){var t=" "+e.className+" ",n=c.exec(t);n?(o=e,a=(n[2]||"").replace(/\s+/g,",")):i(e.attributes,function(t){!o&&u[t.name]&&(o=e,a=t.value)})}}),o&&n(o,a?[a]:[])}function Y(t,n){var r=function(){t=Gn(t),n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),n.unshift("ng");var e=St(n);return e.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),e},o=/^NG_DEFER_BOOTSTRAP!/;return e&&!o.test(e.name)?r():(e.name=e.name.replace(o,""),nr.resumeBootstrap=function(e){i(e,function(e){n.push(e)}),r()},void 0)}function J(e,t){return t=t||"_",e.replace(or,function(e,n){return(n?t:"")+e.toLowerCase()})}function K(){Qn=e.jQuery,Qn?(Gn=Qn,l(Qn.fn,{scope:dr.scope,controller:dr.controller,injector:dr.injector,inheritedData:dr.inheritedData}),at("remove",!0,!0,!1),at("empty",!1,!1,!1),at("html",!1,!1,!0)):Gn=st,nr.element=Gn}function Z(e,t,n){if(!e)throw new Error("Argument '"+(t||"?")+"' is "+(n||"required"));return e}function et(e,t,n){return n&&x(e)&&(e=e[e.length-1]),Z(C(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function tt(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;a>s;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&C(e)?L(o,e):e}function nt(e){function t(e,t,n){return e[t]||(e[t]=n())}return t(t(e,"angular",Object),"module",function(){var e={};return function(n,r,i){return r&&e.hasOwnProperty(n)&&(e[n]=null),t(e,n,function(){function e(e,n,r){return function(){return t[r||"push"]([e,n,arguments]),s}}if(!r)throw Error("No module: "+n);var t=[],o=[],a=e("$injector","invoke"),s={_invokeQueue:t,_runBlocks:o,requires:r,name:n,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:a,run:function(e){return o.push(e),this}};return i&&a(i),s})}})}function rt(t){l(t,{bootstrap:Y,copy:P,extend:l,equals:q,element:Gn,forEach:i,injector:St,noop:h,bind:L,toJson:_,fromJson:F,identity:d,isUndefined:m,isDefined:v,isString:y,isFunction:C,isObject:$,isNumber:b,isElement:A,isArray:x,version:ar,isDate:w,lowercase:Un,uppercase:Wn,callbacks:{counter:0}}),Yn=nt(e);try{Yn("ngLocale")}catch(n){Yn("ngLocale",[]).provider("$locale",$n)}Yn("ng",["ngLocale"],["$provide",function(e){e.provider("$compile",Mt).directive({a:Rr,input:Xr,textarea:Xr,form:Fr,script:Ai,select:Ni,style:Mi,option:Di,ngBind:oi,ngBindHtmlUnsafe:si,ngBindTemplate:ai,ngClass:ui,ngClassEven:li,ngClassOdd:ci,ngCsp:hi,ngCloak:fi,ngController:pi,ngForm:Ir,ngHide:wi,ngInclude:gi,ngInit:mi,ngNonBindable:vi,ngPluralize:$i,ngRepeat:yi,ngShow:bi,ngStyle:xi,ngSwitch:Ci,ngSwitchWhen:ki,ngSwitchDefault:Ti,ngOptions:ji,ngView:Ei,ngTransclude:Si,ngModel:Zr,ngList:ni,ngChange:ei,required:ti,ngRequired:ti,ngValue:ii}).directive(Lr).directive(di),e.provider({$anchorScroll:Et,$browser:jt,$cacheFactory:Nt,$controller:Ot,$document:qt,$exceptionHandler:Ht,$filter:bn,$interpolate:Rt,$http:gn,$httpBackend:mn,$location:Qt,$log:Yt,$parse:nn,$route:an,$routeParams:sn,$rootScope:un,$q:rn,$sniffer:cn,$templateCache:Dt,$timeout:yn,$window:ln})}])}function it(){return++cr}function ot(e){return e.replace(pr,function(e,t,n,r){return r?n.toUpperCase():n}).replace(hr,"Moz$1")}function at(e,t,n,r){function i(e){var i,a,s,u,c,l,f,p=n&&e?[this.filter(e)]:[this],h=t;if(!r||null!=e)for(;p.length;)for(i=p.shift(),a=0,s=i.length;s>a;a++)for(u=Gn(i[a]),h?u.triggerHandler("$destroy"):h=!h,c=0,l=(f=u.children()).length;l>c;c++)p.push(Qn(f[c]));return o.apply(this,arguments)}var o=Qn.fn[e];o=o.$original||o,i.$original=o,Qn.fn[e]=i}function st(e){if(e instanceof st)return e;if(!(this instanceof st)){if(y(e)&&"<"!=e.charAt(0))throw Error("selectors not implemented");return new st(e)}if(y(e)){var n=t.createElement("div");n.innerHTML="<div>&#160;</div>"+e,n.removeChild(n.firstChild),vt(this,n.childNodes),this.remove()}else vt(this,e)}function ut(e){return e.cloneNode(!0)}function ct(e){ft(e);for(var t=0,n=e.childNodes||[];t<n.length;t++)ct(n[t])}function lt(e,t,n){var r=pt(e,"events"),o=pt(e,"handle");o&&(m(t)?i(r,function(t,n){fr(e,n,t),delete r[n]}):m(n)?(fr(e,t,r[t]),delete r[t]):M(r[t]||[],n))}function ft(e){var t=e[ur],r=sr[t];r&&(r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),lt(e)),delete sr[t],e[ur]=n)}function pt(e,t,n){var r=e[ur],i=sr[r||-1];return v(n)?(i||(e[ur]=r=it(),i=sr[r]={}),i[t]=n,void 0):i&&i[t]}function ht(e,t,n){var r=pt(e,"data"),i=v(n),o=!i&&v(t),a=o&&!$(t);if(r||a||pt(e,"data",r={}),i)r[t]=n;else{if(!o)return r;if(a)return r&&r[t];l(r,t)}}function dt(e,t){return(" "+e.className+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function gt(e,t){t&&i(t.split(" "),function(t){e.className=ir((" "+e.className+" ").replace(/[\n\t]/g," ").replace(" "+ir(t)+" "," "))})}function mt(e,t){t&&i(t.split(" "),function(t){dt(e,t)||(e.className=ir(e.className+" "+ir(t)))})}function vt(e,t){if(t){t=t.nodeName||!v(t.length)||T(t)?[t]:t;for(var n=0;n<t.length;n++)e.push(t[n])}}function $t(e,t){return yt(e,"$"+(t||"ngController")+"Controller")}function yt(e,t,n){for(e=Gn(e),9==e[0].nodeType&&(e=e.find("html"));e.length;){if(n=e.data(t))return n;e=e.parent()}}function bt(e,t){var n=gr[t.toLowerCase()];return n&&mr[e.nodeName]&&n}function wt(e,n){var r=function(r,o){if(r.preventDefault||(r.preventDefault=function(){r.returnValue=!1}),r.stopPropagation||(r.stopPropagation=function(){r.cancelBubble=!0}),r.target||(r.target=r.srcElement||t),m(r.defaultPrevented)){var a=r.preventDefault;r.preventDefault=function(){r.defaultPrevented=!0,a.call(r)},r.defaultPrevented=!1}r.isDefaultPrevented=function(){return r.defaultPrevented},i(n[o||r.type],function(t){t.call(e,r)}),8>=Kn?(r.preventDefault=null,r.stopPropagation=null,r.isDefaultPrevented=null):(delete r.preventDefault,delete r.stopPropagation,delete r.isDefaultPrevented)};return r.elem=e,r}function xt(e){var t,r=typeof e;return"object"==r&&null!==e?"function"==typeof(t=e.$$hashKey)?t=e.$$hashKey():t===n&&(t=e.$$hashKey=u()):t=e,r+":"+t}function Ct(e){i(e,this.put,this)}function kt(){}function Tt(e){var t,n,r,o;return"function"==typeof e?(t=e.$inject)||(t=[],n=e.toString().replace(br,""),r=n.match(vr),i(r[1].split($r),function(e){e.replace(yr,function(e,n,r){t.push(r)})}),e.$inject=t):x(e)?(o=e.length-1,et(e[o],"fn"),t=e.slice(0,o)):et(e,"fn",!0),t}function St(e){function t(e){return function(t,n){return $(t)?(i(t,s(e)),void 0):e(t,n)}}function n(e,t){if((C(t)||x(t))&&(t=w.instantiate(t)),!t.$get)throw Error("Provider "+e+" must define $get factory method.");return b[e+d]=t}function r(e,t){return n(e,{$get:t})}function o(e,t){return r(e,["$injector",function(e){return e.instantiate(t)}])}function a(e,t){return r(e,g(t))}function u(e,t){b[e]=t,k[e]=t}function c(e,t){var n=w.get(e+d),r=n.$get;n.$get=function(){var e=T.invoke(r,n);return T.invoke(t,null,{$delegate:e})}}function l(e){var t=[];return i(e,function(e){if(!v.get(e))if(v.put(e,!0),y(e)){var n=Yn(e);t=t.concat(l(n.requires)).concat(n._runBlocks);try{for(var r=n._invokeQueue,i=0,o=r.length;o>i;i++){var a=r[i],s="$injector"==a[0]?w:w.get(a[0]);s[a[1]].apply(s,a[2])}}catch(u){throw u.message&&(u.message+=" from "+e),u}}else if(C(e))try{t.push(w.invoke(e))}catch(u){throw u.message&&(u.message+=" from "+e),u}else if(x(e))try{t.push(w.invoke(e))}catch(u){throw u.message&&(u.message+=" from "+String(e[e.length-1])),u}else et(e,"module")}),t}function f(e,t){function n(n){if("string"!=typeof n)throw Error("Service name expected");if(e.hasOwnProperty(n)){if(e[n]===p)throw Error("Circular dependency: "+m.join(" <- "));return e[n]}try{return m.unshift(n),e[n]=p,e[n]=t(n)}finally{m.shift()}}function r(e,t,r){var i,o,a,s=[],u=Tt(e);for(o=0,i=u.length;i>o;o++)a=u[o],s.push(r&&r.hasOwnProperty(a)?r[a]:n(a));switch(e.$inject||(e=e[i]),t?-1:s.length){case 0:return e();case 1:return e(s[0]);case 2:return e(s[0],s[1]);case 3:return e(s[0],s[1],s[2]);case 4:return e(s[0],s[1],s[2],s[3]);case 5:return e(s[0],s[1],s[2],s[3],s[4]);case 6:return e(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return e(s[0],s[1],s[2],s[3],s[4],s[5],s[6]);case 8:return e(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7]);case 9:return e(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8]);case 10:return e(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9]);default:return e.apply(t,s)}}function i(e,t){var n,i,o=function(){};return o.prototype=(x(e)?e[e.length-1]:e).prototype,n=new o,i=r(e,n,t),$(i)?i:n}return{invoke:r,instantiate:i,get:n,annotate:Tt}}var p={},d="Provider",m=[],v=new Ct,b={$provide:{provider:t(n),factory:t(r),service:t(o),value:t(a),constant:t(u),decorator:c}},w=f(b,function(){throw Error("Unknown provider: "+m.join(" <- "))}),k={},T=k.$injector=f(k,function(e){var t=w.get(e+d);return T.invoke(t.$get,t)});return i(l(e),function(e){T.invoke(e||h)}),T}function Et(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function o(e){var t=null;return i(e,function(e){t||"a"!==Un(e.nodeName)||(t=e)}),t}function a(){var e,r=n.hash();r?(e=s.getElementById(r))?e.scrollIntoView():(e=o(s.getElementsByName(r)))?e.scrollIntoView():"top"===r&&t.scrollTo(0,0):t.scrollTo(0,0)}var s=t.document;return e&&r.$watch(function(){return n.hash()},function(){r.$evalAsync(a)}),a}]}function At(e,t,r,o){function a(e){try{e.apply(null,R(arguments,1))}finally{if($--,0===$)for(;b.length;)try{b.pop()()}catch(t){r.error(t)}}}function s(e,t){!function n(){i(x,function(e){e()}),w=t(n,e)}()}function u(){C!=c.url()&&(C=c.url(),i(S,function(e){e(c.url())}))}var c=this,l=t[0],f=e.location,p=e.history,d=e.setTimeout,g=e.clearTimeout,v={};c.isMock=!1;var $=0,b=[];c.$$completeOutstandingRequest=a,c.$$incOutstandingRequestCount=function(){$++},c.notifyWhenNoOutstandingRequests=function(e){i(x,function(e){e()}),0===$?e():b.push(e)};var w,x=[];c.addPollFn=function(e){return m(w)&&s(100,d),x.push(e),e};var C=f.href,k=t.find("base"),T=null;c.url=function(e,t){if(e){if(C==e)return;return C=e,o.history?t?p.replaceState(null,"",e):(p.pushState(null,"",e),k.attr("href",k.attr("href"))):t?(f.replace(e),T=e):(f.href=e,T=null),c}return T||f.href.replace(/%27/g,"'")};var S=[],E=!1;c.onUrlChange=function(t){return E||(o.history&&Gn(e).bind("popstate",u),o.hashchange?Gn(e).bind("hashchange",u):c.addPollFn(u),E=!0),S.push(t),t},c.baseHref=function(){var e=k.attr("href");return e?e.replace(/^https?\:\/\/[^\/]*/,""):""};var A={},j="",N=c.baseHref();c.cookies=function(e,t){var i,o,a,s,u;if(!e){if(l.cookie!==j)for(j=l.cookie,o=j.split("; "),A={},s=0;s<o.length;s++)if(a=o[s],u=a.indexOf("="),u>0){var e=unescape(a.substring(0,u));A[e]===n&&(A[e]=unescape(a.substring(u+1)))}return A}t===n?l.cookie=escape(e)+"=;path="+N+";expires=Thu, 01 Jan 1970 00:00:00 GMT":y(t)&&(i=(l.cookie=escape(e)+"="+escape(t)+";path="+N).length+1,i>4096&&r.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+i+" > 4096 bytes)!"))},c.defer=function(e,t){var n;return $++,n=d(function(){delete v[n],a(e)},t||0),v[n]=!0,n},c.defer.cancel=function(e){return v[e]?(delete v[e],g(e),a(h),!0):!1}}function jt(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new At(e,r,t,n)}]}function Nt(){this.$get=function(){function e(e,n){function r(e){e!=f&&(p?p==e&&(p=e.n):p=e,i(e.n,e.p),i(e,f),f=e,f.n=null)}function i(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw Error("cacheId "+e+" taken");var o=0,a=l({},n,{id:e}),s={},u=n&&n.capacity||Number.MAX_VALUE,c={},f=null,p=null;return t[e]={put:function(e,t){var n=c[e]||(c[e]={key:e});r(n),m(t)||(e in s||o++,s[e]=t,o>u&&this.remove(p.key))},get:function(e){var t=c[e];if(t)return r(t),s[e]},remove:function(e){var t=c[e];t&&(t==f&&(f=t.p),t==p&&(p=t.n),i(t.n,t.p),delete c[e],delete s[e],o--)},removeAll:function(){s={},o=0,c={},f=p=null},destroy:function(){s=null,a=null,c=null,delete t[e]},info:function(){return l({},a,{size:o})}}}var t={};return e.info=function(){var e={};return i(t,function(t,n){e[n]=t.info()}),e},e.get=function(e){return t[e]},e}}function Dt(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function Mt(e){var r={},o="Directive",a=/^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,u=/(([\d\w\-_]+)(?:\:([^;]+))?;?)/,c="Template must have exactly one root element. was: ",f=/^\s*(https?|ftp|mailto|file):/;this.directive=function p(t,n){return y(t)?(Z(n,"directive"),r.hasOwnProperty(t)||(r[t]=[],e.factory(t+o,["$injector","$exceptionHandler",function(e,n){var o=[];return i(r[t],function(r){try{var i=e.invoke(r);C(i)?i={compile:g(i)}:!i.compile&&i.link&&(i.compile=g(i.link)),i.priority=i.priority||0,i.name=i.name||t,i.require=i.require||i.controller&&i.name,i.restrict=i.restrict||"A",o.push(i)}catch(a){n(a)}}),o}])),r[t].push(n)):i(t,s(p)),this},this.urlSanitizationWhitelist=function(e){return v(e)?(f=e,this):f},this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document",function(e,s,p,h,m,v,b,w,k){function T(e,t,n){e instanceof Gn||(e=Gn(e)),i(e,function(t,n){3==t.nodeType&&t.nodeValue.match(/\S+/)&&(e[n]=Gn(t).wrap("<span></span>").parent()[0])});var r=E(e,t,e,n);return function(t,n){Z(t,"scope");for(var i=n?dr.clone.call(e):e,o=0,a=i.length;a>o;o++){var s=i[o];(1==s.nodeType||9==s.nodeType)&&i.eq(o).data("$scope",t)}return S(i,"ng-scope"),n&&n(i,t),r&&r(t,i,i),i}}function S(e,t){try{e.addClass(t)}catch(n){}}function E(e,t,r,i){function o(e,r,i,o){var a,s,u,c,l,p,h,d,g=[];for(p=0,h=r.length;h>p;p++)g.push(r[p]);for(p=0,d=0,h=f.length;h>p;d++)u=g[d],a=f[p++],s=f[p++],a?(a.scope?(c=e.$new($(a.scope)),Gn(u).data("$scope",c)):c=e,l=a.transclude,l||!o&&t?a(s,c,u,i,function(t){return function(n){var r=e.$new();return r.$$transcluded=!0,t(r,n).bind("$destroy",L(r,r.$destroy))}}(l||t)):a(s,c,u,n,o)):s&&s(e,u.childNodes,n,o)}for(var a,s,u,c,l,f=[],p=0;p<e.length;p++)c=new _,u=A(e[p],[],c,i),a=u.length?j(u,e[p],c,t,r):null,s=a&&a.terminal||!e[p].childNodes||!e[p].childNodes.length?null:E(e[p].childNodes,a?a.transclude:t),f.push(a),f.push(s),l=l||a||s;return l?o:null}function A(e,t,n,r){var i,o,s=e.nodeType,c=n.$attr;switch(s){case 1:N(t,Pt(Jn(e).toLowerCase()),"E",r);for(var l,f,p,h,d=e.attributes,g=0,m=d&&d.length;m>g;g++)l=d[g],(!Kn||Kn>=8||l.specified)&&(f=l.name,p=Pt(f.toLowerCase()),c[p]=f,n[p]=h=ir(Kn&&"href"==f?decodeURIComponent(e.getAttribute(f,2)):l.value),bt(e,p)&&(n[p]=!0),R(e,t,h,p),N(t,p,"A",r));if(o=e.className,y(o)&&""!==o)for(;i=u.exec(o);)p=Pt(i[2]),N(t,p,"C",r)&&(n[p]=ir(i[3])),o=o.substr(i.index+i[0].length);break;case 3:H(t,e.nodeValue);break;case 8:try{i=a.exec(e.nodeValue),i&&(p=Pt(i[1]),N(t,p,"M",r)&&(n[p]=ir(i[2])))}catch(v){}}return t.sort(P),t}function j(e,r,o,a,s){function u(e,t){e&&(e.require=h.require,N.push(e)),t&&(t.require=h.require,P.push(t))}function l(e,t){var n,r="data",o=!1;if(y(e)){for(;"^"==(n=e.charAt(0))||"?"==n;)e=e.substr(1),"^"==n&&(r="inheritedData"),o=o||"?"==n;if(n=t[r]("$"+e+"Controller"),!n&&!o)throw Error("No controller: "+e);return n}return x(e)&&(n=[],i(e,function(e){n.push(l(e,t))})),n}function f(e,t,a,s,u){var c,f,h,d,g,m;if(c=r===a?o:O(o,new _(Gn(a),o.$attr)),f=c.$$element,R){var $=/^\s*([@=&])\s*(\w*)\s*$/,y=t.$parent||t;i(R.scope,function(e,n){var r,i,o,a=e.match($)||[],s=a[2]||n,u=a[1];switch(t.$$isolateBindings[n]=u+s,u){case"@":c.$observe(s,function(e){t[n]=e}),c.$$observers[s].$$scope=y;break;case"=":i=v(c[s]),o=i.assign||function(){throw r=t[n]=i(y),Error(wr+c[s]+" (directive: "+R.name+")")},r=t[n]=i(y),t.$watch(function(){var e=i(y);return e!==t[n]&&(e!==r?r=t[n]=e:o(y,e=r=t[n])),e});break;case"&":i=v(c[s]),t[n]=function(e){return i(y,e)};break;default:throw Error("Invalid isolate scope definition for directive "+R.name+": "+e)}})}for(w&&i(w,function(e){var n={$scope:t,$element:f,$attrs:c,$transclude:u};m=e.controller,"@"==m&&(m=c[e.name]),f.data("$"+e.name+"Controller",b(m,n))}),h=0,d=N.length;d>h;h++)try{g=N[h],g(t,f,c,g.require&&l(g.require,f))}catch(x){p(x,B(f))}for(e&&e(t,a.childNodes,n,u),h=0,d=P.length;d>h;h++)try{g=P[h],g(t,f,c,g.require&&l(g.require,f))}catch(x){p(x,B(f))}}for(var h,d,g,m,w,k,E,j=-Number.MAX_VALUE,N=[],P=[],H=null,R=null,L=null,F=o.$$element=Gn(r),I=a,U=0,z=e.length;z>U&&(h=e[U],g=n,!(j>h.priority));U++){if((E=h.scope)&&(q("isolated scope",R,h,F),$(E)&&(S(F,"ng-isolate-scope"),R=h),S(F,"ng-scope"),H=H||h),d=h.name,(E=h.controller)&&(w=w||{},q("'"+d+"' controller",w[d],h,F),w[d]=h),(E=h.transclude)&&(q("transclusion",m,h,F),m=h,j=h.priority,"element"==E?(g=Gn(r),F=o.$$element=Gn(t.createComment(" "+d+": "+o[d]+" ")),r=F[0],V(s,Gn(g[0]),r),I=T(g,a,j)):(g=Gn(ut(r)).contents(),F.html(""),I=T(g,a))),E=h.template)if(q("template",L,h,F),L=h,E=W(E),h.replace){if(g=Gn("<div>"+ir(E)+"</div>").contents(),r=g[0],1!=g.length||1!==r.nodeType)throw new Error(c+E);V(s,F,r);var X={$attr:{}};e=e.concat(A(r,e.splice(U+1,e.length-(U+1)),X)),D(o,X),z=e.length}else F.html(E);if(h.templateUrl)q("template",L,h,F),L=h,f=M(e.splice(U,e.length-U),f,F,o,s,h.replace,I),z=e.length;else if(h.compile)try{k=h.compile(F,o,I),C(k)?u(null,k):k&&u(k.pre,k.post)}catch(G){p(G,B(F))}h.terminal&&(f.terminal=!0,j=Math.max(j,h.priority))}return f.scope=H&&H.scope,f.transclude=m&&I,f}function N(t,i,a,s){var u=!1;if(r.hasOwnProperty(i))for(var c,l=e.get(i+o),f=0,h=l.length;h>f;f++)try{c=l[f],(s===n||s>c.priority)&&-1!=c.restrict.indexOf(a)&&(t.push(c),u=!0)}catch(d){p(d)}return u}function D(e,t){var n=t.$attr,r=e.$attr,o=e.$$element;i(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),i(t,function(t,i){"class"==i?(S(o,t),e["class"]=(e["class"]?e["class"]+" ":"")+t):"style"==i?o.attr("style",o.attr("style")+";"+t):"$"==i.charAt(0)||e.hasOwnProperty(i)||(e[i]=t,r[i]=n[i])})}function M(e,t,n,r,i,o,a){var s,u,f=[],p=n[0],d=e.shift(),g=l({},d,{controller:null,templateUrl:null,transclude:null,scope:null});return n.html(""),h.get(d.templateUrl,{cache:m}).success(function(l){var h,d,m;if(l=W(l),o){if(m=Gn("<div>"+ir(l)+"</div>").contents(),h=m[0],1!=m.length||1!==h.nodeType)throw new Error(c+l);d={$attr:{}},V(i,n,h),A(h,e,d),D(r,d)}else h=p,n.html(l);for(e.unshift(g),s=j(e,h,r,a),u=E(n[0].childNodes,a);f.length;){var v=f.pop(),$=f.pop(),y=f.pop(),b=f.pop(),w=h;y!==p&&(w=ut(h),V($,Gn(y),w)),s(function(){t(u,b,w,i,v)},b,w,i,v)}f=null}).error(function(e,t,n,r){throw Error("Failed to load template: "+r.url)}),function(e,n,r,i,o){f?(f.push(n),f.push(r),f.push(i),f.push(o)):s(function(){t(u,n,r,i,o)},n,r,i,o)}}function P(e,t){return t.priority-e.priority}function q(e,t,n,r){if(t)throw Error("Multiple directives ["+t.name+", "+n.name+"] asking for "+e+" on: "+B(r))}function H(e,t){var n=s(t,!0);n&&e.push({priority:0,compile:g(function(e,t){var r=t.parent(),i=r.data("$binding")||[];i.push(n),S(r.data("$binding",i),"ng-binding"),e.$watch(n,function(e){t[0].nodeValue=e})})})}function R(e,t,r,i){var o=s(r,!0);o&&t.push({priority:100,compile:g(function(e,t,r){var a=r.$$observers||(r.$$observers={});"class"===i&&(o=s(r[i],!0)),r[i]=n,(a[i]||(a[i]=[])).$$inter=!0,(r.$$observers&&r.$$observers[i].$$scope||e).$watch(o,function(e){r.$set(i,e)})})})}function V(e,t,n){var r,i,o=t[0],a=o.parentNode;if(e)for(r=0,i=e.length;i>r;r++)if(e[r]==o){e[r]=n;break}a&&a.replaceChild(n,o),n[Gn.expando]=o[Gn.expando],t[0]=n}var _=function(e,t){this.$$element=e,this.$attr=t||{}};_.prototype={$normalize:Pt,$set:function(e,t,r,o){var a,s=bt(this.$$element[0],e),u=this.$$observers;s&&(this.$$element.prop(e,t),o=s),this[e]=t,o?this.$attr[e]=o:(o=this.$attr[e],o||(this.$attr[e]=o=J(e,"-"))),"A"===Jn(this.$$element[0])&&"href"===e&&(F.setAttribute("href",t),a=F.href,""===a||a.match(f)||(this[e]=t="unsafe:"+a)),r!==!1&&(null===t||t===n?this.$$element.removeAttr(o):this.$$element.attr(o,t)),u&&i(u[e],function(e){try{e(t)}catch(n){p(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers={}),i=r[e]||(r[e]=[]);return i.push(t),w.$evalAsync(function(){i.$$inter||t(n[e])}),t}};var F=k[0].createElement("a"),I=s.startSymbol(),U=s.endSymbol(),W="{{"==I||"}}"==U?d:function(e){return e.replace(/\{\{/g,I).replace(/}}/g,U)};return T}]}function Pt(e){return ot(e.replace(xr,""))}function Ot(){var e={};this.register=function(t,n){$(t)?l(e,t):e[t]=n},this.$get=["$injector","$window",function(t,n){return function(r,i){if(y(r)){var o=r;r=e.hasOwnProperty(o)?e[o]:tt(i.$scope,o,!0)||tt(n,o,!0),et(r,o,!0)}return t.instantiate(r,i)}}]}function qt(){this.$get=["$window",function(e){return Gn(e.document)}]}function Ht(){this.$get=["$log",function(e){return function(){e.error.apply(e,arguments)}}]}function Rt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse",function(r){function i(i,s){for(var u,c,l,f,p=0,h=[],d=i.length,g=!1,m=[];d>p;)-1!=(u=i.indexOf(e,p))&&-1!=(c=i.indexOf(t,u+o))?(p!=u&&h.push(i.substring(p,u)),h.push(l=r(f=i.substring(u+o,c))),l.exp=f,p=c+a,g=!0):(p!=d&&h.push(i.substring(p)),p=d);return(d=h.length)||(h.push(""),d=1),!s||g?(m.length=d,l=function(e){for(var t,r=0,i=d;i>r;r++)"function"==typeof(t=h[r])&&(t=t(e),null==t||t==n?t="":"string"!=typeof t&&(t=_(t))),m[r]=t;return m.join("")},l.exp=i,l.parts=h,l):void 0}var o=e.length,a=t.length;return i.startSymbol=function(){return e},i.endSymbol=function(){return t},i}]}function Lt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=X(t[n]);return t.join("/")}function Vt(e,t){var n=Cr.exec(e);return n={protocol:n[1],host:n[3],port:f(n[5])||Sr[n[1]]||null,path:n[6]||"/",search:n[8],hash:n[10]},t&&(t.$$protocol=n.protocol,t.$$host=n.host,t.$$port=n.port),n}function _t(e,t,n){return e+"://"+t+(n==Sr[e]?"":":"+n)}function Ft(e){return e.substr(0,e.lastIndexOf("/"))}function It(e,t,n){var r=Vt(e);return decodeURIComponent(r.path)!=t||m(r.hash)||0!==r.hash.indexOf(n)?e:_t(r.protocol,r.host,r.port)+Ft(t)+r.hash.substr(n.length)}function Bt(e,t,n){var r=Vt(e);if(decodeURIComponent(r.path)!=t||m(r.hash)||0!==r.hash.indexOf(n)){var i=r.search&&"?"+r.search||"",o=r.hash&&"#"+r.hash||"",a=Ft(t),s=r.path.substr(a.length);if(0!==r.path.indexOf(a))throw Error('Invalid url "'+e+'", missing path prefix "'+a+'" !');return _t(r.protocol,r.host,r.port)+t+"#"+n+s+i+o}return e}function Ut(e,t,n){t=t||"",this.$$parse=function(e){var n=Vt(e,this);if(0!==n.path.indexOf(t))throw Error('Invalid url "'+e+'", missing path prefix "'+t+'" !');this.$$path=decodeURIComponent(n.path.substr(t.length)),this.$$search=W(n.search),this.$$hash=n.hash&&decodeURIComponent(n.hash)||"",this.$$compose()},this.$$compose=function(){var e=z(this.$$search),n=this.$$hash?"#"+X(this.$$hash):"";this.$$url=Lt(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=_t(this.$$protocol,this.$$host,this.$$port)+t+this.$$url},this.$$rewriteAppUrl=function(e){return 0==e.indexOf(n)?e:void 0},this.$$parse(e)}function Wt(e,t,n){var r;this.$$parse=function(e){var n=Vt(e,this);if(n.hash&&0!==n.hash.indexOf(t))throw Error('Invalid url "'+e+'", missing hash prefix "'+t+'" !');r=n.path+(n.search?"?"+n.search:""),n=Tr.exec((n.hash||"").substr(t.length)),this.$$path=n[1]?("/"==n[1].charAt(0)?"":"/")+decodeURIComponent(n[1]):"",this.$$search=W(n[3]),this.$$hash=n[5]&&decodeURIComponent(n[5])||"",this.$$compose()},this.$$compose=function(){var e=z(this.$$search),n=this.$$hash?"#"+X(this.$$hash):"";this.$$url=Lt(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=_t(this.$$protocol,this.$$host,this.$$port)+r+(this.$$url?"#"+t+this.$$url:"")},this.$$rewriteAppUrl=function(e){return 0==e.indexOf(n)?e:void 0},this.$$parse(e)}function zt(e,t,n,r){Wt.apply(this,arguments),this.$$rewriteAppUrl=function(e){return 0==e.indexOf(n)?n+r+"#"+t+e.substr(n.length):void 0}}function Xt(e){return function(){return this[e]}}function Gt(e,t){return function(n){return m(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Qt(){var t="",n=!1;this.hashPrefix=function(e){return v(e)?(t=e,this):t},this.html5Mode=function(e){return v(e)?(n=e,this):n},this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(r,i,o,a){function s(e){r.$broadcast("$locationChangeSuccess",u.absUrl(),e)}var u,c,l,f,p=i.url(),h=Vt(p);n?(c=i.baseHref()||"/",l=Ft(c),f=_t(h.protocol,h.host,h.port)+l+"/",u=o.history?new Ut(It(p,c,t),l,f):new zt(Bt(p,c,t),t,f,c.substr(l.length+1))):(f=_t(h.protocol,h.host,h.port)+(h.path||"")+(h.search?"?"+h.search:"")+"#"+t+"/",u=new Wt(p,t,f)),a.bind("click",function(t){if(!t.ctrlKey&&!t.metaKey&&2!=t.which){for(var n=Gn(t.target);"a"!==Un(n[0].nodeName);)if(n[0]===a[0]||!(n=n.parent())[0])return;var i=n.prop("href"),o=u.$$rewriteAppUrl(i);i&&!n.attr("target")&&o&&(u.$$parse(o),r.$apply(),t.preventDefault(),e.angular["ff-684208-preventDefault"]=!0)}}),u.absUrl()!=p&&i.url(u.absUrl(),!0),i.onUrlChange(function(e){if(u.absUrl()!=e){if(r.$broadcast("$locationChangeStart",e,u.absUrl()).defaultPrevented)return i.url(u.absUrl()),void 0;r.$evalAsync(function(){var t=u.absUrl();u.$$parse(e),s(t)}),r.$$phase||r.$digest()}});var d=0;return r.$watch(function(){var e=i.url(),t=u.$$replace;
return d&&e==u.absUrl()||(d++,r.$evalAsync(function(){r.$broadcast("$locationChangeStart",u.absUrl(),e).defaultPrevented?u.$$parse(e):(i.url(u.absUrl(),t),s(e))})),u.$$replace=!1,d}),u}]}function Yt(){this.$get=["$window",function(e){function t(e){return e instanceof Error&&(e.stack?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function n(n){var r=e.console||{},o=r[n]||r.log||h;return o.apply?function(){var e=[];return i(arguments,function(n){e.push(t(n))}),o.apply(r,e)}:function(e,t){o(e,t)}}return{log:n("log"),warn:n("warn"),info:n("info"),error:n("error")}}]}function Jt(e,t){function n(e){return-1!=e.indexOf(g)}function r(e){return-1!=e.indexOf(b)}function i(){return $+1<e.length?e.charAt($+1):!1}function o(e){return e>="0"&&"9">=e}function a(e){return" "==e||"\r"==e||"	"==e||"\n"==e||""==e||" "==e}function s(e){return e>="a"&&"z">=e||e>="A"&&"Z">=e||"_"==e||"$"==e}function u(e){return"-"==e||"+"==e||o(e)}function c(t,n,r){throw r=r||$,Error("Lexer Error: "+t+" at column"+(v(n)?"s "+n+"-"+$+" ["+e.substring(n,r)+"]":" "+r)+" in expression ["+e+"].")}function f(){for(var t="",n=$;$<e.length;){var r=Un(e.charAt($));if("."==r||o(r))t+=r;else{var a=i();if("e"==r&&u(a))t+=r;else if(u(r)&&a&&o(a)&&"e"==t.charAt(t.length-1))t+=r;else{if(!u(r)||a&&o(a)||"e"!=t.charAt(t.length-1))break;c("Invalid exponent")}}$++}t=1*t,m.push({index:n,text:t,json:!0,fn:function(){return t}})}function p(){for(var n,r,i,u,c="",f=$;$<e.length&&(u=e.charAt($),"."==u||s(u)||o(u));)"."==u&&(n=$),c+=u,$++;if(n)for(r=$;r<e.length;){if(u=e.charAt(r),"("==u){i=c.substr(n-f+1),c=c.substr(0,n-f),$=r;break}if(!a(u))break;r++}var p={index:f,text:c};if(Er.hasOwnProperty(c))p.fn=p.json=Er[c];else{var h=tn(c,t);p.fn=l(function(e,t){return h(e,t)},{assign:function(e,t){return Zt(e,c,t)}})}m.push(p),i&&(m.push({index:n,text:".",json:!1}),m.push({index:n+1,text:i,json:!1}))}function h(t){var n=$;$++;for(var r="",i=t,o=!1;$<e.length;){var a=e.charAt($);if(i+=a,o){if("u"==a){var s=e.substring($+1,$+5);s.match(/[\da-f]{4}/i)||c("Invalid unicode escape [\\u"+s+"]"),$+=4,r+=String.fromCharCode(parseInt(s,16))}else{var u=Ar[a];r+=u?u:a}o=!1}else if("\\"==a)o=!0;else{if(a==t)return $++,m.push({index:n,text:i,string:r,json:!0,fn:function(){return r}}),void 0;r+=a}$++}c("Unterminated quote",n)}for(var d,g,m=[],$=0,y=[],b=":";$<e.length;){if(g=e.charAt($),n("\"'"))h(g);else if(o(g)||n(".")&&o(i()))f();else if(s(g))p(),r("{,")&&"{"==y[0]&&(d=m[m.length-1])&&(d.json=-1==d.text.indexOf("."));else if(n("(){}[].,;:"))m.push({index:$,text:g,json:r(":[,")&&n("{[")||n("}]:,")}),n("{[")&&y.unshift(g),n("}]")&&y.shift(),$++;else{if(a(g)){$++;continue}var w=g+i(),x=Er[g],C=Er[w];C?(m.push({index:$,text:w,fn:C}),$+=2):x?(m.push({index:$,text:g,fn:x,json:r("[,:")&&n("+-")}),$+=1):c("Unexpected next character ",$,$+1)}b=g}return m}function Kt(e,t,r,i){function o(t,n){throw Error("Syntax Error: Token '"+n.text+"' "+t+" at column "+(n.index+1)+" of the expression ["+e+"] starting at ["+e.substring(n.index)+"].")}function a(){if(0===q.length)throw Error("Unexpected end of expression: "+e);return q[0]}function s(e,t,n,r){if(q.length>0){var i=q[0],o=i.text;if(o==e||o==t||o==n||o==r||!e&&!t&&!n&&!r)return i}return!1}function u(e,n,r,i){var a=s(e,n,r,i);return a?(t&&!a.json&&o("is not valid json",a),q.shift(),a):!1}function c(e){u(e)||o("is unexpected, expecting ["+e+"]",s())}function f(e,t){return function(n,r){return e(n,r,t)}}function p(e,t,n){return function(r,i){return t(r,i,e,n)}}function d(){for(var e=[];;)if(q.length>0&&!s("}",")",";","]")&&e.push(_()),!u(";"))return 1==e.length?e[0]:function(t,n){for(var r,i=0;i<e.length;i++){var o=e[i];o&&(r=o(t,n))}return r}}function m(){for(var e,t=$();;){if(!(e=u("|")))return t;t=p(t,e.fn,v())}}function v(){for(var e=u(),t=r(e.text),n=[];;){if(!(e=u(":"))){var i=function(e,r,i){for(var o=[i],a=0;a<n.length;a++)o.push(n[a](e,r));return t.apply(e,o)};return function(){return i}}n.push($())}}function $(){return H()}function y(){var t,n,r=b();return(n=u("="))?(r.assign||o("implies assignment but ["+e.substring(0,n.index)+"] can not be assigned to",n),t=b(),function(e,n){return r.assign(e,t(e,n),n)}):r}function b(){for(var e,t=w();;){if(!(e=u("||")))return t;t=p(t,e.fn,w())}}function w(){var e,t=x();return(e=u("&&"))&&(t=p(t,e.fn,w())),t}function x(){var e,t=C();return(e=u("==","!="))&&(t=p(t,e.fn,x())),t}function C(){var e,t=k();return(e=u("<",">","<=",">="))&&(t=p(t,e.fn,C())),t}function k(){for(var e,t=T();e=u("+","-");)t=p(t,e.fn,T());return t}function T(){for(var e,t=S();e=u("*","/","%");)t=p(t,e.fn,S());return t}function S(){var e;return u("+")?E():(e=u("-"))?p(O,e.fn,S()):(e=u("!"))?f(e.fn,S()):E()}function E(){var e;if(u("("))e=_(),c(")");else if(u("["))e=D();else if(u("{"))e=M();else{var t=u();e=t.fn,e||o("not a primary expression",t)}for(var n,r;n=u("(","[",".");)"("===n.text?(e=R(e,r),r=null):"["===n.text?(r=e,e=V(e)):"."===n.text?(r=e,e=L(e)):o("IMPOSSIBLE");return e}function A(e){var t=u().text,n=tn(t,i);return l(function(t,r,i){return n(i||e(t,r),r)},{assign:function(n,r,i){return Zt(e(n,i),t,r)}})}function j(e){var t=$();return c("]"),l(function(r,i){var o,a,s=e(r,i),u=t(r,i);return s?(o=s[u],o&&o.then&&(a=o,"$$v"in o||(a.$$v=n,a.then(function(e){a.$$v=e})),o=o.$$v),o):n},{assign:function(n,r,i){return e(n,i)[t(n,i)]=r}})}function N(e,t){var n=[];if(")"!=a().text)do n.push($());while(u(","));return c(")"),function(r,i){for(var o=[],a=t?t(r,i):r,s=0;s<n.length;s++)o.push(n[s](r,i));var u=e(r,i,a)||h;return u.apply?u.apply(a,o):u(o[0],o[1],o[2],o[3],o[4])}}function D(){var e=[];if("]"!=a().text)do e.push($());while(u(","));return c("]"),function(t,n){for(var r=[],i=0;i<e.length;i++)r.push(e[i](t,n));return r}}function M(){var e=[];if("}"!=a().text)do{var t=u(),n=t.string||t.text;c(":");var r=$();e.push({key:n,value:r})}while(u(","));return c("}"),function(t,n){for(var r={},i=0;i<e.length;i++){var o=e[i];r[o.key]=o.value(t,n)}return r}}var P,O=g(0),q=Jt(e,i),H=y,R=N,L=A,V=j,_=m;return t?(H=b,R=L=V=_=function(){o("is not valid json",{text:e,index:0})},P=E()):P=d(),0!==q.length&&o("is an unexpected token",q[0]),P}function Zt(e,t,n){for(var r=t.split("."),i=0;r.length>1;i++){var o=r.shift(),a=e[o];a||(a={},e[o]=a),e=a}return e[r.shift()]=n,n}function en(e,t,r,i,o){return function(a,s){var u,c=s&&s.hasOwnProperty(e)?s:a;return null===c||c===n?c:(c=c[e],c&&c.then&&("$$v"in c||(u=c,u.$$v=n,u.then(function(e){u.$$v=e})),c=c.$$v),t&&null!==c&&c!==n?(c=c[t],c&&c.then&&("$$v"in c||(u=c,u.$$v=n,u.then(function(e){u.$$v=e})),c=c.$$v),r&&null!==c&&c!==n?(c=c[r],c&&c.then&&("$$v"in c||(u=c,u.$$v=n,u.then(function(e){u.$$v=e})),c=c.$$v),i&&null!==c&&c!==n?(c=c[i],c&&c.then&&("$$v"in c||(u=c,u.$$v=n,u.then(function(e){u.$$v=e})),c=c.$$v),o&&null!==c&&c!==n?(c=c[o],c&&c.then&&("$$v"in c||(u=c,u.$$v=n,u.then(function(e){u.$$v=e})),c=c.$$v),c):c):c):c):c)}}function tn(e,t){if(jr.hasOwnProperty(e))return jr[e];var r,o=e.split("."),a=o.length;if(t)r=6>a?en(o[0],o[1],o[2],o[3],o[4]):function(e,t){var r,i=0;do r=en(o[i++],o[i++],o[i++],o[i++],o[i++])(e,t),t=n,e=r;while(a>i);return r};else{var s="var l, fn, p;\n";i(o,function(e,t){s+="if(s === null || s === undefined) return s;\nl=s;\ns="+(t?"s":'((k&&k.hasOwnProperty("'+e+'"))?k:s)')+'["'+e+'"]'+";\n"+"if (s && s.then) {\n"+' if (!("$$v" in s)) {\n'+" p=s;\n"+" p.$$v = undefined;\n"+" p.then(function(v) {p.$$v=v;});\n"+"}\n"+" s=s.$$v\n"+"}\n"}),s+="return s;",r=Function("s","k",s),r.toString=function(){return s}}return jr[e]=r}function nn(){var e={};this.$get=["$filter","$sniffer",function(t,n){return function(r){switch(typeof r){case"string":return e.hasOwnProperty(r)?e[r]:e[r]=Kt(r,!1,t,n.csp);case"function":return r;default:return h}}}]}function rn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return on(function(t){e.$evalAsync(t)},t)}]}function on(e,t){function r(e){return e}function o(e){return c(e)}function a(e){var t=s(),n=e.length,r=[];return n?i(e,function(e,i){u(e).then(function(e){i in r||(r[i]=e,--n||t.resolve(r))},function(e){i in r||t.reject(e)})}):t.resolve(r),t.promise}var s=function(){var i,a,l=[];return a={resolve:function(t){if(l){var r=l;l=n,i=u(t),r.length&&e(function(){for(var e,t=0,n=r.length;n>t;t++)e=r[t],i.then(e[0],e[1])})}},reject:function(e){a.resolve(c(e))},promise:{then:function(e,n){var a=s(),u=function(n){try{a.resolve((e||r)(n))}catch(i){a.reject(i),t(i)}},c=function(e){try{a.resolve((n||o)(e))}catch(r){a.reject(r),t(r)}};return l?l.push([u,c]):i.then(u,c),a.promise}}}},u=function(t){return t&&t.then?t:{then:function(n){var r=s();return e(function(){r.resolve(n(t))}),r.promise}}},c=function(t){return{then:function(n,r){var i=s();return e(function(){i.resolve((r||o)(t))}),i.promise}}},l=function(n,i,a){var l,f=s(),p=function(e){try{return(i||r)(e)}catch(n){return t(n),c(n)}},h=function(e){try{return(a||o)(e)}catch(n){return t(n),c(n)}};return e(function(){u(n).then(function(e){l||(l=!0,f.resolve(u(e).then(p,h)))},function(e){l||(l=!0,f.resolve(h(e)))})}),f.promise};return{defer:s,reject:c,when:l,all:a}}function an(){var e={};this.when=function(t,n){if(e[t]=l({reloadOnSearch:!0},n),t){var r="/"==t[t.length-1]?t.substr(0,t.length-1):t+"/";e[r]={redirectTo:t}}return this},this.otherwise=function(e){return this.when(null,e),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$http","$templateCache",function(t,n,r,o,a,s,u){function c(e,t){t="^"+t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+"$";for(var n,r="",o=[],a={},s=/:(\w+)/g,u=0;null!==(n=s.exec(t));)r+=t.slice(u,n.index),r+="([^\\/]*)",o.push(n[1]),u=s.lastIndex;r+=t.substr(u);var c=e.match(new RegExp(r));return c&&i(o,function(e,t){a[e]=c[t+1]}),c?a:null}function f(){var e=h(),c=m.current;e&&c&&e.$$route===c.$$route&&q(e.pathParams,c.pathParams)&&!e.reloadOnSearch&&!g?(c.params=e.params,P(c.params,r),t.$broadcast("$routeUpdate",c)):(e||c)&&(g=!1,t.$broadcast("$routeChangeStart",e,c),m.current=e,e&&e.redirectTo&&(y(e.redirectTo)?n.path(d(e.redirectTo,e.params)).search(e.params).replace():n.url(e.redirectTo(e.pathParams,n.path(),n.search())).replace()),o.when(e).then(function(){if(e){var t,n=[],r=[];return i(e.resolve||{},function(e,t){n.push(t),r.push(y(e)?a.get(e):a.invoke(e))}),v(t=e.template)||v(t=e.templateUrl)&&(t=s.get(t,{cache:u}).then(function(e){return e.data})),v(t)&&(n.push("$template"),r.push(t)),o.all(r).then(function(e){var t={};return i(e,function(e,r){t[n[r]]=e}),t})}}).then(function(n){e==m.current&&(e&&(e.locals=n,P(e.params,r)),t.$broadcast("$routeChangeSuccess",e,c))},function(n){e==m.current&&t.$broadcast("$routeChangeError",e,c,n)}))}function h(){var t,r;return i(e,function(e,i){!r&&(t=c(n.path(),i))&&(r=p(e,{params:l({},n.search(),t),pathParams:t}),r.$$route=e)}),r||e[null]&&p(e[null],{params:{},pathParams:{}})}function d(e,t){var n=[];return i((e||"").split(":"),function(e,r){if(0==r)n.push(e);else{var i=e.match(/(\w+)(.*)/),o=i[1];n.push(t[o]),n.push(i[2]||""),delete t[o]}}),n.join("")}var g=!1,m={routes:e,reload:function(){g=!0,t.$evalAsync(f)}};return t.$on("$locationChangeSuccess",f),m}]}function sn(){this.$get=g({})}function un(){var e=10;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse",function(t,n,r){function i(){this.$id=u(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this["this"]=this.$root=this,this.$$destroyed=!1,this.$$asyncQueue=[],this.$$listeners={},this.$$isolateBindings={}}function o(e){if(l.$$phase)throw Error(l.$$phase+" already in progress");l.$$phase=e}function a(){l.$$phase=null}function s(e,t){var n=r(e);return et(n,t),n}function c(){}i.prototype={$new:function(e){var t,n;if(C(e))throw Error("API-CHANGE: Use $controller to instantiate controllers.");return e?(n=new i,n.$root=this.$root):(t=function(){},t.prototype=this,n=new t,n.$id=u()),n["this"]=n,n.$$listeners={},n.$parent=this,n.$$asyncQueue=[],n.$$watchers=n.$$nextSibling=n.$$childHead=n.$$childTail=null,n.$$prevSibling=this.$$childTail,this.$$childHead?(this.$$childTail.$$nextSibling=n,this.$$childTail=n):this.$$childHead=this.$$childTail=n,n},$watch:function(e,t,n){var r=this,i=s(e,"watch"),o=r.$$watchers,a={fn:t,last:c,get:i,exp:e,eq:!!n};if(!C(t)){var u=s(t||h,"listener");a.fn=function(e,t,n){u(n)}}return o||(o=r.$$watchers=[]),o.unshift(a),function(){M(o,a)}},$digest:function(){var t,r,i,s,u,l,f,p,h,d,g,m=e,v=this,$=[];o("$digest");do{f=!1,h=v;do{for(u=h.$$asyncQueue;u.length;)try{h.$eval(u.shift())}catch(y){n(y)}if(s=h.$$watchers)for(l=s.length;l--;)try{t=s[l],t&&(r=t.get(h))!==(i=t.last)&&!(t.eq?q(r,i):"number"==typeof r&&"number"==typeof i&&isNaN(r)&&isNaN(i))&&(f=!0,t.last=t.eq?P(r):r,t.fn(r,i===c?r:i,h),5>m&&(d=4-m,$[d]||($[d]=[]),g=C(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,g+="; newVal: "+_(r)+"; oldVal: "+_(i),$[d].push(g)))}catch(y){n(y)}if(!(p=h.$$childHead||h!==v&&h.$$nextSibling))for(;h!==v&&!(p=h.$$nextSibling);)h=h.$parent}while(h=p);if(f&&!m--)throw a(),Error(e+" $digest() iterations reached. Aborting!\n"+"Watchers fired in the last 5 iterations: "+_($))}while(f||u.length);a()},$destroy:function(){if(l!=this&&!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null}},$eval:function(e,t){return r(e)(this,t)},$evalAsync:function(e){this.$$asyncQueue.push(e)},$apply:function(e){try{return o("$apply"),this.$eval(e)}catch(t){n(t)}finally{a();try{l.$digest()}catch(t){throw n(t),t}}},$on:function(e,t){var n=this.$$listeners[e];return n||(this.$$listeners[e]=n=[]),n.push(t),function(){n[D(n,t)]=null}},$emit:function(e){var t,r,i,o=[],a=this,s=!1,u={name:e,targetScope:a,stopPropagation:function(){s=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=H([u],arguments,1);do{for(t=a.$$listeners[e]||o,u.currentScope=a,r=0,i=t.length;i>r;r++)if(t[r])try{if(t[r].apply(null,c),s)return u}catch(l){n(l)}else t.splice(r,1),r--,i--;a=a.$parent}while(a);return u},$broadcast:function(e){var t,r,i,o=this,a=o,s=o,u={name:e,targetScope:o,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=H([u],arguments,1);do{for(a=s,u.currentScope=a,t=a.$$listeners[e]||[],r=0,i=t.length;i>r;r++)if(t[r])try{t[r].apply(null,c)}catch(l){n(l)}else t.splice(r,1),r--,i--;if(!(s=a.$$childHead||a!==o&&a.$$nextSibling))for(;a!==o&&!(s=a.$$nextSibling);)a=a.$parent}while(a=s);return u}};var l=new i;return l}]}function cn(){this.$get=["$window",function(e){var t={},n=f((/android (\d+)/.exec(Un(e.navigator.userAgent))||[])[1]);return{history:!(!e.history||!e.history.pushState||4>n),hashchange:"onhashchange"in e&&(!e.document.documentMode||e.document.documentMode>7),hasEvent:function(n){if("input"==n&&9==Kn)return!1;if(m(t[n])){var r=e.document.createElement("div");t[n]="on"+n in r}return t[n]},csp:!1}}]}function ln(){this.$get=g(e)}function fn(e){var t,n,r,o={};return e?(i(e.split("\n"),function(e){r=e.indexOf(":"),t=Un(ir(e.substr(0,r))),n=ir(e.substr(r+1)),t&&(o[t]?o[t]+=", "+n:o[t]=n)}),o):o}function pn(e){var t=$(e)?e:n;return function(n){return t||(t=fn(e)),n?t[Un(n)]||null:t}}function hn(e,t,n){return C(n)?n(e,t):(i(n,function(n){e=n(e,t)}),e)}function dn(e){return e>=200&&300>e}function gn(){var e=/^\s*(\[|\{[^\{])/,t=/[\}\]]\s*$/,r=/^\)\]\}',?\n/,o=this.defaults={transformResponse:[function(n){return y(n)&&(n=n.replace(r,""),e.test(n)&&t.test(n)&&(n=F(n,!0))),n}],transformRequest:[function(e){return $(e)&&!E(e)?_(e):e}],headers:{common:{Accept:"application/json, text/plain, */*","X-Requested-With":"XMLHttpRequest"},post:{"Content-Type":"application/json;charset=utf-8"},put:{"Content-Type":"application/json;charset=utf-8"}}},s=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(e,t,r,u,c,f){function p(e){function n(e){var t=l({},e,{data:hn(e.data,e.headers,h)});return dn(e.status)?t:c.reject(t)}e.method=Wn(e.method);var r,a,s,u,f,p=e.transformRequest||o.transformRequest,h=e.transformResponse||o.transformResponse,d=l({},e.headers),v=l({"X-XSRF-TOKEN":t.cookies()["XSRF-TOKEN"]},o.headers.common,o.headers[Un(e.method)]);e:for(a in v){s=Un(a);for(u in e.headers)if(Un(u)===s)continue e;d[a]=v[a]}if(m(e.data))for(var $ in d)if("content-type"===Un($)){delete d[$];break}return r=hn(e.data,pn(d),p),f=g(e,r,d),f=f.then(n,n),i(w,function(e){f=e(f)}),f.success=function(t){return f.then(function(n){t(n.data,n.status,n.headers,e)}),f},f.error=function(t){return f.then(null,function(n){t(n.data,n.status,n.headers,e)}),f},f}function h(){i(arguments,function(e){p[e]=function(t,n){return p(l(n||{},{method:e,url:t}))}})}function d(){i(arguments,function(e){p[e]=function(t,n,r){return p(l(r||{},{method:e,url:t,data:n}))}})}function g(t,n,r){function i(e,t,n){s&&(dn(e)?s.put(d,[e,t,fn(n)]):s.remove(d)),o(t,e,n),u.$apply()}function o(e,n,r){n=Math.max(n,0),(dn(n)?f.resolve:f.reject)({data:e,status:n,headers:pn(r),config:t})}function a(){var e=D(p.pendingRequests,t);-1!==e&&p.pendingRequests.splice(e,1)}var s,l,f=c.defer(),h=f.promise,d=v(t.url,t.params);if(p.pendingRequests.push(t),h.then(a,a),t.cache&&"GET"==t.method&&(s=$(t.cache)?t.cache:b),s)if(l=s.get(d)){if(l.then)return l.then(a,a),l;x(l)?o(l[1],l[0],P(l[2])):o(l,200,{})}else s.put(d,h);return l||e(t.method,d,n,i,r,t.timeout,t.withCredentials),h}function v(e,t){if(!t)return e;var r=[];return a(t,function(e,t){null!=e&&e!=n&&($(e)&&(e=_(e)),r.push(encodeURIComponent(t)+"="+encodeURIComponent(e)))}),e+(-1==e.indexOf("?")?"?":"&")+r.join("&")}var b=r("$http"),w=[];return i(s,function(e){w.push(y(e)?f.get(e):f.invoke(e))}),p.pendingRequests=[],h("get","delete","head","jsonp"),d("post","put"),p.defaults=o,p}]}function mn(){this.$get=["$browser","$window","$document",function(e,t,n){return vn(e,Nr,e.defer,t.angular.callbacks,n[0],t.location.protocol.replace(":",""))}]}function vn(e,t,n,r,o,a){function s(e,t){var n=o.createElement("script"),r=function(){o.body.removeChild(n),t&&t()};n.type="text/javascript",n.src=e,Kn?n.onreadystatechange=function(){/loaded|complete/.test(n.readyState)&&r()}:n.onload=n.onerror=r,o.body.appendChild(n)}return function(o,u,c,l,f,p,d){function g(t,n,r,i){var o=(u.match(Cr)||["",a])[1];n="file"==o?r?200:404:n,n=1223==n?204:n,t(n,r,i),e.$$completeOutstandingRequest(h)}if(e.$$incOutstandingRequestCount(),u=u||e.url(),"jsonp"==Un(o)){var m="_"+(r.counter++).toString(36);r[m]=function(e){r[m].data=e},s(u.replace("JSON_CALLBACK","angular.callbacks."+m),function(){r[m].data?g(l,200,r[m].data):g(l,-2),delete r[m]})}else{var v=new t;v.open(o,u,!0),i(f,function(e,t){e&&v.setRequestHeader(t,e)});var $;v.onreadystatechange=function(){if(4==v.readyState){var e=v.getAllResponseHeaders(),t=["Cache-Control","Content-Language","Content-Type","Expires","Last-Modified","Pragma"];e||(e="",i(t,function(t){var n=v.getResponseHeader(t);n&&(e+=t+": "+n+"\n")})),g(l,$||v.status,v.responseText,e)}},d&&(v.withCredentials=!0),v.send(c||""),p>0&&n(function(){$=-1,v.abort()},p)}}}function $n(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(e){return 1===e?"one":"other"}}}}function yn(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(e,t,n,r){function i(i,a,s){var u,c=n.defer(),l=c.promise,f=v(s)&&!s;return u=t.defer(function(){try{c.resolve(i())}catch(t){c.reject(t),r(t)}finally{delete o[l.$$timeoutId]}f||e.$apply()},a),l.$$timeoutId=u,o[u]=c,l}var o={};return i.cancel=function(e){return e&&e.$$timeoutId in o?(o[e.$$timeoutId].reject("canceled"),delete o[e.$$timeoutId],t.defer.cancel(e.$$timeoutId)):!1},i}]}function bn(e){function t(t,r){return e.factory(t+n,r)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",xn),t("date",Nn),t("filter",wn),t("json",Dn),t("limitTo",Mn),t("lowercase",qr),t("number",Cn),t("orderBy",Pn),t("uppercase",Hr)}function wn(){return function(e,t){if(!x(e))return e;var n=[];n.check=function(e){for(var t=0;t<n.length;t++)if(!n[t](e))return!1;return!0};var r=function(e,t){if("!"===t.charAt(0))return!r(e,t.substr(1));switch(typeof e){case"boolean":case"number":case"string":return(""+e).toLowerCase().indexOf(t)>-1;case"object":for(var n in e)if("$"!==n.charAt(0)&&r(e[n],t))return!0;return!1;case"array":for(var i=0;i<e.length;i++)if(r(e[i],t))return!0;return!1;default:return!1}};switch(typeof t){case"boolean":case"number":case"string":t={$:t};case"object":for(var i in t)"$"==i?function(){var e=(""+t[i]).toLowerCase();e&&n.push(function(t){return r(t,e)})}():function(){var e=i,o=(""+t[i]).toLowerCase();o&&n.push(function(t){return r(tt(t,e),o)})}();break;case"function":n.push(t);break;default:return e}for(var o=[],a=0;a<e.length;a++){var s=e[a];n.check(s)&&o.push(s)}return o}}function xn(e){var t=e.NUMBER_FORMATS;return function(e,n){return m(n)&&(n=t.CURRENCY_SYM),kn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,2).replace(/\u00A4/g,n)}}function Cn(e){var t=e.NUMBER_FORMATS;return function(e,n){return kn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function kn(e,t,n,r,i){if(isNaN(e)||!isFinite(e))return"";var o=0>e;e=Math.abs(e);var a=e+"",s="",u=[],c=!1;if(-1!==a.indexOf("e")){var l=a.match(/([\d\.]+)e(-?)(\d+)/);l&&"-"==l[2]&&l[3]>i+1?a="0":(s=a,c=!0)}if(c)i>0&&e>-1&&1>e&&(s=e.toFixed(i));else{var f=(a.split(Dr)[1]||"").length;m(i)&&(i=Math.min(Math.max(t.minFrac,f),t.maxFrac));var p=Math.pow(10,i);e=Math.round(e*p)/p;var h=(""+e).split(Dr),d=h[0];h=h[1]||"";var g=0,v=t.lgSize,$=t.gSize;if(d.length>=v+$){g=d.length-v;for(var y=0;g>y;y++)0===(g-y)%$&&0!==y&&(s+=n),s+=d.charAt(y)}for(y=g;y<d.length;y++)0===(d.length-y)%v&&0!==y&&(s+=n),s+=d.charAt(y);for(;h.length<i;)h+="0";i&&"0"!==i&&(s+=r+h.substr(0,i))}return u.push(o?t.negPre:t.posPre),u.push(s),u.push(o?t.negSuf:t.posSuf),u.join("")}function Tn(e,t,n){var r="";for(0>e&&(r="-",e=-e),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),r+e}function Sn(e,t,n,r){return n=n||0,function(i){var o=i["get"+e]();return(n>0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),Tn(o,t,r)}}function En(e,t){return function(n,r){var i=n["get"+e](),o=Wn(t?"SHORT"+e:e);return r[o][i]}}function An(e){var t=-1*e.getTimezoneOffset(),n=t>=0?"+":"";return n+=Tn(Math[t>0?"floor":"ceil"](t/60),2)+Tn(Math.abs(t%60),2)}function jn(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function Nn(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0;return t[9]&&(i=f(t[9]+t[10]),o=f(t[9]+t[11])),r.setUTCFullYear(f(t[1]),f(t[2])-1,f(t[3])),r.setUTCHours(f(t[4]||0)-i,f(t[5]||0)-o,f(t[6]||0),f(t[7]||0)),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r){var o,a,s="",u=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,y(n)&&(n=Or.test(n)?f(n):t(n)),b(n)&&(n=new Date(n)),!w(n))return n;for(;r;)a=Pr.exec(r),a?(u=H(u,a,1),r=u.pop()):(u.push(r),r=null);return i(u,function(t){o=Mr[t],s+=o?o(n,e.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function Dn(){return function(e){return _(e,!0)}}function Mn(){return function(e,t){if(!(e instanceof Array))return e;t=f(t);var n,r,i=[];if(!(e&&e instanceof Array))return i;for(t>e.length?t=e.length:t<-e.length&&(t=-e.length),t>0?(n=0,r=t):(n=e.length+t,r=e.length);r>n;n++)i.push(e[n]);return i}}function Pn(e){return function(t,n,r){function i(e,t){for(var r=0;r<n.length;r++){var i=n[r](e,t);if(0!==i)return i}return 0}function o(e,t){return I(t)?function(t,n){return e(n,t)}:e}function a(e,t){var n=typeof e,r=typeof t;return n==r?("string"==n&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:t>e?-1:1):r>n?-1:1}if(!x(t))return t;if(!n)return t;n=x(n)?n:[n],n=j(n,function(t){var n=!1,r=t||d;return y(t)&&(("+"==t.charAt(0)||"-"==t.charAt(0))&&(n="-"==t.charAt(0),t=t.substring(1)),r=e(t)),o(function(e,t){return a(r(e),r(t))},n)});for(var s=[],u=0;u<t.length;u++)s.push(t[u]);return s.sort(o(i,r))}}function On(e){return C(e)&&(e={link:e}),e.restrict=e.restrict||"AC",g(e)}function qn(e,t){function n(t,n){n=n?"-"+J(n,"-"):"",e.removeClass((t?Qr:Gr)+n).addClass((t?Gr:Qr)+n)}var r=this,o=e.parent().controller("form")||Vr,a=0,s=r.$error={};r.$name=t.name||t.ngForm,r.$dirty=!1,r.$pristine=!0,r.$valid=!0,r.$invalid=!1,o.$addControl(r),e.addClass(Yr),n(!0),r.$addControl=function(e){e.$name&&!r.hasOwnProperty(e.$name)&&(r[e.$name]=e)},r.$removeControl=function(e){e.$name&&r[e.$name]===e&&delete r[e.$name],i(s,function(t,n){r.$setValidity(n,!0,e)})},r.$setValidity=function(e,t,i){var u=s[e];if(t)u&&(M(u,i),u.length||(a--,a||(n(t),r.$valid=!0,r.$invalid=!1),s[e]=!1,n(!0,e),o.$setValidity(e,!0,r)));else{if(a||n(t),u){if(N(u,i))return}else s[e]=u=[],a++,n(!1,e),o.$setValidity(e,!1,r);u.push(i),r.$valid=!1,r.$invalid=!0}},r.$setDirty=function(){e.removeClass(Yr).addClass(Jr),r.$dirty=!0,r.$pristine=!1,o.$setDirty()}}function Hn(e){return m(e)||""===e||null===e||e!==e}function Rn(e,t,r,i,o,a){var s=function(){var n=ir(t.val());i.$viewValue!==n&&e.$apply(function(){i.$setViewValue(n)})};if(o.hasEvent("input"))t.bind("input",s);else{var u,c=function(){u||(u=a.defer(function(){s(),u=null}))};t.bind("keydown",function(e){var t=e.keyCode;91===t||t>15&&19>t||t>=37&&40>=t||c()}),t.bind("change",s),o.hasEvent("paste")&&t.bind("paste cut",c)}i.$render=function(){t.val(Hn(i.$viewValue)?"":i.$viewValue)};var l,p=r.ngPattern,h=function(e,t){return Hn(t)||e.test(t)?(i.$setValidity("pattern",!0),t):(i.$setValidity("pattern",!1),n)};if(p&&(p.match(/^\/(.*)\/$/)?(p=new RegExp(p.substr(1,p.length-2)),l=function(e){return h(p,e)}):l=function(t){var n=e.$eval(p);if(!n||!n.test)throw new Error("Expected "+p+" to be a RegExp but was "+n);return h(n,t)},i.$formatters.push(l),i.$parsers.push(l)),r.ngMinlength){var d=f(r.ngMinlength),g=function(e){return!Hn(e)&&e.length<d?(i.$setValidity("minlength",!1),n):(i.$setValidity("minlength",!0),e)};i.$parsers.push(g),i.$formatters.push(g)}if(r.ngMaxlength){var m=f(r.ngMaxlength),v=function(e){return!Hn(e)&&e.length>m?(i.$setValidity("maxlength",!1),n):(i.$setValidity("maxlength",!0),e)};i.$parsers.push(v),i.$formatters.push(v)}}function Ln(e,t,r,i,o,a){if(Rn(e,t,r,i,o,a),i.$parsers.push(function(e){var t=Hn(e);return t||Wr.test(e)?(i.$setValidity("number",!0),""===e?null:t?e:parseFloat(e)):(i.$setValidity("number",!1),n)}),i.$formatters.push(function(e){return Hn(e)?"":""+e}),r.min){var s=parseFloat(r.min),u=function(e){return!Hn(e)&&s>e?(i.$setValidity("min",!1),n):(i.$setValidity("min",!0),e)};i.$parsers.push(u),i.$formatters.push(u)}if(r.max){var c=parseFloat(r.max),l=function(e){return!Hn(e)&&e>c?(i.$setValidity("max",!1),n):(i.$setValidity("max",!0),e)};i.$parsers.push(l),i.$formatters.push(l)}i.$formatters.push(function(e){return Hn(e)||b(e)?(i.$setValidity("number",!0),e):(i.$setValidity("number",!1),n)})}function Vn(e,t,r,i,o,a){Rn(e,t,r,i,o,a);var s=function(e){return Hn(e)||Br.test(e)?(i.$setValidity("url",!0),e):(i.$setValidity("url",!1),n)};i.$formatters.push(s),i.$parsers.push(s)}function _n(e,t,r,i,o,a){Rn(e,t,r,i,o,a);var s=function(e){return Hn(e)||Ur.test(e)?(i.$setValidity("email",!0),e):(i.$setValidity("email",!1),n)};i.$formatters.push(s),i.$parsers.push(s)}function Fn(e,t,n,r){m(n.name)&&t.attr("name",u()),t.bind("click",function(){t[0].checked&&e.$apply(function(){r.$setViewValue(n.value)})}),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function In(e,t,n,r){var i=n.ngTrueValue,o=n.ngFalseValue;y(i)||(i=!0),y(o)||(o=!1),t.bind("click",function(){e.$apply(function(){r.$setViewValue(t[0].checked)})}),r.$render=function(){t[0].checked=r.$viewValue},r.$formatters.push(function(e){return e===i}),r.$parsers.push(function(e){return e?i:o})}function Bn(e,t){return e="ngClass"+e,On(function(r,i,o){function a(e){(t===!0||r.$index%2===t)&&(c&&!q(e,c)&&s(c),u(e)),c=P(e)}function s(e){$(e)&&!x(e)&&(e=j(e,function(e,t){return e?t:void 0})),i.removeClass(x(e)?e.join(" "):e)}function u(e){$(e)&&!x(e)&&(e=j(e,function(e,t){return e?t:void 0})),e&&i.addClass(x(e)?e.join(" "):e)}var c=n;r.$watch(o[e],a,!0),o.$observe("class",function(){var t=r.$eval(o[e]);a(t,t)}),"ngClass"!==e&&r.$watch("$index",function(n,i){var a=1&n;1&a!==i&&(a===t?u(r.$eval(o[e])):s(r.$eval(o[e])))})})}var Un=function(e){return y(e)?e.toLowerCase():e},Wn=function(e){return y(e)?e.toUpperCase():e},zn=function(e){return y(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},Xn=function(e){return y(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(Un=zn,Wn=Xn);var Gn,Qn,Yn,Jn,Kn=f((/msie (\d+)/.exec(Un(navigator.userAgent))||[])[1]),Zn=[].slice,er=[].push,tr=Object.prototype.toString,nr=e.angular||(e.angular={}),rr=["0","0","0"];h.$inject=[],d.$inject=[];var ir=function(){return String.prototype.trim?function(e){return y(e)?e.trim():e}:function(e){return y(e)?e.replace(/^\s*/,"").replace(/\s*$/,""):e}}();Jn=9>Kn?function(e){return e=e.nodeName?e:e[0],e.scopeName&&"HTML"!=e.scopeName?Wn(e.scopeName+":"+e.nodeName):e.nodeName}:function(e){return e.nodeName?e.nodeName:e[0].nodeName};var or=/[A-Z]/g,ar={full:"1.0.8",major:1,minor:0,dot:8,codeName:"bubble-burst"},sr=st.cache={},ur=st.expando="ng-"+(new Date).getTime(),cr=1,lr=e.document.addEventListener?function(e,t,n){e.addEventListener(t,n,!1)}:function(e,t,n){e.attachEvent("on"+t,n)},fr=e.document.removeEventListener?function(e,t,n){e.removeEventListener(t,n,!1)}:function(e,t,n){e.detachEvent("on"+t,n)},pr=/([\:\-\_]+(.))/g,hr=/^moz([A-Z])/,dr=st.prototype={ready:function(t){function n(){r||(r=!0,t())}var r=!1;this.bind("DOMContentLoaded",n),st(e).bind("load",n)},toString:function(){var e=[];return i(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return e>=0?Gn(this[e]):Gn(this[this.length+e])},length:0,push:er,sort:[].sort,splice:[].splice},gr={};i("multiple,selected,checked,disabled,readOnly,required".split(","),function(e){gr[Un(e)]=e});var mr={};i("input,select,option,textarea,button,form".split(","),function(e){mr[Wn(e)]=!0}),i({data:ht,inheritedData:yt,scope:function(e){return yt(e,"$scope")},controller:$t,injector:function(e){return yt(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:dt,css:function(e,t,r){if(t=ot(t),!v(r)){var i;return 8>=Kn&&(i=e.currentStyle&&e.currentStyle[t],""===i&&(i="auto")),i=i||e.style[t],8>=Kn&&(i=""===i?n:i),i}e.style[t]=r},attr:function(e,t,r){var i=Un(t);if(gr[i]){if(!v(r))return e[t]||(e.attributes.getNamedItem(t)||h).specified?i:n;r?(e[t]=!0,e.setAttribute(t,i)):(e[t]=!1,e.removeAttribute(i))}else if(v(r))e.setAttribute(t,r);else if(e.getAttribute){var o=e.getAttribute(t,2);return null===o?n:o}},prop:function(e,t,n){return v(n)?(e[t]=n,void 0):e[t]},text:l(9>Kn?function(e,t){if(1==e.nodeType){if(m(t))return e.innerText;e.innerText=t}else{if(m(t))return e.nodeValue;e.nodeValue=t}}:function(e,t){return m(t)?e.textContent:(e.textContent=t,void 0)},{$dv:""}),val:function(e,t){if(m(t)){if("SELECT"===Jn(e)&&e.multiple){var n=[];return i(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){if(m(t))return e.innerHTML;for(var n=0,r=e.childNodes;n<r.length;n++)ct(r[n]);e.innerHTML=t}},function(e,t){st.prototype[t]=function(t,r){var i,o;if((2==e.length&&e!==dt&&e!==$t?t:r)!==n){for(i=0;i<this.length;i++)e(this[i],t,r);return this}if($(t)){for(i=0;i<this.length;i++)if(e===ht)e(this[i],t);else for(o in t)e(this[i],o,t[o]);return this}return this.length?e(this[0],t,r):e.$dv}}),i({removeData:ft,dealoc:ct,bind:function Pi(e,n,r){var o=pt(e,"events"),a=pt(e,"handle");
o||pt(e,"events",o={}),a||pt(e,"handle",a=wt(e,o)),i(n.split(" "),function(n){var i=o[n];if(!i){if("mouseenter"==n||"mouseleave"==n){var s=t.body.contains||t.body.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1};o[n]=[];var u={mouseleave:"mouseout",mouseenter:"mouseover"};Pi(e,u[n],function(e){var t=this,r=e.relatedTarget;(!r||r!==t&&!s(t,r))&&a(e,n)})}else lr(e,n,a),o[n]=[];i=o[n]}i.push(r)})},unbind:lt,replaceWith:function(e,t){var n,r=e.parentNode;ct(e),i(new st(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return i(e.childNodes,function(e){1===e.nodeType&&t.push(e)}),t},contents:function(e){return e.childNodes||[]},append:function(e,t){i(new st(t),function(t){1===e.nodeType&&e.appendChild(t)})},prepend:function(e,t){if(1===e.nodeType){var n=e.firstChild;i(new st(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){t=Gn(t)[0];var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)},remove:function(e){ct(e);var t=e.parentNode;t&&t.removeChild(e)},after:function(e,t){var n=e,r=e.parentNode;i(new st(t),function(e){r.insertBefore(e,n.nextSibling),n=e})},addClass:mt,removeClass:gt,toggleClass:function(e,t,n){m(n)&&(n=!dt(e,t)),(n?mt:gt)(e,t)},parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},next:function(e){if(e.nextElementSibling)return e.nextElementSibling;for(var t=e.nextSibling;null!=t&&1!==t.nodeType;)t=t.nextSibling;return t},find:function(e,t){return e.getElementsByTagName(t)},clone:ut,triggerHandler:function(e,t){var n=(pt(e,"events")||{})[t];i(n,function(t){t.call(e,null)})}},function(e,t){st.prototype[t]=function(t,r){for(var i,o=0;o<this.length;o++)i==n?(i=e(this[o],t,r),i!==n&&(i=Gn(i))):vt(i,e(this[o],t,r));return i==n?this:i}}),Ct.prototype={put:function(e,t){this[xt(e)]=t},get:function(e){return this[xt(e)]},remove:function(e){var t=this[e=xt(e)];return delete this[e],t}},kt.prototype={push:function(e,t){var n=this[e=xt(e)];n?n.push(t):this[e]=[t]},shift:function(e){var t=this[e=xt(e)];return t?1==t.length?(delete this[e],t[0]):t.shift():void 0},peek:function(e){var t=this[xt(e)];return t?t[0]:void 0}};var vr=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,$r=/,/,yr=/^\s*(_?)(\S+?)\1\s*$/,br=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,wr="Non-assignable model expression: ";Mt.$inject=["$provide"];var xr=/^(x[\:\-_]|data[\:\-_])/i,Cr=/^([^:]+):\/\/(\w+:{0,1}\w*@)?(\{?[\w\.-]*\}?)(:([0-9]+))?(\/[^\?#]*)?(\?([^#]*))?(#(.*))?$/,kr=/^([^\?#]*)?(\?([^#]*))?(#(.*))?$/,Tr=kr,Sr={http:80,https:443,ftp:21};Ut.prototype={$$replace:!1,absUrl:Xt("$$absUrl"),url:function(e,t){if(m(e))return this.$$url;var n=kr.exec(e);return n[1]&&this.path(decodeURIComponent(n[1])),(n[2]||n[1])&&this.search(n[3]||""),this.hash(n[5]||"",t),this},protocol:Xt("$$protocol"),host:Xt("$$host"),port:Xt("$$port"),path:Gt("$$path",function(e){return"/"==e.charAt(0)?e:"/"+e}),search:function(e,t){return m(e)?this.$$search:(v(t)?null===t?delete this.$$search[e]:this.$$search[e]=t:this.$$search=y(e)?W(e):e,this.$$compose(),this)},hash:Gt("$$hash",d),replace:function(){return this.$$replace=!0,this}},Wt.prototype=p(Ut.prototype),zt.prototype=p(Wt.prototype);var Er={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:h,"+":function(e,t,r,i){return r=r(e,t),i=i(e,t),v(r)?v(i)?r+i:r:v(i)?i:n},"-":function(e,t,n,r){return n=n(e,t),r=r(e,t),(v(n)?n:0)-(v(r)?r:0)},"*":function(e,t,n,r){return n(e,t)*r(e,t)},"/":function(e,t,n,r){return n(e,t)/r(e,t)},"%":function(e,t,n,r){return n(e,t)%r(e,t)},"^":function(e,t,n,r){return n(e,t)^r(e,t)},"=":h,"==":function(e,t,n,r){return n(e,t)==r(e,t)},"!=":function(e,t,n,r){return n(e,t)!=r(e,t)},"<":function(e,t,n,r){return n(e,t)<r(e,t)},">":function(e,t,n,r){return n(e,t)>r(e,t)},"<=":function(e,t,n,r){return n(e,t)<=r(e,t)},">=":function(e,t,n,r){return n(e,t)>=r(e,t)},"&&":function(e,t,n,r){return n(e,t)&&r(e,t)},"||":function(e,t,n,r){return n(e,t)||r(e,t)},"&":function(e,t,n,r){return n(e,t)&r(e,t)},"|":function(e,t,n,r){return r(e,t)(e,t,n(e,t))},"!":function(e,t,n){return!n(e,t)}},Ar={n:"\n",f:"\f",r:"\r",t:"	",v:"","'":"'",'"':'"'},jr={},Nr=e.XMLHttpRequest||function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(n){}throw new Error("This browser does not support XMLHttpRequest.")};bn.$inject=["$provide"],xn.$inject=["$locale"],Cn.$inject=["$locale"];var Dr=".",Mr={yyyy:Sn("FullYear",4),yy:Sn("FullYear",2,0,!0),y:Sn("FullYear",1),MMMM:En("Month"),MMM:En("Month",!0),MM:Sn("Month",2,1),M:Sn("Month",1,1),dd:Sn("Date",2),d:Sn("Date",1),HH:Sn("Hours",2),H:Sn("Hours",1),hh:Sn("Hours",2,-12),h:Sn("Hours",1,-12),mm:Sn("Minutes",2),m:Sn("Minutes",1),ss:Sn("Seconds",2),s:Sn("Seconds",1),EEEE:En("Day"),EEE:En("Day",!0),a:jn,Z:An},Pr=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,Or=/^\d+$/;Nn.$inject=["$locale"];var qr=g(Un),Hr=g(Wn);Pn.$inject=["$parse"];var Rr=g({restrict:"E",compile:function(e,n){return 8>=Kn&&(n.href||n.name||n.$set("href",""),e.append(t.createComment("IE fix"))),function(e,t){t.bind("click",function(e){t.attr("href")||e.preventDefault()})}}}),Lr={};i(gr,function(e,t){var n=Pt("ng-"+t);Lr[n]=function(){return{priority:100,compile:function(){return function(e,r,i){e.$watch(i[n],function(e){i.$set(t,!!e)})}}}}}),i(["src","href"],function(e){var t=Pt("ng-"+e);Lr[t]=function(){return{priority:99,link:function(n,r,i){i.$observe(t,function(t){t&&(i.$set(e,t),Kn&&r.prop(e,i[e]))})}}}});var Vr={$addControl:h,$removeControl:h,$setValidity:h,$setDirty:h};qn.$inject=["$element","$attrs","$scope"];var _r=function(e){return["$timeout",function(t){var r={name:"form",restrict:"E",controller:qn,compile:function(){return{pre:function(e,r,i,o){if(!i.action){var a=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1};lr(r[0],"submit",a),r.bind("$destroy",function(){t(function(){fr(r[0],"submit",a)},0,!1)})}var s=r.parent().controller("form"),u=i.name||i.ngForm;u&&(e[u]=o),s&&r.bind("$destroy",function(){s.$removeControl(o),u&&(e[u]=n),l(o,Vr)})}}}};return e?l(P(r),{restrict:"EAC"}):r}]},Fr=_r(),Ir=_r(!0),Br=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,Ur=/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}$/,Wr=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,zr={text:Rn,number:Ln,url:Vn,email:_n,radio:Fn,checkbox:In,hidden:h,button:h,submit:h,reset:h},Xr=["$browser","$sniffer",function(e,t){return{restrict:"E",require:"?ngModel",link:function(n,r,i,o){o&&(zr[Un(i.type)]||zr.text)(n,r,i,o,t,e)}}}],Gr="ng-valid",Qr="ng-invalid",Yr="ng-pristine",Jr="ng-dirty",Kr=["$scope","$exceptionHandler","$attrs","$element","$parse",function(e,t,n,r,o){function a(e,t){t=t?"-"+J(t,"-"):"",r.removeClass((e?Qr:Gr)+t).addClass((e?Gr:Qr)+t)}this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$name=n.name;var s=o(n.ngModel),u=s.assign;if(!u)throw Error(wr+n.ngModel+" ("+B(r)+")");this.$render=h;var c=r.inheritedData("$formController")||Vr,l=0,f=this.$error={};r.addClass(Yr),a(!0),this.$setValidity=function(e,t){f[e]!==!t&&(t?(f[e]&&l--,l||(a(!0),this.$valid=!0,this.$invalid=!1)):(a(!1),this.$invalid=!0,this.$valid=!1,l++),f[e]=!t,a(t,e),c.$setValidity(e,t,this))},this.$setViewValue=function(n){this.$viewValue=n,this.$pristine&&(this.$dirty=!0,this.$pristine=!1,r.removeClass(Yr).addClass(Jr),c.$setDirty()),i(this.$parsers,function(e){n=e(n)}),this.$modelValue!==n&&(this.$modelValue=n,u(e,n),i(this.$viewChangeListeners,function(e){try{e()}catch(n){t(n)}}))};var p=this;e.$watch(function(){var t=s(e);if(p.$modelValue!==t){var n=p.$formatters,r=n.length;for(p.$modelValue=t;r--;)t=n[r](t);p.$viewValue!==t&&(p.$viewValue=t,p.$render())}})}],Zr=function(){return{require:["ngModel","^?form"],controller:Kr,link:function(e,t,n,r){var i=r[0],o=r[1]||Vr;o.$addControl(i),t.bind("$destroy",function(){o.$removeControl(i)})}}},ei=g({require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),ti=function(){return{require:"?ngModel",link:function(e,t,n,r){if(r){n.required=!0;var i=function(e){return n.required&&(Hn(e)||e===!1)?(r.$setValidity("required",!1),void 0):(r.$setValidity("required",!0),e)};r.$formatters.push(i),r.$parsers.unshift(i),n.$observe("required",function(){i(r.$viewValue)})}}}},ni=function(){return{require:"ngModel",link:function(e,t,r,o){var a=/\/(.*)\//.exec(r.ngList),s=a&&new RegExp(a[1])||r.ngList||",",u=function(e){var t=[];return e&&i(e.split(s),function(e){e&&t.push(ir(e))}),t};o.$parsers.push(u),o.$formatters.push(function(e){return x(e)?e.join(", "):n})}}},ri=/^(true|false|\d+)$/,ii=function(){return{priority:100,compile:function(e,t){return ri.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},oi=On(function(e,t,r){t.addClass("ng-binding").data("$binding",r.ngBind),e.$watch(r.ngBind,function(e){t.text(e==n?"":e)})}),ai=["$interpolate",function(e){return function(t,n,r){var i=e(n.attr(r.$attr.ngBindTemplate));n.addClass("ng-binding").data("$binding",i),r.$observe("ngBindTemplate",function(e){n.text(e)})}}],si=[function(){return function(e,t,n){t.addClass("ng-binding").data("$binding",n.ngBindHtmlUnsafe),e.$watch(n.ngBindHtmlUnsafe,function(e){t.html(e||"")})}}],ui=Bn("",!0),ci=Bn("Odd",0),li=Bn("Even",1),fi=On({compile:function(e,t){t.$set("ngCloak",n),e.removeClass("ng-cloak")}}),pi=[function(){return{scope:!0,controller:"@"}}],hi=["$sniffer",function(e){return{priority:1e3,compile:function(){e.csp=!0}}}],di={};i("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave submit".split(" "),function(e){var t=Pt("ng-"+e);di[t]=["$parse",function(n){return function(r,i,o){var a=n(o[t]);i.bind(Un(e),function(e){r.$apply(function(){a(r,{$event:e})})})}}]});var gi=["$http","$templateCache","$anchorScroll","$compile",function(e,t,n,r){return{restrict:"ECA",terminal:!0,compile:function(i,o){var a=o.ngInclude||o.src,s=o.onload||"",u=o.autoscroll;return function(i,o){var c,l=0,f=function(){c&&(c.$destroy(),c=null),o.html("")};i.$watch(a,function(a){var p=++l;a?e.get(a,{cache:t}).success(function(e){p===l&&(c&&c.$destroy(),c=i.$new(),o.html(e),r(o.contents())(c),!v(u)||u&&!i.$eval(u)||n(),c.$emit("$includeContentLoaded"),i.$eval(s))}).error(function(){p===l&&f()}):f()})}}}}],mi=On({compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),vi=On({terminal:!0,priority:1e3}),$i=["$locale","$interpolate",function(e,t){var n=/{}/g;return{restrict:"EA",link:function(r,o,a){var s=a.count,u=o.attr(a.$attr.when),c=a.offset||0,l=r.$eval(u),f={},p=t.startSymbol(),h=t.endSymbol();i(l,function(e,r){f[r]=t(e.replace(n,p+s+"-"+c+h))}),r.$watch(function(){var t=parseFloat(r.$eval(s));return isNaN(t)?"":(t in l||(t=e.pluralCat(t-c)),f[t](r,o,!0))},function(e){o.text(e)})}}}],yi=On({transclude:"element",priority:1e3,terminal:!0,compile:function(e,t,n){return function(e,t,r){var i,o,a,s,u=r.ngRepeat,c=u.match(/^\s*(.+)\s+in\s+(.*)\s*$/);if(!c)throw Error("Expected ngRepeat in form of '_item_ in _collection_' but got '"+u+"'.");if(i=c[1],o=c[2],c=i.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/),!c)throw Error("'item' in 'item in collection' should be identifier or (key, value) but got '"+i+"'.");a=c[3]||c[1],s=c[2];var l=new kt;e.$watch(function(e){var r,i,u,c,f,p,h,d,g=e.$eval(o),m=t,v=new kt;if(x(g))h=g||[];else{h=[];for(f in g)g.hasOwnProperty(f)&&"$"!=f.charAt(0)&&h.push(f);h.sort()}for(u=h.length-1,r=0,i=h.length;i>r;r++)f=g===h?r:h[r],p=g[f],d=l.shift(p),d?(c=d.scope,v.push(p,d),r===d.index?m=d.element:(d.index=r,m.after(d.element),m=d.element)):c=e.$new(),c[a]=p,s&&(c[s]=f),c.$index=r,c.$first=0===r,c.$last=r===u,c.$middle=!(c.$first||c.$last),d||n(c,function(e){m.after(e),d={scope:c,element:m=e,index:r},v.push(p,d)});for(f in l)if(l.hasOwnProperty(f))for(h=l[f];h.length;)p=h.pop(),p.element.remove(),p.scope.$destroy();l=v})}}}),bi=On(function(e,t,n){e.$watch(n.ngShow,function(e){t.css("display",I(e)?"":"none")})}),wi=On(function(e,t,n){e.$watch(n.ngHide,function(e){t.css("display",I(e)?"none":"")})}),xi=On(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&i(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),Ci=g({restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(e,t,n,r){var i,o,a,s=n.ngSwitch||n.on;e.$watch(s,function(s){o&&(a.$destroy(),o.remove(),o=a=null),(i=r.cases["!"+s]||r.cases["?"])&&(e.$eval(n.change),a=e.$new(),i(a,function(e){o=e,t.append(e)}))})}}),ki=On({transclude:"element",priority:500,require:"^ngSwitch",compile:function(e,t,n){return function(e,r,i,o){o.cases["!"+t.ngSwitchWhen]=n}}}),Ti=On({transclude:"element",priority:500,require:"^ngSwitch",compile:function(e,t,n){return function(e,t,r,i){i.cases["?"]=n}}}),Si=On({controller:["$transclude","$element",function(e,t){e(function(e){t.append(e)})}]}),Ei=["$http","$templateCache","$route","$anchorScroll","$compile","$controller",function(e,t,n,r,i,o){return{restrict:"ECA",terminal:!0,link:function(e,t,a){function s(){l&&(l.$destroy(),l=null)}function u(){t.html(""),s()}function c(){var a=n.current&&n.current.locals,c=a&&a.$template;if(c){t.html(c),s();var p,h=i(t.contents()),d=n.current;l=d.scope=e.$new(),d.controller&&(a.$scope=l,p=o(d.controller,a),t.children().data("$ngControllerController",p)),h(l),l.$emit("$viewContentLoaded"),l.$eval(f),r()}else u()}var l,f=a.onload||"";e.$on("$routeChangeSuccess",c),c()}}}],Ai=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],ji=g({terminal:!0}),Ni=["$compile","$parse",function(e,r){var a=/^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w\d]*)|(?:\(\s*([\$\w][\$\w\d]*)\s*,\s*([\$\w][\$\w\d]*)\s*\)))\s+in\s+(.*)$/,s={$setViewValue:h};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(e,t,n){var r,i,o=this,a={},u=s;o.databound=n.ngModel,o.init=function(e,t,n){u=e,r=t,i=n},o.addOption=function(t){a[t]=!0,u.$viewValue==t&&(e.val(t),i.parent()&&i.remove())},o.removeOption=function(e){this.hasOption(e)&&(delete a[e],u.$viewValue==e&&this.renderUnknownOption(e))},o.renderUnknownOption=function(t){var n="? "+xt(t)+" ?";i.val(n),e.prepend(i),e.val(n),i.prop("selected",!0)},o.hasOption=function(e){return a.hasOwnProperty(e)},t.$on("$destroy",function(){o.renderUnknownOption=h})}],link:function(s,u,c,l){function f(e,t,n,r){n.$render=function(){var e=n.$viewValue;r.hasOption(e)?(k.parent()&&k.remove(),t.val(e),""===e&&d.prop("selected",!0)):m(e)&&d?t.val(""):r.renderUnknownOption(e)},t.bind("change",function(){e.$apply(function(){k.parent()&&k.remove(),n.$setViewValue(t.val())})})}function p(e,t,n){var r;n.$render=function(){var e=new Ct(n.$viewValue);i(t.find("option"),function(t){t.selected=v(e.get(t.value))})},e.$watch(function(){q(r,n.$viewValue)||(r=P(n.$viewValue),n.$render())}),t.bind("change",function(){e.$apply(function(){var e=[];i(t.find("option"),function(t){t.selected&&e.push(t.value)}),n.$setViewValue(e)})})}function h(t,i,s){function u(){var e,r,a,u,c,v,$,b,k,T,S,E,A,j,N={"":[]},D=[""],M=s.$modelValue,P=g(t)||[],O=p?o(P):P,q={},H=!1;for(y&&(H=new Ct(M)),T=0;b=O.length,b>T;T++)q[f]=P[p?q[p]=O[T]:T],e=h(t,q)||"",(r=N[e])||(r=N[e]=[],D.push(e)),y?S=H.remove(d(t,q))!=n:(S=M===d(t,q),H=H||S),j=l(t,q),j=j===n?"":j,r.push({id:p?O[T]:T,label:j,selected:S});for(y||(w||null===M?N[""].unshift({id:"",label:"",selected:!H}):H||N[""].unshift({id:"?",label:"",selected:!0})),k=0,$=D.length;$>k;k++){for(e=D[k],r=N[e],m.length<=k?(u={element:C.clone().attr("label",e),label:r.label},c=[u],m.push(c),i.append(u.element)):(c=m[k],u=c[0],u.label!=e&&u.element.attr("label",u.label=e)),E=null,T=0,b=r.length;b>T;T++)a=r[T],(v=c[T+1])?(E=v.element,v.label!==a.label&&E.text(v.label=a.label),v.id!==a.id&&E.val(v.id=a.id),E[0].selected!==a.selected&&E.prop("selected",v.selected=a.selected)):(""===a.id&&w?A=w:(A=x.clone()).val(a.id).attr("selected",a.selected).text(a.label),c.push(v={element:A,label:a.label,id:a.id,selected:a.selected}),E?E.after(A):u.element.append(A),E=A);for(T++;c.length>T;)c.pop().element.remove()}for(;m.length>k;)m.pop()[0].element.remove()}var c;if(!(c=b.match(a)))throw Error("Expected ngOptions in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '"+b+"'.");var l=r(c[2]||c[1]),f=c[4]||c[6],p=c[5],h=r(c[3]||""),d=r(c[2]?c[1]:f),g=r(c[7]),m=[[{element:i,label:""}]];w&&(e(w)(t),w.removeClass("ng-scope"),w.remove()),i.html(""),i.bind("change",function(){t.$apply(function(){var e,r,o,a,u,c,l,h,v=g(t)||[],$={};if(y)for(o=[],c=0,h=m.length;h>c;c++)for(e=m[c],u=1,l=e.length;l>u;u++)(a=e[u].element)[0].selected&&(r=a.val(),p&&($[p]=r),$[f]=v[r],o.push(d(t,$)));else r=i.val(),"?"==r?o=n:""==r?o=null:($[f]=v[r],p&&($[p]=r),o=d(t,$));s.$setViewValue(o)})}),s.$render=u,t.$watch(u)}if(l[1]){for(var d,g=l[0],$=l[1],y=c.multiple,b=c.ngOptions,w=!1,x=Gn(t.createElement("option")),C=Gn(t.createElement("optgroup")),k=x.clone(),T=0,S=u.children(),E=S.length;E>T;T++)if(""==S[T].value){d=w=S.eq(T);break}if(g.init($,w,k),y&&(c.required||c.ngRequired)){var A=function(e){return $.$setValidity("required",!c.required||e&&e.length),e};$.$parsers.push(A),$.$formatters.unshift(A),c.$observe("required",function(){A($.$viewValue)})}b?h(s,u,$):y?p(s,u,$):f(s,u,$,g)}}}}],Di=["$interpolate",function(e){var t={addOption:h,removeOption:h};return{restrict:"E",priority:100,compile:function(n,r){if(m(r.value)){var i=e(n.text(),!0);i||r.$set("value",n.text())}return function(e,n,r){var o="$selectController",a=n.parent(),s=a.data(o)||a.parent().data(o);s&&s.databound?n.prop("selected",!1):s=t,i?e.$watch(i,function(e,t){r.$set("value",e),e!==t&&s.removeOption(t),s.addOption(e)}):s.addOption(r.value),n.bind("$destroy",function(){s.removeOption(r.value)})}}}}],Mi=g({restrict:"E",terminal:!0});K(),rt(nr),Gn(t).ready(function(){Q(t,Y)})}(window,document),angular.element(document).find("head").append('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak{display:none !important;}ng\\:form{display:block;}</style>'),/* ===================================================
 * bootstrap-transition.js v2.3.2
 * http://twbs.github.com/bootstrap/javascript.html#transitions
 * ===================================================
 * Copyright 2013 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================== */
!function(e){"use strict";e(function(){e.support.transition=function(){var e=function(){var e,t=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(e in n)if(void 0!==t.style[e])return n[e]}();return e&&{end:e}}()})}(window.jQuery),/* ==========================================================
 * bootstrap-alert.js v2.3.2
 * http://twbs.github.com/bootstrap/javascript.html#alerts
 * ==========================================================
 * Copyright 2013 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================== */
!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function n(){r.trigger("closed").remove()}var r,i=e(this),o=i.attr("data-target");o||(o=i.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),r=e(o),t&&t.preventDefault(),r.length||(r=i.hasClass("alert")?i:i.parent()),r.trigger(t=e.Event("close")),t.isDefaultPrevented()||(r.removeClass("in"),e.support.transition&&r.hasClass("fade")?r.on(e.support.transition.end,n):n())};var r=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");i||r.data("alert",i=new n(this)),"string"==typeof t&&i[t].call(r)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.alert.data-api",t,n.prototype.close)}(window.jQuery),/* ============================================================
 * bootstrap-button.js v2.3.2
 * http://twbs.github.com/bootstrap/javascript.html#buttons
 * ============================================================
 * Copyright 2013 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============================================================ */
!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.button.defaults,n)};t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";e+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[e]||this.options[e]),setTimeout(function(){"loadingText"==e?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons-radio"]');e&&e.find(".active").removeClass("active"),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),o="object"==typeof n&&n;i||r.data("button",i=new t(this,o)),"toggle"==n?i.toggle():n&&i.setState(n)})},e.fn.button.defaults={loadingText:"loading..."},e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle")})}(window.jQuery),/* ==========================================================
 * bootstrap-carousel.js v2.3.2
 * http://twbs.github.com/bootstrap/javascript.html#carousel
 * ==========================================================
 * Copyright 2013 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================== */
!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,"hover"==this.options.pause&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.prototype={cycle:function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(t){var n=this.getActiveIndex(),r=this;if(!(t>this.$items.length-1||0>t))return this.sliding?this.$element.one("slid",function(){r.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",e(this.$items[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition.end&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){return this.sliding?void 0:this.slide("next")},prev:function(){return this.sliding?void 0:this.slide("prev")},slide:function(t,n){var r,i=this.$element.find(".item.active"),o=n||i[t](),a=this.interval,s="next"==t?"left":"right",u="next"==t?"first":"last",c=this;if(this.sliding=!0,a&&this.pause(),o=o.length?o:this.$element.find(".item")[u](),r=e.Event("slide",{relatedTarget:o[0],direction:s}),!o.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var t=e(c.$indicators.children()[c.getActiveIndex()]);t&&t.addClass("active")})),e.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(r),r.isDefaultPrevented())return;o.addClass(t),o[0].offsetWidth,i.addClass(s),o.addClass(s),this.$element.one(e.support.transition.end,function(){o.removeClass([t,s].join(" ")).addClass("active"),i.removeClass(["active",s].join(" ")),c.sliding=!1,setTimeout(function(){c.$element.trigger("slid")},0)})}else{if(this.$element.trigger(r),r.isDefaultPrevented())return;i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return a&&this.cycle(),this}}};var n=e.fn.carousel;e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("carousel"),o=e.extend({},e.fn.carousel.defaults,"object"==typeof n&&n),a="string"==typeof n?n:o.slide;i||r.data("carousel",i=new t(this,o)),"number"==typeof n?i.to(n):a?i[a]():o.interval&&i.pause().cycle()})},e.fn.carousel.defaults={interval:5e3,pause:"hover"},e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this},e(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(t){var n,r,i=e(this),o=e(i.attr("data-target")||(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"")),a=e.extend({},o.data(),i.data());o.carousel(a),(r=i.attr("data-slide-to"))&&o.data("carousel").pause().to(r).cycle(),t.preventDefault()})}(window.jQuery),/* =============================================================
 * bootstrap-collapse.js v2.3.2
 * http://twbs.github.com/bootstrap/javascript.html#collapse
 * =============================================================
 * Copyright 2013 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============================================================ */
!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.collapse.defaults,n),this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};t.prototype={constructor:t,dimension:function(){var e=this.$element.hasClass("width");return e?"width":"height"},show:function(){var t,n,r,i;if(!this.transitioning&&!this.$element.hasClass("in")){if(t=this.dimension(),n=e.camelCase(["scroll",t].join("-")),r=this.$parent&&this.$parent.find("> .accordion-group > .in"),r&&r.length){if(i=r.data("collapse"),i&&i.transitioning)return;r.collapse("hide"),i||r.data("collapse",null)}this.$element[t](0),this.transition("addClass",e.Event("show"),"shown"),e.support.transition&&this.$element[t](this.$element[0][n])}},hide:function(){var t;!this.transitioning&&this.$element.hasClass("in")&&(t=this.dimension(),this.reset(this.$element[t]()),this.transition("removeClass",e.Event("hide"),"hidden"),this.$element[t](0))},reset:function(e){var t=this.dimension();return this.$element.removeClass("collapse")[t](e||"auto")[0].offsetWidth,this.$element[null!==e?"addClass":"removeClass"]("collapse"),this},transition:function(t,n,r){var i=this,o=function(){"show"==n.type&&i.reset(),i.transitioning=0,i.$element.trigger(r)};this.$element.trigger(n),n.isDefaultPrevented()||(this.transitioning=1,this.$element[t]("in"),e.support.transition&&this.$element.hasClass("collapse")?this.$element.one(e.support.transition.end,o):o())},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var n=e.fn.collapse;e.fn.collapse=function(n){return this.each(function(){var r=e(this),i=r.data("collapse"),o=e.extend({},e.fn.collapse.defaults,r.data(),"object"==typeof n&&n);i||r.data("collapse",i=new t(this,o)),"string"==typeof n&&i[n]()})},e.fn.collapse.defaults={toggle:!0},e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=n,this},e(document).on("click.collapse.data-api","[data-toggle=collapse]",function(t){var n,r=e(this),i=r.attr("data-target")||t.preventDefault()||(n=r.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""),o=e(i).data("collapse")?"toggle":r.data();r[e(i).hasClass("in")?"addClass":"removeClass"]("collapsed"),e(i).collapse(o)})}(window.jQuery),/* ============================================================
 * bootstrap-dropdown.js v2.3.2
 * http://twbs.github.com/bootstrap/javascript.html#dropdowns
 * ============================================================
 * Copyright 2013 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============================================================ */
!function(e){"use strict";function t(){e(".dropdown-backdrop").remove(),e(r).each(function(){n(e(this)).removeClass("open")})}function n(t){var n,r=t.attr("data-target");return r||(r=t.attr("href"),r=r&&/#/.test(r)&&r.replace(/.*(?=#[^\s]*$)/,"")),n=r&&e(r),n&&n.length||(n=t.parent()),n}var r="[data-toggle=dropdown]",i=function(t){var n=e(t).on("click.dropdown.data-api",this.toggle);e("html").on("click.dropdown.data-api",function(){n.parent().removeClass("open")})};i.prototype={constructor:i,toggle:function(){var r,i,o=e(this);if(!o.is(".disabled, :disabled"))return r=n(o),i=r.hasClass("open"),t(),i||("ontouchstart"in document.documentElement&&e('<div class="dropdown-backdrop"/>').insertBefore(e(this)).on("click",t),r.toggleClass("open")),o.focus(),!1},keydown:function(t){var i,o,a,s,u;if(/(38|40|27)/.test(t.keyCode)&&(i=e(this),t.preventDefault(),t.stopPropagation(),!i.is(".disabled, :disabled"))){if(a=n(i),s=a.hasClass("open"),!s||s&&27==t.keyCode)return 27==t.which&&a.find(r).focus(),i.click();o=e("[role=menu] li:not(.divider):visible a",a),o.length&&(u=o.index(o.filter(":focus")),38==t.keyCode&&u>0&&u--,40==t.keyCode&&u<o.length-1&&u++,~u||(u=0),o.eq(u).focus())}}};var o=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var n=e(this),r=n.data("dropdown");r||n.data("dropdown",r=new i(this)),"string"==typeof t&&r[t].call(n)})},e.fn.dropdown.Constructor=i,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=o,this},e(document).on("click.dropdown.data-api",t).on("click.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.dropdown.data-api",r,i.prototype.toggle).on("keydown.dropdown.data-api",r+", [role=menu]",i.prototype.keydown)}(window.jQuery),/* =========================================================
 * bootstrap-modal.js v2.3.2
 * http://twbs.github.com/bootstrap/javascript.html#modals
 * =========================================================
 * Copyright 2013 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================= */
!function(e){"use strict";var t=function(t,n){this.options=n,this.$element=e(t).delegate('[data-dismiss="modal"]',"click.dismiss.modal",e.proxy(this.hide,this)),this.options.remote&&this.$element.find(".modal-body").load(this.options.remote)};t.prototype={constructor:t,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var t=this,n=e.Event("show");this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.backdrop(function(){var n=e.support.transition&&t.$element.hasClass("fade");t.$element.parent().length||t.$element.appendTo(document.body),t.$element.show(),n&&t.$element[0].offsetWidth,t.$element.addClass("in").attr("aria-hidden",!1),t.enforceFocus(),n?t.$element.one(e.support.transition.end,function(){t.$element.focus().trigger("shown")}):t.$element.focus().trigger("shown")}))},hide:function(t){t&&t.preventDefault(),t=e.Event("hide"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),e(document).off("focusin.modal"),this.$element.removeClass("in").attr("aria-hidden",!0),e.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal())},enforceFocus:function(){var t=this;e(document).on("focusin.modal",function(e){t.$element[0]===e.target||t.$element.has(e.target).length||t.$element.focus()})},escape:function(){var e=this;this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.modal",function(t){27==t.which&&e.hide()}):this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var t=this,n=setTimeout(function(){t.$element.off(e.support.transition.end),t.hideModal()},500);this.$element.one(e.support.transition.end,function(){clearTimeout(n),t.hideModal()})},hideModal:function(){var e=this;this.$element.hide(),this.backdrop(function(){e.removeBackdrop(),e.$element.trigger("hidden")})},removeBackdrop:function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},backdrop:function(t){var n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=e.support.transition&&n;if(this.$backdrop=e('<div class="modal-backdrop '+n+'" />').appendTo(document.body),this.$backdrop.click("static"==this.options.backdrop?e.proxy(this.$element[0].focus,this.$element[0]):e.proxy(this.hide,this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;r?this.$backdrop.one(e.support.transition.end,t):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,t):t()):t&&t()}};var n=e.fn.modal;e.fn.modal=function(n){return this.each(function(){var r=e(this),i=r.data("modal"),o=e.extend({},e.fn.modal.defaults,r.data(),"object"==typeof n&&n);i||r.data("modal",i=new t(this,o)),"string"==typeof n?i[n]():o.show&&i.show()})},e.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),r=n.attr("href"),i=e(n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),o=i.data("modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},i.data(),n.data());t.preventDefault(),i.modal(o).one("hide",function(){n.focus()})})}(window.jQuery),/* ===========================================================
 * bootstrap-tooltip.js v2.3.2
 * http://twbs.github.com/bootstrap/javascript.html#tooltips
 * Inspired by the original jQuery.tipsy by Jason Frame
 * ===========================================================
 * Copyright 2013 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================== */
!function(e){"use strict";var t=function(e,t){this.init("tooltip",e,t)};t.prototype={constructor:t,init:function(t,n,r){var i,o,a,s,u;for(this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.enabled=!0,a=this.options.trigger.split(" "),u=a.length;u--;)s=a[u],"click"==s?this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this)):"manual"!=s&&(i="hover"==s?"mouseenter":"focus",o="hover"==s?"mouseleave":"blur",this.$element.on(i+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,e.proxy(this.leave,this)));this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return t=e.extend({},e.fn[this.type].defaults,this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var n,r=e.fn[this.type].defaults,i={};return this._options&&e.each(this._options,function(e,t){r[e]!=t&&(i[e]=t)},this),n=e(t.currentTarget)[this.type](i).data(this.type),n.options.delay&&n.options.delay.show?(clearTimeout(this.timeout),n.hoverState="in",this.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show),void 0):n.show()},leave:function(t){var n=e(t.currentTarget)[this.type](this._options).data(this.type);return this.timeout&&clearTimeout(this.timeout),n.options.delay&&n.options.delay.hide?(n.hoverState="out",this.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide),void 0):n.hide()},show:function(){var t,n,r,i,o,a,s=e.Event("show");if(this.hasContent()&&this.enabled){if(this.$element.trigger(s),s.isDefaultPrevented())return;switch(t=this.tip(),this.setContent(),this.options.animation&&t.addClass("fade"),o="function"==typeof this.options.placement?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,t.detach().css({top:0,left:0,display:"block"}),this.options.container?t.appendTo(this.options.container):t.insertAfter(this.$element),n=this.getPosition(),r=t[0].offsetWidth,i=t[0].offsetHeight,o){case"bottom":a={top:n.top+n.height,left:n.left+n.width/2-r/2};break;case"top":a={top:n.top-i,left:n.left+n.width/2-r/2};break;case"left":a={top:n.top+n.height/2-i/2,left:n.left-r};break;case"right":a={top:n.top+n.height/2-i/2,left:n.left+n.width}}this.applyPlacement(a,o),this.$element.trigger("shown")}},applyPlacement:function(e,t){var n,r,i,o,a=this.tip(),s=a[0].offsetWidth,u=a[0].offsetHeight;a.offset(e).addClass(t).addClass("in"),n=a[0].offsetWidth,r=a[0].offsetHeight,"top"==t&&r!=u&&(e.top=e.top+u-r,o=!0),"bottom"==t||"top"==t?(i=0,e.left<0&&(i=-2*e.left,e.left=0,a.offset(e),n=a[0].offsetWidth,r=a[0].offsetHeight),this.replaceArrow(i-s+n,n,"left")):this.replaceArrow(r-u,r,"top"),o&&a.offset(e)},replaceArrow:function(e,t,n){this.arrow().css(n,e?50*(1-e/t)+"%":"")},setContent:function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},hide:function(){function t(){var t=setTimeout(function(){n.off(e.support.transition.end).detach()},500);n.one(e.support.transition.end,function(){clearTimeout(t),n.detach()})}var n=this.tip(),r=e.Event("hide");return this.$element.trigger(r),r.isDefaultPrevented()?void 0:(n.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?t():n.detach(),this.$element.trigger("hidden"),this)},fixTitle:function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(){var t=this.$element[0];return e.extend({},"function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},getTitle:function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},tip:function(){return this.$tip=this.$tip||e(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(t){var n=t?e(t.currentTarget)[this.type](this._options).data(this.type):this;n.tip().hasClass("in")?n.hide():n.show()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var r=e(this),i=r.data("tooltip"),o="object"==typeof n&&n;i||r.data("tooltip",i=new t(this,o)),"string"==typeof n&&i[n]()})},e.fn.tooltip.Constructor=t,e.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(window.jQuery),/* ===========================================================
 * bootstrap-popover.js v2.3.2
 * http://twbs.github.com/bootstrap/javascript.html#popovers
 * ===========================================================
 * Copyright 2013 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * =========================================================== */
!function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype,{constructor:t,setContent:function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content")[this.options.html?"html":"text"](n),e.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var e,t=this.$element,n=this.options;return e=("function"==typeof n.content?n.content.call(t[0]):n.content)||t.attr("data-content")},tip:function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});var n=e.fn.popover;e.fn.popover=function(n){return this.each(function(){var r=e(this),i=r.data("popover"),o="object"==typeof n&&n;i||r.data("popover",i=new t(this,o)),"string"==typeof n&&i[n]()})},e.fn.popover.Constructor=t,e.fn.popover.defaults=e.extend({},e.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(window.jQuery),/* =============================================================
 * bootstrap-scrollspy.js v2.3.2
 * http://twbs.github.com/bootstrap/javascript.html#scrollspy
 * =============================================================
 * Copyright 2013 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============================================================== */
!function(e){"use strict";function t(t,n){var r,i=e.proxy(this.process,this),o=e(t).is("body")?e(window):e(t);this.options=e.extend({},e.fn.scrollspy.defaults,n),this.$scrollElement=o.on("scroll.scroll-spy.data-api",i),this.selector=(this.options.target||(r=e(t).attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=e("body"),this.refresh(),this.process()}t.prototype={constructor:t,refresh:function(){var t,n=this;this.offsets=e([]),this.targets=e([]),t=this.$body.find(this.selector).map(function(){var t=e(this),r=t.data("target")||t.attr("href"),i=/^#\w/.test(r)&&e(r);return i&&i.length&&[[i.position().top+(!e.isWindow(n.$scrollElement.get(0))&&n.$scrollElement.scrollTop()),r]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})},process:function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,r=n-this.$scrollElement.height(),i=this.offsets,o=this.targets,a=this.activeTarget;if(t>=r)return a!=(e=o.last()[0])&&this.activate(e);for(e=i.length;e--;)a!=o[e]&&t>=i[e]&&(!i[e+1]||t<=i[e+1])&&this.activate(o[e])},activate:function(t){var n,r;this.activeTarget=t,e(this.selector).parent(".active").removeClass("active"),r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(r).parent("li").addClass("active"),n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate")}};var n=e.fn.scrollspy;e.fn.scrollspy=function(n){return this.each(function(){var r=e(this),i=r.data("scrollspy"),o="object"==typeof n&&n;i||r.data("scrollspy",i=new t(this,o)),"string"==typeof n&&i[n]()})},e.fn.scrollspy.Constructor=t,e.fn.scrollspy.defaults={offset:10},e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=n,this},e(window).on("load",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);t.scrollspy(t.data())})})}(window.jQuery),/* ========================================================
 * bootstrap-tab.js v2.3.2
 * http://twbs.github.com/bootstrap/javascript.html#tabs
 * ========================================================
 * Copyright 2013 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ======================================================== */
!function(e){"use strict";var t=function(t){this.element=e(t)};t.prototype={constructor:t,show:function(){var t,n,r,i=this.element,o=i.closest("ul:not(.dropdown-menu)"),a=i.attr("data-target");a||(a=i.attr("href"),a=a&&a.replace(/.*(?=#[^\s]*$)/,"")),i.parent("li").hasClass("active")||(t=o.find(".active:last a")[0],r=e.Event("show",{relatedTarget:t}),i.trigger(r),r.isDefaultPrevented()||(n=e(a),this.activate(i.parent("li"),o),this.activate(n,n.parent(),function(){i.trigger({type:"shown",relatedTarget:t})})))},activate:function(t,n,r){function i(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),a?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),r&&r()}var o=n.find("> .active"),a=r&&e.support.transition&&o.hasClass("fade");a?o.one(e.support.transition.end,i):i(),o.removeClass("in")}};var n=e.fn.tab;e.fn.tab=function(n){return this.each(function(){var r=e(this),i=r.data("tab");i||r.data("tab",i=new t(this)),"string"==typeof n&&i[n]()})},e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=n,this},e(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),e(this).tab("show")})}(window.jQuery),/* =============================================================
 * bootstrap-typeahead.js v2.3.2
 * http://twbs.github.com/bootstrap/javascript.html#typeahead
 * =============================================================
 * Copyright 2013 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============================================================ */
!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.typeahead.defaults,n),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.source=this.options.source,this.$menu=e(this.options.menu),this.shown=!1,this.listen()};t.prototype={constructor:t,select:function(){var e=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(e)).change(),this.hide()},updater:function(e){return e},show:function(){var t=e.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return this.$menu.insertAfter(this.$element).css({top:t.top+t.height,left:t.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(){var t;return this.query=this.$element.val(),!this.query||this.query.length<this.options.minLength?this.shown?this.hide():this:(t=e.isFunction(this.source)?this.source(this.query,e.proxy(this.process,this)):this.source,t?this.process(t):this)},process:function(t){var n=this;return t=e.grep(t,function(e){return n.matcher(e)}),t=this.sorter(t),t.length?this.render(t.slice(0,this.options.items)).show():this.shown?this.hide():this},matcher:function(e){return~e.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(e){for(var t,n=[],r=[],i=[];t=e.shift();)t.toLowerCase().indexOf(this.query.toLowerCase())?~t.indexOf(this.query)?r.push(t):i.push(t):n.push(t);return n.concat(r,i)},highlighter:function(e){var t=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return e.replace(new RegExp("("+t+")","ig"),function(e,t){return"<strong>"+t+"</strong>"})},render:function(t){var n=this;return t=e(t).map(function(t,r){return t=e(n.options.item).attr("data-value",r),t.find("a").html(n.highlighter(r)),t[0]}),t.first().addClass("active"),this.$menu.html(t),this},next:function(){var t=this.$menu.find(".active").removeClass("active"),n=t.next();n.length||(n=e(this.$menu.find("li")[0])),n.addClass("active")},prev:function(){var e=this.$menu.find(".active").removeClass("active"),t=e.prev();t.length||(t=this.$menu.find("li").last()),t.addClass("active")},listen:function(){this.$element.on("focus",e.proxy(this.focus,this)).on("blur",e.proxy(this.blur,this)).on("keypress",e.proxy(this.keypress,this)).on("keyup",e.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",e.proxy(this.keydown,this)),this.$menu.on("click",e.proxy(this.click,this)).on("mouseenter","li",e.proxy(this.mouseenter,this)).on("mouseleave","li",e.proxy(this.mouseleave,this))},eventSupported:function(e){var t=e in this.$element;return t||(this.$element.setAttribute(e,"return;"),t="function"==typeof this.$element[e]),t},move:function(e){if(this.shown){switch(e.keyCode){case 9:case 13:case 27:e.preventDefault();break;case 38:e.preventDefault(),this.prev();break;case 40:e.preventDefault(),this.next()}e.stopPropagation()}},keydown:function(t){this.suppressKeyPressRepeat=~e.inArray(t.keyCode,[40,38,9,13,27]),this.move(t)},keypress:function(e){this.suppressKeyPressRepeat||this.move(e)},keyup:function(e){switch(e.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}e.stopPropagation(),e.preventDefault()},focus:function(){this.focused=!0},blur:function(){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(e){e.stopPropagation(),e.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(t){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),e(t.currentTarget).addClass("active")},mouseleave:function(){this.mousedover=!1,!this.focused&&this.shown&&this.hide()}};var n=e.fn.typeahead;e.fn.typeahead=function(n){return this.each(function(){var r=e(this),i=r.data("typeahead"),o="object"==typeof n&&n;i||r.data("typeahead",i=new t(this,o)),"string"==typeof n&&i[n]()})},e.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>',minLength:1},e.fn.typeahead.Constructor=t,e.fn.typeahead.noConflict=function(){return e.fn.typeahead=n,this},e(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(){var t=e(this);t.data("typeahead")||t.typeahead(t.data())})}(window.jQuery),/* ==========================================================
 * bootstrap-affix.js v2.3.2
 * http://twbs.github.com/bootstrap/javascript.html#affix
 * ==========================================================
 * Copyright 2013 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================== */
!function(e){"use strict";var t=function(t,n){this.options=e.extend({},e.fn.affix.defaults,n),this.$window=e(window).on("scroll.affix.data-api",e.proxy(this.checkPosition,this)).on("click.affix.data-api",e.proxy(function(){setTimeout(e.proxy(this.checkPosition,this),1)},this)),this.$element=e(t),this.checkPosition()};t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t,n=e(document).height(),r=this.$window.scrollTop(),i=this.$element.offset(),o=this.options.offset,a=o.bottom,s=o.top,u="affix affix-top affix-bottom";"object"!=typeof o&&(a=s=o),"function"==typeof s&&(s=o.top()),"function"==typeof a&&(a=o.bottom()),t=null!=this.unpin&&r+this.unpin<=i.top?!1:null!=a&&i.top+this.$element.height()>=n-a?"bottom":null!=s&&s>=r?"top":!1,this.affixed!==t&&(this.affixed=t,this.unpin="bottom"==t?i.top-r:null,this.$element.removeClass(u).addClass("affix"+(t?"-"+t:"")))}};var n=e.fn.affix;e.fn.affix=function(n){return this.each(function(){var r=e(this),i=r.data("affix"),o="object"==typeof n&&n;i||r.data("affix",i=new t(this,o)),"string"==typeof n&&i[n]()})},e.fn.affix.Constructor=t,e.fn.affix.defaults={offset:0},e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),n=t.data();n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),t.affix(n)})})}(window.jQuery),function(e,t,n){"use strict";angular.module("$strap.config",[]).value("$strapConfig",{}),angular.module("$strap.filters",["$strap.config"]),angular.module("$strap.directives",["$strap.config"]),angular.module("$strap",["$strap.filters","$strap.directives","$strap.config"]),angular.module("$strap.directives").directive("bsAlert",["$parse","$timeout","$compile",function(e,t,n){return{restrict:"A",link:function(r,i,o){var a=e(o.bsAlert),s=(a.assign,a(r)),u=function(e){t(function(){i.alert("close")},1*e)};o.bsAlert?r.$watch(o.bsAlert,function(e,t){s=e,i.html((e.title?"<strong>"+e.title+"</strong>&nbsp;":"")+e.content||""),e.closed&&i.hide(),n(i.contents())(r),(e.type||t.type)&&(t.type&&i.removeClass("alert-"+t.type),e.type&&i.addClass("alert-"+e.type)),angular.isDefined(e.closeAfter)?u(e.closeAfter):o.closeAfter&&u(o.closeAfter),(angular.isUndefined(o.closeButton)||"0"!==o.closeButton&&"false"!==o.closeButton)&&i.prepend('<button type="button" class="close" data-dismiss="alert">&times;</button>')},!0):((angular.isUndefined(o.closeButton)||"0"!==o.closeButton&&"false"!==o.closeButton)&&i.prepend('<button type="button" class="close" data-dismiss="alert">&times;</button>'),o.closeAfter&&u(o.closeAfter)),i.addClass("alert").alert(),i.hasClass("fade")&&(i.removeClass("in"),setTimeout(function(){i.addClass("in")}));var c=o.ngRepeat&&o.ngRepeat.split(" in ").pop();i.on("close",function(e){var t;c?(e.preventDefault(),i.removeClass("in"),t=function(){i.trigger("closed"),r.$parent&&r.$parent.$apply(function(){for(var e=c.split("."),t=r.$parent,n=0;n<e.length;++n)t&&(t=t[e[n]]);t&&t.splice(r.$index,1)})},$.support.transition&&i.hasClass("fade")?i.on($.support.transition.end,t):t()):s&&(e.preventDefault(),i.removeClass("in"),t=function(){i.trigger("closed"),r.$apply(function(){s.closed=!0})},$.support.transition&&i.hasClass("fade")?i.on($.support.transition.end,t):t())})}}}]),angular.module("$strap.directives").directive("bsButton",["$parse","$timeout",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){n.parent('[data-toggle="buttons-checkbox"], [data-toggle="buttons-radio"]').length||n.attr("data-toggle","button");var o=!!t.$eval(r.ngModel);o&&n.addClass("active"),t.$watch(r.ngModel,function(e,t){var r=!!e,i=!!t;r!==i?$.fn.button.Constructor.prototype.toggle.call(a):r&&!o&&n.addClass("active")})}n.hasClass("btn")||n.on("click.button.data-api",function(){n.button("toggle")}),n.button();var a=n.data("button");a.toggle=function(){if(!i)return $.fn.button.Constructor.prototype.toggle.call(this);var r=n.parent('[data-toggle="buttons-radio"]');r.length?(n.siblings("[ng-model]").each(function(n,r){e($(r).attr("ng-model")).assign(t,!1)}),t.$digest(),i.$modelValue||(i.$setViewValue(!i.$modelValue),t.$digest())):t.$apply(function(){i.$setViewValue(!i.$modelValue)})}}}}]).directive("bsButtonsCheckbox",["$parse",function(){return{restrict:"A",require:"?ngModel",compile:function(e){e.attr("data-toggle","buttons-checkbox").find("a, button").each(function(e,t){$(t).attr("bs-button","")})}}}]).directive("bsButtonsRadio",["$timeout",function(e){return{restrict:"A",require:"?ngModel",compile:function(t,n){return t.attr("data-toggle","buttons-radio"),n.ngModel||t.find("a, button").each(function(e,t){$(t).attr("bs-button","")}),function(t,n,r,i){i&&(e(function(){n.find("[value]").button().filter('[value="'+i.$viewValue+'"]').addClass("active")}),n.on("click.button.data-api",function(e){t.$apply(function(){i.$setViewValue($(e.target).closest("button").attr("value"))})}),t.$watch(r.ngModel,function(e,i){if(e!==i){var o=n.find('[value="'+t.$eval(r.ngModel)+'"]');o.length&&o.button("toggle")}}))}}}}]),angular.module("$strap.directives").directive("bsButtonSelect",["$parse","$timeout",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){var o=e(r.bsButtonSelect);o.assign,i&&(n.text(t.$eval(r.ngModel)),t.$watch(r.ngModel,function(e){n.text(e)}));var a,s,u,c;n.bind("click",function(){a=o(t),s=i?t.$eval(r.ngModel):n.text(),u=a.indexOf(s),c=u>a.length-2?a[0]:a[u+1],t.$apply(function(){n.text(c),i&&i.$setViewValue(c)})})}}}]),angular.module("$strap.directives").directive("bsDatepicker",["$timeout","$strapConfig",function(e,t){var r=/(iP(a|o)d|iPhone)/g.test(navigator.userAgent),i=function(e){return e=e||"en",{"/":"[\\/]","-":"[-]",".":"[.]"," ":"[\\s]",dd:"(?:(?:[0-2]?[0-9]{1})|(?:[3][01]{1}))",d:"(?:(?:[0-2]?[0-9]{1})|(?:[3][01]{1}))",mm:"(?:[0]?[1-9]|[1][012])",m:"(?:[0]?[1-9]|[1][012])",DD:"(?:"+$.fn.datepicker.dates[e].days.join("|")+")",D:"(?:"+$.fn.datepicker.dates[e].daysShort.join("|")+")",MM:"(?:"+$.fn.datepicker.dates[e].months.join("|")+")",M:"(?:"+$.fn.datepicker.dates[e].monthsShort.join("|")+")",yyyy:"(?:(?:[1]{1}[0-9]{1}[0-9]{1}[0-9]{1})|(?:[2]{1}[0-9]{3}))(?![[0-9]])",yy:"(?:(?:[0-9]{1}[0-9]{1}))(?![[0-9]])"}},o=function(e,t){var n,r=e,o=i(t);return n=0,angular.forEach(o,function(e,t){r=r.split(t).join("${"+n+"}"),n++}),n=0,angular.forEach(o,function(e){r=r.split("${"+n+"}").join(e),n++}),new RegExp("^"+r+"$",["i"])};return{restrict:"A",require:"?ngModel",link:function(e,i,a,s){var u=angular.extend({autoclose:!0},t.datepicker||{}),c=a.dateType||u.type||"date";angular.forEach(["format","weekStart","calendarWeeks","startDate","endDate","daysOfWeekDisabled","autoclose","startView","minViewMode","todayBtn","todayHighlight","keyboardNavigation","language","forceParse"],function(e){angular.isDefined(a[e])&&(u[e]=a[e])});var l=u.language||"en",f=a.dateFormat||u.format||$.fn.datepicker.dates[l]&&$.fn.datepicker.dates[l].format||"mm/dd/yyyy",p=r?"yyyy-mm-dd":f,h=o(p,l),d=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/;s&&(s.$formatters.unshift(function(e){return e&&"iso"===c&&d.test(e)?$.fn.datepicker.DPGlobal.parseDate(new Date(e),$.fn.datepicker.DPGlobal.parseFormat(f),l):e&&"date"===c&&angular.isString(e)?$.fn.datepicker.DPGlobal.parseDate(e,$.fn.datepicker.DPGlobal.parseFormat(f),l):e}),s.$parsers.unshift(function(e){return e?"date"!==c&&"iso"!==c||!angular.isDate(e)?angular.isString(e)&&h.test(e)?(s.$setValidity("date",!0),r?new Date(e):"string"===c?e:$.fn.datepicker.DPGlobal.parseDate(e,$.fn.datepicker.DPGlobal.parseFormat(p),l)):(s.$setValidity("date",!1),n):(s.$setValidity("date",!0),e):(s.$setValidity("date",!0),null)}),s.$render=function(){if(r){var e=s.$viewValue?$.fn.datepicker.DPGlobal.formatDate(s.$viewValue,$.fn.datepicker.DPGlobal.parseFormat(p),l):"";return i.val(e),e}return s.$viewValue||i.val(""),i.datepicker("update",s.$viewValue)}),r?i.prop("type","date").css("-webkit-appearance","textfield"):(s&&i.on("changeDate",function(t){e.$apply(function(){s.$setViewValue("string"===c?i.val():t.date)})}),i.datepicker(angular.extend(u,{format:p,language:l})),e.$on("$destroy",function(){var e=i.data("datepicker");e&&(e.picker.remove(),i.data("datepicker",null))}),a.$observe("startDate",function(e){i.datepicker("setStartDate",e)}),a.$observe("endDate",function(e){i.datepicker("setEndDate",e)}));var g=i.siblings('[data-toggle="datepicker"]');g.length&&g.on("click",function(){i.prop("disabled")||i.trigger("focus")})}}}]),angular.module("$strap.directives").directive("bsDropdown",["$parse","$compile","$timeout",function(e,t,n){var r=function(e,t){return t||(t=['<ul class="dropdown-menu" role="menu" aria-labelledby="drop1">',"</ul>"]),angular.forEach(e,function(e,n){if(e.divider)return t.splice(n+1,0,'<li class="divider"></li>');var i="<li"+(e.submenu&&e.submenu.length?' class="dropdown-submenu"':"")+">"+'<a tabindex="-1" ng-href="'+(e.href||"")+'"'+(e.click?'" ng-click="'+e.click+'"':"")+(e.target?'" target="'+e.target+'"':"")+(e.method?'" data-method="'+e.method+'"':"")+">"+(e.icon&&'<i class="'+e.icon+'"></i>&nbsp;'||"")+(e.text||"")+"</a>";e.submenu&&e.submenu.length&&(i+=r(e.submenu).join("\n")),i+="</li>",t.splice(n+1,0,i)}),t};return{restrict:"EA",scope:!0,link:function(i,o,a){var s=e(a.bsDropdown),u=s(i);n(function(){!angular.isArray(u);var e=angular.element(r(u).join(""));e.insertAfter(o),t(o.next("ul.dropdown-menu"))(i)}),o.addClass("dropdown-toggle").attr("data-toggle","dropdown")}}}]),angular.module("$strap.directives").factory("$modal",["$rootScope","$compile","$http","$timeout","$q","$templateCache","$strapConfig",function(e,t,n,r,i,o,a){var s=function(s){function u(s){var u=angular.extend({show:!0},a.modal,s),c=u.scope?u.scope:e.$new(),l=u.template;return i.when(o.get(l)||n.get(l,{cache:!0}).then(function(e){return e.data})).then(function(e){var n=l.replace(".html","").replace(/[\/|\.|:]/g,"-")+"-"+c.$id,i=$('<div class="modal hide" tabindex="-1"></div>').attr("id",n).addClass("fade").html(e);return u.modalClass&&i.addClass(u.modalClass),$("body").append(i),r(function(){t(i)(c)}),c.$modal=function(e){i.modal(e)},angular.forEach(["show","hide"],function(e){c[e]=function(){i.modal(e)}}),c.dismiss=c.hide,angular.forEach(["show","shown","hide","hidden"],function(e){i.on(e,function(t){c.$emit("modal-"+e,t)})}),i.on("shown",function(){$("input[autofocus], textarea[autofocus]",i).first().trigger("focus")}),i.on("hidden",function(){u.persist||c.$destroy()}),c.$on("$destroy",function(){i.remove()}),i.modal(u),i})}return new u(s)};return s}]).directive("bsModal",["$q","$modal",function(e,t){return{restrict:"A",scope:!0,link:function(n,r,i){var o={template:n.$eval(i.bsModal),persist:!0,show:!1,scope:n};angular.forEach(["modalClass","backdrop","keyboard"],function(e){angular.isDefined(i[e])&&(o[e]=i[e])}),e.when(t(o)).then(function(e){r.attr("data-target","#"+e.attr("id")).attr("data-toggle","modal")})}}}]),angular.module("$strap.directives").directive("bsNavbar",["$location",function(e){return{restrict:"A",link:function(t,n){t.$watch(function(){return e.path()},function(e){$("li[data-match-route]",n).each(function(t,n){var r=angular.element(n),i=r.attr("data-match-route"),o=new RegExp("^"+i+"$",["i"]);o.test(e)?r.addClass("active").find(".collapse.in").collapse("hide"):r.removeClass("active")})})}}}]),angular.module("$strap.directives").directive("bsPopover",["$parse","$compile","$http","$timeout","$q","$templateCache",function(e,t,n,r,i,o){return $("body").on("keyup",function(e){27===e.keyCode&&$(".popover.in").each(function(){$(this).popover("hide")})}),{restrict:"A",scope:!0,link:function(a,s,u){var c=e(u.bsPopover),l=(c.assign,c(a)),f={};angular.isObject(l)&&(f=l),i.when(f.content||o.get(l)||n.get(l,{cache:!0})).then(function(e){angular.isObject(e)&&(e=e.data),u.unique&&s.on("show",function(){$(".popover.in").each(function(){var e=$(this),t=e.data("popover");t&&!t.$element.is(s)&&e.popover("hide")})}),u.hide&&a.$watch(u.hide,function(e,t){e?n.hide():e!==t&&n.show()}),u.show&&a.$watch(u.show,function(e,t){e?r(function(){n.show()}):e!==t&&n.hide()}),s.popover(angular.extend({},f,{content:e,html:!0}));var n=s.data("popover");n.hasContent=function(){return this.getTitle()||e},n.getPosition=function(){var e=$.fn.popover.Constructor.prototype.getPosition.apply(this,arguments);return t(this.$tip)(a),a.$digest(),this.$tip.data("popover",this),e},a.$popover=function(e){n(e)},angular.forEach(["show","hide"],function(e){a[e]=function(){n[e]()}}),a.dismiss=a.hide,angular.forEach(["show","shown","hide","hidden"],function(e){s.on(e,function(t){a.$emit("popover-"+e,t)})})})}}}]),angular.module("$strap.directives").directive("bsSelect",["$timeout",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){var o=t.$eval(r.bsSelect)||{};e(function(){n.selectpicker(o),n.next().removeClass("ng-scope")}),i&&t.$watch(r.ngModel,function(e,t){angular.equals(e,t)||n.selectpicker("refresh")})}}}]),angular.module("$strap.directives").directive("bsTabs",["$parse","$compile","$timeout",function(e,t,n){var r='<div class="tabs"><ul class="nav nav-tabs"><li ng-repeat="pane in panes" ng-class="{active:pane.active}"><a data-target="#{{pane.id}}" data-index="{{$index}}" data-toggle="tab">{{pane.title}}</a></li></ul><div class="tab-content" ng-transclude></div>';return{restrict:"A",require:"?ngModel",priority:0,scope:!0,template:r,replace:!0,transclude:!0,compile:function(){return function(t,r,i,o){var a=e(i.bsTabs);a.assign,a(t),t.panes=[];var s,u,c,l=r.find("ul.nav-tabs"),f=r.find("div.tab-content"),p=0;n(function(){f.find("[data-title], [data-tab]").each(function(e){var n=angular.element(this);s="tab-"+t.$id+"-"+e,u=n.data("title")||n.data("tab"),c=!c&&n.hasClass("active"),n.attr("id",s).addClass("tab-pane"),i.fade&&n.addClass("fade"),t.panes.push({id:s,title:u,content:this.innerHTML,active:c})}),t.panes.length&&!c&&(f.find(".tab-pane:first-child").addClass("active"+(i.fade?" in":"")),t.panes[0].active=!0)}),o&&(r.on("show",function(e){var n=$(e.target);t.$apply(function(){o.$setViewValue(n.data("index"))})}),t.$watch(i.ngModel,function(e){angular.isUndefined(e)||(p=e,setTimeout(function(){var t=$(l[0].querySelectorAll("li")[1*e]);t.hasClass("active")||t.children("a").tab("show")}))}))}}}}]),angular.module("$strap.directives").directive("bsTimepicker",["$timeout","$strapConfig",function(e,t){var n="((?:(?:[0-1][0-9])|(?:[2][0-3])|(?:[0-9])):(?:[0-5][0-9])(?::[0-5][0-9])?(?:\\s?(?:am|AM|pm|PM))?)";return{restrict:"A",require:"?ngModel",link:function(r,i,o,a){var s=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t},u=angular.extend({openOnFocus:!1},t.timepicker),c=o.defaultTime||u.defaultTime||!1;u.defaultTime=!1;var l=o.timeType||u.timeType||"string";if(angular.forEach(["template","minuteStep","showSeconds","secondStep","showMeridian","showInputs","disableFocus","modalBackdrop","openOnFocus"],function(e){angular.isDefined(o[e])&&(u[e]="true"===o[e]||"false"===o[e]?"true"===o[e]:/^\-?([0-9]+|Infinity)$/.test(o[e])?parseInt(o[e],10):o[e])}),a){i.on("changeTime.timepicker",function(t){e(function(){if("string"===l)a.$setViewValue(i.val());else if("date"===l){var e=new Date;e.setHours(t.time.hours),e.setMinutes(t.time.minutes),a.$setViewValue(e)}})});var f=new RegExp("^"+n+"$",["i"]);a.$formatters.unshift(function(e){if(e)return"date"===l?(a.$setViewValue(new Date(e)),i.val(new Date(e)),new Date(e)):(a.$setViewValue(e),i.val(e),e);if(c){if("current"===c){if("date"===l)return a.$setViewValue(new Date),i.val(new Date),new Date;var t=new Date;return s(t.getHours())+":"+s(t.getMinutes()),a.$setViewValue(t),i.val(t),t}return a.$setViewValue(c),i.val(c),c}return a.$setViewValue(i.val()),i.val()}),a.$render=function(){if(a.$viewValue){if("date"===l){var e;if(f.test(a.$viewValue)){e=new Date;var t=a.$viewValue.split(":"),n=isNaN(parseInt(t[0],10))?"0":parseInt(t[0],10),r=isNaN(parseInt(t[1],10))?"0":parseInt(t[1],10);return e.setHours(n),e.setMinutes(r),i.val(a.$viewValue),a.$setViewValue(e),e}e=new Date(a.$viewValue);var o="Invalid Date"!==e?s(e.getHours())+":"+s(e.getMinutes()):"";return i.val(o),a.$setViewValue(e),e}return i.val(a.$viewValue),a.$setViewValue(a.$viewValue),a.$viewValue}return i.val(""),""},a.$parsers.unshift(function(e){return!e||"string"===l&&f.test(e)?(a.$setValidity("time",!0),e):"date"===l&&"object"==typeof e&&"Invalid Date"!==e.toString()?(a.$setValidity("time",!0),e):(a.$setValidity("time",!1),void 0)})}i.attr("data-toggle","timepicker"),i.parent().addClass("bootstrap-timepicker"),i.timepicker(u||{});var p=i.data("timepicker"),h=i.siblings('[data-toggle="timepicker"]');h.length&&h.on("click",$.proxy(p.showWidget,p)),u.openOnFocus&&i.on("focus",$.proxy(p.showWidget,p))}}}]),angular.module("$strap.directives").directive("bsTooltip",["$parse","$compile",function(e){return{restrict:"A",scope:!0,link:function(t,n,r){var i=e(r.bsTooltip),o=(i.assign,i(t));t.$watch(r.bsTooltip,function(e){o=e}),r.unique&&n.on("show",function(){$(".tooltip.in").each(function(){var e=$(this),t=e.data("tooltip");t&&!t.$element.is(n)&&e.tooltip("hide")})}),n.tooltip({title:function(){return angular.isFunction(o)?o.apply(null,arguments):o},html:!0});var a=n.data("tooltip");a.show=function(){var e=$.fn.tooltip.Constructor.prototype.show.apply(this,arguments);return this.tip().data("tooltip",this),e},t._tooltip=function(e){n.tooltip(e)},t.hide=function(){n.tooltip("hide")},t.show=function(){n.tooltip("show")},t.dismiss=t.hide}}}]),angular.module("$strap.directives").directive("bsTypeahead",["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){var o=e(r.bsTypeahead),a=(o.assign,o(t));t.$watch(r.bsTypeahead,function(e,t){e!==t&&(a=e)}),n.attr("data-provide","typeahead"),n.typeahead({source:function(){return angular.isFunction(a)?a.apply(null,arguments):a},minLength:r.minLength||1,items:r.items,updater:function(e){return i&&t.$apply(function(){i.$setViewValue(e)}),t.$emit("typeahead-updated",e,r.id),e}});var s=n.data("typeahead");s.lookup=function(){var e;return this.query=this.$element.val()||"",this.query.length<this.options.minLength?this.shown?this.hide():this:(e=$.isFunction(this.source)?this.source(this.query,$.proxy(this.process,this)):this.source,e?this.process(e):this)},r.matchAll&&(s.matcher=function(){return!0}),"0"===r.minLength&&setTimeout(function(){n.on("focus",function(){0===n.val().length&&setTimeout(n.typeahead.bind(n,"lookup"),200)})})}}}])}(window,document),function(){this.highlight=function(e){var t;return t=document.createRange(),t.selectNode(e),getSelection().removeAllRanges(),getSelection().addRange(t)}}.call(this),function(){var e;this.palavaPortal=angular.module("palava-portal",["$strap.directives"]),e="dfede0d435439c382ecf6a1232b4d11f74f5ae12a6399bf75131c801caacddb1215538ecd41d3c7463ccd8e0cc25075cae2b0d4bb7deb855857d53048aed05b2",this.palavaPortal.config(["$routeProvider","$locationProvider",function(t,n){return t.when("/",{templateUrl:"/html/homepage.html?"+e,controller:"HomepageController"}).when("/info/how",{templateUrl:"/html/info/how.html?"+e,controller:"StaticController",title:"How to Use"}).when("/info/ev",{templateUrl:"/html/info/ev.html?"+e,controller:"StaticController",title:"e. V."}).when("/info/contact",{templateUrl:"/html/info/contact.html?"+e,controller:"StaticController",title:"Contact"}).when("/info/feedback",{templateUrl:"/html/info/feedback.html?"+e,controller:"FeedbackController",title:"Feedback"}).when("/info/error",{templateUrl:"/html/info/error.html?"+e,controller:"SorryController",title:"Sorry"}).when("/info",{redirectTo:"/info/how"}).when("/:roomId",{templateUrl:"/html/conference.html?"+e,controller:"ConferenceController"}).otherwise({redirectTo:"/"}),n.html5Mode(!0)}]),this.palavaPortal.run(["$location","$rootScope","$routeParams",function(e,t,n){var r,i;return i=function(e){return t.title=e&&e.$$route&&e.$$route.title?"palava.tv | "+e.$$route.title:"palava.tv"},r=function(){return t.forceSupport="0"===n.supported?!1:"1"===n.supported?!0:null},t.$on("$routeChangeSuccess",function(e,t){return i(t),r(),angular.element(".modal-backdrop").hide()})}])}.call(this),function(){this.palavaPortal.controller("ApplicationController",["$scope","$log","$routeParams","$location",function(e,t,n,r){var i;return i=function(){return e.log=function(){return t.log("DEBUG",arguments)},e.log_info=function(){return t.info("INFO",arguments)},e.log_warn=function(){return t.warning("WARNING",arguments)},e.log_error=function(){return t.error("ERROR",arguments)}},e.palavaAlert=function(e){return $("#palava-alert .alert-content").html(e),$("#palava-alert").show()},e.goHome=function(){return r.path("/"),setTimeout(function(){return $(".modal").modal("hide")},1)},i()}])}.call(this),function(){this.palavaPortal.controller("ConferenceController",["$scope","$rootScope","$routeParams","$location",function(e,t,n,r){var i,o,a;return a=function(){return e.roomId.match(/^info\//)&&(r.path("/info"),e.$apply()),e.roomId.length>50?(r.path("/"+roomId.substr(0,50)),e.$apply()):void 0},i=function(){return e.readableRoomId="Private Conference",e.roomClasses="palava-private-room",t.title="palava.tv | "+e.readableRoomId},o=function(){var n;e.roomClasses="palava-room";try{e.readableRoomId=decodeURIComponent(e.roomId)}catch(r){n=r,e.readableRoomId=e.roomId}return t.title="palava.tv | Conference | "+e.readableRoomId},e.roomId=n.roomId,a(),e.encodedRoomId=encodeURIComponent(e.roomId),(e["private"]=/^\w{8}(-\w{4}){3}-\w{12}$/.test(e.roomId))?i():o()}])}.call(this),function(){this.palavaPortal.controller("SorryController",["$scope","$routeParams","$location",function(e,t){return $(function(){switch(t.code){case"wrong_confirmation_token":return $(".sorry-explaination").text("We could not confirm your email addres. Maybe your email program displayed the url incorrectly. Please try again or write to contact@palava.tv for further assistance!");case"noone_to_unsubscribe":return $(".sorry-explaination").text("We did not find you in our database! Maybe you already have unsubscribed?");default:return $(".sorry-explaination").html("Something did not work correctly, which is probably our fault.<br/> Please try again later!")}})}])}.call(this),function(){this.palavaPortal.controller("FeedbackController",["$scope","$routeParams","$http",function(e,t,n){return e.submitFeedback=function(){var e;return e={text:$(".feedback-form textarea").val()},t.confirmation_token&&(e.confirmation_token=t.confirmation_token),n.post("/plv/feedback",{feedback_entry:e}).success(function(){return $(".feedback-form").hide(),$(".feedback-thank-you").show()}).error(function(e,t){switch(t){case 422:return console.log("validation error");default:return console.log("unknown error")}})},$(function(){return t.confirmed&&($("#feedback-heading").hide(),$(".confirmed-thank-you").show()),t.unsubscribed&&($("#feedback-heading").hide(),$(".unsubscribed-thank-you").show()),$(".feedback-form textarea").focus()})}])}.call(this),function(){this.palavaPortal.controller("HomepageController",["$scope","$routeParams","$location","$timeout",function(e,t,n,r){return $(function(){var i;return t.subscribe||t.signup?($(".join-room-fields").hide(),$(".subscribe-info").show(),r(function(){return $(".subscribe").click()},100)):e.forceSupport===!1||null===e.forceSupport&&(i=palava.browser.checkForWebrtcError())?($(".join-room-fields").hide(),$(".nosupport").show()):(palava.browser.checkForPartialSupport()&&$(".partialsupport").show(),$(".earth img, .earth strong").click(function(){return $("#room_id").focus(),!0}),$("#room_id").focus()),$(".join-room button.btn-go").click(function(){var t;return t=$("#room_id").val(),t?n.path("/"+t):n.path("/"+guid()),e.$apply(),!1}),$(".join-room button.btn-private").click(function(){return n.path("/"+guid()),e.$apply(),!1}),$(".join-room").submit(function(){return alert("submit triggerd"),$(".join-room .btn-go").click(),!1})})}])}.call(this),function(){this.palavaPortal.controller("PalavaController",["$scope","$location",function(e){var t,n,r,i,o;return o=function(){return e.state={uiState:"user_media_configurator",peerOnStage:null}},i=function(){return e.channel=new palava.WebSocketChannel("wss://CH4NGEMERTC/info/machine")},n=function(e){return e.audio&&!e.video?"Microphone":!e.audio&&e.video?"Webcam":e.audio||e.video?"Webcam and Microphone":"Nothing"},t=function(){var t;if(t=r.room&&r.room.getRemotePeers(),!t||e.state.peerOnStage&&e.state.peerOnStage.id===e.rtc.room.getLocalPeer().id);else{if(0===t.length)return e.setPeerOnStage(null);if(t.length>=1&&!e.state.peerOnStage)return e.setPeerOnStage(t[0])}},e.setPeerOnStage=function(t){return t&&t.getStream()?e.state.peerOnStage===t||(e.state.peerOnStage=t,palava.browser.fixAudio($(".plv-video-wrapper[data-peer-id="+t.id+"]")),e.$$phase)?void 0:e.$apply():e.state.peerOnStage=null},e.applyMuteStatuses=function(){return $(".plv-video-wrapper video").prop("muted",!0),$(".plv-video-wrapper [data-peer-muted=false]~video").prop("muted",!1)},e.initConference=function(t){return e.userMediaTitles=n(t),e.state.uiState="waiting_for_user_media",$("#share-link").focus(),e.rtc.init({identity:new palava.Identity({userMediaConfig:t}),options:{stun:"stun:CH4NGEMESTUN",joinTimeout:500}})},e.$watch("state.uiState",function(e){switch(e){case"user_media_configurator":return $(".modal").modal("hide"),$("#modal-user-media-configurator").modal("show");case"waiting_for_user_media":return $(".modal").modal("hide"),$("#modal-user-media").modal("show");case"user_media_error":return $(".modal").modal("hide"),$("#modal-user-media .alert").show();case"maintenance":return $(".modal").modal("hide"),$("#modal-maintenance").modal("show");case"conference":return $(".modal").modal("hide"),$(".modal-backdrop").hide()}}),e.$on("$destroy",function(){return e.rtc?e.rtc.destroy():void 0}),e.forceSupport===!1?e.goHome():(o(),i(),r=new palava.Session({roomId:e.roomId,channel:e.channel}),r.on("argument_error",function(t){return e.log_error("internal error",t)}),r.on("webrtc_no_support",function(){return e.log_error("webrtc not supported"),e.forceSupport?void 0:e.goHome()}),r.on("webrtc_partial_support",function(){return e.log_warning("webrtc only partially supported!"),e.palavaAlert('<strong>Warning:</strong> Your browser is not fully supported. See <a href="/info/how">How it Works</a> for more informations. Please update or use another browser to avoid compability issues!')}),r.on("signaling_not_reachable",function(){return e.log_error("signaling server not reachable"),e.palavaAlert("Unfortunately, the palava rtc server seems to be down! Please try again later!")}),r.on("signaling_error",function(t){return e.log_error("signaling error",t)}),r.on("signaling_shutdown",function(t){return e.log_warning("Sorry, your connection will be reset in "+t+" seconds!"),e.state.uiState="maintenance",e.$apply()}),r.on("room_join_error",function(){return e.log_error("room not joinable"),e.palavaAlert("Unfortunately, the palava rtc server seems to be down! Please try again later!")}),r.on("room_full",function(){return e.palavaAlert("Sorry, the conference room <strong>"+roomId+'</strong> is full! Please <a href="javascript:window.location.reload()">try again</a> or go back to the <a href="/#/">homepage</a>!')}),r.on("room_joined",function(t){return e.log("room joined with "+t.getRemotePeers().length+" peers")}),r.on("local_stream_ready",function(t){return e.log("local stream ready",t),e.state.uiState="conference",r.room.join(),e.$apply()}),r.on("local_stream_error",function(){return e.log("local stream error"),e.state.uiState="user_media_error",e.$apply()}),r.on("peer_joined",function(t){return e.log("peer joined",t)}),r.on("peer_stream_ready",function(n){return e.log("peer stream ready",n),t(),e.$apply()}),r.on("peer_update",function(t){return e.log("peer updated status",t),e.$apply()}),r.on("peer_stream_removed",function(n){return e.log("peer stream removed",n),t(),e.$$phase?void 0:e.$apply()}),r.on("peer_left",function(n){return e.log("peer left",n),t(),setTimeout(function(){return e.$apply()},1)}),r.on("session_before_destroy",function(){return e.log("destroying rtc session")}),r.on("session_after_destroy",function(){return $(".modal").modal("hide"),$(".modal-backdrop").hide()}),e.rtc=r)}])}.call(this),function(){this.palavaPortal.controller("RegistrationsController",["$scope","$http","$routeParams","$location",function(e,t,n){return e.fields=["email","password","username","wants_newsletter"],e.registration={email:n.email},e.validationMessages={},e.validationControlGroups={},e.success=!1,e.registerUser=function(){return t.post("/plv/registrations",{registration:e.registration}).success(function(){return e.registration={},e.success=!0}).error(function(t,n){var r,i,o,a,s,u;switch(n){case 422:for(s=e.fields,u=[],o=0,a=s.length;a>o;o++)r=s[o],-1!==Object.keys(t.errors).indexOf(r)?(i=t.errors[r][0],e.validationMessages[r]=i,u.push(e.validationControlGroups[r]=i.match(/already taken/)?"info":"error")):(delete e.validationMessages[r],u.push(delete e.validationControlGroups[r]));return u;default:return console.log("unknown error")}})}}])}.call(this),function(){this.palavaPortal.controller("StaticController",["$scope","$routeParams","$location",function(){}])}.call(this);var templateString='<a ng-show="peer.hasAudio() && !peer.isLocal()" ng-click="toggleMute()" href="javascript:void(0)" class="plv-video-mute">  <span ng-show="peer.isMuted()">&#x1f508;</span>  <span ng-show="!peer.isMuted()">&#x1f50a;</span></a><span ng-show="!peer.hasAudio() && (!peer.isLocal() || !rtc.userMedia.config.audio)" class="plv-video-mute">&#x1f507;</span><span ng-show="!peer.isLocal()" class="plv-video-heading">  {{peer.status.name || "Anonymous"}}</span><span ng-show="peer.isLocal()" class="plv-video-heading">  {{peer.status.name || "You"}}  <a href="javascript:void(0)" class="plv-change-name" data-title="Change your Display Name" data-placement="bottom" bs-popover="\'html/shared/change_name.html\'">    Options  </a></span><div ng-hide="peer.isReady()" class="plv-video-like"></div><webrtc-stream ng-if="peer.isReady()" peer="peer" poster="/assets/images/poster-83400a6f.png"></webrtc-stream>';angular.module("palava-portal").directive("palavaPeer",[function(){return{restrict:"A",link:function(e,t){t.find("video").on("click",function(){e.setPeerOnStage(e.peer)}),e.toggleMute=function(){e.peer.toggleMute(),t.find(".plv-video-mute").attr("data-peer-muted",e.peer.isMuted()),e.applyMuteStatuses()},e.$watch("peer.ready",function(t){t&&!e.peer.isLocal()&&palava.browser.fixAudio($(".plv-video-wrapper[data-peer-id="+e.peer.id+"]"))})},template:templateString}}]),angular.module("palava-portal").directive("webrtcStream",function(){return{restrict:"E",replace:!0,scope:{peer:"="},link:function(e,t){palava.browser.registerFullscreen(t,"dblclick"),e.$watch("peer.getStream()",function(e){palava.browser.attachMediaStream(t,e)})},template:'<video autoplay muted class="plv-video-like" ng-class="{\'plv-local-video\': peer.isLocal() }" />'}}),function(){$(".noscript-hint").hide(),$(function(){return $(document).on("click","#share-link",function(){return window.highlight(this)}),$(document).on("focus","#share-link",function(){var e=this;return setTimeout(function(){return window.highlight(e)},1)}),$(document).on("click","#share-link-text strong",function(){return $("#share-link").focus()}),$(document).on("click",".subscribe",function(){return $("#subscribe-popover").popover("toggle"),$("#email").focus(),!1}),$(document).on("click","#submit-potential",function(){var e,t;return t=function(){return $("#subscribe-form").hide(),$("#subscribe-div .thank-you").show(),setTimeout(function(){return $(".subscribe-info:visible").length?location.href="/":$("#subscribe-popover").popover("hide",function(){return $("#subscribe-form email").val(),$("#subscribe-div div").hide(),$("#subscribe-form").show()})},3e3)},e=function(e){var n;return(n=JSON.parse(e.responseText).errors.email[0])?($("#subscribe-form").hide(),$("#subscribe-div .sorry").text(n),$("#subscribe-div .sorry").show()):t()},$.ajax({type:"POST",url:"/plv/potentials",data:{potential:{email:$("#email").val()}},success:t,error:e}),!1}),$(document).on("click","#subscribe-div .sorry",function(){return $("#subscribe-div .sorry").hide(),$("#subscribe-div .sorry").text(""),$("#subscribe-form").show(),$("#email").focus()})})}.call(this);