text: /*!
   * jQuery JavaScript Library v2.1.4
   * http://jquery.com/
   *
   * Includes Sizzle.js
   * http://sizzlejs.com/
   *
   * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
   * Released under the MIT license
   * http://jquery.org/license
   *
   * Date: 2015-04-28T16:01Z
   */
  !function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t="length"in e&&e.length,n=Q.type(e);return"function"===n||Q.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function r(e,t,n){if(Q.isFunction(t))return Q.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return Q.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ue.test(t))return Q.filter(t,e,n);t=Q.filter(t,e)}return Q.grep(e,function(e){return B.call(t,e)>=0!==n})}function i(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function o(e){var t=he[e]={};return Q.each(e.match(de)||[],function(e,n){t[n]=!0}),t}function a(){X.removeEventListener("DOMContentLoaded",a,!1),e.removeEventListener("load",a,!1),Q.ready()}function u(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Q.expando+u.uid++}function s(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(be,"-$1").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:$e.test(n)?Q.parseJSON(n):n}catch(i){}ye.set(e,t,n)}else n=void 0;return n}function l(){return!0}function c(){return!1}function f(){try{return X.activeElement}catch(e){}}function p(e,t){return Q.nodeName(e,"table")&&Q.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function d(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function h(e){var t=Ie.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function g(e,t){for(var n=0,r=e.length;r>n;n++)ve.set(e[n],"globalEval",!t||ve.get(t[n],"globalEval"))}function m(e,t){var n,r,i,o,a,u,s,l;if(1===t.nodeType){if(ve.hasData(e)&&(o=ve.access(e),a=ve.set(t,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)Q.event.add(t,i,l[i][n])}ye.hasData(e)&&(u=ye.access(e),s=Q.extend({},u),ye.set(t,s))}}function v(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&Q.nodeName(e,t)?Q.merge([e],n):n}function y(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ke.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function $(t,n){var r,i=Q(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:Q.css(i[0],"display");return i.detach(),o}function b(e){var t=X,n=ze[e];return n||(n=$(e,t),"none"!==n&&n||(Fe=(Fe||Q("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=Fe[0].contentDocument,t.write(),t.close(),n=$(e,t),Fe.detach()),ze[e]=n),n}function w(e,t,n){var r,i,o,a,u=e.style;return n=n||He(e),n&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||Q.contains(e.ownerDocument,e)||(a=Q.style(e,t)),Le.test(a)&&qe.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function x(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function _(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),r=t,i=Ke.length;i--;)if(t=Ke[i]+n,t in e)return t;return r}function k(e,t,n){var r=We.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+=Q.css(e,n+xe[o],!0,i)),r?("content"===n&&(a-=Q.css(e,"padding"+xe[o],!0,i)),"margin"!==n&&(a-=Q.css(e,"border"+xe[o]+"Width",!0,i))):(a+=Q.css(e,"padding"+xe[o],!0,i),"padding"!==n&&(a+=Q.css(e,"border"+xe[o]+"Width",!0,i)));return a}function S(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=He(e),a="border-box"===Q.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=w(e,t,o),(0>i||null==i)&&(i=e.style[t]),Le.test(i))return i;r=a&&(Z.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+C(e,t,n||(a?"border":"content"),r,o)+"px"}function T(e,t){for(var n,r,i,o=[],a=0,u=e.length;u>a;a++)r=e[a],r.style&&(o[a]=ve.get(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&_e(r)&&(o[a]=ve.access(r,"olddisplay",b(r.nodeName)))):(i=_e(r),"none"===n&&i||ve.set(r,"olddisplay",i?n:Q.css(r,"display"))));for(a=0;u>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 D(e,t,n,r,i){return new D.prototype.init(e,t,n,r,i)}function O(){return setTimeout(function(){Ze=void 0}),Ze=Q.now()}function E(e,t){var n,r=0,i={height:e};for(t=t?1:0;4>r;r+=2-t)n=xe[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function A(e,t,n){for(var r,i=(nt[t]||[]).concat(nt["*"]),o=0,a=i.length;a>o;o++)if(r=i[o].call(n,t,e))return r}function M(e,t,n){var r,i,o,a,u,s,l,c,f=this,p={},d=e.style,h=e.nodeType&&_e(e),g=ve.get(e,"fxshow");n.queue||(u=Q._queueHooks(e,"fx"),null==u.unqueued&&(u.unqueued=0,s=u.empty.fire,u.empty.fire=function(){u.unqueued||s()}),u.unqueued++,f.always(function(){f.always(function(){u.unqueued--,Q.queue(e,"fx").length||u.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],l=Q.css(e,"display"),c="none"===l?ve.get(e,"olddisplay")||b(e.nodeName):l,"inline"===c&&"none"===Q.css(e,"float")&&(d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],Je.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;h=!0}p[r]=g&&g[r]||Q.style(e,r)}else l=void 0;if(Q.isEmptyObject(p))"inline"===("none"===l?b(e.nodeName):l)&&(d.display=l);else{g?"hidden"in g&&(h=g.hidden):g=ve.access(e,"fxshow",{}),o&&(g.hidden=!h),h?Q(e).show():f.done(function(){Q(e).hide()}),f.done(function(){var t;ve.remove(e,"fxshow");for(t in p)Q.style(e,t,p[t])});for(r in p)a=A(h?g[r]:0,r,f),r in g||(g[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function P(e,t){var n,r,i,o,a;for(n in e)if(r=Q.camelCase(n),i=t[r],o=e[n],Q.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=Q.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 j(e,t,n){var r,i,o=0,a=tt.length,u=Q.Deferred().always(function(){delete s.elem}),s=function(){if(i)return!1;for(var t=Ze||O(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,s=l.tweens.length;s>a;a++)l.tweens[a].run(o);return u.notifyWith(e,[l,o,n]),1>o&&s?n:(u.resolveWith(e,[l]),!1)},l=u.promise({elem:e,props:Q.extend({},t),opts:Q.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Ze||O(),duration:n.duration,tweens:[],createTween:function(t,n){var r=Q.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?u.resolveWith(e,[l,t]):u.rejectWith(e,[l,t]),this}}),c=l.props;for(P(c,l.opts.specialEasing);a>o;o++)if(r=tt[o].call(l,e,c,l.opts))return r;return Q.map(c,A,l),Q.isFunction(l.opts.start)&&l.opts.start.call(e,l),Q.fx.timer(Q.extend(s,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function N(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(de)||[];if(Q.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 I(e,t,n,r){function i(u){var s;return o[u]=!0,Q.each(e[u]||[],function(e,u){var l=u(t,n,r);return"string"!=typeof l||a||o[l]?a?!(s=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),s}var o={},a=e===$t;return i(t.dataTypes[0])||!o["*"]&&i("*")}function U(e,t){var n,r,i=Q.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&Q.extend(!0,e,r),e}function R(e,t,n){for(var r,i,o,a,u=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){s.unshift(i);break}if(s[0]in n)o=s[0];else{for(i in n){if(!s[0]||e.converters[i+" "+s[0]]){o=i;break}a||(a=i)}o=o||a}return o?(o!==s[0]&&s.unshift(o),n[o]):void 0}function F(e,t,n,r){var i,o,a,u,s,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!s&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=o,o=c.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(a=l[s+" "+o]||l["* "+o],!a)for(i in l)if(u=i.split(" "),u[1]===o&&(a=l[s+" "+u[0]]||l["* "+u[0]])){a===!0?a=l[i]:l[i]!==!0&&(o=u[0],c.unshift(u[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 "+s+" to "+o}}}return{state:"success",data:t}}function z(e,t,n,r){var i;if(Q.isArray(t))Q.each(t,function(t,i){n||kt.test(e)?r(e,i):z(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==Q.type(t))r(e,t);else for(i in t)z(e+"["+i+"]",t[i],n,r)}function q(e){return Q.isWindow(e)?e:9===e.nodeType&&e.defaultView}var L=[],H=L.slice,V=L.concat,W=L.push,B=L.indexOf,Y={},G=Y.toString,K=Y.hasOwnProperty,Z={},X=e.document,J="2.1.4",Q=function(e,t){return new Q.fn.init(e,t)},ee=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,te=/^-ms-/,ne=/-([\da-z])/gi,re=function(e,t){return t.toUpperCase()};Q.fn=Q.prototype={jquery:J,constructor:Q,selector:"",length:0,toArray:function(){return H.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:H.call(this)},pushStack:function(e){var t=Q.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return Q.each(this,e,t)},map:function(e){return this.pushStack(Q.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(H.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:W,sort:L.sort,splice:L.splice},Q.extend=Q.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},u=1,s=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[u]||{},u++),"object"==typeof a||Q.isFunction(a)||(a={}),u===s&&(a=this,u--);s>u;u++)if(null!=(e=arguments[u]))for(t in e)n=a[t],r=e[t],a!==r&&(l&&r&&(Q.isPlainObject(r)||(i=Q.isArray(r)))?(i?(i=!1,o=n&&Q.isArray(n)?n:[]):o=n&&Q.isPlainObject(n)?n:{},a[t]=Q.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},Q.extend({expando:"jQuery"+(J+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===Q.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!Q.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return"object"!==Q.type(e)||e.nodeType||Q.isWindow(e)?!1:e.constructor&&!K.call(e.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Y[G.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=Q.trim(e),e&&(1===e.indexOf("use strict")?(t=X.createElement("script"),t.text=e,X.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(te,"ms-").replace(ne,re)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var i,o=0,a=e.length,u=n(e);if(r){if(u)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(u)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?"":(e+"").replace(ee,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?Q.merge(r,"string"==typeof e?[e]:e):W.call(r,e)),r},inArray:function(e,t,n){return null==t?-1:B.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;n>r;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,u=!n;a>o;o++)r=!t(e[o],o),r!==u&&i.push(e[o]);return i},map:function(e,t,r){var i,o=0,a=e.length,u=n(e),s=[];if(u)for(;a>o;o++)i=t(e[o],o,r),null!=i&&s.push(i);else for(o in e)i=t(e[o],o,r),null!=i&&s.push(i);return V.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),Q.isFunction(e)?(r=H.call(arguments,2),i=function(){return e.apply(t||this,r.concat(H.call(arguments)))},i.guid=e.guid=e.guid||Q.guid++,i):void 0},now:Date.now,support:Z}),Q.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){Y["[object "+t+"]"]=t.toLowerCase()});var ie=/*!
   * Sizzle CSS Selector Engine v2.2.0-pre
   * http://sizzlejs.com/
   *
   * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
   * Released under the MIT license
   * http://jquery.org/license
   *
   * Date: 2014-12-16
   */
  function(e){function t(e,t,n,r){var i,o,a,u,s,l,f,d,h,g;if((t?t.ownerDocument||t:z)!==M&&A(t),t=t||M,n=n||[],u=t.nodeType,"string"!=typeof e||!e||1!==u&&9!==u&&11!==u)return n;if(!r&&j){if(11!==u&&(i=ye.exec(e)))if(a=i[1]){if(9===u){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))&&R(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return J.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&w.getElementsByClassName)return J.apply(n,t.getElementsByClassName(a)),n}if(w.qsa&&(!N||!N.test(e))){if(d=f=F,h=t,g=1!==u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(l=C(e),(f=t.getAttribute("id"))?d=f.replace(be,"\\$&"):t.setAttribute("id",d),d="[id='"+d+"'] ",s=l.length;s--;)l[s]=d+p(l[s]);h=$e.test(e)&&c(t.parentNode)||t,g=l.join(",")}if(g)try{return J.apply(n,h.querySelectorAll(g)),n}catch(m){}finally{f||t.removeAttribute("id")}}}return T(e.replace(se,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>x.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[F]=!0,e}function i(e){var t=M.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=e.length;r--;)x.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Y)-(~e.sourceIndex||Y);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 s(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return r(function(t){return t=+t,r(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 c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function p(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=L++;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 u,s,l=[q,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(s=t[F]||(t[F]={}),(u=s[r])&&u[0]===q&&u[1]===o)return l[2]=u[2];if(s[r]=l,l[2]=e(t,n,a))return!0}}}function h(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 g(e,n,r){for(var i=0,o=n.length;o>i;i++)t(e,n[i],r);return r}function m(e,t,n,r,i){for(var o,a=[],u=0,s=e.length,l=null!=t;s>u;u++)(o=e[u])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(u));return a}function v(e,t,n,i,o,a){return i&&!i[F]&&(i=v(i)),o&&!o[F]&&(o=v(o,a)),r(function(r,a,u,s){var l,c,f,p=[],d=[],h=a.length,v=r||g(t||"*",u.nodeType?[u]:u,[]),y=!e||!r&&t?v:m(v,p,e,u,s),$=n?o||(r?e:h||i)?[]:a:y;if(n&&n(y,$,u,s),i)for(l=m($,d),i(l,[],u,s),c=l.length;c--;)(f=l[c])&&($[d[c]]=!(y[d[c]]=f));if(r){if(o||e){if(o){for(l=[],c=$.length;c--;)(f=$[c])&&l.push(y[c]=f);o(null,$=[],l,s)}for(c=$.length;c--;)(f=$[c])&&(l=o?ee(r,f):p[c])>-1&&(r[l]=!(a[l]=f))}}else $=m($===a?$.splice(h,$.length):$),o?o(null,a,$,s):J.apply(a,$)})}function y(e){for(var t,n,r,i=e.length,o=x.relative[e[0].type],a=o||x.relative[" "],u=o?1:0,s=d(function(e){return e===t},a,!0),l=d(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==D)||((t=n).nodeType?s(e,n,r):l(e,n,r));return t=null,i}];i>u;u++)if(n=x.relative[e[u].type])c=[d(h(c),n)];else{if(n=x.filter[e[u].type].apply(null,e[u].matches),n[F]){for(r=++u;i>r&&!x.relative[e[r].type];r++);return v(u>1&&h(c),u>1&&p(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(se,"$1"),n,r>u&&y(e.slice(u,r)),i>r&&y(e=e.slice(r)),i>r&&p(e))}c.push(n)}return h(c)}function $(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,u,s,l){var c,f,p,d=0,h="0",g=r&&[],v=[],y=D,$=r||o&&x.find.TAG("*",l),b=q+=null==y?1:Math.random()||.1,w=$.length;for(l&&(D=a!==M&&a);h!==w&&null!=(c=$[h]);h++){if(o&&c){for(f=0;p=e[f++];)if(p(c,a,u)){s.push(c);break}l&&(q=b)}i&&((c=!p&&c)&&d--,r&&g.push(c))}if(d+=h,i&&h!==d){for(f=0;p=n[f++];)p(g,v,a,u);if(r){if(d>0)for(;h--;)g[h]||v[h]||(v[h]=Z.call(s));v=m(v)}J.apply(s,v),l&&!r&&v.length>0&&d+n.length>1&&t.uniqueSort(s)}return l&&(q=b,D=y),g};return i?r(a):a}var b,w,x,_,k,C,S,T,D,O,E,A,M,P,j,N,I,U,R,F="sizzle"+1*new Date,z=e.document,q=0,L=0,H=n(),V=n(),W=n(),B=function(e,t){return e===t&&(E=!0),0},Y=1<<31,G={}.hasOwnProperty,K=[],Z=K.pop,X=K.push,J=K.push,Q=K.slice,ee=function(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie=re.replace("w","w#"),oe="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+ne+"*\\]",ae=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",ue=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),le=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),fe=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),pe=new RegExp(ae),de=new RegExp("^"+ie+"$"),he={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},ge=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ve=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$e=/[+~]/,be=/'|\\/g,we=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),xe=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},_e=function(){A()};try{J.apply(K=Q.call(z.childNodes),z.childNodes),K[z.childNodes.length].nodeType}catch(ke){J={apply:K.length?function(e,t){X.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},k=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},A=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:z;return r!==M&&9===r.nodeType&&r.documentElement?(M=r,P=r.documentElement,n=r.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",_e,!1):n.attachEvent&&n.attachEvent("onunload",_e)),j=!k(r),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=ve.test(r.getElementsByClassName),w.getById=i(function(e){return P.appendChild(e).id=F,!r.getElementsByName||!r.getElementsByName(F).length}),w.getById?(x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&j){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},x.filter.ID=function(e){var t=e.replace(we,xe);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var t=e.replace(we,xe);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),x.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(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},x.find.CLASS=w.getElementsByClassName&&function(e,t){return j?t.getElementsByClassName(e):void 0},I=[],N=[],(w.qsa=ve.test(r.querySelectorAll))&&(i(function(e){P.appendChild(e).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&N.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||N.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+F+"-]").length||N.push("~="),e.querySelectorAll(":checked").length||N.push(":checked"),e.querySelectorAll("a#"+F+"+*").length||N.push(".#.+[+~]")}),i(function(e){var t=r.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&N.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||N.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),N.push(",.*:")})),(w.matchesSelector=ve.test(U=P.matches||P.webkitMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector||P.msMatchesSelector))&&i(function(e){w.disconnectedMatch=U.call(e,"div"),U.call(e,"[s!='']:x"),I.push("!=",ae)}),N=N.length&&new RegExp(N.join("|")),I=I.length&&new RegExp(I.join("|")),t=ve.test(P.compareDocumentPosition),R=t||ve.test(P.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},B=t?function(e,t){if(e===t)return E=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===z&&R(z,e)?-1:t===r||t.ownerDocument===z&&R(z,t)?1:O?ee(O,e)-ee(O,t):0:4&n?-1:1)}:function(e,t){if(e===t)return E=!0,0;var n,i=0,o=e.parentNode,u=t.parentNode,s=[e],l=[t];if(!o||!u)return e===r?-1:t===r?1:o?-1:u?1:O?ee(O,e)-ee(O,t):0;if(o===u)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;s[i]===l[i];)i++;return i?a(s[i],l[i]):s[i]===z?-1:l[i]===z?1:0},r):M},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==M&&A(e),n=n.replace(fe,"='$1']"),w.matchesSelector&&j&&(!I||!I.test(n))&&(!N||!N.test(n)))try{var r=U.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,M,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==M&&A(e),R(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==M&&A(e);var n=x.attrHandle[t.toLowerCase()],r=n&&G.call(x.attrHandle,t.toLowerCase())?n(e,t,!j):void 0;return void 0!==r?r:w.attributes||!j?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(E=!w.detectDuplicates,O=!w.sortStable&&e.slice(0),e.sort(B),E){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return O=null,e},_=t.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+=_(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=_(t);return n},x=t.selectors={cacheLength:50,createPseudo:r,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(we,xe),e[3]=(e[3]||e[4]||e[5]||"").replace(we,xe),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&pe.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(we,xe).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=H[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&H(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:n?(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ue," ")+" ").indexOf(r)>-1:"|="===n?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),u="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,s){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=u&&t.nodeName.toLowerCase(),y=!s&&!u;if(m){if(o){for(;g;){for(f=t;f=f[g];)if(u?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(c=m[F]||(m[F]={}),l=c[e]||[],d=l[0]===q&&l[1],p=l[0]===q&&l[2],f=d&&m.childNodes[d];f=++d&&f&&f[g]||(p=d=0)||h.pop();)if(1===f.nodeType&&++p&&f===t){c[e]=[q,d,p];break}}else if(y&&(l=(t[F]||(t[F]={}))[e])&&l[0]===q)p=l[1];else for(;(f=++d&&f&&f[g]||(p=d=0)||h.pop())&&((u?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++p||(y&&((f[F]||(f[F]={}))[e]=[q,p]),f!==t)););return p-=i,p===r||p%r===0&&p/r>=0}}},PSEUDO:function(e,n){var i,o=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[F]?o(n):o.length>1?(i=[e,e,"",n],x.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=S(e.replace(se,"$1"));return i[F]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),u=e.length;u--;)(o=a[u])&&(e[u]=!(t[u]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(we,xe),function(t){return(t.textContent||t.innerText||_(t)).indexOf(e)>-1}}),lang:r(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(we,xe).toLowerCase(),function(t){var n;do if(n=j?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.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return ge.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first: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})}},x.pseudos.nth=x.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[b]=u(b);for(b in{submit:!0,reset:!0})x.pseudos[b]=s(b);return f.prototype=x.filters=x.pseudos,x.setFilters=new f,C=t.tokenize=function(e,n){var r,i,o,a,u,s,l,c=V[e+" "];if(c)return n?0:c.slice(0);for(u=e,s=[],l=x.preFilter;u;){(!r||(i=le.exec(u)))&&(i&&(u=u.slice(i[0].length)||u),s.push(o=[])),r=!1,(i=ce.exec(u))&&(r=i.shift(),o.push({value:r,type:i[0].replace(se," ")}),u=u.slice(r.length));for(a in x.filter)!(i=he[a].exec(u))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),u=u.slice(r.length));if(!r)break}return n?u.length:u?t.error(e):V(e,s).slice(0)},S=t.compile=function(e,t){var n,r=[],i=[],o=W[e+" "];if(!o){for(t||(t=C(e)),n=t.length;n--;)o=y(t[n]),o[F]?r.push(o):i.push(o);o=W(e,$(i,r)),o.selector=e}return o},T=t.select=function(e,t,n,r){var i,o,a,u,s,l="function"==typeof e&&e,f=!r&&C(e=l.selector||e);if(n=n||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===t.nodeType&&j&&x.relative[o[1].type]){if(t=(x.find.ID(a.matches[0].replace(we,xe),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=he.needsContext.test(e)?0:o.length;i--&&(a=o[i],!x.relative[u=a.type]);)if((s=x.find[u])&&(r=s(a.matches[0].replace(we,xe),$e.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&p(o),!e)return J.apply(n,r),n;break}}return(l||S(e,f))(r,t,!j,n,$e.test(e)&&c(t.parentNode)||t),n},w.sortStable=F.split("").sort(B).join("")===F,w.detectDuplicates=!!E,A(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(M.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);Q.find=ie,Q.expr=ie.selectors,Q.expr[":"]=Q.expr.pseudos,Q.unique=ie.uniqueSort,Q.text=ie.getText,Q.isXMLDoc=ie.isXML,Q.contains=ie.contains;var oe=Q.expr.match.needsContext,ae=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ue=/^.[^:#\[\.,]*$/;Q.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?Q.find.matchesSelector(r,e)?[r]:[]:Q.find.matches(e,Q.grep(t,function(e){return 1===e.nodeType}))},Q.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(Q(e).filter(function(){for(t=0;n>t;t++)if(Q.contains(i[t],this))return!0}));for(t=0;n>t;t++)Q.find(e,i[t],r);return r=this.pushStack(n>1?Q.unique(r):r),r.selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&oe.test(e)?Q(e):e||[],!1).length}});var se,le=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ce=Q.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:le.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||se).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof Q?t[0]:t,Q.merge(this,Q.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:X,!0)),ae.test(n[1])&&Q.isPlainObject(t))for(n in t)Q.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return r=X.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=X,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):Q.isFunction(e)?"undefined"!=typeof se.ready?se.ready(e):e(Q):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),Q.makeArray(e,this))};ce.prototype=Q.fn,se=Q(X);var fe=/^(?:parents|prev(?:Until|All))/,pe={children:!0,contents:!0,next:!0,prev:!0};Q.extend({dir:function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&Q(e).is(n))break;r.push(e)}return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),Q.fn.extend({has:function(e){var t=Q(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(Q.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=oe.test(e)||"string"!=typeof e?Q(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&&Q.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?Q.unique(o):o)},index:function(e){return e?"string"==typeof e?B.call(Q(e),this[0]):B.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Q.unique(Q.merge(this.get(),Q(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Q.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Q.dir(e,"parentNode")},parentsUntil:function(e,t,n){return Q.dir(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return Q.dir(e,"nextSibling")},prevAll:function(e){return Q.dir(e,"previousSibling")},nextUntil:function(e,t,n){return Q.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return Q.dir(e,"previousSibling",n)},siblings:function(e){return Q.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return Q.sibling(e.firstChild)},contents:function(e){return e.contentDocument||Q.merge([],e.childNodes)}},function(e,t){Q.fn[e]=function(n,r){var i=Q.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=Q.filter(r,i)),this.length>1&&(pe[e]||Q.unique(i),fe.test(e)&&i.reverse()),this.pushStack(i)}});var de=/\S+/g,he={};Q.Callbacks=function(e){e="string"==typeof e?he[e]||o(e):Q.extend({},e);var t,n,r,i,a,u,s=[],l=!e.once&&[],c=function(o){for(t=e.memory&&o,n=!0,u=i||0,i=0,a=s.length,r=!0;s&&a>u;u++)if(s[u].apply(o[0],o[1])===!1&&e.stopOnFalse){t=!1;break}r=!1,s&&(l?l.length&&c(l.shift()):t?s=[]:f.disable())},f={add:function(){if(s){var n=s.length;!function o(t){Q.each(t,function(t,n){var r=Q.type(n);"function"===r?e.unique&&f.has(n)||s.push(n):n&&n.length&&"string"!==r&&o(n)})}(arguments),r?a=s.length:t&&(i=n,c(t))}return this},remove:function(){return s&&Q.each(arguments,function(e,t){for(var n;(n=Q.inArray(t,s,n))>-1;)s.splice(n,1),r&&(a>=n&&a--,u>=n&&u--)}),this},has:function(e){return e?Q.inArray(e,s)>-1:!(!s||!s.length)},empty:function(){return s=[],a=0,this},disable:function(){return s=l=t=void 0,this},disabled:function(){return!s},lock:function(){return l=void 0,t||f.disable(),this},locked:function(){return!l},fireWith:function(e,t){return!s||n&&!l||(t=t||[],t=[e,t.slice?t.slice():t],r?l.push(t):c(t)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!n}};return f},Q.extend({Deferred:function(e){var t=[["resolve","done",Q.Callbacks("once memory"),"resolved"],["reject","fail",Q.Callbacks("once memory"),"rejected"],["notify","progress",Q.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return Q.Deferred(function(n){Q.each(t,function(t,o){var a=Q.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&Q.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?Q.extend(e,r):r}},i={};return r.pipe=r.then,Q.each(t,function(e,o){var a=o[2],u=o[3];r[o[1]]=a.add,u&&a.add(function(){n=u},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=H.call(arguments),a=o.length,u=1!==a||e&&Q.isFunction(e.promise)?a:0,s=1===u?e:Q.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?H.call(arguments):i,r===t?s.notifyWith(n,r):--u||s.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);a>i;i++)o[i]&&Q.isFunction(o[i].promise)?o[i].promise().done(l(i,r,o)).fail(s.reject).progress(l(i,n,t)):--u;return u||s.resolveWith(r,o),s.promise()}});var ge;Q.fn.ready=function(e){return Q.ready.promise().done(e),this},Q.extend({isReady:!1,readyWait:1,holdReady:function(e){e?Q.readyWait++:Q.ready(!0)},ready:function(e){(e===!0?--Q.readyWait:Q.isReady)||(Q.isReady=!0,e!==!0&&--Q.readyWait>0||(ge.resolveWith(X,[Q]),Q.fn.triggerHandler&&(Q(X).triggerHandler("ready"),Q(X).off("ready"))))}}),Q.ready.promise=function(t){return ge||(ge=Q.Deferred(),"complete"===X.readyState?setTimeout(Q.ready):(X.addEventListener("DOMContentLoaded",a,!1),e.addEventListener("load",a,!1))),ge.promise(t)},Q.ready.promise();var me=Q.access=function(e,t,n,r,i,o,a){var u=0,s=e.length,l=null==n;if("object"===Q.type(n)){i=!0;for(u in n)Q.access(e,t,u,n[u],!0,o,a)}else if(void 0!==r&&(i=!0,Q.isFunction(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(Q(e),n)})),t))for(;s>u;u++)t(e[u],n,a?r:r.call(e[u],u,t(e[u],n)));return i?e:l?t.call(e):s?t(e[0],n):o};Q.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},u.uid=1,u.accepts=Q.acceptData,u.prototype={key:function(e){if(!u.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=u.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,Q.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(Q.isEmptyObject(o))Q.extend(this.cache[i],t);else for(r in t)o[r]=t[r];return o},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?(r=this.get(e,t),void 0!==r?r:this.get(e,Q.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,o=this.key(e),a=this.cache[o];if(void 0===t)this.cache[o]={};else{Q.isArray(t)?r=t.concat(t.map(Q.camelCase)):(i=Q.camelCase(t),t in a?r=[t,i]:(r=i,r=r in a?[r]:r.match(de)||[])),n=r.length;for(;n--;)delete a[r[n]]}},hasData:function(e){return!Q.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var ve=new u,ye=new u,$e=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,be=/([A-Z])/g;Q.extend({hasData:function(e){return ye.hasData(e)||ve.hasData(e)},data:function(e,t,n){return ye.access(e,t,n)},removeData:function(e,t){ye.remove(e,t)},_data:function(e,t,n){return ve.access(e,t,n)},_removeData:function(e,t){ve.remove(e,t)}}),Q.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=ye.get(o),1===o.nodeType&&!ve.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=Q.camelCase(r.slice(5)),s(o,r,i[r])));ve.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){ye.set(this,e)}):me(this,function(t){var n,r=Q.camelCase(e);if(o&&void 0===t){if(n=ye.get(o,e),void 0!==n)return n;if(n=ye.get(o,r),void 0!==n)return n;if(n=s(o,r,void 0),void 0!==n)return n}else this.each(function(){var n=ye.get(this,r);ye.set(this,r,t),-1!==e.indexOf("-")&&void 0!==n&&ye.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){ye.remove(this,e)})}}),Q.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=ve.get(e,t),n&&(!r||Q.isArray(n)?r=ve.access(e,t,Q.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=Q.queue(e,t),r=n.length,i=n.shift(),o=Q._queueHooks(e,t),a=function(){Q.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 ve.get(e,n)||ve.access(e,n,{empty:Q.Callbacks("once memory").add(function(){ve.remove(e,[t+"queue",n])})})}}),Q.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Q.queue(this[0],e):void 0===t?this:this.each(function(){var n=Q.queue(this,e,t);Q._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Q.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Q.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=Q.Deferred(),o=this,a=this.length,u=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=ve.get(o[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(u));return u(),i.promise(t)}});var we=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,xe=["Top","Right","Bottom","Left"],_e=function(e,t){return e=t||e,"none"===Q.css(e,"display")||!Q.contains(e.ownerDocument,e)},ke=/^(?:checkbox|radio)$/i;!function(){var e=X.createDocumentFragment(),t=e.appendChild(X.createElement("div")),n=X.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),Z.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",Z.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Ce="undefined";Z.focusinBubbles="onfocusin"in e;var Se=/^key/,Te=/^(?:mouse|pointer|contextmenu)|click/,De=/^(?:focusinfocus|focusoutblur)$/,Oe=/^([^.]*)(?:\.(.+)|)$/;Q.event={global:{},add:function(e,t,n,r,i){var o,a,u,s,l,c,f,p,d,h,g,m=ve.get(e);if(m)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=Q.guid++),(s=m.events)||(s=m.events={}),(a=m.handle)||(a=m.handle=function(t){return typeof Q!==Ce&&Q.event.triggered!==t.type?Q.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(de)||[""],l=t.length;l--;)u=Oe.exec(t[l])||[],d=g=u[1],h=(u[2]||"").split(".").sort(),d&&(f=Q.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=Q.event.special[d]||{},c=Q.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Q.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=s[d])||(p=s[d]=[],p.delegateCount=0,f.setup&&f.setup.call(e,r,h,a)!==!1||e.addEventListener&&e.addEventListener(d,a,!1)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),Q.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,u,s,l,c,f,p,d,h,g,m=ve.hasData(e)&&ve.get(e);if(m&&(s=m.events)){for(t=(t||"").match(de)||[""],l=t.length;l--;)if(u=Oe.exec(t[l])||[],d=g=u[1],h=(u[2]||"").split(".").sort(),d){for(f=Q.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,p=s[d]||[],u=u[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||u&&!u.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&f.teardown.call(e,h,m.handle)!==!1||Q.removeEvent(e,d,m.handle),delete s[d])}else for(d in s)Q.event.remove(e,d+t[l],n,r,!0);Q.isEmptyObject(s)&&(delete m.handle,ve.remove(e,"events"))}},trigger:function(t,n,r,i){var o,a,u,s,l,c,f,p=[r||X],d=K.call(t,"type")?t.type:t,h=K.call(t,"namespace")?t.namespace.split("."):[];if(a=u=r=r||X,3!==r.nodeType&&8!==r.nodeType&&!De.test(d+Q.event.triggered)&&(d.indexOf(".")>=0&&(h=d.split("."),d=h.shift(),h.sort()),l=d.indexOf(":")<0&&"on"+d,t=t[Q.expando]?t:new Q.Event(d,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),
  n=null==n?[t]:Q.makeArray(n,[t]),f=Q.event.special[d]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!Q.isWindow(r)){for(s=f.delegateType||d,De.test(s+d)||(a=a.parentNode);a;a=a.parentNode)p.push(a),u=a;u===(r.ownerDocument||X)&&p.push(u.defaultView||u.parentWindow||e)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)t.type=o>1?s:f.bindType||d,c=(ve.get(a,"events")||{})[t.type]&&ve.get(a,"handle"),c&&c.apply(a,n),c=l&&a[l],c&&c.apply&&Q.acceptData(a)&&(t.result=c.apply(a,n),t.result===!1&&t.preventDefault());return t.type=d,i||t.isDefaultPrevented()||f._default&&f._default.apply(p.pop(),n)!==!1||!Q.acceptData(r)||l&&Q.isFunction(r[d])&&!Q.isWindow(r)&&(u=r[l],u&&(r[l]=null),Q.event.triggered=d,r[d](),Q.event.triggered=void 0,u&&(r[l]=u)),t.result}},dispatch:function(e){e=Q.event.fix(e);var t,n,r,i,o,a=[],u=H.call(arguments),s=(ve.get(this,"events")||{})[e.type]||[],l=Q.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(a=Q.event.handlers.call(this,e,s),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(o.namespace))&&(e.handleObj=o,e.data=o.data,r=((Q.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u),void 0!==r&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],u=t.delegateCount,s=e.target;if(u&&s.nodeType&&(!e.button||"click"!==e.type))for(;s!==this;s=s.parentNode||this)if(s.disabled!==!0||"click"!==e.type){for(r=[],n=0;u>n;n++)o=t[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?Q(i,this).index(s)>=0:Q.find(i,this,null,[s]).length),r[i]&&r.push(o);r.length&&a.push({elem:s,handlers:r})}return u<t.length&&a.push({elem:this,handlers:t.slice(u)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||X,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[Q.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Te.test(i)?this.mouseHooks:Se.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new Q.Event(o),t=r.length;t--;)n=r[t],e[n]=o[n];return e.target||(e.target=X),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!==f()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===f()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&Q.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return Q.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=Q.extend(new Q.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?Q.event.trigger(i,null,t):Q.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},Q.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},Q.Event=function(e,t){return this instanceof Q.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?l:c):this.type=e,t&&Q.extend(this,t),this.timeStamp=e&&e.timeStamp||Q.now(),void(this[Q.expando]=!0)):new Q.Event(e,t)},Q.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=l,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=l,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=l,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},Q.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){Q.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!Q.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),Z.focusinBubbles||Q.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){Q.event.simulate(t,e.target,Q.event.fix(e),!0)};Q.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=ve.access(r,t);i||r.addEventListener(e,n,!0),ve.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=ve.access(r,t)-1;i?ve.access(r,t,i):(r.removeEventListener(e,n,!0),ve.remove(r,t))}}}),Q.fn.extend({on:function(e,t,n,r,i){var o,a;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(a in e)this.on(a,t,n,e[a],i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),r===!1)r=c;else if(!r)return this;return 1===i&&(o=r,r=function(e){return Q().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=Q.guid++)),this.each(function(){Q.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,Q(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=c),this.each(function(){Q.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){Q.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?Q.event.trigger(e,t,n,!0):void 0}});var Ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ae=/<([\w:]+)/,Me=/<|&#?\w+;/,Pe=/<(?:script|style|link)/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^$|\/(?:java|ecma)script/i,Ie=/^true\/(.*)/,Ue=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Re={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,"",""]};Re.optgroup=Re.option,Re.tbody=Re.tfoot=Re.colgroup=Re.caption=Re.thead,Re.th=Re.td,Q.extend({clone:function(e,t,n){var r,i,o,a,u=e.cloneNode(!0),s=Q.contains(e.ownerDocument,e);if(!(Z.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Q.isXMLDoc(e)))for(a=v(u),o=v(e),r=0,i=o.length;i>r;r++)y(o[r],a[r]);if(t)if(n)for(o=o||v(e),a=a||v(u),r=0,i=o.length;i>r;r++)m(o[r],a[r]);else m(e,u);return a=v(u,"script"),a.length>0&&g(a,!s&&v(e,"script")),u},buildFragment:function(e,t,n,r){for(var i,o,a,u,s,l,c=t.createDocumentFragment(),f=[],p=0,d=e.length;d>p;p++)if(i=e[p],i||0===i)if("object"===Q.type(i))Q.merge(f,i.nodeType?[i]:i);else if(Me.test(i)){for(o=o||c.appendChild(t.createElement("div")),a=(Ae.exec(i)||["",""])[1].toLowerCase(),u=Re[a]||Re._default,o.innerHTML=u[1]+i.replace(Ee,"<$1></$2>")+u[2],l=u[0];l--;)o=o.lastChild;Q.merge(f,o.childNodes),o=c.firstChild,o.textContent=""}else f.push(t.createTextNode(i));for(c.textContent="",p=0;i=f[p++];)if((!r||-1===Q.inArray(i,r))&&(s=Q.contains(i.ownerDocument,i),o=v(c.appendChild(i),"script"),s&&g(o),n))for(l=0;i=o[l++];)Ne.test(i.type||"")&&n.push(i);return c},cleanData:function(e){for(var t,n,r,i,o=Q.event.special,a=0;void 0!==(n=e[a]);a++){if(Q.acceptData(n)&&(i=n[ve.expando],i&&(t=ve.cache[i]))){if(t.events)for(r in t.events)o[r]?Q.event.remove(n,r):Q.removeEvent(n,r,t.handle);ve.cache[i]&&delete ve.cache[i]}delete ye.cache[n[ye.expando]]}}}),Q.fn.extend({text:function(e){return me(this,function(e){return void 0===e?Q.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=p(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=p(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?Q.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||Q.cleanData(v(n)),n.parentNode&&(t&&Q.contains(n.ownerDocument,n)&&g(v(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Q.cleanData(v(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 Q.clone(this,e,t)})},html:function(e){return me(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Pe.test(e)&&!Re[(Ae.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Ee,"<$1></$2>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(Q.cleanData(v(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,Q.cleanData(v(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=V.apply([],e);var n,r,i,o,a,u,s=0,l=this.length,c=this,f=l-1,p=e[0],g=Q.isFunction(p);if(g||l>1&&"string"==typeof p&&!Z.checkClone&&je.test(p))return this.each(function(n){var r=c.eq(n);g&&(e[0]=p.call(this,n,r.html())),r.domManip(e,t)});if(l&&(n=Q.buildFragment(e,this[0].ownerDocument,!1,this),r=n.firstChild,1===n.childNodes.length&&(n=r),r)){for(i=Q.map(v(n,"script"),d),o=i.length;l>s;s++)a=n,s!==f&&(a=Q.clone(a,!0,!0),o&&Q.merge(i,v(a,"script"))),t.call(this[s],a,s);if(o)for(u=i[i.length-1].ownerDocument,Q.map(i,h),s=0;o>s;s++)a=i[s],Ne.test(a.type||"")&&!ve.access(a,"globalEval")&&Q.contains(u,a)&&(a.src?Q._evalUrl&&Q._evalUrl(a.src):Q.globalEval(a.textContent.replace(Ue,"")))}return this}}),Q.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Q.fn[e]=function(e){for(var n,r=[],i=Q(e),o=i.length-1,a=0;o>=a;a++)n=a===o?this:this.clone(!0),Q(i[a])[t](n),W.apply(r,n.get());return this.pushStack(r)}});var Fe,ze={},qe=/^margin/,Le=new RegExp("^("+we+")(?!px)[a-z%]+$","i"),He=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)};!function(){function t(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",a.innerHTML="",i.appendChild(o);var t=e.getComputedStyle(a,null);n="1%"!==t.top,r="4px"===t.width,i.removeChild(o)}var n,r,i=X.documentElement,o=X.createElement("div"),a=X.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",Z.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(a),e.getComputedStyle&&Q.extend(Z,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return null==r&&t(),r},reliableMarginRight:function(){var t,n=a.appendChild(X.createElement("div"));return n.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",a.style.width="1px",i.appendChild(o),t=!parseFloat(e.getComputedStyle(n,null).marginRight),i.removeChild(o),a.removeChild(n),t}}))}(),Q.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};var Ve=/^(none|table(?!-c[ea]).+)/,We=new RegExp("^("+we+")(.*)$","i"),Be=new RegExp("^([+-])=("+we+")","i"),Ye={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"},Ke=["Webkit","O","Moz","ms"];Q.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=w(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,u=Q.camelCase(t),s=e.style;return t=Q.cssProps[u]||(Q.cssProps[u]=_(s,u)),a=Q.cssHooks[t]||Q.cssHooks[u],void 0===n?a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:s[t]:(o=typeof n,"string"===o&&(i=Be.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(Q.css(e,t)),o="number"),null!=n&&n===n&&("number"!==o||Q.cssNumber[u]||(n+="px"),Z.clearCloneStyle||""!==n||0!==t.indexOf("background")||(s[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(s[t]=n)),void 0)}},css:function(e,t,n,r){var i,o,a,u=Q.camelCase(t);return t=Q.cssProps[u]||(Q.cssProps[u]=_(e.style,u)),a=Q.cssHooks[t]||Q.cssHooks[u],a&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=w(e,t,r)),"normal"===i&&t in Ge&&(i=Ge[t]),""===n||n?(o=parseFloat(i),n===!0||Q.isNumeric(o)?o||0:i):i}}),Q.each(["height","width"],function(e,t){Q.cssHooks[t]={get:function(e,n,r){return n?Ve.test(Q.css(e,"display"))&&0===e.offsetWidth?Q.swap(e,Ye,function(){return S(e,t,r)}):S(e,t,r):void 0},set:function(e,n,r){var i=r&&He(e);return k(e,n,r?C(e,t,r,"border-box"===Q.css(e,"boxSizing",!1,i),i):0)}}}),Q.cssHooks.marginRight=x(Z.reliableMarginRight,function(e,t){return t?Q.swap(e,{display:"inline-block"},w,[e,"marginRight"]):void 0}),Q.each({margin:"",padding:"",border:"Width"},function(e,t){Q.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+xe[r]+t]=o[r]||o[r-2]||o[0];return i}},qe.test(e)||(Q.cssHooks[e+t].set=k)}),Q.fn.extend({css:function(e,t){return me(this,function(e,t,n){var r,i,o={},a=0;if(Q.isArray(t)){for(r=He(e),i=t.length;i>a;a++)o[t[a]]=Q.css(e,t[a],!1,r);return o}return void 0!==n?Q.style(e,t,n):Q.css(e,t)},e,t,arguments.length>1)},show:function(){return T(this,!0)},hide:function(){return T(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){_e(this)?Q(this).show():Q(this).hide()})}}),Q.Tween=D,D.prototype={constructor:D,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||(Q.cssNumber[n]?"":"px")},cur:function(){var e=D.propHooks[this.prop];return e&&e.get?e.get(this):D.propHooks._default.get(this)},run:function(e){var t,n=D.propHooks[this.prop];return this.options.duration?this.pos=t=Q.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=Q.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){Q.fx.step[e.prop]?Q.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[Q.cssProps[e.prop]]||Q.cssHooks[e.prop])?Q.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Q.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},Q.fx=D.prototype.init,Q.fx.step={};var Ze,Xe,Je=/^(?:toggle|show|hide)$/,Qe=new RegExp("^(?:([+-])=|)("+we+")([a-z%]*)$","i"),et=/queueHooks$/,tt=[M],nt={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Qe.exec(t),o=i&&i[3]||(Q.cssNumber[e]?"":"px"),a=(Q.cssNumber[e]||"px"!==o&&+r)&&Qe.exec(Q.css(n.elem,e)),u=1,s=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do u=u||".5",a/=u,Q.style(n.elem,e,a+o);while(u!==(u=n.cur()/r)&&1!==u&&--s)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};Q.Animation=Q.extend(j,{tweener:function(e,t){Q.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;i>r;r++)n=e[r],nt[n]=nt[n]||[],nt[n].unshift(t)},prefilter:function(e,t){t?tt.unshift(e):tt.push(e)}}),Q.speed=function(e,t,n){var r=e&&"object"==typeof e?Q.extend({},e):{complete:n||!n&&t||Q.isFunction(e)&&e,duration:e,easing:n&&t||t&&!Q.isFunction(t)&&t};return r.duration=Q.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in Q.fx.speeds?Q.fx.speeds[r.duration]:Q.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){Q.isFunction(r.old)&&r.old.call(this),r.queue&&Q.dequeue(this,r.queue)},r},Q.fn.extend({fadeTo:function(e,t,n,r){return this.filter(_e).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=Q.isEmptyObject(e),o=Q.speed(t,n,r),a=function(){var t=j(this,Q.extend({},e),o);(i||ve.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,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=Q.timers,a=ve.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&et.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));(t||!n)&&Q.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=ve.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=Q.timers,a=r?r.length:0;for(n.finish=!0,Q.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})}}),Q.each(["toggle","show","hide"],function(e,t){var n=Q.fn[t];Q.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(E(t,!0),e,r,i)}}),Q.each({slideDown:E("show"),slideUp:E("hide"),slideToggle:E("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Q.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),Q.timers=[],Q.fx.tick=function(){var e,t=0,n=Q.timers;for(Ze=Q.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||Q.fx.stop(),Ze=void 0},Q.fx.timer=function(e){Q.timers.push(e),e()?Q.fx.start():Q.timers.pop()},Q.fx.interval=13,Q.fx.start=function(){Xe||(Xe=setInterval(Q.fx.tick,Q.fx.interval))},Q.fx.stop=function(){clearInterval(Xe),Xe=null},Q.fx.speeds={slow:600,fast:200,_default:400},Q.fn.delay=function(e,t){return e=Q.fx?Q.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},function(){var e=X.createElement("input"),t=X.createElement("select"),n=t.appendChild(X.createElement("option"));e.type="checkbox",Z.checkOn=""!==e.value,Z.optSelected=n.selected,t.disabled=!0,Z.optDisabled=!n.disabled,e=X.createElement("input"),e.value="t",e.type="radio",Z.radioValue="t"===e.value}();var rt,it,ot=Q.expr.attrHandle;Q.fn.extend({attr:function(e,t){return me(this,Q.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Q.removeAttr(this,e)})}}),Q.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===Ce?Q.prop(e,t,n):(1===o&&Q.isXMLDoc(e)||(t=t.toLowerCase(),r=Q.attrHooks[t]||(Q.expr.match.bool.test(t)?it:rt)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=Q.find.attr(e,t),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void Q.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(de);if(o&&1===e.nodeType)for(;n=o[i++];)r=Q.propFix[n]||n,Q.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!Z.radioValue&&"radio"===t&&Q.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),it={set:function(e,t,n){return t===!1?Q.removeAttr(e,n):e.setAttribute(n,n),n}},Q.each(Q.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ot[t]||Q.find.attr;ot[t]=function(e,t,r){var i,o;return r||(o=ot[t],ot[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,ot[t]=o),i}});var at=/^(?:input|select|textarea|button)$/i;Q.fn.extend({prop:function(e,t){return me(this,Q.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[Q.propFix[e]||e]})}}),Q.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,o,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return o=1!==a||!Q.isXMLDoc(e),o&&(t=Q.propFix[t]||t,i=Q.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||at.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),Z.optSelected||(Q.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),Q.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Q.propFix[this.toLowerCase()]=this});var ut=/[\t\r\n\f]/g;Q.fn.extend({addClass:function(e){var t,n,r,i,o,a,u="string"==typeof e&&e,s=0,l=this.length;if(Q.isFunction(e))return this.each(function(t){Q(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(de)||[];l>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(ut," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=Q.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,i,o,a,u=0===arguments.length||"string"==typeof e&&e,s=0,l=this.length;if(Q.isFunction(e))return this.each(function(t){Q(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(de)||[];l>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(ut," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=e?Q.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):Q.isFunction(e)?this.each(function(n){Q(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,r=0,i=Q(this),o=e.match(de)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else(n===Ce||"boolean"===n)&&(this.className&&ve.set(this,"__className__",this.className),this.className=this.className||e===!1?"":ve.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(ut," ").indexOf(t)>=0)return!0;return!1}});var st=/\r/g;Q.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=Q.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,Q(this).val()):e,null==i?i="":"number"==typeof i?i+="":Q.isArray(i)&&(i=Q.map(i,function(e){return null==e?"":e+""})),t=Q.valHooks[this.type]||Q.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=Q.valHooks[i.type]||Q.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(st,""):null==n?"":n)}}}),Q.extend({valHooks:{option:{get:function(e){var t=Q.find.attr(e,"value");return null!=t?t:Q.trim(Q.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],u=o?i+1:r.length,s=0>i?u:o?i:0;u>s;s++)if(n=r[s],(n.selected||s===i)&&(Z.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!Q.nodeName(n.parentNode,"optgroup"))){if(t=Q(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=Q.makeArray(t),a=i.length;a--;)r=i[a],(r.selected=Q.inArray(r.value,o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),Q.each(["radio","checkbox"],function(){Q.valHooks[this]={set:function(e,t){return Q.isArray(t)?e.checked=Q.inArray(Q(e).val(),t)>=0:void 0}},Z.checkOn||(Q.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),Q.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){Q.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),Q.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 lt=Q.now(),ct=/\?/;Q.parseJSON=function(e){return JSON.parse(e+"")},Q.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(r){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&Q.error("Invalid XML: "+e),t};var ft=/#.*$/,pt=/([?&])_=[^&]*/,dt=/^(.*?):[ \t]*([^\r\n]*)$/gm,ht=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,gt=/^(?:GET|HEAD)$/,mt=/^\/\//,vt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,yt={},$t={},bt="*/".concat("*"),wt=e.location.href,xt=vt.exec(wt.toLowerCase())||[];Q.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt,type:"GET",isLocal:ht.test(xt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":bt,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":Q.parseJSON,"text xml":Q.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?U(U(e,Q.ajaxSettings),t):U(Q.ajaxSettings,e)},ajaxPrefilter:N(yt),ajaxTransport:N($t),ajax:function(e,t){function n(e,t,n,a){var s,c,v,y,b,x=t;2!==$&&($=2,u&&clearTimeout(u),r=void 0,o=a||"",w.readyState=e>0?4:0,s=e>=200&&300>e||304===e,n&&(y=R(f,w,n)),y=F(f,y,w,s),s?(f.ifModified&&(b=w.getResponseHeader("Last-Modified"),b&&(Q.lastModified[i]=b),b=w.getResponseHeader("etag"),b&&(Q.etag[i]=b)),204===e||"HEAD"===f.type?x="nocontent":304===e?x="notmodified":(x=y.state,c=y.data,v=y.error,s=!v)):(v=x,(e||!x)&&(x="error",0>e&&(e=0))),w.status=e,w.statusText=(t||x)+"",s?h.resolveWith(p,[c,x,w]):h.rejectWith(p,[w,x,v]),w.statusCode(m),m=void 0,l&&d.trigger(s?"ajaxSuccess":"ajaxError",[w,f,s?c:v]),g.fireWith(p,[w,x]),l&&(d.trigger("ajaxComplete",[w,f]),--Q.active||Q.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,u,s,l,c,f=Q.ajaxSetup({},t),p=f.context||f,d=f.context&&(p.nodeType||p.jquery)?Q(p):Q.event,h=Q.Deferred(),g=Q.Callbacks("once memory"),m=f.statusCode||{},v={},y={},$=0,b="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===$){if(!a)for(a={};t=dt.exec(o);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===$?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return $||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return $||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>$)for(t in e)m[t]=[m[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||b;return r&&r.abort(t),n(0,t),this}};if(h.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,f.url=((e||f.url||wt)+"").replace(ft,"").replace(mt,xt[1]+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=Q.trim(f.dataType||"*").toLowerCase().match(de)||[""],null==f.crossDomain&&(s=vt.exec(f.url.toLowerCase()),f.crossDomain=!(!s||s[1]===xt[1]&&s[2]===xt[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(xt[3]||("http:"===xt[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=Q.param(f.data,f.traditional)),I(yt,f,t,w),2===$)return w;l=Q.event&&f.global,l&&0===Q.active++&&Q.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!gt.test(f.type),i=f.url,f.hasContent||(f.data&&(i=f.url+=(ct.test(i)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=pt.test(i)?i.replace(pt,"$1_="+lt++):i+(ct.test(i)?"&":"?")+"_="+lt++)),f.ifModified&&(Q.lastModified[i]&&w.setRequestHeader("If-Modified-Since",Q.lastModified[i]),Q.etag[i]&&w.setRequestHeader("If-None-Match",Q.etag[i])),(f.data&&f.hasContent&&f.contentType!==!1||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+bt+"; q=0.01":""):f.accepts["*"]);for(c in f.headers)w.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(f.beforeSend.call(p,w,f)===!1||2===$))return w.abort();b="abort";for(c in{success:1,error:1,complete:1})w[c](f[c]);if(r=I($t,f,t,w)){w.readyState=1,l&&d.trigger("ajaxSend",[w,f]),f.async&&f.timeout>0&&(u=setTimeout(function(){w.abort("timeout")},f.timeout));try{$=1,r.send(v,n)}catch(x){if(!(2>$))throw x;n(-1,x)}}else n(-1,"No Transport");return w},getJSON:function(e,t,n){return Q.get(e,t,n,"json")},getScript:function(e,t){return Q.get(e,void 0,t,"script")}}),Q.each(["get","post"],function(e,t){Q[t]=function(e,n,r,i){return Q.isFunction(n)&&(i=i||r,r=n,n=void 0),Q.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),Q._evalUrl=function(e){return Q.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},Q.fn.extend({wrapAll:function(e){var t;return Q.isFunction(e)?this.each(function(t){Q(this).wrapAll(e.call(this,t))}):(this[0]&&(t=Q(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 Q.isFunction(e)?this.each(function(t){Q(this).wrapInner(e.call(this,t))}):this.each(function(){var t=Q(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=Q.isFunction(e);return this.each(function(n){Q(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){Q.nodeName(this,"body")||Q(this).replaceWith(this.childNodes)}).end()}}),Q.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},Q.expr.filters.visible=function(e){return!Q.expr.filters.hidden(e)};var _t=/%20/g,kt=/\[\]$/,Ct=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i;Q.param=function(e,t){var n,r=[],i=function(e,t){t=Q.isFunction(t)?t():null==t?"":t,
  r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=Q.ajaxSettings&&Q.ajaxSettings.traditional),Q.isArray(e)||e.jquery&&!Q.isPlainObject(e))Q.each(e,function(){i(this.name,this.value)});else for(n in e)z(n,e[n],t,i);return r.join("&").replace(_t,"+")},Q.fn.extend({serialize:function(){return Q.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Q.prop(this,"elements");return e?Q.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Q(this).is(":disabled")&&Tt.test(this.nodeName)&&!St.test(e)&&(this.checked||!ke.test(e))}).map(function(e,t){var n=Q(this).val();return null==n?null:Q.isArray(n)?Q.map(n,function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}}):{name:t.name,value:n.replace(Ct,"\r\n")}}).get()}}),Q.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var Dt=0,Ot={},Et={0:200,1223:204},At=Q.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Ot)Ot[e]()}),Z.cors=!!At&&"withCredentials"in At,Z.ajax=At=!!At,Q.ajaxTransport(function(e){var t;return Z.cors||At&&!e.crossDomain?{send:function(n,r){var i,o=e.xhr(),a=++Dt;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)o.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(delete Ot[a],t=o.onload=o.onerror=null,"abort"===e?o.abort():"error"===e?r(o.status,o.statusText):r(Et[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=t(),o.onerror=t("error"),t=Ot[a]=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(u){if(t)throw u}},abort:function(){t&&t()}}:void 0}),Q.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return Q.globalEval(e),e}}}),Q.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Q.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=Q("<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)}),X.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Mt=[],Pt=/(=)\?(?=&|$)|\?\?/;Q.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mt.pop()||Q.expando+"_"+lt++;return this[e]=!0,e}}),Q.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,u=t.jsonp!==!1&&(Pt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Pt.test(t.data)&&"data");return u||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=Q.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(Pt,"$1"+i):t.jsonp!==!1&&(t.url+=(ct.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||Q.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Mt.push(i)),a&&Q.isFunction(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),Q.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||X;var r=ae.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=Q.buildFragment([e],t,i),i&&i.length&&Q(i).remove(),Q.merge([],r.childNodes))};var jt=Q.fn.load;Q.fn.load=function(e,t,n){if("string"!=typeof e&&jt)return jt.apply(this,arguments);var r,i,o,a=this,u=e.indexOf(" ");return u>=0&&(r=Q.trim(e.slice(u)),e=e.slice(0,u)),Q.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&Q.ajax({url:e,type:i,dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?Q("<div>").append(Q.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,o||[e.responseText,t,e])}),this},Q.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Q.fn[t]=function(e){return this.on(t,e)}}),Q.expr.filters.animated=function(e){return Q.grep(Q.timers,function(t){return e===t.elem}).length};var Nt=e.document.documentElement;Q.offset={setOffset:function(e,t,n){var r,i,o,a,u,s,l,c=Q.css(e,"position"),f=Q(e),p={};"static"===c&&(e.style.position="relative"),u=f.offset(),o=Q.css(e,"top"),s=Q.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(o+s).indexOf("auto")>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(s)||0),Q.isFunction(t)&&(t=t.call(e,n,u)),null!=t.top&&(p.top=t.top-u.top+a),null!=t.left&&(p.left=t.left-u.left+i),"using"in t?t.using.call(e,p):f.css(p)}},Q.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){Q.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return t=o.documentElement,Q.contains(t,r)?(typeof r.getBoundingClientRect!==Ce&&(i=r.getBoundingClientRect()),n=q(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===Q.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),Q.nodeName(e[0],"html")||(r=e.offset()),r.top+=Q.css(e[0],"borderTopWidth",!0),r.left+=Q.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-Q.css(n,"marginTop",!0),left:t.left-r.left-Q.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Nt;e&&!Q.nodeName(e,"html")&&"static"===Q.css(e,"position");)e=e.offsetParent;return e||Nt})}}),Q.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var r="pageYOffset"===n;Q.fn[t]=function(i){return me(this,function(t,i,o){var a=q(t);return void 0===o?a?a[n]:t[i]:void(a?a.scrollTo(r?e.pageXOffset:o,r?o:e.pageYOffset):t[i]=o)},t,i,arguments.length,null)}}),Q.each(["top","left"],function(e,t){Q.cssHooks[t]=x(Z.pixelPosition,function(e,n){return n?(n=w(e,t),Le.test(n)?Q(e).position()[t]+"px":n):void 0})}),Q.each({Height:"height",Width:"width"},function(e,t){Q.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){Q.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return me(this,function(t,n,r){var i;return Q.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?Q.css(t,n,a):Q.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),Q.fn.size=function(){return this.length},Q.fn.andSelf=Q.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return Q});var It=e.jQuery,Ut=e.$;return Q.noConflict=function(t){return e.$===Q&&(e.$=Ut),t&&e.jQuery===Q&&(e.jQuery=It),Q},typeof t===Ce&&(e.jQuery=e.$=Q),Q}),/**
   * @license AngularJS v1.4.14
   * (c) 2010-2015 Google, Inc. http://angularjs.org
   * License: MIT
   */
  function(e,t,n){"use strict";function r(e,t){return t=t||Error,function(){var n,r,i=2,o=arguments,a=o[0],u="["+(e?e+":":"")+a+"] ",s=o[1];for(u+=s.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1),n=t+i;return n<o.length?$e(o[n]):e}),u+="\nhttp://errors.angularjs.org/1.4.14/"+(e?e+"/":"")+a,r=i,n="?";r<o.length;r++,n="&")u+=n+"p"+(r-i)+"="+encodeURIComponent($e(o[r]));return new t(u)}}function i(e){if(null==e||D(e))return!1;if(Vr(e)||_(e)||Mr&&e instanceof Mr)return!0;var t="length"in Object(e)&&e.length;return k(t)&&(t>=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function o(e,t,n){var r,a;if(e)if(S(e))for(r in e)"prototype"==r||"length"==r||"name"==r||e.hasOwnProperty&&!e.hasOwnProperty(r)||t.call(n,e[r],r,e);else if(Vr(e)||i(e)){var u="object"!=typeof e;for(r=0,a=e.length;a>r;r++)(u||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==o)e.forEach(t,n,e);else if(x(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)Tr.call(e,r)&&t.call(n,e[r],r,e);return e}function a(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function u(e){return function(t,n){e(n,t)}}function s(){return++Lr}function l(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function c(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;o>i;++i){var a=t[i];if(w(a)||S(a))for(var u=Object.keys(a),s=0,f=u.length;f>s;s++){var p=u[s],d=a[p];n&&w(d)?C(d)?e[p]=new Date(d.valueOf()):T(d)?e[p]=new RegExp(d):d.nodeName?e[p]=d.cloneNode(!0):I(d)?e[p]=d.clone():(w(e[p])||(e[p]=Vr(d)?[]:{}),c(e[p],[d],!0)):e[p]=d}}return l(e,r),e}function f(e){return c(e,Nr.call(arguments,1),!1)}function p(e){return c(e,Nr.call(arguments,1),!0)}function d(e){return parseInt(e,10)}function h(e,t){return f(Object.create(e),t)}function g(){}function m(e){return e}function v(e){return function(){return e}}function y(e){return S(e.toString)&&e.toString!==Rr}function $(e){return"undefined"==typeof e}function b(e){return"undefined"!=typeof e}function w(e){return null!==e&&"object"==typeof e}function x(e){return null!==e&&"object"==typeof e&&!Fr(e)}function _(e){return"string"==typeof e}function k(e){return"number"==typeof e}function C(e){return"[object Date]"===Rr.call(e)}function S(e){return"function"==typeof e}function T(e){return"[object RegExp]"===Rr.call(e)}function D(e){return e&&e.window===e}function O(e){return e&&e.$evalAsync&&e.$watch}function E(e){return"[object File]"===Rr.call(e)}function A(e){return"[object FormData]"===Rr.call(e)}function M(e){return"[object Blob]"===Rr.call(e)}function P(e){return"boolean"==typeof e}function j(e){return e&&S(e.then)}function N(e){return e&&k(e.length)&&Wr.test(Rr.call(e))}function I(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function U(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}function R(e){return Sr(e.nodeName||e[0]&&e[0].nodeName)}function F(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function z(e,t){function n(e,t){var n,i=t.$$hashKey;if(Vr(e))for(var o=0,a=e.length;a>o;o++)t.push(r(e[o]));else if(x(e))for(n in e)t[n]=r(e[n]);else if(e&&"function"==typeof e.hasOwnProperty)for(n in e)e.hasOwnProperty(n)&&(t[n]=r(e[n]));else for(n in e)Tr.call(e,n)&&(t[n]=r(e[n]));return l(t,i),t}function r(e){if(!w(e))return e;var t=i.indexOf(e);if(-1!==t)return a[t];if(D(e)||O(e))throw zr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r,o=!1;return Vr(e)?(r=[],o=!0):N(e)?r=new e.constructor(e):C(e)?r=new Date(e.getTime()):T(e)?(r=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]),r.lastIndex=e.lastIndex):M(e)?r=new e.constructor([e],{type:e.type}):S(e.cloneNode)?r=e.cloneNode(!0):(r=Object.create(Fr(e)),o=!0),i.push(e),a.push(r),o?n(e,r):r}var i=[],a=[];if(t){if(N(t))throw zr("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw zr("cpi","Can't copy! Source and destination are identical.");return Vr(t)?t.length=0:o(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),i.push(e),a.push(t),n(e,t)}return r(e)}function q(e,t){if(Vr(e)){t=t||[];for(var n=0,r=e.length;r>n;n++)t[n]=e[n]}else if(w(e)){t=t||{};for(var i in e)("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(t[i]=e[i])}return t||e}function L(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var n,r,i,o=typeof e,a=typeof t;if(o==a&&"object"==o){if(!Vr(e)){if(C(e))return C(t)?L(e.getTime(),t.getTime()):!1;if(T(e))return T(t)?e.toString()==t.toString():!1;if(O(e)||O(t)||D(e)||D(t)||Vr(t)||C(t)||T(t))return!1;i=me();for(r in e)if("$"!==r.charAt(0)&&!S(e[r])){if(!L(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&b(t[r])&&!S(t[r]))return!1;return!0}if(!Vr(t))return!1;if((n=e.length)==t.length){for(r=0;n>r;r++)if(!L(e[r],t[r]))return!1;return!0}}return!1}function H(e,t,n){return e.concat(Nr.call(t,n))}function V(e,t){return Nr.call(e,t||0)}function W(e,t){var n=arguments.length>2?V(arguments,2):[];return!S(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,H(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function B(e,r){var i=r;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?i=n:D(r)?i="$WINDOW":r&&t===r?i="$DOCUMENT":O(r)&&(i="$SCOPE"),i}function Y(e,t){return $(e)?n:(k(t)||(t=t?2:null),JSON.stringify(e,B,t))}function G(e){return _(e)?JSON.parse(e):e}function K(e,t){e=e.replace(Zr,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Z(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function X(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset(),i=K(t,r);return Z(e,n*(i-r))}function J(e){e=Mr(e).clone();try{e.empty()}catch(t){}var n=Mr("<div>").append(e).html();try{return e[0].nodeType===ni?Sr(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+Sr(t)})}catch(t){return Sr(n)}}function Q(e){try{return decodeURIComponent(e)}catch(t){}}function ee(e){var t={};return o((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),-1!==n&&(r=e.substring(0,n),i=e.substring(n+1)),r=Q(r),b(r)&&(i=b(i)?Q(i):!0,Tr.call(t,r)?Vr(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function te(e){var t=[];return o(e,function(e,n){Vr(e)?o(e,function(e){t.push(re(n,!0)+(e===!0?"":"="+re(e,!0)))}):t.push(re(n,!0)+(e===!0?"":"="+re(e,!0)))}),t.length?t.join("&"):""}function ne(e){return re(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function re(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function ie(e,t){var n,r,i=Xr.length;for(r=0;i>r;++r)if(n=Xr[r]+t,_(n=e.getAttribute(n)))return n;return null}function oe(e,t){var n,r,i={};o(Xr,function(t){var i=t+"app";!n&&e.hasAttribute&&e.hasAttribute(i)&&(n=e,r=e.getAttribute(i))}),o(Xr,function(t){var i,o=t+"app";!n&&(i=e.querySelector("["+o.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(o))}),n&&(i.strictDi=null!==ie(n,"strict-di"),t(n,r?[r]:[],i))}function ae(n,r,i){w(i)||(i={});var a={strictDi:!1};i=f(a,i);var u=function(){if(n=Mr(n),n.injector()){var e=n[0]===t?"document":J(n);throw zr("btstrpd","App already bootstrapped with this element '{0}'",e.replace(/</,"&lt;").replace(/>/,"&gt;"))}r=r||[],r.unshift(["$provide",function(e){e.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),r.unshift("ng");var o=tt(r,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},s=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;return e&&s.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(s,"")),e&&!l.test(e.name)?u():(e.name=e.name.replace(l,""),qr.resumeBootstrap=function(e){return o(e,function(e){r.push(e)}),u()},void(S(qr.resumeDeferredBootstrap)&&qr.resumeDeferredBootstrap()))}function ue(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function se(e){var t=qr.element(e).injector();if(!t)throw zr("test","no injector found for element argument to getTestability");return t.get("$$testability")}function le(e,t){return t=t||"_",e.replace(Jr,function(e,n){return(n?t:"")+e.toLowerCase()})}function ce(){var t;if(!Qr){var r=Kr();Pr=$(r)?e.jQuery:r?e[r]:n,Pr&&Pr.fn.on?(Mr=Pr,f(Pr.fn,{scope:wi.scope,isolateScope:wi.isolateScope,controller:wi.controller,injector:wi.injector,inheritedData:wi.inheritedData}),t=Pr.cleanData,Pr.cleanData=function(e){var n;if(Hr)Hr=!1;else for(var r,i=0;null!=(r=e[i]);i++)n=Pr._data(r,"events"),n&&n.$destroy&&Pr(r).triggerHandler("$destroy");t(e)}):Mr=Oe,qr.element=Mr,Qr=!0}}function fe(e,t,n){if(!e)throw zr("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function pe(e,t,n){return n&&Vr(e)&&(e=e[e.length-1]),fe(S(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function de(e,t){if("hasOwnProperty"===e)throw zr("badname","hasOwnProperty is not a valid {0} name",t)}function he(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,u=0;a>u;u++)r=i[u],e&&(e=(o=e)[r]);return!n&&S(e)?W(o,e):e}function ge(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=Mr(Nr.call(e,0,i))),t.push(n));return t||e}function me(){return Object.create(null)}function ve(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=r("$injector"),i=r("ng"),o=t(e,"angular",Object);return o.$$minErr=o.$$minErr||r,t(o,"module",function(){var e={};return function(r,o,a){var u=function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)};return u(r,"module"),o&&e.hasOwnProperty(r)&&(e[r]=null),t(e,r,function(){function e(e,t,n,r){return r||(r=i),function(){return r[n||"push"]([e,t,arguments]),c}}function t(e,t){return function(n,o){return o&&S(o)&&(o.$$moduleName=r),i.push([e,t,arguments]),c}}if(!o)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);var i=[],u=[],s=[],l=e("$injector","invoke","push",u),c={_invokeQueue:i,_configBlocks:u,_runBlocks:s,requires:o,name:r,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:t("$provide","decorator"),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),config:l,run:function(e){return s.push(e),this}};return a&&l(a),c})}})}function ye(e){var t=[];return JSON.stringify(e,function(e,n){if(n=B(e,n),w(n)){if(t.indexOf(n)>=0)return"...";t.push(n)}return n})}function $e(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):$(e)?"undefined":"string"!=typeof e?ye(e):e}function be(t){f(t,{bootstrap:ae,copy:z,extend:f,merge:p,equals:L,element:Mr,forEach:o,injector:tt,noop:g,bind:W,toJson:Y,fromJson:G,identity:m,isUndefined:$,isDefined:b,isString:_,isFunction:S,isObject:w,isNumber:k,isElement:I,isArray:Vr,version:ai,isDate:C,lowercase:Sr,uppercase:Dr,callbacks:{counter:0},getTestability:se,$$minErr:r,$$csp:Gr,reloadWithDebugInfo:ue}),(jr=ve(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:bn}),e.provider("$compile",ft).directive({a:So,input:Wo,textarea:Wo,form:Ao,script:Ua,select:za,style:La,option:qa,ngBind:Go,ngBindHtml:Zo,ngBindTemplate:Ko,ngClass:Jo,ngClassEven:ea,ngClassOdd:Qo,ngCloak:ta,ngController:na,ngForm:Mo,ngHide:Aa,ngIf:oa,ngInclude:aa,ngInit:sa,ngNonBindable:xa,ngPluralize:Sa,ngRepeat:Ta,ngShow:Ea,ngStyle:Ma,ngSwitch:Pa,ngSwitchWhen:ja,ngSwitchDefault:Na,ngOptions:Ca,ngTransclude:Ia,ngModel:$a,ngList:la,ngChange:Xo,pattern:Va,ngPattern:Va,required:Ha,ngRequired:Ha,minlength:Ba,ngMinlength:Ba,maxlength:Wa,ngMaxlength:Wa,ngValue:Yo,ngModelOptions:wa}).directive({ngInclude:ua}).directive(To).directive(ra),e.provider({$anchorScroll:nt,$animate:Ii,$animateCss:Fi,$$animateJs:ji,$$animateQueue:Ni,$$AnimateRunner:Ri,$$animateAsyncRun:Ui,$browser:st,$cacheFactory:lt,$controller:mt,$document:vt,$exceptionHandler:yt,$filter:jn,$$forceReflow:Vi,$interpolate:Mt,$interval:Pt,$http:Dt,$httpParamSerializer:bt,$httpParamSerializerJQLike:wt,$httpBackend:Et,$xhrFactory:Ot,$location:Yt,$log:Gt,$parse:hn,$rootScope:$n,$q:gn,$$q:mn,$sce:kn,$sceDelegate:_n,$sniffer:Cn,$templateCache:ct,$templateRequest:Sn,$$testability:Tn,$timeout:Dn,$window:An,$$rAF:yn,$$jqLite:Ze,$$HashMap:Ci,$$cookieReader:Pn})}])}function we(){return++si}function xe(e){return e.replace(fi,function(e,t,n,r){return r?n.toUpperCase():n}).replace(pi,"Moz$1")}function _e(e){return!mi.test(e)}function ke(e){var t=e.nodeType;return t===ei||!t||t===ii}function Ce(e){for(var t in ui[e.ng339])return!0;return!1}function Se(e,t){var n,r,i,a,u=t.createDocumentFragment(),s=[];if(_e(e))s.push(t.createTextNode(e));else{for(n=n||u.appendChild(t.createElement("div")),r=(vi.exec(e)||["",""])[1].toLowerCase(),i=$i[r]||$i._default,n.innerHTML=i[1]+e.replace(yi,"<$1></$2>")+i[2],a=i[0];a--;)n=n.lastChild;s=H(s,n.childNodes),n=u.firstChild,n.textContent=""}return u.textContent="",u.innerHTML="",o(s,function(e){u.appendChild(e)}),u}function Te(e,n){n=n||t;var r;return(r=gi.exec(e))?[n.createElement(r[1])]:(r=Se(e,n))?r.childNodes:[]}function De(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function Oe(e){if(e instanceof Oe)return e;var t;if(_(e)&&(e=Br(e),t=!0),!(this instanceof Oe)){if(t&&"<"!=e.charAt(0))throw hi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Oe(e)}t?Fe(this,Te(e)):Fe(this,e)}function Ee(e){return e.cloneNode(!0)}function Ae(e,t){if(t||Pe(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;i>r;r++)Pe(n[r])}function Me(e,t,n,r){if(b(r))throw hi("offargs","jqLite#off() does not support the `selector` argument");var i=je(e),a=i&&i.events,u=i&&i.handle;if(u)if(t){var s=function(t){var r=a[t];b(n)&&F(r||[],n),b(n)&&r&&r.length>0||(ci(e,t,u),delete a[t])};o(t.split(" "),function(e){s(e),di[e]&&s(di[e])})}else for(t in a)"$destroy"!==t&&ci(e,t,u),delete a[t]}function Pe(e,t){var r=e.ng339,i=r&&ui[r];if(i){if(t)return void delete i.data[t];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),Me(e)),delete ui[r],e.ng339=n}}function je(e,t){var r=e.ng339,i=r&&ui[r];return t&&!i&&(e.ng339=r=we(),i=ui[r]={events:{},data:{},handle:n}),i}function Ne(e,t,n){if(ke(e)){var r=b(n),i=!r&&t&&!w(t),o=!t,a=je(e,!i),u=a&&a.data;if(r)u[t]=n;else{if(o)return u;if(i)return u&&u[t];f(u,t)}}}function Ie(e,t){return e.getAttribute?(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function Ue(e,t){t&&e.setAttribute&&o(t.split(" "),function(t){e.setAttribute("class",Br((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Br(t)+" "," ")))})}function Re(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(t.split(" "),function(e){e=Br(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",Br(n))}}function Fe(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;n>r;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function ze(e,t){return qe(e,"$"+(t||"ngController")+"Controller")}function qe(e,t,n){e.nodeType==ii&&(e=e.documentElement);for(var r=Vr(t)?t:[t];e;){for(var i=0,o=r.length;o>i;i++)if(b(n=Mr.data(e,r[i])))return n;e=e.parentNode||e.nodeType===oi&&e.host}}function Le(e){for(Ae(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function He(e,t){t||Ae(e);var n=e.parentNode;n&&n.removeChild(e)}function Ve(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):Mr(n).on("load",t)}function We(e,t){var n=xi[t.toLowerCase()];return n&&_i[R(e)]&&n}function Be(e){return ki[e]}function Ye(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if($(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0};var u=i.specialHandlerWrapper||Ge;o>1&&(i=q(i));for(var s=0;o>s;s++)n.isImmediatePropagationStopped()||u(e,n,i[s])}};return n.elem=e,n}function Ge(e,t,n){n.call(e,t)}function Ke(e,t,n){var r=t.relatedTarget;(!r||r!==e&&!bi.call(e,r))&&n.call(e,t)}function Ze(){this.$get=function(){return f(Oe,{hasClass:function(e,t){return e.attr&&(e=e[0]),Ie(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Re(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Ue(e,t)}})}}function Xe(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"==r||"object"==r&&null!==e?e.$$hashKey=r+":"+(t||s)():r+":"+e}function Je(e,t){if(t){var n=0;this.nextUid=function(){return++n}}o(e,this.put,this)}function Qe(e){var t=e.toString().replace(Oi,""),n=t.match(Si);return n?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function et(e,t,n){var r,i,a,u;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw _(n)&&n||(n=e.name||Qe(e)),Ei("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=e.toString().replace(Oi,""),a=i.match(Si),o(a[1].split(Ti),function(e){e.replace(Di,function(e,t,n){r.push(n)})})}e.$inject=r}}else Vr(e)?(u=e.length-1,pe(e[u],"fn"),r=e.slice(0,u)):pe(e,"fn",!0);return r}function tt(e,t){function r(e){return function(t,n){return w(t)?void o(t,u(e)):e(t,n)}}function i(e,t){if(de(e,"service"),(S(t)||Vr(t))&&(t=k.instantiate(t)),!t.$get)throw Ei("pget","Provider '{0}' must define $get factory method.",e);return x[e+m]=t}function a(e,t){return function(){var n=T.invoke(t,this);if($(n))throw Ei("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function s(e,t,n){return i(e,{$get:n!==!1?a(e,t):t})}function l(e,t){return s(e,["$injector",function(e){return e.instantiate(t)}])}function c(e,t){return s(e,v(t),!1)}function f(e,t){de(e,"constant"),x[e]=t,C[e]=t}function p(e,t){var n=k.get(e+m),r=n.$get;n.$get=function(){var e=T.invoke(r,n);return T.invoke(t,null,{$delegate:e})}}function d(e){fe($(e)||Vr(e),"modulesToLoad","not an array");var t,n=[];return o(e,function(e){function r(e){var t,n;for(t=0,n=e.length;n>t;t++){var r=e[t],i=k.get(r[0]);i[r[1]].apply(i,r[2])}}if(!b.get(e)){b.put(e,!0);try{_(e)?(t=jr(e),n=n.concat(d(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):S(e)?n.push(k.invoke(e)):Vr(e)?n.push(k.invoke(e)):pe(e,"module")}catch(i){throw Vr(e)&&(e=e[e.length-1]),i.message&&i.stack&&-1==i.stack.indexOf(i.message)&&(i=i.message+"\n"+i.stack),Ei("modulerr","Failed to instantiate module {0} due to:\n{1}",e,i.stack||i.message||i)}}}),n}function h(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===g)throw Ei("cdep","Circular dependency found: {0}",t+" <- "+y.join(" <- "));return e[t]}try{return y.unshift(t),e[t]=g,e[t]=n(t,r)}catch(i){throw e[t]===g&&delete e[t],i}finally{y.shift()}}function i(e,n,i,o){"string"==typeof i&&(o=i,i=null);var a,u,s,l=[],c=tt.$$annotate(e,t,o);for(u=0,a=c.length;a>u;u++){if(s=c[u],"string"!=typeof s)throw Ei("itkn","Incorrect injection token! Expected service name as string, got {0}",s);l.push(i&&i.hasOwnProperty(s)?i[s]:r(s,o))}return Vr(e)&&(e=e[a]),e.apply(n,l)}function o(e,t,n){var r=Object.create((Vr(e)?e[e.length-1]:e).prototype||null),o=i(e,r,t,n);return w(o)||S(o)?o:r}return{invoke:i,instantiate:o,get:r,annotate:tt.$$annotate,has:function(t){return x.hasOwnProperty(t+m)||e.hasOwnProperty(t)}}}t=t===!0;var g={},m="Provider",y=[],b=new Je([],!0),x={$provide:{provider:r(i),factory:r(s),service:r(l),value:r(c),constant:r(f),decorator:p}},k=x.$injector=h(x,function(e,t){throw qr.isString(t)&&y.push(t),Ei("unpr","Unknown provider: {0}",y.join(" <- "))}),C={},T=C.$injector=h(C,function(e,t){var r=k.get(e+m,t);return T.invoke(r.$get,r,n,e)});return o(d(e),function(e){e&&T.invoke(e)}),T}function nt(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return Array.prototype.some.call(e,function(e){return"a"===R(e)?(t=e,!0):void 0}),t}function o(){var e=u.yOffset;if(S(e))e=e();else if(I(e)){var n=e[0],r=t.getComputedStyle(n);e="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else k(e)||(e=0);return e}function a(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function u(e){e=_(e)?e:n.hash();var t;e?(t=s.getElementById(e))?a(t):(t=i(s.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var s=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){(e!==t||""!==e)&&Ve(function(){r.$evalAsync(u)})}),u}]}function rt(e,t){return e||t?e?t?(Vr(e)&&(e=e.join(" ")),Vr(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function it(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===Mi)return n}}function ot(e){_(e)&&(e=e.split(" "));var t=me();return o(e,function(e){e.length&&(t[e]=!0)}),t}function at(e){return w(e)?e:{}}function ut(e,t,n,r){function i(e){try{e.apply(null,V(arguments,1))}finally{if(y--,0===y)for(;b.length;)try{b.pop()()}catch(t){n.error(t)}}}function a(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}function u(){C=null,l(),c()}function s(){try{return d.state}catch(e){}}function l(){w=s(),w=$(w)?null:w,L(w,D)&&(w=D),D=w}function c(){(_!==f.url()||x!==w)&&(_=f.url(),x=w,o(S,function(e){e(f.url(),w)}))}var f=this,p=(t[0],e.location),d=e.history,h=e.setTimeout,m=e.clearTimeout,v={};f.isMock=!1;var y=0,b=[];f.$$completeOutstandingRequest=i,f.$$incOutstandingRequestCount=function(){y++},f.notifyWhenNoOutstandingRequests=function(e){0===y?e():b.push(e)};var w,x,_=p.href,k=t.find("base"),C=null;l(),x=w,f.url=function(t,n,i){if($(i)&&(i=null),p!==e.location&&(p=e.location),d!==e.history&&(d=e.history),t){var o=x===i;if(_===t&&(!r.history||o))return f;var u=_&&Rt(_)===Rt(t);return _=t,x=i,!r.history||u&&o?((!u||C)&&(C=t),n?p.replace(t):u?p.hash=a(t):p.href=t,p.href!==t&&(C=t)):(d[n?"replaceState":"pushState"](i,"",t),l(),x=w),f}return C||p.href.replace(/%27/g,"'")},f.state=function(){return w};var S=[],T=!1,D=null;f.onUrlChange=function(t){return T||(r.history&&Mr(e).on("popstate",u),Mr(e).on("hashchange",u),T=!0),S.push(t),t},f.$$applicationDestroyed=function(){Mr(e).off("hashchange popstate",u)},f.$$checkUrlChange=c,f.baseHref=function(){var e=k.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""},f.defer=function(e,t){var n;return y++,n=h(function(){delete v[n],i(e)},t||0),v[n]=!0,n},f.defer.cancel=function(e){return v[e]?(delete v[e],m(e),i(g),!0):!1}}function st(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new ut(e,r,t,n)}]}function lt(){this.$get=function(){function e(e,n){function i(e){e!=p&&(d?d==e&&(d=e.n):d=e,o(e.n,e.p),o(e,p),p=e,p.n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,u=f({},n,{id:e}),s=me(),l=n&&n.capacity||Number.MAX_VALUE,c=me(),p=null,d=null;return t[e]={put:function(e,t){if(!$(t)){if(l<Number.MAX_VALUE){var n=c[e]||(c[e]={key:e});i(n)}return e in s||a++,s[e]=t,a>l&&this.remove(d.key),t}},get:function(e){if(l<Number.MAX_VALUE){var t=c[e];if(!t)return;i(t)}return s[e]},remove:function(e){if(l<Number.MAX_VALUE){var t=c[e];if(!t)return;t==p&&(p=t.p),t==d&&(d=t.n),o(t.n,t.p),delete c[e]}e in s&&(delete s[e],a--)},removeAll:function(){s=me(),a=0,c=me(),p=d=null},destroy:function(){s=null,u=null,c=null,delete t[e]},info:function(){return f({},u,{size:a})}}}var t={};return e.info=function(){var e={};return o(t,function(t,n){e[n]=t.info()}),e},e.get=function(e){return t[e]},e}}function ct(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function ft(e,r){function i(e,t,n){var r=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,i=me();return o(e,function(e,o){if(e in C)return void(i[o]=C[e]);var a=e.match(r);if(!a)throw zi("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,o,e,n?"controller bindings definition":"isolate scope definition");i[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o},a[4]&&(C[e]=i[o])}),i}function a(e,t){var n={isolateScope:null,bindToController:null};if(w(e.scope)&&(e.bindToController===!0?(n.bindToController=i(e.scope,t,!0),n.isolateScope={}):n.isolateScope=i(e.scope,t,!1)),w(e.bindToController)&&(n.bindToController=i(e.bindToController,t,!0)),w(n.bindToController)){var r=e.controller,o=e.controllerAs;if(!r)throw zi("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);if(!gt(r,o))throw zi("noident","Cannot bind to controller without identifier for directive '{0}'.",t)}return n}function s(e){var t=e.charAt(0);if(!t||t!==Sr(t))throw zi("baddir","Directive name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw zi("baddir","Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}var l={},c="Directive",p=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,d=/(([\w\-]+)(?:\:([^;]+))?;?)/,y=U("ngSrc,ngSrcset,src,srcset"),x=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,k=/^(on[a-z]+|formaction)$/,C=me();this.directive=function D(t,n){return de(t,"directive"),_(t)?(s(t),fe(n,"directiveFactory"),l.hasOwnProperty(t)||(l[t]=[],e.factory(t+c,["$injector","$exceptionHandler",function(e,n){var r=[];return o(l[t],function(i,o){try{var a=e.invoke(i);S(a)?a={compile:v(a)}:!a.compile&&a.link&&(a.compile=v(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||t,a.require=a.require||a.controller&&a.name,a.restrict=a.restrict||"EA",a.$$moduleName=i.$$moduleName,r.push(a)}catch(u){n(u)}}),r}])),l[t].push(n)):o(t,u(D)),this},this.aHrefSanitizationWhitelist=function(e){return b(e)?(r.aHrefSanitizationWhitelist(e),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return b(e)?(r.imgSrcSanitizationWhitelist(e),this):r.imgSrcSanitizationWhitelist()};var T=!0;this.debugInfoEnabled=function(e){return b(e)?(T=e,this):T},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(e,r,i,u,s,v,C,D,E,A){function M(e,t){try{e.addClass(t)}catch(n){}}function j(e,n,r,i,o){e instanceof Mr||(e=Mr(e));for(var a=/\S+/,u=0,s=e.length;s>u;u++){var l=e[u];l.nodeType===ni&&l.nodeValue.match(a)&&De(l,e[u]=t.createElement("span"))}var c=I(e,n,e,r,i,o);j.$$addScopeClass(e);var f=null;return function(t,n,r){fe(t,"scope"),o&&o.needsNewScope&&(t=t.$parent.$new()),r=r||{};var i=r.parentBoundTranscludeFn,a=r.transcludeControllers,u=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),f||(f=N(u));var s;if(s="html"!==f?Mr(te(f,Mr("<div>").append(e).html())):n?wi.clone.call(e):e,a)for(var l in a)s.data("$"+l+"Controller",a[l].instance);return j.$$addScopeInfo(s,t),n&&n(s,t),c&&c(t,s,s,i),s}}function N(e){var t=e&&e[0];return t&&"foreignobject"!==R(t)&&t.toString().match(/SVG/)?"svg":"html"}function I(e,t,r,i,o,a){function u(e,r,i,o){var a,u,s,l,c,f,p,d,m;if(h){var v=r.length;for(m=new Array(v),c=0;c<g.length;c+=3)p=g[c],m[p]=r[p]}else m=r;for(c=0,f=g.length;f>c;)s=m[g[c++]],a=g[c++],u=g[c++],a?(a.scope?(l=e.$new(),j.$$addScopeInfo(Mr(s),l)):l=e,d=a.transcludeOnThisElement?U(e,a.transclude,o):!a.templateOnThisElement&&o?o:!o&&t?U(e,t):null,a(u,l,s,i,d)):u&&u(e,s.childNodes,n,o)}for(var s,l,c,f,p,d,h,g=[],m=0;m<e.length;m++)s=new se,l=z(e[m],[],s,0===m?i:n,o),c=l.length?W(l,e[m],s,t,r,null,[],[],a):null,c&&c.scope&&j.$$addScopeClass(s.$$element),p=c&&c.terminal||!(f=e[m].childNodes)||!f.length?null:I(f,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:t),(c||p)&&(g.push(m,c,p),d=!0,h=h||c),a=null;return d?u:null}function U(e,t,n){var r=function(r,i,o,a,u){return r||(r=e.$new(!1,u),r.$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})};return r}function z(e,t,n,r,i){var o,a,u,s=e.nodeType,l=n.$attr;switch(s){case ei:a=R(e),Y(t,pt(a),"E",r,i);for(var c,f,h,g,m,v,y=e.attributes,$=0,b=y&&y.length;b>$;$++){var x=!1,k=!1;c=y[$],f=c.name,m=Br(c.value),g=pt(f),(v=he.test(g))&&(f=f.replace(qi,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var C=g.match(ge);C&&G(C[1])&&(x=f,k=f.substr(0,f.length-5)+"end",f=f.substr(0,f.length-6)),h=pt(f.toLowerCase()),l[h]=f,(v||!n.hasOwnProperty(h))&&(n[h]=m,We(e,h)&&(n[h]=!0)),re(e,t,m,h,v),Y(t,h,"A",r,i,x,k)}if("input"===a&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),u=e.className,w(u)&&(u=u.animVal),_(u)&&""!==u)for(;o=d.exec(u);)h=pt(o[2]),Y(t,h,"C",r,i)&&(n[h]=Br(o[3])),u=u.substr(o.index+o[0].length);break;case ni:if(11===Ar)for(;e.parentNode&&e.nextSibling&&e.nextSibling.nodeType===ni;)e.nodeValue=e.nodeValue+e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);ee(t,e.nodeValue);break;case ri:try{o=p.exec(e.nodeValue),o&&(h=pt(o[1]),Y(t,h,"M",r,i)&&(n[h]=Br(o[2])))}catch(S){}}return t.sort(X),t}function q(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw zi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType==ei&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0)}else r.push(e);return Mr(r)}function H(e,t,n){return function(r,i,o,a,u){return i=q(i[0],t,n),e(r,i,o,a,u)}}function W(e,r,o,a,u,s,l,c,f){function p(e,t,n,r){e&&(n&&(e=H(e,n,r)),e.require=m.require,e.directiveName=y,(E===m||m.$$isolateScope)&&(e=oe(e,{isolateScope:!0})),l.push(e)),t&&(n&&(t=H(t,n,r)),t.require=m.require,t.directiveName=y,(E===m||m.$$isolateScope)&&(t=oe(t,{isolateScope:!0})),c.push(t))}function d(e,t,n,r){var i;if(_(t)){var o=t.match(x),a=t.substring(o[0].length),u=o[1]||o[3],s="?"===o[2];if("^^"===u?n=n.parent():(i=r&&r[a],i=i&&i.instance),!i){var l="$"+a+"Controller";i=u?n.inheritedData(l):n.data(l)}if(!i&&!s)throw zi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,e)}else if(Vr(t)){i=[];for(var c=0,f=t.length;f>c;c++)i[c]=d(e,t[c],n,r)}return i||null}function h(e,t,n,r,i,o){var a=me();for(var u in r){var s=r[u],l={$scope:s===E||s.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},c=s.controller;"@"==c&&(c=t[s.name]);var f=v(c,l,!0,s.controllerAs);a[s.name]=f,e.data("$"+s.name+"Controller",f.instance)}return a}function g(e,t,i,a,u){function s(e,t,r){var i;return O(e)||(r=t,t=e,e=n),I&&(i=m),r||(r=I?y.parent():y),u(e,t,i,r,M)}var f,p,g,m,v,y,$,b,w;r===i?($=o,y=o.$$element):(y=Mr(i),$=new se(y,o)),g=t,E?p=t.$new(!0):T&&(g=t.$parent),u&&(v=s,v.$$boundTransclude=u),D&&(m=h(y,$,v,D,p,t)),E&&(j.$$addScopeInfo(y,p,!0,!(A&&(A===E||A===E.$$originalDirective))),j.$$addScopeClass(y,!0),p.$$isolateBindings=E.$$isolateBindings,b=ue(t,$,p,p.$$isolateBindings,E),b&&p.$on("$destroy",b));for(var x in m){var _=D[x],k=m[x],C=_.$$bindings.bindToController;k.identifier&&C&&(w=ue(g,$,k.instance,C,_));var S=k();S!==k.instance&&(k.instance=S,y.data("$"+_.name+"Controller",S),w&&w(),w=ue(g,$,k.instance,C,_))}for(L=0,W=l.length;W>L;L++)f=l[L],ae(f,f.isolateScope?p:t,y,$,f.require&&d(f.directiveName,f.require,y,m),v);var M=t;for(E&&(E.template||null===E.templateUrl)&&(M=p),e&&e(M,i.childNodes,n,u),L=c.length-1;L>=0;L--)f=c[L],ae(f,f.isolateScope?p:t,y,$,f.require&&d(f.directiveName,f.require,y,m),v)}f=f||{};for(var m,y,$,b,k,C=-Number.MAX_VALUE,T=f.newScopeDirective,D=f.controllerDirectives,E=f.newIsolateScopeDirective,A=f.templateDirective,M=f.nonTlbTranscludeDirective,P=!1,N=!1,I=f.hasElementTranscludeDirective,U=o.$$element=Mr(r),R=s,F=a,L=0,W=e.length;W>L;L++){
  m=e[L];var Y=m.$$start,G=m.$$end;if(Y&&(U=q(r,Y,G)),$=n,C>m.priority)break;if((k=m.scope)&&(m.templateUrl||(w(k)?(Q("new/isolated scope",E||T,m,U),E=m):Q("new/isolated scope",E,m,U)),T=T||m),y=m.name,!m.templateUrl&&m.controller&&(k=m.controller,D=D||me(),Q("'"+y+"' controller",D[y],m,U),D[y]=m),(k=m.transclude)&&(P=!0,m.$$tlb||(Q("transclusion",M,m,U),M=m),"element"==k?(I=!0,C=m.priority,$=U,U=o.$$element=Mr(t.createComment(" "+y+": "+o[y]+" ")),r=U[0],ie(u,V($),r),F=j($,a,C,R&&R.name,{nonTlbTranscludeDirective:M})):($=Mr(Ee(r)).contents(),U.empty(),F=j($,a,n,n,{needsNewScope:m.$$isolateScope||m.$$newScope}))),m.template)if(N=!0,Q("template",A,m,U),A=m,k=S(m.template)?m.template(U,o):m.template,k=de(k),m.replace){if(R=m,$=_e(k)?[]:ht(te(m.templateNamespace,Br(k))),r=$[0],1!=$.length||r.nodeType!==ei)throw zi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",y,"");ie(u,U,r);var X={$attr:{}},ee=z(r,[],X),ne=e.splice(L+1,e.length-(L+1));(E||T)&&B(ee,E,T),e=e.concat(ee).concat(ne),K(o,X),W=e.length}else U.html(k);if(m.templateUrl)N=!0,Q("template",A,m,U),A=m,m.replace&&(R=m),g=Z(e.splice(L,e.length-L),U,o,u,P&&F,l,c,{controllerDirectives:D,newScopeDirective:T!==m&&T,newIsolateScopeDirective:E,templateDirective:A,nonTlbTranscludeDirective:M}),W=e.length;else if(m.compile)try{b=m.compile(U,o,F),S(b)?p(null,b,Y,G):b&&p(b.pre,b.post,Y,G)}catch(re){i(re,J(U))}m.terminal&&(g.terminal=!0,C=Math.max(C,m.priority))}return g.scope=T&&T.scope===!0,g.transcludeOnThisElement=P,g.templateOnThisElement=N,g.transclude=F,f.hasElementTranscludeDirective=I,g}function B(e,t,n){for(var r=0,i=e.length;i>r;r++)e[r]=h(e[r],{$$isolateScope:t,$$newScope:n})}function Y(t,n,r,o,u,s,f){if(n===u)return null;var p=null;if(l.hasOwnProperty(n))for(var d,g=e.get(n+c),m=0,v=g.length;v>m;m++)try{if(d=g[m],($(o)||o>d.priority)&&-1!=d.restrict.indexOf(r)){if(s&&(d=h(d,{$$start:s,$$end:f})),!d.$$bindings){var y=d.$$bindings=a(d,d.name);w(y.isolateScope)&&(d.$$isolateBindings=y.isolateScope)}t.push(d),p=d}}catch(b){i(b)}return p}function G(t){if(l.hasOwnProperty(t))for(var n,r=e.get(t+c),i=0,o=r.length;o>i;i++)if(n=r[i],n.multiElement)return!0;return!1}function K(e,t){var n=t.$attr,r=e.$attr,i=e.$$element;o(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,o){"class"==o?(M(i,t),e["class"]=(e["class"]?e["class"]+" ":"")+t):"style"==o?(i.attr("style",i.attr("style")+";"+t),e.style=(e.style?e.style+";":"")+t):"$"==o.charAt(0)||e.hasOwnProperty(o)||(e[o]=t,r[o]=n[o])})}function Z(e,t,n,r,i,a,s,l){var c,f,p=[],d=t[0],g=e.shift(),m=h(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=S(g.templateUrl)?g.templateUrl(t,n):g.templateUrl,y=g.templateNamespace;return t.empty(),u(v).then(function(u){var h,$,b,x;if(u=de(u),g.replace){if(b=_e(u)?[]:ht(te(y,Br(u))),h=b[0],1!=b.length||h.nodeType!==ei)throw zi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,v);$={$attr:{}},ie(r,t,h);var _=z(h,[],$);w(g.scope)&&B(_,!0),e=_.concat(e),K(n,$)}else h=d,t.html(u);for(e.unshift(m),c=W(e,h,n,i,t,g,a,s,l),o(r,function(e,n){e==h&&(r[n]=t[0])}),f=I(t[0].childNodes,i);p.length;){var k=p.shift(),C=p.shift(),S=p.shift(),T=p.shift(),D=t[0];if(!k.$$destroyed){if(C!==d){var O=C.className;l.hasElementTranscludeDirective&&g.replace||(D=Ee(h)),ie(S,Mr(C),D),M(Mr(D),O)}x=c.transcludeOnThisElement?U(k,c.transclude,T):T,c(f,k,D,r,x)}}p=null}),function(e,t,n,r,i){var o=i;t.$$destroyed||(p?p.push(t,n,r,o):(c.transcludeOnThisElement&&(o=U(t,c.transclude,i)),c(f,t,n,r,o)))}}function X(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function Q(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw zi("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,J(r))}function ee(e,t){var n=r(t,!0);n&&e.push({priority:0,compile:function(e){var t=e.parent(),r=!!t.length;return r&&j.$$addBindingClass(t),function(e,t){var i=t.parent();r||j.$$addBindingClass(i),j.$$addBindingInfo(i,n.expressions),e.$watch(n,function(e){t[0].nodeValue=e})}}})}function te(e,n){switch(e=Sr(e||"html")){case"svg":case"math":var r=t.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function ne(e,t){if("srcdoc"==t)return D.HTML;var n=R(e);return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?D.RESOURCE_URL:void 0}function re(e,t,n,i,o){var a=ne(e,i);o=y[i]||o;var u=r(n,!0,a,o);if(u){if("multiple"===i&&"select"===R(e))throw zi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",J(e));t.push({priority:100,compile:function(){return{pre:function(e,t,s){var l=s.$$observers||(s.$$observers=me());if(k.test(i))throw zi("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=s[i];c!==n&&(u=c&&r(c,!0,a,o),n=c),u&&(s[i]=u(e),(l[i]||(l[i]=[])).$$inter=!0,(s.$$observers&&s.$$observers[i].$$scope||e).$watch(u,function(e,t){"class"===i&&e!=t?s.$updateClass(e,t):s.$set(i,e)}))}}}})}}function ie(e,n,r){var i,o,a=n[0],u=n.length,s=a.parentNode;if(e)for(i=0,o=e.length;o>i;i++)if(e[i]==a){e[i++]=r;for(var l=i,c=l+u-1,f=e.length;f>l;l++,c++)f>c?e[l]=e[c]:delete e[l];e.length-=u-1,e.context===a&&(e.context=r);break}s&&s.replaceChild(r,a);var p=t.createDocumentFragment();p.appendChild(a),Mr.hasData(a)&&(Mr.data(r,Mr.data(a)),Pr?(Hr=!0,Pr.cleanData([a])):delete Mr.cache[a[Mr.expando]]);for(var d=1,h=n.length;h>d;d++){var g=n[d];Mr(g).remove(),p.appendChild(g),delete n[d]}n[0]=r,n.length=1}function oe(e,t){return f(function(){return e.apply(null,arguments)},e,t)}function ae(e,t,n,r,o,a){try{e(t,n,r,o,a)}catch(u){i(u,J(n))}}function ue(e,t,n,i,a){var u=[];return o(i,function(i,o){var l,c,f,p,d=i.attrName,h=i.optional,m=i.mode;switch(m){case"@":h||Tr.call(t,d)||(n[o]=t[d]=void 0),t.$observe(d,function(e){_(e)&&(n[o]=e)}),t.$$observers[d].$$scope=e,l=t[d],_(l)?n[o]=r(l)(e):P(l)&&(n[o]=l);break;case"=":if(!Tr.call(t,d)){if(h)break;t[d]=void 0}if(h&&!t[d])break;c=s(t[d]),p=c.literal?L:function(e,t){return e===t||e!==e&&t!==t},f=c.assign||function(){throw l=n[o]=c(e),zi("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[d],d,a.name)},l=n[o]=c(e);var v=function(t){return p(t,n[o])||(p(t,l)?f(e,t=n[o]):n[o]=t),l=t};v.$stateful=!0;var y;y=i.collection?e.$watchCollection(t[d],v):e.$watch(s(t[d],v),null,c.literal),u.push(y);break;case"&":if(c=t.hasOwnProperty(d)?s(t[d]):g,c===g&&h)break;n[o]=function(t){return c(e,t)}}}),u.length&&function(){for(var e=0,t=u.length;t>e;++e)u[e]()}}var se=function(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;r>n;n++)i=o[n],this[i]=t[i]}else this.$attr={};this.$$element=e};se.prototype={$normalize:pt,$addClass:function(e){e&&e.length>0&&E.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&E.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=dt(e,t);n&&n.length&&E.addClass(this.$$element,n);var r=dt(t,e);r&&r.length&&E.removeClass(this.$$element,r)},$set:function(e,t,n,r){var a,u=this.$$element[0],s=We(u,e),l=Be(e),c=e;if(s?(this.$$element.prop(e,t),r=s):l&&(this[l]=t,c=l),this[e]=t,r?this.$attr[e]=r:(r=this.$attr[e],r||(this.$attr[e]=r=le(e,"-"))),a=R(this.$$element),"a"===a&&"href"===e||"img"===a&&"src"===e)this[e]=t=A(t,"src"===e);else if("img"===a&&"srcset"===e&&b(t)){for(var f="",p=Br(t),d=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,h=/\s/.test(p)?d:/(,)/,g=p.split(h),m=Math.floor(g.length/2),v=0;m>v;v++){var y=2*v;f+=A(Br(g[y]),!0),f+=" "+Br(g[y+1])}var w=Br(g[2*v]).split(/\s/);f+=A(Br(w[0]),!0),2===w.length&&(f+=" "+Br(w[1])),this[e]=t=f}n!==!1&&(null===t||$(t)?this.$$element.removeAttr(r):this.$$element.attr(r,t));var x=this.$$observers;x&&o(x[c],function(e){try{e(t)}catch(n){i(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=me()),i=r[e]||(r[e]=[]);return i.push(t),C.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||$(n[e])||t(n[e])}),function(){F(i,t)}}};var ce=r.startSymbol(),pe=r.endSymbol(),de="{{"==ce&&"}}"==pe?m:function(e){return e.replace(/\{\{/g,ce).replace(/}}/g,pe)},he=/^ngAttr[A-Z]/,ge=/^(.+)Start$/;return j.$$addBindingInfo=T?function(e,t){var n=e.data("$binding")||[];Vr(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:g,j.$$addBindingClass=T?function(e){M(e,"ng-binding")}:g,j.$$addScopeInfo=T?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:g,j.$$addScopeClass=T?function(e,t){M(e,t?"ng-isolate-scope":"ng-scope")}:g,j}]}function pt(e){return xe(e.replace(qi,""))}function dt(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],u=0;u<i.length;u++)if(a==i[u])continue e;n+=(n.length>0?" ":"")+a}return n}function ht(e){e=Mr(e);var t=e.length;if(1>=t)return e;for(;t--;){var n=e[t];n.nodeType===ri&&Ir.call(e,t,1)}return e}function gt(e,t){if(t&&_(t))return t;if(_(e)){var n=Hi.exec(e);if(n)return n[3]}}function mt(){var e={},t=!1;this.register=function(t,n){de(t,"controller"),w(t)?f(e,t):e[t]=n},this.allowGlobals=function(){t=!0},this.$get=["$injector","$window",function(i,o){function a(e,t,n,i){if(!e||!w(e.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t);e.$scope[t]=n}return function(r,u,s,l){var c,p,d,h;if(s=s===!0,l&&_(l)&&(h=l),_(r)){if(p=r.match(Hi),!p)throw Li("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);d=p[1],h=h||p[3],r=e.hasOwnProperty(d)?e[d]:he(u.$scope,d,!0)||(t?he(o,d,!0):n),pe(r,d,!0)}if(s){var g=(Vr(r)?r[r.length-1]:r).prototype;c=Object.create(g||null),h&&a(u,h,c,d||r.name);var m;return m=f(function(){var e=i.invoke(r,c,u,d);return e!==c&&(w(e)||S(e))&&(c=e,h&&a(u,h,c,d||r.name)),c},{instance:c,identifier:h})}return c=i.instantiate(r,u,d),h&&a(u,h,c,d||r.name),c}}]}function vt(){this.$get=["$window",function(e){return Mr(e.document)}]}function yt(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function $t(e){return w(e)?C(e)?e.toISOString():Y(e):e}function bt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return a(e,function(e,n){null===e||$(e)||(Vr(e)?o(e,function(e,r){t.push(re(n)+"="+re($t(e)))}):t.push(re(n)+"="+re($t(e))))}),t.join("&")}}}function wt(){this.$get=function(){return function(e){function t(e,r,i){null===e||$(e)||(Vr(e)?o(e,function(e,n){t(e,r+"["+(w(e)?n:"")+"]")}):w(e)&&!C(e)?a(e,function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))}):n.push(re(r)+"="+re($t(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function xt(e,t){if(_(e)){var n=e.replace(Ki,"").trim();if(n){var r=t("Content-Type");(r&&0===r.indexOf(Wi)||_t(n))&&(e=G(n))}}return e}function _t(e){var t=e.match(Yi);return t&&Gi[t[0]].test(e)}function kt(e){function t(e,t){e&&(r[e]=r[e]?r[e]+", "+t:t)}var n,r=me();return _(e)?o(e.split("\n"),function(e){n=e.indexOf(":"),t(Sr(Br(e.substr(0,n))),Br(e.substr(n+1)))}):w(e)&&o(e,function(e,n){t(Sr(n),Br(e))}),r}function Ct(e){var t;return function(n){if(t||(t=kt(e)),n){var r=t[Sr(n)];return void 0===r&&(r=null),r}return t}}function St(e,t,n,r){return S(r)?r(e,t,n):(o(r,function(r){e=r(e,t,n)}),e)}function Tt(e){return e>=200&&300>e}function Dt(){var e=this.defaults={transformResponse:[xt],transformRequest:[function(e){return!w(e)||E(e)||M(e)||A(e)?e:Y(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:q(Bi),put:q(Bi),patch:q(Bi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},t=!1;this.useApplyAsync=function(e){return b(e)?(t=!!e,this):t};var i=!0;this.useLegacyPromiseExtensions=function(e){return b(e)?(i=!!e,this):i};var a=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(u,s,l,c,p,d){function h(t){function a(e){var t=f({},e);return t.data=St(e.data,e.headers,e.status,l.transformResponse),Tt(e.status)?t:p.reject(t)}function u(e,t){var n,r={};return o(e,function(e,i){S(e)?(n=e(t),null!=n&&(r[i]=n)):r[i]=e}),r}function s(t){var n,r,i,o=e.headers,a=f({},t.headers);o=f({},o.common,o[Sr(t.method)]);e:for(n in o){r=Sr(n);for(i in a)if(Sr(i)===r)continue e;a[n]=o[n]}return u(a,q(t))}if(!qr.isObject(t))throw r("$http")("badreq","Http request configuration must be an object.  Received: {0}",t);if(!_(t.url))throw r("$http")("badreq","Http request configuration url must be a string.  Received: {0}",t.url);var l=f({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},t);l.headers=s(t),l.method=Dr(l.method),l.paramSerializer=_(l.paramSerializer)?d.get(l.paramSerializer):l.paramSerializer;var c=function(t){var r=t.headers,i=St(t.data,Ct(r),n,t.transformRequest);return $(i)&&o(r,function(e,t){"content-type"===Sr(t)&&delete r[t]}),$(t.withCredentials)&&!$(e.withCredentials)&&(t.withCredentials=e.withCredentials),v(t,i).then(a,a)},h=[c,n],g=p.when(l);for(o(k,function(e){(e.request||e.requestError)&&h.unshift(e.request,e.requestError),(e.response||e.responseError)&&h.push(e.response,e.responseError)});h.length;){var m=h.shift(),y=h.shift();g=g.then(m,y)}return i?(g.success=function(e){return pe(e,"fn"),g.then(function(t){e(t.data,t.status,t.headers,l)}),g},g.error=function(e){return pe(e,"fn"),g.then(null,function(t){e(t.data,t.status,t.headers,l)}),g}):(g.success=Xi("success"),g.error=Xi("error")),g}function g(e){o(arguments,function(e){h[e]=function(t,n){return h(f({},n||{},{method:e,url:t}))}})}function m(e){o(arguments,function(e){h[e]=function(t,n,r){return h(f({},r||{},{method:e,url:t,data:n}))}})}function v(r,i){function o(e,n,r,i){function o(){a(n,e,r,i)}d&&(Tt(e)?d.put(k,[e,n,kt(r),i]):d.remove(k)),t?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function a(e,t,n,i){t=t>=-1?t:0,(Tt(t)?m.resolve:m.reject)({data:e,status:t,headers:Ct(n),config:r,statusText:i})}function l(e){a(e.data,e.status,q(e.headers()),e.statusText)}function f(){var e=h.pendingRequests.indexOf(r);-1!==e&&h.pendingRequests.splice(e,1)}var d,g,m=p.defer(),v=m.promise,_=r.headers,k=y(r.url,r.paramSerializer(r.params));if(h.pendingRequests.push(r),v.then(f,f),!r.cache&&!e.cache||r.cache===!1||"GET"!==r.method&&"JSONP"!==r.method||(d=w(r.cache)?r.cache:w(e.cache)?e.cache:x),d&&(g=d.get(k),b(g)?j(g)?g.then(l,l):Vr(g)?a(g[1],g[0],q(g[2]),g[3]):a(g,200,{},"OK"):d.put(k,v)),$(g)){var C=En(r.url)?s()[r.xsrfCookieName||e.xsrfCookieName]:n;C&&(_[r.xsrfHeaderName||e.xsrfHeaderName]=C),u(r.method,k,i,o,_,r.timeout,r.withCredentials,r.responseType)}return v}function y(e,t){return t.length>0&&(e+=(-1==e.indexOf("?")?"?":"&")+t),e}var x=l("$http");e.paramSerializer=_(e.paramSerializer)?d.get(e.paramSerializer):e.paramSerializer;var k=[];return o(a,function(e){k.unshift(_(e)?d.get(e):d.invoke(e))}),h.pendingRequests=[],g("get","delete","head","jsonp"),m("post","put","patch"),h.defaults=e,h}]}function Ot(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Et(){this.$get=["$browser","$window","$document","$xhrFactory",function(e,t,n,r){return At(e,r,e.defer,t.angular.callbacks,n[0])}]}function At(e,t,n,r,i){function a(e,t,n){var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){ci(o,"load",a),ci(o,"error",a),i.body.removeChild(o),o=null;var u=-1,s="unknown";e&&("load"!==e.type||r[t].called||(e={type:"error"}),s=e.type,u="error"===e.type?404:200),n&&n(u,s)},li(o,"load",a),li(o,"error",a),i.body.appendChild(o),a}return function(i,u,s,l,c,f,p,d){function h(){y&&y(),w&&w.abort()}function m(t,r,i,o,a){b(k)&&n.cancel(k),y=w=null,t(r,i,o,a),e.$$completeOutstandingRequest(g)}if(e.$$incOutstandingRequestCount(),u=u||e.url(),"jsonp"==Sr(i)){var v="_"+(r.counter++).toString(36);r[v]=function(e){r[v].data=e,r[v].called=!0};var y=a(u.replace("JSON_CALLBACK","angular.callbacks."+v),v,function(e,t){m(l,e,r[v].data,"",t),r[v]=g})}else{var w=t(i,u);w.open(i,u,!0),o(c,function(e,t){b(e)&&w.setRequestHeader(t,e)}),w.onload=function(){var e=w.statusText||"",t="response"in w?w.response:w.responseText,n=1223===w.status?204:w.status;0===n&&(n=t?200:"file"==On(u).protocol?404:0),m(l,n,t,w.getAllResponseHeaders(),e)};var x=function(){m(l,-1,null,null,"")};if(w.onerror=x,w.onabort=x,p&&(w.withCredentials=!0),d)try{w.responseType=d}catch(_){if("json"!==d)throw _}w.send($(s)?null:s)}if(f>0)var k=n(h,f);else j(f)&&f.then(h)}}function Mt(){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","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(p,e).replace(d,t)}function u(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=Y(e)}return e}function s(o,s,p,d){function h(e){try{return e=D(e),d&&!b(e)?e:u(e)}catch(t){r(Ji.interr(o,t))}}d=!!d;for(var g,m,v,y=0,w=[],x=[],_=o.length,k=[],C=[];_>y;){if(-1==(g=o.indexOf(e,y))||-1==(m=o.indexOf(t,g+l))){y!==_&&k.push(a(o.substring(y)));break}y!==g&&k.push(a(o.substring(y,g))),v=o.substring(g+l,m),w.push(v),x.push(n(v,h)),y=m+c,C.push(k.length),k.push("")}if(p&&k.length>1&&Ji.throwNoconcat(o),!s||w.length){var T=function(e){for(var t=0,n=w.length;n>t;t++){if(d&&$(e[t]))return;k[C[t]]=e[t]}return k.join("")},D=function(e){return p?i.getTrusted(p,e):i.valueOf(e)};return f(function(e){var t=0,n=w.length,i=new Array(n);try{for(;n>t;t++)i[t]=x[t](e);return T(i)}catch(a){r(Ji.interr(o,a))}},{exp:o,expressions:w,$$watchDelegate:function(e,t){var n;return e.$watchGroup(x,function(r,i){var o=T(r);S(t)&&t.call(this,o,r!==i?n:o,e),n=o})}})}}var l=e.length,c=t.length,p=new RegExp(e.replace(/./g,o),"g"),d=new RegExp(t.replace(/./g,o),"g");return s.startSymbol=function(){return e},s.endSymbol=function(){return t},s}]}function Pt(){this.$get=["$rootScope","$window","$q","$$q",function(e,t,n,r){function i(i,a,u,s){var l=arguments.length>4,c=l?V(arguments,4):[],f=t.setInterval,p=t.clearInterval,d=0,h=b(s)&&!s,g=(h?r:n).defer(),m=g.promise;return u=b(u)?u:0,m.then(null,null,l?function(){i.apply(null,c)}:i),m.$$intervalId=f(function(){g.notify(d++),u>0&&d>=u&&(g.resolve(d),p(m.$$intervalId),delete o[m.$$intervalId]),h||e.$apply()},a),o[m.$$intervalId]=g,m}var o={};return i.cancel=function(e){return e&&e.$$intervalId in o?(o[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete o[e.$$intervalId],!0):!1},i}]}function jt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=ne(t[n]);return t.join("/")}function Nt(e,t){var n=On(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=d(n.port)||eo[n.protocol]||null}function It(e,t){var n="/"!==e.charAt(0);n&&(e="/"+e);var r=On(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=ee(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Ut(e,t){return 0===t.indexOf(e)?t.substr(e.length):void 0}function Rt(e){var t=e.indexOf("#");return-1==t?e:e.substr(0,t)}function Ft(e){return e.replace(/(#.+)|#$/,"$1")}function zt(e){return e.substr(0,Rt(e).lastIndexOf("/")+1)}function qt(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function Lt(e,t,n){this.$$html5=!0,n=n||"",Nt(e,this),this.$$parse=function(e){var n=Ut(t,e);if(!_(n))throw to("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);It(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=te(this.$$search),n=this.$$hash?"#"+ne(this.$$hash):"";this.$$url=jt(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,u;return b(o=Ut(e,r))?(a=o,u=b(o=Ut(n,o))?t+(Ut("/",o)||o):e+a):b(o=Ut(t,r))?u=t+o:t==r+"/"&&(u=t),u&&this.$$parse(u),!!u}}function Ht(e,t,n){Nt(e,this),this.$$parse=function(r){function i(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===t.indexOf(n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}var o,a=Ut(e,r)||Ut(t,r);$(a)||"#"!==a.charAt(0)?this.$$html5?o=a:(o="",$(a)&&(e=r,this.replace())):(o=Ut(n,a),$(o)&&(o=a)),It(o,this),this.$$path=i(this.$$path,o,e),this.$$compose()},this.$$compose=function(){var t=te(this.$$search),r=this.$$hash?"#"+ne(this.$$hash):"";this.$$url=jt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(t,n){return Rt(e)==Rt(t)?(this.$$parse(t),!0):!1}}function Vt(e,t,n){this.$$html5=!0,Ht.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e==Rt(r)?o=r:(a=Ut(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$compose=function(){var t=te(this.$$search),r=this.$$hash?"#"+ne(this.$$hash):"";this.$$url=jt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url}}function Wt(e){return function(){return this[e]}}function Bt(e,t){return function(n){return $(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Yt(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return b(t)?(e=t,this):e},this.html5Mode=function(e){return P(e)?(t.enabled=e,this):w(e)?(P(e.enabled)&&(t.enabled=e.enabled),P(e.requireBase)&&(t.requireBase=e.requireBase),P(e.rewriteLinks)&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function u(e,t,n){var i=l.url(),o=l.$$state;try{r.url(e,t,n),l.$$state=r.state()}catch(a){throw l.url(i),l.$$state=o,a}}function s(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,c,f,p=r.baseHref(),d=r.url();if(t.enabled){if(!p&&t.requireBase)throw to("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=qt(d)+(p||"/"),c=i.history?Lt:Vt}else f=Rt(d),c=Ht;var h=zt(f);l=new c(f,h,"#"+e),l.$$parseLinkUrl(d,d),l.$$state=r.state();var g=/^\s*(javascript|mailto):/i;o.on("click",function(e){if(t.rewriteLinks&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!=e.which&&2!=e.button){for(var i=Mr(e.target);"a"!==R(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var u=i.prop("href"),s=i.attr("href")||i.attr("xlink:href");w(u)&&"[object SVGAnimatedString]"===u.toString()&&(u=On(u.animVal).href),g.test(u)||!u||i.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(u,s)&&(e.preventDefault(),l.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),Ft(l.absUrl())!=Ft(d)&&r.url(l.absUrl(),!0);var m=!0;return r.onUrlChange(function(e,t){return $(Ut(h,e))?void(a.location.href=e):(n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;e=Ft(e),l.$$parse(e),l.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,l.absUrl()===e&&(r?(l.$$parse(i),l.$$state=o,u(i,!1,o)):(m=!1,s(i,o)))}),void(n.$$phase||n.$digest()))}),n.$watch(function(){var e=Ft(r.url()),t=Ft(l.absUrl()),o=r.state(),a=l.$$replace,c=e!==t||l.$$html5&&i.history&&o!==l.$$state;(m||c)&&(m=!1,n.$evalAsync(function(){var t=l.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,l.$$state,o).defaultPrevented;l.absUrl()===t&&(r?(l.$$parse(e),l.$$state=o):(c&&u(t,a,o===l.$$state?null:l.$$state),s(e,o)))})),l.$$replace=!1}),l}]}function Gt(){var e=!0,t=this;this.debugEnabled=function(t){return b(t)?(e=t,this):e},this.$get=["$window",function(n){function r(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 i(e){var t=n.console||{},i=t[e]||t.log||g,a=!1;try{a=!!i.apply}catch(u){}return a?function(){var e=[];return o(arguments,function(t){e.push(r(t))}),i.apply(t,e)}:function(e,t){i(e,null==t?"":t)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function Kt(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw ro("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function Zt(e,t){if(e+="",!_(e))throw ro("iseccst","Cannot convert object to primitive value! Expression: {0}",t);return e}function Xt(e,t){if(e){if(e.constructor===e)throw ro("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.window===e)throw ro("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw ro("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw ro("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function Jt(e,t){if(e){if(e.constructor===e)throw ro("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===io||e===oo||e===ao)throw ro("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function Qt(e,t){if(e&&(e===0..constructor||e===(!1).constructor||e==="".constructor||e==={}.constructor||e===[].constructor||e===Function.constructor))throw ro("isecaf","Assigning to a constructor is disallowed! Expression: {0}",t)}function en(e,t){return"undefined"!=typeof e?e:t}function tn(e,t){return"undefined"==typeof e?t:"undefined"==typeof t?e:e+t}function nn(e,t){var n=e(t);return!n.$stateful}function rn(e,t){var n,r;switch(e.type){case co.Program:n=!0,o(e.body,function(e){rn(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case co.Literal:e.constant=!0,e.toWatch=[];break;case co.UnaryExpression:rn(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case co.BinaryExpression:rn(e.left,t),rn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case co.LogicalExpression:rn(e.left,t),rn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case co.ConditionalExpression:rn(e.test,t),rn(e.alternate,t),rn(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case co.Identifier:e.constant=!1,e.toWatch=[e];break;case co.MemberExpression:rn(e.object,t),e.computed&&rn(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case co.CallExpression:n=e.filter?nn(t,e.callee.name):!1,r=[],o(e.arguments,function(e){rn(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=e.filter&&nn(t,e.callee.name)?r:[e];break;case co.AssignmentExpression:rn(e.left,t),rn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case co.ArrayExpression:n=!0,r=[],o(e.elements,function(e){rn(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=r;break;case co.ObjectExpression:n=!0,r=[],o(e.properties,function(e){rn(e.value,t),n=n&&e.value.constant,e.value.constant||r.push.apply(r,e.value.toWatch)}),e.constant=n,e.toWatch=r;break;case co.ThisExpression:e.constant=!1,e.toWatch=[]}}function on(e){if(1==e.length){var t=e[0].expression,r=t.toWatch;return 1!==r.length?r:r[0]!==t?r:n}}function an(e){return e.type===co.Identifier||e.type===co.MemberExpression}function un(e){return 1===e.body.length&&an(e.body[0].expression)?{type:co.AssignmentExpression,left:e.body[0].expression,right:{type:co.NGValueParameter},operator:"="}:void 0}function sn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===co.Literal||e.body[0].expression.type===co.ArrayExpression||e.body[0].expression.type===co.ObjectExpression)}function ln(e){return e.constant}function cn(e,t){this.astBuilder=e,this.$filter=t}function fn(e,t){this.astBuilder=e,this.$filter=t}function pn(e){return"constructor"==e}function dn(e){return S(e.valueOf)?e.valueOf():po.call(e)}function hn(){var e=me(),t=me();this.$get=["$filter",function(r){function i(n,i,o){var u,d,y;switch(o=o||v,typeof n){case"string":n=n.trim(),y=n;var $=o?t:e;if(u=$[y],!u){":"===n.charAt(0)&&":"===n.charAt(1)&&(d=!0,n=n.substring(2));var b=o?m:h,w=new lo(b),x=new fo(w,r,b);u=x.parse(n),u.constant?u.$$watchDelegate=f:d?u.$$watchDelegate=u.literal?c:l:u.inputs&&(u.$$watchDelegate=s),o&&(u=a(u)),$[y]=u}return p(u,i);case"function":return p(n,i);default:return p(g,i)}}function a(e){function t(t,n,r,i){var o=v;v=!0;try{return e(t,n,r,i)}finally{v=o}}if(!e)return e;t.$$watchDelegate=e.$$watchDelegate,t.assign=a(e.assign),t.constant=e.constant,t.literal=e.literal;for(var n=0;e.inputs&&n<e.inputs.length;++n)e.inputs[n]=a(e.inputs[n]);return t.inputs=e.inputs,t}function u(e,t){return null==e||null==t?e===t:"object"==typeof e&&(e=dn(e),"object"==typeof e)?!1:e===t||e!==e&&t!==t}function s(e,t,r,i,o){var a,s=i.inputs;if(1===s.length){var l=u;return s=s[0],e.$watch(function(e){var t=s(e);return u(t,l)||(a=i(e,n,n,[t]),l=t&&dn(t)),a},t,r,o)}for(var c=[],f=[],p=0,d=s.length;d>p;p++)c[p]=u,f[p]=null;return e.$watch(function(e){for(var t=!1,r=0,o=s.length;o>r;r++){var l=s[r](e);(t||(t=!u(l,c[r])))&&(f[r]=l,c[r]=l&&dn(l))}return t&&(a=i(e,n,n,f)),a},t,r,o)}function l(e,t,n,r){var i,o;return i=e.$watch(function(e){return r(e)},function(e,n,r){o=e,S(t)&&t.apply(this,arguments),b(e)&&r.$$postDigest(function(){b(o)&&i()})},n)}function c(e,t,n,r){function i(e){var t=!0;return o(e,function(e){b(e)||(t=!1)}),t}var a,u;return a=e.$watch(function(e){return r(e)},function(e,n,r){u=e,S(t)&&t.call(this,e,n,r),i(e)&&r.$$postDigest(function(){i(u)&&a()})},n)}function f(e,t,n,r){var i;return i=e.$watch(function(e){return r(e)},function(e,n,r){S(t)&&t.apply(this,arguments),i()},n)}function p(e,t){if(!t)return e;var n=e.$$watchDelegate,r=!1,i=n!==c&&n!==l,o=i?function(n,i,o,a){var u=r&&a?a[0]:e(n,i,o,a);return t(u,n,i)}:function(n,r,i,o){var a=e(n,r,i,o),u=t(a,n,r);return b(a)?u:a};return e.$$watchDelegate&&e.$$watchDelegate!==s?o.$$watchDelegate=e.$$watchDelegate:t.$stateful||(o.$$watchDelegate=s,r=!e.inputs,o.inputs=e.inputs?e.inputs:[e]),o}var d=Gr().noUnsafeEval,h={csp:d,expensiveChecks:!1},m={csp:d,expensiveChecks:!0},v=!1;return i.$$runningExpensiveChecks=function(){return v},i}]}function gn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return vn(function(t){e.$evalAsync(t)},t)}]}function mn(){this.$get=["$browser","$exceptionHandler",function(e,t){return vn(function(t){e.defer(t)},t)}]}function vn(e,t){function i(e,t,n){function r(t){return function(n){i||(i=!0,t.call(e,n))}}var i=!1;return[r(t),r(n)]}function a(){this.$$state={status:0}}function u(e,t){return function(n){t.call(e,n)}}function s(e){var r,i,o;o=e.pending,e.processScheduled=!1,e.pending=n;for(var a=0,u=o.length;u>a;++a){i=o[a][0],r=o[a][e.status];try{S(r)?i.resolve(r(e.value)):1===e.status?i.resolve(e.value):i.reject(e.value)}catch(s){i.reject(s),t(s)}}}function l(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,e(function(){s(t)}))}function c(){this.promise=new a,this.resolve=u(this,this.resolve),this.reject=u(this,this.reject),this.notify=u(this,this.notify)}function p(e){var t=new c,n=0,r=Vr(e)?[]:{};return o(e,function(e,i){n++,y(e).then(function(e){r.hasOwnProperty(i)||(r[i]=e,--n||t.resolve(r))},function(e){r.hasOwnProperty(i)||t.reject(e)})}),0===n&&t.resolve(r),t.promise}var d=r("$q",TypeError),h=function(){return new c};f(a.prototype,{then:function(e,t,n){if($(e)&&$(t)&&$(n))return this;var r=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&l(this.$$state),r.promise},"catch":function(e){return this.then(null,e)},"finally":function(e,t){return this.then(function(t){return v(t,!0,e)},function(t){return v(t,!1,e)},t)}}),f(c.prototype,{resolve:function(e){
  this.promise.$$state.status||(e===this.promise?this.$$reject(d("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):this.$$resolve(e))},$$resolve:function(e){var n,r;r=i(this,this.$$resolve,this.$$reject);try{(w(e)||S(e))&&(n=e&&e.then),S(n)?(this.promise.$$state.status=-1,n.call(e,r[0],r[1],this.notify)):(this.promise.$$state.value=e,this.promise.$$state.status=1,l(this.promise.$$state))}catch(o){r[1](o),t(o)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,l(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&e(function(){for(var e,i,o=0,a=r.length;a>o;o++){i=r[o][0],e=r[o][3];try{i.notify(S(e)?e(n):n)}catch(u){t(u)}}})}});var g=function(e){var t=new c;return t.reject(e),t.promise},m=function(e,t){var n=new c;return t?n.resolve(e):n.reject(e),n.promise},v=function(e,t,n){var r=null;try{S(n)&&(r=n())}catch(i){return m(i,!1)}return j(r)?r.then(function(){return m(e,t)},function(e){return m(e,!1)}):m(e,t)},y=function(e,t,n,r){var i=new c;return i.resolve(e),i.promise.then(t,n,r)},b=y,x=function _(e){function t(e){r.resolve(e)}function n(e){r.reject(e)}if(!S(e))throw d("norslvr","Expected resolverFn, got '{0}'",e);if(!(this instanceof _))return new _(e);var r=new c;return e(t,n),r.promise};return x.defer=h,x.reject=g,x.when=y,x.resolve=b,x.all=p,x}function yn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function $n(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=s(),this.$$ChildScope=null}return t.prototype=e,t}var t=10,n=r("$rootScope"),a=null,u=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,l,c,f){function p(e){e.currentScope.$$destroyed=!0}function d(e){9===Ar&&(e.$$childHead&&d(e.$$childHead),e.$$nextSibling&&d(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function h(){this.$id=s(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function m(e){if(C.$$phase)throw n("inprog","{0} already in progress",C.$$phase);C.$$phase=e}function v(){C.$$phase=null}function y(e,t){do e.$$watchersCount+=t;while(e=e.$parent)}function b(e,t,n){do e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n];while(e=e.$parent)}function x(){}function _(){for(;O.length;)try{O.shift()()}catch(e){l(e)}u=null}function k(){null===u&&(u=f.defer(function(){C.$apply(_)}))}h.prototype={constructor:h,$new:function(t,n){var r;return n=n||this,t?(r=new h,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!=this)&&r.$on("$destroy",p),r},$watch:function(e,t,n,r){var i=c(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,n,i,e);var o=this,u=o.$$watchers,s={fn:t,last:x,get:i,exp:r||e,eq:!!n};return a=null,S(t)||(s.fn=g),u||(u=o.$$watchers=[]),u.unshift(s),y(this,1),function(){F(u,s)>=0&&y(o,-1),a=null}},$watchGroup:function(e,t){function n(){s=!1,l?(l=!1,t(i,i,u)):t(i,r,u)}var r=new Array(e.length),i=new Array(e.length),a=[],u=this,s=!1,l=!0;if(!e.length){var c=!0;return u.$evalAsync(function(){c&&t(i,i,u)}),function(){c=!1}}return 1===e.length?this.$watch(e[0],function(e,n,o){i[0]=e,r[0]=n,t(i,e===n?i:r,o)}):(o(e,function(e,t){var o=u.$watch(e,function(e,o){i[t]=e,r[t]=o,s||(s=!0,u.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function n(e){o=e;var t,n,r,u,s;if(!$(o)){if(w(o))if(i(o)){a!==d&&(a=d,m=a.length=0,f++),t=o.length,m!==t&&(f++,a.length=m=t);for(var l=0;t>l;l++)s=a[l],u=o[l],r=s!==s&&u!==u,r||s===u||(f++,a[l]=u)}else{a!==h&&(a=h={},m=0,f++),t=0;for(n in o)Tr.call(o,n)&&(t++,u=o[n],s=a[n],n in a?(r=s!==s&&u!==u,r||s===u||(f++,a[n]=u)):(m++,a[n]=u,f++));if(m>t){f++;for(n in a)Tr.call(o,n)||(m--,delete a[n])}}else a!==o&&(a=o,f++);return f}}function r(){if(g?(g=!1,t(o,o,s)):t(o,u,s),l)if(w(o))if(i(o)){u=new Array(o.length);for(var e=0;e<o.length;e++)u[e]=o[e]}else{u={};for(var n in o)Tr.call(o,n)&&(u[n]=o[n])}else u=o}n.$stateful=!0;var o,a,u,s=this,l=t.length>1,f=0,p=c(e,n),d=[],h={},g=!0,m=0;return this.$watch(p,r)},$digest:function(){var e,r,i,o,s,c,p,d,h,g,y,$,b=t,w=this,k=[];m("$digest"),f.$$checkUrlChange(),this===C&&null!==u&&(f.defer.cancel(u),_()),a=null;do{for(d=!1,g=w;T.length;){try{$=T.shift(),$.scope.$eval($.expression,$.locals)}catch(O){l(O)}a=null}e:do{if(c=g.$$watchers)for(p=c.length;p--;)try{if(e=c[p])if(s=e.get,(r=s(g))===(i=e.last)||(e.eq?L(r,i):"number"==typeof r&&"number"==typeof i&&isNaN(r)&&isNaN(i))){if(e===a){d=!1;break e}}else d=!0,a=e,e.last=e.eq?z(r,null):r,o=e.fn,o(r,i===x?r:i,g),5>b&&(y=4-b,k[y]||(k[y]=[]),k[y].push({msg:S(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:r,oldVal:i}))}catch(O){l(O)}if(!(h=g.$$watchersCount&&g.$$childHead||g!==w&&g.$$nextSibling))for(;g!==w&&!(h=g.$$nextSibling);)g=g.$parent}while(g=h);if((d||T.length)&&!b--)throw v(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,k)}while(d||T.length);for(v();D.length;)try{D.shift()()}catch(O){l(O)}},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===C&&f.$$applicationDestroyed(),y(this,-this.$$watchersCount);for(var t in this.$$listenerCount)b(this,this.$$listenerCount[t],t);e&&e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=g,this.$on=this.$watch=this.$watchGroup=function(){return g},this.$$listeners={},this.$$nextSibling=null,d(this)}},$eval:function(e,t){return c(e)(this,t)},$evalAsync:function(e,t){C.$$phase||T.length||f.defer(function(){T.length&&C.$digest()}),T.push({scope:this,expression:c(e),locals:t})},$$postDigest:function(e){D.push(e)},$apply:function(e){try{m("$apply");try{return this.$eval(e)}finally{v()}}catch(t){l(t)}finally{try{C.$digest()}catch(t){throw l(t),t}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&O.push(t),e=c(e),k()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++;while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(n[r]=null,b(i,1,e))}},$emit:function(e,t){var n,r,i,o=[],a=this,u=!1,s={name:e,targetScope:a,stopPropagation:function(){u=!0},preventDefault:function(){s.defaultPrevented=!0},defaultPrevented:!1},c=H([s],arguments,1);do{for(n=a.$$listeners[e]||o,s.currentScope=a,r=0,i=n.length;i>r;r++)if(n[r])try{n[r].apply(null,c)}catch(f){l(f)}else n.splice(r,1),r--,i--;if(u)return s.currentScope=null,s;a=a.$parent}while(a);return s.currentScope=null,s},$broadcast:function(e,t){var n=this,r=n,i=n,o={name:e,targetScope:n,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return o;for(var a,u,s,c=H([o],arguments,1);r=i;){for(o.currentScope=r,a=r.$$listeners[e]||[],u=0,s=a.length;s>u;u++)if(a[u])try{a[u].apply(null,c)}catch(f){l(f)}else a.splice(u,1),u--,s--;if(!(i=r.$$listenerCount[e]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}};var C=new h,T=C.$$asyncQueue=[],D=C.$$postDigestQueue=[],O=C.$$applyAsyncQueue=[];return C}]}function bn(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return b(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return b(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return i=On(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function wn(e){if("self"===e)return e;if(_(e)){if(e.indexOf("***")>-1)throw ho("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=Yr(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(T(e))return new RegExp("^"+e.source+"$");throw ho("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function xn(e){var t=[];return b(e)&&o(e,function(e){t.push(wn(e))}),t}function _n(){this.SCE_CONTEXTS=go;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=xn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=xn(e)),t},this.$get=["$injector",function(n){function r(e,t){return"self"===e?En(t):!!e.exec(t.href)}function i(n){var i,o,a=On(n.toString()),u=!1;for(i=0,o=e.length;o>i;i++)if(r(e[i],a)){u=!0;break}if(u)for(i=0,o=t.length;o>i;i++)if(r(t[i],a)){u=!1;break}return u}function o(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function a(e,t){var n=f.hasOwnProperty(e)?f[e]:null;if(!n)throw ho("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||$(t)||""===t)return t;if("string"!=typeof t)throw ho("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)}function u(e){return e instanceof c?e.$$unwrapTrustedValue():e}function s(e,t){if(null===t||$(t)||""===t)return t;var n=f.hasOwnProperty(e)?f[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(e===go.RESOURCE_URL){if(i(t))return t;throw ho("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString())}if(e===go.HTML)return l(t);throw ho("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(e){throw ho("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(l=n.get("$sanitize"));var c=o(),f={};return f[go.HTML]=o(c),f[go.CSS]=o(c),f[go.URL]=o(c),f[go.JS]=o(c),f[go.RESOURCE_URL]=o(f[go.URL]),{trustAs:a,getTrusted:s,valueOf:u}}]}function kn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&8>Ar)throw ho("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var r=q(go);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=m),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,a=r.getTrusted,u=r.trustAs;return o(go,function(e,t){var n=Sr(t);r[xe("parse_as_"+n)]=function(t){return i(e,t)},r[xe("get_trusted_"+n)]=function(t){return a(e,t)},r[xe("trust_as_"+n)]=function(t){return u(e,t)}}),r}]}function Cn(){this.$get=["$window","$document",function(e,t){var n,r,i={},o=d((/android (\d+)/.exec(Sr((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),u=t[0]||{},s=/^(Moz|webkit|ms)(?=[A-Z])/,l=u.body&&u.body.style,c=!1,f=!1;if(l){for(var p in l)if(r=s.exec(p)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in l&&"webkit"),c=!!("transition"in l||n+"Transition"in l),f=!!("animation"in l||n+"Animation"in l),!o||c&&f||(c=_(l.webkitTransition),f=_(l.webkitAnimation))}return{history:!(!e.history||!e.history.pushState||4>o||a),hasEvent:function(e){if("input"===e&&11>=Ar)return!1;if($(i[e])){var t=u.createElement("div");i[e]="on"+e in t}return i[e]},csp:Gr(),vendorPrefix:n,transitions:c,animations:f,android:o}}]}function Sn(){this.$get=["$templateCache","$http","$q","$sce",function(e,t,n,r){function i(o,a){function u(e){if(!a)throw zi("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,e.status,e.statusText);return n.reject(e)}i.totalPendingRequests++,(!_(o)||$(e.get(o)))&&(o=r.getTrustedResourceUrl(o));var s=t.defaults&&t.defaults.transformResponse;Vr(s)?s=s.filter(function(e){return e!==xt}):s===xt&&(s=null);var l={cache:e,transformResponse:s};return t.get(o,l)["finally"](function(){i.totalPendingRequests--}).then(function(t){return e.put(o,t.data),t.data},u)}return i.totalPendingRequests=0,i}]}function Tn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r.findBindings=function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return o(r,function(e){var r=qr.element(e).data("$binding");r&&o(r,function(r){if(n){var o=new RegExp("(^|\\s)"+Yr(t)+"(\\s|\\||$)");o.test(r)&&i.push(e)}else-1!=r.indexOf(t)&&i.push(e)})}),i},r.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+t+'"]',u=e.querySelectorAll(a);if(u.length)return u}},r.getLocation=function(){return n.url()},r.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},r.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},r}]}function Dn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,u,s){S(o)||(s=u,u=o,o=g);var l,c=V(arguments,3),f=b(s)&&!s,p=(f?r:n).defer(),d=p.promise;return l=t.defer(function(){try{p.resolve(o.apply(null,c))}catch(t){p.reject(t),i(t)}finally{delete a[d.$$timeoutId]}f||e.$apply()},u),d.$$timeoutId=l,a[l]=p,d}var a={};return o.cancel=function(e){return e&&e.$$timeoutId in a?(a[e.$$timeoutId].reject("canceled"),delete a[e.$$timeoutId],t.defer.cancel(e.$$timeoutId)):!1},o}]}function On(e){var t=e;return Ar&&(mo.setAttribute("href",t),t=mo.href),mo.setAttribute("href",t),{href:mo.href,protocol:mo.protocol?mo.protocol.replace(/:$/,""):"",host:mo.host,search:mo.search?mo.search.replace(/^\?/,""):"",hash:mo.hash?mo.hash.replace(/^#/,""):"",hostname:mo.hostname,port:mo.port,pathname:"/"===mo.pathname.charAt(0)?mo.pathname:"/"+mo.pathname}}function En(e){var t=_(e)?On(e):e;return t.protocol===vo.protocol&&t.host===vo.host}function An(){this.$get=v(e)}function Mn(e){function t(e){try{return decodeURIComponent(e)}catch(t){return e}}var n=e[0]||{},r={},i="";return function(){var e,o,a,u,s,l=n.cookie||"";if(l!==i)for(i=l,e=i.split("; "),r={},a=0;a<e.length;a++)o=e[a],u=o.indexOf("="),u>0&&(s=t(o.substring(0,u)),$(r[s])&&(r[s]=t(o.substring(u+1))));return r}}function Pn(){this.$get=Mn}function jn(e){function t(r,i){if(w(r)){var a={};return o(r,function(e,n){a[n]=t(n,e)}),a}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Fn),t("date",er),t("filter",Nn),t("json",tr),t("limitTo",nr),t("lowercase",ko),t("number",zn),t("orderBy",rr),t("uppercase",Co)}function Nn(){return function(e,t,n){if(!i(e)){if(null==e)return e;throw r("filter")("notarray","Expected array but received: {0}",e)}var o,a,u=Rn(t);switch(u){case"function":o=t;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=In(t,n,a);break;default:return e}return Array.prototype.filter.call(e,o)}}function In(e,t,n){var r,i=w(e)&&"$"in e;return t===!0?t=L:S(t)||(t=function(e,t){return $(e)?!1:null===e||null===t?e===t:w(t)||w(e)&&!y(e)?!1:(e=Sr(""+e),t=Sr(""+t),-1!==e.indexOf(t))}),r=function(r){return i&&!w(r)?Un(r,e.$,t,!1):Un(r,e,t,n)}}function Un(e,t,n,r,i){var o=Rn(e),a=Rn(t);if("string"===a&&"!"===t.charAt(0))return!Un(e,t.substring(1),n,r);if(Vr(e))return e.some(function(e){return Un(e,t,n,r)});switch(o){case"object":var u;if(r){for(u in e)if("$"!==u.charAt(0)&&Un(e[u],t,n,!0))return!0;return i?!1:Un(e,t,n,!1)}if("object"===a){for(u in t){var s=t[u];if(!S(s)&&!$(s)){var l="$"===u,c=l?e:e[u];if(!Un(c,s,n,l,l))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Rn(e){return null===e?"null":typeof e}function Fn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return $(n)&&(n=t.CURRENCY_SYM),$(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:Hn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function zn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Hn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function qn(e){var t,n,r,i,o,a=0;for((n=e.indexOf($o))>-1&&(e=e.replace($o,"")),(r=e.search(/e/i))>0?(0>n&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):0>n&&(n=e.length),r=0;e.charAt(r)==bo;r++);if(r==(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)==bo;)o--;for(n-=r,t=[],i=0;o>=r;r++,i++)t[i]=+e.charAt(r)}return n>yo&&(t=t.splice(0,yo-1),a=n-1,n=1),{d:t,e:a,i:n}}function Ln(e,t,n,r){var i=e.d,o=i.length-e.i;t=$(t)?Math.min(Math.max(n,o),r):+t;var a=t+e.i,u=i[a];if(a>0)i.splice(a);else{e.i=1,i.length=a=t+1;for(var s=0;a>s;s++)i[s]=0}for(u>=5&&i[a-1]++;t>o;o++)i.push(0);var l=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0);l&&(i.unshift(l),e.i++)}function Hn(e,t,n,r,i){if(!_(e)&&!k(e)||isNaN(e))return"";var o,a=!isFinite(e),u=!1,s=Math.abs(e)+"",l="";if(a)l="∞";else{o=qn(s),Ln(o,i,t.minFrac,t.maxFrac);var c=o.d,f=o.i,p=o.e,d=[];for(u=c.reduce(function(e,t){return e&&!t},!0);0>f;)c.unshift(0),f++;f>0?d=c.splice(f,c.length):(d=c,c=[0]);var h=[];for(c.length>=t.lgSize&&h.unshift(c.splice(-t.lgSize,c.length).join(""));c.length>t.gSize;)h.unshift(c.splice(-t.gSize,c.length).join(""));c.length&&h.unshift(c.join("")),l=h.join(n),d.length&&(l+=r+d.join("")),p&&(l+="e+"+p)}return 0>e&&!u?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function Vn(e,t,n){var r="";for(0>e&&(r="-",e=-e),e=""+e;e.length<t;)e=bo+e;return n&&(e=e.substr(e.length-t)),r+e}function Wn(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),Vn(o,t,r)}}function Bn(e,t){return function(n,r){var i=n["get"+e](),o=Dr(t?"SHORT"+e:e);return r[o][i]}}function Yn(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=Vn(Math[r>0?"floor":"ceil"](r/60),2)+Vn(Math.abs(r%60),2)}function Gn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(4>=t?5:12)-t)}function Kn(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Zn(e){return function(t){var n=Gn(t.getFullYear()),r=Kn(t),i=+r-+n,o=1+Math.round(i/6048e5);return Vn(o,e)}}function Xn(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function Jn(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function Qn(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function er(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,u=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=d(t[9]+t[10]),o=d(t[9]+t[11])),a.call(r,d(t[1]),d(t[2])-1,d(t[3]));var s=d(t[4]||0)-i,l=d(t[5]||0)-o,c=d(t[6]||0),f=Math.round(1e3*parseFloat("0."+(t[7]||0)));return u.call(r,s,l,c,f),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,i){var a,u,s="",l=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,_(n)&&(n=_o.test(n)?d(n):t(n)),k(n)&&(n=new Date(n)),!C(n)||!isFinite(n.getTime()))return n;for(;r;)u=xo.exec(r),u?(l=H(l,u,1),r=l.pop()):(l.push(r),r=null);var c=n.getTimezoneOffset();return i&&(c=K(i,c),n=X(n,i,!0)),o(l,function(t){a=wo[t],s+=a?a(n,e.DATETIME_FORMATS,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function tr(){return function(e,t){return $(t)&&(t=2),Y(e,t)}}function nr(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):d(t),isNaN(t)?e:(k(e)&&(e=e.toString()),Vr(e)||_(e)?(n=!n||isNaN(n)?0:d(n),n=0>n?Math.max(0,e.length+n):n,t>=0?e.slice(n,n+t):0===n?e.slice(t,e.length):e.slice(Math.max(0,n+t),n)):e)}}function rr(e){function t(t,n){return n=n?-1:1,t.map(function(t){var r=1,i=m;if(S(t))i=t;else if(_(t)&&(("+"==t.charAt(0)||"-"==t.charAt(0))&&(r="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(i=e(t),i.constant))){var o=i();i=function(e){return e[o]}}return{get:i,descending:r*n}})}function n(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function r(e,t){return"function"==typeof e.valueOf&&(e=e.valueOf(),n(e))?e:y(e)&&(e=e.toString(),n(e))?e:t}function o(e,t){var n=typeof e;return null===e?(n="string",e="null"):"string"===n?e=e.toLowerCase():"object"===n&&(e=r(e,t)),{value:e,type:n}}function a(e,t){var n=0;return e.type===t.type?e.value!==t.value&&(n=e.value<t.value?-1:1):n=e.type<t.type?-1:1,n}return function(e,n,r){function u(e,t){return{value:e,predicateValues:l.map(function(n){return o(n.get(e),t)})}}function s(e,t){for(var n=0,r=0,i=l.length;i>r&&!(n=a(e.predicateValues[r],t.predicateValues[r])*l[r].descending);++r);return n}if(!i(e))return e;Vr(n)||(n=[n]),0===n.length&&(n=["+"]);var l=t(n,r);l.push({get:function(){return{}},descending:r?-1:1});var c=Array.prototype.map.call(e,u);return c.sort(s),e=c.map(function(e){return e.value})}}function ir(e){return S(e)&&(e={link:e}),e.restrict=e.restrict||"AC",v(e)}function or(e,t){e.$name=t}function ar(e,t,r,i,a){var u=this,s=[];u.$error={},u.$$success={},u.$pending=n,u.$name=a(t.name||t.ngForm||"")(r),u.$dirty=!1,u.$pristine=!0,u.$valid=!0,u.$invalid=!1,u.$submitted=!1,u.$$parentForm=Do,u.$rollbackViewValue=function(){o(s,function(e){e.$rollbackViewValue()})},u.$commitViewValue=function(){o(s,function(e){e.$commitViewValue()})},u.$addControl=function(e){de(e.$name,"input"),s.push(e),e.$name&&(u[e.$name]=e),e.$$parentForm=u},u.$$renameControl=function(e,t){var n=e.$name;u[n]===e&&delete u[n],u[t]=e,e.$name=t},u.$removeControl=function(e){e.$name&&u[e.$name]===e&&delete u[e.$name],o(u.$pending,function(t,n){u.$setValidity(n,null,e)}),o(u.$error,function(t,n){u.$setValidity(n,null,e)}),o(u.$$success,function(t,n){u.$setValidity(n,null,e)}),F(s,e),e.$$parentForm=Do},wr({ctrl:this,$element:e,set:function(e,t,n){var r=e[t];if(r){var i=r.indexOf(n);-1===i&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(F(r,n),0===r.length&&delete e[t])},$animate:i}),u.$setDirty=function(){i.removeClass(e,pa),i.addClass(e,da),u.$dirty=!0,u.$pristine=!1,u.$$parentForm.$setDirty()},u.$setPristine=function(){i.setClass(e,pa,da+" "+Oo),u.$dirty=!1,u.$pristine=!0,u.$submitted=!1,o(s,function(e){e.$setPristine()})},u.$setUntouched=function(){o(s,function(e){e.$setUntouched()})},u.$setSubmitted=function(){i.addClass(e,Oo),u.$submitted=!0,u.$$parentForm.$setSubmitted()}}function ur(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function sr(e,t,n,r,i,o){lr(e,t,n,r,i,o),ur(r)}function lr(e,t,n,r,i,o){var a=Sr(t[0].type);if(!i.android){var u=!1;t.on("compositionstart",function(e){u=!0}),t.on("compositionend",function(){u=!1,l()})}var s,l=function(e){if(s&&(o.defer.cancel(s),s=null),!u){var i=t.val(),l=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Br(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))t.on("input",l);else{var c=function(e,t,n){s||(s=o.defer(function(){s=null,t&&t.value===n||l(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||t>15&&19>t||t>=37&&40>=t||c(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",c)}t.on("change",l),Ho[a]&&r.$$hasNativeValidators&&a===n.type&&t.on(Lo,function(e){if(!s){var t=this[Cr],n=t.badInput,r=t.typeMismatch;s=o.defer(function(){s=null,(t.badInput!==n||t.typeMismatch!==r)&&l(e)})}}),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function cr(e,t){if(C(e))return e;if(_(e)){Fo.lastIndex=0;var n=Fo.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,u=0,s=0,l=Gn(r),c=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),u=t.getSeconds(),s=t.getMilliseconds()),new Date(r,0,l.getDate()+c,o,a,u,s)}}return NaN}function fr(e,t){return function(n,r){var i,a;if(C(n))return n;if(_(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Po.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n))return i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,function(e,n){n<t.length&&(a[t[n]]=+e)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function pr(e,t,r,i){return function(o,a,u,s,l,c,f){function p(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function d(e){return b(e)&&!C(e)?r(e)||n:e}dr(o,a,u,s),lr(o,a,u,s,l,c);var h,g=s&&s.$options&&s.$options.timezone;if(s.$$parserName=e,s.$parsers.push(function(e){if(s.$isEmpty(e))return null;if(t.test(e)){var i=r(e,h);return g&&(i=X(i,g)),i}return n}),s.$formatters.push(function(e){if(e&&!C(e))throw va("datefmt","Expected `{0}` to be a date",e);return p(e)?(h=e,h&&g&&(h=X(h,g,!0)),f("date")(e,i,g)):(h=null,"")}),b(u.min)||u.ngMin){var m;s.$validators.min=function(e){return!p(e)||$(m)||r(e)>=m},u.$observe("min",function(e){m=d(e),s.$validate()})}if(b(u.max)||u.ngMax){var v;s.$validators.max=function(e){return!p(e)||$(v)||r(e)<=v},u.$observe("max",function(e){v=d(e),s.$validate()})}}}function dr(e,t,r,i){var o=t[0],a=i.$$hasNativeValidators=w(o.validity);a&&i.$parsers.push(function(e){var r=t.prop(Cr)||{};return r.badInput&&!r.typeMismatch?n:e})}function hr(e,t,r,i,o,a){if(dr(e,t,r,i),lr(e,t,r,i,o,a),i.$$parserName="number",i.$parsers.push(function(e){return i.$isEmpty(e)?null:Io.test(e)?parseFloat(e):n}),i.$formatters.push(function(e){if(!i.$isEmpty(e)){if(!k(e))throw va("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}),b(r.min)||r.ngMin){var u;i.$validators.min=function(e){return i.$isEmpty(e)||$(u)||e>=u},r.$observe("min",function(e){b(e)&&!k(e)&&(e=parseFloat(e,10)),u=k(e)&&!isNaN(e)?e:n,i.$validate()})}if(b(r.max)||r.ngMax){var s;i.$validators.max=function(e){return i.$isEmpty(e)||$(s)||s>=e},r.$observe("max",function(e){b(e)&&!k(e)&&(e=parseFloat(e,10)),s=k(e)&&!isNaN(e)?e:n,i.$validate()})}}function gr(e,t,n,r,i,o){lr(e,t,n,r,i,o),ur(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||jo.test(n)}}function mr(e,t,n,r,i,o){lr(e,t,n,r,i,o),ur(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||No.test(n)}}function vr(e,t,n,r){$(n.name)&&t.attr("name",s());var i=function(e){t[0].checked&&r.$setViewValue(n.value,e&&e.type)};t.on("click",i),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function yr(e,t,n,r,i){var o;if(b(r)){if(o=e(r),!o.constant)throw va("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}function $r(e,t,n,r,i,o,a,u){var s=yr(u,e,"ngTrueValue",n.ngTrueValue,!0),l=yr(u,e,"ngFalseValue",n.ngFalseValue,!1),c=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",c),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return e===!1},r.$formatters.push(function(e){return L(e,s)}),r.$parsers.push(function(e){return e?s:l})}function br(e,t){return e="ngClass"+e,["$animate",function(n){function r(e,t){var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i==t[o])continue e;n.push(i)}return n}function i(e){var t=[];return Vr(e)?(o(e,function(e){t=t.concat(i(e))}),t):_(e)?e.split(" "):w(e)?(o(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t):e}return{restrict:"AC",link:function(a,u,s){function l(e){var t=f(e,1);s.$addClass(t)}function c(e){var t=f(e,-1);s.$removeClass(t)}function f(e,t){var n=u.data("$classCounts")||me(),r=[];return o(e,function(e){(t>0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&r.push(e))}),u.data("$classCounts",n),r.join(" ")}function p(e,t){var i=r(t,e),o=r(e,t);i=f(i,1),o=f(o,-1),i&&i.length&&n.addClass(u,i),o&&o.length&&n.removeClass(u,o)}function d(e){if(t===!0||a.$index%2===t){var n=i(e||[]);if(h){if(!L(e,h)){var r=i(h);p(r,n)}}else l(n)}h=Vr(e)?e.map(function(e){return q(e)}):q(e)}var h;a.$watch(s[e],d,!0),s.$observe("class",function(t){d(a.$eval(s[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,r){var o=1&n;if(o!==(1&r)){var u=i(a.$eval(s[e]));o===t?l(u):c(u)}})}}}]}function wr(e){function t(e,t,s){$(t)?r("$pending",e,s):i("$pending",e,s),P(t)?t?(f(u.$error,e,s),c(u.$$success,e,s)):(c(u.$error,e,s),f(u.$$success,e,s)):(f(u.$error,e,s),f(u.$$success,e,s)),u.$pending?(o(ma,!0),u.$valid=u.$invalid=n,a("",null)):(o(ma,!1),u.$valid=xr(u.$error),u.$invalid=!u.$valid,a("",u.$valid));var l;l=u.$pending&&u.$pending[e]?n:u.$error[e]?!1:u.$$success[e]?!0:null,a(e,l),u.$$parentForm.$setValidity(e,l,u)}function r(e,t,n){u[e]||(u[e]={}),c(u[e],t,n)}function i(e,t,r){u[e]&&f(u[e],t,r),xr(u[e])&&(u[e]=n)}function o(e,t){t&&!l[e]?(p.addClass(s,e),l[e]=!0):!t&&l[e]&&(p.removeClass(s,e),l[e]=!1)}function a(e,t){e=e?"-"+le(e,"-"):"",o(ca+e,t===!0),o(fa+e,t===!1)}var u=e.ctrl,s=e.$element,l={},c=e.set,f=e.unset,p=e.$animate;l[fa]=!(l[ca]=s.hasClass(ca)),u.$setValidity=t}function xr(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function _r(e){e[0].hasAttribute("selected")&&(e[0].selected=!0)}var kr=/^\/(.+)\/([a-z]*)$/,Cr="validity",Sr=function(e){return _(e)?e.toLowerCase():e},Tr=Object.prototype.hasOwnProperty,Dr=function(e){return _(e)?e.toUpperCase():e},Or=function(e){return _(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},Er=function(e){return _(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(Sr=Or,Dr=Er);var Ar,Mr,Pr,jr,Nr=[].slice,Ir=[].splice,Ur=[].push,Rr=Object.prototype.toString,Fr=Object.getPrototypeOf,zr=r("ng"),qr=e.angular||(e.angular={}),Lr=0;Ar=t.documentMode,g.$inject=[],m.$inject=[];var Hr,Vr=Array.isArray,Wr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Br=function(e){return _(e)?e.trim():e},Yr=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Gr=function(){function e(){try{return new Function(""),!1}catch(e){return!0}}if(!b(Gr.rules)){var n=t.querySelector("[ng-csp]")||t.querySelector("[data-ng-csp]");if(n){var r=n.getAttribute("ng-csp")||n.getAttribute("data-ng-csp");Gr.rules={noUnsafeEval:!r||-1!==r.indexOf("no-unsafe-eval"),noInlineStyle:!r||-1!==r.indexOf("no-inline-style")}}else Gr.rules={noUnsafeEval:e(),noInlineStyle:!1}}return Gr.rules},Kr=function(){if(b(Kr.name_))return Kr.name_;var e,n,r,i,o=Xr.length;for(n=0;o>n;++n)if(r=Xr[n],e=t.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return Kr.name_=i},Zr=/:/g,Xr=["ng-","data-ng-","ng:","x-ng-"],Jr=/[A-Z]/g,Qr=!1,ei=1,ti=2,ni=3,ri=8,ii=9,oi=11,ai={full:"1.4.14",major:1,minor:4,dot:14,codeName:"material-distinction"};Oe.expando="ng339";var ui=Oe.cache={},si=1,li=function(e,t,n){e.addEventListener(t,n,!1)},ci=function(e,t,n){e.removeEventListener(t,n,!1)};Oe._data=function(e){return this.cache[e[this.expando]]||{}};var fi=/([\:\-\_]+(.))/g,pi=/^moz([A-Z])/,di={mouseleave:"mouseout",mouseenter:"mouseover"},hi=r("jqLite"),gi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,mi=/<|&#?\w+;/,vi=/<([\w:-]+)/,yi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,$i={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,"",""]};$i.optgroup=$i.option,$i.tbody=$i.tfoot=$i.colgroup=$i.caption=$i.thead,$i.th=$i.td;var bi=Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},wi=Oe.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),Oe(e).on("load",r))},toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return Mr(e>=0?this[e]:this[this.length+e])},length:0,push:Ur,sort:[].sort,splice:[].splice},xi={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){xi[Sr(e)]=e});var _i={};o("input,select,option,textarea,button,form,details".split(","),function(e){_i[e]=!0});var ki={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};o({data:Ne,removeData:Pe,hasData:Ce},function(e,t){Oe[t]=e}),o({data:Ne,inheritedData:qe,scope:function(e){return Mr.data(e,"$scope")||qe(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Mr.data(e,"$isolateScope")||Mr.data(e,"$isolateScopeNoTemplate")},controller:ze,injector:function(e){return qe(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Ie,css:function(e,t,n){return t=xe(t),b(n)?void(e.style[t]=n):e.style[t]},attr:function(e,t,r){var i=e.nodeType;if(i!==ni&&i!==ti&&i!==ri){var o=Sr(t);if(xi[o]){if(!b(r))return e[t]||(e.attributes.getNamedItem(t)||g).specified?o:n;r?(e[t]=!0,e.setAttribute(t,o)):(e[t]=!1,e.removeAttribute(o))}else if(b(r))e.setAttribute(t,r);else if(e.getAttribute){var a=e.getAttribute(t,2);return null===a?n:a}}},prop:function(e,t,n){return b(n)?void(e[t]=n):e[t]},text:function(){function e(e,t){if($(t)){var n=e.nodeType;return n===ei||n===ni?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if($(t)){if(e.multiple&&"select"===R(e)){var n=[];return o(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){return $(t)?e.innerHTML:(Ae(e,!0),void(e.innerHTML=t))},empty:Le},function(e,t){Oe.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==Le&&$(2==e.length&&e!==Ie&&e!==ze?t:n)){if(w(t)){for(r=0;o>r;r++)if(e===Ne)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var a=e.$dv,u=$(a)?Math.min(o,1):o,s=0;u>s;s++){var l=e(this[s],t,n);a=a?a+l:l}return a}for(r=0;o>r;r++)e(this[r],t,n);return this}}),o({removeData:Pe,on:function(e,t,r,i){if(b(i))throw hi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ke(e)){var o=je(e,!0),a=o.events,u=o.handle;u||(u=o.handle=Ye(e,a));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],l=s.length,c=function(t,n,i){var o=a[t];o||(o=a[t]=[],o.specialHandlerWrapper=n,"$destroy"===t||i||li(e,t,u)),o.push(r)};l--;)t=s[l],di[t]?(c(di[t],Ke),c(t,n,!0)):c(t)}},off:Me,one:function(e,t,n){e=Mr(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;Ae(e),o(new Oe(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){e.nodeType===ei&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===ei||n===oi){t=new Oe(t);for(var r=0,i=t.length;i>r;r++){var o=t[r];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===ei){var n=e.firstChild;o(new Oe(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){De(e,Mr(t).eq(0).clone()[0])},remove:He,detach:function(e){He(e,!0)},after:function(e,t){var n=e,r=e.parentNode;t=new Oe(t);for(var i=0,o=t.length;o>i;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Re,removeClass:Ue,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var r=n;$(r)&&(r=!Ie(e,t)),(r?Re:Ue)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==oi?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Ee,triggerHandler:function(e,t,n){var r,i,a,u=t.type||t,s=je(e),l=s&&s.events,c=l&&l[u];c&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:g,type:u,target:e},t.type&&(r=f(r,t)),i=q(c),a=n?[r].concat(n):[r],o(i,function(t){r.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){Oe.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;a>o;o++)$(i)?(i=e(this[o],t,n,r),b(i)&&(i=Mr(i))):Fe(i,e(this[o],t,n,r));return b(i)?i:this},Oe.prototype.bind=Oe.prototype.on,Oe.prototype.unbind=Oe.prototype.off}),Je.prototype={put:function(e,t){this[Xe(e,this.nextUid)]=t},get:function(e){return this[Xe(e,this.nextUid)]},remove:function(e){var t=this[e=Xe(e,this.nextUid)];return delete this[e],t}};var Ci=[function(){this.$get=[function(){return Je}]}],Si=/^[^\(]*\(\s*([^\)]*)\)/m,Ti=/,/,Di=/^\s*(_?)(\S+?)\1\s*$/,Oi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ei=r("$injector");tt.$$annotate=et;var Ai=r("$animate"),Mi=1,Pi="ng-animate",ji=function(){this.$get=function(){}},Ni=function(){var e=new Je,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(e,t,n){var r=!1;return t&&(t=_(t)?t.split(" "):Vr(t)?t:[],o(t,function(t){t&&(r=!0,e[t]=n)})),r}function a(){o(t,function(t){var n=e.get(t);if(n){var r=ot(t.attr("class")),i="",a="";o(n,function(e,t){var n=!!r[t];e!==n&&(e?i+=(i.length?" ":"")+t:a+=(a.length?" ":"")+t)}),o(t,function(e){i&&Re(e,i),a&&Ue(e,a)}),e.remove(t)}}),t.length=0}function u(n,o,u){var s=e.get(n)||{},l=i(s,o,!0),c=i(s,u,!1);(l||c)&&(e.put(n,s),t.push(n),1===t.length&&r.$$postDigest(a))}return{enabled:g,on:g,off:g,pin:g,push:function(e,t,r,i){i&&i(),r=r||{},r.from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&u(e,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},Ii=["$provide",function(e){var t=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Ai("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.classNameFilter=function(e){if(1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null,this.$$classNameFilter)){var t=new RegExp("(\\s+|\\/)"+Pi+"(\\s+|\\/)");if(t.test(this.$$classNameFilter.toString()))throw Ai("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Pi)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=it(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,r,i,o){return r=r&&Mr(r),i=i&&Mr(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",at(o))},move:function(n,r,i,o){return r=r&&Mr(r),i=i&&Mr(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",at(o))},leave:function(t,n){return e.push(t,"leave",at(n),function(){t.remove()})},addClass:function(t,n,r){return r=at(r),r.addClass=rt(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=at(r),r.removeClass=rt(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=at(i),i.addClass=rt(i.addClass,n),i.removeClass=rt(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=at(o),o.from=o.from?f(o.from,n):n,o.to=o.to?f(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=rt(o.tempClasses,i),e.push(t,"animate",o)}}}]}],Ui=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e(function(){for(var e=0;e<n.length;e++)n[e]();n=[]})}var n=[];return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}]},Ri=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(e,t,n,r,i){function a(e){this.setHost(e);var t=n(),o=function(e){i(e,0,!1)};this._doneCallbacks=[],this._tick=function(e){var n=r[0];n&&n.hidden?o(e):t(e)},this._state=0}var u=0,s=1,l=2;return a.chain=function(e,t){function n(){return r===e.length?void t(!0):void e[r](function(e){return e===!1?void t(!1):(r++,void n())})}var r=0;n()},a.all=function(e,t){function n(n){i=i&&n,++r===e.length&&t(i)}var r=0,i=!0;o(e,function(e){e.done(n)})},a.prototype={setHost:function(e){this.host=e||{}},done:function(e){this._state===l?e():this._doneCallbacks.push(e)},progress:g,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){t===!1?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},"catch":function(e){return this.getPromise()["catch"](e)},"finally":function(e){return this.getPromise()["finally"](e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;t._state===u&&(t._state=s,t._tick(function(){t._resolve(e)}))},_resolve:function(e){this._state!==l&&(o(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=l)}},a}]},Fi=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function i(){return e(function(){o(),u||s.complete(),u=!0}),s}function o(){a.addClass&&(t.addClass(a.addClass),a.addClass=null),a.removeClass&&(t.removeClass(a.removeClass),a.removeClass=null),a.to&&(t.css(a.to),a.to=null)}var a=r||{};a.$$prepared||(a=z(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(t.css(a.from),a.from=null);var u,s=new n;return{start:i,end:i}}}]},zi=r("$compile");ft.$inject=["$provide","$$sanitizeUriProvider"];var qi=/^((?:x|data)[\:\-_])/i,Li=r("$controller"),Hi=/^(\S+)(\s+as\s+([\w$]+))?$/,Vi=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof Mr&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},Wi="application/json",Bi={"Content-Type":Wi+";charset=utf-8"},Yi=/^\[|^\{(?!\{)/,Gi={"[":/]$/,"{":/}$/},Ki=/^\)\]\}',?\n/,Zi=r("$http"),Xi=function(e){return function(){throw Zi("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",e)}},Ji=qr.$interpolateMinErr=r("$interpolate");Ji.throwNoconcat=function(e){throw Ji("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",e)},Ji.interr=function(e,t){return Ji("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var Qi=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,eo={http:80,https:443,ftp:21},to=r("$location"),no={$$html5:!1,$$replace:!1,absUrl:Wt("$$absUrl"),url:function(e){if($(e))return this.$$url;var t=Qi.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:Wt("$$protocol"),host:Wt("$$host"),port:Wt("$$port"),path:Bt("$$path",function(e){return e=null!==e?e.toString():"","/"==e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(_(e)||k(e))e=e.toString(),this.$$search=ee(e);else{if(!w(e))throw to("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=z(e,{}),o(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:$(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:Bt("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};o([Vt,Ht,Lt],function(e){e.prototype=Object.create(no),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==Lt||!this.$$html5)throw to("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=$(t)?null:t,this}});var ro=r("$parse"),io=Function.prototype.call,oo=Function.prototype.apply,ao=Function.prototype.bind,uo=me();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){uo[e]=!0});var so={n:"\n",f:"\f",r:"\r",t:"	",v:"","'":"'",'"':'"'},lo=function(e){this.options=e};lo.prototype={constructor:lo,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(t))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=uo[t],o=uo[n],a=uo[r];if(i||o||a){var u=a?r:o?n:t;this.tokens.push({index:this.index,text:u,operator:!0}),this.index+=u.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):!1},isNumber:function(e){return e>="0"&&"9">=e&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"	"===e||"\n"===e||""===e||" "===e},isIdent:function(e){return e>="a"&&"z">=e||e>="A"&&"Z">=e||"_"===e||"$"===e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=b(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw ro("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=Sr(this.text.charAt(this.index));if("."==n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){for(var e=this.index;this.index<this.text.length;){var t=this.text.charAt(this.index);if(!this.isIdent(t)&&!this.isNumber(t))break;this.index++}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{var u=so[o];n+=u||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var co=function(e,t){this.lexer=e,this.options=t};co.Program="Program",co.ExpressionStatement="ExpressionStatement",co.AssignmentExpression="AssignmentExpression",co.ConditionalExpression="ConditionalExpression",co.LogicalExpression="LogicalExpression",co.BinaryExpression="BinaryExpression",co.UnaryExpression="UnaryExpression",co.CallExpression="CallExpression",co.MemberExpression="MemberExpression",co.Identifier="Identifier",co.Literal="Literal",co.ArrayExpression="ArrayExpression",co.Property="Property",co.ObjectExpression="ObjectExpression",co.ThisExpression="ThisExpression",co.NGValueParameter="NGValueParameter",co.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:co.Program,body:e}},expressionStatement:function(){return{type:co.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e,t=this.expression();e=this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();return this.expect("=")&&(e={type:co.AssignmentExpression,left:e,right:this.assignment(),operator:"="}),e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:co.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:co.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:co.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:co.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:co.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:co.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:co.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:co.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.constants.hasOwnProperty(this.peek().text)?e=z(this.constants[this.consume().text]):this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:co.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:co.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:co.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:co.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do e.push(this.expression());while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:co.Identifier,name:e.text}},constant:function(){return{type:co.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:co.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:co.Property,kind:"init"},this.peek().constant?e.key=this.constant():this.peek().identifier?e.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),e.value=this.expression(),t.push(e)}while(this.expect(","));return this.consume("}"),{type:co.ObjectExpression,properties:t}},throwError:function(e,t){throw ro("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw ro("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw ro("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return i?(this.tokens.shift(),i):!1},constants:{"true":{type:co.Literal,value:!0},"false":{type:co.Literal,value:!1},"null":{type:co.Literal,value:null},undefined:{type:co.Literal,value:n},"this":{type:co.ThisExpression}}},cn.prototype={compile:function(e,t){var r=this,i=this.astBuilder.ast(e);this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},rn(i,r.$filter);var a,u="";if(this.stage="assign",a=un(i)){this.state.computing="assign";var s=this.nextId();this.recurse(a,s),this.return_(s),u="fn.assign="+this.generateFunction("assign","s,v,l")}var l=on(i.body);r.stage="inputs",o(l,function(e,t){var n="fn"+t;r.state[n]={vars:[],body:[],own:{}},r.state.computing=n;var i=r.nextId();r.recurse(e,i),r.return_(i),r.state.inputs.push(n),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(i);var c='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+u+this.watchFns()+"return fn;",f=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",c)(this.$filter,Kt,Xt,Jt,Zt,Qt,en,tn,e);return this.state=this.stage=n,f.literal=sn(i),f.constant=ln(i),f},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return o(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return o(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,r,i,a,u){var s,l,c,f,p=this;if(i=i||g,!u&&b(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,r,i,a,!0));switch(e.type){case co.Program:o(e.body,function(t,r){p.recurse(t.expression,n,n,function(e){l=e}),r!==e.body.length-1?p.current().body.push(l,";"):p.return_(l)});break;case co.Literal:f=this.escape(e.value),this.assign(t,f),i(f);break;case co.UnaryExpression:this.recurse(e.argument,n,n,function(e){l=e}),f=e.operator+"("+this.ifDefined(l,0)+")",this.assign(t,f),i(f);break;case co.BinaryExpression:this.recurse(e.left,n,n,function(e){s=e}),this.recurse(e.right,n,n,function(e){l=e}),f="+"===e.operator?this.plus(s,l):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(l,0):"("+s+")"+e.operator+"("+l+")",this.assign(t,f),i(f);break;case co.LogicalExpression:t=t||this.nextId(),p.recurse(e.left,t),p.if_("&&"===e.operator?t:p.not(t),p.lazyRecurse(e.right,t)),i(t);break;case co.ConditionalExpression:t=t||this.nextId(),p.recurse(e.test,t),p.if_(t,p.lazyRecurse(e.alternate,t),p.lazyRecurse(e.consequent,t)),i(t);break;case co.Identifier:t=t||this.nextId(),r&&(r.context="inputs"===p.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),r.computed=!1,r.name=e.name),Kt(e.name),p.if_("inputs"===p.stage||p.not(p.getHasOwnProperty("l",e.name)),function(){p.if_("inputs"===p.stage||"s",function(){a&&1!==a&&p.if_(p.not(p.nonComputedMember("s",e.name)),p.lazyAssign(p.nonComputedMember("s",e.name),"{}")),p.assign(t,p.nonComputedMember("s",e.name))})},t&&p.lazyAssign(t,p.nonComputedMember("l",e.name))),(p.state.expensiveChecks||pn(e.name))&&p.addEnsureSafeObject(t),i(t);break;case co.MemberExpression:s=r&&(r.context=this.nextId())||this.nextId(),t=t||this.nextId(),p.recurse(e.object,s,n,function(){p.if_(p.notNull(s),function(){a&&1!==a&&p.addEnsureSafeAssignContext(s),e.computed?(l=p.nextId(),p.recurse(e.property,l),p.getStringValue(l),p.addEnsureSafeMemberName(l),a&&1!==a&&p.if_(p.not(p.computedMember(s,l)),p.lazyAssign(p.computedMember(s,l),"{}")),f=p.ensureSafeObject(p.computedMember(s,l)),p.assign(t,f),r&&(r.computed=!0,r.name=l)):(Kt(e.property.name),a&&1!==a&&p.if_(p.not(p.nonComputedMember(s,e.property.name)),p.lazyAssign(p.nonComputedMember(s,e.property.name),"{}")),f=p.nonComputedMember(s,e.property.name),(p.state.expensiveChecks||pn(e.property.name))&&(f=p.ensureSafeObject(f)),p.assign(t,f),r&&(r.computed=!1,r.name=e.property.name))},function(){p.assign(t,"undefined")}),i(t)},!!a);break;case co.CallExpression:t=t||this.nextId(),e.filter?(l=p.filter(e.callee.name),c=[],o(e.arguments,function(e){var t=p.nextId();p.recurse(e,t),c.push(t)}),f=l+"("+c.join(",")+")",p.assign(t,f),i(t)):(l=p.nextId(),s={},c=[],p.recurse(e.callee,l,s,function(){p.if_(p.notNull(l),function(){p.addEnsureSafeFunction(l),o(e.arguments,function(e){p.recurse(e,p.nextId(),n,function(e){c.push(p.ensureSafeObject(e))})}),s.name?(p.state.expensiveChecks||p.addEnsureSafeObject(s.context),f=p.member(s.context,s.name,s.computed)+"("+c.join(",")+")"):f=l+"("+c.join(",")+")",f=p.ensureSafeObject(f),p.assign(t,f)},function(){p.assign(t,"undefined")}),i(t)}));break;case co.AssignmentExpression:if(l=this.nextId(),s={},!an(e.left))throw ro("lval","Trying to assign a value to a non l-value");this.recurse(e.left,n,s,function(){p.if_(p.notNull(s.context),function(){p.recurse(e.right,l),p.addEnsureSafeObject(p.member(s.context,s.name,s.computed)),p.addEnsureSafeAssignContext(s.context),f=p.member(s.context,s.name,s.computed)+e.operator+l,p.assign(t,f),i(t||f)})},1);break;case co.ArrayExpression:c=[],o(e.elements,function(e){p.recurse(e,p.nextId(),n,function(e){c.push(e)})}),f="["+c.join(",")+"]",this.assign(t,f),i(f);break;case co.ObjectExpression:c=[],o(e.properties,function(e){p.recurse(e.value,p.nextId(),n,function(t){c.push(p.escape(e.key.type===co.Identifier?e.key.name:""+e.key.value)+":"+t)})}),f="{"+c.join(",")+"}",this.assign(t,f),i(f);break;case co.ThisExpression:this.assign(t,"s"),i("s");break;case co.NGValueParameter:this.assign(t,"v"),i("v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){return e?(this.current().body.push(e,"=",t,";"),e):void 0},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(e===!0)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return e+"."+t},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},addEnsureSafeObject:function(e){this.current().body.push(this.ensureSafeObject(e),";")},addEnsureSafeMemberName:function(e){this.current().body.push(this.ensureSafeMemberName(e),";")},addEnsureSafeFunction:function(e){this.current().body.push(this.ensureSafeFunction(e),";")},addEnsureSafeAssignContext:function(e){this.current().body.push(this.ensureSafeAssignContext(e),";")},ensureSafeObject:function(e){return"ensureSafeObject("+e+",text)"},ensureSafeMemberName:function(e){return"ensureSafeMemberName("+e+",text)"},ensureSafeFunction:function(e){return"ensureSafeFunction("+e+",text)"},getStringValue:function(e){this.assign(e,"getStringValue("+e+",text)")},ensureSafeAssignContext:function(e){return"ensureSafeAssignContext("+e+",text)"},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(_(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(k(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(null===e)return"null";if("undefined"==typeof e)return"undefined";throw ro("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},fn.prototype={compile:function(e,t){var n=this,r=this.astBuilder.ast(e);this.expression=e,this.expensiveChecks=t,rn(r,n.$filter);var i,a;(i=un(r))&&(a=this.recurse(i));var u,s=on(r.body);s&&(u=[],o(s,function(e,t){var r=n.recurse(e);e.input=r,u.push(r),e.watchId=t}));var l=[];o(r.body,function(e){l.push(n.recurse(e.expression))});var c=0===r.body.length?function(){}:1===r.body.length?l[0]:function(e,t){var n;return o(l,function(r){n=r(e,t)}),n};return a&&(c.assign=function(e,t,n){return a(e,n,t)}),u&&(c.inputs=u),c.literal=sn(r),c.constant=ln(r),c},recurse:function(e,t,r){var i,a,u,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case co.Literal:return this.value(e.value,t);case co.UnaryExpression:return a=this.recurse(e.argument),this["unary"+e.operator](a,t);case co.BinaryExpression:return i=this.recurse(e.left),a=this.recurse(e.right),this["binary"+e.operator](i,a,t);case co.LogicalExpression:return i=this.recurse(e.left),a=this.recurse(e.right),this["binary"+e.operator](i,a,t);case co.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case co.Identifier:return Kt(e.name,s.expression),s.identifier(e.name,s.expensiveChecks||pn(e.name),t,r,s.expression);case co.MemberExpression:return i=this.recurse(e.object,!1,!!r),e.computed||(Kt(e.property.name,s.expression),a=e.property.name),e.computed&&(a=this.recurse(e.property)),e.computed?this.computedMember(i,a,t,r,s.expression):this.nonComputedMember(i,a,s.expensiveChecks,t,r,s.expression);case co.CallExpression:return u=[],o(e.arguments,function(e){u.push(s.recurse(e))}),e.filter&&(a=this.$filter(e.callee.name)),e.filter||(a=this.recurse(e.callee,!0)),e.filter?function(e,r,i,o){for(var s=[],l=0;l<u.length;++l)s.push(u[l](e,r,i,o));var c=a.apply(n,s,o);return t?{context:n,name:n,value:c}:c}:function(e,n,r,i){var o,l=a(e,n,r,i);if(null!=l.value){Xt(l.context,s.expression),Jt(l.value,s.expression);for(var c=[],f=0;f<u.length;++f)c.push(Xt(u[f](e,n,r,i),s.expression));o=Xt(l.value.apply(l.context,c),s.expression)}return t?{value:o}:o};case co.AssignmentExpression:return i=this.recurse(e.left,!0,1),a=this.recurse(e.right),function(e,n,r,o){var u=i(e,n,r,o),l=a(e,n,r,o);return Xt(u.value,s.expression),Qt(u.context),u.context[u.name]=l,t?{value:l}:l};case co.ArrayExpression:return u=[],o(e.elements,function(e){u.push(s.recurse(e))}),function(e,n,r,i){for(var o=[],a=0;a<u.length;++a)o.push(u[a](e,n,r,i));return t?{value:o}:o};case co.ObjectExpression:return u=[],o(e.properties,function(e){u.push({key:e.key.type===co.Identifier?e.key.name:""+e.key.value,value:s.recurse(e.value)})}),function(e,n,r,i){for(var o={},a=0;a<u.length;++a)o[u[a].key]=u[a].value(e,n,r,i);return t?{value:o}:o};case co.ThisExpression:return function(e){return t?{value:e}:e};case co.NGValueParameter:return function(e,n,r,i){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){
  var a=e(n,r,i,o);return a=b(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=b(a)?-a:0,t?{value:a}:a}},"unary!":function(e,t){return function(n,r,i,o){var a=!e(n,r,i,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(r,i,o,a){var u=e(r,i,o,a),s=t(r,i,o,a),l=tn(u,s);return n?{value:l}:l}},"binary-":function(e,t,n){return function(r,i,o,a){var u=e(r,i,o,a),s=t(r,i,o,a),l=(b(u)?u:0)-(b(s)?s:0);return n?{value:l}:l}},"binary*":function(e,t,n){return function(r,i,o,a){var u=e(r,i,o,a)*t(r,i,o,a);return n?{value:u}:u}},"binary/":function(e,t,n){return function(r,i,o,a){var u=e(r,i,o,a)/t(r,i,o,a);return n?{value:u}:u}},"binary%":function(e,t,n){return function(r,i,o,a){var u=e(r,i,o,a)%t(r,i,o,a);return n?{value:u}:u}},"binary===":function(e,t,n){return function(r,i,o,a){var u=e(r,i,o,a)===t(r,i,o,a);return n?{value:u}:u}},"binary!==":function(e,t,n){return function(r,i,o,a){var u=e(r,i,o,a)!==t(r,i,o,a);return n?{value:u}:u}},"binary==":function(e,t,n){return function(r,i,o,a){var u=e(r,i,o,a)==t(r,i,o,a);return n?{value:u}:u}},"binary!=":function(e,t,n){return function(r,i,o,a){var u=e(r,i,o,a)!=t(r,i,o,a);return n?{value:u}:u}},"binary<":function(e,t,n){return function(r,i,o,a){var u=e(r,i,o,a)<t(r,i,o,a);return n?{value:u}:u}},"binary>":function(e,t,n){return function(r,i,o,a){var u=e(r,i,o,a)>t(r,i,o,a);return n?{value:u}:u}},"binary<=":function(e,t,n){return function(r,i,o,a){var u=e(r,i,o,a)<=t(r,i,o,a);return n?{value:u}:u}},"binary>=":function(e,t,n){return function(r,i,o,a){var u=e(r,i,o,a)>=t(r,i,o,a);return n?{value:u}:u}},"binary&&":function(e,t,n){return function(r,i,o,a){var u=e(r,i,o,a)&&t(r,i,o,a);return n?{value:u}:u}},"binary||":function(e,t,n){return function(r,i,o,a){var u=e(r,i,o,a)||t(r,i,o,a);return n?{value:u}:u}},"ternary?:":function(e,t,n,r){return function(i,o,a,u){var s=e(i,o,a,u)?t(i,o,a,u):n(i,o,a,u);return r?{value:s}:s}},value:function(e,t){return function(){return t?{context:n,name:n,value:e}:e}},identifier:function(e,t,r,i,o){return function(a,u,s,l){var c=u&&e in u?u:a;i&&1!==i&&c&&!c[e]&&(c[e]={});var f=c?c[e]:n;return t&&Xt(f,o),r?{context:c,name:e,value:f}:f}},computedMember:function(e,t,n,r,i){return function(o,a,u,s){var l,c,f=e(o,a,u,s);return null!=f&&(l=t(o,a,u,s),l=Zt(l),Kt(l,i),r&&1!==r&&(Qt(f),f&&!f[l]&&(f[l]={})),c=f[l],Xt(c,i)),n?{context:f,name:l,value:c}:c}},nonComputedMember:function(e,t,r,i,o,a){return function(u,s,l,c){var f=e(u,s,l,c);o&&1!==o&&(Qt(f),f&&!f[t]&&(f[t]={}));var p=null!=f?f[t]:n;return(r||pn(t))&&Xt(p,a),i?{context:f,name:t,value:p}:p}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}};var fo=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new co(this.lexer),this.astCompiler=n.csp?new fn(this.ast,t):new cn(this.ast,t)};fo.prototype={constructor:fo,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}};var po=Object.prototype.valueOf,ho=r("$sce"),go={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},zi=r("$compile"),mo=t.createElement("a"),vo=On(e.location.href);Mn.$inject=["$document"],jn.$inject=["$provide"];var yo=22,$o=".",bo="0";Fn.$inject=["$locale"],zn.$inject=["$locale"];var wo={yyyy:Wn("FullYear",4),yy:Wn("FullYear",2,0,!0),y:Wn("FullYear",1),MMMM:Bn("Month"),MMM:Bn("Month",!0),MM:Wn("Month",2,1),M:Wn("Month",1,1),dd:Wn("Date",2),d:Wn("Date",1),HH:Wn("Hours",2),H:Wn("Hours",1),hh:Wn("Hours",2,-12),h:Wn("Hours",1,-12),mm:Wn("Minutes",2),m:Wn("Minutes",1),ss:Wn("Seconds",2),s:Wn("Seconds",1),sss:Wn("Milliseconds",3),EEEE:Bn("Day"),EEE:Bn("Day",!0),a:Xn,Z:Yn,ww:Zn(2),w:Zn(1),G:Jn,GG:Jn,GGG:Jn,GGGG:Qn},xo=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,_o=/^\-?\d+$/;er.$inject=["$locale"];var ko=v(Sr),Co=v(Dr);rr.$inject=["$parse"];var So=v({restrict:"E",compile:function(e,t){return t.href||t.xlinkHref?void 0:function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Rr.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),To={};o(xi,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!=e){var r=pt("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),To[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(ki,function(e,t){To[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(kr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=pt("ng-"+e);To[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===Rr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){return t?(i.$set(a,t),void(Ar&&o&&r.prop(o,i[a]))):void("href"===e&&i.$set(a,null))})}}}});var Do={$addControl:g,$$renameControl:or,$removeControl:g,$setValidity:g,$setDirty:g,$setPristine:g,$setSubmitted:g},Oo="ng-submitted";ar.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Eo=function(e){return["$timeout","$parse",function(t,r){function i(e){return""===e?r('this[""]').assign:r(e).assign||g}var o={name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:ar,compile:function(r,o){r.addClass(pa).addClass(ca);var a=o.name?"name":e&&o.ngForm?"ngForm":!1;return{pre:function(e,r,o,u){var s=u[0];if(!("action"in o)){var l=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()};li(r[0],"submit",l),r.on("$destroy",function(){t(function(){ci(r[0],"submit",l)},0,!1)})}var c=u[1]||s.$$parentForm;c.$addControl(s);var p=a?i(s.$name):g;a&&(p(e,s),o.$observe(a,function(t){s.$name!==t&&(p(e,n),s.$$parentForm.$$renameControl(s,t),(p=i(s.$name))(e,s))})),r.on("$destroy",function(){s.$$parentForm.$removeControl(s),p(e,n),f(s,Do)})}}}};return o}]},Ao=Eo(),Mo=Eo(!0),Po=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,jo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,No=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Io=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Uo=/^(\d{4})-(\d{2})-(\d{2})$/,Ro=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Fo=/^(\d{4})-W(\d\d)$/,zo=/^(\d{4})-(\d\d)$/,qo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Lo="keydown wheel mousedown",Ho=me();o("date,datetime-local,month,time,week".split(","),function(e){Ho[e]=!0});var Vo={text:sr,date:pr("date",Uo,fr(Uo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":pr("datetimelocal",Ro,fr(Ro,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:pr("time",qo,fr(qo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:pr("week",Fo,cr,"yyyy-Www"),month:pr("month",zo,fr(zo,["yyyy","MM"]),"yyyy-MM"),number:hr,url:gr,email:mr,radio:vr,checkbox:$r,hidden:g,button:g,submit:g,reset:g,file:g},Wo=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,u){u[0]&&(Vo[Sr(a.type)]||Vo.text)(i,o,a,u[0],t,e,n,r)}}}}],Bo=/^(true|false|\d+)$/,Yo=function(){return{restrict:"A",priority:100,compile:function(e,t){return Bo.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)})}}}},Go=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,function(e){n.textContent=$(e)?"":e})}}}}],Ko=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=$(e)?"":e})}}}}],Zo=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(t){return e.valueOf(t)});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")})}}}}],Xo=v({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),Jo=br("",!0),Qo=br("Odd",0),ea=br("Even",1),ta=ir({compile:function(e,t){t.$set("ngCloak",n),e.removeClass("ng-cloak")}}),na=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ra={},ia={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=pt("ng-"+e);ra[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t],null,!0);return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})};ia[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var oa=["$animate",function(e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var u,s,l;n.$watch(i.ngIf,function(n){n?s||a(function(n,o){s=o,n[n.length++]=t.createComment(" end ngIf: "+i.ngIf+" "),u={clone:n},e.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),s&&(s.$destroy(),s=null),u&&(l=ge(u.clone),e.leave(l).then(function(){l=null}),u=null))})}}}],aa=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:qr.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",u=i.autoscroll;return function(r,i,s,l,c){var f,p,d,h=0,g=function(){p&&(p.remove(),p=null),f&&(f.$destroy(),f=null),d&&(n.leave(d).then(function(){p=null}),p=d,d=null)};r.$watch(o,function(o){var s=function(){!b(u)||u&&!r.$eval(u)||t()},p=++h;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&p===h){var t=r.$new();l.template=e;var u=c(t,function(e){g(),n.enter(e,null,i).then(s)});f=t,d=u,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||p===h&&(g(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(g(),l.template=null)})}}}}],ua=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return/SVG/.test(r[0].toString())?(r.empty(),void e(Se(o.template,t).childNodes)(n,function(e){r.append(e)},{futureParentElement:r})):(r.html(o.template),void e(r.contents())(n))}}}],sa=ir({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),la=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,r,i){var a=t.attr(r.$attr.ngList)||", ",u="false"!==r.ngTrim,s=u?Br(a):a,l=function(e){if(!$(e)){var t=[];return e&&o(e.split(s),function(e){e&&t.push(u?Br(e):e)}),t}};i.$parsers.push(l),i.$formatters.push(function(e){return Vr(e)?e.join(a):n}),i.$isEmpty=function(e){return!e||!e.length}}}},ca="ng-valid",fa="ng-invalid",pa="ng-pristine",da="ng-dirty",ha="ng-untouched",ga="ng-touched",ma="ng-pending",va=r("ngModel"),ya=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,r,i,a,u,s,l,c,f){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=n,this.$name=f(r.name||"",!1)(e),this.$$parentForm=Do;var p,d=a(r.ngModel),h=d.assign,m=d,v=h,y=null,w=this;this.$$setOptions=function(e){if(w.$options=e,e&&e.getterSetter){var t=a(r.ngModel+"()"),n=a(r.ngModel+"($$$p)");m=function(e){var n=d(e);return S(n)&&(n=t(e)),n},v=function(e,t){S(d(e))?n(e,{$$$p:w.$modelValue}):h(e,w.$modelValue)}}else if(!d.assign)throw va("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,J(i))},this.$render=g,this.$isEmpty=function(e){return $(e)||""===e||null===e||e!==e};var x=0;wr({ctrl:this,$element:i,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},$animate:u}),this.$setPristine=function(){w.$dirty=!1,w.$pristine=!0,u.removeClass(i,da),u.addClass(i,pa)},this.$setDirty=function(){w.$dirty=!0,w.$pristine=!1,u.removeClass(i,pa),u.addClass(i,da),w.$$parentForm.$setDirty()},this.$setUntouched=function(){w.$touched=!1,w.$untouched=!0,u.setClass(i,ha,ga)},this.$setTouched=function(){w.$touched=!0,w.$untouched=!1,u.setClass(i,ga,ha)},this.$rollbackViewValue=function(){s.cancel(y),w.$viewValue=w.$$lastCommittedViewValue,w.$render()},this.$validate=function(){if(!k(w.$modelValue)||!isNaN(w.$modelValue)){var e=w.$$lastCommittedViewValue,t=w.$$rawModelValue,r=w.$valid,i=w.$modelValue,o=w.$options&&w.$options.allowInvalid;w.$$runValidators(t,e,function(e){o||r===e||(w.$modelValue=e?t:n,w.$modelValue!==i&&w.$$writeModelToScope())})}},this.$$runValidators=function(e,t,r){function i(){var e=w.$$parserName||"parse";return $(p)?(s(e,null),!0):(p||(o(w.$validators,function(e,t){s(t,null)}),o(w.$asyncValidators,function(e,t){s(t,null)})),s(e,p),p)}function a(){var n=!0;return o(w.$validators,function(r,i){var o=r(e,t);n=n&&o,s(i,o)}),n?!0:(o(w.$asyncValidators,function(e,t){s(t,null)}),!1)}function u(){var r=[],i=!0;o(w.$asyncValidators,function(o,a){var u=o(e,t);if(!j(u))throw va("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",u);s(a,n),r.push(u.then(function(){s(a,!0)},function(e){i=!1,s(a,!1)}))}),r.length?c.all(r).then(function(){l(i)},g):l(!0)}function s(e,t){f===x&&w.$setValidity(e,t)}function l(e){f===x&&r(e)}x++;var f=x;return i()&&a()?void u():void l(!1)},this.$commitViewValue=function(){var e=w.$viewValue;s.cancel(y),(w.$$lastCommittedViewValue!==e||""===e&&w.$$hasNativeValidators)&&(w.$$lastCommittedViewValue=e,w.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function t(){w.$modelValue!==a&&w.$$writeModelToScope()}var r=w.$$lastCommittedViewValue,i=r;if(p=$(i)?n:!0)for(var o=0;o<w.$parsers.length;o++)if(i=w.$parsers[o](i),$(i)){p=!1;break}k(w.$modelValue)&&isNaN(w.$modelValue)&&(w.$modelValue=m(e));var a=w.$modelValue,u=w.$options&&w.$options.allowInvalid;w.$$rawModelValue=i,u&&(w.$modelValue=i,t()),w.$$runValidators(i,w.$$lastCommittedViewValue,function(e){u||(w.$modelValue=e?i:n,t())})},this.$$writeModelToScope=function(){v(e,w.$modelValue),o(w.$viewChangeListeners,function(e){try{e()}catch(n){t(n)}})},this.$setViewValue=function(e,t){w.$viewValue=e,(!w.$options||w.$options.updateOnDefault)&&w.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n,r=0,i=w.$options;i&&b(i.debounce)&&(n=i.debounce,k(n)?r=n:k(n[t])?r=n[t]:k(n["default"])&&(r=n["default"])),s.cancel(y),r?y=s(function(){w.$commitViewValue()},r):l.$$phase?w.$commitViewValue():e.$apply(function(){w.$commitViewValue()})},e.$watch(function(){var t=m(e);if(t!==w.$modelValue&&(w.$modelValue===w.$modelValue||t===t)){w.$modelValue=w.$$rawModelValue=t,p=n;for(var r=w.$formatters,i=r.length,o=t;i--;)o=r[i](o);w.$viewValue!==o&&(w.$viewValue=w.$$lastCommittedViewValue=o,w.$render(),w.$$runValidators(t,o,g))}return t})}],$a=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ya,priority:1,compile:function(t){return t.addClass(pa).addClass(ha).addClass(ca),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(e){o.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(n){o.$touched||(e.$$phase?t.$evalAsync(o.$setTouched):t.$apply(o.$setTouched))})}}}}}],ba=/(\s+|^)default(\s+|$)/,wa=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var n=this;this.$options=z(e.$eval(t.ngModelOptions)),b(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Br(this.$options.updateOn.replace(ba,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},xa=ir({terminal:!0,priority:1e3}),_a=r("ngOptions"),ka=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Ca=["$compile","$parse",function(e,n){function r(e,t,r){function o(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function a(e){var t;if(!l&&i(e))t=e;else{t=[];for(var n in e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n)}return t}var u=e.match(ka);if(!u)throw _a("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,J(t));var s=u[5]||u[7],l=u[6],c=/ as /.test(u[0])&&u[1],f=u[9],p=n(u[2]?u[1]:s),d=c&&n(c),h=d||p,g=f&&n(f),m=f?function(e,t){return g(r,t)}:function(e){return Xe(e)},v=function(e,t){return m(e,_(e,t))},y=n(u[2]||u[1]),$=n(u[3]||""),b=n(u[4]||""),w=n(u[8]),x={},_=l?function(e,t){return x[l]=t,x[s]=e,x}:function(e){return x[s]=e,x};return{trackBy:f,getTrackByValue:v,getWatchables:n(w,function(e){var t=[];e=e||[];for(var n=a(e),i=n.length,o=0;i>o;o++){var s=e===n?o:n[o],l=(e[s],_(e[s],s)),c=m(e[s],l);if(t.push(c),u[2]||u[1]){var f=y(r,l);t.push(f)}if(u[4]){var p=b(r,l);t.push(p)}}return t}),getOptions:function(){for(var e=[],t={},n=w(r)||[],i=a(n),u=i.length,s=0;u>s;s++){var l=n===i?s:i[s],c=n[l],p=_(c,l),d=h(r,p),g=m(d,p),x=y(r,p),k=$(r,p),C=b(r,p),S=new o(g,d,x,k,C);e.push(S),t[g]=S}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[v(e)]},getViewValueFromOption:function(e){return f?qr.copy(e.viewValue):e.viewValue}}}}}function a(t,n,i,a){function l(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),e.value!==t.value&&(t.value=e.selectValue)}function c(e,t,n,r){var i;return t&&Sr(t.nodeName)===n?i=t:(i=r.cloneNode(!1),t?e.insertBefore(i,t):e.appendChild(i)),i}function f(e){for(var t;e;)t=e.nextSibling,He(e),e=t}function p(e){var t=g&&g[0],n=x&&x[0];if(t||n)for(;e&&(e===t||e===n||e.nodeType===ri||"option"===R(e)&&""===e.value);)e=e.nextSibling;return e}function d(){var e=_&&m.readValue();_=k.getOptions();var t={},r=n[0].firstChild;if(w&&n.prepend(g),r=p(r),_.items.forEach(function(e){var i,o,a;e.group?(i=t[e.group],i||(o=c(n[0],r,"optgroup",s),r=o.nextSibling,o.label=e.group,i=t[e.group]={groupElement:o,currentOptionElement:o.firstChild}),a=c(i.groupElement,i.currentOptionElement,"option",u),l(e,a),i.currentOptionElement=a.nextSibling):(a=c(n[0],r,"option",u),l(e,a),r=a.nextSibling)}),Object.keys(t).forEach(function(e){f(t[e].currentOptionElement)}),f(r),h.$render(),!h.$isEmpty(e)){var i=m.readValue(),o=k.trackBy||v;(o?L(e,i):e===i)||(h.$setViewValue(i),h.$render())}}var h=a[1];if(h){for(var g,m=a[0],v=i.multiple,y=0,$=n.children(),b=$.length;b>y;y++)if(""===$[y].value){g=$.eq(y);break}var w=!!g,x=Mr(u.cloneNode(!1));x.val("?");var _,k=r(i.ngOptions,n,t),C=function(){w||n.prepend(g),n.val(""),g.prop("selected",!0),g.attr("selected",!0)},S=function(){w||g.remove()},T=function(){n.prepend(x),n.val("?"),x.prop("selected",!0),x.attr("selected",!0)},D=function(){x.remove()};v?(h.$isEmpty=function(e){return!e||0===e.length},m.writeValue=function(e){_.items.forEach(function(e){e.element.selected=!1}),e&&e.forEach(function(e){var t=_.getOptionFromViewValue(e);t&&!t.disabled&&(t.element.selected=!0)})},m.readValue=function(){var e=n.val()||[],t=[];return o(e,function(e){var n=_.selectValueMap[e];n&&!n.disabled&&t.push(_.getViewValueFromOption(n))}),t},k.trackBy&&t.$watchCollection(function(){return Vr(h.$viewValue)?h.$viewValue.map(function(e){return k.getTrackByValue(e)}):void 0},function(){h.$render()})):(m.writeValue=function(e){var t=_.getOptionFromViewValue(e);t&&!t.disabled?(n[0].value!==t.selectValue&&(D(),S(),n[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):null===e||w?(D(),C()):(S(),T())},m.readValue=function(){var e=_.selectValueMap[n.val()];return e&&!e.disabled?(S(),D(),_.getViewValueFromOption(e)):null},k.trackBy&&t.$watch(function(){return k.getTrackByValue(h.$viewValue)},function(){h.$render()})),w?(g.remove(),e(g)(t),g.removeClass("ng-scope")):g=Mr(u.cloneNode(!1)),d(),t.$watchCollection(k.getWatchables,d)}}var u=t.createElement("option"),s=t.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=g},post:a}}}],Sa=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(a,u,s){function l(e){u.text(e||"")}var c,f=s.count,p=s.$attr.when&&u.attr(s.$attr.when),d=s.offset||0,h=a.$eval(p)||{},m={},v=t.startSymbol(),y=t.endSymbol(),b=v+f+"-"+d+y,w=qr.noop;o(s,function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+Sr(n[2]);h[r]=u.attr(s.$attr[t])}}),o(h,function(e,n){m[n]=t(e.replace(r,b))}),a.$watch(f,function(t){var r=parseFloat(t),i=isNaN(r);if(i||r in h||(r=e.pluralCat(r-d)),r!==c&&!(i&&k(c)&&isNaN(c))){w();var o=m[r];$(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+p),w=g,l()):w=a.$watch(o,l),c=r}})}}}],Ta=["$parse","$animate",function(e,a){var u="$$NG_REMOVED",s=r("ngRepeat"),l=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0===(1&t))},c=function(e){return e.clone[0]},f=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,p){var d=p.ngRepeat,h=t.createComment(" end ngRepeat: "+d+" "),g=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!g)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",d);var m=g[1],v=g[2],y=g[3],$=g[4];if(g=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!g)throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var b=g[3]||g[1],w=g[2];if(y&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(y)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(y)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",y);var x,_,k,C,S={$id:Xe};return $?x=e($):(k=function(e,t){return Xe(t)},C=function(e){return e}),function(e,t,r,p,g){x&&(_=function(t,n,r){return w&&(S[w]=t),S[b]=n,S.$index=r,x(e,S)});var m=me();e.$watchCollection(v,function(r){var p,v,$,x,S,T,D,O,E,A,M,P,j=t[0],N=me();if(y&&(e[y]=r),i(r))E=r,O=_||k;else{O=_||C,E=[];for(var I in r)Tr.call(r,I)&&"$"!==I.charAt(0)&&E.push(I)}for(x=E.length,M=new Array(x),p=0;x>p;p++)if(S=r===E?p:E[p],T=r[S],D=O(S,T,p),m[D])A=m[D],delete m[D],N[D]=A,M[p]=A;else{if(N[D])throw o(M,function(e){e&&e.scope&&(m[e.id]=e)}),s("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",d,D,T);M[p]={id:D,scope:n,clone:n},N[D]=!0}for(var U in m){if(A=m[U],P=ge(A.clone),a.leave(P),P[0].parentNode)for(p=0,v=P.length;v>p;p++)P[p][u]=!0;A.scope.$destroy()}for(p=0;x>p;p++)if(S=r===E?p:E[p],T=r[S],A=M[p],A.scope){$=j;do $=$.nextSibling;while($&&$[u]);c(A)!=$&&a.move(ge(A.clone),null,j),j=f(A),l(A.scope,p,b,T,w,S,x)}else g(function(e,t){A.scope=t;var n=h.cloneNode(!1);e[e.length++]=n,a.enter(e,null,j),j=n,A.clone=e,N[A.id]=A,l(A.scope,p,b,T,w,S,x)});m=N})}}}}],Da="ng-hide",Oa="ng-hide-animate",Ea=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,Da,{tempClasses:Oa})})}}}],Aa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,Da,{tempClasses:Oa})})}}}],Ma=ir(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&o(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),Pa=["$animate",function(e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var u=i.ngSwitch||i.on,s=[],l=[],c=[],f=[],p=function(e,t){return function(){e.splice(t,1)}};n.$watch(u,function(n){var r,i;for(r=0,i=c.length;i>r;++r)e.cancel(c[r]);for(c.length=0,r=0,i=f.length;i>r;++r){var u=ge(l[r].clone);f[r].$destroy();var d=c[r]=e.leave(u);d.then(p(c,r))}l.length=0,f.length=0,(s=a.cases["!"+n]||a.cases["?"])&&o(s,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=t.createComment(" end ngSwitchWhen: ");var a={clone:r};l.push(a),e.enter(r,o.parent(),o)})})})}}}],ja=ir({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}}),Na=ir({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),Ia=ir({restrict:"EAC",link:function(e,t,n,i,o){if(!o)throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",J(t));o(function(e){t.empty(),t.append(e)})}}),Ua=["$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)}}}}],Ra={$setViewValue:g,$render:g},Fa=["$element","$scope","$attrs",function(e,r,i){var o=this,a=new Je;o.ngModelCtrl=Ra,o.unknownOption=Mr(t.createElement("option")),o.renderUnknownOption=function(t){var n="? "+Xe(t)+" ?";o.unknownOption.val(n),e.prepend(o.unknownOption),e.val(n)},r.$on("$destroy",function(){o.renderUnknownOption=g}),o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.readValue=function(){return o.removeUnknownOption(),e.val()},o.writeValue=function(t){o.hasOption(t)?(o.removeUnknownOption(),e.val(t),""===t&&o.emptyOption.prop("selected",!0)):null==t&&o.emptyOption?(o.removeUnknownOption(),e.val("")):o.renderUnknownOption(t)},o.addOption=function(e,t){if(t[0].nodeType!==ri){de(e,'"option value"'),""===e&&(o.emptyOption=t);var n=a.get(e)||0;a.put(e,n+1),o.ngModelCtrl.$render(),_r(t)}},o.removeOption=function(e){var t=a.get(e);t&&(1===t?(a.remove(e),""===e&&(o.emptyOption=n)):a.put(e,t-1))},o.hasOption=function(e){return!!a.get(e)},o.registerOption=function(e,t,n,r,i){if(r){var a;n.$observe("value",function(e){b(a)&&o.removeOption(a),a=e,o.addOption(e,t)})}else i?e.$watch(i,function(e,r){n.$set("value",e),r!==e&&o.removeOption(r),o.addOption(e,t)}):o.addOption(n.value,t);t.on("$destroy",function(){o.removeOption(n.value),o.ngModelCtrl.$render()})}}],za=function(){function e(e,t,n,r){var i=r[1];if(i){var a=r[0];if(a.ngModelCtrl=i,t.on("change",function(){e.$apply(function(){i.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var e=[];return o(t.find("option"),function(t){t.selected&&e.push(t.value)}),e},a.writeValue=function(e){var n=new Je(e);o(t.find("option"),function(e){e.selected=b(n.get(e.value))})};var u,s=NaN;e.$watch(function(){s!==i.$viewValue||L(u,i.$viewValue)||(u=q(i.$viewValue),i.$render()),s=i.$viewValue}),i.$isEmpty=function(e){return!e||0===e.length}}}}function t(e,t,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Fa,priority:1,link:{pre:e,post:t}}},qa=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){if(b(n.value))var r=e(n.value,!0);else{var i=e(t.text(),!0);i||n.$set("value",t.text())}return function(e,t,n){var o="$selectController",a=t.parent(),u=a.data(o)||a.parent().data(o);u&&u.registerOption(e,t,n,r,i)}}}}],La=v({restrict:"E",terminal:!1}),Ha=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},Va=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,i,o){if(o){var a,u=i.ngPattern||i.pattern;i.$observe("pattern",function(e){if(_(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",u,e,J(t));a=e||n,o.$validate()}),o.$validators.pattern=function(e,t){return o.$isEmpty(t)||$(a)||a.test(t)}}}}},Wa=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=d(e);i=isNaN(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return 0>i||r.$isEmpty(t)||t.length<=i}}}}},Ba=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=d(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};return e.angular.bootstrap?void(e.console&&console.log("WARNING: Tried to load angular more than once.")):(ce(),be(qr),qr.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return-1==t?0:e.length-t-1}function r(e,r){var i=r;n===i&&(i=Math.min(t(e),3));var o=Math.pow(10,i),a=(e*o|0)%o;return{v:i,f:a}}var i={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var n=0|e,o=r(e,t);return 1==n&&0==o.v?i.ONE:i.OTHER}})}]),void Mr(t).ready(function(){oe(t,ae)}))}(window,document),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),/**
   * @license AngularJS v1.5.11
   * (c) 2010-2017 Google, Inc. http://angularjs.org
   * License: MIT
   */
  function(e,t){"use strict";function n(e,t,n){if(!e)throw ge("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function r(e,t){return e||t?e?t?(K(e)&&(e=e.join(" ")),K(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function i(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function o(e,t,n){var r="";return e=K(e)?e:e&&ee(e)&&e.length?e.split(/\s+/):[],G(e,function(e,i){e&&e.length>0&&(r+=i>0?" ":"",r+=n?t+e:e+t)}),r}function a(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function u(e){if(e instanceof ne)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===U)return e;break;default:return ne(s(e))}return e.nodeType===U?ne(e):void 0}function s(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===U)return n}}function l(e,t,n){G(t,function(t){e.addClass(t,n)})}function c(e,t,n){G(t,function(t){e.removeClass(t,n)})}function f(e){return function(t,n){n.addClass&&(l(e,t,n.addClass),n.addClass=null),n.removeClass&&(c(e,t,n.removeClass),n.removeClass=null)}}function p(e){if(e=e||{},!e.$$prepared){var t=e.domOperation||re;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=re},e.$$prepared=!0}return e}function d(e,t){h(e,t),g(e,t)}function h(e,t){t.from&&(e.css(t.from),t.from=null)}function g(e,t){t.to&&(e.css(t.to),t.to=null)}function m(e,t,n){var r=t.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),u=v(e.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=k(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var s=r.domOperation!==re?r.domOperation:null;return Y(r,i),s&&(r.domOperation=s),u.addClass?r.addClass=u.addClass:r.addClass=null,u.removeClass?r.removeClass=u.removeClass:r.removeClass=null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function v(e,t,n){function r(e){ee(e)&&(e=e.split(" "));var t={};return G(e,function(e){e.length&&(t[e]=!0)}),t}var i=1,o=-1,a={};e=r(e),t=r(t),G(t,function(e,t){a[t]=i}),n=r(n),G(n,function(e,t){a[t]=a[t]===i?null:o});var u={addClass:"",removeClass:""};return G(a,function(t,n){var r,a;t===i?(r="addClass",a=!e[n]||e[n+F]):t===o&&(r="removeClass",a=e[n]||e[n+R]),a&&(u[r].length&&(u[r]+=" "),u[r]+=n)}),u}function y(e){return e instanceof ne?e[0]:e}function $(e,t,n){var r="";t&&(r=o(t,z,!0)),n.addClass&&(r=k(r,o(n.addClass,R))),n.removeClass&&(r=k(r,o(n.removeClass,F))),r.length&&(n.preparationClasses=r,e.addClass(r))}function b(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)}function w(e,t){var n=t?"-"+t+"s":"";return _(e,[de,n]),[de,n]}function x(e,t){var n=t?"paused":"",r=N+le;return _(e,[r,n]),[r,n]}function _(e,t){var n=t[0],r=t[1];e.style[n]=r}function k(e,t){return e?t?e+" "+t:e:t}function C(e){return[pe,e+"s"]}function S(e,t){var n=t?fe:de;return[n,e+"s"]}function T(e,t,n){var r=Object.create(null),i=e.getComputedStyle(t)||{};return G(n,function(e,t){var n=i[e];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=D(n)),0===n&&(n=null),r[t]=n}}),r}function D(e){var t=0,n=e.split(/\s*,\s*/);return G(n,function(e){"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function O(e){return 0===e||null!=e}function E(e,t){var n=P,r=e+"s";return t?n+=ie:r+=" linear all",[n,r]}function A(){var e=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){var n=e[t];return n?n.total:0},get:function(t){var n=e[t];return n&&n.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}function M(e,t,n){G(n,function(n){e[n]=Z(e[n])?e[n]:t.style.getPropertyValue(n)})}var P,j,N,I,U=1,R="-add",F="-remove",z="ng-",q="-active",L="-prepare",H="ng-animate",V="$$ngAnimateChildren",W="";void 0===e.ontransitionend&&void 0!==e.onwebkittransitionend?(W="-webkit-",P="WebkitTransition",j="webkitTransitionEnd transitionend"):(P="transition",j="transitionend"),void 0===e.onanimationend&&void 0!==e.onwebkitanimationend?(W="-webkit-",N="WebkitAnimation",I="webkitAnimationEnd animationend"):(N="animation",I="animationend");var B,Y,G,K,Z,X,J,Q,ee,te,ne,re,ie="Duration",oe="Property",ae="Delay",ue="TimingFunction",se="IterationCount",le="PlayState",ce=9999,fe=N+ae,pe=N+ie,de=P+ae,he=P+ie,ge=t.$$minErr("ng"),me=["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),o=0;o<t.length;o++)t[o]();i||e(function(){i||n()})}}var r,i;return r=t.queue=[],t.waitUntilQuiet=function(t){i&&i(),i=e(function(){i=null,t(),n()})},t}],ve=["$interpolate",function(e){return{link:function(t,n,r){function i(e){e="on"===e||"true"===e,n.data(V,e)}var o=r.ngAnimateChildren;ee(o)&&0===o.length?n.data(V,!0):(i(e(o)(t)),r.$observe("ngAnimateChildren",i))}}}],ye="$$animateCss",$e=1e3,be=3,we=1.5,xe={transitionDuration:he,transitionDelay:de,transitionProperty:P+oe,animationDuration:pe,animationDelay:fe,animationIterationCount:N+se},_e={transitionDuration:he,transitionDelay:de,animationDuration:pe,animationDelay:fe},ke=["$animateProvider",function(e){var t=A(),n=A();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,r,u,s,l,c,m,v){function $(e,t){var n="$$ngAnimateParentKey",r=e.parentNode,i=r[n]||(r[n]=++L);return i+"-"+e.getAttribute("class")+"-"+t}function b(n,r,i,o){var a=t.get(i);return a||(a=T(e,n,o),"infinite"===a.animationIterationCount&&(a.animationIterationCount=1)),t.put(i,a),a}function k(i,a,u,s){var l;if(t.count(u)>0&&(l=n.get(u),!l)){var c=o(a,"-stagger");r.addClass(i,c),l=T(e,i,s),l.animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),r.removeClass(i,c),n.put(u,l)}return l||{}}function D(e){H.push(e),m.waitUntilQuiet(function(){t.flush(),n.flush();for(var e=l(),r=0;r<H.length;r++)H[r](e);H.length=0})}function A(e,t,n){var r=b(e,t,n,xe),i=r.animationDelay,o=r.transitionDelay;return r.maxDelay=i&&o?Math.max(i,o):i||o,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}var U=f(r),L=0,H=[];return function(e,n){function l(){m()}function f(){m(!0)}function m(t){if(!(Z||J&&X)){Z=!0,X=!1,V.$$skipPreparationClasses||r.removeClass(e,xe),r.removeClass(e,Ce),x(Y,!1),w(Y,!1),G(le,function(e){Y.style[e[0]]=""}),U(e,V),d(e,V),Object.keys(W).length&&G(W,function(e,t){e?Y.style.setProperty(t,e):Y.style.removeProperty(t)}),V.onDone&&V.onDone(),de&&de.length&&e.off(de.join(" "),L);var n=e.data(ye);n&&(s.cancel(n[0].timer),e.removeData(ye)),Q&&Q.complete(!t)}}function b(e){Fe.blockTransition&&w(Y,e),Fe.blockKeyframeAnimation&&x(Y,!!e)}function T(){return Q=new u({end:l,cancel:f}),D(re),m(),{$$willAnimate:!1,start:function(){return Q},end:l}}function L(e){e.stopPropagation();var t=e.originalEvent||e,n=t.$manualTimeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(be));Math.max(n-se,0)>=ne&&r>=ie&&(J=!0,m())}function H(){function t(){if(!Z){if(b(!1),G(le,function(e){var t=e[0],n=e[1];Y.style[t]=n}),U(e,V),r.addClass(e,Ce),Fe.recalculateTimingStyles){if(ke=Y.className+" "+xe,De=$(Y,ke),Ue=A(Y,ke,De),Re=Ue.maxDelay,te=Math.max(Re,0),ie=Ue.maxDuration,0===ie)return void m();Fe.hasTransitions=Ue.transitionDuration>0,Fe.hasAnimations=Ue.animationDuration>0}if(Fe.applyAnimationDelay&&(Re="boolean"!=typeof V.delay&&O(V.delay)?parseFloat(V.delay):Re,te=Math.max(Re,0),Ue.animationDelay=Re,ze=S(Re,!0),le.push(ze),Y.style[ze[0]]=ze[1]),ne=te*$e,ae=ie*$e,V.easing){var t,i=V.easing;Fe.hasTransitions&&(t=P+ue,le.push([t,i]),Y.style[t]=i),Fe.hasAnimations&&(t=N+ue,le.push([t,i]),Y.style[t]=i)}Ue.transitionDuration&&de.push(j),Ue.animationDuration&&de.push(I),se=Date.now();var o=ne+we*ae,a=se+o,u=e.data(ye)||[],l=!0;if(u.length){var c=u[0];l=a>c.expectedEndTime,l?s.cancel(c.timer):u.push(m)}if(l){var f=s(n,o,!1);u[0]={timer:f,expectedEndTime:a},u.push(m),e.data(ye,u)}de.length&&e.on(de.join(" "),L),V.to&&(V.cleanupStyles&&M(W,Y,Object.keys(V.to)),g(e,V))}}function n(){var t=e.data(ye);if(t){for(var n=1;n<t.length;n++)t[n]();e.removeData(ye)}}if(!Z){if(!Y.parentNode)return void m();var i=function(e){if(J)X&&e&&(X=!1,m());else if(X=!e,Ue.animationDuration){var t=x(Y,X);X?le.push(t):a(le,t)}},o=Ne>0&&(Ue.transitionDuration&&0===Oe.transitionDuration||Ue.animationDuration&&0===Oe.animationDuration)&&Math.max(Oe.animationDelay,Oe.transitionDelay);o?s(t,Math.floor(o*Ne*$e),!1):t(),ee.resume=function(){i(!0)},ee.pause=function(){i(!1)}}}var V=n||{};V.$$prepared||(V=p(B(V)));var W={},Y=y(e);if(!Y||!Y.parentNode||!v.enabled())return T();var Z,X,J,Q,ee,te,ne,ie,ae,se,le=[],fe=e.attr("class"),pe=i(V),de=[];if(0===V.duration||!c.animations&&!c.transitions)return T();var he=V.event&&K(V.event)?V.event.join(" "):V.event,ge=he&&V.structural,me="",ve="";ge?me=o(he,z,!0):he&&(me=he),V.addClass&&(ve+=o(V.addClass,R)),V.removeClass&&(ve.length&&(ve+=" "),ve+=o(V.removeClass,F)),V.applyClassesEarly&&ve.length&&U(e,V);var xe=[me,ve].join(" ").trim(),ke=fe+" "+xe,Ce=o(xe,q),Se=pe.to&&Object.keys(pe.to).length>0,Te=(V.keyframeStyle||"").length>0;if(!Te&&!Se&&!xe)return T();var De,Oe;if(V.stagger>0){var Ee=parseFloat(V.stagger);Oe={transitionDelay:Ee,animationDelay:Ee,transitionDuration:0,animationDuration:0}}else De=$(Y,ke),Oe=k(Y,xe,De,_e);V.$$skipPreparationClasses||r.addClass(e,xe);var Ae;if(V.transitionStyle){var Me=[P,V.transitionStyle];_(Y,Me),le.push(Me)}if(V.duration>=0){Ae=Y.style[P].length>0;var Pe=E(V.duration,Ae);_(Y,Pe),le.push(Pe)}if(V.keyframeStyle){var je=[N,V.keyframeStyle];_(Y,je),le.push(je)}var Ne=Oe?V.staggerIndex>=0?V.staggerIndex:t.count(De):0,Ie=0===Ne;Ie&&!V.skipBlocking&&w(Y,ce);var Ue=A(Y,ke,De),Re=Ue.maxDelay;te=Math.max(Re,0),ie=Ue.maxDuration;var Fe={};if(Fe.hasTransitions=Ue.transitionDuration>0,Fe.hasAnimations=Ue.animationDuration>0,Fe.hasTransitionAll=Fe.hasTransitions&&"all"===Ue.transitionProperty,Fe.applyTransitionDuration=Se&&(Fe.hasTransitions&&!Fe.hasTransitionAll||Fe.hasAnimations&&!Fe.hasTransitions),Fe.applyAnimationDuration=V.duration&&Fe.hasAnimations,Fe.applyTransitionDelay=O(V.delay)&&(Fe.applyTransitionDuration||Fe.hasTransitions),Fe.applyAnimationDelay=O(V.delay)&&Fe.hasAnimations,Fe.recalculateTimingStyles=ve.length>0,(Fe.applyTransitionDuration||Fe.applyAnimationDuration)&&(ie=V.duration?parseFloat(V.duration):ie,Fe.applyTransitionDuration&&(Fe.hasTransitions=!0,Ue.transitionDuration=ie,Ae=Y.style[P+oe].length>0,le.push(E(ie,Ae))),Fe.applyAnimationDuration&&(Fe.hasAnimations=!0,Ue.animationDuration=ie,le.push(C(ie)))),0===ie&&!Fe.recalculateTimingStyles)return T();if(null!=V.delay){var ze;"boolean"!=typeof V.delay&&(ze=parseFloat(V.delay),te=Math.max(ze,0)),Fe.applyTransitionDelay&&le.push(S(ze)),Fe.applyAnimationDelay&&le.push(S(ze,!0))}return null==V.duration&&Ue.transitionDuration>0&&(Fe.recalculateTimingStyles=Fe.recalculateTimingStyles||Ie),ne=te*$e,ae=ie*$e,V.skipBlocking||(Fe.blockTransition=Ue.transitionDuration>0,Fe.blockKeyframeAnimation=Ue.animationDuration>0&&Oe.animationDelay>0&&0===Oe.animationDuration),V.from&&(V.cleanupStyles&&M(W,Y,Object.keys(V.from)),h(e,V)),Fe.blockTransition||Fe.blockKeyframeAnimation?b(ie):V.skipBlocking||w(Y,!1),{$$willAnimate:!0,end:l,start:function(){return Z?void 0:(ee={end:l,cancel:f,resume:null,pause:null},Q=new u(ee),D(H),Q)}}}}]}],Ce=["$$animationProvider",function(e){function t(e){return e.parentNode&&11===e.parentNode.nodeType}e.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor",i="ng-anchor-out",o="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,a,u,s,l,c,f){function p(e){return e.replace(/\bng-\S+\b/g,"")}function d(e,t){return ee(e)&&(e=e.split(" ")),ee(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function h(t,a,s){function l(e){var t={},n=y(e).getBoundingClientRect();return G(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=v.scrollTop;break;case"left":r+=v.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function c(){var t=e(m,{addClass:i,delay:!0,from:l(a)});return t.$$willAnimate?t:null}function f(e){return e.attr("class")||""}function h(){var t=p(f(s)),n=d(t,$),r=d($,t),a=e(m,{to:l(s),addClass:o+" "+n,removeClass:i+" "+r,delay:!0});return a.$$willAnimate?a:null}function g(){m.remove(),a.removeClass(n),s.removeClass(n)}var m=ne(y(a).cloneNode(!0)),$=p(f(m));a.addClass(n),s.addClass(n),m.addClass(r),b.append(m);var w,x=c();if(!x&&(w=h(),!w))return g();var _=x||w;return{start:function(){function e(){n&&n.end()}var t,n=_.start();return n.done(function(){return n=null,!w&&(w=h())?(n=w.start(),n.done(function(){n=null,g(),t.complete()}),n):(g(),void t.complete())}),t=new u({end:e,cancel:e})}}}function g(e,t,n,r){var i=m(e,re),o=m(t,re),a=[];return G(r,function(e){var t=e.out,r=e["in"],i=h(n,t,r);i&&a.push(i)}),i||o||0!==a.length?{start:function(){function e(){G(t,function(e){e.end()})}var t=[];i&&t.push(i.start()),o&&t.push(o.start()),G(a,function(e){t.push(e.start())});var n=new u({end:e,cancel:e});return u.all(t,function(e){n.complete(e)}),n}}:void 0}function m(t){var n=t.element,r=t.options||{};t.structural&&(r.event=t.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===t.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=k(r.event,r.preparationClasses));var i=e(n,r);return i.$$willAnimate?i:null}if(!l.animations&&!l.transitions)return re;var v=f[0].body,$=y(s),b=ne(t($)||v.contains($)?$:v);return function(e){return e.from&&e.to?g(e.from,e.to,e.classes,e.anchors):m(e)}}]}],Se=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function i(n){n=K(n)?n:n.split(" ");for(var r=[],i={},o=0;o<n.length;o++){var a=n[o],u=e.$$registeredAnimations[a];u&&!i[a]&&(r.push(t.get(u)),i[a]=!0)}return r}var o=f(r);return function(e,t,r,a){function u(){a.domOperation(),o(e,a)}function s(){h=!0,u(),d(e,a)}function l(e,t,r,i,o){var a;switch(r){case"animate":a=[t,i.from,i.to,o];break;case"setClass":a=[t,v,y,o];break;case"addClass":a=[t,v,o];break;case"removeClass":a=[t,y,o];break;default:a=[t,o]}a.push(i);var u=e.apply(e,a);if(u)if(J(u.start)&&(u=u.start()),u instanceof n)u.done(o);else if(J(u))return u;return re}function c(e,t,r,i,o){var a=[];return G(i,function(i){var u=i[o];u&&a.push(function(){var i,o,a=!1,s=function(e){a||(a=!0,(o||re)(e),i.complete(!e))};return i=new n({end:function(){s()},cancel:function(){s(!0)}}),o=l(u,e,t,r,function(e){var t=e===!1;s(t)}),i})}),a}function f(e,t,r,i,o){var a=c(e,t,r,i,o);if(0===a.length){var u,s;"beforeSetClass"===o?(u=c(e,"removeClass",r,i,"beforeRemoveClass"),s=c(e,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(u=c(e,"removeClass",r,i,"removeClass"),s=c(e,"addClass",r,i,"addClass")),u&&(a=a.concat(u)),s&&(a=a.concat(s))}if(0!==a.length)return function(e){var t=[];return a.length&&G(a,function(e){t.push(e())}),t.length?n.all(t,e):e(),function(e){G(t,function(t){e?t.cancel():t.end()})}}}var h=!1;3===arguments.length&&Q(r)&&(a=r,r=null),a=p(a),r||(r=e.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var g,m,v=a.addClass,y=a.removeClass,$=i(r);if($.length){var b,w;"leave"===t?(w="leave",b="afterLeave"):(w="before"+t.charAt(0).toUpperCase()+t.substr(1),b=t),"enter"!==t&&"move"!==t&&(g=f(e,t,a,$,w)),m=f(e,t,a,$,b)}if(g||m){var x;return{$$willAnimate:!0,end:function(){return x?x.end():(s(),x=new n,x.complete(!0)),x},start:function(){function e(e){s(e),x.complete(e)}function t(t){h||((r||re)(t),e(t))}if(x)return x;x=new n;var r,i=[];return g&&i.push(function(e){r=g(e)}),i.length?i.push(function(e){u(),e(!0)}):u(),m&&i.push(function(e){r=m(e)}),x.setHost({end:function(){t()},cancel:function(){t(!0)}}),n.chain(i,e),x}}}}}]}],Te=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){var n=t.element,r=t.event,i=t.options,o=t.classes;return e(n,r,o,i)}return function(e){if(e.from&&e.to){var r=n(e.from),i=n(e.to);if(!r&&!i)return;return{start:function(){function e(){return function(){G(o,function(e){e.end()})}}function n(e){a.complete(e)}var o=[];r&&o.push(r.start()),i&&o.push(i.start()),t.all(o,n);var a=new t({end:e(),cancel:e()});return a}}}return n(e)}}]}],De="data-ng-animate",Oe="$ngAnimatePin",Ee=["$animateProvider",function(t){function r(e){if(!e)return null;var t=e.split(h),n=Object.create(null);return G(t,function(e){n[e]=!0}),n}function i(e,t){if(e&&t){var n=r(t);return e.split(h).some(function(e){return n[e]})}}function o(e,t,n,r){return g[e].some(function(e){return e(t,n,r)})}function a(e,t){var n=(e.addClass||"").length>0,r=(e.removeClass||"").length>0;return t?n&&r:n||r}var l=1,c=2,h=" ",g=this.rules={skip:[],cancel:[],join:[]};g.join.push(function(e,t,n){return!t.structural&&a(t)}),g.skip.push(function(e,t,n){return!t.structural&&!a(t)}),g.skip.push(function(e,t,n){return"leave"===n.event&&t.structural}),g.skip.push(function(e,t,n){return n.structural&&n.state===c&&!t.structural}),g.cancel.push(function(e,t,n){return n.structural&&t.structural}),g.cancel.push(function(e,t,n){return n.state===c&&t.structural}),g.cancel.push(function(e,t,n){if(n.structural)return!1;var r=t.addClass,o=t.removeClass,a=n.addClass,u=n.removeClass;return te(r)&&te(o)||te(a)&&te(u)?!1:i(r,u)||i(o,a)}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(r,i,h,g,v,w,x,_,k,C){function S(){var e=!1;return function(t){e?t():i.$$postDigest(function(){e=!0,t()})}}function T(e,t){return m(e,t,{})}function D(e,t,n){var r=y(t),i=y(e),o=[],a=L[n];return a&&G(a,function(e){re.call(e.node,r)?o.push(e.callback):"leave"===n&&re.call(e.node,i)&&o.push(e.callback)}),o}function O(e,t,n){var r=s(t);return e.filter(function(e){var t=e.node===r&&(!n||e.callback===n);return!t})}function E(e,t){"close"!==e||t[0].parentNode||ie.off(t)}function A(e,t,n){function s(t,n,i,o){C(function(){var t=D(v,e,n);t.length?r(function(){G(t,function(t){t(e,i,o)}),E(i,e)}):E(i,e)}),t.progress(n,i,o)}function f(t){b(e,_),J(e,_),d(e,_),_.domOperation(),k.complete(!t)}var h,v,_=B(n);e=u(e),e&&(h=y(e),v=e.parent()),_=p(_);var k=new x,C=S();if(K(_.addClass)&&(_.addClass=_.addClass.join(" ")),_.addClass&&!ee(_.addClass)&&(_.addClass=null),K(_.removeClass)&&(_.removeClass=_.removeClass.join(" ")),_.removeClass&&!ee(_.removeClass)&&(_.removeClass=null),_.from&&!Q(_.from)&&(_.from=null),_.to&&!Q(_.to)&&(_.to=null),!h)return f(),k;var O=[h.className,_.addClass,_.removeClass].join(" ");if(!W(O))return f(),k;var A=["enter","move","leave"].indexOf(t)>=0,j=g[0].hidden,U=!z||j||F.get(h),q=!U&&R.get(h)||{},L=!!q.state;if(U||L&&q.state===l||(U=!N(e,v,t)),U)return j&&s(k,t,"start"),f(),j&&s(k,t,"close"),k;A&&M(e);var H={structural:A,element:e,event:t,addClass:_.addClass,removeClass:_.removeClass,close:f,options:_,runner:k};if(L){var V=o("skip",e,H,q);if(V)return q.state===c?(f(),k):(m(e,q,H),q.runner);var Y=o("cancel",e,H,q);if(Y)if(q.state===c)q.runner.end();else{if(!q.structural)return m(e,q,H),q.runner;q.close()}else{var Z=o("join",e,H,q);if(Z){if(q.state!==c)return $(e,A?t:null,_),t=H.event=q.event,_=m(e,q,H),q.runner;T(e,H)}}}else T(e,H);var X=H.structural;if(X||(X="animate"===H.event&&Object.keys(H.options.to||{}).length>0||a(H)),!X)return f(),P(e),k;var te=(q.counter||0)+1;return H.counter=te,I(e,l,H),i.$$postDigest(function(){var n=R.get(h),r=!n;n=n||{};var i=e.parent()||[],o=i.length>0&&("animate"===n.event||n.structural||a(n));if(r||n.counter!==te||!o)return r&&(J(e,_),d(e,_)),(r||A&&n.event!==t)&&(_.domOperation(),k.end()),void(o||P(e));t=!n.structural&&a(n,!0)?"setClass":n.event,I(e,c);var u=w(e,t,n.options);k.setHost(u),s(k,t,"start",{}),u.done(function(n){f(!n);var r=R.get(h);r&&r.counter===te&&P(y(e)),s(k,t,"close",{})})}),k}function M(e){var t=y(e),n=t.querySelectorAll("["+De+"]");G(n,function(e){var t=parseInt(e.getAttribute(De),10),n=R.get(e);if(n)switch(t){case c:n.runner.end();case l:R.remove(e)}})}function P(e){var t=y(e);t.removeAttribute(De),R.remove(t)}function j(e,t){return y(e)===y(t)}function N(e,t,n){var r,i=ne(g[0].body),o=j(e,i)||"HTML"===e[0].nodeName,a=j(e,h),u=!1,s=F.get(y(e)),l=ne.data(e[0],Oe);for(l&&(t=l),t=y(t);t&&(a||(a=j(t,h)),t.nodeType===U);){var c=R.get(t)||{};if(!u){var f=F.get(t);if(f===!0&&s!==!1){s=!0;break}f===!1&&(s=!1),u=c.structural}if(te(r)||r===!0){var p=ne.data(t,V);Z(p)&&(r=p)}if(u&&r===!1)break;if(o||(o=j(t,i)),o&&a)break;t=a||!(l=ne.data(t,Oe))?t.parentNode:y(l)}var d=(!u||r)&&s!==!0;return d&&a&&o}function I(e,t,n){n=n||{},n.state=t;var r=y(e);r.setAttribute(De,t);var i=R.get(r),o=i?Y(i,n):n;R.put(r,o)}var R=new v,F=new v,z=null,q=i.$watch(function(){return 0===_.totalPendingRequests},function(e){e&&(q(),i.$$postDigest(function(){i.$$postDigest(function(){null===z&&(z=!0)})}))}),L=Object.create(null),H=t.classNameFilter(),W=H?function(e){return H.test(e)}:function(){return!0},J=f(k),re=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},ie={on:function(e,t,n){var r=s(t);L[e]=L[e]||[],L[e].push({node:r,callback:n}),ne(t).on("$destroy",function(){var i=R.get(r);i||ie.off(e,t,n)})},off:function(e,t,n){if(1!==arguments.length||ee(arguments[0])){var r=L[e];r&&(L[e]=1===arguments.length?null:O(r,t,n))}else{t=arguments[0];for(var i in L)L[i]=O(L[i],t)}},pin:function(e,t){n(X(e),"element","not an element"),n(X(t),"parentElement","not an element"),e.data(Oe,t)},push:function(e,t,n,r){return n=n||{},n.domOperation=r,A(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!z;else{var r=X(e);if(r){var i=y(e);1===n?t=!F.get(i):F.put(i,!t)}else t=z=!!e}return t}};return ie}]}],Ae=["$animateProvider",function(e){function t(e,t){e.data(u,t)}function n(e){e.removeData(u)}function i(e){return e.data(u)}var o="ng-animate-ref",a=this.drivers=[],u="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(e,u,s,l,c,h){function g(e){function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode,r=n.parentNode;o.put(n,e);for(var a;r;){if(a=o.get(r)){a.processed||(a=t(a));break}r=r.parentNode}return(a||i).children.push(e),e}function n(e){var t,n=[],r=[];for(t=0;t<e.children.length;t++)r.push(e.children[t]);var i=r.length,o=0,a=[];for(t=0;t<r.length;t++){var u=r[t];0>=i&&(i=o,o=0,n.push(a),a=[]),a.push(u.fn),u.children.forEach(function(e){o++,r.push(e)}),i--}return a.length&&n.push(a),n}var r,i={children:[]},o=new c;for(r=0;r<e.length;r++){var a=e[r];o.put(a.domNode,e[r]={domNode:a.domNode,fn:a.fn,children:[]})}for(r=0;r<e.length;r++)t(e[r]);return n(i)}var m=[],v=f(e);return function(c,f,$){function b(e){var t="["+o+"]",n=e.hasAttribute(o)?[e]:e.querySelectorAll(t),r=[];return G(n,function(e){var t=e.getAttribute(o);t&&t.length&&r.push(e)}),r}function w(e){var t=[],n={};G(e,function(e,r){var i=e.element,a=y(i),u=e.event,s=["enter","move"].indexOf(u)>=0,l=e.structural?b(a):[];if(l.length){var c=s?"to":"from";G(l,function(e){var t=e.getAttribute(o);n[t]=n[t]||{},n[t][c]={animationID:r,element:ne(e)}})}else t.push(e)});var r={},i={};return G(n,function(n,o){var a=n.from,u=n.to;if(!a||!u){var s=a?a.animationID:u.animationID,l=s.toString();return void(r[l]||(r[l]=!0,t.push(e[s])))}var c=e[a.animationID],f=e[u.animationID],p=a.animationID.toString();if(!i[p]){var d=i[p]={structural:!0,beforeStart:function(){c.beforeStart(),f.beforeStart()},close:function(){c.close(),f.close()},classes:x(c.classes,f.classes),from:c,to:f,anchors:[]};d.classes.length?t.push(d):(t.push(c),t.push(f))}i[p].anchors.push({out:a.element,"in":u.element})}),t}function x(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r<e.length;r++){var i=e[r];if("ng-"!==i.substring(0,3))for(var o=0;o<t.length;o++)if(i===t[o]){n.push(i);break}}return n.join(" ")}function _(e){for(var t=a.length-1;t>=0;t--){var n=a[t],r=s.get(n),i=r(e);if(i)return i}}function k(){c.addClass(H),A&&e.addClass(c,A),M&&(e.removeClass(c,M),M=null)}function C(e,t){function n(e){var n=i(e);n&&n.setHost(t)}e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element)}function S(){var e=i(c);!e||"leave"===f&&$.$$domOperationFired||e.end()}function T(t){c.off("$destroy",S),n(c),v(c,$),d(c,$),$.domOperation(),A&&e.removeClass(c,A),c.removeClass(H),O.complete(!t)}$=p($);var D=["enter","move","leave"].indexOf(f)>=0,O=new l({end:function(){T()},cancel:function(){T(!0)}});if(!a.length)return T(),O;t(c,O);var E=r(c.attr("class"),r($.addClass,$.removeClass)),A=$.tempClasses;A&&(E+=" "+A,$.tempClasses=null);var M;return D&&(M="ng-"+f+L,e.addClass(c,M)),m.push({element:c,classes:E,event:f,structural:D,options:$,beforeStart:k,close:T}),c.on("$destroy",S),m.length>1?O:(u.$$postDigest(function(){var e=[];G(m,function(t){i(t.element)?e.push(t):t.close()}),m.length=0;var t=w(e),n=[];G(t,function(e){n.push({domNode:y(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var t,n=e.close,r=e.anchors?e.from.element||e.to.element:e.element;if(i(r)){var o=_(e);o&&(t=o.start)}if(t){var a=t();a.done(function(e){n(!e)}),C(e,a)}else n()}})}),h(g(n))}),O)}}]}],Me=["$animate","$rootScope",function(e,t){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,n,r,i,o){var a,u;t.$watchCollection(r.ngAnimateSwap||r["for"],function(r){a&&e.leave(a),u&&(u.$destroy(),u=null),(r||0===r)&&(u=t.$new(),o(u,function(t){a=t,e.enter(t,null,n)}))})}}}];t.module("ngAnimate",[],function(){re=t.noop,B=t.copy,Y=t.extend,ne=t.element,G=t.forEach,K=t.isArray,ee=t.isString,Q=t.isObject,te=t.isUndefined,Z=t.isDefined,J=t.isFunction,X=t.isElement}).directive("ngAnimateSwap",Me).directive("ngAnimateChildren",ve).factory("$$rAFScheduler",me).provider("$$animateQueue",Ee).provider("$$animation",Ae).provider("$animateCss",ke).provider("$$animateCssDriver",Ce).provider("$$animateJs",Se).provider("$$animateJsDriver",Te)}(window,window.angular),/**
   * @license AngularJS v1.5.11
   * (c) 2010-2017 Google, Inc. http://angularjs.org
   * License: MIT
   */
  function(e,t){"use strict";function n(e,n,r){function i(e,r,i){var a,u;i=i||{},u=i.expires,a=t.isDefined(i.path)?i.path:o,t.isUndefined(r)&&(u="Thu, 01 Jan 1970 00:00:00 GMT",r=""),t.isString(u)&&(u=new Date(u));var s=encodeURIComponent(e)+"="+encodeURIComponent(r);s+=a?";path="+a:"",s+=i.domain?";domain="+i.domain:"",s+=u?";expires="+u.toUTCString():"",s+=i.secure?";secure":"";var l=s.length+1;return l>4096&&n.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+l+" > 4096 bytes)!"),s}var o=r.baseHref(),a=e[0];return function(e,t,n){a.cookie=i(e,t,n)}}t.module("ngCookies",["ng"]).provider("$cookies",[function(){function e(e){return e?t.extend({},n,e):n}var n=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(n,r){return{get:function(e){return n()[e]},getObject:function(e){var n=this.get(e);return n?t.fromJson(n):n},getAll:function(){return n()},put:function(t,n,i){r(t,n,e(i))},putObject:function(e,n,r){this.put(e,t.toJson(n),r)},remove:function(t,n){r(t,void 0,e(n))}}}]}]),t.module("ngCookies").factory("$cookieStore",["$cookies",function(e){return{get:function(t){return e.getObject(t)},put:function(t,n){e.putObject(t,n)},remove:function(t){e.remove(t)}}}]),n.$inject=["$document","$log","$browser"],t.module("ngCookies").provider("$$cookieWriter",function(){this.$get=n})}(window,window.angular),/**
   * @license AngularJS v1.5.11
   * (c) 2010-2017 Google, Inc. http://angularjs.org
   * License: MIT
   */
  function(e,t){"use strict";function n(e){return t.lowercase(e.nodeName||e[0]&&e[0].nodeName)}function r(e,n){var r=!1,i=!1;this.ngClickOverrideEnabled=function(o){return t.isDefined(o)?(o&&!i&&(i=!0,a.$$moduleName="ngTouch",n.directive("ngClick",a),e.decorator("ngClickDirective",["$delegate",function(e){if(r)e.shift();else for(var t=e.length-1;t>=0;){if("ngTouch"===e[t].$$moduleName){e.splice(t,1);break}t--}return e}])),r=o,this):r},this.$get=function(){return{ngClickOverrideEnabled:function(){return r}}}}function i(e,n,r){o.directive(e,["$parse","$swipe",function(i,o){var a=75,u=.3,s=30;return function(l,c,f){function p(e){if(!d)return!1;var t=Math.abs(e.y-d.y),r=(e.x-d.x)*n;return h&&a>t&&r>0&&r>s&&u>t/r}var d,h,g=i(f[e]),m=["touch"];t.isDefined(f.ngSwipeDisableMouse)||m.push("mouse"),o.bind(c,{start:function(e,t){d=e,h=!0},cancel:function(e){h=!1},end:function(e,t){p(e)&&l.$apply(function(){c.triggerHandler(r),g(l,{$event:t})})}},m)}}])}var o=t.module("ngTouch",[]);o.provider("$touch",r),r.$inject=["$provide","$compileProvider"],o.factory("$swipe",[function(){function e(e){var t=e.originalEvent||e,n=t.touches&&t.touches.length?t.touches:[t],r=t.changedTouches&&t.changedTouches[0]||n[0];return{x:r.clientX,y:r.clientY}}function n(e,n){var r=[];return t.forEach(e,function(e){var t=i[e][n];t&&r.push(t)}),r.join(" ")}var r=10,i={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"},pointer:{start:"pointerdown",move:"pointermove",end:"pointerup",cancel:"pointercancel"}};return{bind:function(t,i,o){var a,u,s,l,c=!1;o=o||["mouse","touch","pointer"],t.on(n(o,"start"),function(t){s=e(t),c=!0,a=0,u=0,l=s,i.start&&i.start(s,t)});var f=n(o,"cancel");f&&t.on(f,function(e){c=!1,i.cancel&&i.cancel(e)}),t.on(n(o,"move"),function(t){if(c&&s){var n=e(t);if(a+=Math.abs(n.x-l.x),u+=Math.abs(n.y-l.y),l=n,!(r>a&&r>u))return u>a?(c=!1,void(i.cancel&&i.cancel(t))):(t.preventDefault(),void(i.move&&i.move(n,t)))}}),t.on(n(o,"end"),function(t){c&&(c=!1,i.end&&i.end(e(t),t))})}}}]);var a=["$parse","$timeout","$rootElement",function(e,r,i){function o(e,t,n,r){return Math.abs(e-n)<m&&Math.abs(t-r)<m}function a(e,t,n){for(var r=0;r<e.length;r+=2)if(o(e[r],e[r+1],t,n))return e.splice(r,r+2),!0;return!1}function u(e){if(!(Date.now()-c>g)){var t=e.touches&&e.touches.length?e.touches:[e],r=t[0].clientX,i=t[0].clientY;1>r&&1>i||p&&p[0]===r&&p[1]===i||(p&&(p=null),"label"===n(e.target)&&(p=[r,i]),a(f,r,i)||(e.stopPropagation(),e.preventDefault(),e.target&&e.target.blur&&e.target.blur()))}}function s(e){var t=e.touches&&e.touches.length?e.touches:[e],n=t[0].clientX,i=t[0].clientY;f.push(n,i),r(function(){for(var e=0;e<f.length;e+=2)if(f[e]===n&&f[e+1]===i)return void f.splice(e,e+2)},g,!1)}function l(e,t){f||(i[0].addEventListener("click",u,!0),i[0].addEventListener("touchstart",s,!0),f=[]),c=Date.now(),a(f,e,t)}var c,f,p,d=750,h=12,g=2500,m=25,v="ng-click-active";return function(n,r,i){function o(){p=!1,r.removeClass(v)}var a,u,s,c,f=e(i.ngClick),p=!1;r.on("touchstart",function(e){p=!0,a=e.target?e.target:e.srcElement,3===a.nodeType&&(a=a.parentNode),r.addClass(v),u=Date.now();var t=e.originalEvent||e,n=t.touches&&t.touches.length?t.touches:[t],i=n[0];s=i.clientX,c=i.clientY}),r.on("touchcancel",function(e){o()}),r.on("touchend",function(e){var n=Date.now()-u,f=e.originalEvent||e,g=f.changedTouches&&f.changedTouches.length?f.changedTouches:f.touches&&f.touches.length?f.touches:[f],m=g[0],v=m.clientX,y=m.clientY,$=Math.sqrt(Math.pow(v-s,2)+Math.pow(y-c,2));p&&d>n&&h>$&&(l(v,y),a&&a.blur(),t.isDefined(i.disabled)&&i.disabled!==!1||r.triggerHandler("click",[e])),o()}),r.onclick=function(e){},r.on("click",function(e,t){n.$apply(function(){f(n,{$event:t||e})})}),r.on("mousedown",function(e){r.addClass(v)}),r.on("mousemove mouseup",function(e){r.removeClass(v)})}}];i("ngSwipeLeft",-1,"swipeleft"),i("ngSwipeRight",1,"swiperight")}(window,window.angular),/**
   * @license AngularJS v1.5.11
   * (c) 2010-2017 Google, Inc. http://angularjs.org
   * License: MIT
   */
  function(e,t){"use strict";function n(){function n(e,t){var n,r={},i=e.split(",");for(n=0;n<i.length;n++)r[t?s(i[n]):i[n]]=!0;return r}function r(t,n){null===t||void 0===t?t="":"string"!=typeof t&&(t=""+t),y.innerHTML=t;var r=5;do{if(0===r)throw p("uinput","Failed to sanitize html because the input is unstable");r--,e.document.documentMode&&m(y),t=y.innerHTML,y.innerHTML=t}while(t!==y.innerHTML);for(var i=y.firstChild;i;){switch(i.nodeType){case 1:n.start(i.nodeName.toLowerCase(),d(i.attributes));break;case 3:n.chars(i.textContent)}var o;if(!(o=i.firstChild)&&(1===i.nodeType&&n.end(i.nodeName.toLowerCase()),o=i.nextSibling,!o))for(;null==o&&(i=i.parentNode,i!==y);)o=i.nextSibling,1===i.nodeType&&n.end(i.nodeName.toLowerCase());i=o}for(;i=y.firstChild;)y.removeChild(i)}function d(e){for(var t={},n=0,r=e.length;r>n;n++){var i=e[n];t[i.name]=i.value}return t}function h(e){return e.replace(/&/g,"&amp;").replace($,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+(1024*(t-55296)+(n-56320)+65536)+";"}).replace(b,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function g(e,t){var n=!1,r=i(e,e.push);return{start:function(e,i){e=s(e),!n&&D[e]&&(n=e),n||O[e]!==!0||(r("<"),r(e),a(i,function(n,i){var o=s(i),a="img"===e&&"src"===o||"background"===o;P[o]!==!0||E[o]===!0&&!t(n,a)||(r(" "),r(i),r('="'),r(h(n)),r('"'))}),r(">"))},end:function(e){e=s(e),n||O[e]!==!0||w[e]===!0||(r("</"),r(e),r(">")),e==n&&(n=!1)},chars:function(e){n||r(h(e))}}}function m(t){for(;t;){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;i>r;r++){var o=n[r],a=o.name.toLowerCase();("xmlns:ns1"===a||0===a.lastIndexOf("ns1:",0))&&(t.removeAttributeNode(o),r--,i--)}var u=t.firstChild;u&&m(u),t=t.nextSibling}}var v=!1;this.$get=["$$sanitizeUri",function(e){return v&&o(O,T),function(t){var n=[];return c(t,f(n,function(t,n){return!/^unsafe:/.test(e(t,n))})),n.join("")}}],this.enableSvg=function(e){return u(e)?(v=e,this):v},i=t.bind,o=t.extend,a=t.forEach,u=t.isDefined,s=t.lowercase,l=t.noop,c=r,f=g;var y,$=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=/([^#-~ |!])/g,w=n("area,br,col,hr,img,wbr"),x=n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_=n("rp,rt"),k=o({},_,x),C=o({},x,n("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),S=o({},_,n("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),T=n("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),D=n("script,style"),O=o({},w,C,S,k),E=n("background,cite,href,longdesc,src,xlink:href"),A=n("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),M=n("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),P=o({},E,M,A);!function(e){var t;if(!e.document||!e.document.implementation)throw p("noinert","Can't create an inert html document");t=e.document.implementation.createHTMLDocument("inert");var n=t.documentElement||t.getDocumentElement(),r=n.getElementsByTagName("body");if(1===r.length)y=r[0];else{var i=t.createElement("html");y=t.createElement("body"),i.appendChild(y),t.appendChild(i)}}(e)}function r(e){var t=[],n=f(t,l);return n.chars(e),t.join("")}var i,o,a,u,s,l,c,f,p=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",n),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,o=t.$$minErr("linky"),a=t.isDefined,u=t.isFunction,s=t.isObject,l=t.isString;return function(t,c,f){function p(e){e&&$.push(r(e))}function d(e,t){var n,r=v(e);$.push("<a ");for(n in r)$.push(n+'="'+r[n]+'" ');!a(c)||"target"in r||$.push('target="',c,'" '),$.push('href="',e.replace(/"/g,"&quot;"),'">'),p(t),$.push("</a>")}if(null==t||""===t)return t;if(!l(t))throw o("notstring","Expected string but received: {0}",t);for(var h,g,m,v=u(f)?f:s(f)?function(){return f}:function(){return{}},y=t,$=[];h=y.match(n);)g=h[0],h[2]||h[4]||(g=(h[3]?"http://":"mailto:")+g),m=h.index,p(y.substr(0,m)),d(g,h[0].replace(i,"")),y=y.substring(m+h[0].length);return p(y),e($.join(""))}}])}(window,window.angular),/**
   * @license AngularJS v1.5.11
   * (c) 2010-2017 Google, Inc. http://angularjs.org
   * License: MIT
   */
  function(e,t){"use strict";function n(){function e(e,t){return e?i(e)?e.indexOf(t)>=0:e.hasOwnProperty(t):void 0}return["$animate",function(t){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link:function(n,r,o,a,u){var s,l=r[0],c=o.ngMessage||o.when,f=o.ngMessageExp||o.whenExp,p=function(e){s=e?i(e)?e:e.split(/[\s,]+/):null,a.reRender()};f?(p(n.$eval(f)),n.$watchCollection(f,p)):p(c);var d,h;a.register(l,h={test:function(t){return e(s,t)},attach:function(){d||u(function(e,n){t.enter(e,null,r),d=e;var i=d.$$attachId=a.getAttachId();d.on("$destroy",function(){d&&d.$$attachId===i&&(a.deregister(l),h.detach()),n.$destroy()})})},detach:function(){if(d){var e=d;d=null,t.leave(e)}}})}}}]}var r,i,o,a;t.module("ngMessages",[],function(){r=t.forEach,i=t.isArray,o=t.isString,a=t.element}).directive("ngMessages",["$animate",function(e){function t(e,t){return o(t)&&0===t.length||n(e.$eval(t))}function n(e){return o(e)?e.length:!!e}var i="ng-active",a="ng-inactive";return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(o,u,s){function l(e,t){for(var n=t,r=[];n&&n!==e;){var i=n.$$ngMessageNode;if(i&&i.length)return v[i];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}function c(e,t,n){var r=v[n];if(p.head){var i=l(e,t);i?(r.next=i.next,i.next=r):(r.next=p.head,p.head=r)}else p.head=r}function f(e,t,n){var r=v[n],i=l(e,t);i?i.next=r.next:p.head=r.next}var p=this,d=0,h=0;this.getAttachId=function(){return h++};var g,m,v=this.messages={};this.render=function(l){l=l||{},g=!1,m=l;for(var c=t(u,s.ngMessagesMultiple)||t(u,s.multiple),f=[],d={},h=p.head,v=!1,y=0;null!=h;){y++;var $=h.message,b=!1;v||r(l,function(e,t){if(!b&&n(e)&&$.test(t)){if(d[t])return;d[t]=!0,b=!0,$.attach()}}),b?v=!c:f.push($),h=h.next}r(f,function(e){e.detach()}),f.length!==y?e.setClass(o,i,a):e.setClass(o,a,i)},u.$watchCollection(s.ngMessages||s["for"],p.render),o.on("$destroy",function(){r(v,function(e){e.message.detach()})}),this.reRender=function(){g||(g=!0,u.$evalAsync(function(){g&&m&&p.render(m)}))},this.register=function(e,t){var n=d.toString();v[n]={message:t},c(o[0],e,n),e.$$ngMessageNode=n,d++,p.reRender()},this.deregister=function(e){var t=e.$$ngMessageNode;delete e.$$ngMessageNode,f(o[0],e,t),delete v[t],p.reRender()}}]}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(e,t,n){function r(e,r){var i=n.$$createComment?n.$$createComment("ngMessagesInclude",r):t[0].createComment(" ngMessagesInclude: "+r+" "),o=a(i);e.after(o),e.remove()}return{restrict:"AE",require:"^^ngMessages",link:function(t,i,a){var u=a.ngMessagesInclude||a.src;e(u).then(function(e){t.$$destroyed||(o(e)&&!e.trim()?r(i,u):n(e)(t,function(e){i.after(e),r(i,u)}))})}}}]).directive("ngMessage",n()).directive("ngMessageExp",n())}(window,window.angular),/**
   * @license AngularJS v1.5.11
   * (c) 2010-2017 Google, Inc. http://angularjs.org
   * License: MIT
   */
  function(e,t){"use strict";function n(){function e(e,t,r,i){return function(a,u,s){var l=s.$normalize(t);!n[l]||o(u,r)||s[l]||a.$watch(s[e],function(e){e=i?!e:!!e,u.attr(t,e)})}}var n={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeypress:!0,bindRoleForClick:!0};this.config=function(e){n=t.extend(n,e)},this.$get=function(){return{config:function(e){return n[e]},$$watchExpr:e}}}var r=t.module("ngAria",["ng"]).provider("$aria",n),i=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],o=function(e,t){return-1!==t.indexOf(e[0].nodeName)?!0:void 0};r.directive("ngShow",["$aria",function(e){return e.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(e){return e.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(e){return e.$$watchExpr("ngValue","aria-checked",i,!1)}]).directive("ngChecked",["$aria",function(e){return e.$$watchExpr("ngChecked","aria-checked",i,!1)}]).directive("ngReadonly",["$aria",function(e){return e.$$watchExpr("ngReadonly","aria-readonly",i,!1)}]).directive("ngRequired",["$aria",function(e){return e.$$watchExpr("ngRequired","aria-required",i,!1)}]).directive("ngModel",["$aria",function(e){function t(t,n,r,a){return e.config(n)&&!r.attr(t)&&(a||!o(r,i))}function n(e,t){return!t.attr("role")&&t.attr("type")===e&&"INPUT"!==t[0].nodeName}function r(e,t){var n=e.type,r=e.role;return"checkbox"===(n||r)||"menuitemcheckbox"===r?"checkbox":"radio"===(n||r)||"menuitemradio"===r?"radio":"range"===n||"progressbar"===r||"slider"===r?"range":""}return{restrict:"A",require:"ngModel",priority:200,compile:function(i,o){var a=r(o,i);return{pre:function(e,t,n,r){"checkbox"===a&&(r.$isEmpty=function(e){return e===!1})},post:function(r,i,o,u){function s(){return u.$modelValue}function l(e){var t=o.value==u.$viewValue;i.attr("aria-checked",t)}function c(){i.attr("aria-checked",!u.$isEmpty(u.$viewValue))}var f=t("tabindex","tabindex",i,!1);switch(a){case"radio":case"checkbox":n(a,i)&&i.attr("role",a),t("aria-checked","ariaChecked",i,!1)&&r.$watch(s,"radio"===a?l:c),f&&i.attr("tabindex",0);break;case"range":if(n(a,i)&&i.attr("role","slider"),e.config("ariaValue")){var p=!i.attr("aria-valuemin")&&(o.hasOwnProperty("min")||o.hasOwnProperty("ngMin")),d=!i.attr("aria-valuemax")&&(o.hasOwnProperty("max")||o.hasOwnProperty("ngMax")),h=!i.attr("aria-valuenow");p&&o.$observe("min",function(e){i.attr("aria-valuemin",e)}),d&&o.$observe("max",function(e){i.attr("aria-valuemax",e)}),h&&r.$watch(s,function(e){i.attr("aria-valuenow",e)})}f&&i.attr("tabindex",0)}!o.hasOwnProperty("ngRequired")&&u.$validators.required&&t("aria-required","ariaRequired",i,!1)&&o.$observe("required",function(){i.attr("aria-required",!!o.required)}),t("aria-invalid","ariaInvalid",i,!0)&&r.$watch(function(){return u.$invalid},function(e){i.attr("aria-invalid",!!e)})}}}}}]).directive("ngDisabled",["$aria",function(e){return e.$$watchExpr("ngDisabled","aria-disabled",i,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(e,t,n,r){t.attr("aria-live")||t.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(e,t){return{restrict:"A",compile:function(n,r){var a=t(r.ngClick,null,!0);return function(t,n,r){o(n,i)||(e.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),e.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),e.config("bindKeypress")&&!r.ngKeypress&&n.on("keypress",function(e){function n(){a(t,{$event:e})}var r=e.which||e.keyCode;(32===r||13===r)&&t.$apply(n)}))}}}}]).directive("ngDblclick",["$aria",function(e){return function(t,n,r){!e.config("tabindex")||n.attr("tabindex")||o(n,i)||n.attr("tabindex",0)}}])}(window,window.angular),/**
   * @license AngularJS v1.5.11
   * (c) 2010-2017 Google, Inc. http://angularjs.org
   * License: MIT
   */
  function(e,t){"use strict";function n(e){return null!=e&&""!==e&&"hasOwnProperty"!==e&&a.test("."+e)}function r(e,r){if(!n(r))throw o("badmember",'Dotted member path "@{0}" is invalid.',r);for(var i=r.split("."),a=0,u=i.length;u>a&&t.isDefined(e);a++){var s=i[a];e=null!==e?e[s]:void 0}return e}function i(e,n){n=n||{},t.forEach(n,function(e,t){delete n[t]});for(var r in e)!e.hasOwnProperty(r)||"$"===r.charAt(0)&&"$"===r.charAt(1)||(n[r]=e[r]);return n}var o=t.$$minErr("$resource"),a=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;t.module("ngResource",["ng"]).provider("$resource",function(){var e=/^https?:\/\/[^\/]*/,n=this;this.defaults={stripTrailingSlashes:!0,cancellable:!1,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}}},this.$get=["$http","$log","$q","$timeout",function(a,u,s,l){function c(e){return f(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function f(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function p(e,t){this.template=e,this.defaults=m({},n.defaults,t),this.urlParams={}}function d(e,t,c,f){function x(e,n){var i={};return n=m({},t,n),g(n,function(t,n){b(t)&&(t=t(e)),i[n]=t&&t.charAt&&"@"===t.charAt(0)?r(e,t.substr(1)):t}),i}function _(e){return e.resource}function k(e){i(e||{},this)}var C=new p(e,f);return c=m({},n.defaults.actions,c),k.prototype.toJSON=function(){var e=m({},this);return delete e.$promise,delete e.$resolved,delete e.$cancelRequest,e},g(c,function(e,t){var n=/^(POST|PUT|PATCH)$/i.test(e.method),r=e.timeout,c=$(e.cancellable)?e.cancellable:C.defaults.cancellable;r&&!w(r)&&(u.debug("ngResource:\n  Only numeric values are allowed as `timeout`.\n  Promises are not supported in $resource, because the same value would be used for multiple requests. If you are looking for a way to cancel requests, you should use the `cancellable` option."),delete e.timeout,r=null),k[t]=function(u,f,p,d){var $,w,S,T={};switch(arguments.length){case 4:S=d,w=p;case 3:case 2:if(!b(f)){T=u,$=f,w=p;break}if(b(u)){w=u,S=f;break}w=f,S=p;case 1:b(u)?w=u:n?$=u:T=u;break;case 0:break;default:throw o("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var D,O,E=this instanceof k,A=E?$:e.isArray?[]:new k($),M={},P=e.interceptor&&e.interceptor.response||_,j=e.interceptor&&e.interceptor.responseError||void 0;g(e,function(e,t){switch(t){default:M[t]=v(e);break;case"params":case"isArray":case"interceptor":case"cancellable":}}),!E&&c&&(D=s.defer(),M.timeout=D.promise,r&&(O=l(D.resolve,r))),n&&(M.data=$),C.setUrlParams(M,m({},x($,e.params||{}),T),e.url);var N=a(M).then(function(n){var r=n.data;if(r){if(y(r)!==!!e.isArray)throw o("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2} (Request: {3} {4})",t,e.isArray?"array":"object",y(r)?"array":"object",M.method,M.url);if(e.isArray)A.length=0,g(r,function(e){"object"==typeof e?A.push(new k(e)):A.push(e)});else{var a=A.$promise;i(r,A),A.$promise=a}}return n.resource=A,n},function(e){return(S||h)(e),s.reject(e)});return N["finally"](function(){A.$resolved=!0,!E&&c&&(A.$cancelRequest=h,l.cancel(O),D=O=M.timeout=null)}),N=N.then(function(e){var t=P(e);return(w||h)(t,e.headers,e.status,e.statusText),t},j),E?N:(A.$promise=N,A.$resolved=!1,c&&(A.$cancelRequest=D.resolve),A)},k.prototype["$"+t]=function(e,n,r){b(e)&&(r=n,n=e,e={});var i=k[t].call(this,e,this,n,r);return i.$promise||i}}),k.bind=function(n){var r=m({},t,n);return d(e,r,c,f)},k}var h=t.noop,g=t.forEach,m=t.extend,v=t.copy,y=t.isArray,$=t.isDefined,b=t.isFunction,w=t.isNumber;return p.prototype={setUrlParams:function(t,n,r){var i,a,u=this,s=r||u.template,l="",p=u.urlParams={};g(s.split(/\W/),function(e){if("hasOwnProperty"===e)throw o("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(e)&&e&&new RegExp("(^|[^\\\\]):"+e+"(\\W|$)").test(s)&&(p[e]={isQueryParamValue:new RegExp("\\?.*=:"+e+"(?:\\W|$)").test(s)})}),s=s.replace(/\\:/g,":"),s=s.replace(e,function(e){return l=e,""}),n=n||{},g(u.urlParams,function(e,t){i=n.hasOwnProperty(t)?n[t]:u.defaults[t],$(i)&&null!==i?(a=e.isQueryParamValue?f(i,!0):c(i),s=s.replace(new RegExp(":"+t+"(\\W|$)","g"),function(e,t){return a+t})):s=s.replace(new RegExp("(/?):"+t+"(\\W|$)","g"),function(e,t,n){return"/"===n.charAt(0)?n:t+n})}),u.defaults.stripTrailingSlashes&&(s=s.replace(/\/+$/,"")||"/"),s=s.replace(/\/\.(?=\w+($|\?))/,"."),t.url=l+s.replace(/\/\\\./,"/."),g(n,function(e,n){u.urlParams[n]||(t.params=t.params||{},t.params[n]=e)})}},d}]})}(window,window.angular),/**
   * State-based routing for AngularJS
   * @version v0.2.18
   * @link http://angular-ui.github.com/
   * @license MIT License, http://www.opensource.org/licenses/MIT
   */
  "undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(e,t,n){"use strict";function r(e,t){return H(new(H(function(){},{prototype:e})),t)}function i(e){return L(arguments,function(t){t!==e&&L(t,function(t,n){e.hasOwnProperty(n)||(e[n]=t)})}),e}function o(e,t){var n=[];for(var r in e.path){if(e.path[r]!==t.path[r])break;n.push(e.path[r])}return n}function a(e){if(Object.keys)return Object.keys(e);var t=[];return L(e,function(e,n){t.push(n)}),t}function u(e,t){if(Array.prototype.indexOf)return e.indexOf(t,Number(arguments[2])||0);var n=e.length>>>0,r=Number(arguments[2])||0;for(r=0>r?Math.ceil(r):Math.floor(r),0>r&&(r+=n);n>r;r++)if(r in e&&e[r]===t)return r;return-1}function s(e,t,n,r){var i,s=o(n,r),l={},c=[];for(var f in s)if(s[f]&&s[f].params&&(i=a(s[f].params),i.length))for(var p in i)u(c,i[p])>=0||(c.push(i[p]),l[i[p]]=e[i[p]]);return H({},l,t)}function l(e,t,n){if(!n){n=[];for(var r in e)n.push(r)}for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!=t[o])return!1}return!0}function c(e,t){var n={};return L(e,function(e){n[e]=t[e]}),n}function f(e){var t={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return L(n,function(n){n in e&&(t[n]=e[n])}),t}function p(e){var t={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var r in e)-1==u(n,r)&&(t[r]=e[r]);return t}function d(e,t){var n=q(e),r=n?[]:{};return L(e,function(e,i){t(e,i)&&(r[n?r.length:i]=e)}),r}function h(e,t){var n=q(e)?[]:{};return L(e,function(e,r){n[r]=t(e,r)}),n}function g(e,t){var r=1,o=2,s={},l=[],c=s,f=H(e.when(s),{$$promises:s,$$values:s});this.study=function(s){function d(e,n){if(y[n]!==o){if(v.push(n),y[n]===r)throw v.splice(0,u(v,n)),new Error("Cyclic dependency: "+v.join(" -> "));if(y[n]=r,F(e))m.push(n,[function(){return t.get(e)}],l);else{var i=t.annotate(e);L(i,function(e){e!==n&&s.hasOwnProperty(e)&&d(s[e],e)}),m.push(n,e,i)}v.pop(),y[n]=o}}function h(e){return z(e)&&e.then&&e.$$promises}if(!z(s))throw new Error("'invocables' must be an object");var g=a(s||{}),m=[],v=[],y={};return L(s,d),s=v=y=null,function(r,o,a){function u(){--b||(w||i($,o.$$values),v.$$values=$,v.$$promises=v.$$promises||!0,delete v.$$inheritedValues,d.resolve($))}function s(e){v.$$failure=e,d.reject(e)}function l(n,i,o){function l(e){f.reject(e),s(e)}function c(){if(!U(v.$$failure))try{f.resolve(t.invoke(i,a,$)),f.promise.then(function(e){$[n]=e,u()},l)}catch(e){l(e)}}var f=e.defer(),p=0;L(o,function(e){y.hasOwnProperty(e)&&!r.hasOwnProperty(e)&&(p++,y[e].then(function(t){$[e]=t,--p||c()},l))}),p||c(),y[n]=f.promise}if(h(r)&&a===n&&(a=o,o=r,r=null),r){if(!z(r))throw new Error("'locals' must be an object")}else r=c;if(o){if(!h(o))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else o=f;var d=e.defer(),v=d.promise,y=v.$$promises={},$=H({},r),b=1+m.length/3,w=!1;if(U(o.$$failure))return s(o.$$failure),v;o.$$inheritedValues&&i($,p(o.$$inheritedValues,g)),H(y,o.$$promises),o.$$values?(w=i($,p(o.$$values,g)),v.$$inheritedValues=p(o.$$values,g),u()):(o.$$inheritedValues&&(v.$$inheritedValues=p(o.$$inheritedValues,g)),o.then(u,s));for(var x=0,_=m.length;_>x;x+=3)r.hasOwnProperty(m[x])?u():l(m[x],m[x+1],m[x+2]);return v}},this.resolve=function(e,t,n,r){return this.study(e)(t,n,r)}}function m(e,t,n){this.fromConfig=function(e,t,n){return U(e.template)?this.fromString(e.template,t):U(e.templateUrl)?this.fromUrl(e.templateUrl,t):U(e.templateProvider)?this.fromProvider(e.templateProvider,t,n):null},this.fromString=function(e,t){return R(e)?e(t):e},this.fromUrl=function(n,r){return R(n)&&(n=n(r)),null==n?null:e.get(n,{cache:t,headers:{Accept:"text/html"}}).then(function(e){return e.data})},this.fromProvider=function(e,t,r){return n.invoke(e,null,r||{params:t})}}function v(e,t,i){function o(t,n,r,i){if(m.push(t),h[t])return h[t];if(!/^\w+([-.]+\w+)*(?:\[\])?$/.test(t))throw new Error("Invalid parameter name '"+t+"' in pattern '"+e+"'");if(g[t])throw new Error("Duplicate parameter name '"+t+"' in pattern '"+e+"'");return g[t]=new B.Param(t,n,r,i),g[t]}function a(e,t,n,r){var i=["",""],o=e.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!t)return o;switch(n){case!1:i=["(",")"+(r?"?":"")];break;case!0:o=o.replace(/\/$/,""),i=["(?:/(",")|/)?"];break;default:i=["("+n+"|",")?"]}return o+i[0]+t+i[1]}function u(i,o){var a,u,s,l,c;return a=i[2]||i[3],c=t.params[a],s=e.substring(p,i.index),u=o?i[4]:i[4]||("*"==i[1]?".*":null),u&&(l=B.type(u)||r(B.type("string"),{pattern:new RegExp(u,t.caseInsensitive?"i":n)})),{id:a,regexp:u,segment:s,type:l,cfg:c}}t=H({params:{}},z(t)?t:{});var s,l=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,c=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,f="^",p=0,d=this.segments=[],h=i?i.params:{},g=this.params=i?i.params.$$new():new B.ParamSet,m=[];this.source=e;for(var v,y,$;(s=l.exec(e))&&(v=u(s,!1),!(v.segment.indexOf("?")>=0));)y=o(v.id,v.type,v.cfg,"path"),f+=a(v.segment,y.type.pattern.source,y.squash,y.isOptional),d.push(v.segment),p=l.lastIndex;$=e.substring(p);var b=$.indexOf("?");if(b>=0){var w=this.sourceSearch=$.substring(b);if($=$.substring(0,b),this.sourcePath=e.substring(0,p+b),w.length>0)for(p=0;s=c.exec(w);)v=u(s,!0),y=o(v.id,v.type,v.cfg,"search"),p=l.lastIndex}else this.sourcePath=e,this.sourceSearch="";f+=a($)+(t.strict===!1?"/?":"")+"$",d.push($),this.regexp=new RegExp(f,t.caseInsensitive?"i":n),this.prefix=d[0],this.$$paramNames=m}function y(e){H(this,e)}function $(){function e(e){return null!=e?e.toString().replace(/~/g,"~~").replace(/\//g,"~2F"):e}function i(e){return null!=e?e.toString().replace(/~2F/g,"/").replace(/~~/g,"~"):e}function o(){return{strict:g,caseInsensitive:p}}function s(e){return R(e)||q(e)&&R(e[e.length-1])}function l(){for(;x.length;){var e=x.shift();if(e.pattern)throw new Error("You cannot override a type's .pattern at runtime.");t.extend(b[e.name],f.invoke(e.def))}}function c(e){H(this,e||{})}B=this;var f,p=!1,g=!0,m=!1,b={},w=!0,x=[],_={string:{encode:e,decode:i,is:function(e){return null==e||!U(e)||"string"==typeof e},pattern:/[^\/]*/},"int":{encode:e,decode:function(e){return parseInt(e,10)},is:function(e){return U(e)&&this.decode(e.toString())===e},pattern:/\d+/},bool:{encode:function(e){return e?1:0},decode:function(e){return 0!==parseInt(e,10)},is:function(e){return e===!0||e===!1},pattern:/0|1/},date:{encode:function(e){return this.is(e)?[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("-"):n},decode:function(e){if(this.is(e))return e;var t=this.capture.exec(e);return t?new Date(t[1],t[2]-1,t[3]):n},is:function(e){return e instanceof Date&&!isNaN(e.valueOf())},equals:function(e,t){return this.is(e)&&this.is(t)&&e.toISOString()===t.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:t.toJson,decode:t.fromJson,is:t.isObject,equals:t.equals,pattern:/[^\/]*/},any:{encode:t.identity,decode:t.identity,equals:t.equals,pattern:/.*/}};$.$$getDefaultValue=function(e){if(!s(e.value))return e.value;if(!f)throw new Error("Injectable functions cannot be called at configuration time");return f.invoke(e.value)},this.caseInsensitive=function(e){return U(e)&&(p=e),p},this.strictMode=function(e){return U(e)&&(g=e),g},this.defaultSquashPolicy=function(e){if(!U(e))return m;if(e!==!0&&e!==!1&&!F(e))throw new Error("Invalid squash policy: "+e+". Valid policies: false, true, arbitrary-string");return m=e,e},this.compile=function(e,t){return new v(e,H(o(),t))},this.isMatcher=function(e){if(!z(e))return!1;var t=!0;return L(v.prototype,function(n,r){R(n)&&(t=t&&U(e[r])&&R(e[r]))}),t},this.type=function(e,t,n){if(!U(t))return b[e];if(b.hasOwnProperty(e))throw new Error("A type named '"+e+"' has already been defined.");return b[e]=new y(H({name:e},t)),n&&(x.push({name:e,def:n}),w||l()),this},L(_,function(e,t){b[t]=new y(H({name:t},e))}),b=r(b,{}),this.$get=["$injector",function(e){return f=e,w=!1,l(),L(_,function(e,t){b[t]||(b[t]=new y(e))}),this}],this.Param=function(e,r,i,o){function l(e){var t=z(e)?a(e):[],n=-1===u(t,"value")&&-1===u(t,"type")&&-1===u(t,"squash")&&-1===u(t,"array");return n&&(e={value:e}),e.$$fn=s(e.value)?e.value:function(){return e.value},e}function c(n,r,i){if(n.type&&r)throw new Error("Param '"+e+"' has two type configurations.");return r?r:n.type?t.isString(n.type)?b[n.type]:n.type instanceof y?n.type:new y(n.type):"config"===i?b.any:b.string}function p(){var t={array:"search"===o?"auto":!1},n=e.match(/\[\]$/)?{array:!0}:{};return H(t,n,i).array}function g(e,t){var n=e.squash;if(!t||n===!1)return!1;if(!U(n)||null==n)return m;if(n===!0||F(n))return n;throw new Error("Invalid squash policy: '"+n+"'. Valid policies: false, true, or arbitrary string")}function v(e,t,r,i){var o,a,s=[{from:"",to:r||t?n:""},{from:null,to:r||t?n:""}];return o=q(e.replace)?e.replace:[],F(i)&&o.push({from:i,to:n}),a=h(o,function(e){return e.from}),d(s,function(e){return-1===u(a,e.from)}).concat(o)}function $(){if(!f)throw new Error("Injectable functions cannot be called at configuration time");var e=f.invoke(i.$$fn);if(null!==e&&e!==n&&!_.type.is(e))throw new Error("Default value ("+e+") for parameter '"+_.id+"' is not an instance of Type ("+_.type.name+")");return e}function w(e){function t(e){return function(t){return t.from===e}}function n(e){var n=h(d(_.replace,t(e)),function(e){return e.to});return n.length?n[0]:e}return e=n(e),U(e)?_.type.$normalize(e):$()}function x(){return"{Param:"+e+" "+r+" squash: '"+S+"' optional: "+C+"}"}var _=this;i=l(i),r=c(i,r,o);var k=p();r=k?r.$asArray(k,"search"===o):r,"string"!==r.name||k||"path"!==o||i.value!==n||(i.value="");var C=i.value!==n,S=g(i,C),T=v(i,k,C,S);H(this,{id:e,type:r,location:o,array:k,squash:S,replace:T,isOptional:C,value:w,dynamic:n,config:i,toString:x})},c.prototype={$$new:function(){return r(this,H(new c,{$$parent:this}))},$$keys:function(){for(var e=[],t=[],n=this,r=a(c.prototype);n;)t.push(n),n=n.$$parent;return t.reverse(),L(t,function(t){L(a(t),function(t){-1===u(e,t)&&-1===u(r,t)&&e.push(t)})}),e},$$values:function(e){var t={},n=this;return L(n.$$keys(),function(r){t[r]=n[r].value(e&&e[r])}),t},$$equals:function(e,t){var n=!0,r=this;return L(r.$$keys(),function(i){var o=e&&e[i],a=t&&t[i];r[i].type.equals(o,a)||(n=!1)}),n},$$validates:function(e){var r,i,o,a,u,s=this.$$keys();for(r=0;r<s.length&&(i=this[s[r]],o=e[s[r]],o!==n&&null!==o||!i.isOptional);r++){if(a=i.type.$normalize(o),!i.type.is(a))return!1;if(u=i.type.encode(a),t.isString(u)&&!i.type.pattern.exec(u))return!1}return!0},$$parent:n},this.ParamSet=c}function b(e,r){function i(e){var t=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(e.source);return null!=t?t[1].replace(/\\(.)/g,"$1"):""}function o(e,t){return e.replace(/\$(\$|\d{1,2})/,function(e,n){return t["$"===n?0:Number(n)]})}function a(e,t,n){if(!n)return!1;var r=e.invoke(t,t,{$match:n});return U(r)?r:!0}function u(r,i,o,a,u){function p(e,t,n){return"/"===m?e:t?m.slice(0,-1)+e:n?m.slice(1)+e:e}function d(e){function t(e){var t=e(o,r);return t?(F(t)&&r.replace().url(t),!0):!1}if(!e||!e.defaultPrevented){g&&r.url()===g;g=n;var i,a=l.length;for(i=0;a>i;i++)if(t(l[i]))return;c&&t(c)}}function h(){return s=s||i.$on("$locationChangeSuccess",d)}var g,m=a.baseHref(),v=r.url();return f||h(),{sync:function(){d()},listen:function(){return h()},update:function(e){return e?void(v=r.url()):void(r.url()!==v&&(r.url(v),r.replace()))},push:function(e,t,i){var o=e.format(t||{});null!==o&&t&&t["#"]&&(o+="#"+t["#"]),r.url(o),g=i&&i.$$avoidResync?r.url():n,i&&i.replace&&r.replace()},href:function(n,i,o){if(!n.validates(i))return null;var a=e.html5Mode();t.isObject(a)&&(a=a.enabled),a=a&&u.history;var s=n.format(i);if(o=o||{},a||null===s||(s="#"+e.hashPrefix()+s),null!==s&&i&&i["#"]&&(s+="#"+i["#"]),s=p(s,a,o.absolute),!o.absolute||!s)return s;var l=!a&&s?"/":"",c=r.port();return c=80===c||443===c?"":":"+c,[r.protocol(),"://",r.host(),c,l,s].join("")}}}var s,l=[],c=null,f=!1;this.rule=function(e){if(!R(e))throw new Error("'rule' must be a function");return l.push(e),this},this.otherwise=function(e){if(F(e)){var t=e;e=function(){return t}}else if(!R(e))throw new Error("'rule' must be a function");return c=e,this},this.when=function(e,t){var n,u=F(t);if(F(e)&&(e=r.compile(e)),!u&&!R(t)&&!q(t))throw new Error("invalid 'handler' in when()");var s={matcher:function(e,t){return u&&(n=r.compile(t),t=["$match",function(e){return n.format(e)}]),H(function(n,r){return a(n,t,e.exec(r.path(),r.search()))},{prefix:F(e.prefix)?e.prefix:""})},regex:function(e,t){if(e.global||e.sticky)throw new Error("when() RegExp must not be global or sticky");return u&&(n=t,t=["$match",function(e){return o(n,e)}]),H(function(n,r){return a(n,t,e.exec(r.path()))},{prefix:i(e)})}},l={matcher:r.isMatcher(e),regex:e instanceof RegExp};for(var c in l)if(l[c])return this.rule(s[c](e,t));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(e){e===n&&(e=!0),f=e},this.$get=u,u.$inject=["$location","$rootScope","$injector","$browser","$sniffer"]}function w(e,i){function o(e){return 0===e.indexOf(".")||0===e.indexOf("^")}function p(e,t){if(!e)return n;var r=F(e),i=r?e:e.name,a=o(i);if(a){if(!t)throw new Error("No reference point given for path '"+i+"'");t=p(t);for(var u=i.split("."),s=0,l=u.length,c=t;l>s;s++)if(""!==u[s]||0!==s){if("^"!==u[s])break;if(!c.parent)throw new Error("Path '"+i+"' not valid for state '"+t.name+"'");c=c.parent}else c=t;u=u.slice(s).join("."),i=c.name+(c.name&&u?".":"")+u}var f=C[i];return!f||!r&&(r||f!==e&&f.self!==e)?n:f}function d(e,t){S[e]||(S[e]=[]),S[e].push(t)}function g(e){for(var t=S[e]||[];t.length;)m(t.shift())}function m(t){t=r(t,{self:t,resolve:t.resolve||{},toString:function(){return this.name}});var n=t.name;if(!F(n)||n.indexOf("@")>=0)throw new Error("State must have a valid name");if(C.hasOwnProperty(n))throw new Error("State '"+n+"' is already defined");var i=-1!==n.indexOf(".")?n.substring(0,n.lastIndexOf(".")):F(t.parent)?t.parent:z(t.parent)&&F(t.parent.name)?t.parent.name:"";if(i&&!C[i])return d(i,t.self);for(var o in D)R(D[o])&&(t[o]=D[o](t,D.$delegates[o]));return C[n]=t,!t[T]&&t.url&&e.when(t.url,["$match","$stateParams",function(e,n){k.$current.navigable==t&&l(e,n)||k.transitionTo(t,e,{inherit:!0,location:!1})}]),g(n),t}function v(e){return e.indexOf("*")>-1}function y(e){for(var t=e.split("."),n=k.$current.name.split("."),r=0,i=t.length;i>r;r++)"*"===t[r]&&(n[r]="*");return"**"===t[0]&&(n=n.slice(u(n,t[1])),n.unshift("**")),"**"===t[t.length-1]&&(n.splice(u(n,t[t.length-2])+1,Number.MAX_VALUE),n.push("**")),t.length!=n.length?!1:n.join("")===t.join("")}function $(e,t){return F(e)&&!U(t)?D[e]:R(t)&&F(e)?(D[e]&&!D.$delegates[e]&&(D.$delegates[e]=D[e]),D[e]=t,this):this}function b(e,t){return z(e)?t=e:t.name=e,m(t),this}function w(e,i,o,u,f,d,g,m,$){function b(t,n,r,o){var a=e.$broadcast("$stateNotFound",t,n,r);if(a.defaultPrevented)return g.update(),O;if(!a.retry)return null;if(o.$retry)return g.update(),E;var u=k.transition=i.when(a.retry);return u.then(function(){return u!==k.transition?S:(t.options.$retry=!0,k.transitionTo(t.to,t.toParams,t.options))},function(){return O}),g.update(),u}function w(e,n,r,a,s,l){function p(){var n=[];return L(e.views,function(r,i){var a=r.resolve&&r.resolve!==e.resolve?r.resolve:{};a.$template=[function(){return o.load(i,{view:r,locals:s.globals,params:d,notify:l.notify})||""}],n.push(f.resolve(a,s.globals,s.resolve,e).then(function(n){if(R(r.controllerProvider)||q(r.controllerProvider)){var o=t.extend({},a,s.globals);n.$$controller=u.invoke(r.controllerProvider,null,o)}else n.$$controller=r.controller;n.$$state=e,n.$$controllerAs=r.controllerAs,s[i]=n}))}),i.all(n).then(function(){return s.globals})}var d=r?n:c(e.params.$$keys(),n),h={$stateParams:d};s.resolve=f.resolve(e.resolve,h,s.resolve,e);var g=[s.resolve.then(function(e){s.globals=e})];return a&&g.push(a),i.all(g).then(p).then(function(e){return s})}var S=i.reject(new Error("transition superseded")),D=i.reject(new Error("transition prevented")),O=i.reject(new Error("transition aborted")),E=i.reject(new Error("transition failed"));return _.locals={resolve:null,globals:{$stateParams:{}}},k={params:{},current:_.self,$current:_,transition:null},k.reload=function(e){return k.transitionTo(k.current,d,{reload:e||!0,inherit:!1,notify:!0})},k.go=function(e,t,n){return k.transitionTo(e,t,H({inherit:!0,relative:k.$current},n))},k.transitionTo=function(t,n,o){n=n||{},o=H({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},o||{});var a,l=k.$current,f=k.params,h=l.path,m=p(t,o.relative),v=n["#"];if(!U(m)){var y={to:t,toParams:n,options:o},$=b(y,l.self,f,o);if($)return $;if(t=y.to,n=y.toParams,o=y.options,m=p(t,o.relative),!U(m)){if(!o.relative)throw new Error("No such state '"+t+"'");throw new Error("Could not resolve '"+t+"' from state '"+o.relative+"'")}}if(m[T])throw new Error("Cannot transition to abstract state '"+t+"'");if(o.inherit&&(n=s(d,n||{},k.$current,m)),!m.params.$$validates(n))return E;n=m.params.$$values(n),t=m;var C=t.path,O=0,A=C[O],M=_.locals,P=[];if(o.reload){if(F(o.reload)||z(o.reload)){if(z(o.reload)&&!o.reload.name)throw new Error("Invalid reload state object");var j=o.reload===!0?h[0]:p(o.reload);if(o.reload&&!j)throw new Error("No such reload state '"+(F(o.reload)?o.reload:o.reload.name)+"'");for(;A&&A===h[O]&&A!==j;)M=P[O]=A.locals,O++,A=C[O]}}else for(;A&&A===h[O]&&A.ownParams.$$equals(n,f);)M=P[O]=A.locals,O++,A=C[O];if(x(t,n,l,f,M,o))return v&&(n["#"]=v),k.params=n,V(k.params,d),V(c(t.params.$$keys(),d),t.locals.globals.$stateParams),o.location&&t.navigable&&t.navigable.url&&(g.push(t.navigable.url,n,{$$avoidResync:!0,replace:"replace"===o.location}),g.update(!0)),k.transition=null,i.when(k.current);if(n=c(t.params.$$keys(),n||{}),v&&(n["#"]=v),o.notify&&e.$broadcast("$stateChangeStart",t.self,n,l.self,f,o).defaultPrevented)return e.$broadcast("$stateChangeCancel",t.self,n,l.self,f),null==k.transition&&g.update(),D;for(var N=i.when(M),I=O;I<C.length;I++,A=C[I])M=P[I]=r(M),N=w(A,n,A===t,N,M,o);var R=k.transition=N.then(function(){var r,i,a;if(k.transition!==R)return S;for(r=h.length-1;r>=O;r--)a=h[r],a.self.onExit&&u.invoke(a.self.onExit,a.self,a.locals.globals),a.locals=null;for(r=O;r<C.length;r++)i=C[r],i.locals=P[r],i.self.onEnter&&u.invoke(i.self.onEnter,i.self,i.locals.globals);return k.transition!==R?S:(k.$current=t,k.current=t.self,k.params=n,V(k.params,d),k.transition=null,o.location&&t.navigable&&g.push(t.navigable.url,t.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===o.location}),o.notify&&e.$broadcast("$stateChangeSuccess",t.self,n,l.self,f),g.update(!0),k.current)},function(r){return k.transition!==R?S:(k.transition=null,a=e.$broadcast("$stateChangeError",t.self,n,l.self,f,r),a.defaultPrevented||g.update(),i.reject(r))});return R},k.is=function(e,t,r){r=H({relative:k.$current},r||{});var i=p(e,r.relative);return U(i)?k.$current!==i?!1:t?l(i.params.$$values(t),d):!0:n},k.includes=function(e,t,r){if(r=H({relative:k.$current},r||{}),F(e)&&v(e)){if(!y(e))return!1;e=k.$current.name}var i=p(e,r.relative);return U(i)?U(k.$current.includes[i.name])?t?l(i.params.$$values(t),d,a(t)):!0:!1:n},k.href=function(e,t,r){r=H({lossy:!0,inherit:!0,absolute:!1,relative:k.$current},r||{});var i=p(e,r.relative);if(!U(i))return null;r.inherit&&(t=s(d,t||{},k.$current,i));var o=i&&r.lossy?i.navigable:i;return o&&o.url!==n&&null!==o.url?g.href(o.url,c(i.params.$$keys().concat("#"),t||{}),{absolute:r.absolute}):null},k.get=function(e,t){if(0===arguments.length)return h(a(C),function(e){return C[e].self});var n=p(e,t||k.$current);return n&&n.self?n.self:null},k}function x(e,t,n,r,i,o){function a(e,t,n){function r(t){return"search"!=e.params[t].location}var i=e.params.$$keys().filter(r),o=f.apply({},[e.params].concat(i)),a=new B.ParamSet(o);return a.$$equals(t,n)}return!o.reload&&e===n&&(i===n.locals||e.self.reloadOnSearch===!1&&a(n,r,t))?!0:void 0}var _,k,C={},S={},T="abstract",D={parent:function(e){if(U(e.parent)&&e.parent)return p(e.parent);var t=/^(.+)\.[^.]+$/.exec(e.name);return t?p(t[1]):_},data:function(e){return e.parent&&e.parent.data&&(e.data=e.self.data=r(e.parent.data,e.data)),e.data},url:function(e){var t=e.url,n={params:e.params||{}};if(F(t))return"^"==t.charAt(0)?i.compile(t.substring(1),n):(e.parent.navigable||_).url.concat(t,n);if(!t||i.isMatcher(t))return t;throw new Error("Invalid url '"+t+"' in state '"+e+"'")},navigable:function(e){return e.url?e:e.parent?e.parent.navigable:null},ownParams:function(e){var t=e.url&&e.url.params||new B.ParamSet;return L(e.params||{},function(e,n){t[n]||(t[n]=new B.Param(n,null,e,"config"))}),t},params:function(e){var t=f(e.ownParams,e.ownParams.$$keys());return e.parent&&e.parent.params?H(e.parent.params.$$new(),t):new B.ParamSet},views:function(e){var t={};return L(U(e.views)?e.views:{"":e},function(n,r){r.indexOf("@")<0&&(r+="@"+e.parent.name),t[r]=n}),t},path:function(e){return e.parent?e.parent.path.concat(e):[]},includes:function(e){var t=e.parent?H({},e.parent.includes):{};return t[e.name]=!0,t},$delegates:{}};_=m({name:"",url:"^",views:null,"abstract":!0}),_.navigable=null,this.decorator=$,this.state=b,this.$get=w,w.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function x(){function e(e,t){return{load:function(e,n){var r,i={template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}};return n=H(i,n),n.view&&(r=t.fromConfig(n.view,n.params,n.locals)),r}}}this.$get=e,e.$inject=["$rootScope","$templateFactory"]}function _(){var e=!1;this.useAnchorScroll=function(){e=!0},this.$get=["$anchorScroll","$timeout",function(t,n){return e?t:function(e){return n(function(){e[0].scrollIntoView()},0,!1)}}]}function k(e,n,r,i){function o(){return n.has?function(e){return n.has(e)?n.get(e):null}:function(e){try{return n.get(e)}catch(t){return null}}}function a(e,n){function r(e){return 1===Y&&G>=4?!!l.enabled(e):1===Y&&G>=2?!!l.enabled():!!s}var i={enter:function(e,t,n){t.after(e),n()},leave:function(e,t){e.remove(),t()}};if(e.noanimation)return i;if(l)return{enter:function(e,n,o){r(e)?t.version.minor>2?l.enter(e,null,n).then(o):l.enter(e,null,n,o):i.enter(e,n,o)},leave:function(e,n){r(e)?t.version.minor>2?l.leave(e).then(n):l.leave(e,n):i.leave(e,n)}};if(s){var o=s&&s(n,e);return{enter:function(e,t,n){o.enter(e,null,t),n()},leave:function(e,t){o.leave(e),t()}}}return i}var u=o(),s=u("$animator"),l=u("$animate"),c={restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(n,o,u){return function(n,o,s){function l(){function e(){t&&t.remove(),n&&n.$destroy()}var t=f,n=d;n&&(n._willBeDestroyed=!0),p?(v.leave(p,function(){e(),f=null}),f=p):(e(),f=null),p=null,d=null}function c(a){var c,f=S(n,s,o,i),y=f&&e.$current&&e.$current.locals[f];if((a||y!==h)&&!n._willBeDestroyed){c=n.$new(),h=e.$current.locals[f],c.$emit("$viewContentLoading",f);var $=u(c,function(e){v.enter(e,o,function(){d&&d.$emit("$viewContentAnimationEnded"),(t.isDefined(m)&&!m||n.$eval(m))&&r(e)}),l()});p=$,d=c,d.$emit("$viewContentLoaded",f),d.$eval(g)}}var f,p,d,h,g=s.onload||"",m=s.autoscroll,v=a(s,n);n.$on("$stateChangeSuccess",function(){c(!1)}),c(!0)}}};return c}function C(e,t,n,r){return{restrict:"ECA",priority:-400,compile:function(i){var o=i.html();return function(i,a,u){var s=n.$current,l=S(i,u,a,r),c=s&&s.locals[l];if(c){a.data("$uiView",{name:l,state:c.$$state}),a.html(c.$template?c.$template:o);var f=e(a.contents());if(c.$$controller){c.$scope=i,c.$element=a;var p=t(c.$$controller,c);c.$$controllerAs&&(i[c.$$controllerAs]=p),a.data("$ngControllerController",p),a.children().data("$ngControllerController",p)}f(i)}}}}}function S(e,t,n,r){var i=r(t.uiView||t.name||"")(e),o=n.inheritedData("$uiView");return i.indexOf("@")>=0?i:i+"@"+(o?o.state.name:"")}function T(e,t){var n,r=e.match(/^\s*({[^}]*})\s*$/);if(r&&(e=t+"("+r[1]+")"),n=e.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/),!n||4!==n.length)throw new Error("Invalid state ref '"+e+"'");return{state:n[1],paramExpr:n[3]||null}}function D(e){var t=e.parent().inheritedData("$uiView");return t&&t.state&&t.state.name?t.state:void 0}function O(e){var t="[object SVGAnimatedString]"===Object.prototype.toString.call(e.prop("href")),n="FORM"===e[0].nodeName;return{attr:n?"action":t?"xlink:href":"href",isAnchor:"A"===e.prop("tagName").toUpperCase(),clickable:!n}}function E(e,t,n,r,i){return function(o){var a=o.which||o.button,u=i();if(!(a>1||o.ctrlKey||o.metaKey||o.shiftKey||e.attr("target"))){var s=n(function(){t.go(u.state,u.params,u.options)});o.preventDefault();var l=r.isAnchor&&!u.href?1:0;o.preventDefault=function(){l--<=0&&n.cancel(s)}}}}function A(e,t){return{relative:D(e)||t.$current,inherit:!0}}function M(e,n){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,i,o,a){var u=T(o.uiSref,e.current.name),s={state:u.state,href:null,params:null},l=O(i),c=a[1]||a[0];s.options=H(A(i,e),o.uiSrefOpts?r.$eval(o.uiSrefOpts):{});var f=function(n){n&&(s.params=t.copy(n)),s.href=e.href(u.state,s.params,s.options),c&&c.$$addStateInfo(u.state,s.params),null!==s.href&&o.$set(l.attr,s.href)};u.paramExpr&&(r.$watch(u.paramExpr,function(e){e!==s.params&&f(e)},!0),s.params=t.copy(r.$eval(u.paramExpr))),f(),l.clickable&&i.bind("click",E(i,e,n,l,function(){return s}))}}}function P(e,t){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(n,r,i,o){function a(t){f.state=t[0],f.params=t[1],f.options=t[2],f.href=e.href(f.state,f.params,f.options),s&&s.$$addStateInfo(f.state,f.params),f.href&&i.$set(u.attr,f.href)}var u=O(r),s=o[1]||o[0],l=[i.uiState,i.uiStateParams||null,i.uiStateOpts||null],c="["+l.map(function(e){return e||"null"}).join(", ")+"]",f={state:null,params:null,options:null,href:null};n.$watch(c,a,!0),a(n.$eval(c)),u.clickable&&r.bind("click",E(r,e,t,u,function(){return f}))}}}function j(e,t,n){return{restrict:"A",controller:["$scope","$element","$attrs","$timeout",function(t,r,i,o){function a(t,n,i){var o=e.get(t,D(r)),a=u(t,n);g.push({state:o||{name:t},params:n,hash:a}),m[a]=i}function u(e,n){if(!F(e))throw new Error("state should be a string");return z(n)?e+W(n):(n=t.$eval(n),z(n)?e+W(n):e)}function s(){for(var e=0;e<g.length;e++)f(g[e].state,g[e].params)?l(r,m[g[e].hash]):c(r,m[g[e].hash]),p(g[e].state,g[e].params)?l(r,d):c(r,d)}function l(e,t){o(function(){e.addClass(t)})}function c(e,t){e.removeClass(t)}function f(t,n){return e.includes(t.name,n)}function p(t,n){return e.is(t.name,n)}var d,h,g=[],m={};d=n(i.uiSrefActiveEq||"",!1)(t);try{h=t.$eval(i.uiSrefActive)}catch(v){}h=h||n(i.uiSrefActive||"",!1)(t),z(h)&&L(h,function(n,r){if(F(n)){var i=T(n,e.current.name);a(i.state,t.$eval(i.paramExpr),r)}}),this.$$addStateInfo=function(e,t){z(h)&&g.length>0||(a(e,t,h),s())},t.$on("$stateChangeSuccess",s),s()}]}}function N(e){var t=function(t,n){return e.is(t,n)};return t.$stateful=!0,t}function I(e){var t=function(t,n,r){return e.includes(t,n,r)};return t.$stateful=!0,t}var U=t.isDefined,R=t.isFunction,F=t.isString,z=t.isObject,q=t.isArray,L=t.forEach,H=t.extend,V=t.copy,W=t.toJson;t.module("ui.router.util",["ng"]),t.module("ui.router.router",["ui.router.util"]),t.module("ui.router.state",["ui.router.router","ui.router.util"]),t.module("ui.router",["ui.router.state"]),t.module("ui.router.compat",["ui.router"]),g.$inject=["$q","$injector"],t.module("ui.router.util").service("$resolve",g),m.$inject=["$http","$templateCache","$injector"],t.module("ui.router.util").service("$templateFactory",m);var B;v.prototype.concat=function(e,t){var n={caseInsensitive:B.caseInsensitive(),strict:B.strictMode(),squash:B.defaultSquashPolicy()};return new v(this.sourcePath+e+this.sourceSearch,H(n,t),this)},v.prototype.toString=function(){return this.source},v.prototype.exec=function(e,t){function n(e){function t(e){return e.split("").reverse().join("")}function n(e){return e.replace(/\\-/g,"-")}var r=t(e).split(/-(?!\\)/),i=h(r,t);return h(i,n).reverse()}var r=this.regexp.exec(e);if(!r)return null;t=t||{};var i,o,a,u=this.parameters(),s=u.length,l=this.segments.length-1,c={};if(l!==r.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");var f,p;for(i=0;l>i;i++){for(a=u[i],f=this.params[a],p=r[i+1],o=0;o<f.replace.length;o++)f.replace[o].from===p&&(p=f.replace[o].to);p&&f.array===!0&&(p=n(p)),U(p)&&(p=f.type.decode(p)),c[a]=f.value(p)}for(;s>i;i++){for(a=u[i],c[a]=this.params[a].value(t[a]),f=this.params[a],p=t[a],o=0;o<f.replace.length;o++)f.replace[o].from===p&&(p=f.replace[o].to);U(p)&&(p=f.type.decode(p)),c[a]=f.value(p)}return c},v.prototype.parameters=function(e){return U(e)?this.params[e]||null:this.$$paramNames},v.prototype.validates=function(e){return this.params.$$validates(e)},v.prototype.format=function(e){function t(e){return encodeURIComponent(e).replace(/-/g,function(e){return"%5C%"+e.charCodeAt(0).toString(16).toUpperCase()})}e=e||{};var n=this.segments,r=this.parameters(),i=this.params;if(!this.validates(e))return null;var o,a=!1,u=n.length-1,s=r.length,l=n[0];for(o=0;s>o;o++){var c=u>o,f=r[o],p=i[f],d=p.value(e[f]),g=p.isOptional&&p.type.equals(p.value(),d),m=g?p.squash:!1,v=p.type.encode(d);if(c){var y=n[o+1],$=o+1===u;if(m===!1)null!=v&&(l+=q(v)?h(v,t).join("-"):encodeURIComponent(v)),l+=y;else if(m===!0){var b=l.match(/\/$/)?/\/?(.*)/:/(.*)/;l+=y.match(b)[1]}else F(m)&&(l+=m+y);$&&p.squash===!0&&"/"===l.slice(-1)&&(l=l.slice(0,-1))}else{if(null==v||g&&m!==!1)continue;if(q(v)||(v=[v]),0===v.length)continue;v=h(v,encodeURIComponent).join("&"+f+"="),l+=(a?"&":"?")+(f+"="+v),a=!0}}return l},y.prototype.is=function(e,t){return!0},y.prototype.encode=function(e,t){return e},y.prototype.decode=function(e,t){return e},y.prototype.equals=function(e,t){return e==t},y.prototype.$subPattern=function(){var e=this.pattern.toString();return e.substr(1,e.length-2)},y.prototype.pattern=/.*/,y.prototype.toString=function(){return"{Type:"+this.name+"}"},y.prototype.$normalize=function(e){return this.is(e)?e:this.decode(e)},y.prototype.$asArray=function(e,t){function r(e,t){function r(e,t){return function(){return e[t].apply(e,arguments)}}function i(e){return q(e)?e:U(e)?[e]:[]}function o(e){switch(e.length){case 0:return n;case 1:return"auto"===t?e[0]:e;default:return e}}function a(e){return!e}function u(e,t){return function(n){if(q(n)&&0===n.length)return n;n=i(n);var r=h(n,e);return t===!0?0===d(r,a).length:o(r)}}function s(e){return function(t,n){var r=i(t),o=i(n);if(r.length!==o.length)return!1;for(var a=0;a<r.length;a++)if(!e(r[a],o[a]))return!1;return!0}}this.encode=u(r(e,"encode")),this.decode=u(r(e,"decode")),this.is=u(r(e,"is"),!0),this.equals=s(r(e,"equals")),this.pattern=e.pattern,this.$normalize=u(r(e,"$normalize")),this.name=e.name,this.$arrayMode=t}if(!e)return this;if("auto"===e&&!t)throw new Error("'auto' array mode is for query parameters only");return new r(this,e)},t.module("ui.router.util").provider("$urlMatcherFactory",$),t.module("ui.router.util").run(["$urlMatcherFactory",function(e){}]),b.$inject=["$locationProvider","$urlMatcherFactoryProvider"],t.module("ui.router.router").provider("$urlRouter",b),w.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],t.module("ui.router.state").factory("$stateParams",function(){return{}}).provider("$state",w),x.$inject=[],t.module("ui.router.state").provider("$view",x),t.module("ui.router.state").provider("$uiViewScroll",_);var Y=t.version.major,G=t.version.minor;k.$inject=["$state","$injector","$uiViewScroll","$interpolate"],C.$inject=["$compile","$controller","$state","$interpolate"],t.module("ui.router.state").directive("uiView",k),t.module("ui.router.state").directive("uiView",C),M.$inject=["$state","$timeout"],P.$inject=["$state","$timeout"],j.$inject=["$state","$stateParams","$interpolate"],t.module("ui.router.state").directive("uiSref",M).directive("uiSrefActive",j).directive("uiSrefActiveEq",j).directive("uiState",P),
  N.$inject=["$state"],I.$inject=["$state"],t.module("ui.router.state").filter("isState",N).filter("includedByState",I)}(window,window.angular),/*
   * angular-ui-bootstrap
   * http://angular-ui.github.io/bootstrap/
  
   * Version: 1.3.3 - 2016-05-22
   * License: MIT
   */
  angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/backdrop.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(e,t,n,r){var i=r.has("$animateCss")?r.get("$animateCss"):null;return{link:function(r,o,a){function u(){o.hasClass("collapse")&&o.hasClass("in")||t.resolve(f(r)).then(function(){o.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),i?i(o,{addClass:"in",easing:"ease",to:{height:o[0].scrollHeight+"px"}}).start()["finally"](s):e.addClass(o,"in",{to:{height:o[0].scrollHeight+"px"}}).then(s)})}function s(){o.removeClass("collapsing").addClass("collapse").css({height:"auto"}),p(r)}function l(){return o.hasClass("collapse")||o.hasClass("in")?void t.resolve(d(r)).then(function(){o.css({height:o[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),i?i(o,{removeClass:"in",to:{height:"0"}}).start()["finally"](c):e.removeClass(o,"in",{to:{height:"0"}}).then(c)}):c()}function c(){o.css({height:"0"}),o.removeClass("collapsing").addClass("collapse"),h(r)}var f=n(a.expanding),p=n(a.expanded),d=n(a.collapsing),h=n(a.collapsed);r.$eval(a.uibCollapse)||o.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css({height:"auto"}),r.$watch(a.uibCollapse,function(e){e?l():u()})}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(e,t,n){this.groups=[],this.closeOthers=function(r){var i=angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):n.closeOthers;i&&angular.forEach(this.groups,function(e){e!==r&&(e.isOpen=!1)})},this.addGroup=function(e){var t=this;this.groups.push(e),e.$on("$destroy",function(n){t.removeGroup(e)})},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(e,t,n,r){r.addGroup(e),e.openClass=n.openClass||"panel-open",e.panelClass=n.panelClass||"panel-default",e.$watch("isOpen",function(n){t.toggleClass(e.openClass,!!n),n&&r.closeOthers(e)}),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)};var i="accordiongroup-"+e.$id+"-"+Math.floor(1e4*Math.random());e.headingId=i+"-tab",e.panelId=i+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(e,t,n,r,i){r.setHeading(i(e,angular.noop))}}}).directive("uibAccordionTransclude",function(){function e(){return"uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"}return{require:"^uibAccordionGroup",link:function(t,n,r,i){t.$watch(function(){return i[r.uibAccordionTransclude]},function(t){if(t){var r=angular.element(n[0].querySelector(e()));r.html(""),r.append(t)}})}}}),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$attrs","$interpolate","$timeout",function(e,t,n,r){e.closeable=!!t.close;var i=angular.isDefined(t.dismissOnTimeout)?n(t.dismissOnTimeout)(e.$parent):null;i&&r(function(){e.close()},parseInt(i,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",templateUrl:function(e,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(e){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,n,r,i){var o=i[0],a=i[1],u=e(r.uibUncheckable);n.find("input").css({display:"none"}),a.$render=function(){n.toggleClass(o.activeClass,angular.equals(a.$modelValue,t.$eval(r.uibBtnRadio)))},n.on(o.toggleEvent,function(){if(!r.disabled){var e=n.hasClass(o.activeClass);(!e||angular.isDefined(r.uncheckable))&&t.$apply(function(){a.$setViewValue(e?null:t.$eval(r.uibBtnRadio)),a.$render()})}}),r.uibUncheckable&&t.$watch(u,function(e){r.$set("uncheckable",e?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(e,t,n,r){function i(){return a(n.btnCheckboxTrue,!0)}function o(){return a(n.btnCheckboxFalse,!1)}function a(t,n){return angular.isDefined(t)?e.$eval(t):n}var u=r[0],s=r[1];t.find("input").css({display:"none"}),s.$render=function(){t.toggleClass(u.activeClass,angular.equals(s.$modelValue,i()))},t.on(u.toggleEvent,function(){n.disabled||e.$apply(function(){s.$setViewValue(t.hasClass(u.activeClass)?o():i()),s.$render()})})}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(e,t,n,r,i){function o(){for(;$.length;)$.shift()}function a(e){for(var t=0;t<m.length;t++)m[t].slide.active=t===e}function u(n,r,s){if(!b){if(angular.extend(n,{direction:s}),angular.extend(m[y].slide||{},{direction:s}),i.enabled(t)&&!e.$currentTransition&&m[r].element&&g.slides.length>1){m[r].element.data(v,n.direction);var l=g.getCurrentIndex();angular.isNumber(l)&&m[l].element&&m[l].element.data(v,n.direction),e.$currentTransition=!0,i.on("addClass",m[r].element,function(t,n){if("close"===n&&(e.$currentTransition=null,i.off("addClass",t),$.length)){var r=$.pop().slide,a=r.index,s=a>g.getCurrentIndex()?"next":"prev";o(),u(r,a,s)}})}e.active=n.index,y=n.index,a(r),f()}}function s(e){for(var t=0;t<m.length;t++)if(m[t].slide===e)return t}function l(){d&&(n.cancel(d),d=null)}function c(t){t.length||(e.$currentTransition=null,o())}function f(){l();var t=+e.interval;!isNaN(t)&&t>0&&(d=n(p,t))}function p(){var t=+e.interval;h&&!isNaN(t)&&t>0&&m.length?e.next():e.pause()}var d,h,g=this,m=g.slides=e.slides=[],v="uib-slideDirection",y=e.active,$=[],b=!1;g.addSlide=function(t,n){m.push({slide:t,element:n}),m.sort(function(e,t){return+e.slide.index-+t.slide.index}),(t.index===e.active||1===m.length&&!angular.isNumber(e.active))&&(e.$currentTransition&&(e.$currentTransition=null),y=t.index,e.active=t.index,a(y),g.select(m[s(t)]),1===m.length&&e.play())},g.getCurrentIndex=function(){for(var e=0;e<m.length;e++)if(m[e].slide.index===y)return e},g.next=e.next=function(){var t=(g.getCurrentIndex()+1)%m.length;return 0===t&&e.noWrap()?void e.pause():g.select(m[t],"next")},g.prev=e.prev=function(){var t=g.getCurrentIndex()-1<0?m.length-1:g.getCurrentIndex()-1;return e.noWrap()&&t===m.length-1?void e.pause():g.select(m[t],"prev")},g.removeSlide=function(t){var n=s(t),r=$.indexOf(m[n]);-1!==r&&$.splice(r,1),m.splice(n,1),m.length>0&&y===n?n>=m.length?(y=m.length-1,e.active=y,a(y),g.select(m[m.length-1])):(y=n,e.active=y,a(y),g.select(m[n])):y>n&&(y--,e.active=y),0===m.length&&(y=null,e.active=null,o())},g.select=e.select=function(t,n){var r=s(t.slide);void 0===n&&(n=r>g.getCurrentIndex()?"next":"prev"),t.slide.index===y||e.$currentTransition?t&&t.slide.index!==y&&e.$currentTransition&&$.push(m[r]):u(t.slide,r,n)},e.indexOfSlide=function(e){return+e.slide.index},e.isActive=function(t){return e.active===t.slide.index},e.isPrevDisabled=function(){return 0===e.active&&e.noWrap()},e.isNextDisabled=function(){return e.active===m.length-1&&e.noWrap()},e.pause=function(){e.noPause||(h=!1,l())},e.play=function(){h||(h=!0,f())},e.$on("$destroy",function(){b=!0,l()}),e.$watch("noTransition",function(e){i.enabled(t,!e)}),e.$watch("interval",f),e.$watchCollection("slides",c),e.$watch("active",function(e){if(angular.isNumber(e)&&y!==e){for(var t=0;t<m.length;t++)if(m[t].slide.index===e){e=t;break}var n=m[e];n&&(a(e),g.select(m[e]),y=e)}})}]).directive("uibCarousel",function(){return{transclude:!0,replace:!0,controller:"UibCarouselController",controllerAs:"carousel",templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",function(){return{require:"^uibCarousel",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(e,t,n,r){r.addSlide(e,t),e.$on("$destroy",function(){r.removeSlide(e)})}}}).animation(".item",["$animateCss",function(e){function t(e,t,n){e.removeClass(t),n&&n()}var n="uib-slideDirection";return{beforeAddClass:function(r,i,o){if("active"===i){var a=!1,u=r.data(n),s="next"===u?"left":"right",l=t.bind(this,r,s+" "+u,o);return r.addClass(u),e(r,{addClass:s}).start().done(l),function(){a=!0}}o()},beforeRemoveClass:function(r,i,o){if("active"===i){var a=!1,u=r.data(n),s="next"===u?"left":"right",l=t.bind(this,r,s,o);return e(r,{addClass:s}).start().done(l),function(){a=!0}}o()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter",function(e,t,n,r){function i(e,t){var n=[],i=e.split(""),o=e.indexOf("'");if(o>-1){var a=!1;e=e.split("");for(var u=o;u<e.length;u++)a?("'"===e[u]&&(u+1<e.length&&"'"===e[u+1]?(e[u+1]="$",i[u+1]=""):(i[u]="",a=!1)),e[u]="$"):"'"===e[u]&&(e[u]="$",i[u]="",a=!0);e=e.join("")}return angular.forEach(d,function(r){var o=e.indexOf(r.key);if(o>-1){e=e.split(""),i[o]="("+r.regex+")",e[o]="$";for(var a=o+1,u=o+r.key.length;u>a;a++)i[a]="",e[a]="$";e=e.join(""),n.push({index:o,key:r.key,apply:r[t],matcher:r.regex})}}),{regex:new RegExp("^"+i.join("")+"$"),map:r(n,"index")}}function o(e,t,n){return 1>n?!1:1===t&&n>28?29===n&&(e%4===0&&e%100!==0||e%400===0):3===t||5===t||8===t||10===t?31>n:!0}function a(e){return parseInt(e,10)}function u(e,t){return e&&t?f(e,t):e}function s(e,t){return e&&t?f(e,t,!0):e}function l(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function c(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function f(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset(),i=l(t,r);return c(e,n*(i-r))}var p,d,h=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){p=t.id,this.parsers={},this.formatters={},d=[{key:"yyyy",regex:"\\d{4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(e){e=+e,this.year=69>e?e+2e3:e+1900},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){var t=e.getMonth();return/^[0-9]$/.test(t)?n(e,"MM"):n(e,"M")}},{key:"MMMM",regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.MONTH.indexOf(e)},formatter:function(e){return n(e,"MMMM")}},{key:"MMM",regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(e)},formatter:function(e){return n(e,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){var t=e.getDate();return/^[1-9]$/.test(t)?n(e,"dd"):n(e,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"d")}},{key:"EEEE",regex:t.DATETIME_FORMATS.DAY.join("|"),formatter:function(e){return n(e,"EEEE")}},{key:"EEE",regex:t.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(e){return n(e,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(e){this.milliseconds=+e},formatter:function(e){return n(e,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"s")}},{key:"a",regex:t.DATETIME_FORMATS.AMPMS.join("|"),apply:function(e){12===this.hours&&(this.hours=0),"PM"===e&&(this.hours+=12)},formatter:function(e){return n(e,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(e){var t=e.match(/([+-])(\d{2})(\d{2})/),n=t[1],r=t[2],i=t[3];this.hours+=a(n+r),this.minutes+=a(n+i)},formatter:function(e){return n(e,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(e){return n(e,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(e){return n(e,"w")}},{key:"GGGG",regex:t.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(e){return n(e,"GGGG")}},{key:"GGG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GGG")}},{key:"GG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GG")}},{key:"G",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"G")}}]},this.init(),this.filter=function(e,n){if(!angular.isDate(e)||isNaN(e)||!n)return"";n=t.DATETIME_FORMATS[n]||n,t.id!==p&&this.init(),this.formatters[n]||(this.formatters[n]=i(n,"formatter"));var r=this.formatters[n],o=r.map,a=n;return o.reduce(function(t,n,r){var i=a.match(new RegExp("(.*)"+n.key));i&&angular.isString(i[1])&&(t+=i[1],a=a.replace(i[1]+n.key,""));var u=r===o.length-1?a:"";return n.apply?t+n.apply.call(null,e)+u:t+u},"")},this.parse=function(n,r,a){if(!angular.isString(n)||!r)return n;r=t.DATETIME_FORMATS[r]||r,r=r.replace(h,"\\$&"),t.id!==p&&this.init(),this.parsers[r]||(this.parsers[r]=i(r,"apply"));var u=this.parsers[r],s=u.regex,l=u.map,c=n.match(s),f=!1;if(c&&c.length){var d,g;angular.isDate(a)&&!isNaN(a.getTime())?d={year:a.getFullYear(),month:a.getMonth(),date:a.getDate(),hours:a.getHours(),minutes:a.getMinutes(),seconds:a.getSeconds(),milliseconds:a.getMilliseconds()}:(a&&e.warn("dateparser:","baseDate is not a valid date"),d={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var m=1,v=c.length;v>m;m++){var y=l[m-1];"Z"===y.matcher&&(f=!0),y.apply&&y.apply.call(d,c[m])}var $=f?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,b=f?Date.prototype.setUTCHours:Date.prototype.setHours;return o(d.year,d.month,d.date)&&(!angular.isDate(a)||isNaN(a.getTime())||f?(g=new Date(0),$.call(g,d.year,d.month,d.date),b.call(g,d.hours||0,d.minutes||0,d.seconds||0,d.milliseconds||0)):(g=new Date(a),$.call(g,d.year,d.month,d.date),b.call(g,d.hours,d.minutes,d.seconds,d.milliseconds))),g}},this.toTimezone=u,this.fromTimezone=s,this.timezoneToOffset=l,this.addDateMinutes=c,this.convertTimezoneToLocal=f}]),angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(e){var t=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,n=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(r,i){function o(e,t,n){s.push(e),l.push({scope:e,element:t}),h.forEach(function(t,n){a(t,e)}),e.$on("$destroy",u)}function a(t,r){var i=t.match(n),o=r.$eval(i[1]),a=i[2],u=c[t];if(!u){var s=function(t){var n=null;l.some(function(e){var r=e.scope.$eval(p);return r===t?(n=e,!0):void 0}),u.lastActivated!==n&&(u.lastActivated&&e.removeClass(u.lastActivated.element,o),n&&e.addClass(n.element,o),u.lastActivated=n)};c[t]=u={lastActivated:null,scope:r,watchFn:s,compareWithExp:a,watcher:r.$watch(a,s)}}u.watchFn(r.$eval(a))}function u(e){var t=e.targetScope,n=s.indexOf(t);if(s.splice(n,1),l.splice(n,1),s.length){var r=s[0];angular.forEach(c,function(e){e.scope===t&&(e.watcher=r.$watch(e.compareWithExp,e.watchFn),e.scope=r)})}else c={}}var s=[],l=[],c={},f=i.uibIsClass.match(t),p=f[2],d=f[1],h=d.split(",");return o}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(e,t,n,r,i,o,a,u,s,l,c){function f(t){e.datepickerMode=t,e.datepickerOptions.datepickerMode=t}var p=this,d={$setViewValue:angular.noop},h={},g=[];!!t.datepickerOptions;e.datepickerOptions||(e.datepickerOptions={}),this.modes=["day","month","year"],["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(t){switch(t){case"customClass":case"dateDisabled":e[t]=e.datepickerOptions[t]||angular.noop;break;case"datepickerMode":e.datepickerMode=angular.isDefined(e.datepickerOptions.datepickerMode)?e.datepickerOptions.datepickerMode:u.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":p[t]=angular.isDefined(e.datepickerOptions[t])?r(e.datepickerOptions[t])(e.$parent):u[t];break;case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":p[t]=angular.isDefined(e.datepickerOptions[t])?e.datepickerOptions[t]:u[t];break;case"startingDay":angular.isDefined(e.datepickerOptions.startingDay)?p.startingDay=e.datepickerOptions.startingDay:angular.isNumber(u.startingDay)?p.startingDay=u.startingDay:p.startingDay=(i.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":e.$watch("datepickerOptions."+t,function(e){e?angular.isDate(e)?p[t]=c.fromTimezone(new Date(e),h.timezone):(s&&o.warn("Literal date support has been deprecated, please switch to date object usage"),p[t]=new Date(a(e,"medium"))):p[t]=u[t]?c.fromTimezone(new Date(u[t]),h.timezone):null,p.refreshView()});break;case"maxMode":case"minMode":e.datepickerOptions[t]?e.$watch(function(){return e.datepickerOptions[t]},function(n){p[t]=e[t]=angular.isDefined(n)?n:datepickerOptions[t],("minMode"===t&&p.modes.indexOf(e.datepickerOptions.datepickerMode)<p.modes.indexOf(p[t])||"maxMode"===t&&p.modes.indexOf(e.datepickerOptions.datepickerMode)>p.modes.indexOf(p[t]))&&(e.datepickerMode=p[t],e.datepickerOptions.datepickerMode=p[t])}):p[t]=e[t]=u[t]||null}}),e.uniqueId="datepicker-"+e.$id+"-"+Math.floor(1e4*Math.random()),e.disabled=angular.isDefined(t.disabled)||!1,angular.isDefined(t.ngDisabled)&&g.push(e.$parent.$watch(t.ngDisabled,function(t){e.disabled=t,p.refreshView()})),e.isActive=function(t){return 0===p.compare(t.date,p.activeDate)?(e.activeDateId=t.uid,!0):!1},this.init=function(t){d=t,h=t.$options||u.ngModelOptions,e.datepickerOptions.initDate?(p.activeDate=c.fromTimezone(e.datepickerOptions.initDate,h.timezone)||new Date,e.$watch("datepickerOptions.initDate",function(e){e&&(d.$isEmpty(d.$modelValue)||d.$invalid)&&(p.activeDate=c.fromTimezone(e,h.timezone),p.refreshView())})):p.activeDate=new Date;var n=d.$modelValue?new Date(d.$modelValue):new Date;this.activeDate=isNaN(n)?c.fromTimezone(new Date,h.timezone):c.fromTimezone(n,h.timezone),d.$render=function(){p.render()}},this.render=function(){if(d.$viewValue){var e=new Date(d.$viewValue),t=!isNaN(e);t?this.activeDate=c.fromTimezone(e,h.timezone):l||o.error('Datepicker directive: "ng-model" value must be a Date object')}this.refreshView()},this.refreshView=function(){if(this.element){e.selectedDt=null,this._refreshView(),e.activeDt&&(e.activeDateId=e.activeDt.uid);var t=d.$viewValue?new Date(d.$viewValue):null;t=c.fromTimezone(t,h.timezone),d.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t))}},this.createDateObject=function(t,n){var r=d.$viewValue?new Date(d.$viewValue):null;r=c.fromTimezone(r,h.timezone);var i=new Date;i=c.fromTimezone(i,h.timezone);var o=this.compare(t,i),a={date:t,label:c.filter(t,n),selected:r&&0===this.compare(t,r),disabled:this.isDisabled(t),past:0>o,current:0===o,future:o>0,customClass:this.customClass(t)||null};return r&&0===this.compare(t,r)&&(e.selectedDt=a),p.activeDate&&0===this.compare(a.date,p.activeDate)&&(e.activeDt=a),a},this.isDisabled=function(t){return e.disabled||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&this.compare(t,this.maxDate)>0||e.dateDisabled&&e.dateDisabled({date:t,mode:e.datepickerMode})},this.customClass=function(t){return e.customClass({date:t,mode:e.datepickerMode})},this.split=function(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n},e.select=function(t){if(e.datepickerMode===p.minMode){var n=d.$viewValue?c.fromTimezone(new Date(d.$viewValue),h.timezone):new Date(0,0,0,0,0,0,0);n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n=c.toTimezone(n,h.timezone),d.$setViewValue(n),d.$render()}else p.activeDate=t,f(p.modes[p.modes.indexOf(e.datepickerMode)-1]),e.$emit("uib:datepicker.mode");e.$broadcast("uib:datepicker.focus")},e.move=function(e){var t=p.activeDate.getFullYear()+e*(p.step.years||0),n=p.activeDate.getMonth()+e*(p.step.months||0);p.activeDate.setFullYear(t,n,1),p.refreshView()},e.toggleMode=function(t){t=t||1,e.datepickerMode===p.maxMode&&1===t||e.datepickerMode===p.minMode&&-1===t||(f(p.modes[p.modes.indexOf(e.datepickerMode)+t]),e.$emit("uib:datepicker.mode"))},e.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var m=function(){p.element[0].focus()};e.$on("uib:datepicker.focus",m),e.keydown=function(t){var n=e.keys[t.which];if(n&&!t.shiftKey&&!t.altKey&&!e.disabled)if(t.preventDefault(),p.shortcutPropagation||t.stopPropagation(),"enter"===n||"space"===n){if(p.isDisabled(p.activeDate))return;e.select(p.activeDate)}else!t.ctrlKey||"up"!==n&&"down"!==n?(p.handleKeyDown(n,t),p.refreshView()):e.toggleMode("up"===n?1:-1)},e.$on("$destroy",function(){for(;g.length;)g.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(e,t,n){function r(e,t){return 1!==t||e%4!==0||e%100===0&&e%400!==0?o[t]:29}function i(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1}var o=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1},this.element=t,this.init=function(t){angular.extend(t,this),e.showWeeks=t.showWeeks,t.refreshView()},this.getDates=function(e,t){for(var n,r=new Array(t),i=new Date(e),o=0;t>o;)n=new Date(i),r[o++]=n,i.setDate(i.getDate()+1);return r},this._refreshView=function(){var t=this.activeDate.getFullYear(),r=this.activeDate.getMonth(),o=new Date(this.activeDate);o.setFullYear(t,r,1);var a=this.startingDay-o.getDay(),u=a>0?7-a:-a,s=new Date(o);u>0&&s.setDate(-u+1);for(var l=this.getDates(s,42),c=0;42>c;c++)l[c]=angular.extend(this.createDateObject(l[c],this.formatDay),{secondary:l[c].getMonth()!==r,uid:e.uniqueId+"-"+c});e.labels=new Array(7);for(var f=0;7>f;f++)e.labels[f]={abbr:n(l[f].date,this.formatDayHeader),full:n(l[f].date,"EEEE")};if(e.title=n(this.activeDate,this.formatDayTitle),e.rows=this.split(l,7),e.showWeeks){e.weekNumbers=[];for(var p=(11-this.startingDay)%7,d=e.rows.length,h=0;d>h;h++)e.weekNumbers.push(i(e.rows[h][p].date))}},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return n.setFullYear(e.getFullYear()),r.setFullYear(t.getFullYear()),n-r},this.handleKeyDown=function(e,t){var n=this.activeDate.getDate();if("left"===e)n-=1;else if("up"===e)n-=7;else if("right"===e)n+=1;else if("down"===e)n+=7;else if("pageup"===e||"pagedown"===e){var i=this.activeDate.getMonth()+("pageup"===e?-1:1);this.activeDate.setMonth(i,1),n=Math.min(r(this.activeDate.getFullYear(),this.activeDate.getMonth()),n)}else"home"===e?n=1:"end"===e&&(n=r(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(n)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(e,t,n){this.step={years:1},this.element=t,this.init=function(e){angular.extend(e,this),e.refreshView()},this._refreshView=function(){for(var t,r=new Array(12),i=this.activeDate.getFullYear(),o=0;12>o;o++)t=new Date(this.activeDate),t.setFullYear(i,o,1),r[o]=angular.extend(this.createDateObject(t,this.formatMonth),{uid:e.uniqueId+"-"+o});e.title=n(this.activeDate,this.formatMonthTitle),e.rows=this.split(r,3)},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth()),r=new Date(t.getFullYear(),t.getMonth());return n.setFullYear(e.getFullYear()),r.setFullYear(t.getFullYear()),n-r},this.handleKeyDown=function(e,t){var n=this.activeDate.getMonth();if("left"===e)n-=1;else if("up"===e)n-=3;else if("right"===e)n+=1;else if("down"===e)n+=3;else if("pageup"===e||"pagedown"===e){var r=this.activeDate.getFullYear()+("pageup"===e?-1:1);this.activeDate.setFullYear(r)}else"home"===e?n=0:"end"===e&&(n=11);this.activeDate.setMonth(n)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(e,t,n){function r(e){return parseInt((e-1)/o,10)*o+1}var i,o;this.element=t,this.yearpickerInit=function(){i=this.yearColumns,o=this.yearRows*i,this.step={years:o}},this._refreshView=function(){for(var t,n=new Array(o),a=0,u=r(this.activeDate.getFullYear());o>a;a++)t=new Date(this.activeDate),t.setFullYear(u+a,0,1),n[a]=angular.extend(this.createDateObject(t,this.formatYear),{uid:e.uniqueId+"-"+a});e.title=[n[0].label,n[o-1].label].join(" - "),e.rows=this.split(n,i),e.columns=i},this.compare=function(e,t){return e.getFullYear()-t.getFullYear()},this.handleKeyDown=function(e,t){var n=this.activeDate.getFullYear();"left"===e?n-=1:"up"===e?n-=i:"right"===e?n+=1:"down"===e?n+=i:"pageup"===e||"pagedown"===e?n+=("pageup"===e?-1:1)*o:"home"===e?n=r(this.activeDate.getFullYear()):"end"===e&&(n=r(this.activeDate.getFullYear())+o-1),this.activeDate.setFullYear(n)}}]).directive("uibDatepicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],controller:"UibDatepickerController",controllerAs:"datepicker",link:function(e,t,n,r){var i=r[0],o=r[1];i.init(o)}}}).directive("uibDaypicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],controller:"UibDaypickerController",link:function(e,t,n,r){var i=r[0],o=r[1];o.init(i)}}}).directive("uibMonthpicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],controller:"UibMonthpickerController",link:function(e,t,n,r){var i=r[0],o=r[1];o.init(i)}}}).directive("uibYearpicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],controller:"UibYearpickerController",link:function(e,t,n,r){var i=r[0];angular.extend(i,r[1]),i.yearpickerInit(),i.refreshView()}}}),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(e,t){var n,r,i={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},o={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},a=/(HTML|BODY)/;return{getRawNode:function(e){return e.nodeName?e:e[0]||e},parseStyle:function(e){return e=parseFloat(e),isFinite(e)?e:0},offsetParent:function(n){function r(e){return"static"===(t.getComputedStyle(e).position||"static")}n=this.getRawNode(n);for(var i=n.offsetParent||e[0].documentElement;i&&i!==e[0].documentElement&&r(i);)i=i.offsetParent;return i||e[0].documentElement},scrollbarWidth:function(i){if(i){if(angular.isUndefined(r)){var o=e.find("body");o.addClass("uib-position-body-scrollbar-measure"),r=t.innerWidth-o[0].clientWidth,r=isFinite(r)?r:0,o.removeClass("uib-position-body-scrollbar-measure")}return r}if(angular.isUndefined(n)){var a=angular.element('<div class="uib-position-scrollbar-measure"></div>');e.find("body").append(a),n=a[0].offsetWidth-a[0].clientWidth,n=isFinite(n)?n:0,a.remove()}return n},scrollbarPadding:function(e){e=this.getRawNode(e);var n=t.getComputedStyle(e),r=this.parseStyle(n.paddingRight),i=this.parseStyle(n.paddingBottom),o=this.scrollParent(e,!1,!0),u=this.scrollbarWidth(o,a.test(o.tagName));return{scrollbarWidth:u,widthOverflow:o.scrollWidth>o.clientWidth,right:r+u,originalRight:r,heightOverflow:o.scrollHeight>o.clientHeight,
  bottom:i+u,originalBottom:i}},isScrollable:function(e,n){e=this.getRawNode(e);var r=n?i.hidden:i.normal,o=t.getComputedStyle(e);return r.test(o.overflow+o.overflowY+o.overflowX)},scrollParent:function(n,r,o){n=this.getRawNode(n);var a=r?i.hidden:i.normal,u=e[0].documentElement,s=t.getComputedStyle(n);if(o&&a.test(s.overflow+s.overflowY+s.overflowX))return n;var l="absolute"===s.position,c=n.parentElement||u;if(c===u||"fixed"===s.position)return u;for(;c.parentElement&&c!==u;){var f=t.getComputedStyle(c);if(l&&"static"!==f.position&&(l=!1),!l&&a.test(f.overflow+f.overflowY+f.overflowX))break;c=c.parentElement}return c},position:function(n,r){n=this.getRawNode(n);var i=this.offset(n);if(r){var o=t.getComputedStyle(n);i.top-=this.parseStyle(o.marginTop),i.left-=this.parseStyle(o.marginLeft)}var a=this.offsetParent(n),u={top:0,left:0};return a!==e[0].documentElement&&(u=this.offset(a),u.top+=a.clientTop-a.scrollTop,u.left+=a.clientLeft-a.scrollLeft),{width:Math.round(angular.isNumber(i.width)?i.width:n.offsetWidth),height:Math.round(angular.isNumber(i.height)?i.height:n.offsetHeight),top:Math.round(i.top-u.top),left:Math.round(i.left-u.left)}},offset:function(n){n=this.getRawNode(n);var r=n.getBoundingClientRect();return{width:Math.round(angular.isNumber(r.width)?r.width:n.offsetWidth),height:Math.round(angular.isNumber(r.height)?r.height:n.offsetHeight),top:Math.round(r.top+(t.pageYOffset||e[0].documentElement.scrollTop)),left:Math.round(r.left+(t.pageXOffset||e[0].documentElement.scrollLeft))}},viewportOffset:function(n,r,i){n=this.getRawNode(n),i=i!==!1?!0:!1;var o=n.getBoundingClientRect(),a={top:0,left:0,bottom:0,right:0},u=r?e[0].documentElement:this.scrollParent(n),s=u.getBoundingClientRect();if(a.top=s.top+u.clientTop,a.left=s.left+u.clientLeft,u===e[0].documentElement&&(a.top+=t.pageYOffset,a.left+=t.pageXOffset),a.bottom=a.top+u.clientHeight,a.right=a.left+u.clientWidth,i){var l=t.getComputedStyle(u);a.top+=this.parseStyle(l.paddingTop),a.bottom-=this.parseStyle(l.paddingBottom),a.left+=this.parseStyle(l.paddingLeft),a.right-=this.parseStyle(l.paddingRight)}return{top:Math.round(o.top-a.top),bottom:Math.round(a.bottom-o.bottom),left:Math.round(o.left-a.left),right:Math.round(a.right-o.right)}},parsePlacement:function(e){var t=o.auto.test(e);return t&&(e=e.replace(o.auto,"")),e=e.split("-"),e[0]=e[0]||"top",o.primary.test(e[0])||(e[0]="top"),e[1]=e[1]||"center",o.secondary.test(e[1])||(e[1]="center"),t?e[2]=!0:e[2]=!1,e},positionElements:function(e,n,r,i){e=this.getRawNode(e),n=this.getRawNode(n);var a=angular.isDefined(n.offsetWidth)?n.offsetWidth:n.prop("offsetWidth"),u=angular.isDefined(n.offsetHeight)?n.offsetHeight:n.prop("offsetHeight");r=this.parsePlacement(r);var s=i?this.offset(e):this.position(e),l={top:0,left:0,placement:""};if(r[2]){var c=this.viewportOffset(e,i),f=t.getComputedStyle(n),p={width:a+Math.round(Math.abs(this.parseStyle(f.marginLeft)+this.parseStyle(f.marginRight))),height:u+Math.round(Math.abs(this.parseStyle(f.marginTop)+this.parseStyle(f.marginBottom)))};if(r[0]="top"===r[0]&&p.height>c.top&&p.height<=c.bottom?"bottom":"bottom"===r[0]&&p.height>c.bottom&&p.height<=c.top?"top":"left"===r[0]&&p.width>c.left&&p.width<=c.right?"right":"right"===r[0]&&p.width>c.right&&p.width<=c.left?"left":r[0],r[1]="top"===r[1]&&p.height-s.height>c.bottom&&p.height-s.height<=c.top?"bottom":"bottom"===r[1]&&p.height-s.height>c.top&&p.height-s.height<=c.bottom?"top":"left"===r[1]&&p.width-s.width>c.right&&p.width-s.width<=c.left?"right":"right"===r[1]&&p.width-s.width>c.left&&p.width-s.width<=c.right?"left":r[1],"center"===r[1])if(o.vertical.test(r[0])){var d=s.width/2-a/2;c.left+d<0&&p.width-s.width<=c.right?r[1]="left":c.right+d<0&&p.width-s.width<=c.left&&(r[1]="right")}else{var h=s.height/2-p.height/2;c.top+h<0&&p.height-s.height<=c.bottom?r[1]="top":c.bottom+h<0&&p.height-s.height<=c.top&&(r[1]="bottom")}}switch(r[0]){case"top":l.top=s.top-u;break;case"bottom":l.top=s.top+s.height;break;case"left":l.left=s.left-a;break;case"right":l.left=s.left+s.width}switch(r[1]){case"top":l.top=s.top;break;case"bottom":l.top=s.top+s.height-u;break;case"left":l.left=s.left;break;case"right":l.left=s.left+s.width-a;break;case"center":o.vertical.test(r[0])?l.left=s.left+s.width/2-a/2:l.top=s.top+s.height/2-u/2}return l.top=Math.round(l.top),l.left=Math.round(l.left),l.placement="center"===r[1]?r[0]:r[0]+"-"+r[1],l},positionArrow:function(e,n){e=this.getRawNode(e);var r=e.querySelector(".tooltip-inner, .popover-inner");if(r){var i=angular.element(r).hasClass("tooltip-inner"),a=i?e.querySelector(".tooltip-arrow"):e.querySelector(".arrow");if(a){var u={top:"",bottom:"",left:"",right:""};if(n=this.parsePlacement(n),"center"===n[1])return void angular.element(a).css(u);var s="border-"+n[0]+"-width",l=t.getComputedStyle(a)[s],c="border-";c+=o.vertical.test(n[0])?n[0]+"-"+n[1]:n[1]+"-"+n[0],c+="-radius";var f=t.getComputedStyle(i?r:e)[c];switch(n[0]){case"top":u.bottom=i?"0":"-"+l;break;case"bottom":u.top=i?"0":"-"+l;break;case"left":u.right=i?"0":"-"+l;break;case"right":u.left=i?"0":"-"+l}u[n[1]]=f,angular.element(a).css(u)}}}}}]),angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(e,t,n,r,i,o,a,u,s,l,c,f,p,d,h,g){function m(t){var n=f.parse(t,x,e.date);if(isNaN(n))for(var r=0;r<j.length;r++)if(n=f.parse(t,j[r],e.date),!isNaN(n))return n;return n}function v(e){if(angular.isNumber(e)&&(e=new Date(e)),!e)return null;if(angular.isDate(e)&&!isNaN(e))return e;if(angular.isString(e)){var t=m(e);if(!isNaN(t))return f.toTimezone(t,N)}return A.$options&&A.$options.allowInvalid?e:void 0}function y(e,t){var r=e||t;return n.ngRequired||r?(angular.isNumber(r)&&(r=new Date(r)),r?angular.isDate(r)&&!isNaN(r)?!0:angular.isString(r)?!isNaN(m(t)):!1:!0):!0}function $(n){if(e.isOpen||!e.disabled){var r=P[0],i=t[0].contains(n.target),o=void 0!==r.contains&&r.contains(n.target);!e.isOpen||i||o||e.$apply(function(){e.isOpen=!1})}}function b(n){27===n.which&&e.isOpen?(n.preventDefault(),n.stopPropagation(),e.$apply(function(){e.isOpen=!1}),t[0].focus()):40!==n.which||e.isOpen||(n.preventDefault(),n.stopPropagation(),e.$apply(function(){e.isOpen=!0}))}function w(){if(e.isOpen){var r=angular.element(P[0].querySelector(".uib-datepicker-popup")),i=n.popupPlacement?n.popupPlacement:p.placement,o=l.positionElements(t,r,i,k);r.css({top:o.top+"px",left:o.left+"px"}),r.hasClass("uib-position-measure")&&r.removeClass("uib-position-measure")}}var x,_,k,C,S,T,D,O,E,A,M,P,j,N,I=!1,U=[];this.init=function(i){if(A=i,M=i.$options,_=angular.isDefined(n.closeOnDateSelection)?e.$parent.$eval(n.closeOnDateSelection):p.closeOnDateSelection,k=angular.isDefined(n.datepickerAppendToBody)?e.$parent.$eval(n.datepickerAppendToBody):p.appendToBody,C=angular.isDefined(n.onOpenFocus)?e.$parent.$eval(n.onOpenFocus):p.onOpenFocus,S=angular.isDefined(n.datepickerPopupTemplateUrl)?n.datepickerPopupTemplateUrl:p.datepickerPopupTemplateUrl,T=angular.isDefined(n.datepickerTemplateUrl)?n.datepickerTemplateUrl:p.datepickerTemplateUrl,j=angular.isDefined(n.altInputFormats)?e.$parent.$eval(n.altInputFormats):p.altInputFormats,e.showButtonBar=angular.isDefined(n.showButtonBar)?e.$parent.$eval(n.showButtonBar):p.showButtonBar,p.html5Types[n.type]?(x=p.html5Types[n.type],I=!0):(x=n.uibDatepickerPopup||p.datepickerPopup,n.$observe("uibDatepickerPopup",function(e,t){var n=e||p.datepickerPopup;if(n!==x&&(x=n,A.$modelValue=null,!x))throw new Error("uibDatepickerPopup must have a date format specified.")})),!x)throw new Error("uibDatepickerPopup must have a date format specified.");if(I&&n.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");D=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>"),M?(N=M.timezone,e.ngModelOptions=angular.copy(M),e.ngModelOptions.timezone=null,e.ngModelOptions.updateOnDefault===!0&&(e.ngModelOptions.updateOn=e.ngModelOptions.updateOn?e.ngModelOptions.updateOn+" default":"default"),D.attr("ng-model-options","ngModelOptions")):N=null,D.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":S}),O=angular.element(D.children()[0]),O.attr("template-url",T),e.datepickerOptions||(e.datepickerOptions={}),I&&"month"===n.type&&(e.datepickerOptions.datepickerMode="month",e.datepickerOptions.minMode="month"),O.attr("datepicker-options","datepickerOptions"),I?A.$formatters.push(function(t){return e.date=f.fromTimezone(t,N),t}):(A.$$parserName="date",A.$validators.date=y,A.$parsers.unshift(v),A.$formatters.push(function(t){return A.$isEmpty(t)?(e.date=t,t):(angular.isNumber(t)&&(t=new Date(t)),e.date=f.fromTimezone(t,N),f.filter(e.date,x))})),A.$viewChangeListeners.push(function(){e.date=m(A.$viewValue)}),t.on("keydown",b),P=r(D)(e),D.remove(),k?u.find("body").append(P):t.after(P),e.$on("$destroy",function(){for(e.isOpen===!0&&(s.$$phase||e.$apply(function(){e.isOpen=!1})),P.remove(),t.off("keydown",b),u.off("click",$),E&&E.off("scroll",w),angular.element(a).off("resize",w);U.length;)U.shift()()})},e.getText=function(t){return e[t+"Text"]||p[t+"Text"]},e.isDisabled=function(t){"today"===t&&(t=f.fromTimezone(new Date,N));var n={};return angular.forEach(["minDate","maxDate"],function(t){e.datepickerOptions[t]?angular.isDate(e.datepickerOptions[t])?n[t]=f.fromTimezone(new Date(e.datepickerOptions[t]),N):(g&&i.warn("Literal date support has been deprecated, please switch to date object usage"),n[t]=new Date(c(e.datepickerOptions[t],"medium"))):n[t]=null}),e.datepickerOptions&&n.minDate&&e.compare(t,n.minDate)<0||n.maxDate&&e.compare(t,n.maxDate)>0},e.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},e.dateSelection=function(n){angular.isDefined(n)&&(e.date=n);var r=e.date?f.filter(e.date,x):null;t.val(r),A.$setViewValue(r),_&&(e.isOpen=!1,t[0].focus())},e.keydown=function(n){27===n.which&&(n.stopPropagation(),e.isOpen=!1,t[0].focus())},e.select=function(t,n){if(n.stopPropagation(),"today"===t){var r=new Date;angular.isDate(e.date)?(t=new Date(e.date),t.setFullYear(r.getFullYear(),r.getMonth(),r.getDate())):t=new Date(r.setHours(0,0,0,0))}e.dateSelection(t)},e.close=function(n){n.stopPropagation(),e.isOpen=!1,t[0].focus()},e.disabled=angular.isDefined(n.disabled)||!1,n.ngDisabled&&U.push(e.$parent.$watch(o(n.ngDisabled),function(t){e.disabled=t})),e.$watch("isOpen",function(r){r?e.disabled?e.isOpen=!1:d(function(){w(),C&&e.$broadcast("uib:datepicker.focus"),u.on("click",$);var r=n.popupPlacement?n.popupPlacement:p.placement;k||l.parsePlacement(r)[2]?(E=E||angular.element(l.scrollParent(t)),E&&E.on("scroll",w)):E=null,angular.element(a).on("resize",w)},0,!1):(u.off("click",$),E&&E.off("scroll",w),angular.element(a).off("resize",w))}),e.$on("uib:datepicker.mode",function(){d(w,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(e,t,n,r){var i=r[0],o=r[1];o.init(i)}}}).directive("uibDatepickerPopupWrap",function(){return{replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepickerPopup/popup.html"}}}),angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(e){return function(t,n){var r;return function(){var i=this,o=Array.prototype.slice.call(arguments);r&&e.cancel(r),r=e(function(){t.apply(i,o)},n)}}}]),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(e,t){var n=null;this.open=function(t,o){n||(e.on("click",r),o.on("keydown",i)),n&&n!==t&&(n.isOpen=!1),n=t},this.close=function(t,o){n===t&&(n=null,e.off("click",r),o.off("keydown",i))};var r=function(e){if(n&&!(e&&"disabled"===n.getAutoClose()||e&&3===e.which)){var r=n.getToggleElement();if(!(e&&r&&r[0].contains(e.target))){var i=n.getDropdownElement();e&&"outsideClick"===n.getAutoClose()&&i&&i[0].contains(e.target)||(n.isOpen=!1,t.$$phase||n.$apply())}}},i=function(e){27===e.which?(e.stopPropagation(),n.focusToggleElement(),r()):n.isKeynavEnabled()&&-1!==[38,40].indexOf(e.which)&&n.isOpen&&(e.preventDefault(),e.stopPropagation(),n.focusDropdownEntry(e.which))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(e,t,n,r,i,o,a,u,s,l,c){var f,p,d=this,h=e.$new(),g=i.appendToOpenClass,m=i.openClass,v=angular.noop,y=n.onToggle?r(n.onToggle):angular.noop,$=!1,b=null,w=!1,x=s.find("body");t.addClass("dropdown"),this.init=function(){if(n.isOpen&&(p=r(n.isOpen),v=p.assign,e.$watch(p,function(e){h.isOpen=!!e})),angular.isDefined(n.dropdownAppendTo)){var i=r(n.dropdownAppendTo)(h);i&&(b=angular.element(i))}$=angular.isDefined(n.dropdownAppendToBody),w=angular.isDefined(n.keyboardNav),$&&!b&&(b=x),b&&d.dropdownMenu&&(b.append(d.dropdownMenu),t.on("$destroy",function(){d.dropdownMenu.remove()}))},this.toggle=function(e){return h.isOpen=arguments.length?!!e:!h.isOpen,angular.isFunction(v)&&v(h,h.isOpen),h.isOpen},this.isOpen=function(){return h.isOpen},h.getToggleElement=function(){return d.toggleElement},h.getAutoClose=function(){return n.autoClose||"always"},h.getElement=function(){return t},h.isKeynavEnabled=function(){return w},h.focusDropdownEntry=function(e){var n=d.dropdownMenu?angular.element(d.dropdownMenu).find("a"):t.find("ul").eq(0).find("a");switch(e){case 40:angular.isNumber(d.selectedOption)?d.selectedOption=d.selectedOption===n.length-1?d.selectedOption:d.selectedOption+1:d.selectedOption=0;break;case 38:angular.isNumber(d.selectedOption)?d.selectedOption=0===d.selectedOption?0:d.selectedOption-1:d.selectedOption=n.length-1}n[d.selectedOption].focus()},h.getDropdownElement=function(){return d.dropdownMenu},h.focusToggleElement=function(){d.toggleElement&&d.toggleElement[0].focus()},h.$watch("isOpen",function(n,r){if(b&&d.dropdownMenu){var i,s,p,w=u.positionElements(t,d.dropdownMenu,"bottom-left",!0);if(i={top:w.top+"px",display:n?"block":"none"},s=d.dropdownMenu.hasClass("dropdown-menu-right"),s?(i.left="auto",p=u.scrollbarWidth(!0),i.right=window.innerWidth-p-(w.left+t.prop("offsetWidth"))+"px"):(i.left=w.left+"px",i.right="auto"),!$){var x=u.offset(b);i.top=w.top-x.top+"px",s?i.right=window.innerWidth-(w.left-x.left+t.prop("offsetWidth"))+"px":i.left=w.left-x.left+"px"}d.dropdownMenu.css(i)}var _=b?b:t,k=_.hasClass(b?g:m);if(k===!n&&a[n?"addClass":"removeClass"](_,b?g:m).then(function(){angular.isDefined(n)&&n!==r&&y(e,{open:!!n})}),n)d.dropdownMenuTemplateUrl&&c(d.dropdownMenuTemplateUrl).then(function(e){f=h.$new(),l(e.trim())(f,function(e){var t=e;d.dropdownMenu.replaceWith(t),d.dropdownMenu=t})}),h.focusToggleElement(),o.open(h,t);else{if(d.dropdownMenuTemplateUrl){f&&f.$destroy();var C=angular.element('<ul class="dropdown-menu"></ul>');d.dropdownMenu.replaceWith(C),d.dropdownMenu=C}o.close(h,t),d.selectedOption=null}angular.isFunction(v)&&v(e,n)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(e,t,n,r){r.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(e,t,n,r){if(r&&!angular.isDefined(n.dropdownNested)){t.addClass("dropdown-menu");var i=n.templateUrl;i&&(r.dropdownMenuTemplateUrl=i),r.dropdownMenu||(r.dropdownMenu=t)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(e,t,n,r){if(r){t.addClass("dropdown-toggle"),r.toggleElement=t;var i=function(i){i.preventDefault(),t.hasClass("disabled")||n.disabled||e.$apply(function(){r.toggle()})};t.bind("click",i),t.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(r.isOpen,function(e){t.attr("aria-expanded",!!e)}),e.$on("$destroy",function(){t.unbind("click",i)})}}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n<e.length;n++)if(t===e[n].key)return e[n]},keys:function(){for(var t=[],n=0;n<e.length;n++)t.push(e[n].key);return t},top:function(){return e[e.length-1]},remove:function(t){for(var n=-1,r=0;r<e.length;r++)if(t===e[r].key){n=r;break}return e.splice(n,1)[0]},removeTop:function(){return e.splice(e.length-1,1)[0]},length:function(){return e.length}}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.stackedMap","ui.bootstrap.position"]).factory("$$multiMap",function(){return{createNew:function(){var e={};return{entries:function(){return Object.keys(e).map(function(t){return{key:t,value:e[t]}})},get:function(t){return e[t]},hasKey:function(t){return!!e[t]},keys:function(){return Object.keys(e)},put:function(t,n){e[t]||(e[t]=[]),e[t].push(n)},remove:function(t,n){var r=e[t];if(r){var i=r.indexOf(n);-1!==i&&r.splice(i,1),r.length||delete e[t]}}}}}}).provider("$uibResolve",function(){var e=this;this.resolver=null,this.setResolver=function(e){this.resolver=e},this.$get=["$injector","$q",function(t,n){var r=e.resolver?t.get(e.resolver):null;return{resolve:function(e,i,o,a){if(r)return r.resolve(e,i,o,a);var u=[];return angular.forEach(e,function(e){angular.isFunction(e)||angular.isArray(e)?u.push(n.resolve(t.invoke(e))):angular.isString(e)?u.push(n.resolve(t.get(e))):u.push(n.resolve(e))}),n.all(u).then(function(t){var n={},r=0;return angular.forEach(e,function(e,i){n[i]=t[r++]}),n})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(e,t,n){function r(t,r,i){i.modalInClass&&(e.addClass(r,i.modalInClass),t.$on(n.NOW_CLOSING_EVENT,function(n,o){var a=o();t.modalOptions.animation?e.removeClass(r,i.modalInClass).then(a):a()}))}return{replace:!0,templateUrl:"uib/template/modal/backdrop.html",compile:function(e,t){return e.addClass(t.backdropClass),r}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(e,t,n,r){return{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(i,o,a){o.addClass(a.windowClass||""),o.addClass(a.windowTopClass||""),i.size=a.size,i.close=function(t){var n=e.getTop();n&&n.value.backdrop&&"static"!==n.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),e.dismiss(n.key,"backdrop click"))},o.on("click",i.close),i.$isRendered=!0;var u=t.defer();a.$observe("modalRender",function(e){"true"===e&&u.resolve()}),u.promise.then(function(){var u=null;a.modalInClass&&(u=n(o,{addClass:a.modalInClass}).start(),i.$on(e.NOW_CLOSING_EVENT,function(e,t){var r=t();n(o,{removeClass:a.modalInClass}).start().then(r)})),t.when(u).then(function(){var t=e.getTop();if(t&&e.modalRendered(t.key),!r[0].activeElement||!o[0].contains(r[0].activeElement)){var n=o[0].querySelector("[autofocus]");n?n.focus():o[0].focus()}})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(e,t){t.modalAnimation&&e.addClass(t.uibModalAnimationClass)}}}).directive("uibModalTransclude",function(){return{link:function(e,t,n,r,i){i(e.$parent,function(e){t.empty(),t.append(e)})}}}).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(e,t,n,r,i,o,a,u,s){function l(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function c(){for(var e=-1,t=w.keys(),n=0;n<t.length;n++)w.get(t[n]).value.backdrop&&(e=n);return e>-1&&k>e&&(e=k),e}function f(e,t){var n=w.get(e).value,r=n.appendTo;w.remove(e),C=w.top(),C&&(k=parseInt(C.value.modalDomEl.attr("index"),10)),h(n.modalDomEl,n.modalScope,function(){var t=n.openedClass||b;x.remove(t,e);var i=x.hasKey(t);r.toggleClass(t,i),!i&&$&&$.heightOverflow&&$.scrollbarWidth&&($.originalRight?r.css({paddingRight:$.originalRight+"px"}):r.css({paddingRight:""}),$=null),p(!0)},n.closedDeferred),d(),t&&t.focus?t.focus():r.focus&&r.focus()}function p(e){var t;w.length()>0&&(t=w.top().value,t.modalDomEl.toggleClass(t.windowTopClass||"",e))}function d(){if(v&&-1===c()){var e=y;h(v,y,function(){e=null}),v=void 0,y=void 0}}function h(t,n,r,i){function a(){a.done||(a.done=!0,e.leave(t).then(function(){t.remove(),i&&i.resolve()}),n.$destroy(),r&&r())}var u,s=null,l=function(){return u||(u=o.defer(),s=u.promise),function(){u.resolve()}};return n.$broadcast(_.NOW_CLOSING_EVENT,l),o.when(s).then(a)}function g(e){if(e.isDefaultPrevented())return e;var t=w.top();if(t)switch(e.which){case 27:t.value.keyboard&&(e.preventDefault(),i.$apply(function(){_.dismiss(t.key,"escape key press")}));break;case 9:var n=_.loadFocusElementList(t),r=!1;e.shiftKey?(_.isFocusInFirstItem(e,n)||_.isModalFocused(e,t))&&(r=_.focusLastFocusableElement(n)):_.isFocusInLastItem(e,n)&&(r=_.focusFirstFocusableElement(n)),r&&(e.preventDefault(),e.stopPropagation())}}function m(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}var v,y,$,b="modal-open",w=u.createNew(),x=a.createNew(),_={NOW_CLOSING_EVENT:"modal.stack.now-closing"},k=0,C=null,S="a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]";return i.$watch(c,function(e){y&&(y.index=e)}),n.on("keydown",g),i.$on("$destroy",function(){n.off("keydown",g)}),_.open=function(t,o){var a=n[0].activeElement,u=o.openedClass||b;p(!1),C=w.top(),w.add(t,{deferred:o.deferred,renderDeferred:o.renderDeferred,closedDeferred:o.closedDeferred,modalScope:o.scope,backdrop:o.backdrop,keyboard:o.keyboard,openedClass:o.openedClass,windowTopClass:o.windowTopClass,animation:o.animation,appendTo:o.appendTo}),x.put(u,t);var l=o.appendTo,f=c();if(!l.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");f>=0&&!v&&(y=i.$new(!0),y.modalOptions=o,y.index=f,v=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>'),v.attr("backdrop-class",o.backdropClass),o.animation&&v.attr("modal-animation","true"),r(v)(y),e.enter(v,l),$=s.scrollbarPadding(l),$.heightOverflow&&$.scrollbarWidth&&l.css({paddingRight:$.right+"px"})),k=C?parseInt(C.value.modalDomEl.attr("index"),10)+1:0;var d=angular.element('<div uib-modal-window="modal-window"></div>');d.attr({"template-url":o.windowTemplateUrl,"window-class":o.windowClass,"window-top-class":o.windowTopClass,size:o.size,index:k,animate:"animate"}).html(o.content),o.animation&&d.attr("modal-animation","true"),l.addClass(u),e.enter(r(d)(o.scope),l),w.top().value.modalDomEl=d,w.top().value.modalOpener=a},_.close=function(e,t){var n=w.get(e);return n&&m(n,t,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(t),f(e,n.value.modalOpener),!0):!n},_.dismiss=function(e,t){var n=w.get(e);return n&&m(n,t,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(t),f(e,n.value.modalOpener),!0):!n},_.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},_.getTop=function(){return w.top()},_.modalRendered=function(e){var t=w.get(e);t&&t.value.renderDeferred.resolve()},_.focusFirstFocusableElement=function(e){return e.length>0?(e[0].focus(),!0):!1},_.focusLastFocusableElement=function(e){return e.length>0?(e[e.length-1].focus(),!0):!1},_.isModalFocused=function(e,t){if(e&&t){var n=t.value.modalDomEl;if(n&&n.length)return(e.target||e.srcElement)===n[0]}return!1},_.isFocusInFirstItem=function(e,t){return t.length>0?(e.target||e.srcElement)===t[0]:!1},_.isFocusInLastItem=function(e,t){return t.length>0?(e.target||e.srcElement)===t[t.length-1]:!1},_.loadFocusElementList=function(e){if(e){var t=e.value.modalDomEl;if(t&&t.length){var n=t[0].querySelectorAll(S);return n?Array.prototype.filter.call(n,function(e){return l(e)}):n}}},_}]).provider("$uibModal",function(){var e={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(t,n,r,i,o,a,u){function s(e){return e.template?n.when(e.template):i(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl)}var l={},c=null;return l.getPromiseChain=function(){return c},l.open=function(i){function l(){return v}var f=n.defer(),p=n.defer(),d=n.defer(),h=n.defer(),g={result:f.promise,opened:p.promise,closed:d.promise,rendered:h.promise,close:function(e){return u.close(g,e)},dismiss:function(e){return u.dismiss(g,e)}};if(i=angular.extend({},e.options,i),i.resolve=i.resolve||{},i.appendTo=i.appendTo||r.find("body").eq(0),!i.template&&!i.templateUrl)throw new Error("One of template or templateUrl options is required.");var m,v=n.all([s(i),a.resolve(i.resolve,{},null,null)]);return m=c=n.all([c]).then(l,l).then(function(e){var n=i.scope||t,r=n.$new();r.$close=g.close,r.$dismiss=g.dismiss,r.$on("$destroy",function(){r.$$uibDestructionScheduled||r.$dismiss("$uibUnscheduledDestruction")});var a,s,l={};i.controller&&(l.$scope=r,l.$scope.$resolve={},l.$uibModalInstance=g,angular.forEach(e[1],function(e,t){l[t]=e,l.$scope.$resolve[t]=e}),s=o(i.controller,l,!0,i.controllerAs),i.controllerAs&&i.bindToController&&(a=s.instance,a.$close=r.$close,a.$dismiss=r.$dismiss,angular.extend(a,{$resolve:l.$scope.$resolve},n)),a=s(),angular.isFunction(a.$onInit)&&a.$onInit()),u.open(g,{scope:r,deferred:f,renderDeferred:h,closedDeferred:d,content:e[0],animation:i.animation,backdrop:i.backdrop,keyboard:i.keyboard,backdropClass:i.backdropClass,windowTopClass:i.windowTopClass,windowClass:i.windowClass,windowTemplateUrl:i.windowTemplateUrl,size:i.size,openedClass:i.openedClass,appendTo:i.appendTo}),p.resolve(!0)},function(e){p.reject(e),f.reject(e)})["finally"](function(){c===m&&(c=null)}),g},l}]};return e}),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(e){return{create:function(t,n,r){t.setNumPages=r.numPages?e(r.numPages).assign:angular.noop,t.ngModelCtrl={$setViewValue:angular.noop},t._watchers=[],t.init=function(e,i){t.ngModelCtrl=e,t.config=i,e.$render=function(){t.render()},r.itemsPerPage?t._watchers.push(n.$parent.$watch(r.itemsPerPage,function(e){t.itemsPerPage=parseInt(e,10),n.totalPages=t.calculateTotalPages(),t.updatePage()})):t.itemsPerPage=i.itemsPerPage,n.$watch("totalItems",function(e,r){(angular.isDefined(e)||e!==r)&&(n.totalPages=t.calculateTotalPages(),t.updatePage())})},t.calculateTotalPages=function(){var e=t.itemsPerPage<1?1:Math.ceil(n.totalItems/t.itemsPerPage);return Math.max(e||0,1)},t.render=function(){n.page=parseInt(t.ngModelCtrl.$viewValue,10)||1},n.selectPage=function(e,r){r&&r.preventDefault();var i=!n.ngDisabled||!r;i&&n.page!==e&&e>0&&e<=n.totalPages&&(r&&r.target&&r.target.blur(),t.ngModelCtrl.$setViewValue(e),t.ngModelCtrl.$render())},n.getText=function(e){return n[e+"Text"]||t.config[e+"Text"]},n.noPrevious=function(){return 1===n.page},n.noNext=function(){return n.page===n.totalPages},t.updatePage=function(){t.setNumPages(n.$parent,n.totalPages),n.page>n.totalPages?n.selectPage(n.totalPages):t.ngModelCtrl.$render()},n.$on("$destroy",function(){for(;t._watchers.length;)t._watchers.shift()()})}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(e,t,n,r){e.align=angular.isDefined(t.align)?e.$parent.$eval(t.align):r.align,n.create(this,e,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(e){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],controller:"UibPagerController",controllerAs:"pager",templateUrl:function(e,t){return t.templateUrl||"uib/template/pager/pager.html"},replace:!0,link:function(t,n,r,i){var o=i[0],a=i[1];a&&o.init(a,e)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(e,t,n,r,i){function o(e,t,n){return{number:e,text:t,active:n}}function a(e,t){var n=[],r=1,i=t,a=angular.isDefined(s)&&t>s;a&&(l?(r=Math.max(e-Math.floor(s/2),1),i=r+s-1,i>t&&(i=t,r=i-s+1)):(r=(Math.ceil(e/s)-1)*s+1,i=Math.min(r+s-1,t)));for(var u=r;i>=u;u++){var d=o(u,p(u),u===e);n.push(d)}if(a&&s>0&&(!l||c||f)){if(r>1){if(!f||r>3){var h=o(r-1,"...",!1);n.unshift(h)}if(f){if(3===r){var g=o(2,"2",!1);n.unshift(g)}var m=o(1,"1",!1);n.unshift(m)}}if(t>i){if(!f||t-2>i){var v=o(i+1,"...",!1);n.push(v)}if(f){if(i===t-2){var y=o(t-1,t-1,!1);n.push(y)}var $=o(t,t,!1);n.push($)}}}return n}var u=this,s=angular.isDefined(t.maxSize)?e.$parent.$eval(t.maxSize):i.maxSize,l=angular.isDefined(t.rotate)?e.$parent.$eval(t.rotate):i.rotate,c=angular.isDefined(t.forceEllipses)?e.$parent.$eval(t.forceEllipses):i.forceEllipses,f=angular.isDefined(t.boundaryLinkNumbers)?e.$parent.$eval(t.boundaryLinkNumbers):i.boundaryLinkNumbers,p=angular.isDefined(t.pageLabel)?function(n){return e.$parent.$eval(t.pageLabel,{$page:n})}:angular.identity;e.boundaryLinks=angular.isDefined(t.boundaryLinks)?e.$parent.$eval(t.boundaryLinks):i.boundaryLinks,e.directionLinks=angular.isDefined(t.directionLinks)?e.$parent.$eval(t.directionLinks):i.directionLinks,r.create(this,e,t),t.maxSize&&u._watchers.push(e.$parent.$watch(n(t.maxSize),function(e){s=parseInt(e,10),u.render()}));var d=this.render;this.render=function(){d(),e.page>0&&e.page<=e.totalPages&&(e.pages=a(e.page,e.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(e,t){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"uib/template/pagination/pagination.html"},replace:!0,link:function(e,n,r,i){var o=i[0],a=i[1];a&&o.init(a,t)}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){function e(e){var t=/[A-Z]/g,n="-";return e.replace(t,function(e,t){return(t?n:"")+e.toLowerCase()})}var t={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},n={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},r={};this.options=function(e){angular.extend(r,e)},this.setTriggers=function(e){angular.extend(n,e)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(i,o,a,u,s,l,c,f,p){function d(e){if(27===e.which){var t=h.top();t&&(t.value.close(),h.removeTop(),t=null)}}var h=p.createNew();return u.on("keypress",d),c.$on("$destroy",function(){u.off("keypress",d)}),function(i,c,p,d){function g(e){var t=(e||d.trigger||p).split(" "),r=t.map(function(e){
  return n[e]||e});return{show:t,hide:r}}d=angular.extend({},t,r,d);var m=e(i),v=l.startSymbol(),y=l.endSymbol(),$="<div "+m+'-popup uib-title="'+v+"title"+y+'" '+(d.useContentExp?'content-exp="contentExp()" ':'content="'+v+"content"+y+'" ')+'placement="'+v+"placement"+y+'" popup-class="'+v+"popupClass"+y+'" animation="animation" is-open="isOpen" origin-scope="origScope" class="uib-position-measure"></div>';return{compile:function(e,t){var n=o($);return function(e,t,r,o){function l(){F.isOpen?m():p()}function p(){(!R||e.$eval(r[c+"Enable"]))&&(b(),_(),F.popupDelay?M||(M=a(v,F.popupDelay,!1)):v())}function m(){y(),F.popupCloseDelay?P||(P=a($,F.popupCloseDelay,!1)):$()}function v(){return y(),b(),F.content?(w(),void F.$evalAsync(function(){F.isOpen=!0,k(!0),V()})):angular.noop}function y(){M&&(a.cancel(M),M=null),j&&(a.cancel(j),j=null)}function $(){F&&F.$evalAsync(function(){F&&(F.isOpen=!1,k(!1),F.animation?A||(A=a(x,150,!1)):x())})}function b(){P&&(a.cancel(P),P=null),A&&(a.cancel(A),A=null)}function w(){O||(E=F.$new(),O=n(E,function(e){I?u.find("body").append(e):t.after(e)}),C())}function x(){y(),b(),S(),O&&(O.remove(),O=null),E&&(E.$destroy(),E=null)}function _(){F.title=r[c+"Title"],L?F.content=L(e):F.content=r[i],F.popupClass=r[c+"Class"],F.placement=angular.isDefined(r[c+"Placement"])?r[c+"Placement"]:d.placement;var t=s.parsePlacement(F.placement);N=t[1]?t[0]+"-"+t[1]:t[0];var n=parseInt(r[c+"PopupDelay"],10),o=parseInt(r[c+"PopupCloseDelay"],10);F.popupDelay=isNaN(n)?d.popupDelay:n,F.popupCloseDelay=isNaN(o)?d.popupCloseDelay:o}function k(t){q&&angular.isFunction(q.assign)&&q.assign(e,t)}function C(){H.length=0,L?(H.push(e.$watch(L,function(e){F.content=e,!e&&F.isOpen&&$()})),H.push(E.$watch(function(){z||(z=!0,E.$$postDigest(function(){z=!1,F&&F.isOpen&&V()}))}))):H.push(r.$observe(i,function(e){F.content=e,!e&&F.isOpen?$():V()})),H.push(r.$observe(c+"Title",function(e){F.title=e,F.isOpen&&V()})),H.push(r.$observe(c+"Placement",function(e){F.placement=e?e:d.placement,F.isOpen&&V()}))}function S(){H.length&&(angular.forEach(H,function(e){e()}),H.length=0)}function T(e){F&&F.isOpen&&O&&(t[0].contains(e.target)||O[0].contains(e.target)||m())}function D(){var e=r[c+"Trigger"];W(),U=g(e),"none"!==U.show&&U.show.forEach(function(e,n){"outsideClick"===e?(t.on("click",l),u.on("click",T)):e===U.hide[n]?t.on(e,l):e&&(t.on(e,p),t.on(U.hide[n],m)),t.on("keypress",function(e){27===e.which&&m()})})}var O,E,A,M,P,j,N,I=angular.isDefined(d.appendToBody)?d.appendToBody:!1,U=g(void 0),R=angular.isDefined(r[c+"Enable"]),F=e.$new(!0),z=!1,q=angular.isDefined(r[c+"IsOpen"])?f(r[c+"IsOpen"]):!1,L=d.useContentExp?f(r[i]):!1,H=[],V=function(){O&&O.html()&&(j||(j=a(function(){var e=s.positionElements(t,O,F.placement,I);O.css({top:e.top+"px",left:e.left+"px"}),O.hasClass(e.placement.split("-")[0])||(O.removeClass(N.split("-")[0]),O.addClass(e.placement.split("-")[0])),O.hasClass(d.placementClassPrefix+e.placement)||(O.removeClass(d.placementClassPrefix+N),O.addClass(d.placementClassPrefix+e.placement)),O.hasClass("uib-position-measure")?(s.positionArrow(O,e.placement),O.removeClass("uib-position-measure")):N!==e.placement&&s.positionArrow(O,e.placement),N=e.placement,j=null},0,!1)))};F.origScope=e,F.isOpen=!1,h.add(F,{close:$}),F.contentExp=function(){return F.content},r.$observe("disabled",function(e){e&&y(),e&&F.isOpen&&$()}),q&&e.$watch(q,function(e){F&&!e===F.isOpen&&l()});var W=function(){U.show.forEach(function(e){"outsideClick"===e?t.off("click",l):(t.off(e,p),t.off(e,l))}),U.hide.forEach(function(e){"outsideClick"===e?u.off("click",T):t.off(e,m)})};D();var B=e.$eval(r[c+"Animation"]);F.animation=angular.isDefined(B)?!!B:d.animation;var Y,G=c+"AppendToBody";Y=G in r&&void 0===r[G]?!0:e.$eval(r[G]),I=angular.isDefined(Y)?Y:I,e.$on("$destroy",function(){W(),x(),h.remove(F),F=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,r){return{link:function(i,o,a){var u,s,l,c=i.$eval(a.tooltipTemplateTranscludeScope),f=0,p=function(){s&&(s.remove(),s=null),u&&(u.$destroy(),u=null),l&&(e.leave(l).then(function(){s=null}),s=l,l=null)};i.$watch(t.parseAsResourceUrl(a.uibTooltipTemplateTransclude),function(t){var a=++f;t?(r(t,!0).then(function(r){if(a===f){var i=c.$new(),s=r,d=n(s)(i,function(t){p(),e.enter(t,o)});u=i,l=d,u.$emit("$includeContentLoaded",t)}},function(){a===f&&(p(),i.$emit("$includeContentError",t))}),i.$emit("$includeContentRequested",t)):p()}),i.$on("$destroy",p)}}}]).directive("uibTooltipClasses",["$uibPosition",function(e){return{restrict:"A",link:function(t,n,r){if(t.placement){var i=e.parsePlacement(t.placement);n.addClass(i[0])}t.popupClass&&n.addClass(t.popupClass),t.animation()&&n.addClass(r.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(e){return e("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(e){return e("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(e){return e("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{replace:!0,scope:{uibTitle:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(e){return e("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",uibTitle:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(e){return e("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{replace:!0,scope:{uibTitle:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(e){return e("uibPopover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(e,t,n){function r(){return angular.isDefined(e.maxParam)?e.maxParam:n.max}var i=this,o=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;this.bars=[],e.max=r(),this.addBar=function(e,t,n){o||t.css({transition:"none"}),this.bars.push(e),e.max=r(),e.title=n&&angular.isDefined(n.title)?n.title:"progressbar",e.$watch("value",function(t){e.recalculatePercentage()}),e.recalculatePercentage=function(){var t=i.bars.reduce(function(e,t){return t.percent=+(100*t.value/t.max).toFixed(2),e+t.percent},0);t>100&&(e.percent-=t-100)},e.$on("$destroy",function(){t=null,i.removeBar(e)})},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1),this.bars.forEach(function(e){e.recalculatePercentage()})},e.$watch("maxParam",function(e){i.bars.forEach(function(e){e.max=r(),e.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(e,t,n,r){r.addBar(e,t,n)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(e,t,n,r){r.addBar(e,angular.element(t.children()[0]),{title:n.title})}}}),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(e,t,n){var r={$setViewValue:angular.noop},i=this;this.init=function(i){r=i,r.$render=this.render,r.$formatters.push(function(e){return angular.isNumber(e)&&e<<0!==e&&(e=Math.round(e)),e}),this.stateOn=angular.isDefined(t.stateOn)?e.$parent.$eval(t.stateOn):n.stateOn,this.stateOff=angular.isDefined(t.stateOff)?e.$parent.$eval(t.stateOff):n.stateOff,this.enableReset=angular.isDefined(t.enableReset)?e.$parent.$eval(t.enableReset):n.enableReset;var o=angular.isDefined(t.titles)?e.$parent.$eval(t.titles):n.titles;this.titles=angular.isArray(o)&&o.length>0?o:n.titles;var a=angular.isDefined(t.ratingStates)?e.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?e.$parent.$eval(t.max):n.max);e.range=this.buildTemplateObjects(a)},this.buildTemplateObjects=function(e){for(var t=0,n=e.length;n>t;t++)e[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},e[t]);return e},this.getTitle=function(e){return e>=this.titles.length?e+1:this.titles[e]},e.rate=function(t){if(!e.readonly&&t>=0&&t<=e.range.length){var n=i.enableReset&&r.$viewValue===t?0:t;r.$setViewValue(n),r.$render()}},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=r.$viewValue,e.onLeave()},e.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),e.rate(e.value+(38===t.which||39===t.which?1:-1)))},this.render=function(){e.value=r.$viewValue,e.title=i.getTitle(e.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",replace:!0,link:function(e,t,n,r){var i=r[0],o=r[1];i.init(o)}}}),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(e){function t(e){for(var t=0;t<r.tabs.length;t++)if(r.tabs[t].index===e)return t}var n,r=this;r.tabs=[],r.select=function(e,o){if(!i){var a=t(n),u=r.tabs[a];if(u){if(u.tab.onDeselect({$event:o,$selectedIndex:e}),o&&o.isDefaultPrevented())return;u.tab.active=!1}var s=r.tabs[e];s?(s.tab.onSelect({$event:o}),s.tab.active=!0,r.active=s.index,n=s.index):!s&&angular.isDefined(n)&&(r.active=null,n=null)}},r.addTab=function(e){if(r.tabs.push({tab:e,index:e.index}),r.tabs.sort(function(e,t){return e.index>t.index?1:e.index<t.index?-1:0}),e.index===r.active||!angular.isDefined(r.active)&&1===r.tabs.length){var n=t(e.index);r.select(n)}},r.removeTab=function(e){for(var t,n=0;n<r.tabs.length;n++)if(r.tabs[n].tab===e){t=n;break}if(r.tabs[t].index===r.active){var i=t===r.tabs.length-1?t-1:t+1%r.tabs.length;r.select(i)}r.tabs.splice(t,1)},e.$watch("tabset.active",function(e){angular.isDefined(e)&&e!==n&&r.select(t(e))});var i;e.$on("$destroy",function(){i=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(e,t){return t.templateUrl||"uib/template/tabs/tabset.html"},link:function(e,t,n){e.vertical=angular.isDefined(n.vertical)?e.$parent.$eval(n.vertical):!1,e.justified=angular.isDefined(n.justified)?e.$parent.$eval(n.justified):!1}}}).directive("uibTab",["$parse",function(e){return{require:"^uibTabset",replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(t,n,r,i,o){t.disabled=!1,r.disable&&t.$parent.$watch(e(r.disable),function(e){t.disabled=!!e}),angular.isUndefined(r.index)&&(i.tabs&&i.tabs.length?t.index=Math.max.apply(null,i.tabs.map(function(e){return e.index}))+1:t.index=0),angular.isUndefined(r.classes)&&(t.classes=""),t.select=function(e){if(!t.disabled){for(var n,r=0;r<i.tabs.length;r++)if(i.tabs[r].tab===t){n=r;break}i.select(n,e)}},i.addTab(t),t.$on("$destroy",function(){i.removeTab(t)}),t.$transcludeFn=o}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(e,t){e.$watch("headingElement",function(e){e&&(t.html(""),t.append(e))})}}}).directive("uibTabContentTransclude",function(){function e(e){return e.tagName&&(e.hasAttribute("uib-tab-heading")||e.hasAttribute("data-uib-tab-heading")||e.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===e.tagName.toLowerCase()||"data-uib-tab-heading"===e.tagName.toLowerCase()||"x-uib-tab-heading"===e.tagName.toLowerCase()||"uib:tab-heading"===e.tagName.toLowerCase())}return{restrict:"A",require:"^uibTabset",link:function(t,n,r){var i=t.$eval(r.uibTabContentTransclude).tab;i.$transcludeFn(i.$parent,function(t){angular.forEach(t,function(t){e(t)?i.headingElement=t:n.append(t)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(e,t,n,r,i,o,a){function u(){var t=+e.hours,n=e.showMeridian?t>0&&13>t:t>=0&&24>t;return n&&""!==e.hours?(e.showMeridian&&(12===t&&(t=0),e.meridian===w[1]&&(t+=12)),t):void 0}function s(){var t=+e.minutes,n=t>=0&&60>t;return n&&""!==e.minutes?t:void 0}function l(){var t=+e.seconds;return t>=0&&60>t?t:void 0}function c(e,t){return null===e?"":angular.isDefined(e)&&e.toString().length<2&&!t?"0"+e:e.toString()}function f(e){p(),b.$setViewValue(new Date(y)),d(e)}function p(){b.$setValidity("time",!0),e.invalidHours=!1,e.invalidMinutes=!1,e.invalidSeconds=!1}function d(t){if(b.$modelValue){var n=y.getHours(),r=y.getMinutes(),i=y.getSeconds();e.showMeridian&&(n=0===n||12===n?12:n%12),e.hours="h"===t?n:c(n,!x),"m"!==t&&(e.minutes=c(r)),e.meridian=y.getHours()<12?w[0]:w[1],"s"!==t&&(e.seconds=c(i)),e.meridian=y.getHours()<12?w[0]:w[1]}else e.hours=null,e.minutes=null,e.seconds=null,e.meridian=w[0]}function h(e){y=m(y,e),f()}function g(e,t){return m(e,60*t)}function m(e,t){var n=new Date(e.getTime()+1e3*t),r=new Date(e);return r.setHours(n.getHours(),n.getMinutes(),n.getSeconds()),r}function v(){return(null===e.hours||""===e.hours)&&(null===e.minutes||""===e.minutes)&&(!e.showSeconds||e.showSeconds&&(null===e.seconds||""===e.seconds))}var y=new Date,$=[],b={$setViewValue:angular.noop},w=angular.isDefined(n.meridians)?e.$parent.$eval(n.meridians):a.meridians||o.DATETIME_FORMATS.AMPMS,x=angular.isDefined(n.padHours)?e.$parent.$eval(n.padHours):!0;e.tabindex=angular.isDefined(n.tabindex)?n.tabindex:0,t.removeAttr("tabindex"),this.init=function(t,r){b=t,b.$render=this.render,b.$formatters.unshift(function(e){return e?new Date(e):null});var i=r.eq(0),o=r.eq(1),u=r.eq(2),s=angular.isDefined(n.mousewheel)?e.$parent.$eval(n.mousewheel):a.mousewheel;s&&this.setupMousewheelEvents(i,o,u);var l=angular.isDefined(n.arrowkeys)?e.$parent.$eval(n.arrowkeys):a.arrowkeys;l&&this.setupArrowkeyEvents(i,o,u),e.readonlyInput=angular.isDefined(n.readonlyInput)?e.$parent.$eval(n.readonlyInput):a.readonlyInput,this.setupInputEvents(i,o,u)};var _=a.hourStep;n.hourStep&&$.push(e.$parent.$watch(r(n.hourStep),function(e){_=+e}));var k=a.minuteStep;n.minuteStep&&$.push(e.$parent.$watch(r(n.minuteStep),function(e){k=+e}));var C;$.push(e.$parent.$watch(r(n.min),function(e){var t=new Date(e);C=isNaN(t)?void 0:t}));var S;$.push(e.$parent.$watch(r(n.max),function(e){var t=new Date(e);S=isNaN(t)?void 0:t}));var T=!1;n.ngDisabled&&$.push(e.$parent.$watch(r(n.ngDisabled),function(e){T=e})),e.noIncrementHours=function(){var e=g(y,60*_);return T||e>S||y>e&&C>e},e.noDecrementHours=function(){var e=g(y,60*-_);return T||C>e||e>y&&e>S},e.noIncrementMinutes=function(){var e=g(y,k);return T||e>S||y>e&&C>e},e.noDecrementMinutes=function(){var e=g(y,-k);return T||C>e||e>y&&e>S},e.noIncrementSeconds=function(){var e=m(y,D);return T||e>S||y>e&&C>e},e.noDecrementSeconds=function(){var e=m(y,-D);return T||C>e||e>y&&e>S},e.noToggleMeridian=function(){return y.getHours()<12?T||g(y,720)>S:T||g(y,-720)<C};var D=a.secondStep;n.secondStep&&$.push(e.$parent.$watch(r(n.secondStep),function(e){D=+e})),e.showSeconds=a.showSeconds,n.showSeconds&&$.push(e.$parent.$watch(r(n.showSeconds),function(t){e.showSeconds=!!t})),e.showMeridian=a.showMeridian,n.showMeridian&&$.push(e.$parent.$watch(r(n.showMeridian),function(t){if(e.showMeridian=!!t,b.$error.time){var n=u(),r=s();angular.isDefined(n)&&angular.isDefined(r)&&(y.setHours(n),f())}else d()})),this.setupMousewheelEvents=function(t,n,r){var i=function(e){e.originalEvent&&(e=e.originalEvent);var t=e.wheelDelta?e.wheelDelta:-e.deltaY;return e.detail||t>0};t.bind("mousewheel wheel",function(t){T||e.$apply(i(t)?e.incrementHours():e.decrementHours()),t.preventDefault()}),n.bind("mousewheel wheel",function(t){T||e.$apply(i(t)?e.incrementMinutes():e.decrementMinutes()),t.preventDefault()}),r.bind("mousewheel wheel",function(t){T||e.$apply(i(t)?e.incrementSeconds():e.decrementSeconds()),t.preventDefault()})},this.setupArrowkeyEvents=function(t,n,r){t.bind("keydown",function(t){T||(38===t.which?(t.preventDefault(),e.incrementHours(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementHours(),e.$apply()))}),n.bind("keydown",function(t){T||(38===t.which?(t.preventDefault(),e.incrementMinutes(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementMinutes(),e.$apply()))}),r.bind("keydown",function(t){T||(38===t.which?(t.preventDefault(),e.incrementSeconds(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementSeconds(),e.$apply()))})},this.setupInputEvents=function(t,n,r){if(e.readonlyInput)return e.updateHours=angular.noop,e.updateMinutes=angular.noop,void(e.updateSeconds=angular.noop);var i=function(t,n,r){b.$setViewValue(null),b.$setValidity("time",!1),angular.isDefined(t)&&(e.invalidHours=t),angular.isDefined(n)&&(e.invalidMinutes=n),angular.isDefined(r)&&(e.invalidSeconds=r)};e.updateHours=function(){var e=u(),t=s();b.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(y.setHours(e),y.setMinutes(t),C>y||y>S?i(!0):f("h")):i(!0)},t.bind("blur",function(t){b.$setTouched(),v()?p():null===e.hours||""===e.hours?i(!0):!e.invalidHours&&e.hours<10&&e.$apply(function(){e.hours=c(e.hours,!x)})}),e.updateMinutes=function(){var e=s(),t=u();b.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(y.setHours(t),y.setMinutes(e),C>y||y>S?i(void 0,!0):f("m")):i(void 0,!0)},n.bind("blur",function(t){b.$setTouched(),v()?p():null===e.minutes?i(void 0,!0):!e.invalidMinutes&&e.minutes<10&&e.$apply(function(){e.minutes=c(e.minutes)})}),e.updateSeconds=function(){var e=l();b.$setDirty(),angular.isDefined(e)?(y.setSeconds(e),f("s")):i(void 0,void 0,!0)},r.bind("blur",function(t){v()?p():!e.invalidSeconds&&e.seconds<10&&e.$apply(function(){e.seconds=c(e.seconds)})})},this.render=function(){var t=b.$viewValue;isNaN(t)?(b.$setValidity("time",!1),i.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(t&&(y=t),C>y||y>S?(b.$setValidity("time",!1),e.invalidHours=!0,e.invalidMinutes=!0):p(),d())},e.showSpinners=angular.isDefined(n.showSpinners)?e.$parent.$eval(n.showSpinners):a.showSpinners,e.incrementHours=function(){e.noIncrementHours()||h(60*_*60)},e.decrementHours=function(){e.noDecrementHours()||h(60*-_*60)},e.incrementMinutes=function(){e.noIncrementMinutes()||h(60*k)},e.decrementMinutes=function(){e.noDecrementMinutes()||h(60*-k)},e.incrementSeconds=function(){e.noIncrementSeconds()||h(D)},e.decrementSeconds=function(){e.noDecrementSeconds()||h(-D)},e.toggleMeridian=function(){var t=s(),n=u();e.noToggleMeridian()||(angular.isDefined(t)&&angular.isDefined(n)?h(720*(y.getHours()<12?60:-60)):e.meridian=e.meridian===w[0]?w[1]:w[0])},e.blur=function(){b.$setTouched()},e.$on("$destroy",function(){for(;$.length;)$.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(e){return{require:["uibTimepicker","?^ngModel"],controller:"UibTimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(t,n){return n.templateUrl||e.templateUrl},link:function(e,t,n,r){var i=r[0],o=r[1];o&&i.init(o,t.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(e){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var r=n.match(t);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:r[3],source:e(r[4]),viewMapper:e(r[2]||r[1]),modelMapper:e(r[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(e,t,n,r,i,o,a,u,s,l,c,f,p){function d(){z.moveInProgress||(z.moveInProgress=!0,z.$digest()),X()}function h(){z.position=E?f.offset(t):f.position(t),z.position.top+=t.prop("offsetHeight")}var g,m,v=[9,13,27,38,40],y=200,$=e.$eval(n.typeaheadMinLength);$||0===$||($=1),e.$watch(n.typeaheadMinLength,function(e){$=e||0===e?e:1});var b=e.$eval(n.typeaheadWaitMs)||0,w=e.$eval(n.typeaheadEditable)!==!1;e.$watch(n.typeaheadEditable,function(e){w=e!==!1});var x,_,k=i(n.typeaheadLoading).assign||angular.noop,C=n.typeaheadShouldSelect?i(n.typeaheadShouldSelect):function(e,t){var n=t.$event;return 13===n.which||9===n.which},S=i(n.typeaheadOnSelect),T=angular.isDefined(n.typeaheadSelectOnBlur)?e.$eval(n.typeaheadSelectOnBlur):!1,D=i(n.typeaheadNoResults).assign||angular.noop,O=n.typeaheadInputFormatter?i(n.typeaheadInputFormatter):void 0,E=n.typeaheadAppendToBody?e.$eval(n.typeaheadAppendToBody):!1,A=n.typeaheadAppendTo?e.$eval(n.typeaheadAppendTo):null,M=e.$eval(n.typeaheadFocusFirst)!==!1,P=n.typeaheadSelectOnExact?e.$eval(n.typeaheadSelectOnExact):!1,j=i(n.typeaheadIsOpen).assign||angular.noop,N=e.$eval(n.typeaheadShowHint)||!1,I=i(n.ngModel),U=i(n.ngModel+"($$$p)"),R=function(t,n){return angular.isFunction(I(e))&&m&&m.$options&&m.$options.getterSetter?U(t,{$$$p:n}):I.assign(t,n)},F=p.parse(n.uibTypeahead),z=e.$new(),q=e.$on("$destroy",function(){z.$destroy()});z.$on("$destroy",q);var L="typeahead-"+z.$id+"-"+Math.floor(1e4*Math.random());t.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":L});var H,V;N&&(H=angular.element("<div></div>"),H.css("position","relative"),t.after(H),V=t.clone(),V.attr("placeholder",""),V.attr("tabindex","-1"),V.val(""),V.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),t.css({position:"relative","vertical-align":"top","background-color":"transparent"}),H.append(V),V.after(t));var W=angular.element("<div uib-typeahead-popup></div>");W.attr({id:L,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),angular.isDefined(n.typeaheadTemplateUrl)&&W.attr("template-url",n.typeaheadTemplateUrl),angular.isDefined(n.typeaheadPopupTemplateUrl)&&W.attr("popup-template-url",n.typeaheadPopupTemplateUrl);var B=function(){N&&V.val("")},Y=function(){z.matches=[],z.activeIdx=-1,t.attr("aria-expanded",!1),B()},G=function(e){return L+"-option-"+e};z.$watch("activeIdx",function(e){0>e?t.removeAttr("aria-activedescendant"):t.attr("aria-activedescendant",G(e))});var K=function(e,t){return z.matches.length>t&&e?e.toUpperCase()===z.matches[t].label.toUpperCase():!1},Z=function(n,r){var i={$viewValue:n};k(e,!0),D(e,!1),o.when(F.source(e,i)).then(function(o){var a=n===g.$viewValue;if(a&&x)if(o&&o.length>0){z.activeIdx=M?0:-1,D(e,!1),z.matches.length=0;for(var u=0;u<o.length;u++)i[F.itemName]=o[u],z.matches.push({id:G(u),label:F.viewMapper(z,i),model:o[u]});if(z.query=n,h(),t.attr("aria-expanded",!0),P&&1===z.matches.length&&K(n,0)&&(angular.isNumber(z.debounceUpdate)||angular.isObject(z.debounceUpdate)?c(function(){z.select(0,r)},angular.isNumber(z.debounceUpdate)?z.debounceUpdate:z.debounceUpdate["default"]):z.select(0,r)),N){var s=z.matches[0].label;angular.isString(n)&&n.length>0&&s.slice(0,n.length).toUpperCase()===n.toUpperCase()?V.val(n+s.slice(n.length)):V.val("")}}else Y(),D(e,!0);a&&k(e,!1)},function(){Y(),k(e,!1),D(e,!0)})};E&&(angular.element(s).on("resize",d),u.find("body").on("scroll",d));var X=c(function(){z.matches.length&&h(),z.moveInProgress=!1},y);z.moveInProgress=!1,z.query=void 0;var J,Q=function(e){J=a(function(){Z(e)},b)},ee=function(){J&&a.cancel(J)};Y(),z.assignIsOpen=function(t){j(e,t)},z.select=function(r,i){var o,u,s={};_=!0,s[F.itemName]=u=z.matches[r].model,o=F.modelMapper(e,s),R(e,o),g.$setValidity("editable",!0),g.$setValidity("parse",!0),S(e,{$item:u,$model:o,$label:F.viewMapper(e,s),$event:i}),Y(),z.$eval(n.typeaheadFocusOnSelect)!==!1&&a(function(){t[0].focus()},0,!1)},t.on("keydown",function(t){if(0!==z.matches.length&&-1!==v.indexOf(t.which)){var n=C(e,{$event:t});if(-1===z.activeIdx&&n||9===t.which&&t.shiftKey)return Y(),void z.$digest();t.preventDefault();var r;switch(t.which){case 27:t.stopPropagation(),Y(),e.$digest();break;case 38:z.activeIdx=(z.activeIdx>0?z.activeIdx:z.matches.length)-1,z.$digest(),r=W.find("li")[z.activeIdx],r.parentNode.scrollTop=r.offsetTop;break;case 40:z.activeIdx=(z.activeIdx+1)%z.matches.length,z.$digest(),r=W.find("li")[z.activeIdx],r.parentNode.scrollTop=r.offsetTop;break;default:n&&z.$apply(function(){angular.isNumber(z.debounceUpdate)||angular.isObject(z.debounceUpdate)?c(function(){z.select(z.activeIdx,t)},angular.isNumber(z.debounceUpdate)?z.debounceUpdate:z.debounceUpdate["default"]):z.select(z.activeIdx,t)})}}}),t.bind("focus",function(e){x=!0,0!==$||g.$viewValue||a(function(){Z(g.$viewValue,e)},0)}),t.bind("blur",function(e){T&&z.matches.length&&-1!==z.activeIdx&&!_&&(_=!0,z.$apply(function(){angular.isObject(z.debounceUpdate)&&angular.isNumber(z.debounceUpdate.blur)?c(function(){z.select(z.activeIdx,e)},z.debounceUpdate.blur):z.select(z.activeIdx,e)})),!w&&g.$error.editable&&(g.$setViewValue(),g.$setValidity("editable",!0),g.$setValidity("parse",!0),t.val("")),x=!1,_=!1});var te=function(n){t[0]!==n.target&&3!==n.which&&0!==z.matches.length&&(Y(),l.$$phase||e.$digest())};u.on("click",te),e.$on("$destroy",function(){u.off("click",te),(E||A)&&ne.remove(),E&&(angular.element(s).off("resize",d),u.find("body").off("scroll",d)),W.remove(),N&&H.remove()});var ne=r(W)(z);E?u.find("body").append(ne):A?angular.element(A).eq(0).append(ne):t.after(ne),this.init=function(t,n){g=t,m=n,z.debounceUpdate=g.$options&&i(g.$options.debounce)(e),g.$parsers.unshift(function(t){return x=!0,0===$||t&&t.length>=$?b>0?(ee(),Q(t)):Z(t):(k(e,!1),ee(),Y()),w?t:t?void g.$setValidity("editable",!1):(g.$setValidity("editable",!0),null)}),g.$formatters.push(function(t){var n,r,i={};return w||g.$setValidity("editable",!0),O?(i.$model=t,O(e,i)):(i[F.itemName]=t,n=F.viewMapper(e,i),i[F.itemName]=void 0,r=F.viewMapper(e,i),n!==r?n:t)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(e,t,n,r){r[2].init(r[0],r[1])}}}).directive("uibTypeaheadPopup",["$$debounce",function(e){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(e,t){return t.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(t,n,r){t.templateUrl=r.templateUrl,t.isOpen=function(){var e=t.matches.length>0;return t.assignIsOpen({isOpen:e}),e},t.isActive=function(e){return t.active===e},t.selectActive=function(e){t.active=e},t.selectMatch=function(n,r){var i=t.debounce();angular.isNumber(i)||angular.isObject(i)?e(function(){t.select({activeIdx:n,evt:r})},angular.isNumber(i)?i:i["default"]):t.select({activeIdx:n,evt:r})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(e,t,n){return{scope:{index:"=",match:"=",query:"="},link:function(r,i,o){var a=n(o.templateUrl)(r.$parent)||"uib/template/typeahead/typeahead-match.html";e(a).then(function(e){var n=angular.element(e.trim());i.replaceWith(n),t(n)(r)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(e,t,n){function r(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function i(e){return/<.*>/g.test(e)}var o;return o=t.has("$sanitize"),function(t,a){return!o&&i(t)&&n.warn("Unsafe use of typeahead please use ngSanitize"),t=a?(""+t).replace(new RegExp(r(a),"gi"),"<strong>$&</strong>"):t,o||(t=e.trustAsHtml(t)),t}}]),angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion-group.html",'<div class="panel" ng-class="panelClass || \'panel-default\'">\n  <div role="tab" id="{{::headingId}}" aria-selected="{{isOpen}}" class="panel-heading" ng-keypress="toggleOpen($event)">\n    <h4 class="panel-title">\n      <a role="button" data-toggle="collapse" href aria-expanded="{{isOpen}}" aria-controls="{{::panelId}}" tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading"><span uib-accordion-header ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n    </h4>\n  </div>\n  <div id="{{::panelId}}" aria-labelledby="{{::headingId}}" aria-hidden="{{!isOpen}}" role="tabpanel" class="panel-collapse collapse" uib-collapse="!isOpen">\n    <div class="panel-body" ng-transclude></div>\n  </div>\n</div>\n')}]),angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion.html",'<div role="tablist" class="panel-group" ng-transclude></div>')}]),angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(e){e.put("uib/template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissible\' : null]" role="alert">\n    <button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n        <span aria-hidden="true">&times;</span>\n        <span class="sr-only">Close</span>\n    </button>\n    <div ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n  <div class="carousel-inner" ng-transclude></div>\n  <a role="button" href class="left carousel-control" ng-click="prev()" ng-class="{ disabled: isPrevDisabled() }" ng-show="slides.length > 1">\n    <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>\n    <span class="sr-only">previous</span>\n  </a>\n  <a role="button" href class="right carousel-control" ng-click="next()" ng-class="{ disabled: isNextDisabled() }" ng-show="slides.length > 1">\n    <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>\n    <span class="sr-only">next</span>\n  </a>\n  <ol class="carousel-indicators" ng-show="slides.length > 1">\n    <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n      <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span>\n    </li>\n  </ol>\n</div>\n');
  }]),angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/slide.html",'<div ng-class="{\n    \'active\': active\n  }" class="item text-center" ng-transclude></div>\n')}]),angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/datepicker.html",'<div class="uib-datepicker" ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n  <uib-daypicker ng-switch-when="day" tabindex="0"></uib-daypicker>\n  <uib-monthpicker ng-switch-when="month" tabindex="0"></uib-monthpicker>\n  <uib-yearpicker ng-switch-when="year" tabindex="0"></uib-yearpicker>\n</div>\n')}]),angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/day.html",'<table class="uib-daypicker" role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n    <tr>\n      <th ng-if="showWeeks" class="text-center"></th>\n      <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}</small></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-weeks" ng-repeat="row in rows track by $index">\n      <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n      <td ng-repeat="dt in row" class="uib-day text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default btn-sm"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/month.html",'<table class="uib-monthpicker" role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-months" ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row" class="uib-month text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/year.html",'<table class="uib-yearpicker" role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="{{::columns - 2}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-years" ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row" class="uib-year text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/datepickerPopup/popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepickerPopup/popup.html",'<div>\n  <ul class="uib-datepicker-popup dropdown-menu uib-position-measure" dropdown-nested ng-if="isOpen" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n    <li ng-transclude></li>\n    <li ng-if="showButtonBar" class="uib-button-bar">\n      <span class="btn-group pull-left">\n        <button type="button" class="btn btn-sm btn-info uib-datepicker-current" ng-click="select(\'today\', $event)" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n        <button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null, $event)">{{ getText(\'clear\') }}</button>\n      </span>\n      <button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close($event)">{{ getText(\'close\') }}</button>\n    </li>\n  </ul>\n</div>\n')}]),angular.module("uib/template/modal/backdrop.html",[]).run(["$templateCache",function(e){e.put("uib/template/modal/backdrop.html",'<div class="modal-backdrop"\n     uib-modal-animation-class="fade"\n     modal-in-class="in"\n     ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(e){e.put("uib/template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n    uib-modal-animation-class="fade"\n    modal-in-class="in"\n    ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}">\n    <div class="modal-dialog {{size ? \'modal-\' + size : \'\'}}"><div class="modal-content" uib-modal-transclude></div></div>\n</div>\n')}]),angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(e){e.put("uib/template/pager/pager.html",'<ul class="pager">\n  <li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n  <li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n</ul>\n')}]),angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("uib/template/pagination/pagination.html",'<ul class="pagination">\n  <li ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)">{{::getText(\'first\')}}</a></li>\n  <li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n  <li ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)">{{page.text}}</a></li>\n  <li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n  <li ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)">{{::getText(\'last\')}}</a></li>\n</ul>\n')}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner"\n    uib-tooltip-template-transclude="contentExp()"\n    tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-html.html",'<div class="popover"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="arrow"></div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n      <div class="popover-content" ng-bind-html="contentExp()"></div>\n  </div>\n</div>\n')}]),angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-template.html",'<div class="popover"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="arrow"></div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n      <div class="popover-content"\n        uib-tooltip-template-transclude="contentExp()"\n        tooltip-template-transclude-scope="originScope()"></div>\n  </div>\n</div>\n')}]),angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover.html",'<div class="popover"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="arrow"></div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n      <div class="popover-content" ng-bind="content"></div>\n  </div>\n</div>\n')}]),angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n')}]),angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"></div>')}]),angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progressbar.html",'<div class="progress">\n  <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(e){e.put("uib/template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}" aria-valuetext="{{title}}">\n    <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n    <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}"></i>\n</span>\n')}]),angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tab.html",'<li ng-class="[{active: active, disabled: disabled}, classes]" class="uib-tab nav-item">\n  <a href ng-click="select($event)" class="nav-link" uib-tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{tabset.type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n  <div class="tab-content">\n    <div class="tab-pane"\n         ng-repeat="tab in tabset.tabs"\n         ng-class="{active: tabset.active === tab.index}"\n         uib-tab-content-transclude="tab">\n    </div>\n  </div>\n</div>\n')}]),angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/timepicker/timepicker.html",'<table class="uib-timepicker">\n  <tbody>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-increment hours"><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td>&nbsp;</td>\n      <td class="uib-increment minutes"><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td ng-show="showSeconds">&nbsp;</td>\n      <td ng-show="showSeconds" class="uib-increment seconds"><a ng-click="incrementSeconds()" ng-class="{disabled: noIncrementSeconds()}" class="btn btn-link" ng-disabled="noIncrementSeconds()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td ng-show="showMeridian"></td>\n    </tr>\n    <tr>\n      <td class="form-group uib-time hours" ng-class="{\'has-error\': invalidHours}">\n        <input type="text" placeholder="HH" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementHours()" ng-blur="blur()">\n      </td>\n      <td class="uib-separator">:</td>\n      <td class="form-group uib-time minutes" ng-class="{\'has-error\': invalidMinutes}">\n        <input type="text" placeholder="MM" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementMinutes()" ng-blur="blur()">\n      </td>\n      <td ng-show="showSeconds" class="uib-separator">:</td>\n      <td class="form-group uib-time seconds" ng-class="{\'has-error\': invalidSeconds}" ng-show="showSeconds">\n        <input type="text" placeholder="SS" ng-model="seconds" ng-change="updateSeconds()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementSeconds()" ng-blur="blur()">\n      </td>\n      <td ng-show="showMeridian" class="uib-time am-pm"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian}}</button></td>\n    </tr>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-decrement hours"><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td>&nbsp;</td>\n      <td class="uib-decrement minutes"><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td ng-show="showSeconds">&nbsp;</td>\n      <td ng-show="showSeconds" class="uib-decrement seconds"><a ng-click="decrementSeconds()" ng-class="{disabled: noDecrementSeconds()}" class="btn btn-link" ng-disabled="noDecrementSeconds()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td ng-show="showMeridian"></td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-match.html",'<a href\n   tabindex="-1"\n   ng-bind-html="match.label | uibTypeaheadHighlight:query"\n   ng-attr-title="{{match.label}}"></a>\n')}]),angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" role="listbox" aria-hidden="{{!isOpen()}}">\n    <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index, $event)" role="option" id="{{::match.id}}">\n        <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n    </li>\n</ul>\n')}]),angular.module("ui.bootstrap.carousel").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibCarouselCss&&angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>'),angular.$$uibCarouselCss=!0}),angular.module("ui.bootstrap.datepicker").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}</style>'),angular.$$uibDatepickerCss=!0}),angular.module("ui.bootstrap.position").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibPositionCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}</style>'),angular.$$uibPositionCss=!0}),angular.module("ui.bootstrap.datepickerPopup").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerpopupCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}</style>'),angular.$$uibDatepickerpopupCss=!0}),angular.module("ui.bootstrap.tooltip").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTooltipCss&&angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}</style>'),angular.$$uibTooltipCss=!0}),angular.module("ui.bootstrap.timepicker").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTimepickerCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}</style>'),angular.$$uibTimepickerCss=!0}),angular.module("ui.bootstrap.typeahead").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTypeaheadCss&&angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}</style>'),angular.$$uibTypeaheadCss=!0}),!function(e){"use strict";function t(e,t){return-1!==e.indexOf(t,e.length-t.length)}function n(){}function r(e,u){function s(e,t){return x.push(e),_.push(t),C!=a&&(C=a,setTimeout(function(){l()},0)),h}function l(){if(C!=a)return C=i,S(e),void(S=n);if(++k==x.length){if(!g)return k=x.length-1,void(C=i);k=0}x[k].apply(null,[].concat(l,_[k]))}function c(t,n,r){var i=n.length;return i?void function o(a){setTimeout(function(){w(e,b(e)+n[a]),a+=1,i>a?o(a):t()},r)}(0):t()}function f(n,r,i){var o=b(e),a=o.length;return null!=r&&("string"==typeof r?a=t(o,r+$)?r.length+$.length:0:r>-1&&(a=Math.min(r,a))),a?void function u(t){setTimeout(function(){var r=b(e);t?(w(e,r.substring(0,r.length-1)),u(t-1)):n()},i)}(a):n()}function p(t){w(e,""),t()}function d(t,n){n.call(t,e)}var h=this;if(!(h instanceof r))return new r(e,u);u=u||{};var g=u.loop,m=u.speed||u.typeSpeed||50,v=u.speed||u.deleteSpeed||50,y=u.delay||u.pauseDelay||2e3,$=u.postfix||"",b=u.getter||function(e){return e.innerHTML},w=u.setter||function(e,t){e.innerHTML=t},x=[],_=[],k=-1,C=i,S=n;h.type=function(e,t){return s(c,[e+$,t||m])},h["delete"]=function(e,t){return s(f,[e,t||v])},h.clear=function(){return s(p)},h.pause=function(e){return s(setTimeout,[e||y])},h.call=function(e){return s(d,[e])},h.triggerPause=function(e){return C=o,S=e||n,h},h.triggerResume=function(){if(C!=a){var e=C;C=a,e==i&&l()}return h},h.isRunning=function(){return C!=i}}var i=0,o=1,a=2;"object"==typeof module?module.exports=r:e.malarkey=r}(this),function(){"use strict";function e(e,t,n,r,i,o,a){function u(e){if(1!==arguments.length||e)if(e)p(e.toastId);else for(var t=0;t<$.length;t++)p($[t].toastId)}function s(e,t,n){var r=h().iconClasses.error;return d(r,e,t,n)}function l(e,t,n){var r=h().iconClasses.info;return d(r,e,t,n)}function c(e,t,n){var r=h().iconClasses.success;return d(r,e,t,n)}function f(e,t,n){var r=h().iconClasses.warning;return d(r,e,t,n)}function p(t,n){function r(e){for(var t=0;t<$.length;t++)if($[t].toastId===e)return $[t]}function i(){return!$.length}var u=r(t);u&&!u.deleting&&(u.deleting=!0,u.isOpened=!1,e.leave(u.el).then(function(){u.scope.options.onHidden&&u.scope.options.onHidden(n),u.scope.$destroy();var e=$.indexOf(u);delete w[u.scope.message],$.splice(e,1);var t=o.maxOpened;t&&$.length>=t&&$[t-1].open.resolve(),i()&&(v.remove(),v=null,x=a.defer())}))}function d(e,t,n,r){return angular.isObject(n)&&(r=n,n=null),m({iconClass:e,message:t,optionsOverride:r,title:n})}function h(){return angular.extend({},o)}function g(t){if(v)return x.promise;v=angular.element("<div></div>"),v.attr("id",t.containerId),v.addClass(t.positionClass),v.css({"pointer-events":"auto"});var n=angular.element(document.querySelector(t.target));if(!n||!n.length)throw"Target for toasts doesn't exist";return e.enter(v,n).then(function(){x.resolve()}),x.promise}function m(n){function o(){return d.autoDismiss&&d.maxOpened&&$.length>d.maxOpened}function u(e,t,n){n.allowHtml?(e.scope.allowHtml=!0,e.scope.title=i.trustAsHtml(t.title),e.scope.message=i.trustAsHtml(t.message)):(e.scope.title=t.title,e.scope.message=t.message),e.scope.toastType=e.iconClass,e.scope.toastId=e.toastId,e.scope.extraData=n.extraData,e.scope.options={extendedTimeOut:n.extendedTimeOut,messageClass:n.messageClass,onHidden:n.onHidden,onShown:n.onShown,onTap:n.onTap,progressBar:n.progressBar,tapToDismiss:n.tapToDismiss,timeOut:n.timeOut,titleClass:n.titleClass,toastClass:n.toastClass},n.closeButton&&(e.scope.options.closeHtml=n.closeHtml)}function s(){function e(e){for(var t=["containerId","iconClasses","maxOpened","newestOnTop","positionClass","preventDuplicates","preventOpenDuplicates","templates"],n=0,r=t.length;r>n;n++)delete e[t[n]];return e}var t={toastId:y++,isOpened:!1,scope:r.$new(),open:a.defer()};return t.iconClass=n.iconClass,n.optionsOverride&&(angular.extend(d,e(n.optionsOverride)),t.iconClass=n.optionsOverride.iconClass||t.iconClass),u(t,n,d),t.el=l(t.scope),t}function l(e){var n=angular.element("<div toast></div>"),r=t.get("$compile");return r(n)(e)}function c(){return d.maxOpened&&$.length<=d.maxOpened||!d.maxOpened}function f(){var e=d.preventDuplicates&&n.message===b,t=d.preventOpenDuplicates&&w[n.message];return e||t?!0:(b=n.message,w[n.message]=!0,!1)}var d=h();if(!f()){var m=s();if($.push(m),o())for(var x=$.slice(0,$.length-d.maxOpened),_=0,k=x.length;k>_;_++)p(x[_].toastId);return c()&&m.open.resolve(),m.open.promise.then(function(){g(d).then(function(){if(m.isOpened=!0,d.newestOnTop)e.enter(m.el,v).then(function(){m.scope.init()});else{var t=v[0].lastChild?angular.element(v[0].lastChild):null;e.enter(m.el,v,t).then(function(){m.scope.init()})}})}),m}}var v,y=0,$=[],b="",w={},x=a.defer(),_={clear:u,error:s,info:l,remove:p,success:c,warning:f};return _}angular.module("toastr",[]).factory("toastr",e),e.$inject=["$animate","$injector","$document","$rootScope","$sce","toastrConfig","$q"]}(),function(){"use strict";angular.module("toastr").constant("toastrConfig",{allowHtml:!1,autoDismiss:!1,closeButton:!1,closeHtml:"<button>&times;</button>",containerId:"toast-container",extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},maxOpened:0,messageClass:"toast-message",newestOnTop:!0,onHidden:null,onShown:null,onTap:null,positionClass:"toast-top-right",preventDuplicates:!1,preventOpenDuplicates:!1,progressBar:!1,tapToDismiss:!0,target:"body",templates:{toast:"directives/toast/toast.html",progressbar:"directives/progressbar/progressbar.html"},timeOut:5e3,titleClass:"toast-title",toastClass:"toast"})}(),function(){"use strict";function e(e){function t(e,t,n,r){function i(){var e=(u-(new Date).getTime())/a*100;t.css("width",e+"%")}var o,a,u;r.progressBar=e,e.start=function(e){o&&clearInterval(o),a=parseFloat(e),u=(new Date).getTime()+a,o=setInterval(i,10)},e.stop=function(){o&&clearInterval(o)},e.$on("$destroy",function(){clearInterval(o)})}return{replace:!0,require:"^toast",templateUrl:function(){return e.templates.progressbar},link:t}}angular.module("toastr").directive("progressBar",e),e.$inject=["toastrConfig"]}(),function(){"use strict";function e(){this.progressBar=null,this.startProgressBar=function(e){this.progressBar&&this.progressBar.start(e)},this.stopProgressBar=function(){this.progressBar&&this.progressBar.stop()}}angular.module("toastr").controller("ToastController",e)}(),function(){"use strict";function e(e,t,n,r){function i(n,i,o,a){function u(e){return a.startProgressBar(e),t(function(){a.stopProgressBar(),r.remove(n.toastId)},e,1)}function s(){n.progressBar=!1,a.stopProgressBar()}function l(){return n.options.closeHtml}var c;if(n.toastClass=n.options.toastClass,n.titleClass=n.options.titleClass,n.messageClass=n.options.messageClass,n.progressBar=n.options.progressBar,l()){var f=angular.element(n.options.closeHtml),p=e.get("$compile");f.addClass("toast-close-button"),f.attr("ng-click","close(true, $event)"),p(f)(n),i.prepend(f)}n.init=function(){n.options.timeOut&&(c=u(n.options.timeOut)),n.options.onShown&&n.options.onShown()},i.on("mouseenter",function(){s(),c&&t.cancel(c)}),n.tapToast=function(){angular.isFunction(n.options.onTap)&&n.options.onTap(),n.options.tapToDismiss&&n.close(!0)},n.close=function(e,t){t&&angular.isFunction(t.stopPropagation)&&t.stopPropagation(),r.remove(n.toastId,e)},i.on("mouseleave",function(){(0!==n.options.timeOut||0!==n.options.extendedTimeOut)&&(n.$apply(function(){n.progressBar=n.options.progressBar}),c=u(n.options.extendedTimeOut))})}return{replace:!0,templateUrl:function(){
  return n.templates.toast},controller:"ToastController",link:i}}angular.module("toastr").directive("toast",e),e.$inject=["$injector","$interval","toastrConfig","toastr"]}(),angular.module("toastr").run(["$templateCache",function(e){e.put("directives/progressbar/progressbar.html",'<div class="toast-progress"></div>\n'),e.put("directives/toast/toast.html",'<div class="{{toastClass}} {{toastType}}" ng-click="tapToast()">\n  <div ng-switch on="allowHtml">\n    <div ng-switch-default ng-if="title" class="{{titleClass}}" aria-label="{{title}}">{{title}}</div>\n    <div ng-switch-default class="{{messageClass}}" aria-label="{{message}}">{{message}}</div>\n    <div ng-switch-when="true" ng-if="title" class="{{titleClass}}" ng-bind-html="title"></div>\n    <div ng-switch-when="true" class="{{messageClass}}" ng-bind-html="message"></div>\n  </div>\n  <progress-bar ng-if="progressBar"></progress-bar>\n</div>\n')}]),
  //! license : MIT
  //! momentjs.com
  function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function e(){return jn.apply(null,arguments)}function t(e){jn=e}function n(e){return"[object Array]"===Object.prototype.toString.call(e)}function r(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function i(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,n,r){return De(e,t,n,r,!0).utc()}function s(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function l(e){return null==e._pf&&(e._pf=s()),e._pf}function c(e){if(null==e._isValid){var t=l(e);e._isValid=!(isNaN(e._d.getTime())||!(t.overflow<0)||t.empty||t.invalidMonth||t.invalidWeekday||t.nullInput||t.invalidFormat||t.userInvalidated),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function f(e){var t=u(NaN);return null!=e?a(l(t),e):l(t).userInvalidated=!0,t}function p(e,t){var n,r,i;if("undefined"!=typeof t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),"undefined"!=typeof t._i&&(e._i=t._i),"undefined"!=typeof t._f&&(e._f=t._f),"undefined"!=typeof t._l&&(e._l=t._l),"undefined"!=typeof t._strict&&(e._strict=t._strict),"undefined"!=typeof t._tzm&&(e._tzm=t._tzm),"undefined"!=typeof t._isUTC&&(e._isUTC=t._isUTC),"undefined"!=typeof t._offset&&(e._offset=t._offset),"undefined"!=typeof t._pf&&(e._pf=l(t)),"undefined"!=typeof t._locale&&(e._locale=t._locale),In.length>0)for(n in In)r=In[n],i=t[r],"undefined"!=typeof i&&(e[r]=i);return e}function d(t){p(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),Un===!1&&(Un=!0,e.updateOffset(this),Un=!1)}function h(e){return e instanceof d||null!=e&&null!=e._isAMomentObject}function g(e){return 0>e?Math.ceil(e):Math.floor(e)}function m(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=g(t)),n}function v(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;i>r;r++)(n&&e[r]!==t[r]||!n&&m(e[r])!==m(t[r]))&&a++;return a+o}function y(){}function $(e){return e?e.toLowerCase().replace("_","-"):e}function b(e){for(var t,n,r,i,o=0;o<e.length;){for(i=$(e[o]).split("-"),t=i.length,n=$(e[o+1]),n=n?n.split("-"):null;t>0;){if(r=w(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&v(i,n,!0)>=t-1)break;t--}o++}return null}function w(e){var t=null;if(!Rn[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Nn._abbr,require("./locale/"+e),x(t)}catch(n){}return Rn[e]}function x(e,t){var n;return e&&(n="undefined"==typeof t?k(e):_(e,t),n&&(Nn=n)),Nn._abbr}function _(e,t){return null!==t?(t.abbr=e,Rn[e]=Rn[e]||new y,Rn[e].set(t),x(e),Rn[e]):(delete Rn[e],null)}function k(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Nn;if(!n(e)){if(t=w(e))return t;e=[e]}return b(e)}function C(e,t){var n=e.toLowerCase();Fn[n]=Fn[n+"s"]=Fn[t]=e}function S(e){return"string"==typeof e?Fn[e]||Fn[e.toLowerCase()]:void 0}function T(e){var t,n,r={};for(n in e)o(e,n)&&(t=S(n),t&&(r[t]=e[n]));return r}function D(t,n){return function(r){return null!=r?(E(this,t,r),e.updateOffset(this,n),this):O(this,t)}}function O(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function E(e,t,n){return e._d["set"+(e._isUTC?"UTC":"")+t](n)}function A(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if(e=S(e),"function"==typeof this[e])return this[e](t);return this}function M(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function P(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(Hn[e]=i),t&&(Hn[t[0]]=function(){return M(i.apply(this,arguments),t[1],t[2])}),n&&(Hn[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function j(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function N(e){var t,n,r=e.match(zn);for(t=0,n=r.length;n>t;t++)Hn[r[t]]?r[t]=Hn[r[t]]:r[t]=j(r[t]);return function(i){var o="";for(t=0;n>t;t++)o+=r[t]instanceof Function?r[t].call(i,e):r[t];return o}}function I(e,t){return e.isValid()?(t=U(t,e.localeData()),Ln[t]=Ln[t]||N(t),Ln[t](e)):e.localeData().invalidDate()}function U(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(qn.lastIndex=0;r>=0&&qn.test(e);)e=e.replace(qn,n),qn.lastIndex=0,r-=1;return e}function R(e){return"function"==typeof e&&"[object Function]"===Object.prototype.toString.call(e)}function F(e,t,n){ir[e]=R(t)?t:function(e){return e&&n?n:t}}function z(e,t){return o(ir,e)?ir[e](t._strict,t._locale):new RegExp(q(e))}function q(e){return e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function L(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(r=function(e,n){n[t]=m(e)}),n=0;n<e.length;n++)or[e[n]]=r}function H(e,t){L(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function V(e,t,n){null!=t&&o(or,e)&&or[e](t,n._a,n,e)}function W(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function B(e){return this._months[e.month()]}function Y(e){return this._monthsShort[e.month()]}function G(e,t,n){var r,i,o;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++){if(i=u([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function K(e,t){var n;return"string"==typeof t&&(t=e.localeData().monthsParse(t),"number"!=typeof t)?e:(n=Math.min(e.date(),W(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e)}function Z(t){return null!=t?(K(this,t),e.updateOffset(this,!0),this):O(this,"Month")}function X(){return W(this.year(),this.month())}function J(e){var t,n=e._a;return n&&-2===l(e).overflow&&(t=n[ur]<0||n[ur]>11?ur:n[sr]<1||n[sr]>W(n[ar],n[ur])?sr:n[lr]<0||n[lr]>24||24===n[lr]&&(0!==n[cr]||0!==n[fr]||0!==n[pr])?lr:n[cr]<0||n[cr]>59?cr:n[fr]<0||n[fr]>59?fr:n[pr]<0||n[pr]>999?pr:-1,l(e)._overflowDayOfYear&&(ar>t||t>sr)&&(t=sr),l(e).overflow=t),e}function Q(t){e.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function ee(e,t){var n=!0;return a(function(){return n&&(Q(e+"\n"+(new Error).stack),n=!1),t.apply(this,arguments)},t)}function te(e,t){gr[e]||(Q(t),gr[e]=!0)}function ne(e){var t,n,r=e._i,i=mr.exec(r);if(i){for(l(e).iso=!0,t=0,n=vr.length;n>t;t++)if(vr[t][1].exec(r)){e._f=vr[t][0];break}for(t=0,n=yr.length;n>t;t++)if(yr[t][1].exec(r)){e._f+=(i[6]||" ")+yr[t][0];break}r.match(tr)&&(e._f+="Z"),we(e)}else e._isValid=!1}function re(t){var n=$r.exec(t._i);return null!==n?void(t._d=new Date(+n[1])):(ne(t),void(t._isValid===!1&&(delete t._isValid,e.createFromInputFallback(t))))}function ie(e,t,n,r,i,o,a){var u=new Date(e,t,n,r,i,o,a);return 1970>e&&u.setFullYear(e),u}function oe(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFullYear(e),t}function ae(e){return ue(e)?366:365}function ue(e){return e%4===0&&e%100!==0||e%400===0}function se(){return ue(this.year())}function le(e,t,n){var r,i=n-t,o=n-e.day();return o>i&&(o-=7),i-7>o&&(o+=7),r=Oe(e).add(o,"d"),{week:Math.ceil(r.dayOfYear()/7),year:r.year()}}function ce(e){return le(e,this._week.dow,this._week.doy).week}function fe(){return this._week.dow}function pe(){return this._week.doy}function de(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function he(e){var t=le(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function ge(e,t,n,r,i){var o,a=6+i-r,u=oe(e,0,1+a),s=u.getUTCDay();return i>s&&(s+=7),n=null!=n?1*n:i,o=1+a+7*(t-1)-s+n,{year:o>0?e:e-1,dayOfYear:o>0?o:ae(e-1)+o}}function me(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function ve(e,t,n){return null!=e?e:null!=t?t:n}function ye(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function $e(e){var t,n,r,i,o=[];if(!e._d){for(r=ye(e),e._w&&null==e._a[sr]&&null==e._a[ur]&&be(e),e._dayOfYear&&(i=ve(e._a[ar],r[ar]),e._dayOfYear>ae(i)&&(l(e)._overflowDayOfYear=!0),n=oe(i,0,e._dayOfYear),e._a[ur]=n.getUTCMonth(),e._a[sr]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;7>t;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[lr]&&0===e._a[cr]&&0===e._a[fr]&&0===e._a[pr]&&(e._nextDay=!0,e._a[lr]=0),e._d=(e._useUTC?oe:ie).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[lr]=24)}}function be(e){var t,n,r,i,o,a,u;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,a=4,n=ve(t.GG,e._a[ar],le(Oe(),1,4).year),r=ve(t.W,1),i=ve(t.E,1)):(o=e._locale._week.dow,a=e._locale._week.doy,n=ve(t.gg,e._a[ar],le(Oe(),o,a).year),r=ve(t.w,1),null!=t.d?(i=t.d,o>i&&++r):i=null!=t.e?t.e+o:o),u=ge(n,r,i,a,o),e._a[ar]=u.year,e._dayOfYear=u.dayOfYear}function we(t){if(t._f===e.ISO_8601)return void ne(t);t._a=[],l(t).empty=!0;var n,r,i,o,a,u=""+t._i,s=u.length,c=0;for(i=U(t._f,t._locale).match(zn)||[],n=0;n<i.length;n++)o=i[n],r=(u.match(z(o,t))||[])[0],r&&(a=u.substr(0,u.indexOf(r)),a.length>0&&l(t).unusedInput.push(a),u=u.slice(u.indexOf(r)+r.length),c+=r.length),Hn[o]?(r?l(t).empty=!1:l(t).unusedTokens.push(o),V(o,r,t)):t._strict&&!r&&l(t).unusedTokens.push(o);l(t).charsLeftOver=s-c,u.length>0&&l(t).unusedInput.push(u),l(t).bigHour===!0&&t._a[lr]<=12&&t._a[lr]>0&&(l(t).bigHour=void 0),t._a[lr]=xe(t._locale,t._a[lr],t._meridiem),$e(t),J(t)}function xe(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&12>t&&(t+=12),r||12!==t||(t=0),t):t}function _e(e){var t,n,r,i,o;if(0===e._f.length)return l(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=p({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],we(t),c(t)&&(o+=l(t).charsLeftOver,o+=10*l(t).unusedTokens.length,l(t).score=o,(null==r||r>o)&&(r=o,n=t));a(e,n||t)}function ke(e){if(!e._d){var t=T(e._i);e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],$e(e)}}function Ce(e){var t=new d(J(Se(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Se(e){var t=e._i,i=e._f;return e._locale=e._locale||k(e._l),null===t||void 0===i&&""===t?f({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),h(t)?new d(J(t)):(n(i)?_e(e):i?we(e):r(t)?e._d=t:Te(e),e))}function Te(t){var o=t._i;void 0===o?t._d=new Date:r(o)?t._d=new Date(+o):"string"==typeof o?re(t):n(o)?(t._a=i(o.slice(0),function(e){return parseInt(e,10)}),$e(t)):"object"==typeof o?ke(t):"number"==typeof o?t._d=new Date(o):e.createFromInputFallback(t)}function De(e,t,n,r,i){var o={};return"boolean"==typeof n&&(r=n,n=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,Ce(o)}function Oe(e,t,n,r){return De(e,t,n,r,!1)}function Ee(e,t){var r,i;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return Oe();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](r))&&(r=t[i]);return r}function Ae(){var e=[].slice.call(arguments,0);return Ee("isBefore",e)}function Me(){var e=[].slice.call(arguments,0);return Ee("isAfter",e)}function Pe(e){var t=T(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||0,a=t.day||0,u=t.hour||0,s=t.minute||0,l=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*l+6e4*s+36e5*u,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=k(),this._bubble()}function je(e){return e instanceof Pe}function Ne(e,t){P(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+M(~~(e/60),2)+t+M(~~e%60,2)})}function Ie(e){var t=(e||"").match(tr)||[],n=t[t.length-1]||[],r=(n+"").match(kr)||["-",0,0],i=+(60*r[1])+m(r[2]);return"+"===r[0]?i:-i}function Ue(t,n){var i,o;return n._isUTC?(i=n.clone(),o=(h(t)||r(t)?+t:+Oe(t))-+i,i._d.setTime(+i._d+o),e.updateOffset(i,!1),i):Oe(t).local()}function Re(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Fe(t,n){var r,i=this._offset||0;return null!=t?("string"==typeof t&&(t=Ie(t)),Math.abs(t)<16&&(t=60*t),!this._isUTC&&n&&(r=Re(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!n||this._changeInProgress?tt(this,Ze(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:Re(this)}function ze(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function qe(e){return this.utcOffset(0,e)}function Le(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Re(this),"m")),this}function He(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ie(this._i)),this}function Ve(e){return e=e?Oe(e).utcOffset():0,(this.utcOffset()-e)%60===0}function We(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Be(){if("undefined"!=typeof this._isDSTShifted)return this._isDSTShifted;var e={};if(p(e,this),e=Se(e),e._a){var t=e._isUTC?u(e._a):Oe(e._a);this._isDSTShifted=this.isValid()&&v(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ye(){return!this._isUTC}function Ge(){return this._isUTC}function Ke(){return this._isUTC&&0===this._offset}function Ze(e,t){var n,r,i,a=e,u=null;return je(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(a={},t?a[t]=e:a.milliseconds=e):(u=Cr.exec(e))?(n="-"===u[1]?-1:1,a={y:0,d:m(u[sr])*n,h:m(u[lr])*n,m:m(u[cr])*n,s:m(u[fr])*n,ms:m(u[pr])*n}):(u=Sr.exec(e))?(n="-"===u[1]?-1:1,a={y:Xe(u[2],n),M:Xe(u[3],n),d:Xe(u[4],n),h:Xe(u[5],n),m:Xe(u[6],n),s:Xe(u[7],n),w:Xe(u[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Qe(Oe(a.from),Oe(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new Pe(a),je(e)&&o(e,"_locale")&&(r._locale=e._locale),r}function Xe(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Je(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Qe(e,t){var n;return t=Ue(t,e),e.isBefore(t)?n=Je(e,t):(n=Je(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function et(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(te(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Ze(n,r),tt(this,i,e),this}}function tt(t,n,r,i){var o=n._milliseconds,a=n._days,u=n._months;i=null==i?!0:i,o&&t._d.setTime(+t._d+o*r),a&&E(t,"Date",O(t,"Date")+a*r),u&&K(t,O(t,"Month")+u*r),i&&e.updateOffset(t,a||u)}function nt(e,t){var n=e||Oe(),r=Ue(n,this).startOf("day"),i=this.diff(r,"days",!0),o=-6>i?"sameElse":-1>i?"lastWeek":0>i?"lastDay":1>i?"sameDay":2>i?"nextDay":7>i?"nextWeek":"sameElse";return this.format(t&&t[o]||this.localeData().calendar(o,this,Oe(n)))}function rt(){return new d(this)}function it(e,t){var n;return t=S("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=h(e)?e:Oe(e),+this>+e):(n=h(e)?+e:+Oe(e),n<+this.clone().startOf(t))}function ot(e,t){var n;return t=S("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=h(e)?e:Oe(e),+e>+this):(n=h(e)?+e:+Oe(e),+this.clone().endOf(t)<n)}function at(e,t,n){return this.isAfter(e,n)&&this.isBefore(t,n)}function ut(e,t){var n;return t=S(t||"millisecond"),"millisecond"===t?(e=h(e)?e:Oe(e),+this===+e):(n=+Oe(e),+this.clone().startOf(t)<=n&&n<=+this.clone().endOf(t))}function st(e,t,n){var r,i,o=Ue(e,this),a=6e4*(o.utcOffset()-this.utcOffset());return t=S(t),"year"===t||"month"===t||"quarter"===t?(i=lt(this,o),"quarter"===t?i/=3:"year"===t&&(i/=12)):(r=this-o,i="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-a)/864e5:"week"===t?(r-a)/6048e5:r),n?i:g(i)}function lt(e,t){var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return 0>t-o?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)}function ct(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ft(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():I(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):I(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function pt(t){var n=I(this,t||e.defaultFormat);return this.localeData().postformat(n)}function dt(e,t){return this.isValid()?Ze({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ht(e){return this.from(Oe(),e)}function gt(e,t){return this.isValid()?Ze({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mt(e){return this.to(Oe(),e)}function vt(e){var t;return void 0===e?this._locale._abbr:(t=k(e),null!=t&&(this._locale=t),this)}function yt(){return this._locale}function $t(e){switch(e=S(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function bt(e){return e=S(e),void 0===e||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")}function wt(){return+this._d-6e4*(this._offset||0)}function xt(){return Math.floor(+this/1e3)}function _t(){return this._offset?new Date(+this):this._d}function kt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ct(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function St(){return c(this)}function Tt(){return a({},l(this))}function Dt(){return l(this).overflow}function Ot(e,t){P(0,[e,e.length],0,t)}function Et(e,t,n){return le(Oe([e,11,31+t-n]),t,n).week}function At(e){var t=le(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")}function Mt(e){var t=le(this,1,4).year;return null==e?t:this.add(e-t,"y")}function Pt(){return Et(this.year(),1,4)}function jt(){var e=this.localeData()._week;return Et(this.year(),e.dow,e.doy)}function Nt(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function It(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ut(e){return this._weekdays[e.day()]}function Rt(e){return this._weekdaysShort[e.day()]}function Ft(e){return this._weekdaysMin[e.day()]}function zt(e){var t,n,r;for(this._weekdaysParse=this._weekdaysParse||[],t=0;7>t;t++)if(this._weekdaysParse[t]||(n=Oe([2e3,1]).day(t),r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t}function qt(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=It(e,this.localeData()),this.add(e-t,"d")):t}function Lt(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ht(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)}function Vt(e,t){P(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Wt(e,t){return t._meridiemParse}function Bt(e){return"p"===(e+"").toLowerCase().charAt(0)}function Yt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Gt(e,t){t[pr]=m(1e3*("0."+e))}function Kt(){return this._isUTC?"UTC":""}function Zt(){return this._isUTC?"Coordinated Universal Time":""}function Xt(e){return Oe(1e3*e)}function Jt(){return Oe.apply(null,arguments).parseZone()}function Qt(e,t,n){var r=this._calendar[e];return"function"==typeof r?r.call(t,n):r}function en(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function tn(){return this._invalidDate}function nn(e){return this._ordinal.replace("%d",e)}function rn(e){return e}function on(e,t,n,r){var i=this._relativeTime[n];return"function"==typeof i?i(e,t,n,r):i.replace(/%d/i,e)}function an(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)}function un(e){var t,n;for(n in e)t=e[n],"function"==typeof t?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function sn(e,t,n,r){var i=k(),o=u().set(r,t);return i[n](o,e)}function ln(e,t,n,r,i){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return sn(e,t,n,i);var o,a=[];for(o=0;r>o;o++)a[o]=sn(e,o,n,i);return a}function cn(e,t){return ln(e,t,"months",12,"month")}function fn(e,t){return ln(e,t,"monthsShort",12,"month")}function pn(e,t){return ln(e,t,"weekdays",7,"day")}function dn(e,t){return ln(e,t,"weekdaysShort",7,"day")}function hn(e,t){return ln(e,t,"weekdaysMin",7,"day")}function gn(){var e=this._data;return this._milliseconds=Kr(this._milliseconds),this._days=Kr(this._days),this._months=Kr(this._months),e.milliseconds=Kr(e.milliseconds),e.seconds=Kr(e.seconds),e.minutes=Kr(e.minutes),e.hours=Kr(e.hours),e.months=Kr(e.months),e.years=Kr(e.years),this}function mn(e,t,n,r){var i=Ze(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function vn(e,t){return mn(this,e,t,1)}function yn(e,t){return mn(this,e,t,-1)}function $n(e){return 0>e?Math.floor(e):Math.ceil(e)}function bn(){var e,t,n,r,i,o=this._milliseconds,a=this._days,u=this._months,s=this._data;return o>=0&&a>=0&&u>=0||0>=o&&0>=a&&0>=u||(o+=864e5*$n(xn(u)+a),a=0,u=0),s.milliseconds=o%1e3,e=g(o/1e3),s.seconds=e%60,t=g(e/60),s.minutes=t%60,n=g(t/60),s.hours=n%24,a+=g(n/24),i=g(wn(a)),u+=i,a-=$n(xn(i)),r=g(u/12),u%=12,s.days=a,s.months=u,s.years=r,this}function wn(e){return 4800*e/146097}function xn(e){return 146097*e/4800}function _n(e){var t,n,r=this._milliseconds;if(e=S(e),"month"===e||"year"===e)return t=this._days+r/864e5,n=this._months+wn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(xn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function kn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*m(this._months/12)}function Cn(e){return function(){return this.as(e)}}function Sn(e){return e=S(e),this[e+"s"]()}function Tn(e){return function(){return this._data[e]}}function Dn(){return g(this.days()/7)}function On(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function En(e,t,n){var r=Ze(e).abs(),i=fi(r.as("s")),o=fi(r.as("m")),a=fi(r.as("h")),u=fi(r.as("d")),s=fi(r.as("M")),l=fi(r.as("y")),c=i<pi.s&&["s",i]||1===o&&["m"]||o<pi.m&&["mm",o]||1===a&&["h"]||a<pi.h&&["hh",a]||1===u&&["d"]||u<pi.d&&["dd",u]||1===s&&["M"]||s<pi.M&&["MM",s]||1===l&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,On.apply(null,c)}function An(e,t){return void 0===pi[e]?!1:void 0===t?pi[e]:(pi[e]=t,!0)}function Mn(e){var t=this.localeData(),n=En(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Pn(){var e,t,n,r=di(this._milliseconds)/1e3,i=di(this._days),o=di(this._months);e=g(r/60),t=g(e/60),r%=60,e%=60,n=g(o/12),o%=12;var a=n,u=o,s=i,l=t,c=e,f=r,p=this.asSeconds();return p?(0>p?"-":"")+"P"+(a?a+"Y":"")+(u?u+"M":"")+(s?s+"D":"")+(l||c||f?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(f?f+"S":""):"P0D"}var jn,Nn,In=e.momentProperties=[],Un=!1,Rn={},Fn={},zn=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,qn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ln={},Hn={},Vn=/\d/,Wn=/\d\d/,Bn=/\d{3}/,Yn=/\d{4}/,Gn=/[+-]?\d{6}/,Kn=/\d\d?/,Zn=/\d{1,3}/,Xn=/\d{1,4}/,Jn=/[+-]?\d{1,6}/,Qn=/\d+/,er=/[+-]?\d+/,tr=/Z|[+-]\d\d:?\d\d/gi,nr=/[+-]?\d+(\.\d{1,3})?/,rr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ir={},or={},ar=0,ur=1,sr=2,lr=3,cr=4,fr=5,pr=6;P("M",["MM",2],"Mo",function(){return this.month()+1}),P("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),P("MMMM",0,0,function(e){return this.localeData().months(this,e)}),C("month","M"),F("M",Kn),F("MM",Kn,Wn),F("MMM",rr),F("MMMM",rr),L(["M","MM"],function(e,t){t[ur]=m(e)-1}),L(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ur]=i:l(n).invalidMonth=e});var dr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),hr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),gr={};e.suppressDeprecationWarnings=!1;var mr=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],yr=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],$r=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=ee("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),P(0,["YY",2],0,function(){return this.year()%100}),P(0,["YYYY",4],0,"year"),P(0,["YYYYY",5],0,"year"),P(0,["YYYYYY",6,!0],0,"year"),C("year","y"),F("Y",er),F("YY",Kn,Wn),F("YYYY",Xn,Yn),F("YYYYY",Jn,Gn),F("YYYYYY",Jn,Gn),L(["YYYYY","YYYYYY"],ar),L("YYYY",function(t,n){n[ar]=2===t.length?e.parseTwoDigitYear(t):m(t)}),L("YY",function(t,n){n[ar]=e.parseTwoDigitYear(t)}),e.parseTwoDigitYear=function(e){return m(e)+(m(e)>68?1900:2e3)};var br=D("FullYear",!1);P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),C("week","w"),C("isoWeek","W"),F("w",Kn),F("ww",Kn,Wn),F("W",Kn),F("WW",Kn,Wn),H(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=m(e)});var wr={dow:0,doy:6};P("DDD",["DDDD",3],"DDDo","dayOfYear"),C("dayOfYear","DDD"),F("DDD",Zn),F("DDDD",Bn),L(["DDD","DDDD"],function(e,t,n){n._dayOfYear=m(e)}),e.ISO_8601=function(){};var xr=ee("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=Oe.apply(null,arguments);return this>e?this:e}),_r=ee("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=Oe.apply(null,arguments);return e>this?this:e});Ne("Z",":"),Ne("ZZ",""),F("Z",tr),F("ZZ",tr),L(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ie(e)});var kr=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Cr=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Sr=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Ze.fn=Pe.prototype;var Tr=et(1,"add"),Dr=et(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Or=ee("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});P(0,["gg",2],0,function(){return this.weekYear()%100}),P(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ot("gggg","weekYear"),Ot("ggggg","weekYear"),Ot("GGGG","isoWeekYear"),Ot("GGGGG","isoWeekYear"),C("weekYear","gg"),C("isoWeekYear","GG"),F("G",er),F("g",er),F("GG",Kn,Wn),F("gg",Kn,Wn),F("GGGG",Xn,Yn),F("gggg",Xn,Yn),F("GGGGG",Jn,Gn),F("ggggg",Jn,Gn),H(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=m(e)}),H(["gg","GG"],function(t,n,r,i){n[i]=e.parseTwoDigitYear(t)}),P("Q",0,0,"quarter"),C("quarter","Q"),F("Q",Vn),L("Q",function(e,t){t[ur]=3*(m(e)-1)}),P("D",["DD",2],"Do","date"),C("date","D"),F("D",Kn),F("DD",Kn,Wn),F("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),L(["D","DD"],sr),L("Do",function(e,t){t[sr]=m(e.match(Kn)[0],10)});var Er=D("Date",!0);P("d",0,"do","day"),P("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),P("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),P("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),C("day","d"),C("weekday","e"),C("isoWeekday","E"),F("d",Kn),F("e",Kn),F("E",Kn),F("dd",rr),F("ddd",rr),F("dddd",rr),H(["dd","ddd","dddd"],function(e,t,n){var r=n._locale.weekdaysParse(e);null!=r?t.d=r:l(n).invalidWeekday=e}),H(["d","e","E"],function(e,t,n,r){t[r]=m(e)});var Ar="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Mr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pr="Su_Mo_Tu_We_Th_Fr_Sa".split("_");P("H",["HH",2],0,"hour"),P("h",["hh",2],0,function(){return this.hours()%12||12}),Vt("a",!0),Vt("A",!1),C("hour","h"),F("a",Wt),F("A",Wt),F("H",Kn),F("h",Kn),F("HH",Kn,Wn),F("hh",Kn,Wn),L(["H","HH"],lr),L(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),L(["h","hh"],function(e,t,n){t[lr]=m(e),l(n).bigHour=!0});var jr=/[ap]\.?m?\.?/i,Nr=D("Hours",!0);P("m",["mm",2],0,"minute"),C("minute","m"),F("m",Kn),F("mm",Kn,Wn),L(["m","mm"],cr);var Ir=D("Minutes",!1);P("s",["ss",2],0,"second"),C("second","s"),F("s",Kn),F("ss",Kn,Wn),L(["s","ss"],fr);var Ur=D("Seconds",!1);P("S",0,0,function(){return~~(this.millisecond()/100)}),P(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),P(0,["SSS",3],0,"millisecond"),P(0,["SSSS",4],0,function(){return 10*this.millisecond()}),P(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),P(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),P(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),P(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),P(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),C("millisecond","ms"),F("S",Zn,Vn),F("SS",Zn,Wn),F("SSS",Zn,Bn);var Rr;for(Rr="SSSS";Rr.length<=9;Rr+="S")F(Rr,Qn);for(Rr="S";Rr.length<=9;Rr+="S")L(Rr,Gt);var Fr=D("Milliseconds",!1);P("z",0,0,"zoneAbbr"),P("zz",0,0,"zoneName");var zr=d.prototype;zr.add=Tr,zr.calendar=nt,zr.clone=rt,zr.diff=st,zr.endOf=bt,zr.format=pt,zr.from=dt,zr.fromNow=ht,zr.to=gt,zr.toNow=mt,zr.get=A,zr.invalidAt=Dt,zr.isAfter=it,zr.isBefore=ot,zr.isBetween=at,zr.isSame=ut,zr.isValid=St,zr.lang=Or,zr.locale=vt,zr.localeData=yt,zr.max=_r,zr.min=xr,zr.parsingFlags=Tt,zr.set=A,zr.startOf=$t,zr.subtract=Dr,zr.toArray=kt,zr.toObject=Ct,zr.toDate=_t,zr.toISOString=ft,zr.toJSON=ft,zr.toString=ct,zr.unix=xt,zr.valueOf=wt,zr.year=br,zr.isLeapYear=se,zr.weekYear=At,zr.isoWeekYear=Mt,zr.quarter=zr.quarters=Nt,zr.month=Z,zr.daysInMonth=X,zr.week=zr.weeks=de,zr.isoWeek=zr.isoWeeks=he,zr.weeksInYear=jt,zr.isoWeeksInYear=Pt,zr.date=Er,zr.day=zr.days=qt,zr.weekday=Lt,zr.isoWeekday=Ht,zr.dayOfYear=me,zr.hour=zr.hours=Nr,zr.minute=zr.minutes=Ir,zr.second=zr.seconds=Ur,
  zr.millisecond=zr.milliseconds=Fr,zr.utcOffset=Fe,zr.utc=qe,zr.local=Le,zr.parseZone=He,zr.hasAlignedHourOffset=Ve,zr.isDST=We,zr.isDSTShifted=Be,zr.isLocal=Ye,zr.isUtcOffset=Ge,zr.isUtc=Ke,zr.isUTC=Ke,zr.zoneAbbr=Kt,zr.zoneName=Zt,zr.dates=ee("dates accessor is deprecated. Use date instead.",Er),zr.months=ee("months accessor is deprecated. Use month instead",Z),zr.years=ee("years accessor is deprecated. Use year instead",br),zr.zone=ee("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",ze);var qr=zr,Lr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Hr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Vr="Invalid date",Wr="%d",Br=/\d{1,2}/,Yr={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Gr=y.prototype;Gr._calendar=Lr,Gr.calendar=Qt,Gr._longDateFormat=Hr,Gr.longDateFormat=en,Gr._invalidDate=Vr,Gr.invalidDate=tn,Gr._ordinal=Wr,Gr.ordinal=nn,Gr._ordinalParse=Br,Gr.preparse=rn,Gr.postformat=rn,Gr._relativeTime=Yr,Gr.relativeTime=on,Gr.pastFuture=an,Gr.set=un,Gr.months=B,Gr._months=dr,Gr.monthsShort=Y,Gr._monthsShort=hr,Gr.monthsParse=G,Gr.week=ce,Gr._week=wr,Gr.firstDayOfYear=pe,Gr.firstDayOfWeek=fe,Gr.weekdays=Ut,Gr._weekdays=Ar,Gr.weekdaysMin=Ft,Gr._weekdaysMin=Pr,Gr.weekdaysShort=Rt,Gr._weekdaysShort=Mr,Gr.weekdaysParse=zt,Gr.isPM=Bt,Gr._meridiemParse=jr,Gr.meridiem=Yt,x("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===m(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),e.lang=ee("moment.lang is deprecated. Use moment.locale instead.",x),e.langData=ee("moment.langData is deprecated. Use moment.localeData instead.",k);var Kr=Math.abs,Zr=Cn("ms"),Xr=Cn("s"),Jr=Cn("m"),Qr=Cn("h"),ei=Cn("d"),ti=Cn("w"),ni=Cn("M"),ri=Cn("y"),ii=Tn("milliseconds"),oi=Tn("seconds"),ai=Tn("minutes"),ui=Tn("hours"),si=Tn("days"),li=Tn("months"),ci=Tn("years"),fi=Math.round,pi={s:45,m:45,h:22,d:26,M:11},di=Math.abs,hi=Pe.prototype;hi.abs=gn,hi.add=vn,hi.subtract=yn,hi.as=_n,hi.asMilliseconds=Zr,hi.asSeconds=Xr,hi.asMinutes=Jr,hi.asHours=Qr,hi.asDays=ei,hi.asWeeks=ti,hi.asMonths=ni,hi.asYears=ri,hi.valueOf=kn,hi._bubble=bn,hi.get=Sn,hi.milliseconds=ii,hi.seconds=oi,hi.minutes=ai,hi.hours=ui,hi.days=si,hi.weeks=Dn,hi.months=li,hi.years=ci,hi.humanize=Mn,hi.toISOString=Pn,hi.toString=Pn,hi.toJSON=Pn,hi.locale=vt,hi.localeData=yt,hi.toIsoString=ee("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pn),hi.lang=Or,P("X",0,0,"unix"),P("x",0,0,"valueOf"),F("x",er),F("X",nr),L("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),L("x",function(e,t,n){n._d=new Date(m(e))}),e.version="2.10.6",t(Oe),e.fn=qr,e.min=Ae,e.max=Me,e.utc=u,e.unix=Xt,e.months=cn,e.isDate=r,e.locale=x,e.invalid=f,e.duration=Ze,e.isMoment=h,e.weekdays=pn,e.parseZone=Jt,e.localeData=k,e.isDuration=je,e.monthsShort=fn,e.weekdaysMin=hn,e.defineLocale=_,e.weekdaysShort=dn,e.normalizeUnits=S,e.relativeTimeThreshold=An;var gi=e;return gi}),/*!
   * ngTagsInput v3.1.1
   * http://mbenford.github.io/ngTagsInput
   *
   * Copyright (c) 2013-2016 Michael Benford
   * License: MIT
   *
   * Generated at 2016-05-27 12:28:31 -0300
   */
  function(){"use strict";var e={backspace:8,tab:9,enter:13,escape:27,space:32,up:38,down:40,left:37,right:39,"delete":46,comma:188},t=9007199254740991,n=["text","email","url"],r=angular.module("ngTagsInput",[]);r.directive("tagsInput",["$timeout","$document","$window","$q","tagsInputConfig","tiUtil",function(r,i,o,a,u,s){function l(e,t,n,r){var i,o,u,l,c={};return i=function(t){return s.safeToString(t[e.displayProperty])},o=function(t,n){t[e.displayProperty]=n},u=function(t){var r=i(t),o=r&&r.length>=e.minLength&&r.length<=e.maxLength&&e.allowedTagsPattern.test(r)&&!s.findInObjectArray(c.items,t,e.keyProperty||e.displayProperty);return a.when(o&&n({$tag:t})).then(s.promisifyValue)},l=function(e){return a.when(r({$tag:e})).then(s.promisifyValue)},c.items=[],c.addText=function(e){var t={};return o(t,e),c.add(t)},c.add=function(n){var r=i(n);return e.replaceSpacesWithDashes&&(r=s.replaceSpacesWithDashes(r)),o(n,r),u(n).then(function(){c.items.push(n),t.trigger("tag-added",{$tag:n})})["catch"](function(){r&&t.trigger("invalid-tag",{$tag:n})})},c.remove=function(e){var n=c.items[e];return l(n).then(function(){return c.items.splice(e,1),c.clearSelection(),t.trigger("tag-removed",{$tag:n}),n})},c.select=function(e){0>e?e=c.items.length-1:e>=c.items.length&&(e=0),c.index=e,c.selected=c.items[e]},c.selectPrior=function(){c.select(--c.index)},c.selectNext=function(){c.select(++c.index)},c.removeSelected=function(){return c.remove(c.index)},c.clearSelection=function(){c.selected=null,c.index=-1},c.clearSelection(),c}function c(e){return-1!==n.indexOf(e)}return{restrict:"E",require:"ngModel",scope:{tags:"=ngModel",text:"=?",templateScope:"=?",tagClass:"&",onTagAdding:"&",onTagAdded:"&",onInvalidTag:"&",onTagRemoving:"&",onTagRemoved:"&",onTagClicked:"&"},replace:!1,transclude:!0,templateUrl:"ngTagsInput/tags-input.html",controller:["$scope","$attrs","$element",function(e,n,r){e.events=s.simplePubSub(),u.load("tagsInput",e,n,{template:[String,"ngTagsInput/tag-item.html"],type:[String,"text",c],placeholder:[String,"Add a tag"],tabindex:[Number,null],removeTagSymbol:[String,String.fromCharCode(215)],replaceSpacesWithDashes:[Boolean,!0],minLength:[Number,3],maxLength:[Number,t],addOnEnter:[Boolean,!0],addOnSpace:[Boolean,!1],addOnComma:[Boolean,!0],addOnBlur:[Boolean,!0],addOnPaste:[Boolean,!1],pasteSplitPattern:[RegExp,/,/],allowedTagsPattern:[RegExp,/.+/],enableEditingLastTag:[Boolean,!1],minTags:[Number,0],maxTags:[Number,t],displayProperty:[String,"text"],keyProperty:[String,""],allowLeftoverText:[Boolean,!1],addFromAutocompleteOnly:[Boolean,!1],spellcheck:[Boolean,!0]}),e.tagList=new l(e.options,e.events,s.handleUndefinedResult(e.onTagAdding,!0),s.handleUndefinedResult(e.onTagRemoving,!0)),this.registerAutocomplete=function(){r.find("input");return{addTag:function(t){return e.tagList.add(t)},getTags:function(){return e.tagList.items},getCurrentTagText:function(){return e.newTag.text()},getOptions:function(){return e.options},getTemplateScope:function(){return e.templateScope},on:function(t,n){return e.events.on(t,n,!0),this}}},this.registerTagItem=function(){return{getOptions:function(){return e.options},removeTag:function(t){e.disabled||e.tagList.remove(t)}}}}],link:function(t,n,a,u){var l,c,f=[e.enter,e.comma,e.space,e.backspace,e["delete"],e.left,e.right],p=t.tagList,d=t.events,h=t.options,g=n.find("input"),m=["minTags","maxTags","allowLeftoverText"];l=function(){u.$setValidity("maxTags",p.items.length<=h.maxTags),u.$setValidity("minTags",p.items.length>=h.minTags),u.$setValidity("leftoverText",t.hasFocus||h.allowLeftoverText?!0:!t.newTag.text())},c=function(){r(function(){g[0].focus()})},u.$isEmpty=function(e){return!e||!e.length},t.newTag={text:function(e){return angular.isDefined(e)?(t.text=e,void d.trigger("input-change",e)):t.text||""},invalid:null},t.track=function(e){return e[h.keyProperty||h.displayProperty]},t.getTagClass=function(e,n){var r=e===p.selected;return[t.tagClass({$tag:e,$index:n,$selected:r}),{selected:r}]},t.$watch("tags",function(e){e?(p.items=s.makeObjectArray(e,h.displayProperty),t.tags=p.items):p.items=[]}),t.$watch("tags.length",function(){l(),u.$validate()}),a.$observe("disabled",function(e){t.disabled=e}),t.eventHandlers={input:{keydown:function(e){d.trigger("input-keydown",e)},focus:function(){t.hasFocus||(t.hasFocus=!0,d.trigger("input-focus"))},blur:function(){r(function(){var e=i.prop("activeElement"),r=e===g[0],o=n[0].contains(e);(r||!o)&&(t.hasFocus=!1,d.trigger("input-blur"))})},paste:function(e){e.getTextData=function(){var t=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData;return t?t.getData("text/plain"):o.clipboardData.getData("Text")},d.trigger("input-paste",e)}},host:{click:function(){t.disabled||c()}},tag:{click:function(e){d.trigger("tag-clicked",{$tag:e})}}},d.on("tag-added",t.onTagAdded).on("invalid-tag",t.onInvalidTag).on("tag-removed",t.onTagRemoved).on("tag-clicked",t.onTagClicked).on("tag-added",function(){t.newTag.text("")}).on("tag-added tag-removed",function(){t.tags=p.items,u.$setDirty(),c()}).on("invalid-tag",function(){t.newTag.invalid=!0}).on("option-change",function(e){-1!==m.indexOf(e.name)&&l()}).on("input-change",function(){p.clearSelection(),t.newTag.invalid=null}).on("input-focus",function(){n.triggerHandler("focus"),u.$setValidity("leftoverText",!0)}).on("input-blur",function(){h.addOnBlur&&!h.addFromAutocompleteOnly&&p.addText(t.newTag.text()),n.triggerHandler("blur"),l()}).on("input-keydown",function(n){var r,i,o,a,u=n.keyCode,l={};s.isModifierOn(n)||-1===f.indexOf(u)||(l[e.enter]=h.addOnEnter,l[e.comma]=h.addOnComma,l[e.space]=h.addOnSpace,r=!h.addFromAutocompleteOnly&&l[u],i=(u===e.backspace||u===e["delete"])&&p.selected,a=u===e.backspace&&0===t.newTag.text().length&&h.enableEditingLastTag,o=(u===e.backspace||u===e.left||u===e.right)&&0===t.newTag.text().length&&!h.enableEditingLastTag,r?p.addText(t.newTag.text()):a?(p.selectPrior(),p.removeSelected().then(function(e){e&&t.newTag.text(e[h.displayProperty])})):i?p.removeSelected():o&&(u===e.left||u===e.backspace?p.selectPrior():u===e.right&&p.selectNext()),(r||o||i||a)&&n.preventDefault())}).on("input-paste",function(e){if(h.addOnPaste){var t=e.getTextData(),n=t.split(h.pasteSplitPattern);n.length>1&&(n.forEach(function(e){p.addText(e)}),e.preventDefault())}})}}}]),r.directive("tiTagItem",["tiUtil",function(e){return{restrict:"E",require:"^tagsInput",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(t,n,r,i){var o=i.registerTagItem(),a=o.getOptions();t.$$template=a.template,t.$$removeTagSymbol=a.removeTagSymbol,t.$getDisplayText=function(){return e.safeToString(t.data[a.displayProperty])},t.$removeTag=function(){o.removeTag(t.$index)},t.$watch("$parent.$index",function(e){t.$index=e})}}}]),r.directive("autoComplete",["$document","$timeout","$sce","$q","tagsInputConfig","tiUtil",function(t,n,r,i,o,a){function u(e,t,n){var r,o,u,s={};return u=function(){return t.tagsInput.keyProperty||t.tagsInput.displayProperty},r=function(e,n){return e.filter(function(e){return!a.findInObjectArray(n,e,u(),function(e,n){return t.tagsInput.replaceSpacesWithDashes&&(e=a.replaceSpacesWithDashes(e),n=a.replaceSpacesWithDashes(n)),a.defaultComparer(e,n)})})},s.reset=function(){o=null,s.items=[],s.visible=!1,s.index=-1,s.selected=null,s.query=null},s.show=function(){t.selectFirstMatch?s.select(0):s.selected=null,s.visible=!0},s.load=a.debounce(function(n,l){s.query=n;var c=i.when(e({$query:n}));o=c,c.then(function(e){c===o&&(e=a.makeObjectArray(e.data||e,u()),e=r(e,l),s.items=e.slice(0,t.maxResultsToShow),s.items.length>0?s.show():s.reset())})},t.debounceDelay),s.selectNext=function(){s.select(++s.index)},s.selectPrior=function(){s.select(--s.index)},s.select=function(e){0>e?e=s.items.length-1:e>=s.items.length&&(e=0),s.index=e,s.selected=s.items[e],n.trigger("suggestion-selected",e)},s.reset(),s}function s(e,t){var n=e.find("li").eq(t),r=n.parent(),i=n.prop("offsetTop"),o=n.prop("offsetHeight"),a=r.prop("clientHeight"),u=r.prop("scrollTop");u>i?r.prop("scrollTop",i):i+o>a+u&&r.prop("scrollTop",i+o-a)}return{restrict:"E",require:"^tagsInput",scope:{source:"&",matchClass:"&"},templateUrl:"ngTagsInput/auto-complete.html",controller:["$scope","$element","$attrs",function(e,t,n){e.events=a.simplePubSub(),o.load("autoComplete",e,n,{template:[String,"ngTagsInput/auto-complete-match.html"],debounceDelay:[Number,100],minLength:[Number,3],highlightMatchedText:[Boolean,!0],maxResultsToShow:[Number,10],loadOnDownArrow:[Boolean,!1],loadOnEmpty:[Boolean,!1],loadOnFocus:[Boolean,!1],selectFirstMatch:[Boolean,!0],displayProperty:[String,""]}),e.suggestionList=new u(e.source,e.options,e.events),this.registerAutocompleteMatch=function(){return{getOptions:function(){return e.options},getQuery:function(){return e.suggestionList.query}}}}],link:function(t,n,r,i){var o,u=[e.enter,e.tab,e.escape,e.up,e.down],l=t.suggestionList,c=i.registerAutocomplete(),f=t.options,p=t.events;f.tagsInput=c.getOptions(),o=function(e){return e&&e.length>=f.minLength||!e&&f.loadOnEmpty},t.templateScope=c.getTemplateScope(),t.addSuggestionByIndex=function(e){l.select(e),t.addSuggestion()},t.addSuggestion=function(){var e=!1;return l.selected&&(c.addTag(angular.copy(l.selected)),l.reset(),e=!0),e},t.track=function(e){return e[f.tagsInput.keyProperty||f.tagsInput.displayProperty]},t.getSuggestionClass=function(e,n){var r=e===l.selected;return[t.matchClass({$match:e,$index:n,$selected:r}),{selected:r}]},c.on("tag-added tag-removed invalid-tag input-blur",function(){l.reset()}).on("input-change",function(e){o(e)?l.load(e,c.getTags()):l.reset()}).on("input-focus",function(){var e=c.getCurrentTagText();f.loadOnFocus&&o(e)&&l.load(e,c.getTags())}).on("input-keydown",function(n){var r=n.keyCode,i=!1;if(!a.isModifierOn(n)&&-1!==u.indexOf(r))return l.visible?r===e.down?(l.selectNext(),i=!0):r===e.up?(l.selectPrior(),i=!0):r===e.escape?(l.reset(),i=!0):(r===e.enter||r===e.tab)&&(i=t.addSuggestion()):r===e.down&&t.options.loadOnDownArrow&&(l.load(c.getCurrentTagText(),c.getTags()),i=!0),i?(n.preventDefault(),n.stopImmediatePropagation(),!1):void 0}),p.on("suggestion-selected",function(e){s(n,e)})}}}]),r.directive("tiAutocompleteMatch",["$sce","tiUtil",function(e,t){return{restrict:"E",require:"^autoComplete",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(n,r,i,o){var a=o.registerAutocompleteMatch(),u=a.getOptions();n.$$template=u.template,n.$index=n.$parent.$index,n.$highlight=function(n){return u.highlightMatchedText&&(n=t.safeHighlight(n,a.getQuery())),e.trustAsHtml(n)},n.$getDisplayText=function(){return t.safeToString(n.data[u.displayProperty||u.tagsInput.displayProperty])}}}}]),r.directive("tiTranscludeAppend",function(){return function(e,t,n,r,i){i(function(e){t.append(e)})}}),r.directive("tiAutosize",["tagsInputConfig",function(e){return{restrict:"A",require:"ngModel",link:function(t,n,r,i){var o,a,u=e.getTextAutosizeThreshold();o=angular.element('<span class="input"></span>'),o.css("display","none").css("visibility","hidden").css("width","auto").css("white-space","pre"),n.parent().append(o),a=function(e){var t,i=e;return angular.isString(i)&&0===i.length&&(i=r.placeholder),i&&(o.text(i),o.css("display",""),t=o.prop("offsetWidth"),o.css("display","none")),n.css("width",t?t+u+"px":""),e},i.$parsers.unshift(a),i.$formatters.unshift(a),r.$observe("placeholder",function(e){i.$modelValue||a(e)})}}}]),r.directive("tiBindAttrs",function(){return function(e,t,n){e.$watch(n.tiBindAttrs,function(e){angular.forEach(e,function(e,t){n.$set(t,e)})},!0)}}),r.provider("tagsInputConfig",function(){var e={},t={},n=3;this.setDefaults=function(t,n){return e[t]=n,this},this.setActiveInterpolation=function(e,n){return t[e]=n,this},this.setTextAutosizeThreshold=function(e){return n=e,this},this.$get=["$interpolate",function(r){var i={};return i[String]=function(e){return e},i[Number]=function(e){return parseInt(e,10)},i[Boolean]=function(e){return"true"===e.toLowerCase()},i[RegExp]=function(e){return new RegExp(e)},{load:function(n,o,a,u){var s=function(){return!0};o.options={},angular.forEach(u,function(u,l){var c,f,p,d,h,g;c=u[0],f=u[1],p=u[2]||s,d=i[c],h=function(){var t=e[n]&&e[n][l];return angular.isDefined(t)?t:f},g=function(e){o.options[l]=e&&p(e)?d(e):h()},t[n]&&t[n][l]?a.$observe(l,function(e){g(e),o.events.trigger("option-change",{name:l,newValue:e})}):g(a[l]&&r(a[l])(o.$parent))})},getTextAutosizeThreshold:function(){return n}}}]}),r.factory("tiUtil",["$timeout","$q",function(e,t){var n={};return n.debounce=function(t,n){var r;return function(){var i=arguments;e.cancel(r),r=e(function(){t.apply(null,i)},n)}},n.makeObjectArray=function(e,t){if(!angular.isArray(e)||0===e.length||angular.isObject(e[0]))return e;var n=[];return e.forEach(function(e){var r={};r[t]=e,n.push(r)}),n},n.findInObjectArray=function(e,t,r,i){var o=null;return i=i||n.defaultComparer,e.some(function(e){return i(e[r],t[r])?(o=e,!0):void 0}),o},n.defaultComparer=function(e,t){return n.safeToString(e).toLowerCase()===n.safeToString(t).toLowerCase()},n.safeHighlight=function(e,t){function r(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}if(!t)return e;e=n.encodeHTML(e),t=n.encodeHTML(t);var i=new RegExp("&[^;]+;|"+r(t),"gi");return e.replace(i,function(e){return e.toLowerCase()===t.toLowerCase()?"<em>"+e+"</em>":e})},n.safeToString=function(e){return angular.isUndefined(e)||null==e?"":e.toString().trim()},n.encodeHTML=function(e){return n.safeToString(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},n.handleUndefinedResult=function(e,t){return function(){var n=e.apply(null,arguments);return angular.isUndefined(n)?t:n}},n.replaceSpacesWithDashes=function(e){return n.safeToString(e).replace(/\s/g,"-")},n.isModifierOn=function(e){return e.shiftKey||e.ctrlKey||e.altKey||e.metaKey},n.promisifyValue=function(e){return e=angular.isUndefined(e)?!0:e,t[e?"when":"reject"]()},n.simplePubSub=function(){var e={};return{on:function(t,n,r){return t.split(" ").forEach(function(t){e[t]||(e[t]=[]);var i=r?[].unshift:[].push;i.call(e[t],n)}),this},trigger:function(t,r){var i=e[t]||[];return i.every(function(e){return n.handleUndefinedResult(e,!0)(r)}),this}}},n}]),r.run(["$templateCache",function(e){e.put("ngTagsInput/tags-input.html",'<div class="host" tabindex="-1" ng-click="eventHandlers.host.click()" ti-transclude-append><div class="tags" ng-class="{focused: hasFocus}"><ul class="tag-list"><li class="tag-item" ng-repeat="tag in tagList.items track by track(tag)" ng-class="getTagClass(tag, $index)" ng-click="eventHandlers.tag.click(tag)"><ti-tag-item scope="templateScope" data="::tag"></ti-tag-item></li></ul><input class="input" autocomplete="off" ng-model="newTag.text" ng-model-options="{getterSetter: true}" ng-keydown="eventHandlers.input.keydown($event)" ng-focus="eventHandlers.input.focus($event)" ng-blur="eventHandlers.input.blur($event)" ng-paste="eventHandlers.input.paste($event)" ng-trim="false" ng-class="{\'invalid-tag\': newTag.invalid}" ng-disabled="disabled" ti-bind-attrs="{type: options.type, placeholder: options.placeholder, tabindex: options.tabindex, spellcheck: options.spellcheck}" ti-autosize></div></div>'),e.put("ngTagsInput/tag-item.html",'<span ng-bind="$getDisplayText()"></span> <a class="remove-button" ng-click="$removeTag()" ng-bind="::$$removeTagSymbol"></a>'),e.put("ngTagsInput/auto-complete.html",'<div class="autocomplete" ng-if="suggestionList.visible"><ul class="suggestion-list"><li class="suggestion-item" ng-repeat="item in suggestionList.items track by track(item)" ng-class="getSuggestionClass(item, $index)" ng-click="addSuggestionByIndex($index)" ng-mouseenter="suggestionList.select($index)"><ti-autocomplete-match scope="templateScope" data="::item"></ti-autocomplete-match></li></ul></div>'),e.put("ngTagsInput/auto-complete-match.html",'<span ng-bind-html="$highlight($getDisplayText())"></span>')}])}(),function(){function e(e,t){return e.set(t[0],t[1]),e}function t(e,t){return e.add(t),e}function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function i(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function o(e,t){for(var n=null==e?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function a(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function u(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function s(e,t){var n=null==e?0:e.length;return!!n&&$(e,t,0)>-1}function l(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function c(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function f(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function p(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function d(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function h(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function g(e){return e.split("")}function m(e){return e.match(Rt)||[]}function v(e,t,n){var r;return n(e,function(e,n,i){return t(e,n,i)?(r=n,!1):void 0}),r}function y(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function $(e,t,n){return t===t?B(e,t,n):y(e,w,n)}function b(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function w(e){return e!==e}function x(e,t){var n=null==e?0:e.length;return n?T(e,t)/n:Me}function _(e){return function(t){return null==t?Q:t[e]}}function k(e){return function(t){return null==e?Q:e[t]}}function C(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function S(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function T(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==Q&&(n=n===Q?o:n+o)}return n}function D(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function O(e,t){return c(t,function(t){return[t,e[t]]})}function E(e){return function(t){return e(t)}}function A(e,t){return c(t,function(t){return e[t]})}function M(e,t){return e.has(t)}function P(e,t){for(var n=-1,r=e.length;++n<r&&$(t,e[n],0)>-1;);return n}function j(e,t){for(var n=e.length;n--&&$(t,e[n],0)>-1;);return n}function N(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function I(e){return"\\"+Xn[e]}function U(e,t){return null==e?Q:e[t]}function R(e){return Ln.test(e)}function F(e){return Hn.test(e)}function z(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function q(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function L(e,t){return function(n){return e(t(n))}}function H(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];(a===t||a===ae)&&(e[n]=ae,o[i++]=n)}return o}function V(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function W(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function B(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Y(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function G(e){return R(e)?Z(e):hr(e)}function K(e){return R(e)?X(e):g(e)}function Z(e){for(var t=zn.lastIndex=0;zn.test(e);)++t;return t}function X(e){return e.match(zn)||[]}function J(e){return e.match(qn)||[]}var Q,ee="4.17.4",te=200,ne="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",re="Expected a function",ie="__lodash_hash_undefined__",oe=500,ae="__lodash_placeholder__",ue=1,se=2,le=4,ce=1,fe=2,pe=1,de=2,he=4,ge=8,me=16,ve=32,ye=64,$e=128,be=256,we=512,xe=30,_e="...",ke=800,Ce=16,Se=1,Te=2,De=3,Oe=1/0,Ee=9007199254740991,Ae=1.7976931348623157e308,Me=NaN,Pe=4294967295,je=Pe-1,Ne=Pe>>>1,Ie=[["ary",$e],["bind",pe],["bindKey",de],["curry",ge],["curryRight",me],["flip",we],["partial",ve],["partialRight",ye],["rearg",be]],Ue="[object Arguments]",Re="[object Array]",Fe="[object AsyncFunction]",ze="[object Boolean]",qe="[object Date]",Le="[object DOMException]",He="[object Error]",Ve="[object Function]",We="[object GeneratorFunction]",Be="[object Map]",Ye="[object Number]",Ge="[object Null]",Ke="[object Object]",Ze="[object Promise]",Xe="[object Proxy]",Je="[object RegExp]",Qe="[object Set]",et="[object String]",tt="[object Symbol]",nt="[object Undefined]",rt="[object WeakMap]",it="[object WeakSet]",ot="[object ArrayBuffer]",at="[object DataView]",ut="[object Float32Array]",st="[object Float64Array]",lt="[object Int8Array]",ct="[object Int16Array]",ft="[object Int32Array]",pt="[object Uint8Array]",dt="[object Uint8ClampedArray]",ht="[object Uint16Array]",gt="[object Uint32Array]",mt=/\b__p \+= '';/g,vt=/\b(__p \+=) '' \+/g,yt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$t=/&(?:amp|lt|gt|quot|#39);/g,bt=/[&<>"']/g,wt=RegExp($t.source),xt=RegExp(bt.source),_t=/<%-([\s\S]+?)%>/g,kt=/<%([\s\S]+?)%>/g,Ct=/<%=([\s\S]+?)%>/g,St=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tt=/^\w*$/,Dt=/^\./,Ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Et=/[\\^$.*+?()[\]{}|]/g,At=RegExp(Et.source),Mt=/^\s+|\s+$/g,Pt=/^\s+/,jt=/\s+$/,Nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,It=/\{\n\/\* \[wrapped with (.+)\] \*/,Ut=/,? & /,Rt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ft=/\\(\\)?/g,zt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qt=/\w*$/,Lt=/^[-+]0x[0-9a-f]+$/i,Ht=/^0b[01]+$/i,Vt=/^\[object .+?Constructor\]$/,Wt=/^0o[0-7]+$/i,Bt=/^(?:0|[1-9]\d*)$/,Yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gt=/($^)/,Kt=/['\n\r\u2028\u2029\\]/g,Zt="\\ud800-\\udfff",Xt="\\u0300-\\u036f",Jt="\\ufe20-\\ufe2f",Qt="\\u20d0-\\u20ff",en=Xt+Jt+Qt,tn="\\u2700-\\u27bf",nn="a-z\\xdf-\\xf6\\xf8-\\xff",rn="\\xac\\xb1\\xd7\\xf7",on="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",an="\\u2000-\\u206f",un=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",sn="A-Z\\xc0-\\xd6\\xd8-\\xde",ln="\\ufe0e\\ufe0f",cn=rn+on+an+un,fn="['’]",pn="["+Zt+"]",dn="["+cn+"]",hn="["+en+"]",gn="\\d+",mn="["+tn+"]",vn="["+nn+"]",yn="[^"+Zt+cn+gn+tn+nn+sn+"]",$n="\\ud83c[\\udffb-\\udfff]",bn="(?:"+hn+"|"+$n+")",wn="[^"+Zt+"]",xn="(?:\\ud83c[\\udde6-\\uddff]){2}",_n="[\\ud800-\\udbff][\\udc00-\\udfff]",kn="["+sn+"]",Cn="\\u200d",Sn="(?:"+vn+"|"+yn+")",Tn="(?:"+kn+"|"+yn+")",Dn="(?:"+fn+"(?:d|ll|m|re|s|t|ve))?",On="(?:"+fn+"(?:D|LL|M|RE|S|T|VE))?",En=bn+"?",An="["+ln+"]?",Mn="(?:"+Cn+"(?:"+[wn,xn,_n].join("|")+")"+An+En+")*",Pn="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",jn="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",Nn=An+En+Mn,In="(?:"+[mn,xn,_n].join("|")+")"+Nn,Un="(?:"+[wn+hn+"?",hn,xn,_n,pn].join("|")+")",Rn=RegExp(fn,"g"),Fn=RegExp(hn,"g"),zn=RegExp($n+"(?="+$n+")|"+Un+Nn,"g"),qn=RegExp([kn+"?"+vn+"+"+Dn+"(?="+[dn,kn,"$"].join("|")+")",Tn+"+"+On+"(?="+[dn,kn+Sn,"$"].join("|")+")",kn+"?"+Sn+"+"+Dn,kn+"+"+On,jn,Pn,gn,In].join("|"),"g"),Ln=RegExp("["+Cn+Zt+en+ln+"]"),Hn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Wn=-1,Bn={};Bn[ut]=Bn[st]=Bn[lt]=Bn[ct]=Bn[ft]=Bn[pt]=Bn[dt]=Bn[ht]=Bn[gt]=!0,Bn[Ue]=Bn[Re]=Bn[ot]=Bn[ze]=Bn[at]=Bn[qe]=Bn[He]=Bn[Ve]=Bn[Be]=Bn[Ye]=Bn[Ke]=Bn[Je]=Bn[Qe]=Bn[et]=Bn[rt]=!1;var Yn={};Yn[Ue]=Yn[Re]=Yn[ot]=Yn[at]=Yn[ze]=Yn[qe]=Yn[ut]=Yn[st]=Yn[lt]=Yn[ct]=Yn[ft]=Yn[Be]=Yn[Ye]=Yn[Ke]=Yn[Je]=Yn[Qe]=Yn[et]=Yn[tt]=Yn[pt]=Yn[dt]=Yn[ht]=Yn[gt]=!0,Yn[He]=Yn[Ve]=Yn[rt]=!1;var Gn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"},Kn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Zn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Xn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Jn=parseFloat,Qn=parseInt,er="object"==typeof global&&global&&global.Object===Object&&global,tr="object"==typeof self&&self&&self.Object===Object&&self,nr=er||tr||Function("return this")(),rr="object"==typeof exports&&exports&&!exports.nodeType&&exports,ir=rr&&"object"==typeof module&&module&&!module.nodeType&&module,or=ir&&ir.exports===rr,ar=or&&er.process,ur=function(){try{return ar&&ar.binding&&ar.binding("util")}catch(e){}}(),sr=ur&&ur.isArrayBuffer,lr=ur&&ur.isDate,cr=ur&&ur.isMap,fr=ur&&ur.isRegExp,pr=ur&&ur.isSet,dr=ur&&ur.isTypedArray,hr=_("length"),gr=k(Gn),mr=k(Kn),vr=k(Zn),yr=function br(g){function k(e){if(ls(e)&&!wp(e)&&!(e instanceof X)){if(e instanceof Z)return e;if(bc.call(e,"__wrapped__"))return aa(e)}return new Z(e)}function B(){}function Z(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=Q}function X(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Pe,this.__views__=[]}function Rt(){var e=new X(this.__wrapped__);return e.__actions__=zi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=zi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=zi(this.__views__),e}function Zt(){if(this.__filtered__){var e=new X(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Xt(){var e=this.__wrapped__.value(),t=this.__dir__,n=wp(e),r=0>t,i=n?e.length:0,o=Eo(0,i,this.__views__),a=o.start,u=o.end,s=u-a,l=r?u:a-1,c=this.__iteratees__,f=c.length,p=0,d=Zc(s,this.__takeCount__);if(!n||!r&&i==s&&d==s)return wi(e,this.__actions__);var h=[];e:for(;s--&&d>p;){l+=t;for(var g=-1,m=e[l];++g<f;){var v=c[g],y=v.iteratee,$=v.type,b=y(m);if($==Te)m=b;else if(!b){if($==Se)continue e;break e}}h[p++]=m}return h}function Jt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qt(){this.__data__=uf?uf(null):{},this.size=0}function en(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function tn(e){var t=this.__data__;if(uf){var n=t[e];return n===ie?Q:n}return bc.call(t,e)?t[e]:Q}function nn(e){var t=this.__data__;return uf?t[e]!==Q:bc.call(t,e)}function rn(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=uf&&t===Q?ie:t,this}function on(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function an(){this.__data__=[],this.size=0}function un(e){var t=this.__data__,n=Mn(t,e);if(0>n)return!1;var r=t.length-1;return n==r?t.pop():jc.call(t,n,1),--this.size,!0}function sn(e){var t=this.__data__,n=Mn(t,e);return 0>n?Q:t[n][1]}function ln(e){return Mn(this.__data__,e)>-1}function cn(e,t){var n=this.__data__,r=Mn(n,e);return 0>r?(++this.size,n.push([e,t])):n[r][1]=t,this}function fn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pn(){this.size=0,this.__data__={hash:new Jt,map:new(nf||on),string:new Jt}}function dn(e){var t=So(this,e)["delete"](e);return this.size-=t?1:0,t}function hn(e){return So(this,e).get(e)}function gn(e){return So(this,e).has(e)}function mn(e,t){var n=So(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function vn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new fn;++t<n;)this.add(e[t])}function yn(e){return this.__data__.set(e,ie),this}function $n(e){return this.__data__.has(e)}function bn(e){var t=this.__data__=new on(e);this.size=t.size}function wn(){this.__data__=new on,this.size=0}function xn(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function _n(e){return this.__data__.get(e)}function kn(e){return this.__data__.has(e)}function Cn(e,t){var n=this.__data__;if(n instanceof on){var r=n.__data__;if(!nf||r.length<te-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new fn(r)}return n.set(e,t),this.size=n.size,this}function Sn(e,t){var n=wp(e),r=!n&&bp(e),i=!n&&!r&&_p(e),o=!n&&!r&&!i&&Dp(e),a=n||r||i||o,u=a?D(e.length,dc):[],s=u.length;for(var l in e)!t&&!bc.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ro(l,s))||u.push(l);return u}function Tn(e){var t=e.length;return t?e[ni(0,t-1)]:Q}function Dn(e,t){return na(zi(e),zn(t,0,e.length))}function On(e){return na(zi(e))}function En(e,t,n){(n!==Q&&!Ku(e[t],n)||n===Q&&!(t in e))&&In(e,t,n)}function An(e,t,n){var r=e[t];bc.call(e,t)&&Ku(r,n)&&(n!==Q||t in e)||In(e,t,n)}function Mn(e,t){for(var n=e.length;n--;)if(Ku(e[n][0],t))return n;return-1}function Pn(e,t,n,r){return $f(e,function(e,i,o){t(r,e,n(e),o)}),r}function jn(e,t){return e&&qi(t,Vs(t),e)}function Nn(e,t){return e&&qi(t,Ws(t),e)}function In(e,t,n){"__proto__"==t&&Rc?Rc(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Un(e,t){for(var n=-1,r=t.length,i=ac(r),o=null==e;++n<r;)i[n]=o?Q:qs(e,t[n]);return i}function zn(e,t,n){return e===e&&(n!==Q&&(e=n>=e?e:n),t!==Q&&(e=e>=t?e:t)),e}function qn(e,t,n,r,o,a){var u,s=t&ue,l=t&se,c=t&le;if(n&&(u=o?n(e,r,o,a):n(e)),u!==Q)return u;if(!ss(e))return e;var f=wp(e);if(f){if(u=Po(e),!s)return zi(e,u)}else{var p=Af(e),d=p==Ve||p==We;if(_p(e))return Di(e,s);if(p==Ke||p==Ue||d&&!o){if(u=l||d?{}:jo(e),!s)return l?Hi(e,Nn(u,e)):Li(e,jn(u,e))}else{if(!Yn[p])return o?e:{};u=No(e,p,qn,s)}}a||(a=new bn);var h=a.get(e);if(h)return h;a.set(e,u);var g=c?l?xo:wo:l?Ws:Vs,m=f?Q:g(e);return i(m||e,function(r,i){m&&(i=r,r=e[i]),An(u,i,qn(r,t,n,i,e,a))}),u}function Ln(e){var t=Vs(e);return function(n){return Hn(n,e,t)}}function Hn(e,t,n){var r=n.length;if(null==e)return!r;for(e=fc(e);r--;){var i=n[r],o=t[i],a=e[i];if(a===Q&&!(i in e)||!o(a))return!1}return!0}function Gn(e,t,n){if("function"!=typeof e)throw new hc(re);return jf(function(){e.apply(Q,n)},t)}function Kn(e,t,n,r){var i=-1,o=s,a=!0,u=e.length,f=[],p=t.length;if(!u)return f;n&&(t=c(t,E(n))),r?(o=l,a=!1):t.length>=te&&(o=M,a=!1,t=new vn(t));e:for(;++i<u;){var d=e[i],h=null==n?d:n(d);if(d=r||0!==d?d:0,a&&h===h){for(var g=p;g--;)if(t[g]===h)continue e;f.push(d)}else o(t,h,r)||f.push(d)}return f}function Zn(e,t){var n=!0;return $f(e,function(e,r,i){return n=!!t(e,r,i)}),n}function Xn(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(u===Q?a===a&&!bs(a):n(a,u)))var u=a,s=o;
  }return s}function er(e,t,n,r){var i=e.length;for(n=Ss(n),0>n&&(n=-n>i?0:i+n),r=r===Q||r>i?i:Ss(r),0>r&&(r+=i),r=n>r?0:Ts(r);r>n;)e[n++]=t;return e}function tr(e,t){var n=[];return $f(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function rr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Uo),i||(i=[]);++o<a;){var u=e[o];t>0&&n(u)?t>1?rr(u,t-1,n,r,i):f(i,u):r||(i[i.length]=u)}return i}function ir(e,t){return e&&wf(e,t,Vs)}function ar(e,t){return e&&xf(e,t,Vs)}function ur(e,t){return u(t,function(t){return os(e[t])})}function hr(e,t){t=Si(t,e);for(var n=0,r=t.length;null!=e&&r>n;)e=e[ra(t[n++])];return n&&n==r?e:Q}function yr(e,t,n){var r=t(e);return wp(e)?r:f(r,n(e))}function wr(e){return null==e?e===Q?nt:Ge:Uc&&Uc in fc(e)?Oo(e):Zo(e)}function xr(e,t){return e>t}function _r(e,t){return null!=e&&bc.call(e,t)}function kr(e,t){return null!=e&&t in fc(e)}function Cr(e,t,n){return e>=Zc(t,n)&&e<Kc(t,n)}function Sr(e,t,n){for(var r=n?l:s,i=e[0].length,o=e.length,a=o,u=ac(o),f=1/0,p=[];a--;){var d=e[a];a&&t&&(d=c(d,E(t))),f=Zc(d.length,f),u[a]=!n&&(t||i>=120&&d.length>=120)?new vn(a&&d):Q}d=e[0];var h=-1,g=u[0];e:for(;++h<i&&p.length<f;){var m=d[h],v=t?t(m):m;if(m=n||0!==m?m:0,!(g?M(g,v):r(p,v,n))){for(a=o;--a;){var y=u[a];if(!(y?M(y,v):r(e[a],v,n)))continue e}g&&g.push(v),p.push(m)}}return p}function Tr(e,t,n,r){return ir(e,function(e,i,o){t(r,n(e),i,o)}),r}function Dr(e,t,r){t=Si(t,e),e=Jo(e,t);var i=null==e?e:e[ra(Ca(t))];return null==i?Q:n(i,e,r)}function Or(e){return ls(e)&&wr(e)==Ue}function Er(e){return ls(e)&&wr(e)==ot}function Ar(e){return ls(e)&&wr(e)==qe}function Mr(e,t,n,r,i){return e===t?!0:null==e||null==t||!ls(e)&&!ls(t)?e!==e&&t!==t:Pr(e,t,n,r,Mr,i)}function Pr(e,t,n,r,i,o){var a=wp(e),u=wp(t),s=a?Re:Af(e),l=u?Re:Af(t);s=s==Ue?Ke:s,l=l==Ue?Ke:l;var c=s==Ke,f=l==Ke,p=s==l;if(p&&_p(e)){if(!_p(t))return!1;a=!0,c=!1}if(p&&!c)return o||(o=new bn),a||Dp(e)?vo(e,t,n,r,i,o):yo(e,t,s,n,r,i,o);if(!(n&ce)){var d=c&&bc.call(e,"__wrapped__"),h=f&&bc.call(t,"__wrapped__");if(d||h){var g=d?e.value():e,m=h?t.value():t;return o||(o=new bn),i(g,m,n,r,o)}}return p?(o||(o=new bn),$o(e,t,n,r,i,o)):!1}function jr(e){return ls(e)&&Af(e)==Be}function Nr(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=fc(e);i--;){var u=n[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<o;){u=n[i];var s=u[0],l=e[s],c=u[1];if(a&&u[2]){if(l===Q&&!(s in e))return!1}else{var f=new bn;if(r)var p=r(l,c,s,e,t,f);if(!(p===Q?Mr(c,l,ce|fe,r,f):p))return!1}}return!0}function Ir(e){if(!ss(e)||Ho(e))return!1;var t=os(e)?Sc:Vt;return t.test(ia(e))}function Ur(e){return ls(e)&&wr(e)==Je}function Rr(e){return ls(e)&&Af(e)==Qe}function Fr(e){return ls(e)&&us(e.length)&&!!Bn[wr(e)]}function zr(e){return"function"==typeof e?e:null==e?jl:"object"==typeof e?wp(e)?Br(e[0],e[1]):Wr(e):Ll(e)}function qr(e){if(!Vo(e))return Gc(e);var t=[];for(var n in fc(e))bc.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!ss(e))return Ko(e);var t=Vo(e),n=[];for(var r in e)("constructor"!=r||!t&&bc.call(e,r))&&n.push(r);return n}function Hr(e,t){return t>e}function Vr(e,t){var n=-1,r=Zu(e)?ac(e.length):[];return $f(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function Wr(e){var t=To(e);return 1==t.length&&t[0][2]?Bo(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function Br(e,t){return zo(e)&&Wo(t)?Bo(ra(e),t):function(n){var r=qs(n,e);return r===Q&&r===t?Hs(n,e):Mr(t,r,ce|fe)}}function Yr(e,t,n,r,i){e!==t&&wf(t,function(o,a){if(ss(o))i||(i=new bn),Gr(e,t,a,n,Yr,r,i);else{var u=r?r(e[a],o,a+"",e,t,i):Q;u===Q&&(u=o),En(e,a,u)}},Ws)}function Gr(e,t,n,r,i,o,a){var u=e[n],s=t[n],l=a.get(s);if(l)return void En(e,n,l);var c=o?o(u,s,n+"",e,t,a):Q,f=c===Q;if(f){var p=wp(s),d=!p&&_p(s),h=!p&&!d&&Dp(s);c=s,p||d||h?wp(u)?c=u:Xu(u)?c=zi(u):d?(f=!1,c=Di(s,!0)):h?(f=!1,c=Ni(s,!0)):c=[]:vs(s)||bp(s)?(c=u,bp(u)?c=Os(u):(!ss(u)||r&&os(u))&&(c=jo(s))):f=!1}f&&(a.set(s,c),i(c,s,r,o,a),a["delete"](s)),En(e,n,c)}function Kr(e,t){var n=e.length;if(n)return t+=0>t?n:0,Ro(t,n)?e[t]:Q}function Zr(e,t,n){var r=-1;t=c(t.length?t:[jl],E(Co()));var i=Vr(e,function(e,n,i){var o=c(t,function(t){return t(e)});return{criteria:o,index:++r,value:e}});return S(i,function(e,t){return Ui(e,t,n)})}function Xr(e,t){return Jr(e,t,function(t,n){return Hs(e,n)})}function Jr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],u=hr(e,a);n(u,a)&&si(o,Si(a,e),u)}return o}function Qr(e){return function(t){return hr(t,e)}}function ei(e,t,n,r){var i=r?b:$,o=-1,a=t.length,u=e;for(e===t&&(t=zi(t)),n&&(u=c(e,E(n)));++o<a;)for(var s=0,l=t[o],f=n?n(l):l;(s=i(u,f,s,r))>-1;)u!==e&&jc.call(u,s,1),jc.call(e,s,1);return e}function ti(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Ro(i)?jc.call(e,i,1):yi(e,i)}}return e}function ni(e,t){return e+Hc(Qc()*(t-e+1))}function ri(e,t,n,r){for(var i=-1,o=Kc(Lc((t-e)/(n||1)),0),a=ac(o);o--;)a[r?o:++i]=e,e+=n;return a}function ii(e,t){var n="";if(!e||1>t||t>Ee)return n;do t%2&&(n+=e),t=Hc(t/2),t&&(e+=e);while(t);return n}function oi(e,t){return Nf(Xo(e,t,jl),e+"")}function ai(e){return Tn(rl(e))}function ui(e,t){var n=rl(e);return na(n,zn(t,0,n.length))}function si(e,t,n,r){if(!ss(e))return e;t=Si(t,e);for(var i=-1,o=t.length,a=o-1,u=e;null!=u&&++i<o;){var s=ra(t[i]),l=n;if(i!=a){var c=u[s];l=r?r(c,s,u):Q,l===Q&&(l=ss(c)?c:Ro(t[i+1])?[]:{})}An(u,s,l),u=u[s]}return e}function li(e){return na(rl(e))}function ci(e,t,n){var r=-1,i=e.length;0>t&&(t=-t>i?0:i+t),n=n>i?i:n,0>n&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=ac(i);++r<i;)o[r]=e[r+t];return o}function fi(e,t){var n;return $f(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function pi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&Ne>=i){for(;i>r;){var o=r+i>>>1,a=e[o];null!==a&&!bs(a)&&(n?t>=a:t>a)?r=o+1:i=o}return i}return di(e,t,jl,n)}function di(e,t,n,r){t=n(t);for(var i=0,o=null==e?0:e.length,a=t!==t,u=null===t,s=bs(t),l=t===Q;o>i;){var c=Hc((i+o)/2),f=n(e[c]),p=f!==Q,d=null===f,h=f===f,g=bs(f);if(a)var m=r||h;else m=l?h&&(r||p):u?h&&p&&(r||!d):s?h&&p&&!d&&(r||!g):d||g?!1:r?t>=f:t>f;m?i=c+1:o=c}return Zc(o,je)}function hi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!Ku(u,s)){var s=u;o[i++]=0===a?0:a}}return o}function gi(e){return"number"==typeof e?e:bs(e)?Me:+e}function mi(e){if("string"==typeof e)return e;if(wp(e))return c(e,mi)+"";if(bs(e))return vf?vf.call(e):"";var t=e+"";return"0"==t&&1/e==-Oe?"-0":t}function vi(e,t,n){var r=-1,i=s,o=e.length,a=!0,u=[],c=u;if(n)a=!1,i=l;else if(o>=te){var f=t?null:Tf(e);if(f)return V(f);a=!1,i=M,c=new vn}else c=t?[]:u;e:for(;++r<o;){var p=e[r],d=t?t(p):p;if(p=n||0!==p?p:0,a&&d===d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),u.push(p)}else i(c,d,n)||(c!==u&&c.push(d),u.push(p))}return u}function yi(e,t){return t=Si(t,e),e=Jo(e,t),null==e||delete e[ra(Ca(t))]}function $i(e,t,n,r){return si(e,t,n(hr(e,t)),r)}function bi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ci(e,r?0:o,r?o+1:i):ci(e,r?o+1:0,r?i:o)}function wi(e,t){var n=e;return n instanceof X&&(n=n.value()),p(t,function(e,t){return t.func.apply(t.thisArg,f([e],t.args))},n)}function xi(e,t,n){var r=e.length;if(2>r)return r?vi(e[0]):[];for(var i=-1,o=ac(r);++i<r;)for(var a=e[i],u=-1;++u<r;)u!=i&&(o[i]=Kn(o[i]||a,e[u],t,n));return vi(rr(o,1),t,n)}function _i(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var u=o>r?t[r]:Q;n(a,e[r],u)}return a}function ki(e){return Xu(e)?e:[]}function Ci(e){return"function"==typeof e?e:jl}function Si(e,t){return wp(e)?e:zo(e,t)?[e]:If(As(e))}function Ti(e,t,n){var r=e.length;return n=n===Q?r:n,!t&&n>=r?e:ci(e,t,n)}function Di(e,t){if(t)return e.slice();var n=e.length,r=Ec?Ec(n):new e.constructor(n);return e.copy(r),r}function Oi(e){var t=new e.constructor(e.byteLength);return new Oc(t).set(new Oc(e)),t}function Ei(e,t){var n=t?Oi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ai(t,n,r){var i=n?r(q(t),ue):q(t);return p(i,e,new t.constructor)}function Mi(e){var t=new e.constructor(e.source,qt.exec(e));return t.lastIndex=e.lastIndex,t}function Pi(e,n,r){var i=n?r(V(e),ue):V(e);return p(i,t,new e.constructor)}function ji(e){return mf?fc(mf.call(e)):{}}function Ni(e,t){var n=t?Oi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ii(e,t){if(e!==t){var n=e!==Q,r=null===e,i=e===e,o=bs(e),a=t!==Q,u=null===t,s=t===t,l=bs(t);if(!u&&!l&&!o&&e>t||o&&a&&s&&!u&&!l||r&&a&&s||!n&&s||!i)return 1;if(!r&&!o&&!l&&t>e||l&&n&&i&&!r&&!o||u&&n&&i||!a&&i||!s)return-1}return 0}function Ui(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,u=n.length;++r<a;){var s=Ii(i[r],o[r]);if(s){if(r>=u)return s;var l=n[r];return s*("desc"==l?-1:1)}}return e.index-t.index}function Ri(e,t,n,r){for(var i=-1,o=e.length,a=n.length,u=-1,s=t.length,l=Kc(o-a,0),c=ac(s+l),f=!r;++u<s;)c[u]=t[u];for(;++i<a;)(f||o>i)&&(c[n[i]]=e[i]);for(;l--;)c[u++]=e[i++];return c}function Fi(e,t,n,r){for(var i=-1,o=e.length,a=-1,u=n.length,s=-1,l=t.length,c=Kc(o-u,0),f=ac(c+l),p=!r;++i<c;)f[i]=e[i];for(var d=i;++s<l;)f[d+s]=t[s];for(;++a<u;)(p||o>i)&&(f[d+n[a]]=e[i++]);return f}function zi(e,t){var n=-1,r=e.length;for(t||(t=ac(r));++n<r;)t[n]=e[n];return t}function qi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var u=t[o],s=r?r(n[u],e[u],u,n,e):Q;s===Q&&(s=e[u]),i?In(n,u,s):An(n,u,s)}return n}function Li(e,t){return qi(e,Of(e),t)}function Hi(e,t){return qi(e,Ef(e),t)}function Vi(e,t){return function(n,i){var o=wp(n)?r:Pn,a=t?t():{};return o(n,e,Co(i,2),a)}}function Wi(e){return oi(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:Q,a=i>2?n[2]:Q;for(o=e.length>3&&"function"==typeof o?(i--,o):Q,a&&Fo(n[0],n[1],a)&&(o=3>i?Q:o,i=1),t=fc(t);++r<i;){var u=n[r];u&&e(t,u,r,o)}return t})}function Bi(e,t){return function(n,r){if(null==n)return n;if(!Zu(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=fc(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function Yi(e){return function(t,n,r){for(var i=-1,o=fc(t),a=r(t),u=a.length;u--;){var s=a[e?u:++i];if(n(o[s],s,o)===!1)break}return t}}function Gi(e,t,n){function r(){var t=this&&this!==nr&&this instanceof r?o:e;return t.apply(i?n:this,arguments)}var i=t&pe,o=Xi(e);return r}function Ki(e){return function(t){t=As(t);var n=R(t)?K(t):Q,r=n?n[0]:t.charAt(0),i=n?Ti(n,1).join(""):t.slice(1);return r[e]()+i}}function Zi(e){return function(t){return p(Ol(ll(t).replace(Rn,"")),e,"")}}function Xi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=yf(e.prototype),r=e.apply(n,t);return ss(r)?r:n}}function Ji(e,t,r){function i(){for(var a=arguments.length,u=ac(a),s=a,l=ko(i);s--;)u[s]=arguments[s];var c=3>a&&u[0]!==l&&u[a-1]!==l?[]:H(u,l);if(a-=c.length,r>a)return lo(e,t,to,i.placeholder,Q,u,c,Q,Q,r-a);var f=this&&this!==nr&&this instanceof i?o:e;return n(f,this,u)}var o=Xi(e);return i}function Qi(e){return function(t,n,r){var i=fc(t);if(!Zu(t)){var o=Co(n,3);t=Vs(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:Q}}function eo(e){return bo(function(t){var n=t.length,r=n,i=Z.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new hc(re);if(i&&!a&&"wrapper"==_o(o))var a=new Z([],!0)}for(r=a?r:n;++r<n;){o=t[r];var u=_o(o),s="wrapper"==u?Df(o):Q;a=s&&Lo(s[0])&&s[1]==($e|ge|ve|be)&&!s[4].length&&1==s[9]?a[_o(s[0])].apply(a,s[3]):1==o.length&&Lo(o)?a[u]():a.thru(o)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&wp(r))return a.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}function to(e,t,n,r,i,o,a,u,s,l){function c(){for(var v=arguments.length,y=ac(v),$=v;$--;)y[$]=arguments[$];if(h)var b=ko(c),w=N(y,b);if(r&&(y=Ri(y,r,i,h)),o&&(y=Fi(y,o,a,h)),v-=w,h&&l>v){var x=H(y,b);return lo(e,t,to,c.placeholder,n,y,x,u,s,l-v)}var _=p?n:this,k=d?_[e]:e;return v=y.length,u?y=Qo(y,u):g&&v>1&&y.reverse(),f&&v>s&&(y.length=s),this&&this!==nr&&this instanceof c&&(k=m||Xi(k)),k.apply(_,y)}var f=t&$e,p=t&pe,d=t&de,h=t&(ge|me),g=t&we,m=d?Q:Xi(e);return c}function no(e,t){return function(n,r){return Tr(n,e,t(r),{})}}function ro(e,t){return function(n,r){var i;if(n===Q&&r===Q)return t;if(n!==Q&&(i=n),r!==Q){if(i===Q)return r;"string"==typeof n||"string"==typeof r?(n=mi(n),r=mi(r)):(n=gi(n),r=gi(r)),i=e(n,r)}return i}}function io(e){return bo(function(t){return t=c(t,E(Co())),oi(function(r){var i=this;return e(t,function(e){return n(e,i,r)})})})}function oo(e,t){t=t===Q?" ":mi(t);var n=t.length;if(2>n)return n?ii(t,e):t;var r=ii(t,Lc(e/G(t)));return R(t)?Ti(K(r),0,e).join(""):r.slice(0,e)}function ao(e,t,r,i){function o(){for(var t=-1,s=arguments.length,l=-1,c=i.length,f=ac(c+s),p=this&&this!==nr&&this instanceof o?u:e;++l<c;)f[l]=i[l];for(;s--;)f[l++]=arguments[++t];return n(p,a?r:this,f)}var a=t&pe,u=Xi(e);return o}function uo(e){return function(t,n,r){return r&&"number"!=typeof r&&Fo(t,n,r)&&(n=r=Q),t=Cs(t),n===Q?(n=t,t=0):n=Cs(n),r=r===Q?n>t?1:-1:Cs(r),ri(t,n,r,e)}}function so(e){return function(t,n){return("string"!=typeof t||"string"!=typeof n)&&(t=Ds(t),n=Ds(n)),e(t,n)}}function lo(e,t,n,r,i,o,a,u,s,l){var c=t&ge,f=c?a:Q,p=c?Q:a,d=c?o:Q,h=c?Q:o;t|=c?ve:ye,t&=~(c?ye:ve),t&he||(t&=~(pe|de));var g=[e,t,i,d,f,h,p,u,s,l],m=n.apply(Q,g);return Lo(e)&&Pf(m,g),m.placeholder=r,ea(m,e,t)}function co(e){var t=cc[e];return function(e,n){if(e=Ds(e),n=null==n?0:Zc(Ss(n),292)){var r=(As(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(As(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}function fo(e){return function(t){var n=Af(t);return n==Be?q(t):n==Qe?W(t):O(t,e(t))}}function po(e,t,n,r,i,o,a,u){var s=t&de;if(!s&&"function"!=typeof e)throw new hc(re);var l=r?r.length:0;if(l||(t&=~(ve|ye),r=i=Q),a=a===Q?a:Kc(Ss(a),0),u=u===Q?u:Ss(u),l-=i?i.length:0,t&ye){var c=r,f=i;r=i=Q}var p=s?Q:Df(e),d=[e,t,n,r,i,c,f,o,a,u];if(p&&Go(d,p),e=d[0],t=d[1],n=d[2],r=d[3],i=d[4],u=d[9]=d[9]===Q?s?0:e.length:Kc(d[9]-l,0),!u&&t&(ge|me)&&(t&=~(ge|me)),t&&t!=pe)h=t==ge||t==me?Ji(e,t,u):t!=ve&&t!=(pe|ve)||i.length?to.apply(Q,d):ao(e,t,n,r);else var h=Gi(e,t,n);var g=p?_f:Pf;return ea(g(h,d),e,t)}function ho(e,t,n,r){return e===Q||Ku(e,vc[n])&&!bc.call(r,n)?t:e}function go(e,t,n,r,i,o){return ss(e)&&ss(t)&&(o.set(t,e),Yr(e,t,Q,go,o),o["delete"](t)),e}function mo(e){return vs(e)?Q:e}function vo(e,t,n,r,i,o){var a=n&ce,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,f=!0,p=n&fe?new vn:Q;for(o.set(e,t),o.set(t,e);++c<u;){var d=e[c],g=t[c];if(r)var m=a?r(g,d,c,t,e,o):r(d,g,c,e,t,o);if(m!==Q){if(m)continue;f=!1;break}if(p){if(!h(t,function(e,t){return M(p,t)||d!==e&&!i(d,e,n,r,o)?void 0:p.push(t)})){f=!1;break}}else if(d!==g&&!i(d,g,n,r,o)){f=!1;break}}return o["delete"](e),o["delete"](t),f}function yo(e,t,n,r,i,o,a){switch(n){case at:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ot:return e.byteLength==t.byteLength&&o(new Oc(e),new Oc(t))?!0:!1;case ze:case qe:case Ye:return Ku(+e,+t);case He:return e.name==t.name&&e.message==t.message;case Je:case et:return e==t+"";case Be:var u=q;case Qe:var s=r&ce;if(u||(u=V),e.size!=t.size&&!s)return!1;var l=a.get(e);if(l)return l==t;r|=fe,a.set(e,t);var c=vo(u(e),u(t),r,i,o,a);return a["delete"](e),c;case tt:if(mf)return mf.call(e)==mf.call(t)}return!1}function $o(e,t,n,r,i,o){var a=n&ce,u=wo(e),s=u.length,l=wo(t),c=l.length;if(s!=c&&!a)return!1;for(var f=s;f--;){var p=u[f];if(!(a?p in t:bc.call(t,p)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var h=!0;o.set(e,t),o.set(t,e);for(var g=a;++f<s;){p=u[f];var m=e[p],v=t[p];if(r)var y=a?r(v,m,p,t,e,o):r(m,v,p,e,t,o);if(!(y===Q?m===v||i(m,v,n,r,o):y)){h=!1;break}g||(g="constructor"==p)}if(h&&!g){var $=e.constructor,b=t.constructor;$!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof $&&$ instanceof $&&"function"==typeof b&&b instanceof b)&&(h=!1)}return o["delete"](e),o["delete"](t),h}function bo(e){return Nf(Xo(e,Q,va),e+"")}function wo(e){return yr(e,Vs,Of)}function xo(e){return yr(e,Ws,Ef)}function _o(e){for(var t=e.name+"",n=lf[t],r=bc.call(lf,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function ko(e){var t=bc.call(k,"placeholder")?k:e;return t.placeholder}function Co(){var e=k.iteratee||Nl;return e=e===Nl?zr:e,arguments.length?e(arguments[0],arguments[1]):e}function So(e,t){var n=e.__data__;return qo(t)?n["string"==typeof t?"string":"hash"]:n.map}function To(e){for(var t=Vs(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Wo(i)]}return t}function Do(e,t){var n=U(e,t);return Ir(n)?n:Q}function Oo(e){var t=bc.call(e,Uc),n=e[Uc];try{e[Uc]=Q;var r=!0}catch(i){}var o=_c.call(e);return r&&(t?e[Uc]=n:delete e[Uc]),o}function Eo(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Zc(t,e+a);break;case"takeRight":e=Kc(e,t-a)}}return{start:e,end:t}}function Ao(e){var t=e.match(It);return t?t[1].split(Ut):[]}function Mo(e,t,n){t=Si(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=ra(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&us(i)&&Ro(a,i)&&(wp(e)||bp(e)))}function Po(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&bc.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function jo(e){return"function"!=typeof e.constructor||Vo(e)?{}:yf(Ac(e))}function No(e,t,n,r){var i=e.constructor;switch(t){case ot:return Oi(e);case ze:case qe:return new i(+e);case at:return Ei(e,r);case ut:case st:case lt:case ct:case ft:case pt:case dt:case ht:case gt:return Ni(e,r);case Be:return Ai(e,r,n);case Ye:case et:return new i(e);case Je:return Mi(e);case Qe:return Pi(e,r,n);case tt:return ji(e)}}function Io(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Nt,"{\n/* [wrapped with "+t+"] */\n")}function Uo(e){return wp(e)||bp(e)||!!(Nc&&e&&e[Nc])}function Ro(e,t){return t=null==t?Ee:t,!!t&&("number"==typeof e||Bt.test(e))&&e>-1&&e%1==0&&t>e}function Fo(e,t,n){if(!ss(n))return!1;var r=typeof t;return("number"==r?Zu(n)&&Ro(t,n.length):"string"==r&&t in n)?Ku(n[t],e):!1}function zo(e,t){if(wp(e))return!1;var n=typeof e;return"number"==n||"symbol"==n||"boolean"==n||null==e||bs(e)?!0:Tt.test(e)||!St.test(e)||null!=t&&e in fc(t)}function qo(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Lo(e){var t=_o(e),n=k[t];if("function"!=typeof n||!(t in X.prototype))return!1;if(e===n)return!0;var r=Df(n);return!!r&&e===r[0]}function Ho(e){return!!xc&&xc in e}function Vo(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||vc;return e===n}function Wo(e){return e===e&&!ss(e)}function Bo(e,t){return function(n){return null==n?!1:n[e]===t&&(t!==Q||e in fc(n))}}function Yo(e){var t=Nu(e,function(e){return n.size===oe&&n.clear(),e}),n=t.cache;return t}function Go(e,t){var n=e[1],r=t[1],i=n|r,o=(pe|de|$e)>i,a=r==$e&&n==ge||r==$e&&n==be&&e[7].length<=t[8]||r==($e|be)&&t[7].length<=t[8]&&n==ge;if(!o&&!a)return e;r&pe&&(e[2]=t[2],i|=n&pe?0:he);var u=t[3];if(u){var s=e[3];e[3]=s?Ri(s,u,t[4]):u,e[4]=s?H(e[3],ae):t[4]}return u=t[5],u&&(s=e[5],e[5]=s?Fi(s,u,t[6]):u,e[6]=s?H(e[5],ae):t[6]),u=t[7],u&&(e[7]=u),r&$e&&(e[8]=null==e[8]?t[8]:Zc(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function Ko(e){var t=[];if(null!=e)for(var n in fc(e))t.push(n);return t}function Zo(e){return _c.call(e)}function Xo(e,t,r){return t=Kc(t===Q?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=Kc(i.length-t,0),u=ac(a);++o<a;)u[o]=i[t+o];o=-1;for(var s=ac(t+1);++o<t;)s[o]=i[o];return s[t]=r(u),n(e,this,s)}}function Jo(e,t){return t.length<2?e:hr(e,ci(t,0,-1))}function Qo(e,t){for(var n=e.length,r=Zc(t.length,n),i=zi(e);r--;){var o=t[r];e[r]=Ro(o,n)?i[o]:Q}return e}function ea(e,t,n){var r=t+"";return Nf(e,Io(r,oa(Ao(r),n)))}function ta(e){var t=0,n=0;return function(){var r=Xc(),i=Ce-(r-n);if(n=r,i>0){if(++t>=ke)return arguments[0]}else t=0;return e.apply(Q,arguments)}}function na(e,t){var n=-1,r=e.length,i=r-1;for(t=t===Q?r:t;++n<t;){var o=ni(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}function ra(e){if("string"==typeof e||bs(e))return e;var t=e+"";return"0"==t&&1/e==-Oe?"-0":t}function ia(e){if(null!=e){try{return $c.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function oa(e,t){return i(Ie,function(n){var r="_."+n[0];t&n[1]&&!s(e,r)&&e.push(r)}),e.sort()}function aa(e){if(e instanceof X)return e.clone();var t=new Z(e.__wrapped__,e.__chain__);return t.__actions__=zi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ua(e,t,n){t=(n?Fo(e,t,n):t===Q)?1:Kc(Ss(t),0);var r=null==e?0:e.length;if(!r||1>t)return[];for(var i=0,o=0,a=ac(Lc(r/t));r>i;)a[o++]=ci(e,i,i+=t);return a}function sa(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i}function la(){var e=arguments.length;if(!e)return[];for(var t=ac(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return f(wp(n)?zi(n):[n],rr(t,1))}function ca(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===Q?1:Ss(t),ci(e,0>t?0:t,r)):[]}function fa(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===Q?1:Ss(t),t=r-t,ci(e,0,0>t?0:t)):[]}function pa(e,t){return e&&e.length?bi(e,Co(t,3),!0,!0):[]}function da(e,t){return e&&e.length?bi(e,Co(t,3),!0):[]}function ha(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Fo(e,t,n)&&(n=0,r=i),er(e,t,n,r)):[]}function ga(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ss(n);return 0>i&&(i=Kc(r+i,0)),y(e,Co(t,3),i)}function ma(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==Q&&(i=Ss(n),i=0>n?Kc(r+i,0):Zc(i,r-1)),y(e,Co(t,3),i,!0)}function va(e){var t=null==e?0:e.length;return t?rr(e,1):[]}function ya(e){var t=null==e?0:e.length;return t?rr(e,Oe):[]}function $a(e,t){var n=null==e?0:e.length;return n?(t=t===Q?1:Ss(t),rr(e,t)):[]}function ba(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function wa(e){return e&&e.length?e[0]:Q}function xa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ss(n);return 0>i&&(i=Kc(r+i,0)),$(e,t,i)}function _a(e){var t=null==e?0:e.length;return t?ci(e,0,-1):[]}function ka(e,t){return null==e?"":Yc.call(e,t)}function Ca(e){var t=null==e?0:e.length;return t?e[t-1]:Q}function Sa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==Q&&(i=Ss(n),i=0>i?Kc(r+i,0):Zc(i,r-1)),t===t?Y(e,t,i):y(e,w,i,!0)}function Ta(e,t){return e&&e.length?Kr(e,Ss(t)):Q}function Da(e,t){return e&&e.length&&t&&t.length?ei(e,t):e}function Oa(e,t,n){return e&&e.length&&t&&t.length?ei(e,t,Co(n,2)):e}function Ea(e,t,n){return e&&e.length&&t&&t.length?ei(e,t,Q,n):e}function Aa(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Co(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return ti(e,i),n}function Ma(e){return null==e?e:ef.call(e)}function Pa(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Fo(e,t,n)?(t=0,n=r):(t=null==t?0:Ss(t),n=n===Q?r:Ss(n)),ci(e,t,n)):[]}function ja(e,t){return pi(e,t)}function Na(e,t,n){return di(e,t,Co(n,2))}function Ia(e,t){var n=null==e?0:e.length;if(n){var r=pi(e,t);if(n>r&&Ku(e[r],t))return r}return-1}function Ua(e,t){return pi(e,t,!0)}function Ra(e,t,n){return di(e,t,Co(n,2),!0)}function Fa(e,t){var n=null==e?0:e.length;if(n){var r=pi(e,t,!0)-1;if(Ku(e[r],t))return r}return-1}function za(e){return e&&e.length?hi(e):[]}function qa(e,t){return e&&e.length?hi(e,Co(t,2)):[]}function La(e){var t=null==e?0:e.length;return t?ci(e,1,t):[]}function Ha(e,t,n){return e&&e.length?(t=n||t===Q?1:Ss(t),ci(e,0,0>t?0:t)):[]}function Va(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===Q?1:Ss(t),t=r-t,ci(e,0>t?0:t,r)):[]}function Wa(e,t){return e&&e.length?bi(e,Co(t,3),!1,!0):[]}function Ba(e,t){return e&&e.length?bi(e,Co(t,3)):[]}function Ya(e){return e&&e.length?vi(e):[]}function Ga(e,t){return e&&e.length?vi(e,Co(t,2)):[]}function Ka(e,t){return t="function"==typeof t?t:Q,e&&e.length?vi(e,Q,t):[]}function Za(e){if(!e||!e.length)return[];var t=0;return e=u(e,function(e){return Xu(e)?(t=Kc(e.length,t),!0):void 0}),D(t,function(t){return c(e,_(t))})}function Xa(e,t){if(!e||!e.length)return[];var r=Za(e);return null==t?r:c(r,function(e){return n(t,Q,e)})}function Ja(e,t){return _i(e||[],t||[],An)}function Qa(e,t){return _i(e||[],t||[],si)}function eu(e){var t=k(e);return t.__chain__=!0,t}function tu(e,t){return t(e),e}function nu(e,t){return t(e)}function ru(){return eu(this)}function iu(){return new Z(this.value(),this.__chain__)}function ou(){this.__values__===Q&&(this.__values__=ks(this.value()));var e=this.__index__>=this.__values__.length,t=e?Q:this.__values__[this.__index__++];return{done:e,value:t}}function au(){return this}function uu(e){for(var t,n=this;n instanceof B;){var r=aa(n);r.__index__=0,r.__values__=Q,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function su(){var e=this.__wrapped__;if(e instanceof X){var t=e;return this.__actions__.length&&(t=new X(this)),t=t.reverse(),t.__actions__.push({func:nu,args:[Ma],thisArg:Q}),new Z(t,this.__chain__)}return this.thru(Ma)}function lu(){return wi(this.__wrapped__,this.__actions__)}function cu(e,t,n){var r=wp(e)?a:Zn;return n&&Fo(e,t,n)&&(t=Q),r(e,Co(t,3))}function fu(e,t){var n=wp(e)?u:tr;return n(e,Co(t,3))}function pu(e,t){return rr(yu(e,t),1)}function du(e,t){return rr(yu(e,t),Oe)}function hu(e,t,n){return n=n===Q?1:Ss(n),rr(yu(e,t),n)}function gu(e,t){var n=wp(e)?i:$f;return n(e,Co(t,3))}function mu(e,t){var n=wp(e)?o:bf;return n(e,Co(t,3))}function vu(e,t,n,r){e=Zu(e)?e:rl(e),n=n&&!r?Ss(n):0;var i=e.length;return 0>n&&(n=Kc(i+n,0)),$s(e)?i>=n&&e.indexOf(t,n)>-1:!!i&&$(e,t,n)>-1}function yu(e,t){var n=wp(e)?c:Vr;return n(e,Co(t,3))}function $u(e,t,n,r){return null==e?[]:(wp(t)||(t=null==t?[]:[t]),n=r?Q:n,wp(n)||(n=null==n?[]:[n]),Zr(e,t,n))}function bu(e,t,n){var r=wp(e)?p:C,i=arguments.length<3;return r(e,Co(t,4),n,i,$f)}function wu(e,t,n){var r=wp(e)?d:C,i=arguments.length<3;return r(e,Co(t,4),n,i,bf)}function xu(e,t){var n=wp(e)?u:tr;return n(e,Iu(Co(t,3)))}function _u(e){var t=wp(e)?Tn:ai;return t(e)}function ku(e,t,n){t=(n?Fo(e,t,n):t===Q)?1:Ss(t);var r=wp(e)?Dn:ui;return r(e,t)}function Cu(e){var t=wp(e)?On:li;return t(e)}function Su(e){if(null==e)return 0;if(Zu(e))return $s(e)?G(e):e.length;var t=Af(e);return t==Be||t==Qe?e.size:qr(e).length}function Tu(e,t,n){var r=wp(e)?h:fi;return n&&Fo(e,t,n)&&(t=Q),r(e,Co(t,3))}function Du(e,t){if("function"!=typeof t)throw new hc(re);return e=Ss(e),function(){return--e<1?t.apply(this,arguments):void 0}}function Ou(e,t,n){return t=n?Q:t,t=e&&null==t?e.length:t,po(e,$e,Q,Q,Q,Q,t)}function Eu(e,t){var n;if("function"!=typeof t)throw new hc(re);return e=Ss(e),function(){return--e>0&&(n=t.apply(this,arguments)),1>=e&&(t=Q),n}}function Au(e,t,n){t=n?Q:t;var r=po(e,ge,Q,Q,Q,Q,Q,t);return r.placeholder=Au.placeholder,r}function Mu(e,t,n){t=n?Q:t;var r=po(e,me,Q,Q,Q,Q,Q,t);return r.placeholder=Mu.placeholder,r}function Pu(e,t,n){function r(t){var n=p,r=d;return p=d=Q,y=t,g=e.apply(r,n)}function i(e){return y=e,m=jf(u,t),$?r(e):g}function o(e){var n=e-v,r=e-y,i=t-n;return b?Zc(i,h-r):i}function a(e){var n=e-v,r=e-y;return v===Q||n>=t||0>n||b&&r>=h}function u(){var e=lp();return a(e)?s(e):void(m=jf(u,o(e)))}function s(e){return m=Q,w&&p?r(e):(p=d=Q,g)}function l(){m!==Q&&Sf(m),y=0,p=v=d=m=Q}function c(){return m===Q?g:s(lp())}function f(){var e=lp(),n=a(e);if(p=arguments,d=this,v=e,n){if(m===Q)return i(v);if(b)return m=jf(u,t),r(v)}return m===Q&&(m=jf(u,t)),g}var p,d,h,g,m,v,y=0,$=!1,b=!1,w=!0;if("function"!=typeof e)throw new hc(re);return t=Ds(t)||0,ss(n)&&($=!!n.leading,b="maxWait"in n,h=b?Kc(Ds(n.maxWait)||0,t):h,w="trailing"in n?!!n.trailing:w),f.cancel=l,f.flush=c,f}function ju(e){return po(e,we)}function Nu(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new hc(re);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Nu.Cache||fn),n}function Iu(e){if("function"!=typeof e)throw new hc(re);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Uu(e){return Eu(2,e)}function Ru(e,t){if("function"!=typeof e)throw new hc(re);return t=t===Q?t:Ss(t),oi(e,t)}function Fu(e,t){if("function"!=typeof e)throw new hc(re);return t=null==t?0:Kc(Ss(t),0),oi(function(r){var i=r[t],o=Ti(r,0,t);return i&&f(o,i),n(e,this,o)})}function zu(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new hc(re);return ss(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Pu(e,t,{leading:r,maxWait:t,trailing:i})}function qu(e){return Ou(e,1)}function Lu(e,t){return gp(Ci(t),e)}function Hu(){if(!arguments.length)return[];var e=arguments[0];return wp(e)?e:[e]}function Vu(e){return qn(e,le)}function Wu(e,t){return t="function"==typeof t?t:Q,qn(e,le,t)}function Bu(e){return qn(e,ue|le)}function Yu(e,t){return t="function"==typeof t?t:Q,qn(e,ue|le,t)}function Gu(e,t){return null==t||Hn(e,t,Vs(t))}function Ku(e,t){return e===t||e!==e&&t!==t}function Zu(e){return null!=e&&us(e.length)&&!os(e)}function Xu(e){return ls(e)&&Zu(e)}function Ju(e){return e===!0||e===!1||ls(e)&&wr(e)==ze}function Qu(e){return ls(e)&&1===e.nodeType&&!vs(e)}function es(e){if(null==e)return!0;if(Zu(e)&&(wp(e)||"string"==typeof e||"function"==typeof e.splice||_p(e)||Dp(e)||bp(e)))return!e.length;var t=Af(e);if(t==Be||t==Qe)return!e.size;if(Vo(e))return!qr(e).length;for(var n in e)if(bc.call(e,n))return!1;return!0}function ts(e,t){return Mr(e,t)}function ns(e,t,n){n="function"==typeof n?n:Q;var r=n?n(e,t):Q;return r===Q?Mr(e,t,Q,n):!!r}function rs(e){if(!ls(e))return!1;var t=wr(e);return t==He||t==Le||"string"==typeof e.message&&"string"==typeof e.name&&!vs(e)}function is(e){return"number"==typeof e&&Bc(e)}function os(e){if(!ss(e))return!1;var t=wr(e);return t==Ve||t==We||t==Fe||t==Xe}function as(e){return"number"==typeof e&&e==Ss(e)}function us(e){return"number"==typeof e&&e>-1&&e%1==0&&Ee>=e}function ss(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ls(e){return null!=e&&"object"==typeof e}function cs(e,t){return e===t||Nr(e,t,To(t))}function fs(e,t,n){return n="function"==typeof n?n:Q,Nr(e,t,To(t),n)}function ps(e){return ms(e)&&e!=+e}function ds(e){if(Mf(e))throw new sc(ne);return Ir(e)}function hs(e){return null===e}function gs(e){return null==e}function ms(e){return"number"==typeof e||ls(e)&&wr(e)==Ye}function vs(e){if(!ls(e)||wr(e)!=Ke)return!1;var t=Ac(e);if(null===t)return!0;var n=bc.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&$c.call(n)==kc}function ys(e){return as(e)&&e>=-Ee&&Ee>=e}function $s(e){return"string"==typeof e||!wp(e)&&ls(e)&&wr(e)==et}function bs(e){return"symbol"==typeof e||ls(e)&&wr(e)==tt}function ws(e){return e===Q}function xs(e){return ls(e)&&Af(e)==rt}function _s(e){return ls(e)&&wr(e)==it}function ks(e){if(!e)return[];if(Zu(e))return $s(e)?K(e):zi(e);if(Ic&&e[Ic])return z(e[Ic]());var t=Af(e),n=t==Be?q:t==Qe?V:rl;return n(e)}function Cs(e){if(!e)return 0===e?e:0;if(e=Ds(e),e===Oe||e===-Oe){var t=0>e?-1:1;return t*Ae}return e===e?e:0}function Ss(e){var t=Cs(e),n=t%1;return t===t?n?t-n:t:0}function Ts(e){return e?zn(Ss(e),0,Pe):0}function Ds(e){if("number"==typeof e)return e;if(bs(e))return Me;if(ss(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ss(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Mt,"");var n=Ht.test(e);return n||Wt.test(e)?Qn(e.slice(2),n?2:8):Lt.test(e)?Me:+e}function Os(e){return qi(e,Ws(e));
  }function Es(e){return e?zn(Ss(e),-Ee,Ee):0===e?e:0}function As(e){return null==e?"":mi(e)}function Ms(e,t){var n=yf(e);return null==t?n:jn(n,t)}function Ps(e,t){return v(e,Co(t,3),ir)}function js(e,t){return v(e,Co(t,3),ar)}function Ns(e,t){return null==e?e:wf(e,Co(t,3),Ws)}function Is(e,t){return null==e?e:xf(e,Co(t,3),Ws)}function Us(e,t){return e&&ir(e,Co(t,3))}function Rs(e,t){return e&&ar(e,Co(t,3))}function Fs(e){return null==e?[]:ur(e,Vs(e))}function zs(e){return null==e?[]:ur(e,Ws(e))}function qs(e,t,n){var r=null==e?Q:hr(e,t);return r===Q?n:r}function Ls(e,t){return null!=e&&Mo(e,t,_r)}function Hs(e,t){return null!=e&&Mo(e,t,kr)}function Vs(e){return Zu(e)?Sn(e):qr(e)}function Ws(e){return Zu(e)?Sn(e,!0):Lr(e)}function Bs(e,t){var n={};return t=Co(t,3),ir(e,function(e,r,i){In(n,t(e,r,i),e)}),n}function Ys(e,t){var n={};return t=Co(t,3),ir(e,function(e,r,i){In(n,r,t(e,r,i))}),n}function Gs(e,t){return Ks(e,Iu(Co(t)))}function Ks(e,t){if(null==e)return{};var n=c(xo(e),function(e){return[e]});return t=Co(t),Jr(e,n,function(e,n){return t(e,n[0])})}function Zs(e,t,n){t=Si(t,e);var r=-1,i=t.length;for(i||(i=1,e=Q);++r<i;){var o=null==e?Q:e[ra(t[r])];o===Q&&(r=i,o=n),e=os(o)?o.call(e):o}return e}function Xs(e,t,n){return null==e?e:si(e,t,n)}function Js(e,t,n,r){return r="function"==typeof r?r:Q,null==e?e:si(e,t,n,r)}function Qs(e,t,n){var r=wp(e),o=r||_p(e)||Dp(e);if(t=Co(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:ss(e)&&os(a)?yf(Ac(e)):{}}return(o?i:ir)(e,function(e,r,i){return t(n,e,r,i)}),n}function el(e,t){return null==e?!0:yi(e,t)}function tl(e,t,n){return null==e?e:$i(e,t,Ci(n))}function nl(e,t,n,r){return r="function"==typeof r?r:Q,null==e?e:$i(e,t,Ci(n),r)}function rl(e){return null==e?[]:A(e,Vs(e))}function il(e){return null==e?[]:A(e,Ws(e))}function ol(e,t,n){return n===Q&&(n=t,t=Q),n!==Q&&(n=Ds(n),n=n===n?n:0),t!==Q&&(t=Ds(t),t=t===t?t:0),zn(Ds(e),t,n)}function al(e,t,n){return t=Cs(t),n===Q?(n=t,t=0):n=Cs(n),e=Ds(e),Cr(e,t,n)}function ul(e,t,n){if(n&&"boolean"!=typeof n&&Fo(e,t,n)&&(t=n=Q),n===Q&&("boolean"==typeof t?(n=t,t=Q):"boolean"==typeof e&&(n=e,e=Q)),e===Q&&t===Q?(e=0,t=1):(e=Cs(e),t===Q?(t=e,e=0):t=Cs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Qc();return Zc(e+i*(t-e+Jn("1e-"+((i+"").length-1))),t)}return ni(e,t)}function sl(e){return ed(As(e).toLowerCase())}function ll(e){return e=As(e),e&&e.replace(Yt,gr).replace(Fn,"")}function cl(e,t,n){e=As(e),t=mi(t);var r=e.length;n=n===Q?r:zn(Ss(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function fl(e){return e=As(e),e&&xt.test(e)?e.replace(bt,mr):e}function pl(e){return e=As(e),e&&At.test(e)?e.replace(Et,"\\$&"):e}function dl(e,t,n){e=As(e),t=Ss(t);var r=t?G(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return oo(Hc(i),n)+e+oo(Lc(i),n)}function hl(e,t,n){e=As(e),t=Ss(t);var r=t?G(e):0;return t&&t>r?e+oo(t-r,n):e}function gl(e,t,n){e=As(e),t=Ss(t);var r=t?G(e):0;return t&&t>r?oo(t-r,n)+e:e}function ml(e,t,n){return n||null==t?t=0:t&&(t=+t),Jc(As(e).replace(Pt,""),t||0)}function vl(e,t,n){return t=(n?Fo(e,t,n):t===Q)?1:Ss(t),ii(As(e),t)}function yl(){var e=arguments,t=As(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function $l(e,t,n){return n&&"number"!=typeof n&&Fo(e,t,n)&&(t=n=Q),(n=n===Q?Pe:n>>>0)?(e=As(e),e&&("string"==typeof t||null!=t&&!Sp(t))&&(t=mi(t),!t&&R(e))?Ti(K(e),0,n):e.split(t,n)):[]}function bl(e,t,n){return e=As(e),n=null==n?0:zn(Ss(n),0,e.length),t=mi(t),e.slice(n,n+t.length)==t}function wl(e,t,n){var r=k.templateSettings;n&&Fo(e,t,n)&&(t=Q),e=As(e),t=Pp({},t,r,ho);var i,o,a=Pp({},t.imports,r.imports,ho),u=Vs(a),s=A(a,u),l=0,c=t.interpolate||Gt,f="__p += '",p=pc((t.escape||Gt).source+"|"+c.source+"|"+(c===Ct?zt:Gt).source+"|"+(t.evaluate||Gt).source+"|$","g"),d="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Wn+"]")+"\n";e.replace(p,function(t,n,r,a,u,s){return r||(r=a),f+=e.slice(l,s).replace(Kt,I),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),u&&(o=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=s+t.length,t}),f+="';\n";var h=t.variable;h||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(mt,""):f).replace(vt,"$1").replace(yt,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=td(function(){return lc(u,d+"return "+f).apply(Q,s)});if(g.source=f,rs(g))throw g;return g}function xl(e){return As(e).toLowerCase()}function _l(e){return As(e).toUpperCase()}function kl(e,t,n){if(e=As(e),e&&(n||t===Q))return e.replace(Mt,"");if(!e||!(t=mi(t)))return e;var r=K(e),i=K(t),o=P(r,i),a=j(r,i)+1;return Ti(r,o,a).join("")}function Cl(e,t,n){if(e=As(e),e&&(n||t===Q))return e.replace(jt,"");if(!e||!(t=mi(t)))return e;var r=K(e),i=j(r,K(t))+1;return Ti(r,0,i).join("")}function Sl(e,t,n){if(e=As(e),e&&(n||t===Q))return e.replace(Pt,"");if(!e||!(t=mi(t)))return e;var r=K(e),i=P(r,K(t));return Ti(r,i).join("")}function Tl(e,t){var n=xe,r=_e;if(ss(t)){var i="separator"in t?t.separator:i;n="length"in t?Ss(t.length):n,r="omission"in t?mi(t.omission):r}e=As(e);var o=e.length;if(R(e)){var a=K(e);o=a.length}if(n>=o)return e;var u=n-G(r);if(1>u)return r;var s=a?Ti(a,0,u).join(""):e.slice(0,u);if(i===Q)return s+r;if(a&&(u+=s.length-u),Sp(i)){if(e.slice(u).search(i)){var l,c=s;for(i.global||(i=pc(i.source,As(qt.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var f=l.index;s=s.slice(0,f===Q?u:f)}}else if(e.indexOf(mi(i),u)!=u){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r}function Dl(e){return e=As(e),e&&wt.test(e)?e.replace($t,vr):e}function Ol(e,t,n){return e=As(e),t=n?Q:t,t===Q?F(e)?J(e):m(e):e.match(t)||[]}function El(e){var t=null==e?0:e.length,r=Co();return e=t?c(e,function(e){if("function"!=typeof e[1])throw new hc(re);return[r(e[0]),e[1]]}):[],oi(function(r){for(var i=-1;++i<t;){var o=e[i];if(n(o[0],this,r))return n(o[1],this,r)}})}function Al(e){return Ln(qn(e,ue))}function Ml(e){return function(){return e}}function Pl(e,t){return null==e||e!==e?t:e}function jl(e){return e}function Nl(e){return zr("function"==typeof e?e:qn(e,ue))}function Il(e){return Wr(qn(e,ue))}function Ul(e,t){return Br(e,qn(t,ue))}function Rl(e,t,n){var r=Vs(t),o=ur(t,r);null!=n||ss(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=ur(t,Vs(t)));var a=!(ss(n)&&"chain"in n&&!n.chain),u=os(e);return i(o,function(n){var r=t[n];e[n]=r,u&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),i=n.__actions__=zi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,f([this.value()],arguments))})}),e}function Fl(){return nr._===this&&(nr._=Cc),this}function zl(){}function ql(e){return e=Ss(e),oi(function(t){return Kr(t,e)})}function Ll(e){return zo(e)?_(ra(e)):Qr(e)}function Hl(e){return function(t){return null==e?Q:hr(e,t)}}function Vl(){return[]}function Wl(){return!1}function Bl(){return{}}function Yl(){return""}function Gl(){return!0}function Kl(e,t){if(e=Ss(e),1>e||e>Ee)return[];var n=Pe,r=Zc(e,Pe);t=Co(t),e-=Pe;for(var i=D(r,t);++n<e;)t(n);return i}function Zl(e){return wp(e)?c(e,ra):bs(e)?[e]:zi(If(As(e)))}function Xl(e){var t=++wc;return As(e)+t}function Jl(e){return e&&e.length?Xn(e,jl,xr):Q}function Ql(e,t){return e&&e.length?Xn(e,Co(t,2),xr):Q}function ec(e){return x(e,jl)}function tc(e,t){return x(e,Co(t,2))}function nc(e){return e&&e.length?Xn(e,jl,Hr):Q}function rc(e,t){return e&&e.length?Xn(e,Co(t,2),Hr):Q}function ic(e){return e&&e.length?T(e,jl):0}function oc(e,t){return e&&e.length?T(e,Co(t,2)):0}g=null==g?nr:$r.defaults(nr.Object(),g,$r.pick(nr,Vn));var ac=g.Array,uc=g.Date,sc=g.Error,lc=g.Function,cc=g.Math,fc=g.Object,pc=g.RegExp,dc=g.String,hc=g.TypeError,gc=ac.prototype,mc=lc.prototype,vc=fc.prototype,yc=g["__core-js_shared__"],$c=mc.toString,bc=vc.hasOwnProperty,wc=0,xc=function(){var e=/[^.]+$/.exec(yc&&yc.keys&&yc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),_c=vc.toString,kc=$c.call(fc),Cc=nr._,Sc=pc("^"+$c.call(bc).replace(Et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tc=or?g.Buffer:Q,Dc=g.Symbol,Oc=g.Uint8Array,Ec=Tc?Tc.allocUnsafe:Q,Ac=L(fc.getPrototypeOf,fc),Mc=fc.create,Pc=vc.propertyIsEnumerable,jc=gc.splice,Nc=Dc?Dc.isConcatSpreadable:Q,Ic=Dc?Dc.iterator:Q,Uc=Dc?Dc.toStringTag:Q,Rc=function(){try{var e=Do(fc,"defineProperty");return e({},"",{}),e}catch(t){}}(),Fc=g.clearTimeout!==nr.clearTimeout&&g.clearTimeout,zc=uc&&uc.now!==nr.Date.now&&uc.now,qc=g.setTimeout!==nr.setTimeout&&g.setTimeout,Lc=cc.ceil,Hc=cc.floor,Vc=fc.getOwnPropertySymbols,Wc=Tc?Tc.isBuffer:Q,Bc=g.isFinite,Yc=gc.join,Gc=L(fc.keys,fc),Kc=cc.max,Zc=cc.min,Xc=uc.now,Jc=g.parseInt,Qc=cc.random,ef=gc.reverse,tf=Do(g,"DataView"),nf=Do(g,"Map"),rf=Do(g,"Promise"),of=Do(g,"Set"),af=Do(g,"WeakMap"),uf=Do(fc,"create"),sf=af&&new af,lf={},cf=ia(tf),ff=ia(nf),pf=ia(rf),df=ia(of),hf=ia(af),gf=Dc?Dc.prototype:Q,mf=gf?gf.valueOf:Q,vf=gf?gf.toString:Q,yf=function(){function e(){}return function(t){if(!ss(t))return{};if(Mc)return Mc(t);e.prototype=t;var n=new e;return e.prototype=Q,n}}();k.templateSettings={escape:_t,evaluate:kt,interpolate:Ct,variable:"",imports:{_:k}},k.prototype=B.prototype,k.prototype.constructor=k,Z.prototype=yf(B.prototype),Z.prototype.constructor=Z,X.prototype=yf(B.prototype),X.prototype.constructor=X,Jt.prototype.clear=Qt,Jt.prototype["delete"]=en,Jt.prototype.get=tn,Jt.prototype.has=nn,Jt.prototype.set=rn,on.prototype.clear=an,on.prototype["delete"]=un,on.prototype.get=sn,on.prototype.has=ln,on.prototype.set=cn,fn.prototype.clear=pn,fn.prototype["delete"]=dn,fn.prototype.get=hn,fn.prototype.has=gn,fn.prototype.set=mn,vn.prototype.add=vn.prototype.push=yn,vn.prototype.has=$n,bn.prototype.clear=wn,bn.prototype["delete"]=xn,bn.prototype.get=_n,bn.prototype.has=kn,bn.prototype.set=Cn;var $f=Bi(ir),bf=Bi(ar,!0),wf=Yi(),xf=Yi(!0),_f=sf?function(e,t){return sf.set(e,t),e}:jl,kf=Rc?function(e,t){return Rc(e,"toString",{configurable:!0,enumerable:!1,value:Ml(t),writable:!0})}:jl,Cf=oi,Sf=Fc||function(e){return nr.clearTimeout(e)},Tf=of&&1/V(new of([,-0]))[1]==Oe?function(e){return new of(e)}:zl,Df=sf?function(e){return sf.get(e)}:zl,Of=Vc?function(e){return null==e?[]:(e=fc(e),u(Vc(e),function(t){return Pc.call(e,t)}))}:Vl,Ef=Vc?function(e){for(var t=[];e;)f(t,Of(e)),e=Ac(e);return t}:Vl,Af=wr;(tf&&Af(new tf(new ArrayBuffer(1)))!=at||nf&&Af(new nf)!=Be||rf&&Af(rf.resolve())!=Ze||of&&Af(new of)!=Qe||af&&Af(new af)!=rt)&&(Af=function(e){var t=wr(e),n=t==Ke?e.constructor:Q,r=n?ia(n):"";if(r)switch(r){case cf:return at;case ff:return Be;case pf:return Ze;case df:return Qe;case hf:return rt}return t});var Mf=yc?os:Wl,Pf=ta(_f),jf=qc||function(e,t){return nr.setTimeout(e,t)},Nf=ta(kf),If=Yo(function(e){var t=[];return Dt.test(e)&&t.push(""),e.replace(Ot,function(e,n,r,i){t.push(r?i.replace(Ft,"$1"):n||e)}),t}),Uf=oi(function(e,t){return Xu(e)?Kn(e,rr(t,1,Xu,!0)):[]}),Rf=oi(function(e,t){var n=Ca(t);return Xu(n)&&(n=Q),Xu(e)?Kn(e,rr(t,1,Xu,!0),Co(n,2)):[]}),Ff=oi(function(e,t){var n=Ca(t);return Xu(n)&&(n=Q),Xu(e)?Kn(e,rr(t,1,Xu,!0),Q,n):[]}),zf=oi(function(e){var t=c(e,ki);return t.length&&t[0]===e[0]?Sr(t):[]}),qf=oi(function(e){var t=Ca(e),n=c(e,ki);return t===Ca(n)?t=Q:n.pop(),n.length&&n[0]===e[0]?Sr(n,Co(t,2)):[]}),Lf=oi(function(e){var t=Ca(e),n=c(e,ki);return t="function"==typeof t?t:Q,t&&n.pop(),n.length&&n[0]===e[0]?Sr(n,Q,t):[]}),Hf=oi(Da),Vf=bo(function(e,t){var n=null==e?0:e.length,r=Un(e,t);return ti(e,c(t,function(e){return Ro(e,n)?+e:e}).sort(Ii)),r}),Wf=oi(function(e){return vi(rr(e,1,Xu,!0))}),Bf=oi(function(e){var t=Ca(e);return Xu(t)&&(t=Q),vi(rr(e,1,Xu,!0),Co(t,2))}),Yf=oi(function(e){var t=Ca(e);return t="function"==typeof t?t:Q,vi(rr(e,1,Xu,!0),Q,t)}),Gf=oi(function(e,t){return Xu(e)?Kn(e,t):[]}),Kf=oi(function(e){return xi(u(e,Xu))}),Zf=oi(function(e){var t=Ca(e);return Xu(t)&&(t=Q),xi(u(e,Xu),Co(t,2))}),Xf=oi(function(e){var t=Ca(e);return t="function"==typeof t?t:Q,xi(u(e,Xu),Q,t)}),Jf=oi(Za),Qf=oi(function(e){var t=e.length,n=t>1?e[t-1]:Q;return n="function"==typeof n?(e.pop(),n):Q,Xa(e,n)}),ep=bo(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Un(t,e)};return!(t>1||this.__actions__.length)&&r instanceof X&&Ro(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:nu,args:[i],thisArg:Q}),new Z(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(Q),e})):this.thru(i)}),tp=Vi(function(e,t,n){bc.call(e,n)?++e[n]:In(e,n,1)}),np=Qi(ga),rp=Qi(ma),ip=Vi(function(e,t,n){bc.call(e,n)?e[n].push(t):In(e,n,[t])}),op=oi(function(e,t,r){var i=-1,o="function"==typeof t,a=Zu(e)?ac(e.length):[];return $f(e,function(e){a[++i]=o?n(t,e,r):Dr(e,t,r)}),a}),ap=Vi(function(e,t,n){In(e,n,t)}),up=Vi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),sp=oi(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Fo(e,t[0],t[1])?t=[]:n>2&&Fo(t[0],t[1],t[2])&&(t=[t[0]]),Zr(e,rr(t,1),[])}),lp=zc||function(){return nr.Date.now()},cp=oi(function(e,t,n){var r=pe;if(n.length){var i=H(n,ko(cp));r|=ve}return po(e,r,t,n,i)}),fp=oi(function(e,t,n){var r=pe|de;if(n.length){var i=H(n,ko(fp));r|=ve}return po(t,r,e,n,i)}),pp=oi(function(e,t){return Gn(e,1,t)}),dp=oi(function(e,t,n){return Gn(e,Ds(t)||0,n)});Nu.Cache=fn;var hp=Cf(function(e,t){t=1==t.length&&wp(t[0])?c(t[0],E(Co())):c(rr(t,1),E(Co()));var r=t.length;return oi(function(i){for(var o=-1,a=Zc(i.length,r);++o<a;)i[o]=t[o].call(this,i[o]);return n(e,this,i)})}),gp=oi(function(e,t){var n=H(t,ko(gp));return po(e,ve,Q,t,n)}),mp=oi(function(e,t){var n=H(t,ko(mp));return po(e,ye,Q,t,n)}),vp=bo(function(e,t){return po(e,be,Q,Q,Q,t)}),yp=so(xr),$p=so(function(e,t){return e>=t}),bp=Or(function(){return arguments}())?Or:function(e){return ls(e)&&bc.call(e,"callee")&&!Pc.call(e,"callee")},wp=ac.isArray,xp=sr?E(sr):Er,_p=Wc||Wl,kp=lr?E(lr):Ar,Cp=cr?E(cr):jr,Sp=fr?E(fr):Ur,Tp=pr?E(pr):Rr,Dp=dr?E(dr):Fr,Op=so(Hr),Ep=so(function(e,t){return t>=e}),Ap=Wi(function(e,t){if(Vo(t)||Zu(t))return void qi(t,Vs(t),e);for(var n in t)bc.call(t,n)&&An(e,n,t[n])}),Mp=Wi(function(e,t){qi(t,Ws(t),e)}),Pp=Wi(function(e,t,n,r){qi(t,Ws(t),e,r)}),jp=Wi(function(e,t,n,r){qi(t,Vs(t),e,r)}),Np=bo(Un),Ip=oi(function(e){return e.push(Q,ho),n(Pp,Q,e)}),Up=oi(function(e){return e.push(Q,go),n(Lp,Q,e)}),Rp=no(function(e,t,n){e[t]=n},Ml(jl)),Fp=no(function(e,t,n){bc.call(e,t)?e[t].push(n):e[t]=[n]},Co),zp=oi(Dr),qp=Wi(function(e,t,n){Yr(e,t,n)}),Lp=Wi(function(e,t,n,r){Yr(e,t,n,r)}),Hp=bo(function(e,t){var n={};if(null==e)return n;var r=!1;t=c(t,function(t){return t=Si(t,e),r||(r=t.length>1),t}),qi(e,xo(e),n),r&&(n=qn(n,ue|se|le,mo));for(var i=t.length;i--;)yi(n,t[i]);return n}),Vp=bo(function(e,t){return null==e?{}:Xr(e,t)}),Wp=fo(Vs),Bp=fo(Ws),Yp=Zi(function(e,t,n){return t=t.toLowerCase(),e+(n?sl(t):t)}),Gp=Zi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Kp=Zi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Zp=Ki("toLowerCase"),Xp=Zi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Jp=Zi(function(e,t,n){return e+(n?" ":"")+ed(t)}),Qp=Zi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ed=Ki("toUpperCase"),td=oi(function(e,t){try{return n(e,Q,t)}catch(r){return rs(r)?r:new sc(r)}}),nd=bo(function(e,t){return i(t,function(t){t=ra(t),In(e,t,cp(e[t],e))}),e}),rd=eo(),id=eo(!0),od=oi(function(e,t){return function(n){return Dr(n,e,t)}}),ad=oi(function(e,t){return function(n){return Dr(e,n,t)}}),ud=io(c),sd=io(a),ld=io(h),cd=uo(),fd=uo(!0),pd=ro(function(e,t){return e+t},0),dd=co("ceil"),hd=ro(function(e,t){return e/t},1),gd=co("floor"),md=ro(function(e,t){return e*t},1),vd=co("round"),yd=ro(function(e,t){return e-t},0);return k.after=Du,k.ary=Ou,k.assign=Ap,k.assignIn=Mp,k.assignInWith=Pp,k.assignWith=jp,k.at=Np,k.before=Eu,k.bind=cp,k.bindAll=nd,k.bindKey=fp,k.castArray=Hu,k.chain=eu,k.chunk=ua,k.compact=sa,k.concat=la,k.cond=El,k.conforms=Al,k.constant=Ml,k.countBy=tp,k.create=Ms,k.curry=Au,k.curryRight=Mu,k.debounce=Pu,k.defaults=Ip,k.defaultsDeep=Up,k.defer=pp,k.delay=dp,k.difference=Uf,k.differenceBy=Rf,k.differenceWith=Ff,k.drop=ca,k.dropRight=fa,k.dropRightWhile=pa,k.dropWhile=da,k.fill=ha,k.filter=fu,k.flatMap=pu,k.flatMapDeep=du,k.flatMapDepth=hu,k.flatten=va,k.flattenDeep=ya,k.flattenDepth=$a,k.flip=ju,k.flow=rd,k.flowRight=id,k.fromPairs=ba,k.functions=Fs,k.functionsIn=zs,k.groupBy=ip,k.initial=_a,k.intersection=zf,k.intersectionBy=qf,k.intersectionWith=Lf,k.invert=Rp,k.invertBy=Fp,k.invokeMap=op,k.iteratee=Nl,k.keyBy=ap,k.keys=Vs,k.keysIn=Ws,k.map=yu,k.mapKeys=Bs,k.mapValues=Ys,k.matches=Il,k.matchesProperty=Ul,k.memoize=Nu,k.merge=qp,k.mergeWith=Lp,k.method=od,k.methodOf=ad,k.mixin=Rl,k.negate=Iu,k.nthArg=ql,k.omit=Hp,k.omitBy=Gs,k.once=Uu,k.orderBy=$u,k.over=ud,k.overArgs=hp,k.overEvery=sd,k.overSome=ld,k.partial=gp,k.partialRight=mp,k.partition=up,k.pick=Vp,k.pickBy=Ks,k.property=Ll,k.propertyOf=Hl,k.pull=Hf,k.pullAll=Da,k.pullAllBy=Oa,k.pullAllWith=Ea,k.pullAt=Vf,k.range=cd,k.rangeRight=fd,k.rearg=vp,k.reject=xu,k.remove=Aa,k.rest=Ru,k.reverse=Ma,k.sampleSize=ku,k.set=Xs,k.setWith=Js,k.shuffle=Cu,k.slice=Pa,k.sortBy=sp,k.sortedUniq=za,k.sortedUniqBy=qa,k.split=$l,k.spread=Fu,k.tail=La,k.take=Ha,k.takeRight=Va,k.takeRightWhile=Wa,k.takeWhile=Ba,k.tap=tu,k.throttle=zu,k.thru=nu,k.toArray=ks,k.toPairs=Wp,k.toPairsIn=Bp,k.toPath=Zl,k.toPlainObject=Os,k.transform=Qs,k.unary=qu,k.union=Wf,k.unionBy=Bf,k.unionWith=Yf,k.uniq=Ya,k.uniqBy=Ga,k.uniqWith=Ka,k.unset=el,k.unzip=Za,k.unzipWith=Xa,k.update=tl,k.updateWith=nl,k.values=rl,k.valuesIn=il,k.without=Gf,k.words=Ol,k.wrap=Lu,k.xor=Kf,k.xorBy=Zf,k.xorWith=Xf,k.zip=Jf,k.zipObject=Ja,k.zipObjectDeep=Qa,k.zipWith=Qf,k.entries=Wp,k.entriesIn=Bp,k.extend=Mp,k.extendWith=Pp,Rl(k,k),k.add=pd,k.attempt=td,k.camelCase=Yp,k.capitalize=sl,k.ceil=dd,k.clamp=ol,k.clone=Vu,k.cloneDeep=Bu,k.cloneDeepWith=Yu,k.cloneWith=Wu,k.conformsTo=Gu,k.deburr=ll,k.defaultTo=Pl,k.divide=hd,k.endsWith=cl,k.eq=Ku,k.escape=fl,k.escapeRegExp=pl,k.every=cu,k.find=np,k.findIndex=ga,k.findKey=Ps,k.findLast=rp,k.findLastIndex=ma,k.findLastKey=js,k.floor=gd,k.forEach=gu,k.forEachRight=mu,k.forIn=Ns,k.forInRight=Is,k.forOwn=Us,k.forOwnRight=Rs,k.get=qs,k.gt=yp,k.gte=$p,k.has=Ls,k.hasIn=Hs,k.head=wa,k.identity=jl,k.includes=vu,k.indexOf=xa,k.inRange=al,k.invoke=zp,k.isArguments=bp,k.isArray=wp,k.isArrayBuffer=xp,k.isArrayLike=Zu,k.isArrayLikeObject=Xu,k.isBoolean=Ju,k.isBuffer=_p,k.isDate=kp,k.isElement=Qu,k.isEmpty=es,k.isEqual=ts,k.isEqualWith=ns,k.isError=rs,k.isFinite=is,k.isFunction=os,k.isInteger=as,k.isLength=us,k.isMap=Cp,k.isMatch=cs,k.isMatchWith=fs,k.isNaN=ps,k.isNative=ds,k.isNil=gs,k.isNull=hs,k.isNumber=ms,k.isObject=ss,k.isObjectLike=ls,k.isPlainObject=vs,k.isRegExp=Sp,k.isSafeInteger=ys,k.isSet=Tp,k.isString=$s,k.isSymbol=bs,k.isTypedArray=Dp,k.isUndefined=ws,k.isWeakMap=xs,k.isWeakSet=_s,k.join=ka,k.kebabCase=Gp,k.last=Ca,k.lastIndexOf=Sa,k.lowerCase=Kp,k.lowerFirst=Zp,k.lt=Op,k.lte=Ep,k.max=Jl,k.maxBy=Ql,k.mean=ec,k.meanBy=tc,k.min=nc,k.minBy=rc,k.stubArray=Vl,k.stubFalse=Wl,k.stubObject=Bl,k.stubString=Yl,k.stubTrue=Gl,k.multiply=md,k.nth=Ta,k.noConflict=Fl,k.noop=zl,k.now=lp,k.pad=dl,k.padEnd=hl,k.padStart=gl,k.parseInt=ml,k.random=ul,k.reduce=bu,k.reduceRight=wu,k.repeat=vl,k.replace=yl,k.result=Zs,k.round=vd,k.runInContext=br,k.sample=_u,k.size=Su,k.snakeCase=Xp,k.some=Tu,k.sortedIndex=ja,k.sortedIndexBy=Na,k.sortedIndexOf=Ia,k.sortedLastIndex=Ua,k.sortedLastIndexBy=Ra,k.sortedLastIndexOf=Fa,k.startCase=Jp,k.startsWith=bl,k.subtract=yd,k.sum=ic,k.sumBy=oc,k.template=wl,k.times=Kl,k.toFinite=Cs,k.toInteger=Ss,k.toLength=Ts,k.toLower=xl,k.toNumber=Ds,k.toSafeInteger=Es,k.toString=As,k.toUpper=_l,k.trim=kl,k.trimEnd=Cl,k.trimStart=Sl,k.truncate=Tl,k.unescape=Dl,k.uniqueId=Xl,k.upperCase=Qp,k.upperFirst=ed,k.each=gu,k.eachRight=mu,k.first=wa,Rl(k,function(){var e={};return ir(k,function(t,n){bc.call(k.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),k.VERSION=ee,i(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){k[e].placeholder=k}),i(["drop","take"],function(e,t){X.prototype[e]=function(n){n=n===Q?1:Kc(Ss(n),0);var r=this.__filtered__&&!t?new X(this):this.clone();return r.__filtered__?r.__takeCount__=Zc(n,r.__takeCount__):r.__views__.push({size:Zc(n,Pe),type:e+(r.__dir__<0?"Right":"")}),r},X.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),i(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==Se||n==De;X.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Co(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),i(["head","last"],function(e,t){var n="take"+(t?"Right":"");X.prototype[e]=function(){return this[n](1).value()[0]}}),i(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[n](1)}}),X.prototype.compact=function(){return this.filter(jl)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=oi(function(e,t){return"function"==typeof e?new X(this):this.map(function(n){return Dr(n,e,t)})}),X.prototype.reject=function(e){return this.filter(Iu(Co(e)))},X.prototype.slice=function(e,t){e=Ss(e);var n=this;return n.__filtered__&&(e>0||0>t)?new X(n):(0>e?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==Q&&(t=Ss(t),n=0>t?n.dropRight(-t):n.take(t-e)),n)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(Pe)},ir(X.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=k[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(k.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof X,s=a[0],l=u||wp(t),c=function(e){var t=i.apply(k,f([e],a));return r&&p?t[0]:t};l&&n&&"function"==typeof s&&1!=s.length&&(u=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=o&&!p,g=u&&!d;if(!o&&l){t=g?t:new X(this);var m=e.apply(t,a);return m.__actions__.push({func:nu,args:[c],thisArg:Q}),new Z(m,p)}return h&&g?e.apply(this,a):(m=this.thru(c),h?r?m.value()[0]:m.value():m)})}),i(["pop","push","shift","sort","splice","unshift"],function(e){var t=gc[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);k.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(wp(i)?i:[],e)}return this[n](function(n){return t.apply(wp(n)?n:[],e)})}}),ir(X.prototype,function(e,t){var n=k[t];if(n){var r=n.name+"",i=lf[r]||(lf[r]=[]);i.push({name:t,func:n})}}),lf[to(Q,de).name]=[{name:"wrapper",func:Q}],X.prototype.clone=Rt,X.prototype.reverse=Zt,X.prototype.value=Xt,k.prototype.at=ep,k.prototype.chain=ru,k.prototype.commit=iu,k.prototype.next=ou,k.prototype.plant=uu,k.prototype.reverse=su,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=lu,k.prototype.first=k.prototype.head,Ic&&(k.prototype[Ic]=au),k},$r=yr();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(nr._=$r,define(function(){return $r})):ir?((ir.exports=$r)._=$r,rr._=$r):nr._=$r}.call(this),/**
   * @license
   * lodash 4.6.1 (Custom Build) <https://lodash.com/>
   * Build: `lodash exports="amd" iife="angular.module('ngLodash', []).constant('lodash', null).config(function ($provide) { %output% $provide.constant('lodash', _);});" --output build/ng-lodash.js`
   * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
   * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
   * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
   * Available under MIT license <https://lodash.com/license>
   */
  angular.module("ngLodash",[]).constant("lodash",null).config(["$provide",function(e){function t(e,t){return e.set(t[0],t[1]),e}function n(e,t){return e.add(t),e}function r(e,t,n){var r=n.length;switch(r){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function i(e,t,n,r){for(var i=-1,o=e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function o(e,t){for(var n=-1,r=e.length,i=-1,o=t.length,a=Array(r+o);++n<r;)a[n]=e[n];for(;++i<o;)a[n++]=t[i];return a}function a(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function u(e,t){for(var n=e.length;n--&&t(e[n],n,e)!==!1;);return e}function s(e,t){for(var n=-1,r=e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function l(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function c(e,t){return!!e.length&&b(e,t,0)>-1}function f(e,t,n){for(var r=-1,i=e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function p(e,t){for(var n=-1,r=e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function d(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function h(e,t,n,r){var i=-1,o=e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function g(e,t,n,r){var i=e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function m(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function v(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(u===K?a===a:n(a,u)))var u=a,s=o}return s}function y(e,t,n,r){var i;return n(e,function(e,n,o){return t(e,n,o)?(i=r?n:e,!1):void 0}),i}function $(e,t,n){for(var r=e.length,i=n?r:-1;n?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function b(e,t,n){if(t!==t)return R(e,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function w(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function x(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function _(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function k(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==K&&(n=n===K?o:n+o)}return n}function C(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function S(e,t){return p(t,function(t){return[t,e[t]]})}function T(e){return function(t){return e(t)}}function D(e,t){return p(t,function(t){return e[t]})}function O(e,t){for(var n=-1,r=e.length;++n<r&&b(t,e[n],0)>-1;);return n}function E(e,t){for(var n=e.length;n--&&b(t,e[n],0)>-1;);return n}function A(e){return e&&e.Object===Object?e:null}function M(e,t){if(e!==t){var n=null===e,r=e===K,i=e===e,o=null===t,a=t===K,u=t===t;if(e>t&&!o||!i||n&&!a&&u||r&&u)return 1;if(t>e&&!n||!u||o&&!r&&i||a&&i)return-1}return 0}function P(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,u=n.length;++r<a;){var s=M(i[r],o[r]);if(s){if(r>=u)return s;var l=n[r];return s*("desc"==l?-1:1)}}return e.index-t.index}function j(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&r++;return r}function N(e){return bn[e]}function I(e){return wn[e]}function U(e){return"\\"+kn[e]}function R(e,t,n){for(var r=e.length,i=t+(n?0:-1);n?i--:++i<r;){var o=e[i];if(o!==o)return i}return-1}function F(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function z(e,t){return e="number"==typeof e||Ct.test(e)?+e:-1,t=null==t?we:t,e>-1&&e%1==0&&t>e}function q(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function L(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function H(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];(a===t||a===ee)&&(e[n]=ee,o[i++]=n)}return o}function V(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function W(e){if(!e||!pn.test(e))return e.length;for(var t=fn.lastIndex=0;fn.test(e);)t++;return t}function B(e){return e.match(fn)}function Y(e){return xn[e]}function G(e){function A(e){if(qa(e)&&!Sc(e)&&!(e instanceof Et)){if(e instanceof Ot)return e;if(Gs.call(e,"__wrapped__"))return ji(e)}return new Ot(e)}function Ct(){}function Ot(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=K}function Et(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ke,this.__views__=[]}function At(){var e=new Et(this.__wrapped__);return e.__actions__=Fr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Fr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Fr(this.__views__),e}function Mt(){if(this.__filtered__){var e=new Et(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Pt(){var e=this.__wrapped__.value(),t=this.__dir__,n=Sc(e),r=0>t,i=n?e.length:0,o=vi(0,i,this.__views__),a=o.start,u=o.end,s=u-a,l=r?u:a-1,c=this.__iteratees__,f=c.length,p=0,d=$l(s,this.__takeCount__);if(!n||X>i||i==s&&d==s)return Tr(e,this.__actions__);var h=[];e:for(;s--&&d>p;){l+=t;for(var g=-1,m=e[l];++g<f;){var v=c[g],y=v.iteratee,$=v.type,b=y(m);if($==ye)m=b;else if(!b){if($==ve)continue e;break e}}h[p++]=m}return h}function jt(){}function Nt(e,t){return Ut(e,t)&&delete e[t]}function It(e,t){if(Sl){var n=e[t];return n===Q?K:n}return Gs.call(e,t)?e[t]:K}function Ut(e,t){return Sl?e[t]!==K:Gs.call(e,t)}function Rt(e,t,n){e[t]=Sl&&n===K?Q:n}function Ft(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zt(){this.__data__={hash:new jt,map:_l?new _l:[],string:new jt}}function qt(e){var t=this.__data__;return Ci(e)?Nt("string"==typeof e?t.string:t.hash,e):_l?t.map["delete"](e):en(t.map,e)}function Lt(e){var t=this.__data__;return Ci(e)?It("string"==typeof e?t.string:t.hash,e):_l?t.map.get(e):tn(t.map,e)}function Ht(e){var t=this.__data__;return Ci(e)?Ut("string"==typeof e?t.string:t.hash,e):_l?t.map.has(e):nn(t.map,e)}function Vt(e,t){var n=this.__data__;return Ci(e)?Rt("string"==typeof e?n.string:n.hash,e,t):_l?n.map.set(e,t):on(n.map,e,t),this}function Wt(e){var t=-1,n=e?e.length:0;for(this.__data__=new Ft;++t<n;)this.push(e[t])}function Bt(e,t){var n=e.__data__;if(Ci(t)){var r=n.__data__,i="string"==typeof t?r.string:r.hash;return i[t]===Q}return n.has(t)}function Yt(e){var t=this.__data__;if(Ci(e)){var n=t.__data__,r="string"==typeof e?n.string:n.hash;r[e]=Q}else t.set(e,Q)}function Gt(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kt(){this.__data__={array:[],map:null}}function Zt(e){var t=this.__data__,n=t.array;return n?en(n,e):t.map["delete"](e)}function Xt(e){var t=this.__data__,n=t.array;return n?tn(n,e):t.map.get(e)}function Jt(e){var t=this.__data__,n=t.array;return n?nn(n,e):t.map.has(e)}function Qt(e,t){var n=this.__data__,r=n.array;r&&(r.length<X-1?on(r,e,t):(n.array=null,n.map=new Ft(r)));var i=n.map;return i&&i.set(e,t),this}function en(e,t){var n=rn(e,t);if(0>n)return!1;var r=e.length-1;return n==r?e.pop():pl.call(e,n,1),!0}function tn(e,t){var n=rn(e,t);return 0>n?K:e[n][1]}function nn(e,t){return rn(e,t)>-1}function rn(e,t){for(var n=e.length;n--;)if(xa(e[n][0],t))return n;return-1}function on(e,t,n){var r=rn(e,t);0>r?e.push([t,n]):e[r][1]=n}function an(e,t,n,r){return e===K||xa(e,Bs[n])&&!Gs.call(r,n)?t:e}function un(e,t,n){(n!==K&&!xa(e[t],n)||"number"==typeof t&&n===K&&!(t in e))&&(e[t]=n)}function sn(e,t,n){var r=e[t];Gs.call(e,t)&&xa(r,n)&&(n!==K||t in e)||(e[t]=n)}function ln(e,t,n,r){return Il(e,function(e,i,o){t(r,e,n(e),o)}),r}function fn(e,t){return e&&zr(t,Tu(t),e)}function bn(e,t){for(var n=-1,r=null==e,i=t.length,o=Array(i);++n<i;)o[n]=r?K:ku(e,t[n]);return o}function wn(e){return Da(e)?e:[]}function xn(e){return"function"==typeof e?e:ys}function _n(e){return Sc(e)?e:Pi(e)}function kn(e,t,n){return e===e&&(n!==K&&(e=n>=e?e:n),t!==K&&(e=e>=t?e:t)),e}function Tn(e,t,n,r,i,o,u){var s;if(r&&(s=o?r(e,i,o,u):r(e)),s!==K)return s;if(!za(e))return e;var l=Sc(e);if(l){if(s=$i(e),!t)return Fr(e,s)}else{var c=mi(e),f=c==Me||c==Pe;if(Tc(e))return Er(e,t);if(c==Ie||c==Te||f&&!o){if(F(e))return o?e:{};if(s=bi(f?{}:e),!t)return s=fn(s,e),n?Lr(e,s):s}else{if(!$n[c])return o?e:{};s=wi(e,c,t)}}u||(u=new Gt);var p=u.get(e);return p?p:(u.set(e,s),(l?a:zn)(e,function(i,o){sn(s,o,Tn(i,t,n,r,o,e,u))}),n&&!l?Lr(e,s):s)}function Dn(e){var t=Tu(e),n=t.length;return function(r){if(null==r)return!n;for(var i=n;i--;){var o=t[i],a=e[o],u=r[o];if(u===K&&!(o in Object(r))||!a(u))return!1}return!0}}function En(e){return za(e)?ll(e):{}}function An(e,t,n){if("function"!=typeof e)throw new Vs(J);return fl(function(){e.apply(K,n)},t)}function Mn(e,t,n,r){var i=-1,o=c,a=!0,u=e.length,s=[],l=t.length;if(!u)return s;n&&(t=p(t,T(n))),r?(o=f,a=!1):t.length>=X&&(o=Bt,a=!1,t=new Wt(t));e:for(;++i<u;){var d=e[i],h=n?n(d):d;if(a&&h===h){for(var g=l;g--;)if(t[g]===h)continue e;s.push(d)}else o(t,h,r)||s.push(d)}return s}function Pn(e,t){var n=!0;return Il(e,function(e,r,i){return n=!!t(e,r,i)}),n}function In(e,t,n,r){var i=e.length;for(n=lu(n),0>n&&(n=-n>i?0:i+n),r=r===K||r>i?i:lu(r),0>r&&(r+=i),r=n>r?0:cu(r);r>n;)e[n++]=t;return e}function Un(e,t){var n=[];return Il(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Rn(e,t,n,r){r||(r=[]);for(var i=-1,o=e.length;++i<o;){var a=e[i];t>0&&Da(a)&&(n||Sc(a)||Ca(a))?t>1?Rn(a,t-1,n,r):d(r,a):n||(r[r.length]=a)}return r}function Fn(e,t){return null==e?e:Rl(e,t,Du)}function zn(e,t){return e&&Rl(e,t,Tu)}function qn(e,t){return e&&Fl(e,t,Tu)}function Ln(e,t){return l(t,function(t){return Ua(e[t])})}function Hn(e,t){t=ki(t,e)?[t+""]:_n(t);for(var n=0,r=t.length;null!=e&&r>n;)e=e[t[n++]];return n&&n==r?e:K}function Vn(e,t){return Gs.call(e,t)||"object"==typeof e&&t in e&&null===al(e)}function Wn(e,t){return t in Object(e)}function Bn(e,t,n){return e>=$l(t,n)&&e<yl(t,n)}function Yn(e,t,n){for(var r=n?f:c,i=e[0].length,o=e.length,a=o,u=Array(o),s=1/0,l=[];a--;){var d=e[a];a&&t&&(d=p(d,T(t))),s=$l(d.length,s),u[a]=!n&&(t||i>=120&&d.length>=120)?new Wt(a&&d):K}d=e[0];var h=-1,g=u[0];e:for(;++h<i&&l.length<s;){var m=d[h],v=t?t(m):m;if(!(g?Bt(g,v):r(l,v,n))){for(a=o;--a;){var y=u[a];if(!(y?Bt(y,v):r(e[a],v,n)))continue e}g&&g.push(v),l.push(m)}}return l}function Gn(e,t,n,r){return zn(e,function(e,i,o){t(r,n(e),i,o)}),r}function Kn(e,t,n){ki(t,e)||(t=_n(t),e=Ai(e,t),t=Ji(t));var i=null==e?e:e[t];return null==i?K:r(i,e,n)}function Zn(e,t,n,r,i){return e===t?!0:null==e||null==t||!za(e)&&!qa(t)?e!==e&&t!==t:Xn(e,t,Zn,n,r,i)}function Xn(e,t,n,r,i,o){var a=Sc(e),u=Sc(t),s=De,l=De;a||(s=mi(e),s=s==Te?Ie:s),u||(l=mi(t),l=l==Te?Ie:l);var c=s==Ie&&!F(e),f=l==Ie&&!F(t),p=s==l;if(p&&!c)return o||(o=new Gt),a||nu(e)?si(e,t,n,r,i,o):li(e,t,s,n,r,i,o);if(!(i&pe)){var d=c&&Gs.call(e,"__wrapped__"),h=f&&Gs.call(t,"__wrapped__");if(d||h)return o||(o=new Gt),n(d?e.value():e,h?t.value():t,r,i,o)}return p?(o||(o=new Gt),ci(e,t,n,r,i,o)):!1}function Jn(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var u=n[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<o;){u=n[i];var s=u[0],l=e[s],c=u[1];if(a&&u[2]){if(l===K&&!(s in e))return!1}else{var f=new Gt,p=r?r(l,c,s,e,t,f):K;if(!(p===K?Zn(c,l,r,fe|pe,f):p))return!1}}return!0}function Qn(e){var t=typeof e;return"function"==t?e:null==e?ys:"object"==t?Sc(e)?ir(e[0],e[1]):rr(e):Ss(e)}function er(e){return vl(Object(e))}function tr(e){e=null==e?e:Object(e);var t=[];for(var n in e)t.push(n);return t}function nr(e,t){var n=-1,r=Ta(e)?Array(e.length):[];return Il(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function rr(e){var t=di(e);if(1==t.length&&t[0][2]){var n=t[0][0],r=t[0][1];return function(e){return null==e?!1:e[n]===r&&(r!==K||n in Object(e))}}return function(n){return n===e||Jn(n,e,t)}}function ir(e,t){return function(n){var r=ku(n,e);return r===K&&r===t?Su(n,e):Zn(t,r,K,fe|pe)}}function or(e,t,n,r,i){if(e!==t){var o=Sc(t)||nu(t)?K:Du(t);a(o||t,function(a,u){if(o&&(u=a,a=t[u]),za(a))i||(i=new Gt),ar(e,t,u,n,or,r,i);else{var s=r?r(e[u],a,u+"",e,t,i):K;s===K&&(s=a),un(e,u,s)}})}}function ar(e,t,n,r,i,o,a){var u=e[n],s=t[n],l=a.get(s);if(l)return void un(e,n,l);var c=o?o(u,s,n+"",e,t,a):K,f=c===K;f&&(c=s,Sc(s)||nu(s)?Sc(u)?c=u:Da(u)?c=Fr(u):(f=!1,c=Tn(s,!o)):Za(s)||Ca(s)?Ca(u)?c=pu(u):!za(u)||r&&Ua(u)?(f=!1,c=Tn(s,!o)):c=u:f=!1),a.set(s,c),f&&i(c,s,r,o,a),a["delete"](s),un(e,n,c)}function ur(e,t,n){var r=-1;t=p(t.length?t:Array(1),pi());var i=nr(e,function(e,n,i){var o=p(t,function(t){return t(e)});return{criteria:o,index:++r,value:e}});return _(i,function(e,t){return P(e,t,n)})}function sr(e,t){return e=Object(e),h(t,function(t,n){return n in e&&(t[n]=e[n]),t},{})}function lr(e,t){var n={};return Fn(e,function(e,r){t(e,r)&&(n[r]=e)}),n}function cr(e){return function(t){return null==t?K:t[e]}}function fr(e){return function(t){return Hn(t,e)}}function pr(e,t,n,r){var i=r?w:b,o=-1,a=t.length,u=e;for(n&&(u=p(e,T(n)));++o<a;)for(var s=0,l=t[o],c=n?n(l):l;(s=i(u,c,s,r))>-1;)u!==e&&pl.call(u,s,1),pl.call(e,s,1);return e}function dr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(r==n||i!=o){var o=i;if(z(i))pl.call(e,i,1);else if(ki(i,e))delete e[i];else{var a=_n(i),u=Ai(e,a);null!=u&&delete u[Ji(a)]}}}return e}function hr(e,t){return e+hl(wl()*(t-e+1))}function gr(e,t,n,r){for(var i=-1,o=yl(dl((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}function mr(e,t,n,r){t=ki(t,e)?[t+""]:_n(t);for(var i=-1,o=t.length,a=o-1,u=e;null!=u&&++i<o;){var s=t[i];if(za(u)){var l=n;if(i!=a){var c=u[s];l=r?r(c,s,u):K,l===K&&(l=null==c?z(t[i+1])?[]:{}:c)}sn(u,s,l)}u=u[s]}return e}function vr(e,t,n){var r=-1,i=e.length;0>t&&(t=-t>i?0:i+t),n=n>i?i:n,0>n&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}function yr(e,t){var n;return Il(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function $r(e,t,n){var r=0,i=e?e.length:r;if("number"==typeof t&&t===t&&Se>=i){for(;i>r;){var o=r+i>>>1,a=e[o];(n?t>=a:t>a)&&null!==a?r=o+1:i=o}return i}return br(e,t,ys,n)}function br(e,t,n,r){t=n(t);for(var i=0,o=e?e.length:0,a=t!==t,u=null===t,s=t===K;o>i;){var l=hl((i+o)/2),c=n(e[l]),f=c!==K,p=c===c;if(a)var d=p||r;else d=u?p&&f&&(r||null!=c):s?p&&(r||f):null==c?!1:r?t>=c:t>c;d?i=l+1:o=l}return $l(o,Ce)}function wr(e){return xr(e)}function xr(e,t){for(var n=0,r=e.length,i=e[0],o=t?t(i):i,a=o,u=1,s=[i];++n<r;)i=e[n],o=t?t(i):i,xa(o,a)||(a=o,s[u++]=i);return s}function _r(e,t,n){var r=-1,i=c,o=e.length,a=!0,u=[],s=u;if(n)a=!1,i=f;else if(o>=X){var l=t?null:ql(e);if(l)return V(l);a=!1,i=Bt,s=new Wt}else s=t?[]:u;e:for(;++r<o;){var p=e[r],d=t?t(p):p;if(a&&d===d){for(var h=s.length;h--;)if(s[h]===d)continue e;t&&s.push(d),u.push(p)}else i(s,d,n)||(s!==u&&s.push(d),u.push(p))}return u}function kr(e,t){t=ki(t,e)?[t+""]:_n(t),e=Ai(e,t);var n=Ji(t);return null!=e&&Cu(e,n)?delete e[n]:!0}function Cr(e,t,n,r){return mr(e,t,n(Hn(e,t)),r)}function Sr(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?vr(e,r?0:o,r?o+1:i):vr(e,r?o+1:0,r?i:o)}function Tr(e,t){var n=e;return n instanceof Et&&(n=n.value()),h(t,function(e,t){return t.func.apply(t.thisArg,d([e],t.args))},n)}function Dr(e,t,n){for(var r=-1,i=e.length;++r<i;)var o=o?d(Mn(o,e[r],t,n),Mn(e[r],o,t,n)):e[r];return o&&o.length?_r(o,t,n):[]}function Or(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;)n(a,e[r],o>r?t[r]:K);return a}function Er(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function Ar(e){var t=new e.constructor(e.byteLength);return new rl(t).set(new rl(e)),t}function Mr(e){return h(L(e),t,new e.constructor)}function Pr(e){var t=new e.constructor(e.source,$t.exec(e));return t.lastIndex=e.lastIndex,t}function jr(e){return h(V(e),n,new e.constructor)}function Nr(e){return jl?Object(jl.call(e)):{}}function Ir(e,t){var n=t?Ar(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ur(e,t,n,r){for(var i=-1,o=e.length,a=n.length,u=-1,s=t.length,l=yl(o-a,0),c=Array(s+l),f=!r;++u<s;)c[u]=t[u];for(;++i<a;)(f||o>i)&&(c[n[i]]=e[i]);for(;l--;)c[u++]=e[i++];return c}function Rr(e,t,n,r){for(var i=-1,o=e.length,a=-1,u=n.length,s=-1,l=t.length,c=yl(o-u,0),f=Array(c+l),p=!r;++i<c;)f[i]=e[i];for(var d=i;++s<l;)f[d+s]=t[s];for(;++a<u;)(p||o>i)&&(f[d+n[a]]=e[i++]);return f}function Fr(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function zr(e,t,n){return qr(e,t,n)}function qr(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],u=r?r(n[a],e[a],a,n,e):e[a];sn(n,a,u)}return n}function Lr(e,t){return zr(e,Vl(e),t)}function Hr(e,t){return function(n,r){var o=Sc(n)?i:ln,a=t?t():{};return o(n,e,pi(r),a)}}function Vr(e){return pa(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:K,a=i>2?n[2]:K;for(o="function"==typeof o?(i--,o):K,a&&_i(n[0],n[1],a)&&(o=3>i?K:o,i=1),t=Object(t);++r<i;){var u=n[r];u&&e(t,u,r,o)}return t})}function Wr(e,t){return function(n,r){if(null==n)return n;if(!Ta(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function Br(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),u=a.length;u--;){var s=a[e?u:++i];if(n(o[s],s,o)===!1)break}return t}}function Yr(e,t,n){function r(){var t=this&&this!==jn&&this instanceof r?o:e;return t.apply(i?n:this,arguments)}var i=t&te,o=Zr(e);return r}function Gr(e){return function(t){t=hu(t);var n=pn.test(t)?B(t):K,r=n?n[0]:t.charAt(0),i=n?n.slice(1).join(""):t.slice(1);return r[e]()+i}}function Kr(e){return function(t){return h(hs(Gu(t)),e,"")}}function Zr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=En(e.prototype),r=e.apply(n,t);return za(r)?r:n}}function Xr(e,t,n){function i(){for(var a=arguments.length,u=Array(a),s=a,l=gi(i);s--;)u[s]=arguments[s];var c=3>a&&u[0]!==l&&u[a-1]!==l?[]:H(u,l);if(a-=c.length,n>a)return oi(e,t,Qr,i.placeholder,K,u,c,K,K,n-a);var f=this&&this!==jn&&this instanceof i?o:e;return r(f,this,u)}var o=Zr(e);return i}function Jr(e){return pa(function(t){t=Rn(t,1);var n=t.length,r=n,i=Ot.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new Vs(J);if(i&&!a&&"wrapper"==fi(o))var a=new Ot([],!0)}for(r=a?r:n;++r<n;){o=t[r];var u=fi(o),s="wrapper"==u?Ll(o):K;a=s&&Si(s[0])&&s[1]==(se|ie|ae|le)&&!s[4].length&&1==s[9]?a[fi(s[0])].apply(a,s[3]):1==o.length&&Si(o)?a[u]():a.thru(o)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&Sc(r)&&r.length>=X)return a.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}function Qr(e,t,n,r,i,o,a,u,s,l){function c(){for(var v=arguments.length,y=v,$=Array(v);y--;)$[y]=arguments[y];if(h)var b=gi(c),w=j($,b);if(r&&($=Ur($,r,i,h)),o&&($=Rr($,o,a,h)),v-=w,h&&l>v){var x=H($,b);return oi(e,t,Qr,c.placeholder,n,$,x,u,s,l-v)}var _=p?n:this,k=d?_[e]:e;return v=$.length,u?$=Mi($,u):g&&v>1&&$.reverse(),f&&v>s&&($.length=s),this&&this!==jn&&this instanceof c&&(k=m||Zr(k)),k.apply(_,$)}var f=t&se,p=t&te,d=t&ne,h=t&(ie|oe),g=t&ce,m=d?K:Zr(e);return c}function ei(e,t){return function(n,r){return Gn(n,e,t(r),{})}}function ti(e){return pa(function(t){return t=p(Rn(t,1),pi()),pa(function(n){var i=this;return e(t,function(e){return r(e,i,n)})})})}function ni(e,t,n){t=lu(t);var r=W(e);if(!t||r>=t)return"";var i=t-r;n=n===K?" ":n+"";var o=ns(n,dl(i/W(n)));return pn.test(n)?B(o).slice(0,i).join(""):o.slice(0,i)}function ri(e,t,n,i){function o(){for(var t=-1,s=arguments.length,l=-1,c=i.length,f=Array(c+s),p=this&&this!==jn&&this instanceof o?u:e;++l<c;)f[l]=i[l];for(;s--;)f[l++]=arguments[++t];return r(p,a?n:this,f)}var a=t&te,u=Zr(e);return o}function ii(e){return function(t,n,r){return r&&"number"!=typeof r&&_i(t,n,r)&&(n=r=K),t=fu(t),t=t===t?t:0,n===K?(n=t,t=0):n=fu(n)||0,r=r===K?n>t?1:-1:fu(r)||0,gr(t,n,r,e)}}function oi(e,t,n,r,i,o,a,u,s,l){var c=t&ie,f=u?Fr(u):K,p=c?a:K,d=c?K:a,h=c?o:K,g=c?K:o;t|=c?ae:ue,t&=~(c?ue:ae),t&re||(t&=~(te|ne));var m=[e,t,i,h,p,g,d,f,s,l],v=n.apply(K,m);return Si(e)&&Wl(v,m),v.placeholder=r,v}function ai(e){var t=Ls[e];return function(e,n){if(e=fu(e),n=lu(n)){var r=(hu(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(hu(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}function ui(e,t,n,r,i,o,a,u){var s=t&ne;if(!s&&"function"!=typeof e)throw new Vs(J);var l=r?r.length:0;if(l||(t&=~(ae|ue),r=i=K),a=a===K?a:yl(lu(a),0),u=u===K?u:lu(u),l-=i?i.length:0,t&ue){var c=r,f=i;r=i=K}var p=s?K:Ll(e),d=[e,t,n,r,i,c,f,o,a,u];if(p&&Oi(d,p),e=d[0],t=d[1],n=d[2],r=d[3],i=d[4],u=d[9]=null==d[9]?s?0:e.length:yl(d[9]-l,0),!u&&t&(ie|oe)&&(t&=~(ie|oe)),t&&t!=te)h=t==ie||t==oe?Xr(e,t,u):t!=ae&&t!=(te|ae)||i.length?Qr.apply(K,d):ri(e,t,n,r);else var h=Yr(e,t,n);var g=p?zl:Wl;return g(h,d)}function si(e,t,n,r,i,o){var a=-1,u=i&pe,s=i&fe,l=e.length,c=t.length;if(l!=c&&!(u&&c>l))return!1;var f=o.get(e);if(f)return f==t;var p=!0;for(o.set(e,t);++a<l;){var d=e[a],h=t[a];if(r)var g=u?r(h,d,a,t,e,o):r(d,h,a,e,t,o);if(g!==K){if(g)continue;p=!1;break}if(s){if(!m(t,function(e){return d===e||n(d,e,r,i,o)})){p=!1;break}}else if(d!==h&&!n(d,h,r,i,o)){p=!1;break}}return o["delete"](e),p}function li(e,t,n,r,i,o,a){switch(n){case He:return e.byteLength==t.byteLength&&r(new rl(e),new rl(t))?!0:!1;case Oe:case Ee:return+e==+t;case Ae:return e.name==t.name&&e.message==t.message;case Ne:return e!=+e?t!=+t:e==+t;case Ue:case Fe:return e==t+"";case je:var u=L;case Re:var s=o&pe;if(u||(u=V),e.size!=t.size&&!s)return!1;var l=a.get(e);return l?l==t:si(u(e),u(t),r,i,o|fe,a.set(e,t));case ze:if(jl)return jl.call(e)==jl.call(t)}return!1}function ci(e,t,n,r,i,o){var a=i&pe,u=Tu(e),s=u.length,l=Tu(t),c=l.length;if(s!=c&&!a)return!1;for(var f=s;f--;){var p=u[f];if(!(a?p in t:Vn(t,p)))return!1}var d=o.get(e);if(d)return d==t;var h=!0;o.set(e,t);for(var g=a;++f<s;){p=u[f];var m=e[p],v=t[p];if(r)var y=a?r(v,m,p,t,e,o):r(m,v,p,e,t,o);if(!(y===K?m===v||n(m,v,r,i,o):y)){h=!1;break}g||(g="constructor"==p)}if(h&&!g){var $=e.constructor,b=t.constructor;$!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof $&&$ instanceof $&&"function"==typeof b&&b instanceof b)&&(h=!1)}return o["delete"](e),h}function fi(e){for(var t=e.name+"",n=Ol[t],r=Gs.call(Ol,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function pi(){var e=A.iteratee||$s;return e=e===$s?Qn:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e){for(var t=Iu(e),n=t.length;n--;)t[n][2]=Di(t[n][1]);return t}function hi(e,t){var n=e[t];return Ba(n)?n:K}function gi(e){var t=Gs.call(A,"placeholder")?A:e;return t.placeholder}function mi(e){return Xs.call(e)}function vi(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=$l(t,e+a);break;case"takeRight":e=yl(e,t-a)}}return{start:e,end:t}}function yi(e,t,n){if(null==e)return!1;var r=n(e,t);r||ki(t)||(t=_n(t),e=Ai(e,t),null!=e&&(t=Ji(t),r=n(e,t)));var i=e?e.length:K;return r||!!i&&Fa(i)&&z(t,i)&&(Sc(e)||eu(e)||Ca(e))}function $i(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Gs.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function bi(e){return"function"!=typeof e.constructor||Ti(e)?{}:En(al(e))}function wi(e,t,n){var r=e.constructor;switch(t){case He:return Ar(e);case Oe:case Ee:return new r(+e);case Ve:case We:case Be:case Ye:case Ge:case Ke:case Ze:case Xe:case Je:return Ir(e,n);case je:return Mr(e);case Ne:case Fe:return new r(e);case Ue:return Pr(e);case Re:return jr(e);case ze:return Nr(e)}}function xi(e){var t=e?e.length:K;return Fa(t)&&(Sc(e)||eu(e)||Ca(e))?C(t,String):null}function _i(e,t,n){if(!za(n))return!1;var r=typeof t;return("number"==r?Ta(n)&&z(t,n.length):"string"==r&&t in n)?xa(n[t],e):!1}function ki(e,t){return"number"==typeof e?!0:!Sc(e)&&(ct.test(e)||!lt.test(e)||null!=t&&e in Object(t))}function Ci(e){var t=typeof e;return"number"==t||"boolean"==t||"string"==t&&"__proto__"!=e||null==e}function Si(e){var t=fi(e),n=A[t];if("function"!=typeof n||!(t in Et.prototype))return!1;if(e===n)return!0;var r=Ll(n);return!!r&&e===r[0]}function Ti(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||Bs;return e===n}function Di(e){return e===e&&!za(e)}function Oi(e,t){var n=e[1],r=t[1],i=n|r,o=(te|ne|se)>i,a=r==se&&n==ie||r==se&&n==le&&e[7].length<=t[8]||r==(se|le)&&t[7].length<=t[8]&&n==ie;if(!o&&!a)return e;r&te&&(e[2]=t[2],i|=n&te?0:re);var u=t[3];if(u){var s=e[3];e[3]=s?Ur(s,u,t[4]):Fr(u),e[4]=s?H(e[3],ee):Fr(t[4])}return u=t[5],u&&(s=e[5],e[5]=s?Rr(s,u,t[6]):Fr(u),e[6]=s?H(e[5],ee):Fr(t[6])),u=t[7],u&&(e[7]=Fr(u)),r&se&&(e[8]=null==e[8]?t[8]:$l(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function Ei(e,t,n,r,i,o){return za(e)&&za(t)&&or(e,t,K,Ei,o.set(t,e)),e}function Ai(e,t){return 1==t.length?e:ku(e,vr(t,0,-1))}function Mi(e,t){for(var n=e.length,r=$l(t.length,n),i=Fr(e);r--;){var o=t[r];e[r]=z(o,n)?i[o]:K}return e}function Pi(e){var t=[];return hu(e).replace(ft,function(e,n,r,i){t.push(r?i.replace(vt,"$1"):n||e)}),t}function ji(e){if(e instanceof Et)return e.clone();var t=new Ot(e.__wrapped__,e.__chain__);return t.__actions__=Fr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ni(e,t){t=yl(lu(t),0);var n=e?e.length:0;if(!n||1>t)return[];for(var r=0,i=0,o=Array(dl(n/t));n>r;)o[i++]=vr(e,r,r+=t);return o}function Ii(e){for(var t=-1,n=e?e.length:0,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i}function Ui(e,t,n){var r=e?e.length:0;return r?(t=n||t===K?1:lu(t),vr(e,0>t?0:t,r)):[]}function Ri(e,t,n){var r=e?e.length:0;return r?(t=n||t===K?1:lu(t),t=r-t,vr(e,0,0>t?0:t)):[]}function Fi(e,t){return e&&e.length?Sr(e,pi(t,3),!0,!0):[]}function zi(e,t){return e&&e.length?Sr(e,pi(t,3),!0):[]}function qi(e,t,n,r){var i=e?e.length:0;return i?(n&&"number"!=typeof n&&_i(e,t,n)&&(n=0,r=i),In(e,t,n,r)):[]}function Li(e,t){return e&&e.length?$(e,pi(t,3)):-1}function Hi(e,t){return e&&e.length?$(e,pi(t,3),!0):-1}function Vi(e){var t=e?e.length:0;return t?Rn(e,1):[]}function Wi(e){var t=e?e.length:0;return t?Rn(e,be):[]}function Bi(e,t){var n=e?e.length:0;return n?(t=t===K?1:lu(t),Rn(e,t)):[]}function Yi(e){for(var t=-1,n=e?e.length:0,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function Gi(e){return e?e[0]:K}function Ki(e,t,n){var r=e?e.length:0;return r?(n=lu(n),0>n&&(n=yl(r+n,0)),b(e,t,n)):-1}function Zi(e){return Ri(e,1)}function Xi(e,t){return e?ml.call(e,t):""}function Ji(e){var t=e?e.length:0;return t?e[t-1]:K}function Qi(e,t,n){var r=e?e.length:0;if(!r)return-1;var i=r;if(n!==K&&(i=lu(n),i=(0>i?yl(r+i,0):$l(i,r-1))+1),t!==t)return R(e,i,!0);for(;i--;)if(e[i]===t)return i;return-1}function eo(e,t){return e&&e.length&&t&&t.length?pr(e,t):e}function to(e,t,n){return e&&e.length&&t&&t.length?pr(e,t,pi(n)):e}function no(e,t,n){return e&&e.length&&t&&t.length?pr(e,t,K,n):e}function ro(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=pi(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return dr(e,i),n}function io(e){return e?xl.call(e):e}function oo(e,t,n){var r=e?e.length:0;return r?(n&&"number"!=typeof n&&_i(e,t,n)?(t=0,n=r):(t=null==t?0:lu(t),n=n===K?r:lu(n)),vr(e,t,n)):[]}function ao(e,t){return $r(e,t)}function uo(e,t,n){return br(e,t,pi(n))}function so(e,t){var n=e?e.length:0;if(n){var r=$r(e,t);if(n>r&&xa(e[r],t))return r}return-1}function lo(e,t){return $r(e,t,!0)}function co(e,t,n){return br(e,t,pi(n),!0)}function fo(e,t){var n=e?e.length:0;if(n){var r=$r(e,t,!0)-1;if(xa(e[r],t))return r}return-1}function po(e){return e&&e.length?wr(e):[]}function ho(e,t){return e&&e.length?xr(e,pi(t)):[]}function go(e){return Ui(e,1)}function mo(e,t,n){return e&&e.length?(t=n||t===K?1:lu(t),vr(e,0,0>t?0:t)):[]}function vo(e,t,n){var r=e?e.length:0;return r?(t=n||t===K?1:lu(t),t=r-t,vr(e,0>t?0:t,r)):[]}function yo(e,t){return e&&e.length?Sr(e,pi(t,3),!1,!0):[]}function $o(e,t){return e&&e.length?Sr(e,pi(t,3)):[]}function bo(e){return e&&e.length?_r(e):[]}function wo(e,t){return e&&e.length?_r(e,pi(t)):[]}function xo(e,t){return e&&e.length?_r(e,K,t):[]}function _o(e){if(!e||!e.length)return[];var t=0;return e=l(e,function(e){return Da(e)?(t=yl(e.length,t),!0):void 0}),C(t,function(t){return p(e,cr(t))})}function ko(e,t){if(!e||!e.length)return[];var n=_o(e);return null==t?n:p(n,function(e){return r(t,K,e)})}function Co(e,t){return Or(e||[],t||[],sn)}function So(e,t){return Or(e||[],t||[],mr)}function To(e){var t=A(e);return t.__chain__=!0,t}function Do(e,t){return t(e),e}function Oo(e,t){return t(e)}function Eo(){return To(this)}function Ao(){return new Ot(this.value(),this.__chain__)}function Mo(e){return this.map(e).flatten()}function Po(){this.__values__===K&&(this.__values__=su(this.value()));var e=this.__index__>=this.__values__.length,t=e?K:this.__values__[this.__index__++];return{done:e,value:t}}function jo(){return this}function No(e){for(var t,n=this;n instanceof Ct;){var r=ji(n);r.__index__=0,r.__values__=K,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function Io(){var e=this.__wrapped__;if(e instanceof Et){var t=e;return this.__actions__.length&&(t=new Et(this)),t=t.reverse(),t.__actions__.push({func:Oo,args:[io],thisArg:K}),new Ot(t,this.__chain__)}return this.thru(io)}function Uo(){return Tr(this.__wrapped__,this.__actions__)}function Ro(e,t,n){var r=Sc(e)?s:Pn;return n&&_i(e,t,n)&&(t=K),r(e,pi(t,3))}function Fo(e,t){var n=Sc(e)?l:Un;return n(e,pi(t,3))}function zo(e,t){if(t=pi(t,3),Sc(e)){var n=$(e,t);return n>-1?e[n]:K}return y(e,t,Il)}function qo(e,t){if(t=pi(t,3),Sc(e)){var n=$(e,t,!0);return n>-1?e[n]:K}return y(e,t,Ul)}function Lo(e,t){return Rn(Bo(e,t),1)}function Ho(e,t){return"function"==typeof t&&Sc(e)?a(e,t):Il(e,xn(t))}function Vo(e,t){return"function"==typeof t&&Sc(e)?u(e,t):Ul(e,xn(t))}function Wo(e,t,n,r){e=Ta(e)?e:Lu(e),n=n&&!r?lu(n):0;var i=e.length;return 0>n&&(n=yl(i+n,0)),eu(e)?i>=n&&e.indexOf(t,n)>-1:!!i&&b(e,t,n)>-1}function Bo(e,t){var n=Sc(e)?p:nr;return n(e,pi(t,3))}function Yo(e,t,n,r){return null==e?[]:(Sc(t)||(t=null==t?[]:[t]),n=r?K:n,Sc(n)||(n=null==n?[]:[n]),ur(e,t,n))}function Go(e,t,n){var r=Sc(e)?h:x,i=arguments.length<3;return r(e,pi(t,4),n,i,Il)}function Ko(e,t,n){var r=Sc(e)?g:x,i=arguments.length<3;return r(e,pi(t,4),n,i,Ul)}function Zo(e,t){var n=Sc(e)?l:Un;return t=pi(t,3),n(e,function(e,n,r){return!t(e,n,r)})}function Xo(e){var t=Ta(e)?e:Lu(e),n=t.length;return n>0?t[hr(0,n-1)]:K}function Jo(e,t){var n=-1,r=su(e),i=r.length,o=i-1;for(t=kn(lu(t),0,i);++n<t;){var a=hr(n,o),u=r[a];r[a]=r[n],r[n]=u}return r.length=t,r}function Qo(e){return Jo(e,ke)}function ea(e){if(null==e)return 0;if(Ta(e)){var t=e.length;return t&&eu(e)?W(e):t}return Tu(e).length}function ta(e,t,n){var r=Sc(e)?m:yr;return n&&_i(e,t,n)&&(t=K),r(e,pi(t,3))}function na(e,t){if("function"!=typeof t)throw new Vs(J);return e=lu(e),function(){return--e<1?t.apply(this,arguments):void 0}}function ra(e,t,n){return t=n?K:t,t=e&&null==t?e.length:t,ui(e,se,K,K,K,K,t)}function ia(e,t){var n;if("function"!=typeof t)throw new Vs(J);return e=lu(e),function(){return--e>0&&(n=t.apply(this,arguments)),1>=e&&(t=K),n}}function oa(e,t,n){t=n?K:t;var r=ui(e,ie,K,K,K,K,K,t);return r.placeholder=oa.placeholder,r}function aa(e,t,n){t=n?K:t;var r=ui(e,oe,K,K,K,K,K,t);return r.placeholder=aa.placeholder,r}function ua(e,t,n){function r(){h&&il(h),c&&il(c),m=0,l=c=d=h=g=K}function i(t,n){n&&il(n),c=h=g=K,t&&(m=vc(),f=e.apply(d,l),h||c||(l=d=K))}function o(){var e=t-(vc()-p);0>=e||e>t?i(g,c):h=fl(o,e)}function a(){return(h&&g||c&&$)&&(f=e.apply(d,l)),r(),f}function u(){i($,h)}function s(){if(l=arguments,p=vc(),d=this,g=$&&(h||!v),y===!1)var n=v&&!h;else{m||c||v||(m=p);var r=y-(p-m),i=(0>=r||r>y)&&(v||c);i?(c&&(c=il(c)),m=p,f=e.apply(d,l)):c||(c=fl(u,r))}return i&&h?h=il(h):h||t===y||(h=fl(o,t)),n&&(i=!0,f=e.apply(d,l)),!i||h||c||(l=d=K),f}var l,c,f,p,d,h,g,m=0,v=!1,y=!1,$=!0;if("function"!=typeof e)throw new Vs(J);return t=fu(t)||0,
  za(n)&&(v=!!n.leading,y="maxWait"in n&&yl(fu(n.maxWait)||0,t),$="trailing"in n?!!n.trailing:$),s.cancel=r,s.flush=a,s}function sa(e){return ui(e,ce)}function la(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new Vs(J);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new la.Cache,n}function ca(e){if("function"!=typeof e)throw new Vs(J);return function(){return!e.apply(this,arguments)}}function fa(e){return ia(2,e)}function pa(e,t){if("function"!=typeof e)throw new Vs(J);return t=yl(t===K?e.length-1:lu(t),0),function(){for(var n=arguments,i=-1,o=yl(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,n[0],a);case 2:return e.call(this,n[0],n[1],a)}var u=Array(t+1);for(i=-1;++i<t;)u[i]=n[i];return u[t]=a,r(e,this,u)}}function da(e,t){if("function"!=typeof e)throw new Vs(J);return t=t===K?0:yl(lu(t),0),pa(function(n){var i=n[t],o=n.slice(0,t);return i&&d(o,i),r(e,this,o)})}function ha(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Vs(J);return za(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ua(e,t,{leading:r,maxWait:t,trailing:i})}function ga(e){return ra(e,1)}function ma(e,t){return t=null==t?ys:t,_c(t,e)}function va(){if(!arguments.length)return[];var e=arguments[0];return Sc(e)?e:[e]}function ya(e){return Tn(e,!1,!0)}function $a(e,t){return Tn(e,!1,!0,t)}function ba(e){return Tn(e,!0,!0)}function wa(e,t){return Tn(e,!0,!0,t)}function xa(e,t){return e===t||e!==e&&t!==t}function _a(e,t){return e>t}function ka(e,t){return e>=t}function Ca(e){return Da(e)&&Gs.call(e,"callee")&&(!cl.call(e,"callee")||Xs.call(e)==Te)}function Sa(e){return qa(e)&&Xs.call(e)==He}function Ta(e){return null!=e&&Fa(Hl(e))&&!Ua(e)}function Da(e){return qa(e)&&Ta(e)}function Oa(e){return e===!0||e===!1||qa(e)&&Xs.call(e)==Oe}function Ea(e){return qa(e)&&Xs.call(e)==Ee}function Aa(e){return!!e&&1===e.nodeType&&qa(e)&&!Za(e)}function Ma(e){if(Ta(e)&&(Sc(e)||eu(e)||Ua(e.splice)||Ca(e)))return!e.length;for(var t in e)if(Gs.call(e,t))return!1;return!0}function Pa(e,t){return Zn(e,t)}function ja(e,t,n){n="function"==typeof n?n:K;var r=n?n(e,t):K;return r===K?Zn(e,t,n):!!r}function Na(e){return qa(e)?Xs.call(e)==Ae||"string"==typeof e.message&&"string"==typeof e.name:!1}function Ia(e){return"number"==typeof e&&gl(e)}function Ua(e){var t=za(e)?Xs.call(e):"";return t==Me||t==Pe}function Ra(e){return"number"==typeof e&&e==lu(e)}function Fa(e){return"number"==typeof e&&e>-1&&e%1==0&&we>=e}function za(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qa(e){return!!e&&"object"==typeof e}function La(e){return qa(e)&&mi(e)==je}function Ha(e,t){return e===t||Jn(e,t,di(t))}function Va(e,t,n){return n="function"==typeof n?n:K,Jn(e,t,di(t),n)}function Wa(e){return Ka(e)&&e!=+e}function Ba(e){return null==e?!1:Ua(e)?Qs.test(Ys.call(e)):qa(e)&&(F(e)?Qs:_t).test(e)}function Ya(e){return null===e}function Ga(e){return null==e}function Ka(e){return"number"==typeof e||qa(e)&&Xs.call(e)==Ne}function Za(e){if(!qa(e)||Xs.call(e)!=Ie||F(e))return!1;var t=al(e);if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&Ys.call(n)==Zs}function Xa(e){return za(e)&&Xs.call(e)==Ue}function Ja(e){return Ra(e)&&e>=-we&&we>=e}function Qa(e){return qa(e)&&mi(e)==Re}function eu(e){return"string"==typeof e||!Sc(e)&&qa(e)&&Xs.call(e)==Fe}function tu(e){return"symbol"==typeof e||qa(e)&&Xs.call(e)==ze}function nu(e){return qa(e)&&Fa(e.length)&&!!yn[Xs.call(e)]}function ru(e){return e===K}function iu(e){return qa(e)&&mi(e)==qe}function ou(e){return qa(e)&&Xs.call(e)==Le}function au(e,t){return t>e}function uu(e,t){return t>=e}function su(e){if(!e)return[];if(Ta(e))return eu(e)?B(e):Fr(e);if(sl&&e[sl])return q(e[sl]());var t=mi(e),n=t==je?L:t==Re?V:Lu;return n(e)}function lu(e){if(!e)return 0===e?e:0;if(e=fu(e),e===be||e===-be){var t=0>e?-1:1;return t*xe}var n=e%1;return e===e?n?e-n:e:0}function cu(e){return e?kn(lu(e),0,ke):0}function fu(e){if(za(e)){var t=Ua(e.valueOf)?e.valueOf():e;e=za(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ht,"");var n=xt.test(e);return n||kt.test(e)?Sn(e.slice(2),n?2:8):wt.test(e)?_e:+e}function pu(e){return zr(e,Du(e))}function du(e){return kn(lu(e),-we,we)}function hu(e){if("string"==typeof e)return e;if(null==e)return"";if(tu(e))return Nl?Nl.call(e):"";var t=e+"";return"0"==t&&1/e==-be?"-0":t}function gu(e,t){var n=En(e);return t?fn(n,t):n}function mu(e,t){return y(e,pi(t,3),zn,!0)}function vu(e,t){return y(e,pi(t,3),qn,!0)}function yu(e,t){return null==e?e:Rl(e,xn(t),Du)}function $u(e,t){return null==e?e:Fl(e,xn(t),Du)}function bu(e,t){return e&&zn(e,xn(t))}function wu(e,t){return e&&qn(e,xn(t))}function xu(e){return null==e?[]:Ln(e,Tu(e))}function _u(e){return null==e?[]:Ln(e,Du(e))}function ku(e,t,n){var r=null==e?K:Hn(e,t);return r===K?n:r}function Cu(e,t){return yi(e,t,Vn)}function Su(e,t){return yi(e,t,Wn)}function Tu(e){var t=Ti(e);if(!t&&!Ta(e))return er(e);var n=xi(e),r=!!n,i=n||[],o=i.length;for(var a in e)!Vn(e,a)||r&&("length"==a||z(a,o))||t&&"constructor"==a||i.push(a);return i}function Du(e){for(var t=-1,n=Ti(e),r=tr(e),i=r.length,o=xi(e),a=!!o,u=o||[],s=u.length;++t<i;){var l=r[t];a&&("length"==l||z(l,s))||"constructor"==l&&(n||!Gs.call(e,l))||u.push(l)}return u}function Ou(e,t){var n={};return t=pi(t,3),zn(e,function(e,r,i){n[t(e,r,i)]=e}),n}function Eu(e,t){var n={};return t=pi(t,3),zn(e,function(e,r,i){n[r]=t(e,r,i)}),n}function Au(e,t){return t=pi(t),lr(e,function(e,n){return!t(e,n)})}function Mu(e,t){return null==e?{}:lr(e,pi(t))}function Pu(e,t,n){if(ki(t,e))r=null==e?K:e[t];else{t=_n(t);var r=ku(e,t);e=Ai(e,t)}return r===K&&(r=n),Ua(r)?r.call(e):r}function ju(e,t,n){return null==e?e:mr(e,t,n)}function Nu(e,t,n,r){return r="function"==typeof r?r:K,null==e?e:mr(e,t,n,r)}function Iu(e){return S(e,Tu(e))}function Uu(e){return S(e,Du(e))}function Ru(e,t,n){var r=Sc(e)||nu(e);if(t=pi(t,4),null==n)if(r||za(e)){var i=e.constructor;n=r?Sc(e)?new i:[]:Ua(i)?En(al(e)):{}}else n={};return(r?a:zn)(e,function(e,r,i){return t(n,e,r,i)}),n}function Fu(e,t){return null==e?!0:kr(e,t)}function zu(e,t,n){return null==e?e:Cr(e,t,xn(n))}function qu(e,t,n,r){return r="function"==typeof r?r:K,null==e?e:Cr(e,t,xn(n),r)}function Lu(e){return e?D(e,Tu(e)):[]}function Hu(e){return null==e?[]:D(e,Du(e))}function Vu(e,t,n){return n===K&&(n=t,t=K),n!==K&&(n=fu(n),n=n===n?n:0),t!==K&&(t=fu(t),t=t===t?t:0),kn(fu(e),t,n)}function Wu(e,t,n){return t=fu(t)||0,n===K?(n=t,t=0):n=fu(n)||0,e=fu(e),Bn(e,t,n)}function Bu(e,t,n){if(n&&"boolean"!=typeof n&&_i(e,t,n)&&(t=n=K),n===K&&("boolean"==typeof t?(n=t,t=K):"boolean"==typeof e&&(n=e,e=K)),e===K&&t===K?(e=0,t=1):(e=fu(e)||0,t===K?(t=e,e=0):t=fu(t)||0),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=wl();return $l(e+i*(t-e+Cn("1e-"+((i+"").length-1))),t)}return hr(e,t)}function Yu(e){return Bc(hu(e).toLowerCase())}function Gu(e){return e=hu(e),e&&e.replace(St,N).replace(cn,"")}function Ku(e,t,n){e=hu(e),t="string"==typeof t?t:t+"";var r=e.length;return n=n===K?r:kn(lu(n),0,r),n-=t.length,n>=0&&e.indexOf(t,n)==n}function Zu(e){return e=hu(e),e&&ot.test(e)?e.replace(rt,I):e}function Xu(e){return e=hu(e),e&&dt.test(e)?e.replace(pt,"\\$&"):e}function Ju(e,t,n){e=hu(e),t=lu(t);var r=W(e);if(!t||r>=t)return e;var i=(t-r)/2,o=hl(i),a=dl(i);return ni("",o,n)+e+ni("",a,n)}function Qu(e,t,n){return e=hu(e),e+ni(e,t,n)}function es(e,t,n){return e=hu(e),ni(e,t,n)+e}function ts(e,t,n){return n||null==t?t=0:t&&(t=+t),e=hu(e).replace(ht,""),bl(e,t||(bt.test(e)?16:10))}function ns(e,t){e=hu(e),t=lu(t);var n="";if(!e||1>t||t>we)return n;do t%2&&(n+=e),t=hl(t/2),e+=e;while(t);return n}function rs(){var e=arguments,t=hu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function is(e,t,n){return hu(e).split(t,n)}function os(e,t,n){return e=hu(e),n=kn(lu(n),0,e.length),e.lastIndexOf(t,n)==n}function as(e,t,n){var r=A.templateSettings;n&&_i(e,t,n)&&(t=K),e=hu(e),t=Ec({},t,r,an);var i,o,a=Ec({},t.imports,r.imports,an),u=Tu(a),s=D(a,u),l=0,c=t.interpolate||Tt,f="__p += '",p=Hs((t.escape||Tt).source+"|"+c.source+"|"+(c===st?yt:Tt).source+"|"+(t.evaluate||Tt).source+"|$","g"),d="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++vn+"]")+"\n";e.replace(p,function(t,n,r,a,u,s){return r||(r=a),f+=e.slice(l,s).replace(Dt,U),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),u&&(o=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=s+t.length,t}),f+="';\n";var h=t.variable;h||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(Qe,""):f).replace(et,"$1").replace(tt,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Zc(function(){return Function(u,d+"return "+f).apply(K,s)});if(g.source=f,Na(g))throw g;return g}function us(e){return hu(e).toLowerCase()}function ss(e){return hu(e).toUpperCase()}function ls(e,t,n){if(e=hu(e),!e)return e;if(n||t===K)return e.replace(ht,"");if(t+="",!t)return e;var r=B(e),i=B(t);return r.slice(O(r,i),E(r,i)+1).join("")}function cs(e,t,n){if(e=hu(e),!e)return e;if(n||t===K)return e.replace(mt,"");if(t+="",!t)return e;var r=B(e);return r.slice(0,E(r,B(t))+1).join("")}function fs(e,t,n){if(e=hu(e),!e)return e;if(n||t===K)return e.replace(gt,"");if(t+="",!t)return e;var r=B(e);return r.slice(O(r,B(t))).join("")}function ps(e,t){var n=de,r=he;if(za(t)){var i="separator"in t?t.separator:i;n="length"in t?lu(t.length):n,r="omission"in t?hu(t.omission):r}e=hu(e);var o=e.length;if(pn.test(e)){var a=B(e);o=a.length}if(n>=o)return e;var u=n-W(r);if(1>u)return r;var s=a?a.slice(0,u).join(""):e.slice(0,u);if(i===K)return s+r;if(a&&(u+=s.length-u),Xa(i)){if(e.slice(u).search(i)){var l,c=s;for(i.global||(i=Hs(i.source,hu($t.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var f=l.index;s=s.slice(0,f===K?u:f)}}else if(e.indexOf(i,u)!=u){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r}function ds(e){return e=hu(e),e&&it.test(e)?e.replace(nt,Y):e}function hs(e,t,n){return e=hu(e),t=n?K:t,t===K&&(t=gn.test(e)?hn:dn),e.match(t)||[]}function gs(e){var t=e?e.length:0,n=pi();return e=t?p(e,function(e){if("function"!=typeof e[1])throw new Vs(J);return[n(e[0]),e[1]]}):[],pa(function(n){for(var i=-1;++i<t;){var o=e[i];if(r(o[0],this,n))return r(o[1],this,n)}})}function ms(e){return Dn(Tn(e,!0))}function vs(e){return function(){return e}}function ys(e){return e}function $s(e){return Qn("function"==typeof e?e:Tn(e,!0))}function bs(e){return rr(Tn(e,!0))}function ws(e,t){return ir(e,Tn(t,!0))}function xs(e,t,n){var r=Tu(t),i=Ln(t,r);null!=n||za(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Ln(t,Tu(t)));var o=za(n)&&"chain"in n?n.chain:!0,u=Ua(e);return a(i,function(n){var r=t[n];e[n]=r,u&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Fr(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,d([this.value()],arguments))})}),e}function _s(){return jn._===this&&(jn._=Js),this}function ks(){}function Cs(e){return e=lu(e),function(){return arguments[e]}}function Ss(e){return ki(e)?cr(e):fr(e)}function Ts(e){return function(t){return null==e?K:Hn(e,t)}}function Ds(e,t){if(e=lu(e),1>e||e>we)return[];var n=ke,r=$l(e,ke);t=xn(t),e-=ke;for(var i=C(r,t);++n<e;)t(n);return i}function Os(e){return Sc(e)?p(e,String):Pi(e)}function Es(e){var t=++Ks;return hu(e)+t}function As(e,t){var n;return e===K&&t===K?0:(e!==K&&(n=e),t!==K&&(n=n===K?t:n+t),n)}function Ms(e){return e&&e.length?v(e,ys,_a):K}function Ps(e,t){return e&&e.length?v(e,pi(t),_a):K}function js(e){return Rs(e)/(e?e.length:0)}function Ns(e){return e&&e.length?v(e,ys,au):K}function Is(e,t){return e&&e.length?v(e,pi(t),au):K}function Us(e,t){var n;return e===K&&t===K?0:(e!==K&&(n=e),t!==K&&(n=n===K?t:n-t),n)}function Rs(e){return e&&e.length?k(e,ys):0}function Fs(e,t){return e&&e.length?k(e,pi(t)):0}e=e?Nn.defaults({},e,Nn.pick(jn,mn)):jn;var zs=e.Date,qs=e.Error,Ls=e.Math,Hs=e.RegExp,Vs=e.TypeError,Ws=e.Array.prototype,Bs=e.Object.prototype,Ys=e.Function.prototype.toString,Gs=Bs.hasOwnProperty,Ks=0,Zs=Ys.call(Object),Xs=Bs.toString,Js=jn._,Qs=Hs("^"+Ys.call(Gs).replace(pt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),el=On?e.Buffer:K,tl=e.Reflect,nl=e.Symbol,rl=e.Uint8Array,il=e.clearTimeout,ol=tl?tl.enumerate:K,al=Object.getPrototypeOf,ul=Object.getOwnPropertySymbols,sl="symbol"==typeof(sl=nl&&nl.iterator)?sl:K,ll=Object.create,cl=Bs.propertyIsEnumerable,fl=e.setTimeout,pl=Ws.splice,dl=Ls.ceil,hl=Ls.floor,gl=e.isFinite,ml=Ws.join,vl=Object.keys,yl=Ls.max,$l=Ls.min,bl=e.parseInt,wl=Ls.random,xl=Ws.reverse,_l=hi(e,"Map"),kl=hi(e,"Set"),Cl=hi(e,"WeakMap"),Sl=hi(Object,"create"),Tl=Cl&&new Cl,Dl=!cl.call({valueOf:1},"valueOf"),Ol={},El=_l?Ys.call(_l):"",Al=kl?Ys.call(kl):"",Ml=Cl?Ys.call(Cl):"",Pl=nl?nl.prototype:K,jl=Pl?Pl.valueOf:K,Nl=Pl?Pl.toString:K;A.templateSettings={escape:at,evaluate:ut,interpolate:st,variable:"",imports:{_:A}};var Il=Wr(zn),Ul=Wr(qn,!0),Rl=Br(),Fl=Br(!0);ol&&!cl.call({valueOf:1},"valueOf")&&(tr=function(e){return q(ol(e))});var zl=Tl?function(e,t){return Tl.set(e,t),e}:ys,ql=kl&&2===new kl([1,2]).size?function(e){return new kl(e)}:ks,Ll=Tl?function(e){return Tl.get(e)}:ks,Hl=cr("length"),Vl=ul||function(){return[]};(_l&&mi(new _l)!=je||kl&&mi(new kl)!=Re||Cl&&mi(new Cl)!=qe)&&(mi=function(e){var t=Xs.call(e),n=t==Ie?e.constructor:null,r="function"==typeof n?Ys.call(n):"";if(r)switch(r){case El:return je;case Al:return Re;case Ml:return qe}return t});var Wl=function(){var e=0,t=0;return function(n,r){var i=vc(),o=me-(i-t);if(t=i,o>0){if(++e>=ge)return n}else e=0;return zl(n,r)}}(),Bl=pa(function(e,t){return Sc(e)||(e=null==e?[]:[Object(e)]),t=Rn(t,1),o(e,t)}),Yl=pa(function(e,t){return Da(e)?Mn(e,Rn(t,1,!0)):[]}),Gl=pa(function(e,t){var n=Ji(t);return Da(n)&&(n=K),Da(e)?Mn(e,Rn(t,1,!0),pi(n)):[]}),Kl=pa(function(e,t){var n=Ji(t);return Da(n)&&(n=K),Da(e)?Mn(e,Rn(t,1,!0),K,n):[]}),Zl=pa(function(e){var t=p(e,wn);return t.length&&t[0]===e[0]?Yn(t):[]}),Xl=pa(function(e){var t=Ji(e),n=p(e,wn);return t===Ji(n)?t=K:n.pop(),n.length&&n[0]===e[0]?Yn(n,pi(t)):[]}),Jl=pa(function(e){var t=Ji(e),n=p(e,wn);return t===Ji(n)?t=K:n.pop(),n.length&&n[0]===e[0]?Yn(n,K,t):[]}),Ql=pa(eo),ec=pa(function(e,t){t=p(Rn(t,1),String);var n=bn(e,t);return dr(e,t.sort(M)),n}),tc=pa(function(e){return _r(Rn(e,1,!0))}),nc=pa(function(e){var t=Ji(e);return Da(t)&&(t=K),_r(Rn(e,1,!0),pi(t))}),rc=pa(function(e){var t=Ji(e);return Da(t)&&(t=K),_r(Rn(e,1,!0),K,t)}),ic=pa(function(e,t){return Da(e)?Mn(e,t):[]}),oc=pa(function(e){return Dr(l(e,Da))}),ac=pa(function(e){var t=Ji(e);return Da(t)&&(t=K),Dr(l(e,Da),pi(t))}),uc=pa(function(e){var t=Ji(e);return Da(t)&&(t=K),Dr(l(e,Da),K,t)}),sc=pa(_o),lc=pa(function(e){var t=e.length,n=t>1?e[t-1]:K;return n="function"==typeof n?(e.pop(),n):K,ko(e,n)}),cc=pa(function(e){e=Rn(e,1);var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return bn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Et&&z(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Oo,args:[i],thisArg:K}),new Ot(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(K),e})):this.thru(i)}),fc=Hr(function(e,t,n){Gs.call(e,n)?++e[n]:e[n]=1}),pc=Hr(function(e,t,n){Gs.call(e,n)?e[n].push(t):e[n]=[t]}),dc=pa(function(e,t,n){var i=-1,o="function"==typeof t,a=ki(t),u=Ta(e)?Array(e.length):[];return Il(e,function(e){var s=o?t:a&&null!=e?e[t]:K;u[++i]=s?r(s,e,n):Kn(e,t,n)}),u}),hc=Hr(function(e,t,n){e[n]=t}),gc=Hr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),mc=pa(function(e,t){if(null==e)return[];var n=t.length;return n>1&&_i(e,t[0],t[1])?t=[]:n>2&&_i(t[0],t[1],t[2])&&(t.length=1),ur(e,Rn(t,1),[])}),vc=zs.now,yc=pa(function(e,t,n){var r=te;if(n.length){var i=H(n,gi(yc));r|=ae}return ui(e,r,t,n,i)}),$c=pa(function(e,t,n){var r=te|ne;if(n.length){var i=H(n,gi($c));r|=ae}return ui(t,r,e,n,i)}),bc=pa(function(e,t){return An(e,1,t)}),wc=pa(function(e,t,n){return An(e,fu(t)||0,n)}),xc=pa(function(e,t){t=p(Rn(t,1),pi());var n=t.length;return pa(function(i){for(var o=-1,a=$l(i.length,n);++o<a;)i[o]=t[o].call(this,i[o]);return r(e,this,i)})}),_c=pa(function(e,t){var n=H(t,gi(_c));return ui(e,ae,K,t,n)}),kc=pa(function(e,t){var n=H(t,gi(kc));return ui(e,ue,K,t,n)}),Cc=pa(function(e,t){return ui(e,le,K,K,K,Rn(t,1))}),Sc=Array.isArray,Tc=el?function(e){return e instanceof el}:vs(!1),Dc=Vr(function(e,t){if(Dl||Ti(t)||Ta(t))return void zr(t,Tu(t),e);for(var n in t)Gs.call(t,n)&&sn(e,n,t[n])}),Oc=Vr(function(e,t){if(Dl||Ti(t)||Ta(t))return void zr(t,Du(t),e);for(var n in t)sn(e,n,t[n])}),Ec=Vr(function(e,t,n,r){qr(t,Du(t),e,r)}),Ac=Vr(function(e,t,n,r){qr(t,Tu(t),e,r)}),Mc=pa(function(e,t){return bn(e,Rn(t,1))}),Pc=pa(function(e){return e.push(K,an),r(Ec,K,e)}),jc=pa(function(e){return e.push(K,Ei),r(Fc,K,e)}),Nc=ei(function(e,t,n){e[t]=n},vs(ys)),Ic=ei(function(e,t,n){Gs.call(e,t)?e[t].push(n):e[t]=[n]},pi),Uc=pa(Kn),Rc=Vr(function(e,t,n){or(e,t,n)}),Fc=Vr(function(e,t,n,r){or(e,t,n,r)}),zc=pa(function(e,t){return null==e?{}:(t=p(Rn(t,1),String),sr(e,Mn(Du(e),t)))}),qc=pa(function(e,t){return null==e?{}:sr(e,Rn(t,1))}),Lc=Kr(function(e,t,n){return t=t.toLowerCase(),e+(n?Yu(t):t)}),Hc=Kr(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Vc=Kr(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Wc=Gr("toLowerCase"),Bc=Gr("toUpperCase"),Yc=Kr(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Gc=Kr(function(e,t,n){return e+(n?" ":"")+Yu(t)}),Kc=Kr(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Zc=pa(function(e,t){try{return r(e,K,t)}catch(n){return Na(n)?n:new qs(n)}}),Xc=pa(function(e,t){return a(Rn(t,1),function(t){e[t]=yc(e[t],e)}),e}),Jc=Jr(),Qc=Jr(!0),ef=pa(function(e,t){return function(n){return Kn(n,e,t)}}),tf=pa(function(e,t){return function(n){return Kn(e,n,t)}}),nf=ti(p),rf=ti(s),of=ti(m),af=ii(),uf=ii(!0),sf=ai("ceil"),lf=ai("floor"),cf=ai("round");return A.prototype=Ct.prototype,A.prototype.constructor=A,Ot.prototype=En(Ct.prototype),Ot.prototype.constructor=Ot,Et.prototype=En(Ct.prototype),Et.prototype.constructor=Et,jt.prototype=Sl?Sl(null):Bs,Ft.prototype.clear=zt,Ft.prototype["delete"]=qt,Ft.prototype.get=Lt,Ft.prototype.has=Ht,Ft.prototype.set=Vt,Wt.prototype.push=Yt,Gt.prototype.clear=Kt,Gt.prototype["delete"]=Zt,Gt.prototype.get=Xt,Gt.prototype.has=Jt,Gt.prototype.set=Qt,la.Cache=Ft,A.after=na,A.ary=ra,A.assign=Dc,A.assignIn=Oc,A.assignInWith=Ec,A.assignWith=Ac,A.at=Mc,A.before=ia,A.bind=yc,A.bindAll=Xc,A.bindKey=$c,A.castArray=va,A.chain=To,A.chunk=Ni,A.compact=Ii,A.concat=Bl,A.cond=gs,A.conforms=ms,A.constant=vs,A.countBy=fc,A.create=gu,A.curry=oa,A.curryRight=aa,A.debounce=ua,A.defaults=Pc,A.defaultsDeep=jc,A.defer=bc,A.delay=wc,A.difference=Yl,A.differenceBy=Gl,A.differenceWith=Kl,A.drop=Ui,A.dropRight=Ri,A.dropRightWhile=Fi,A.dropWhile=zi,A.fill=qi,A.filter=Fo,A.flatMap=Lo,A.flatten=Vi,A.flattenDeep=Wi,A.flattenDepth=Bi,A.flip=sa,A.flow=Jc,A.flowRight=Qc,A.fromPairs=Yi,A.functions=xu,A.functionsIn=_u,A.groupBy=pc,A.initial=Zi,A.intersection=Zl,A.intersectionBy=Xl,A.intersectionWith=Jl,A.invert=Nc,A.invertBy=Ic,A.invokeMap=dc,A.iteratee=$s,A.keyBy=hc,A.keys=Tu,A.keysIn=Du,A.map=Bo,A.mapKeys=Ou,A.mapValues=Eu,A.matches=bs,A.matchesProperty=ws,A.memoize=la,A.merge=Rc,A.mergeWith=Fc,A.method=ef,A.methodOf=tf,A.mixin=xs,A.negate=ca,A.nthArg=Cs,A.omit=zc,A.omitBy=Au,A.once=fa,A.orderBy=Yo,A.over=nf,A.overArgs=xc,A.overEvery=rf,A.overSome=of,A.partial=_c,A.partialRight=kc,A.partition=gc,A.pick=qc,A.pickBy=Mu,A.property=Ss,A.propertyOf=Ts,A.pull=Ql,A.pullAll=eo,A.pullAllBy=to,A.pullAllWith=no,A.pullAt=ec,A.range=af,A.rangeRight=uf,A.rearg=Cc,A.reject=Zo,A.remove=ro,A.rest=pa,A.reverse=io,A.sampleSize=Jo,A.set=ju,A.setWith=Nu,A.shuffle=Qo,A.slice=oo,A.sortBy=mc,A.sortedUniq=po,A.sortedUniqBy=ho,A.split=is,A.spread=da,A.tail=go,A.take=mo,A.takeRight=vo,A.takeRightWhile=yo,A.takeWhile=$o,A.tap=Do,A.throttle=ha,A.thru=Oo,A.toArray=su,A.toPairs=Iu,A.toPairsIn=Uu,A.toPath=Os,A.toPlainObject=pu,A.transform=Ru,A.unary=ga,A.union=tc,A.unionBy=nc,A.unionWith=rc,A.uniq=bo,A.uniqBy=wo,A.uniqWith=xo,A.unset=Fu,A.unzip=_o,A.unzipWith=ko,A.update=zu,A.updateWith=qu,A.values=Lu,A.valuesIn=Hu,A.without=ic,A.words=hs,A.wrap=ma,A.xor=oc,A.xorBy=ac,A.xorWith=uc,A.zip=sc,A.zipObject=Co,A.zipObjectDeep=So,A.zipWith=lc,A.extend=Oc,A.extendWith=Ec,xs(A,A),A.add=As,A.attempt=Zc,A.camelCase=Lc,A.capitalize=Yu,A.ceil=sf,A.clamp=Vu,A.clone=ya,A.cloneDeep=ba,A.cloneDeepWith=wa,A.cloneWith=$a,A.deburr=Gu,A.endsWith=Ku,A.eq=xa,A.escape=Zu,A.escapeRegExp=Xu,A.every=Ro,A.find=zo,A.findIndex=Li,A.findKey=mu,A.findLast=qo,A.findLastIndex=Hi,A.findLastKey=vu,A.floor=lf,A.forEach=Ho,A.forEachRight=Vo,A.forIn=yu,A.forInRight=$u,A.forOwn=bu,A.forOwnRight=wu,A.get=ku,A.gt=_a,A.gte=ka,A.has=Cu,A.hasIn=Su,A.head=Gi,A.identity=ys,A.includes=Wo,A.indexOf=Ki,A.inRange=Wu,A.invoke=Uc,A.isArguments=Ca,A.isArray=Sc,A.isArrayBuffer=Sa,A.isArrayLike=Ta,A.isArrayLikeObject=Da,A.isBoolean=Oa,A.isBuffer=Tc,A.isDate=Ea,A.isElement=Aa,A.isEmpty=Ma,A.isEqual=Pa,A.isEqualWith=ja,A.isError=Na,A.isFinite=Ia,A.isFunction=Ua,A.isInteger=Ra,A.isLength=Fa,A.isMap=La,A.isMatch=Ha,A.isMatchWith=Va,A.isNaN=Wa,A.isNative=Ba,A.isNil=Ga,A.isNull=Ya,A.isNumber=Ka,A.isObject=za,A.isObjectLike=qa,A.isPlainObject=Za,A.isRegExp=Xa,A.isSafeInteger=Ja,A.isSet=Qa,A.isString=eu,A.isSymbol=tu,A.isTypedArray=nu,A.isUndefined=ru,A.isWeakMap=iu,A.isWeakSet=ou,A.join=Xi,A.kebabCase=Hc,A.last=Ji,A.lastIndexOf=Qi,A.lowerCase=Vc,A.lowerFirst=Wc,A.lt=au,A.lte=uu,A.max=Ms,A.maxBy=Ps,A.mean=js,A.min=Ns,A.minBy=Is,A.noConflict=_s,A.noop=ks,A.now=vc,A.pad=Ju,A.padEnd=Qu,A.padStart=es,A.parseInt=ts,A.random=Bu,A.reduce=Go,A.reduceRight=Ko,A.repeat=ns,A.replace=rs,A.result=Pu,A.round=cf,A.runInContext=G,A.sample=Xo,A.size=ea,A.snakeCase=Yc,A.some=ta,A.sortedIndex=ao,A.sortedIndexBy=uo,A.sortedIndexOf=so,A.sortedLastIndex=lo,A.sortedLastIndexBy=co,A.sortedLastIndexOf=fo,A.startCase=Gc,A.startsWith=os,A.subtract=Us,A.sum=Rs,A.sumBy=Fs,A.template=as,A.times=Ds,A.toInteger=lu,A.toLength=cu,A.toLower=us,A.toNumber=fu,A.toSafeInteger=du,A.toString=hu,A.toUpper=ss,A.trim=ls,A.trimEnd=cs,A.trimStart=fs,A.truncate=ps,A.unescape=ds,A.uniqueId=Es,A.upperCase=Kc,A.upperFirst=Bc,A.each=Ho,A.eachRight=Vo,A.first=Gi,xs(A,function(){var e={};return zn(A,function(t,n){Gs.call(A.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),A.VERSION=Z,a(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){A[e].placeholder=A}),a(["drop","take"],function(e,t){Et.prototype[e]=function(n){var r=this.__filtered__;if(r&&!t)return new Et(this);n=n===K?1:yl(lu(n),0);var i=this.clone();return r?i.__takeCount__=$l(n,i.__takeCount__):i.__views__.push({size:$l(n,ke),type:e+(i.__dir__<0?"Right":"")}),i},Et.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),a(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==ve||n==$e;Et.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:pi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),a(["head","last"],function(e,t){var n="take"+(t?"Right":"");Et.prototype[e]=function(){return this[n](1).value()[0]}}),a(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Et.prototype[e]=function(){return this.__filtered__?new Et(this):this[n](1)}}),Et.prototype.compact=function(){return this.filter(ys)},Et.prototype.find=function(e){return this.filter(e).head()},Et.prototype.findLast=function(e){return this.reverse().find(e)},Et.prototype.invokeMap=pa(function(e,t){return"function"==typeof e?new Et(this):this.map(function(n){return Kn(n,e,t)})}),Et.prototype.reject=function(e){return e=pi(e,3),this.filter(function(t){return!e(t)})},Et.prototype.slice=function(e,t){e=lu(e);var n=this;return n.__filtered__&&(e>0||0>t)?new Et(n):(0>e?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==K&&(t=lu(t),n=0>t?n.dropRight(-t):n.take(t-e)),n)},Et.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Et.prototype.toArray=function(){return this.take(ke)},zn(Et.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=A[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(A.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof Et,s=a[0],l=u||Sc(t),c=function(e){var t=i.apply(A,d([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof s&&1!=s.length&&(u=l=!1);var f=this.__chain__,p=!!this.__actions__.length,h=o&&!f,g=u&&!p;if(!o&&l){t=g?t:new Et(this);var m=e.apply(t,a);return m.__actions__.push({func:Oo,args:[c],thisArg:K}),new Ot(m,f)}return h&&g?e.apply(this,a):(m=this.thru(c),h?r?m.value()[0]:m.value():m)})}),a(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ws[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);A.prototype[e]=function(){var e=arguments;return r&&!this.__chain__?t.apply(this.value(),e):this[n](function(n){return t.apply(n,e)})}}),zn(Et.prototype,function(e,t){var n=A[t];if(n){var r=n.name+"",i=Ol[r]||(Ol[r]=[]);i.push({name:t,func:n})}}),Ol[Qr(K,ne).name]=[{name:"wrapper",func:K}],Et.prototype.clone=At,Et.prototype.reverse=Mt,Et.prototype.value=Pt,A.prototype.at=cc,A.prototype.chain=Eo,A.prototype.commit=Ao,A.prototype.flatMap=Mo,A.prototype.next=Po,A.prototype.plant=No,A.prototype.reverse=Io,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=Uo,sl&&(A.prototype[sl]=jo),A}var K,Z="4.6.1",X=200,J="Expected a function",Q="__lodash_hash_undefined__",ee="__lodash_placeholder__",te=1,ne=2,re=4,ie=8,oe=16,ae=32,ue=64,se=128,le=256,ce=512,fe=1,pe=2,de=30,he="...",ge=150,me=16,ve=1,ye=2,$e=3,be=1/0,we=9007199254740991,xe=1.7976931348623157e308,_e=NaN,ke=4294967295,Ce=ke-1,Se=ke>>>1,Te="[object Arguments]",De="[object Array]",Oe="[object Boolean]",Ee="[object Date]",Ae="[object Error]",Me="[object Function]",Pe="[object GeneratorFunction]",je="[object Map]",Ne="[object Number]",Ie="[object Object]",Ue="[object RegExp]",Re="[object Set]",Fe="[object String]",ze="[object Symbol]",qe="[object WeakMap]",Le="[object WeakSet]",He="[object ArrayBuffer]",Ve="[object Float32Array]",We="[object Float64Array]",Be="[object Int8Array]",Ye="[object Int16Array]",Ge="[object Int32Array]",Ke="[object Uint8Array]",Ze="[object Uint8ClampedArray]",Xe="[object Uint16Array]",Je="[object Uint32Array]",Qe=/\b__p \+= '';/g,et=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,nt=/&(?:amp|lt|gt|quot|#39|#96);/g,rt=/[&<>"'`]/g,it=RegExp(nt.source),ot=RegExp(rt.source),at=/<%-([\s\S]+?)%>/g,ut=/<%([\s\S]+?)%>/g,st=/<%=([\s\S]+?)%>/g,lt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ct=/^\w*$/,ft=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,pt=/[\\^$.*+?()[\]{}|]/g,dt=RegExp(pt.source),ht=/^\s+|\s+$/g,gt=/^\s+/,mt=/\s+$/,vt=/\\(\\)?/g,yt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$t=/\w*$/,bt=/^0x/i,wt=/^[-+]0x[0-9a-f]+$/i,xt=/^0b[01]+$/i,_t=/^\[object .+?Constructor\]$/,kt=/^0o[0-7]+$/i,Ct=/^(?:0|[1-9]\d*)$/,St=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Tt=/($^)/,Dt=/['\n\r\u2028\u2029\\]/g,Ot="\\ud800-\\udfff",Et="\\u0300-\\u036f\\ufe20-\\ufe23",At="\\u20d0-\\u20f0",Mt="\\u2700-\\u27bf",Pt="a-z\\xdf-\\xf6\\xf8-\\xff",jt="\\xac\\xb1\\xd7\\xf7",Nt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",It="\\u2018\\u2019\\u201c\\u201d",Ut=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rt="A-Z\\xc0-\\xd6\\xd8-\\xde",Ft="\\ufe0e\\ufe0f",zt=jt+Nt+It+Ut,qt="["+Ot+"]",Lt="["+zt+"]",Ht="["+Et+At+"]",Vt="\\d+",Wt="["+Mt+"]",Bt="["+Pt+"]",Yt="[^"+Ot+zt+Vt+Mt+Pt+Rt+"]",Gt="\\ud83c[\\udffb-\\udfff]",Kt="(?:"+Ht+"|"+Gt+")",Zt="[^"+Ot+"]",Xt="(?:\\ud83c[\\udde6-\\uddff]){2}",Jt="[\\ud800-\\udbff][\\udc00-\\udfff]",Qt="["+Rt+"]",en="\\u200d",tn="(?:"+Bt+"|"+Yt+")",nn="(?:"+Qt+"|"+Yt+")",rn=Kt+"?",on="["+Ft+"]?",an="(?:"+en+"(?:"+[Zt,Xt,Jt].join("|")+")"+on+rn+")*",un=on+rn+an,sn="(?:"+[Wt,Xt,Jt].join("|")+")"+un,ln="(?:"+[Zt+Ht+"?",Ht,Xt,Jt,qt].join("|")+")",cn=RegExp(Ht,"g"),fn=RegExp(Gt+"(?="+Gt+")|"+ln+un,"g"),pn=RegExp("["+en+Ot+Et+At+Ft+"]"),dn=/[a-zA-Z0-9]+/g,hn=RegExp([Qt+"?"+Bt+"+(?="+[Lt,Qt,"$"].join("|")+")",nn+"+(?="+[Lt,Qt+tn,"$"].join("|")+")",Qt+"?"+tn+"+",Qt+"+",Vt,sn].join("|"),"g"),gn=/[a-z][A-Z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mn=["Array","Buffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Reflect","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],vn=-1,yn={};yn[Ve]=yn[We]=yn[Be]=yn[Ye]=yn[Ge]=yn[Ke]=yn[Ze]=yn[Xe]=yn[Je]=!0,yn[Te]=yn[De]=yn[He]=yn[Oe]=yn[Ee]=yn[Ae]=yn[Me]=yn[je]=yn[Ne]=yn[Ie]=yn[Ue]=yn[Re]=yn[Fe]=yn[qe]=!1;var $n={};$n[Te]=$n[De]=$n[He]=$n[Oe]=$n[Ee]=$n[Ve]=$n[We]=$n[Be]=$n[Ye]=$n[Ge]=$n[je]=$n[Ne]=$n[Ie]=$n[Ue]=$n[Re]=$n[Fe]=$n[ze]=$n[Ke]=$n[Ze]=$n[Xe]=$n[Je]=!0,$n[Ae]=$n[Me]=$n[qe]=!1;var bn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},wn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},xn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},_n={"function":!0,object:!0},kn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cn=parseFloat,Sn=parseInt,Tn=_n[typeof exports]&&exports&&!exports.nodeType?exports:K,Dn=_n[typeof module]&&module&&!module.nodeType?module:K,On=Dn&&Dn.exports===Tn?Tn:K,En=A(Tn&&Dn&&"object"==typeof global&&global),An=A(_n[typeof self]&&self),Mn=A(_n[typeof window]&&window),Pn=A(_n[typeof this]&&this),jn=En||Mn!==(Pn&&Pn.window)&&Mn||An||Pn||Function("return this")(),Nn=G();(Mn||An||{})._=Nn,"function"==typeof define&&"object"==typeof define.amd&&define.amd&&define(function(){return Nn}),e.constant("lodash",Nn)}]),/**
   * Satellizer 0.15.5
   * (c) 2016 Sahat Yalkabov 
   * License: MIT 
   */
  function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.satellizer=t()}(this,function(){"use strict";function e(e,t){if(/^(?:[a-z]+:)?\/\//i.test(t))return t;var n=[e,t].join("/"),r=function(e){return e.replace(/[\/]+/g,"/").replace(/\/\?/g,"?").replace(/\/\#/g,"#").replace(/\:\//g,"://")};return r(n)}function t(e){var t="https:"===e.protocol;return e.protocol+"//"+e.hostname+":"+(e.port||(t?"443":"80"))+(/^\//.test(e.pathname)?e.pathname:"/"+e.pathname)}function n(e){var t,n,r={};return angular.forEach((e||"").split("&"),function(e){e&&(n=e.split("="),t=decodeURIComponent(n[0]),r[t]=angular.isDefined(n[1])?decodeURIComponent(n[1]):!0)}),r}function r(e){var t;if("undefined"!=typeof module&&module.exports)try{t=require("buffer").Buffer}catch(n){}var r=String.fromCharCode,i=new RegExp(["[À-ß][-¿]","[à-ï][-¿]{2}","[ð-÷][-¿]{3}"].join("|"),"g"),o=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return r((n>>>10)+55296)+r((1023&n)+56320);case 3:return r((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return r((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},a=function(e){return e.replace(i,o)},u=t?function(e){return(e.constructor===t.constructor?e:new t(e,"base64")).toString()}:function(e){return a(atob(e))};return u(String(e).replace(/[-_]/g,function(e){return"-"===e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))}var i=function(){function e(){this.baseUrl="/",this.loginUrl="/auth/login",this.signupUrl="/auth/signup",this.unlinkUrl="/auth/unlink/",this.tokenName="token",this.tokenPrefix="satellizer",this.tokenHeader="Authorization",this.tokenType="Bearer",this.storageType="localStorage",this.tokenRoot=null,this.withCredentials=!1,this.providers={facebook:{name:"facebook",url:"/auth/facebook",authorizationEndpoint:"https://www.facebook.com/v2.5/dialog/oauth",redirectUri:window.location.origin+"/",requiredUrlParams:["display","scope"],scope:["email"],scopeDelimiter:",",display:"popup",oauthType:"2.0",popupOptions:{width:580,height:400}},google:{name:"google",url:"/auth/google",authorizationEndpoint:"https://accounts.google.com/o/oauth2/auth",redirectUri:window.location.origin,requiredUrlParams:["scope"],optionalUrlParams:["display","state"],scope:["profile","email"],scopePrefix:"openid",scopeDelimiter:" ",display:"popup",oauthType:"2.0",popupOptions:{width:452,height:633},state:function(){return encodeURIComponent(Math.random().toString(36).substr(2))}},github:{name:"github",url:"/auth/github",authorizationEndpoint:"https://github.com/login/oauth/authorize",redirectUri:window.location.origin,optionalUrlParams:["scope"],scope:["user:email"],scopeDelimiter:" ",oauthType:"2.0",popupOptions:{width:1020,height:618}},instagram:{name:"instagram",url:"/auth/instagram",authorizationEndpoint:"https://api.instagram.com/oauth/authorize",redirectUri:window.location.origin,requiredUrlParams:["scope"],scope:["basic"],scopeDelimiter:"+",oauthType:"2.0"},linkedin:{name:"linkedin",url:"/auth/linkedin",authorizationEndpoint:"https://www.linkedin.com/uas/oauth2/authorization",redirectUri:window.location.origin,requiredUrlParams:["state"],scope:["r_emailaddress"],scopeDelimiter:" ",state:"STATE",oauthType:"2.0",popupOptions:{width:527,height:582}},twitter:{name:"twitter",url:"/auth/twitter",authorizationEndpoint:"https://api.twitter.com/oauth/authenticate",redirectUri:window.location.origin,oauthType:"1.0",popupOptions:{width:495,height:645}},twitch:{name:"twitch",url:"/auth/twitch",authorizationEndpoint:"https://api.twitch.tv/kraken/oauth2/authorize",redirectUri:window.location.origin,requiredUrlParams:["scope"],scope:["user_read"],scopeDelimiter:" ",display:"popup",oauthType:"2.0",popupOptions:{width:500,height:560}},live:{name:"live",url:"/auth/live",authorizationEndpoint:"https://login.live.com/oauth20_authorize.srf",redirectUri:window.location.origin,requiredUrlParams:["display","scope"],scope:["wl.emails"],scopeDelimiter:" ",display:"popup",oauthType:"2.0",popupOptions:{width:500,height:560}},yahoo:{name:"yahoo",url:"/auth/yahoo",authorizationEndpoint:"https://api.login.yahoo.com/oauth2/request_auth",redirectUri:window.location.origin,scope:[],scopeDelimiter:",",oauthType:"2.0",popupOptions:{width:559,height:519}},bitbucket:{name:"bitbucket",url:"/auth/bitbucket",authorizationEndpoint:"https://bitbucket.org/site/oauth2/authorize",redirectUri:window.location.origin+"/",requiredUrlParams:["scope"],scope:["email"],scopeDelimiter:" ",oauthType:"2.0",popupOptions:{width:1028,height:529}},spotify:{name:"spotify",url:"/auth/spotify",authorizationEndpoint:"https://accounts.spotify.com/authorize",redirectUri:window.location.origin,optionalUrlParams:["state"],requiredUrlParams:["scope"],scope:["user-read-email"],scopePrefix:"",scopeDelimiter:",",oauthType:"2.0",popupOptions:{width:500,height:530},state:function(){return encodeURIComponent(Math.random().toString(36).substr(2))}}},this.httpInterceptor=function(){return!0}}return Object.defineProperty(e,"getConstant",{get:function(){return new e},enumerable:!0,configurable:!0}),e}(),o=function(){function e(e){this.SatellizerConfig=e}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.SatellizerConfig.baseUrl},set:function(e){this.SatellizerConfig.baseUrl=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loginUrl",{get:function(){return this.SatellizerConfig.loginUrl},set:function(e){this.SatellizerConfig.loginUrl=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"signupUrl",{get:function(){return this.SatellizerConfig.signupUrl},set:function(e){this.SatellizerConfig.signupUrl=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unlinkUrl",{get:function(){return this.SatellizerConfig.unlinkUrl},set:function(e){this.SatellizerConfig.unlinkUrl=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenRoot",{get:function(){return this.SatellizerConfig.tokenRoot},set:function(e){this.SatellizerConfig.tokenRoot=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenName",{get:function(){return this.SatellizerConfig.tokenName},set:function(e){this.SatellizerConfig.tokenName=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenPrefix",{get:function(){return this.SatellizerConfig.tokenPrefix},set:function(e){this.SatellizerConfig.tokenPrefix=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenHeader",{get:function(){return this.SatellizerConfig.tokenHeader},set:function(e){this.SatellizerConfig.tokenHeader=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenType",{get:function(){return this.SatellizerConfig.tokenType},set:function(e){this.SatellizerConfig.tokenType=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"withCredentials",{get:function(){return this.SatellizerConfig.withCredentials},set:function(e){this.SatellizerConfig.withCredentials=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"storageType",{get:function(){return this.SatellizerConfig.storageType},set:function(e){this.SatellizerConfig.storageType=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"httpInterceptor",{get:function(){return this.SatellizerConfig.httpInterceptor},set:function(e){"function"==typeof e?this.SatellizerConfig.httpInterceptor=e:this.SatellizerConfig.httpInterceptor=function(){return e}},enumerable:!0,configurable:!0}),e.prototype.facebook=function(e){angular.extend(this.SatellizerConfig.providers.facebook,e)},e.prototype.google=function(e){angular.extend(this.SatellizerConfig.providers.google,e)},e.prototype.github=function(e){angular.extend(this.SatellizerConfig.providers.github,e)},e.prototype.instagram=function(e){angular.extend(this.SatellizerConfig.providers.instagram,e)},e.prototype.linkedin=function(e){angular.extend(this.SatellizerConfig.providers.linkedin,e)},e.prototype.twitter=function(e){angular.extend(this.SatellizerConfig.providers.twitter,e)},e.prototype.twitch=function(e){angular.extend(this.SatellizerConfig.providers.twitch,e)},e.prototype.live=function(e){angular.extend(this.SatellizerConfig.providers.live,e)},e.prototype.yahoo=function(e){angular.extend(this.SatellizerConfig.providers.yahoo,e)},e.prototype.bitbucket=function(e){angular.extend(this.SatellizerConfig.providers.bitbucket,e)},e.prototype.spotify=function(e){angular.extend(this.SatellizerConfig.providers.spotify,e)},e.prototype.oauth1=function(e){this.SatellizerConfig.providers[e.name]=angular.extend(e,{oauthType:"1.0"})},e.prototype.oauth2=function(e){this.SatellizerConfig.providers[e.name]=angular.extend(e,{oauthType:"2.0"})},e.prototype.$get=function(e,t,n){return{login:function(e,n){return t.login(e,n)},signup:function(e,n){return t.signup(e,n)},logout:function(){return e.logout()},authenticate:function(e,t){return n.authenticate(e,t)},link:function(e,t){return n.authenticate(e,t)},unlink:function(e,t){return n.unlink(e,t)},isAuthenticated:function(){return e.isAuthenticated()},getPayload:function(){return e.getPayload()},getToken:function(){return e.getToken()},setToken:function(t){return e.setToken({access_token:t})},removeToken:function(){return e.removeToken()},setStorageType:function(t){return e.setStorageType(t)}}},e.$inject=["SatellizerConfig"],e}();o.prototype.$get.$inject=["SatellizerShared","SatellizerLocal","SatellizerOAuth"];var a=function(){function e(e,t,n,r){this.$q=e,this.$window=t,this.SatellizerConfig=n,this.SatellizerStorage=r;var i=this.SatellizerConfig,o=i.tokenName,a=i.tokenPrefix;this.prefixedTokenName=a?[a,o].join("_"):o}return e.prototype.getToken=function(){return this.SatellizerStorage.get(this.prefixedTokenName)},e.prototype.getPayload=function(){var e=this.SatellizerStorage.get(this.prefixedTokenName);if(e&&3===e.split(".").length)try{var t=e.split(".")[1],n=t.replace("-","+").replace("_","/");return JSON.parse(r(n))}catch(i){}},e.prototype.setToken=function(e){var t,n=this.SatellizerConfig.tokenRoot,r=this.SatellizerConfig.tokenName,i=e&&e.access_token;if(i&&(angular.isObject(i)&&angular.isObject(i.data)?e=i:angular.isString(i)&&(t=i)),!t&&e){var o=n&&n.split(".").reduce(function(e,t){return e[t]},e.data);t=o?o[r]:e.data&&e.data[r]}t&&this.SatellizerStorage.set(this.prefixedTokenName,t)},e.prototype.removeToken=function(){this.SatellizerStorage.remove(this.prefixedTokenName)},e.prototype.isAuthenticated=function(){var e=this.SatellizerStorage.get(this.prefixedTokenName);if(e){if(3===e.split(".").length)try{var t=e.split(".")[1],n=t.replace("-","+").replace("_","/"),r=JSON.parse(this.$window.atob(n)).exp;if("number"==typeof r)return Math.round((new Date).getTime()/1e3)<r}catch(i){return!0}return!0}return!1},e.prototype.logout=function(){return this.SatellizerStorage.remove(this.prefixedTokenName),this.$q.when()},e.prototype.setStorageType=function(e){this.SatellizerConfig.storageType=e},e.$inject=["$q","$window","SatellizerConfig","SatellizerStorage"],e}(),u=function(){function t(e,t,n){this.$http=e,this.SatellizerConfig=t,this.SatellizerShared=n}return t.prototype.login=function(t,n){var r=this;return void 0===n&&(n={}),n.url=n.url?n.url:e(this.SatellizerConfig.baseUrl,this.SatellizerConfig.loginUrl),n.data=t||n.data,n.method=n.method||"POST",n.withCredentials=n.withCredentials||this.SatellizerConfig.withCredentials,this.$http(n).then(function(e){return r.SatellizerShared.setToken(e),e})},t.prototype.signup=function(t,n){return void 0===n&&(n={}),n.url=n.url?n.url:e(this.SatellizerConfig.baseUrl,this.SatellizerConfig.signupUrl),n.data=t||n.data,n.method=n.method||"POST",n.withCredentials=n.withCredentials||this.SatellizerConfig.withCredentials,this.$http(n)},t.$inject=["$http","SatellizerConfig","SatellizerShared"],t}(),s=function(){function e(e,t,n){this.$interval=e,this.$window=t,this.$q=n,this.popup=null,this.defaults={redirectUri:null}}return e.prototype.stringifyOptions=function(e){var t=[];return angular.forEach(e,function(e,n){t.push(n+"="+e)}),t.join(",")},e.prototype.open=function(e,t,n,r,i){var o=n.width||500,a=n.height||500,u=this.stringifyOptions({width:o,height:a,top:this.$window.screenY+(this.$window.outerHeight-a)/2.5,left:this.$window.screenX+(this.$window.outerWidth-o)/2}),s=this.$window.cordova||this.$window.navigator.userAgent.indexOf("CriOS")>-1?"_blank":t;return this.popup=this.$window.open(e,s,u),this.popup&&this.popup.focus&&this.popup.focus(),i?void 0:this.$window.cordova?this.eventListener(r):("about:blank"===e&&(this.popup.location=e),this.polling(r))},e.prototype.polling=function(e){var r=this;return this.$q(function(i,o){var a=document.createElement("a");a.href=e;var u=t(a),s=r.$interval(function(){(!r.popup||r.popup.closed||void 0===r.popup.closed)&&(r.$interval.cancel(s),o(new Error("The popup window was closed")));try{var e=t(r.popup.location);if(e===u){if(r.popup.location.search||r.popup.location.hash){var a=n(r.popup.location.search.substring(1).replace(/\/$/,"")),l=n(r.popup.location.hash.substring(1).replace(/[\/$]/,"")),c=angular.extend({},a,l);c.error?o(new Error(c.error)):i(c)}else o(new Error("OAuth redirect has occurred but no query or hash parameters were found. They were either not set during the redirect, or were removed—typically by a routing library—before Satellizer could read it."));r.$interval.cancel(s),r.popup.close()}}catch(f){}},500)})},e.prototype.eventListener=function(e){var t=this;return this.$q(function(r,i){t.popup.addEventListener("loadstart",function(o){if(0===o.url.indexOf(e)){var a=document.createElement("a");if(a.href=o.url,a.search||a.hash){var u=n(a.search.substring(1).replace(/\/$/,"")),s=n(a.hash.substring(1).replace(/[\/$]/,"")),l=angular.extend({},u,s);l.error?i(new Error(l.error)):r(l),t.popup.close()}}}),t.popup.addEventListener("loaderror",function(){i(new Error("Authorization failed"))}),t.popup.addEventListener("exit",function(){i(new Error("The popup window was closed"))})})},e.$inject=["$interval","$window","$q"],e}(),l=function(){function t(e,t,n,r){this.$http=e,this.$window=t,this.SatellizerConfig=n,this.SatellizerPopup=r,this.defaults={name:null,url:null,authorizationEndpoint:null,scope:null,scopePrefix:null,scopeDelimiter:null,redirectUri:null,requiredUrlParams:null,defaultUrlParams:null,oauthType:"1.0",popupOptions:{width:null,height:null}}}return t.prototype.init=function(e,t){var n=this;angular.extend(this.defaults,e);var r=e.name,i=e.popupOptions,o=this.defaults.redirectUri;return this.$window.cordova||this.SatellizerPopup.open("about:blank",r,i,o,!0),this.getRequestToken().then(function(r){return n.openPopup(e,r).then(function(e){return n.exchangeForToken(e,t)})})},t.prototype.openPopup=function(e,t){var n=[e.authorizationEndpoint,this.buildQueryString(t.data)].join("?"),r=this.defaults.redirectUri;return this.$window.cordova?this.SatellizerPopup.open(n,e.name,e.popupOptions,r):(this.SatellizerPopup.popup.location=n,this.SatellizerPopup.polling(r))},t.prototype.getRequestToken=function(){var t=this.SatellizerConfig.baseUrl?e(this.SatellizerConfig.baseUrl,this.defaults.url):this.defaults.url;return this.$http.post(t,this.defaults)},t.prototype.exchangeForToken=function(t,n){var r=angular.extend({},n,t),i=this.SatellizerConfig.baseUrl?e(this.SatellizerConfig.baseUrl,this.defaults.url):this.defaults.url;return this.$http.post(i,r,{withCredentials:this.SatellizerConfig.withCredentials})},t.prototype.buildQueryString=function(e){var t=[];return angular.forEach(e,function(e,n){t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}),t.join("&")},t.$inject=["$http","$window","SatellizerConfig","SatellizerPopup"],t}(),c=function(){function t(e,t,n,r,i,o,a){this.$http=e,this.$window=t,this.$timeout=n,this.$q=r,this.SatellizerConfig=i,this.SatellizerPopup=o,this.SatellizerStorage=a,this.defaults={name:null,url:null,clientId:null,authorizationEndpoint:null,redirectUri:null,scope:null,scopePrefix:null,scopeDelimiter:null,state:null,requiredUrlParams:null,defaultUrlParams:["response_type","client_id","redirect_uri"],responseType:"code",responseParams:{code:"code",clientId:"clientId",redirectUri:"redirectUri"},oauthType:"2.0",popupOptions:{width:null,height:null}}}return t.camelCase=function(e){return e.replace(/([\:\-\_]+(.))/g,function(e,t,n,r){return r?n.toUpperCase():n})},t.prototype.init=function(e,t){var n=this;return this.$q(function(r,i){angular.extend(n.defaults,e);var o=n.defaults.name+"_state",a=n.defaults,u=a.name,s=a.state,l=a.popupOptions,c=a.redirectUri,f=a.responseType;"function"==typeof s?n.SatellizerStorage.set(o,s()):"string"==typeof s&&n.SatellizerStorage.set(o,s);var p=[n.defaults.authorizationEndpoint,n.buildQueryString()].join("?");n.SatellizerPopup.open(p,u,l,c).then(function(e){return"token"!==f&&p?e.state&&e.state!==n.SatellizerStorage.get(o)?i(new Error("The value returned in the state parameter does not match the state value from your original authorization code request.")):void r(n.exchangeForToken(e,t)):r(e)})["catch"](function(e){return i(e)})})},t.prototype.exchangeForToken=function(t,n){var r=this,i=angular.extend({},n);angular.forEach(this.defaults.responseParams,function(e,n){switch(n){case"code":i[e]=t.code;break;case"clientId":i[e]=r.defaults.clientId;break;case"redirectUri":i[e]=r.defaults.redirectUri;break;default:i[e]=t[n]}}),t.state&&(i.state=t.state);var o=this.SatellizerConfig.baseUrl?e(this.SatellizerConfig.baseUrl,this.defaults.url):this.defaults.url;return this.$http.post(o,i,{withCredentials:this.SatellizerConfig.withCredentials})},t.prototype.buildQueryString=function(){var e=this,n=[],r=["defaultUrlParams","requiredUrlParams","optionalUrlParams"];return angular.forEach(r,function(r){angular.forEach(e.defaults[r],function(r){var i=t.camelCase(r),o=angular.isFunction(e.defaults[r])?e.defaults[r]():e.defaults[i];if("redirect_uri"!==r||o){if("state"===r){var a=e.defaults.name+"_state";o=encodeURIComponent(e.SatellizerStorage.get(a))}"scope"===r&&Array.isArray(o)&&(o=o.join(e.defaults.scopeDelimiter),e.defaults.scopePrefix&&(o=[e.defaults.scopePrefix,o].join(e.defaults.scopeDelimiter))),n.push([r,o])}})}),n.map(function(e){return e.join("=")}).join("&")},t.$inject=["$http","$window","$timeout","$q","SatellizerConfig","SatellizerPopup","SatellizerStorage"],t}(),f=function(){function t(e,t,n,r,i,o,a,u,s,l){this.$http=e,this.$window=t,this.$timeout=n,this.$q=r,this.SatellizerConfig=i,this.SatellizerPopup=o,this.SatellizerStorage=a,this.SatellizerShared=u,this.SatellizerOAuth1=s,this.SatellizerOAuth2=l}return t.prototype.authenticate=function(e,t){var n=this;return this.$q(function(r,i){var o=n.SatellizerConfig.providers[e],a=null;switch(o.oauthType){case"1.0":a=new l(n.$http,n.$window,n.SatellizerConfig,n.SatellizerPopup);break;case"2.0":a=new c(n.$http,n.$window,n.$timeout,n.$q,n.SatellizerConfig,n.SatellizerPopup,n.SatellizerStorage);break;default:return i(new Error("Invalid OAuth Type"))}return a.init(o,t).then(function(e){o.url&&n.SatellizerShared.setToken(e),r(e)})["catch"](function(e){i(e)})})},t.prototype.unlink=function(t,n){return void 0===n&&(n={}),n.url=n.url?n.url:e(this.SatellizerConfig.baseUrl,this.SatellizerConfig.unlinkUrl),n.data={provider:t}||n.data,n.method=n.method||"POST",n.withCredentials=n.withCredentials||this.SatellizerConfig.withCredentials,this.$http(n)},t.$inject=["$http","$window","$timeout","$q","SatellizerConfig","SatellizerPopup","SatellizerStorage","SatellizerShared","SatellizerOAuth1","SatellizerOAuth2"],t}(),p=function(){function e(e,t){this.$window=e,this.SatellizerConfig=t,this.memoryStore={}}return e.prototype.get=function(e){try{return this.$window[this.SatellizerConfig.storageType].getItem(e)}catch(t){return this.memoryStore[e]}},e.prototype.set=function(e,t){try{this.$window[this.SatellizerConfig.storageType].setItem(e,t)}catch(n){this.memoryStore[e]=t}},e.prototype.remove=function(e){try{this.$window[this.SatellizerConfig.storageType].removeItem(e)}catch(t){delete this.memoryStore[e]}},e.$inject=["$window","SatellizerConfig"],e}(),d=function(){function e(e,t,n){var r=this;this.SatellizerConfig=e,this.SatellizerShared=t,this.SatellizerStorage=n,this.request=function(e){if(e.skipAuthorization)return e;if(r.SatellizerShared.isAuthenticated()&&r.SatellizerConfig.httpInterceptor()){var t=r.SatellizerConfig.tokenPrefix?[r.SatellizerConfig.tokenPrefix,r.SatellizerConfig.tokenName].join("_"):r.SatellizerConfig.tokenName,n=r.SatellizerStorage.get(t);r.SatellizerConfig.tokenHeader&&r.SatellizerConfig.tokenType&&(n=r.SatellizerConfig.tokenType+" "+n),e.headers[r.SatellizerConfig.tokenHeader]=n}return e}}return e.Factory=function(t,n,r){return new e(t,n,r)},e.$inject=["SatellizerConfig","SatellizerShared","SatellizerStorage"],e}();d.Factory.$inject=["SatellizerConfig","SatellizerShared","SatellizerStorage"];var h=function(){function e(e){this.$httpProvider=e,e.interceptors.push(d.Factory)}return e.$inject=["$httpProvider"],e}();angular.module("satellizer",[]).provider("$auth",["SatellizerConfig",function(e){return new o(e)}]).constant("SatellizerConfig",i.getConstant).service("SatellizerShared",a).service("SatellizerLocal",u).service("SatellizerPopup",s).service("SatellizerOAuth",f).service("SatellizerOAuth2",c).service("SatellizerOAuth1",l).service("SatellizerStorage",p).service("SatellizerInterceptor",d).config(["$httpProvider",function(e){return new h(e)}]);var g="satellizer";return g});
  //# sourceMappingURL=../maps/scripts/vendor-d933169795.js.map
  