text: function update(e,t){var n=1==e?t:$("#amount").val(),i=2==e?t:$("#duration").val();$total=.05*n,$totals=.03*n,$earnings=n-$totals-$total,$("#amount").val(n),$("#amount-label").text(n),$("#duration").val(i),$("#duration-label").text(i),$("#total").val($total),$("#total-label").text($total),$("#slider").html('<a><label><span class="glyphicon glyphicon-chevron-left"></span> '+n+' <span class="glyphicon glyphicon-chevron-right"></span></label></a>'),$("#slider2").html('<label><span class="glyphicon glyphicon-chevron-left"></span> '+i+' <span class="glyphicon glyphicon-chevron-right"></span></label>')}if(function(e){"use strict";function t(e,t){return t=t||Error,function(){var n,i,r=2,o=arguments,a=o[0],s="["+(e?e+":":"")+a+"] ",u=o[1];for(s+=u.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1),n=t+r;return n<o.length?ye(o[n]):e}),s+="\nhttp://errors.angularjs.org/1.5.7/"+(e?e+"/":"")+a,i=r,n="?";i<o.length;i++,n="&")s+=n+"p"+(i-r)+"="+encodeURIComponent(ye(o[i]));return new t(s)}}function n(e){if(null==e||A(e))return!1;if(Ki(e)||w(e)||Gi&&e instanceof Gi)return!0;var t="length"in Object(e)&&e.length;return _(t)&&(t>=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function i(e,t,r){var o,a;if(e)if(x(e))for(o in e)"prototype"==o||"length"==o||"name"==o||e.hasOwnProperty&&!e.hasOwnProperty(o)||t.call(r,e[o],o,e);else if(Ki(e)||n(e)){var s="object"!=typeof e;for(o=0,a=e.length;o<a;o++)(s||o in e)&&t.call(r,e[o],o,e)}else if(e.forEach&&e.forEach!==i)e.forEach(t,r,e);else if($(e))for(o in e)t.call(r,e[o],o,e);else if("function"==typeof e.hasOwnProperty)for(o in e)e.hasOwnProperty(o)&&t.call(r,e[o],o,e);else for(o in e)Oi.call(e,o)&&t.call(r,e[o],o,e);return e}function r(e,t,n){for(var i=Object.keys(e).sort(),r=0;r<i.length;r++)t.call(n,e[i[r]],i[r]);return i}function o(e){return function(t,n){e(n,t)}}function a(){return++Yi}function s(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function u(e,t,n){for(var i=e.$$hashKey,r=0,o=t.length;r<o;++r){var a=t[r];if(b(a)||x(a))for(var l=Object.keys(a),c=0,p=l.length;c<p;c++){var d=l[c],f=a[d];n&&b(f)?k(f)?e[d]=new Date(f.valueOf()):C(f)?e[d]=new RegExp(f):f.nodeName?e[d]=f.cloneNode(!0):L(f)?e[d]=f.clone():(b(e[d])||(e[d]=Ki(f)?[]:{}),u(e[d],[f],!0)):e[d]=f}}return s(e,i),e}function l(e){return u(e,Ri.call(arguments,1),!1)}function c(e){return u(e,Ri.call(arguments,1),!0)}function p(e){return parseInt(e,10)}function d(e,t){return l(Object.create(e),t)}function f(){}function h(e){return e}function g(e){return function(){return e}}function m(e){return x(e.toString)&&e.toString!==Wi}function v(e){return"undefined"==typeof e}function y(e){return"undefined"!=typeof e}function b(e){return null!==e&&"object"==typeof e}function $(e){return null!==e&&"object"==typeof e&&!Hi(e)}function w(e){return"string"==typeof e}function _(e){return"number"==typeof e}function k(e){return"[object Date]"===Wi.call(e)}function x(e){return"function"==typeof e}function C(e){return"[object RegExp]"===Wi.call(e)}function A(e){return e&&e.window===e}function M(e){return e&&e.$evalAsync&&e.$watch}function S(e){return"[object File]"===Wi.call(e)}function D(e){return"[object FormData]"===Wi.call(e)}function T(e){return"[object Blob]"===Wi.call(e)}function E(e){return"boolean"==typeof e}function O(e){return e&&x(e.then)}function P(e){return e&&_(e.length)&&Zi.test(Wi.call(e))}function I(e){return"[object ArrayBuffer]"===Wi.call(e)}function L(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function j(e){var t,n={},i=e.split(",");for(t=0;t<i.length;t++)n[i[t]]=!0;return n}function N(e){return Pi(e.nodeName||e[0]&&e[0].nodeName)}function G(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(Ki(e))for(var o=0,a=e.length;o<a;o++)t.push(r(e[o]));else if($(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)Oi.call(e,n)&&(t[n]=r(e[n]));return s(t,i),t}function r(e){if(!b(e))return e;var t=a.indexOf(e);if(t!==-1)return u[t];if(A(e)||M(e))throw Vi("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var i=!1,r=o(e);return void 0===r&&(r=Ki(e)?[]:Object.create(Hi(e)),i=!0),a.push(e),u.push(r),i?n(e,r):r}function o(e){switch(Wi.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(r(e.buffer));case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(x(e.cloneNode))return e.cloneNode(!0)}var a=[],u=[];if(t){if(P(t)||I(t))throw Vi("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw Vi("cpi","Can't copy! Source and destination are identical.");return Ki(t)?t.length=0:i(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),a.push(e),u.push(t),n(e,t)}return r(e)}function F(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var n,i,r,o=typeof e,a=typeof t;if(o==a&&"object"==o){if(!Ki(e)){if(k(e))return!!k(t)&&F(e.getTime(),t.getTime());if(C(e))return!!C(t)&&e.toString()==t.toString();if(M(e)||M(t)||A(e)||A(t)||Ki(t)||k(t)||C(t))return!1;r=he();for(i in e)if("$"!==i.charAt(0)&&!x(e[i])){if(!F(e[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&"$"!==i.charAt(0)&&y(t[i])&&!x(t[i]))return!1;return!0}if(!Ki(t))return!1;if((n=e.length)==t.length){for(i=0;i<n;i++)if(!F(e[i],t[i]))return!1;return!0}}return!1}function R(e,t,n){return e.concat(Ri.call(t,n))}function B(e,t){return Ri.call(e,t||0)}function U(e,t){var n=arguments.length>2?B(arguments,2):[];return!x(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,R(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function W(t,n){var i=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?i=void 0:A(n)?i="$WINDOW":n&&e.document===n?i="$DOCUMENT":M(n)&&(i="$SCOPE"),i}function H(e,t){if(!v(e))return _(t)||(t=t?2:null),JSON.stringify(e,W,t)}function V(e){return w(e)?JSON.parse(e):e}function q(e,t){e=e.replace(tr,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Y(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function K(e,t,n){n=n?-1:1;var i=e.getTimezoneOffset(),r=q(t,i);return Y(e,n*(r-i))}function Z(e){e=Gi(e).clone();try{e.empty()}catch(t){}var n=Gi("<div>").append(e).html();try{return e[0].nodeType===sr?Pi(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+Pi(t)})}catch(t){return Pi(n)}}function X(e){try{return decodeURIComponent(e)}catch(t){}}function J(e){var t={};return i((e||"").split("&"),function(e){var n,i,r;e&&(i=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),n!==-1&&(i=e.substring(0,n),r=e.substring(n+1)),i=X(i),y(i)&&(r=!y(r)||X(r),Oi.call(t,i)?Ki(t[i])?t[i].push(r):t[i]=[t[i],r]:t[i]=r))}),t}function Q(e){var t=[];return i(e,function(e,n){Ki(e)?i(e,function(e){t.push(te(n,!0)+(e===!0?"":"="+te(e,!0)))}):t.push(te(n,!0)+(e===!0?"":"="+te(e,!0)))}),t.length?t.join("&"):""}function ee(e){return te(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function te(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 ne(e,t){var n,i,r=nr.length;for(i=0;i<r;++i)if(n=nr[i]+t,w(n=e.getAttribute(n)))return n;return null}function ie(e,t){var n,r,o={};i(nr,function(t){var i=t+"app";!n&&e.hasAttribute&&e.hasAttribute(i)&&(n=e,r=e.getAttribute(i))}),i(nr,function(t){var i,o=t+"app";!n&&(i=e.querySelector("["+o.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(o))}),n&&(o.strictDi=null!==ne(n,"strict-di"),t(n,r?[r]:[],o))}function re(t,n,r){b(r)||(r={});var o={strictDi:!1};r=l(o,r);var a=function(){if(t=Gi(t),t.injector()){var i=t[0]===e.document?"document":Z(t);throw Vi("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"&lt;").replace(/>/,"&gt;"))}n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=it(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,i){e.$apply(function(){t.data("$injector",i),n(t)(e)})}]),o},s=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;return e&&s.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(s,"")),e&&!u.test(e.name)?a():(e.name=e.name.replace(u,""),qi.resumeBootstrap=function(e){return i(e,function(e){n.push(e)}),a()},void(x(qi.resumeDeferredBootstrap)&&qi.resumeDeferredBootstrap()))}function oe(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function ae(e){var t=qi.element(e).injector();if(!t)throw Vi("test","no injector found for element argument to getTestability");return t.get("$$testability")}function se(e,t){return t=t||"_",e.replace(ir,function(e,n){return(n?t:"")+e.toLowerCase()})}function ue(){var t;if(!rr){var n=er();zi=v(n)?e.jQuery:n?e[n]:void 0,zi&&zi.fn.on?(Gi=zi,l(zi.fn,{scope:Ar.scope,isolateScope:Ar.isolateScope,controller:Ar.controller,injector:Ar.injector,inheritedData:Ar.inheritedData}),t=zi.cleanData,zi.cleanData=function(e){for(var n,i,r=0;null!=(i=e[r]);r++)n=zi._data(i,"events"),n&&n.$destroy&&zi(i).triggerHandler("$destroy");t(e)}):Gi=De,qi.element=Gi,rr=!0}}function le(e,t,n){if(!e)throw Vi("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function ce(e,t,n){return n&&Ki(e)&&(e=e[e.length-1]),le(x(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function pe(e,t){if("hasOwnProperty"===e)throw Vi("badname","hasOwnProperty is not a valid {0} name",t)}function de(e,t,n){if(!t)return e;for(var i,r=t.split("."),o=e,a=r.length,s=0;s<a;s++)i=r[s],e&&(e=(o=e)[i]);return!n&&x(e)?U(o,e):e}function fe(e){for(var t,n=e[0],i=e[e.length-1],r=1;n!==i&&(n=n.nextSibling);r++)(t||e[r]!==n)&&(t||(t=Gi(Ri.call(e,0,r))),t.push(n));return t||e}function he(){return Object.create(null)}function ge(e){function n(e,t,n){return e[t]||(e[t]=n())}var i=t("$injector"),r=t("ng"),o=n(e,"angular",Object);return o.$$minErr=o.$$minErr||t,n(o,"module",function(){var e={};return function(t,o,a){var s=function(e,t){if("hasOwnProperty"===e)throw r("badname","hasOwnProperty is not a valid {0} name",t)};return s(t,"module"),o&&e.hasOwnProperty(t)&&(e[t]=null),n(e,t,function(){function e(e,t,n,i){return i||(i=r),function(){return i[n||"push"]([e,t,arguments]),c}}function n(e,n){return function(i,o){return o&&x(o)&&(o.$$moduleName=t),r.push([e,n,arguments]),c}}if(!o)throw i("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.",t);var r=[],s=[],u=[],l=e("$injector","invoke","push",s),c={_invokeQueue:r,_configBlocks:s,_runBlocks:u,requires:o,name:t,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:l,run:function(e){return u.push(e),this}};return a&&l(a),c})}})}function me(e,t){if(Ki(e)){t=t||[];for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}else if(b(e)){t=t||{};for(var r in e)"$"===r.charAt(0)&&"$"===r.charAt(1)||(t[r]=e[r])}return t||e}function ve(e){var t=[];return JSON.stringify(e,function(e,n){if(n=W(e,n),b(n)){if(t.indexOf(n)>=0)return"...";t.push(n)}return n})}function ye(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):v(e)?"undefined":"string"!=typeof e?ve(e):e}function be(n){l(n,{bootstrap:re,copy:z,extend:l,merge:c,equals:F,element:Gi,forEach:i,injector:it,noop:f,bind:U,toJson:H,fromJson:V,identity:h,isUndefined:v,isDefined:y,isString:w,isFunction:x,isObject:b,isNumber:_,isElement:L,isArray:Ki,version:pr,isDate:k,lowercase:Pi,uppercase:Ii,callbacks:{counter:0},getTestability:ae,$$minErr:t,$$csp:Qi,reloadWithDebugInfo:oe}),(Fi=ge(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Cn}),e.provider("$compile",ht).directive({a:Io,input:Qo,textarea:Qo,form:zo,script:Ya,select:Xa,style:Qa,option:Ja,ngBind:na,ngBindHtml:ra,ngBindTemplate:ia,ngClass:aa,ngClassEven:ua,ngClassOdd:sa,ngCloak:la,ngController:ca,ngForm:Fo,ngHide:Ra,ngIf:fa,ngInclude:ha,ngInit:ma,ngNonBindable:Oa,ngPluralize:ja,ngRepeat:Na,ngShow:Fa,ngStyle:Ba,ngSwitch:Ua,ngSwitchWhen:Wa,ngSwitchDefault:Ha,ngOptions:La,ngTransclude:qa,ngModel:Da,ngList:va,ngChange:oa,pattern:ts,ngPattern:ts,required:es,ngRequired:es,minlength:is,ngMinlength:is,maxlength:ns,ngMaxlength:ns,ngValue:ta,ngModelOptions:Ea}).directive({ngInclude:ga}).directive(Lo).directive(pa),e.provider({$anchorScroll:rt,$animate:Br,$animateCss:Hr,$$animateJs:Fr,$$animateQueue:Rr,$$AnimateRunner:Wr,$$animateAsyncRun:Ur,$browser:ct,$cacheFactory:pt,$controller:$t,$document:wt,$exceptionHandler:_t,$filter:zn,$$forceReflow:Xr,$interpolate:jt,$interval:Nt,$http:Ot,$httpParamSerializer:xt,$httpParamSerializerJQLike:Ct,$httpBackend:It,$xhrFactory:Pt,$location:Jt,$log:Qt,$parse:bn,$rootScope:xn,$q:$n,$$q:wn,$sce:Dn,$sceDelegate:Sn,$sniffer:Tn,$templateCache:dt,$templateRequest:En,$$testability:On,$timeout:Pn,$window:jn,$$rAF:kn,$$jqLite:Ze,$$HashMap:Tr,$$cookieReader:Gn})}])}function $e(){return++fr}function we(e){return e.replace(mr,function(e,t,n,i){return i?n.toUpperCase():n}).replace(vr,"Moz$1")}function _e(e){return!wr.test(e)}function ke(e){var t=e.nodeType;return t===or||!t||t===lr}function xe(e){for(var t in dr[e.ng339])return!0;return!1}function Ce(e){for(var t=0,n=e.length;t<n;t++)Pe(e[t])}function Ae(e,t){var n,r,o,a,s=t.createDocumentFragment(),u=[];if(_e(e))u.push(t.createTextNode(e));else{for(n=n||s.appendChild(t.createElement("div")),r=(_r.exec(e)||["",""])[1].toLowerCase(),o=xr[r]||xr._default,n.innerHTML=o[1]+e.replace(kr,"<$1></$2>")+o[2],a=o[0];a--;)n=n.lastChild;u=R(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",i(u,function(e){s.appendChild(e)}),s}function Me(t,n){n=n||e.document;var i;return(i=$r.exec(t))?[n.createElement(i[1])]:(i=Ae(t,n))?i.childNodes:[]}function Se(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function De(e){if(e instanceof De)return e;var t;if(w(e)&&(e=Xi(e),t=!0),!(this instanceof De)){if(t&&"<"!=e.charAt(0))throw br("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new De(e)}t?ze(this,Me(e)):ze(this,e)}function Te(e){return e.cloneNode(!0)}function Ee(e,t){if(t||Pe(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),i=0,r=n.length;i<r;i++)Pe(n[i])}function Oe(e,t,n,r){if(y(r))throw br("offargs","jqLite#off() does not support the `selector` argument");var o=Ie(e),a=o&&o.events,s=o&&o.handle;if(s)if(t){var u=function(t){var i=a[t];y(n)&&G(i||[],n),y(n)&&i&&i.length>0||(gr(e,t,s),delete a[t])};i(t.split(" "),function(e){u(e),yr[e]&&u(yr[e])})}else for(t in a)"$destroy"!==t&&gr(e,t,s),delete a[t]}function Pe(e,t){var n=e.ng339,i=n&&dr[n];if(i){if(t)return void delete i.data[t];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),Oe(e)),delete dr[n],e.ng339=void 0}}function Ie(e,t){var n=e.ng339,i=n&&dr[n];return t&&!i&&(e.ng339=n=$e(),i=dr[n]={events:{},data:{},handle:void 0}),i}function Le(e,t,n){if(ke(e)){var i=y(n),r=!i&&t&&!b(t),o=!t,a=Ie(e,!r),s=a&&a.data;if(i)s[t]=n;else{if(o)return s;if(r)return s&&s[t];l(s,t)}}}function je(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function Ne(e,t){t&&e.setAttribute&&i(t.split(" "),function(t){e.setAttribute("class",Xi((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Xi(t)+" "," ")))})}function Ge(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");i(t.split(" "),function(e){e=Xi(e),n.indexOf(" "+e+" ")===-1&&(n+=e+" ")}),e.setAttribute("class",Xi(n))}}function ze(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 i=0;i<n;i++)e[e.length++]=t[i]}else e[e.length++]=t}}function Fe(e,t){return Re(e,"$"+(t||"ngController")+"Controller")}function Re(e,t,n){e.nodeType==lr&&(e=e.documentElement);for(var i=Ki(t)?t:[t];e;){for(var r=0,o=i.length;r<o;r++)if(y(n=Gi.data(e,i[r])))return n;e=e.parentNode||e.nodeType===cr&&e.host}}function Be(e){for(Ee(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Ue(e,t){t||Ee(e);var n=e.parentNode;n&&n.removeChild(e)}function We(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):Gi(n).on("load",t)}function He(e,t){var n=Mr[t.toLowerCase()];return n&&Sr[N(e)]&&n}function Ve(e){return Dr[e]}function qe(e,t){var n=function(n,i){n.isDefaultPrevented=function(){return n.defaultPrevented};var r=t[i||n.type],o=r?r.length:0;if(o){if(v(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 s=r.specialHandlerWrapper||Ye;o>1&&(r=me(r));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(e,n,r[u])}};return n.elem=e,n}function Ye(e,t,n){n.call(e,t)}function Ke(e,t,n){var i=t.relatedTarget;i&&(i===e||Cr.call(e,i))||n.call(e,t)}function Ze(){this.$get=function(){return l(De,{hasClass:function(e,t){return e.attr&&(e=e[0]),je(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Ge(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Ne(e,t)}})}}function Xe(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var i=typeof e;return n="function"==i||"object"==i&&null!==e?e.$$hashKey=i+":"+(t||a)():i+":"+e}function Je(e,t){if(t){var n=0;this.nextUid=function(){return++n}}i(e,this.put,this)}function Qe(e){return Function.prototype.toString.call(e)+" "}function et(e){var t=Qe(e).replace(Lr,""),n=t.match(Er)||t.match(Or);return n}function tt(e){var t=et(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function nt(e,t,n){var r,o,a;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw w(n)&&n||(n=e.name||tt(e)),jr("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);o=et(e),i(o[1].split(Pr),function(e){e.replace(Ir,function(e,t,n){r.push(n)})})}e.$inject=r}}else Ki(e)?(a=e.length-1,ce(e[a],"fn"),r=e.slice(0,a)):ce(e,"fn",!0);return r}function it(e,t){function n(e){return function(t,n){return b(t)?void i(t,o(e)):e(t,n)}}function r(e,t){if(pe(e,"service"),(x(t)||Ki(t))&&(t=k.instantiate(t)),!t.$get)throw jr("pget","Provider '{0}' must define $get factory method.",e);return _[e+m]=t}function a(e,t){return function(){var n=M.invoke(t,this);if(v(n))throw jr("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function s(e,t,n){return r(e,{$get:n!==!1?a(e,t):t})}function u(e,t){return s(e,["$injector",function(e){return e.instantiate(t)}])}function l(e,t){return s(e,g(t),!1)}function c(e,t){pe(e,"constant"),_[e]=t,C[e]=t}function p(e,t){var n=k.get(e+m),i=n.$get;n.$get=function(){var e=M.invoke(i,n);return M.invoke(t,null,{$delegate:e})}}function d(e){le(v(e)||Ki(e),"modulesToLoad","not an array");var t,n=[];return i(e,function(e){function i(e){var t,n;for(t=0,n=e.length;t<n;t++){var i=e[t],r=k.get(i[0]);r[i[1]].apply(r,i[2])}}if(!$.get(e)){$.put(e,!0);try{w(e)?(t=Fi(e),n=n.concat(d(t.requires)).concat(t._runBlocks),i(t._invokeQueue),i(t._configBlocks)):x(e)?n.push(k.invoke(e)):Ki(e)?n.push(k.invoke(e)):ce(e,"module")}catch(r){throw Ki(e)&&(e=e[e.length-1]),r.message&&r.stack&&r.stack.indexOf(r.message)==-1&&(r=r.message+"\n"+r.stack),jr("modulerr","Failed to instantiate module {0} due to:\n{1}",e,r.stack||r.message||r)}}}),n}function f(e,n){function i(t,i){if(e.hasOwnProperty(t)){if(e[t]===h)throw jr("cdep","Circular dependency found: {0}",t+" <- "+y.join(" <- "));return e[t]}try{return y.unshift(t),e[t]=h,e[t]=n(t,i)}catch(r){throw e[t]===h&&delete e[t],r}finally{y.shift()}}function r(e,n,r){for(var o=[],a=it.$$annotate(e,t,r),s=0,u=a.length;s<u;s++){var l=a[s];if("string"!=typeof l)throw jr("itkn","Incorrect injection token! Expected service name as string, got {0}",l);o.push(n&&n.hasOwnProperty(l)?n[l]:i(l,r))}return o}function o(e){return!(Ni<=11)&&("function"==typeof e&&/^(?:class\s|constructor\()/.test(Qe(e)))}function a(e,t,n,i){"string"==typeof n&&(i=n,n=null);var a=r(e,n,i);return Ki(e)&&(e=e[e.length-1]),o(e)?(a.unshift(null),new(Function.prototype.bind.apply(e,a))):e.apply(t,a)}function s(e,t,n){var i=Ki(e)?e[e.length-1]:e,o=r(e,t,n);return o.unshift(null),new(Function.prototype.bind.apply(i,o))}return{invoke:a,instantiate:s,get:i,annotate:it.$$annotate,has:function(t){return _.hasOwnProperty(t+m)||e.hasOwnProperty(t)}}}t=t===!0;var h={},m="Provider",y=[],$=new Je([],(!0)),_={$provide:{provider:n(r),factory:n(s),service:n(u),value:n(l),constant:n(c),decorator:p}},k=_.$injector=f(_,function(e,t){throw qi.isString(t)&&y.push(t),jr("unpr","Unknown provider: {0}",y.join(" <- "))}),C={},A=f(C,function(e,t){var n=k.get(e+m,t);return M.invoke(n.$get,n,void 0,e)}),M=A;_["$injector"+m]={$get:g(A)};var S=d(e);return M=A.get("$injector"),M.strictDi=t,i(S,function(e){e&&M.invoke(e)}),M}function rt(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,i){function r(e){var t=null;return Array.prototype.some.call(e,function(e){if("a"===N(e))return t=e,!0}),t}function o(){var e=s.yOffset;if(x(e))e=e();else if(L(e)){var n=e[0],i=t.getComputedStyle(n);e="fixed"!==i.position?0:n.getBoundingClientRect().bottom}else _(e)||(e=0);return e}function a(e){if(e){e.scrollIntoView();var n=o();if(n){var i=e.getBoundingClientRect().top;t.scrollBy(0,i-n)}}else t.scrollTo(0,0)}function s(e){e=w(e)?e:n.hash();var t;e?(t=u.getElementById(e))?a(t):(t=r(u.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var u=t.document;return e&&i.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||We(function(){i.$evalAsync(s)})}),s}]}function ot(e,t){return e||t?e?t?(Ki(e)&&(e=e.join(" ")),Ki(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function at(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===Gr)return n}}function st(e){w(e)&&(e=e.split(" "));var t=he();return i(e,function(e){e.length&&(t[e]=!0)}),t}function ut(e){return b(e)?e:{}}function lt(e,t,n,r){function o(e){try{e.apply(null,B(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 t===-1?"":e.substr(t)}function s(){x=null,u(),l()}function u(){$=C(),$=v($)?null:$,F($,S)&&($=S),S=$}function l(){_===c.url()&&w===$||(_=c.url(),w=$,i(A,function(e){e(c.url(),$)}))}var c=this,p=e.location,d=e.history,h=e.setTimeout,g=e.clearTimeout,m={};c.isMock=!1;var y=0,b=[];c.$$completeOutstandingRequest=o,c.$$incOutstandingRequestCount=function(){y++},c.notifyWhenNoOutstandingRequests=function(e){0===y?e():b.push(e)};var $,w,_=p.href,k=t.find("base"),x=null,C=r.history?function(){try{return d.state}catch(e){}}:f;u(),w=$,c.url=function(t,n,i){if(v(i)&&(i=null),p!==e.location&&(p=e.location),d!==e.history&&(d=e.history),t){var o=w===i;if(_===t&&(!r.history||o))return c;var s=_&&Ut(_)===Ut(t);return _=t,w=i,!r.history||s&&o?(s||(x=t),n?p.replace(t):s?p.hash=a(t):p.href=t,p.href!==t&&(x=t)):(d[n?"replaceState":"pushState"](i,"",t),u(),w=$),x&&(x=t),c}return x||p.href.replace(/%27/g,"'")},c.state=function(){return $};var A=[],M=!1,S=null;c.onUrlChange=function(t){return M||(r.history&&Gi(e).on("popstate",s),Gi(e).on("hashchange",s),M=!0),A.push(t),t},c.$$applicationDestroyed=function(){Gi(e).off("hashchange popstate",s)},c.$$checkUrlChange=l,c.baseHref=function(){var e=k.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""},c.defer=function(e,t){var n;return y++,n=h(function(){delete m[n],o(e)},t||0),m[n]=!0,n},c.defer.cancel=function(e){return!!m[e]&&(delete m[e],g(e),o(f),!0)}}function ct(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,i){return new lt(e,i,t,n)}]}function pt(){this.$get=function(){function e(e,i){function r(e){e!=d&&(f?f==e&&(f=e.n):f=e,o(e.n,e.p),o(e,d),d=e,d.n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in n)throw t("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=l({},i,{id:e}),u=he(),c=i&&i.capacity||Number.MAX_VALUE,p=he(),d=null,f=null;return n[e]={put:function(e,t){if(!v(t)){if(c<Number.MAX_VALUE){var n=p[e]||(p[e]={key:e});r(n)}return e in u||a++,u[e]=t,a>c&&this.remove(f.key),t}},get:function(e){if(c<Number.MAX_VALUE){var t=p[e];if(!t)return;r(t)}return u[e]},remove:function(e){if(c<Number.MAX_VALUE){var t=p[e];if(!t)return;t==d&&(d=t.p),t==f&&(f=t.n),o(t.n,t.p),delete p[e]}e in u&&(delete u[e],a--)},removeAll:function(){u=he(),a=0,p=he(),d=f=null},destroy:function(){u=null,s=null,p=null,delete n[e]},info:function(){return l({},s,{size:a})}}}var n={};return e.info=function(){var e={};return i(n,function(t,n){e[n]=t.info()}),e},e.get=function(e){return n[e]},e}}function dt(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function ft(){}function ht(t,n){function r(e,t,n){var r=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,o=he();return i(e,function(e,i){if(e in A)return void(o[i]=A[e]);var a=e.match(r);if(!a)throw Vr("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,i,e,n?"controller bindings definition":"isolate scope definition");o[i]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||i},a[4]&&(A[e]=o[i])}),o}function a(e,t){var n={isolateScope:null,bindToController:null};if(b(e.scope)&&(e.bindToController===!0?(n.bindToController=r(e.scope,t,!0),n.isolateScope={}):n.isolateScope=r(e.scope,t,!1)),b(e.bindToController)&&(n.bindToController=r(e.bindToController,t,!0)),b(n.bindToController)){var i=e.controller,o=e.controllerAs;if(!i)throw Vr("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);if(!bt(i,o))throw Vr("noident","Cannot bind to controller without identifier for directive '{0}'.",t)}return n}function s(e){var t=e.charAt(0);if(!t||t!==Pi(t))throw Vr("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw Vr("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}function u(e){var t=e.require||e.controller&&e.name;return!Ki(t)&&b(t)&&i(t,function(e,n){var i=e.match(k),r=e.substring(i[0].length);r||(t[n]=i[0]+n)}),t}var c={},p="Directive",m=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,$=/(([\w\-]+)(?:\:([^;]+))?;?)/,_=j("ngSrc,ngSrcset,src,srcset"),k=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,C=/^(on[a-z]+|formaction)$/,A=he();this.directive=function T(e,n){return pe(e,"directive"),w(e)?(s(e),le(n,"directiveFactory"),c.hasOwnProperty(e)||(c[e]=[],t.factory(e+p,["$injector","$exceptionHandler",function(t,n){var r=[];return i(c[e],function(i,o){try{var a=t.invoke(i);x(a)?a={compile:g(a)}:!a.compile&&a.link&&(a.compile=g(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||e,a.require=u(a),a.restrict=a.restrict||"EA",a.$$moduleName=i.$$moduleName,r.push(a)}catch(s){n(s)}}),r}])),c[e].push(n)):i(e,o(T)),this},this.component=function(e,t){function n(e){function n(t){return x(t)||Ki(t)?function(n,i){return e.invoke(t,this,{$element:n,$attrs:i})}:t}var o=t.template||t.templateUrl?t.template:"",a={controller:r,controllerAs:bt(t.controller)||t.controllerAs||"$ctrl",template:n(o),templateUrl:n(t.templateUrl),transclude:t.transclude,scope:{},bindToController:t.bindings||{},restrict:"E",require:t.require};return i(t,function(e,t){"$"===t.charAt(0)&&(a[t]=e)}),a}var r=t.controller||function(){};return i(t,function(e,t){"$"===t.charAt(0)&&(n[t]=e,x(r)&&(r[t]=e))}),n.$inject=["$injector"],this.directive(e,n)},this.aHrefSanitizationWhitelist=function(e){return y(e)?(n.aHrefSanitizationWhitelist(e),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(n.imgSrcSanitizationWhitelist(e),this):n.imgSrcSanitizationWhitelist()};var S=!0;this.debugInfoEnabled=function(e){return y(e)?(S=e,this):S};var D=10;this.onChangesTtl=function(e){return arguments.length?(D=e,this):D},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(t,n,r,o,s,u,g,A,T,O){function P(){try{if(!--we)throw ye=void 0,Vr("infchng","{0} $onChanges() iterations reached. Aborting!\n",D);g.$apply(function(){for(var e=[],t=0,n=ye.length;t<n;++t)try{ye[t]()}catch(i){e.push(i)}if(ye=void 0,e.length)throw e})}finally{we++}}function I(e,t){if(t){var n,i,r,o=Object.keys(t);for(n=0,i=o.length;n<i;n++)r=o[n],this[r]=t[r]}else this.$attr={};this.$$element=e}function L(e,t,n){$e.innerHTML="<span "+t+">";var i=$e.firstChild.attributes,r=i[0];i.removeNamedItem(r.name),r.value=n,e.attributes.setNamedItem(r)}function j(e,t){try{e.addClass(t)}catch(n){}}function z(t,n,i,r,o){t instanceof Gi||(t=Gi(t));for(var a=/\S+/,s=0,u=t.length;s<u;s++){var l=t[s];l.nodeType===sr&&l.nodeValue.match(a)&&Se(l,t[s]=e.document.createElement("span"))}var c=W(t,n,t,i,r,o);z.$$addScopeClass(t);var p=null;return function(e,n,i){le(e,"scope"),o&&o.needsNewScope&&(e=e.$parent.$new()),i=i||{};var r=i.parentBoundTranscludeFn,a=i.transcludeControllers,s=i.futureParentElement;r&&r.$$boundTransclude&&(r=r.$$boundTransclude),p||(p=R(s));var u;if(u="html"!==p?Gi(ce(p,Gi("<div>").append(t).html())):n?Ar.clone.call(t):t,a)for(var l in a)u.data("$"+l+"Controller",a[l].instance);return z.$$addScopeInfo(u,e),n&&n(u,e),c&&c(e,u,u,r),u}}function R(e){var t=e&&e[0];return t&&"foreignobject"!==N(t)&&Wi.call(t).match(/SVG/)?"svg":"html"}function W(e,t,n,i,r,o){function a(e,n,i,r){var o,a,s,u,l,c,p,d,g;if(f){var m=n.length;for(g=new Array(m),l=0;l<h.length;l+=3)p=h[l],g[p]=n[p]}else g=n;for(l=0,c=h.length;l<c;)s=g[h[l++]],o=h[l++],a=h[l++],o?(o.scope?(u=e.$new(),z.$$addScopeInfo(Gi(s),u)):u=e,d=o.transcludeOnThisElement?H(e,o.transclude,r):!o.templateOnThisElement&&r?r:!r&&t?H(e,t):null,o(a,u,s,i,d)):a&&a(e,s.childNodes,void 0,r)}for(var s,u,l,c,p,d,f,h=[],g=0;g<e.length;g++)s=new I,u=V(e[g],[],s,0===g?i:void 0,r),l=u.length?X(u,e[g],s,t,n,null,[],[],o):null,l&&l.scope&&z.$$addScopeClass(s.$$element),p=l&&l.terminal||!(c=e[g].childNodes)||!c.length?null:W(c,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:t),(l||p)&&(h.push(g,l,p),d=!0,f=f||l),o=null;return d?a:null}function H(e,t,n){function i(i,r,o,a,s){return i||(i=e.$new(!1,s),i.$$transcluded=!0),t(i,r,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var r=i.$$slots=he();for(var o in t.$$slots)t.$$slots[o]?r[o]=H(e,t.$$slots[o],n):r[o]=null;return i}function V(e,t,n,i,r){var o,a,s=e.nodeType,u=n.$attr;switch(s){case or:te(t,mt(N(e)),"E",i,r);for(var l,c,p,d,f,h,g=e.attributes,v=0,y=g&&g.length;v<y;v++){var _=!1,k=!1;l=g[v],c=l.name,f=Xi(l.value),d=mt(c),(h=Ae.test(d))&&(c=c.replace(Yr,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var x=d.match(Me);x&&ne(x[1])&&(_=c,k=c.substr(0,c.length-5)+"end",c=c.substr(0,c.length-6)),
  p=mt(c.toLowerCase()),u[p]=c,!h&&n.hasOwnProperty(p)||(n[p]=f,He(e,p)&&(n[p]=!0)),de(e,t,f,p,h),te(t,p,"A",i,r,_,k)}if(a=e.className,b(a)&&(a=a.animVal),w(a)&&""!==a)for(;o=$.exec(a);)p=mt(o[2]),te(t,p,"C",i,r)&&(n[p]=Xi(o[3])),a=a.substr(o.index+o[0].length);break;case sr:if(11===Ni)for(;e.parentNode&&e.nextSibling&&e.nextSibling.nodeType===sr;)e.nodeValue=e.nodeValue+e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);ue(t,e.nodeValue);break;case ur:try{o=m.exec(e.nodeValue),o&&(p=mt(o[1]),te(t,p,"M",i,r)&&(n[p]=Xi(o[2])))}catch(C){}}return t.sort(oe),t}function q(e,t,n){var i=[],r=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw Vr("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType==or&&(e.hasAttribute(t)&&r++,e.hasAttribute(n)&&r--),i.push(e),e=e.nextSibling}while(r>0)}else i.push(e);return Gi(i)}function Y(e,t,n){return function(i,r,o,a,s){return r=q(r[0],t,n),e(i,r,o,a,s)}}function K(e,t,n,i,r,o){var a;return e?z(t,n,i,r,o):function(){return a||(a=z(t,n,i,r,o),t=n=o=null),a.apply(this,arguments)}}function X(e,t,n,o,a,s,u,c,p){function d(e,t,n,i){e&&(n&&(e=Y(e,n,i)),e.require=h.require,e.directiveName=g,(C===h||h.$$isolateScope)&&(e=ge(e,{isolateScope:!0})),u.push(e)),t&&(n&&(t=Y(t,n,i)),t.require=h.require,t.directiveName=g,(C===h||h.$$isolateScope)&&(t=ge(t,{isolateScope:!0})),c.push(t))}function f(e,o,a,s,p){function d(e,t,n,i){var r;if(M(e)||(i=n,n=t,t=e,e=void 0),E&&(r=$),n||(n=E?S.parent():S),!i)return p(e,t,r,n,G);var o=p.$$slots[i];if(o)return o(e,t,r,n,G);if(v(o))throw Vr("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',i,Z(S))}var f,h,g,m,y,$,w,S,D,T;t===a?(D=n,S=n.$$element):(S=Gi(a),D=new I(S,n)),y=o,C?m=o.$new(!0):_&&(y=o.$parent),p&&(w=d,w.$$boundTransclude=p,w.isSlotFilled=function(e){return!!p.$$slots[e]}),k&&($=Q(S,D,w,k,m,o,C)),C&&(z.$$addScopeInfo(S,m,!0,!(A&&(A===C||A===C.$$originalDirective))),z.$$addScopeClass(S,!0),m.$$isolateBindings=C.$$isolateBindings,T=ve(o,D,m,m.$$isolateBindings,C),T.removeWatches&&m.$on("$destroy",T.removeWatches));for(var O in $){var P=k[O],L=$[O],j=P.$$bindings.bindToController;L.identifier&&j?L.bindingInfo=ve(y,D,L.instance,j,P):L.bindingInfo={};var N=L();N!==L.instance&&(L.instance=N,S.data("$"+P.name+"Controller",N),L.bindingInfo.removeWatches&&L.bindingInfo.removeWatches(),L.bindingInfo=ve(y,D,L.instance,j,P))}for(i(k,function(e,t){var n=e.require;e.bindToController&&!Ki(n)&&b(n)&&l($[t].instance,J(t,n,S,$))}),i($,function(e){var t=e.instance;if(x(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(n){r(n)}if(x(t.$onInit))try{t.$onInit()}catch(n){r(n)}x(t.$onDestroy)&&y.$on("$destroy",function(){t.$onDestroy()})}),f=0,h=u.length;f<h;f++)g=u[f],me(g,g.isolateScope?m:o,S,D,g.require&&J(g.directiveName,g.require,S,$),w);var G=o;for(C&&(C.template||null===C.templateUrl)&&(G=m),e&&e(G,a.childNodes,void 0,p),f=c.length-1;f>=0;f--)g=c[f],me(g,g.isolateScope?m:o,S,D,g.require&&J(g.directiveName,g.require,S,$),w);i($,function(e){var t=e.instance;x(t.$postLink)&&t.$postLink()})}p=p||{};for(var h,g,m,y,$,w=-Number.MAX_VALUE,_=p.newScopeDirective,k=p.controllerDirectives,C=p.newIsolateScopeDirective,A=p.templateDirective,S=p.nonTlbTranscludeDirective,D=!1,T=!1,E=p.hasElementTranscludeDirective,O=n.$$element=Gi(t),P=s,L=o,j=!1,G=!1,F=0,R=e.length;F<R;F++){h=e[F];var W=h.$$start,H=h.$$end;if(W&&(O=q(t,W,H)),m=void 0,w>h.priority)break;if(($=h.scope)&&(h.templateUrl||(b($)?(ae("new/isolated scope",C||_,h,O),C=h):ae("new/isolated scope",C,h,O)),_=_||h),g=h.name,!j&&(h.replace&&(h.templateUrl||h.template)||h.transclude&&!h.$$tlb)){for(var X,te=F+1;X=e[te++];)if(X.transclude&&!X.$$tlb||X.replace&&(X.templateUrl||X.template)){G=!0;break}j=!0}if(!h.templateUrl&&h.controller&&($=h.controller,k=k||he(),ae("'"+g+"' controller",k[g],h,O),k[g]=h),$=h.transclude)if(D=!0,h.$$tlb||(ae("transclusion",S,h,O),S=h),"element"==$)E=!0,w=h.priority,m=O,O=n.$$element=Gi(z.$$createComment(g,n[g])),t=O[0],fe(a,B(m),t),m[0].$$parentNode=m[0].parentNode,L=K(G,m,o,w,P&&P.name,{nonTlbTranscludeDirective:S});else{var ne=he();if(m=Gi(Te(t)).contents(),b($)){m=[];var oe=he(),se=he();i($,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,oe[e]=t,ne[t]=null,se[t]=n}),i(O.contents(),function(e){var t=oe[mt(N(e))];t?(se[t]=!0,ne[t]=ne[t]||[],ne[t].push(e)):m.push(e)}),i(se,function(e,t){if(!e)throw Vr("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var ue in ne)ne[ue]&&(ne[ue]=K(G,ne[ue],o))}O.empty(),L=K(G,m,o,void 0,void 0,{needsNewScope:h.$$isolateScope||h.$$newScope}),L.$$slots=ne}if(h.template)if(T=!0,ae("template",A,h,O),A=h,$=x(h.template)?h.template(O,n):h.template,$=Ce($),h.replace){if(P=h,m=_e($)?[]:yt(ce(h.templateNamespace,Xi($))),t=m[0],1!=m.length||t.nodeType!==or)throw Vr("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g,"");fe(a,O,t);var le={$attr:{}},pe=V(t,[],le),de=e.splice(F+1,e.length-(F+1));(C||_)&&ee(pe,C,_),e=e.concat(pe).concat(de),ie(n,le),R=e.length}else O.html($);if(h.templateUrl)T=!0,ae("template",A,h,O),A=h,h.replace&&(P=h),f=re(e.splice(F,e.length-F),O,n,a,D&&L,u,c,{controllerDirectives:k,newScopeDirective:_!==h&&_,newIsolateScopeDirective:C,templateDirective:A,nonTlbTranscludeDirective:S}),R=e.length;else if(h.compile)try{y=h.compile(O,n,L);var ye=h.$$originalDirective||h;x(y)?d(null,U(ye,y),W,H):y&&d(U(ye,y.pre),U(ye,y.post),W,H)}catch(be){r(be,Z(O))}h.terminal&&(f.terminal=!0,w=Math.max(w,h.priority))}return f.scope=_&&_.scope===!0,f.transcludeOnThisElement=D,f.templateOnThisElement=T,f.transclude=L,p.hasElementTranscludeDirective=E,f}function J(e,t,n,r){var o;if(w(t)){var a=t.match(k),s=t.substring(a[0].length),u=a[1]||a[3],l="?"===a[2];if("^^"===u?n=n.parent():(o=r&&r[s],o=o&&o.instance),!o){var c="$"+s+"Controller";o=u?n.inheritedData(c):n.data(c)}if(!o&&!l)throw Vr("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(Ki(t)){o=[];for(var p=0,d=t.length;p<d;p++)o[p]=J(e,t[p],n,r)}else b(t)&&(o={},i(t,function(t,i){o[i]=J(e,t,n,r)}));return o||null}function Q(e,t,n,i,r,o,a){var s=he();for(var l in i){var c=i[l],p={$scope:c===a||c.$$isolateScope?r:o,$element:e,$attrs:t,$transclude:n},d=c.controller;"@"==d&&(d=t[c.name]);var f=u(d,p,!0,c.controllerAs);s[c.name]=f,e.data("$"+c.name+"Controller",f.instance)}return s}function ee(e,t,n){for(var i=0,r=e.length;i<r;i++)e[i]=d(e[i],{$$isolateScope:t,$$newScope:n})}function te(e,n,i,o,s,u,l){if(n===s)return null;var f=null;if(c.hasOwnProperty(n))for(var h,g=t.get(n+p),m=0,y=g.length;m<y;m++)try{if(h=g[m],(v(o)||o>h.priority)&&h.restrict.indexOf(i)!=-1){if(u&&(h=d(h,{$$start:u,$$end:l})),!h.$$bindings){var $=h.$$bindings=a(h,h.name);b($.isolateScope)&&(h.$$isolateBindings=$.isolateScope)}e.push(h),f=h}}catch(w){r(w)}return f}function ne(e){if(c.hasOwnProperty(e))for(var n,i=t.get(e+p),r=0,o=i.length;r<o;r++)if(n=i[r],n.multiElement)return!0;return!1}function ie(e,t){var n=t.$attr,r=e.$attr;e.$$element;i(e,function(i,r){"$"!=r.charAt(0)&&(t[r]&&t[r]!==i&&(i+=("style"===r?";":" ")+t[r]),e.$set(r,i,!0,n[r]))}),i(t,function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))})}function re(e,t,n,r,a,s,u,l){var c,p,f=[],h=t[0],g=e.shift(),m=d(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=x(g.templateUrl)?g.templateUrl(t,n):g.templateUrl,y=g.templateNamespace;return t.empty(),o(v).then(function(o){var d,$,w,_;if(o=Ce(o),g.replace){if(w=_e(o)?[]:yt(ce(y,Xi(o))),d=w[0],1!=w.length||d.nodeType!==or)throw Vr("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,v);$={$attr:{}},fe(r,t,d);var k=V(d,[],$);b(g.scope)&&ee(k,!0),e=k.concat(e),ie(n,$)}else d=h,t.html(o);for(e.unshift(m),c=X(e,d,n,a,t,g,s,u,l),i(r,function(e,n){e==d&&(r[n]=t[0])}),p=W(t[0].childNodes,a);f.length;){var x=f.shift(),C=f.shift(),A=f.shift(),M=f.shift(),S=t[0];if(!x.$$destroyed){if(C!==h){var D=C.className;l.hasElementTranscludeDirective&&g.replace||(S=Te(d)),fe(A,Gi(C),S),j(Gi(S),D)}_=c.transcludeOnThisElement?H(x,c.transclude,M):M,c(p,x,S,r,_)}}f=null}),function(e,t,n,i,r){var o=r;t.$$destroyed||(f?f.push(t,n,i,o):(c.transcludeOnThisElement&&(o=H(t,c.transclude,r)),c(p,t,n,i,o)))}}function oe(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 ae(e,t,n,i){function r(e){return e?" (module: "+e+")":""}if(t)throw Vr("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,r(t.$$moduleName),n.name,r(n.$$moduleName),e,Z(i))}function ue(e,t){var i=n(t,!0);i&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&z.$$addBindingClass(t),function(e,t){var r=t.parent();n||z.$$addBindingClass(r),z.$$addBindingInfo(r,i.expressions),e.$watch(i,function(e){t[0].nodeValue=e})}}})}function ce(t,n){switch(t=Pi(t||"html")){case"svg":case"math":var i=e.document.createElement("div");return i.innerHTML="<"+t+">"+n+"</"+t+">",i.childNodes[0].childNodes;default:return n}}function pe(e,t){if("srcdoc"==t)return A.HTML;var n=N(e);return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?A.RESOURCE_URL:void 0}function de(e,t,i,r,o){var a=pe(e,r);o=_[r]||o;var s=n(i,!0,a,o);if(s){if("multiple"===r&&"select"===N(e))throw Vr("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Z(e));t.push({priority:100,compile:function(){return{pre:function(e,t,u){var l=u.$$observers||(u.$$observers=he());if(C.test(r))throw Vr("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=u[r];c!==i&&(s=c&&n(c,!0,a,o),i=c),s&&(u[r]=s(e),(l[r]||(l[r]=[])).$$inter=!0,(u.$$observers&&u.$$observers[r].$$scope||e).$watch(s,function(e,t){"class"===r&&e!=t?u.$updateClass(e,t):u.$set(r,e)}))}}}})}}function fe(t,n,i){var r,o,a=n[0],s=n.length,u=a.parentNode;if(t)for(r=0,o=t.length;r<o;r++)if(t[r]==a){t[r++]=i;for(var l=r,c=l+s-1,p=t.length;l<p;l++,c++)c<p?t[l]=t[c]:delete t[l];t.length-=s-1,t.context===a&&(t.context=i);break}u&&u.replaceChild(i,a);var d=e.document.createDocumentFragment();for(r=0;r<s;r++)d.appendChild(n[r]);for(Gi.hasData(a)&&(Gi.data(i,Gi.data(a)),Gi(a).off("$destroy")),Gi.cleanData(d.querySelectorAll("*")),r=1;r<s;r++)delete n[r];n[0]=i,n.length=1}function ge(e,t){return l(function(){return e.apply(null,arguments)},e,t)}function me(e,t,n,i,o,a){try{e(t,n,i,o,a)}catch(s){r(s,Z(n))}}function ve(e,t,r,o,a){function u(t,n,i){x(r.$onChanges)&&n!==i&&(ye||(e.$$postDigest(P),ye=[]),c||(c={},ye.push(l)),c[t]&&(i=c[t].previousValue),c[t]=new gt(i,n))}function l(){r.$onChanges(c),c=void 0}var c,p=[],d={};return i(o,function(i,o){var l,c,h,g,m,v=i.attrName,y=i.optional,b=i.mode;switch(b){case"@":y||Oi.call(t,v)||(r[o]=t[v]=void 0),t.$observe(v,function(e){if(w(e)||E(e)){var t=r[o];u(o,e,t),r[o]=e}}),t.$$observers[v].$$scope=e,l=t[v],w(l)?r[o]=n(l)(e):E(l)&&(r[o]=l),d[o]=new gt(qr,r[o]);break;case"=":if(!Oi.call(t,v)){if(y)break;t[v]=void 0}if(y&&!t[v])break;c=s(t[v]),g=c.literal?F:function(e,t){return e===t||e!==e&&t!==t},h=c.assign||function(){throw l=r[o]=c(e),Vr("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[v],v,a.name)},l=r[o]=c(e);var $=function(t){return g(t,r[o])||(g(t,l)?h(e,t=r[o]):r[o]=t),l=t};$.$stateful=!0,m=i.collection?e.$watchCollection(t[v],$):e.$watch(s(t[v],$),null,c.literal),p.push(m);break;case"<":if(!Oi.call(t,v)){if(y)break;t[v]=void 0}if(y&&!t[v])break;c=s(t[v]);var _=r[o]=c(e);d[o]=new gt(qr,r[o]),m=e.$watch(c,function(e,t){if(t===e){if(t===_)return;t=_}u(o,e,t),r[o]=e},c.literal),p.push(m);break;case"&":if(c=t.hasOwnProperty(v)?s(t[v]):f,c===f&&y)break;r[o]=function(t){return c(e,t)}}}),{initialChanges:d,removeWatches:p.length&&function(){for(var e=0,t=p.length;e<t;++e)p[e]()}}}var ye,be=/^\w/,$e=e.document.createElement("div"),we=D;I.prototype={$normalize:mt,$addClass:function(e){e&&e.length>0&&T.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&T.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=vt(e,t);n&&n.length&&T.addClass(this.$$element,n);var i=vt(t,e);i&&i.length&&T.removeClass(this.$$element,i)},$set:function(e,t,n,o){var a,s=this.$$element[0],u=He(s,e),l=Ve(e),c=e;if(u?(this.$$element.prop(e,t),o=u):l&&(this[l]=t,c=l),this[e]=t,o?this.$attr[e]=o:(o=this.$attr[e],o||(this.$attr[e]=o=se(e,"-"))),a=N(this.$$element),"a"===a&&("href"===e||"xlinkHref"===e)||"img"===a&&"src"===e)this[e]=t=O(t,"src"===e);else if("img"===a&&"srcset"===e&&y(t)){for(var p="",d=Xi(t),f=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,h=/\s/.test(d)?f:/(,)/,g=d.split(h),m=Math.floor(g.length/2),b=0;b<m;b++){var $=2*b;p+=O(Xi(g[$]),!0),p+=" "+Xi(g[$+1])}var w=Xi(g[2*b]).split(/\s/);p+=O(Xi(w[0]),!0),2===w.length&&(p+=" "+Xi(w[1])),this[e]=t=p}n!==!1&&(null===t||v(t)?this.$$element.removeAttr(o):be.test(o)?this.$$element.attr(o,t):L(this.$$element[0],o,t));var _=this.$$observers;_&&i(_[c],function(e){try{e(t)}catch(n){r(n)}})},$observe:function(e,t){var n=this,i=n.$$observers||(n.$$observers=he()),r=i[e]||(i[e]=[]);return r.push(t),g.$evalAsync(function(){r.$$inter||!n.hasOwnProperty(e)||v(n[e])||t(n[e])}),function(){G(r,t)}}};var ke=n.startSymbol(),xe=n.endSymbol(),Ce="{{"==ke&&"}}"==xe?h:function(e){return e.replace(/\{\{/g,ke).replace(/}}/g,xe)},Ae=/^ngAttr[A-Z]/,Me=/^(.+)Start$/;return z.$$addBindingInfo=S?function(e,t){var n=e.data("$binding")||[];Ki(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:f,z.$$addBindingClass=S?function(e){j(e,"ng-binding")}:f,z.$$addScopeInfo=S?function(e,t,n,i){var r=n?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(r,t)}:f,z.$$addScopeClass=S?function(e,t){j(e,t?"ng-isolate-scope":"ng-scope")}:f,z.$$createComment=function(t,n){var i="";return S&&(i=" "+(t||"")+": ",n&&(i+=n+" ")),e.document.createComment(i)},z}]}function gt(e,t){this.previousValue=e,this.currentValue=t}function mt(e){return we(e.replace(Yr,""))}function vt(e,t){var n="",i=e.split(/\s+/),r=t.split(/\s+/);e:for(var o=0;o<i.length;o++){for(var a=i[o],s=0;s<r.length;s++)if(a==r[s])continue e;n+=(n.length>0?" ":"")+a}return n}function yt(e){e=Gi(e);var t=e.length;if(t<=1)return e;for(;t--;){var n=e[t];n.nodeType===ur&&Bi.call(e,t,1)}return e}function bt(e,t){if(t&&w(t))return t;if(w(e)){var n=Zr.exec(e);if(n)return n[3]}}function $t(){var e={},n=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){pe(t,"controller"),b(t)?l(e,t):e[t]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(i,r){function o(e,n,i,r){if(!e||!b(e.$scope))throw t("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,n);e.$scope[n]=i}return function(t,a,s,u){var c,p,d,f;if(s=s===!0,u&&w(u)&&(f=u),w(t)){if(p=t.match(Zr),!p)throw Kr("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",t);d=p[1],f=f||p[3],t=e.hasOwnProperty(d)?e[d]:de(a.$scope,d,!0)||(n?de(r,d,!0):void 0),ce(t,d,!0)}if(s){var h=(Ki(t)?t[t.length-1]:t).prototype;c=Object.create(h||null),f&&o(a,f,c,d||t.name);var g;return g=l(function(){var e=i.invoke(t,c,a,d);return e!==c&&(b(e)||x(e))&&(c=e,f&&o(a,f,c,d||t.name)),c},{instance:c,identifier:f})}return c=i.instantiate(t,a,d),f&&o(a,f,c,d||t.name),c}}]}function wt(){this.$get=["$window",function(e){return Gi(e.document)}]}function _t(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function kt(e){return b(e)?k(e)?e.toISOString():H(e):e}function xt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return r(e,function(e,n){null===e||v(e)||(Ki(e)?i(e,function(e){t.push(te(n)+"="+te(kt(e)))}):t.push(te(n)+"="+te(kt(e))))}),t.join("&")}}}function Ct(){this.$get=function(){return function(e){function t(e,o,a){null===e||v(e)||(Ki(e)?i(e,function(e,n){t(e,o+"["+(b(e)?n:"")+"]")}):b(e)&&!k(e)?r(e,function(e,n){t(e,o+(a?"":"[")+n+(a?"":"]"))}):n.push(te(o)+"="+te(kt(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function At(e,t){if(w(e)){var n=e.replace(no,"").trim();if(n){var i=t("Content-Type");(i&&0===i.indexOf(Jr)||Mt(n))&&(e=V(n))}}return e}function Mt(e){var t=e.match(eo);return t&&to[t[0]].test(e)}function St(e){function t(e,t){e&&(r[e]=r[e]?r[e]+", "+t:t)}var n,r=he();return w(e)?i(e.split("\n"),function(e){n=e.indexOf(":"),t(Pi(Xi(e.substr(0,n))),Xi(e.substr(n+1)))}):b(e)&&i(e,function(e,n){t(Pi(n),Xi(e))}),r}function Dt(e){var t;return function(n){if(t||(t=St(e)),n){var i=t[Pi(n)];return void 0===i&&(i=null),i}return t}}function Tt(e,t,n,r){return x(r)?r(e,t,n):(i(r,function(i){e=i(e,t,n)}),e)}function Et(e){return 200<=e&&e<300}function Ot(){var e=this.defaults={transformResponse:[At],transformRequest:[function(e){return!b(e)||S(e)||T(e)||D(e)?e:H(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:me(Qr),put:me(Qr),patch:me(Qr)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},n=!1;this.useApplyAsync=function(e){return y(e)?(n=!!e,this):n};var r=!0;this.useLegacyPromiseExtensions=function(e){return y(e)?(r=!!e,this):r};var o=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,s,u,c,p,d){function f(n){function o(e){var t=l({},e);return t.data=Tt(e.data,e.headers,e.status,u.transformResponse),Et(e.status)?t:p.reject(t)}function a(e,t){var n,r={};return i(e,function(e,i){x(e)?(n=e(t),null!=n&&(r[i]=n)):r[i]=e}),r}function s(t){var n,i,r,o=e.headers,s=l({},t.headers);o=l({},o.common,o[Pi(t.method)]);e:for(n in o){i=Pi(n);for(r in s)if(Pi(r)===i)continue e;s[n]=o[n]}return a(s,me(t))}if(!b(n))throw t("$http")("badreq","Http request configuration must be an object.  Received: {0}",n);if(!w(n.url))throw t("$http")("badreq","Http request configuration url must be a string.  Received: {0}",n.url);var u=l({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},n);u.headers=s(n),u.method=Ii(u.method),u.paramSerializer=w(u.paramSerializer)?d.get(u.paramSerializer):u.paramSerializer;var c=function(t){var n=t.headers,r=Tt(t.data,Dt(n),void 0,t.transformRequest);return v(r)&&i(n,function(e,t){"content-type"===Pi(t)&&delete n[t]}),v(t.withCredentials)&&!v(e.withCredentials)&&(t.withCredentials=e.withCredentials),m(t,r).then(o,o)},f=[c,void 0],h=p.when(u);for(i(k,function(e){(e.request||e.requestError)&&f.unshift(e.request,e.requestError),(e.response||e.responseError)&&f.push(e.response,e.responseError)});f.length;){var g=f.shift(),y=f.shift();h=h.then(g,y)}return r?(h.success=function(e){return ce(e,"fn"),h.then(function(t){e(t.data,t.status,t.headers,u)}),h},h.error=function(e){return ce(e,"fn"),h.then(null,function(t){e(t.data,t.status,t.headers,u)}),h}):(h.success=ro("success"),h.error=ro("error")),h}function h(e){i(arguments,function(e){f[e]=function(t,n){return f(l({},n||{},{method:e,url:t}))}})}function g(e){i(arguments,function(e){f[e]=function(t,n,i){return f(l({},i||{},{method:e,url:t,data:n}))}})}function m(t,r){function o(e){if(e){var t={};return i(e,function(e,i){t[i]=function(t){function i(){e(t)}n?c.$applyAsync(i):c.$$phase?i():c.$apply(i)}}),t}}function u(e,t,i,r){function o(){l(t,e,i,r)}g&&(Et(e)?g.put(C,[e,t,St(i),r]):g.remove(C)),n?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function l(e,n,i,r){n=n>=-1?n:0,(Et(n)?w.resolve:w.reject)({data:e,status:n,headers:Dt(i),config:t,statusText:r})}function d(e){l(e.data,e.status,me(e.headers()),e.statusText)}function h(){var e=f.pendingRequests.indexOf(t);e!==-1&&f.pendingRequests.splice(e,1)}var g,m,w=p.defer(),k=w.promise,x=t.headers,C=$(t.url,t.paramSerializer(t.params));if(f.pendingRequests.push(t),k.then(h,h),!t.cache&&!e.cache||t.cache===!1||"GET"!==t.method&&"JSONP"!==t.method||(g=b(t.cache)?t.cache:b(e.cache)?e.cache:_),g&&(m=g.get(C),y(m)?O(m)?m.then(d,d):Ki(m)?l(m[1],m[0],me(m[2]),m[3]):l(m,200,{},"OK"):g.put(C,k)),v(m)){var A=Ln(t.url)?s()[t.xsrfCookieName||e.xsrfCookieName]:void 0;A&&(x[t.xsrfHeaderName||e.xsrfHeaderName]=A),a(t.method,C,r,u,x,t.timeout,t.withCredentials,t.responseType,o(t.eventHandlers),o(t.uploadEventHandlers))}return k}function $(e,t){return t.length>0&&(e+=(e.indexOf("?")==-1?"?":"&")+t),e}var _=u("$http");e.paramSerializer=w(e.paramSerializer)?d.get(e.paramSerializer):e.paramSerializer;var k=[];return i(o,function(e){k.unshift(w(e)?d.get(e):d.invoke(e))}),f.pendingRequests=[],h("get","delete","head","jsonp"),g("post","put","patch"),f.defaults=e,f}]}function Pt(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function It(){this.$get=["$browser","$window","$document","$xhrFactory",function(e,t,n,i){return Lt(e,i,e.defer,t.angular.callbacks,n[0])}]}function Lt(e,t,n,r,o){function a(e,t,n){var i=o.createElement("script"),a=null;return i.type="text/javascript",i.src=e,i.async=!0,a=function(e){gr(i,"load",a),gr(i,"error",a),o.body.removeChild(i),i=null;var s=-1,u="unknown";e&&("load"!==e.type||r[t].called||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},hr(i,"load",a),hr(i,"error",a),o.body.appendChild(i),a}return function(o,s,u,l,c,p,d,h,g,m){function b(){_&&_(),k&&k.abort()}function $(t,i,r,o,a){y(A)&&n.cancel(A),_=k=null,t(i,r,o,a),e.$$completeOutstandingRequest(f)}if(e.$$incOutstandingRequestCount(),s=s||e.url(),"jsonp"==Pi(o)){var w="_"+(r.counter++).toString(36);r[w]=function(e){r[w].data=e,r[w].called=!0};var _=a(s.replace("JSON_CALLBACK","angular.callbacks."+w),w,function(e,t){$(l,e,r[w].data,"",t),r[w]=f})}else{var k=t(o,s);k.open(o,s,!0),i(c,function(e,t){y(e)&&k.setRequestHeader(t,e)}),k.onload=function(){var e=k.statusText||"",t="response"in k?k.response:k.responseText,n=1223===k.status?204:k.status;0===n&&(n=t?200:"file"==In(s).protocol?404:0),$(l,n,t,k.getAllResponseHeaders(),e)};var x=function(){$(l,-1,null,null,"")};if(k.onerror=x,k.onabort=x,i(g,function(e,t){k.addEventListener(t,e)}),i(m,function(e,t){k.upload.addEventListener(t,e)}),d&&(k.withCredentials=!0),h)try{k.responseType=h}catch(C){if("json"!==h)throw C}k.send(v(u)?null:u)}if(p>0)var A=n(b,p);else O(p)&&p.then(b)}}function jt(){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,i,r){function o(e){return"\\\\\\"+e}function a(n){return n.replace(f,e).replace(h,t)}function s(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=H(e)}return e}function u(e,t,n,i){var r;return r=e.$watch(function(e){return r(),i(e)},t,n)}function c(o,c,f,h){function m(e){try{return e=O(e),h&&!y(e)?e:s(e)}catch(t){i(oo.interr(o,t))}}if(!o.length||o.indexOf(e)===-1){var b;if(!c){var $=a(o);b=g($),b.exp=o,b.expressions=[],b.$$watchDelegate=u}return b}h=!!h;for(var w,_,k,C=0,A=[],M=[],S=o.length,D=[],T=[];C<S;){if((w=o.indexOf(e,C))==-1||(_=o.indexOf(t,w+p))==-1){C!==S&&D.push(a(o.substring(C)));break}C!==w&&D.push(a(o.substring(C,w))),k=o.substring(w+p,_),A.push(k),M.push(n(k,m)),C=_+d,T.push(D.length),D.push("")}if(f&&D.length>1&&oo.throwNoconcat(o),!c||A.length){var E=function(e){for(var t=0,n=A.length;t<n;t++){if(h&&v(e[t]))return;D[T[t]]=e[t]}return D.join("")},O=function(e){return f?r.getTrusted(f,e):r.valueOf(e)};return l(function(e){var t=0,n=A.length,r=new Array(n);try{for(;t<n;t++)r[t]=M[t](e);return E(r)}catch(a){i(oo.interr(o,a))}},{exp:o,expressions:A,$$watchDelegate:function(e,t){var n;return e.$watchGroup(M,function(i,r){var o=E(i);x(t)&&t.call(this,o,i!==r?n:o,e),n=o})}})}}var p=e.length,d=t.length,f=new RegExp(e.replace(/./g,o),"g"),h=new RegExp(t.replace(/./g,o),"g");return c.startSymbol=function(){return e},c.endSymbol=function(){return t},c}]}function Nt(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,i,r){function o(o,s,u,l){function c(){p?o.apply(null,d):o(g)}var p=arguments.length>4,d=p?B(arguments,4):[],f=t.setInterval,h=t.clearInterval,g=0,m=y(l)&&!l,v=(m?i:n).defer(),b=v.promise;return u=y(u)?u:0,b.$$intervalId=f(function(){m?r.defer(c):e.$evalAsync(c),v.notify(g++),u>0&&g>=u&&(v.resolve(g),h(b.$$intervalId),delete a[b.$$intervalId]),m||e.$apply()},s),a[b.$$intervalId]=v,b}var a={};return o.cancel=function(e){return!!(e&&e.$$intervalId in a)&&(a[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete a[e.$$intervalId],!0)},o}]}function Gt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=ee(t[n]);return t.join("/")}function zt(e,t){var n=In(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=p(n.port)||so[n.protocol]||null}function Ft(e,t){var n="/"!==e.charAt(0);n&&(e="/"+e);var i=In(e);t.$$path=decodeURIComponent(n&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname),t.$$search=J(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Rt(e,t){return 0===e.lastIndexOf(t,0)}function Bt(e,t){if(Rt(t,e))return t.substr(e.length)}function Ut(e){var t=e.indexOf("#");return t==-1?e:e.substr(0,t)}function Wt(e){return e.replace(/(#.+)|#$/,"$1")}function Ht(e){return e.substr(0,Ut(e).lastIndexOf("/")+1)}function Vt(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function qt(e,t,n){this.$$html5=!0,n=n||"",zt(e,this),this.$$parse=function(e){var n=Bt(t,e);if(!w(n))throw uo("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);Ft(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=Q(this.$$search),n=this.$$hash?"#"+ee(this.$$hash):"";this.$$url=Gt(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1)},this.$$parseLinkUrl=function(i,r){if(r&&"#"===r[0])return this.hash(r.slice(1)),!0;var o,a,s;return y(o=Bt(e,i))?(a=o,s=y(o=Bt(n,o))?t+(Bt("/",o)||o):e+a):y(o=Bt(t,i))?s=t+o:t==i+"/"&&(s=t),s&&this.$$parse(s),!!s}}function Yt(e,t,n){zt(e,this),this.$$parse=function(i){function r(e,t,n){var i,r=/^\/[A-Z]:(\/.*)/;return Rt(t,n)&&(t=t.replace(n,"")),r.exec(t)?e:(i=r.exec(e),i?i[1]:e)}var o,a=Bt(e,i)||Bt(t,i);v(a)||"#"!==a.charAt(0)?this.$$html5?o=a:(o="",v(a)&&(e=i,this.replace())):(o=Bt(n,a),v(o)&&(o=a)),Ft(o,this),this.$$path=r(this.$$path,o,e),this.$$compose()},this.$$compose=function(){var t=Q(this.$$search),i=this.$$hash?"#"+ee(this.$$hash):"";this.$$url=Gt(this.$$path)+(t?"?"+t:"")+i,this.$$absUrl=e+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(t,n){return Ut(e)==Ut(t)&&(this.$$parse(t),!0)}}function Kt(e,t,n){this.$$html5=!0,Yt.apply(this,arguments),this.$$parseLinkUrl=function(i,r){if(r&&"#"===r[0])return this.hash(r.slice(1)),!0;var o,a;return e==Ut(i)?o=i:(a=Bt(t,i))?o=e+n+a:t===i+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$compose=function(){var t=Q(this.$$search),i=this.$$hash?"#"+ee(this.$$hash):"";this.$$url=Gt(this.$$path)+(t?"?"+t:"")+i,this.$$absUrl=e+n+this.$$url}}function Zt(e){return function(){return this[e]}}function Xt(e,t){return function(n){return v(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Jt(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return y(t)?(e=t,this):e},this.html5Mode=function(e){return E(e)?(t.enabled=e,this):b(e)?(E(e.enabled)&&(t.enabled=e.enabled),E(e.requireBase)&&(t.requireBase=e.requireBase),E(e.rewriteLinks)&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,i,r,o,a){function s(e,t,n){var r=l.url(),o=l.$$state;try{i.url(e,t,n),l.$$state=i.state()}catch(a){throw l.url(r),l.$$state=o,a}}function u(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,c,p,d=i.baseHref(),f=i.url();if(t.enabled){if(!d&&t.requireBase)throw uo("nobase","$location in HTML5 mode requires a <base> tag to be present!");p=Vt(f)+(d||"/"),c=r.history?qt:Kt}else p=Ut(f),c=Yt;var h=Ht(p);l=new c(p,h,"#"+e),l.$$parseLinkUrl(f,f),l.$$state=i.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 r=Gi(e.target);"a"!==N(r[0]);)if(r[0]===o[0]||!(r=r.parent())[0])return;var s=r.prop("href"),u=r.attr("href")||r.attr("xlink:href");b(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=In(s.animVal).href),g.test(s)||!s||r.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(s,u)&&(e.preventDefault(),l.absUrl()!=i.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),Wt(l.absUrl())!=Wt(f)&&i.url(l.absUrl(),!0);var m=!0;return i.onUrlChange(function(e,t){return v(Bt(h,e))?void(a.location.href=e):(n.$evalAsync(function(){var i,r=l.absUrl(),o=l.$$state;e=Wt(e),l.$$parse(e),l.$$state=t,i=n.$broadcast("$locationChangeStart",e,r,t,o).defaultPrevented,l.absUrl()===e&&(i?(l.$$parse(r),l.$$state=o,s(r,!1,o)):(m=!1,u(r,o)))}),void(n.$$phase||n.$digest()))}),n.$watch(function(){var e=Wt(i.url()),t=Wt(l.absUrl()),o=i.state(),a=l.$$replace,c=e!==t||l.$$html5&&r.history&&o!==l.$$state;(m||c)&&(m=!1,n.$evalAsync(function(){var t=l.absUrl(),i=n.$broadcast("$locationChangeStart",t,e,l.$$state,o).defaultPrevented;l.absUrl()===t&&(i?(l.$$parse(e),l.$$state=o):(c&&s(t,a,o===l.$$state?null:l.$$state),u(e,o)))})),l.$$replace=!1}),l}]}function Qt(){var e=!0,t=this;this.debugEnabled=function(t){return y(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return e instanceof Error&&(e.stack?e=e.message&&e.stack.indexOf(e.message)===-1?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function o(e){var t=n.console||{},o=t[e]||t.log||f,a=!1;try{a=!!o.apply}catch(s){}return a?function(){var e=[];return i(arguments,function(t){e.push(r(t))}),o.apply(t,e)}:function(e,t){o(e,null==t?"":t)}}return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:function(){var n=o("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function en(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw co("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function tn(e){return e+""}function nn(e,t){if(e){if(e.constructor===e)throw co("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.window===e)throw co("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw co("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw co("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function rn(e,t){if(e){if(e.constructor===e)throw co("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===po||e===fo||e===ho)throw co("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function on(e,t){if(e&&(e===(0).constructor||e===(!1).constructor||e==="".constructor||e==={}.constructor||e===[].constructor||e===Function.constructor))throw co("isecaf","Assigning to a constructor is disallowed! Expression: {0}",t)}function an(e,t){return"undefined"!=typeof e?e:t}function sn(e,t){return"undefined"==typeof e?t:"undefined"==typeof t?e:e+t}function un(e,t){var n=e(t);return!n.$stateful}function ln(e,t){var n,r;switch(e.type){case yo.Program:n=!0,i(e.body,function(e){ln(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case yo.Literal:e.constant=!0,e.toWatch=[];break;case yo.UnaryExpression:ln(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case yo.BinaryExpression:ln(e.left,t),ln(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case yo.LogicalExpression:ln(e.left,t),ln(e.right,t),e.constant=e.left.constant&&e.right.constant,
  e.toWatch=e.constant?[]:[e];break;case yo.ConditionalExpression:ln(e.test,t),ln(e.alternate,t),ln(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case yo.Identifier:e.constant=!1,e.toWatch=[e];break;case yo.MemberExpression:ln(e.object,t),e.computed&&ln(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case yo.CallExpression:n=!!e.filter&&un(t,e.callee.name),r=[],i(e.arguments,function(e){ln(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=e.filter&&un(t,e.callee.name)?r:[e];break;case yo.AssignmentExpression:ln(e.left,t),ln(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case yo.ArrayExpression:n=!0,r=[],i(e.elements,function(e){ln(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=r;break;case yo.ObjectExpression:n=!0,r=[],i(e.properties,function(e){ln(e.value,t),n=n&&e.value.constant&&!e.computed,e.value.constant||r.push.apply(r,e.value.toWatch)}),e.constant=n,e.toWatch=r;break;case yo.ThisExpression:e.constant=!1,e.toWatch=[];break;case yo.LocalsExpression:e.constant=!1,e.toWatch=[]}}function cn(e){if(1==e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length?n:n[0]!==t?n:void 0}}function pn(e){return e.type===yo.Identifier||e.type===yo.MemberExpression}function dn(e){if(1===e.body.length&&pn(e.body[0].expression))return{type:yo.AssignmentExpression,left:e.body[0].expression,right:{type:yo.NGValueParameter},operator:"="}}function fn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===yo.Literal||e.body[0].expression.type===yo.ArrayExpression||e.body[0].expression.type===yo.ObjectExpression)}function hn(e){return e.constant}function gn(e,t){this.astBuilder=e,this.$filter=t}function mn(e,t){this.astBuilder=e,this.$filter=t}function vn(e){return"constructor"==e}function yn(e){return x(e.valueOf)?e.valueOf():$o.call(e)}function bn(){var e,t,n=he(),r=he(),o={"true":!0,"false":!1,"null":null,undefined:void 0};this.addLiteral=function(e,t){o[e]=t},this.setIdentifierFns=function(n,i){return e=n,t=i,this},this.$get=["$filter",function(a){function s(e,t,i){var o,s,l;switch(i=i||$,typeof e){case"string":e=e.trim(),l=e;var m=i?r:n;if(o=m[l],!o){":"===e.charAt(0)&&":"===e.charAt(1)&&(s=!0,e=e.substring(2));var y=i?b:v,w=new vo(y),_=new bo(w,a,y);o=_.parse(e),o.constant?o.$$watchDelegate=h:s?o.$$watchDelegate=o.literal?d:p:o.inputs&&(o.$$watchDelegate=c),i&&(o=u(o)),m[l]=o}return g(o,t);case"function":return g(e,t);default:return g(f,t)}}function u(e){function t(t,n,i,r){var o=$;$=!0;try{return e(t,n,i,r)}finally{$=o}}if(!e)return e;t.$$watchDelegate=e.$$watchDelegate,t.assign=u(e.assign),t.constant=e.constant,t.literal=e.literal;for(var n=0;e.inputs&&n<e.inputs.length;++n)e.inputs[n]=u(e.inputs[n]);return t.inputs=e.inputs,t}function l(e,t){return null==e||null==t?e===t:("object"!=typeof e||(e=yn(e),"object"!=typeof e))&&(e===t||e!==e&&t!==t)}function c(e,t,n,i,r){var o,a=i.inputs;if(1===a.length){var s=l;return a=a[0],e.$watch(function(e){var t=a(e);return l(t,s)||(o=i(e,void 0,void 0,[t]),s=t&&yn(t)),o},t,n,r)}for(var u=[],c=[],p=0,d=a.length;p<d;p++)u[p]=l,c[p]=null;return e.$watch(function(e){for(var t=!1,n=0,r=a.length;n<r;n++){var s=a[n](e);(t||(t=!l(s,u[n])))&&(c[n]=s,u[n]=s&&yn(s))}return t&&(o=i(e,void 0,void 0,c)),o},t,n,r)}function p(e,t,n,i){var r,o;return r=e.$watch(function(e){return i(e)},function(e,n,i){o=e,x(t)&&t.apply(this,arguments),y(e)&&i.$$postDigest(function(){y(o)&&r()})},n)}function d(e,t,n,r){function o(e){var t=!0;return i(e,function(e){y(e)||(t=!1)}),t}var a,s;return a=e.$watch(function(e){return r(e)},function(e,n,i){s=e,x(t)&&t.call(this,e,n,i),o(e)&&i.$$postDigest(function(){o(s)&&a()})},n)}function h(e,t,n,i){var r;return r=e.$watch(function(e){return r(),i(e)},t,n)}function g(e,t){if(!t)return e;var n=e.$$watchDelegate,i=!1,r=n!==d&&n!==p,o=r?function(n,r,o,a){var s=i&&a?a[0]:e(n,r,o,a);return t(s,n,r)}:function(n,i,r,o){var a=e(n,i,r,o),s=t(a,n,i);return y(a)?s:a};return e.$$watchDelegate&&e.$$watchDelegate!==c?o.$$watchDelegate=e.$$watchDelegate:t.$stateful||(o.$$watchDelegate=c,i=!e.inputs,o.inputs=e.inputs?e.inputs:[e]),o}var m=Qi().noUnsafeEval,v={csp:m,expensiveChecks:!1,literals:z(o),isIdentifierStart:x(e)&&e,isIdentifierContinue:x(t)&&t},b={csp:m,expensiveChecks:!0,literals:z(o),isIdentifierStart:x(e)&&e,isIdentifierContinue:x(t)&&t},$=!1;return s.$$runningExpensiveChecks=function(){return $},s}]}function $n(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return _n(function(t){e.$evalAsync(t)},t)}]}function wn(){this.$get=["$browser","$exceptionHandler",function(e,t){return _n(function(t){e.defer(t)},t)}]}function _n(e,n){function r(){this.$$state={status:0}}function o(e,t){return function(n){t.call(e,n)}}function a(e){var t,i,r;r=e.pending,e.processScheduled=!1,e.pending=void 0;for(var o=0,a=r.length;o<a;++o){i=r[o][0],t=r[o][e.status];try{x(t)?i.resolve(t(e.value)):1===e.status?i.resolve(e.value):i.reject(e.value)}catch(s){i.reject(s),n(s)}}}function s(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,e(function(){a(t)}))}function u(){this.promise=new r}function c(e){var t=new u,n=0,r=Ki(e)?[]:{};return i(e,function(e,i){n++,m(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 p=t("$q",TypeError),d=function(){var e=new u;return e.resolve=o(e,e.resolve),e.reject=o(e,e.reject),e.notify=o(e,e.notify),e};l(r.prototype,{then:function(e,t,n){if(v(e)&&v(t)&&v(n))return this;var i=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([i,e,t,n]),this.$$state.status>0&&s(this.$$state),i.promise},"catch":function(e){return this.then(null,e)},"finally":function(e,t){return this.then(function(t){return g(t,!0,e)},function(t){return g(t,!1,e)},t)}}),l(u.prototype,{resolve:function(e){this.promise.$$state.status||(e===this.promise?this.$$reject(p("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):this.$$resolve(e))},$$resolve:function(e){function t(e){u||(u=!0,a.$$resolve(e))}function i(e){u||(u=!0,a.$$reject(e))}var r,a=this,u=!1;try{(b(e)||x(e))&&(r=e&&e.then),x(r)?(this.promise.$$state.status=-1,r.call(e,t,i,o(this,this.notify))):(this.promise.$$state.value=e,this.promise.$$state.status=1,s(this.promise.$$state))}catch(l){i(l),n(l)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,s(this.promise.$$state)},notify:function(t){var i=this.promise.$$state.pending;this.promise.$$state.status<=0&&i&&i.length&&e(function(){for(var e,r,o=0,a=i.length;o<a;o++){r=i[o][0],e=i[o][3];try{r.notify(x(e)?e(t):t)}catch(s){n(s)}}})}});var f=function(e){var t=new u;return t.reject(e),t.promise},h=function(e,t){var n=new u;return t?n.resolve(e):n.reject(e),n.promise},g=function(e,t,n){var i=null;try{x(n)&&(i=n())}catch(r){return h(r,!1)}return O(i)?i.then(function(){return h(e,t)},function(e){return h(e,!1)}):h(e,t)},m=function(e,t,n,i){var r=new u;return r.resolve(e),r.promise.then(t,n,i)},y=m,$=function(e){function t(e){i.resolve(e)}function n(e){i.reject(e)}if(!x(e))throw p("norslvr","Expected resolverFn, got '{0}'",e);var i=new u;return e(t,n),i.promise};return $.prototype=r.prototype,$.defer=d,$.reject=f,$.when=m,$.resolve=y,$.all=c,$}function kn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,i=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,r=!!n,o=r?function(e){var t=n(e);return function(){i(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=r,o}]}function xn(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=a(),this.$$ChildScope=null}return t.prototype=e,t}var r=10,o=t("$rootScope"),s=null,u=null;this.digestTtl=function(e){return arguments.length&&(r=e),r},this.$get=["$exceptionHandler","$parse","$browser",function(t,l,c){function p(e){e.currentScope.$$destroyed=!0}function d(e){9===Ni&&(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=a(),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 g(e){if(C.$$phase)throw o("inprog","{0} already in progress",C.$$phase);C.$$phase=e}function m(){C.$$phase=null}function y(e,t){do e.$$watchersCount+=t;while(e=e.$parent)}function $(e,t,n){do e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n];while(e=e.$parent)}function w(){}function _(){for(;S.length;)try{S.shift()()}catch(e){t(e)}u=null}function k(){null===u&&(u=c.defer(function(){C.$apply(_)}))}h.prototype={constructor:h,$new:function(t,n){var i;return n=n||this,t?(i=new h,i.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),i=new this.$$ChildScope),i.$parent=n,i.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=i,n.$$childTail=i):n.$$childHead=n.$$childTail=i,(t||n!=this)&&i.$on("$destroy",p),i},$watch:function(e,t,n,i){var r=l(e);if(r.$$watchDelegate)return r.$$watchDelegate(this,t,n,r,e);var o=this,a=o.$$watchers,u={fn:t,last:w,get:r,exp:i||e,eq:!!n};return s=null,x(t)||(u.fn=f),a||(a=o.$$watchers=[]),a.unshift(u),y(this,1),function(){G(a,u)>=0&&y(o,-1),s=null}},$watchGroup:function(e,t){function n(){u=!1,l?(l=!1,t(o,o,s)):t(o,r,s)}var r=new Array(e.length),o=new Array(e.length),a=[],s=this,u=!1,l=!0;if(!e.length){var c=!0;return s.$evalAsync(function(){c&&t(o,o,s)}),function(){c=!1}}return 1===e.length?this.$watch(e[0],function(e,n,i){o[0]=e,r[0]=n,t(o,e===n?o:r,i)}):(i(e,function(e,t){var i=s.$watch(e,function(e,i){o[t]=e,r[t]=i,u||(u=!0,s.$evalAsync(n))});a.push(i)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function i(e){o=e;var t,i,r,s,u;if(!v(o)){if(b(o))if(n(o)){a!==f&&(a=f,m=a.length=0,p++),t=o.length,m!==t&&(p++,a.length=m=t);for(var l=0;l<t;l++)u=a[l],s=o[l],r=u!==u&&s!==s,r||u===s||(p++,a[l]=s)}else{a!==h&&(a=h={},m=0,p++),t=0;for(i in o)Oi.call(o,i)&&(t++,s=o[i],u=a[i],i in a?(r=u!==u&&s!==s,r||u===s||(p++,a[i]=s)):(m++,a[i]=s,p++));if(m>t){p++;for(i in a)Oi.call(o,i)||(m--,delete a[i])}}else a!==o&&(a=o,p++);return p}}function r(){if(g?(g=!1,t(o,o,u)):t(o,s,u),c)if(b(o))if(n(o)){s=new Array(o.length);for(var e=0;e<o.length;e++)s[e]=o[e]}else{s={};for(var i in o)Oi.call(o,i)&&(s[i]=o[i])}else s=o}i.$stateful=!0;var o,a,s,u=this,c=t.length>1,p=0,d=l(e,i),f=[],h={},g=!0,m=0;return this.$watch(d,r)},$digest:function(){var e,n,i,a,l,p,d,f,h,v,y,b,$=r,k=this,S=[];g("$digest"),c.$$checkUrlChange(),this===C&&null!==u&&(c.defer.cancel(u),_()),s=null;do{f=!1,v=k;for(var T=0;T<A.length;T++){try{b=A[T],b.scope.$eval(b.expression,b.locals)}catch(E){t(E)}s=null}A.length=0;e:do{if(p=v.$$watchers)for(d=p.length;d--;)try{if(e=p[d])if(l=e.get,(n=l(v))===(i=e.last)||(e.eq?F(n,i):"number"==typeof n&&"number"==typeof i&&isNaN(n)&&isNaN(i))){if(e===s){f=!1;break e}}else f=!0,s=e,e.last=e.eq?z(n,null):n,a=e.fn,a(n,i===w?n:i,v),$<5&&(y=4-$,S[y]||(S[y]=[]),S[y].push({msg:x(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:n,oldVal:i}))}catch(E){t(E)}if(!(h=v.$$watchersCount&&v.$$childHead||v!==k&&v.$$nextSibling))for(;v!==k&&!(h=v.$$nextSibling);)v=v.$parent}while(v=h);if((f||A.length)&&!$--)throw m(),o("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",r,S)}while(f||A.length);for(m();D<M.length;)try{M[D++]()}catch(E){t(E)}M.length=D=0},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===C&&c.$$applicationDestroyed(),y(this,-this.$$watchersCount);for(var t in this.$$listenerCount)$(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=f,this.$on=this.$watch=this.$watchGroup=function(){return f},this.$$listeners={},this.$$nextSibling=null,d(this)}},$eval:function(e,t){return l(e)(this,t)},$evalAsync:function(e,t){C.$$phase||A.length||c.defer(function(){A.length&&C.$digest()}),A.push({scope:this,expression:l(e),locals:t})},$$postDigest:function(e){M.push(e)},$apply:function(e){try{g("$apply");try{return this.$eval(e)}finally{m()}}catch(n){t(n)}finally{try{C.$digest()}catch(n){throw t(n),n}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&S.push(t),e=l(e),k()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var i=this;do i.$$listenerCount[e]||(i.$$listenerCount[e]=0),i.$$listenerCount[e]++;while(i=i.$parent);var r=this;return function(){var i=n.indexOf(t);i!==-1&&(n[i]=null,$(r,1,e))}},$emit:function(e,n){var i,r,o,a=[],s=this,u=!1,l={name:e,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=R([l],arguments,1);do{for(i=s.$$listeners[e]||a,l.currentScope=s,r=0,o=i.length;r<o;r++)if(i[r])try{i[r].apply(null,c)}catch(p){t(p)}else i.splice(r,1),r--,o--;if(u)return l.currentScope=null,l;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(e,n){var i=this,r=i,o=i,a={name:e,targetScope:i,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!i.$$listenerCount[e])return a;for(var s,u,l,c=R([a],arguments,1);r=o;){for(a.currentScope=r,s=r.$$listeners[e]||[],u=0,l=s.length;u<l;u++)if(s[u])try{s[u].apply(null,c)}catch(p){t(p)}else s.splice(u,1),u--,l--;if(!(o=r.$$listenerCount[e]&&r.$$childHead||r!==i&&r.$$nextSibling))for(;r!==i&&!(o=r.$$nextSibling);)r=r.$parent}return a.currentScope=null,a}};var C=new h,A=C.$$asyncQueue=[],M=C.$$postDigestQueue=[],S=C.$$applyAsyncQueue=[],D=0;return C}]}function Cn(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.$get=function(){return function(n,i){var r,o=i?t:e;return r=In(n).href,""===r||r.match(o)?n:"unsafe:"+r}}}function An(e){if("self"===e)return e;if(w(e)){if(e.indexOf("***")>-1)throw wo("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=Ji(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(C(e))return new RegExp("^"+e.source+"$");throw wo("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Mn(e){var t=[];return y(e)&&i(e,function(e){t.push(An(e))}),t}function Sn(){this.SCE_CONTEXTS=_o;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=Mn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=Mn(e)),t},this.$get=["$injector",function(n){function i(e,t){return"self"===e?Ln(t):!!e.exec(t.href)}function r(n){var r,o,a=In(n.toString()),s=!1;for(r=0,o=e.length;r<o;r++)if(i(e[r],a)){s=!0;break}if(s)for(r=0,o=t.length;r<o;r++)if(i(t[r],a)){s=!1;break}return s}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=p.hasOwnProperty(e)?p[e]:null;if(!n)throw wo("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||v(t)||""===t)return t;if("string"!=typeof t)throw wo("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)}function s(e){return e instanceof c?e.$$unwrapTrustedValue():e}function u(e,t){if(null===t||v(t)||""===t)return t;var n=p.hasOwnProperty(e)?p[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(e===_o.RESOURCE_URL){if(r(t))return t;throw wo("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString())}if(e===_o.HTML)return l(t);throw wo("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(e){throw wo("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(l=n.get("$sanitize"));var c=o(),p={};return p[_o.HTML]=o(c),p[_o.CSS]=o(c),p[_o.URL]=o(c),p[_o.JS]=o(c),p[_o.RESOURCE_URL]=o(p[_o.URL]),{trustAs:a,getTrusted:u,valueOf:s}}]}function Dn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&Ni<8)throw wo("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=me(_o);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=h),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 o=r.parseAs,a=r.getTrusted,s=r.trustAs;return i(_o,function(e,t){var n=Pi(t);r[we("parse_as_"+n)]=function(t){return o(e,t)},r[we("get_trusted_"+n)]=function(t){return a(e,t)},r[we("trust_as_"+n)]=function(t){return s(e,t)}}),r}]}function Tn(){this.$get=["$window","$document",function(e,t){var n,i,r={},o=e.chrome&&e.chrome.app&&e.chrome.app.runtime,a=!o&&e.history&&e.history.pushState,s=p((/android (\d+)/.exec(Pi((e.navigator||{}).userAgent))||[])[1]),u=/Boxee/i.test((e.navigator||{}).userAgent),l=t[0]||{},c=/^(Moz|webkit|ms)(?=[A-Z])/,d=l.body&&l.body.style,f=!1,h=!1;if(d){for(var g in d)if(i=c.exec(g)){n=i[0],n=n[0].toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in d&&"webkit"),f=!!("transition"in d||n+"Transition"in d),h=!!("animation"in d||n+"Animation"in d),!s||f&&h||(f=w(d.webkitTransition),h=w(d.webkitAnimation))}return{history:!(!a||s<4||u),hasEvent:function(e){if("input"===e&&Ni<=11)return!1;if(v(r[e])){var t=l.createElement("div");r[e]="on"+e in t}return r[e]},csp:Qi(),vendorPrefix:n,transitions:f,animations:h,android:s}}]}function En(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$templateCache","$http","$q","$sce",function(t,n,i,r){function o(a,s){function u(e){if(!s)throw ko("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,e.status,e.statusText);return i.reject(e)}o.totalPendingRequests++,w(a)&&!v(t.get(a))||(a=r.getTrustedResourceUrl(a));var c=n.defaults&&n.defaults.transformResponse;return Ki(c)?c=c.filter(function(e){return e!==At}):c===At&&(c=null),n.get(a,l({cache:t,transformResponse:c},e))["finally"](function(){o.totalPendingRequests--}).then(function(e){return t.put(a,e.data),e.data},u)}return o.totalPendingRequests=0,o}]}function On(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r.findBindings=function(e,t,n){var r=e.getElementsByClassName("ng-binding"),o=[];return i(r,function(e){var r=qi.element(e).data("$binding");r&&i(r,function(i){if(n){var r=new RegExp("(^|\\s)"+Ji(t)+"(\\s|\\||$)");r.test(i)&&o.push(e)}else i.indexOf(t)!=-1&&o.push(e)})}),o},r.findModels=function(e,t,n){for(var i=["ng-","data-ng-","ng\\:"],r=0;r<i.length;++r){var o=n?"=":"*=",a="["+i[r]+"model"+o+'"'+t+'"]',s=e.querySelectorAll(a);if(s.length)return s}},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 Pn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,i,r){function o(o,s,u){x(o)||(u=s,s=o,o=f);var l,c=B(arguments,3),p=y(u)&&!u,d=(p?i:n).defer(),h=d.promise;return l=t.defer(function(){try{d.resolve(o.apply(null,c))}catch(t){d.reject(t),r(t)}finally{delete a[h.$$timeoutId]}p||e.$apply()},s),h.$$timeoutId=l,a[l]=d,h}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))},o}]}function In(e){var t=e;return Ni&&(xo.setAttribute("href",t),t=xo.href),xo.setAttribute("href",t),{href:xo.href,protocol:xo.protocol?xo.protocol.replace(/:$/,""):"",host:xo.host,search:xo.search?xo.search.replace(/^\?/,""):"",hash:xo.hash?xo.hash.replace(/^#/,""):"",hostname:xo.hostname,port:xo.port,pathname:"/"===xo.pathname.charAt(0)?xo.pathname:"/"+xo.pathname}}function Ln(e){var t=w(e)?In(e):e;return t.protocol===Co.protocol&&t.host===Co.host}function jn(){this.$get=g(e)}function Nn(e){function t(e){try{return decodeURIComponent(e)}catch(t){return e}}var n=e[0]||{},i={},r="";return function(){var e,o,a,s,u,l=n.cookie||"";if(l!==r)for(r=l,e=r.split("; "),i={},a=0;a<e.length;a++)o=e[a],s=o.indexOf("="),s>0&&(u=t(o.substring(0,s)),v(i[u])&&(i[u]=t(o.substring(s+1))));return i}}function Gn(){this.$get=Nn}function zn(e){function t(r,o){if(b(r)){var a={};return i(r,function(e,n){a[n]=t(n,e)}),a}return e.factory(r+n,o)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Wn),t("date",oi),t("filter",Fn),t("json",ai),t("limitTo",si),t("lowercase",Oo),t("number",Hn),t("orderBy",li),t("uppercase",Po)}function Fn(){return function(e,i,r){if(!n(e)){if(null==e)return e;throw t("filter")("notarray","Expected array but received: {0}",e)}var o,a,s=Un(i);switch(s){case"function":o=i;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=Rn(i,r,a);break;default:return e}return Array.prototype.filter.call(e,o)}}function Rn(e,t,n){var i,r=b(e)&&"$"in e;return t===!0?t=F:x(t)||(t=function(e,t){return!v(e)&&(null===e||null===t?e===t:!(b(t)||b(e)&&!m(e))&&(e=Pi(""+e),t=Pi(""+t),e.indexOf(t)!==-1))}),i=function(i){return r&&!b(i)?Bn(i,e.$,t,!1):Bn(i,e,t,n)}}function Bn(e,t,n,i,r){var o=Un(e),a=Un(t);if("string"===a&&"!"===t.charAt(0))return!Bn(e,t.substring(1),n,i);if(Ki(e))return e.some(function(e){return Bn(e,t,n,i)});switch(o){case"object":var s;if(i){for(s in e)if("$"!==s.charAt(0)&&Bn(e[s],t,n,!0))return!0;return!r&&Bn(e,t,n,!1)}if("object"===a){for(s in t){var u=t[s];if(!x(u)&&!v(u)){var l="$"===s,c=l?e:e[s];if(!Bn(c,u,n,l,l))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Un(e){return null===e?"null":typeof e}function Wn(e){var t=e.NUMBER_FORMATS;return function(e,n,i){return v(n)&&(n=t.CURRENCY_SYM),v(i)&&(i=t.PATTERNS[1].maxFrac),null==e?e:Yn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,i).replace(/\u00A4/g,n)}}function Hn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Yn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Vn(e){var t,n,i,r,o,a=0;for((n=e.indexOf(Mo))>-1&&(e=e.replace(Mo,"")),(i=e.search(/e/i))>0?(n<0&&(n=i),n+=+e.slice(i+1),e=e.substring(0,i)):n<0&&(n=e.length),i=0;e.charAt(i)==So;i++);if(i==(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)==So;)o--;for(n-=i,t=[],r=0;i<=o;i++,r++)t[r]=+e.charAt(i)}return n>Ao&&(t=t.splice(0,Ao-1),a=n-1,n=1),{d:t,e:a,i:n}}function qn(e,t,n,i){var r=e.d,o=r.length-e.i;t=v(t)?Math.min(Math.max(n,o),i):+t;var a=t+e.i,s=r[a];if(a>0){r.splice(Math.max(e.i,a));for(var u=a;u<r.length;u++)r[u]=0}else{o=Math.max(0,o),e.i=1,r.length=Math.max(1,a=t+1),r[0]=0;for(var l=1;l<a;l++)r[l]=0}if(s>=5)if(a-1<0){for(var c=0;c>a;c--)r.unshift(0),e.i++;r.unshift(1),e.i++}else r[a-1]++;for(;o<Math.max(0,t);o++)r.push(0);var p=r.reduceRight(function(e,t,n,i){return t+=e,i[n]=t%10,Math.floor(t/10)},0);p&&(r.unshift(p),e.i++)}function Yn(e,t,n,i,r){if(!w(e)&&!_(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,u=Math.abs(e)+"",l="";if(a)l="∞";else{o=Vn(u),qn(o,r,t.minFrac,t.maxFrac);var c=o.d,p=o.i,d=o.e,f=[];for(s=c.reduce(function(e,t){return e&&!t},!0);p<0;)c.unshift(0),p++;p>0?f=c.splice(p,c.length):(f=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),f.length&&(l+=i+f.join("")),d&&(l+="e+"+d)}return e<0&&!s?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function Kn(e,t,n,i){var r="";for((e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,r="-")),e=""+e;e.length<t;)e=So+e;return n&&(e=e.substr(e.length-t)),r+e}function Zn(e,t,n,i,r){return n=n||0,function(o){var a=o["get"+e]();return(n>0||a>-n)&&(a+=n),0===a&&n==-12&&(a=12),Kn(a,t,i,r)}}function Xn(e,t,n){return function(i,r){var o=i["get"+e](),a=(n?"STANDALONE":"")+(t?"SHORT":""),s=Ii(a+e);return r[s][o]}}function Jn(e,t,n){var i=-1*n,r=i>=0?"+":"";return r+=Kn(Math[i>0?"floor":"ceil"](i/60),2)+Kn(Math.abs(i%60),2)}function Qn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function ei(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function ti(e){return function(t){var n=Qn(t.getFullYear()),i=ei(t),r=+i-+n,o=1+Math.round(r/6048e5);return Kn(o,e)}}function ni(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function ii(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function ri(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function oi(e){function t(e){var t;if(t=e.match(n)){var i=new Date(0),r=0,o=0,a=t[8]?i.setUTCFullYear:i.setFullYear,s=t[8]?i.setUTCHours:i.setHours;t[9]&&(r=p(t[9]+t[10]),o=p(t[9]+t[11])),a.call(i,p(t[1]),p(t[2])-1,p(t[3]));var u=p(t[4]||0)-r,l=p(t[5]||0)-o,c=p(t[6]||0),d=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(i,u,l,c,d),i}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,o){var a,s,u="",l=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,w(n)&&(n=Eo.test(n)?p(n):t(n)),_(n)&&(n=new Date(n)),!k(n)||!isFinite(n.getTime()))return n;for(;r;)s=To.exec(r),s?(l=R(l,s,1),r=l.pop()):(l.push(r),r=null);var c=n.getTimezoneOffset();return o&&(c=q(o,c),n=K(n,o,!0)),i(l,function(t){a=Do[t],u+=a?a(n,e.DATETIME_FORMATS,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function ai(){return function(e,t){return v(t)&&(t=2),H(e,t)}}function si(){return function(e,t,i){return t=Math.abs(Number(t))===1/0?Number(t):p(t),isNaN(t)?e:(_(e)&&(e=e.toString()),n(e)?(i=!i||isNaN(i)?0:p(i),i=i<0?Math.max(0,e.length+i):i,t>=0?ui(e,i,i+t):0===i?ui(e,t,e.length):ui(e,Math.max(0,i+t),i)):e)}}function ui(e,t,n){return w(e)?e.slice(t,n):Ri.call(e,t,n)}function li(e){function i(t){return t.map(function(t){var n=1,i=h;if(x(t))i=t;else if(w(t)&&("+"!=t.charAt(0)&&"-"!=t.charAt(0)||(n="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(i=e(t),i.constant))){var r=i();i=function(e){return e[r]}}return{get:i,descending:n}})}function r(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e){return x(e.valueOf)&&(e=e.valueOf(),r(e))?e:m(e)&&(e=e.toString(),r(e))?e:e}function a(e,t){var n=typeof e;return null===e?(n="string",e="null"):"object"===n&&(e=o(e)),{value:e,type:n,index:t}}function s(e,t){var n=0,i=e.type,r=t.type;if(i===r){var o=e.value,a=t.value;"string"===i?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===i&&(b(o)&&(o=e.index),b(a)&&(a=t.index)),o!==a&&(n=o<a?-1:1)}else n=i<r?-1:1;return n}return function(e,r,o,u){function l(e,t){return{value:e,tieBreaker:{value:t,type:"number",index:t},predicateValues:p.map(function(n){return a(n.get(e),t)})}}function c(e,t){for(var n=0,i=p.length;n<i;n++){var r=f(e.predicateValues[n],t.predicateValues[n]);if(r)return r*p[n].descending*d}return f(e.tieBreaker,t.tieBreaker)*d}if(null==e)return e;if(!n(e))throw t("orderBy")("notarray","Expected array but received: {0}",e);Ki(r)||(r=[r]),0===r.length&&(r=["+"]);var p=i(r),d=o?-1:1,f=x(u)?u:s,h=Array.prototype.map.call(e,l);return h.sort(c),e=h.map(function(e){return e.value})}}function ci(e){return x(e)&&(e={link:e}),e.restrict=e.restrict||"AC",g(e)}function pi(e,t){e.$name=t}function di(e,t,n,r,o){var a=this,s=[];a.$error={},a.$$success={},a.$pending=void 0,a.$name=o(t.name||t.ngForm||"")(n),a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,a.$submitted=!1,a.$$parentForm=jo,a.$rollbackViewValue=function(){i(s,function(e){e.$rollbackViewValue()})},a.$commitViewValue=function(){i(s,function(e){e.$commitViewValue()})},a.$addControl=function(e){pe(e.$name,"input"),s.push(e),e.$name&&(a[e.$name]=e),e.$$parentForm=a},a.$$renameControl=function(e,t){var n=e.$name;a[n]===e&&delete a[n],a[t]=e,e.$name=t},a.$removeControl=function(e){e.$name&&a[e.$name]===e&&delete a[e.$name],i(a.$pending,function(t,n){a.$setValidity(n,null,e)}),i(a.$error,function(t,n){a.$setValidity(n,null,e)}),i(a.$$success,function(t,n){a.$setValidity(n,null,e)}),G(s,e),e.$$parentForm=jo},Mi({ctrl:this,$element:e,set:function(e,t,n){var i=e[t];if(i){var r=i.indexOf(n);r===-1&&i.push(n)}else e[t]=[n]},unset:function(e,t,n){var i=e[t];i&&(G(i,n),0===i.length&&delete e[t])},$animate:r}),a.$setDirty=function(){r.removeClass(e,$a),r.addClass(e,wa),a.$dirty=!0,a.$pristine=!1,a.$$parentForm.$setDirty()},a.$setPristine=function(){r.setClass(e,$a,wa+" "+No),a.$dirty=!1,a.$pristine=!0,a.$submitted=!1,i(s,function(e){e.$setPristine()})},a.$setUntouched=function(){i(s,function(e){e.$setUntouched()})},a.$setSubmitted=function(){r.addClass(e,No),a.$submitted=!0,a.$$parentForm.$setSubmitted()}}function fi(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function hi(e,t,n,i,r,o){gi(e,t,n,i,r,o),fi(i)}function gi(e,t,n,i,r,o){var a=Pi(t[0].type);if(!r.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1,l()})}var u,l=function(e){if(u&&(o.defer.cancel(u),u=null),!s){var r=t.val(),l=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(r=Xi(r)),(i.$viewValue!==r||""===r&&i.$$hasNativeValidators)&&i.$setViewValue(r,l)}};if(r.hasEvent("input"))t.on("input",l);else{var c=function(e,t,n){u||(u=o.defer(function(){u=null,t&&t.value===n||l(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||c(e,this,this.value)}),r.hasEvent("paste")&&t.on("paste cut",c)}t.on("change",l),Xo[a]&&i.$$hasNativeValidators&&a===n.type&&t.on(Zo,function(e){if(!u){var t=this[Ei],n=t.badInput,i=t.typeMismatch;u=o.defer(function(){u=null,t.badInput===n&&t.typeMismatch===i||l(e)})}}),i.$render=function(){var e=i.$isEmpty(i.$viewValue)?"":i.$viewValue;t.val()!==e&&t.val(e)}}function mi(e,t){if(k(e))return e;if(w(e)){qo.lastIndex=0;var n=qo.exec(e);if(n){var i=+n[1],r=+n[2],o=0,a=0,s=0,u=0,l=Qn(i),c=7*(r-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),u=t.getMilliseconds()),new Date(i,0,l.getDate()+c,o,a,s,u)}}return NaN}function vi(e,t){return function(n,r){var o,a;if(k(n))return n;if(w(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Ro.test(n))return new Date(n);if(e.lastIndex=0,o=e.exec(n))return o.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},i(o,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 yi(e,t,n,i){return function(r,o,a,s,u,l,c){function p(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function d(e){return y(e)&&!k(e)?n(e)||void 0:e}bi(r,o,a,s),gi(r,o,a,s,u,l);var f,h=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=n(e,f);return h&&(i=K(i,h)),i}}),s.$formatters.push(function(e){if(e&&!k(e))throw Ma("datefmt","Expected `{0}` to be a date",e);return p(e)?(f=e,f&&h&&(f=K(f,h,!0)),c("date")(e,i,h)):(f=null,"")}),y(a.min)||a.ngMin){var g;s.$validators.min=function(e){return!p(e)||v(g)||n(e)>=g},a.$observe("min",function(e){g=d(e),s.$validate()})}if(y(a.max)||a.ngMax){var m;s.$validators.max=function(e){return!p(e)||v(m)||n(e)<=m},a.$observe("max",function(e){m=d(e),s.$validate()})}}}function bi(e,t,n,i){var r=t[0],o=i.$$hasNativeValidators=b(r.validity);o&&i.$parsers.push(function(e){var n=t.prop(Ei)||{};return n.badInput||n.typeMismatch?void 0:e})}function $i(e,t,n,i,r,o){if(bi(e,t,n,i),gi(e,t,n,i,r,o),i.$$parserName="number",i.$parsers.push(function(e){return i.$isEmpty(e)?null:Wo.test(e)?parseFloat(e):void 0}),i.$formatters.push(function(e){if(!i.$isEmpty(e)){if(!_(e))throw Ma("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}),y(n.min)||n.ngMin){var a;i.$validators.min=function(e){return i.$isEmpty(e)||v(a)||e>=a},n.$observe("min",function(e){y(e)&&!_(e)&&(e=parseFloat(e,10)),a=_(e)&&!isNaN(e)?e:void 0,i.$validate()})}if(y(n.max)||n.ngMax){var s;i.$validators.max=function(e){return i.$isEmpty(e)||v(s)||e<=s},n.$observe("max",function(e){y(e)&&!_(e)&&(e=parseFloat(e,10)),s=_(e)&&!isNaN(e)?e:void 0,i.$validate()})}}function wi(e,t,n,i,r,o){gi(e,t,n,i,r,o),fi(i),i.$$parserName="url",i.$validators.url=function(e,t){var n=e||t;return i.$isEmpty(n)||Bo.test(n)}}function _i(e,t,n,i,r,o){gi(e,t,n,i,r,o),fi(i),i.$$parserName="email",i.$validators.email=function(e,t){var n=e||t;return i.$isEmpty(n)||Uo.test(n)}}function ki(e,t,n,i){v(n.name)&&t.attr("name",a());var r=function(e){t[0].checked&&i.$setViewValue(n.value,e&&e.type)};t.on("click",r),i.$render=function(){var e=n.value;t[0].checked=e==i.$viewValue},n.$observe("value",i.$render)}function xi(e,t,n,i,r){var o;if(y(i)){if(o=e(i),!o.constant)throw Ma("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,i);return o(t)}return r}function Ci(e,t,n,i,r,o,a,s){var u=xi(s,e,"ngTrueValue",n.ngTrueValue,!0),l=xi(s,e,"ngFalseValue",n.ngFalseValue,!1),c=function(e){i.$setViewValue(t[0].checked,e&&e.type)};t.on("click",c),i.$render=function(){t[0].checked=i.$viewValue},i.$isEmpty=function(e){return e===!1},i.$formatters.push(function(e){return F(e,u)}),i.$parsers.push(function(e){return e?u:l})}function Ai(e,t){return e="ngClass"+e,["$animate",function(n){function r(e,t){var n=[];e:for(var i=0;i<e.length;i++){for(var r=e[i],o=0;o<t.length;o++)if(r==t[o])continue e;n.push(r)}return n}function o(e){var t=[];return Ki(e)?(i(e,function(e){t=t.concat(o(e))}),t):w(e)?e.split(" "):b(e)?(i(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t):e}return{restrict:"AC",link:function(a,s,u){function l(e){var t=p(e,1);u.$addClass(t)}function c(e){var t=p(e,-1);u.$removeClass(t)}function p(e,t){var n=s.data("$classCounts")||he(),r=[];return i(e,function(e){(t>0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&r.push(e))}),s.data("$classCounts",n),r.join(" ")}function d(e,t){var i=r(t,e),o=r(e,t);i=p(i,1),o=p(o,-1),i&&i.length&&n.addClass(s,i),o&&o.length&&n.removeClass(s,o)}function f(e){if(t===!0||(1&a.$index)===t){var n=o(e||[]);if(h){if(!F(e,h)){var i=o(h);d(i,n)}}else l(n)}h=Ki(e)?e.map(function(e){return me(e)}):me(e)}var h;a.$watch(u[e],f,!0),u.$observe("class",function(t){f(a.$eval(u[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,i){var r=1&n;if(r!==(1&i)){var s=o(a.$eval(u[e]));r===t?l(s):c(s)}})}}}]}function Mi(e){function t(e,t,s){v(t)?n("$pending",e,s):i("$pending",e,s),E(t)?t?(c(a.$error,e,s),l(a.$$success,e,s)):(l(a.$error,e,s),c(a.$$success,e,s)):(c(a.$error,e,s),c(a.$$success,e,s)),a.$pending?(r(xa,!0),a.$valid=a.$invalid=void 0,o("",null)):(r(xa,!1),a.$valid=Si(a.$error),a.$invalid=!a.$valid,o("",a.$valid));var u;u=a.$pending&&a.$pending[e]?void 0:!a.$error[e]&&(!!a.$$success[e]||null),o(e,u),a.$$parentForm.$setValidity(e,u,a)}function n(e,t,n){a[e]||(a[e]={}),l(a[e],t,n)}function i(e,t,n){a[e]&&c(a[e],t,n),Si(a[e])&&(a[e]=void 0)}function r(e,t){t&&!u[e]?(p.addClass(s,e),u[e]=!0):!t&&u[e]&&(p.removeClass(s,e),u[e]=!1)}function o(e,t){e=e?"-"+se(e,"-"):"",r(ya+e,t===!0),r(ba+e,t===!1)}var a=e.ctrl,s=e.$element,u={},l=e.set,c=e.unset,p=e.$animate;u[ba]=!(u[ya]=s.hasClass(ya)),a.$setValidity=t}function Si(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function Di(e){e[0].hasAttribute("selected")&&(e[0].selected=!0)}var Ti=/^\/(.+)\/([a-z]*)$/,Ei="validity",Oi=Object.prototype.hasOwnProperty,Pi=function(e){return w(e)?e.toLowerCase():e},Ii=function(e){return w(e)?e.toUpperCase():e},Li=function(e){return w(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},ji=function(e){return w(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)&-33)}):e};"i"!=="I".toLowerCase()&&(Pi=Li,Ii=ji);var Ni,Gi,zi,Fi,Ri=[].slice,Bi=[].splice,Ui=[].push,Wi=Object.prototype.toString,Hi=Object.getPrototypeOf,Vi=t("ng"),qi=e.angular||(e.angular={}),Yi=0;Ni=e.document.documentMode,f.$inject=[],h.$inject=[];var Ki=Array.isArray,Zi=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Xi=function(e){return w(e)?e.trim():e},Ji=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Qi=function(){function t(){try{return new Function(""),!1}catch(e){return!0}}if(!y(Qi.rules)){var n=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(n){var i=n.getAttribute("ng-csp")||n.getAttribute("data-ng-csp");Qi.rules={noUnsafeEval:!i||i.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!i||i.indexOf("no-inline-style")!==-1}}else Qi.rules={noUnsafeEval:t(),noInlineStyle:!1}}return Qi.rules},er=function(){if(y(er.name_))return er.name_;var t,n,i,r,o=nr.length;for(n=0;n<o;++n)if(i=nr[n],t=e.document.querySelector("["+i.replace(":","\\:")+"jq]")){r=t.getAttribute(i+"jq");break}return er.name_=r},tr=/:/g,nr=["ng-","data-ng-","ng:","x-ng-"],ir=/[A-Z]/g,rr=!1,or=1,ar=2,sr=3,ur=8,lr=9,cr=11,pr={full:"1.5.7",major:1,minor:5,dot:7,codeName:"hexagonal-circumvolution"};De.expando="ng339";var dr=De.cache={},fr=1,hr=function(e,t,n){e.addEventListener(t,n,!1)},gr=function(e,t,n){e.removeEventListener(t,n,!1)};De._data=function(e){return this.cache[e[this.expando]]||{}};var mr=/([\:\-\_]+(.))/g,vr=/^moz([A-Z])/,yr={mouseleave:"mouseout",mouseenter:"mouseover"},br=t("jqLite"),$r=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,wr=/<|&#?\w+;/,_r=/<([\w:-]+)/,kr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,xr={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,"",""]};xr.optgroup=xr.option,xr.tbody=xr.tfoot=xr.colgroup=xr.caption=xr.thead,xr.th=xr.td;var Cr=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},Ar=De.prototype={ready:function(t){function n(){i||(i=!0,t())}var i=!1;"complete"===e.document.readyState?e.setTimeout(n):(this.on("DOMContentLoaded",n),De(e).on("load",n))},toString:function(){var e=[];return i(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return Gi(e>=0?this[e]:this[this.length+e])},length:0,push:Ui,sort:[].sort,splice:[].splice},Mr={};i("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Mr[Pi(e)]=e});var Sr={};i("input,select,option,textarea,button,form,details".split(","),function(e){Sr[e]=!0});var Dr={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};i({data:Le,removeData:Pe,hasData:xe,cleanData:Ce},function(e,t){De[t]=e}),i({data:Le,inheritedData:Re,scope:function(e){return Gi.data(e,"$scope")||Re(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Gi.data(e,"$isolateScope")||Gi.data(e,"$isolateScopeNoTemplate")},controller:Fe,injector:function(e){return Re(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:je,css:function(e,t,n){return t=we(t),y(n)?void(e.style[t]=n):e.style[t]},attr:function(e,t,n){var i=e.nodeType;if(i!==sr&&i!==ar&&i!==ur){var r=Pi(t);if(Mr[r]){if(!y(n))return e[t]||(e.attributes.getNamedItem(t)||f).specified?r:void 0;n?(e[t]=!0,e.setAttribute(t,r)):(e[t]=!1,e.removeAttribute(r))}else if(y(n))e.setAttribute(t,n);else if(e.getAttribute){var o=e.getAttribute(t,2);return null===o?void 0:o}}},prop:function(e,t,n){return y(n)?void(e[t]=n):e[t]},text:function(){function e(e,t){if(v(t)){var n=e.nodeType;return n===or||n===sr?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(v(t)){if(e.multiple&&"select"===N(e)){var n=[];return i(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){return v(t)?e.innerHTML:(Ee(e,!0),void(e.innerHTML=t))},empty:Be},function(e,t){De.prototype[t]=function(t,n){var i,r,o=this.length;if(e!==Be&&v(2==e.length&&e!==je&&e!==Fe?t:n)){if(b(t)){for(i=0;i<o;i++)if(e===Le)e(this[i],t);else for(r in t)e(this[i],r,t[r]);return this}for(var a=e.$dv,s=v(a)?Math.min(o,1):o,u=0;u<s;u++){var l=e(this[u],t,n);a=a?a+l:l}return a}for(i=0;i<o;i++)e(this[i],t,n);return this}}),i({removeData:Pe,on:function(e,t,n,i){if(y(i))throw br("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ke(e)){var r=Ie(e,!0),o=r.events,a=r.handle;a||(a=r.handle=qe(e,o));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],u=s.length,l=function(t,i,r){var s=o[t];s||(s=o[t]=[],s.specialHandlerWrapper=i,"$destroy"===t||r||hr(e,t,a)),s.push(n)};u--;)t=s[u],yr[t]?(l(yr[t],Ke),l(t,void 0,!0)):l(t)}},off:Oe,one:function(e,t,n){e=Gi(e),e.on(t,function i(){e.off(t,n),e.off(t,i)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;Ee(e),i(new De(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return i(e.childNodes,function(e){e.nodeType===or&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===or||n===cr){t=new De(t);for(var i=0,r=t.length;i<r;i++){var o=t[i];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===or){var n=e.firstChild;i(new De(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){Se(e,Gi(t).eq(0).clone()[0])},remove:Ue,detach:function(e){Ue(e,!0)},after:function(e,t){var n=e,i=e.parentNode;t=new De(t);for(var r=0,o=t.length;r<o;r++){var a=t[r];i.insertBefore(a,n.nextSibling),n=a}},addClass:Ge,removeClass:Ne,toggleClass:function(e,t,n){t&&i(t.split(" "),function(t){var i=n;v(i)&&(i=!je(e,t)),(i?Ge:Ne)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==cr?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Te,triggerHandler:function(e,t,n){var r,o,a,s=t.type||t,u=Ie(e),c=u&&u.events,p=c&&c[s];p&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:f,type:s,target:e},t.type&&(r=l(r,t)),o=me(p),a=n?[r].concat(n):[r],i(o,function(t){r.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){De.prototype[t]=function(t,n,i){for(var r,o=0,a=this.length;o<a;o++)v(r)?(r=e(this[o],t,n,i),y(r)&&(r=Gi(r))):ze(r,e(this[o],t,n,i));return y(r)?r:this},De.prototype.bind=De.prototype.on,De.prototype.unbind=De.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 Tr=[function(){this.$get=[function(){return Je}]}],Er=/^([^\(]+?)=>/,Or=/^[^\(]*\(\s*([^\)]*)\)/m,Pr=/,/,Ir=/^\s*(_?)(\S+?)\1\s*$/,Lr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,jr=t("$injector");it.$$annotate=nt;var Nr=t("$animate"),Gr=1,zr="ng-animate",Fr=function(){this.$get=f},Rr=function(){var e=new Je,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function o(e,t,n){var r=!1;return t&&(t=w(t)?t.split(" "):Ki(t)?t:[],i(t,function(t){t&&(r=!0,e[t]=n)})),r}function a(){i(t,function(t){var n=e.get(t);if(n){var r=st(t.attr("class")),o="",a="";i(n,function(e,t){var n=!!r[t];e!==n&&(e?o+=(o.length?" ":"")+t:a+=(a.length?" ":"")+t)}),i(t,function(e){o&&Ge(e,o),a&&Ne(e,a)}),e.remove(t)}}),t.length=0}function s(n,i,s){var u=e.get(n)||{},l=o(u,i,!0),c=o(u,s,!1);(l||c)&&(e.put(n,u),t.push(n),1===t.length&&r.$$postDigest(a))}return{enabled:f,on:f,off:f,pin:f,push:function(e,t,i,r){r&&r(),i=i||{},i.from&&e.css(i.from),i.to&&e.css(i.to),(i.addClass||i.removeClass)&&s(e,i.addClass,i.removeClass);var o=new n;return o.complete(),o}}}]},Br=["$provide",function(e){var t=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,i){if(n&&"."!==n.charAt(0))throw Nr("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var r=n+"-animation";t.$$registeredAnimations[n.substr(1)]=r,e.factory(r,i)},this.classNameFilter=function(e){if(1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null,this.$$classNameFilter)){var t=new RegExp("(\\s+|\\/)"+zr+"(\\s+|\\/)");if(t.test(this.$$classNameFilter.toString()))throw Nr("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',zr)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var i=at(n);!i||i.parentNode||i.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,i,r,o){return i=i&&Gi(i),r=r&&Gi(r),i=i||r.parent(),t(n,i,r),e.push(n,"enter",ut(o))},move:function(n,i,r,o){return i=i&&Gi(i),r=r&&Gi(r),i=i||r.parent(),t(n,i,r),e.push(n,"move",ut(o))},leave:function(t,n){return e.push(t,"leave",ut(n),function(){t.remove()})},addClass:function(t,n,i){return i=ut(i),i.addClass=ot(i.addclass,n),e.push(t,"addClass",i)},removeClass:function(t,n,i){return i=ut(i),i.removeClass=ot(i.removeClass,n),e.push(t,"removeClass",i)},setClass:function(t,n,i,r){return r=ut(r),r.addClass=ot(r.addClass,n),r.removeClass=ot(r.removeClass,i),e.push(t,"setClass",r)},animate:function(t,n,i,r,o){return o=ut(o),o.from=o.from?l(o.from,n):n,o.to=o.to?l(o.to,i):i,r=r||"ng-inline-animate",o.tempClasses=ot(o.tempClasses,r),e.push(t,"animate",o)}}}]}],Ur=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)}}}]},Wr=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(e,t,n,r,o){function a(e){this.setHost(e);var t=n(),i=function(e){o(e,0,!1)};this._doneCallbacks=[],this._tick=function(e){var n=r[0];n&&n.hidden?i(e):t(e)},this._state=0}var s=0,u=1,l=2;return a.chain=function(e,t){function n(){return i===e.length?void t(!0):void e[i](function(e){return e===!1?void t(!1):(i++,void n())})}var i=0;n()},a.all=function(e,t){function n(n){o=o&&n,++r===e.length&&t(o)}var r=0,o=!0;i(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:f,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===s&&(t._state=u,t._tick(function(){t._resolve(e)}))},_resolve:function(e){this._state!==l&&(i(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=l)}},a}]},Hr=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,i){function r(){return e(function(){o(),s||u.complete(),s=!0}),u}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=i||{};a.$$prepared||(a=z(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(t.css(a.from),a.from=null);var s,u=new n;return{start:r,end:r}}}]},Vr=t("$compile"),qr=new ft;ht.$inject=["$provide","$$sanitizeUriProvider"],gt.prototype.isFirstChange=function(){return this.previousValue===qr};var Yr=/^((?:x|data)[\:\-_])/i,Kr=t("$controller"),Zr=/^(\S+)(\s+as\s+([\w$]+))?$/,Xr=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof Gi&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},Jr="application/json",Qr={"Content-Type":Jr+";charset=utf-8"},eo=/^\[|^\{(?!\{)/,to={"[":/]$/,"{":/}$/},no=/^\)\]\}',?\n/,io=t("$http"),ro=function(e){return function(){throw io("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",e)}},oo=qi.$interpolateMinErr=t("$interpolate");oo.throwNoconcat=function(e){throw oo("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)},oo.interr=function(e,t){return oo("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var ao=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,so={http:80,https:443,ftp:21},uo=t("$location"),lo={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:Zt("$$absUrl"),url:function(e){if(v(e))return this.$$url;var t=ao.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:Zt("$$protocol"),host:Zt("$$host"),port:Zt("$$port"),path:Xt("$$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(w(e)||_(e))e=e.toString(),this.$$search=J(e);else{if(!b(e))throw uo("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=z(e,{}),i(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:v(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:Xt("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};i([Kt,Yt,qt],function(e){e.prototype=Object.create(lo),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==qt||!this.$$html5)throw uo("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=v(t)?null:t,this}});var co=t("$parse"),po=Function.prototype.call,fo=Function.prototype.apply,ho=Function.prototype.bind,go=he();i("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){go[e]=!0});var mo={n:"\n",f:"\f",r:"\r",t:"\t",v:"\x0B","'":"'",'"':'"'},vo=function(e){this.options=e};vo.prototype={constructor:vo,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.isIdentifierStart(this.peekMultichar()))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(),i=n+this.peek(2),r=go[t],o=go[n],a=go[i];if(r||o||a){var s=a?i:o?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return t.indexOf(e)!==-1},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\x0B"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),i=t.charCodeAt(0);return n>=55296&&n<=56319&&i>=56320&&i<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var i=y(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw co("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,i,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=Pi(this.text.charAt(this.index));if("."==n||this.isNumber(n))e+=n;else{var i=this.peek();if("e"==n&&this.isExpOperator(i))e+=n;else if(this.isExpOperator(n)&&i&&this.isNumber(i)&&"e"==e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||i&&this.isNumber(i)||"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(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}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="",i=e,r=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(i+=o,r){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 s=mo[o];n+=s||o}r=!1}else if("\\"===o)r=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:i,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var yo=function(e,t){this.lexer=e,this.options=t};yo.Program="Program",yo.ExpressionStatement="ExpressionStatement",yo.AssignmentExpression="AssignmentExpression",yo.ConditionalExpression="ConditionalExpression",yo.LogicalExpression="LogicalExpression",yo.BinaryExpression="BinaryExpression",yo.UnaryExpression="UnaryExpression",yo.CallExpression="CallExpression",yo.MemberExpression="MemberExpression",yo.Identifier="Identifier",yo.Literal="Literal",yo.ArrayExpression="ArrayExpression",yo.Property="Property",yo.ObjectExpression="ObjectExpression",yo.ThisExpression="ThisExpression",yo.LocalsExpression="LocalsExpression",yo.NGValueParameter="NGValueParameter",yo.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:yo.Program,body:e}},expressionStatement:function(){return{type:yo.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:yo.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:yo.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:yo.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:yo.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:yo.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:yo.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:yo.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:yo.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:yo.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.selfReferential.hasOwnProperty(this.peek().text)?e=z(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:yo.Literal,value:this.options.literals[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:yo.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:yo.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:yo.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:yo.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.filterChain());while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:yo.Identifier,name:e.text}},constant:function(){return{type:yo.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:yo.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:yo.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:yo.ObjectExpression,properties:t}},throwError:function(e,t){throw co("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 co("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 co("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,i){return this.peekAhead(0,e,t,n,i)},peekAhead:function(e,t,n,i,r){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===i||a===r||!t&&!n&&!i&&!r)return o}return!1},expect:function(e,t,n,i){var r=this.peek(e,t,n,i);return!!r&&(this.tokens.shift(),r)},selfReferential:{"this":{type:yo.ThisExpression},$locals:{type:yo.LocalsExpression}}},gn.prototype={compile:function(e,t){var n=this,r=this.astBuilder.ast(e);this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},ln(r,n.$filter);var o,a="";if(this.stage="assign",o=dn(r)){this.state.computing="assign";var s=this.nextId();this.recurse(o,s),this.return_(s),a="fn.assign="+this.generateFunction("assign","s,v,l")}var u=cn(r.body);n.stage="inputs",i(u,function(e,t){var i="fn"+t;n.state[i]={vars:[],body:[],own:{}},n.state.computing=i;var r=n.nextId();n.recurse(e,r),n.return_(r),n.state.inputs.push(i),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(r);var l='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",c=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",l)(this.$filter,en,nn,rn,tn,on,an,sn,e);return this.state=this.stage=void 0,c.literal=fn(r),c.constant=hn(r),c},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return i(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 i(this.state.filters,function(n,i){e.push(n+"=$filter("+t.escape(i)+")")}),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,n,r,o,a){var s,u,l,c,p,d=this;if(r=r||f,!a&&y(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,r,o,!0));switch(e.type){case yo.Program:i(e.body,function(t,n){d.recurse(t.expression,void 0,void 0,function(e){u=e}),n!==e.body.length-1?d.current().body.push(u,";"):d.return_(u)});break;case yo.Literal:c=this.escape(e.value),this.assign(t,c),r(c);break;case yo.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){u=e}),c=e.operator+"("+this.ifDefined(u,0)+")",this.assign(t,c),r(c);break;case yo.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){s=e}),this.recurse(e.right,void 0,void 0,function(e){u=e}),c="+"===e.operator?this.plus(s,u):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(u,0):"("+s+")"+e.operator+"("+u+")",this.assign(t,c),r(c);break;case yo.LogicalExpression:t=t||this.nextId(),d.recurse(e.left,t),d.if_("&&"===e.operator?t:d.not(t),d.lazyRecurse(e.right,t)),r(t);break;case yo.ConditionalExpression:t=t||this.nextId(),d.recurse(e.test,t),d.if_(t,d.lazyRecurse(e.alternate,t),d.lazyRecurse(e.consequent,t)),r(t);break;case yo.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===d.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),en(e.name),d.if_("inputs"===d.stage||d.not(d.getHasOwnProperty("l",e.name)),function(){d.if_("inputs"===d.stage||"s",function(){o&&1!==o&&d.if_(d.not(d.nonComputedMember("s",e.name)),d.lazyAssign(d.nonComputedMember("s",e.name),"{}")),
  d.assign(t,d.nonComputedMember("s",e.name))})},t&&d.lazyAssign(t,d.nonComputedMember("l",e.name))),(d.state.expensiveChecks||vn(e.name))&&d.addEnsureSafeObject(t),r(t);break;case yo.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),d.recurse(e.object,s,void 0,function(){d.if_(d.notNull(s),function(){o&&1!==o&&d.addEnsureSafeAssignContext(s),e.computed?(u=d.nextId(),d.recurse(e.property,u),d.getStringValue(u),d.addEnsureSafeMemberName(u),o&&1!==o&&d.if_(d.not(d.computedMember(s,u)),d.lazyAssign(d.computedMember(s,u),"{}")),c=d.ensureSafeObject(d.computedMember(s,u)),d.assign(t,c),n&&(n.computed=!0,n.name=u)):(en(e.property.name),o&&1!==o&&d.if_(d.not(d.nonComputedMember(s,e.property.name)),d.lazyAssign(d.nonComputedMember(s,e.property.name),"{}")),c=d.nonComputedMember(s,e.property.name),(d.state.expensiveChecks||vn(e.property.name))&&(c=d.ensureSafeObject(c)),d.assign(t,c),n&&(n.computed=!1,n.name=e.property.name))},function(){d.assign(t,"undefined")}),r(t)},!!o);break;case yo.CallExpression:t=t||this.nextId(),e.filter?(u=d.filter(e.callee.name),l=[],i(e.arguments,function(e){var t=d.nextId();d.recurse(e,t),l.push(t)}),c=u+"("+l.join(",")+")",d.assign(t,c),r(t)):(u=d.nextId(),s={},l=[],d.recurse(e.callee,u,s,function(){d.if_(d.notNull(u),function(){d.addEnsureSafeFunction(u),i(e.arguments,function(e){d.recurse(e,d.nextId(),void 0,function(e){l.push(d.ensureSafeObject(e))})}),s.name?(d.state.expensiveChecks||d.addEnsureSafeObject(s.context),c=d.member(s.context,s.name,s.computed)+"("+l.join(",")+")"):c=u+"("+l.join(",")+")",c=d.ensureSafeObject(c),d.assign(t,c)},function(){d.assign(t,"undefined")}),r(t)}));break;case yo.AssignmentExpression:if(u=this.nextId(),s={},!pn(e.left))throw co("lval","Trying to assign a value to a non l-value");this.recurse(e.left,void 0,s,function(){d.if_(d.notNull(s.context),function(){d.recurse(e.right,u),d.addEnsureSafeObject(d.member(s.context,s.name,s.computed)),d.addEnsureSafeAssignContext(s.context),c=d.member(s.context,s.name,s.computed)+e.operator+u,d.assign(t,c),r(t||c)})},1);break;case yo.ArrayExpression:l=[],i(e.elements,function(e){d.recurse(e,d.nextId(),void 0,function(e){l.push(e)})}),c="["+l.join(",")+"]",this.assign(t,c),r(c);break;case yo.ObjectExpression:l=[],p=!1,i(e.properties,function(e){e.computed&&(p=!0)}),p?(t=t||this.nextId(),this.assign(t,"{}"),i(e.properties,function(e){e.computed?(s=d.nextId(),d.recurse(e.key,s)):s=e.key.type===yo.Identifier?e.key.name:""+e.key.value,u=d.nextId(),d.recurse(e.value,u),d.assign(d.member(t,s,e.computed),u)})):(i(e.properties,function(t){d.recurse(t.value,e.constant?void 0:d.nextId(),void 0,function(e){l.push(d.escape(t.key.type===yo.Identifier?t.key.name:""+t.key.value)+":"+e)})}),c="{"+l.join(",")+"}",this.assign(t,c)),r(t||c);break;case yo.ThisExpression:this.assign(t,"s"),r("s");break;case yo.LocalsExpression:this.assign(t,"l"),r("l");break;case yo.NGValueParameter:this.assign(t,"v"),r("v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,i=this.current().own;return i.hasOwnProperty(n)||(i[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),i[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},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 i=this.current().body;i.push("if(",e,"){"),t(),i.push("}"),n&&(i.push("else{"),n(),i.push("}"))}},not:function(e){return"!("+e+")"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var n=/[$_a-zA-Z][$_a-zA-Z0-9]*/,i=/[^$_a-zA-Z0-9]/g;return n.test(t)?e+"."+t:e+'["'+t.replace(i,this.stringEscapeFn)+'"]'},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+")")},ensureSafeAssignContext:function(e){return"ensureSafeAssignContext("+e+",text)"},lazyRecurse:function(e,t,n,i,r,o){var a=this;return function(){a.recurse(e,t,n,i,r,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(w(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(_(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 co("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]}},mn.prototype={compile:function(e,t){var n=this,r=this.astBuilder.ast(e);this.expression=e,this.expensiveChecks=t,ln(r,n.$filter);var o,a;(o=dn(r))&&(a=this.recurse(o));var s,u=cn(r.body);u&&(s=[],i(u,function(e,t){var i=n.recurse(e);e.input=i,s.push(i),e.watchId=t}));var l=[];i(r.body,function(e){l.push(n.recurse(e.expression))});var c=0===r.body.length?f:1===r.body.length?l[0]:function(e,t){var n;return i(l,function(i){n=i(e,t)}),n};return a&&(c.assign=function(e,t,n){return a(e,n,t)}),s&&(c.inputs=s),c.literal=fn(r),c.constant=hn(r),c},recurse:function(e,t,n){var r,o,a,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case yo.Literal:return this.value(e.value,t);case yo.UnaryExpression:return o=this.recurse(e.argument),this["unary"+e.operator](o,t);case yo.BinaryExpression:return r=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](r,o,t);case yo.LogicalExpression:return r=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](r,o,t);case yo.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case yo.Identifier:return en(e.name,s.expression),s.identifier(e.name,s.expensiveChecks||vn(e.name),t,n,s.expression);case yo.MemberExpression:return r=this.recurse(e.object,!1,!!n),e.computed||(en(e.property.name,s.expression),o=e.property.name),e.computed&&(o=this.recurse(e.property)),e.computed?this.computedMember(r,o,t,n,s.expression):this.nonComputedMember(r,o,s.expensiveChecks,t,n,s.expression);case yo.CallExpression:return a=[],i(e.arguments,function(e){a.push(s.recurse(e))}),e.filter&&(o=this.$filter(e.callee.name)),e.filter||(o=this.recurse(e.callee,!0)),e.filter?function(e,n,i,r){for(var s=[],u=0;u<a.length;++u)s.push(a[u](e,n,i,r));var l=o.apply(void 0,s,r);return t?{context:void 0,name:void 0,value:l}:l}:function(e,n,i,r){var u,l=o(e,n,i,r);if(null!=l.value){nn(l.context,s.expression),rn(l.value,s.expression);for(var c=[],p=0;p<a.length;++p)c.push(nn(a[p](e,n,i,r),s.expression));u=nn(l.value.apply(l.context,c),s.expression)}return t?{value:u}:u};case yo.AssignmentExpression:return r=this.recurse(e.left,!0,1),o=this.recurse(e.right),function(e,n,i,a){var u=r(e,n,i,a),l=o(e,n,i,a);return nn(u.value,s.expression),on(u.context),u.context[u.name]=l,t?{value:l}:l};case yo.ArrayExpression:return a=[],i(e.elements,function(e){a.push(s.recurse(e))}),function(e,n,i,r){for(var o=[],s=0;s<a.length;++s)o.push(a[s](e,n,i,r));return t?{value:o}:o};case yo.ObjectExpression:return a=[],i(e.properties,function(e){e.computed?a.push({key:s.recurse(e.key),computed:!0,value:s.recurse(e.value)}):a.push({key:e.key.type===yo.Identifier?e.key.name:""+e.key.value,computed:!1,value:s.recurse(e.value)})}),function(e,n,i,r){for(var o={},s=0;s<a.length;++s)a[s].computed?o[a[s].key(e,n,i,r)]=a[s].value(e,n,i,r):o[a[s].key]=a[s].value(e,n,i,r);return t?{value:o}:o};case yo.ThisExpression:return function(e){return t?{value:e}:e};case yo.LocalsExpression:return function(e,n){return t?{value:n}:n};case yo.NGValueParameter:return function(e,n,i){return t?{value:i}:i}}},"unary+":function(e,t){return function(n,i,r,o){var a=e(n,i,r,o);return a=y(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,i,r,o){var a=e(n,i,r,o);return a=y(a)?-a:0,t?{value:a}:a}},"unary!":function(e,t){return function(n,i,r,o){var a=!e(n,i,r,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a),u=t(i,r,o,a),l=sn(s,u);return n?{value:l}:l}},"binary-":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a),u=t(i,r,o,a),l=(y(s)?s:0)-(y(u)?u:0);return n?{value:l}:l}},"binary*":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)*t(i,r,o,a);return n?{value:s}:s}},"binary/":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)/t(i,r,o,a);return n?{value:s}:s}},"binary%":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)%t(i,r,o,a);return n?{value:s}:s}},"binary===":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)===t(i,r,o,a);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)!==t(i,r,o,a);return n?{value:s}:s}},"binary==":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)==t(i,r,o,a);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)!=t(i,r,o,a);return n?{value:s}:s}},"binary<":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)<t(i,r,o,a);return n?{value:s}:s}},"binary>":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)>t(i,r,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)<=t(i,r,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)>=t(i,r,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)&&t(i,r,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)||t(i,r,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,i){return function(r,o,a,s){var u=e(r,o,a,s)?t(r,o,a,s):n(r,o,a,s);return i?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n,i,r){return function(o,a,s,u){var l=a&&e in a?a:o;i&&1!==i&&l&&!l[e]&&(l[e]={});var c=l?l[e]:void 0;return t&&nn(c,r),n?{context:l,name:e,value:c}:c}},computedMember:function(e,t,n,i,r){return function(o,a,s,u){var l,c,p=e(o,a,s,u);return null!=p&&(l=t(o,a,s,u),l=tn(l),en(l,r),i&&1!==i&&(on(p),p&&!p[l]&&(p[l]={})),c=p[l],nn(c,r)),n?{context:p,name:l,value:c}:c}},nonComputedMember:function(e,t,n,i,r,o){return function(a,s,u,l){var c=e(a,s,u,l);r&&1!==r&&(on(c),c&&!c[t]&&(c[t]={}));var p=null!=c?c[t]:void 0;return(n||vn(t))&&nn(p,o),i?{context:c,name:t,value:p}:p}},inputs:function(e,t){return function(n,i,r,o){return o?o[t]:e(n,i,r)}}};var bo=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new yo(e,n),this.astCompiler=n.csp?new mn(this.ast,t):new gn(this.ast,t)};bo.prototype={constructor:bo,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}};var $o=Object.prototype.valueOf,wo=t("$sce"),_o={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ko=t("$compile"),xo=e.document.createElement("a"),Co=In(e.location.href);Nn.$inject=["$document"],zn.$inject=["$provide"];var Ao=22,Mo=".",So="0";Wn.$inject=["$locale"],Hn.$inject=["$locale"];var Do={yyyy:Zn("FullYear",4,0,!1,!0),yy:Zn("FullYear",2,0,!0,!0),y:Zn("FullYear",1,0,!1,!0),MMMM:Xn("Month"),MMM:Xn("Month",!0),MM:Zn("Month",2,1),M:Zn("Month",1,1),LLLL:Xn("Month",!1,!0),dd:Zn("Date",2),d:Zn("Date",1),HH:Zn("Hours",2),H:Zn("Hours",1),hh:Zn("Hours",2,-12),h:Zn("Hours",1,-12),mm:Zn("Minutes",2),m:Zn("Minutes",1),ss:Zn("Seconds",2),s:Zn("Seconds",1),sss:Zn("Milliseconds",3),EEEE:Xn("Day"),EEE:Xn("Day",!0),a:ni,Z:Jn,ww:ti(2),w:ti(1),G:ii,GG:ii,GGG:ii,GGGG:ri},To=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Eo=/^\-?\d+$/;oi.$inject=["$locale"];var Oo=g(Pi),Po=g(Ii);li.$inject=["$parse"];var Io=g({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Wi.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Lo={};i(Mr,function(e,t){function n(e,n,r){e.$watch(r[i],function(e){r.$set(t,!!e)})}if("multiple"!=e){var i=mt("ng-"+t),r=n;"checked"===e&&(r=function(e,t,r){r.ngModel!==r[i]&&n(e,t,r)}),Lo[i]=function(){return{restrict:"A",priority:100,link:r}}}}),i(Dr,function(e,t){Lo[t]=function(){return{priority:100,link:function(e,n,i){if("ngPattern"===t&&"/"==i.ngPattern.charAt(0)){var r=i.ngPattern.match(Ti);if(r)return void i.$set("ngPattern",new RegExp(r[1],r[2]))}e.$watch(i[t],function(e){i.$set(t,e)})}}}}),i(["src","srcset","href"],function(e){var t=mt("ng-"+e);Lo[t]=function(){return{priority:99,link:function(n,i,r){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===Wi.call(i.prop("href"))&&(a="xlinkHref",r.$attr[a]="xlink:href",o=null),r.$observe(t,function(t){return t?(r.$set(a,t),void(Ni&&o&&i.prop(o,r[a]))):void("href"===e&&r.$set(a,null))})}}}});var jo={$addControl:f,$$renameControl:pi,$removeControl:f,$setValidity:f,$setDirty:f,$setPristine:f,$setSubmitted:f},No="ng-submitted";di.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Go=function(e){return["$timeout","$parse",function(t,n){function i(e){return""===e?n('this[""]').assign:n(e).assign||f}var r={name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:di,compile:function(n,r){n.addClass($a).addClass(ya);var o=r.name?"name":!(!e||!r.ngForm)&&"ngForm";return{pre:function(e,n,r,a){var s=a[0];if(!("action"in r)){var u=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()};hr(n[0],"submit",u),n.on("$destroy",function(){t(function(){gr(n[0],"submit",u)},0,!1)})}var c=a[1]||s.$$parentForm;c.$addControl(s);var p=o?i(s.$name):f;o&&(p(e,s),r.$observe(o,function(t){s.$name!==t&&(p(e,void 0),s.$$parentForm.$$renameControl(s,t),(p=i(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),p(e,void 0),l(s,jo)})}}}};return r}]},zo=Go(),Fo=Go(!0),Ro=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Bo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Uo=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Wo=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ho=/^(\d{4,})-(\d{2})-(\d{2})$/,Vo=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,qo=/^(\d{4,})-W(\d\d)$/,Yo=/^(\d{4,})-(\d\d)$/,Ko=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Zo="keydown wheel mousedown",Xo=he();i("date,datetime-local,month,time,week".split(","),function(e){Xo[e]=!0});var Jo={text:hi,date:yi("date",Ho,vi(Ho,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":yi("datetimelocal",Vo,vi(Vo,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:yi("time",Ko,vi(Ko,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:yi("week",qo,mi,"yyyy-Www"),month:yi("month",Yo,vi(Yo,["yyyy","MM"]),"yyyy-MM"),number:$i,url:wi,email:_i,radio:ki,checkbox:Ci,hidden:f,button:f,submit:f,reset:f,file:f},Qo=["$browser","$sniffer","$filter","$parse",function(e,t,n,i){return{restrict:"E",require:["?ngModel"],link:{pre:function(r,o,a,s){s[0]&&(Jo[Pi(a.type)]||Jo.text)(r,o,a,s[0],t,e,n,i)}}}}],ea=/^(true|false|\d+)$/,ta=function(){return{restrict:"A",priority:100,compile:function(e,t){return ea.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)})}}}},na=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,i){e.$$addBindingInfo(n,i.ngBind),n=n[0],t.$watch(i.ngBind,function(e){n.textContent=v(e)?"":e})}}}}],ia=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,i,r){var o=e(i.attr(r.$attr.ngBindTemplate));t.$$addBindingInfo(i,o.expressions),i=i[0],r.$observe("ngBindTemplate",function(e){i.textContent=v(e)?"":e})}}}}],ra=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(i,r){var o=t(r.ngBindHtml),a=t(r.ngBindHtml,function(t){return e.valueOf(t)});return n.$$addBindingClass(i),function(t,i,r){n.$$addBindingInfo(i,r.ngBindHtml),t.$watch(a,function(){var n=o(t);i.html(e.getTrustedHtml(n)||"")})}}}}],oa=g({restrict:"A",require:"ngModel",link:function(e,t,n,i){i.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),aa=Ai("",!0),sa=Ai("Odd",0),ua=Ai("Even",1),la=ci({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),ca=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],pa={},da={blur:!0,focus:!0};i("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=mt("ng-"+e);pa[t]=["$parse","$rootScope",function(n,i){return{restrict:"A",compile:function(r,o){var a=n(o[t],null,!0);return function(t,n){n.on(e,function(n){var r=function(){a(t,{$event:n})};da[e]&&i.$$phase?t.$evalAsync(r):t.$apply(r)})}}}}]});var fa=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,i,r,o,a){var s,u,l;n.$watch(r.ngIf,function(n){n?u||a(function(n,o){u=o,n[n.length++]=t.$$createComment("end ngIf",r.ngIf),s={clone:n},e.enter(n,i.parent(),i)}):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=fe(s.clone),e.leave(l).then(function(){l=null}),s=null))})}}}],ha=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:qi.noop,compile:function(i,r){var o=r.ngInclude||r.src,a=r.onload||"",s=r.autoscroll;return function(i,r,u,l,c){var p,d,f,h=0,g=function(){d&&(d.remove(),d=null),p&&(p.$destroy(),p=null),f&&(n.leave(f).then(function(){d=null}),d=f,f=null)};i.$watch(o,function(o){var u=function(){!y(s)||s&&!i.$eval(s)||t()},d=++h;o?(e(o,!0).then(function(e){if(!i.$$destroyed&&d===h){var t=i.$new();l.template=e;var s=c(t,function(e){g(),n.enter(e,null,r).then(u)});p=t,f=s,p.$emit("$includeContentLoaded",o),i.$eval(a)}},function(){i.$$destroyed||d===h&&(g(),i.$emit("$includeContentError",o))}),i.$emit("$includeContentRequested",o)):(g(),l.template=null)})}}}}],ga=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,i,r,o){return Wi.call(i[0]).match(/SVG/)?(i.empty(),void t(Ae(o.template,e.document).childNodes)(n,function(e){i.append(e)},{futureParentElement:i})):(i.html(o.template),void t(i.contents())(n))}}}],ma=ci({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),va=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var o=t.attr(n.$attr.ngList)||", ",a="false"!==n.ngTrim,s=a?Xi(o):o,u=function(e){if(!v(e)){var t=[];return e&&i(e.split(s),function(e){e&&t.push(a?Xi(e):e)}),t}};r.$parsers.push(u),r.$formatters.push(function(e){if(Ki(e))return e.join(o)}),r.$isEmpty=function(e){return!e||!e.length}}}},ya="ng-valid",ba="ng-invalid",$a="ng-pristine",wa="ng-dirty",_a="ng-untouched",ka="ng-touched",xa="ng-pending",Ca="ng-empty",Aa="ng-not-empty",Ma=t("ngModel"),Sa=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,n,r,o,a,s,u,l,c){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,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=void 0,this.$name=c(n.name||"",!1)(e),this.$$parentForm=jo;var p,d=o(n.ngModel),h=d.assign,g=d,m=h,b=null,$=this;this.$$setOptions=function(e){if($.$options=e,e&&e.getterSetter){var t=o(n.ngModel+"()"),i=o(n.ngModel+"($$$p)");g=function(e){var n=d(e);return x(n)&&(n=t(e)),n},m=function(e,t){x(d(e))?i(e,{$$$p:t}):h(e,t)}}else if(!d.assign)throw Ma("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,Z(r))},this.$render=f,this.$isEmpty=function(e){return v(e)||""===e||null===e||e!==e},this.$$updateEmptyClasses=function(e){$.$isEmpty(e)?(a.removeClass(r,Aa),a.addClass(r,Ca)):(a.removeClass(r,Ca),a.addClass(r,Aa))};var w=0;Mi({ctrl:this,$element:r,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},$animate:a}),this.$setPristine=function(){$.$dirty=!1,$.$pristine=!0,a.removeClass(r,wa),a.addClass(r,$a)},this.$setDirty=function(){$.$dirty=!0,$.$pristine=!1,a.removeClass(r,$a),a.addClass(r,wa),$.$$parentForm.$setDirty()},this.$setUntouched=function(){$.$touched=!1,$.$untouched=!0,a.setClass(r,_a,ka)},this.$setTouched=function(){$.$touched=!0,$.$untouched=!1,a.setClass(r,ka,_a)},this.$rollbackViewValue=function(){s.cancel(b),$.$viewValue=$.$$lastCommittedViewValue,$.$render()},this.$validate=function(){if(!_($.$modelValue)||!isNaN($.$modelValue)){var e=$.$$lastCommittedViewValue,t=$.$$rawModelValue,n=$.$valid,i=$.$modelValue,r=$.$options&&$.$options.allowInvalid;$.$$runValidators(t,e,function(e){r||n===e||($.$modelValue=e?t:void 0,$.$modelValue!==i&&$.$$writeModelToScope())})}},this.$$runValidators=function(e,t,n){function r(){var e=$.$$parserName||"parse";return v(p)?(s(e,null),!0):(p||(i($.$validators,function(e,t){s(t,null)}),i($.$asyncValidators,function(e,t){s(t,null)})),s(e,p),p)}function o(){var n=!0;return i($.$validators,function(i,r){var o=i(e,t);n=n&&o,s(r,o)}),!!n||(i($.$asyncValidators,function(e,t){s(t,null)}),!1)}function a(){var n=[],r=!0;i($.$asyncValidators,function(i,o){var a=i(e,t);if(!O(a))throw Ma("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),n.push(a.then(function(){s(o,!0)},function(){r=!1,s(o,!1)}))}),n.length?l.all(n).then(function(){u(r)},f):u(!0)}function s(e,t){c===w&&$.$setValidity(e,t)}function u(e){c===w&&n(e)}w++;var c=w;return r()&&o()?void a():void u(!1)},this.$commitViewValue=function(){var e=$.$viewValue;s.cancel(b),($.$$lastCommittedViewValue!==e||""===e&&$.$$hasNativeValidators)&&($.$$updateEmptyClasses(e),$.$$lastCommittedViewValue=e,$.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function t(){$.$modelValue!==o&&$.$$writeModelToScope()}var n=$.$$lastCommittedViewValue,i=n;if(p=!v(i)||void 0)for(var r=0;r<$.$parsers.length;r++)if(i=$.$parsers[r](i),v(i)){p=!1;break}_($.$modelValue)&&isNaN($.$modelValue)&&($.$modelValue=g(e));var o=$.$modelValue,a=$.$options&&$.$options.allowInvalid;$.$$rawModelValue=i,a&&($.$modelValue=i,t()),$.$$runValidators(i,$.$$lastCommittedViewValue,function(e){a||($.$modelValue=e?i:void 0,t())})},this.$$writeModelToScope=function(){m(e,$.$modelValue),i($.$viewChangeListeners,function(e){try{e()}catch(n){t(n)}})},this.$setViewValue=function(e,t){$.$viewValue=e,$.$options&&!$.$options.updateOnDefault||$.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n,i=0,r=$.$options;r&&y(r.debounce)&&(n=r.debounce,_(n)?i=n:_(n[t])?i=n[t]:_(n["default"])&&(i=n["default"])),s.cancel(b),i?b=s(function(){$.$commitViewValue()},i):u.$$phase?$.$commitViewValue():e.$apply(function(){$.$commitViewValue()})},e.$watch(function(){var t=g(e);if(t!==$.$modelValue&&($.$modelValue===$.$modelValue||t===t)){$.$modelValue=$.$$rawModelValue=t,p=void 0;for(var n=$.$formatters,i=n.length,r=t;i--;)r=n[i](r);$.$viewValue!==r&&($.$$updateEmptyClasses(r),$.$viewValue=$.$$lastCommittedViewValue=r,$.$render(),$.$$runValidators(t,r,f))}return t})}],Da=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Sa,priority:1,compile:function(t){return t.addClass($a).addClass(_a).addClass(ya),{pre:function(e,t,n,i){var r=i[0],o=i[1]||r.$$parentForm;r.$$setOptions(i[2]&&i[2].$options),o.$addControl(r),n.$observe("name",function(e){r.$name!==e&&r.$$parentForm.$$renameControl(r,e)}),e.$on("$destroy",function(){r.$$parentForm.$removeControl(r)})},post:function(t,n,i,r){var o=r[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(e){o.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){o.$touched||(e.$$phase?t.$evalAsync(o.$setTouched):t.$apply(o.$setTouched))})}}}}}],Ta=/(\s+|^)default(\s+|$)/,Ea=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var n=this;this.$options=z(e.$eval(t.ngModelOptions)),y(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Xi(this.$options.updateOn.replace(Ta,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},Oa=ci({terminal:!0,priority:1e3}),Pa=t("ngOptions"),Ia=/^\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]+?))?$/,La=["$compile","$document","$parse",function(t,r,o){function a(e,t,i){function r(e,t,n,i,r){this.selectValue=e,this.viewValue=t,this.label=n,this.group=i,this.disabled=r}function a(e){var t;if(!l&&n(e))t=e;else{t=[];for(var i in e)e.hasOwnProperty(i)&&"$"!==i.charAt(0)&&t.push(i)}return t}var s=e.match(Ia);if(!s)throw Pa("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,Z(t));var u=s[5]||s[7],l=s[6],c=/ as /.test(s[0])&&s[1],p=s[9],d=o(s[2]?s[1]:u),f=c&&o(c),h=f||d,g=p&&o(p),m=p?function(e,t){return g(i,t)}:function(e){return Xe(e)},v=function(e,t){return m(e,k(e,t))},y=o(s[2]||s[1]),b=o(s[3]||""),$=o(s[4]||""),w=o(s[8]),_={},k=l?function(e,t){return _[l]=t,_[u]=e,_}:function(e){return _[u]=e,_};return{trackBy:p,getTrackByValue:v,getWatchables:o(w,function(e){var t=[];e=e||[];for(var n=a(e),r=n.length,o=0;o<r;o++){var u=e===n?o:n[o],l=e[u],c=k(l,u),p=m(l,c);if(t.push(p),s[2]||s[1]){var d=y(i,c);t.push(d)}if(s[4]){var f=$(i,c);t.push(f)}}return t}),getOptions:function(){for(var e=[],t={},n=w(i)||[],o=a(n),s=o.length,u=0;u<s;u++){var l=n===o?u:o[u],c=n[l],d=k(c,l),f=h(i,d),g=m(f,d),_=y(i,d),x=b(i,d),C=$(i,d),A=new r(g,f,_,x,C);e.push(A),t[g]=A}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[v(e)]},getViewValueFromOption:function(e){return p?qi.copy(e.viewValue):e.viewValue}}}}}function s(e,n,o,s){function c(e,t){var n=u.cloneNode(!1);t.appendChild(n),p(e,n)}function p(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 d(){var e=k&&h.readValue();if(k)for(var t=k.items.length-1;t>=0;t--){var i=k.items[t];Ue(i.group?i.element.parentNode:i.element)}k=x.getOptions();var r={};if(w&&n.prepend(f),k.items.forEach(function(e){var t;y(e.group)?(t=r[e.group],t||(t=l.cloneNode(!1),C.appendChild(t),t.label=e.group,r[e.group]=t),c(e,t)):c(e,C)}),n[0].appendChild(C),g.$render(),!g.$isEmpty(e)){var o=h.readValue(),a=x.trackBy||m;(a?F(e,o):e===o)||(g.$setViewValue(o),g.$render())}}for(var f,h=s[0],g=s[1],m=o.multiple,v=0,b=n.children(),$=b.length;v<$;v++)if(""===b[v].value){f=b.eq(v);break}var w=!!f,_=Gi(u.cloneNode(!1));_.val("?");var k,x=a(o.ngOptions,n,e),C=r[0].createDocumentFragment(),A=function(){w||n.prepend(f),n.val(""),f.prop("selected",!0),f.attr("selected",!0)},M=function(){w||f.remove()},S=function(){n.prepend(_),n.val("?"),_.prop("selected",!0),_.attr("selected",!0)},D=function(){_.remove()};m?(g.$isEmpty=function(e){return!e||0===e.length},h.writeValue=function(e){k.items.forEach(function(e){e.element.selected=!1}),e&&e.forEach(function(e){var t=k.getOptionFromViewValue(e);t&&(t.element.selected=!0)})},h.readValue=function(){var e=n.val()||[],t=[];return i(e,function(e){var n=k.selectValueMap[e];n&&!n.disabled&&t.push(k.getViewValueFromOption(n))}),t},x.trackBy&&e.$watchCollection(function(){if(Ki(g.$viewValue))return g.$viewValue.map(function(e){return x.getTrackByValue(e)})},function(){g.$render()})):(h.writeValue=function(e){var t=k.getOptionFromViewValue(e);t?(n[0].value!==t.selectValue&&(D(),M(),n[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):null===e||w?(D(),A()):(M(),S())},h.readValue=function(){var e=k.selectValueMap[n.val()];return e&&!e.disabled?(M(),D(),k.getViewValueFromOption(e)):null},x.trackBy&&e.$watch(function(){return x.getTrackByValue(g.$viewValue)},function(){g.$render()})),w?(f.remove(),t(f)(e),f.removeClass("ng-scope")):f=Gi(u.cloneNode(!1)),n.empty(),d(),e.$watchCollection(x.getWatchables,d)}var u=e.document.createElement("option"),l=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,i){i[0].registerOption=f},post:s}}}],ja=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,o=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function l(e){s.text(e||"")}var c,p=u.count,d=u.$attr.when&&s.attr(u.$attr.when),h=u.offset||0,g=a.$eval(d)||{},m={},y=t.startSymbol(),b=t.endSymbol(),$=y+p+"-"+h+b,w=qi.noop;i(u,function(e,t){var n=o.exec(t);if(n){var i=(n[1]?"-":"")+Pi(n[2]);g[i]=s.attr(u.$attr[t])}}),i(g,function(e,n){m[n]=t(e.replace(r,$))}),a.$watch(p,function(t){var i=parseFloat(t),r=isNaN(i);if(r||i in g||(i=e.pluralCat(i-h)),i!==c&&!(r&&_(c)&&isNaN(c))){w();var o=m[i];v(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+i+"' in "+d),w=f,l()):w=a.$watch(o,l),c=i}})}}}],Na=["$parse","$animate","$compile",function(e,r,o){var a="$$NG_REMOVED",s=t("ngRepeat"),u=function(e,t,n,i,r,o,a){e[n]=i,r&&(e[r]=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))},l=function(e){return e.clone[0]},c=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,p){var d=p.ngRepeat,f=o.$$createComment("end ngRepeat",d),h=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!h)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",d);var g=h[1],m=h[2],v=h[3],y=h[4];if(h=g.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!h)throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);var b=h[3]||h[1],$=h[2];if(v&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(v)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(v)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",v);var w,_,k,x,C={$id:Xe};return y?w=e(y):(k=function(e,t){return Xe(t)},x=function(e){return e}),function(e,t,o,p,h){w&&(_=function(t,n,i){return $&&(C[$]=t),C[b]=n,C.$index=i,w(e,C)});var g=he();e.$watchCollection(m,function(o){var p,m,y,w,C,A,M,S,D,T,E,O,P=t[0],I=he();if(v&&(e[v]=o),n(o))D=o,S=_||k;else{S=_||x,D=[];for(var L in o)Oi.call(o,L)&&"$"!==L.charAt(0)&&D.push(L)}for(w=D.length,E=new Array(w),p=0;p<w;p++)if(C=o===D?p:D[p],A=o[C],M=S(C,A,p),g[M])T=g[M],
  delete g[M],I[M]=T,E[p]=T;else{if(I[M])throw i(E,function(e){e&&e.scope&&(g[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,M,A);E[p]={id:M,scope:void 0,clone:void 0},I[M]=!0}for(var j in g){if(T=g[j],O=fe(T.clone),r.leave(O),O[0].parentNode)for(p=0,m=O.length;p<m;p++)O[p][a]=!0;T.scope.$destroy()}for(p=0;p<w;p++)if(C=o===D?p:D[p],A=o[C],T=E[p],T.scope){y=P;do y=y.nextSibling;while(y&&y[a]);l(T)!=y&&r.move(fe(T.clone),null,P),P=c(T),u(T.scope,p,b,A,$,C,w)}else h(function(e,t){T.scope=t;var n=f.cloneNode(!1);e[e.length++]=n,r.enter(e,null,P),P=n,T.clone=e,I[T.id]=T,u(T.scope,p,b,A,$,C,w)});g=I})}}}}],Ga="ng-hide",za="ng-hide-animate",Fa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,i){t.$watch(i.ngShow,function(t){e[t?"removeClass":"addClass"](n,Ga,{tempClasses:za})})}}}],Ra=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,i){t.$watch(i.ngHide,function(t){e[t?"addClass":"removeClass"](n,Ga,{tempClasses:za})})}}}],Ba=ci(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&i(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),Ua=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,o,a){var s=o.ngSwitch||o.on,u=[],l=[],c=[],p=[],d=function(e,t){return function(){e.splice(t,1)}};n.$watch(s,function(n){var r,o;for(r=0,o=c.length;r<o;++r)e.cancel(c[r]);for(c.length=0,r=0,o=p.length;r<o;++r){var s=fe(l[r].clone);p[r].$destroy();var f=c[r]=e.leave(s);f.then(d(c,r))}l.length=0,p.length=0,(u=a.cases["!"+n]||a.cases["?"])&&i(u,function(n){n.transclude(function(i,r){p.push(r);var o=n.element;i[i.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:i};l.push(a),e.enter(i,o.parent(),o)})})})}}}],Wa=ci({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,i,r){i.cases["!"+n.ngSwitchWhen]=i.cases["!"+n.ngSwitchWhen]||[],i.cases["!"+n.ngSwitchWhen].push({transclude:r,element:t})}}),Ha=ci({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,i,r){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:r,element:t})}}),Va=t("ngTransclude"),qa=ci({restrict:"EAC",link:function(e,t,n,i,r){function o(e){e.length&&(t.empty(),t.append(e))}if(n.ngTransclude===n.$attr.ngTransclude&&(n.ngTransclude=""),!r)throw Va("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Z(t));var a=n.ngTransclude||n.ngTranscludeSlot;r(o,null,a)}}),Ya=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var i=n.id,r=t[0].text;e.put(i,r)}}}}],Ka={$setViewValue:f,$render:f},Za=["$element","$scope",function(t,n){var i=this,r=new Je;i.ngModelCtrl=Ka,i.unknownOption=Gi(e.document.createElement("option")),i.renderUnknownOption=function(e){var n="? "+Xe(e)+" ?";i.unknownOption.val(n),t.prepend(i.unknownOption),t.val(n)},n.$on("$destroy",function(){i.renderUnknownOption=f}),i.removeUnknownOption=function(){i.unknownOption.parent()&&i.unknownOption.remove()},i.readValue=function(){return i.removeUnknownOption(),t.val()},i.writeValue=function(e){i.hasOption(e)?(i.removeUnknownOption(),t.val(e),""===e&&i.emptyOption.prop("selected",!0)):null==e&&i.emptyOption?(i.removeUnknownOption(),t.val("")):i.renderUnknownOption(e)},i.addOption=function(e,t){if(t[0].nodeType!==ur){pe(e,'"option value"'),""===e&&(i.emptyOption=t);var n=r.get(e)||0;r.put(e,n+1),i.ngModelCtrl.$render(),Di(t)}},i.removeOption=function(e){var t=r.get(e);t&&(1===t?(r.remove(e),""===e&&(i.emptyOption=void 0)):r.put(e,t-1))},i.hasOption=function(e){return!!r.get(e)},i.registerOption=function(e,t,n,r,o){if(r){var a;n.$observe("value",function(e){y(a)&&i.removeOption(a),a=e,i.addOption(e,t)})}else o?e.$watch(o,function(e,r){n.$set("value",e),r!==e&&i.removeOption(r),i.addOption(e,t)}):i.addOption(n.value,t);t.on("$destroy",function(){i.removeOption(n.value),i.ngModelCtrl.$render()})}}],Xa=function(){function e(e,t,n,r){var o=r[1];if(o){var a=r[0];if(a.ngModelCtrl=o,t.on("change",function(){e.$apply(function(){o.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var e=[];return i(t.find("option"),function(t){t.selected&&e.push(t.value)}),e},a.writeValue=function(e){var n=new Je(e);i(t.find("option"),function(e){e.selected=y(n.get(e.value))})};var s,u=NaN;e.$watch(function(){u!==o.$viewValue||F(s,o.$viewValue)||(s=me(o.$viewValue),o.$render()),u=o.$viewValue}),o.$isEmpty=function(e){return!e||0===e.length}}}}function t(e,t,n,i){var r=i[1];if(r){var o=i[0];r.$render=function(){o.writeValue(r.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Za,priority:1,link:{pre:e,post:t}}},Ja=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){if(y(n.value))var i=e(n.value,!0);else{var r=e(t.text(),!0);r||n.$set("value",t.text())}return function(e,t,n){var o="$selectController",a=t.parent(),s=a.data(o)||a.parent().data(o);s&&s.registerOption(e,t,n,i,r)}}}}],Qa=g({restrict:"E",terminal:!1}),es=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,i){i&&(n.required=!0,i.$validators.required=function(e,t){return!n.required||!i.$isEmpty(t)},n.$observe("required",function(){i.$validate()}))}}},ts=function(){return{restrict:"A",require:"?ngModel",link:function(e,n,i,r){if(r){var o,a=i.ngPattern||i.pattern;i.$observe("pattern",function(e){if(w(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw t("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,e,Z(n));o=e||void 0,r.$validate()}),r.$validators.pattern=function(e,t){return r.$isEmpty(t)||v(o)||o.test(t)}}}}},ns=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,i){if(i){var r=-1;n.$observe("maxlength",function(e){var t=p(e);r=isNaN(t)?-1:t,i.$validate()}),i.$validators.maxlength=function(e,t){return r<0||i.$isEmpty(t)||t.length<=r}}}}},is=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,i){if(i){var r=0;n.$observe("minlength",function(e){r=p(e)||0,i.$validate()}),i.$validators.minlength=function(e,t){return i.$isEmpty(t)||t.length>=r}}}}};return e.angular.bootstrap?void(e.console&&console.log("WARNING: Tried to load angular more than once.")):(ue(),be(qi),qi.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return t==-1?0:e.length-t-1}function n(e,n){var i=n;void 0===i&&(i=Math.min(t(e),3));var r=Math.pow(10,i),o=(e*r|0)%r;return{v:i,f:o}}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 r=0|e,o=n(e,t);return 1==r&&0==o.v?i.ONE:i.OTHER}})}]),void Gi(e.document).ready(function(){ie(e.document,re)}))}(window),!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>'),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQuery),+function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;e(this).one("bsTransitionEnd",function(){n=!0});var r=function(){n||e(i).trigger(e.support.transition.end)};return setTimeout(r,t),this},e(function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var n=e(this),r=n.data("bs.alert");r||n.data("bs.alert",r=new i(this)),"string"==typeof t&&r[t].call(n)})}var n='[data-dismiss="alert"]',i=function(t){e(t).on("click",n,this.close)};i.VERSION="3.3.6",i.TRANSITION_DURATION=150,i.prototype.close=function(t){function n(){a.detach().trigger("closed.bs.alert").remove()}var r=e(this),o=r.attr("data-target");o||(o=r.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var a=e(o);t&&t.preventDefault(),a.length||(a=r.closest(".alert")),a.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(a.removeClass("in"),e.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var r=e.fn.alert;e.fn.alert=t,e.fn.alert.Constructor=i,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.bs.alert.data-api",n,i.prototype.close)}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.button"),o="object"==typeof t&&t;r||i.data("bs.button",r=new n(this,o)),"toggle"==t?r.toggle():t&&r.setState(t)})}var n=function(t,i){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.6",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",o=i.data();t+="Text",null==o.resetText&&i.data("resetText",i[r]()),setTimeout(e.proxy(function(){i[r](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))},this),0)},n.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=e.fn.button;e.fn.button=t,e.fn.button.Constructor=n,e.fn.button.noConflict=function(){return e.fn.button=i,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=e(n.target);i.hasClass("btn")||(i=i.closest(".btn")),t.call(i,"toggle"),e(n.target).is('input[type="radio"]')||e(n.target).is('input[type="checkbox"]')||n.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.carousel"),o=e.extend({},n.DEFAULTS,i.data(),"object"==typeof t&&t),a="string"==typeof t?t:o.slide;r||i.data("bs.carousel",r=new n(this,o)),"number"==typeof t?r.to(t):a?r[a]():o.interval&&r.pause().cycle()})}var n=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};n.VERSION="3.3.6",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},n.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},n.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),i="prev"==e&&0===n||"next"==e&&n==this.$items.length-1;if(i&&!this.options.wrap)return t;var r="prev"==e?-1:1,o=(n+r)%this.$items.length;return this.$items.eq(o)},n.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},n.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(t,i){var r=this.$element.find(".item.active"),o=i||this.getItemForDirection(t,r),a=this.interval,s="next"==t?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var l=o[0],c=e.Event("slide.bs.carousel",{relatedTarget:l,direction:s});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var p=e(this.$indicators.children()[this.getItemIndex(o)]);p&&p.addClass("active")}var d=e.Event("slid.bs.carousel",{relatedTarget:l,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(t),o[0].offsetWidth,r.addClass(s),o.addClass(s),r.one("bsTransitionEnd",function(){o.removeClass([t,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),u.sliding=!1,setTimeout(function(){u.$element.trigger(d)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var i=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=n,e.fn.carousel.noConflict=function(){return e.fn.carousel=i,this};var r=function(n){var i,r=e(this),o=e(r.attr("data-target")||(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var a=e.extend({},o.data(),r.data()),s=r.attr("data-slide-to");s&&(a.interval=!1),t.call(o,a),s&&o.data("bs.carousel").to(s),n.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var n=e(this);t.call(n,n.data())})})}(jQuery),+function(e){"use strict";function t(t){var n,i=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(i)}function n(t){return this.each(function(){var n=e(this),r=n.data("bs.collapse"),o=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t);!r&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),r||n.data("bs.collapse",r=new i(this,o)),"string"==typeof t&&r[t]()})}var i=function(t,n){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.6",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(t=r.data("bs.collapse"),t&&t.transitioning))){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),t||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var u=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[a](this.$element[0][u])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return e.support.transition?void this.$element[n](0).one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION):r.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(n,i){var r=e(i);this.addAriaAndCollapsedClass(t(r),r)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=i,e.fn.collapse.noConflict=function(){return e.fn.collapse=r,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var r=e(this);r.attr("data-target")||i.preventDefault();var o=t(r),a=o.data("bs.collapse"),s=a?"toggle":r.data();n.call(o,s)})}(jQuery),+function(e){"use strict";function t(t){var n=t.attr("data-target");n||(n=t.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&e(n);return i&&i.length?i:t.parent()}function n(n){n&&3===n.which||(e(r).remove(),e(o).each(function(){var i=e(this),r=t(i),o={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(r[0],n.target)||(r.trigger(n=e.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),r.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))}))}function i(t){return this.each(function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new a(this)),"string"==typeof t&&i[t].call(n)})}var r=".dropdown-backdrop",o='[data-toggle="dropdown"]',a=function(t){e(t).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.6",a.prototype.toggle=function(i){var r=e(this);if(!r.is(".disabled, :disabled")){var o=t(r),a=o.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",n);var s={relatedTarget:this};if(o.trigger(i=e.Event("show.bs.dropdown",s)),i.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},a.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=e(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var r=t(i),a=r.hasClass("open");if(!a&&27!=n.which||a&&27==n.which)return 27==n.which&&r.find(o).trigger("focus"),i.trigger("click");var s=" li:not(.disabled):visible a",u=r.find(".dropdown-menu"+s);if(u.length){var l=u.index(n.target);38==n.which&&l>0&&l--,40==n.which&&l<u.length-1&&l++,~l||(l=0),u.eq(l).trigger("focus")}}}};var s=e.fn.dropdown;e.fn.dropdown=i,e.fn.dropdown.Constructor=a,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=s,this},e(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",o,a.prototype.toggle).on("keydown.bs.dropdown.data-api",o,a.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",a.prototype.keydown)}(jQuery),+function(e){"use strict";function t(t,i){return this.each(function(){var r=e(this),o=r.data("bs.modal"),a=e.extend({},n.DEFAULTS,r.data(),"object"==typeof t&&t);o||r.data("bs.modal",o=new n(this,a)),"string"==typeof t?o[t](i):a.show&&o.show(i)})}var n=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.6",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},n.prototype.show=function(t){var i=this,r=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=e.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var o=e.Event("shown.bs.modal",{relatedTarget:t});r?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(o)}))},n.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(t){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=e.support.transition&&r;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;o?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){i.removeBackdrop(),t&&t()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):a()}else t&&t()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var i=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=n,e.fn.modal.noConflict=function(){return e.fn.modal=i,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=e(this),r=i.attr("href"),o=e(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),a=o.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},o.data(),i.data());i.is("a")&&n.preventDefault(),o.one("show.bs.modal",function(e){e.isDefaultPrevented()||o.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),t.call(o,a,this)})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.tooltip"),o="object"==typeof t&&t;!r&&/destroy|hide/.test(t)||(r||i.data("bs.tooltip",r=new n(this,o)),"string"==typeof t&&r[t]())})}var n=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};n.VERSION="3.3.6",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(t,n,i){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var a=r[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",u="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(t){return t=e.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},n.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,i){n[e]!=i&&(t[e]=i)}),t},n.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},n.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue())return clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var i=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!i)return;var r=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,u=/\s?auto?\s?/i,l=u.test(s);l&&(s=s.replace(u,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),
  this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),p=o[0].offsetWidth,d=o[0].offsetHeight;if(l){var f=s,h=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+d>h.bottom?"top":"top"==s&&c.top-d<h.top?"bottom":"right"==s&&c.right+p>h.width?"left":"left"==s&&c.left-p<h.left?"right":s,o.removeClass(f).addClass(s)}var g=this.getCalculatedOffset(s,c,p,d);this.applyPlacement(g,s);var m=function(){var e=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==e&&r.leave(r)};e.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",m).emulateTransitionEnd(n.TRANSITION_DURATION):m()}},n.prototype.applyPlacement=function(t,n){var i=this.tip(),r=i[0].offsetWidth,o=i[0].offsetHeight,a=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),t.top+=a,t.left+=s,e.offset.setOffset(i[0],e.extend({using:function(e){i.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),i.addClass("in");var u=i[0].offsetWidth,l=i[0].offsetHeight;"top"==n&&l!=o&&(t.top=t.top+o-l);var c=this.getViewportAdjustedDelta(n,t,u,l);c.left?t.left+=c.left:t.top+=c.top;var p=/top|bottom/.test(n),d=p?2*c.left-r+u:2*c.top-o+l,f=p?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(d,i[0][f],p)},n.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},n.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},n.prototype.hide=function(t){function i(){"in"!=r.hoverState&&o.detach(),r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),t&&t()}var r=this,o=e(this.$tip),a=e.Event("hide.bs."+this.type);if(this.$element.trigger(a),!a.isDefaultPrevented())return o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i(),this.hoverState=null,this},n.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},n.prototype.hasContent=function(){return this.getTitle()},n.prototype.getPosition=function(t){t=t||this.$element;var n=t[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=e.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var o=i?{top:0,left:0}:t.offset(),a={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},s=i?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},r,a,s,o)},n.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},n.prototype.getViewportAdjustedDelta=function(e,t,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-o-a.scroll,u=t.top+o-a.scroll+i;s<a.top?r.top=a.top-s:u>a.top+a.height&&(r.top=a.top+a.height-u)}else{var l=t.left-o,c=t.left+o+n;l<a.left?r.left=a.left-l:c>a.right&&(r.left=a.left+a.width-c)}return r},n.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},n.prototype.getUID=function(e){do e+=~~(1e6*Math.random());while(document.getElementById(e));return e},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(t){var n=this;t&&(n=e(t.currentTarget).data("bs."+this.type),n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null})};var i=e.fn.tooltip;e.fn.tooltip=t,e.fn.tooltip.Constructor=n,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=i,this}}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.popover"),o="object"==typeof t&&t;!r&&/destroy|hide/.test(t)||(r||i.data("bs.popover",r=new n(this,o)),"string"==typeof t&&r[t]())})}var n=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.6",n.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=e.fn.popover;e.fn.popover=t,e.fn.popover.Constructor=n,e.fn.popover.noConflict=function(){return e.fn.popover=i,this}}(jQuery),+function(e){"use strict";function t(n,i){this.$body=e(document.body),this.$scrollElement=e(e(n).is(document.body)?window:n),this.options=e.extend({},t.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=e(this),r=i.data("bs.scrollspy"),o="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new t(this,o)),"string"==typeof n&&r[n]()})}t.VERSION="3.3.6",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),r=t.data("target")||t.attr("href"),o=/^#./.test(r)&&e(r);return o&&o.length&&o.is(":visible")&&[[o[n]().top+i,r]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),t>=i)return a!=(e=o[o.length-1])&&this.activate(e);if(a&&t<r[0])return this.activeTarget=null,this.clear();for(e=r.length;e--;)a!=o[e]&&t>=r[e]&&(void 0===r[e+1]||t<r[e+1])&&this.activate(o[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=e(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=e.fn.scrollspy;e.fn.scrollspy=n,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=i,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new n(this)),"string"==typeof t&&r[t]()})}var n=function(t){this.element=e(t)};n.VERSION="3.3.6",n.TRANSITION_DURATION=150,n.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=n.find(".active:last a"),o=e.Event("hide.bs.tab",{relatedTarget:t[0]}),a=e.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(o),t.trigger(a),!a.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=e(i);this.activate(t.closest("li"),n),this.activate(s,s.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},n.prototype.activate=function(t,i,r){function o(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var a=i.find("> .active"),s=r&&e.support.transition&&(a.length&&a.hasClass("fade")||!!i.find("> .fade").length);a.length&&s?a.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),a.removeClass("in")};var i=e.fn.tab;e.fn.tab=t,e.fn.tab.Constructor=n,e.fn.tab.noConflict=function(){return e.fn.tab=i,this};var r=function(n){n.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.affix"),o="object"==typeof t&&t;r||i.data("bs.affix",r=new n(this,o)),"string"==typeof t&&r[t]()})}var n=function(t,i){this.options=e.extend({},n.DEFAULTS,i),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.6",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(e,t,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=o.top)&&"bottom":!(r+a<=e-i)&&"bottom";var s=null==this.affixed,u=s?r:o.top,l=s?a:t;return null!=n&&r<=n?"top":null!=i&&u+l>=e-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},n.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),i=this.options.offset,r=i.top,o=i.bottom,a=Math.max(e(document).height(),e(document.body).height());"object"!=typeof i&&(o=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof o&&(o=i.bottom(this.$element));var s=this.getState(a,t,r,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var u="affix"+(s?"-"+s:""),l=e.Event(u+".bs.affix");if(this.$element.trigger(l),l.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-t-o})}};var i=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=n,e.fn.affix.noConflict=function(){return e.fn.affix=i,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var n=e(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),t.call(n,i)})})}(jQuery),function(e,t,n){"use strict";function i(e){var t;if(t=e.match(l)){var n=new Date(0),i=0,o=0;return t[9]&&(i=r(t[9]+t[10]),o=r(t[9]+t[11])),n.setUTCFullYear(r(t[1]),r(t[2])-1,r(t[3])),n.setUTCHours(r(t[4]||0)-i,r(t[5]||0)-o,r(t[6]||0),r(t[7]||0)),n}return e}function r(e){return parseInt(e,10)}function o(e,t,n){var i="";for(e<0&&(i="-",e=-e),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),i+e}function a(e,i,r,o){function a(e,n,i,r){return t.isFunction(e)?e:function(){return t.isNumber(e)?[e,n,i,r]:[200,e,n,i]}}function l(e,a,s,l,c,m,v){function y(e){return t.isString(e)||t.isFunction(e)||e instanceof RegExp?e:t.toJson(e)}function b(t){function r(){var n=t.response(e,a,s,c);$.$$respHeaders=n[2],l(g(n[0]),g(n[1]),$.getAllResponseHeaders(),g(n[3]||""))}function u(){for(var e=0,t=f.length;e<t;e++)if(f[e]===r){f.splice(e,1),l(-1,n,"");break}}return!o&&m&&(m.then?m.then(u):i(u,m)),r}var $=new u,w=d[0],_=!1;if(w&&w.match(e,a)){if(!w.matchData(s))throw new Error("Expected "+w+" with different data\nEXPECTED: "+y(w.data)+"\nGOT:      "+s);if(!w.matchHeaders(c))throw new Error("Expected "+w+" with different headers\nEXPECTED: "+y(w.headers)+"\nGOT:      "+y(c));if(d.shift(),w.response)return void f.push(b(w));_=!0}for(var k,x=-1;k=p[++x];)if(k.match(e,a,s,c||{})){if(k.response)(o?o.defer:h)(b(k));else{if(!k.passThrough)throw new Error("No response defined !");r(e,a,s,l,c,m,v)}return}throw _?new Error("No response defined !"):new Error("Unexpected request: "+e+" "+a+"\n"+(w?"Expected "+w:"No more request expected"))}function c(e){t.forEach(["GET","DELETE","JSONP","HEAD"],function(t){l[e+t]=function(i,r){return l[e](t,i,n,r)}}),t.forEach(["PUT","POST","PATCH"],function(t){l[e+t]=function(n,i,r){return l[e](t,n,i,r)}})}var p=[],d=[],f=[],h=t.bind(f,f.push),g=t.copy;return l.when=function(e,t,i,r){var u=new s(e,t,i,r),l={respond:function(e,t,i,r){return u.passThrough=n,u.response=a(e,t,i,r),l}};return o&&(l.passThrough=function(){return u.response=n,u.passThrough=!0,l}),p.push(u),l},c("when"),l.expect=function(e,t,n,i){var r=new s(e,t,n,i),o={respond:function(e,t,n,i){return r.response=a(e,t,n,i),o}};return d.push(r),o},c("expect"),l.flush=function(n,i){if(i!==!1&&e.$digest(),!f.length)throw new Error("No pending request to flush !");if(t.isDefined(n)&&null!==n)for(;n--;){if(!f.length)throw new Error("No more pending request to flush !");f.shift()()}else for(;f.length;)f.shift()();l.verifyNoOutstandingExpectation(i)},l.verifyNoOutstandingExpectation=function(t){if(t!==!1&&e.$digest(),d.length)throw new Error("Unsatisfied requests: "+d.join(", "))},l.verifyNoOutstandingRequest=function(){if(f.length)throw new Error("Unflushed requests: "+f.length)},l.resetExpectations=function(){d.length=0,f.length=0},l}function s(e,n,i,r){this.data=i,this.headers=r,this.match=function(n,i,r,o){return e==n&&(!!this.matchUrl(i)&&(!(t.isDefined(r)&&!this.matchData(r))&&!(t.isDefined(o)&&!this.matchHeaders(o))))},this.matchUrl=function(e){return!n||(t.isFunction(n.test)?n.test(e):t.isFunction(n)?n(e):n==e)},this.matchHeaders=function(e){return!!t.isUndefined(r)||(t.isFunction(r)?r(e):t.equals(r,e))},this.matchData=function(e){return!!t.isUndefined(i)||(i&&t.isFunction(i.test)?i.test(e):i&&t.isFunction(i)?i(e):i&&!t.isString(i)?t.equals(t.fromJson(t.toJson(i)),t.fromJson(e)):i==e)},this.toString=function(){return e+" "+n}}function u(){u.$$lastInstance=this,this.open=function(e,t,n){this.$$method=e,this.$$url=t,this.$$async=n,this.$$reqHeaders={},this.$$respHeaders={}},this.send=function(e){this.$$data=e},this.setRequestHeader=function(e,t){this.$$reqHeaders[e]=t},this.getResponseHeader=function(e){var i=this.$$respHeaders[e];return i?i:(e=t.lowercase(e),(i=this.$$respHeaders[e])?i:(i=n,t.forEach(this.$$respHeaders,function(n,r){i||t.lowercase(r)!=e||(i=n)}),i))},this.getAllResponseHeaders=function(){var e=[];return t.forEach(this.$$respHeaders,function(t,n){e.push(n+": "+t)}),e.join("\n")},this.abort=t.noop}t.mock={},t.mock.$BrowserProvider=function(){this.$get=function(){return new t.mock.$Browser}},t.mock.$Browser=function(){var e=this;this.isMock=!0,e.$$url="http://server/",e.$$lastUrl=e.$$url,e.pollFns=[],e.$$completeOutstandingRequest=t.noop,e.$$incOutstandingRequestCount=t.noop,e.onUrlChange=function(t){return e.pollFns.push(function(){e.$$lastUrl===e.$$url&&e.$$state===e.$$lastState||(e.$$lastUrl=e.$$url,e.$$lastState=e.$$state,t(e.$$url,e.$$state))}),t},e.$$checkUrlChange=t.noop,e.cookieHash={},e.lastCookieHash={},e.deferredFns=[],e.deferredNextId=0,e.defer=function(t,n){return n=n||0,e.deferredFns.push({time:e.defer.now+n,fn:t,id:e.deferredNextId}),e.deferredFns.sort(function(e,t){return e.time-t.time}),e.deferredNextId++},e.defer.now=0,e.defer.cancel=function(i){var r;return t.forEach(e.deferredFns,function(e,t){e.id===i&&(r=t)}),r!==n&&(e.deferredFns.splice(r,1),!0)},e.defer.flush=function(n){if(t.isDefined(n))e.defer.now+=n;else{if(!e.deferredFns.length)throw new Error("No deferred tasks to be flushed");e.defer.now=e.deferredFns[e.deferredFns.length-1].time}for(;e.deferredFns.length&&e.deferredFns[0].time<=e.defer.now;)e.deferredFns.shift().fn()},e.$$baseHref="/",e.baseHref=function(){return this.$$baseHref}},t.mock.$Browser.prototype={poll:function(){t.forEach(this.pollFns,function(e){e()})},addPollFn:function(e){return this.pollFns.push(e),e},url:function(e,n,i){return t.isUndefined(i)&&(i=null),e?(this.$$url=e,this.$$state=t.copy(i),this):this.$$url},state:function(){return this.$$state},cookies:function(e,n){return e?void(t.isUndefined(n)?delete this.cookieHash[e]:t.isString(n)&&n.length<=4096&&(this.cookieHash[e]=n)):(t.equals(this.cookieHash,this.lastCookieHash)||(this.lastCookieHash=t.copy(this.cookieHash),this.cookieHash=t.copy(this.cookieHash)),this.cookieHash)},notifyWhenNoOutstandingRequests:function(e){e()}},t.mock.$ExceptionHandlerProvider=function(){var e;this.mode=function(t){switch(t){case"log":case"rethrow":var n=[];e=function(e){if(1==arguments.length?n.push(e):n.push([].slice.call(arguments,0)),"rethrow"===t)throw e},e.errors=n;break;default:throw new Error("Unknown mode '"+t+"', only 'log'/'rethrow' modes are allowed!")}},this.$get=function(){return e},this.mode("rethrow")},t.mock.$LogProvider=function(){function e(e,t,n){return e.concat(Array.prototype.slice.call(t,n))}var n=!0;this.debugEnabled=function(e){return t.isDefined(e)?(n=e,this):n},this.$get=function(){var i={log:function(){i.log.logs.push(e([],arguments,0))},warn:function(){i.warn.logs.push(e([],arguments,0))},info:function(){i.info.logs.push(e([],arguments,0))},error:function(){i.error.logs.push(e([],arguments,0))},debug:function(){n&&i.debug.logs.push(e([],arguments,0))}};return i.reset=function(){i.log.logs=[],i.info.logs=[],i.warn.logs=[],i.error.logs=[],i.debug.logs=[]},i.assertEmpty=function(){var e=[];if(t.forEach(["error","warn","info","log","debug"],function(n){t.forEach(i[n].logs,function(i){t.forEach(i,function(t){e.push("MOCK $log ("+n+"): "+String(t)+"\n"+(t.stack||""))})})}),e.length)throw e.unshift("Expected $log to be empty! Either a message was logged unexpectedly, or an expected log message was not checked and removed:"),e.push(""),new Error(e.join("\n---------\n"))},i.reset(),i}},t.mock.$IntervalProvider=function(){this.$get=["$browser","$rootScope","$q","$$q",function(e,i,r,o){var a=[],s=0,u=0,l=function(l,c,p,d){function f(){if(m.notify(h++),p>0&&h>=p){var r;m.resolve(h),t.forEach(a,function(e,t){e.id===v.$$intervalId&&(r=t)}),r!==n&&a.splice(r,1)}g?e.defer.flush():i.$apply()}var h=0,g=t.isDefined(d)&&!d,m=(g?o:r).defer(),v=m.promise;return p=t.isDefined(p)?p:0,v.then(null,null,l),v.$$intervalId=s,a.push({nextTime:u+c,delay:c,fn:f,id:s,deferred:m}),a.sort(function(e,t){return e.nextTime-t.nextTime}),s++,v};return l.cancel=function(e){if(!e)return!1;var i;return t.forEach(a,function(t,n){t.id===e.$$intervalId&&(i=n)}),i!==n&&(a[i].deferred.reject("canceled"),a.splice(i,1),!0)},l.flush=function(e){for(u+=e;a.length&&a[0].nextTime<=u;){var t=a[0];t.fn(),t.nextTime+=t.delay,a.sort(function(e,t){return e.nextTime-t.nextTime})}return e},l}]};var l=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?:\:?(\d\d)(?:\:?(\d\d)(?:\.(\d{3}))?)?)?(Z|([+-])(\d\d):?(\d\d)))?$/;if(t.mock.TzDate=function(e,n){var r=new Date(0);if(t.isString(n)){var a=n;if(r.origDate=i(n),n=r.origDate.getTime(),isNaN(n))throw{name:"Illegal Argument",message:"Arg '"+a+"' passed into TzDate constructor is not a valid date string"}}else r.origDate=new Date(n);var s=new Date(n).getTimezoneOffset();r.offsetDiff=60*s*1e3-1e3*e*60*60,r.date=new Date(n+r.offsetDiff),r.getTime=function(){return r.date.getTime()-r.offsetDiff},r.toLocaleDateString=function(){return r.date.toLocaleDateString()},r.getFullYear=function(){return r.date.getFullYear()},r.getMonth=function(){return r.date.getMonth()},r.getDate=function(){return r.date.getDate()},r.getHours=function(){return r.date.getHours()},r.getMinutes=function(){return r.date.getMinutes()},r.getSeconds=function(){return r.date.getSeconds()},r.getMilliseconds=function(){return r.date.getMilliseconds()},r.getTimezoneOffset=function(){return 60*e},r.getUTCFullYear=function(){return r.origDate.getUTCFullYear()},r.getUTCMonth=function(){return r.origDate.getUTCMonth()},r.getUTCDate=function(){return r.origDate.getUTCDate()},r.getUTCHours=function(){return r.origDate.getUTCHours()},r.getUTCMinutes=function(){return r.origDate.getUTCMinutes()},r.getUTCSeconds=function(){return r.origDate.getUTCSeconds()},r.getUTCMilliseconds=function(){return r.origDate.getUTCMilliseconds()},r.getDay=function(){return r.date.getDay()},r.toISOString&&(r.toISOString=function(){return o(r.origDate.getUTCFullYear(),4)+"-"+o(r.origDate.getUTCMonth()+1,2)+"-"+o(r.origDate.getUTCDate(),2)+"T"+o(r.origDate.getUTCHours(),2)+":"+o(r.origDate.getUTCMinutes(),2)+":"+o(r.origDate.getUTCSeconds(),2)+"."+o(r.origDate.getUTCMilliseconds(),3)+"Z"});var u=["getUTCDay","getYear","setDate","setFullYear","setHours","setMilliseconds","setMinutes","setMonth","setSeconds","setTime","setUTCDate","setUTCFullYear","setUTCHours","setUTCMilliseconds","setUTCMinutes","setUTCMonth","setUTCSeconds","setYear","toDateString","toGMTString","toJSON","toLocaleFormat","toLocaleString","toLocaleTimeString","toSource","toString","toTimeString","toUTCString","valueOf"];return t.forEach(u,function(e){r[e]=function(){throw new Error("Method '"+e+"' is not implemented in the TzDate mock")}}),r},t.mock.TzDate.prototype=Date.prototype,t.mock.animate=t.module("ngAnimateMock",["ng"]).config(["$provide",function(e){var n=[];e.value("$$animateReflow",function(e){var t=n.length;return n.push(e),function(){n.splice(t,1)}}),e.decorator("$animate",["$delegate","$$asyncCallback","$timeout","$browser","$rootScope","$$rAF",function(e,i,r,o,a,s){var u={queue:[],cancel:e.cancel,enabled:e.enabled,triggerCallbackEvents:function(){i.flush()},triggerCallbackPromise:function(){r.flush(0)},triggerCallbacks:function(){this.triggerCallbackEvents(),this.triggerCallbackPromise()},triggerReflow:function(){t.forEach(n,function(e){e()}),n=[]},flush:function(){function e(){return o.deferredFns.length}a.$digest();var t,r=!1;do if(t=!1,n.length&&(t=r=!0,this.triggerReflow()),s.queue.length&&(t=r=!0,s.flush()),i.queue.length&&(t=r=!0,this.triggerCallbackEvents()),e()){var u=e();this.triggerCallbackPromise();var l=e();l<u&&(t=r=!0)}while(t);if(!r)throw new Error("No pending animations ready to be closed or flushed");a.$digest()}};return t.forEach(["animate","enter","leave","move","addClass","removeClass","setClass"],function(t){u[t]=function(){return u.queue.push({event:t,element:arguments[0],options:arguments[arguments.length-1],args:arguments}),e[t].apply(e,arguments)}}),u}])}]),t.mock.dump=function(e){function n(e){var r;return t.isElement(e)?(e=t.element(e),r=t.element("<div></div>"),t.forEach(e,function(e){r.append(t.element(e).clone())}),r=r.html()):t.isArray(e)?(r=[],t.forEach(e,function(e){r.push(n(e))}),r="[ "+r.join(", ")+" ]"):r=t.isObject(e)?t.isFunction(e.$eval)&&t.isFunction(e.$apply)?i(e):e instanceof Error?e.stack||""+e.name+": "+e.message:t.toJson(e,!0):String(e),r}function i(e,n){n=n||"  ";var r=[n+"Scope("+e.$id+"): {"];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&!o.match(/^(\$|this)/)&&r.push("  "+o+": "+t.toJson(e[o]));for(var a=e.$$childHead;a;)r.push(i(a,n+"  ")),a=a.$$nextSibling;return r.push("}"),r.join("\n"+n)}return n(e)},t.mock.$HttpBackendProvider=function(){this.$get=["$rootScope","$timeout",a]},t.mock.$TimeoutDecorator=["$delegate","$browser",function(e,n){function i(e){var n=[];return t.forEach(e,function(e){n.push("{id: "+e.id+", time: "+e.time+"}")}),n.join(", ")}return e.flush=function(e){n.defer.flush(e)},e.verifyNoPendingTasks=function(){if(n.deferredFns.length)throw new Error("Deferred tasks to flush ("+n.deferredFns.length+"): "+i(n.deferredFns))},e}],t.mock.$RAFDecorator=["$delegate",function(e){var t,n=function(e){var n=t.length;return t.push(e),function(){t.splice(n,1)}};return t=n.queue=[],n.supported=e.supported,n.flush=function(){if(0===t.length)throw new Error("No rAF callbacks present");for(var e=t.length,n=0;n<e;n++)t[n]();t.length=0},n}],t.mock.$AsyncCallbackDecorator=["$delegate",function(e){var n,i=function(e){n.push(e)};return n=i.queue=[],i.flush=function(){t.forEach(n,function(e){e()}),n.length=0},i}],t.mock.$RootElementProvider=function(){this.$get=function(){return t.element("<div ng-app></div>")}},t.mock.$ControllerDecorator=["$delegate",function(e){return function(n,i,r,o){if(r&&"object"==typeof r){var a=e(n,i,!0,o);return t.extend(a.instance,r),a()}return e(n,i,r,o)}}],t.module("ngMock",["ng"]).provider({$browser:t.mock.$BrowserProvider,$exceptionHandler:t.mock.$ExceptionHandlerProvider,$log:t.mock.$LogProvider,$interval:t.mock.$IntervalProvider,$httpBackend:t.mock.$HttpBackendProvider,$rootElement:t.mock.$RootElementProvider}).config(["$provide",function(e){e.decorator("$timeout",t.mock.$TimeoutDecorator),e.decorator("$$rAF",t.mock.$RAFDecorator),e.decorator("$$asyncCallback",t.mock.$AsyncCallbackDecorator),e.decorator("$rootScope",t.mock.$RootScopeDecorator),e.decorator("$controller",t.mock.$ControllerDecorator)}]),t.module("ngMockE2E",["ng"]).config(["$provide",function(e){e.decorator("$httpBackend",t.mock.e2e.$httpBackendDecorator)}]),t.mock.e2e={},t.mock.e2e.$httpBackendDecorator=["$rootScope","$timeout","$delegate","$browser",a],t.mock.$RootScopeDecorator=["$delegate",function(e){function t(){for(var e,t=0,n=[this.$$childHead];n.length;)for(e=n.shift();e;)t+=1,n.push(e.$$childHead),e=e.$$nextSibling;return t}function n(){for(var e,t=this.$$watchers?this.$$watchers.length:0,n=[this.$$childHead];n.length;)for(e=n.shift();e;)t+=e.$$watchers?e.$$watchers.length:0,n.push(e.$$childHead),e=e.$$nextSibling;return t}var i=Object.getPrototypeOf(e);return i.$countChildScopes=t,i.$countWatchers=n,e}],e.jasmine||e.mocha){var c=null,p=[],d=function(){return!!c};t.mock.$$annotate=t.injector.$$annotate,t.injector.$$annotate=function(e){return"function"!=typeof e||e.$inject||p.push(e),t.mock.$$annotate.apply(this,arguments)},(e.beforeEach||e.setup)(function(){p=[],c=this}),(e.afterEach||e.teardown)(function(){var e=c.$injector;if(p.forEach(function(e){delete e.$inject}),t.forEach(c.$modules,function(e){e&&e.$$hashKey&&(e.$$hashKey=n)}),c.$injector=null,c.$modules=null,c=null,e){e.get("$rootElement").off();var i=e.get("$browser");i.pollFns&&(i.pollFns.length=0)}t.forEach(t.element.fragments,function(e,n){delete t.element.fragments[n]}),u.$$lastInstance=null,t.forEach(t.callbacks,function(e,n){delete t.callbacks[n]}),t.callbacks.counter=0}),e.module=t.mock.module=function(){function e(){if(c.$injector)throw new Error("Injector already created, can not register a module!");var e=c.$modules||(c.$modules=[]);t.forEach(n,function(n){t.isObject(n)&&!t.isArray(n)?e.push(function(e){t.forEach(n,function(t,n){e.value(n,t)})}):e.push(n)})}var n=Array.prototype.slice.call(arguments,0);return d()?e():e};var f=function(e,t){this.message=e.message,this.name=e.name,e.line&&(this.line=e.line),e.sourceId&&(this.sourceId=e.sourceId),e.stack&&t&&(this.stack=e.stack+"\n"+t.stack),e.stackArray&&(this.stackArray=e.stackArray)};f.prototype.toString=Error.prototype.toString,e.inject=t.mock.inject=function(){function e(){var e=c.$modules||[],r=!!c.$injectorStrict;e.unshift("ngMock"),e.unshift("ng");var o=c.$injector;o||(r&&t.forEach(e,function(e){"function"==typeof e&&t.injector.$$annotate(e)}),o=c.$injector=t.injector(e,r),c.$injectorStrict=r);for(var a=0,s=n.length;a<s;a++){c.$injectorStrict&&o.annotate(n[a]);try{o.invoke(n[a]||t.noop,this)}catch(u){if(u.stack&&i)throw new f(u,i);throw u}finally{i=null}}}var n=Array.prototype.slice.call(arguments,0),i=new Error("Declaration Location");return d()?e.call(c):e},t.mock.inject.strictDi=function(e){function t(){if(e!==c.$injectorStrict){if(c.$injector)throw new Error("Injector already created, can not modify strict annotations");c.$injectorStrict=e}}return e=!arguments.length||!!e,d()?t():t}}}(window,window.angular),"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(e,t,n){"use strict";function i(e,t){return U(new(U(function(){},{prototype:e})),t)}function r(e){return B(arguments,function(t){t!==e&&B(t,function(t,n){e.hasOwnProperty(n)||(e[n]=t)})}),e}function o(e,t){var n=[];for(var i in e.path){if(e.path[i]!==t.path[i])break;n.push(e.path[i])}return n}function a(e){if(Object.keys)return Object.keys(e);var t=[];return B(e,function(e,n){t.push(n)}),t}function s(e,t){if(Array.prototype.indexOf)return e.indexOf(t,Number(arguments[2])||0);var n=e.length>>>0,i=Number(arguments[2])||0;for(i=i<0?Math.ceil(i):Math.floor(i),i<0&&(i+=n);i<n;i++)if(i in e&&e[i]===t)return i;return-1}function u(e,t,n,i){var r,u=o(n,i),l={},c=[];for(var p in u)if(u[p]&&u[p].params&&(r=a(u[p].params),r.length))for(var d in r)s(c,r[d])>=0||(c.push(r[d]),l[r[d]]=e[r[d]]);return U({},l,t)}function l(e,t,n){if(!n){n=[];for(var i in e)n.push(i)}for(var r=0;r<n.length;r++){var o=n[r];if(e[o]!=t[o])return!1}return!0}function c(e,t){var n={};return B(e,function(e){n[e]=t[e]}),n}function p(e){var t={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return B(n,function(n){n in e&&(t[n]=e[n])}),t}function d(e){var t={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var i in e)s(n,i)==-1&&(t[i]=e[i]);return t}function f(e,t){var n=R(e),i=n?[]:{};return B(e,function(e,r){t(e,r)&&(i[n?i.length:r]=e)}),i}function h(e,t){var n=R(e)?[]:{};return B(e,function(e,i){n[i]=t(e,i)}),n}function g(e,t){var i=1,o=2,u={},l=[],c=u,p=U(e.when(u),{$$promises:u,$$values:u});this.study=function(u){function f(e,n){if(y[n]!==o){if(v.push(n),y[n]===i)throw v.splice(0,s(v,n)),new Error("Cyclic dependency: "+v.join(" -> "));if(y[n]=i,z(e))m.push(n,[function(){return t.get(e)}],l);else{var r=t.annotate(e);B(r,function(e){e!==n&&u.hasOwnProperty(e)&&f(u[e],e)}),m.push(n,e,r)}v.pop(),y[n]=o;
  }}function h(e){return F(e)&&e.then&&e.$$promises}if(!F(u))throw new Error("'invocables' must be an object");var g=a(u||{}),m=[],v=[],y={};return B(u,f),u=v=y=null,function(i,o,a){function s(){--$||(w||r(b,o.$$values),v.$$values=b,v.$$promises=v.$$promises||!0,delete v.$$inheritedValues,f.resolve(b))}function u(e){v.$$failure=e,f.reject(e)}function l(n,r,o){function l(e){p.reject(e),u(e)}function c(){if(!N(v.$$failure))try{p.resolve(t.invoke(r,a,b)),p.promise.then(function(e){b[n]=e,s()},l)}catch(e){l(e)}}var p=e.defer(),d=0;B(o,function(e){y.hasOwnProperty(e)&&!i.hasOwnProperty(e)&&(d++,y[e].then(function(t){b[e]=t,--d||c()},l))}),d||c(),y[n]=p.promise}if(h(i)&&a===n&&(a=o,o=i,i=null),i){if(!F(i))throw new Error("'locals' must be an object")}else i=c;if(o){if(!h(o))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else o=p;var f=e.defer(),v=f.promise,y=v.$$promises={},b=U({},i),$=1+m.length/3,w=!1;if(N(o.$$failure))return u(o.$$failure),v;o.$$inheritedValues&&r(b,d(o.$$inheritedValues,g)),U(y,o.$$promises),o.$$values?(w=r(b,d(o.$$values,g)),v.$$inheritedValues=d(o.$$values,g),s()):(o.$$inheritedValues&&(v.$$inheritedValues=d(o.$$inheritedValues,g)),o.then(s,u));for(var _=0,k=m.length;_<k;_+=3)i.hasOwnProperty(m[_])?s():l(m[_],m[_+1],m[_+2]);return v}},this.resolve=function(e,t,n,i){return this.study(e)(t,n,i)}}function m(e,t,n){this.fromConfig=function(e,t,n){return N(e.template)?this.fromString(e.template,t):N(e.templateUrl)?this.fromUrl(e.templateUrl,t):N(e.templateProvider)?this.fromProvider(e.templateProvider,t,n):null},this.fromString=function(e,t){return G(e)?e(t):e},this.fromUrl=function(n,i){return G(n)&&(n=n(i)),null==n?null:e.get(n,{cache:t,headers:{Accept:"text/html"}}).then(function(e){return e.data})},this.fromProvider=function(e,t,i){return n.invoke(e,null,i||{params:t})}}function v(e,t,r){function o(t,n,i,r){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 V.Param(t,n,i,r),g[t]}function a(e,t,n,i){var r=["",""],o=e.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!t)return o;switch(n){case!1:r=["(",")"+(i?"?":"")];break;case!0:o=o.replace(/\/$/,""),r=["(?:/(",")|/)?"];break;default:r=["("+n+"|",")?"]}return o+r[0]+t+r[1]}function s(r,o){var a,s,u,l,c;return a=r[2]||r[3],c=t.params[a],u=e.substring(d,r.index),s=o?r[4]:r[4]||("*"==r[1]?".*":null),s&&(l=V.type(s)||i(V.type("string"),{pattern:new RegExp(s,t.caseInsensitive?"i":n)})),{id:a,regexp:s,segment:u,type:l,cfg:c}}t=U({params:{}},F(t)?t:{});var u,l=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,c=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,p="^",d=0,f=this.segments=[],h=r?r.params:{},g=this.params=r?r.params.$$new():new V.ParamSet,m=[];this.source=e;for(var v,y,b;(u=l.exec(e))&&(v=s(u,!1),!(v.segment.indexOf("?")>=0));)y=o(v.id,v.type,v.cfg,"path"),p+=a(v.segment,y.type.pattern.source,y.squash,y.isOptional),f.push(v.segment),d=l.lastIndex;b=e.substring(d);var $=b.indexOf("?");if($>=0){var w=this.sourceSearch=b.substring($);if(b=b.substring(0,$),this.sourcePath=e.substring(0,d+$),w.length>0)for(d=0;u=c.exec(w);)v=s(u,!0),y=o(v.id,v.type,v.cfg,"search"),d=l.lastIndex}else this.sourcePath=e,this.sourceSearch="";p+=a(b)+(t.strict===!1?"/?":"")+"$",f.push(b),this.regexp=new RegExp(p,t.caseInsensitive?"i":n),this.prefix=f[0],this.$$paramNames=m}function y(e){U(this,e)}function b(){function e(e){return null!=e?e.toString().replace(/~/g,"~~").replace(/\//g,"~2F"):e}function r(e){return null!=e?e.toString().replace(/~2F/g,"/").replace(/~~/g,"~"):e}function o(){return{strict:g,caseInsensitive:d}}function u(e){return G(e)||R(e)&&G(e[e.length-1])}function l(){for(;_.length;){var e=_.shift();if(e.pattern)throw new Error("You cannot override a type's .pattern at runtime.");t.extend($[e.name],p.invoke(e.def))}}function c(e){U(this,e||{})}V=this;var p,d=!1,g=!0,m=!1,$={},w=!0,_=[],k={string:{encode:e,decode:r,is:function(e){return null==e||!N(e)||"string"==typeof e},pattern:/[^\/]*/},"int":{encode:e,decode:function(e){return parseInt(e,10)},is:function(e){return N(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:/.*/}};b.$$getDefaultValue=function(e){if(!u(e.value))return e.value;if(!p)throw new Error("Injectable functions cannot be called at configuration time");return p.invoke(e.value)},this.caseInsensitive=function(e){return N(e)&&(d=e),d},this.strictMode=function(e){return N(e)&&(g=e),g},this.defaultSquashPolicy=function(e){if(!N(e))return m;if(e!==!0&&e!==!1&&!z(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,U(o(),t))},this.isMatcher=function(e){if(!F(e))return!1;var t=!0;return B(v.prototype,function(n,i){G(n)&&(t=t&&N(e[i])&&G(e[i]))}),t},this.type=function(e,t,n){if(!N(t))return $[e];if($.hasOwnProperty(e))throw new Error("A type named '"+e+"' has already been defined.");return $[e]=new y(U({name:e},t)),n&&(_.push({name:e,def:n}),w||l()),this},B(k,function(e,t){$[t]=new y(U({name:t},e))}),$=i($,{}),this.$get=["$injector",function(e){return p=e,w=!1,l(),B(k,function(e,t){$[t]||($[t]=new y(e))}),this}],this.Param=function(e,i,r,o){function l(e){var t=F(e)?a(e):[],n=s(t,"value")===-1&&s(t,"type")===-1&&s(t,"squash")===-1&&s(t,"array")===-1;return n&&(e={value:e}),e.$$fn=u(e.value)?e.value:function(){return e.value},e}function c(n,i,r){if(n.type&&i)throw new Error("Param '"+e+"' has two type configurations.");return i?i:n.type?t.isString(n.type)?$[n.type]:n.type instanceof y?n.type:new y(n.type):"config"===r?$.any:$.string}function d(){var t={array:"search"===o&&"auto"},n=e.match(/\[\]$/)?{array:!0}:{};return U(t,n,r).array}function g(e,t){var n=e.squash;if(!t||n===!1)return!1;if(!N(n)||null==n)return m;if(n===!0||z(n))return n;throw new Error("Invalid squash policy: '"+n+"'. Valid policies: false, true, or arbitrary string")}function v(e,t,i,r){var o,a,u=[{from:"",to:i||t?n:""},{from:null,to:i||t?n:""}];return o=R(e.replace)?e.replace:[],z(r)&&o.push({from:r,to:n}),a=h(o,function(e){return e.from}),f(u,function(e){return s(a,e.from)===-1}).concat(o)}function b(){if(!p)throw new Error("Injectable functions cannot be called at configuration time");var e=p.invoke(r.$$fn);if(null!==e&&e!==n&&!k.type.is(e))throw new Error("Default value ("+e+") for parameter '"+k.id+"' is not an instance of Type ("+k.type.name+")");return e}function w(e){function t(e){return function(t){return t.from===e}}function n(e){var n=h(f(k.replace,t(e)),function(e){return e.to});return n.length?n[0]:e}return e=n(e),N(e)?k.type.$normalize(e):b()}function _(){return"{Param:"+e+" "+i+" squash: '"+A+"' optional: "+C+"}"}var k=this;r=l(r),i=c(r,i,o);var x=d();i=x?i.$asArray(x,"search"===o):i,"string"!==i.name||x||"path"!==o||r.value!==n||(r.value="");var C=r.value!==n,A=g(r,C),M=v(r,x,C,A);U(this,{id:e,type:i,location:o,array:x,squash:A,replace:M,isOptional:C,value:w,dynamic:n,config:r,toString:_})},c.prototype={$$new:function(){return i(this,U(new c,{$$parent:this}))},$$keys:function(){for(var e=[],t=[],n=this,i=a(c.prototype);n;)t.push(n),n=n.$$parent;return t.reverse(),B(t,function(t){B(a(t),function(t){s(e,t)===-1&&s(i,t)===-1&&e.push(t)})}),e},$$values:function(e){var t={},n=this;return B(n.$$keys(),function(i){t[i]=n[i].value(e&&e[i])}),t},$$equals:function(e,t){var n=!0,i=this;return B(i.$$keys(),function(r){var o=e&&e[r],a=t&&t[r];i[r].type.equals(o,a)||(n=!1)}),n},$$validates:function(e){var i,r,o,a,s,u=this.$$keys();for(i=0;i<u.length&&(r=this[u[i]],o=e[u[i]],o!==n&&null!==o||!r.isOptional);i++){if(a=r.type.$normalize(o),!r.type.is(a))return!1;if(s=r.type.encode(a),t.isString(s)&&!r.type.pattern.exec(s))return!1}return!0},$$parent:n},this.ParamSet=c}function $(e,i){function r(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 i=e.invoke(t,t,{$match:n});return!N(i)||i}function s(i,r,o,a,s){function d(e,t,n){return"/"===m?e:t?m.slice(0,-1)+e:n?m.slice(1)+e:e}function f(e){function t(e){var t=e(o,i);return!!t&&(z(t)&&i.replace().url(t),!0)}if(!e||!e.defaultPrevented){g&&i.url()===g;g=n;var r,a=l.length;for(r=0;r<a;r++)if(t(l[r]))return;c&&t(c)}}function h(){return u=u||r.$on("$locationChangeSuccess",f)}var g,m=a.baseHref(),v=i.url();return p||h(),{sync:function(){f()},listen:function(){return h()},update:function(e){return e?void(v=i.url()):void(i.url()!==v&&(i.url(v),i.replace()))},push:function(e,t,r){var o=e.format(t||{});null!==o&&t&&t["#"]&&(o+="#"+t["#"]),i.url(o),g=r&&r.$$avoidResync?i.url():n,r&&r.replace&&i.replace()},href:function(n,r,o){if(!n.validates(r))return null;var a=e.html5Mode();t.isObject(a)&&(a=a.enabled),a=a&&s.history;var u=n.format(r);if(o=o||{},a||null===u||(u="#"+e.hashPrefix()+u),null!==u&&r&&r["#"]&&(u+="#"+r["#"]),u=d(u,a,o.absolute),!o.absolute||!u)return u;var l=!a&&u?"/":"",c=i.port();return c=80===c||443===c?"":":"+c,[i.protocol(),"://",i.host(),c,l,u].join("")}}}var u,l=[],c=null,p=!1;this.rule=function(e){if(!G(e))throw new Error("'rule' must be a function");return l.push(e),this},this.otherwise=function(e){if(z(e)){var t=e;e=function(){return t}}else if(!G(e))throw new Error("'rule' must be a function");return c=e,this},this.when=function(e,t){var n,s=z(t);if(z(e)&&(e=i.compile(e)),!s&&!G(t)&&!R(t))throw new Error("invalid 'handler' in when()");var u={matcher:function(e,t){return s&&(n=i.compile(t),t=["$match",function(e){return n.format(e)}]),U(function(n,i){return a(n,t,e.exec(i.path(),i.search()))},{prefix:z(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 s&&(n=t,t=["$match",function(e){return o(n,e)}]),U(function(n,i){return a(n,t,e.exec(i.path()))},{prefix:r(e)})}},l={matcher:i.isMatcher(e),regex:e instanceof RegExp};for(var c in l)if(l[c])return this.rule(u[c](e,t));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(e){e===n&&(e=!0),p=e},this.$get=s,s.$inject=["$location","$rootScope","$injector","$browser","$sniffer"]}function w(e,r){function o(e){return 0===e.indexOf(".")||0===e.indexOf("^")}function d(e,t){if(!e)return n;var i=z(e),r=i?e:e.name,a=o(r);if(a){if(!t)throw new Error("No reference point given for path '"+r+"'");t=d(t);for(var s=r.split("."),u=0,l=s.length,c=t;u<l;u++)if(""!==s[u]||0!==u){if("^"!==s[u])break;if(!c.parent)throw new Error("Path '"+r+"' not valid for state '"+t.name+"'");c=c.parent}else c=t;s=s.slice(u).join("."),r=c.name+(c.name&&s?".":"")+s}var p=C[r];return!p||!i&&(i||p!==e&&p.self!==e)?n:p}function f(e,t){A[e]||(A[e]=[]),A[e].push(t)}function g(e){for(var t=A[e]||[];t.length;)m(t.shift())}function m(t){t=i(t,{self:t,resolve:t.resolve||{},toString:function(){return this.name}});var n=t.name;if(!z(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 r=n.indexOf(".")!==-1?n.substring(0,n.lastIndexOf(".")):z(t.parent)?t.parent:F(t.parent)&&z(t.parent.name)?t.parent.name:"";if(r&&!C[r])return f(r,t.self);for(var o in S)G(S[o])&&(t[o]=S[o](t,S.$delegates[o]));return C[n]=t,!t[M]&&t.url&&e.when(t.url,["$match","$stateParams",function(e,n){x.$current.navigable==t&&l(e,n)||x.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=x.$current.name.split("."),i=0,r=t.length;i<r;i++)"*"===t[i]&&(n[i]="*");return"**"===t[0]&&(n=n.slice(s(n,t[1])),n.unshift("**")),"**"===t[t.length-1]&&(n.splice(s(n,t[t.length-2])+1,Number.MAX_VALUE),n.push("**")),t.length==n.length&&n.join("")===t.join("")}function b(e,t){return z(e)&&!N(t)?S[e]:G(t)&&z(e)?(S[e]&&!S.$delegates[e]&&(S.$delegates[e]=S[e]),S[e]=t,this):this}function $(e,t){return F(e)?t=e:t.name=e,m(t),this}function w(e,r,o,s,p,f,g,m,b){function $(t,n,i,o){var a=e.$broadcast("$stateNotFound",t,n,i);if(a.defaultPrevented)return g.update(),D;if(!a.retry)return null;if(o.$retry)return g.update(),T;var s=x.transition=r.when(a.retry);return s.then(function(){return s!==x.transition?A:(t.options.$retry=!0,x.transitionTo(t.to,t.toParams,t.options))},function(){return D}),g.update(),s}function w(e,n,i,a,u,l){function d(){var n=[];return B(e.views,function(i,r){var a=i.resolve&&i.resolve!==e.resolve?i.resolve:{};a.$template=[function(){return o.load(r,{view:i,locals:u.globals,params:f,notify:l.notify})||""}],n.push(p.resolve(a,u.globals,u.resolve,e).then(function(n){if(G(i.controllerProvider)||R(i.controllerProvider)){var o=t.extend({},a,u.globals);n.$$controller=s.invoke(i.controllerProvider,null,o)}else n.$$controller=i.controller;n.$$state=e,n.$$controllerAs=i.controllerAs,u[r]=n}))}),r.all(n).then(function(){return u.globals})}var f=i?n:c(e.params.$$keys(),n),h={$stateParams:f};u.resolve=p.resolve(e.resolve,h,u.resolve,e);var g=[u.resolve.then(function(e){u.globals=e})];return a&&g.push(a),r.all(g).then(d).then(function(e){return u})}var A=r.reject(new Error("transition superseded")),S=r.reject(new Error("transition prevented")),D=r.reject(new Error("transition aborted")),T=r.reject(new Error("transition failed"));return k.locals={resolve:null,globals:{$stateParams:{}}},x={params:{},current:k.self,$current:k,transition:null},x.reload=function(e){return x.transitionTo(x.current,f,{reload:e||!0,inherit:!1,notify:!0})},x.go=function(e,t,n){return x.transitionTo(e,t,U({inherit:!0,relative:x.$current},n))},x.transitionTo=function(t,n,o){n=n||{},o=U({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},o||{});var a,l=x.$current,p=x.params,h=l.path,m=d(t,o.relative),v=n["#"];if(!N(m)){var y={to:t,toParams:n,options:o},b=$(y,l.self,p,o);if(b)return b;if(t=y.to,n=y.toParams,o=y.options,m=d(t,o.relative),!N(m)){if(!o.relative)throw new Error("No such state '"+t+"'");throw new Error("Could not resolve '"+t+"' from state '"+o.relative+"'")}}if(m[M])throw new Error("Cannot transition to abstract state '"+t+"'");if(o.inherit&&(n=u(f,n||{},x.$current,m)),!m.params.$$validates(n))return T;n=m.params.$$values(n),t=m;var C=t.path,D=0,E=C[D],O=k.locals,P=[];if(o.reload){if(z(o.reload)||F(o.reload)){if(F(o.reload)&&!o.reload.name)throw new Error("Invalid reload state object");var I=o.reload===!0?h[0]:d(o.reload);if(o.reload&&!I)throw new Error("No such reload state '"+(z(o.reload)?o.reload:o.reload.name)+"'");for(;E&&E===h[D]&&E!==I;)O=P[D]=E.locals,D++,E=C[D]}}else for(;E&&E===h[D]&&E.ownParams.$$equals(n,p);)O=P[D]=E.locals,D++,E=C[D];if(_(t,n,l,p,O,o))return v&&(n["#"]=v),x.params=n,W(x.params,f),W(c(t.params.$$keys(),f),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)),x.transition=null,r.when(x.current);if(n=c(t.params.$$keys(),n||{}),v&&(n["#"]=v),o.notify&&e.$broadcast("$stateChangeStart",t.self,n,l.self,p,o).defaultPrevented)return e.$broadcast("$stateChangeCancel",t.self,n,l.self,p),null==x.transition&&g.update(),S;for(var L=r.when(O),j=D;j<C.length;j++,E=C[j])O=P[j]=i(O),L=w(E,n,E===t,L,O,o);var G=x.transition=L.then(function(){var i,r,a;if(x.transition!==G)return A;for(i=h.length-1;i>=D;i--)a=h[i],a.self.onExit&&s.invoke(a.self.onExit,a.self,a.locals.globals),a.locals=null;for(i=D;i<C.length;i++)r=C[i],r.locals=P[i],r.self.onEnter&&s.invoke(r.self.onEnter,r.self,r.locals.globals);return x.transition!==G?A:(x.$current=t,x.current=t.self,x.params=n,W(x.params,f),x.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,p),g.update(!0),x.current)},function(i){return x.transition!==G?A:(x.transition=null,a=e.$broadcast("$stateChangeError",t.self,n,l.self,p,i),a.defaultPrevented||g.update(),r.reject(i))});return G},x.is=function(e,t,i){i=U({relative:x.$current},i||{});var r=d(e,i.relative);return N(r)?x.$current===r&&(!t||l(r.params.$$values(t),f)):n},x.includes=function(e,t,i){if(i=U({relative:x.$current},i||{}),z(e)&&v(e)){if(!y(e))return!1;e=x.$current.name}var r=d(e,i.relative);return N(r)?!!N(x.$current.includes[r.name])&&(!t||l(r.params.$$values(t),f,a(t))):n},x.href=function(e,t,i){i=U({lossy:!0,inherit:!0,absolute:!1,relative:x.$current},i||{});var r=d(e,i.relative);if(!N(r))return null;i.inherit&&(t=u(f,t||{},x.$current,r));var o=r&&i.lossy?r.navigable:r;return o&&o.url!==n&&null!==o.url?g.href(o.url,c(r.params.$$keys().concat("#"),t||{}),{absolute:i.absolute}):null},x.get=function(e,t){if(0===arguments.length)return h(a(C),function(e){return C[e].self});var n=d(e,t||x.$current);return n&&n.self?n.self:null},x}function _(e,t,n,i,r,o){function a(e,t,n){function i(t){return"search"!=e.params[t].location}var r=e.params.$$keys().filter(i),o=p.apply({},[e.params].concat(r)),a=new V.ParamSet(o);return a.$$equals(t,n)}if(!o.reload&&e===n&&(r===n.locals||e.self.reloadOnSearch===!1&&a(n,i,t)))return!0}var k,x,C={},A={},M="abstract",S={parent:function(e){if(N(e.parent)&&e.parent)return d(e.parent);var t=/^(.+)\.[^.]+$/.exec(e.name);return t?d(t[1]):k},data:function(e){return e.parent&&e.parent.data&&(e.data=e.self.data=i(e.parent.data,e.data)),e.data},url:function(e){var t=e.url,n={params:e.params||{}};if(z(t))return"^"==t.charAt(0)?r.compile(t.substring(1),n):(e.parent.navigable||k).url.concat(t,n);if(!t||r.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 V.ParamSet;return B(e.params||{},function(e,n){t[n]||(t[n]=new V.Param(n,null,e,"config"))}),t},params:function(e){var t=p(e.ownParams,e.ownParams.$$keys());return e.parent&&e.parent.params?U(e.parent.params.$$new(),t):new V.ParamSet},views:function(e){var t={};return B(N(e.views)?e.views:{"":e},function(n,i){i.indexOf("@")<0&&(i+="@"+e.parent.name),t[i]=n}),t},path:function(e){return e.parent?e.parent.path.concat(e):[]},includes:function(e){var t=e.parent?U({},e.parent.includes):{};return t[e.name]=!0,t},$delegates:{}};k=m({name:"",url:"^",views:null,"abstract":!0}),k.navigable=null,this.decorator=b,this.state=$,this.$get=w,w.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function _(){function e(e,t){return{load:function(e,n){var i,r={template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}};return n=U(r,n),n.view&&(i=t.fromConfig(n.view,n.params,n.locals)),i}}}this.$get=e,e.$inject=["$rootScope","$templateFactory"]}function k(){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 x(e,n,i,r){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 i(e){return 1===q&&Y>=4?!!l.enabled(e):1===q&&Y>=2?!!l.enabled():!!u}var r={enter:function(e,t,n){t.after(e),n()},leave:function(e,t){e.remove(),t()}};if(e.noanimation)return r;if(l)return{enter:function(e,n,o){i(e)?t.version.minor>2?l.enter(e,null,n).then(o):l.enter(e,null,n,o):r.enter(e,n,o)},leave:function(e,n){i(e)?t.version.minor>2?l.leave(e).then(n):l.leave(e,n):r.leave(e,n)}};if(u){var o=u&&u(n,e);return{enter:function(e,t,n){o.enter(e,null,t),n()},leave:function(e,t){o.leave(e),t()}}}return r}var s=o(),u=s("$animator"),l=s("$animate"),c={restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(n,o,s){return function(n,o,u){function l(){function e(){t&&t.remove(),n&&n.$destroy()}var t=p,n=f;n&&(n._willBeDestroyed=!0),d?(v.leave(d,function(){e(),p=null}),p=d):(e(),p=null),d=null,f=null}function c(a){var c,p=A(n,u,o,r),y=p&&e.$current&&e.$current.locals[p];if((a||y!==h)&&!n._willBeDestroyed){c=n.$new(),h=e.$current.locals[p],c.$emit("$viewContentLoading",p);var b=s(c,function(e){v.enter(e,o,function(){f&&f.$emit("$viewContentAnimationEnded"),(t.isDefined(m)&&!m||n.$eval(m))&&i(e)}),l()});d=b,f=c,f.$emit("$viewContentLoaded",p),f.$eval(g)}}var p,d,f,h,g=u.onload||"",m=u.autoscroll,v=a(u,n);n.$on("$stateChangeSuccess",function(){c(!1)}),c(!0)}}};return c}function C(e,t,n,i){return{restrict:"ECA",priority:-400,compile:function(r){var o=r.html();return function(r,a,s){var u=n.$current,l=A(r,s,a,i),c=u&&u.locals[l];if(c){a.data("$uiView",{name:l,state:c.$$state}),a.html(c.$template?c.$template:o);var p=e(a.contents());if(c.$$controller){c.$scope=r,c.$element=a;var d=t(c.$$controller,c);c.$$controllerAs&&(r[c.$$controllerAs]=d),a.data("$ngControllerController",d),a.children().data("$ngControllerController",d)}p(r)}}}}}function A(e,t,n,i){var r=i(t.uiView||t.name||"")(e),o=n.inheritedData("$uiView");return r.indexOf("@")>=0?r:r+"@"+(o?o.state.name:"")}function M(e,t){var n,i=e.match(/^\s*({[^}]*})\s*$/);if(i&&(e=t+"("+i[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 S(e){var t=e.parent().inheritedData("$uiView");if(t&&t.state&&t.state.name)return t.state}function D(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 T(e,t,n,i,r){return function(o){var a=o.which||o.button,s=r();if(!(a>1||o.ctrlKey||o.metaKey||o.shiftKey||e.attr("target"))){var u=n(function(){t.go(s.state,s.params,s.options)});o.preventDefault();var l=i.isAnchor&&!s.href?1:0;o.preventDefault=function(){l--<=0&&n.cancel(u)}}}}function E(e,t){return{relative:S(e)||t.$current,inherit:!0}}function O(e,n){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(i,r,o,a){var s=M(o.uiSref,e.current.name),u={state:s.state,href:null,params:null},l=D(r),c=a[1]||a[0];u.options=U(E(r,e),o.uiSrefOpts?i.$eval(o.uiSrefOpts):{});var p=function(n){n&&(u.params=t.copy(n)),u.href=e.href(s.state,u.params,u.options),c&&c.$$addStateInfo(s.state,u.params),null!==u.href&&o.$set(l.attr,u.href)};s.paramExpr&&(i.$watch(s.paramExpr,function(e){e!==u.params&&p(e)},!0),u.params=t.copy(i.$eval(s.paramExpr))),p(),l.clickable&&r.bind("click",T(r,e,n,l,function(){return u}))}}}function P(e,t){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(n,i,r,o){function a(t){p.state=t[0],p.params=t[1],p.options=t[2],p.href=e.href(p.state,p.params,p.options),u&&u.$$addStateInfo(p.state,p.params),p.href&&r.$set(s.attr,p.href)}var s=D(i),u=o[1]||o[0],l=[r.uiState,r.uiStateParams||null,r.uiStateOpts||null],c="["+l.map(function(e){return e||"null"}).join(", ")+"]",p={state:null,params:null,options:null,href:null};n.$watch(c,a,!0),a(n.$eval(c)),s.clickable&&i.bind("click",T(i,e,t,s,function(){return p}))}}}function I(e,t,n){return{restrict:"A",controller:["$scope","$element","$attrs","$timeout",function(t,i,r,o){function a(t,n,r){var o=e.get(t,S(i)),a=s(t,n);g.push({state:o||{name:t},params:n,hash:a}),m[a]=r}function s(e,n){if(!z(e))throw new Error("state should be a string");return F(n)?e+H(n):(n=t.$eval(n),F(n)?e+H(n):e)}function u(){for(var e=0;e<g.length;e++)p(g[e].state,g[e].params)?l(i,m[g[e].hash]):c(i,m[g[e].hash]),d(g[e].state,g[e].params)?l(i,f):c(i,f)}function l(e,t){o(function(){e.addClass(t)})}function c(e,t){e.removeClass(t)}function p(t,n){return e.includes(t.name,n)}function d(t,n){return e.is(t.name,n)}var f,h,g=[],m={};f=n(r.uiSrefActiveEq||"",!1)(t);try{h=t.$eval(r.uiSrefActive)}catch(v){}h=h||n(r.uiSrefActive||"",!1)(t),F(h)&&B(h,function(n,i){if(z(n)){var r=M(n,e.current.name);a(r.state,t.$eval(r.paramExpr),i)}}),this.$$addStateInfo=function(e,t){F(h)&&g.length>0||(a(e,t,h),u())},t.$on("$stateChangeSuccess",u),u()}]}}function L(e){var t=function(t,n){return e.is(t,n)};return t.$stateful=!0,t}function j(e){var t=function(t,n,i){return e.includes(t,n,i)};return t.$stateful=!0,t}var N=t.isDefined,G=t.isFunction,z=t.isString,F=t.isObject,R=t.isArray,B=t.forEach,U=t.extend,W=t.copy,H=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 V;v.prototype.concat=function(e,t){var n={caseInsensitive:V.caseInsensitive(),strict:V.strictMode(),squash:V.defaultSquashPolicy()};return new v(this.sourcePath+e+this.sourceSearch,U(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 i=t(e).split(/-(?!\\)/),r=h(i,t);return h(r,n).reverse()}var i=this.regexp.exec(e);if(!i)return null;t=t||{};var r,o,a,s=this.parameters(),u=s.length,l=this.segments.length-1,c={};if(l!==i.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");var p,d;for(r=0;r<l;r++){for(a=s[r],p=this.params[a],d=i[r+1],o=0;o<p.replace.length;o++)p.replace[o].from===d&&(d=p.replace[o].to);d&&p.array===!0&&(d=n(d)),N(d)&&(d=p.type.decode(d)),c[a]=p.value(d)}for(;r<u;r++){for(a=s[r],c[a]=this.params[a].value(t[a]),p=this.params[a],d=t[a],o=0;o<p.replace.length;o++)p.replace[o].from===d&&(d=p.replace[o].to);N(d)&&(d=p.type.decode(d)),c[a]=p.value(d)}return c},v.prototype.parameters=function(e){return N(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,i=this.parameters(),r=this.params;if(!this.validates(e))return null;var o,a=!1,s=n.length-1,u=i.length,l=n[0];for(o=0;o<u;o++){var c=o<s,p=i[o],d=r[p],f=d.value(e[p]),g=d.isOptional&&d.type.equals(d.value(),f),m=!!g&&d.squash,v=d.type.encode(f);if(c){var y=n[o+1],b=o+1===s;if(m===!1)null!=v&&(l+=R(v)?h(v,t).join("-"):encodeURIComponent(v)),l+=y;else if(m===!0){var $=l.match(/\/$/)?/\/?(.*)/:/(.*)/;l+=y.match($)[1]}else z(m)&&(l+=m+y);b&&d.squash===!0&&"/"===l.slice(-1)&&(l=l.slice(0,-1))}else{if(null==v||g&&m!==!1)continue;if(R(v)||(v=[v]),0===v.length)continue;v=h(v,encodeURIComponent).join("&"+p+"="),l+=(a?"&":"?")+(p+"="+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 i(e,t){function i(e,t){return function(){return e[t].apply(e,arguments)}}function r(e){return R(e)?e:N(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 s(e,t){return function(n){if(R(n)&&0===n.length)return n;n=r(n);var i=h(n,e);return t===!0?0===f(i,a).length:o(i)}}function u(e){return function(t,n){var i=r(t),o=r(n);if(i.length!==o.length)return!1;for(var a=0;a<i.length;a++)if(!e(i[a],o[a]))return!1;return!0}}this.encode=s(i(e,"encode")),this.decode=s(i(e,"decode")),this.is=s(i(e,"is"),!0),this.equals=u(i(e,"equals")),this.pattern=e.pattern,this.$normalize=s(i(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 i(this,e)},t.module("ui.router.util").provider("$urlMatcherFactory",b),t.module("ui.router.util").run(["$urlMatcherFactory",function(e){}]),$.$inject=["$locationProvider","$urlMatcherFactoryProvider"],t.module("ui.router.router").provider("$urlRouter",$),w.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],t.module("ui.router.state").factory("$stateParams",function(){return{}}).provider("$state",w),_.$inject=[],t.module("ui.router.state").provider("$view",_),t.module("ui.router.state").provider("$uiViewScroll",k);var q=t.version.major,Y=t.version.minor;x.$inject=["$state","$injector","$uiViewScroll","$interpolate"],C.$inject=["$compile","$controller","$state","$interpolate"],t.module("ui.router.state").directive("uiView",x),t.module("ui.router.state").directive("uiView",C),O.$inject=["$state","$timeout"],P.$inject=["$state","$timeout"],I.$inject=["$state","$stateParams","$interpolate"],t.module("ui.router.state").directive("uiSref",O).directive("uiSrefActive",I).directive("uiSrefActiveEq",I).directive("uiState",P),L.$inject=["$state"],j.$inject=["$state"],t.module("ui.router.state").filter("isState",L).filter("includedByState",j)}(window,window.angular),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 i(e,t){return e||t?e?t?(B(e)&&(e=e.join(" ")),B(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function r(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function o(e,t,n){var i="";return e=B(e)?e:e&&U(e)&&e.length?e.split(/\s+/):[],R(e,function(e,r){e&&e.length>0&&(i+=r>0?" ":"",i+=n?t+e:e+t)}),i}function a(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function s(e){if(e instanceof F)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===K)return e;break;default:return F(u(e))}if(e.nodeType===K)return F(e)}function u(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType==K)return n}}function l(e,t,n){R(t,function(t){e.addClass(t,n)})}function c(e,t,n){R(t,function(t){e.removeClass(t,n)})}function p(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 d(e){if(e=e||{},!e.$$prepared){var t=e.domOperation||N;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=N},e.$$prepared=!0}return e}function f(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 i=t.options||{},r=n.options||{},o=(i.addClass||"")+" "+(r.addClass||""),a=(i.removeClass||"")+" "+(r.removeClass||""),s=v(e.attr("class"),o,a);r.preparationClasses&&(i.preparationClasses=x(r.preparationClasses,i.preparationClasses),delete r.preparationClasses);var u=i.domOperation!==N?i.domOperation:null;return z(i,r),u&&(i.domOperation=u),s.addClass?i.addClass=s.addClass:i.addClass=null,s.removeClass?i.removeClass=s.removeClass:i.removeClass=null,
  t.addClass=i.addClass,t.removeClass=i.removeClass,i}function v(e,t,n){function i(e){U(e)&&(e=e.split(" "));var t={};return R(e,function(e){e.length&&(t[e]=!0)}),t}var r=1,o=-1,a={};e=i(e),t=i(t),R(t,function(e,t){a[t]=r}),n=i(n),R(n,function(e,t){a[t]=a[t]===r?null:o});var s={addClass:"",removeClass:""};return R(a,function(t,n){var i,a;t===r?(i="addClass",a=!e[n]):t===o&&(i="removeClass",a=e[n]),a&&(s[i].length&&(s[i]+=" "),s[i]+=n)}),s}function y(e){return e instanceof t.element?e[0]:e}function b(e,t,n){var i="";t&&(i=o(t,J,!0)),n.addClass&&(i=x(i,o(n.addClass,Z))),n.removeClass&&(i=x(i,o(n.removeClass,X))),i.length&&(n.preparationClasses=i,e.addClass(i))}function $(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 k(e,[fe,n]),[fe,n]}function _(e,t){var n=t?"paused":"",i=L+le;return k(e,[i,n]),[i,n]}function k(e,t){var n=t[0],i=t[1];e.style[n]=i}function x(e,t){return e?t?e+" "+t:e:t}function C(e){return[de,e+"s"]}function A(e,t){var n=t?pe:fe;return[n,e+"s"]}function M(e,t,n){var i=Object.create(null),r=e.getComputedStyle(t)||{};return R(n,function(e,t){var n=r[e];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=S(n)),0===n&&(n=null),i[t]=n}}),i}function S(e){var t=0,n=e.split(/\s*,\s*/);return R(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 D(e){return 0===e||null!=e}function T(e,t){var n=P,i=e+"s";return t?n+=re:i+=" linear all",[n,i]}function E(){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 O(e,t,n){R(n,function(n){e[n]=V(e[n])?e[n]:t.style.getPropertyValue(n)})}var P,I,L,j,N=t.noop,G=t.copy,z=t.extend,F=t.element,R=t.forEach,B=t.isArray,U=t.isString,W=t.isObject,H=t.isUndefined,V=t.isDefined,q=t.isFunction,Y=t.isElement,K=1,Z="-add",X="-remove",J="ng-",Q="-active",ee="-prepare",te="ng-animate",ne="$$ngAnimateChildren",ie="";H(e.ontransitionend)&&V(e.onwebkittransitionend)?(ie="-webkit-",P="WebkitTransition",I="webkitTransitionEnd transitionend"):(P="transition",I="transitionend"),H(e.onanimationend)&&V(e.onwebkitanimationend)?(ie="-webkit-",L="WebkitAnimation",j="webkitAnimationEnd animationend"):(L="animation",j="animationend");var re="Duration",oe="Property",ae="Delay",se="TimingFunction",ue="IterationCount",le="PlayState",ce=9999,pe=L+ae,de=L+re,fe=P+ae,he=P+re,ge=t.$$minErr("ng"),me=["$$rAF",function(e){function t(e){i=i.concat(e),n()}function n(){if(i.length){for(var t=i.shift(),o=0;o<t.length;o++)t[o]();r||e(function(){r||n()})}}var i,r;return i=t.queue=[],t.waitUntilQuiet=function(t){r&&r(),r=e(function(){r=null,t(),n()})},t}],ve=["$interpolate",function(e){return{link:function(n,i,r){function o(e){e="on"===e||"true"===e,i.data(ne,e)}var a=r.ngAnimateChildren;t.isString(a)&&0===a.length?i.data(ne,!0):(o(e(a)(n)),r.$observe("ngAnimateChildren",o))}}}],ye="$$animateCss",be=1e3,$e=3,we=1.5,_e={transitionDuration:he,transitionDelay:fe,transitionProperty:P+oe,animationDuration:de,animationDelay:pe,animationIterationCount:L+ue},ke={transitionDuration:he,transitionDelay:fe,animationDuration:de,animationDelay:pe},xe=["$animateProvider",function(e){var t=E(),n=E();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,i,s,u,l,c,m,v){function b(e,t){var n="$$ngAnimateParentKey",i=e.parentNode,r=i[n]||(i[n]=++F);return r+"-"+e.getAttribute("class")+"-"+t}function $(n,i,r,o){var a=t.get(r);return a||(a=M(e,n,o),"infinite"===a.animationIterationCount&&(a.animationIterationCount=1)),t.put(r,a),a}function x(r,a,s,u){var l;if(t.count(s)>0&&(l=n.get(s),!l)){var c=o(a,"-stagger");i.addClass(r,c),l=M(e,r,u),l.animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),i.removeClass(r,c),n.put(s,l)}return l||{}}function S(e){U.push(e),m.waitUntilQuiet(function(){t.flush(),n.flush();for(var e=l(),i=0;i<U.length;i++)U[i](e);U.length=0})}function E(e,t,n){var i=$(e,t,n,_e),r=i.animationDelay,o=i.transitionDelay;return i.maxDelay=r&&o?Math.max(r,o):r||o,i.maxDuration=Math.max(i.animationDuration*i.animationIterationCount,i.transitionDuration),i}var z=p(i),F=0,U=[];return function(e,n){function l(){m()}function p(){m(!0)}function m(t){if(!(q||K&&Y)){q=!0,Y=!1,W.$$skipPreparationClasses||i.removeClass(e,_e),i.removeClass(e,Ce),_(V,!1),w(V,!1),R(le,function(e){V.style[e[0]]=""}),z(e,W),f(e,W),Object.keys(H).length&&R(H,function(e,t){e?V.style.setProperty(t,e):V.style.removeProperty(t)}),W.onDone&&W.onDone(),fe&&fe.length&&e.off(fe.join(" "),F);var n=e.data(ye);n&&(u.cancel(n[0].timer),e.removeData(ye)),ee&&ee.complete(!t)}}function $(e){ze.blockTransition&&w(V,e),ze.blockKeyframeAnimation&&_(V,!!e)}function M(){return ee=new s({end:l,cancel:p}),S(N),m(),{$$willAnimate:!1,start:function(){return ee},end:l}}function F(e){e.stopPropagation();var t=e.originalEvent||e,n=t.$manualTimeStamp||Date.now(),i=parseFloat(t.elapsedTime.toFixed($e));Math.max(n-ue,0)>=ie&&i>=re&&(K=!0,m())}function U(){function t(){if(!q){if($(!1),R(le,function(e){var t=e[0],n=e[1];V.style[t]=n}),z(e,W),i.addClass(e,Ce),ze.recalculateTimingStyles){if(xe=V.className+" "+_e,Se=b(V,xe),Ne=E(V,xe,Se),Ge=Ne.maxDelay,ne=Math.max(Ge,0),re=Ne.maxDuration,0===re)return void m();ze.hasTransitions=Ne.transitionDuration>0,ze.hasAnimations=Ne.animationDuration>0}if(ze.applyAnimationDelay&&(Ge="boolean"!=typeof W.delay&&D(W.delay)?parseFloat(W.delay):Ge,ne=Math.max(Ge,0),Ne.animationDelay=Ge,Fe=A(Ge,!0),le.push(Fe),V.style[Fe[0]]=Fe[1]),ie=ne*be,ae=re*be,W.easing){var t,r=W.easing;ze.hasTransitions&&(t=P+se,le.push([t,r]),V.style[t]=r),ze.hasAnimations&&(t=L+se,le.push([t,r]),V.style[t]=r)}Ne.transitionDuration&&fe.push(I),Ne.animationDuration&&fe.push(j),ue=Date.now();var o=ie+we*ae,a=ue+o,s=e.data(ye)||[],l=!0;if(s.length){var c=s[0];l=a>c.expectedEndTime,l?u.cancel(c.timer):s.push(m)}if(l){var p=u(n,o,!1);s[0]={timer:p,expectedEndTime:a},s.push(m),e.data(ye,s)}fe.length&&e.on(fe.join(" "),F),W.to&&(W.cleanupStyles&&O(H,V,Object.keys(W.to)),g(e,W))}}function n(){var t=e.data(ye);if(t){for(var n=1;n<t.length;n++)t[n]();e.removeData(ye)}}if(!q){if(!V.parentNode)return void m();var r=function(e){if(K)Y&&e&&(Y=!1,m());else if(Y=!e,Ne.animationDuration){var t=_(V,Y);Y?le.push(t):a(le,t)}},o=Le>0&&(Ne.transitionDuration&&0===De.transitionDuration||Ne.animationDuration&&0===De.animationDuration)&&Math.max(De.animationDelay,De.transitionDelay);o?u(t,Math.floor(o*Le*be),!1):t(),te.resume=function(){r(!0)},te.pause=function(){r(!1)}}}var W=n||{};W.$$prepared||(W=d(G(W)));var H={},V=y(e);if(!V||!V.parentNode||!v.enabled())return M();var q,Y,K,ee,te,ne,ie,re,ae,ue,le=[],pe=e.attr("class"),de=r(W),fe=[];if(0===W.duration||!c.animations&&!c.transitions)return M();var he=W.event&&B(W.event)?W.event.join(" "):W.event,ge=he&&W.structural,me="",ve="";ge?me=o(he,J,!0):he&&(me=he),W.addClass&&(ve+=o(W.addClass,Z)),W.removeClass&&(ve.length&&(ve+=" "),ve+=o(W.removeClass,X)),W.applyClassesEarly&&ve.length&&z(e,W);var _e=[me,ve].join(" ").trim(),xe=pe+" "+_e,Ce=o(_e,Q),Ae=de.to&&Object.keys(de.to).length>0,Me=(W.keyframeStyle||"").length>0;if(!Me&&!Ae&&!_e)return M();var Se,De;if(W.stagger>0){var Te=parseFloat(W.stagger);De={transitionDelay:Te,animationDelay:Te,transitionDuration:0,animationDuration:0}}else Se=b(V,xe),De=x(V,_e,Se,ke);W.$$skipPreparationClasses||i.addClass(e,_e);var Ee;if(W.transitionStyle){var Oe=[P,W.transitionStyle];k(V,Oe),le.push(Oe)}if(W.duration>=0){Ee=V.style[P].length>0;var Pe=T(W.duration,Ee);k(V,Pe),le.push(Pe)}if(W.keyframeStyle){var Ie=[L,W.keyframeStyle];k(V,Ie),le.push(Ie)}var Le=De?W.staggerIndex>=0?W.staggerIndex:t.count(Se):0,je=0===Le;je&&!W.skipBlocking&&w(V,ce);var Ne=E(V,xe,Se),Ge=Ne.maxDelay;ne=Math.max(Ge,0),re=Ne.maxDuration;var ze={};if(ze.hasTransitions=Ne.transitionDuration>0,ze.hasAnimations=Ne.animationDuration>0,ze.hasTransitionAll=ze.hasTransitions&&"all"==Ne.transitionProperty,ze.applyTransitionDuration=Ae&&(ze.hasTransitions&&!ze.hasTransitionAll||ze.hasAnimations&&!ze.hasTransitions),ze.applyAnimationDuration=W.duration&&ze.hasAnimations,ze.applyTransitionDelay=D(W.delay)&&(ze.applyTransitionDuration||ze.hasTransitions),ze.applyAnimationDelay=D(W.delay)&&ze.hasAnimations,ze.recalculateTimingStyles=ve.length>0,(ze.applyTransitionDuration||ze.applyAnimationDuration)&&(re=W.duration?parseFloat(W.duration):re,ze.applyTransitionDuration&&(ze.hasTransitions=!0,Ne.transitionDuration=re,Ee=V.style[P+oe].length>0,le.push(T(re,Ee))),ze.applyAnimationDuration&&(ze.hasAnimations=!0,Ne.animationDuration=re,le.push(C(re)))),0===re&&!ze.recalculateTimingStyles)return M();if(null!=W.delay){var Fe;"boolean"!=typeof W.delay&&(Fe=parseFloat(W.delay),ne=Math.max(Fe,0)),ze.applyTransitionDelay&&le.push(A(Fe)),ze.applyAnimationDelay&&le.push(A(Fe,!0))}return null==W.duration&&Ne.transitionDuration>0&&(ze.recalculateTimingStyles=ze.recalculateTimingStyles||je),ie=ne*be,ae=re*be,W.skipBlocking||(ze.blockTransition=Ne.transitionDuration>0,ze.blockKeyframeAnimation=Ne.animationDuration>0&&De.animationDelay>0&&0===De.animationDuration),W.from&&(W.cleanupStyles&&O(H,V,Object.keys(W.from)),h(e,W)),ze.blockTransition||ze.blockKeyframeAnimation?$(re):W.skipBlocking||w(V,!1),{$$willAnimate:!0,end:l,start:function(){if(!q)return te={end:l,cancel:p,resume:null,pause:null},ee=new s(te),S(U),ee}}}}]}],Ce=["$$animationProvider",function(e){function t(e){return e.parentNode&&11===e.parentNode.nodeType}e.drivers.push("$$animateCssDriver");var n="ng-animate-shim",i="ng-anchor",r="ng-anchor-out",o="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,a,s,u,l,c,d){function f(e){return e.replace(/\bng-\S+\b/g,"")}function h(e,t){return U(e)&&(e=e.split(" ")),U(t)&&(t=t.split(" ")),e.filter(function(e){return t.indexOf(e)===-1}).join(" ")}function g(t,a,u){function l(e){var t={},n=y(e).getBoundingClientRect();return R(["width","height","top","left"],function(e){var i=n[e];switch(e){case"top":i+=b.scrollTop;break;case"left":i+=b.scrollLeft}t[e]=Math.floor(i)+"px"}),t}function c(){var t=e(m,{addClass:r,delay:!0,from:l(a)});return t.$$willAnimate?t:null}function p(e){return e.attr("class")||""}function d(){var t=f(p(u)),n=h(t,v),i=h(v,t),a=e(m,{to:l(u),addClass:o+" "+n,removeClass:r+" "+i,delay:!0});return a.$$willAnimate?a:null}function g(){m.remove(),a.removeClass(n),u.removeClass(n)}var m=F(y(a).cloneNode(!0)),v=f(p(m));a.addClass(n),u.addClass(n),m.addClass(i),w.append(m);var $,_=c();if(!_&&($=d(),!$))return g();var k=_||$;return{start:function(){function e(){n&&n.end()}var t,n=k.start();return n.done(function(){return n=null,!$&&($=d())?(n=$.start(),n.done(function(){n=null,g(),t.complete()}),n):(g(),void t.complete())}),t=new s({end:e,cancel:e})}}}function m(e,t,n,i){var r=v(e,N),o=v(t,N),a=[];if(R(i,function(e){var t=e.out,i=e["in"],r=g(n,t,i);r&&a.push(r)}),r||o||0!==a.length)return{start:function(){function e(){R(t,function(e){e.end()})}var t=[];r&&t.push(r.start()),o&&t.push(o.start()),R(a,function(e){t.push(e.start())});var n=new s({end:e,cancel:e});return s.all(t,function(e){n.complete(e)}),n}}}function v(t){var n=t.element,i=t.options||{};t.structural&&(i.event=t.event,i.structural=!0,i.applyClassesEarly=!0,"leave"===t.event&&(i.onDone=i.domOperation)),i.preparationClasses&&(i.event=x(i.event,i.preparationClasses));var r=e(n,i);return r.$$willAnimate?r:null}if(!l.animations&&!l.transitions)return N;var b=d[0].body,$=y(u),w=F(t($)||b.contains($)?$:b);p(c);return function(e){return e.from&&e.to?m(e.from,e.to,e.classes,e.anchors):v(e)}}]}],Ae=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,i){function r(n){n=B(n)?n:n.split(" ");for(var i=[],r={},o=0;o<n.length;o++){var a=n[o],s=e.$$registeredAnimations[a];s&&!r[a]&&(i.push(t.get(s)),r[a]=!0)}return i}var o=p(i);return function(e,t,i,a){function s(){a.domOperation(),o(e,a)}function u(){h=!0,s(),f(e,a)}function l(e,t,i,r,o){var a;switch(i){case"animate":a=[t,r.from,r.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(r);var s=e.apply(e,a);if(s)if(q(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(q(s))return s;return N}function c(e,t,i,r,o){var a=[];return R(r,function(r){var s=r[o];s&&a.push(function(){var r,o,a=!1,u=function(e){a||(a=!0,(o||N)(e),r.complete(!e))};return r=new n({end:function(){u()},cancel:function(){u(!0)}}),o=l(s,e,t,i,function(e){var t=e===!1;u(t)}),r})}),a}function p(e,t,i,r,o){var a=c(e,t,i,r,o);if(0===a.length){var s,u;"beforeSetClass"===o?(s=c(e,"removeClass",i,r,"beforeRemoveClass"),u=c(e,"addClass",i,r,"beforeAddClass")):"setClass"===o&&(s=c(e,"removeClass",i,r,"removeClass"),u=c(e,"addClass",i,r,"addClass")),s&&(a=a.concat(s)),u&&(a=a.concat(u))}if(0!==a.length)return function(e){var t=[];return a.length&&R(a,function(e){t.push(e())}),t.length?n.all(t,e):e(),function(e){R(t,function(t){e?t.cancel():t.end()})}}}var h=!1;3===arguments.length&&W(i)&&(a=i,i=null),a=d(a),i||(i=e.attr("class")||"",a.addClass&&(i+=" "+a.addClass),a.removeClass&&(i+=" "+a.removeClass));var g,m,v=a.addClass,y=a.removeClass,b=r(i);if(b.length){var $,w;"leave"==t?(w="leave",$="afterLeave"):(w="before"+t.charAt(0).toUpperCase()+t.substr(1),$=t),"enter"!==t&&"move"!==t&&(g=p(e,t,a,b,w)),m=p(e,t,a,b,$)}if(g||m){var _;return{$$willAnimate:!0,end:function(){return _?_.end():(u(),_=new n,_.complete(!0)),_},start:function(){function e(e){u(e),_.complete(e)}function t(t){h||((i||N)(t),e(t))}if(_)return _;_=new n;var i,r=[];return g&&r.push(function(e){i=g(e)}),r.length?r.push(function(e){s(),e(!0)}):s(),m&&r.push(function(e){i=m(e)}),_.setHost({end:function(){t()},cancel:function(){t(!0)}}),n.chain(r,e),_}}}}}]}],Me=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){var n=t.element,i=t.event,r=t.options,o=t.classes;return e(n,i,o,r)}return function(e){if(e.from&&e.to){var i=n(e.from),r=n(e.to);if(!i&&!r)return;return{start:function(){function e(){return function(){R(o,function(e){e.end()})}}function n(e){a.complete(e)}var o=[];i&&o.push(i.start()),r&&o.push(r.start()),t.all(o,n);var a=new t({end:e(),cancel:e()});return a}}}return n(e)}}]}],Se="data-ng-animate",De="$ngAnimatePin",Te=["$animateProvider",function(i){function r(e){if(!e)return null;var t=e.split(g),n=Object.create(null);return R(t,function(e){n[e]=!0}),n}function o(e,t){if(e&&t){var n=r(t);return e.split(g).some(function(e){return n[e]})}}function a(e,t,n,i){return v[e].some(function(e){return e(t,n,i)})}function l(e,t){var n=(e.addClass||"").length>0,i=(e.removeClass||"").length>0;return t?n&&i:n||i}var c=1,h=2,g=" ",v=this.rules={skip:[],cancel:[],join:[]};v.join.push(function(e,t,n){return!t.structural&&l(t)}),v.skip.push(function(e,t,n){return!t.structural&&!l(t)}),v.skip.push(function(e,t,n){return"leave"==n.event&&t.structural}),v.skip.push(function(e,t,n){return n.structural&&n.state===h&&!t.structural}),v.cancel.push(function(e,t,n){return n.structural&&t.structural}),v.cancel.push(function(e,t,n){return n.state===h&&t.structural}),v.cancel.push(function(e,t,n){if(n.structural)return!1;var i=t.addClass,r=t.removeClass,a=n.addClass,s=n.removeClass;return!(H(i)&&H(r)||H(a)&&H(s))&&(o(i,s)||o(r,a))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(r,o,g,v,w,_,k,x,C,A){function M(){var e=!1;return function(t){e?t():o.$$postDigest(function(){e=!0,t()})}}function S(e,t){return m(e,t,{})}function D(e,t,n){var i=y(t),r=y(e),o=[],a=Q[n];return a&&R(a,function(e){re.call(e.node,i)?o.push(e.callback):"leave"===n&&re.call(e.node,r)&&o.push(e.callback)}),o}function T(e,t,n){var i=u(t);return e.filter(function(e){var t=e.node===i&&(!n||e.callback===n);return!t})}function E(e,t){"close"!==e||t[0].parentNode||oe.off(t)}function O(e,t,n){function i(t,n,i,o){C(function(){var t=D(g,e,n);t.length?r(function(){R(t,function(t){t(e,i,o)}),E(i,e)}):E(i,e)}),t.progress(n,i,o)}function u(t){$(e,w),ie(e,w),f(e,w),w.domOperation(),x.complete(!t)}var p,g,w=G(n);e=s(e),e&&(p=y(e),g=e.parent()),w=d(w);var x=new k,C=M();if(B(w.addClass)&&(w.addClass=w.addClass.join(" ")),w.addClass&&!U(w.addClass)&&(w.addClass=null),B(w.removeClass)&&(w.removeClass=w.removeClass.join(" ")),w.removeClass&&!U(w.removeClass)&&(w.removeClass=null),w.from&&!W(w.from)&&(w.from=null),w.to&&!W(w.to)&&(w.to=null),!p)return u(),x;var A=[p.className,w.addClass,w.removeClass].join(" ");if(!te(A))return u(),x;var T=["enter","move","leave"].indexOf(t)>=0,O=v[0].hidden,L=!X||O||Z.get(p),z=!L&&q.get(p)||{},F=!!z.state;if(L||F&&z.state==c||(L=!j(e,g,t)),L)return O&&i(x,t,"start"),u(),O&&i(x,t,"close"),x;T&&P(e);var H={structural:T,element:e,event:t,addClass:w.addClass,removeClass:w.removeClass,close:u,options:w,runner:x};if(F){var V=a("skip",e,H,z);if(V)return z.state===h?(u(),x):(m(e,z,H),z.runner);var Y=a("cancel",e,H,z);if(Y)if(z.state===h)z.runner.end();else{if(!z.structural)return m(e,z,H),z.runner;z.close()}else{var K=a("join",e,H,z);if(K){if(z.state!==h)return b(e,T?t:null,w),t=H.event=z.event,w=m(e,z,H),z.runner;S(e,H)}}}else S(e,H);var J=H.structural;if(J||(J="animate"===H.event&&Object.keys(H.options.to||{}).length>0||l(H)),!J)return u(),I(e),x;var Q=(z.counter||0)+1;return H.counter=Q,N(e,c,H),o.$$postDigest(function(){var n=q.get(p),r=!n;n=n||{};var o=e.parent()||[],a=o.length>0&&("animate"===n.event||n.structural||l(n));if(r||n.counter!==Q||!a)return r&&(ie(e,w),f(e,w)),(r||T&&n.event!==t)&&(w.domOperation(),x.end()),void(a||I(e));t=!n.structural&&l(n,!0)?"setClass":n.event,N(e,h);var s=_(e,t,n.options);x.setHost(s),i(x,t,"start",{}),s.done(function(n){u(!n);var r=q.get(p);r&&r.counter===Q&&I(y(e)),i(x,t,"close",{})})}),x}function P(e){var t=y(e),n=t.querySelectorAll("["+Se+"]");R(n,function(e){var t=parseInt(e.getAttribute(Se)),n=q.get(e);if(n)switch(t){case h:n.runner.end();case c:q.remove(e)}})}function I(e){var t=y(e);t.removeAttribute(Se),q.remove(t)}function L(e,t){return y(e)===y(t)}function j(e,t,n){var i,r=F(v[0].body),o=L(e,r)||"HTML"===e[0].nodeName,a=L(e,g),s=!1,u=Z.get(y(e)),l=F.data(e[0],De);for(l&&(t=l),t=y(t);t&&(a||(a=L(t,g)),t.nodeType===K);){var c=q.get(t)||{};if(!s){var p=Z.get(t);if(p===!0&&u!==!1){u=!0;break}p===!1&&(u=!1),s=c.structural}if(H(i)||i===!0){var d=F.data(t,ne);V(d)&&(i=d)}if(s&&i===!1)break;if(o||(o=L(t,r)),o&&a)break;t=a||!(l=F.data(t,De))?t.parentNode:y(l)}var f=(!s||i)&&u!==!0;return f&&a&&o}function N(e,t,n){n=n||{},n.state=t;var i=y(e);i.setAttribute(Se,t);var r=q.get(i),o=r?z(r,n):n;q.put(i,o)}var q=new w,Z=new w,X=null,J=o.$watch(function(){return 0===x.totalPendingRequests},function(e){e&&(J(),o.$$postDigest(function(){o.$$postDigest(function(){null===X&&(X=!0)})}))}),Q={},ee=i.classNameFilter(),te=ee?function(e){return ee.test(e)}:function(){return!0},ie=p(C),re=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},oe={on:function(e,t,n){var i=u(t);Q[e]=Q[e]||[],Q[e].push({node:i,callback:n}),F(t).on("$destroy",function(){var r=q.get(i);r||oe.off(e,t,n)})},off:function(e,n,i){if(1!==arguments.length||t.isString(arguments[0])){var r=Q[e];r&&(Q[e]=1===arguments.length?null:T(r,n,i))}else{n=arguments[0];for(var o in Q)Q[o]=T(Q[o],n)}},pin:function(e,t){n(Y(e),"element","not an element"),n(Y(t),"parentElement","not an element"),e.data(De,t)},push:function(e,t,n,i){return n=n||{},n.domOperation=i,O(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!X;else{var i=Y(e);if(i){var r=y(e),o=Z.get(r);1===n?t=!o:Z.put(r,!t)}else t=X=!!e}return t}};return oe}]}],Ee=["$animateProvider",function(e){function t(e,t){e.data(s,t)}function n(e){e.removeData(s)}function r(e){return e.data(s)}var o="ng-animate-ref",a=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(e,s,u,l,c,h){function g(e){function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode,i=n.parentNode;o.put(n,e);for(var a;i;){if(a=o.get(i)){a.processed||(a=t(a));break}i=i.parentNode}return(a||r).children.push(e),e}function n(e){var t,n=[],i=[];for(t=0;t<e.children.length;t++)i.push(e.children[t]);var r=i.length,o=0,a=[];for(t=0;t<i.length;t++){var s=i[t];r<=0&&(r=o,o=0,n.push(a),a=[]),a.push(s.fn),s.children.forEach(function(e){o++,i.push(e)}),r--}return a.length&&n.push(a),n}var i,r={children:[]},o=new c;for(i=0;i<e.length;i++){var a=e[i];o.put(a.domNode,e[i]={domNode:a.domNode,fn:a.fn,children:[]})}for(i=0;i<e.length;i++)t(e[i]);return n(r)}var m=[],v=p(e);return function(c,p,b){function $(e){var t="["+o+"]",n=e.hasAttribute(o)?[e]:e.querySelectorAll(t),i=[];return R(n,function(e){var t=e.getAttribute(o);t&&t.length&&i.push(e)}),i}function w(e){var t=[],n={};R(e,function(e,i){var r=e.element,a=y(r),s=e.event,u=["enter","move"].indexOf(s)>=0,l=e.structural?$(a):[];if(l.length){var c=u?"to":"from";R(l,function(e){var t=e.getAttribute(o);n[t]=n[t]||{},n[t][c]={animationID:i,element:F(e)}})}else t.push(e)});var i={},r={};return R(n,function(n,o){var a=n.from,s=n.to;if(!a||!s){var u=a?a.animationID:s.animationID,l=u.toString();return void(i[l]||(i[l]=!0,t.push(e[u])))}var c=e[a.animationID],p=e[s.animationID],d=a.animationID.toString();if(!r[d]){var f=r[d]={structural:!0,beforeStart:function(){c.beforeStart(),p.beforeStart()},close:function(){c.close(),p.close()},classes:_(c.classes,p.classes),from:c,to:p,anchors:[]};f.classes.length?t.push(f):(t.push(c),t.push(p))}r[d].anchors.push({out:a.element,"in":s.element})}),t}function _(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],i=0;i<e.length;i++){var r=e[i];if("ng-"!==r.substring(0,3))for(var o=0;o<t.length;o++)if(r===t[o]){n.push(r);break}}return n.join(" ")}function k(e){for(var t=a.length-1;t>=0;t--){var n=a[t],i=u.get(n),r=i(e);if(r)return r}}function x(){c.addClass(te),E&&e.addClass(c,E),O&&(e.removeClass(c,O),O=null)}function C(e,t){function n(e){var n=r(e);n&&n.setHost(t)}e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element)}function A(){var e=r(c);!e||"leave"===p&&b.$$domOperationFired||e.end()}function M(t){c.off("$destroy",A),n(c),v(c,b),f(c,b),b.domOperation(),E&&e.removeClass(c,E),c.removeClass(te),D.complete(!t)}b=d(b);var S=["enter","move","leave"].indexOf(p)>=0,D=new l({end:function(){M()},cancel:function(){M(!0)}});if(!a.length)return M(),D;t(c,D);var T=i(c.attr("class"),i(b.addClass,b.removeClass)),E=b.tempClasses;E&&(T+=" "+E,b.tempClasses=null);var O;return S&&(O="ng-"+p+ee,e.addClass(c,O)),m.push({element:c,classes:T,event:p,structural:S,options:b,beforeStart:x,close:M}),c.on("$destroy",A),m.length>1?D:(s.$$postDigest(function(){var e=[];R(m,function(t){r(t.element)?e.push(t):t.close()}),m.length=0;var t=w(e),n=[];R(t,function(e){n.push({domNode:y(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var t,n=e.close,i=e.anchors?e.from.element||e.to.element:e.element;if(r(i)){var o=k(e);o&&(t=o.start)}if(t){var a=t();a.done(function(e){n(!e)}),C(e,a)}else n()}})}),h(g(n))}),D)}}]}],Oe=["$animate","$rootScope",function(e,t){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,n,i,r,o){var a,s;t.$watchCollection(i.ngAnimateSwap||i["for"],function(i){a&&e.leave(a),s&&(s.$destroy(),s=null),(i||0===i)&&(s=t.$new(),o(s,function(t){a=t,e.enter(t,null,n)}))})}}}];t.module("ngAnimate",[]).directive("ngAnimateSwap",Oe).directive("ngAnimateChildren",ve).factory("$$rAFScheduler",me).provider("$$animateQueue",Te).provider("$$animation",Ee).provider("$animateCss",xe).provider("$$animateCssDriver",Ce).provider("$$animateJs",Ae).provider("$$animateJsDriver",Me)}(window,window.angular),function(e,t){"function"==typeof define&&define.amd?define([],function(){return t()}):"object"==typeof exports?module.exports=t():t()}(this,function(){function e(e){"use strict";var t=e.storageKey(),n=e.storage(),i=function(){var i=e.preferredLanguage();angular.isString(i)?e.use(i):n.put(t,e.use())};i.displayName="fallbackFromIncorrectStorageValue",n?n.get(t)?e.use(n.get(t))["catch"](i):i():angular.isString(e.preferredLanguage())&&e.use(e.preferredLanguage())}function t(){"use strict";var e,t,n=null,i=!1,r=!1;t={sanitize:function(e,t){return"text"===t&&(e=a(e)),e},escape:function(e,t){return"text"===t&&(e=o(e)),e},sanitizeParameters:function(e,t){return"params"===t&&(e=s(e,a)),e},escapeParameters:function(e,t){return"params"===t&&(e=s(e,o)),e}},t.escaped=t.escapeParameters,this.addStrategy=function(e,n){return t[e]=n,this},this.removeStrategy=function(e){return delete t[e],this},this.useStrategy=function(e){return i=!0,n=e,this},this.$get=["$injector","$log",function(o,a){var s={},u=function(e,n,i){return angular.forEach(i,function(i){if(angular.isFunction(i))e=i(e,n);else if(angular.isFunction(t[i]))e=t[i](e,n);else{if(!angular.isString(t[i]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+i+"'");if(!s[t[i]])try{s[t[i]]=o.get(t[i])}catch(r){throw s[t[i]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+i+"'")}e=s[t[i]](e,n)}}),e},l=function(){i||r||(a.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),r=!0)};return o.has("$sanitize")&&(e=o.get("$sanitize")),{useStrategy:function(e){return function(t){e.useStrategy(t)}}(this),sanitize:function(e,t,i){if(n||l(),arguments.length<3&&(i=n),!i)return e;var r=angular.isArray(i)?i:[i];return u(e,t,r)}}}];var o=function(e){var t=angular.element("<div></div>");return t.text(e),t.html()},a=function(t){if(!e)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return e(t)},s=function(e,t,n){if(angular.isObject(e)){var i=angular.isArray(e)?[]:{};if(n){if(n.indexOf(e)>-1)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else n=[];return n.push(e),angular.forEach(e,function(e,r){i[r]=s(e,t,n)}),n.splice(-1,1),i}return angular.isNumber(e)?e:t(e)}}function n(e,t,n,i){"use strict";var r,o,a,s,u,l,c,p,d,f,h,g,m,v,y,b,$={},w=[],_=e,k=[],x="translate-cloak",C=!1,A=!1,M=".",S=!1,D=0,T=!0,E="default",O={"default":function(e){return(e||"").split("-").join("_")},java:function(e){var t=(e||"").split("-").join("_"),n=t.split("_");return n.length>1?n[0].toLowerCase()+"_"+n[1].toUpperCase():t},bcp47:function(e){var t=(e||"").split("_").join("-"),n=t.split("-");return n.length>1?n[0].toLowerCase()+"-"+n[1].toUpperCase():t},"iso639-1":function(e){var t=(e||"").split("_").join("-"),n=t.split("-");return n[0].toLowerCase()}},P="2.11.0",I=function(){if(angular.isFunction(i.getLocale))return i.getLocale();var e,n,r=t.$get().navigator,o=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(r.languages))for(e=0;e<r.languages.length;e++)if(n=r.languages[e],n&&n.length)return n;for(e=0;e<o.length;e++)if(n=r[o[e]],n&&n.length)return n;return null};I.displayName="angular-translate/service: getFirstBrowserLanguage";var L=function(){var e=I()||"";return O[E]&&(e=O[E](e)),e};L.displayName="angular-translate/service: getLocale";var j=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},N=function(){return this.toString().replace(/^\s+|\s+$/g,"")},G=function(e){if(e){for(var t=[],n=angular.lowercase(e),i=0,r=w.length;i<r;i++)t.push(angular.lowercase(w[i]));if(j(t,n)>-1)return e;if(o){var a;for(var s in o)if(o.hasOwnProperty(s)){var u=!1,l=Object.prototype.hasOwnProperty.call(o,s)&&angular.lowercase(s)===angular.lowercase(e);if("*"===s.slice(-1)&&(u=s.slice(0,-1)===e.slice(0,s.length-1)),(l||u)&&(a=o[s],j(t,angular.lowercase(a))>-1))return a}}var c=e.split("_");return c.length>1&&j(t,angular.lowercase(c[0]))>-1?c[0]:void 0}},z=function(e,t){if(!e&&!t)return $;if(e&&!t){if(angular.isString(e))return $[e]}else angular.isObject($[e])||($[e]={}),angular.extend($[e],F(t));return this};this.translations=z,this.cloakClassName=function(e){return e?(x=e,this):x},this.nestedObjectDelimeter=function(e){return e?(M=e,this):M};var F=function(e,t,n,i){var r,o,a,s;t||(t=[]),n||(n={});for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&(s=e[r],angular.isObject(s)?F(s,t.concat(r),n,r):(o=t.length?""+t.join(M)+M+r:r,t.length&&r===i&&(a=""+t.join(M),n[a]="@:"+o),n[o]=s));return n};F.displayName="flatObject",this.addInterpolation=function(e){return k.push(e),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(e){return f=e,this},this.useSanitizeValueStrategy=function(e){return n.useStrategy(e),this},this.preferredLanguage=function(e){return e?(R(e),this):r};var R=function(e){return e&&(r=e),r};this.translationNotFoundIndicator=function(e){return this.translationNotFoundIndicatorLeft(e),this.translationNotFoundIndicatorRight(e),this},this.translationNotFoundIndicatorLeft=function(e){return e?(m=e,this):m},this.translationNotFoundIndicatorRight=function(e){return e?(v=e,this):v},this.fallbackLanguage=function(e){return B(e),this};var B=function(e){return e?(angular.isString(e)?(s=!0,a=[e]):angular.isArray(e)&&(s=!1,a=e),angular.isString(r)&&j(a,r)<0&&a.push(r),this):s?a[0]:a};this.use=function(e){if(e){if(!$[e]&&!h)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+e+"'");return u=e,this}return u},this.resolveClientLocale=function(){return L()};var U=function(e){return e?(_=e,this):p?p+_:_};this.storageKey=U,this.useUrlLoader=function(e,t){return this.useLoader("$translateUrlLoader",angular.extend({url:e},t))},this.useStaticFilesLoader=function(e){return this.useLoader("$translateStaticFilesLoader",e)},this.useLoader=function(e,t){return h=e,g=t||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(e){return c=e,this},this.storagePrefix=function(e){return e?(p=e,this):e},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(e){return d=e,this},this.usePostCompiling=function(e){return C=!!e,this},this.forceAsyncReload=function(e){return A=!!e,this},this.uniformLanguageTag=function(e){return e?angular.isString(e)&&(e={standard:e}):e={},E=e.standard,this},this.determinePreferredLanguage=function(e){var t=e&&angular.isFunction(e)?e():L();return r=w.length?G(t)||t:t,this},this.registerAvailableLanguageKeys=function(e,t){return e?(w=e,t&&(o=t),this):w},this.useLoaderCache=function(e){return e===!1?y=void 0:e===!0?y=!0:"undefined"==typeof e?y="$translationCache":e&&(y=e),this},this.directivePriority=function(e){return void 0===e?D:(D=e,this)},this.statefulFilter=function(e){return void 0===e?T:(T=e,this)},this.postProcess=function(e){return b=e?e:void 0,this},this.$get=["$log","$injector","$rootScope","$q",function(e,t,n,i){var o,p,E,O=t.get(f||"$translateDefaultInterpolation"),I=!1,W={},H={},V=function(e,t,n,s,l){!u&&r&&(u=r);var d=l&&l!==u?G(l)||l:u;if(l&&le(l),angular.isArray(e)){var f=function(e){for(var r={},o=[],a=function(e){var o=i.defer(),a=function(t){
  r[e]=t,o.resolve([e,t])};return V(e,t,n,s,l).then(a,a),o.promise},u=0,c=e.length;u<c;u++)o.push(a(e[u]));return i.all(o).then(function(){return r})};return f(e)}var h=i.defer();e&&(e=N.apply(e));var g=function(){var e=r?H[r]:H[d];if(p=0,c&&!e){var t=o.get(_);if(e=H[t],a&&a.length){var n=j(a,t);p=0===n?1:0,j(a,r)<0&&a.push(r)}}return e}();if(g){var m=function(){l||(d=u),oe(e,t,n,s,d).then(h.resolve,h.reject)};m.displayName="promiseResolved",g["finally"](m)}else oe(e,t,n,s,d).then(h.resolve,h.reject);return h.promise},q=function(e){return m&&(e=[m,e].join(" ")),v&&(e=[e,v].join(" ")),e},Y=function(e){u=e,c&&o.put(V.storageKey(),u),n.$emit("$translateChangeSuccess",{language:e}),O.setLocale(u);var t=function(e,t){W[t].setLocale(u)};t.displayName="eachInterpolatorLocaleSetter",angular.forEach(W,t),n.$emit("$translateChangeEnd",{language:e})},K=function(e){if(!e)throw"No language key specified for loading.";var r=i.defer();n.$emit("$translateLoadingStart",{language:e}),I=!0;var o=y;"string"==typeof o&&(o=t.get(o));var a=angular.extend({},g,{key:e,$http:angular.extend({},{cache:o},g.$http)}),s=function(t){var i={};n.$emit("$translateLoadingSuccess",{language:e}),angular.isArray(t)?angular.forEach(t,function(e){angular.extend(i,F(e))}):angular.extend(i,F(t)),I=!1,r.resolve({key:e,table:i}),n.$emit("$translateLoadingEnd",{language:e})};s.displayName="onLoaderSuccess";var u=function(e){n.$emit("$translateLoadingError",{language:e}),r.reject(e),n.$emit("$translateLoadingEnd",{language:e})};return u.displayName="onLoaderError",t.get(h)(a).then(s,u),r.promise};if(c&&(o=t.get(c),!o.get||!o.put))throw new Error("Couldn't use storage '"+c+"', missing get() or put() method!");if(k.length){var Z=function(e){var n=t.get(e);n.setLocale(r||u),W[n.getInterpolationIdentifier()]=n};Z.displayName="interpolationFactoryAdder",angular.forEach(k,Z)}var X=function(e){var t=i.defer();if(Object.prototype.hasOwnProperty.call($,e))t.resolve($[e]);else if(H[e]){var n=function(e){z(e.key,e.table),t.resolve(e.table)};n.displayName="translationTableResolver",H[e].then(n,t.reject)}else t.reject();return t.promise},J=function(e,t,n,r){var o=i.defer(),a=function(i){if(Object.prototype.hasOwnProperty.call(i,t)){r.setLocale(e);var a=i[t];if("@:"===a.substr(0,2))J(e,a.substr(2),n,r).then(o.resolve,o.reject);else{var s=r.interpolate(i[t],n);s=ue(t,i[t],s,n,e),o.resolve(s)}r.setLocale(u)}else o.reject()};return a.displayName="fallbackTranslationResolver",X(e).then(a,o.reject),o.promise},Q=function(e,t,n,i){var r,o=$[e];if(o&&Object.prototype.hasOwnProperty.call(o,t)){if(i.setLocale(e),r=i.interpolate(o[t],n),"@:"===r.substr(0,2))return Q(e,r.substr(2),n,i);i.setLocale(u)}return r},ee=function(e,n,i){if(d){var r=t.get(d)(e,u,n,i);return void 0!==r?r:e}return e},te=function(e,t,n,r,o){var s=i.defer();if(e<a.length){var u=a[e];J(u,t,n,r).then(function(e){s.resolve(e)},function(){return te(e+1,t,n,r,o).then(s.resolve,s.reject)})}else o?s.resolve(o):d?s.resolve(ee(t,n)):s.reject(ee(t,n));return s.promise},ne=function(e,t,n,i){var r;if(e<a.length){var o=a[e];r=Q(o,t,n,i),r||(r=ne(e+1,t,n,i))}return r},ie=function(e,t,n,i){return te(E>0?E:p,e,t,n,i)},re=function(e,t,n){return ne(E>0?E:p,e,t,n)},oe=function(e,t,n,r,o){var s=i.defer(),u=o?$[o]:$,l=n?W[n]:O;if(u&&Object.prototype.hasOwnProperty.call(u,e)){var c=u[e];if("@:"===c.substr(0,2))V(c.substr(2),t,n,r,o).then(s.resolve,s.reject);else{var p=l.interpolate(c,t);p=ue(e,c,p,t,o),s.resolve(p)}}else{var f;d&&!I&&(f=ee(e,t,r)),o&&a&&a.length?ie(e,t,l,r).then(function(e){s.resolve(e)},function(e){s.reject(q(e))}):d&&!I&&f?r?s.resolve(r):s.resolve(f):r?s.resolve(r):s.reject(q(e))}return s.promise},ae=function(e,t,n,i){var r,o=i?$[i]:$,s=O;if(W&&Object.prototype.hasOwnProperty.call(W,n)&&(s=W[n]),o&&Object.prototype.hasOwnProperty.call(o,e)){var u=o[e];r="@:"===u.substr(0,2)?ae(u.substr(2),t,n,i):s.interpolate(u,t)}else{var l;d&&!I&&(l=ee(e,t)),i&&a&&a.length?(p=0,r=re(e,t,s)):r=d&&!I&&l?l:q(e)}return r},se=function(e){l===e&&(l=void 0),H[e]=void 0},ue=function(e,n,i,r,o){var a=b;return a&&("string"==typeof a&&(a=t.get(a)),a)?a(e,n,i,r,o):i},le=function(e){$[e]||!h||H[e]||(H[e]=K(e).then(function(e){z(e.key,e.table)}))};V.preferredLanguage=function(e){return e&&R(e),r},V.cloakClassName=function(){return x},V.nestedObjectDelimeter=function(){return M},V.fallbackLanguage=function(e){if(void 0!==e&&null!==e){if(B(e),h&&a&&a.length)for(var t=0,n=a.length;t<n;t++)H[a[t]]||(H[a[t]]=K(a[t]));V.use(V.use())}return s?a[0]:a},V.useFallbackLanguage=function(e){if(void 0!==e&&null!==e)if(e){var t=j(a,e);t>-1&&(E=t)}else E=0},V.proposedLanguage=function(){return l},V.storage=function(){return o},V.negotiateLocale=G,V.use=function(e){if(!e)return u;var t=i.defer();n.$emit("$translateChangeStart",{language:e});var r=G(e);return w.length>0&&!r?i.reject(e):(r&&(e=r),l=e,!A&&$[e]||!h||H[e]?H[e]?H[e].then(function(e){return l===e.key&&Y(e.key),t.resolve(e.key),e},function(e){return!u&&a&&a.length>0?V.use(a[0]).then(t.resolve,t.reject):t.reject(e)}):(t.resolve(e),Y(e)):(H[e]=K(e).then(function(n){return z(n.key,n.table),t.resolve(n.key),l===e&&Y(n.key),n},function(e){return n.$emit("$translateChangeError",{language:e}),t.reject(e),n.$emit("$translateChangeEnd",{language:e}),i.reject(e)}),H[e]["finally"](function(){se(e)})),t.promise)},V.resolveClientLocale=function(){return L()},V.storageKey=function(){return U()},V.isPostCompilingEnabled=function(){return C},V.isForceAsyncReloadEnabled=function(){return A},V.refresh=function(e){function t(){o.resolve(),n.$emit("$translateRefreshEnd",{language:e})}function r(){o.reject(),n.$emit("$translateRefreshEnd",{language:e})}if(!h)throw new Error("Couldn't refresh translation table, no loader registered!");var o=i.defer();if(n.$emit("$translateRefreshStart",{language:e}),e)if($[e]){var s=function(n){z(n.key,n.table),e===u&&Y(u),t()};s.displayName="refreshPostProcessor",K(e).then(s,r)}else r();else{var l=[],c={};if(a&&a.length)for(var p=0,d=a.length;p<d;p++)l.push(K(a[p])),c[a[p]]=!0;u&&!c[u]&&l.push(K(u));var f=function(e){$={},angular.forEach(e,function(e){z(e.key,e.table)}),u&&Y(u),t()};f.displayName="refreshPostProcessor",i.all(l).then(f,r)}return o.promise},V.instant=function(e,t,n,i){var o=i&&i!==u?G(i)||i:u;if(null===e||angular.isUndefined(e))return e;if(i&&le(i),angular.isArray(e)){for(var s={},l=0,c=e.length;l<c;l++)s[e[l]]=V.instant(e[l],t,n,i);return s}if(angular.isString(e)&&e.length<1)return e;e&&(e=N.apply(e));var p,f=[];r&&f.push(r),o&&f.push(o),a&&a.length&&(f=f.concat(a));for(var h=0,g=f.length;h<g;h++){var y=f[h];if($[y]&&"undefined"!=typeof $[y][e]&&(p=ae(e,t,n,o)),"undefined"!=typeof p)break}return p||""===p||(m||v?p=q(e):(p=O.interpolate(e,t),d&&!I&&(p=ee(e,t)))),p},V.versionInfo=function(){return P},V.loaderCache=function(){return y},V.directivePriority=function(){return D},V.statefulFilter=function(){return T},V.isReady=function(){return S};var ce=i.defer();ce.promise.then(function(){S=!0}),V.onReady=function(e){var t=i.defer();return angular.isFunction(e)&&t.promise.then(e),S?t.resolve():ce.promise.then(t.resolve),t.promise},V.getAvailableLanguageKeys=function(){return w.length>0?w:null};var pe=n.$on("$translateReady",function(){ce.resolve(),pe(),pe=null}),de=n.$on("$translateChangeEnd",function(){ce.resolve(),de(),de=null});if(h){if(angular.equals($,{})&&V.use()&&V.use(V.use()),a&&a.length)for(var fe=function(e){return z(e.key,e.table),n.$emit("$translateChangeEnd",{language:e.key}),e},he=0,ge=a.length;he<ge;he++){var me=a[he];!A&&$[me]||(H[me]=K(me).then(fe))}}else n.$emit("$translateReady",{language:V.use()});return V}]}function i(e,t){"use strict";var n,i={},r="default";return i.setLocale=function(e){n=e},i.getInterpolationIdentifier=function(){return r},i.useSanitizeValueStrategy=function(e){return t.useStrategy(e),this},i.interpolate=function(n,i){i=i||{},i=t.sanitize(i,"params");var r=e(n)(i);return r=t.sanitize(r,"text")},i}function r(e,t,n,i,r,a){"use strict";var s=function(){return this.toString().replace(/^\s+|\s+$/g,"")};return{restrict:"AE",scope:!0,priority:e.directivePriority(),compile:function(t,u){var l=u.translateValues?u.translateValues:void 0,c=u.translateInterpolation?u.translateInterpolation:void 0,p=t[0].outerHTML.match(/translate-value-+/i),d="^(.*)("+n.startSymbol()+".*"+n.endSymbol()+")(.*)",f="^(.*)"+n.startSymbol()+"(.*)"+n.endSymbol()+"(.*)";return function(t,h,g){t.interpolateParams={},t.preText="",t.postText="",t.translateNamespace=o(t);var m={},v=function(e,n,i){if(n.translateValues&&angular.extend(e,r(n.translateValues)(t.$parent)),p)for(var o in i)if(Object.prototype.hasOwnProperty.call(n,o)&&"translateValue"===o.substr(0,14)&&"translateValues"!==o){var a=angular.lowercase(o.substr(14,1))+o.substr(15);e[a]=i[o]}},y=function(e){if(angular.isFunction(y._unwatchOld)&&(y._unwatchOld(),y._unwatchOld=void 0),angular.equals(e,"")||!angular.isDefined(e)){var i=s.apply(h.text()),r=i.match(d);if(angular.isArray(r)){t.preText=r[1],t.postText=r[3],m.translate=n(r[2])(t.$parent);var o=i.match(f);angular.isArray(o)&&o[2]&&o[2].length&&(y._unwatchOld=t.$watch(o[2],function(e){m.translate=e,x()}))}else m.translate=i?i:void 0}else m.translate=e;x()},b=function(e){g.$observe(e,function(t){m[e]=t,x()})};v(t.interpolateParams,g,u);var $=!0;g.$observe("translate",function(e){"undefined"==typeof e?y(""):""===e&&$||(m.translate=e,x()),$=!1});for(var w in g)g.hasOwnProperty(w)&&"translateAttr"===w.substr(0,13)&&b(w);if(g.$observe("translateDefault",function(e){t.defaultText=e,x()}),l&&g.$observe("translateValues",function(e){e&&t.$parent.$watch(function(){angular.extend(t.interpolateParams,r(e)(t.$parent))})}),p){var _=function(e){g.$observe(e,function(n){var i=angular.lowercase(e.substr(14,1))+e.substr(15);t.interpolateParams[i]=n})};for(var k in g)Object.prototype.hasOwnProperty.call(g,k)&&"translateValue"===k.substr(0,14)&&"translateValues"!==k&&_(k)}var x=function(){for(var e in m)m.hasOwnProperty(e)&&void 0!==m[e]&&C(e,m[e],t,t.interpolateParams,t.defaultText,t.translateNamespace)},C=function(t,n,i,r,o,a){n?(a&&"."===n.charAt(0)&&(n=a+n),e(n,r,c,o,i.translateLanguage).then(function(e){A(e,i,!0,t)},function(e){A(e,i,!1,t)})):A(n,i,!1,t)},A=function(t,n,r,o){if(r||"undefined"!=typeof n.defaultText&&(t=n.defaultText),"translate"===o){(r||!r&&"undefined"==typeof g.translateKeepContent)&&h.empty().append(n.preText+t+n.postText);var a=e.isPostCompilingEnabled(),s="undefined"!=typeof u.translateCompile,l=s&&"false"!==u.translateCompile;(a&&!s||l)&&i(h.contents())(n)}else{var c=g.$attr[o];"data-"===c.substr(0,5)&&(c=c.substr(5)),c=c.substr(15),h.attr(c,t)}};(l||p||g.translateDefault)&&t.$watch("interpolateParams",x,!0);var M=t.$on("translateLanguageChanged",x),S=a.$on("$translateChangeSuccess",x);h.text().length?y(g.translate?g.translate:""):g.translate&&y(g.translate),x(),t.$on("$destroy",function(){M(),S()})}}}}function o(e){"use strict";return e.translateNamespace?e.translateNamespace:e.$parent?o(e.$parent):void 0}function a(e,t){"use strict";return{compile:function(n){var i=function(){n.addClass(e.cloakClassName())},r=function(){n.removeClass(e.cloakClassName())};return e.onReady(function(){r()}),i(),function(n,o,a){a.translateCloak&&a.translateCloak.length&&(a.$observe("translateCloak",function(t){e(t).then(r,i)}),t.$on("$translateChangeSuccess",function(){e(a.translateCloak).then(r,i)}))}}}}function s(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(e,t,n){e.translateNamespace=o(e),e.translateNamespace&&"."===n.translateNamespace.charAt(0)?e.translateNamespace+=n.translateNamespace:e.translateNamespace=n.translateNamespace}}}}}function o(e){"use strict";return e.translateNamespace?e.translateNamespace:e.$parent?o(e.$parent):void 0}function u(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(e,t,n){n.$observe("translateLanguage",function(t){e.translateLanguage=t}),e.$watch("translateLanguage",function(){e.$broadcast("translateLanguageChanged")})}}}}function l(e,t){"use strict";var n=function(n,i,r,o){return angular.isObject(i)||(i=e(i)(this)),t.instant(n,i,r,o)};return t.statefulFilter()&&(n.$stateful=!0),n}function c(e){"use strict";return e("translations")}return e.$inject=["$translate"],n.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],i.$inject=["$interpolate","$translateSanitization"],r.$inject=["$translate","$q","$interpolate","$compile","$parse","$rootScope"],a.$inject=["$translate","$rootScope"],l.$inject=["$parse","$translate"],c.$inject=["$cacheFactory"],angular.module("pascalprecht.translate",["ng"]).run(e),e.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",t),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",n),n.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",i),i.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",r),r.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateCloak",a),a.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",s),s.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",u),u.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",l),l.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",c),c.displayName="$translationCache","pascalprecht.translate"}),function(e,t){"function"==typeof define&&define.amd?define([],function(){return t()}):"object"==typeof exports?module.exports=t():t()}(this,function(){function e(e,t){"use strict";return function(n){if(!n||!n.url)throw new Error("Couldn't use urlLoader since no url is given!");var i={};return i[n.queryParameter||"lang"]=n.key,t(angular.extend({url:n.url,params:i,method:"GET"},n.$http)).then(function(e){return e.data},function(){return e.reject(n.key)})}}return e.$inject=["$q","$http"],angular.module("pascalprecht.translate").factory("$translateUrlLoader",e),e.displayName="$translateUrlLoader","pascalprecht.translate"}),function(e,t){"undefined"!=typeof module&&module.exports?(t("undefined"==typeof angular?require("angular"):angular),module.exports="ngDialog"):"function"==typeof define&&define.amd?define(["angular"],t):t(e.angular)}(this,function(e){"use strict";var t=e.module("ngDialog",[]),n=e.element,i=e.isDefined,r=(document.body||document.documentElement).style,o=i(r.animation)||i(r.WebkitAnimation)||i(r.MozAnimation)||i(r.MsAnimation)||i(r.OAnimation),a="animationend webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend",s="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",u="ngdialog-disabled-animation",l={html:!1,body:!1},c={},p=[],d=!1,f=!1;return t.provider("ngDialog",function(){var t=this.defaults={className:"ngdialog-theme-default",appendClassName:"",disableAnimation:!1,plain:!1,showClose:!0,closeByDocument:!0,closeByEscape:!0,closeByNavigation:!1,appendTo:!1,preCloseCallback:!1,overlay:!0,cache:!0,trapFocus:!0,preserveFocus:!0,ariaAuto:!0,ariaRole:null,ariaLabelledById:null,ariaLabelledBySelector:null,ariaDescribedById:null,ariaDescribedBySelector:null,bodyClassName:"ngdialog-open",width:null};this.setForceHtmlReload=function(e){l.html=e||!1},this.setForceBodyReload=function(e){l.body=e||!1},this.setDefaults=function(n){e.extend(t,n)},this.setOpenOnePerName=function(e){f=e||!1};var i,r=0,h=0,g={};this.$get=["$document","$templateCache","$compile","$q","$http","$rootScope","$timeout","$window","$controller","$injector",function(m,v,y,b,$,w,_,k,x,C){var A=[],M={onDocumentKeydown:function(e){27===e.keyCode&&S.close("$escape")},activate:function(e){var t=e.data("$ngDialogOptions");t.trapFocus&&(e.on("keydown",M.onTrapFocusKeydown),A.body.on("keydown",M.onTrapFocusKeydown))},deactivate:function(e){e.off("keydown",M.onTrapFocusKeydown),A.body.off("keydown",M.onTrapFocusKeydown)},deactivateAll:function(t){e.forEach(t,function(t){var n=e.element(t);M.deactivate(n)})},setBodyPadding:function(e){var t=parseInt(A.body.css("padding-right")||0,10);A.body.css("padding-right",t+e+"px"),A.body.data("ng-dialog-original-padding",t),w.$broadcast("ngDialog.setPadding",e)},resetBodyPadding:function(){var e=A.body.data("ng-dialog-original-padding");e?A.body.css("padding-right",e+"px"):A.body.css("padding-right",""),w.$broadcast("ngDialog.setPadding",0)},performCloseDialog:function(e,t){var n=e.data("$ngDialogOptions"),r=e.attr("id"),s=c[r];if(s){if("undefined"!=typeof k.Hammer){var u=s.hammerTime;u.off("tap",i),u.destroy&&u.destroy(),delete s.hammerTime}else e.unbind("click");1===h&&A.body.unbind("keydown",M.onDocumentKeydown),e.hasClass("ngdialog-closing")||(h-=1);var l=e.data("$ngDialogPreviousFocus");l&&l.focus&&l.focus(),w.$broadcast("ngDialog.closing",e,t),h=h<0?0:h,o&&!n.disableAnimation?(s.$destroy(),e.unbind(a).bind(a,function(){M.closeDialogElement(e,t)}).addClass("ngdialog-closing")):(s.$destroy(),M.closeDialogElement(e,t)),g[r]&&(g[r].resolve({id:r,value:t,$dialog:e,remainingDialogs:h}),delete g[r]),c[r]&&delete c[r],p.splice(p.indexOf(r),1),p.length||(A.body.unbind("keydown",M.onDocumentKeydown),d=!1)}},closeDialogElement:function(e,t){var n=e.data("$ngDialogOptions");e.remove(),0===h&&(A.html.removeClass(n.bodyClassName),A.body.removeClass(n.bodyClassName),M.resetBodyPadding()),w.$broadcast("ngDialog.closed",e,t)},closeDialog:function(t,n){var i=t.data("$ngDialogPreCloseCallback");if(i&&e.isFunction(i)){var r=i.call(t,n);e.isObject(r)?r.closePromise?r.closePromise.then(function(){M.performCloseDialog(t,n)}):r.then(function(){M.performCloseDialog(t,n)},function(){}):r!==!1&&M.performCloseDialog(t,n)}else M.performCloseDialog(t,n)},onTrapFocusKeydown:function(t){var n,i=e.element(t.currentTarget);if(i.hasClass("ngdialog"))n=i;else if(n=M.getActiveDialog(),null===n)return;var r=9===t.keyCode,o=t.shiftKey===!0;r&&M.handleTab(n,t,o)},handleTab:function(e,t,n){var i=M.getFocusableElements(e);if(0===i.length)return void(document.activeElement&&document.activeElement.blur&&document.activeElement.blur());var r=document.activeElement,o=Array.prototype.indexOf.call(i,r),a=o===-1,s=0===o,u=o===i.length-1,l=!1;n?(a||s)&&(i[i.length-1].focus(),l=!0):(a||u)&&(i[0].focus(),l=!0),l&&(t.preventDefault(),t.stopPropagation())},autoFocus:function(e){var t=e[0],i=t.querySelector("*[autofocus]");if(null===i||(i.focus(),document.activeElement!==i)){var r=M.getFocusableElements(e);if(r.length>0)return void r[0].focus();var o=M.filterVisibleElements(t.querySelectorAll("h1,h2,h3,h4,h5,h6,p,span"));if(o.length>0){var a=o[0];n(a).attr("tabindex","-1").css("outline","0"),a.focus()}}},getFocusableElements:function(e){var t=e[0],n=t.querySelectorAll(s),i=M.filterTabbableElements(n);return M.filterVisibleElements(i)},filterTabbableElements:function(e){for(var t=[],i=0;i<e.length;i++){var r=e[i];"-1"!==n(r).attr("tabindex")&&t.push(r)}return t},filterVisibleElements:function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];(i.offsetWidth>0||i.offsetHeight>0)&&t.push(i)}return t},getActiveDialog:function(){var e=document.querySelectorAll(".ngdialog");return 0===e.length?null:n(e[e.length-1])},applyAriaAttributes:function(e,t){if(t.ariaAuto){if(!t.ariaRole){var n=M.getFocusableElements(e).length>0?"dialog":"alertdialog";t.ariaRole=n}t.ariaLabelledBySelector||(t.ariaLabelledBySelector="h1,h2,h3,h4,h5,h6"),t.ariaDescribedBySelector||(t.ariaDescribedBySelector="article,section,p")}t.ariaRole&&e.attr("role",t.ariaRole),M.applyAriaAttribute(e,"aria-labelledby",t.ariaLabelledById,t.ariaLabelledBySelector),M.applyAriaAttribute(e,"aria-describedby",t.ariaDescribedById,t.ariaDescribedBySelector)},applyAriaAttribute:function(e,t,i,r){if(i&&e.attr(t,i),r){var o=e.attr("id"),a=e[0].querySelector(r);if(!a)return;var s=o+"-"+t;return n(a).attr("id",s),e.attr(t,s),s}},detectUIRouter:function(){try{return e.module("ui.router"),!0}catch(t){return!1}},getRouterLocationEventName:function(){return M.detectUIRouter()?"$stateChangeSuccess":"$locationChangeSuccess"}},S={__PRIVATE__:M,open:function(o){function a(e,t){return w.$broadcast("ngDialog.templateLoading",e),$.get(e,t||{}).then(function(t){return w.$broadcast("ngDialog.templateLoaded",e),t.data||""})}function s(t){return t?e.isString(t)&&m.plain?t:"boolean"!=typeof m.cache||m.cache?a(t,{cache:v}):a(t,{cache:!1}):"Empty template"}var l=null;if(o=o||{},!(f&&o.name&&(l=o.name+" dialog",this.isOpen(l)))){var m=e.copy(t),D=++r;l=l||"ngdialog"+D,p.push(l),"undefined"!=typeof m.data&&("undefined"==typeof o.data&&(o.data={}),o.data=e.merge(e.copy(m.data),o.data)),e.extend(m,o);var T;g[l]=T=b.defer();var E;c[l]=E=e.isObject(m.scope)?m.scope.$new():w.$new();var O,P,I=e.extend({},m.resolve);return e.forEach(I,function(t,n){I[n]=e.isString(t)?C.get(t):C.invoke(t,null,null,n)}),b.all({template:s(m.template||m.templateUrl),locals:b.all(I)}).then(function(t){var r=t.template,o=t.locals;m.showClose&&(r+='<div class="ngdialog-close"></div>');var a=m.overlay?"":" ngdialog-no-overlay";if(O=n('<div id="'+l+'" class="ngdialog'+a+'"></div>'),O.html(m.overlay?'<div class="ngdialog-overlay"></div><div class="ngdialog-content" role="document">'+r+"</div>":'<div class="ngdialog-content" role="document">'+r+"</div>"),O.data("$ngDialogOptions",m),E.ngDialogId=l,m.data&&e.isString(m.data)){var s=m.data.replace(/^\s*/,"")[0];E.ngDialogData="{"===s||"["===s?e.fromJson(m.data):new String(m.data),E.ngDialogData.ngDialogId=l}else m.data&&e.isObject(m.data)&&(E.ngDialogData=m.data,E.ngDialogData.ngDialogId=l);if(m.className&&O.addClass(m.className),m.appendClassName&&O.addClass(m.appendClassName),m.width){var c=O[0].querySelector(".ngdialog-content");e.isString(m.width)?c.style.width=m.width:c.style.width=m.width+"px"}if(m.disableAnimation&&O.addClass(u),P=m.appendTo&&e.isString(m.appendTo)?e.element(document.querySelector(m.appendTo)):A.body,M.applyAriaAttributes(O,m),m.preCloseCallback){var p;e.isFunction(m.preCloseCallback)?p=m.preCloseCallback:e.isString(m.preCloseCallback)&&E&&(e.isFunction(E[m.preCloseCallback])?p=E[m.preCloseCallback]:E.$parent&&e.isFunction(E.$parent[m.preCloseCallback])?p=E.$parent[m.preCloseCallback]:w&&e.isFunction(w[m.preCloseCallback])&&(p=w[m.preCloseCallback])),p&&O.data("$ngDialogPreCloseCallback",p)}if(E.closeThisDialog=function(e){M.closeDialog(O,e)},m.controller&&(e.isString(m.controller)||e.isArray(m.controller)||e.isFunction(m.controller))){var f;m.controllerAs&&e.isString(m.controllerAs)&&(f=m.controllerAs);var g=x(m.controller,e.extend(o,{$scope:E,$element:O}),!0,f);m.bindToController&&e.extend(g.instance,{ngDialogId:E.ngDialogId,ngDialogData:E.ngDialogData,closeThisDialog:E.closeThisDialog}),"function"==typeof g?O.data("$ngDialogControllerController",g()):O.data("$ngDialogControllerController",g)}if(_(function(){var e=document.querySelectorAll(".ngdialog");M.deactivateAll(e),y(O)(E);var t=k.innerWidth-A.body.prop("clientWidth");A.html.addClass(m.bodyClassName),A.body.addClass(m.bodyClassName);var n=t-(k.innerWidth-A.body.prop("clientWidth"));n>0&&M.setBodyPadding(n),P.append(O),M.activate(O),m.trapFocus&&M.autoFocus(O),m.name?w.$broadcast("ngDialog.opened",{dialog:O,name:m.name}):w.$broadcast("ngDialog.opened",O)}),d||(A.body.bind("keydown",M.onDocumentKeydown),d=!0),m.closeByNavigation){var v=M.getRouterLocationEventName();w.$on(v,function(){M.closeDialog(O)})}if(m.preserveFocus&&O.data("$ngDialogPreviousFocus",document.activeElement),i=function(e){var t=!!m.closeByDocument&&n(e.target).hasClass("ngdialog-overlay"),i=n(e.target).hasClass("ngdialog-close");(t||i)&&S.close(O.attr("id"),i?"$closeButton":"$document")},"undefined"!=typeof k.Hammer){var b=E.hammerTime=k.Hammer(O[0]);b.on("tap",i)}else O.bind("click",i);return h+=1,S}),{id:l,closePromise:T.promise,close:function(e){M.closeDialog(O,e)}}}},openConfirm:function(i){var r=b.defer(),o=e.copy(t);i=i||{},"undefined"!=typeof o.data&&("undefined"==typeof i.data&&(i.data={}),i.data=e.merge(e.copy(o.data),i.data)),e.extend(o,i),o.scope=e.isObject(o.scope)?o.scope.$new():w.$new(),o.scope.confirm=function(e){r.resolve(e);var t=n(document.getElementById(a.id));M.performCloseDialog(t,e)};var a=S.open(o);if(a)return a.closePromise.then(function(e){return e?r.reject(e.value):r.reject()}),r.promise},isOpen:function(e){var t=n(document.getElementById(e));return t.length>0},close:function(e,t){var i=n(document.getElementById(e));if(i.length)M.closeDialog(i,t);else if("$escape"===e){var r=p[p.length-1];i=n(document.getElementById(r)),i.data("$ngDialogOptions").closeByEscape&&M.closeDialog(i,"$escape")}else S.closeAll(t);return S},closeAll:function(e){for(var t=document.querySelectorAll(".ngdialog"),i=t.length-1;i>=0;i--){var r=t[i];M.closeDialog(n(r),e)}},getOpenDialogs:function(){return p},getDefaults:function(){return t}};return e.forEach(["html","body"],function(e){if(A[e]=m.find(e),l[e]){var t=M.getRouterLocationEventName();w.$on(t,function(){A[e]=m.find(e)})}}),S}]}),t.directive("ngDialog",["ngDialog",function(t){return{restrict:"A",scope:{ngDialogScope:"="},link:function(n,i,r){i.on("click",function(i){i.preventDefault();var o=e.isDefined(n.ngDialogScope)?n.ngDialogScope:"noScope";e.isDefined(r.ngDialogClosePrevious)&&t.close(r.ngDialogClosePrevious);var a=t.getDefaults();t.open({template:r.ngDialog,className:r.ngDialogClass||a.className,appendClassName:r.ngDialogAppendClass,controller:r.ngDialogController,controllerAs:r.ngDialogControllerAs,bindToController:r.ngDialogBindToController,scope:o,data:r.ngDialogData,showClose:"false"!==r.ngDialogShowClose&&("true"===r.ngDialogShowClose||a.showClose),closeByDocument:"false"!==r.ngDialogCloseByDocument&&("true"===r.ngDialogCloseByDocument||a.closeByDocument),closeByEscape:"false"!==r.ngDialogCloseByEscape&&("true"===r.ngDialogCloseByEscape||a.closeByEscape),overlay:"false"!==r.ngDialogOverlay&&("true"===r.ngDialogOverlay||a.overlay),preCloseCallback:r.ngDialogPreCloseCallback||a.preCloseCallback,bodyClassName:r.ngDialogBodyClass||a.bodyClassName})})}}}]),t}),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,i){var r=i.has("$animateCss")?i.get("$animateCss"):null;return{link:function(i,o,a){function s(){o.hasClass("collapse")&&o.hasClass("in")||t.resolve(p(i)).then(function(){o.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),r?r(o,{addClass:"in",easing:"ease",to:{height:o[0].scrollHeight+"px"}}).start()["finally"](u):e.addClass(o,"in",{to:{height:o[0].scrollHeight+"px"}}).then(u)})}function u(){o.removeClass("collapsing").addClass("collapse").css({height:"auto"}),d(i)}function l(){return o.hasClass("collapse")||o.hasClass("in")?void t.resolve(f(i)).then(function(){o.css({height:o[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),r?r(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(i)}var p=n(a.expanding),d=n(a.expanded),f=n(a.collapsing),h=n(a.collapsed);i.$eval(a.uibCollapse)||o.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css({height:"auto"}),i.$watch(a.uibCollapse,function(e){e?l():s()})}}}]),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(i){var r=angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):n.closeOthers;r&&angular.forEach(this.groups,function(e){e!==i&&(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);t!==-1&&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,i){i.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&&i.closeOthers(e)}),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)};var r="accordiongroup-"+e.$id+"-"+Math.floor(1e4*Math.random());e.headingId=r+"-tab",e.panelId=r+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(e,t,n,i,r){i.setHeading(r(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,i,r){t.$watch(function(){return r[i.uibAccordionTransclude]},function(t){if(t){var i=angular.element(n[0].querySelector(e()));i.html(""),i.append(t)}})}}}),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$attrs","$interpolate","$timeout",function(e,t,n,i){e.closeable=!!t.close;var r=angular.isDefined(t.dismissOnTimeout)?n(t.dismissOnTimeout)(e.$parent):null;r&&i(function(){e.close()},parseInt(r,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,i,r){var o=r[0],a=r[1],s=e(i.uibUncheckable);n.find("input").css({display:"none"}),a.$render=function(){n.toggleClass(o.activeClass,angular.equals(a.$modelValue,t.$eval(i.uibBtnRadio)))},n.on(o.toggleEvent,function(){if(!i.disabled){var e=n.hasClass(o.activeClass);e&&!angular.isDefined(i.uncheckable)||t.$apply(function(){a.$setViewValue(e?null:t.$eval(i.uibBtnRadio)),a.$render()})}}),i.uibUncheckable&&t.$watch(s,function(e){i.$set("uncheckable",e?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(e,t,n,i){function r(){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 s=i[0],u=i[1];t.find("input").css({display:"none"}),u.$render=function(){t.toggleClass(s.activeClass,angular.equals(u.$modelValue,r()))},t.on(s.toggleEvent,function(){n.disabled||e.$apply(function(){u.$setViewValue(t.hasClass(s.activeClass)?o():r()),u.$render()})})}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(e,t,n,i,r){function o(){for(;b.length;)b.shift()}function a(e){for(var t=0;t<m.length;t++)m[t].slide.active=t===e}function s(n,i,u){if(!$){if(angular.extend(n,{direction:u}),angular.extend(m[y].slide||{},{direction:u}),r.enabled(t)&&!e.$currentTransition&&m[i].element&&g.slides.length>1){m[i].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,r.on("addClass",m[i].element,function(t,n){if("close"===n&&(e.$currentTransition=null,r.off("addClass",t),b.length)){var i=b.pop().slide,a=i.index,u=a>g.getCurrentIndex()?"next":"prev";o(),s(i,a,u)}})}e.active=n.index,y=n.index,a(i),p()}}function u(e){for(var t=0;t<m.length;t++)if(m[t].slide===e)return t}function l(){f&&(n.cancel(f),f=null)}function c(t){t.length||(e.$currentTransition=null,o())}function p(){l();var t=+e.interval;!isNaN(t)&&t>0&&(f=n(d,t))}function d(){var t=+e.interval;h&&!isNaN(t)&&t>0&&m.length?e.next():e.pause()}var f,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[u(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=u(t),i=b.indexOf(m[n]);i!==-1&&b.splice(i,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 i=u(t.slide);void 0===n&&(n=i>g.getCurrentIndex()?"next":"prev"),t.slide.index===y||e.$currentTransition?t&&t.slide.index!==y&&e.$currentTransition&&b.push(m[i]):s(t.slide,i,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,p())},e.$on("$destroy",function(){$=!0,l()}),e.$watch("noTransition",function(e){r.enabled(t,!e)}),e.$watch("interval",p),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,i){i.addSlide(e,t),e.$on("$destroy",function(){i.removeSlide(e)})}}}).animation(".item",["$animateCss",function(e){function t(e,t,n){e.removeClass(t),n&&n()}var n="uib-slideDirection";return{beforeAddClass:function(i,r,o){if("active"===r){var a=!1,s=i.data(n),u="next"===s?"left":"right",l=t.bind(this,i,u+" "+s,o);return i.addClass(s),e(i,{addClass:u}).start().done(l),function(){a=!0}}o()},beforeRemoveClass:function(i,r,o){if("active"===r){var a=!1,s=i.data(n),u="next"===s?"left":"right",l=t.bind(this,i,u,o);return e(i,{addClass:u}).start().done(l),function(){a=!0}}o()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter",function(e,t,n,i){function r(e,t){var n=[],r=e.split(""),o=e.indexOf("'");if(o>-1){var a=!1;e=e.split("");for(var s=o;s<e.length;s++)a?("'"===e[s]&&(s+1<e.length&&"'"===e[s+1]?(e[s+1]="$",r[s+1]=""):(r[s]="",a=!1)),e[s]="$"):"'"===e[s]&&(e[s]="$",r[s]="",a=!0);e=e.join("")}return angular.forEach(f,function(i){var o=e.indexOf(i.key);if(o>-1){e=e.split(""),r[o]="("+i.regex+")",e[o]="$";for(var a=o+1,s=o+i.key.length;a<s;a++)r[a]="",e[a]="$";e=e.join(""),n.push({index:o,key:i.key,apply:i[t],matcher:i.regex})}}),{regex:new RegExp("^"+r.join("")+"$"),map:i(n,"index")}}function o(e,t,n){return!(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||n<31)}function a(e){return parseInt(e,10)}function s(e,t){return e&&t?p(e,t):e}function u(e,t){return e&&t?p(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 p(e,t,n){n=n?-1:1;var i=e.getTimezoneOffset(),r=l(t,i);return c(e,n*(r-i))}var d,f,h=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){d=t.id,this.parsers={},this.formatters={},f=[{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=e<69?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],i=t[2],r=t[3];this.hours+=a(n+i),this.minutes+=a(n+r)},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!==d&&this.init(),this.formatters[n]||(this.formatters[n]=r(n,"formatter"));var i=this.formatters[n],o=i.map,a=n;return o.reduce(function(t,n,i){var r=a.match(new RegExp("(.*)"+n.key));r&&angular.isString(r[1])&&(t+=r[1],a=a.replace(r[1]+n.key,""));var s=i===o.length-1?a:"";return n.apply?t+n.apply.call(null,e)+s:t+s},"")},this.parse=function(n,i,a){if(!angular.isString(n)||!i)return n;i=t.DATETIME_FORMATS[i]||i,i=i.replace(h,"\\$&"),t.id!==d&&this.init(),this.parsers[i]||(this.parsers[i]=r(i,"apply"));var s=this.parsers[i],u=s.regex,l=s.map,c=n.match(u),p=!1;if(c&&c.length){var f,g;angular.isDate(a)&&!isNaN(a.getTime())?f={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"),f={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var m=1,v=c.length;m<v;m++){var y=l[m-1];"Z"===y.matcher&&(p=!0),y.apply&&y.apply.call(f,c[m])}var b=p?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,$=p?Date.prototype.setUTCHours:Date.prototype.setHours;return o(f.year,f.month,f.date)&&(!angular.isDate(a)||isNaN(a.getTime())||p?(g=new Date(0),b.call(g,f.year,f.month,f.date),$.call(g,f.hours||0,f.minutes||0,f.seconds||0,f.milliseconds||0)):(g=new Date(a),b.call(g,f.year,f.month,f.date),$.call(g,f.hours,f.minutes,f.seconds,f.milliseconds))),g}},this.toTimezone=s,this.fromTimezone=u,this.timezoneToOffset=l,this.addDateMinutes=c,this.convertTimezoneToLocal=p}]),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(i,r){function o(e,t,n){u.push(e),l.push({scope:e,element:t}),h.forEach(function(t,n){a(t,e)}),e.$on("$destroy",s)}function a(t,i){var r=t.match(n),o=i.$eval(r[1]),a=r[2],s=c[t];if(!s){var u=function(t){var n=null;l.some(function(e){var i=e.scope.$eval(d);if(i===t)return n=e,!0}),s.lastActivated!==n&&(s.lastActivated&&e.removeClass(s.lastActivated.element,o),n&&e.addClass(n.element,o),s.lastActivated=n)};c[t]=s={lastActivated:null,scope:i,watchFn:u,compareWithExp:a,watcher:i.$watch(a,u)}}s.watchFn(i.$eval(a))}function s(e){var t=e.targetScope,n=u.indexOf(t);if(u.splice(n,1),l.splice(n,1),u.length){var i=u[0];angular.forEach(c,function(e){e.scope===t&&(e.watcher=i.$watch(e.compareWithExp,e.watchFn),e.scope=i)})}else c={}}var u=[],l=[],c={},p=r.uibIsClass.match(t),d=p[2],f=p[1],h=f.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,i,r,o,a,s,u,l,c){function p(t){e.datepickerMode=t,e.datepickerOptions.datepickerMode=t}var d=this,f={$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:s.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":d[t]=angular.isDefined(e.datepickerOptions[t])?i(e.datepickerOptions[t])(e.$parent):s[t];break;case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":d[t]=angular.isDefined(e.datepickerOptions[t])?e.datepickerOptions[t]:s[t];break;case"startingDay":angular.isDefined(e.datepickerOptions.startingDay)?d.startingDay=e.datepickerOptions.startingDay:angular.isNumber(s.startingDay)?d.startingDay=s.startingDay:d.startingDay=(r.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":e.$watch("datepickerOptions."+t,function(e){e?angular.isDate(e)?d[t]=c.fromTimezone(new Date(e),h.timezone):(u&&o.warn("Literal date support has been deprecated, please switch to date object usage"),d[t]=new Date(a(e,"medium"))):d[t]=s[t]?c.fromTimezone(new Date(s[t]),h.timezone):null,d.refreshView()});break;case"maxMode":case"minMode":e.datepickerOptions[t]?e.$watch(function(){return e.datepickerOptions[t]},function(n){d[t]=e[t]=angular.isDefined(n)?n:datepickerOptions[t],("minMode"===t&&d.modes.indexOf(e.datepickerOptions.datepickerMode)<d.modes.indexOf(d[t])||"maxMode"===t&&d.modes.indexOf(e.datepickerOptions.datepickerMode)>d.modes.indexOf(d[t]))&&(e.datepickerMode=d[t],e.datepickerOptions.datepickerMode=d[t])}):d[t]=e[t]=s[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,d.refreshView()})),e.isActive=function(t){return 0===d.compare(t.date,d.activeDate)&&(e.activeDateId=t.uid,!0)},this.init=function(t){f=t,h=t.$options||s.ngModelOptions,e.datepickerOptions.initDate?(d.activeDate=c.fromTimezone(e.datepickerOptions.initDate,h.timezone)||new Date,e.$watch("datepickerOptions.initDate",function(e){e&&(f.$isEmpty(f.$modelValue)||f.$invalid)&&(d.activeDate=c.fromTimezone(e,h.timezone),d.refreshView())})):d.activeDate=new Date;var n=f.$modelValue?new Date(f.$modelValue):new Date;this.activeDate=isNaN(n)?c.fromTimezone(new Date,h.timezone):c.fromTimezone(n,h.timezone),f.$render=function(){d.render()}},this.render=function(){if(f.$viewValue){var e=new Date(f.$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=f.$viewValue?new Date(f.$viewValue):null;t=c.fromTimezone(t,h.timezone),f.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t))}},this.createDateObject=function(t,n){var i=f.$viewValue?new Date(f.$viewValue):null;i=c.fromTimezone(i,h.timezone);var r=new Date;r=c.fromTimezone(r,h.timezone);var o=this.compare(t,r),a={date:t,label:c.filter(t,n),selected:i&&0===this.compare(t,i),disabled:this.isDisabled(t),past:o<0,current:0===o,future:o>0,customClass:this.customClass(t)||null};return i&&0===this.compare(t,i)&&(e.selectedDt=a),d.activeDate&&0===this.compare(a.date,d.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===d.minMode){var n=f.$viewValue?c.fromTimezone(new Date(f.$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),f.$setViewValue(n),f.$render()}else d.activeDate=t,p(d.modes[d.modes.indexOf(e.datepickerMode)-1]),e.$emit("uib:datepicker.mode");e.$broadcast("uib:datepicker.focus")},e.move=function(e){var t=d.activeDate.getFullYear()+e*(d.step.years||0),n=d.activeDate.getMonth()+e*(d.step.months||0);d.activeDate.setFullYear(t,n,1),d.refreshView()},e.toggleMode=function(t){t=t||1,e.datepickerMode===d.maxMode&&1===t||e.datepickerMode===d.minMode&&t===-1||(p(d.modes[d.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(){d.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(),d.shortcutPropagation||t.stopPropagation(),"enter"===n||"space"===n){if(d.isDisabled(d.activeDate))return;e.select(d.activeDate)}else!t.ctrlKey||"up"!==n&&"down"!==n?(d.handleKeyDown(n,t),d.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 i(e,t){return 1!==t||e%4!==0||e%100===0&&e%400!==0?o[t]:29}function r(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,i=new Array(t),r=new Date(e),o=0;o<t;)n=new Date(r),i[o++]=n,r.setDate(r.getDate()+1);return i},this._refreshView=function(){var t=this.activeDate.getFullYear(),i=this.activeDate.getMonth(),o=new Date(this.activeDate);o.setFullYear(t,i,1);var a=this.startingDay-o.getDay(),s=a>0?7-a:-a,u=new Date(o);s>0&&u.setDate(-s+1);for(var l=this.getDates(u,42),c=0;c<42;c++)l[c]=angular.extend(this.createDateObject(l[c],this.formatDay),{secondary:l[c].getMonth()!==i,uid:e.uniqueId+"-"+c});e.labels=new Array(7);for(var p=0;p<7;p++)e.labels[p]={abbr:n(l[p].date,this.formatDayHeader),full:n(l[p].date,"EEEE")};if(e.title=n(this.activeDate,this.formatDayTitle),e.rows=this.split(l,7),e.showWeeks){e.weekNumbers=[];for(var d=(11-this.startingDay)%7,f=e.rows.length,h=0;h<f;h++)e.weekNumbers.push(r(e.rows[h][d].date))}},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),i=new Date(t.getFullYear(),t.getMonth(),t.getDate());return n.setFullYear(e.getFullYear()),i.setFullYear(t.getFullYear()),n-i},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 r=this.activeDate.getMonth()+("pageup"===e?-1:1);this.activeDate.setMonth(r,1),n=Math.min(i(this.activeDate.getFullYear(),this.activeDate.getMonth()),n)}else"home"===e?n=1:"end"===e&&(n=i(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,i=new Array(12),r=this.activeDate.getFullYear(),o=0;o<12;o++)t=new Date(this.activeDate),t.setFullYear(r,o,1),i[o]=angular.extend(this.createDateObject(t,this.formatMonth),{uid:e.uniqueId+"-"+o});e.title=n(this.activeDate,this.formatMonthTitle),e.rows=this.split(i,3)},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth()),i=new Date(t.getFullYear(),t.getMonth());return n.setFullYear(e.getFullYear()),i.setFullYear(t.getFullYear()),n-i},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 i=this.activeDate.getFullYear()+("pageup"===e?-1:1);this.activeDate.setFullYear(i)}else"home"===e?n=0:"end"===e&&(n=11);this.activeDate.setMonth(n)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(e,t,n){function i(e){return parseInt((e-1)/o,10)*o+1}var r,o;this.element=t,this.yearpickerInit=function(){r=this.yearColumns,o=this.yearRows*r,this.step={years:o}},this._refreshView=function(){for(var t,n=new Array(o),a=0,s=i(this.activeDate.getFullYear());a<o;a++)t=new Date(this.activeDate),t.setFullYear(s+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,r),e.columns=r},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-=r:"right"===e?n+=1:"down"===e?n+=r:"pageup"===e||"pagedown"===e?n+=("pageup"===e?-1:1)*o:"home"===e?n=i(this.activeDate.getFullYear()):"end"===e&&(n=i(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,i){var r=i[0],o=i[1];r.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,i){var r=i[0],o=i[1];o.init(r)}}}).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,i){var r=i[0],o=i[1];o.init(r)}}}).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,i){var r=i[0];angular.extend(r,i[1]),r.yearpickerInit(),r.refreshView()}}}),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(e,t){var n,i,r={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 i(e){return"static"===(t.getComputedStyle(e).position||"static")}n=this.getRawNode(n);for(var r=n.offsetParent||e[0].documentElement;r&&r!==e[0].documentElement&&i(r);)r=r.offsetParent;return r||e[0].documentElement},scrollbarWidth:function(r){if(r){if(angular.isUndefined(i)){var o=e.find("body");o.addClass("uib-position-body-scrollbar-measure"),i=t.innerWidth-o[0].clientWidth,i=isFinite(i)?i:0,o.removeClass("uib-position-body-scrollbar-measure")}return i}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),i=this.parseStyle(n.paddingRight),r=this.parseStyle(n.paddingBottom),o=this.scrollParent(e,!1,!0),s=this.scrollbarWidth(o,a.test(o.tagName));return{scrollbarWidth:s,widthOverflow:o.scrollWidth>o.clientWidth,right:i+s,originalRight:i,heightOverflow:o.scrollHeight>o.clientHeight,bottom:r+s,originalBottom:r}},isScrollable:function(e,n){e=this.getRawNode(e);var i=n?r.hidden:r.normal,o=t.getComputedStyle(e);return i.test(o.overflow+o.overflowY+o.overflowX)},scrollParent:function(n,i,o){n=this.getRawNode(n);var a=i?r.hidden:r.normal,s=e[0].documentElement,u=t.getComputedStyle(n);if(o&&a.test(u.overflow+u.overflowY+u.overflowX))return n;var l="absolute"===u.position,c=n.parentElement||s;if(c===s||"fixed"===u.position)return s;for(;c.parentElement&&c!==s;){var p=t.getComputedStyle(c);if(l&&"static"!==p.position&&(l=!1),!l&&a.test(p.overflow+p.overflowY+p.overflowX))break;c=c.parentElement}return c},position:function(n,i){n=this.getRawNode(n);var r=this.offset(n);if(i){var o=t.getComputedStyle(n);r.top-=this.parseStyle(o.marginTop),r.left-=this.parseStyle(o.marginLeft)}var a=this.offsetParent(n),s={top:0,left:0};return a!==e[0].documentElement&&(s=this.offset(a),s.top+=a.clientTop-a.scrollTop,s.left+=a.clientLeft-a.scrollLeft),{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-s.top),left:Math.round(r.left-s.left)}},offset:function(n){n=this.getRawNode(n);var i=n.getBoundingClientRect();return{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+(t.pageYOffset||e[0].documentElement.scrollTop)),left:Math.round(i.left+(t.pageXOffset||e[0].documentElement.scrollLeft))}},viewportOffset:function(n,i,r){n=this.getRawNode(n),r=r!==!1;var o=n.getBoundingClientRect(),a={top:0,left:0,bottom:0,right:0},s=i?e[0].documentElement:this.scrollParent(n),u=s.getBoundingClientRect();if(a.top=u.top+s.clientTop,a.left=u.left+s.clientLeft,s===e[0].documentElement&&(a.top+=t.pageYOffset,a.left+=t.pageXOffset),a.bottom=a.top+s.clientHeight,a.right=a.left+s.clientWidth,r){var l=t.getComputedStyle(s);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,i,r){e=this.getRawNode(e),n=this.getRawNode(n);var a=angular.isDefined(n.offsetWidth)?n.offsetWidth:n.prop("offsetWidth"),s=angular.isDefined(n.offsetHeight)?n.offsetHeight:n.prop("offsetHeight");i=this.parsePlacement(i);var u=r?this.offset(e):this.position(e),l={top:0,left:0,placement:""};if(i[2]){var c=this.viewportOffset(e,r),p=t.getComputedStyle(n),d={width:a+Math.round(Math.abs(this.parseStyle(p.marginLeft)+this.parseStyle(p.marginRight))),height:s+Math.round(Math.abs(this.parseStyle(p.marginTop)+this.parseStyle(p.marginBottom)))};if(i[0]="top"===i[0]&&d.height>c.top&&d.height<=c.bottom?"bottom":"bottom"===i[0]&&d.height>c.bottom&&d.height<=c.top?"top":"left"===i[0]&&d.width>c.left&&d.width<=c.right?"right":"right"===i[0]&&d.width>c.right&&d.width<=c.left?"left":i[0],i[1]="top"===i[1]&&d.height-u.height>c.bottom&&d.height-u.height<=c.top?"bottom":"bottom"===i[1]&&d.height-u.height>c.top&&d.height-u.height<=c.bottom?"top":"left"===i[1]&&d.width-u.width>c.right&&d.width-u.width<=c.left?"right":"right"===i[1]&&d.width-u.width>c.left&&d.width-u.width<=c.right?"left":i[1],"center"===i[1])if(o.vertical.test(i[0])){var f=u.width/2-a/2;c.left+f<0&&d.width-u.width<=c.right?i[1]="left":c.right+f<0&&d.width-u.width<=c.left&&(i[1]="right")}else{var h=u.height/2-d.height/2;c.top+h<0&&d.height-u.height<=c.bottom?i[1]="top":c.bottom+h<0&&d.height-u.height<=c.top&&(i[1]="bottom")}}switch(i[0]){case"top":l.top=u.top-s;break;case"bottom":l.top=u.top+u.height;break;case"left":l.left=u.left-a;break;case"right":l.left=u.left+u.width}switch(i[1]){case"top":l.top=u.top;break;case"bottom":l.top=u.top+u.height-s;break;case"left":l.left=u.left;break;case"right":l.left=u.left+u.width-a;break;case"center":o.vertical.test(i[0])?l.left=u.left+u.width/2-a/2:l.top=u.top+u.height/2-s/2}return l.top=Math.round(l.top),l.left=Math.round(l.left),l.placement="center"===i[1]?i[0]:i[0]+"-"+i[1],l},positionArrow:function(e,n){e=this.getRawNode(e);var i=e.querySelector(".tooltip-inner, .popover-inner");if(i){var r=angular.element(i).hasClass("tooltip-inner"),a=r?e.querySelector(".tooltip-arrow"):e.querySelector(".arrow");if(a){var s={top:"",bottom:"",left:"",right:""};if(n=this.parsePlacement(n),"center"===n[1])return void angular.element(a).css(s);var u="border-"+n[0]+"-width",l=t.getComputedStyle(a)[u],c="border-";c+=o.vertical.test(n[0])?n[0]+"-"+n[1]:n[1]+"-"+n[0],c+="-radius";var p=t.getComputedStyle(r?i:e)[c];switch(n[0]){case"top":s.bottom=r?"0":"-"+l;break;case"bottom":s.top=r?"0":"-"+l;break;case"left":s.right=r?"0":"-"+l;break;case"right":s.left=r?"0":"-"+l}s[n[1]]=p,angular.element(a).css(s)}}}}}]),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,i,r,o,a,s,u,l,c,p,d,f,h,g){function m(t){var n=p.parse(t,_,e.date);if(isNaN(n))for(var i=0;i<I.length;i++)if(n=p.parse(t,I[i],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 p.toTimezone(t,L)}return E.$options&&E.$options.allowInvalid?e:void 0}function y(e,t){var i=e||t;return!n.ngRequired&&!i||(angular.isNumber(i)&&(i=new Date(i)),!i||(!(!angular.isDate(i)||isNaN(i))||!!angular.isString(i)&&!isNaN(m(t))))}function b(n){if(e.isOpen||!e.disabled){var i=P[0],r=t[0].contains(n.target),o=void 0!==i.contains&&i.contains(n.target);!e.isOpen||r||o||e.$apply(function(){e.isOpen=!1})}}function $(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 i=angular.element(P[0].querySelector(".uib-datepicker-popup")),r=n.popupPlacement?n.popupPlacement:d.placement,o=l.positionElements(t,i,r,x);i.css({top:o.top+"px",left:o.left+"px"}),i.hasClass("uib-position-measure")&&i.removeClass("uib-position-measure")}}var _,k,x,C,A,M,S,D,T,E,O,P,I,L,j=!1,N=[];this.init=function(r){if(E=r,O=r.$options,k=angular.isDefined(n.closeOnDateSelection)?e.$parent.$eval(n.closeOnDateSelection):d.closeOnDateSelection,x=angular.isDefined(n.datepickerAppendToBody)?e.$parent.$eval(n.datepickerAppendToBody):d.appendToBody,C=angular.isDefined(n.onOpenFocus)?e.$parent.$eval(n.onOpenFocus):d.onOpenFocus,A=angular.isDefined(n.datepickerPopupTemplateUrl)?n.datepickerPopupTemplateUrl:d.datepickerPopupTemplateUrl,M=angular.isDefined(n.datepickerTemplateUrl)?n.datepickerTemplateUrl:d.datepickerTemplateUrl,I=angular.isDefined(n.altInputFormats)?e.$parent.$eval(n.altInputFormats):d.altInputFormats,e.showButtonBar=angular.isDefined(n.showButtonBar)?e.$parent.$eval(n.showButtonBar):d.showButtonBar,d.html5Types[n.type]?(_=d.html5Types[n.type],j=!0):(_=n.uibDatepickerPopup||d.datepickerPopup,n.$observe("uibDatepickerPopup",function(e,t){var n=e||d.datepickerPopup;if(n!==_&&(_=n,E.$modelValue=null,!_))throw new Error("uibDatepickerPopup must have a date format specified.")})),!_)throw new Error("uibDatepickerPopup must have a date format specified.");if(j&&n.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");S=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>"),O?(L=O.timezone,e.ngModelOptions=angular.copy(O),e.ngModelOptions.timezone=null,e.ngModelOptions.updateOnDefault===!0&&(e.ngModelOptions.updateOn=e.ngModelOptions.updateOn?e.ngModelOptions.updateOn+" default":"default"),S.attr("ng-model-options","ngModelOptions")):L=null,S.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":A}),D=angular.element(S.children()[0]),D.attr("template-url",M),e.datepickerOptions||(e.datepickerOptions={}),j&&"month"===n.type&&(e.datepickerOptions.datepickerMode="month",e.datepickerOptions.minMode="month"),D.attr("datepicker-options","datepickerOptions"),j?E.$formatters.push(function(t){return e.date=p.fromTimezone(t,L),t}):(E.$$parserName="date",E.$validators.date=y,E.$parsers.unshift(v),E.$formatters.push(function(t){return E.$isEmpty(t)?(e.date=t,t):(angular.isNumber(t)&&(t=new Date(t)),e.date=p.fromTimezone(t,L),p.filter(e.date,_))})),E.$viewChangeListeners.push(function(){e.date=m(E.$viewValue)}),t.on("keydown",$),P=i(S)(e),S.remove(),x?s.find("body").append(P):t.after(P),e.$on("$destroy",function(){for(e.isOpen===!0&&(u.$$phase||e.$apply(function(){e.isOpen=!1})),P.remove(),t.off("keydown",$),s.off("click",b),T&&T.off("scroll",w),angular.element(a).off("resize",w);N.length;)N.shift()()})},e.getText=function(t){return e[t+"Text"]||d[t+"Text"]},e.isDisabled=function(t){"today"===t&&(t=p.fromTimezone(new Date,L));var n={};return angular.forEach(["minDate","maxDate"],function(t){e.datepickerOptions[t]?angular.isDate(e.datepickerOptions[t])?n[t]=p.fromTimezone(new Date(e.datepickerOptions[t]),L):(g&&r.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 i=e.date?p.filter(e.date,_):null;t.val(i),E.$setViewValue(i),k&&(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 i=new Date;angular.isDate(e.date)?(t=new Date(e.date),t.setFullYear(i.getFullYear(),i.getMonth(),i.getDate())):t=new Date(i.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&&N.push(e.$parent.$watch(o(n.ngDisabled),function(t){e.disabled=t})),e.$watch("isOpen",function(i){i?e.disabled?e.isOpen=!1:f(function(){w(),C&&e.$broadcast("uib:datepicker.focus"),s.on("click",b);var i=n.popupPlacement?n.popupPlacement:d.placement;x||l.parsePlacement(i)[2]?(T=T||angular.element(l.scrollParent(t)),T&&T.on("scroll",w)):T=null,angular.element(a).on("resize",w)},0,!1):(s.off("click",b),T&&T.off("scroll",w),angular.element(a).off("resize",w))}),e.$on("uib:datepicker.mode",function(){f(w,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(e,t,n,i){var r=i[0],o=i[1];o.init(r)}}}).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 i;return function(){var r=this,o=Array.prototype.slice.call(arguments);i&&e.cancel(i),i=e(function(){t.apply(r,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",i),o.on("keydown",r)),n&&n!==t&&(n.isOpen=!1),n=t},this.close=function(t,o){n===t&&(n=null,e.off("click",i),o.off("keydown",r))};var i=function(e){if(n&&!(e&&"disabled"===n.getAutoClose()||e&&3===e.which)){var i=n.getToggleElement();if(!(e&&i&&i[0].contains(e.target))){var r=n.getDropdownElement();e&&"outsideClick"===n.getAutoClose()&&r&&r[0].contains(e.target)||(n.isOpen=!1,t.$$phase||n.$apply())}}},r=function(e){27===e.which?(e.stopPropagation(),n.focusToggleElement(),i()):n.isKeynavEnabled()&&[38,40].indexOf(e.which)!==-1&&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,i,r,o,a,s,u,l,c){var p,d,f=this,h=e.$new(),g=r.appendToOpenClass,m=r.openClass,v=angular.noop,y=n.onToggle?i(n.onToggle):angular.noop,b=!1,$=null,w=!1,_=u.find("body");t.addClass("dropdown"),this.init=function(){if(n.isOpen&&(d=i(n.isOpen),v=d.assign,e.$watch(d,function(e){h.isOpen=!!e})),angular.isDefined(n.dropdownAppendTo)){var r=i(n.dropdownAppendTo)(h);r&&($=angular.element(r))}b=angular.isDefined(n.dropdownAppendToBody),w=angular.isDefined(n.keyboardNav),b&&!$&&($=_),$&&f.dropdownMenu&&($.append(f.dropdownMenu),t.on("$destroy",function(){f.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 f.toggleElement},h.getAutoClose=function(){return n.autoClose||"always"},h.getElement=function(){return t},h.isKeynavEnabled=function(){return w},h.focusDropdownEntry=function(e){var n=f.dropdownMenu?angular.element(f.dropdownMenu).find("a"):t.find("ul").eq(0).find("a");switch(e){case 40:angular.isNumber(f.selectedOption)?f.selectedOption=f.selectedOption===n.length-1?f.selectedOption:f.selectedOption+1:f.selectedOption=0;break;case 38:angular.isNumber(f.selectedOption)?f.selectedOption=0===f.selectedOption?0:f.selectedOption-1:f.selectedOption=n.length-1}n[f.selectedOption].focus()},h.getDropdownElement=function(){return f.dropdownMenu},h.focusToggleElement=function(){f.toggleElement&&f.toggleElement[0].focus()},h.$watch("isOpen",function(n,i){if($&&f.dropdownMenu){var r,u,d,w=s.positionElements(t,f.dropdownMenu,"bottom-left",!0);if(r={top:w.top+"px",display:n?"block":"none"},u=f.dropdownMenu.hasClass("dropdown-menu-right"),u?(r.left="auto",d=s.scrollbarWidth(!0),r.right=window.innerWidth-d-(w.left+t.prop("offsetWidth"))+"px"):(r.left=w.left+"px",r.right="auto"),!b){var _=s.offset($);r.top=w.top-_.top+"px",u?r.right=window.innerWidth-(w.left-_.left+t.prop("offsetWidth"))+"px":r.left=w.left-_.left+"px"}f.dropdownMenu.css(r)}var k=$?$:t,x=k.hasClass($?g:m);if(x===!n&&a[n?"addClass":"removeClass"](k,$?g:m).then(function(){angular.isDefined(n)&&n!==i&&y(e,{open:!!n})}),n)f.dropdownMenuTemplateUrl&&c(f.dropdownMenuTemplateUrl).then(function(e){p=h.$new(),l(e.trim())(p,function(e){var t=e;f.dropdownMenu.replaceWith(t),f.dropdownMenu=t})}),h.focusToggleElement(),o.open(h,t);else{if(f.dropdownMenuTemplateUrl){p&&p.$destroy();var C=angular.element('<ul class="dropdown-menu"></ul>');f.dropdownMenu.replaceWith(C),f.dropdownMenu=C}o.close(h,t),f.selectedOption=null}angular.isFunction(v)&&v(e,n)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(e,t,n,i){i.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(e,t,n,i){if(i&&!angular.isDefined(n.dropdownNested)){t.addClass("dropdown-menu");var r=n.templateUrl;r&&(i.dropdownMenuTemplateUrl=r),i.dropdownMenu||(i.dropdownMenu=t)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(e,t,n,i){if(i){t.addClass("dropdown-toggle"),i.toggleElement=t;var r=function(r){r.preventDefault(),t.hasClass("disabled")||n.disabled||e.$apply(function(){i.toggle()})};t.bind("click",r),t.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(i.isOpen,function(e){t.attr("aria-expanded",!!e)}),e.$on("$destroy",function(){t.unbind("click",r)})}}}}),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,i=0;i<e.length;i++)if(t===e[i].key){n=i;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 i=e[t];if(i){var r=i.indexOf(n);r!==-1&&i.splice(r,1),i.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 i=e.resolver?t.get(e.resolver):null;return{resolve:function(e,r,o,a){if(i)return i.resolve(e,r,o,a);var s=[];return angular.forEach(e,function(e){angular.isFunction(e)||angular.isArray(e)?s.push(n.resolve(t.invoke(e))):angular.isString(e)?s.push(n.resolve(t.get(e))):s.push(n.resolve(e))}),n.all(s).then(function(t){var n={},i=0;return angular.forEach(e,function(e,r){n[r]=t[i++]}),n})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(e,t,n){function i(t,i,r){r.modalInClass&&(e.addClass(i,r.modalInClass),t.$on(n.NOW_CLOSING_EVENT,function(n,o){var a=o();t.modalOptions.animation?e.removeClass(i,r.modalInClass).then(a):a()}))}return{replace:!0,templateUrl:"uib/template/modal/backdrop.html",compile:function(e,t){return e.addClass(t.backdropClass),i}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(e,t,n,i){return{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(r,o,a){o.addClass(a.windowClass||""),o.addClass(a.windowTopClass||""),r.size=a.size,r.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",r.close),r.$isRendered=!0;var s=t.defer();a.$observe("modalRender",function(e){"true"===e&&s.resolve()}),s.promise.then(function(){var s=null;a.modalInClass&&(s=n(o,{addClass:a.modalInClass}).start(),r.$on(e.NOW_CLOSING_EVENT,function(e,t){var i=t();n(o,{removeClass:a.modalInClass}).start().then(i)})),t.when(s).then(function(){var t=e.getTop();if(t&&e.modalRendered(t.key),!i[0].activeElement||!o[0].contains(i[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,i,r){r(e.$parent,function(e){t.empty(),t.append(e)})}}}).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(e,t,n,i,r,o,a,s,u){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&&e<x&&(e=x),e}function p(e,t){var n=w.get(e).value,i=n.appendTo;w.remove(e),C=w.top(),C&&(x=parseInt(C.value.modalDomEl.attr("index"),10)),h(n.modalDomEl,n.modalScope,function(){var t=n.openedClass||$;_.remove(t,e);var r=_.hasKey(t);i.toggleClass(t,r),!r&&b&&b.heightOverflow&&b.scrollbarWidth&&(b.originalRight?i.css({paddingRight:b.originalRight+"px"}):i.css({paddingRight:""}),b=null),d(!0)},n.closedDeferred),f(),t&&t.focus?t.focus():i.focus&&i.focus()}function d(e){var t;w.length()>0&&(t=w.top().value,t.modalDomEl.toggleClass(t.windowTopClass||"",e))}function f(){if(v&&c()===-1){var e=y;h(v,y,function(){e=null}),v=void 0,y=void 0}}function h(t,n,i,r){function a(){a.done||(a.done=!0,e.leave(t).then(function(){t.remove(),r&&r.resolve()}),n.$destroy(),i&&i())}var s,u=null,l=function(){return s||(s=o.defer(),u=s.promise),function(){s.resolve()}};return n.$broadcast(k.NOW_CLOSING_EVENT,l),o.when(u).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(),r.$apply(function(){k.dismiss(t.key,"escape key press")}));break;case 9:var n=k.loadFocusElementList(t),i=!1;e.shiftKey?(k.isFocusInFirstItem(e,n)||k.isModalFocused(e,t))&&(i=k.focusLastFocusableElement(n)):k.isFocusInLastItem(e,n)&&(i=k.focusFirstFocusableElement(n)),i&&(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=s.createNew(),_=a.createNew(),k={NOW_CLOSING_EVENT:"modal.stack.now-closing"},x=0,C=null,A="a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]";return r.$watch(c,function(e){y&&(y.index=e)}),n.on("keydown",g),r.$on("$destroy",function(){n.off("keydown",g)}),k.open=function(t,o){var a=n[0].activeElement,s=o.openedClass||$;d(!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}),_.put(s,t);var l=o.appendTo,p=c();if(!l.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");p>=0&&!v&&(y=r.$new(!0),y.modalOptions=o,y.index=p,v=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>'),v.attr("backdrop-class",o.backdropClass),o.animation&&v.attr("modal-animation","true"),i(v)(y),e.enter(v,l),b=u.scrollbarPadding(l),b.heightOverflow&&b.scrollbarWidth&&l.css({paddingRight:b.right+"px"})),x=C?parseInt(C.value.modalDomEl.attr("index"),10)+1:0;var f=angular.element('<div uib-modal-window="modal-window"></div>');f.attr({"template-url":o.windowTemplateUrl,"window-class":o.windowClass,"window-top-class":o.windowTopClass,size:o.size,index:x,animate:"animate"}).html(o.content),o.animation&&f.attr("modal-animation","true"),l.addClass(s),e.enter(i(f)(o.scope),l),w.top().value.modalDomEl=f,w.top().value.modalOpener=a},k.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),p(e,n.value.modalOpener),!0):!n},k.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),p(e,n.value.modalOpener),!0):!n},k.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},k.getTop=function(){return w.top()},k.modalRendered=function(e){var t=w.get(e);t&&t.value.renderDeferred.resolve()},k.focusFirstFocusableElement=function(e){return e.length>0&&(e[0].focus(),!0)},k.focusLastFocusableElement=function(e){return e.length>0&&(e[e.length-1].focus(),!0)},k.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},k.isFocusInFirstItem=function(e,t){return t.length>0&&(e.target||e.srcElement)===t[0]},k.isFocusInLastItem=function(e,t){return t.length>0&&(e.target||e.srcElement)===t[t.length-1]},k.loadFocusElementList=function(e){if(e){var t=e.value.modalDomEl;if(t&&t.length){var n=t[0].querySelectorAll(A);return n?Array.prototype.filter.call(n,function(e){return l(e)}):n}}},k}]).provider("$uibModal",function(){var e={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(t,n,i,r,o,a,s){function u(e){return e.template?n.when(e.template):r(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl)}var l={},c=null;return l.getPromiseChain=function(){return c},l.open=function(r){function l(){return v}var p=n.defer(),d=n.defer(),f=n.defer(),h=n.defer(),g={result:p.promise,opened:d.promise,closed:f.promise,rendered:h.promise,close:function(e){return s.close(g,e)},dismiss:function(e){return s.dismiss(g,e)}};if(r=angular.extend({},e.options,r),r.resolve=r.resolve||{},r.appendTo=r.appendTo||i.find("body").eq(0),!r.template&&!r.templateUrl)throw new Error("One of template or templateUrl options is required.");var m,v=n.all([u(r),a.resolve(r.resolve,{},null,null)]);return m=c=n.all([c]).then(l,l).then(function(e){var n=r.scope||t,i=n.$new();i.$close=g.close,i.$dismiss=g.dismiss,i.$on("$destroy",function(){i.$$uibDestructionScheduled||i.$dismiss("$uibUnscheduledDestruction")});var a,u,l={};r.controller&&(l.$scope=i,l.$scope.$resolve={},l.$uibModalInstance=g,angular.forEach(e[1],function(e,t){l[t]=e,l.$scope.$resolve[t]=e}),u=o(r.controller,l,!0,r.controllerAs),r.controllerAs&&r.bindToController&&(a=u.instance,a.$close=i.$close,a.$dismiss=i.$dismiss,angular.extend(a,{$resolve:l.$scope.$resolve},n)),a=u(),angular.isFunction(a.$onInit)&&a.$onInit()),s.open(g,{scope:i,deferred:p,renderDeferred:h,closedDeferred:f,content:e[0],animation:r.animation,backdrop:r.backdrop,keyboard:r.keyboard,backdropClass:r.backdropClass,windowTopClass:r.windowTopClass,windowClass:r.windowClass,windowTemplateUrl:r.windowTemplateUrl,size:r.size,openedClass:r.openedClass,appendTo:r.appendTo}),d.resolve(!0)},function(e){d.reject(e),p.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,i){t.setNumPages=i.numPages?e(i.numPages).assign:angular.noop,t.ngModelCtrl={$setViewValue:angular.noop},t._watchers=[],t.init=function(e,r){t.ngModelCtrl=e,t.config=r,e.$render=function(){t.render()},i.itemsPerPage?t._watchers.push(n.$parent.$watch(i.itemsPerPage,function(e){t.itemsPerPage=parseInt(e,10),n.totalPages=t.calculateTotalPages(),t.updatePage()})):t.itemsPerPage=r.itemsPerPage,n.$watch("totalItems",function(e,i){(angular.isDefined(e)||e!==i)&&(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,i){i&&i.preventDefault();var r=!n.ngDisabled||!i;r&&n.page!==e&&e>0&&e<=n.totalPages&&(i&&i.target&&i.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,i){e.align=angular.isDefined(t.align)?e.$parent.$eval(t.align):i.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,i,r){var o=r[0],a=r[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,i,r){function o(e,t,n){return{number:e,text:t,active:n}}function a(e,t){var n=[],i=1,r=t,a=angular.isDefined(u)&&u<t;a&&(l?(i=Math.max(e-Math.floor(u/2),1),r=i+u-1,r>t&&(r=t,i=r-u+1)):(i=(Math.ceil(e/u)-1)*u+1,r=Math.min(i+u-1,t)));for(var s=i;s<=r;s++){var f=o(s,d(s),s===e);n.push(f)}if(a&&u>0&&(!l||c||p)){if(i>1){if(!p||i>3){var h=o(i-1,"...",!1);n.unshift(h)}if(p){if(3===i){var g=o(2,"2",!1);n.unshift(g)}var m=o(1,"1",!1);n.unshift(m)}}if(r<t){if(!p||r<t-2){var v=o(r+1,"...",!1);n.push(v)}if(p){if(r===t-2){var y=o(t-1,t-1,!1);n.push(y)}var b=o(t,t,!1);n.push(b)}}}return n}var s=this,u=angular.isDefined(t.maxSize)?e.$parent.$eval(t.maxSize):r.maxSize,l=angular.isDefined(t.rotate)?e.$parent.$eval(t.rotate):r.rotate,c=angular.isDefined(t.forceEllipses)?e.$parent.$eval(t.forceEllipses):r.forceEllipses,p=angular.isDefined(t.boundaryLinkNumbers)?e.$parent.$eval(t.boundaryLinkNumbers):r.boundaryLinkNumbers,d=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):r.boundaryLinks,e.directionLinks=angular.isDefined(t.directionLinks)?e.$parent.$eval(t.directionLinks):r.directionLinks,i.create(this,e,t),t.maxSize&&s._watchers.push(e.$parent.$watch(n(t.maxSize),function(e){u=parseInt(e,10),s.render()}));var f=this.render;this.render=function(){f(),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,i,r){var o=r[0],a=r[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:""},i={};this.options=function(e){angular.extend(i,e)},this.setTriggers=function(e){angular.extend(n,e)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(r,o,a,s,u,l,c,p,d){function f(e){if(27===e.which){var t=h.top();t&&(t.value.close(),h.removeTop(),t=null)}}var h=d.createNew();return s.on("keypress",f),c.$on("$destroy",function(){s.off("keypress",f)}),function(r,c,d,f){function g(e){var t=(e||f.trigger||d).split(" "),i=t.map(function(e){return n[e]||e});return{show:t,hide:i}}f=angular.extend({},t,i,f);var m=e(r),v=l.startSymbol(),y=l.endSymbol(),b="<div "+m+'-popup uib-title="'+v+"title"+y+'" '+(f.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(b);return function(e,t,i,o){function l(){z.isOpen?m():d()}function d(){G&&!e.$eval(i[c+"Enable"])||($(),k(),z.popupDelay?O||(O=a(v,z.popupDelay,!1)):v())}function m(){y(),z.popupCloseDelay?P||(P=a(b,z.popupCloseDelay,!1)):b()}function v(){return y(),$(),z.content?(w(),void z.$evalAsync(function(){z.isOpen=!0,x(!0),W()})):angular.noop}function y(){O&&(a.cancel(O),O=null),I&&(a.cancel(I),I=null)}function b(){z&&z.$evalAsync(function(){z&&(z.isOpen=!1,x(!1),z.animation?E||(E=a(_,150,!1)):_())})}function $(){P&&(a.cancel(P),P=null),E&&(a.cancel(E),E=null)}function w(){D||(T=z.$new(),D=n(T,function(e){j?s.find("body").append(e):t.after(e)}),C())}function _(){y(),$(),A(),D&&(D.remove(),D=null),T&&(T.$destroy(),T=null)}function k(){z.title=i[c+"Title"],B?z.content=B(e):z.content=i[r],z.popupClass=i[c+"Class"],z.placement=angular.isDefined(i[c+"Placement"])?i[c+"Placement"]:f.placement;var t=u.parsePlacement(z.placement);L=t[1]?t[0]+"-"+t[1]:t[0];var n=parseInt(i[c+"PopupDelay"],10),o=parseInt(i[c+"PopupCloseDelay"],10);z.popupDelay=isNaN(n)?f.popupDelay:n,z.popupCloseDelay=isNaN(o)?f.popupCloseDelay:o}function x(t){R&&angular.isFunction(R.assign)&&R.assign(e,t)}function C(){U.length=0,B?(U.push(e.$watch(B,function(e){z.content=e,!e&&z.isOpen&&b()})),U.push(T.$watch(function(){F||(F=!0,T.$$postDigest(function(){F=!1,z&&z.isOpen&&W()}))}))):U.push(i.$observe(r,function(e){z.content=e,!e&&z.isOpen?b():W()})),U.push(i.$observe(c+"Title",function(e){z.title=e,z.isOpen&&W()})),U.push(i.$observe(c+"Placement",function(e){z.placement=e?e:f.placement,z.isOpen&&W()}))}function A(){U.length&&(angular.forEach(U,function(e){e()}),U.length=0)}function M(e){z&&z.isOpen&&D&&(t[0].contains(e.target)||D[0].contains(e.target)||m())}function S(){var e=i[c+"Trigger"];H(),N=g(e),"none"!==N.show&&N.show.forEach(function(e,n){"outsideClick"===e?(t.on("click",l),s.on("click",M)):e===N.hide[n]?t.on(e,l):e&&(t.on(e,d),t.on(N.hide[n],m)),t.on("keypress",function(e){27===e.which&&m()})})}var D,T,E,O,P,I,L,j=!!angular.isDefined(f.appendToBody)&&f.appendToBody,N=g(void 0),G=angular.isDefined(i[c+"Enable"]),z=e.$new(!0),F=!1,R=!!angular.isDefined(i[c+"IsOpen"])&&p(i[c+"IsOpen"]),B=!!f.useContentExp&&p(i[r]),U=[],W=function(){D&&D.html()&&(I||(I=a(function(){var e=u.positionElements(t,D,z.placement,j);D.css({top:e.top+"px",left:e.left+"px"}),D.hasClass(e.placement.split("-")[0])||(D.removeClass(L.split("-")[0]),D.addClass(e.placement.split("-")[0])),D.hasClass(f.placementClassPrefix+e.placement)||(D.removeClass(f.placementClassPrefix+L),D.addClass(f.placementClassPrefix+e.placement)),D.hasClass("uib-position-measure")?(u.positionArrow(D,e.placement),D.removeClass("uib-position-measure")):L!==e.placement&&u.positionArrow(D,e.placement),L=e.placement,I=null},0,!1)))};z.origScope=e,z.isOpen=!1,h.add(z,{close:b}),z.contentExp=function(){return z.content},i.$observe("disabled",function(e){e&&y(),e&&z.isOpen&&b()}),R&&e.$watch(R,function(e){z&&!e===z.isOpen&&l()});var H=function(){N.show.forEach(function(e){"outsideClick"===e?t.off("click",l):(t.off(e,d),t.off(e,l))}),N.hide.forEach(function(e){"outsideClick"===e?s.off("click",M):t.off(e,m)})};S();var V=e.$eval(i[c+"Animation"]);z.animation=angular.isDefined(V)?!!V:f.animation;var q,Y=c+"AppendToBody";q=Y in i&&void 0===i[Y]||e.$eval(i[Y]),j=angular.isDefined(q)?q:j,e.$on("$destroy",function(){H(),_(),h.remove(z),z=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,i){return{link:function(r,o,a){var s,u,l,c=r.$eval(a.tooltipTemplateTranscludeScope),p=0,d=function(){u&&(u.remove(),u=null),s&&(s.$destroy(),s=null),l&&(e.leave(l).then(function(){u=null}),u=l,l=null)};r.$watch(t.parseAsResourceUrl(a.uibTooltipTemplateTransclude),function(t){var a=++p;t?(i(t,!0).then(function(i){if(a===p){var r=c.$new(),u=i,f=n(u)(r,function(t){d(),e.enter(t,o)});s=r,l=f,s.$emit("$includeContentLoaded",t)}},function(){a===p&&(d(),r.$emit("$includeContentError",t))}),r.$emit("$includeContentRequested",t)):d()}),r.$on("$destroy",d)}}}]).directive("uibTooltipClasses",["$uibPosition",function(e){return{restrict:"A",link:function(t,n,i){if(t.placement){var r=e.parsePlacement(t.placement);n.addClass(r[0])}t.popupClass&&n.addClass(t.popupClass),t.animation()&&n.addClass(i.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 i(){return angular.isDefined(e.maxParam)?e.maxParam:n.max}var r=this,o=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;this.bars=[],e.max=i(),this.addBar=function(e,t,n){o||t.css({transition:"none"}),this.bars.push(e),e.max=i(),e.title=n&&angular.isDefined(n.title)?n.title:"progressbar",e.$watch("value",function(t){e.recalculatePercentage()}),e.recalculatePercentage=function(){var t=r.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,r.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){r.bars.forEach(function(e){e.max=i(),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,i){i.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,i){i.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 i={$setViewValue:angular.noop},r=this;this.init=function(r){i=r,i.$render=this.render,i.$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;t<n;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=r.enableReset&&i.$viewValue===t?0:t;i.$setViewValue(n),i.$render()}},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=i.$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=i.$viewValue,e.title=r.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,i){var r=i[0],o=i[1];r.init(o)}}}),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(e){function t(e){for(var t=0;t<i.tabs.length;t++)if(i.tabs[t].index===e)return t}var n,i=this;i.tabs=[],i.select=function(e,o){if(!r){var a=t(n),s=i.tabs[a];if(s){if(s.tab.onDeselect({$event:o,$selectedIndex:e}),o&&o.isDefaultPrevented())return;s.tab.active=!1}var u=i.tabs[e];u?(u.tab.onSelect({$event:o}),u.tab.active=!0,i.active=u.index,n=u.index):!u&&angular.isDefined(n)&&(i.active=null,n=null)}},i.addTab=function(e){if(i.tabs.push({tab:e,index:e.index}),i.tabs.sort(function(e,t){return e.index>t.index?1:e.index<t.index?-1:0}),e.index===i.active||!angular.isDefined(i.active)&&1===i.tabs.length){var n=t(e.index);i.select(n)}},i.removeTab=function(e){for(var t,n=0;n<i.tabs.length;n++)if(i.tabs[n].tab===e){t=n;break}if(i.tabs[t].index===i.active){var r=t===i.tabs.length-1?t-1:t+1%i.tabs.length;i.select(r)}i.tabs.splice(t,1)},e.$watch("tabset.active",function(e){angular.isDefined(e)&&e!==n&&i.select(t(e))});var r;e.$on("$destroy",function(){r=!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),e.justified=!!angular.isDefined(n.justified)&&e.$parent.$eval(n.justified)}}}).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,i,r,o){t.disabled=!1,i.disable&&t.$parent.$watch(e(i.disable),function(e){t.disabled=!!e}),angular.isUndefined(i.index)&&(r.tabs&&r.tabs.length?t.index=Math.max.apply(null,r.tabs.map(function(e){return e.index}))+1:t.index=0),angular.isUndefined(i.classes)&&(t.classes=""),t.select=function(e){if(!t.disabled){for(var n,i=0;i<r.tabs.length;i++)if(r.tabs[i].tab===t){n=i;break}r.select(n,e)}},r.addTab(t),t.$on("$destroy",function(){r.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,i){var r=t.$eval(i.uibTabContentTransclude).tab;r.$transcludeFn(r.$parent,function(t){angular.forEach(t,function(t){e(t)?r.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,i,r,o,a){function s(){var t=+e.hours,n=e.showMeridian?t>0&&t<13:t>=0&&t<24;if(n&&""!==e.hours)return e.showMeridian&&(12===t&&(t=0),e.meridian===w[1]&&(t+=12)),t}function u(){var t=+e.minutes,n=t>=0&&t<60;if(n&&""!==e.minutes)return t}function l(){var t=+e.seconds;return t>=0&&t<60?t:void 0}function c(e,t){return null===e?"":angular.isDefined(e)&&e.toString().length<2&&!t?"0"+e:e.toString()}function p(e){d(),$.$setViewValue(new Date(y)),f(e)}function d(){$.$setValidity("time",!0),e.invalidHours=!1,e.invalidMinutes=!1,e.invalidSeconds=!1}function f(t){if($.$modelValue){var n=y.getHours(),i=y.getMinutes(),r=y.getSeconds();e.showMeridian&&(n=0===n||12===n?12:n%12),e.hours="h"===t?n:c(n,!_),"m"!==t&&(e.minutes=c(i)),e.meridian=y.getHours()<12?w[0]:w[1],"s"!==t&&(e.seconds=c(r)),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),p()}function g(e,t){return m(e,60*t)}function m(e,t){var n=new Date(e.getTime()+1e3*t),i=new Date(e);return i.setHours(n.getHours(),n.getMinutes(),n.getSeconds()),i}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,_=!angular.isDefined(n.padHours)||e.$parent.$eval(n.padHours);e.tabindex=angular.isDefined(n.tabindex)?n.tabindex:0,t.removeAttr("tabindex"),this.init=function(t,i){$=t,$.$render=this.render,$.$formatters.unshift(function(e){return e?new Date(e):null});var r=i.eq(0),o=i.eq(1),s=i.eq(2),u=angular.isDefined(n.mousewheel)?e.$parent.$eval(n.mousewheel):a.mousewheel;u&&this.setupMousewheelEvents(r,o,s);var l=angular.isDefined(n.arrowkeys)?e.$parent.$eval(n.arrowkeys):a.arrowkeys;l&&this.setupArrowkeyEvents(r,o,s),e.readonlyInput=angular.isDefined(n.readonlyInput)?e.$parent.$eval(n.readonlyInput):a.readonlyInput,this.setupInputEvents(r,o,s)};var k=a.hourStep;n.hourStep&&b.push(e.$parent.$watch(i(n.hourStep),function(e){k=+e}));var x=a.minuteStep;n.minuteStep&&b.push(e.$parent.$watch(i(n.minuteStep),function(e){x=+e}));var C;b.push(e.$parent.$watch(i(n.min),function(e){var t=new Date(e);C=isNaN(t)?void 0:t}));var A;b.push(e.$parent.$watch(i(n.max),function(e){var t=new Date(e);A=isNaN(t)?void 0:t}));var M=!1;n.ngDisabled&&b.push(e.$parent.$watch(i(n.ngDisabled),function(e){M=e})),e.noIncrementHours=function(){var e=g(y,60*k);return M||e>A||e<y&&e<C},e.noDecrementHours=function(){var e=g(y,60*-k);return M||e<C||e>y&&e>A},e.noIncrementMinutes=function(){var e=g(y,x);return M||e>A||e<y&&e<C},e.noDecrementMinutes=function(){var e=g(y,-x);return M||e<C||e>y&&e>A},e.noIncrementSeconds=function(){var e=m(y,S);return M||e>A||e<y&&e<C},e.noDecrementSeconds=function(){var e=m(y,-S);return M||e<C||e>y&&e>A},e.noToggleMeridian=function(){return y.getHours()<12?M||g(y,720)>A:M||g(y,-720)<C};var S=a.secondStep;n.secondStep&&b.push(e.$parent.$watch(i(n.secondStep),function(e){S=+e})),e.showSeconds=a.showSeconds,n.showSeconds&&b.push(e.$parent.$watch(i(n.showSeconds),function(t){e.showSeconds=!!t})),e.showMeridian=a.showMeridian,n.showMeridian&&b.push(e.$parent.$watch(i(n.showMeridian),function(t){if(e.showMeridian=!!t,$.$error.time){var n=s(),i=u();angular.isDefined(n)&&angular.isDefined(i)&&(y.setHours(n),p())}else f()})),this.setupMousewheelEvents=function(t,n,i){var r=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){M||e.$apply(r(t)?e.incrementHours():e.decrementHours()),t.preventDefault()}),n.bind("mousewheel wheel",function(t){M||e.$apply(r(t)?e.incrementMinutes():e.decrementMinutes()),t.preventDefault()}),i.bind("mousewheel wheel",function(t){M||e.$apply(r(t)?e.incrementSeconds():e.decrementSeconds()),t.preventDefault()})},this.setupArrowkeyEvents=function(t,n,i){t.bind("keydown",function(t){M||(38===t.which?(t.preventDefault(),e.incrementHours(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementHours(),e.$apply()))}),n.bind("keydown",function(t){M||(38===t.which?(t.preventDefault(),e.incrementMinutes(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementMinutes(),e.$apply()))}),i.bind("keydown",function(t){M||(38===t.which?(t.preventDefault(),e.incrementSeconds(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementSeconds(),e.$apply()))})},this.setupInputEvents=function(t,n,i){if(e.readonlyInput)return e.updateHours=angular.noop,e.updateMinutes=angular.noop,void(e.updateSeconds=angular.noop);var r=function(t,n,i){$.$setViewValue(null),$.$setValidity("time",!1),angular.isDefined(t)&&(e.invalidHours=t),angular.isDefined(n)&&(e.invalidMinutes=n),angular.isDefined(i)&&(e.invalidSeconds=i)};e.updateHours=function(){var e=s(),t=u();$.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(y.setHours(e),y.setMinutes(t),y<C||y>A?r(!0):p("h")):r(!0)},t.bind("blur",function(t){$.$setTouched(),v()?d():null===e.hours||""===e.hours?r(!0):!e.invalidHours&&e.hours<10&&e.$apply(function(){e.hours=c(e.hours,!_)})}),e.updateMinutes=function(){var e=u(),t=s();$.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(y.setHours(t),y.setMinutes(e),y<C||y>A?r(void 0,!0):p("m")):r(void 0,!0)},n.bind("blur",function(t){$.$setTouched(),v()?d():null===e.minutes?r(void 0,!0):!e.invalidMinutes&&e.minutes<10&&e.$apply(function(){e.minutes=c(e.minutes)})}),e.updateSeconds=function(){var e=l();$.$setDirty(),angular.isDefined(e)?(y.setSeconds(e),p("s")):r(void 0,void 0,!0)},i.bind("blur",function(t){v()?d():!e.invalidSeconds&&e.seconds<10&&e.$apply(function(){e.seconds=c(e.seconds)})})},this.render=function(){var t=$.$viewValue;isNaN(t)?($.$setValidity("time",!1),r.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),y<C||y>A?($.$setValidity("time",!1),e.invalidHours=!0,e.invalidMinutes=!0):d(),f())},e.showSpinners=angular.isDefined(n.showSpinners)?e.$parent.$eval(n.showSpinners):a.showSpinners,e.incrementHours=function(){e.noIncrementHours()||h(60*k*60)},e.decrementHours=function(){e.noDecrementHours()||h(60*-k*60)},e.incrementMinutes=function(){e.noIncrementMinutes()||h(60*x)},e.decrementMinutes=function(){e.noDecrementMinutes()||h(60*-x)},e.incrementSeconds=function(){e.noIncrementSeconds()||h(S)},e.decrementSeconds=function(){e.noDecrementSeconds()||h(-S)},e.toggleMeridian=function(){var t=u(),n=s();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(){$.$setTouched()},e.$on("$destroy",function(){for(;b.length;)b.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,i){var r=i[0],o=i[1];o&&r.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 i=n.match(t);if(!i)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:i[3],source:e(i[4]),viewMapper:e(i[2]||i[1]),modelMapper:e(i[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(e,t,n,i,r,o,a,s,u,l,c,p,d){function f(){F.moveInProgress||(F.moveInProgress=!0,F.$digest()),X()}function h(){F.position=T?p.offset(t):p.position(t),F.position.top+=t.prop("offsetHeight")}var g,m,v=[9,13,27,38,40],y=200,b=e.$eval(n.typeaheadMinLength);b||0===b||(b=1),e.$watch(n.typeaheadMinLength,function(e){b=e||0===e?e:1});var $=e.$eval(n.typeaheadWaitMs)||0,w=e.$eval(n.typeaheadEditable)!==!1;e.$watch(n.typeaheadEditable,function(e){w=e!==!1});var _,k,x=r(n.typeaheadLoading).assign||angular.noop,C=n.typeaheadShouldSelect?r(n.typeaheadShouldSelect):function(e,t){var n=t.$event;return 13===n.which||9===n.which},A=r(n.typeaheadOnSelect),M=!!angular.isDefined(n.typeaheadSelectOnBlur)&&e.$eval(n.typeaheadSelectOnBlur),S=r(n.typeaheadNoResults).assign||angular.noop,D=n.typeaheadInputFormatter?r(n.typeaheadInputFormatter):void 0,T=!!n.typeaheadAppendToBody&&e.$eval(n.typeaheadAppendToBody),E=n.typeaheadAppendTo?e.$eval(n.typeaheadAppendTo):null,O=e.$eval(n.typeaheadFocusFirst)!==!1,P=!!n.typeaheadSelectOnExact&&e.$eval(n.typeaheadSelectOnExact),I=r(n.typeaheadIsOpen).assign||angular.noop,L=e.$eval(n.typeaheadShowHint)||!1,j=r(n.ngModel),N=r(n.ngModel+"($$$p)"),G=function(t,n){return angular.isFunction(j(e))&&m&&m.$options&&m.$options.getterSetter?N(t,{$$$p:n}):j.assign(t,n)},z=d.parse(n.uibTypeahead),F=e.$new(),R=e.$on("$destroy",function(){F.$destroy()});F.$on("$destroy",R);var B="typeahead-"+F.$id+"-"+Math.floor(1e4*Math.random());t.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":B});var U,W;L&&(U=angular.element("<div></div>"),U.css("position","relative"),t.after(U),W=t.clone(),W.attr("placeholder",""),W.attr("tabindex","-1"),W.val(""),W.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"}),U.append(W),W.after(t));var H=angular.element("<div uib-typeahead-popup></div>");H.attr({id:B,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)&&H.attr("template-url",n.typeaheadTemplateUrl),angular.isDefined(n.typeaheadPopupTemplateUrl)&&H.attr("popup-template-url",n.typeaheadPopupTemplateUrl);var V=function(){L&&W.val("")},q=function(){F.matches=[],F.activeIdx=-1,t.attr("aria-expanded",!1),V()},Y=function(e){return B+"-option-"+e};F.$watch("activeIdx",function(e){e<0?t.removeAttr("aria-activedescendant"):t.attr("aria-activedescendant",Y(e))});var K=function(e,t){return!!(F.matches.length>t&&e)&&e.toUpperCase()===F.matches[t].label.toUpperCase()},Z=function(n,i){var r={$viewValue:n};x(e,!0),S(e,!1),o.when(z.source(e,r)).then(function(o){var a=n===g.$viewValue;if(a&&_)if(o&&o.length>0){F.activeIdx=O?0:-1,S(e,!1),F.matches.length=0;for(var s=0;s<o.length;s++)r[z.itemName]=o[s],F.matches.push({id:Y(s),label:z.viewMapper(F,r),model:o[s]});if(F.query=n,h(),t.attr("aria-expanded",!0),P&&1===F.matches.length&&K(n,0)&&(angular.isNumber(F.debounceUpdate)||angular.isObject(F.debounceUpdate)?c(function(){F.select(0,i)},angular.isNumber(F.debounceUpdate)?F.debounceUpdate:F.debounceUpdate["default"]):F.select(0,i)),L){var u=F.matches[0].label;angular.isString(n)&&n.length>0&&u.slice(0,n.length).toUpperCase()===n.toUpperCase()?W.val(n+u.slice(n.length)):W.val("")}}else q(),S(e,!0);a&&x(e,!1)},function(){q(),x(e,!1),S(e,!0)})};T&&(angular.element(u).on("resize",f),s.find("body").on("scroll",f));var X=c(function(){F.matches.length&&h(),F.moveInProgress=!1},y);F.moveInProgress=!1,F.query=void 0;var J,Q=function(e){J=a(function(){Z(e)},$)},ee=function(){J&&a.cancel(J)};q(),F.assignIsOpen=function(t){I(e,t)},F.select=function(i,r){var o,s,u={};k=!0,u[z.itemName]=s=F.matches[i].model,o=z.modelMapper(e,u),G(e,o),g.$setValidity("editable",!0),g.$setValidity("parse",!0),A(e,{$item:s,$model:o,$label:z.viewMapper(e,u),$event:r}),q(),F.$eval(n.typeaheadFocusOnSelect)!==!1&&a(function(){t[0].focus()},0,!1)},t.on("keydown",function(t){if(0!==F.matches.length&&v.indexOf(t.which)!==-1){var n=C(e,{$event:t});if(F.activeIdx===-1&&n||9===t.which&&t.shiftKey)return q(),void F.$digest();t.preventDefault();var i;switch(t.which){case 27:t.stopPropagation(),q(),e.$digest();break;case 38:F.activeIdx=(F.activeIdx>0?F.activeIdx:F.matches.length)-1,F.$digest(),i=H.find("li")[F.activeIdx],i.parentNode.scrollTop=i.offsetTop;break;case 40:F.activeIdx=(F.activeIdx+1)%F.matches.length,F.$digest(),i=H.find("li")[F.activeIdx],i.parentNode.scrollTop=i.offsetTop;break;default:n&&F.$apply(function(){angular.isNumber(F.debounceUpdate)||angular.isObject(F.debounceUpdate)?c(function(){F.select(F.activeIdx,t)},angular.isNumber(F.debounceUpdate)?F.debounceUpdate:F.debounceUpdate["default"]):F.select(F.activeIdx,t)})}}}),t.bind("focus",function(e){_=!0,0!==b||g.$viewValue||a(function(){Z(g.$viewValue,e)},0)}),t.bind("blur",function(e){M&&F.matches.length&&F.activeIdx!==-1&&!k&&(k=!0,F.$apply(function(){angular.isObject(F.debounceUpdate)&&angular.isNumber(F.debounceUpdate.blur)?c(function(){F.select(F.activeIdx,e)},F.debounceUpdate.blur):F.select(F.activeIdx,e)})),!w&&g.$error.editable&&(g.$setViewValue(),g.$setValidity("editable",!0),g.$setValidity("parse",!0),t.val("")),_=!1,k=!1});var te=function(n){t[0]!==n.target&&3!==n.which&&0!==F.matches.length&&(q(),l.$$phase||e.$digest())};s.on("click",te),e.$on("$destroy",function(){s.off("click",te),(T||E)&&ne.remove(),T&&(angular.element(u).off("resize",f),s.find("body").off("scroll",f)),H.remove(),L&&U.remove()});var ne=i(H)(F);T?s.find("body").append(ne):E?angular.element(E).eq(0).append(ne):t.after(ne),this.init=function(t,n){g=t,m=n,F.debounceUpdate=g.$options&&r(g.$options.debounce)(e),g.$parsers.unshift(function(t){return _=!0,0===b||t&&t.length>=b?$>0?(ee(),Q(t)):Z(t):(x(e,!1),ee(),q()),w?t:t?void g.$setValidity("editable",!1):(g.$setValidity("editable",!0),null)}),g.$formatters.push(function(t){var n,i,r={};return w||g.$setValidity("editable",!0),D?(r.$model=t,D(e,r)):(r[z.itemName]=t,n=z.viewMapper(e,r),r[z.itemName]=void 0,i=z.viewMapper(e,r),n!==i?n:t)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(e,t,n,i){i[2].init(i[0],i[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,i){t.templateUrl=i.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,i){var r=t.debounce();angular.isNumber(r)||angular.isObject(r)?e(function(){t.select({activeIdx:n,evt:i})},angular.isNumber(r)?r:r["default"]):t.select({activeIdx:n,evt:i})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(e,t,n){return{scope:{index:"=",match:"=",query:"="},link:function(i,r,o){var a=n(o.templateUrl)(i.$parent)||"uib/template/typeahead/typeahead-match.html";e(a).then(function(e){var n=angular.element(e.trim());r.replaceWith(n),t(n)(i)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(e,t,n){function i(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function r(e){return/<.*>/g.test(e)}var o;return o=t.has("$sanitize"),function(t,a){return!o&&r(t)&&n.warn("Unsafe use of typeahead please use ngSanitize"),t=a?(""+t).replace(new RegExp(i(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,t){"use strict";function n(e){return null!=e&&""!==e&&"hasOwnProperty"!==e&&a.test("."+e)}function i(e,i){if(!n(i))throw o("badmember",'Dotted member path "@{0}" is invalid.',i);for(var r=i.split("."),a=0,s=r.length;a<s&&t.isDefined(e);a++){var u=r[a];e=null!==e?e[u]:void 0}return e}function r(e,n){n=n||{},t.forEach(n,function(e,t){delete n[t]});for(var i in e)!e.hasOwnProperty(i)||"$"===i.charAt(0)&&"$"===i.charAt(1)||(n[i]=e[i]);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,s,u,l){function c(e){return p(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function p(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function d(e,t){this.template=e,this.defaults=m({},n.defaults,t),this.urlParams={}}function f(e,c,p,b){function $(e,t){var n={};return t=m({},c,t),g(t,function(t,r){y(t)&&(t=t()),n[r]=t&&t.charAt&&"@"==t.charAt(0)?i(e,t.substr(1)):t}),n}function w(e){return e.resource}function _(e){r(e||{},this)}var k=new d(e,b);return p=m({},n.defaults.actions,p),_.prototype.toJSON=function(){var e=m({},this);return delete e.$promise,delete e.$resolved,e},g(p,function(e,i){var c=/^(POST|PUT|PATCH)$/i.test(e.method),p=e.timeout,d=t.isDefined(e.cancellable)?e.cancellable:b&&t.isDefined(b.cancellable)?b.cancellable:n.defaults.cancellable;p&&!t.isNumber(p)&&(s.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,p=null),_[i]=function(n,s,f,b){var x,C,A,M={};switch(arguments.length){case 4:A=b,C=f;case 3:case 2:if(!y(s)){M=n,x=s,C=f;break}if(y(n)){C=n,A=s;break}C=s,A=f;case 1:y(n)?C=n:c?x=n:M=n;break;case 0:break;default:throw o("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var S,D,T=this instanceof _,E=T?x:e.isArray?[]:new _(x),O={},P=e.interceptor&&e.interceptor.response||w,I=e.interceptor&&e.interceptor.responseError||void 0;g(e,function(e,t){switch(t){default:O[t]=v(e);break;case"params":case"isArray":case"interceptor":case"cancellable":}}),!T&&d&&(S=u.defer(),O.timeout=S.promise,p&&(D=l(S.resolve,p))),c&&(O.data=x),k.setUrlParams(O,m({},$(x,e.params||{}),M),e.url);var L=a(O).then(function(n){var a=n.data;if(a){if(t.isArray(a)!==!!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})",i,e.isArray?"array":"object",t.isArray(a)?"array":"object",O.method,O.url);if(e.isArray)E.length=0,g(a,function(e){"object"==typeof e?E.push(new _(e)):E.push(e)});else{var s=E.$promise;r(a,E),E.$promise=s}}return n.resource=E,n},function(e){return(A||h)(e),u.reject(e)});return L["finally"](function(){E.$resolved=!0,!T&&d&&(E.$cancelRequest=t.noop,l.cancel(D),S=D=O.timeout=null)}),L=L.then(function(e){var t=P(e);return(C||h)(t,e.headers),t},I),T?L:(E.$promise=L,E.$resolved=!1,d&&(E.$cancelRequest=S.resolve),E)},_.prototype["$"+i]=function(e,t,n){y(e)&&(n=t,t=e,e={});var r=_[i].call(this,e,this,t,n);return r.$promise||r}}),_.bind=function(t){return f(e,m({},c,t),p)},_}var h=t.noop,g=t.forEach,m=t.extend,v=t.copy,y=t.isFunction;return d.prototype={setUrlParams:function(n,i,r){var a,s,u=this,l=r||u.template,d="",f=u.urlParams={};g(l.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(l)&&(f[e]={isQueryParamValue:new RegExp("\\?.*=:"+e+"(?:\\W|$)").test(l)})}),l=l.replace(/\\:/g,":"),l=l.replace(e,function(e){return d=e,""}),i=i||{},g(u.urlParams,function(e,n){a=i.hasOwnProperty(n)?i[n]:u.defaults[n],t.isDefined(a)&&null!==a?(s=e.isQueryParamValue?p(a,!0):c(a),l=l.replace(new RegExp(":"+n+"(\\W|$)","g"),function(e,t){return s+t})):l=l.replace(new RegExp("(/?):"+n+"(\\W|$)","g"),function(e,t,n){return"/"==n.charAt(0)?n:t+n})}),u.defaults.stripTrailingSlashes&&(l=l.replace(/\/+$/,"")||"/"),l=l.replace(/\/\.(?=\w+($|\?))/,"."),n.url=d+l.replace(/\/\\\./,"/."),g(i,function(e,t){u.urlParams[t]||(n.params=n.params||{},n.params[t]=e)})}},f}]})}(window,window.angular),function(e,t,n){"use strict";t.module("ngMessages",[]).directive("ngMessages",["$compile","$animate","$http","$templateCache",function(e,n,i,r){var o="ng-active",a="ng-inactive";return{restrict:"AE",controller:["$scope",function(e){this.$renderNgMessageClasses=t.noop;var n=[];this.registerMessage=function(e,t){for(var i=0;i<n.length;i++)if(n[i].type==t.type){if(e!=i){var r=n[e];n[e]=n[i],e<n.length?n[i]=r:n.splice(0,i)}return}n.splice(e,0,t)},this.renderMessages=function(e,i){function r(e){return null!==e&&e!==!1&&e}e=e||{};var o;t.forEach(n,function(t){o&&!i||!r(e[t.type])?t.detach():(t.attach(),o=!0)}),this.renderElementClasses(o)}}],require:"ngMessages",link:function(s,u,l,c){c.renderElementClasses=function(e){e?n.setClass(u,o,a):n.setClass(u,a,o)};var p,d=t.isString(l.ngMessagesMultiple)||t.isString(l.multiple),f=l.ngMessages||l["for"];s.$watchCollection(f,function(e){p=e,c.renderMessages(e,d)});var h=l.ngMessagesInclude||l.include;h&&i.get(h,{cache:r}).success(function(n){var i,r=t.element("<div/>").html(n);t.forEach(r.children(),function(n){n=t.element(n),i?i.after(n):u.prepend(n),i=n,e(n)(s)}),c.renderMessages(p,d)})}}}]).directive("ngMessage",["$animate",function(e){var t=8;return{require:"^ngMessages",transclude:"element",terminal:!0,restrict:"AE",link:function(n,i,r,o,a){for(var s,u,l=i[0],c=l.parentNode,p=0,d=0;p<c.childNodes.length;p++){var f=c.childNodes[p];if(f.nodeType==t&&f.nodeValue.indexOf("ngMessage")>=0){if(f===l){s=d;break}d++}}o.registerMessage(s,{type:r.ngMessage||r.when,attach:function(){u||a(n,function(t){e.enter(t,null,i),u=t})},detach:function(t){u&&(e.leave(u),u=null)}})}}}])}(window,window.angular),function(e){e(["jquery"],function(e){return function(){function t(e,t,n){return h({type:w.error,iconClass:g().iconClasses.error,message:e,optionsOverride:n,title:t})}function n(t,n){return t||(t=g()),v=e("#"+t.containerId),v.length?v:(n&&(v=p(t)),v)}function i(e,t,n){return h({type:w.info,iconClass:g().iconClasses.info,message:e,optionsOverride:n,title:t})}function r(e){y=e}function o(e,t,n){return h({type:w.success,iconClass:g().iconClasses.success,message:e,optionsOverride:n,title:t})}function a(e,t,n){return h({type:w.warning,iconClass:g().iconClasses.warning,message:e,optionsOverride:n,title:t})}function s(e,t){var i=g();v||n(i),c(e,i,t)||l(i)}function u(t){var i=g();return v||n(i),t&&0===e(":focus",t).length?void m(t):void(v.children().length&&v.remove())}function l(t){for(var n=v.children(),i=n.length-1;i>=0;i--)c(e(n[i]),t)}function c(t,n,i){var r=!(!i||!i.force)&&i.force;return!(!t||!r&&0!==e(":focus",t).length)&&(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){m(t)}}),!0)}function p(t){return v=e("<div/>").attr("id",t.containerId).addClass(t.positionClass).attr("aria-live","polite").attr("role","alert"),v.appendTo(e(t.target)),v}function d(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1}}function f(e){y&&y(e)}function h(t){function i(e){return null==e&&(e=""),new String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function r(){s(),l(),c(),p(),d(),u()}function o(){M.hover(_,w),!x.onclick&&x.tapToDismiss&&M.click(y),x.closeButton&&E&&E.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&e.cancelBubble!==!0&&(e.cancelBubble=!0),y(!0)}),x.onclick&&M.click(function(e){x.onclick(e),y()})}function a(){M.hide(),M[x.showMethod]({duration:x.showDuration,easing:x.showEasing,complete:x.onShown}),x.timeOut>0&&(A=setTimeout(y,x.timeOut),O.maxHideTime=parseFloat(x.timeOut),O.hideEta=(new Date).getTime()+O.maxHideTime,x.progressBar&&(O.intervalId=setInterval(k,10)))}function s(){t.iconClass&&M.addClass(x.toastClass).addClass(C)}function u(){x.newestOnTop?v.prepend(M):v.append(M)}function l(){t.title&&(S.append(x.escapeHtml?i(t.title):t.title).addClass(x.titleClass),M.append(S))}function c(){t.message&&(D.append(x.escapeHtml?i(t.message):t.message).addClass(x.messageClass),M.append(D))}function p(){x.closeButton&&(E.addClass("toast-close-button").attr("role","button"),M.prepend(E))}function d(){x.progressBar&&(T.addClass("toast-progress"),M.prepend(T))}function h(e,t){if(e.preventDuplicates){if(t.message===b)return!0;b=t.message}return!1}function y(t){var n=t&&x.closeMethod!==!1?x.closeMethod:x.hideMethod,i=t&&x.closeDuration!==!1?x.closeDuration:x.hideDuration,r=t&&x.closeEasing!==!1?x.closeEasing:x.hideEasing;if(!e(":focus",M).length||t)return clearTimeout(O.intervalId),M[n]({duration:i,easing:r,complete:function(){m(M),x.onHidden&&"hidden"!==P.state&&x.onHidden(),P.state="hidden",P.endTime=new Date,f(P)}})}function w(){(x.timeOut>0||x.extendedTimeOut>0)&&(A=setTimeout(y,x.extendedTimeOut),O.maxHideTime=parseFloat(x.extendedTimeOut),O.hideEta=(new Date).getTime()+O.maxHideTime)}function _(){clearTimeout(A),O.hideEta=0,M.stop(!0,!0)[x.showMethod]({duration:x.showDuration,easing:x.showEasing})}function k(){var e=(O.hideEta-(new Date).getTime())/O.maxHideTime*100;T.width(e+"%")}var x=g(),C=t.iconClass||x.iconClass;if("undefined"!=typeof t.optionsOverride&&(x=e.extend(x,t.optionsOverride),C=t.optionsOverride.iconClass||C),!h(x,t)){$++,v=n(x,!0);var A=null,M=e("<div/>"),S=e("<div/>"),D=e("<div/>"),T=e("<div/>"),E=e(x.closeHtml),O={intervalId:null,hideEta:null,maxHideTime:null},P={toastId:$,state:"visible",startTime:new Date,options:x,map:t};return r(),a(),o(),f(P),x.debug&&console&&console.log(P),M}}function g(){return e.extend({},d(),_.options)}function m(e){v||(v=n()),e.is(":visible")||(e.remove(),e=null,0===v.children().length&&(v.remove(),b=void 0))}var v,y,b,$=0,w={error:"error",info:"info",success:"success",warning:"warning"},_={clear:s,remove:u,error:t,getContainer:n,info:i,options:{},subscribe:r,success:o,version:"2.1.2",warning:a};return _}()})}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),function(e,t,n){"use strict";var i,r={},o={sdk:!1,ready:!1};t.module("facebook",[]).value("settings",r).value("flags",o).provider("Facebook",[function(){r.appId=null,this.setAppId=function(e){r.appId=e},this.getAppId=function(){return r.appId},r.locale="en_US",this.setLocale=function(e){r.locale=e},this.getLocale=function(){return r.locale},r.status=!0,this.setStatus=function(e){r.status=e},this.getStatus=function(){return r.status},r.channelUrl=null,this.setChannel=function(e){r.channelUrl=e},this.getChannel=function(){return r.channelUrl},r.cookie=!0,this.setCookie=function(e){r.cookie=e},this.getCookie=function(){return r.cookie},r.xfbml=!0,this.setXfbml=function(e){r.xfbml=e},this.getXfbml=function(){return r.xfbml},this.setAuthResponse=function(e){r.authResponse=e||!0},this.getAuthResponse=function(){return r.authResponse},r.frictionlessRequests=!1,this.setFrictionlessRequests=function(e){r.frictionlessRequests=e},this.getFrictionlessRequests=function(){return r.frictionlessRequests},r.hideFlashCallback=null,this.setHideFlashCallback=function(e){r.hideFlashCallback=e||null},this.getHideFlashCallback=function(){return r.hideFlashCallback},this.setInitCustomOption=function(e,n){return!!t.isString(e)&&(r[e]=n,r[e])},this.getInitOption=function(e){return!(!t.isString(e)||!r.hasOwnProperty(e))&&r[e]},r.loadSDK=!0,this.setLoadSDK=function(e){r.loadSDK=!!e},this.getLoadSDK=function(){return r.loadSDK},r.version="v2.0",this.setSdkVersion=function(e){r.version=e},this.getSdkVersion=function(){return r.version},this.init=function(e,n){t.isString(e)&&(r.appId=e||r.appId),t.isObject(e)&&t.extend(r,e),t.isDefined(n)&&(r.loadSDK=!!n)},this.$get=["$q","$rootScope","$timeout","$window",function(e,n,a,s){function u(){this.appId=r.appId}return u.prototype.isReady=function(){return o.ready},u.prototype.login=function(){var n,i,r=e.defer(),o=Array.prototype.slice.call(arguments);return t.forEach(o,function(e,r){t.isFunction(e)&&(n=e,i=r)}),t.isFunction(n)&&t.isNumber(i)&&o.splice(i,1,function(e){a(function(){t.isUndefined(e.error)?r.resolve(e):r.reject(e),
  t.isFunction(n)&&n(e)})}),this.isReady()?s.FB.login.apply(s.FB,o):a(function(){r.reject("Facebook.login() called before Facebook SDK has loaded.")}),r.promise},t.forEach(["logout","api","ui","getLoginStatus"],function(n){u.prototype[n]=function(){var r,o,u=e.defer(),l=Array.prototype.slice.call(arguments);return t.forEach(l,function(e,n){t.isFunction(e)&&(r=e,o=n)}),t.isFunction(r)&&t.isNumber(o)&&l.splice(o,1,function(e){a(function(){e&&"undefined"==typeof e.error?u.resolve(e):u.reject(e),t.isFunction(r)&&r(e)})}),a(function(){i.promise.then(function(){s.FB[n].apply(FB,l)},function(){throw"Facebook API could not be initialized properly"})}),u.promise}}),u.prototype.parseXFBML=function(){var t=e.defer();return a(function(){i.promise.then(function(){s.FB.XFBML.parse(),t.resolve()},function(){throw"Facebook API could not be initialized properly"})}),t.promise},u.prototype.subscribe=function(){var n,r,o=e.defer(),u=Array.prototype.slice.call(arguments);return t.forEach(u,function(e,i){t.isFunction(e)&&(n=e,r=i)}),t.isFunction(n)&&t.isNumber(r)&&u.splice(r,1,function(e){a(function(){e&&"undefined"==typeof e.error?o.resolve(e):o.reject(e),t.isFunction(n)&&n(e)})}),a(function(){i.promise.then(function(){s.FB.Event.subscribe.apply(FB,u)},function(){throw"Facebook API could not be initialized properly"})}),o.promise},u.prototype.unsubscribe=function(){var n,r,o=e.defer(),u=Array.prototype.slice.call(arguments);return t.forEach(u,function(e,i){t.isFunction(e)&&(n=e,r=i)}),t.isFunction(n)&&t.isNumber(r)&&u.splice(r,1,function(e){a(function(){e&&"undefined"==typeof e.error?o.resolve(e):o.reject(e),t.isFunction(n)&&n(e)})}),a(function(){i.promise.then(function(){s.FB.Event.unsubscribe.apply(FB,u)},function(){throw"Facebook API could not be initialized properly"})}),o.promise},new u}]}]).run(["$rootScope","$q","$window","$timeout",function(e,n,a,s){i=n.defer();var u=r.loadSDK;delete r.loadSDK,a.fbAsyncInit=function(){s(function(){if(!r.appId)throw"Missing appId setting.";FB.init(r),o.ready=!0,t.forEach({"auth.login":"login","auth.logout":"logout","auth.prompt":"prompt","auth.sessionChange":"sessionChange","auth.statusChange":"statusChange","auth.authResponseChange":"authResponseChange","xfbml.render":"xfbmlRender","edge.create":"like","edge.remove":"unlike","comment.create":"comment","comment.remove":"uncomment"},function(t,n){FB.Event.subscribe(n,function(n){s(function(){e.$broadcast("Facebook:"+t,n)})})}),e.$broadcast("Facebook:load"),i.resolve(FB)})},function(){var e=document.getElementById("fb-root");return e||(e=document.createElement("div"),e.id="fb-root",document.body.insertBefore(e,document.body.childNodes[0])),e}(),u&&!function(){var e="//connect.facebook.net/"+r.locale+"/sdk.js",t=document.createElement("script");t.id="facebook-jssdk",t.async=!0,["file","file:"].indexOf(a.location.protocol)!==-1&&(e="https:"+e),t.src=e,t.onload=function(){o.sdk=!0},document.getElementsByTagName("head")[0].appendChild(t)}()}])}(window,angular),angular.module("directive.g+signin",[]).directive("googlePlusSignin",["$window",function(e){var t=/\.apps\.googleusercontent\.com$/;return{restrict:"E",transclude:!0,template:"<span></span>",replace:!0,link:function(n,i,r,o,a){r.clientid+=t.test(r.clientid)?"":".apps.googleusercontent.com",r.$set("data-clientid",r.clientid),r.$set("theme",r.theme);var s={callback:"signinCallback",cookiepolicy:"single_host_origin",requestvisibleactions:"http://schemas.google.com/AddActivity",scope:"https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email",height:"standard",width:"wide",state:""};s.clientid=r.clientid,s.theme=r.theme,angular.forEach(Object.getOwnPropertyNames(s),function(e){r.hasOwnProperty(e)&&(s[e]=r[e])}),r.$observe("language",function(t){e.___gcfg={lang:t?t:"en"}});var u=document.createElement("script");u.type="text/javascript",u.async=!0,u.src="https://apis.google.com/js/client:plusone.js";var l=document.getElementsByTagName("script")[0];l.parentNode.insertBefore(u,l),a(function(e,t){u.onload=function(){e.length&&i.append(e),gapi.signin.render(i[0],s)}})}}}]).run(["$window","$rootScope",function(e,t){e.signinCallback=function(e){e&&e.access_token?t.$broadcast("event:google-plus-signin-success",e):t.$broadcast("event:google-plus-signin-failure",e)}}]),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 fi.apply(null,arguments)}function t(e){fi=e}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return"[object Object]"===Object.prototype.toString.call(e)}function r(e){var t;for(t in e)return!1;return!0}function o(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function a(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,n,i){return mt(e,t,n,i,!0).utc()}function c(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function p(e){return null==e._pf&&(e._pf=c()),e._pf}function d(e){if(null==e._isValid){var t=p(e),n=hi.call(t.parsedDateParts,function(e){return null!=e});e._isValid=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),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=l(NaN);return null!=e?u(p(t),e):p(t).userInvalidated=!0,t}function h(e){return void 0===e}function g(e,t){var n,i,r;if(h(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),h(t._i)||(e._i=t._i),h(t._f)||(e._f=t._f),h(t._l)||(e._l=t._l),h(t._strict)||(e._strict=t._strict),h(t._tzm)||(e._tzm=t._tzm),h(t._isUTC)||(e._isUTC=t._isUTC),h(t._offset)||(e._offset=t._offset),h(t._pf)||(e._pf=p(t)),h(t._locale)||(e._locale=t._locale),gi.length>0)for(n in gi)i=gi[n],r=t[i],h(r)||(e[i]=r);return e}function m(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),mi===!1&&(mi=!0,e.updateOffset(this),mi=!1)}function v(e){return e instanceof m||null!=e&&null!=e._isAMomentObject}function y(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function b(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=y(t)),n}function $(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&b(e[i])!==b(t[i]))&&a++;return a+o}function w(t){e.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function _(t,n){var i=!0;return u(function(){return null!=e.deprecationHandler&&e.deprecationHandler(null,t),i&&(w(t+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),i=!1),n.apply(this,arguments)},n)}function k(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),vi[t]||(w(n),vi[t]=!0)}function x(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function C(e){var t,n;for(n in e)t=e[n],x(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function A(e,t){var n,r=u({},e);for(n in t)s(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},u(r[n],e[n]),u(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&i(e[n])&&(r[n]=u({},r[n]));return r}function M(e){null!=e&&this.set(e)}function S(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return x(i)?i.call(t,n):i}function D(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 T(){return this._invalidDate}function E(e){return this._ordinal.replace("%d",e)}function O(e,t,n,i){var r=this._relativeTime[n];return x(r)?r(e,t,n,i):r.replace(/%d/i,e)}function P(e,t){var n=this._relativeTime[e>0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)}function I(e,t){var n=e.toLowerCase();Ai[n]=Ai[n+"s"]=Ai[t]=e}function L(e){return"string"==typeof e?Ai[e]||Ai[e.toLowerCase()]:void 0}function j(e){var t,n,i={};for(n in e)s(e,n)&&(t=L(n),t&&(i[t]=e[n]));return i}function N(e,t){Mi[e]=t}function G(e){var t=[];for(var n in e)t.push({unit:n,priority:Mi[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function z(t,n){return function(i){return null!=i?(R(this,t,i),e.updateOffset(this,n),this):F(this,t)}}function F(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function R(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function B(e){return e=L(e),x(this[e])?this[e]():this}function U(e,t){if("object"==typeof e){e=j(e);for(var n=G(e),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit])}else if(e=L(e),x(this[e]))return this[e](t);return this}function W(e,t,n){var i=""+Math.abs(e),r=t-i.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function H(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(Ei[e]=r),t&&(Ei[t[0]]=function(){return W(r.apply(this,arguments),t[1],t[2])}),n&&(Ei[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function V(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function q(e){var t,n,i=e.match(Si);for(t=0,n=i.length;t<n;t++)Ei[i[t]]?i[t]=Ei[i[t]]:i[t]=V(i[t]);return function(t){var r,o="";for(r=0;r<n;r++)o+=i[r]instanceof Function?i[r].call(t,e):i[r];return o}}function Y(e,t){return e.isValid()?(t=K(t,e.localeData()),Ti[t]=Ti[t]||q(t),Ti[t](e)):e.localeData().invalidDate()}function K(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(Di.lastIndex=0;i>=0&&Di.test(e);)e=e.replace(Di,n),Di.lastIndex=0,i-=1;return e}function Z(e,t,n){Ki[e]=x(t)?t:function(e,i){return e&&n?n:t}}function X(e,t){return s(Ki,e)?Ki[e](t._strict,t._locale):new RegExp(J(e))}function J(e){return Q(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function Q(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ee(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(i=function(e,n){n[t]=b(e)}),n=0;n<e.length;n++)Zi[e[n]]=i}function te(e,t){ee(e,function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)})}function ne(e,t,n){null!=t&&s(Zi,e)&&Zi[e](t,n._a,n,e)}function ie(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function re(e,t){return n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ar).test(t)?"format":"standalone"][e.month()]}function oe(e,t){return n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ar.test(t)?"format":"standalone"][e.month()]}function ae(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=l([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(r=bi.call(this._shortMonthsParse,a),r!==-1?r:null):(r=bi.call(this._longMonthsParse,a),r!==-1?r:null):"MMM"===t?(r=bi.call(this._shortMonthsParse,a),r!==-1?r:(r=bi.call(this._longMonthsParse,a),r!==-1?r:null)):(r=bi.call(this._longMonthsParse,a),r!==-1?r:(r=bi.call(this._shortMonthsParse,a),r!==-1?r:null))}function se(e,t,n){var i,r,o;if(this._monthsParseExact)return ae.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=l([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function ue(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=b(t);else if(t=e.localeData().monthsParse(t),"number"!=typeof t)return e;return n=Math.min(e.date(),ie(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function le(t){return null!=t?(ue(this,t),e.updateOffset(this,!0),this):F(this,"Month")}function ce(){return ie(this.year(),this.month())}function pe(e){return this._monthsParseExact?(s(this,"_monthsRegex")||fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=lr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function de(e){return this._monthsParseExact?(s(this,"_monthsRegex")||fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=cr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function fe(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],o=[];for(t=0;t<12;t++)n=l([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),o.sort(e),t=0;t<12;t++)i[t]=Q(i[t]),r[t]=Q(r[t]);for(t=0;t<24;t++)o[t]=Q(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function he(e){return ge(e)?366:365}function ge(e){return e%4===0&&e%100!==0||e%400===0}function me(){return ge(this.year())}function ve(e,t,n,i,r,o,a){var s=new Date(e,t,n,i,r,o,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function ye(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function be(e,t,n){var i=7+t-n,r=(7+ye(e,0,i).getUTCDay()-t)%7;return-r+i-1}function $e(e,t,n,i,r){var o,a,s=(7+n-i)%7,u=be(e,i,r),l=1+7*(t-1)+s+u;return l<=0?(o=e-1,a=he(o)+l):l>he(e)?(o=e+1,a=l-he(e)):(o=e,a=l),{year:o,dayOfYear:a}}function we(e,t,n){var i,r,o=be(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(r=e.year()-1,i=a+_e(r,t,n)):a>_e(e.year(),t,n)?(i=a-_e(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function _e(e,t,n){var i=be(e,t,n),r=be(e+1,t,n);return(he(e)-i+r)/7}function ke(e){return we(e,this._week.dow,this._week.doy).week}function xe(){return this._week.dow}function Ce(){return this._week.doy}function Ae(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Me(e){var t=we(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Se(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function De(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Te(e,t){return n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]}function Ee(e){return this._weekdaysShort[e.day()]}function Oe(e){return this._weekdaysMin[e.day()]}function Pe(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=l([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(r=bi.call(this._weekdaysParse,a),r!==-1?r:null):"ddd"===t?(r=bi.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=bi.call(this._minWeekdaysParse,a),r!==-1?r:null):"dddd"===t?(r=bi.call(this._weekdaysParse,a),r!==-1?r:(r=bi.call(this._shortWeekdaysParse,a),r!==-1?r:(r=bi.call(this._minWeekdaysParse,a),r!==-1?r:null))):"ddd"===t?(r=bi.call(this._shortWeekdaysParse,a),r!==-1?r:(r=bi.call(this._weekdaysParse,a),r!==-1?r:(r=bi.call(this._minWeekdaysParse,a),r!==-1?r:null))):(r=bi.call(this._minWeekdaysParse,a),r!==-1?r:(r=bi.call(this._weekdaysParse,a),r!==-1?r:(r=bi.call(this._shortWeekdaysParse,a),r!==-1?r:null)))}function Ie(e,t,n){var i,r,o;if(this._weekdaysParseExact)return Pe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=l([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Le(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Se(e,this.localeData()),this.add(e-t,"d")):t}function je(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ne(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=De(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ge(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Re.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=mr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function ze(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Re.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=vr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Fe(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Re.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=yr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Re(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],u=[],c=[];for(t=0;t<7;t++)n=l([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(i),s.push(r),u.push(o),c.push(i),c.push(r),c.push(o);for(a.sort(e),s.sort(e),u.sort(e),c.sort(e),t=0;t<7;t++)s[t]=Q(s[t]),u[t]=Q(u[t]),c[t]=Q(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Be(){return this.hours()%12||12}function Ue(){return this.hours()||24}function We(e,t){H(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function He(e,t){return t._meridiemParse}function Ve(e){return"p"===(e+"").toLowerCase().charAt(0)}function qe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ye(e){return e?e.toLowerCase().replace("_","-"):e}function Ke(e){for(var t,n,i,r,o=0;o<e.length;){for(r=Ye(e[o]).split("-"),t=r.length,n=Ye(e[o+1]),n=n?n.split("-"):null;t>0;){if(i=Ze(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&$(r,n,!0)>=t-1)break;t--}o++}return null}function Ze(e){var t=null;if(!kr[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=br._abbr,require("./locale/"+e),Xe(t)}catch(n){}return kr[e]}function Xe(e,t){var n;return e&&(n=h(t)?et(e):Je(e,t),n&&(br=n)),br._abbr}function Je(e,t){if(null!==t){var n=_r;return t.abbr=e,null!=kr[e]?(k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=kr[e]._config):null!=t.parentLocale&&(null!=kr[t.parentLocale]?n=kr[t.parentLocale]._config:k("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),kr[e]=new M(A(n,t)),Xe(e),kr[e]}return delete kr[e],null}function Qe(e,t){if(null!=t){var n,i=_r;null!=kr[e]&&(i=kr[e]._config),t=A(i,t),n=new M(t),n.parentLocale=kr[e],kr[e]=n,Xe(e)}else null!=kr[e]&&(null!=kr[e].parentLocale?kr[e]=kr[e].parentLocale:null!=kr[e]&&delete kr[e]);return kr[e]}function et(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return br;if(!n(e)){if(t=Ze(e))return t;e=[e]}return Ke(e)}function tt(){return yi(kr)}function nt(e){var t,n=e._a;return n&&p(e).overflow===-2&&(t=n[Ji]<0||n[Ji]>11?Ji:n[Qi]<1||n[Qi]>ie(n[Xi],n[Ji])?Qi:n[er]<0||n[er]>24||24===n[er]&&(0!==n[tr]||0!==n[nr]||0!==n[ir])?er:n[tr]<0||n[tr]>59?tr:n[nr]<0||n[nr]>59?nr:n[ir]<0||n[ir]>999?ir:-1,p(e)._overflowDayOfYear&&(t<Xi||t>Qi)&&(t=Qi),p(e)._overflowWeeks&&t===-1&&(t=rr),p(e)._overflowWeekday&&t===-1&&(t=or),p(e).overflow=t),e}function it(e){var t,n,i,r,o,a,s=e._i,u=xr.exec(s)||Cr.exec(s);if(u){for(p(e).iso=!0,t=0,n=Mr.length;t<n;t++)if(Mr[t][1].exec(u[1])){r=Mr[t][0],i=Mr[t][2]!==!1;break}if(null==r)return void(e._isValid=!1);if(u[3]){for(t=0,n=Sr.length;t<n;t++)if(Sr[t][1].exec(u[3])){o=(u[2]||" ")+Sr[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Ar.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=r+(o||"")+(a||""),lt(e)}else e._isValid=!1}function rt(t){var n=Dr.exec(t._i);return null!==n?void(t._d=new Date((+n[1]))):(it(t),void(t._isValid===!1&&(delete t._isValid,e.createFromInputFallback(t))))}function ot(e,t,n){return null!=e?e:null!=t?t:n}function at(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function st(e){var t,n,i,r,o=[];if(!e._d){for(i=at(e),e._w&&null==e._a[Qi]&&null==e._a[Ji]&&ut(e),e._dayOfYear&&(r=ot(e._a[Xi],i[Xi]),e._dayOfYear>he(r)&&(p(e)._overflowDayOfYear=!0),n=ye(r,0,e._dayOfYear),e._a[Ji]=n.getUTCMonth(),e._a[Qi]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[er]&&0===e._a[tr]&&0===e._a[nr]&&0===e._a[ir]&&(e._nextDay=!0,e._a[er]=0),e._d=(e._useUTC?ye:ve).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[er]=24)}}function ut(e){var t,n,i,r,o,a,s,u;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,a=4,n=ot(t.GG,e._a[Xi],we(vt(),1,4).year),i=ot(t.W,1),r=ot(t.E,1),(r<1||r>7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,n=ot(t.gg,e._a[Xi],we(vt(),o,a).year),i=ot(t.w,1),null!=t.d?(r=t.d,(r<0||r>6)&&(u=!0)):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(u=!0)):r=o),i<1||i>_e(n,o,a)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(s=$e(n,i,r,o,a),e._a[Xi]=s.year,e._dayOfYear=s.dayOfYear)}function lt(t){if(t._f===e.ISO_8601)return void it(t);t._a=[],p(t).empty=!0;var n,i,r,o,a,s=""+t._i,u=s.length,l=0;for(r=K(t._f,t._locale).match(Si)||[],n=0;n<r.length;n++)o=r[n],i=(s.match(X(o,t))||[])[0],i&&(a=s.substr(0,s.indexOf(i)),a.length>0&&p(t).unusedInput.push(a),s=s.slice(s.indexOf(i)+i.length),l+=i.length),Ei[o]?(i?p(t).empty=!1:p(t).unusedTokens.push(o),ne(o,i,t)):t._strict&&!i&&p(t).unusedTokens.push(o);p(t).charsLeftOver=u-l,s.length>0&&p(t).unusedInput.push(s),t._a[er]<=12&&p(t).bigHour===!0&&t._a[er]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[er]=ct(t._locale,t._a[er],t._meridiem),st(t),nt(t)}function ct(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function pt(e){var t,n,i,r,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)o=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],lt(t),d(t)&&(o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,(null==i||o<i)&&(i=o,n=t));u(e,n||t)}function dt(e){if(!e._d){var t=j(e._i);e._a=a([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),st(e)}}function ft(e){var t=new m(nt(ht(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ht(e){var t=e._i,i=e._f;return e._locale=e._locale||et(e._l),null===t||void 0===i&&""===t?f({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new m(nt(t)):(n(i)?pt(e):o(t)?e._d=t:i?lt(e):gt(e),d(e)||(e._d=null),e))}function gt(t){var i=t._i;void 0===i?t._d=new Date(e.now()):o(i)?t._d=new Date(i.valueOf()):"string"==typeof i?rt(t):n(i)?(t._a=a(i.slice(0),function(e){return parseInt(e,10)}),st(t)):"object"==typeof i?dt(t):"number"==typeof i?t._d=new Date(i):e.createFromInputFallback(t)}function mt(e,t,o,a,s){var u={};return"boolean"==typeof o&&(a=o,o=void 0),(i(e)&&r(e)||n(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=o,u._i=e,u._f=t,u._strict=a,ft(u)}function vt(e,t,n,i){return mt(e,t,n,i,!1)}function yt(e,t){var i,r;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return vt();for(i=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](i)||(i=t[r]);return i}function bt(){var e=[].slice.call(arguments,0);return yt("isBefore",e)}function $t(){var e=[].slice.call(arguments,0);return yt("isAfter",e)}function wt(e){var t=j(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||0,a=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=et(),this._bubble()}function _t(e){return e instanceof wt}function kt(e,t){H(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+W(~~(e/60),2)+t+W(~~e%60,2)})}function xt(e,t){var n=(t||"").match(e)||[],i=n[n.length-1]||[],r=(i+"").match(Pr)||["-",0,0],o=+(60*r[1])+b(r[2]);return"+"===r[0]?o:-o}function Ct(t,n){var i,r;return n._isUTC?(i=n.clone(),r=(v(t)||o(t)?t.valueOf():vt(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+r),e.updateOffset(i,!1),i):vt(t).local()}function At(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Mt(t,n){var i,r=this._offset||0;return this.isValid()?null!=t?("string"==typeof t?t=xt(Vi,t):Math.abs(t)<16&&(t=60*t),!this._isUTC&&n&&(i=At(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==t&&(!n||this._changeInProgress?Wt(this,Gt(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:At(this):null!=t?this:NaN}function St(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Dt(e){return this.utcOffset(0,e)}function Tt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(At(this),"m")),this}function Et(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(xt(Hi,this._i)),this}function Ot(e){return!!this.isValid()&&(e=e?vt(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function Pt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function It(){if(!h(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=ht(e),e._a){var t=e._isUTC?l(e._a):vt(e._a);this._isDSTShifted=this.isValid()&&$(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Lt(){return!!this.isValid()&&!this._isUTC}function jt(){return!!this.isValid()&&this._isUTC}function Nt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Gt(e,t){var n,i,r,o=e,a=null;return _t(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(o={},t?o[t]=e:o.milliseconds=e):(a=Ir.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:b(a[Qi])*n,h:b(a[er])*n,m:b(a[tr])*n,s:b(a[nr])*n,ms:b(a[ir])*n}):(a=Lr.exec(e))?(n="-"===a[1]?-1:1,o={y:zt(a[2],n),M:zt(a[3],n),w:zt(a[4],n),d:zt(a[5],n),h:zt(a[6],n),m:zt(a[7],n),s:zt(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=Rt(vt(o.from),vt(o.to)),o={},o.ms=r.milliseconds,o.M=r.months),i=new wt(o),_t(e)&&s(e,"_locale")&&(i._locale=e._locale),i}function zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ft(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 Rt(e,t){var n;return e.isValid()&&t.isValid()?(t=Ct(t,e),e.isBefore(t)?n=Ft(e,t):(n=Ft(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Bt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Ut(e,t){return function(n,i){var r,o;return null===i||isNaN(+i)||(k(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),n="string"==typeof n?+n:n,r=Gt(n,i),Wt(this,r,e),this}}function Wt(t,n,i,r){var o=n._milliseconds,a=Bt(n._days),s=Bt(n._months);t.isValid()&&(r=null==r||r,o&&t._d.setTime(t._d.valueOf()+o*i),a&&R(t,"Date",F(t,"Date")+a*i),s&&ue(t,F(t,"Month")+s*i),r&&e.updateOffset(t,a||s))}function Ht(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Vt(t,n){var i=t||vt(),r=Ct(i,this).startOf("day"),o=e.calendarFormat(this,r)||"sameElse",a=n&&(x(n[o])?n[o].call(this,i):n[o]);return this.format(a||this.localeData().calendar(o,this,vt(i)))}function qt(){return new m(this)}function Yt(e,t){var n=v(e)?e:vt(e);return!(!this.isValid()||!n.isValid())&&(t=L(h(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Kt(e,t){var n=v(e)?e:vt(e);return!(!this.isValid()||!n.isValid())&&(t=L(h(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Zt(e,t,n,i){return i=i||"()",("("===i[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))}function Xt(e,t){var n,i=v(e)?e:vt(e);return!(!this.isValid()||!i.isValid())&&(t=L(t||"millisecond"),"millisecond"===t?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Jt(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Qt(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function en(e,t,n){var i,r,o,a;return this.isValid()?(i=Ct(e,this),i.isValid()?(r=6e4*(i.utcOffset()-this.utcOffset()),t=L(t),"year"===t||"month"===t||"quarter"===t?(a=tn(this,i),"quarter"===t?a/=3:"year"===t&&(a/=12)):(o=this-i,a="second"===t?o/1e3:"minute"===t?o/6e4:"hour"===t?o/36e5:"day"===t?(o-r)/864e5:"week"===t?(o-r)/6048e5:o),n?a:y(a)):NaN):NaN}function tn(e,t){var n,i,r=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(r,"months");return t-o<0?(n=e.clone().add(r-1,"months"),i=(t-o)/(o-n)):(n=e.clone().add(r+1,"months"),i=(t-o)/(n-o)),-(r+i)||0}function nn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function rn(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?x(Date.prototype.toISOString)?this.toDate().toISOString():Y(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):Y(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]");
  }function on(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=Y(this,t);return this.localeData().postformat(n)}function an(e,t){return this.isValid()&&(v(e)&&e.isValid()||vt(e).isValid())?Gt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sn(e){return this.from(vt(),e)}function un(e,t){return this.isValid()&&(v(e)&&e.isValid()||vt(e).isValid())?Gt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ln(e){return this.to(vt(),e)}function cn(e){var t;return void 0===e?this._locale._abbr:(t=et(e),null!=t&&(this._locale=t),this)}function pn(){return this._locale}function dn(e){switch(e=L(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function fn(e){return e=L(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function hn(){return this._d.valueOf()-6e4*(this._offset||0)}function gn(){return Math.floor(this.valueOf()/1e3)}function mn(){return new Date(this.valueOf())}function vn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function yn(){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 bn(){return this.isValid()?this.toISOString():null}function $n(){return d(this)}function wn(){return u({},p(this))}function _n(){return p(this).overflow}function kn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function xn(e,t){H(0,[e,e.length],0,t)}function Cn(e){return Dn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function An(e){return Dn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Mn(){return _e(this.year(),1,4)}function Sn(){var e=this.localeData()._week;return _e(this.year(),e.dow,e.doy)}function Dn(e,t,n,i,r){var o;return null==e?we(this,i,r).year:(o=_e(e,i,r),t>o&&(t=o),Tn.call(this,e,t,n,i,r))}function Tn(e,t,n,i,r){var o=$e(e,t,n,i,r),a=ye(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function En(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function On(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 Pn(e,t){t[ir]=b(1e3*("0."+e))}function In(){return this._isUTC?"UTC":""}function Ln(){return this._isUTC?"Coordinated Universal Time":""}function jn(e){return vt(1e3*e)}function Nn(){return vt.apply(null,arguments).parseZone()}function Gn(e){return e}function zn(e,t,n,i){var r=et(),o=l().set(i,t);return r[n](o,e)}function Fn(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return zn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=zn(e,i,n,"month");return r}function Rn(e,t,n,i){"boolean"==typeof e?("number"==typeof t&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,"number"==typeof t&&(n=t,t=void 0),t=t||"");var r=et(),o=e?r._week.dow:0;if(null!=n)return zn(t,(n+o)%7,i,"day");var a,s=[];for(a=0;a<7;a++)s[a]=zn(t,(a+o)%7,i,"day");return s}function Bn(e,t){return Fn(e,t,"months")}function Un(e,t){return Fn(e,t,"monthsShort")}function Wn(e,t,n){return Rn(e,t,n,"weekdays")}function Hn(e,t,n){return Rn(e,t,n,"weekdaysShort")}function Vn(e,t,n){return Rn(e,t,n,"weekdaysMin")}function qn(){var e=this._data;return this._milliseconds=qr(this._milliseconds),this._days=qr(this._days),this._months=qr(this._months),e.milliseconds=qr(e.milliseconds),e.seconds=qr(e.seconds),e.minutes=qr(e.minutes),e.hours=qr(e.hours),e.months=qr(e.months),e.years=qr(e.years),this}function Yn(e,t,n,i){var r=Gt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Kn(e,t){return Yn(this,e,t,1)}function Zn(e,t){return Yn(this,e,t,-1)}function Xn(e){return e<0?Math.floor(e):Math.ceil(e)}function Jn(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Xn(ei(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=y(o/1e3),u.seconds=e%60,t=y(e/60),u.minutes=t%60,n=y(t/60),u.hours=n%24,a+=y(n/24),r=y(Qn(a)),s+=r,a-=Xn(ei(r)),i=y(s/12),s%=12,u.days=a,u.months=s,u.years=i,this}function Qn(e){return 4800*e/146097}function ei(e){return 146097*e/4800}function ti(e){var t,n,i=this._milliseconds;if(e=L(e),"month"===e||"year"===e)return t=this._days+i/864e5,n=this._months+Qn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(ei(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function ni(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12)}function ii(e){return function(){return this.as(e)}}function ri(e){return e=L(e),this[e+"s"]()}function oi(e){return function(){return this._data[e]}}function ai(){return y(this.days()/7)}function si(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function ui(e,t,n){var i=Gt(e).abs(),r=lo(i.as("s")),o=lo(i.as("m")),a=lo(i.as("h")),s=lo(i.as("d")),u=lo(i.as("M")),l=lo(i.as("y")),c=r<co.s&&["s",r]||o<=1&&["m"]||o<co.m&&["mm",o]||a<=1&&["h"]||a<co.h&&["hh",a]||s<=1&&["d"]||s<co.d&&["dd",s]||u<=1&&["M"]||u<co.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,si.apply(null,c)}function li(e){return void 0===e?lo:"function"==typeof e&&(lo=e,!0)}function ci(e,t){return void 0!==co[e]&&(void 0===t?co[e]:(co[e]=t,!0))}function pi(e){var t=this.localeData(),n=ui(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function di(){var e,t,n,i=po(this._milliseconds)/1e3,r=po(this._days),o=po(this._months);e=y(i/60),t=y(e/60),i%=60,e%=60,n=y(o/12),o%=12;var a=n,s=o,u=r,l=t,c=e,p=i,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(l||c||p?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(p?p+"S":""):"P0D"}var fi,hi;hi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var gi=e.momentProperties=[],mi=!1,vi={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var yi;yi=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var bi,$i={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},wi={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"},_i="Invalid date",ki="%d",xi=/\d{1,2}/,Ci={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"},Ai={},Mi={},Si=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Di=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ti={},Ei={},Oi=/\d/,Pi=/\d\d/,Ii=/\d{3}/,Li=/\d{4}/,ji=/[+-]?\d{6}/,Ni=/\d\d?/,Gi=/\d\d\d\d?/,zi=/\d\d\d\d\d\d?/,Fi=/\d{1,3}/,Ri=/\d{1,4}/,Bi=/[+-]?\d{1,6}/,Ui=/\d+/,Wi=/[+-]?\d+/,Hi=/Z|[+-]\d\d:?\d\d/gi,Vi=/Z|[+-]\d\d(?::?\d\d)?/gi,qi=/[+-]?\d+(\.\d{1,3})?/,Yi=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Ki={},Zi={},Xi=0,Ji=1,Qi=2,er=3,tr=4,nr=5,ir=6,rr=7,or=8;bi=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},H("M",["MM",2],"Mo",function(){return this.month()+1}),H("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),H("MMMM",0,0,function(e){return this.localeData().months(this,e)}),I("month","M"),N("month",8),Z("M",Ni),Z("MM",Ni,Pi),Z("MMM",function(e,t){return t.monthsShortRegex(e)}),Z("MMMM",function(e,t){return t.monthsRegex(e)}),ee(["M","MM"],function(e,t){t[Ji]=b(e)-1}),ee(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[Ji]=r:p(n).invalidMonth=e});var ar=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,sr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ur="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),lr=Yi,cr=Yi;H("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),H(0,["YY",2],0,function(){return this.year()%100}),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),I("year","y"),N("year",1),Z("Y",Wi),Z("YY",Ni,Pi),Z("YYYY",Ri,Li),Z("YYYYY",Bi,ji),Z("YYYYYY",Bi,ji),ee(["YYYYY","YYYYYY"],Xi),ee("YYYY",function(t,n){n[Xi]=2===t.length?e.parseTwoDigitYear(t):b(t)}),ee("YY",function(t,n){n[Xi]=e.parseTwoDigitYear(t)}),ee("Y",function(e,t){t[Xi]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var pr=z("FullYear",!0);H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),N("week",5),N("isoWeek",5),Z("w",Ni),Z("ww",Ni,Pi),Z("W",Ni),Z("WW",Ni,Pi),te(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=b(e)});var dr={dow:0,doy:6};H("d",0,"do","day"),H("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),H("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),H("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),Z("d",Ni),Z("e",Ni),Z("E",Ni),Z("dd",function(e,t){return t.weekdaysMinRegex(e)}),Z("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Z("dddd",function(e,t){return t.weekdaysRegex(e)}),te(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),te(["d","e","E"],function(e,t,n,i){t[i]=b(e)});var fr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),hr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),gr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),mr=Yi,vr=Yi,yr=Yi;H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Be),H("k",["kk",2],0,Ue),H("hmm",0,0,function(){return""+Be.apply(this)+W(this.minutes(),2)}),H("hmmss",0,0,function(){return""+Be.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),We("a",!0),We("A",!1),I("hour","h"),N("hour",13),Z("a",He),Z("A",He),Z("H",Ni),Z("h",Ni),Z("HH",Ni,Pi),Z("hh",Ni,Pi),Z("hmm",Gi),Z("hmmss",zi),Z("Hmm",Gi),Z("Hmmss",zi),ee(["H","HH"],er),ee(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ee(["h","hh"],function(e,t,n){t[er]=b(e),p(n).bigHour=!0}),ee("hmm",function(e,t,n){var i=e.length-2;t[er]=b(e.substr(0,i)),t[tr]=b(e.substr(i)),p(n).bigHour=!0}),ee("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[er]=b(e.substr(0,i)),t[tr]=b(e.substr(i,2)),t[nr]=b(e.substr(r)),p(n).bigHour=!0}),ee("Hmm",function(e,t,n){var i=e.length-2;t[er]=b(e.substr(0,i)),t[tr]=b(e.substr(i))}),ee("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[er]=b(e.substr(0,i)),t[tr]=b(e.substr(i,2)),t[nr]=b(e.substr(r))});var br,$r=/[ap]\.?m?\.?/i,wr=z("Hours",!0),_r={calendar:$i,longDateFormat:wi,invalidDate:_i,ordinal:ki,ordinalParse:xi,relativeTime:Ci,months:sr,monthsShort:ur,week:dr,weekdays:fr,weekdaysMin:gr,weekdaysShort:hr,meridiemParse:$r},kr={},xr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Cr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Ar=/Z|[+-]\d\d(?::?\d\d)?/,Mr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Sr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dr=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=_("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){};var Tr=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:f()}),Er=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:f()}),Or=function(){return Date.now?Date.now():+new Date};kt("Z",":"),kt("ZZ",""),Z("Z",Vi),Z("ZZ",Vi),ee(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=xt(Vi,e)});var Pr=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Ir=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,Lr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Gt.fn=wt.prototype;var jr=Ut(1,"add"),Nr=Ut(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Gr=_("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)});H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),xn("gggg","weekYear"),xn("ggggg","weekYear"),xn("GGGG","isoWeekYear"),xn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),Z("G",Wi),Z("g",Wi),Z("GG",Ni,Pi),Z("gg",Ni,Pi),Z("GGGG",Ri,Li),Z("gggg",Ri,Li),Z("GGGGG",Bi,ji),Z("ggggg",Bi,ji),te(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=b(e)}),te(["gg","GG"],function(t,n,i,r){n[r]=e.parseTwoDigitYear(t)}),H("Q",0,"Qo","quarter"),I("quarter","Q"),N("quarter",7),Z("Q",Oi),ee("Q",function(e,t){t[Ji]=3*(b(e)-1)}),H("D",["DD",2],"Do","date"),I("date","D"),N("date",9),Z("D",Ni),Z("DD",Ni,Pi),Z("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),ee(["D","DD"],Qi),ee("Do",function(e,t){t[Qi]=b(e.match(Ni)[0],10)});var zr=z("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),N("dayOfYear",4),Z("DDD",Fi),Z("DDDD",Ii),ee(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),H("m",["mm",2],0,"minute"),I("minute","m"),N("minute",14),Z("m",Ni),Z("mm",Ni,Pi),ee(["m","mm"],tr);var Fr=z("Minutes",!1);H("s",["ss",2],0,"second"),I("second","s"),N("second",15),Z("s",Ni),Z("ss",Ni,Pi),ee(["s","ss"],nr);var Rr=z("Seconds",!1);H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),N("millisecond",16),Z("S",Fi,Oi),Z("SS",Fi,Pi),Z("SSS",Fi,Ii);var Br;for(Br="SSSS";Br.length<=9;Br+="S")Z(Br,Ui);for(Br="S";Br.length<=9;Br+="S")ee(Br,Pn);var Ur=z("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var Wr=m.prototype;Wr.add=jr,Wr.calendar=Vt,Wr.clone=qt,Wr.diff=en,Wr.endOf=fn,Wr.format=on,Wr.from=an,Wr.fromNow=sn,Wr.to=un,Wr.toNow=ln,Wr.get=B,Wr.invalidAt=_n,Wr.isAfter=Yt,Wr.isBefore=Kt,Wr.isBetween=Zt,Wr.isSame=Xt,Wr.isSameOrAfter=Jt,Wr.isSameOrBefore=Qt,Wr.isValid=$n,Wr.lang=Gr,Wr.locale=cn,Wr.localeData=pn,Wr.max=Er,Wr.min=Tr,Wr.parsingFlags=wn,Wr.set=U,Wr.startOf=dn,Wr.subtract=Nr,Wr.toArray=vn,Wr.toObject=yn,Wr.toDate=mn,Wr.toISOString=rn,Wr.toJSON=bn,Wr.toString=nn,Wr.unix=gn,Wr.valueOf=hn,Wr.creationData=kn,Wr.year=pr,Wr.isLeapYear=me,Wr.weekYear=Cn,Wr.isoWeekYear=An,Wr.quarter=Wr.quarters=En,Wr.month=le,Wr.daysInMonth=ce,Wr.week=Wr.weeks=Ae,Wr.isoWeek=Wr.isoWeeks=Me,Wr.weeksInYear=Sn,Wr.isoWeeksInYear=Mn,Wr.date=zr,Wr.day=Wr.days=Le,Wr.weekday=je,Wr.isoWeekday=Ne,Wr.dayOfYear=On,Wr.hour=Wr.hours=wr,Wr.minute=Wr.minutes=Fr,Wr.second=Wr.seconds=Rr,Wr.millisecond=Wr.milliseconds=Ur,Wr.utcOffset=Mt,Wr.utc=Dt,Wr.local=Tt,Wr.parseZone=Et,Wr.hasAlignedHourOffset=Ot,Wr.isDST=Pt,Wr.isLocal=Lt,Wr.isUtcOffset=jt,Wr.isUtc=Nt,Wr.isUTC=Nt,Wr.zoneAbbr=In,Wr.zoneName=Ln,Wr.dates=_("dates accessor is deprecated. Use date instead.",zr),Wr.months=_("months accessor is deprecated. Use month instead",le),Wr.years=_("years accessor is deprecated. Use year instead",pr),Wr.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",St),Wr.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",It);var Hr=Wr,Vr=M.prototype;Vr.calendar=S,Vr.longDateFormat=D,Vr.invalidDate=T,Vr.ordinal=E,Vr.preparse=Gn,Vr.postformat=Gn,Vr.relativeTime=O,Vr.pastFuture=P,Vr.set=C,Vr.months=re,Vr.monthsShort=oe,Vr.monthsParse=se,Vr.monthsRegex=de,Vr.monthsShortRegex=pe,Vr.week=ke,Vr.firstDayOfYear=Ce,Vr.firstDayOfWeek=xe,Vr.weekdays=Te,Vr.weekdaysMin=Oe,Vr.weekdaysShort=Ee,Vr.weekdaysParse=Ie,Vr.weekdaysRegex=Ge,Vr.weekdaysShortRegex=ze,Vr.weekdaysMinRegex=Fe,Vr.isPM=Ve,Vr.meridiem=qe,Xe("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),e.lang=_("moment.lang is deprecated. Use moment.locale instead.",Xe),e.langData=_("moment.langData is deprecated. Use moment.localeData instead.",et);var qr=Math.abs,Yr=ii("ms"),Kr=ii("s"),Zr=ii("m"),Xr=ii("h"),Jr=ii("d"),Qr=ii("w"),eo=ii("M"),to=ii("y"),no=oi("milliseconds"),io=oi("seconds"),ro=oi("minutes"),oo=oi("hours"),ao=oi("days"),so=oi("months"),uo=oi("years"),lo=Math.round,co={s:45,m:45,h:22,d:26,M:11},po=Math.abs,fo=wt.prototype;fo.abs=qn,fo.add=Kn,fo.subtract=Zn,fo.as=ti,fo.asMilliseconds=Yr,fo.asSeconds=Kr,fo.asMinutes=Zr,fo.asHours=Xr,fo.asDays=Jr,fo.asWeeks=Qr,fo.asMonths=eo,fo.asYears=to,fo.valueOf=ni,fo._bubble=Jn,fo.get=ri,fo.milliseconds=no,fo.seconds=io,fo.minutes=ro,fo.hours=oo,fo.days=ao,fo.weeks=ai,fo.months=so,fo.years=uo,fo.humanize=pi,fo.toISOString=di,fo.toString=di,fo.toJSON=di,fo.locale=cn,fo.localeData=pn,fo.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",di),fo.lang=Gr,H("X",0,0,"unix"),H("x",0,0,"valueOf"),Z("x",Wi),Z("X",qi),ee("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ee("x",function(e,t,n){n._d=new Date(b(e))}),e.version="2.14.1",t(vt),e.fn=Hr,e.min=bt,e.max=$t,e.now=Or,e.utc=l,e.unix=jn,e.months=Bn,e.isDate=o,e.locale=Xe,e.invalid=f,e.duration=Gt,e.isMoment=v,e.weekdays=Wn,e.parseZone=Nn,e.localeData=et,e.isDuration=_t,e.monthsShort=Un,e.weekdaysMin=Vn,e.defineLocale=Je,e.updateLocale=Qe,e.locales=tt,e.weekdaysShort=Hn,e.normalizeUnits=L,e.relativeTimeRounding=li,e.relativeTimeThreshold=ci,e.calendarFormat=Ht,e.prototype=Hr;var ho=e;return ho}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["moment"],t):"object"==typeof module&&module.exports?module.exports=t(require("moment")):t(e.moment)}(this,function(e){"use strict";function t(e){return e>96?e-87:e>64?e-29:e-48}function n(e){var n,i=0,r=e.split("."),o=r[0],a=r[1]||"",s=1,u=0,l=1;for(45===e.charCodeAt(0)&&(i=1,l=-1),i;i<o.length;i++)n=t(o.charCodeAt(i)),u=60*u+n;for(i=0;i<a.length;i++)s/=60,n=t(a.charCodeAt(i)),u+=n*s;return u*l}function i(e){for(var t=0;t<e.length;t++)e[t]=n(e[t])}function r(e,t){for(var n=0;n<t;n++)e[n]=Math.round((e[n-1]||0)+6e4*e[n]);e[t-1]=1/0}function o(e,t){var n,i=[];for(n=0;n<t.length;n++)i[n]=e[t[n]];return i}function a(e){var t=e.split("|"),n=t[2].split(" "),a=t[3].split(""),s=t[4].split(" ");return i(n),i(a),i(s),r(s,a.length),{name:t[0],abbrs:o(t[1].split(" "),a),offsets:o(n,a),untils:s,population:0|t[5]}}function s(e){e&&this._set(a(e))}function u(e){var t=e.toTimeString(),n=t.match(/\([a-z ]+\)/i);n&&n[0]?(n=n[0].match(/[A-Z]/g),n=n?n.join(""):void 0):(n=t.match(/[A-Z]{3,5}/g),n=n?n[0]:void 0),"GMT"===n&&(n=void 0),this.at=+e,this.abbr=n,this.offset=e.getTimezoneOffset()}function l(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function c(e,t){for(var n,i;i=6e4*((t.at-e.at)/12e4|0);)n=new u(new Date(e.at+i)),n.offset===e.offset?e=n:t=n;return e}function p(){var e,t,n,i=(new Date).getFullYear()-2,r=new u(new Date(i,0,1)),o=[r];for(n=1;n<48;n++)t=new u(new Date(i,n,1)),t.offset!==r.offset&&(e=c(r,t),o.push(e),o.push(new u(new Date(e.at+6e4)))),r=t;for(n=0;n<4;n++)o.push(new u(new Date(i+n,0,1))),o.push(new u(new Date(i+n,6,1)));return o}function d(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:t.zone.population-e.zone.population}function f(e,t){var n,r;for(i(t),n=0;n<t.length;n++)r=t[n],I[r]=I[r]||{},I[r][e]=!0}function h(e){var t,n,i,r=e.length,o={},a=[];for(t=0;t<r;t++){i=I[e[t].offset]||{};for(n in i)i.hasOwnProperty(n)&&(o[n]=!0)}for(t in o)o.hasOwnProperty(t)&&a.push(P[t]);return a}function g(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e){var t=P[v(e)];if(t)return t;C("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(n){}var i,r,o,a=p(),s=a.length,u=h(a),c=[];for(r=0;r<u.length;r++){for(i=new l(b(u[r]),s),o=0;o<s;o++)i.scoreOffsetAt(a[o]);c.push(i)}return c.sort(d),c.length>0?c[0].zone.name:void 0}function m(e){return D&&!e||(D=g()),D}function v(e){return(e||"").toLowerCase().replace(/\//g,"_")}function y(e){var t,n,i,r;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)i=e[t].split("|"),n=i[0],r=v(n),E[r]=e[t],P[r]=n,i[5]&&f(r,i[2].split(" "))}function b(e,t){e=v(e);var n,i=E[e];return i instanceof s?i:"string"==typeof i?(i=new s(i),E[e]=i,i):O[e]&&t!==b&&(n=b(O[e],b))?(i=E[e]=new s,i._set(n),i.name=P[e],i):null}function $(){var e,t=[];for(e in P)P.hasOwnProperty(e)&&(E[e]||E[O[e]])&&P[e]&&t.push(P[e]);return t.sort()}function w(e){var t,n,i,r;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)n=e[t].split("|"),i=v(n[0]),r=v(n[1]),O[i]=r,P[i]=n[0],O[r]=i,P[r]=n[1]}function _(e){y(e.zones),w(e.links),A.dataVersion=e.version}function k(e){return k.didShowError||(k.didShowError=!0,C("moment.tz.zoneExists('"+e+"') has been deprecated in favor of !moment.tz.zone('"+e+"')")),!!b(e)}function x(e){return!(!e._a||void 0!==e._tzm)}function C(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function A(t){var n=Array.prototype.slice.call(arguments,0,-1),i=arguments[arguments.length-1],r=b(i),o=e.utc.apply(null,n);return r&&!e.isMoment(t)&&x(o)&&o.add(r.parse(o),"minutes"),o.tz(i),o}function M(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function S(e){return function(){return this._z=null,e.apply(this,arguments)}}if(void 0!==e.tz)return C("Moment Timezone "+e.tz.version+" was already loaded "+(e.tz.dataVersion?"with data from ":"without any data")+e.tz.dataVersion),e;var D,T="0.5.4",E={},O={},P={},I={},L=e.version.split("."),j=+L[0],N=+L[1];(j<2||2===j&&N<6)&&C("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),s.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,n=+e,i=this.untils;for(t=0;t<i.length;t++)if(n<i[t])return t},parse:function(e){var t,n,i,r,o=+e,a=this.offsets,s=this.untils,u=s.length-1;for(r=0;r<u;r++)if(t=a[r],n=a[r+1],i=a[r?r-1:r],t<n&&A.moveAmbiguousForward?t=n:t>i&&A.moveInvalidForward&&(t=i),o<s[r]-6e4*t)return a[r];return a[u]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return this.offsets[this._index(e)]}},l.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.offset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},A.version=T,A.dataVersion="",A._zones=E,A._links=O,A._names=P,A.add=y,A.link=w,A.load=_,A.zone=b,A.zoneExists=k,A.guess=m,A.names=$,A.Zone=s,A.unpack=a,A.unpackBase60=n,A.needsOffset=x,A.moveInvalidForward=!0,A.moveAmbiguousForward=!1;var G=e.fn;e.tz=A,e.defaultZone=null,e.updateOffset=function(t,n){var i,r=e.defaultZone;void 0===t._z&&(r&&x(t)&&!t._isUTC&&(t._d=e.utc(t._a)._d,t.utc().add(r.parse(t),"minutes")),t._z=r),t._z&&(i=t._z.offset(t),Math.abs(i)<16&&(i/=60),void 0!==t.utcOffset?t.utcOffset(-i,n):t.zone(i,n))},G.tz=function(t){return t?(this._z=b(t),this._z?e.updateOffset(this):C("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this):this._z?this._z.name:void 0},G.zoneName=M(G.zoneName),G.zoneAbbr=M(G.zoneAbbr),G.utc=S(G.utc),e.tz.setDefault=function(t){return(j<2||2===j&&N<9)&&C("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?b(t):null,e};var z=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(z)?(z.push("_z"),z.push("_a")):z&&(z._z=null),_({version:"2016d",zones:["Africa/Abidjan|GMT|0|0||48e5","Africa/Khartoum|EAT|-30|0||51e5","Africa/Algiers|CET|-10|0||26e5","Africa/Lagos|WAT|-10|0||17e6","Africa/Maputo|CAT|-20|0||26e5","Africa/Cairo|EET EEST|-20 -30|010101010|1Cby0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|WET WEST|0 -10|01010101010101010101010101010101010101010|1Cco0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 Rc0 11A0 e00 e00 U00 11A0 8o0 e00 11A0|32e5","Europe/Paris|CET CEST|-10 -20|01010101010101010101010|1BWp0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Africa/Johannesburg|SAST|-20|0||84e5","Africa/Tripoli|EET CET CEST|-20 -10 -20|0120|1IlA0 TA0 1o00|11e5","Africa/Windhoek|WAST WAT|-20 -10|01010101010101010101010|1C1c0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0|32e4","America/Adak|HST HDT|a0 90|01010101010101010101010|1BR00 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AKST AKDT|90 80|01010101010101010101010|1BQX0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Santo_Domingo|AST|40|0||29e5","America/Araguaina|BRT BRST|30 20|010|1IdD0 Lz0|14e4","America/Argentina/Buenos_Aires|ART|30|0|","America/Asuncion|PYST PYT|30 40|01010101010101010101010|1C430 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Panama|EST|50|0||15e5","America/Bahia|BRT BRST|30 20|010|1FJf0 Rb0|27e5","America/Bahia_Banderas|MST CDT CST|70 50 60|01212121212121212121212|1C1l0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Fortaleza|BRT|30|0||34e5","America/Managua|CST|60|0||22e5","America/Manaus|AMT|40|0||19e5","America/Bogota|COT|50|0||90e5","America/Denver|MST MDT|70 60|01010101010101010101010|1BQV0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Campo_Grande|AMST AMT|30 40|01010101010101010101010|1BIr0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10|77e4","America/Cancun|CST CDT EST|60 50 50|010101010102|1C1k0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|VET VET|4u 40|01|1QMT0|29e5","America/Cayenne|GFT|30|0||58e3","America/Chicago|CST CDT|60 50|01010101010101010101010|1BQU0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|MST MDT|70 60|01010101010101010101010|1C1l0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Phoenix|MST|70|0||42e5","America/Los_Angeles|PST PDT|80 70|01010101010101010101010|1BQW0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/New_York|EST EDT|50 40|01010101010101010101010|1BQT0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Rio_Branco|AMT ACT|40 50|01|1KLE0|31e4","America/Fort_Nelson|PST PDT MST|80 70 70|010101010102|1BQW0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Halifax|AST ADT|40 30|01010101010101010101010|1BQS0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Godthab|WGT WGST|30 20|01010101010101010101010|1BWp0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|AST ADT|40 30|01010101010101010101010|1BQQ1 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|EST EDT AST|50 40 40|0101010101012|1BQT0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guayaquil|ECT|50|0||27e5","America/Guyana|GYT|40|0||80e4","America/Havana|CST CDT|50 40|01010101010101010101010|1BQR0 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/La_Paz|BOT|40|0||19e5","America/Lima|PET|50|0||11e6","America/Mexico_City|CST CDT|60 50|01010101010101010101010|1C1k0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Metlakatla|PST AKST AKDT|80 90 80|012121212121|1PAa0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Miquelon|PMST PMDT|30 20|01010101010101010101010|1BQR0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Montevideo|UYST UYT|20 30|010101010101|1BQQ0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Noronha|FNT|20|0||30e2","America/North_Dakota/Beulah|MST MDT CST CDT|70 60 60 50|01232323232323232323232|1BQV0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Paramaribo|SRT|30|0||24e4","America/Port-au-Prince|EST EDT|50 40|010101010|1GI70 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Santiago|CLST CLT|30 40|010101010101010101010|1C1f0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0|62e5","America/Sao_Paulo|BRST BRT|20 30|01010101010101010101010|1BIq0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10|20e6","America/Scoresbysund|EGT EGST|10 0|01010101010101010101010|1BWp0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/St_Johns|NST NDT|3u 2u|01010101010101010101010|1BQPv 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","Antarctica/Casey|CAST AWST|-b0 -80|0101|1BN30 40P0 KL0|10","Antarctica/Davis|DAVT DAVT|-50 -70|0101|1BPw0 3Wn0 KN0|70","Antarctica/DumontDUrville|DDUT|-a0|0||80","Antarctica/Macquarie|AEDT MIST|-b0 -b0|01|1C140|1","Antarctica/Mawson|MAWT|-50|0||60","Pacific/Auckland|NZDT NZST|-d0 -c0|01010101010101010101010|1C120 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Rothera|ROTT|30|0||130","Antarctica/Syowa|SYOT|-30|0||20","Antarctica/Troll|UTC CEST|0 -20|01010101010101010101010|1BWp0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|VOST|-60|0||25","Asia/Baghdad|AST|-30|0||66e5","Asia/Almaty|+06|-60|0||15e5","Asia/Amman|EET EEST|-20 -30|010101010101010101010|1BVy0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0|25e5","Asia/Anadyr|ANAT ANAST ANAT|-c0 -c0 -b0|0120|1BWe0 1qN0 WM0|13e3","Asia/Aqtobe|+05|-50|0||27e4","Asia/Ashgabat|TMT|-50|0||41e4","Asia/Baku|AZT AZST|-40 -50|0101010101010|1BWo0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|ICT|-70|0||15e6","Asia/Barnaul|+06 +07|-60 -70|010101|1BWk0 1qM0 WM0 8Hz0 3rd0","Asia/Beirut|EET EEST|-20 -30|01010101010101010101010|1BWm0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|KGT|-60|0||87e4","Asia/Brunei|BNT|-80|0||42e4","Asia/Kolkata|IST|-5u|0||15e6","Asia/Chita|YAKT YAKST YAKT IRKT|-90 -a0 -a0 -80|010230|1BWh0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|CHOT CHOST|-80 -90|0101010101010|1O8G0 1cJ0 1cP0 1cJ0 1cP0 1fx0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST|-80|0||23e6","Asia/Dhaka|BDT|-60|0||16e6","Asia/Damascus|EET EEST|-20 -30|01010101010101010101010|1C0m0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0|26e5","Asia/Dili|TLT|-90|0||19e4","Asia/Dubai|GST|-40|0||39e5","Asia/Dushanbe|TJT|-50|0||76e4","Asia/Gaza|EET EEST|-20 -30|01010101010101010101010|1BVW1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1ny0 1220 1qm0 1220 1ny0 1220 1ny0 1220 1ny0|18e5","Asia/Hebron|EET EEST|-20 -30|0101010101010101010101010|1BVy0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1ny0 1220 1qm0 1220 1ny0 1220 1ny0 1220 1ny0|25e4","Asia/Hong_Kong|HKT|-80|0||73e5","Asia/Hovd|HOVT HOVST|-70 -80|0101010101010|1O8H0 1cJ0 1cP0 1cJ0 1cP0 1fx0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IRKT IRKST IRKT|-80 -90 -90|01020|1BWi0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|EET EEST|-20 -30|01010101010101010101010|1BWp0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e6","Asia/Jakarta|WIB|-70|0||31e6","Asia/Jayapura|WIT|-90|0||26e4","Asia/Jerusalem|IST IDT|-20 -30|01010101010101010101010|1BVA0 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|AFT|-4u|0||46e5","Asia/Kamchatka|PETT PETST PETT|-c0 -c0 -b0|0120|1BWe0 1qN0 WM0|18e4","Asia/Karachi|PKT|-50|0||24e6","Asia/Urumqi|XJT|-60|0||32e5","Asia/Kathmandu|NPT|-5J|0||12e5","Asia/Khandyga|VLAT VLAST VLAT YAKT YAKT|-a0 -b0 -b0 -a0 -90|010234|1BWg0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|KRAT KRAST KRAT|-70 -80 -80|01020|1BWj0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|MYT|-80|0||71e5","Asia/Magadan|MAGT MAGST MAGT MAGT|-b0 -c0 -c0 -a0|010230|1BWf0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|WITA|-80|0||15e5","Asia/Manila|PHT|-80|0||24e6","Europe/Athens|EET EEST|-20 -30|01010101010101010101010|1BWp0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Asia/Novokuznetsk|KRAT NOVST NOVT NOVT|-70 -70 -60 -70|01230|1BWj0 1qN0 WM0 8Hz0|55e4","Asia/Novosibirsk|NOVT NOVST NOVT|-60 -70 -70|01020|1BWk0 1qM0 WM0 8Hz0|15e5","Asia/Omsk|OMST OMSST OMST|-60 -70 -70|01020|1BWk0 1qM0 WM0 8Hz0|12e5","Asia/Pyongyang|KST KST|-90 -8u|01|1P4D0|29e5","Asia/Rangoon|MMT|-6u|0||48e5","Asia/Sakhalin|SAKT SAKST SAKT|-a0 -b0 -b0|010202|1BWg0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Tashkent|UZT|-50|0||23e5","Asia/Seoul|KST|-90|0||23e6","Asia/Singapore|SGT|-80|0||56e5","Asia/Srednekolymsk|MAGT MAGST MAGT SRET|-b0 -c0 -c0 -b0|01023|1BWf0 1qM0 WM0 8Hz0|35e2","Asia/Tbilisi|GET|-40|0||11e5","Asia/Tehran|IRST IRDT|-3u -4u|01010101010101010101010|1BTUu 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|BTT|-60|0||79e3","Asia/Tokyo|JST|-90|0||38e6","Asia/Tomsk|+06 +07|-60 -70|010101|1BWk0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|ULAT ULAST|-80 -90|0101010101010|1O8G0 1cJ0 1cP0 1cJ0 1cP0 1fx0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|MAGT MAGST MAGT VLAT VLAT|-b0 -c0 -c0 -b0 -a0|010234|1BWf0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|VLAT VLAST VLAT|-a0 -b0 -b0|01020|1BWg0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|YAKT YAKST YAKT|-90 -a0 -a0|01020|1BWh0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|YEKT YEKST YEKT|-50 -60 -60|01020|1BWl0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|AMT AMST|-40 -50|01010|1BWm0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|AZOT AZOST|10 0|01010101010101010101010|1BWp0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Europe/Lisbon|WET WEST|0 -10|01010101010101010101010|1BWp0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Atlantic/Cape_Verde|CVT|10|0||50e4","Atlantic/South_Georgia|GST|20|0||30","Atlantic/Stanley|FKST FKT|30 40|010|1C6R0 U10|21e2","Australia/Sydney|AEDT AEST|-b0 -a0|01010101010101010101010|1C140 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACDT ACST|-au -9u|01010101010101010101010|1C14u 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST|-a0|0||20e5","Australia/Darwin|ACST|-9u|0||12e4","Australia/Eucla|ACWST|-8J|0||368","Australia/Lord_Howe|LHDT LHST|-b0 -au|01010101010101010101010|1C130 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Perth|AWST|-80|0||18e5","Pacific/Easter|EASST EAST|50 60|010101010101010101010|1C1f0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0|30e2","Europe/Dublin|GMT IST|0 -10|01010101010101010101010|1BWp0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Etc/GMT+1|GMT+1|10|0|","Etc/GMT+10|GMT+10|a0|0|","Etc/GMT+11|GMT+11|b0|0|","Etc/GMT+12|GMT+12|c0|0|","Etc/GMT+2|GMT+2|20|0|","Etc/GMT+3|GMT+3|30|0|","Etc/GMT+4|GMT+4|40|0|","Etc/GMT+5|GMT+5|50|0|","Etc/GMT+6|GMT+6|60|0|","Etc/GMT+7|GMT+7|70|0|","Etc/GMT+8|GMT+8|80|0|","Etc/GMT+9|GMT+9|90|0|","Etc/GMT-1|GMT-1|-10|0|","Etc/GMT-10|GMT-10|-a0|0|","Etc/GMT-11|GMT-11|-b0|0|","Etc/GMT-12|GMT-12|-c0|0|","Etc/GMT-13|GMT-13|-d0|0|","Etc/GMT-14|GMT-14|-e0|0|","Etc/GMT-2|GMT-2|-20|0|","Etc/GMT-3|GMT-3|-30|0|","Etc/GMT-4|GMT-4|-40|0|","Etc/GMT-5|GMT-5|-50|0|","Etc/GMT-6|GMT-6|-60|0|","Etc/GMT-7|GMT-7|-70|0|","Etc/GMT-8|GMT-8|-80|0|","Etc/GMT-9|GMT-9|-90|0|","Etc/UCT|UCT|0|0|","Etc/UTC|UTC|0|0|","Europe/Astrakhan|+03 +04|-30 -40|010101|1BWn0 1qM0 WM0 8Hz0 3rd0","Europe/London|GMT BST|0 -10|01010101010101010101010|1BWp0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Chisinau|EET EEST|-20 -30|01010101010101010101010|1BWo0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Kaliningrad|EET EEST FET|-20 -30 -30|01020|1BWo0 1qM0 WM0 8Hz0|44e4","Europe/Kirov|+03 +04|-30 -40|01010|1BWn0 1qM0 WM0 8Hz0|48e4","Europe/Minsk|EET EEST FET MSK|-20 -30 -30 -30|01023|1BWo0 1qM0 WM0 8Hy0|19e5","Europe/Moscow|MSK MSD MSK|-30 -40 -40|01020|1BWn0 1qM0 WM0 8Hz0|16e6","Europe/Samara|SAMT SAMST SAMT|-40 -40 -30|0120|1BWm0 1qN0 WM0|12e5","Europe/Simferopol|EET EEST MSK MSK|-20 -30 -40 -30|01010101023|1BWp0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Pacific/Honolulu|HST|a0|0||37e4","Indian/Chagos|IOT|-60|0||30e2","Indian/Christmas|CXT|-70|0||21e2","Indian/Cocos|CCT|-6u|0||596","Indian/Kerguelen|TFT|-50|0||130","Indian/Mahe|SCT|-40|0||79e3","Indian/Maldives|MVT|-50|0||35e4","Indian/Mauritius|MUT|-40|0||15e4","Indian/Reunion|RET|-40|0||84e4","Pacific/Majuro|MHT|-c0|0||28e3","MET|MET MEST|-10 -20|01010101010101010101010|1BWp0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00","Pacific/Chatham|CHADT CHAST|-dJ -cJ|01010101010101010101010|1C120 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|SST SDT WSDT WSST|b0 a0 -e0 -d0|01012323232323232323232|1Dbn0 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|37e3","Pacific/Bougainville|PGT BST|-a0 -b0|01|1NwE0|18e4","Pacific/Chuuk|CHUT|-a0|0||49e3","Pacific/Efate|VUT|-b0|0||66e3","Pacific/Enderbury|PHOT|-d0|0||1","Pacific/Fakaofo|TKT TKT|b0 -d0|01|1Gfn0|483","Pacific/Fiji|FJST FJT|-d0 -c0|01010101010101010101010|1BWe0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0|88e4","Pacific/Funafuti|TVT|-c0|0||45e2","Pacific/Galapagos|GALT|60|0||25e3","Pacific/Gambier|GAMT|90|0||125","Pacific/Guadalcanal|SBT|-b0|0||11e4","Pacific/Guam|ChST|-a0|0||17e4","Pacific/Kiritimati|LINT|-e0|0||51e2","Pacific/Kosrae|KOST|-b0|0||66e2","Pacific/Marquesas|MART|9u|0||86e2","Pacific/Pago_Pago|SST|b0|0||37e2","Pacific/Nauru|NRT|-c0|0||10e3","Pacific/Niue|NUT|b0|0||12e2","Pacific/Norfolk|NFT NFT|-bu -b0|01|1PoCu|25e4","Pacific/Noumea|NCT|-b0|0||98e3","Pacific/Palau|PWT|-90|0||21e3","Pacific/Pitcairn|PST|80|0||56","Pacific/Pohnpei|PONT|-b0|0||34e3","Pacific/Port_Moresby|PGT|-a0|0||25e4","Pacific/Rarotonga|CKT|a0|0||13e3","Pacific/Tahiti|TAHT|a0|0||18e4","Pacific/Tarawa|GILT|-c0|0||29e3","Pacific/Tongatapu|TOT|-d0|0||75e3","Pacific/Wake|WAKT|-c0|0||16e3","Pacific/Wallis|WFT|-c0|0||94"],
  links:["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Bissau","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Monrovia","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Sao_Tome","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|America/Danmarkshavn","Africa/Abidjan|Atlantic/Reykjavik","Africa/Abidjan|Atlantic/St_Helena","Africa/Abidjan|Etc/GMT","Africa/Abidjan|Etc/GMT+0","Africa/Abidjan|Etc/GMT-0","Africa/Abidjan|Etc/GMT0","Africa/Abidjan|Etc/Greenwich","Africa/Abidjan|GMT","Africa/Abidjan|GMT+0","Africa/Abidjan|GMT-0","Africa/Abidjan|GMT0","Africa/Abidjan|Greenwich","Africa/Abidjan|Iceland","Africa/Algiers|Africa/Tunis","Africa/Cairo|Egypt","Africa/Casablanca|Africa/El_Aaiun","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Khartoum|Africa/Addis_Ababa","Africa/Khartoum|Africa/Asmara","Africa/Khartoum|Africa/Asmera","Africa/Khartoum|Africa/Dar_es_Salaam","Africa/Khartoum|Africa/Djibouti","Africa/Khartoum|Africa/Juba","Africa/Khartoum|Africa/Kampala","Africa/Khartoum|Africa/Mogadishu","Africa/Khartoum|Africa/Nairobi","Africa/Khartoum|Indian/Antananarivo","Africa/Khartoum|Indian/Comoro","Africa/Khartoum|Indian/Mayotte","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Ndjamena","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|America/Juneau","America/Anchorage|America/Nome","America/Anchorage|America/Sitka","America/Anchorage|America/Yakutat","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Argentina/Catamarca","America/Argentina/Buenos_Aires|America/Argentina/ComodRivadavia","America/Argentina/Buenos_Aires|America/Argentina/Cordoba","America/Argentina/Buenos_Aires|America/Argentina/Jujuy","America/Argentina/Buenos_Aires|America/Argentina/La_Rioja","America/Argentina/Buenos_Aires|America/Argentina/Mendoza","America/Argentina/Buenos_Aires|America/Argentina/Rio_Gallegos","America/Argentina/Buenos_Aires|America/Argentina/Salta","America/Argentina/Buenos_Aires|America/Argentina/San_Juan","America/Argentina/Buenos_Aires|America/Argentina/San_Luis","America/Argentina/Buenos_Aires|America/Argentina/Tucuman","America/Argentina/Buenos_Aires|America/Argentina/Ushuaia","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Buenos_Aires|America/Catamarca","America/Argentina/Buenos_Aires|America/Cordoba","America/Argentina/Buenos_Aires|America/Jujuy","America/Argentina/Buenos_Aires|America/Mendoza","America/Argentina/Buenos_Aires|America/Rosario","America/Campo_Grande|America/Cuiaba","America/Chicago|America/Indiana/Knox","America/Chicago|America/Indiana/Tell_City","America/Chicago|America/Knox_IN","America/Chicago|America/Matamoros","America/Chicago|America/Menominee","America/Chicago|America/North_Dakota/Center","America/Chicago|America/North_Dakota/New_Salem","America/Chicago|America/Rainy_River","America/Chicago|America/Rankin_Inlet","America/Chicago|America/Resolute","America/Chicago|America/Winnipeg","America/Chicago|CST6CDT","America/Chicago|Canada/Central","America/Chicago|US/Central","America/Chicago|US/Indiana-Starke","America/Chihuahua|America/Mazatlan","America/Chihuahua|Mexico/BajaSur","America/Denver|America/Boise","America/Denver|America/Cambridge_Bay","America/Denver|America/Edmonton","America/Denver|America/Inuvik","America/Denver|America/Ojinaga","America/Denver|America/Shiprock","America/Denver|America/Yellowknife","America/Denver|Canada/Mountain","America/Denver|MST7MDT","America/Denver|Navajo","America/Denver|US/Mountain","America/Fortaleza|America/Belem","America/Fortaleza|America/Maceio","America/Fortaleza|America/Recife","America/Fortaleza|America/Santarem","America/Halifax|America/Glace_Bay","America/Halifax|America/Moncton","America/Halifax|America/Thule","America/Halifax|Atlantic/Bermuda","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Los_Angeles|America/Dawson","America/Los_Angeles|America/Ensenada","America/Los_Angeles|America/Santa_Isabel","America/Los_Angeles|America/Tijuana","America/Los_Angeles|America/Vancouver","America/Los_Angeles|America/Whitehorse","America/Los_Angeles|Canada/Pacific","America/Los_Angeles|Canada/Yukon","America/Los_Angeles|Mexico/BajaNorte","America/Los_Angeles|PST8PDT","America/Los_Angeles|US/Pacific","America/Los_Angeles|US/Pacific-New","America/Managua|America/Belize","America/Managua|America/Costa_Rica","America/Managua|America/El_Salvador","America/Managua|America/Guatemala","America/Managua|America/Regina","America/Managua|America/Swift_Current","America/Managua|America/Tegucigalpa","America/Managua|Canada/East-Saskatchewan","America/Managua|Canada/Saskatchewan","America/Manaus|America/Boa_Vista","America/Manaus|America/Porto_Velho","America/Manaus|Brazil/West","America/Mexico_City|America/Merida","America/Mexico_City|America/Monterrey","America/Mexico_City|Mexico/General","America/New_York|America/Detroit","America/New_York|America/Fort_Wayne","America/New_York|America/Indiana/Indianapolis","America/New_York|America/Indiana/Marengo","America/New_York|America/Indiana/Petersburg","America/New_York|America/Indiana/Vevay","America/New_York|America/Indiana/Vincennes","America/New_York|America/Indiana/Winamac","America/New_York|America/Indianapolis","America/New_York|America/Iqaluit","America/New_York|America/Kentucky/Louisville","America/New_York|America/Kentucky/Monticello","America/New_York|America/Louisville","America/New_York|America/Montreal","America/New_York|America/Nassau","America/New_York|America/Nipigon","America/New_York|America/Pangnirtung","America/New_York|America/Thunder_Bay","America/New_York|America/Toronto","America/New_York|Canada/Eastern","America/New_York|EST5EDT","America/New_York|US/East-Indiana","America/New_York|US/Eastern","America/New_York|US/Michigan","America/Noronha|Brazil/DeNoronha","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Panama|America/Jamaica","America/Panama|EST","America/Panama|Jamaica","America/Phoenix|America/Creston","America/Phoenix|America/Dawson_Creek","America/Phoenix|America/Hermosillo","America/Phoenix|MST","America/Phoenix|US/Arizona","America/Rio_Branco|America/Eirunepe","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Antarctica/Palmer","America/Santiago|Chile/Continental","America/Santo_Domingo|America/Anguilla","America/Santo_Domingo|America/Antigua","America/Santo_Domingo|America/Aruba","America/Santo_Domingo|America/Barbados","America/Santo_Domingo|America/Blanc-Sablon","America/Santo_Domingo|America/Curacao","America/Santo_Domingo|America/Dominica","America/Santo_Domingo|America/Grenada","America/Santo_Domingo|America/Guadeloupe","America/Santo_Domingo|America/Kralendijk","America/Santo_Domingo|America/Lower_Princes","America/Santo_Domingo|America/Marigot","America/Santo_Domingo|America/Martinique","America/Santo_Domingo|America/Montserrat","America/Santo_Domingo|America/Port_of_Spain","America/Santo_Domingo|America/Puerto_Rico","America/Santo_Domingo|America/St_Barthelemy","America/Santo_Domingo|America/St_Kitts","America/Santo_Domingo|America/St_Lucia","America/Santo_Domingo|America/St_Thomas","America/Santo_Domingo|America/St_Vincent","America/Santo_Domingo|America/Tortola","America/Santo_Domingo|America/Virgin","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","Asia/Almaty|Asia/Qyzylorda","Asia/Aqtobe|Asia/Aqtau","Asia/Aqtobe|Asia/Oral","Asia/Ashgabat|Asia/Ashkhabad","Asia/Baghdad|Asia/Aden","Asia/Baghdad|Asia/Bahrain","Asia/Baghdad|Asia/Kuwait","Asia/Baghdad|Asia/Qatar","Asia/Baghdad|Asia/Riyadh","Asia/Bangkok|Asia/Ho_Chi_Minh","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Saigon","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Hong_Kong|Hongkong","Asia/Jakarta|Asia/Pontianak","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kolkata|Asia/Colombo","Asia/Kuala_Lumpur|Asia/Kuching","Asia/Makassar|Asia/Ujung_Pandang","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|Asia/Macao","Asia/Shanghai|Asia/Macau","Asia/Shanghai|Asia/Taipei","Asia/Shanghai|PRC","Asia/Shanghai|ROC","Asia/Singapore|Singapore","Asia/Tashkent|Asia/Samarkand","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Australia/Adelaide|Australia/Broken_Hill","Australia/Adelaide|Australia/South","Australia/Adelaide|Australia/Yancowinna","Australia/Brisbane|Australia/Lindeman","Australia/Brisbane|Australia/Queensland","Australia/Darwin|Australia/North","Australia/Lord_Howe|Australia/LHI","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/Currie","Australia/Sydney|Australia/Hobart","Australia/Sydney|Australia/Melbourne","Australia/Sydney|Australia/NSW","Australia/Sydney|Australia/Tasmania","Australia/Sydney|Australia/Victoria","Etc/UCT|UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Astrakhan|Europe/Ulyanovsk","Europe/Athens|Asia/Nicosia","Europe/Athens|EET","Europe/Athens|Europe/Bucharest","Europe/Athens|Europe/Helsinki","Europe/Athens|Europe/Kiev","Europe/Athens|Europe/Mariehamn","Europe/Athens|Europe/Nicosia","Europe/Athens|Europe/Riga","Europe/Athens|Europe/Sofia","Europe/Athens|Europe/Tallinn","Europe/Athens|Europe/Uzhgorod","Europe/Athens|Europe/Vilnius","Europe/Athens|Europe/Zaporozhye","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Atlantic/Canary","Europe/Lisbon|Atlantic/Faeroe","Europe/Lisbon|Atlantic/Faroe","Europe/Lisbon|Atlantic/Madeira","Europe/Lisbon|Portugal","Europe/Lisbon|WET","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|Europe/Volgograd","Europe/Moscow|W-SU","Europe/Paris|Africa/Ceuta","Europe/Paris|Arctic/Longyearbyen","Europe/Paris|Atlantic/Jan_Mayen","Europe/Paris|CET","Europe/Paris|Europe/Amsterdam","Europe/Paris|Europe/Andorra","Europe/Paris|Europe/Belgrade","Europe/Paris|Europe/Berlin","Europe/Paris|Europe/Bratislava","Europe/Paris|Europe/Brussels","Europe/Paris|Europe/Budapest","Europe/Paris|Europe/Busingen","Europe/Paris|Europe/Copenhagen","Europe/Paris|Europe/Gibraltar","Europe/Paris|Europe/Ljubljana","Europe/Paris|Europe/Luxembourg","Europe/Paris|Europe/Madrid","Europe/Paris|Europe/Malta","Europe/Paris|Europe/Monaco","Europe/Paris|Europe/Oslo","Europe/Paris|Europe/Podgorica","Europe/Paris|Europe/Prague","Europe/Paris|Europe/Rome","Europe/Paris|Europe/San_Marino","Europe/Paris|Europe/Sarajevo","Europe/Paris|Europe/Skopje","Europe/Paris|Europe/Stockholm","Europe/Paris|Europe/Tirane","Europe/Paris|Europe/Vaduz","Europe/Paris|Europe/Vatican","Europe/Paris|Europe/Vienna","Europe/Paris|Europe/Warsaw","Europe/Paris|Europe/Zagreb","Europe/Paris|Europe/Zurich","Europe/Paris|Poland","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|HST","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Majuro|Kwajalein","Pacific/Majuro|Pacific/Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Pohnpei|Pacific/Ponape"]}),e}),!function(e){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],e);else if("object"==typeof exports)e(require("jquery"),require("moment"));else{if("undefined"==typeof jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if("undefined"==typeof moment)throw"bootstrap-datetimepicker requires Moment.js to be loaded first";e(jQuery,moment)}}(function(e,t){"use strict";if(!t)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var n=function(n,i){var r,o,a,s,u,l,c,p={},d=!0,f=!1,h=!1,g=0,m=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],v=["days","months","years","decades"],y=["top","bottom","auto"],b=["left","right","auto"],$=["default","top","bottom"],w={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t","delete":46,46:"delete"},_={},k=function(e){var n,r,o,a,s,u=!1;return void 0!==t.tz&&void 0!==i.timeZone&&null!==i.timeZone&&""!==i.timeZone&&(u=!0),void 0===e||null===e?n=u?t().tz(i.timeZone).startOf("d"):t().startOf("d"):u?(r=t().tz(i.timeZone).utcOffset(),o=t(e,l,i.useStrict).utcOffset(),o!==r?(a=t().tz(i.timeZone).format("Z"),s=t(e,l,i.useStrict).format("YYYY-MM-DD[T]HH:mm:ss")+a,n=t(s,l,i.useStrict).tz(i.timeZone)):n=t(e,l,i.useStrict).tz(i.timeZone)):n=t(e,l,i.useStrict),n},x=function(e){if("string"!=typeof e||e.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(e){case"y":return-1!==u.indexOf("Y");case"M":return-1!==u.indexOf("M");case"d":return-1!==u.toLowerCase().indexOf("d");case"h":case"H":return-1!==u.toLowerCase().indexOf("h");case"m":return-1!==u.indexOf("m");case"s":return-1!==u.indexOf("s");default:return!1}},C=function(){return x("h")||x("m")||x("s")},A=function(){return x("y")||x("M")||x("d")},M=function(){var t=e("<thead>").append(e("<tr>").append(e("<th>").addClass("prev").attr("data-action","previous").append(e("<span>").addClass(i.icons.previous))).append(e("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",i.calendarWeeks?"6":"5")).append(e("<th>").addClass("next").attr("data-action","next").append(e("<span>").addClass(i.icons.next)))),n=e("<tbody>").append(e("<tr>").append(e("<td>").attr("colspan",i.calendarWeeks?"8":"7")));return[e("<div>").addClass("datepicker-days").append(e("<table>").addClass("table-condensed").append(t).append(e("<tbody>"))),e("<div>").addClass("datepicker-months").append(e("<table>").addClass("table-condensed").append(t.clone()).append(n.clone())),e("<div>").addClass("datepicker-years").append(e("<table>").addClass("table-condensed").append(t.clone()).append(n.clone())),e("<div>").addClass("datepicker-decades").append(e("<table>").addClass("table-condensed").append(t.clone()).append(n.clone()))]},S=function(){var t=e("<tr>"),n=e("<tr>"),r=e("<tr>");return x("h")&&(t.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(e("<span>").addClass(i.icons.up)))),n.append(e("<td>").append(e("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:i.tooltips.pickHour}).attr("data-action","showHours"))),r.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(e("<span>").addClass(i.icons.down))))),x("m")&&(x("h")&&(t.append(e("<td>").addClass("separator")),n.append(e("<td>").addClass("separator").html(":")),r.append(e("<td>").addClass("separator"))),t.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(e("<span>").addClass(i.icons.up)))),n.append(e("<td>").append(e("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:i.tooltips.pickMinute}).attr("data-action","showMinutes"))),r.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(e("<span>").addClass(i.icons.down))))),x("s")&&(x("m")&&(t.append(e("<td>").addClass("separator")),n.append(e("<td>").addClass("separator").html(":")),r.append(e("<td>").addClass("separator"))),t.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(e("<span>").addClass(i.icons.up)))),n.append(e("<td>").append(e("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:i.tooltips.pickSecond}).attr("data-action","showSeconds"))),r.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(e("<span>").addClass(i.icons.down))))),s||(t.append(e("<td>").addClass("separator")),n.append(e("<td>").append(e("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:i.tooltips.togglePeriod}))),r.append(e("<td>").addClass("separator"))),e("<div>").addClass("timepicker-picker").append(e("<table>").addClass("table-condensed").append([t,n,r]))},D=function(){var t=e("<div>").addClass("timepicker-hours").append(e("<table>").addClass("table-condensed")),n=e("<div>").addClass("timepicker-minutes").append(e("<table>").addClass("table-condensed")),i=e("<div>").addClass("timepicker-seconds").append(e("<table>").addClass("table-condensed")),r=[S()];return x("h")&&r.push(t),x("m")&&r.push(n),x("s")&&r.push(i),r},T=function(){var t=[];return i.showTodayButton&&t.push(e("<td>").append(e("<a>").attr({"data-action":"today",title:i.tooltips.today}).append(e("<span>").addClass(i.icons.today)))),!i.sideBySide&&A()&&C()&&t.push(e("<td>").append(e("<a>").attr({"data-action":"togglePicker",title:i.tooltips.selectTime}).append(e("<span>").addClass(i.icons.time)))),i.showClear&&t.push(e("<td>").append(e("<a>").attr({"data-action":"clear",title:i.tooltips.clear}).append(e("<span>").addClass(i.icons.clear)))),i.showClose&&t.push(e("<td>").append(e("<a>").attr({"data-action":"close",title:i.tooltips.close}).append(e("<span>").addClass(i.icons.close)))),e("<table>").addClass("table-condensed").append(e("<tbody>").append(e("<tr>").append(t)))},E=function(){var t=e("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),n=e("<div>").addClass("datepicker").append(M()),r=e("<div>").addClass("timepicker").append(D()),o=e("<ul>").addClass("list-unstyled"),a=e("<li>").addClass("picker-switch"+(i.collapse?" accordion-toggle":"")).append(T());return i.inline&&t.removeClass("dropdown-menu"),s&&t.addClass("usetwentyfour"),x("s")&&!s&&t.addClass("wider"),i.sideBySide&&A()&&C()?(t.addClass("timepicker-sbs"),"top"===i.toolbarPlacement&&t.append(a),t.append(e("<div>").addClass("row").append(n.addClass("col-md-6")).append(r.addClass("col-md-6"))),"bottom"===i.toolbarPlacement&&t.append(a),t):("top"===i.toolbarPlacement&&o.append(a),A()&&o.append(e("<li>").addClass(i.collapse&&C()?"collapse in":"").append(n)),"default"===i.toolbarPlacement&&o.append(a),C()&&o.append(e("<li>").addClass(i.collapse&&A()?"collapse":"").append(r)),"bottom"===i.toolbarPlacement&&o.append(a),t.append(o))},O=function(){var t,r={};return t=n.is("input")||i.inline?n.data():n.find("input").data(),t.dateOptions&&t.dateOptions instanceof Object&&(r=e.extend(!0,r,t.dateOptions)),e.each(i,function(e){var n="date"+e.charAt(0).toUpperCase()+e.slice(1);void 0!==t[n]&&(r[e]=t[n])}),r},P=function(){var t,r=(f||n).position(),o=(f||n).offset(),a=i.widgetPositioning.vertical,s=i.widgetPositioning.horizontal;if(i.widgetParent)t=i.widgetParent.append(h);else if(n.is("input"))t=n.after(h).parent();else{if(i.inline)return void(t=n.append(h));t=n,n.children().first().after(h)}if("auto"===a&&(a=o.top+1.5*h.height()>=e(window).height()+e(window).scrollTop()&&h.height()+n.outerHeight()<o.top?"top":"bottom"),"auto"===s&&(s=t.width()<o.left+h.outerWidth()/2&&o.left+h.outerWidth()>e(window).width()?"right":"left"),"top"===a?h.addClass("top").removeClass("bottom"):h.addClass("bottom").removeClass("top"),"right"===s?h.addClass("pull-right"):h.removeClass("pull-right"),"relative"!==t.css("position")&&(t=t.parents().filter(function(){return"relative"===e(this).css("position")}).first()),0===t.length)throw new Error("datetimepicker component should be placed within a relative positioned container");h.css({top:"top"===a?"auto":r.top+n.outerHeight(),bottom:"top"===a?r.top+n.outerHeight():"auto",left:"left"===s?t===n?0:r.left:"auto",right:"left"===s?"auto":t.outerWidth()-n.outerWidth()-(t===n?0:r.left)})},I=function(e){"dp.change"===e.type&&(e.date&&e.date.isSame(e.oldDate)||!e.date&&!e.oldDate)||n.trigger(e)},L=function(e){"y"===e&&(e="YYYY"),I({type:"dp.update",change:e,viewDate:o.clone()})},j=function(e){h&&(e&&(c=Math.max(g,Math.min(3,c+e))),h.find(".datepicker > div").hide().filter(".datepicker-"+m[c].clsName).show())},N=function(){var t=e("<tr>"),n=o.clone().startOf("w").startOf("d");for(i.calendarWeeks===!0&&t.append(e("<th>").addClass("cw").text("#"));n.isBefore(o.clone().endOf("w"));)t.append(e("<th>").addClass("dow").text(n.format("dd"))),n.add(1,"d");h.find(".datepicker-days thead").append(t)},G=function(e){return i.disabledDates[e.format("YYYY-MM-DD")]===!0},z=function(e){return i.enabledDates[e.format("YYYY-MM-DD")]===!0},F=function(e){return i.disabledHours[e.format("H")]===!0},R=function(e){return i.enabledHours[e.format("H")]===!0},B=function(t,n){if(!t.isValid())return!1;if(i.disabledDates&&"d"===n&&G(t))return!1;if(i.enabledDates&&"d"===n&&!z(t))return!1;if(i.minDate&&t.isBefore(i.minDate,n))return!1;if(i.maxDate&&t.isAfter(i.maxDate,n))return!1;if(i.daysOfWeekDisabled&&"d"===n&&-1!==i.daysOfWeekDisabled.indexOf(t.day()))return!1;if(i.disabledHours&&("h"===n||"m"===n||"s"===n)&&F(t))return!1;if(i.enabledHours&&("h"===n||"m"===n||"s"===n)&&!R(t))return!1;if(i.disabledTimeIntervals&&("h"===n||"m"===n||"s"===n)){var r=!1;if(e.each(i.disabledTimeIntervals,function(){return t.isBetween(this[0],this[1])?(r=!0,!1):void 0}),r)return!1}return!0},U=function(){for(var t=[],n=o.clone().startOf("y").startOf("d");n.isSame(o,"y");)t.push(e("<span>").attr("data-action","selectMonth").addClass("month").text(n.format("MMM"))),n.add(1,"M");h.find(".datepicker-months td").empty().append(t)},W=function(){var t=h.find(".datepicker-months"),n=t.find("th"),a=t.find("tbody").find("span");n.eq(0).find("span").attr("title",i.tooltips.prevYear),n.eq(1).attr("title",i.tooltips.selectYear),n.eq(2).find("span").attr("title",i.tooltips.nextYear),t.find(".disabled").removeClass("disabled"),B(o.clone().subtract(1,"y"),"y")||n.eq(0).addClass("disabled"),n.eq(1).text(o.year()),B(o.clone().add(1,"y"),"y")||n.eq(2).addClass("disabled"),a.removeClass("active"),r.isSame(o,"y")&&!d&&a.eq(r.month()).addClass("active"),a.each(function(t){B(o.clone().month(t),"M")||e(this).addClass("disabled")})},H=function(){var e=h.find(".datepicker-years"),t=e.find("th"),n=o.clone().subtract(5,"y"),a=o.clone().add(6,"y"),s="";for(t.eq(0).find("span").attr("title",i.tooltips.prevDecade),t.eq(1).attr("title",i.tooltips.selectDecade),t.eq(2).find("span").attr("title",i.tooltips.nextDecade),e.find(".disabled").removeClass("disabled"),i.minDate&&i.minDate.isAfter(n,"y")&&t.eq(0).addClass("disabled"),t.eq(1).text(n.year()+"-"+a.year()),i.maxDate&&i.maxDate.isBefore(a,"y")&&t.eq(2).addClass("disabled");!n.isAfter(a,"y");)s+='<span data-action="selectYear" class="year'+(n.isSame(r,"y")&&!d?" active":"")+(B(n,"y")?"":" disabled")+'">'+n.year()+"</span>",n.add(1,"y");e.find("td").html(s)},V=function(){var e=h.find(".datepicker-decades"),n=e.find("th"),a=t({y:o.year()-o.year()%100-1}),s=a.clone().add(100,"y"),u=a.clone(),l="";for(n.eq(0).find("span").attr("title",i.tooltips.prevCentury),n.eq(2).find("span").attr("title",i.tooltips.nextCentury),e.find(".disabled").removeClass("disabled"),(a.isSame(t({y:1900}))||i.minDate&&i.minDate.isAfter(a,"y"))&&n.eq(0).addClass("disabled"),n.eq(1).text(a.year()+"-"+s.year()),(a.isSame(t({y:2e3}))||i.maxDate&&i.maxDate.isBefore(s,"y"))&&n.eq(2).addClass("disabled");!a.isAfter(s,"y");)l+='<span data-action="selectDecade" class="decade'+(a.isSame(r,"y")?" active":"")+(B(a,"y")?"":" disabled")+'" data-selection="'+(a.year()+6)+'">'+(a.year()+1)+" - "+(a.year()+12)+"</span>",a.add(12,"y");l+="<span></span><span></span><span></span>",e.find("td").html(l),n.eq(1).text(u.year()+1+"-"+a.year())},q=function(){var t,n,a,s,u=h.find(".datepicker-days"),l=u.find("th"),c=[];if(A()){for(l.eq(0).find("span").attr("title",i.tooltips.prevMonth),l.eq(1).attr("title",i.tooltips.selectMonth),l.eq(2).find("span").attr("title",i.tooltips.nextMonth),u.find(".disabled").removeClass("disabled"),l.eq(1).text(o.format(i.dayViewHeaderFormat)),B(o.clone().subtract(1,"M"),"M")||l.eq(0).addClass("disabled"),B(o.clone().add(1,"M"),"M")||l.eq(2).addClass("disabled"),t=o.clone().startOf("M").startOf("w").startOf("d"),s=0;42>s;s++)0===t.weekday()&&(n=e("<tr>"),i.calendarWeeks&&n.append('<td class="cw">'+t.week()+"</td>"),c.push(n)),a="",t.isBefore(o,"M")&&(a+=" old"),t.isAfter(o,"M")&&(a+=" new"),t.isSame(r,"d")&&!d&&(a+=" active"),B(t,"d")||(a+=" disabled"),t.isSame(k(),"d")&&(a+=" today"),(0===t.day()||6===t.day())&&(a+=" weekend"),n.append('<td data-action="selectDay" data-day="'+t.format("L")+'" class="day'+a+'">'+t.date()+"</td>"),t.add(1,"d");u.find("tbody").empty().append(c),W(),H(),V()}},Y=function(){var t=h.find(".timepicker-hours table"),n=o.clone().startOf("d"),i=[],r=e("<tr>");for(o.hour()>11&&!s&&n.hour(12);n.isSame(o,"d")&&(s||o.hour()<12&&n.hour()<12||o.hour()>11);)n.hour()%4===0&&(r=e("<tr>"),i.push(r)),r.append('<td data-action="selectHour" class="hour'+(B(n,"h")?"":" disabled")+'">'+n.format(s?"HH":"hh")+"</td>"),n.add(1,"h");t.empty().append(i)},K=function(){for(var t=h.find(".timepicker-minutes table"),n=o.clone().startOf("h"),r=[],a=e("<tr>"),s=1===i.stepping?5:i.stepping;o.isSame(n,"h");)n.minute()%(4*s)===0&&(a=e("<tr>"),r.push(a)),a.append('<td data-action="selectMinute" class="minute'+(B(n,"m")?"":" disabled")+'">'+n.format("mm")+"</td>"),n.add(s,"m");t.empty().append(r)},Z=function(){for(var t=h.find(".timepicker-seconds table"),n=o.clone().startOf("m"),i=[],r=e("<tr>");o.isSame(n,"m");)n.second()%20===0&&(r=e("<tr>"),i.push(r)),r.append('<td data-action="selectSecond" class="second'+(B(n,"s")?"":" disabled")+'">'+n.format("ss")+"</td>"),n.add(5,"s");t.empty().append(i)},X=function(){var e,t,n=h.find(".timepicker span[data-time-component]");s||(e=h.find(".timepicker [data-action=togglePeriod]"),t=r.clone().add(r.hours()>=12?-12:12,"h"),e.text(r.format("A")),B(t,"h")?e.removeClass("disabled"):e.addClass("disabled")),n.filter("[data-time-component=hours]").text(r.format(s?"HH":"hh")),n.filter("[data-time-component=minutes]").text(r.format("mm")),n.filter("[data-time-component=seconds]").text(r.format("ss")),Y(),K(),Z()},J=function(){h&&(q(),X())},Q=function(e){var t=d?null:r;return e?(e=e.clone().locale(i.locale),1!==i.stepping&&e.minutes(Math.round(e.minutes()/i.stepping)*i.stepping%60).seconds(0),void(B(e)?(r=e,o=r.clone(),a.val(r.format(u)),n.data("date",r.format(u)),d=!1,J(),I({type:"dp.change",date:r.clone(),oldDate:t})):(i.keepInvalid||a.val(d?"":r.format(u)),I({type:"dp.error",date:e})))):(d=!0,a.val(""),n.data("date",""),I({type:"dp.change",date:!1,oldDate:t}),void J())},ee=function(){var t=!1;return h?(h.find(".collapse").each(function(){var n=e(this).data("collapse");return!n||!n.transitioning||(t=!0,!1)}),t?p:(f&&f.hasClass("btn")&&f.toggleClass("active"),h.hide(),e(window).off("resize",P),h.off("click","[data-action]"),h.off("mousedown",!1),h.remove(),h=!1,I({type:"dp.hide",date:r.clone()}),a.blur(),p)):p},te=function(){Q(null)},ne={next:function(){var e=m[c].navFnc;o.add(m[c].navStep,e),q(),L(e)},previous:function(){var e=m[c].navFnc;o.subtract(m[c].navStep,e),q(),L(e)},pickerSwitch:function(){j(1)},selectMonth:function(t){var n=e(t.target).closest("tbody").find("span").index(e(t.target));o.month(n),c===g?(Q(r.clone().year(o.year()).month(o.month())),i.inline||ee()):(j(-1),q()),L("M")},selectYear:function(t){var n=parseInt(e(t.target).text(),10)||0;o.year(n),c===g?(Q(r.clone().year(o.year())),i.inline||ee()):(j(-1),q()),L("YYYY")},selectDecade:function(t){var n=parseInt(e(t.target).data("selection"),10)||0;o.year(n),c===g?(Q(r.clone().year(o.year())),i.inline||ee()):(j(-1),q()),L("YYYY")},selectDay:function(t){var n=o.clone();e(t.target).is(".old")&&n.subtract(1,"M"),e(t.target).is(".new")&&n.add(1,"M"),Q(n.date(parseInt(e(t.target).text(),10))),C()||i.keepOpen||i.inline||ee()},incrementHours:function(){var e=r.clone().add(1,"h");B(e,"h")&&Q(e)},incrementMinutes:function(){var e=r.clone().add(i.stepping,"m");B(e,"m")&&Q(e)},incrementSeconds:function(){var e=r.clone().add(1,"s");B(e,"s")&&Q(e)},decrementHours:function(){var e=r.clone().subtract(1,"h");B(e,"h")&&Q(e)},decrementMinutes:function(){var e=r.clone().subtract(i.stepping,"m");B(e,"m")&&Q(e)},decrementSeconds:function(){var e=r.clone().subtract(1,"s");B(e,"s")&&Q(e)},togglePeriod:function(){Q(r.clone().add(r.hours()>=12?-12:12,"h"))},togglePicker:function(t){var n,r=e(t.target),o=r.closest("ul"),a=o.find(".in"),s=o.find(".collapse:not(.in)");if(a&&a.length){if(n=a.data("collapse"),n&&n.transitioning)return;a.collapse?(a.collapse("hide"),s.collapse("show")):(a.removeClass("in"),s.addClass("in")),r.is("span")?r.toggleClass(i.icons.time+" "+i.icons.date):r.find("span").toggleClass(i.icons.time+" "+i.icons.date)}},showPicker:function(){h.find(".timepicker > div:not(.timepicker-picker)").hide(),h.find(".timepicker .timepicker-picker").show()},showHours:function(){h.find(".timepicker .timepicker-picker").hide(),h.find(".timepicker .timepicker-hours").show()},showMinutes:function(){h.find(".timepicker .timepicker-picker").hide(),h.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){h.find(".timepicker .timepicker-picker").hide(),h.find(".timepicker .timepicker-seconds").show()},selectHour:function(t){var n=parseInt(e(t.target).text(),10);s||(r.hours()>=12?12!==n&&(n+=12):12===n&&(n=0)),Q(r.clone().hours(n)),ne.showPicker.call(p)},selectMinute:function(t){Q(r.clone().minutes(parseInt(e(t.target).text(),10))),ne.showPicker.call(p)},selectSecond:function(t){Q(r.clone().seconds(parseInt(e(t.target).text(),10))),ne.showPicker.call(p)},clear:te,today:function(){var e=k();B(e,"d")&&Q(e)},close:ee},ie=function(t){return!e(t.currentTarget).is(".disabled")&&(ne[e(t.currentTarget).data("action")].apply(p,arguments),!1)},re=function(){var t,n={year:function(e){return e.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(e){return e.date(1).hours(0).seconds(0).minutes(0)},day:function(e){return e.hours(0).seconds(0).minutes(0)},hour:function(e){return e.seconds(0).minutes(0)},minute:function(e){return e.seconds(0)}};return a.prop("disabled")||!i.ignoreReadonly&&a.prop("readonly")||h?p:(void 0!==a.val()&&0!==a.val().trim().length?Q(ae(a.val().trim())):i.useCurrent&&d&&(a.is("input")&&0===a.val().trim().length||i.inline)&&(t=k(),"string"==typeof i.useCurrent&&(t=n[i.useCurrent](t)),Q(t)),h=E(),N(),U(),h.find(".timepicker-hours").hide(),h.find(".timepicker-minutes").hide(),h.find(".timepicker-seconds").hide(),J(),j(),e(window).on("resize",P),h.on("click","[data-action]",ie),
  h.on("mousedown",!1),f&&f.hasClass("btn")&&f.toggleClass("active"),h.show(),P(),i.focusOnShow&&!a.is(":focus")&&a.focus(),I({type:"dp.show"}),p)},oe=function(){return h?ee():re()},ae=function(e){return e=void 0===i.parseInputDate?t.isMoment(e)||e instanceof Date?t(e):k(e):i.parseInputDate(e),e.locale(i.locale),e},se=function(e){var t,n,r,o,a=null,s=[],u={},l=e.which,c="p";_[l]=c;for(t in _)_.hasOwnProperty(t)&&_[t]===c&&(s.push(t),parseInt(t,10)!==l&&(u[t]=!0));for(t in i.keyBinds)if(i.keyBinds.hasOwnProperty(t)&&"function"==typeof i.keyBinds[t]&&(r=t.split(" "),r.length===s.length&&w[l]===r[r.length-1])){for(o=!0,n=r.length-2;n>=0;n--)if(!(w[r[n]]in u)){o=!1;break}if(o){a=i.keyBinds[t];break}}a&&(a.call(p,h),e.stopPropagation(),e.preventDefault())},ue=function(e){_[e.which]="r",e.stopPropagation(),e.preventDefault()},le=function(t){var n=e(t.target).val().trim(),i=n?ae(n):null;return Q(i),t.stopImmediatePropagation(),!1},ce=function(){a.on({change:le,blur:i.debug?"":ee,keydown:se,keyup:ue,focus:i.allowInputToggle?re:""}),n.is("input")?a.on({focus:re}):f&&(f.on("click",oe),f.on("mousedown",!1))},pe=function(){a.off({change:le,blur:blur,keydown:se,keyup:ue,focus:i.allowInputToggle?ee:""}),n.is("input")?a.off({focus:re}):f&&(f.off("click",oe),f.off("mousedown",!1))},de=function(t){var n={};return e.each(t,function(){var e=ae(this);e.isValid()&&(n[e.format("YYYY-MM-DD")]=!0)}),!!Object.keys(n).length&&n},fe=function(t){var n={};return e.each(t,function(){n[this]=!0}),!!Object.keys(n).length&&n},he=function(){var e=i.format||"L LT";u=e.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){var t=r.localeData().longDateFormat(e)||e;return t.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return r.localeData().longDateFormat(e)||e})}),l=i.extraFormats?i.extraFormats.slice():[],l.indexOf(e)<0&&l.indexOf(u)<0&&l.push(u),s=u.toLowerCase().indexOf("a")<1&&u.replace(/\[.*?\]/g,"").indexOf("h")<1,x("y")&&(g=2),x("M")&&(g=1),x("d")&&(g=0),c=Math.max(g,c),d||Q(r)};if(p.destroy=function(){ee(),pe(),n.removeData("DateTimePicker"),n.removeData("date")},p.toggle=oe,p.show=re,p.hide=ee,p.disable=function(){return ee(),f&&f.hasClass("btn")&&f.addClass("disabled"),a.prop("disabled",!0),p},p.enable=function(){return f&&f.hasClass("btn")&&f.removeClass("disabled"),a.prop("disabled",!1),p},p.ignoreReadonly=function(e){if(0===arguments.length)return i.ignoreReadonly;if("boolean"!=typeof e)throw new TypeError("ignoreReadonly () expects a boolean parameter");return i.ignoreReadonly=e,p},p.options=function(t){if(0===arguments.length)return e.extend(!0,{},i);if(!(t instanceof Object))throw new TypeError("options() options parameter should be an object");return e.extend(!0,i,t),e.each(i,function(e,t){if(void 0===p[e])throw new TypeError("option "+e+" is not recognized!");p[e](t)}),p},p.date=function(e){if(0===arguments.length)return d?null:r.clone();if(!(null===e||"string"==typeof e||t.isMoment(e)||e instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return Q(null===e?null:ae(e)),p},p.format=function(e){if(0===arguments.length)return i.format;if("string"!=typeof e&&("boolean"!=typeof e||e!==!1))throw new TypeError("format() expects a sting or boolean:false parameter "+e);return i.format=e,u&&he(),p},p.timeZone=function(e){return 0===arguments.length?i.timeZone:(i.timeZone=e,p)},p.dayViewHeaderFormat=function(e){if(0===arguments.length)return i.dayViewHeaderFormat;if("string"!=typeof e)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return i.dayViewHeaderFormat=e,p},p.extraFormats=function(e){if(0===arguments.length)return i.extraFormats;if(e!==!1&&!(e instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return i.extraFormats=e,l&&he(),p},p.disabledDates=function(t){if(0===arguments.length)return i.disabledDates?e.extend({},i.disabledDates):i.disabledDates;if(!t)return i.disabledDates=!1,J(),p;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return i.disabledDates=de(t),i.enabledDates=!1,J(),p},p.enabledDates=function(t){if(0===arguments.length)return i.enabledDates?e.extend({},i.enabledDates):i.enabledDates;if(!t)return i.enabledDates=!1,J(),p;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return i.enabledDates=de(t),i.disabledDates=!1,J(),p},p.daysOfWeekDisabled=function(e){if(0===arguments.length)return i.daysOfWeekDisabled.splice(0);if("boolean"==typeof e&&!e)return i.daysOfWeekDisabled=!1,J(),p;if(!(e instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(i.daysOfWeekDisabled=e.reduce(function(e,t){return t=parseInt(t,10),t>6||0>t||isNaN(t)?e:(-1===e.indexOf(t)&&e.push(t),e)},[]).sort(),i.useCurrent&&!i.keepInvalid){for(var t=0;!B(r,"d");){if(r.add(1,"d"),7===t)throw"Tried 7 times to find a valid date";t++}Q(r)}return J(),p},p.maxDate=function(e){if(0===arguments.length)return i.maxDate?i.maxDate.clone():i.maxDate;if("boolean"==typeof e&&e===!1)return i.maxDate=!1,J(),p;"string"==typeof e&&("now"===e||"moment"===e)&&(e=k());var t=ae(e);if(!t.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+e);if(i.minDate&&t.isBefore(i.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+t.format(u));return i.maxDate=t,i.useCurrent&&!i.keepInvalid&&r.isAfter(e)&&Q(i.maxDate),o.isAfter(t)&&(o=t.clone().subtract(i.stepping,"m")),J(),p},p.minDate=function(e){if(0===arguments.length)return i.minDate?i.minDate.clone():i.minDate;if("boolean"==typeof e&&e===!1)return i.minDate=!1,J(),p;"string"==typeof e&&("now"===e||"moment"===e)&&(e=k());var t=ae(e);if(!t.isValid())throw new TypeError("minDate() Could not parse date parameter: "+e);if(i.maxDate&&t.isAfter(i.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+t.format(u));return i.minDate=t,i.useCurrent&&!i.keepInvalid&&r.isBefore(e)&&Q(i.minDate),o.isBefore(t)&&(o=t.clone().add(i.stepping,"m")),J(),p},p.defaultDate=function(e){if(0===arguments.length)return i.defaultDate?i.defaultDate.clone():i.defaultDate;if(!e)return i.defaultDate=!1,p;"string"==typeof e&&("now"===e||"moment"===e)&&(e=k());var t=ae(e);if(!t.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+e);if(!B(t))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return i.defaultDate=t,(i.defaultDate&&i.inline||""===a.val().trim())&&Q(i.defaultDate),p},p.locale=function(e){if(0===arguments.length)return i.locale;if(!t.localeData(e))throw new TypeError("locale() locale "+e+" is not loaded from moment locales!");return i.locale=e,r.locale(i.locale),o.locale(i.locale),u&&he(),h&&(ee(),re()),p},p.stepping=function(e){return 0===arguments.length?i.stepping:(e=parseInt(e,10),(isNaN(e)||1>e)&&(e=1),i.stepping=e,p)},p.useCurrent=function(e){var t=["year","month","day","hour","minute"];if(0===arguments.length)return i.useCurrent;if("boolean"!=typeof e&&"string"!=typeof e)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof e&&-1===t.indexOf(e.toLowerCase()))throw new TypeError("useCurrent() expects a string parameter of "+t.join(", "));return i.useCurrent=e,p},p.collapse=function(e){if(0===arguments.length)return i.collapse;if("boolean"!=typeof e)throw new TypeError("collapse() expects a boolean parameter");return i.collapse===e?p:(i.collapse=e,h&&(ee(),re()),p)},p.icons=function(t){if(0===arguments.length)return e.extend({},i.icons);if(!(t instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return e.extend(i.icons,t),h&&(ee(),re()),p},p.tooltips=function(t){if(0===arguments.length)return e.extend({},i.tooltips);if(!(t instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return e.extend(i.tooltips,t),h&&(ee(),re()),p},p.useStrict=function(e){if(0===arguments.length)return i.useStrict;if("boolean"!=typeof e)throw new TypeError("useStrict() expects a boolean parameter");return i.useStrict=e,p},p.sideBySide=function(e){if(0===arguments.length)return i.sideBySide;if("boolean"!=typeof e)throw new TypeError("sideBySide() expects a boolean parameter");return i.sideBySide=e,h&&(ee(),re()),p},p.viewMode=function(e){if(0===arguments.length)return i.viewMode;if("string"!=typeof e)throw new TypeError("viewMode() expects a string parameter");if(-1===v.indexOf(e))throw new TypeError("viewMode() parameter must be one of ("+v.join(", ")+") value");return i.viewMode=e,c=Math.max(v.indexOf(e),g),j(),p},p.toolbarPlacement=function(e){if(0===arguments.length)return i.toolbarPlacement;if("string"!=typeof e)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===$.indexOf(e))throw new TypeError("toolbarPlacement() parameter must be one of ("+$.join(", ")+") value");return i.toolbarPlacement=e,h&&(ee(),re()),p},p.widgetPositioning=function(t){if(0===arguments.length)return e.extend({},i.widgetPositioning);if("[object Object]"!=={}.toString.call(t))throw new TypeError("widgetPositioning() expects an object variable");if(t.horizontal){if("string"!=typeof t.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(t.horizontal=t.horizontal.toLowerCase(),-1===b.indexOf(t.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+b.join(", ")+")");i.widgetPositioning.horizontal=t.horizontal}if(t.vertical){if("string"!=typeof t.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(t.vertical=t.vertical.toLowerCase(),-1===y.indexOf(t.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+y.join(", ")+")");i.widgetPositioning.vertical=t.vertical}return J(),p},p.calendarWeeks=function(e){if(0===arguments.length)return i.calendarWeeks;if("boolean"!=typeof e)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return i.calendarWeeks=e,J(),p},p.showTodayButton=function(e){if(0===arguments.length)return i.showTodayButton;if("boolean"!=typeof e)throw new TypeError("showTodayButton() expects a boolean parameter");return i.showTodayButton=e,h&&(ee(),re()),p},p.showClear=function(e){if(0===arguments.length)return i.showClear;if("boolean"!=typeof e)throw new TypeError("showClear() expects a boolean parameter");return i.showClear=e,h&&(ee(),re()),p},p.widgetParent=function(t){if(0===arguments.length)return i.widgetParent;if("string"==typeof t&&(t=e(t)),null!==t&&"string"!=typeof t&&!(t instanceof e))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return i.widgetParent=t,h&&(ee(),re()),p},p.keepOpen=function(e){if(0===arguments.length)return i.keepOpen;if("boolean"!=typeof e)throw new TypeError("keepOpen() expects a boolean parameter");return i.keepOpen=e,p},p.focusOnShow=function(e){if(0===arguments.length)return i.focusOnShow;if("boolean"!=typeof e)throw new TypeError("focusOnShow() expects a boolean parameter");return i.focusOnShow=e,p},p.inline=function(e){if(0===arguments.length)return i.inline;if("boolean"!=typeof e)throw new TypeError("inline() expects a boolean parameter");return i.inline=e,p},p.clear=function(){return te(),p},p.keyBinds=function(e){return i.keyBinds=e,p},p.getMoment=function(e){return k(e)},p.debug=function(e){if("boolean"!=typeof e)throw new TypeError("debug() expects a boolean parameter");return i.debug=e,p},p.allowInputToggle=function(e){if(0===arguments.length)return i.allowInputToggle;if("boolean"!=typeof e)throw new TypeError("allowInputToggle() expects a boolean parameter");return i.allowInputToggle=e,p},p.showClose=function(e){if(0===arguments.length)return i.showClose;if("boolean"!=typeof e)throw new TypeError("showClose() expects a boolean parameter");return i.showClose=e,p},p.keepInvalid=function(e){if(0===arguments.length)return i.keepInvalid;if("boolean"!=typeof e)throw new TypeError("keepInvalid() expects a boolean parameter");return i.keepInvalid=e,p},p.datepickerInput=function(e){if(0===arguments.length)return i.datepickerInput;if("string"!=typeof e)throw new TypeError("datepickerInput() expects a string parameter");return i.datepickerInput=e,p},p.parseInputDate=function(e){if(0===arguments.length)return i.parseInputDate;if("function"!=typeof e)throw new TypeError("parseInputDate() sholud be as function");return i.parseInputDate=e,p},p.disabledTimeIntervals=function(t){if(0===arguments.length)return i.disabledTimeIntervals?e.extend({},i.disabledTimeIntervals):i.disabledTimeIntervals;if(!t)return i.disabledTimeIntervals=!1,J(),p;if(!(t instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return i.disabledTimeIntervals=t,J(),p},p.disabledHours=function(t){if(0===arguments.length)return i.disabledHours?e.extend({},i.disabledHours):i.disabledHours;if(!t)return i.disabledHours=!1,J(),p;if(!(t instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(i.disabledHours=fe(t),i.enabledHours=!1,i.useCurrent&&!i.keepInvalid){for(var n=0;!B(r,"h");){if(r.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}Q(r)}return J(),p},p.enabledHours=function(t){if(0===arguments.length)return i.enabledHours?e.extend({},i.enabledHours):i.enabledHours;if(!t)return i.enabledHours=!1,J(),p;if(!(t instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(i.enabledHours=fe(t),i.disabledHours=!1,i.useCurrent&&!i.keepInvalid){for(var n=0;!B(r,"h");){if(r.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}Q(r)}return J(),p},p.viewDate=function(e){if(0===arguments.length)return o.clone();if(!e)return o=r.clone(),p;if(!("string"==typeof e||t.isMoment(e)||e instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return o=ae(e),L(),p},n.is("input"))a=n;else if(a=n.find(i.datepickerInput),0===a.size())a=n.find("input");else if(!a.is("input"))throw new Error('CSS class "'+i.datepickerInput+'" cannot be applied to non input element');if(n.hasClass("input-group")&&(f=0===n.find(".datepickerbutton").size()?n.find(".input-group-addon"):n.find(".datepickerbutton")),!i.inline&&!a.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return r=k(),o=r.clone(),e.extend(!0,i,O()),p.options(i),he(),ce(),a.prop("disabled")&&p.disable(),a.is("input")&&0!==a.val().trim().length?Q(ae(a.val().trim())):i.defaultDate&&void 0===a.attr("placeholder")&&Q(i.defaultDate),i.inline&&re(),p};e.fn.datetimepicker=function(t){return this.each(function(){var i=e(this);i.data("DateTimePicker")||(t=e.extend(!0,{},e.fn.datetimepicker.defaults,t),i.data("DateTimePicker",n(i,t)))})},e.fn.datetimepicker.defaults={timeZone:"Etc/UTC",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:t.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(7,"d")):this.date(t.clone().add(this.stepping(),"m"))}},down:function(e){if(!e)return void this.show();var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().add(7,"d")):this.date(t.clone().subtract(this.stepping(),"m"))},"control up":function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(1,"y")):this.date(t.clone().add(1,"h"))}},"control down":function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().add(1,"y")):this.date(t.clone().subtract(1,"h"))}},left:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"d"))}},right:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"d"))}},pageUp:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"M"))}},pageDown:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(e){e.find(".timepicker").is(":visible")&&e.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(this.getMoment())},"delete":function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1}});var MIXPANEL_LIB_URL="//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";!function(e,t){if(!t.__SV){var n,i,r,o,a="mixpanel";window[a]=t,t._i=[],t.init=function(e,n,i){function s(e,t){var n=t.split(".");2==n.length&&(e=e[n[0]],t=n[1]),e[t]=function(){e.push([t].concat(Array.prototype.slice.call(arguments,0)))}}var u=t;for("undefined"!=typeof i?u=t[i]=[]:i=a,u.people=u.people||[],u.toString=function(e){var t=a;return i!==a&&(t+="."+i),e||(t+=" (stub)"),t},u.people.toString=function(){return u.toString(1)+".people (stub)"},r="disable track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" "),o=0;o<r.length;o++)s(u,r[o]);t._i.push([e,n,i])},t.__SV=1.2,n=e.createElement("script"),n.type="text/javascript",n.async=!0,n.src="undefined"!=typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:MIXPANEL_LIB_URL,i=e.getElementsByTagName("script")[0],i.parentNode.insertBefore(n,i)}}(document,window.mixpanel||[]),angular.module("analytics.mixpanel",[]).provider("$mixpanel",function(){function e(){if(!Object.prototype.hasOwnProperty.call(window,"mixpanel"))throw"Global `mixpanel` not available. Did you forget to include the library on the page?";mixpanel.init(i),t(function(){r&&mixpanel.register(r)})}function t(e){Object.prototype.hasOwnProperty.call(window,"mixpanel")&&void 0!==window.mixpanel.__loaded||setTimeout(function(){t(e)},500),e()}function n(e){return function(){var t,n,i=window.mixpanel,r=e.split(".");for(n=0;n<r.length;n++)t=i,i=i[r[n]];return i.apply(t,arguments)}}var i,r;this.apiKey=function(e){return e?void(i=e):i},this.superProperties=function(e){return e?void(r=e):r},this.$get=function(){return e(),{init:n("init"),push:n("push"),disable:n("disable"),track:n("track"),track_links:n("track_links"),track_forms:n("track_forms"),register:n("register"),register_once:n("register_once"),unregister:n("unregister"),identify:n("identify"),get_distinct_id:n("get_distinct_id"),alias:n("alias"),set_config:n("set_config"),get_config:n("get_config"),get_property:n("get_property"),people:{set:n("people.set"),set_once:n("people.set_once"),increment:n("people.increment"),append:n("people.append"),track_charge:n("people.track_charge"),clear_charges:n("people.clear_charges"),delete_user:n("people.delete_user")}}}}),function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return r(n?n:e)},c,c.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,n){angular.module("nemLogging",[]),angular.module("nemLogging").provider("nemDebug",function(){var t=null;return t=e("debug"),this.$get=function(){return t},this.debug=t,this});var i=function(e,t){return function(){return e.apply(t,arguments)}},r=[].slice;angular.module("nemLogging").provider("nemSimpleLogger",["nemDebugProvider",function(e){var t,n,o,a,s,u,l,c,p,d,f,h;for(f=e.debug,o={},a=["debug","info","warn","error","log"],t={},p=c=0,d=a.length;c<d;p=++c)h=a[p],t[h]=p;return u=function(e,t,n){if(e>=t)return n()},s=function(e){var t,n,i;if(t=!1,!e)return t;for(n=0,i=a.length;n<i&&(h=a[n],t=null!=e[h]&&"function"==typeof e[h],t);n++);return t},l=function(e,t){var n,i,r,s;for(null==o[e]&&(o[e]=f(e)),n=o[e],s={},i=0,r=a.length;i<r;i++)h=a[i],s[h]="debug"===h?n:t[h];return s},n=function(){function e(e){var n,o,l,c,p;if(this.$log=e,this.spawn=i(this.spawn,this),!this.$log)throw"internalLogger undefined";if(!s(this.$log))throw"@$log is invalid";for(this.doLog=!0,p={},n=function(e){return function(n){return p[n]=function(){var i;if(i=1<=arguments.length?r.call(arguments,0):[],e.doLog)return u(t[n],e.currentLevel,function(){var t;return(t=e.$log)[n].apply(t,i)})},e[n]=p[n]}}(this),o=0,l=a.length;o<l;o++)c=a[o],n(c);this.LEVELS=t,this.currentLevel=t.error}return e.prototype.spawn=function(t){if("string"==typeof t){if(!s(this.$log))throw"@$log is invalid";if(!f)throw"nemDebug is undefined this is probably the light version of this library sep debug logggers is not supported!";return l(t,this.$log)}return new e(t||this.$log)},e}(),this.decorator=["$log",function(e){var i;return i=new n(e),i.currentLevel=t.debug,i}],this.$get=["$log",function(e){return new n(e)}],this}])},{debug:2}],2:[function(e,t,n){function i(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function r(){var e=arguments,t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff),!t)return e;var i="color: "+this.color;e=[e[0],i,"color: inherit"].concat(Array.prototype.slice.call(e,1));var r=0,o=0;return e[0].replace(/%[a-z%]/g,function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))}),e.splice(o,0,i),e}function o(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(e){try{null==e?n.storage.removeItem("debug"):n.storage.debug=e}catch(t){}}function s(){var e;try{e=n.storage.debug}catch(t){}return e}function u(){try{return window.localStorage}catch(e){}}n=t.exports=e("./debug"),n.log=o,n.formatArgs=r,n.save=a,n.load=s,n.useColors=i,n.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){return JSON.stringify(e)},n.enable(s())},{"./debug":3}],3:[function(e,t,n){function i(){return n.colors[c++%n.colors.length]}function r(e){function t(){}function r(){var e=r,t=+new Date,o=t-(l||t);e.diff=o,e.prev=l,e.curr=t,l=t,null==e.useColors&&(e.useColors=n.useColors()),null==e.color&&e.useColors&&(e.color=i());var a=Array.prototype.slice.call(arguments);a[0]=n.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var s=0;a[0]=a[0].replace(/%([a-z%])/g,function(t,i){if("%%"===t)return t;s++;var r=n.formatters[i];if("function"==typeof r){var o=a[s];t=r.call(e,o),a.splice(s,1),s--}return t}),"function"==typeof n.formatArgs&&(a=n.formatArgs.apply(e,a));var u=r.log||n.log||console.log.bind(console);u.apply(e,a)}t.enabled=!1,r.enabled=!0;var o=n.enabled(e)?r:t;return o.namespace=e,o}function o(e){n.save(e);for(var t=(e||"").split(/[\s,]+/),i=t.length,r=0;r<i;r++)t[r]&&(e=t[r].replace(/\*/g,".*?"),"-"===e[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")))}function a(){n.enable("")}function s(e){var t,i;for(t=0,i=n.skips.length;t<i;t++)if(n.skips[t].test(e))return!1;for(t=0,i=n.names.length;t<i;t++)if(n.names[t].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}n=t.exports=r,n.coerce=u,n.disable=a,n.enable=o,n.enabled=s,n.humanize=e("ms"),n.names=[],n.skips=[],n.formatters={};var l,c=0},{ms:4}],4:[function(e,t,n){function i(e){if(e=""+e,!(e.length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*p;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l;case"minutes":case"minute":case"mins":case"min":case"m":return n*u;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function r(e){return e>=c?Math.round(e/c)+"d":e>=l?Math.round(e/l)+"h":e>=u?Math.round(e/u)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function o(e){return a(e,c,"day")||a(e,l,"hour")||a(e,u,"minute")||a(e,s,"second")||e+" ms"}function a(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var s=1e3,u=60*s,l=60*u,c=24*l,p=365.25*c;t.exports=function(e,t){return t=t||{},"string"==typeof e?i(e):t["long"]?o(e):r(e)}},{}]},{},[1]),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){var i=n.length;switch(i){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,i){for(var r=-1,o=e?e.length:0;++r<o;){var a=e[r];t(i,a,n(a),e)}return i}function r(e,t){for(var n=-1,i=e?e.length:0;++n<i&&t(e[n],n,e)!==!1;);return e}function o(e,t){for(var n=e?e.length:0;n--&&t(e[n],n,e)!==!1;);return e}function a(e,t){for(var n=-1,i=e?e.length:0;++n<i;)if(!t(e[n],n,e))return!1;return!0}function s(e,t){for(var n=-1,i=e?e.length:0,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}function u(e,t){var n=e?e.length:0;return!!n&&v(e,t,0)>-1}function l(e,t,n){for(var i=-1,r=e?e.length:0;++i<r;)if(n(t,e[i]))return!0;return!1}function c(e,t){for(var n=-1,i=e?e.length:0,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function p(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function d(e,t,n,i){var r=-1,o=e?e.length:0;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function f(e,t,n,i){var r=e?e.length:0;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function h(e,t){for(var n=-1,i=e?e.length:0;++n<i;)if(t(e[n],n,e))return!0;return!1}function g(e,t,n){var i;return n(e,function(e,n,r){if(t(e,n,r))return i=n,!1}),i}function m(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function v(e,t,n){if(t!==t)return j(e,n);for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}function y(e,t,n,i){for(var r=n-1,o=e.length;++r<o;)if(i(e[r],t))return r;return-1}function b(e,t){var n=e?e.length:0;return n?_(e,t)/n:we}function $(e,t,n,i,r){return r(e,function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)}),n}function w(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function _(e,t){for(var n,i=-1,r=e.length;++i<r;){var o=t(e[i]);o!==q&&(n=n===q?o:n+o)}return n}function k(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function x(e,t){return c(t,function(t){return[t,e[t]]})}function C(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 S(e,t){for(var n=-1,i=e.length;++n<i&&v(t,e[n],0)>-1;);return n}function D(e,t){for(var n=e.length;n--&&v(t,e[n],0)>-1;);return n}function T(e){return e&&e.Object===Object?e:null}function E(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&i++;return i}function O(e){return xn[e]}function P(e){return Cn[e]}function I(e){return"\\"+Mn[e]}function L(e,t){return null==e?q:e[t]}function j(e,t,n){for(var i=e.length,r=t+(n?1:-1);n?r--:++r<i;){var o=e[r];if(o!==o)return r}return-1}function N(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function G(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function z(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function F(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a=e[n];a!==t&&a!==J||(e[n]=J,o[r++]=n)}return o}function R(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function B(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function U(e){if(!e||!yn.test(e))return e.length;for(var t=mn.lastIndex=0;mn.test(e);)t++;return t}function W(e){return e.match(mn)}function H(e){return An[e]}function V(T){function Tt(e){if(ys(e)&&!mp(e)&&!(e instanceof Pt)){if(e instanceof Ot)return e;if(Dl.call(e,"__wrapped__"))return po(e)}return new Ot(e)}function Et(){}function Ot(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=q}function Pt(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_e,this.__views__=[]}function It(){var e=new Pt(this.__wrapped__);return e.__actions__=nr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=nr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=nr(this.__views__),e}function Lt(){if(this.__filtered__){var e=new Pt(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function jt(){var e=this.__wrapped__.value(),t=this.__dir__,n=mp(e),i=t<0,r=n?e.length:0,o=Br(0,r,this.__views__),a=o.start,s=o.end,u=s-a,l=i?s:a-1,c=this.__iteratees__,p=c.length,d=0,f=Ql(u,this.__takeCount__);if(!n||r<K||r==u&&f==u)return Ni(e,this.__actions__);var h=[];e:for(;u--&&d<f;){l+=t;for(var g=-1,m=e[l];++g<p;){var v=c[g],y=v.iteratee,b=v.type,$=y(m);if(b==me)m=$;else if(!$){if(b==ge)continue e;break e}}h[d++]=m}return h}function Nt(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Gt(){this.__data__=cc?cc(null):{}}function zt(e){return this.has(e)&&delete this.__data__[e]}function Ft(e){var t=this.__data__;if(cc){var n=t[e];return n===X?q:n}return Dl.call(t,e)?t[e]:q}function Rt(e){var t=this.__data__;return cc?t[e]!==q:Dl.call(t,e)}function Bt(e,t){var n=this.__data__;return n[e]=cc&&t===q?X:t,this}function Ut(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Wt(){this.__data__=[]}function Ht(e){var t=this.__data__,n=mn(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():Wl.call(t,n,1),!0}function Vt(e){var t=this.__data__,n=mn(t,e);return n<0?q:t[n][1]}function qt(e){return mn(this.__data__,e)>-1}function Yt(e,t){var n=this.__data__,i=mn(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function Kt(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Zt(){this.__data__={hash:new Nt,map:new(ac||Ut),string:new Nt}}function Xt(e){
  return jr(this,e)["delete"](e)}function Jt(e){return jr(this,e).get(e)}function Qt(e){return jr(this,e).has(e)}function en(e,t){return jr(this,e).set(e,t),this}function tn(e){var t=-1,n=e?e.length:0;for(this.__data__=new Kt;++t<n;)this.add(e[t])}function nn(e){return this.__data__.set(e,X),this}function rn(e){return this.__data__.has(e)}function on(e){this.__data__=new Ut(e)}function an(){this.__data__=new Ut}function sn(e){return this.__data__["delete"](e)}function un(e){return this.__data__.get(e)}function ln(e){return this.__data__.has(e)}function cn(e,t){var n=this.__data__;return n instanceof Ut&&n.__data__.length==K&&(n=this.__data__=new Kt(n.__data__)),n.set(e,t),this}function pn(e,t,n,i){return e===q||ts(e,xl[n])&&!Dl.call(i,n)?t:e}function dn(e,t,n){(n===q||ts(e[t],n))&&("number"!=typeof t||n!==q||t in e)||(e[t]=n)}function fn(e,t,n){var i=e[t];Dl.call(e,t)&&ts(i,n)&&(n!==q||t in e)||(e[t]=n)}function mn(e,t){for(var n=e.length;n--;)if(ts(e[n][0],t))return n;return-1}function xn(e,t,n,i){return _c(e,function(e,r,o){t(i,e,n(e),o)}),i}function Cn(e,t){return e&&ir(t,iu(t),e)}function An(e,t){for(var n=-1,i=null==e,r=t.length,o=Array(r);++n<r;)o[n]=i?q:eu(e,t[n]);return o}function Mn(e,t,n){return e===e&&(n!==q&&(e=e<=n?e:n),t!==q&&(e=e>=t?e:t)),e}function Tn(e,t,n,i,o,a,s){var u;if(i&&(u=a?i(e,o,a,s):i(e)),u!==q)return u;if(!vs(e))return e;var l=mp(e);if(l){if(u=Wr(e),!t)return nr(e,u)}else{var c=Rr(e),p=c==Te||c==Ee;if(vp(e))return Wi(e,t);if(c==Ie||c==Ce||p&&!a){if(N(e))return a?e:{};if(u=Hr(p?{}:e),!t)return rr(e,Cn(u,e))}else{if(!kn[c])return a?e:{};u=Vr(e,c,Tn,t)}}s||(s=new on);var d=s.get(e);if(d)return d;if(s.set(e,u),!l)var f=n?Er(e):iu(e);return r(f||e,function(r,o){f&&(o=r,r=e[o]),fn(u,o,Tn(r,t,n,i,o,e,s))}),u}function En(e){var t=iu(e),n=t.length;return function(i){if(null==i)return!n;for(var r=n;r--;){var o=t[r],a=e[o],s=i[o];if(s===q&&!(o in Object(i))||!a(s))return!1}return!0}}function Pn(e){return vs(e)?Bl(e):{}}function In(e,t,n){if("function"!=typeof e)throw new _l(Z);return Hl(function(){e.apply(q,n)},t)}function Ln(e,t,n,i){var r=-1,o=u,a=!0,s=e.length,p=[],d=t.length;if(!s)return p;n&&(t=c(t,C(n))),i?(o=l,a=!1):t.length>=K&&(o=M,a=!1,t=new tn(t));e:for(;++r<s;){var f=e[r],h=n?n(f):f;if(f=i||0!==f?f:0,a&&h===h){for(var g=d;g--;)if(t[g]===h)continue e;p.push(f)}else o(t,h,i)||p.push(f)}return p}function Gn(e,t){var n=!0;return _c(e,function(e,i,r){return n=!!t(e,i,r)}),n}function zn(e,t,n){for(var i=-1,r=e.length;++i<r;){var o=e[i],a=t(o);if(null!=a&&(s===q?a===a&&!Os(a):n(a,s)))var s=a,u=o}return u}function Fn(e,t,n,i){var r=e.length;for(n=zs(n),n<0&&(n=-n>r?0:r+n),i=i===q||i>r?r:zs(i),i<0&&(i+=r),i=n>i?0:Fs(i);n<i;)e[n++]=t;return e}function Rn(e,t){var n=[];return _c(e,function(e,i,r){t(e,i,r)&&n.push(e)}),n}function Bn(e,t,n,i,r){var o=-1,a=e.length;for(n||(n=Yr),r||(r=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?Bn(s,t-1,n,i,r):p(r,s):i||(r[r.length]=s)}return r}function Un(e,t){return e&&xc(e,t,iu)}function Wn(e,t){return e&&Cc(e,t,iu)}function Hn(e,t){return s(t,function(t){return hs(e[t])})}function Vn(e,t){t=Jr(t,e)?[t]:Bi(t);for(var n=0,i=t.length;null!=e&&n<i;)e=e[lo(t[n++])];return n&&n==i?e:q}function qn(e,t,n){var i=t(e);return mp(e)?i:p(i,n(e))}function Yn(e,t){return e>t}function Kn(e,t){return null!=e&&(Dl.call(e,t)||"object"==typeof e&&t in e&&null===zr(e))}function Zn(e,t){return null!=e&&t in Object(e)}function Xn(e,t,n){return e>=Ql(t,n)&&e<Jl(t,n)}function Jn(e,t,n){for(var i=n?l:u,r=e[0].length,o=e.length,a=o,s=Array(o),p=1/0,d=[];a--;){var f=e[a];a&&t&&(f=c(f,C(t))),p=Ql(f.length,p),s[a]=!n&&(t||r>=120&&f.length>=120)?new tn(a&&f):q}f=e[0];var h=-1,g=s[0];e:for(;++h<r&&d.length<p;){var m=f[h],v=t?t(m):m;if(m=n||0!==m?m:0,!(g?M(g,v):i(d,v,n))){for(a=o;--a;){var y=s[a];if(!(y?M(y,v):i(e[a],v,n)))continue e}g&&g.push(v),d.push(m)}}return d}function Qn(e,t,n,i){return Un(e,function(e,r,o){t(i,n(e),r,o)}),i}function ei(e,t,i){Jr(t,e)||(t=Bi(t),e=so(e,t),t=Eo(t));var r=null==e?e:e[lo(t)];return null==r?q:n(r,e,i)}function ti(e,t,n,i,r){return e===t||(null==e||null==t||!vs(e)&&!ys(t)?e!==e&&t!==t:ni(e,t,ti,n,i,r))}function ni(e,t,n,i,r,o){var a=mp(e),s=mp(t),u=Ae,l=Ae;a||(u=Rr(e),u=u==Ce?Ie:u),s||(l=Rr(t),l=l==Ce?Ie:l);var c=u==Ie&&!N(e),p=l==Ie&&!N(t),d=u==l;if(d&&!c)return o||(o=new on),a||Ps(e)?Sr(e,t,n,i,r,o):Dr(e,t,u,n,i,r,o);if(!(r&ce)){var f=c&&Dl.call(e,"__wrapped__"),h=p&&Dl.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,m=h?t.value():t;return o||(o=new on),n(g,m,i,r,o)}}return!!d&&(o||(o=new on),Tr(e,t,n,i,r,o))}function ii(e,t,n,i){var r=n.length,o=r,a=!i;if(null==e)return!o;for(e=Object(e);r--;){var s=n[r];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++r<o;){s=n[r];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===q&&!(u in e))return!1}else{var p=new on;if(i)var d=i(l,c,u,e,t,p);if(!(d===q?ti(c,l,i,le|ce,p):d))return!1}}return!0}function ri(e){if(!vs(e)||to(e))return!1;var t=hs(e)||N(e)?Il:xt;return t.test(co(e))}function oi(e){return"function"==typeof e?e:null==e?Vu:"object"==typeof e?mp(e)?pi(e[0],e[1]):ci(e):el(e)}function ai(e){return Xl(Object(e))}function si(e){e=null==e?e:Object(e);var t=[];for(var n in e)t.push(n);return t}function ui(e,t){return e<t}function li(e,t){var n=-1,i=rs(e)?Array(e.length):[];return _c(e,function(e,r,o){i[++n]=t(e,r,o)}),i}function ci(e){var t=Nr(e);return 1==t.length&&t[0][2]?ro(t[0][0],t[0][1]):function(n){return n===e||ii(n,e,t)}}function pi(e,t){return Jr(e)&&io(t)?ro(lo(e),t):function(n){var i=eu(n,e);return i===q&&i===t?nu(n,e):ti(t,i,q,le|ce)}}function di(e,t,n,i,o){if(e!==t){if(!mp(t)&&!Ps(t))var a=ru(t);r(a||t,function(r,s){if(a&&(s=r,r=t[s]),vs(r))o||(o=new on),fi(e,t,s,n,di,i,o);else{var u=i?i(e[s],r,s+"",e,t,o):q;u===q&&(u=r),dn(e,s,u)}})}}function fi(e,t,n,i,r,o,a){var s=e[n],u=t[n],l=a.get(u);if(l)return void dn(e,n,l);var c=o?o(s,u,n+"",e,t,a):q,p=c===q;p&&(c=u,mp(u)||Ps(u)?mp(s)?c=s:os(s)?c=nr(s):(p=!1,c=Tn(u,!0)):Ms(u)||ns(u)?ns(s)?c=Bs(s):!vs(s)||i&&hs(s)?(p=!1,c=Tn(u,!0)):c=s:p=!1),a.set(u,c),p&&r(c,u,i,o,a),a["delete"](u),dn(e,n,c)}function hi(e,t){var n=e.length;if(n)return t+=t<0?n:0,Zr(t,n)?e[t]:q}function gi(e,t,n){var i=-1;t=c(t.length?t:[Vu],C(Lr()));var r=li(e,function(e,n,r){var o=c(t,function(t){return t(e)});return{criteria:o,index:++i,value:e}});return w(r,function(e,t){return Qi(e,t,n)})}function mi(e,t){return e=Object(e),d(t,function(t,n){return n in e&&(t[n]=e[n]),t},{})}function vi(e,t){for(var n=-1,i=Or(e),r=i.length,o={};++n<r;){var a=i[n],s=e[a];t(s,a)&&(o[a]=s)}return o}function yi(e){return function(t){return null==t?q:t[e]}}function bi(e){return function(t){return Vn(t,e)}}function $i(e,t,n,i){var r=i?y:v,o=-1,a=t.length,s=e;for(e===t&&(t=nr(t)),n&&(s=c(e,C(n)));++o<a;)for(var u=0,l=t[o],p=n?n(l):l;(u=r(s,p,u,i))>-1;)s!==e&&Wl.call(s,u,1),Wl.call(e,u,1);return e}function wi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;if(Zr(r))Wl.call(e,r,1);else if(Jr(r,e))delete e[lo(r)];else{var a=Bi(r),s=so(e,a);null!=s&&delete s[lo(Eo(a))]}}}return e}function _i(e,t){return e+ql(tc()*(t-e+1))}function ki(e,t,n,i){for(var r=-1,o=Jl(Vl((t-e)/(n||1)),0),a=Array(o);o--;)a[i?o:++r]=e,e+=n;return a}function xi(e,t){var n="";if(!e||t<1||t>be)return n;do t%2&&(n+=e),t=ql(t/2),t&&(e+=e);while(t);return n}function Ci(e,t,n,i){t=Jr(t,e)?[t]:Bi(t);for(var r=-1,o=t.length,a=o-1,s=e;null!=s&&++r<o;){var u=lo(t[r]);if(vs(s)){var l=n;if(r!=a){var c=s[u];l=i?i(c,u,s):q,l===q&&(l=null==c?Zr(t[r+1])?[]:{}:c)}fn(s,u,l)}s=s[u]}return e}function Ai(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++i<r;)o[i]=e[i+t];return o}function Mi(e,t){var n;return _c(e,function(e,i,r){return n=t(e,i,r),!n}),!!n}function Si(e,t,n){var i=0,r=e?e.length:i;if("number"==typeof t&&t===t&&r<=xe){for(;i<r;){var o=i+r>>>1,a=e[o];null!==a&&!Os(a)&&(n?a<=t:a<t)?i=o+1:r=o}return r}return Di(e,t,Vu,n)}function Di(e,t,n,i){t=n(t);for(var r=0,o=e?e.length:0,a=t!==t,s=null===t,u=Os(t),l=t===q;r<o;){var c=ql((r+o)/2),p=n(e[c]),d=p!==q,f=null===p,h=p===p,g=Os(p);if(a)var m=i||h;else m=l?h&&(i||d):s?h&&d&&(i||!f):u?h&&d&&!f&&(i||!g):!f&&!g&&(i?p<=t:p<t);m?r=c+1:o=c}return Ql(o,ke)}function Ti(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a=e[n],s=t?t(a):a;if(!n||!ts(s,u)){var u=s;o[r++]=0===a?0:a}}return o}function Ei(e){return"number"==typeof e?e:Os(e)?we:+e}function Oi(e){if("string"==typeof e)return e;if(Os(e))return wc?wc.call(e):"";var t=e+"";return"0"==t&&1/e==-ye?"-0":t}function Pi(e,t,n){var i=-1,r=u,o=e.length,a=!0,s=[],c=s;if(n)a=!1,r=l;else if(o>=K){var p=t?null:Mc(e);if(p)return R(p);a=!1,r=M,c=new tn}else c=t?[]:s;e:for(;++i<o;){var d=e[i],f=t?t(d):d;if(d=n||0!==d?d:0,a&&f===f){for(var h=c.length;h--;)if(c[h]===f)continue e;t&&c.push(f),s.push(d)}else r(c,f,n)||(c!==s&&c.push(f),s.push(d))}return s}function Ii(e,t){t=Jr(t,e)?[t]:Bi(t),e=so(e,t);var n=lo(Eo(t));return!(null!=e&&Kn(e,n))||delete e[n]}function Li(e,t,n,i){return Ci(e,t,n(Vn(e,t)),i)}function ji(e,t,n,i){for(var r=e.length,o=i?r:-1;(i?o--:++o<r)&&t(e[o],o,e););return n?Ai(e,i?0:o,i?o+1:r):Ai(e,i?o+1:0,i?r:o)}function Ni(e,t){var n=e;return n instanceof Pt&&(n=n.value()),d(t,function(e,t){return t.func.apply(t.thisArg,p([e],t.args))},n)}function Gi(e,t,n){for(var i=-1,r=e.length;++i<r;)var o=o?p(Ln(o,e[i],t,n),Ln(e[i],o,t,n)):e[i];return o&&o.length?Pi(o,t,n):[]}function zi(e,t,n){for(var i=-1,r=e.length,o=t.length,a={};++i<r;){var s=i<o?t[i]:q;n(a,e[i],s)}return a}function Fi(e){return os(e)?e:[]}function Ri(e){return"function"==typeof e?e:Vu}function Bi(e){return mp(e)?e:Pc(e)}function Ui(e,t,n){var i=e.length;return n=n===q?i:n,!t&&n>=i?e:Ai(e,t,n)}function Wi(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function Hi(e){var t=new e.constructor(e.byteLength);return new Gl(t).set(new Gl(e)),t}function Vi(e,t){var n=t?Hi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function qi(t,n,i){var r=n?i(z(t),!0):z(t);return d(r,e,new t.constructor)}function Yi(e){var t=new e.constructor(e.source,$t.exec(e));return t.lastIndex=e.lastIndex,t}function Ki(e,n,i){var r=n?i(R(e),!0):R(e);return d(r,t,new e.constructor)}function Zi(e){return $c?Object($c.call(e)):{}}function Xi(e,t){var n=t?Hi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ji(e,t){if(e!==t){var n=e!==q,i=null===e,r=e===e,o=Os(e),a=t!==q,s=null===t,u=t===t,l=Os(t);if(!s&&!l&&!o&&e>t||o&&a&&u&&!s&&!l||i&&a&&u||!n&&u||!r)return 1;if(!i&&!o&&!l&&e<t||l&&n&&r&&!i&&!o||s&&n&&r||!a&&r||!u)return-1}return 0}function Qi(e,t,n){for(var i=-1,r=e.criteria,o=t.criteria,a=r.length,s=n.length;++i<a;){var u=Ji(r[i],o[i]);if(u){if(i>=s)return u;var l=n[i];return u*("desc"==l?-1:1)}}return e.index-t.index}function er(e,t,n,i){for(var r=-1,o=e.length,a=n.length,s=-1,u=t.length,l=Jl(o-a,0),c=Array(u+l),p=!i;++s<u;)c[s]=t[s];for(;++r<a;)(p||r<o)&&(c[n[r]]=e[r]);for(;l--;)c[s++]=e[r++];return c}function tr(e,t,n,i){for(var r=-1,o=e.length,a=-1,s=n.length,u=-1,l=t.length,c=Jl(o-s,0),p=Array(c+l),d=!i;++r<c;)p[r]=e[r];for(var f=r;++u<l;)p[f+u]=t[u];for(;++a<s;)(d||r<o)&&(p[f+n[a]]=e[r++]);return p}function nr(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}function ir(e,t,n,i){n||(n={});for(var r=-1,o=t.length;++r<o;){var a=t[r],s=i?i(n[a],e[a],a,n,e):e[a];fn(n,a,s)}return n}function rr(e,t){return ir(e,Fr(e),t)}function or(e,t){return function(n,r){var o=mp(n)?i:xn,a=t?t():{};return o(n,e,Lr(r),a)}}function ar(e){return Ha(function(t,n){var i=-1,r=n.length,o=r>1?n[r-1]:q,a=r>2?n[2]:q;for(o=e.length>3&&"function"==typeof o?(r--,o):q,a&&Xr(n[0],n[1],a)&&(o=r<3?q:o,r=1),t=Object(t);++i<r;){var s=n[i];s&&e(t,s,i,o)}return t})}function sr(e,t){return function(n,i){if(null==n)return n;if(!rs(n))return e(n,i);for(var r=n.length,o=t?r:-1,a=Object(n);(t?o--:++o<r)&&i(a[o],o,a)!==!1;);return n}}function ur(e){return function(t,n,i){for(var r=-1,o=Object(t),a=i(t),s=a.length;s--;){var u=a[e?s:++r];if(n(o[u],u,o)===!1)break}return t}}function lr(e,t,n){function i(){var t=this&&this!==jn&&this instanceof i?o:e;return t.apply(r?n:this,arguments)}var r=t&Q,o=dr(e);return i}function cr(e){return function(t){t=Ws(t);var n=yn.test(t)?W(t):q,i=n?n[0]:t.charAt(0),r=n?Ui(n,1).join(""):t.slice(1);return i[e]()+r}}function pr(e){return function(t){return d(Bu(_u(t).replace(hn,"")),e,"")}}function dr(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=Pn(e.prototype),i=e.apply(n,t);return vs(i)?i:n}}function fr(e,t,i){function r(){for(var a=arguments.length,s=Array(a),u=a,l=Ir(r);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:F(s,l);if(a-=c.length,a<i)return xr(e,t,mr,r.placeholder,q,s,c,q,q,i-a);var p=this&&this!==jn&&this instanceof r?o:e;return n(p,this,s)}var o=dr(e);return r}function hr(e){return function(t,n,i){var r=Object(t);if(n=Lr(n,3),!rs(t))var o=iu(t);var a=e(o||t,function(e,t){return o&&(t=e,e=r[t]),n(e,t,r)},i);return a>-1?t[o?o[a]:a]:q}}function gr(e){return Ha(function(t){t=Bn(t,1);var n=t.length,i=n,r=Ot.prototype.thru;for(e&&t.reverse();i--;){var o=t[i];if("function"!=typeof o)throw new _l(Z);if(r&&!a&&"wrapper"==Pr(o))var a=new Ot([],(!0))}for(i=a?i:n;++i<n;){o=t[i];var s=Pr(o),u="wrapper"==s?Sc(o):q;a=u&&eo(u[0])&&u[1]==(ae|ne|re|se)&&!u[4].length&&1==u[9]?a[Pr(u[0])].apply(a,u[3]):1==o.length&&eo(o)?a[s]():a.thru(o)}return function(){var e=arguments,i=e[0];if(a&&1==e.length&&mp(i)&&i.length>=K)return a.plant(i).value();for(var r=0,o=n?t[r].apply(this,e):i;++r<n;)o=t[r].call(this,o);return o}})}function mr(e,t,n,i,r,o,a,s,u,l){function c(){for(var v=arguments.length,y=Array(v),b=v;b--;)y[b]=arguments[b];if(h)var $=Ir(c),w=E(y,$);if(i&&(y=er(y,i,r,h)),o&&(y=tr(y,o,a,h)),v-=w,h&&v<l){var _=F(y,$);return xr(e,t,mr,c.placeholder,n,y,_,s,u,l-v)}var k=d?n:this,x=f?k[e]:e;return v=y.length,s?y=uo(y,s):g&&v>1&&y.reverse(),p&&u<v&&(y.length=u),this&&this!==jn&&this instanceof c&&(x=m||dr(x)),x.apply(k,y)}var p=t&ae,d=t&Q,f=t&ee,h=t&(ne|ie),g=t&ue,m=f?q:dr(e);return c}function vr(e,t){return function(n,i){return Qn(n,e,t(i),{})}}function yr(e){return function(t,n){var i;if(t===q&&n===q)return 0;if(t!==q&&(i=t),n!==q){if(i===q)return n;"string"==typeof t||"string"==typeof n?(t=Oi(t),n=Oi(n)):(t=Ei(t),n=Ei(n)),i=e(t,n)}return i}}function br(e){return Ha(function(t){return t=1==t.length&&mp(t[0])?c(t[0],C(Lr())):c(Bn(t,1,Kr),C(Lr())),Ha(function(i){var r=this;return e(t,function(e){return n(e,r,i)})})})}function $r(e,t){t=t===q?" ":Oi(t);var n=t.length;if(n<2)return n?xi(t,e):t;var i=xi(t,Vl(e/U(t)));return yn.test(t)?Ui(W(i),0,e).join(""):i.slice(0,e)}function wr(e,t,i,r){function o(){for(var t=-1,u=arguments.length,l=-1,c=r.length,p=Array(c+u),d=this&&this!==jn&&this instanceof o?s:e;++l<c;)p[l]=r[l];for(;u--;)p[l++]=arguments[++t];return n(d,a?i:this,p)}var a=t&Q,s=dr(e);return o}function _r(e){return function(t,n,i){return i&&"number"!=typeof i&&Xr(t,n,i)&&(n=i=q),t=Rs(t),t=t===t?t:0,n===q?(n=t,t=0):n=Rs(n)||0,i=i===q?t<n?1:-1:Rs(i)||0,ki(t,n,i,e)}}function kr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Rs(t),n=Rs(n)),e(t,n)}}function xr(e,t,n,i,r,o,a,s,u,l){var c=t&ne,p=c?a:q,d=c?q:a,f=c?o:q,h=c?q:o;t|=c?re:oe,t&=~(c?oe:re),t&te||(t&=~(Q|ee));var g=[e,t,r,f,p,h,d,s,u,l],m=n.apply(q,g);return eo(e)&&Oc(m,g),m.placeholder=i,m}function Cr(e){var t=$l[e];return function(e,n){if(e=Rs(e),n=Ql(zs(n),292)){var i=(Ws(e)+"e").split("e"),r=t(i[0]+"e"+(+i[1]+n));return i=(Ws(r)+"e").split("e"),+(i[0]+"e"+(+i[1]-n))}return t(e)}}function Ar(e){return function(t){var n=Rr(t);return n==Oe?z(t):n==Ne?B(t):x(t,e(t))}}function Mr(e,t,n,i,r,o,a,s){var u=t&ee;if(!u&&"function"!=typeof e)throw new _l(Z);var l=i?i.length:0;if(l||(t&=~(re|oe),i=r=q),a=a===q?a:Jl(zs(a),0),s=s===q?s:zs(s),l-=r?r.length:0,t&oe){var c=i,p=r;i=r=q}var d=u?q:Sc(e),f=[e,t,n,i,r,c,p,o,a,s];if(d&&oo(f,d),e=f[0],t=f[1],n=f[2],i=f[3],r=f[4],s=f[9]=null==f[9]?u?0:e.length:Jl(f[9]-l,0),!s&&t&(ne|ie)&&(t&=~(ne|ie)),t&&t!=Q)h=t==ne||t==ie?fr(e,t,s):t!=re&&t!=(Q|re)||r.length?mr.apply(q,f):wr(e,t,n,i);else var h=lr(e,t,n);var g=d?Ac:Oc;return g(h,f)}function Sr(e,t,n,i,r,o){var a=r&ce,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e);if(l)return l==t;var c=-1,p=!0,d=r&le?new tn:q;for(o.set(e,t);++c<s;){var f=e[c],g=t[c];if(i)var m=a?i(g,f,c,t,e,o):i(f,g,c,e,t,o);if(m!==q){if(m)continue;p=!1;break}if(d){if(!h(t,function(e,t){if(!d.has(t)&&(f===e||n(f,e,i,r,o)))return d.add(t)})){p=!1;break}}else if(f!==g&&!n(f,g,i,r,o)){p=!1;break}}return o["delete"](e),p}function Dr(e,t,n,i,r,o,a){switch(n){case Ue:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Be:return!(e.byteLength!=t.byteLength||!i(new Gl(e),new Gl(t)));case Me:case Se:return+e==+t;case De:return e.name==t.name&&e.message==t.message;case Pe:return e!=+e?t!=+t:e==+t;case je:case Ge:return e==t+"";case Oe:var s=z;case Ne:var u=o&ce;if(s||(s=R),e.size!=t.size&&!u)return!1;var l=a.get(e);return l?l==t:(o|=le,a.set(e,t),Sr(s(e),s(t),i,r,o,a));case ze:if($c)return $c.call(e)==$c.call(t)}return!1}function Tr(e,t,n,i,r,o){var a=r&ce,s=iu(e),u=s.length,l=iu(t),c=l.length;if(u!=c&&!a)return!1;for(var p=u;p--;){var d=s[p];if(!(a?d in t:Kn(t,d)))return!1}var f=o.get(e);if(f)return f==t;var h=!0;o.set(e,t);for(var g=a;++p<u;){d=s[p];var m=e[d],v=t[d];if(i)var y=a?i(v,m,d,t,e,o):i(m,v,d,e,t,o);if(!(y===q?m===v||n(m,v,i,r,o):y)){h=!1;break}g||(g="constructor"==d)}if(h&&!g){var b=e.constructor,$=t.constructor;b!=$&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof $&&$ instanceof $)&&(h=!1)}return o["delete"](e),h}function Er(e){return qn(e,iu,Fr)}function Or(e){return qn(e,ru,Tc)}function Pr(e){for(var t=e.name+"",n=fc[t],i=Dl.call(fc,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function Ir(e){var t=Dl.call(Tt,"placeholder")?Tt:e;return t.placeholder}function Lr(){var e=Tt.iteratee||qu;return e=e===qu?oi:e,arguments.length?e(arguments[0],arguments[1]):e}function jr(e,t){var n=e.__data__;return Qr(t)?n["string"==typeof t?"string":"hash"]:n.map}function Nr(e){for(var t=iu(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,io(r)]}return t}function Gr(e,t){var n=L(e,t);return ri(n)?n:q}function zr(e){return Yl(Object(e))}function Fr(e){return Fl(Object(e))}function Rr(e){return Ol.call(e)}function Br(e,t,n){for(var i=-1,r=n.length;++i<r;){var o=n[i],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Ql(t,e+a);break;case"takeRight":e=Jl(e,t-a)}}return{start:e,end:t}}function Ur(e,t,n){t=Jr(t,e)?[t]:Bi(t);for(var i,r=-1,o=t.length;++r<o;){var a=lo(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}if(i)return i;var o=e?e.length:0;return!!o&&ms(o)&&Zr(a,o)&&(mp(e)||Es(e)||ns(e))}function Wr(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Dl.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Hr(e){return"function"!=typeof e.constructor||no(e)?{}:Pn(zr(e))}function Vr(e,t,n,i){var r=e.constructor;switch(t){case Be:return Hi(e);case Me:case Se:return new r((+e));case Ue:return Vi(e,i);case We:case He:case Ve:case qe:case Ye:case Ke:case Ze:case Xe:case Je:return Xi(e,i);case Oe:return qi(e,i,n);case Pe:case Ge:return new r(e);case je:return Yi(e);case Ne:return Ki(e,i,n);case ze:return Zi(e)}}function qr(e){var t=e?e.length:q;return ms(t)&&(mp(e)||Es(e)||ns(e))?k(t,String):null}function Yr(e){return mp(e)||ns(e)}function Kr(e){return mp(e)&&!(2==e.length&&!hs(e[0]))}function Zr(e,t){return t=null==t?be:t,!!t&&("number"==typeof e||At.test(e))&&e>-1&&e%1==0&&e<t}function Xr(e,t,n){if(!vs(n))return!1;var i=typeof t;return!!("number"==i?rs(n)&&Zr(t,n.length):"string"==i&&t in n)&&ts(n[t],e)}function Jr(e,t){if(mp(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Os(e))||(ct.test(e)||!lt.test(e)||null!=t&&e in Object(t))}function Qr(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function eo(e){var t=Pr(e),n=Tt[t];if("function"!=typeof n||!(t in Pt.prototype))return!1;if(e===n)return!0;var i=Sc(n);return!!i&&e===i[0]}function to(e){return!!Ml&&Ml in e}function no(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||xl;return e===n}function io(e){return e===e&&!vs(e)}function ro(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==q||e in Object(n)))}}function oo(e,t){var n=e[1],i=t[1],r=n|i,o=r<(Q|ee|ae),a=i==ae&&n==ne||i==ae&&n==se&&e[7].length<=t[8]||i==(ae|se)&&t[7].length<=t[8]&&n==ne;if(!o&&!a)return e;i&Q&&(e[2]=t[2],r|=n&Q?0:te);var s=t[3];if(s){var u=e[3];e[3]=u?er(u,s,t[4]):s,e[4]=u?F(e[3],J):t[4]}return s=t[5],s&&(u=e[5],e[5]=u?tr(u,s,t[6]):s,e[6]=u?F(e[5],J):t[6]),s=t[7],s&&(e[7]=s),i&ae&&(e[8]=null==e[8]?t[8]:Ql(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r,e}function ao(e,t,n,i,r,o){return vs(e)&&vs(t)&&di(e,t,q,ao,o.set(t,e)),e}function so(e,t){return 1==t.length?e:Vn(e,Ai(t,0,-1))}function uo(e,t){for(var n=e.length,i=Ql(t.length,n),r=nr(e);i--;){var o=t[i];e[i]=Zr(o,n)?r[o]:q}return e}function lo(e){if("string"==typeof e||Os(e))return e;var t=e+"";return"0"==t&&1/e==-ye?"-0":t}function co(e){if(null!=e){try{return Sl.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function po(e){if(e instanceof Pt)return e.clone();var t=new Ot(e.__wrapped__,e.__chain__);return t.__actions__=nr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function fo(e,t,n){t=(n?Xr(e,t,n):t===q)?1:Jl(zs(t),0);var i=e?e.length:0;if(!i||t<1)return[];for(var r=0,o=0,a=Array(Vl(i/t));r<i;)a[o++]=Ai(e,r,r+=t);return a}function ho(e){for(var t=-1,n=e?e.length:0,i=0,r=[];++t<n;){var o=e[t];o&&(r[i++]=o)}return r}function go(){for(var e=arguments.length,t=Array(e?e-1:0),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return e?p(mp(n)?nr(n):[n],Bn(t,1)):[]}function mo(e,t,n){var i=e?e.length:0;return i?(t=n||t===q?1:zs(t),Ai(e,t<0?0:t,i)):[]}function vo(e,t,n){var i=e?e.length:0;return i?(t=n||t===q?1:zs(t),t=i-t,Ai(e,0,t<0?0:t)):[]}function yo(e,t){return e&&e.length?ji(e,Lr(t,3),!0,!0):[]}function bo(e,t){return e&&e.length?ji(e,Lr(t,3),!0):[]}function $o(e,t,n,i){var r=e?e.length:0;return r?(n&&"number"!=typeof n&&Xr(e,t,n)&&(n=0,i=r),Fn(e,t,n,i)):[]}function wo(e,t,n){var i=e?e.length:0;if(!i)return-1;var r=null==n?0:zs(n);return r<0&&(r=Jl(i+r,0)),m(e,Lr(t,3),r)}function _o(e,t,n){var i=e?e.length:0;if(!i)return-1;var r=i-1;return n!==q&&(r=zs(n),r=n<0?Jl(i+r,0):Ql(r,i-1)),m(e,Lr(t,3),r,!0)}function ko(e){var t=e?e.length:0;return t?Bn(e,1):[]}function xo(e){var t=e?e.length:0;return t?Bn(e,ye):[]}function Co(e,t){var n=e?e.length:0;return n?(t=t===q?1:zs(t),Bn(e,t)):[]}function Ao(e){for(var t=-1,n=e?e.length:0,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i}function Mo(e){return e&&e.length?e[0]:q}function So(e,t,n){var i=e?e.length:0;if(!i)return-1;var r=null==n?0:zs(n);return r<0&&(r=Jl(i+r,0)),v(e,t,r)}function Do(e){return vo(e,1)}function To(e,t){return e?Zl.call(e,t):""}function Eo(e){var t=e?e.length:0;return t?e[t-1]:q}function Oo(e,t,n){var i=e?e.length:0;if(!i)return-1;var r=i;if(n!==q&&(r=zs(n),r=(r<0?Jl(i+r,0):Ql(r,i-1))+1),t!==t)return j(e,r-1,!0);for(;r--;)if(e[r]===t)return r;return-1}function Po(e,t){return e&&e.length?hi(e,zs(t)):q}function Io(e,t){return e&&e.length&&t&&t.length?$i(e,t):e}function Lo(e,t,n){return e&&e.length&&t&&t.length?$i(e,t,Lr(n)):e}function jo(e,t,n){return e&&e.length&&t&&t.length?$i(e,t,q,n):e}function No(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;for(t=Lr(t,3);++i<o;){var a=e[i];t(a,i,e)&&(n.push(a),r.push(i))}return wi(e,r),n}function Go(e){return e?ic.call(e):e}function zo(e,t,n){var i=e?e.length:0;return i?(n&&"number"!=typeof n&&Xr(e,t,n)?(t=0,n=i):(t=null==t?0:zs(t),n=n===q?i:zs(n)),Ai(e,t,n)):[]}function Fo(e,t){return Si(e,t)}function Ro(e,t,n){return Di(e,t,Lr(n))}function Bo(e,t){var n=e?e.length:0;if(n){var i=Si(e,t);if(i<n&&ts(e[i],t))return i}return-1}function Uo(e,t){return Si(e,t,!0)}function Wo(e,t,n){return Di(e,t,Lr(n),!0)}function Ho(e,t){var n=e?e.length:0;if(n){var i=Si(e,t,!0)-1;if(ts(e[i],t))return i}return-1}function Vo(e){return e&&e.length?Ti(e):[]}function qo(e,t){return e&&e.length?Ti(e,Lr(t)):[]}function Yo(e){return mo(e,1)}function Ko(e,t,n){return e&&e.length?(t=n||t===q?1:zs(t),Ai(e,0,t<0?0:t)):[]}function Zo(e,t,n){var i=e?e.length:0;return i?(t=n||t===q?1:zs(t),t=i-t,Ai(e,t<0?0:t,i)):[]}function Xo(e,t){return e&&e.length?ji(e,Lr(t,3),!1,!0):[]}function Jo(e,t){return e&&e.length?ji(e,Lr(t,3)):[]}function Qo(e){return e&&e.length?Pi(e):[]}function ea(e,t){return e&&e.length?Pi(e,Lr(t)):[]}function ta(e,t){return e&&e.length?Pi(e,q,t):[]}function na(e){if(!e||!e.length)return[];var t=0;return e=s(e,function(e){if(os(e))return t=Jl(e.length,t),!0}),k(t,function(t){return c(e,yi(t))})}function ia(e,t){if(!e||!e.length)return[];var i=na(e);return null==t?i:c(i,function(e){return n(t,q,e)})}function ra(e,t){return zi(e||[],t||[],fn)}function oa(e,t){return zi(e||[],t||[],Ci)}function aa(e){var t=Tt(e);return t.__chain__=!0,t}function sa(e,t){return t(e),e}function ua(e,t){return t(e)}function la(){return aa(this)}function ca(){return new Ot(this.value(),this.__chain__)}function pa(){this.__values__===q&&(this.__values__=Ns(this.value()));var e=this.__index__>=this.__values__.length,t=e?q:this.__values__[this.__index__++];return{done:e,value:t}}function da(){return this}function fa(e){for(var t,n=this;n instanceof Et;){var i=po(n);i.__index__=0,i.__values__=q,t?r.__wrapped__=i:t=i;var r=i;n=n.__wrapped__}return r.__wrapped__=e,t}function ha(){var e=this.__wrapped__;if(e instanceof Pt){var t=e;return this.__actions__.length&&(t=new Pt(this)),t=t.reverse(),t.__actions__.push({func:ua,args:[Go],thisArg:q}),new Ot(t,this.__chain__)}return this.thru(Go)}function ga(){return Ni(this.__wrapped__,this.__actions__)}function ma(e,t,n){var i=mp(e)?a:Gn;return n&&Xr(e,t,n)&&(t=q),i(e,Lr(t,3))}function va(e,t){var n=mp(e)?s:Rn;return n(e,Lr(t,3))}function ya(e,t){return Bn(xa(e,t),1)}function ba(e,t){return Bn(xa(e,t),ye)}function $a(e,t,n){return n=n===q?1:zs(n),Bn(xa(e,t),n)}function wa(e,t){var n=mp(e)?r:_c;return n(e,Lr(t,3))}function _a(e,t){var n=mp(e)?o:kc;return n(e,Lr(t,3))}function ka(e,t,n,i){e=rs(e)?e:mu(e),n=n&&!i?zs(n):0;var r=e.length;return n<0&&(n=Jl(r+n,0)),Es(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&v(e,t,n)>-1}function xa(e,t){var n=mp(e)?c:li;return n(e,Lr(t,3))}function Ca(e,t,n,i){return null==e?[]:(mp(t)||(t=null==t?[]:[t]),n=i?q:n,mp(n)||(n=null==n?[]:[n]),gi(e,t,n))}function Aa(e,t,n){var i=mp(e)?d:$,r=arguments.length<3;return i(e,Lr(t,4),n,r,_c)}function Ma(e,t,n){var i=mp(e)?f:$,r=arguments.length<3;return i(e,Lr(t,4),n,r,kc)}function Sa(e,t){var n=mp(e)?s:Rn;return t=Lr(t,3),n(e,function(e,n,i){return!t(e,n,i)})}function Da(e){var t=rs(e)?e:mu(e),n=t.length;return n>0?t[_i(0,n-1)]:q}function Ta(e,t,n){var i=-1,r=Ns(e),o=r.length,a=o-1;for(t=(n?Xr(e,t,n):t===q)?1:Mn(zs(t),0,o);++i<t;){var s=_i(i,a),u=r[s];r[s]=r[i],r[i]=u}return r.length=t,r}function Ea(e){return Ta(e,_e)}function Oa(e){if(null==e)return 0;if(rs(e)){var t=e.length;return t&&Es(e)?U(e):t}if(ys(e)){var n=Rr(e);if(n==Oe||n==Ne)return e.size}return iu(e).length}function Pa(e,t,n){var i=mp(e)?h:Mi;return n&&Xr(e,t,n)&&(t=q),i(e,Lr(t,3))}function Ia(){return yl.now()}function La(e,t){if("function"!=typeof t)throw new _l(Z);return e=zs(e),function(){if(--e<1)return t.apply(this,arguments)}}function ja(e,t,n){return t=n?q:t,t=e&&null==t?e.length:t,Mr(e,ae,q,q,q,q,t)}function Na(e,t){var n;if("function"!=typeof t)throw new _l(Z);return e=zs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=q),n}}function Ga(e,t,n){t=n?q:t;var i=Mr(e,ne,q,q,q,q,q,t);return i.placeholder=Ga.placeholder,i}function za(e,t,n){t=n?q:t;var i=Mr(e,ie,q,q,q,q,q,t);return i.placeholder=za.placeholder,i}function Fa(e,t,n){function i(t){var n=d,i=f;return d=f=q,y=t,g=e.apply(i,n)}function r(e){return y=e,m=Hl(s,t),b?i(e):g}function o(e){var n=e-v,i=e-y,r=t-n;return $?Ql(r,h-i):r}function a(e){var n=e-v,i=e-y;return v===q||n>=t||n<0||$&&i>=h}function s(){var e=Ia();return a(e)?u(e):void(m=Hl(s,o(e)))}function u(e){return m=q,w&&d?i(e):(d=f=q,g)}function l(){y=0,d=v=f=m=q}function c(){return m===q?g:u(Ia())}function p(){var e=Ia(),n=a(e);if(d=arguments,f=this,v=e,n){if(m===q)return r(v);if($)return m=Hl(s,t),i(v)}return m===q&&(m=Hl(s,t)),g}var d,f,h,g,m,v,y=0,b=!1,$=!1,w=!0;if("function"!=typeof e)throw new _l(Z);return t=Rs(t)||0,vs(n)&&(b=!!n.leading,$="maxWait"in n,h=$?Jl(Rs(n.maxWait)||0,t):h,w="trailing"in n?!!n.trailing:w),p.cancel=l,p.flush=c,p}function Ra(e){return Mr(e,ue)}function Ba(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new _l(Z);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a),a};return n.cache=new(Ba.Cache||Kt),n}function Ua(e){if("function"!=typeof e)throw new _l(Z);return function(){return!e.apply(this,arguments)}}function Wa(e){return Na(2,e)}function Ha(e,t){if("function"!=typeof e)throw new _l(Z);return t=Jl(t===q?e.length-1:zs(t),0),function(){for(var i=arguments,r=-1,o=Jl(i.length-t,0),a=Array(o);++r<o;)a[r]=i[t+r];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,i[0],a);case 2:return e.call(this,i[0],i[1],a)}var s=Array(t+1);for(r=-1;++r<t;)s[r]=i[r];return s[t]=a,n(e,this,s)}}function Va(e,t){if("function"!=typeof e)throw new _l(Z);return t=t===q?0:Jl(zs(t),0),Ha(function(i){var r=i[t],o=Ui(i,0,t);return r&&p(o,r),n(e,this,o)})}function qa(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new _l(Z);return vs(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Fa(e,t,{leading:i,maxWait:t,trailing:r})}function Ya(e){return ja(e,1)}function Ka(e,t){return t=null==t?Vu:t,pp(t,e)}function Za(){if(!arguments.length)return[];var e=arguments[0];return mp(e)?e:[e]}function Xa(e){return Tn(e,!1,!0)}function Ja(e,t){return Tn(e,!1,!0,t)}function Qa(e){return Tn(e,!0,!0)}function es(e,t){return Tn(e,!0,!0,t)}function ts(e,t){return e===t||e!==e&&t!==t}function ns(e){return os(e)&&Dl.call(e,"callee")&&(!Ul.call(e,"callee")||Ol.call(e)==Ce)}function is(e){return ys(e)&&Ol.call(e)==Be}function rs(e){return null!=e&&ms(Dc(e))&&!hs(e)}function os(e){return ys(e)&&rs(e)}function as(e){return e===!0||e===!1||ys(e)&&Ol.call(e)==Me}function ss(e){return ys(e)&&Ol.call(e)==Se}function us(e){return!!e&&1===e.nodeType&&ys(e)&&!Ms(e)}function ls(e){if(rs(e)&&(mp(e)||Es(e)||hs(e.splice)||ns(e)||vp(e)))return!e.length;if(ys(e)){var t=Rr(e);if(t==Oe||t==Ne)return!e.size}for(var n in e)if(Dl.call(e,n))return!1;return!(dc&&iu(e).length)}function cs(e,t){return ti(e,t)}function ps(e,t,n){n="function"==typeof n?n:q;var i=n?n(e,t):q;return i===q?ti(e,t,n):!!i}function ds(e){return!!ys(e)&&(Ol.call(e)==De||"string"==typeof e.message&&"string"==typeof e.name)}function fs(e){return"number"==typeof e&&Kl(e)}function hs(e){var t=vs(e)?Ol.call(e):"";return t==Te||t==Ee}function gs(e){return"number"==typeof e&&e==zs(e)}function ms(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=be}function vs(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ys(e){return!!e&&"object"==typeof e}function bs(e){return ys(e)&&Rr(e)==Oe}function $s(e,t){return e===t||ii(e,t,Nr(t))}function ws(e,t,n){return n="function"==typeof n?n:q,ii(e,t,Nr(t),n)}function _s(e){return As(e)&&e!=+e}function ks(e){if(Ec(e))throw new bl("This method is not supported with `core-js`. Try https://github.com/es-shims.");return ri(e)}function xs(e){return null===e}function Cs(e){return null==e}function As(e){return"number"==typeof e||ys(e)&&Ol.call(e)==Pe;
  }function Ms(e){if(!ys(e)||Ol.call(e)!=Ie||N(e))return!1;var t=zr(e);if(null===t)return!0;var n=Dl.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Sl.call(n)==El}function Ss(e){return vs(e)&&Ol.call(e)==je}function Ds(e){return gs(e)&&e>=-be&&e<=be}function Ts(e){return ys(e)&&Rr(e)==Ne}function Es(e){return"string"==typeof e||!mp(e)&&ys(e)&&Ol.call(e)==Ge}function Os(e){return"symbol"==typeof e||ys(e)&&Ol.call(e)==ze}function Ps(e){return ys(e)&&ms(e.length)&&!!_n[Ol.call(e)]}function Is(e){return e===q}function Ls(e){return ys(e)&&Rr(e)==Fe}function js(e){return ys(e)&&Ol.call(e)==Re}function Ns(e){if(!e)return[];if(rs(e))return Es(e)?W(e):nr(e);if(Rl&&e[Rl])return G(e[Rl]());var t=Rr(e),n=t==Oe?z:t==Ne?R:mu;return n(e)}function Gs(e){if(!e)return 0===e?e:0;if(e=Rs(e),e===ye||e===-ye){var t=e<0?-1:1;return t*$e}return e===e?e:0}function zs(e){var t=Gs(e),n=t%1;return t===t?n?t-n:t:0}function Fs(e){return e?Mn(zs(e),0,_e):0}function Rs(e){if("number"==typeof e)return e;if(Os(e))return we;if(vs(e)){var t=hs(e.valueOf)?e.valueOf():e;e=vs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ht,"");var n=kt.test(e);return n||Ct.test(e)?Dn(e.slice(2),n?2:8):_t.test(e)?we:+e}function Bs(e){return ir(e,ru(e))}function Us(e){return Mn(zs(e),-be,be)}function Ws(e){return null==e?"":Oi(e)}function Hs(e,t){var n=Pn(e);return t?Cn(n,t):n}function Vs(e,t){return g(e,Lr(t,3),Un)}function qs(e,t){return g(e,Lr(t,3),Wn)}function Ys(e,t){return null==e?e:xc(e,Lr(t,3),ru)}function Ks(e,t){return null==e?e:Cc(e,Lr(t,3),ru)}function Zs(e,t){return e&&Un(e,Lr(t,3))}function Xs(e,t){return e&&Wn(e,Lr(t,3))}function Js(e){return null==e?[]:Hn(e,iu(e))}function Qs(e){return null==e?[]:Hn(e,ru(e))}function eu(e,t,n){var i=null==e?q:Vn(e,t);return i===q?n:i}function tu(e,t){return null!=e&&Ur(e,t,Kn)}function nu(e,t){return null!=e&&Ur(e,t,Zn)}function iu(e){var t=no(e);if(!t&&!rs(e))return ai(e);var n=qr(e),i=!!n,r=n||[],o=r.length;for(var a in e)!Kn(e,a)||i&&("length"==a||Zr(a,o))||t&&"constructor"==a||r.push(a);return r}function ru(e){for(var t=-1,n=no(e),i=si(e),r=i.length,o=qr(e),a=!!o,s=o||[],u=s.length;++t<r;){var l=i[t];a&&("length"==l||Zr(l,u))||"constructor"==l&&(n||!Dl.call(e,l))||s.push(l)}return s}function ou(e,t){var n={};return t=Lr(t,3),Un(e,function(e,i,r){n[t(e,i,r)]=e}),n}function au(e,t){var n={};return t=Lr(t,3),Un(e,function(e,i,r){n[i]=t(e,i,r)}),n}function su(e,t){return t=Lr(t),vi(e,function(e,n){return!t(e,n)})}function uu(e,t){return null==e?{}:vi(e,Lr(t))}function lu(e,t,n){t=Jr(t,e)?[t]:Bi(t);var i=-1,r=t.length;for(r||(e=q,r=1);++i<r;){var o=null==e?q:e[lo(t[i])];o===q&&(i=r,o=n),e=hs(o)?o.call(e):o}return e}function cu(e,t,n){return null==e?e:Ci(e,t,n)}function pu(e,t,n,i){return i="function"==typeof i?i:q,null==e?e:Ci(e,t,n,i)}function du(e,t,n){var i=mp(e)||Ps(e);if(t=Lr(t,4),null==n)if(i||vs(e)){var o=e.constructor;n=i?mp(e)?new o:[]:hs(o)?Pn(zr(e)):{}}else n={};return(i?r:Un)(e,function(e,i,r){return t(n,e,i,r)}),n}function fu(e,t){return null==e||Ii(e,t)}function hu(e,t,n){return null==e?e:Li(e,t,Ri(n))}function gu(e,t,n,i){return i="function"==typeof i?i:q,null==e?e:Li(e,t,Ri(n),i)}function mu(e){return e?A(e,iu(e)):[]}function vu(e){return null==e?[]:A(e,ru(e))}function yu(e,t,n){return n===q&&(n=t,t=q),n!==q&&(n=Rs(n),n=n===n?n:0),t!==q&&(t=Rs(t),t=t===t?t:0),Mn(Rs(e),t,n)}function bu(e,t,n){return t=Rs(t)||0,n===q?(n=t,t=0):n=Rs(n)||0,e=Rs(e),Xn(e,t,n)}function $u(e,t,n){if(n&&"boolean"!=typeof n&&Xr(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=Rs(e)||0,t===q?(t=e,e=0):t=Rs(t)||0),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var r=tc();return Ql(e+r*(t-e+Sn("1e-"+((r+"").length-1))),t)}return _i(e,t)}function wu(e){return Up(Ws(e).toLowerCase())}function _u(e){return e=Ws(e),e&&e.replace(Mt,O).replace(gn,"")}function ku(e,t,n){e=Ws(e),t=Oi(t);var i=e.length;return n=n===q?i:Mn(zs(n),0,i),n-=t.length,n>=0&&e.indexOf(t,n)==n}function xu(e){return e=Ws(e),e&&ot.test(e)?e.replace(it,P):e}function Cu(e){return e=Ws(e),e&&ft.test(e)?e.replace(dt,"\\$&"):e}function Au(e,t,n){e=Ws(e),t=zs(t);var i=t?U(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return $r(ql(r),n)+e+$r(Vl(r),n)}function Mu(e,t,n){e=Ws(e),t=zs(t);var i=t?U(e):0;return t&&i<t?e+$r(t-i,n):e}function Su(e,t,n){e=Ws(e),t=zs(t);var i=t?U(e):0;return t&&i<t?$r(t-i,n)+e:e}function Du(e,t,n){return n||null==t?t=0:t&&(t=+t),e=Ws(e).replace(ht,""),ec(e,t||(wt.test(e)?16:10))}function Tu(e,t,n){return t=(n?Xr(e,t,n):t===q)?1:zs(t),xi(Ws(e),t)}function Eu(){var e=arguments,t=Ws(e[0]);return e.length<3?t:nc.call(t,e[1],e[2])}function Ou(e,t,n){return n&&"number"!=typeof n&&Xr(e,t,n)&&(t=n=q),(n=n===q?_e:n>>>0)?(e=Ws(e),e&&("string"==typeof t||null!=t&&!Ss(t))&&(t=Oi(t),""==t&&yn.test(e))?Ui(W(e),0,n):rc.call(e,t,n)):[]}function Pu(e,t,n){return e=Ws(e),n=Mn(zs(n),0,e.length),e.lastIndexOf(Oi(t),n)==n}function Iu(e,t,n){var i=Tt.templateSettings;n&&Xr(e,t,n)&&(t=q),e=Ws(e),t=_p({},t,i,pn);var r,o,a=_p({},t.imports,i.imports,pn),s=iu(a),u=A(a,s),l=0,c=t.interpolate||St,p="__p += '",d=wl((t.escape||St).source+"|"+c.source+"|"+(c===ut?bt:St).source+"|"+(t.evaluate||St).source+"|$","g"),f="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++wn+"]")+"\n";e.replace(d,function(t,n,i,a,s,u){return i||(i=a),p+=e.slice(l,u).replace(Dt,I),n&&(r=!0,p+="' +\n__e("+n+") +\n'"),s&&(o=!0,p+="';\n"+s+";\n__p += '"),i&&(p+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),l=u+t.length,t}),p+="';\n";var h=t.variable;h||(p="with (obj) {\n"+p+"\n}\n"),p=(o?p.replace(Qe,""):p).replace(et,"$1").replace(tt,"$1;"),p="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Wp(function(){return Function(s,f+"return "+p).apply(q,u)});if(g.source=p,ds(g))throw g;return g}function Lu(e){return Ws(e).toLowerCase()}function ju(e){return Ws(e).toUpperCase()}function Nu(e,t,n){if(e=Ws(e),e&&(n||t===q))return e.replace(ht,"");if(!e||!(t=Oi(t)))return e;var i=W(e),r=W(t),o=S(i,r),a=D(i,r)+1;return Ui(i,o,a).join("")}function Gu(e,t,n){if(e=Ws(e),e&&(n||t===q))return e.replace(mt,"");if(!e||!(t=Oi(t)))return e;var i=W(e),r=D(i,W(t))+1;return Ui(i,0,r).join("")}function zu(e,t,n){if(e=Ws(e),e&&(n||t===q))return e.replace(gt,"");if(!e||!(t=Oi(t)))return e;var i=W(e),r=S(i,W(t));return Ui(i,r).join("")}function Fu(e,t){var n=pe,i=de;if(vs(t)){var r="separator"in t?t.separator:r;n="length"in t?zs(t.length):n,i="omission"in t?Oi(t.omission):i}e=Ws(e);var o=e.length;if(yn.test(e)){var a=W(e);o=a.length}if(n>=o)return e;var s=n-U(i);if(s<1)return i;var u=a?Ui(a,0,s).join(""):e.slice(0,s);if(r===q)return u+i;if(a&&(s+=u.length-s),Ss(r)){if(e.slice(s).search(r)){var l,c=u;for(r.global||(r=wl(r.source,Ws($t.exec(r))+"g")),r.lastIndex=0;l=r.exec(c);)var p=l.index;u=u.slice(0,p===q?s:p)}}else if(e.indexOf(Oi(r),s)!=s){var d=u.lastIndexOf(r);d>-1&&(u=u.slice(0,d))}return u+i}function Ru(e){return e=Ws(e),e&&rt.test(e)?e.replace(nt,H):e}function Bu(e,t,n){return e=Ws(e),t=n?q:t,t===q&&(t=bn.test(e)?vn:vt),e.match(t)||[]}function Uu(e){var t=e?e.length:0,i=Lr();return e=t?c(e,function(e){if("function"!=typeof e[1])throw new _l(Z);return[i(e[0]),e[1]]}):[],Ha(function(i){for(var r=-1;++r<t;){var o=e[r];if(n(o[0],this,i))return n(o[1],this,i)}})}function Wu(e){return En(Tn(e,!0))}function Hu(e){return function(){return e}}function Vu(e){return e}function qu(e){return oi("function"==typeof e?e:Tn(e,!0))}function Yu(e){return ci(Tn(e,!0))}function Ku(e,t){return pi(e,Tn(t,!0))}function Zu(e,t,n){var i=iu(t),o=Hn(t,i);null!=n||vs(t)&&(o.length||!i.length)||(n=t,t=e,e=this,o=Hn(t,iu(t)));var a=!(vs(n)&&"chain"in n&&!n.chain),s=hs(e);return r(o,function(n){var i=t[n];e[n]=i,s&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),r=n.__actions__=nr(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,p([this.value()],arguments))})}),e}function Xu(){return jn._===this&&(jn._=Pl),this}function Ju(){}function Qu(e){return e=zs(e),Ha(function(t){return hi(t,e)})}function el(e){return Jr(e)?yi(lo(e)):bi(e)}function tl(e){return function(t){return null==e?q:Vn(e,t)}}function nl(){return[]}function il(){return!1}function rl(){return{}}function ol(){return""}function al(){return!0}function sl(e,t){if(e=zs(e),e<1||e>be)return[];var n=_e,i=Ql(e,_e);t=Lr(t),e-=_e;for(var r=k(i,t);++n<e;)t(n);return r}function ul(e){return mp(e)?c(e,lo):Os(e)?[e]:nr(Pc(e))}function ll(e){var t=++Tl;return Ws(e)+t}function cl(e){return e&&e.length?zn(e,Vu,Yn):q}function pl(e,t){return e&&e.length?zn(e,Lr(t),Yn):q}function dl(e){return b(e,Vu)}function fl(e,t){return b(e,Lr(t))}function hl(e){return e&&e.length?zn(e,Vu,ui):q}function gl(e,t){return e&&e.length?zn(e,Lr(t),ui):q}function ml(e){return e&&e.length?_(e,Vu):0}function vl(e,t){return e&&e.length?_(e,Lr(t)):0}T=T?Nn.defaults({},T,Nn.pick(jn,$n)):jn;var yl=T.Date,bl=T.Error,$l=T.Math,wl=T.RegExp,_l=T.TypeError,kl=T.Array.prototype,xl=T.Object.prototype,Cl=T.String.prototype,Al=T["__core-js_shared__"],Ml=function(){var e=/[^.]+$/.exec(Al&&Al.keys&&Al.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Sl=T.Function.prototype.toString,Dl=xl.hasOwnProperty,Tl=0,El=Sl.call(Object),Ol=xl.toString,Pl=jn._,Il=wl("^"+Sl.call(Dl).replace(dt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ll=On?T.Buffer:q,jl=T.Reflect,Nl=T.Symbol,Gl=T.Uint8Array,zl=jl?jl.enumerate:q,Fl=Object.getOwnPropertySymbols,Rl="symbol"==typeof(Rl=Nl&&Nl.iterator)?Rl:q,Bl=Object.create,Ul=xl.propertyIsEnumerable,Wl=kl.splice,Hl=function(e,t){return T.setTimeout.call(jn,e,t)},Vl=$l.ceil,ql=$l.floor,Yl=Object.getPrototypeOf,Kl=T.isFinite,Zl=kl.join,Xl=Object.keys,Jl=$l.max,Ql=$l.min,ec=T.parseInt,tc=$l.random,nc=Cl.replace,ic=kl.reverse,rc=Cl.split,oc=Gr(T,"DataView"),ac=Gr(T,"Map"),sc=Gr(T,"Promise"),uc=Gr(T,"Set"),lc=Gr(T,"WeakMap"),cc=Gr(Object,"create"),pc=lc&&new lc,dc=!Ul.call({valueOf:1},"valueOf"),fc={},hc=co(oc),gc=co(ac),mc=co(sc),vc=co(uc),yc=co(lc),bc=Nl?Nl.prototype:q,$c=bc?bc.valueOf:q,wc=bc?bc.toString:q;Tt.templateSettings={escape:at,evaluate:st,interpolate:ut,variable:"",imports:{_:Tt}},Tt.prototype=Et.prototype,Tt.prototype.constructor=Tt,Ot.prototype=Pn(Et.prototype),Ot.prototype.constructor=Ot,Pt.prototype=Pn(Et.prototype),Pt.prototype.constructor=Pt,Nt.prototype.clear=Gt,Nt.prototype["delete"]=zt,Nt.prototype.get=Ft,Nt.prototype.has=Rt,Nt.prototype.set=Bt,Ut.prototype.clear=Wt,Ut.prototype["delete"]=Ht,Ut.prototype.get=Vt,Ut.prototype.has=qt,Ut.prototype.set=Yt,Kt.prototype.clear=Zt,Kt.prototype["delete"]=Xt,Kt.prototype.get=Jt,Kt.prototype.has=Qt,Kt.prototype.set=en,tn.prototype.add=tn.prototype.push=nn,tn.prototype.has=rn,on.prototype.clear=an,on.prototype["delete"]=sn,on.prototype.get=un,on.prototype.has=ln,on.prototype.set=cn;var _c=sr(Un),kc=sr(Wn,!0),xc=ur(),Cc=ur(!0);zl&&!Ul.call({valueOf:1},"valueOf")&&(si=function(e){return G(zl(e))});var Ac=pc?function(e,t){return pc.set(e,t),e}:Vu,Mc=uc&&1/R(new uc([,-0]))[1]==ye?function(e){return new uc(e)}:Ju,Sc=pc?function(e){return pc.get(e)}:Ju,Dc=yi("length");Fl||(Fr=nl);var Tc=Fl?function(e){for(var t=[];e;)p(t,Fr(e)),e=zr(e);return t}:Fr;(oc&&Rr(new oc(new ArrayBuffer(1)))!=Ue||ac&&Rr(new ac)!=Oe||sc&&Rr(sc.resolve())!=Le||uc&&Rr(new uc)!=Ne||lc&&Rr(new lc)!=Fe)&&(Rr=function(e){var t=Ol.call(e),n=t==Ie?e.constructor:q,i=n?co(n):q;if(i)switch(i){case hc:return Ue;case gc:return Oe;case mc:return Le;case vc:return Ne;case yc:return Fe}return t});var Ec=Al?hs:il,Oc=function(){var e=0,t=0;return function(n,i){var r=Ia(),o=he-(r-t);if(t=r,o>0){if(++e>=fe)return n}else e=0;return Ac(n,i)}}(),Pc=Ba(function(e){var t=[];return Ws(e).replace(pt,function(e,n,i,r){t.push(i?r.replace(yt,"$1"):n||e)}),t}),Ic=Ha(function(e,t){return os(e)?Ln(e,Bn(t,1,os,!0)):[]}),Lc=Ha(function(e,t){var n=Eo(t);return os(n)&&(n=q),os(e)?Ln(e,Bn(t,1,os,!0),Lr(n)):[]}),jc=Ha(function(e,t){var n=Eo(t);return os(n)&&(n=q),os(e)?Ln(e,Bn(t,1,os,!0),q,n):[]}),Nc=Ha(function(e){var t=c(e,Fi);return t.length&&t[0]===e[0]?Jn(t):[]}),Gc=Ha(function(e){var t=Eo(e),n=c(e,Fi);return t===Eo(n)?t=q:n.pop(),n.length&&n[0]===e[0]?Jn(n,Lr(t)):[]}),zc=Ha(function(e){var t=Eo(e),n=c(e,Fi);return t===Eo(n)?t=q:n.pop(),n.length&&n[0]===e[0]?Jn(n,q,t):[]}),Fc=Ha(Io),Rc=Ha(function(e,t){t=Bn(t,1);var n=e?e.length:0,i=An(e,t);return wi(e,c(t,function(e){return Zr(e,n)?+e:e}).sort(Ji)),i}),Bc=Ha(function(e){return Pi(Bn(e,1,os,!0))}),Uc=Ha(function(e){var t=Eo(e);return os(t)&&(t=q),Pi(Bn(e,1,os,!0),Lr(t))}),Wc=Ha(function(e){var t=Eo(e);return os(t)&&(t=q),Pi(Bn(e,1,os,!0),q,t)}),Hc=Ha(function(e,t){return os(e)?Ln(e,t):[]}),Vc=Ha(function(e){return Gi(s(e,os))}),qc=Ha(function(e){var t=Eo(e);return os(t)&&(t=q),Gi(s(e,os),Lr(t))}),Yc=Ha(function(e){var t=Eo(e);return os(t)&&(t=q),Gi(s(e,os),q,t)}),Kc=Ha(na),Zc=Ha(function(e){var t=e.length,n=t>1?e[t-1]:q;return n="function"==typeof n?(e.pop(),n):q,ia(e,n)}),Xc=Ha(function(e){e=Bn(e,1);var t=e.length,n=t?e[0]:0,i=this.__wrapped__,r=function(t){return An(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Pt&&Zr(n)?(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:ua,args:[r],thisArg:q}),new Ot(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(q),e})):this.thru(r)}),Jc=or(function(e,t,n){Dl.call(e,n)?++e[n]:e[n]=1}),Qc=hr(wo),ep=hr(_o),tp=or(function(e,t,n){Dl.call(e,n)?e[n].push(t):e[n]=[t]}),np=Ha(function(e,t,i){var r=-1,o="function"==typeof t,a=Jr(t),s=rs(e)?Array(e.length):[];return _c(e,function(e){var u=o?t:a&&null!=e?e[t]:q;s[++r]=u?n(u,e,i):ei(e,t,i)}),s}),ip=or(function(e,t,n){e[n]=t}),rp=or(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),op=Ha(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xr(e,t[0],t[1])?t=[]:n>2&&Xr(t[0],t[1],t[2])&&(t=[t[0]]),t=1==t.length&&mp(t[0])?t[0]:Bn(t,1,Kr),gi(e,t,[])}),ap=Ha(function(e,t,n){var i=Q;if(n.length){var r=F(n,Ir(ap));i|=re}return Mr(e,i,t,n,r)}),sp=Ha(function(e,t,n){var i=Q|ee;if(n.length){var r=F(n,Ir(sp));i|=re}return Mr(t,i,e,n,r)}),up=Ha(function(e,t){return In(e,1,t)}),lp=Ha(function(e,t,n){return In(e,Rs(t)||0,n)});Ba.Cache=Kt;var cp=Ha(function(e,t){t=1==t.length&&mp(t[0])?c(t[0],C(Lr())):c(Bn(t,1,Kr),C(Lr()));var i=t.length;return Ha(function(r){for(var o=-1,a=Ql(r.length,i);++o<a;)r[o]=t[o].call(this,r[o]);return n(e,this,r)})}),pp=Ha(function(e,t){var n=F(t,Ir(pp));return Mr(e,re,q,t,n)}),dp=Ha(function(e,t){var n=F(t,Ir(dp));return Mr(e,oe,q,t,n)}),fp=Ha(function(e,t){return Mr(e,se,q,q,q,Bn(t,1))}),hp=kr(Yn),gp=kr(function(e,t){return e>=t}),mp=Array.isArray,vp=Ll?function(e){return e instanceof Ll}:il,yp=kr(ui),bp=kr(function(e,t){return e<=t}),$p=ar(function(e,t){if(dc||no(t)||rs(t))return void ir(t,iu(t),e);for(var n in t)Dl.call(t,n)&&fn(e,n,t[n])}),wp=ar(function(e,t){if(dc||no(t)||rs(t))return void ir(t,ru(t),e);for(var n in t)fn(e,n,t[n])}),_p=ar(function(e,t,n,i){ir(t,ru(t),e,i)}),kp=ar(function(e,t,n,i){ir(t,iu(t),e,i)}),xp=Ha(function(e,t){return An(e,Bn(t,1))}),Cp=Ha(function(e){return e.push(q,pn),n(_p,q,e)}),Ap=Ha(function(e){return e.push(q,ao),n(Ep,q,e)}),Mp=vr(function(e,t,n){e[t]=n},Hu(Vu)),Sp=vr(function(e,t,n){Dl.call(e,t)?e[t].push(n):e[t]=[n]},Lr),Dp=Ha(ei),Tp=ar(function(e,t,n){di(e,t,n)}),Ep=ar(function(e,t,n,i){di(e,t,n,i)}),Op=Ha(function(e,t){return null==e?{}:(t=c(Bn(t,1),lo),mi(e,Ln(Or(e),t)))}),Pp=Ha(function(e,t){return null==e?{}:mi(e,c(Bn(t,1),lo))}),Ip=Ar(iu),Lp=Ar(ru),jp=pr(function(e,t,n){return t=t.toLowerCase(),e+(n?wu(t):t)}),Np=pr(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Gp=pr(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),zp=cr("toLowerCase"),Fp=pr(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Rp=pr(function(e,t,n){return e+(n?" ":"")+Up(t)}),Bp=pr(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Up=cr("toUpperCase"),Wp=Ha(function(e,t){try{return n(e,q,t)}catch(i){return ds(i)?i:new bl(i)}}),Hp=Ha(function(e,t){return r(Bn(t,1),function(t){t=lo(t),e[t]=ap(e[t],e)}),e}),Vp=gr(),qp=gr(!0),Yp=Ha(function(e,t){return function(n){return ei(n,e,t)}}),Kp=Ha(function(e,t){return function(n){return ei(e,n,t)}}),Zp=br(c),Xp=br(a),Jp=br(h),Qp=_r(),ed=_r(!0),td=yr(function(e,t){return e+t}),nd=Cr("ceil"),id=yr(function(e,t){return e/t}),rd=Cr("floor"),od=yr(function(e,t){return e*t}),ad=Cr("round"),sd=yr(function(e,t){return e-t});return Tt.after=La,Tt.ary=ja,Tt.assign=$p,Tt.assignIn=wp,Tt.assignInWith=_p,Tt.assignWith=kp,Tt.at=xp,Tt.before=Na,Tt.bind=ap,Tt.bindAll=Hp,Tt.bindKey=sp,Tt.castArray=Za,Tt.chain=aa,Tt.chunk=fo,Tt.compact=ho,Tt.concat=go,Tt.cond=Uu,Tt.conforms=Wu,Tt.constant=Hu,Tt.countBy=Jc,Tt.create=Hs,Tt.curry=Ga,Tt.curryRight=za,Tt.debounce=Fa,Tt.defaults=Cp,Tt.defaultsDeep=Ap,Tt.defer=up,Tt.delay=lp,Tt.difference=Ic,Tt.differenceBy=Lc,Tt.differenceWith=jc,Tt.drop=mo,Tt.dropRight=vo,Tt.dropRightWhile=yo,Tt.dropWhile=bo,Tt.fill=$o,Tt.filter=va,Tt.flatMap=ya,Tt.flatMapDeep=ba,Tt.flatMapDepth=$a,Tt.flatten=ko,Tt.flattenDeep=xo,Tt.flattenDepth=Co,Tt.flip=Ra,Tt.flow=Vp,Tt.flowRight=qp,Tt.fromPairs=Ao,Tt.functions=Js,Tt.functionsIn=Qs,Tt.groupBy=tp,Tt.initial=Do,Tt.intersection=Nc,Tt.intersectionBy=Gc,Tt.intersectionWith=zc,Tt.invert=Mp,Tt.invertBy=Sp,Tt.invokeMap=np,Tt.iteratee=qu,Tt.keyBy=ip,Tt.keys=iu,Tt.keysIn=ru,Tt.map=xa,Tt.mapKeys=ou,Tt.mapValues=au,Tt.matches=Yu,Tt.matchesProperty=Ku,Tt.memoize=Ba,Tt.merge=Tp,Tt.mergeWith=Ep,Tt.method=Yp,Tt.methodOf=Kp,Tt.mixin=Zu,Tt.negate=Ua,Tt.nthArg=Qu,Tt.omit=Op,Tt.omitBy=su,Tt.once=Wa,Tt.orderBy=Ca,Tt.over=Zp,Tt.overArgs=cp,Tt.overEvery=Xp,Tt.overSome=Jp,Tt.partial=pp,Tt.partialRight=dp,Tt.partition=rp,Tt.pick=Pp,Tt.pickBy=uu,Tt.property=el,Tt.propertyOf=tl,Tt.pull=Fc,Tt.pullAll=Io,Tt.pullAllBy=Lo,Tt.pullAllWith=jo,Tt.pullAt=Rc,Tt.range=Qp,Tt.rangeRight=ed,Tt.rearg=fp,Tt.reject=Sa,Tt.remove=No,Tt.rest=Ha,Tt.reverse=Go,Tt.sampleSize=Ta,Tt.set=cu,Tt.setWith=pu,Tt.shuffle=Ea,Tt.slice=zo,Tt.sortBy=op,Tt.sortedUniq=Vo,Tt.sortedUniqBy=qo,Tt.split=Ou,Tt.spread=Va,Tt.tail=Yo,Tt.take=Ko,Tt.takeRight=Zo,Tt.takeRightWhile=Xo,Tt.takeWhile=Jo,Tt.tap=sa,Tt.throttle=qa,Tt.thru=ua,Tt.toArray=Ns,Tt.toPairs=Ip,Tt.toPairsIn=Lp,Tt.toPath=ul,Tt.toPlainObject=Bs,Tt.transform=du,Tt.unary=Ya,Tt.union=Bc,Tt.unionBy=Uc,Tt.unionWith=Wc,Tt.uniq=Qo,Tt.uniqBy=ea,Tt.uniqWith=ta,Tt.unset=fu,Tt.unzip=na,Tt.unzipWith=ia,Tt.update=hu,Tt.updateWith=gu,Tt.values=mu,Tt.valuesIn=vu,Tt.without=Hc,Tt.words=Bu,Tt.wrap=Ka,Tt.xor=Vc,Tt.xorBy=qc,Tt.xorWith=Yc,Tt.zip=Kc,Tt.zipObject=ra,Tt.zipObjectDeep=oa,Tt.zipWith=Zc,Tt.entries=Ip,Tt.entriesIn=Lp,Tt.extend=wp,Tt.extendWith=_p,Zu(Tt,Tt),Tt.add=td,Tt.attempt=Wp,Tt.camelCase=jp,Tt.capitalize=wu,Tt.ceil=nd,Tt.clamp=yu,Tt.clone=Xa,Tt.cloneDeep=Qa,Tt.cloneDeepWith=es,Tt.cloneWith=Ja,Tt.deburr=_u,Tt.divide=id,Tt.endsWith=ku,Tt.eq=ts,Tt.escape=xu,Tt.escapeRegExp=Cu,Tt.every=ma,Tt.find=Qc,Tt.findIndex=wo,Tt.findKey=Vs,Tt.findLast=ep,Tt.findLastIndex=_o,Tt.findLastKey=qs,Tt.floor=rd,Tt.forEach=wa,Tt.forEachRight=_a,Tt.forIn=Ys,Tt.forInRight=Ks,Tt.forOwn=Zs,Tt.forOwnRight=Xs,Tt.get=eu,Tt.gt=hp,Tt.gte=gp,Tt.has=tu,Tt.hasIn=nu,Tt.head=Mo,Tt.identity=Vu,Tt.includes=ka,Tt.indexOf=So,Tt.inRange=bu,Tt.invoke=Dp,Tt.isArguments=ns,Tt.isArray=mp,Tt.isArrayBuffer=is,Tt.isArrayLike=rs,Tt.isArrayLikeObject=os,Tt.isBoolean=as,Tt.isBuffer=vp,Tt.isDate=ss,Tt.isElement=us,Tt.isEmpty=ls,Tt.isEqual=cs,Tt.isEqualWith=ps,Tt.isError=ds,Tt.isFinite=fs,Tt.isFunction=hs,Tt.isInteger=gs,Tt.isLength=ms,Tt.isMap=bs,Tt.isMatch=$s,Tt.isMatchWith=ws,Tt.isNaN=_s,Tt.isNative=ks,Tt.isNil=Cs,Tt.isNull=xs,Tt.isNumber=As,Tt.isObject=vs,Tt.isObjectLike=ys,Tt.isPlainObject=Ms,Tt.isRegExp=Ss,Tt.isSafeInteger=Ds,Tt.isSet=Ts,Tt.isString=Es,Tt.isSymbol=Os,Tt.isTypedArray=Ps,Tt.isUndefined=Is,Tt.isWeakMap=Ls,Tt.isWeakSet=js,Tt.join=To,Tt.kebabCase=Np,Tt.last=Eo,Tt.lastIndexOf=Oo,Tt.lowerCase=Gp,Tt.lowerFirst=zp,Tt.lt=yp,Tt.lte=bp,Tt.max=cl,Tt.maxBy=pl,Tt.mean=dl,Tt.meanBy=fl,Tt.min=hl,Tt.minBy=gl,Tt.stubArray=nl,Tt.stubFalse=il,Tt.stubObject=rl,Tt.stubString=ol,Tt.stubTrue=al,Tt.multiply=od,Tt.nth=Po,Tt.noConflict=Xu,Tt.noop=Ju,Tt.now=Ia,Tt.pad=Au,Tt.padEnd=Mu,Tt.padStart=Su,Tt.parseInt=Du,Tt.random=$u,Tt.reduce=Aa,Tt.reduceRight=Ma,Tt.repeat=Tu,Tt.replace=Eu,Tt.result=lu,Tt.round=ad,Tt.runInContext=V,Tt.sample=Da,Tt.size=Oa,Tt.snakeCase=Fp,Tt.some=Pa,Tt.sortedIndex=Fo,Tt.sortedIndexBy=Ro,Tt.sortedIndexOf=Bo,Tt.sortedLastIndex=Uo,Tt.sortedLastIndexBy=Wo,Tt.sortedLastIndexOf=Ho,Tt.startCase=Rp,Tt.startsWith=Pu,Tt.subtract=sd,Tt.sum=ml,Tt.sumBy=vl,Tt.template=Iu,Tt.times=sl,Tt.toFinite=Gs,Tt.toInteger=zs,Tt.toLength=Fs,Tt.toLower=Lu,Tt.toNumber=Rs,Tt.toSafeInteger=Us,Tt.toString=Ws,Tt.toUpper=ju,Tt.trim=Nu,Tt.trimEnd=Gu,Tt.trimStart=zu,Tt.truncate=Fu,Tt.unescape=Ru,Tt.uniqueId=ll,Tt.upperCase=Bp,Tt.upperFirst=Up,Tt.each=wa,Tt.eachRight=_a,Tt.first=Mo,Zu(Tt,function(){var e={};return Un(Tt,function(t,n){Dl.call(Tt.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),Tt.VERSION=Y,r(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Tt[e].placeholder=Tt}),r(["drop","take"],function(e,t){Pt.prototype[e]=function(n){var i=this.__filtered__;if(i&&!t)return new Pt(this);n=n===q?1:Jl(zs(n),0);var r=this.clone();return i?r.__takeCount__=Ql(n,r.__takeCount__):r.__views__.push({size:Ql(n,_e),type:e+(r.__dir__<0?"Right":"")}),r},Pt.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),r(["filter","map","takeWhile"],function(e,t){var n=t+1,i=n==ge||n==ve;Pt.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Lr(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),r(["head","last"],function(e,t){var n="take"+(t?"Right":"");Pt.prototype[e]=function(){return this[n](1).value()[0]}}),r(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Pt.prototype[e]=function(){return this.__filtered__?new Pt(this):this[n](1)}}),Pt.prototype.compact=function(){return this.filter(Vu)},Pt.prototype.find=function(e){return this.filter(e).head()},Pt.prototype.findLast=function(e){return this.reverse().find(e)},Pt.prototype.invokeMap=Ha(function(e,t){return"function"==typeof e?new Pt(this):this.map(function(n){return ei(n,e,t)})}),Pt.prototype.reject=function(e){return e=Lr(e,3),this.filter(function(t){return!e(t)})},Pt.prototype.slice=function(e,t){e=zs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Pt(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==q&&(t=zs(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Pt.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pt.prototype.toArray=function(){return this.take(_e)},Un(Pt.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),r=Tt[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);r&&(Tt.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,s=t instanceof Pt,u=a[0],l=s||mp(t),c=function(e){var t=r.apply(Tt,p([e],a));return i&&d?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var d=this.__chain__,f=!!this.__actions__.length,h=o&&!d,g=s&&!f;if(!o&&l){t=g?t:new Pt(this);var m=e.apply(t,a);return m.__actions__.push({func:ua,args:[c],thisArg:q}),new Ot(m,d)}return h&&g?e.apply(this,a):(m=this.thru(c),h?i?m.value()[0]:m.value():m)})}),r(["pop","push","shift","sort","splice","unshift"],function(e){var t=kl[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Tt.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(mp(r)?r:[],e)}return this[n](function(n){return t.apply(mp(n)?n:[],e)})}}),Un(Pt.prototype,function(e,t){var n=Tt[t];if(n){var i=n.name+"",r=fc[i]||(fc[i]=[]);r.push({name:t,func:n})}}),fc[mr(q,ee).name]=[{name:"wrapper",func:q}],Pt.prototype.clone=It,Pt.prototype.reverse=Lt,Pt.prototype.value=jt,Tt.prototype.at=Xc,Tt.prototype.chain=la,Tt.prototype.commit=ca,Tt.prototype.next=pa,Tt.prototype.plant=fa,Tt.prototype.reverse=ha,Tt.prototype.toJSON=Tt.prototype.valueOf=Tt.prototype.value=ga,Rl&&(Tt.prototype[Rl]=da),Tt}var q,Y="4.13.1",K=200,Z="Expected a function",X="__lodash_hash_undefined__",J="__lodash_placeholder__",Q=1,ee=2,te=4,ne=8,ie=16,re=32,oe=64,ae=128,se=256,ue=512,le=1,ce=2,pe=30,de="...",fe=150,he=16,ge=1,me=2,ve=3,ye=1/0,be=9007199254740991,$e=1.7976931348623157e308,we=NaN,_e=4294967295,ke=_e-1,xe=_e>>>1,Ce="[object Arguments]",Ae="[object Array]",Me="[object Boolean]",Se="[object Date]",De="[object Error]",Te="[object Function]",Ee="[object GeneratorFunction]",Oe="[object Map]",Pe="[object Number]",Ie="[object Object]",Le="[object Promise]",je="[object RegExp]",Ne="[object Set]",Ge="[object String]",ze="[object Symbol]",Fe="[object WeakMap]",Re="[object WeakSet]",Be="[object ArrayBuffer]",Ue="[object DataView]",We="[object Float32Array]",He="[object Float64Array]",Ve="[object Int8Array]",qe="[object Int16Array]",Ye="[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,it=/[&<>"'`]/g,rt=RegExp(nt.source),ot=RegExp(it.source),at=/<%-([\s\S]+?)%>/g,st=/<%([\s\S]+?)%>/g,ut=/<%=([\s\S]+?)%>/g,lt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ct=/^\w*$/,pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g,dt=/[\\^$.*+?()[\]{}|]/g,ft=RegExp(dt.source),ht=/^\s+|\s+$/g,gt=/^\s+/,mt=/\s+$/,vt=/[a-zA-Z0-9]+/g,yt=/\\(\\)?/g,bt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$t=/\w*$/,wt=/^0x/i,_t=/^[-+]0x[0-9a-f]+$/i,kt=/^0b[01]+$/i,xt=/^\[object .+?Constructor\]$/,Ct=/^0o[0-7]+$/i,At=/^(?:0|[1-9]\d*)$/,Mt=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,St=/($^)/,Dt=/['\n\r\u2028\u2029\\]/g,Tt="\\ud800-\\udfff",Et="\\u0300-\\u036f\\ufe20-\\ufe23",Ot="\\u20d0-\\u20f0",Pt="\\u2700-\\u27bf",It="a-z\\xdf-\\xf6\\xf8-\\xff",Lt="\\xac\\xb1\\xd7\\xf7",jt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nt="\\u2000-\\u206f",Gt=" \\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",zt="A-Z\\xc0-\\xd6\\xd8-\\xde",Ft="\\ufe0e\\ufe0f",Rt=Lt+jt+Nt+Gt,Bt="['’]",Ut="["+Tt+"]",Wt="["+Rt+"]",Ht="["+Et+Ot+"]",Vt="\\d+",qt="["+Pt+"]",Yt="["+It+"]",Kt="[^"+Tt+Rt+Vt+Pt+It+zt+"]",Zt="\\ud83c[\\udffb-\\udfff]",Xt="(?:"+Ht+"|"+Zt+")",Jt="[^"+Tt+"]",Qt="(?:\\ud83c[\\udde6-\\uddff]){2}",en="[\\ud800-\\udbff][\\udc00-\\udfff]",tn="["+zt+"]",nn="\\u200d",rn="(?:"+Yt+"|"+Kt+")",on="(?:"+tn+"|"+Kt+")",an="(?:"+Bt+"(?:d|ll|m|re|s|t|ve))?",sn="(?:"+Bt+"(?:D|LL|M|RE|S|T|VE))?",un=Xt+"?",ln="["+Ft+"]?",cn="(?:"+nn+"(?:"+[Jt,Qt,en].join("|")+")"+ln+un+")*",pn=ln+un+cn,dn="(?:"+[qt,Qt,en].join("|")+")"+pn,fn="(?:"+[Jt+Ht+"?",Ht,Qt,en,Ut].join("|")+")",hn=RegExp(Bt,"g"),gn=RegExp(Ht,"g"),mn=RegExp(Zt+"(?="+Zt+")|"+fn+pn,"g"),vn=RegExp([tn+"?"+Yt+"+"+an+"(?="+[Wt,tn,"$"].join("|")+")",on+"+"+sn+"(?="+[Wt,tn+rn,"$"].join("|")+")",tn+"?"+rn+"+"+an,tn+"+"+sn,Vt,dn].join("|"),"g"),yn=RegExp("["+nn+Tt+Et+Ot+Ft+"]"),bn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$n=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","Reflect","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","isFinite","parseInt","setTimeout"],wn=-1,_n={};_n[We]=_n[He]=_n[Ve]=_n[qe]=_n[Ye]=_n[Ke]=_n[Ze]=_n[Xe]=_n[Je]=!0,_n[Ce]=_n[Ae]=_n[Be]=_n[Me]=_n[Ue]=_n[Se]=_n[De]=_n[Te]=_n[Oe]=_n[Pe]=_n[Ie]=_n[je]=_n[Ne]=_n[Ge]=_n[Fe]=!1;var kn={};kn[Ce]=kn[Ae]=kn[Be]=kn[Ue]=kn[Me]=kn[Se]=kn[We]=kn[He]=kn[Ve]=kn[qe]=kn[Ye]=kn[Oe]=kn[Pe]=kn[Ie]=kn[je]=kn[Ne]=kn[Ge]=kn[ze]=kn[Ke]=kn[Ze]=kn[Xe]=kn[Je]=!0,kn[De]=kn[Te]=kn[Fe]=!1;var xn={"À":"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"},Cn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},An={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},Mn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Sn=parseFloat,Dn=parseInt,Tn="object"==typeof exports&&exports,En=Tn&&"object"==typeof module&&module,On=En&&En.exports===Tn,Pn=T("object"==typeof global&&global),In=T("object"==typeof self&&self),Ln=T("object"==typeof this&&this),jn=Pn||In||Ln||Function("return this")(),Nn=V();(In||{})._=Nn,"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return Nn}):En?((En.exports=Nn)._=Nn,Tn._=Nn):jn._=Nn}.call(this),function(e,t,n){"use strict";(function(){t.module("uiGmapgoogle-maps.providers",["nemLogging"]),t.module("uiGmapgoogle-maps.wrapped",[]),t.module("uiGmapgoogle-maps.extensions",["uiGmapgoogle-maps.wrapped","uiGmapgoogle-maps.providers"]),t.module("uiGmapgoogle-maps.directives.api.utils",["uiGmapgoogle-maps.extensions"]),t.module("uiGmapgoogle-maps.directives.api.managers",[]),t.module("uiGmapgoogle-maps.directives.api.options",["uiGmapgoogle-maps.directives.api.utils"]),t.module("uiGmapgoogle-maps.directives.api.options.builders",[]),t.module("uiGmapgoogle-maps.directives.api.models.child",["uiGmapgoogle-maps.directives.api.utils","uiGmapgoogle-maps.directives.api.options","uiGmapgoogle-maps.directives.api.options.builders"]),t.module("uiGmapgoogle-maps.directives.api.models.parent",["uiGmapgoogle-maps.directives.api.managers","uiGmapgoogle-maps.directives.api.models.child","uiGmapgoogle-maps.providers"]),t.module("uiGmapgoogle-maps.directives.api",["uiGmapgoogle-maps.directives.api.models.parent"]),t.module("uiGmapgoogle-maps",["uiGmapgoogle-maps.directives.api","uiGmapgoogle-maps.providers"])}).call(this),function(){t.module("uiGmapgoogle-maps.providers").factory("uiGmapMapScriptLoader",["$q","uiGmapuuid",function(n,i){var r,o,a,s,u;return s=void 0,u=void 0,r=function(e){return e.china?"http://maps.google.cn/maps/api/js?":"auto"===e.transport?"//maps.googleapis.com/maps/api/js?":e.transport+"://maps.googleapis.com/maps/api/js?"},o=function(e){var t,n,o,a;return t=["transport","isGoogleMapsForWork","china","preventLoad"],e.isGoogleMapsForWork&&t.push("key"),n=_.map(_.omit(e,t),function(e,t){return t+"="+e}),s&&(a=document.getElementById(s),a.parentNode.removeChild(a)),n=n.join("&"),o=document.createElement("script"),o.id=s="ui_gmap_map_load_"+i.generate(),o.type="text/javascript",o.src=r(e)+n,document.body.appendChild(o)},a=function(){return t.isDefined(e.google)&&t.isDefined(e.google.maps)},{load:function(t){var i,r;return i=n.defer(),a()?(i.resolve(e.google.maps),i.promise):(r=t.callback="onGoogleMapsReady"+Math.round(1e3*Math.random()),e[r]=function(){e[r]=null,i.resolve(e.google.maps)},e.navigator.connection&&e.Connection&&e.navigator.connection.type===e.Connection.NONE&&!t.preventLoad?document.addEventListener("online",function(){if(!a())return o(t)}):t.preventLoad||o(t),u=t,u.randomizedFunctionName=r,i.promise)},manualLoad:function(){var t;return t=u,a()?e[t.randomizedFunctionName]?e[t.randomizedFunctionName]():void 0:o(t)}}}]).provider("uiGmapGoogleMapApi",function(){return this.options={transport:"https",isGoogleMapsForWork:!1,china:!1,v:"3",libraries:"",language:"en",preventLoad:!1},this.configure=function(e){t.extend(this.options,e)},this.$get=["uiGmapMapScriptLoader",function(e){return function(t){return t.load(e.options)}}(this)],this}).service("uiGmapGoogleMapApiManualLoader",["uiGmapMapScriptLoader",function(e){
  return{load:function(){e.manualLoad()}}}])}.call(this),function(){var n=function(e,t){return function(){return e.apply(t,arguments)}},i=function(e,t){function n(){this.constructor=e}for(var i in t)r.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.extensions").service("uiGmapExtendGWin",function(){return{init:_.once(function(){var t;if(google||("undefined"!=typeof google&&null!==google?google.maps:void 0)||null!=google.maps.InfoWindow)return google.maps.InfoWindow.prototype._open=google.maps.InfoWindow.prototype.open,google.maps.InfoWindow.prototype._close=google.maps.InfoWindow.prototype.close,google.maps.InfoWindow.prototype._isOpen=!1,google.maps.InfoWindow.prototype.open=function(e,t,n){null==n&&(this._isOpen=!0,this._open(e,t,!0))},google.maps.InfoWindow.prototype.close=function(e){null==e&&(this._isOpen=!1,this._close(!0))},google.maps.InfoWindow.prototype.isOpen=function(e){return null==e&&(e=void 0),null==e?this._isOpen:this._isOpen=e},e.InfoBox&&(e.InfoBox.prototype._open=e.InfoBox.prototype.open,e.InfoBox.prototype._close=e.InfoBox.prototype.close,e.InfoBox.prototype._isOpen=!1,e.InfoBox.prototype.open=function(e,t){this._isOpen=!0,this._open(e,t)},e.InfoBox.prototype.close=function(){this._isOpen=!1,this._close()},e.InfoBox.prototype.isOpen=function(e){return null==e&&(e=void 0),null==e?this._isOpen:this._isOpen=e},t=function(t){function r(t){this.getOrigCloseBoxImg_=n(this.getOrigCloseBoxImg_,this),this.getCloseBoxDiv_=n(this.getCloseBoxDiv_,this);var i;i=new e.InfoBox(t),_.extend(this,i),null!=t.closeBoxDiv&&(this.closeBoxDiv_=t.closeBoxDiv)}return i(r,t),r.prototype.getCloseBoxDiv_=function(){return this.closeBoxDiv_},r.prototype.getCloseBoxImg_=function(){var e,t;return e=this.getCloseBoxDiv_(),t=this.getOrigCloseBoxImg_(),e||t},r.prototype.getOrigCloseBoxImg_=function(){var e;return e="",""!==this.closeBoxURL_&&(e="<img",e+=" src='"+this.closeBoxURL_+"'",e+=" align=right",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin_+";",e+="'>"),e},r}(e.InfoBox),e.uiGmapInfoBox=t),e.MarkerLabel_?e.MarkerLabel_.prototype.setContent=function(){var e;e=this.marker_.get("labelContent"),e&&!_.isEqual(this.oldContent,e)&&("undefined"==typeof(null!=e?e.nodeType:void 0)?(this.labelDiv_.innerHTML=e,this.eventDiv_.innerHTML=this.labelDiv_.innerHTML,this.oldContent=e):(this.labelDiv_.innerHTML="",this.labelDiv_.appendChild(e),e=e.cloneNode(!0),this.labelDiv_.innerHTML="",this.eventDiv_.appendChild(e),this.oldContent=e))}:void 0})}})}.call(this),function(){t.module("uiGmapgoogle-maps.extensions").service("uiGmapLodash",function(){var e,t,n,i,r,o,a,s;return o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,r=/\\(\\)?/g,n=function(e){var t,n,i;if(n=e.missingName,i=e.swapName,t=e.isProto,null==_[n]&&(_[n]=_[i],t))return _.prototype[n]=_[i]},[{missingName:"contains",swapName:"includes",isProto:!0},{missingName:"includes",swapName:"contains",isProto:!0},{missingName:"object",swapName:"zipObject"},{missingName:"zipObject",swapName:"object"},{missingName:"all",swapName:"every"},{missingName:"every",swapName:"all"},{missingName:"any",swapName:"some"},{missingName:"some",swapName:"any"},{missingName:"first",swapName:"head"},{missingName:"head",swapName:"first"}].forEach(function(e){return n(e)}),null==_.get&&(a=function(e){return _.isObject(e)?e:Object(e)},t=function(e){return null===e?"":e+""},s=function(e){var n;return _.isArray(e)?e:(n=[],t(e).replace(o,function(e,t,i,o){n.push(i?o.replace(r,"$1"):t||e)}),n)},e=function(e,t,n){var i,r;if(null!==e){void 0!==n&&n in a(e)&&(t=[n]),i=0,r=t.length;for(;!_.isUndefined(e)&&i<r;)e=e[t[i++]];return i&&i===r?e:void 0}},i=function(t,n,i){var r;return r=null===t?void 0:e(t,s(n),n+""),void 0===r?i:r},_.get=i),this.intersectionObjects=function(e,t,n){var i;return null==n&&(n=void 0),i=_.map(e,function(e){return _.find(t,function(t){return null!=n?n(e,t):_.isEqual(e,t)})}),_.filter(i,function(e){return null!=e})},this.containsObject=_.includeObject=function(e,t,n){return null==n&&(n=void 0),null!==e&&_.some(e,function(e){return null!=n?n(e,t):_.isEqual(e,t)})},this.differenceObjects=function(e,t,n){return null==n&&(n=void 0),_.filter(e,function(e){return function(i){return!e.containsObject(t,i,n)}}(this))},this.withoutObjects=this.differenceObjects,this.indexOfObject=function(e,t,n,i){var r,o;if(null==e)return-1;if(r=0,o=e.length,i){if("number"!=typeof i)return r=_.sortedIndex(e,t),e[r]===t?r:-1;r=i<0?Math.max(0,o+i):i}for(;r<o;){if(null!=n){if(n(e[r],t))return r}else if(_.isEqual(e[r],t))return r;r++}return-1},this.isNullOrUndefined=function(e){return _.isNull(e||_.isUndefined(e))},this})}.call(this),function(){t.module("uiGmapgoogle-maps.extensions").factory("uiGmapString",function(){return function(e){return this.contains=function(t,n){return e.indexOf(t,n)!==-1},this}})}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmap_sync",[function(){return{fakePromise:function(){var e;return e=void 0,{then:function(t){return e=t},resolve:function(){return e.apply(void 0,arguments)}}}}}]).service("uiGmap_async",["$timeout","uiGmapPromise","uiGmapLogger","$q","uiGmapDataStructures","uiGmapGmapUtil",function(e,n,i,r,o,a){var s,u,l,c,p,d,f,h,g,m,v,y,b,$,w,k,x,C,A,M;return A=n.promiseTypes,y=n.isInProgress,C=n.promiseStatus,s=n.ExposedPromise,l=n.SniffedPromise,b=function(e,t){var n;return n=e.promise(),n.promiseType=e.promiseType,n.$$state&&i.debug("promiseType: "+n.promiseType+", state: "+C(n.$$state.status)),n.cancelCb=t,n},h=function(e,t){return e.promiseType===A.create&&t.promiseType!==A["delete"]&&t.promiseType!==A.init&&(i.debug("lastPromise.promiseType "+t.promiseType+", newPromiseType: "+e.promiseType+", SKIPPED MUST COME AFTER DELETE ONLY"),!0)},x=function(e,t,n){var r;if(t.promiseType===A["delete"]&&n.promiseType!==A["delete"]&&null!=n.cancelCb&&_.isFunction(n.cancelCb)&&y(n)&&(i.debug("promiseType: "+t.promiseType+", CANCELING LAST PROMISE type: "+n.promiseType),n.cancelCb("cancel safe"),r=e.peek(),null!=r&&y(r)))return r.hasOwnProperty("cancelCb")&&_.isFunction(r.cancelCb)?(i.debug("promiseType: "+r.promiseType+", CANCELING FIRST PROMISE type: "+r.promiseType),r.cancelCb("cancel safe")):i.warn("first promise was not cancelable")},u=function(e,t,n){var i,r;if(e.existingPieces){if(i=_.last(e.existingPieces._content),h(t,i))return;return x(e.existingPieces,t,i),r=s(i["finally"](function(){return b(t,n)})),r.cancelCb=n,r.promiseType=t.promiseType,e.existingPieces.enqueue(r),i["finally"](function(){return e.existingPieces.dequeue()})}return e.existingPieces=new o.Queue,e.existingPieces.enqueue(b(t,n))},w=function(e,t,n,r,o){var a;return null==n&&(n=""),a=function(e){if(i.debug(e+": "+e),null!=r&&_.isFunction(r))return r(e)},u(e,l(o,t),a)},d=80,m={value:null},M=function(e,t,n){var i,r;try{return e.apply(t,n)}catch(r){return i=r,m.value=i,m}},$=function(e,t,n,r){var o,a;return a=M(e,t,r),a===m&&(o="error within chunking iterator: "+m.value,i.error(o),n.reject(o)),"cancel safe"!==a},c=function(e,t,n){var i,r;return i=e===t,r=t[n],i?r:e[r]},p=["length","forEach","map"],v=function(e,n,i,r){var o,a,s;if(t.isArray(e))o=e;else if(n)o=n;else{o=[];for(a in e)s=e[a],e.hasOwnProperty(a)&&!_.includes(p,a)&&o.push(a)}return null==r&&(r=i),t.isArray(o)&&!(null!=o?o.length:void 0)&&r!==i?i():r(o,n)},f=function(n,i,r,o,a,s,u,l){return v(n,l,function(l,p){var d,h,g,m;for(d=i&&i<l.length?i:l.length,h=u,g=!0;g&&d--&&h<(l?l.length:h+1);)m=c(n,l,h),g=!!t.isFunction(m)||$(o,void 0,s,[m,h]),++h;if(l){if(!(g&&h<l.length))return s.resolve();if(u=h,i)return null!=a&&_.isFunction(a)&&$(a,void 0,s,[]),e(function(){return f(n,i,r,o,a,s,u,p)},r,!1)}})},g=function(e,t,r,o,a,s,u){var l,c,p;return null==r&&(r=d),null==a&&(a=0),null==s&&(s=1),p=void 0,c=n.defer(),p=c.promise,s?v(e,u,function(){return c.resolve(),p},function(n,i){return f(e,r,s,t,o,c,a,i),p}):(l="pause (delay) must be set from _async!",i.error(l),c.reject(l),p)},k=function(e,t,i,r,o,a,s){var u;return u=[],v(e,s,function(){return n.resolve(u)},function(n,s){return g(e,function(e){return u.push(t(e))},i,r,o,a,s).then(function(){return u})})},{each:g,map:k,managePromiseQueue:w,promiseLock:w,defaultChunkSize:d,getArrayAndKeys:v,chunkSizeFrom:function(e,t){return null==t&&(t=void 0),_.isNumber(e)&&(t=e),(a.isFalse(e)||e===!1)&&(t=!1),t}}}])}.call(this),function(){var e=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapBaseObject",function(){var t,n;return n=["extended","included"],t=function(){function t(){}return t.extend=function(t){var i,r,o;for(i in t)o=t[i],e.call(n,i)<0&&(this[i]=o);return null!=(r=t.extended)&&r.apply(this),this},t.include=function(t){var i,r,o;for(i in t)o=t[i],e.call(n,i)<0&&(this.prototype[i]=o);return null!=(r=t.included)&&r.apply(this),this},t}()})}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapChildEvents",function(){return{onChildCreation:function(e){}}})}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapCtrlHandle",["$q",function(e){var t;return t={handle:function(n,i){return n.$on("$destroy",function(){return t.handle(n)}),n.deferred=e.defer(),{getScope:function(){return n}}},mapPromise:function(e,t){var n;return n=t.getScope(),n.deferred.promise.then(function(t){return e.map=t}),n.deferred.promise}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapEventsHelper",["uiGmapLogger",function(e){var n,i;return i=function(e){return t.isDefined(e.events)&&null!=e.events&&t.isObject(e.events)},n=function(e,t){return i(e)?e:i(t)?t:void 0},{setEvents:function(e,i,r,o){var a;if(a=n(i,r),null!=a)return _.compact(_.map(a.events,function(n,s){var u;if(o&&(u=_(o).includes(s)),a.events.hasOwnProperty(s)&&t.isFunction(a.events[s])&&!u)return google.maps.event.addListener(e,s,function(){return i.$evalAsync||(i.$evalAsync=function(){}),i.$evalAsync(n.apply(i,[e,s,r,arguments]))})}))},removeEvents:function(e){var t,n;if(e)for(t in e)n=e[t],n&&e.hasOwnProperty(t)&&google.maps.event.removeListener(n)}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapFitHelper",["uiGmapLogger",function(e){return{fit:function(e,t){var n,i,r,o,a;if(t&&(null!=e?e.length:void 0)){n=new google.maps.LatLngBounds,i=!1;for(r in e)o=e[r],o&&(i||(i=!0),a=_.isFunction(o.getPosition)?o.getPosition():o),n.extend(a);if(i)return t.fitBounds(n)}}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapGmapUtil",["uiGmapLogger","$compile",function(e,n){var i,r,o,a,s,u;return r=function(e,t,n){return e===t||n.indexOf(e)!==-1},i=function(e){return r(e,!1,["false","FALSE",0,"n","N","no","NO"])},a=function(e){return Array.isArray(e)&&2===e.length?e[1]:t.isDefined(e.type)&&"Point"===e.type?e.coordinates[1]:e.latitude},s=function(e){return Array.isArray(e)&&2===e.length?e[0]:t.isDefined(e.type)&&"Point"===e.type?e.coordinates[0]:e.longitude},o=function(e){if(e)return Array.isArray(e)&&2===e.length?new google.maps.LatLng(e[1],e[0]):t.isDefined(e.type)&&"Point"===e.type?new google.maps.LatLng(e.coordinates[1],e.coordinates[0]):new google.maps.LatLng(e.latitude,e.longitude)},u=function(e){if(t.isUndefined(e))return!1;if(_.isArray(e)){if(2===e.length)return!0}else if(null!=e&&(null!=e?e.type:void 0)&&"Point"===e.type&&_.isArray(e.coordinates)&&2===e.coordinates.length)return!0;return!(!e||!t.isDefined((null!=e?e.latitude:void 0)&&t.isDefined(null!=e?e.longitude:void 0)))},{setCoordsFromEvent:function(e,n){if(e)return Array.isArray(e)&&2===e.length?(e[1]=n.lat(),e[0]=n.lng()):t.isDefined(e.type)&&"Point"===e.type?(e.coordinates[1]=n.lat(),e.coordinates[0]=n.lng()):(e.latitude=n.lat(),e.longitude=n.lng()),e},getLabelPositionPoint:function(e){var t,n;if(void 0!==e)return e=/^([-\d\.]+)\s([-\d\.]+)$/.exec(e),t=parseFloat(e[1]),n=parseFloat(e[2]),null!=t&&null!=n?new google.maps.Point(t,n):void 0},createWindowOptions:function(i,r,a,s){var u;return null!=a&&null!=s&&null!=n?(u=t.extend({},s,{content:this.buildContent(r,s,a),position:null!=s.position?s.position:t.isObject(i)?i.getPosition():o(r.coords)}),null!=i&&null==(null!=u?u.pixelOffset:void 0)&&(null==u.boxClass||(u.pixelOffset={height:0,width:-2})),u):s?s:(e.error("infoWindow defaults not defined"),a?void 0:e.error("infoWindow content not defined"))},buildContent:function(e,t,i){var r,o;return null!=t.content?o=t.content:null!=n?(i=i.replace(/^\s+|\s+$/g,""),r=""===i?"":n(i)(e),r.length>0&&(o=r[0])):o=i,o},defaultDelay:50,isTrue:function(e){return r(e,!0,["true","TRUE",1,"y","Y","yes","YES"])},isFalse:i,isFalsy:function(e){return r(e,!1,[void 0,null])||i(e)},getCoords:o,validateCoords:u,equalCoords:function(e,t){return a(e)===a(t)&&s(e)===s(t)},validatePath:function(e){var n,i,r,o;if(i=0,t.isUndefined(e.type)){if(!Array.isArray(e)||e.length<2)return!1;for(;i<e.length;){if(!(t.isDefined(e[i].latitude)&&t.isDefined(e[i].longitude)||"function"==typeof e[i].lat&&"function"==typeof e[i].lng))return!1;i++}return!0}if(t.isUndefined(e.coordinates))return!1;if("Polygon"===e.type){if(e.coordinates[0].length<4)return!1;n=e.coordinates[0]}else if("MultiPolygon"===e.type){if(o={max:0,index:0},_.forEach(e.coordinates,function(e,t){if(e[0].length>this.max)return this.max=e[0].length,this.index=t},o),r=e.coordinates[o.index],n=r[0],n.length<4)return!1}else{if("LineString"!==e.type)return!1;if(e.coordinates.length<2)return!1;n=e.coordinates}for(;i<n.length;){if(2!==n[i].length)return!1;i++}return!0},convertPathPoints:function(e){var n,i,r,o,a;if(i=0,o=new google.maps.MVCArray,t.isUndefined(e.type))for(;i<e.length;)t.isDefined(e[i].latitude)&&t.isDefined(e[i].longitude)?r=new google.maps.LatLng(e[i].latitude,e[i].longitude):"function"==typeof e[i].lat&&"function"==typeof e[i].lng&&(r=e[i]),o.push(r),i++;else for("Polygon"===e.type?n=e.coordinates[0]:"MultiPolygon"===e.type?(a={max:0,index:0},_.forEach(e.coordinates,function(e,t){if(e[0].length>this.max)return this.max=e[0].length,this.index=t},a),n=e.coordinates[a.index][0]):"LineString"===e.type&&(n=e.coordinates);i<n.length;)o.push(new google.maps.LatLng(n[i][1],n[i][0])),i++;return o},getPath:function(e,t){var n;return null!=t&&_.isString(t)?(n=e,_.each(t.split("."),function(e){if(n)return n=n[e]}),n):t},validateBoundPoints:function(e){return!(t.isUndefined(e.sw.latitude)||t.isUndefined(e.sw.longitude)||t.isUndefined(e.ne.latitude)||t.isUndefined(e.ne.longitude))},convertBoundPoints:function(e){var t;return t=new google.maps.LatLngBounds(new google.maps.LatLng(e.sw.latitude,e.sw.longitude),new google.maps.LatLng(e.ne.latitude,e.ne.longitude))},fitMapBounds:function(e,t){return e.fitBounds(t)}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapIsReady",["$q","$timeout",function(e,t){var n,i,r,o;return i=0,o=[],r=function(){return e.all(o)},n=function(e,o,a){return t(function(){return a<=0?void e.reject("Your maps are not found we have checked the maximum amount of times. :)"):void(i!==o?n(e,o,a-1):e.resolve(r()))},100)},{spawn:function(){var t;return t=e.defer(),o.push(t.promise),i+=1,{instance:i,deferred:t}},promises:r,instances:function(){return i},promise:function(t,i){var r;return null==t&&(t=1),null==i&&(i=50),r=e.defer(),n(r,t,i),r.promise},reset:function(){i=0,o.length=0},decrement:function(){i>0&&(i-=1),o.length&&(o.length-=1)}}}])}.call(this),function(){var e=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapLinked",["uiGmapBaseObject",function(t){var n;return n=function(t){function n(e,t,n,i){this.scope=e,this.element=t,this.attrs=n,this.ctrls=i}return e(n,t),n}(t)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapLogger",["nemSimpleLogger",function(e){return e.spawn()}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapModelKey",["uiGmapBaseObject","uiGmapGmapUtil",function(i,r){return function(i){function o(t,n){this.scope=t,this["interface"]=null!=n?n:{scopeKeys:[]},this.modelsLength=e(this.modelsLength,this),this.updateChild=e(this.updateChild,this),this.destroy=e(this.destroy,this),this.setChildScope=e(this.setChildScope,this),this.getChanges=e(this.getChanges,this),this.getProp=e(this.getProp,this),this.setIdKey=e(this.setIdKey,this),this.modelKeyComparison=e(this.modelKeyComparison,this),o.__super__.constructor.call(this),this.defaultIdKey="id",this.idKey=void 0}return n(o,i),o.prototype.evalModelHandle=function(e,t){if(null!=e&&null!=t)return"self"===t?e:(_.isFunction(t)&&(t=t()),r.getPath(e,t))},o.prototype.modelKeyComparison=function(e,t){var n,i,o,a,s,u;if(o=this["interface"].scopeKeys.indexOf("coords")>=0,(o&&null!=this.scope.coords||!o)&&(s=this.scope),null==s)throw"No scope set!";return o&&(n=this.scopeOrModelVal("coords",s,e),i=this.scopeOrModelVal("coords",s,t),a=r.equalCoords(n,i),!a)?a:(u=_.without(this["interface"].scopeKeys,"coords"),a=_.every(u,function(n){return function(i){return n.scopeOrModelVal(s[i],s,e)===n.scopeOrModelVal(s[i],s,t)}}(this)))},o.prototype.setIdKey=function(e){return this.idKey=null!=e.idKey?e.idKey:this.defaultIdKey},o.prototype.setVal=function(e,t,n){return this.modelOrKey(e,t=n),e},o.prototype.modelOrKey=function(e,t){if(null!=t)return"self"!==t?r.getPath(e,t):e},o.prototype.getProp=function(e,t,n){return this.scopeOrModelVal(e,t,n)},o.prototype.getChanges=function(e,t,n){var i,r,o;n&&(t=_.pick(t,n),e=_.pick(e,n)),r={},o={},i={};for(o in e)t&&t[o]===e[o]||(_.isArray(e[o])?r[o]=e[o]:_.isObject(e[o])?(i=this.getChanges(e[o],t?t[o]:null),_.isEmpty(i)||(r[o]=i)):r[o]=e[o]);return r},o.prototype.scopeOrModelVal=function(e,t,n,i){var r,o,a,s;return null==i&&(i=!1),r=function(e,t,n){return null==n&&(n=!1),n?{isScope:e,value:t}:t},s=_.get(t,e),_.isFunction(s)?r(!0,s(n),i):_.isObject(s)?r(!0,s,i):_.isString(s)?(o=s,a=o?"self"===o?n:_.get(n,o):_.get(n,e),_.isFunction(a)?r(!1,a(),i):r(!1,a,i)):r(!0,s,i)},o.prototype.setChildScope=function(e,t,n){var i,r,o,a;for(r in e)o=e[r],i=this.scopeOrModelVal(o,t,n,!0),null!=(null!=i?i.value:void 0)&&(a=i.value,a!==t[o]&&(t[o]=a));return t.model=n},o.prototype.onDestroy=function(e){},o.prototype.destroy=function(e){var t;return null==e&&(e=!1),null==this.scope||(null!=(t=this.scope)?t.$$destroyed:void 0)||!this.needToManualDestroy&&!e?this.clean():this.scope.$destroy()},o.prototype.updateChild=function(e,t){return null==t[this.idKey]?void this.$log.error("Model has no id to assign a child to. This is required for performance. Please assign id, or redirect id to a different key."):e.updateModel(t)},o.prototype.modelsLength=function(e){var n,i;return null==e&&(e=void 0),n=0,i=e?e:this.scope.models,null==i?n:n=t.isArray(i)||null!=i.length?i.length:Object.keys(i).length},o}(i)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapModelsWatcher",["uiGmapLogger","uiGmap_async","$q","uiGmapPromise",function(e,t,n,i){return{didQueueInitPromise:function(e,n){return 0===n.models.length&&(t.promiseLock(e,i.promiseTypes.init,null,null,function(){return i.resolve()}),!0)},figureOutState:function(t,n,i,r,o){var a,s,u,l,c;return a=[],u={},l=[],c=[],n.models.forEach(function(o){var s;return null==o[t]?e.error(" id missing for model #{m.toString()},\ncan not use do comparison/insertion"):(u[o[t]]={},null==i.get(o[t])?a.push(o):(s=i.get(o[t]),r(o,s.clonedModel,n)?void 0:c.push({model:o,child:s})))}),s=i.values(),s.forEach(function(n){var i;return null==n?void e.error("child undefined in ModelsWatcher."):null==n.model?void e.error("child.model undefined in ModelsWatcher."):(i=n.model[t],null==u[i]?l.push(n):void 0)}),{adds:a,removals:l,updates:c}}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapPromise",["$q","$timeout","uiGmapLogger",function(e,t,n){var i,r,o,a,s,u,l,c,p,d,f;return p={create:"create",update:"update","delete":"delete",init:"init"},c={IN_PROGRESS:0,RESOLVED:1,REJECTED:2},f=function(){var e;return e={},e[""+c.IN_PROGRESS]="in-progress",e[""+c.RESOLVED]="resolved",e[""+c.REJECTED]="rejected",e}(),a=function(e){return e.$$state?e.$$state.status===c.IN_PROGRESS:!e.hasOwnProperty("$$v")||void 0},s=function(e){return e.$$state?e.$$state.status===c.RESOLVED:!!e.hasOwnProperty("$$v")||void 0},l=function(e){return f[e]||"done w error"},i=function(t){var n,i,r;return n=e.defer(),i=e.all([t,n.promise]),r=e.defer(),t.then(n.resolve,function(){},function(e){return n.notify(e),r.notify(e)}),i.then(function(e){return r.resolve(e[0]||e[1])},function(e){return r.reject(e)}),r.promise.cancel=function(e){return null==e&&(e="canceled"),n.reject(e)},r.promise.notify=function(e){if(null==e&&(e="cancel safe"),r.notify(e),t.hasOwnProperty("notify"))return t.notify(e)},null!=t.promiseType&&(r.promise.promiseType=t.promiseType),r.promise},r=function(e,t){return{promise:e,promiseType:t}},o=function(){return e.defer()},d=function(){var t;return t=e.defer(),t.resolve.apply(void 0,arguments),t.promise},u=function(i){var r;return _.isFunction(i)?(r=e.defer(),t(function(){var e;return e=i(),r.resolve(e)}),r.promise):void n.error("uiGmapPromise.promise() only accepts functions")},{defer:o,promise:u,resolve:d,promiseTypes:p,isInProgress:a,isResolved:s,promiseStatus:l,ExposedPromise:i,SniffedPromise:r}}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapPropMap",function(){var t;return t=function(){function t(){this.removeAll=e(this.removeAll,this),this.slice=e(this.slice,this),this.push=e(this.push,this),this.keys=e(this.keys,this),this.values=e(this.values,this),this.remove=e(this.remove,this),this.put=e(this.put,this),this.stateChanged=e(this.stateChanged,this),this.get=e(this.get,this),this.length=0,this.dict={},this.didValsStateChange=!1,this.didKeysStateChange=!1,this.allVals=[],this.allKeys=[]}return t.prototype.get=function(e){return this.dict[e]},t.prototype.stateChanged=function(){return this.didValsStateChange=!0,this.didKeysStateChange=!0},t.prototype.put=function(e,t){return null==this.get(e)&&this.length++,this.stateChanged(),this.dict[e]=t},t.prototype.remove=function(e,t){var n;if(null==t&&(t=!1),!t||this.get(e))return n=this.dict[e],delete this.dict[e],this.length--,this.stateChanged(),n},t.prototype.valuesOrKeys=function(e){var t,n;return null==e&&(e="Keys"),this["did"+e+"StateChange"]?(n=[],t=[],_.each(this.dict,function(e,i){return n.push(e),t.push(i)}),this.didKeysStateChange=!1,this.didValsStateChange=!1,this.allVals=n,this.allKeys=t,this["all"+e]):this["all"+e]},t.prototype.values=function(){return this.valuesOrKeys("Vals")},t.prototype.keys=function(){return this.valuesOrKeys()},t.prototype.push=function(e,t){return null==t&&(t="key"),this.put(e[t],e)},t.prototype.slice=function(){return this.keys().map(function(e){return function(t){return e.remove(t)}}(this))},t.prototype.removeAll=function(){return this.slice()},t.prototype.each=function(e){return _.each(this.dict,function(t,n){return e(t)})},t.prototype.map=function(e){return _.map(this.dict,function(t,n){return e(t)})},t}()})}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapPropertyAction",["uiGmapLogger",function(e){var t;return t=function(e){return this.setIfChange=function(t){return function(n,i){if(!_.isEqual(i,n))return e(t,n)}},this.sic=this.setIfChange,this}}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};t.module("uiGmapgoogle-maps.directives.api.managers").factory("uiGmapClustererMarkerManager",["uiGmapLogger","uiGmapFitHelper","uiGmapPropMap","uiGmapEventsHelper",function(n,i,r,o){var a;return a=function(){function a(t,i,o,s){null==i&&(i={}),this.opt_options=null!=o?o:{},this.opt_events=s,this.checkSync=e(this.checkSync,this),this.getGMarkers=e(this.getGMarkers,this),this.fit=e(this.fit,this),this.destroy=e(this.destroy,this),this.attachEvents=e(this.attachEvents,this),this.clear=e(this.clear,this),this.draw=e(this.draw,this),this.removeMany=e(this.removeMany,this),this.remove=e(this.remove,this),this.addMany=e(this.addMany,this),this.update=e(this.update,this),this.add=e(this.add,this),this.type=a.type,this.clusterer=new NgMapMarkerClusterer(t,i,this.opt_options),this.propMapGMarkers=new r,this.attachEvents(this.opt_events,"opt_events"),this.clusterer.setIgnoreHidden(!0),this.noDrawOnSingleAddRemoves=!0,n.info(this)}return a.type="ClustererMarkerManager",a.prototype.checkKey=function(e){var t;if(null==e.key)return t="gMarker.key undefined and it is REQUIRED!!",n.error(t)},a.prototype.add=function(e){return this.checkKey(e),this.clusterer.addMarker(e,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.put(e.key,e),this.checkSync()},a.prototype.update=function(e){return this.remove(e),this.add(e)},a.prototype.addMany=function(e){return e.forEach(function(e){return function(t){return e.add(t)}}(this))},a.prototype.remove=function(e){var t;return this.checkKey(e),t=this.propMapGMarkers.get(e.key),t&&(this.clusterer.removeMarker(e,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.remove(e.key)),this.checkSync()},a.prototype.removeMany=function(e){return e.forEach(function(e){return function(t){return e.remove(t)}}(this))},a.prototype.draw=function(){return this.clusterer.repaint()},a.prototype.clear=function(){return this.removeMany(this.getGMarkers()),this.clusterer.repaint()},a.prototype.attachEvents=function(e,i){var r,o,a;if(this.listeners=[],t.isDefined(e)&&null!=e&&t.isObject(e)){a=[];for(o in e)r=e[o],e.hasOwnProperty(o)&&t.isFunction(e[o])?(n.info(i+": Attaching event: "+o+" to clusterer"),a.push(this.listeners.push(google.maps.event.addListener(this.clusterer,o,e[o])))):a.push(void 0);return a}},a.prototype.clearEvents=function(){return o.removeEvents(this.listeners),this.listeners=[]},a.prototype.destroy=function(){return this.clearEvents(),this.clear()},a.prototype.fit=function(){return i.fit(this.getGMarkers(),this.clusterer.getMap())},a.prototype.getGMarkers=function(){return this.clusterer.getMarkers().values()},a.prototype.checkSync=function(){},a}()}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.managers").service("uiGmapGoogleMapObjectManager",[function(){var e,n;return e=[],n=[],{createMapInstance:function(i,r){var o;return o=null,0===e.length?(o=new google.maps.Map(i,r),n.push(o)):(o=e.pop(),t.element(i).append(o.getDiv()),o.setOptions(r),n.push(o)),o},recycleMapInstance:function(t){var i;if(i=n.indexOf(t),i<0)throw new Error("Expected map instance to be a previously used instance");return n.splice(i,1),e.push(t)}}}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};t.module("uiGmapgoogle-maps.directives.api.managers").factory("uiGmapMarkerManager",["uiGmapLogger","uiGmapFitHelper","uiGmapPropMap",function(t,n,i){var r;return r=function(){function r(n,o,a){this.getGMarkers=e(this.getGMarkers,this),this.fit=e(this.fit,this),this.handleOptDraw=e(this.handleOptDraw,this),this.clear=e(this.clear,this),this.destroy=e(this.destroy,this),this.draw=e(this.draw,this),this.removeMany=e(this.removeMany,this),this.remove=e(this.remove,this),this.addMany=e(this.addMany,this),this.update=e(this.update,this),this.add=e(this.add,this),this.type=r.type,this.gMap=n,this.gMarkers=new i,this.$log=t,this.$log.info(this)}return r.type="MarkerManager",r.prototype.add=function(e,n){var i,r;if(null==n&&(n=!0),null==e.key)throw r="gMarker.key undefined and it is REQUIRED!!",t.error(r),r;if(i=this.gMarkers.get(e.key),!i)return this.handleOptDraw(e,n,!0),this.gMarkers.put(e.key,e)},r.prototype.update=function(e,t){return null==t&&(t=!0),this.remove(e,t),this.add(e,t)},r.prototype.addMany=function(e){return e.forEach(function(e){return function(t){return e.add(t)}}(this))},r.prototype.remove=function(e,t){if(null==t&&(t=!0),this.handleOptDraw(e,t,!1),this.gMarkers.get(e.key))return this.gMarkers.remove(e.key)},r.prototype.removeMany=function(e){return e.forEach(function(e){return function(t){return e.remove(t)}}(this))},r.prototype.draw=function(){var e;return e=[],this.gMarkers.each(function(t){return function(n){if(!n.isDrawn)return n.doAdd?(n.setMap(t.gMap),n.isDrawn=!0):e.push(n)}}(this)),e.forEach(function(e){return function(t){return t.isDrawn=!1,e.remove(t,!0)}}(this))},r.prototype.destroy=function(){return this.clear()},r.prototype.clear=function(){return this.gMarkers.each(function(e){return e.setMap(null)}),delete this.gMarkers,this.gMarkers=new i},r.prototype.handleOptDraw=function(e,t,n){return t===!0?(n?e.setMap(this.gMap):e.setMap(null),e.isDrawn=!0):(e.isDrawn=!1,e.doAdd=n)},r.prototype.fit=function(){return n.fit(this.getGMarkers(),this.gMap)},r.prototype.getGMarkers=function(){return this.gMarkers.values()},r}()}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};t.module("uiGmapgoogle-maps.directives.api.managers").factory("uiGmapSpiderfierMarkerManager",["uiGmapLogger","uiGmapFitHelper","uiGmapPropMap","uiGmapMarkerSpiderfier",function(n,i,r,o){var a;return a=function(){function a(t,i,s,u,l){null==i&&(i={}),this.opt_options=null!=s?s:{},this.opt_events=u,this.scope=l,this.checkSync=e(this.checkSync,this),this.isSpiderfied=e(this.isSpiderfied,this),this.getGMarkers=e(this.getGMarkers,this),this.fit=e(this.fit,this),this.destroy=e(this.destroy,this),this.attachEvents=e(this.attachEvents,this),this.clear=e(this.clear,this),this.draw=e(this.draw,this),this.removeMany=e(this.removeMany,this),this.remove=e(this.remove,this),this.addMany=e(this.addMany,this),this.update=e(this.update,this),this.add=e(this.add,this),this.type=a.type,this.markerSpiderfier=new o(t,this.opt_options),this.propMapGMarkers=new r,this.attachEvents(this.opt_events,"opt_events"),this.noDrawOnSingleAddRemoves=!0,n.info(this)}return a.type="SpiderfierMarkerManager",a.prototype.checkKey=function(e){var t;if(null==e.key)return t="gMarker.key undefined and it is REQUIRED!!",n.error(t)},a.prototype.add=function(e){return e.setMap(this.markerSpiderfier.map),this.checkKey(e),this.markerSpiderfier.addMarker(e,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.put(e.key,e),this.checkSync()},a.prototype.update=function(e){return this.remove(e),this.add(e)},a.prototype.addMany=function(e){return e.forEach(function(e){return function(t){return e.add(t)}}(this))},a.prototype.remove=function(e){var t;return this.checkKey(e),t=this.propMapGMarkers.get(e.key),t&&(e.setMap(null),this.markerSpiderfier.removeMarker(e,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.remove(e.key)),this.checkSync()},a.prototype.removeMany=function(e){return e.forEach(function(e){return function(t){return e.remove(t)}}(this))},a.prototype.draw=function(){},a.prototype.clear=function(){return this.removeMany(this.getGMarkers())},a.prototype.attachEvents=function(e,i){if(t.isDefined(e)&&null!=e&&t.isObject(e))return _.each(e,function(r){return function(o,a){if(e.hasOwnProperty(a)&&t.isFunction(e[a]))return n.info(i+": Attaching event: "+a+" to markerSpiderfier"),r.markerSpiderfier.addListener(a,function(){return"spiderfy"===a||"unspiderfy"===a?r.scope.$evalAsync(e[a].apply(e,arguments)):r.scope.$evalAsync(e[a].apply(e,[arguments[0],a,arguments[0].model,arguments]))})}}(this))},a.prototype.clearEvents=function(e,i){var r,o;if(t.isDefined(e)&&null!=e&&t.isObject(e))for(o in e)r=e[o],
  e.hasOwnProperty(o)&&t.isFunction(e[o])&&(n.info(i+": Clearing event: "+o+" to markerSpiderfier"),this.markerSpiderfier.clearListeners(o))},a.prototype.destroy=function(){return this.clearEvents(this.opt_events,"opt_events"),this.clear()},a.prototype.fit=function(){return i.fit(this.getGMarkers(),this.markerSpiderfier.map)},a.prototype.getGMarkers=function(){return this.markerSpiderfier.getMarkers()},a.prototype.isSpiderfied=function(){return _.find(this.getGMarkers(),function(e){return null!=(null!=e?e._omsData:void 0)})},a.prototype.checkSync=function(){},a}()}])}.call(this),function(){t.module("uiGmapgoogle-maps").factory("uiGmapadd-events",["$timeout",function(e){var n,i;return n=function(t,n,i){return google.maps.event.addListener(t,n,function(){return i.apply(this,arguments),e(function(){},!0)})},i=function(e,i,r){var o;return r?n(e,i,r):(o=[],t.forEach(i,function(t,i){return o.push(n(e,i,t))}),function(){return t.forEach(o,function(e){return google.maps.event.removeListener(e)}),o=null})}}])}.call(this),function(){t.module("uiGmapgoogle-maps").factory("uiGmaparray-sync",["uiGmapadd-events",function(e){return function(n,i,r,o){var a,s,u,l,c,p,d,f,h;return l=!1,f=i.$eval(r),i["static"]||(c={set_at:function(e){var t;if(!l&&(t=n.getAt(e)))return t.lng&&t.lat?(f[e].latitude=t.lat(),f[e].longitude=t.lng()):f[e]=t},insert_at:function(e){var t;if(!l&&(t=n.getAt(e)))return t.lng&&t.lat?f.splice(e,0,{latitude:t.lat(),longitude:t.lng()}):f.splice(e,0,t)},remove_at:function(e){if(!l)return f.splice(e,1)}},"Polygon"===f.type?a=f.coordinates[0]:"LineString"===f.type&&(a=f.coordinates),s={set_at:function(e){var t;if(!l&&(t=n.getAt(e),t&&t.lng&&t.lat))return a[e][1]=t.lat(),a[e][0]=t.lng()},insert_at:function(e){var t;if(!l&&(t=n.getAt(e),t&&t.lng&&t.lat))return a.splice(e,0,[t.lng(),t.lat()])},remove_at:function(e){if(!l)return a.splice(e,1)}},d=e(n,t.isUndefined(f.type)?c:s)),p=function(e){var t,i,r,a,s,u,c,p;if(l=!0,u=n,t=!1,e){for(i=0,c=u.getLength(),a=e.length,r=Math.min(c,a),s=void 0;i<r;)p=u.getAt(i),s=e[i],"function"==typeof s.equals?s.equals(p)||(u.setAt(i,s),t=!0):p.lat()===s.latitude&&p.lng()===s.longitude||(u.setAt(i,new google.maps.LatLng(s.latitude,s.longitude)),t=!0),i++;for(;i<a;)s=e[i],"function"==typeof s.lat&&"function"==typeof s.lng?u.push(s):u.push(new google.maps.LatLng(s.latitude,s.longitude)),t=!0,i++;for(;i<c;)u.pop(),t=!0,i++}if(l=!1,t)return o(u)},u=function(e){var t,i,r,a,s,u,c,p,d;if(l=!0,c=n,i=!1,e){for("Polygon"===f.type?t=e.coordinates[0]:"LineString"===f.type&&(t=e.coordinates),r=0,p=c.getLength(),s=t.length,a=Math.min(p,s),u=void 0;r<a;)d=c.getAt(r),u=t[r],d.lat()===u[1]&&d.lng()===u[0]||(c.setAt(r,new google.maps.LatLng(u[1],u[0])),i=!0),r++;for(;r<s;)u=t[r],c.push(new google.maps.LatLng(u[1],u[0])),i=!0,r++;for(;r<p;)c.pop(),i=!0,r++}if(l=!1,i)return o(c)},i["static"]||(h=t.isUndefined(f.type)?i.$watchCollection(r,p):i.$watch(r,u,!0)),function(){if(d&&(d(),d=null),h)return h(),h=null}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapChromeFixes",["$timeout",function(e){return{maybeRepaint:function(t){if(t)return t.style.opacity=.9,e(function(){return t.style.opacity=1})}}}])}.call(this),function(){t.module("uiGmapgoogle-maps").service("uiGmapObjectIterators",function(){var e,t,n,i;return e=["length","forEach","map"],t=[],n=function(t){return t.forEach=function(n){return _.each(_.omit(t,e),function(e){if(!_.isFunction(e))return n(e)})},t},t.push(n),i=function(t){return t.map=function(n){return _.map(_.omit(t,e),function(e){if(!_.isFunction(e))return n(e)})},t},t.push(i),{slapMap:i,slapForEach:n,slapAll:function(e){return t.forEach(function(t){return t(e)}),e}}})}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.options.builders").service("uiGmapCommonOptionsBuilder",["uiGmapBaseObject","uiGmapLogger","uiGmapModelKey",function(i,r,o){var a;return a=function(i){function o(){return this.watchProps=e(this.watchProps,this),this.buildOpts=e(this.buildOpts,this),o.__super__.constructor.apply(this,arguments)}return n(o,i),o.prototype.props=["clickable","draggable","editable","visible",{prop:"stroke",isColl:!0}],o.prototype.getCorrectModel=function(e){return t.isDefined(null!=e?e.model:void 0)?e.model:e},o.prototype.buildOpts=function(e,n,i){var o,a,s;return null==e&&(e={}),null==i&&(i={}),this.scope?this.gMap?(o=this.getCorrectModel(this.scope),s=this.scopeOrModelVal("stroke",this.scope,o),a=t.extend(e,this.DEFAULTS,{map:this.gMap,strokeColor:null!=s?s.color:void 0,strokeOpacity:null!=s?s.opacity:void 0,strokeWeight:null!=s?s.weight:void 0}),t.forEach(t.extend(i,{clickable:!0,draggable:!1,editable:!1,"static":!1,fit:!1,visible:!0,zIndex:0,icons:[]}),function(e){return function(i,r){var s;return s=n?n[r]:e.scopeOrModelVal(r,e.scope,o),t.isUndefined(s)?a[r]=i:a[r]=o[r]}}(this)),a["static"]&&(a.editable=!1),a):void r.error("this.map not defined in CommonOptionsBuilder can not buildOpts"):void r.error("this.scope not defined in CommonOptionsBuilder can not buildOpts")},o.prototype.watchProps=function(e){return null==e&&(e=this.props),e.forEach(function(e){return function(t){if(null!=e.attrs[t]||null!=e.attrs[null!=t?t.prop:void 0])return(null!=t?t.isColl:void 0)?e.scope.$watchCollection(t.prop,e.setMyOptions):e.scope.$watch(t,e.setMyOptions)}}(this))},o}(o)}])}.call(this),function(){var e=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.options.builders").factory("uiGmapPolylineOptionsBuilder",["uiGmapCommonOptionsBuilder",function(t){var n;return n=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.buildOpts=function(e,t){return n.__super__.buildOpts.call(this,{path:e},t,{geodesic:!1})},n}(t)}]).factory("uiGmapShapeOptionsBuilder",["uiGmapCommonOptionsBuilder",function(n){var i;return i=function(n){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.buildOpts=function(e,n,r){var o,a;return a=this.getCorrectModel(this.scope),o=n?n.fill:this.scopeOrModelVal("fill",this.scope,a),e=t.extend(e,{fillColor:null!=o?o.color:void 0,fillOpacity:null!=o?o.opacity:void 0}),i.__super__.buildOpts.call(this,e,n,r)},i}(n)}]).factory("uiGmapPolygonOptionsBuilder",["uiGmapShapeOptionsBuilder",function(t){var n;return n=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.buildOpts=function(e,t){return n.__super__.buildOpts.call(this,{path:e},t,{geodesic:!1})},n}(t)}]).factory("uiGmapRectangleOptionsBuilder",["uiGmapShapeOptionsBuilder",function(t){var n;return n=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.buildOpts=function(e,t){return n.__super__.buildOpts.call(this,{bounds:e},t)},n}(t)}]).factory("uiGmapCircleOptionsBuilder",["uiGmapShapeOptionsBuilder",function(t){var n;return n=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.buildOpts=function(e,t,i){return n.__super__.buildOpts.call(this,{center:e,radius:t},i)},n}(t)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.options").service("uiGmapMarkerOptions",["uiGmapLogger","uiGmapGmapUtil",function(e,n){return _.extend(n,{createOptions:function(e,i,r,o){var a;return null==r&&(r={}),a=t.extend({},r,{position:null!=r.position?r.position:n.getCoords(e),visible:null!=r.visible?r.visible:n.validateCoords(e)}),null==r.icon&&null==i||(a=t.extend(a,{icon:null!=r.icon?r.icon:i})),null!=o&&(a.map=o),a},isLabel:function(e){return null!=e&&(null!=e.labelContent||null!=e.labelAnchor||null!=e.labelClass||null!=e.labelStyle||null!=e.labelVisible)}})}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapBasePolyChildModel",["uiGmapLogger","$timeout","uiGmaparray-sync","uiGmapGmapUtil","uiGmapEventsHelper",function(i,r,o,a,s){return function(i,r){var u;return u=function(i){function u(n){var i,a,u;this.scope=n.scope,this.attrs=n.attrs,this.gMap=n.gMap,this.defaults=n.defaults,this.model=n.model,a=n.gObjectChangeCb,this.isScopeModel=null!=(u=n.isScopeModel)&&u,this.clean=e(this.clean,this),this.isScopeModel&&(this.clonedModel=_.clone(this.model,!0)),this.isDragging=!1,this.internalEvents={dragend:function(e){return function(){return _.defer(function(){return e.isDragging=!1})}}(this),dragstart:function(e){return function(){return e.isDragging=!0}}(this)},i=function(e){return function(){var n;if(!e.isDragging)return e.pathPoints=e.convertPathPoints(e.scope.path),null!=e.gObject&&e.clean(),null!=e.scope.model&&(n=e.scope),e.pathPoints.length>0&&(e.gObject=r(e.buildOpts(e.pathPoints,n))),e.gObject?(o(e.gObject.getPath(),e.scope,"path",function(t){if(e.pathPoints=t,null!=a)return a()}),t.isDefined(e.scope.events)&&t.isObject(e.scope.events)&&(e.listeners=e.model?s.setEvents(e.gObject,e.scope,e.model):s.setEvents(e.gObject,e.scope,e.scope)),e.internalListeners=e.model?s.setEvents(e.gObject,{events:e.internalEvents},e.model):s.setEvents(e.gObject,{events:e.internalEvents},e.scope)):void 0}}(this),i(),this.scope.$watch("path",function(e){return function(t,n){if(!_.isEqual(t,n)||!e.gObject)return i()}}(this),!0),!this.scope["static"]&&t.isDefined(this.scope.editable)&&this.scope.$watch("editable",function(e){return function(t,n){var i;if(t!==n)return t=!e.isFalse(t),null!=(i=e.gObject)?i.setEditable(t):void 0}}(this),!0),t.isDefined(this.scope.draggable)&&this.scope.$watch("draggable",function(e){return function(t,n){var i;if(t!==n)return t=!e.isFalse(t),null!=(i=e.gObject)?i.setDraggable(t):void 0}}(this),!0),t.isDefined(this.scope.visible)&&this.scope.$watch("visible",function(e){return function(t,n){var i;return t!==n&&(t=!e.isFalse(t)),null!=(i=e.gObject)?i.setVisible(t):void 0}}(this),!0),t.isDefined(this.scope.geodesic)&&this.scope.$watch("geodesic",function(e){return function(t,n){var i;if(t!==n)return t=!e.isFalse(t),null!=(i=e.gObject)?i.setOptions(e.buildOpts(e.gObject.getPath())):void 0}}(this),!0),t.isDefined(this.scope.stroke)&&t.isDefined(this.scope.stroke.weight)&&this.scope.$watch("stroke.weight",function(e){return function(t,n){var i;if(t!==n)return null!=(i=e.gObject)?i.setOptions(e.buildOpts(e.gObject.getPath())):void 0}}(this),!0),t.isDefined(this.scope.stroke)&&t.isDefined(this.scope.stroke.color)&&this.scope.$watch("stroke.color",function(e){return function(t,n){var i;if(t!==n)return null!=(i=e.gObject)?i.setOptions(e.buildOpts(e.gObject.getPath())):void 0}}(this),!0),t.isDefined(this.scope.stroke)&&t.isDefined(this.scope.stroke.opacity)&&this.scope.$watch("stroke.opacity",function(e){return function(t,n){var i;if(t!==n)return null!=(i=e.gObject)?i.setOptions(e.buildOpts(e.gObject.getPath())):void 0}}(this),!0),t.isDefined(this.scope.icons)&&this.scope.$watch("icons",function(e){return function(t,n){var i;if(t!==n)return null!=(i=e.gObject)?i.setOptions(e.buildOpts(e.gObject.getPath())):void 0}}(this),!0),this.scope.$on("$destroy",function(e){return function(){return e.clean(),e.scope=null}}(this)),t.isDefined(this.scope.fill)&&t.isDefined(this.scope.fill.color)&&this.scope.$watch("fill.color",function(e){return function(t,n){if(t!==n)return e.gObject.setOptions(e.buildOpts(e.gObject.getPath()))}}(this)),t.isDefined(this.scope.fill)&&t.isDefined(this.scope.fill.opacity)&&this.scope.$watch("fill.opacity",function(e){return function(t,n){if(t!==n)return e.gObject.setOptions(e.buildOpts(e.gObject.getPath()))}}(this)),t.isDefined(this.scope.zIndex)&&this.scope.$watch("zIndex",function(e){return function(t,n){if(t!==n)return e.gObject.setOptions(e.buildOpts(e.gObject.getPath()))}}(this))}return n(u,i),u.include(a),u.prototype.clean=function(){var e;return s.removeEvents(this.listeners),s.removeEvents(this.internalListeners),null!=(e=this.gObject)&&e.setMap(null),this.gObject=null},u}(i)}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.models.child").factory("uiGmapDrawFreeHandChildModel",["uiGmapLogger","$q",function(e,t){var n,i;return n=function(e,t,n){var i,r;r=new google.maps.Polyline({map:e,clickable:!1}),i=google.maps.event.addListener(e,"mousemove",function(e){return r.getPath().push(e.latLng)}),google.maps.event.addListenerOnce(e,"mouseup",function(o){var a;return google.maps.event.removeListener(i),a=r.getPath(),r.setMap(null),t.push(new google.maps.Polygon({map:e,path:a})),r=null,google.maps.event.clearListeners(e.getDiv(),"mousedown"),n()})},i=function(i,r){var o,a;return this.map=i,o=function(t){return function(){var n;return n={draggable:!1,disableDefaultUI:!0,scrollwheel:!1,disableDoubleClickZoom:!1},e.info("disabling map move"),t.map.setOptions(n)}}(this),a=function(e){return function(){var t,n;return t={draggable:!0,disableDefaultUI:!1,scrollwheel:!0,disableDoubleClickZoom:!0},null!=(n=e.deferred)&&n.resolve(),_.defer(function(){return e.map.setOptions(_.extend(t,r.options))})}}(this),this.engage=function(i){return function(r){return i.polys=r,i.deferred=t.defer(),o(),e.info("DrawFreeHandChildModel is engaged (drawing)."),google.maps.event.addDomListener(i.map.getDiv(),"mousedown",function(e){return n(i.map,i.polys,a)}),i.deferred.promise}}(this),this}}])}.call(this),function(){var n=function(e,t){return function(){return e.apply(t,arguments)}},i=function(e,t){function n(){this.constructor=e}for(var i in t)r.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.child").factory("uiGmapMarkerChildModel",["uiGmapModelKey","uiGmapGmapUtil","uiGmapLogger","uiGmapEventsHelper","uiGmapPropertyAction","uiGmapMarkerOptions","uiGmapIMarker","uiGmapMarkerManager","uiGmapPromise",function(r,o,a,s,u,l,c,p,d){var f;return f=function(r){function f(e){this.internalEvents=n(this.internalEvents,this),this.setLabelOptions=n(this.setLabelOptions,this),this.setOptions=n(this.setOptions,this),this.setIcon=n(this.setIcon,this),this.setCoords=n(this.setCoords,this),this.isNotValid=n(this.isNotValid,this),this.maybeSetScopeValue=n(this.maybeSetScopeValue,this),this.createMarker=n(this.createMarker,this),this.setMyScope=n(this.setMyScope,this),this.updateModel=n(this.updateModel,this),this.handleModelChanges=n(this.handleModelChanges,this),this.destroy=n(this.destroy,this);var t,i,r,o,s,l,c;c=e.scope,this.model=e.model,this.keys=e.keys,this.gMap=e.gMap,this.defaults=null!=(i=e.defaults)?i:{},this.doClick=e.doClick,this.gManager=e.gManager,this.doDrawSelf=null==(r=e.doDrawSelf)||r,this.trackModel=null==(o=e.trackModel)||o,this.needRedraw=null!=(s=e.needRedraw)&&s,this.isScopeModel=null!=(l=e.isScopeModel)&&l,this.isScopeModel&&(this.clonedModel=_.clone(this.model,!0)),this.deferred=d.defer(),_.each(this.keys,function(e){return function(t,n){var i;if(i=e.keys[n],null!=i&&!_.isFunction(i)&&_.isString(i))return e[n+"Key"]=i}}(this)),this.idKey=this.idKeyKey||"id",null!=this.model[this.idKey]&&(this.id=this.model[this.idKey]),f.__super__.constructor.call(this,c),this.scope.getGMarker=function(e){return function(){return e.gObject}}(this),this.firstTime=!0,this.trackModel?(this.scope.model=this.model,this.scope.$watch("model",function(e){return function(t,n){if(t!==n)return e.handleModelChanges(t,n)}}(this),!0)):(t=new u(function(e){return function(t){if(_.isFunction(t)&&(t="all"),!e.firstTime)return e.setMyScope(t,c)}}(this),(!1)),_.each(this.keys,function(e,n){return c.$watch(n,t.sic(n),!0)})),this.scope.$on("$destroy",function(e){return function(){return h(e)}}(this)),this.createMarker(this.model),a.info(this)}var h;return i(f,r),f.include(o),f.include(s),f.include(l),h=function(e){if(null!=(null!=e?e.gObject:void 0)&&(e.removeEvents(e.externalListeners),e.removeEvents(e.internalListeners),null!=e?e.gObject:void 0))return e.removeFromManager&&e.gManager.remove(e.gObject),e.gObject.setMap(null),e.gObject=null},f.prototype.destroy=function(e){return null==e&&(e=!0),this.removeFromManager=e,this.scope.$destroy()},f.prototype.handleModelChanges=function(e,t){var n,i,r;if(n=this.getChanges(e,t,c.keys),!this.firstTime)return i=0,r=_.keys(n).length,_.each(n,function(n){return function(o,a){var s;return i+=1,s=r===i,n.setMyScope(a,e,t,!1,!0,s),n.needRedraw=!0}}(this))},f.prototype.updateModel=function(e){return this.isScopeModel&&(this.clonedModel=_.clone(e,!0)),this.setMyScope("all",e,this.model)},f.prototype.renderGMarker=function(t,n){var i,r,o;if(null==t&&(t=!0),i=this.getProp("coords",this.scope,this.model),null!=(null!=(o=this.gManager)?o.isSpiderfied:void 0)&&(r=this.gManager.isSpiderfied()),null!=i){if(!this.validateCoords(i))return void a.debug("MarkerChild does not have coords yet. They may be defined later.");if(null!=n&&n(),t&&this.gObject&&this.gManager.add(this.gObject),r)return this.gManager.markerSpiderfier.spiderListener(this.gObject,e.event)}else if(t&&this.gObject)return this.gManager.remove(this.gObject)},f.prototype.setMyScope=function(e,t,n,i,r){var o;switch(null==n&&(n=void 0),null==i&&(i=!1),null==r&&(r=!0),null==t?t=this.model:this.model=t,this.gObject||(this.setOptions(this.scope,r),o=!0),e){case"all":return _.each(this.keys,function(e){return function(o,a){return e.setMyScope(a,t,n,i,r)}}(this));case"icon":return this.maybeSetScopeValue({gSetter:this.setIcon,doDraw:r});case"coords":return this.maybeSetScopeValue({gSetter:this.setCoords,doDraw:r});case"options":if(!o)return this.createMarker(t,n,i,r)}},f.prototype.createMarker=function(e,t,n,i){return null==t&&(t=void 0),null==n&&(n=!1),null==i&&(i=!0),this.maybeSetScopeValue({gSetter:this.setOptions,doDraw:i}),this.firstTime=!1},f.prototype.maybeSetScopeValue=function(e){var t,n,i;if(n=e.gSetter,t=null==(i=e.doDraw)||i,null!=n&&n(this.scope,t),this.doDrawSelf&&t)return this.gManager.draw()},f.prototype.isNotValid=function(e,t){var n,i;return null==t&&(t=!0),i=!!t&&void 0===this.gObject,n=!this.trackModel&&e.$id!==this.scope.$id,n||i},f.prototype.setCoords=function(e,t){if(null==t&&(t=!0),!this.isNotValid(e)&&null!=this.gObject)return this.renderGMarker(t,function(t){return function(){var n,i,r;if(i=t.getProp("coords",e,t.model),n=t.getCoords(i),r=t.gObject.getPosition(),null==r||null==n||n.lng()!==r.lng()||n.lat()!==r.lat())return t.gObject.setPosition(n),t.gObject.setVisible(t.validateCoords(i))}}(this))},f.prototype.setIcon=function(e,t){if(null==t&&(t=!0),!this.isNotValid(e)&&null!=this.gObject)return this.renderGMarker(t,function(t){return function(){var n,i,r;if(r=t.gObject.getIcon(),i=t.getProp("icon",e,t.model),r!==i)return t.gObject.setIcon(i),n=t.getProp("coords",e,t.model),t.gObject.setPosition(t.getCoords(n)),t.gObject.setVisible(t.validateCoords(n))}}(this))},f.prototype.setOptions=function(e,t){var n;if(null==t&&(t=!0),!this.isNotValid(e,!1)){if(this.renderGMarker(t,function(t){return function(){var n,i,r;if(i=t.getProp("coords",e,t.model),r=t.getProp("icon",e,t.model),n=t.getProp("options",e,t.model),t.opts=t.createOptions(i,r,n),t.isLabel(t.gObject)!==t.isLabel(t.opts)&&null!=t.gObject&&(t.gManager.remove(t.gObject),t.gObject=void 0),null!=t.gObject&&t.gObject.setOptions(t.setLabelOptions(t.opts)),t.gObject||(t.isLabel(t.opts)?t.gObject=new MarkerWithLabel(t.setLabelOptions(t.opts)):t.opts.content?(t.gObject=new RichMarker(t.opts),t.gObject.getIcon=t.gObject.getContent,t.gObject.setIcon=t.gObject.setContent):t.gObject=new google.maps.Marker(t.opts),_.extend(t.gObject,{model:t.model})),t.externalListeners&&t.removeEvents(t.externalListeners),t.internalListeners&&t.removeEvents(t.internalListeners),t.externalListeners=t.setEvents(t.gObject,t.scope,t.model,["dragend"]),t.internalListeners=t.setEvents(t.gObject,{events:t.internalEvents(),$evalAsync:function(){}},t.model),null!=t.id)return t.gObject.key=t.id}}(this)),this.gObject&&(this.gObject.getMap()||this.gManager.type!==p.type))this.deferred.resolve(this.gObject);else{if(!this.gObject)return this.deferred.reject("gObject is null");null!=(n=this.gObject)&&n.getMap()&&this.gManager.type===p.type||(a.debug("gObject has no map yet"),this.deferred.resolve(this.gObject))}return this.model[this.fitKey]?this.gManager.fit():void 0}},f.prototype.setLabelOptions=function(e){return e.labelAnchor&&(e.labelAnchor=this.getLabelPositionPoint(e.labelAnchor)),e},f.prototype.internalEvents=function(){return{dragend:function(e){return function(t,n,i,r){var o,a,s;return a=e.trackModel?e.scope.model:e.model,s=e.setCoordsFromEvent(e.modelOrKey(a,e.coordsKey),e.gObject.getPosition()),a=e.setVal(i,e.coordsKey,s),o=e.scope.events,null!=(null!=o?o.dragend:void 0)&&o.dragend(t,n,a,r),e.scope.$apply()}}(this),click:function(e){return function(n,i,r,o){var a;if(a=e.getProp("click",e.scope,e.model),e.doClick&&t.isFunction(a))return e.scope.$evalAsync(a(n,i,e.model,o))}}(this)}},f}(r)}])}.call(this),function(){var e=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolygonChildModel",["uiGmapBasePolyChildModel","uiGmapPolygonOptionsBuilder",function(t,n){var i,r,o;return o=function(e){return new google.maps.Polygon(e)},r=new t(n,o),i=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(r)}])}.call(this),function(){var e=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolylineChildModel",["uiGmapBasePolyChildModel","uiGmapPolylineOptionsBuilder",function(t,n){var i,r,o;return o=function(e){return new google.maps.Polyline(e)},r=t(n,o),i=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(r)}])}.call(this),function(){var n=function(e,t){return function(){return e.apply(t,arguments)}},i=function(e,t){function n(){this.constructor=e}for(var i in t)r.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.child").factory("uiGmapWindowChildModel",["uiGmapBaseObject","uiGmapGmapUtil","uiGmapLogger","$compile","$http","$templateCache","uiGmapChromeFixes","uiGmapEventsHelper",function(r,o,a,s,u,l,c,p){var d;return d=function(r){function d(e){this.updateModel=n(this.updateModel,this),this.destroy=n(this.destroy,this),this.remove=n(this.remove,this),this.getLatestPosition=n(this.getLatestPosition,this),this.hideWindow=n(this.hideWindow,this),this.showWindow=n(this.showWindow,this),this.handleClick=n(this.handleClick,this),this.watchOptions=n(this.watchOptions,this),this.watchCoords=n(this.watchCoords,this),this.createGWin=n(this.createGWin,this),this.watchElement=n(this.watchElement,this),this.watchAndDoShow=n(this.watchAndDoShow,this),this.doShow=n(this.doShow,this);var t,i,r,o,s;this.model=null!=(i=e.model)?i:{},this.scope=e.scope,this.opts=e.opts,this.isIconVisibleOnClick=e.isIconVisibleOnClick,this.gMap=e.gMap,this.markerScope=e.markerScope,this.element=e.element,this.needToManualDestroy=null!=(r=e.needToManualDestroy)&&r,this.markerIsVisibleAfterWindowClose=null==(o=e.markerIsVisibleAfterWindowClose)||o,this.isScopeModel=null!=(s=e.isScopeModel)&&s,this.isScopeModel&&(this.clonedModel=_.clone(this.model,!0)),this.getGmarker=function(){var e,t;if(null!=(null!=(e=this.markerScope)?e.getGMarker:void 0))return null!=(t=this.markerScope)?t.getGMarker():void 0},this.listeners=[],this.createGWin(),t=this.getGmarker(),null!=t&&t.setClickable(!0),this.watchElement(),this.watchOptions(),this.watchCoords(),this.watchAndDoShow(),this.scope.$on("$destroy",function(e){return function(){return e.destroy()}}(this)),a.info(this)}return i(d,r),d.include(o),d.include(p),d.prototype.doShow=function(e){return this.scope.show===!0||e?this.showWindow():this.hideWindow()},d.prototype.watchAndDoShow=function(){return null!=this.model.show&&(this.scope.show=this.model.show),this.scope.$watch("show",this.doShow,!0),this.doShow()},d.prototype.watchElement=function(){return this.scope.$watch(function(e){return function(){var t,n;if(e.element||e.html)return e.html!==e.element.html()&&e.gObject?(null!=(t=e.opts)&&(t.content=void 0),n=e.gObject.isOpen(),e.remove(),e.createGWin(n)):void 0}}(this))},d.prototype.createGWin=function(t){var n,i,r,o,a;if(null==t&&(t=!1),r=this.getGmarker(),i={},null!=this.opts&&(this.scope.coords&&(this.opts.position=this.getCoords(this.scope.coords)),i=this.opts),this.element&&(this.html=_.isObject(this.element)?this.element.html():this.element),n=this.scope.options?this.scope.options:i,this.opts=this.createWindowOptions(r,this.markerScope||this.scope,this.html,n),null!=this.opts)return this.gObject||(this.opts.boxClass&&e.InfoBox&&"function"==typeof e.InfoBox?this.gObject=new e.InfoBox(this.opts):this.gObject=new google.maps.InfoWindow(this.opts),this.listeners.push(google.maps.event.addListener(this.gObject,"domready",function(){return c.maybeRepaint(this.content)})),this.listeners.push(google.maps.event.addListener(this.gObject,"closeclick",function(e){return function(){return r&&(r.setAnimation(e.oldMarkerAnimation),e.markerIsVisibleAfterWindowClose&&_.delay(function(){return r.setVisible(!1),r.setVisible(e.markerIsVisibleAfterWindowClose)},250)),e.gObject.close(),e.model.show=!1,null!=e.scope.closeClick?e.scope.$evalAsync(e.scope.closeClick()):e.scope.$evalAsync()}}(this)))),this.gObject.setContent(this.opts.content),this.handleClick((null!=(o=this.scope)&&null!=(a=o.options)?a.forceClick:void 0)||t),this.doShow(this.gObject.isOpen())},d.prototype.watchCoords=function(){var e;return e=null!=this.markerScope?this.markerScope:this.scope,e.$watch("coords",function(e){return function(t,n){var i;if(t!==n){if(null==t)e.hideWindow();else if(!e.validateCoords(t))return void a.error("WindowChildMarker cannot render marker as scope.coords as no position on marker: "+JSON.stringify(e.model));if(i=e.getCoords(t),e.doShow(),e.gObject.setPosition(i),e.opts)return e.opts.position=i}}}(this),!0)},d.prototype.watchOptions=function(){return this.scope.$watch("options",function(e){return function(t,n){if(t!==n&&(e.opts=t,null!=e.gObject)){if(e.gObject.setOptions(e.opts),null!=e.opts.visible&&e.opts.visible)return e.showWindow();if(null!=e.opts.visible)return e.hideWindow()}}}(this),!0)},d.prototype.handleClick=function(e){var t,n;if(null!=this.gObject)return n=this.getGmarker(),t=function(e){return function(){if(null==e.gObject&&e.createGWin(),e.showWindow(),null!=n)return e.initialMarkerVisibility=n.getVisible(),e.oldMarkerAnimation=n.getAnimation(),n.setVisible(e.isIconVisibleOnClick)}}(this),e&&t(),n?this.listeners=this.listeners.concat(this.setEvents(n,{events:{click:t}},this.model)):void 0},d.prototype.showWindow=function(){var e,n,i;if(null!=this.gObject)return i=null,n=function(e){return function(){var t,n,i;if(!e.gObject.isOpen()){if(n=e.getGmarker(),null!=e.gObject&&null!=e.gObject.getPosition&&(i=e.gObject.getPosition()),n&&(i=n.getPosition()),!i)return;if(e.gObject.open(e.gMap,n),t=e.gObject.isOpen(),e.model.show!==t)return e.model.show=t}}}(this),this.scope.templateUrl?u.get(this.scope.templateUrl,{cache:l}).then(function(e){return function(r){var o;return i=e.scope.$new(),t.isDefined(e.scope.templateParameter)&&(i.parameter=e.scope.templateParameter),o=s(r.data)(i),e.gObject.setContent(o[0]),n()}}(this)):this.scope.template?(i=this.scope.$new(),t.isDefined(this.scope.templateParameter)&&(i.parameter=this.scope.templateParameter),e=s(this.scope.template)(i),this.gObject.setContent(e[0]),n()):n(),this.scope.$on("destroy",function(){return i.$destroy()})},d.prototype.hideWindow=function(){if(null!=this.gObject&&this.gObject.isOpen())return this.gObject.close()},d.prototype.getLatestPosition=function(e){var t;return t=this.getGmarker(),null==this.gObject||null==t||e?e?this.gObject.setPosition(e):void 0:this.gObject.setPosition(t.getPosition())},d.prototype.remove=function(){return this.hideWindow(),this.removeEvents(this.listeners),this.listeners.length=0,delete this.gObject,delete this.opts},d.prototype.destroy=function(e){var t;if(null==e&&(e=!1),this.remove(),null!=this.scope&&!(null!=(t=this.scope)?t.$$destroyed:void 0)&&(this.needToManualDestroy||e))return this.scope.$destroy()},d.prototype.updateModel=function(e){return this.isScopeModel&&(this.clonedModel=_.clone(e,!0)),_.extend(this.model,this.clonedModel||e)},d}(r)}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapBasePolysParentModel",["$timeout","uiGmapLogger","uiGmapModelKey","uiGmapModelsWatcher","uiGmapPropMap","uiGmap_async","uiGmapPromise","uiGmapFitHelper",function(i,r,o,a,s,u,l,c){return function(i,p,d){var f;return f=function(o){function f(t,n,o,a,u){this.element=n,this.attrs=o,this.gMap=a,this.defaults=u,this.maybeFit=e(this.maybeFit,this),this.createChild=e(this.createChild,this),this.pieceMeal=e(this.pieceMeal,this),this.createAllNew=e(this.createAllNew,this),this.watchIdKey=e(this.watchIdKey,this),this.createChildScopes=e(this.createChildScopes,this),this.watchDestroy=e(this.watchDestroy,this),this.onDestroy=e(this.onDestroy,this),this.rebuildAll=e(this.rebuildAll,this),this.doINeedToWipe=e(this.doINeedToWipe,this),this.watchModels=e(this.watchModels,this),f.__super__.constructor.call(this,t),this["interface"]=i,this.$log=r,this.plurals=new s,_.each(i.scopeKeys,function(e){return function(t){return e[t+"Key"]=void 0}}(this)),this.models=void 0,this.firstTime=!0,this.$log.info(this),this.createChildScopes()}return n(f,o),f.include(a),f.prototype.watchModels=function(e){return e.$watch("models",function(t){return function(n,i){if(n!==i)return t.doINeedToWipe(n)||e.doRebuildAll?t.rebuildAll(e,!0,!0):t.createChildScopes(!1)}}(this),!0)},f.prototype.doINeedToWipe=function(e){var t;return t=null==e||0===e.length,this.plurals.length>0&&t},f.prototype.rebuildAll=function(e,t,n){return this.onDestroy(n).then(function(e){return function(){if(t)return e.createChildScopes()}}(this))},f.prototype.onDestroy=function(){return f.__super__.onDestroy.call(this,this.scope),u.promiseLock(this,l.promiseTypes["delete"],void 0,void 0,function(e){return function(){return u.each(e.plurals.values(),function(e){return e.destroy(!0)},u.chunkSizeFrom(e.scope.cleanchunk,!1)).then(function(){var t;return null!=(t=e.plurals)?t.removeAll():void 0})}}(this))},f.prototype.watchDestroy=function(e){return e.$on("$destroy",function(t){return function(){return t.rebuildAll(e,!1,!0)}}(this))},f.prototype.createChildScopes=function(e){return null==e&&(e=!0),t.isUndefined(this.scope.models)?void this.$log.error("No models to create "+d+"s from! I Need direct models!"):null!=this.gMap&&null!=this.scope.models?(this.watchIdKey(this.scope),e?this.createAllNew(this.scope,!1):this.pieceMeal(this.scope,!1)):void 0},f.prototype.watchIdKey=function(e){return this.setIdKey(e),e.$watch("idKey",function(t){return function(n,i){if(n!==i&&null==n)return t.idKey=n,t.rebuildAll(e,!0,!0)}}(this))},f.prototype.createAllNew=function(e,t){
  var n;if(null==t&&(t=!1),this.models=e.models,this.firstTime&&(this.watchModels(e),this.watchDestroy(e)),!this.didQueueInitPromise(this,e))return n=null,u.promiseLock(this,l.promiseTypes.create,"createAllNew",function(e){return n=e},function(t){return function(){return u.map(e.models,function(e){var i;return i=t.createChild(e,t.gMap),n&&(r.debug("createNew should fall through safely"),i.isEnabled=!1),i.pathPoints.getArray()},u.chunkSizeFrom(e.chunk)).then(function(e){return t.maybeFit(e),t.firstTime=!1})}}(this))},f.prototype.pieceMeal=function(e,t){var n,i;if(null==t&&(t=!0),!e.$$destroyed)return n=null,i=null,this.models=e.models,null!=e&&this.modelsLength()&&this.plurals.length?u.promiseLock(this,l.promiseTypes.update,"pieceMeal",function(e){return n=e},function(t){return function(){return l.promise(function(){return t.figureOutState(t.idKey,e,t.plurals,t.modelKeyComparison)}).then(function(r){return i=r,i.updates.length&&u.each(i.updates,function(e){return _.extend(e.child.scope,e.model),e.child.model=e.model}),u.each(i.removals,function(e){if(null!=e)return e.destroy(),t.plurals.remove(e.model[t.idKey]),n},u.chunkSizeFrom(e.chunk))}).then(function(){return u.each(i.adds,function(e){return n&&r.debug("pieceMeal should fall through safely"),t.createChild(e,t.gMap),n},u.chunkSizeFrom(e.chunk)).then(function(){return t.maybeFit()})})}}(this)):(this.inProgress=!1,this.rebuildAll(this.scope,!0,!0))},f.prototype.createChild=function(e,t){var n,r;return r=this.scope.$new(!1),this.setChildScope(i.scopeKeys,r,e),r.$watch("model",function(e){return function(t,n){if(t!==n)return e.setChildScope(r,t)}}(this),!0),r["static"]=this.scope["static"],n=new p({isScopeModel:!0,scope:r,attrs:this.attrs,gMap:t,defaults:this.defaults,model:e,gObjectChangeCb:function(e){return function(){return e.maybeFit()}}(this)}),null==e[this.idKey]?void this.$log.error(d+" model has no id to assign a child to.\nThis is required for performance. Please assign id,\nor redirect id to a different key."):(this.plurals.put(e[this.idKey],n),n)},f.prototype.maybeFit=function(e){if(null==e&&(e=this.plurals.map(function(e){return e.pathPoints})),this.scope.fit)return e=_.flatten(e),c.fit(e,this.gMap)},f}(o)}}])}.call(this),function(){var e=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapCircleParentModel",["uiGmapLogger","$timeout","uiGmapGmapUtil","uiGmapEventsHelper","uiGmapCircleOptionsBuilder",function(n,i,r,o,a){var s,u;return u=function(e,t){return e.settingFromDirective=!0,t(),i(function(){return e.settingFromDirective=!1})},s=function(i){function a(e,i,o,a,s){var l,c,p;this.attrs=o,this.gMap=a,this.DEFAULTS=s,this.scope=e,p=null,l=function(e){return function(){if(p=null,null!=e.listeners)return e.removeEvents(e.listeners),e.listeners=void 0}}(this),c=new google.maps.Circle(this.buildOpts(r.getCoords(e.center),e.radius)),this.setMyOptions=function(t){return function(n,i){if(!e.settingFromDirective)return!_.isEqual(n,i)||n!==i||null!=n&&null!=i&&n.coordinates!==i.coordinates?c.setOptions(t.buildOpts(r.getCoords(e.center),e.radius)):void 0}}(this),this.props=this.props.concat([{prop:"center",isColl:!0},{prop:"fill",isColl:!0},"radius","zIndex"]),this.watchProps(),null!=this.scope.control&&(this.scope.control.getCircle=function(){return c}),l(),this.listeners=this.setEvents(c,e,e,["radius_changed"])||[],this.listeners.push(google.maps.event.addListener(c,"radius_changed",function(){var n,i;if(n=c.getRadius(),n!==p)return p=n,i=function(){return u(e,function(){var t,i;if(n!==e.radius&&(e.radius=n),(null!=(t=e.events)?t.radius_changed:void 0)&&_.isFunction(null!=(i=e.events)?i.radius_changed:void 0))return e.events.radius_changed(c,"radius_changed",e,arguments)})},t.mock?i():e.$evalAsync(function(){return i()})})),this.listeners.push(google.maps.event.addListener(c,"center_changed",function(){return e.$evalAsync(function(){return u(e,function(){return t.isDefined(e.center.type)?(e.center.coordinates[1]=c.getCenter().lat(),e.center.coordinates[0]=c.getCenter().lng()):(e.center.latitude=c.getCenter().lat(),e.center.longitude=c.getCenter().lng())})})})),e.$on("$destroy",function(){return l(),c.setMap(null)}),n.info(this)}return e(a,i),a.include(r),a.include(o),a}(a)}])}.call(this),function(){var e=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapDrawingManagerParentModel",["uiGmapLogger","$timeout","uiGmapBaseObject","uiGmapEventsHelper",function(t,n,i,r){var o;return o=function(t){function n(e,t,n,i){var r,o;this.scope=e,this.attrs=n,this.map=i,r=new google.maps.drawing.DrawingManager(this.scope.options),r.setMap(this.map),o=void 0,null!=this.scope.control&&(this.scope.control.getDrawingManager=function(){return r}),!this.scope["static"]&&this.scope.options&&this.scope.$watch("options",function(e){return null!=r?r.setOptions(e):void 0},!0),null!=this.scope.events&&(o=this.setEvents(r,this.scope,this.scope),this.scope.$watch("events",function(e){return function(t,n){if(!_.isEqual(t,n))return null!=o&&e.removeEvents(o),o=e.setEvents(r,e.scope,e.scope)}}(this))),this.scope.$on("$destroy",function(e){return function(){return null!=o&&e.removeEvents(o),r.setMap(null),r=null}}(this))}return e(n,t),n.include(r),n}(i)}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapIMarkerParentModel",["uiGmapModelKey","uiGmapLogger",function(i,r){var o;return o=function(i){function o(n,i,a,s){if(this.scope=n,this.element=i,this.attrs=a,this.map=s,this.onWatch=e(this.onWatch,this),this.watch=e(this.watch,this),this.validateScope=e(this.validateScope,this),o.__super__.constructor.call(this,this.scope),this.$log=r,!this.validateScope(this.scope))throw new String("Unable to construct IMarkerParentModel due to invalid scope");this.doClick=t.isDefined(this.attrs.click),null!=this.scope.options&&(this.DEFAULTS=this.scope.options),this.watch("coords",this.scope),this.watch("icon",this.scope),this.watch("options",this.scope),this.scope.$on("$destroy",function(e){return function(){return e.onDestroy(e.scope)}}(this))}return n(o,i),o.prototype.DEFAULTS={},o.prototype.validateScope=function(e){var t;return null==e?(this.$log.error(this.constructor.name+": invalid scope used"),!1):(t=null!=e.coords,t?t:(this.$log.error(this.constructor.name+": no valid coords attribute found"),!1))},o.prototype.watch=function(e,t,n){return null==n&&(n=!0),t.$watch(e,function(n){return function(i,r){if(!_.isEqual(i,r))return n.onWatch(e,t,i,r)}}(this),n)},o.prototype.onWatch=function(e,t,n,i){},o}(i)}])}.call(this),function(){var e=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapIWindowParentModel",["uiGmapModelKey","uiGmapGmapUtil","uiGmapLogger",function(t,n,i){var r;return r=function(t){function r(e,t,n,o,a,s,u,l){r.__super__.constructor.call(this,e),this.$log=i,this.$timeout=a,this.$compile=s,this.$http=u,this.$templateCache=l,this.DEFAULTS={},null!=e.options&&(this.DEFAULTS=e.options)}return e(r,t),r.include(n),r.prototype.getItem=function(e,t,n){return"models"===t?e[t][n]:e[t].get(n)},r}(t)}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapLayerParentModel",["uiGmapBaseObject","uiGmapLogger","$timeout",function(i,r,o){var a;return a=function(i){function o(n,i,o,a,s,u){return this.scope=n,this.element=i,this.attrs=o,this.gMap=a,this.onLayerCreated=null!=s?s:void 0,this.$log=null!=u?u:r,this.createGoogleLayer=e(this.createGoogleLayer,this),null==this.attrs.type?void this.$log.info("type attribute for the layer directive is mandatory. Layer creation aborted!!"):(this.createGoogleLayer(),this.doShow=!0,t.isDefined(this.attrs.show)&&(this.doShow=this.scope.show),this.doShow&&null!=this.gMap&&this.gObject.setMap(this.gMap),this.scope.$watch("show",function(e){return function(t,n){if(t!==n)return e.doShow=t,t?e.gObject.setMap(e.gMap):e.gObject.setMap(null)}}(this),!0),this.scope.$watch("options",function(e){return function(t,n){if(t!==n&&e.doShow)return e.gObject.setOptions(t)}}(this),!0),void this.scope.$on("$destroy",function(e){return function(){return e.gObject.setMap(null)}}(this)))}return n(o,i),o.prototype.createGoogleLayer=function(){var e;if(null==this.attrs.options?this.gObject=void 0===this.attrs.namespace?new google.maps[this.attrs.type]:new google.maps[this.attrs.namespace][this.attrs.type]:this.gObject=void 0===this.attrs.namespace?new google.maps[this.attrs.type](this.scope.options):new google.maps[this.attrs.namespace][this.attrs.type](this.scope.options),null!=this.gObject&&this.doShow&&this.gObject.setMap(this.gMap),null!=this.gObject&&null!=this.onLayerCreated)return"function"==typeof(e=this.onLayerCreated(this.scope,this.gObject))?e(this.gObject):void 0},o}(i)}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapMapTypeParentModel",["uiGmapBaseObject","uiGmapLogger",function(i,r){var o;return o=function(i){function o(n,i,o,a,s){return this.scope=n,this.element=i,this.attrs=o,this.gMap=a,this.$log=null!=s?s:r,this.hideOverlay=e(this.hideOverlay,this),this.showOverlay=e(this.showOverlay,this),this.refreshMapType=e(this.refreshMapType,this),this.createMapType=e(this.createMapType,this),null==this.attrs.options?void this.$log.info("options attribute for the map-type directive is mandatory. Map type creation aborted!!"):(this.id=this.gMap.overlayMapTypesCount=this.gMap.overlayMapTypesCount+1||0,this.doShow=!0,this.createMapType(),t.isDefined(this.attrs.show)&&(this.doShow=this.scope.show),this.doShow&&null!=this.gMap&&this.showOverlay(),this.scope.$watch("show",function(e){return function(t,n){if(t!==n)return e.doShow=t,t?e.showOverlay():e.hideOverlay()}}(this),!0),this.scope.$watchCollection("options",function(e){return function(t,n){var i,r;if(!_.isEqual(t,n)&&(r=["tileSize","maxZoom","minZoom","name","alt"],i=_.some(r,function(e){return!n||!t||!_.isEqual(t[e],n[e])})))return e.refreshMapType()}}(this)),t.isDefined(this.attrs.refresh)&&this.scope.$watch("refresh",function(e){return function(t,n){if(!_.isEqual(t,n))return e.refreshMapType()}}(this),!0),void this.scope.$on("$destroy",function(e){return function(){return e.hideOverlay(),e.mapType=null}}(this)))}return n(o,i),o.prototype.createMapType=function(){if(null!=this.scope.options.getTile)this.mapType=this.scope.options;else{if(null==this.scope.options.getTileUrl)return void this.$log.info("options should provide either getTile or getTileUrl methods. Map type creation aborted!!");this.mapType=new google.maps.ImageMapType(this.scope.options)}return this.attrs.id&&this.scope.id&&(this.gMap.mapTypes.set(this.scope.id,this.mapType),t.isDefined(this.attrs.show)||(this.doShow=!1)),this.mapType.layerId=this.id},o.prototype.refreshMapType=function(){if(this.hideOverlay(),this.mapType=null,this.createMapType(),this.doShow&&null!=this.gMap)return this.showOverlay()},o.prototype.showOverlay=function(){return this.gMap.overlayMapTypes.push(this.mapType)},o.prototype.hideOverlay=function(){var e;return e=!1,this.gMap.overlayMapTypes.forEach(function(t){return function(n,i){e||n.layerId!==t.id||(e=!0,t.gMap.overlayMapTypes.removeAt(i))}}(this))},o}(i)}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapMarkersParentModel",["uiGmapIMarkerParentModel","uiGmapModelsWatcher","uiGmapPropMap","uiGmapMarkerChildModel","uiGmap_async","uiGmapClustererMarkerManager","uiGmapMarkerManager","$timeout","uiGmapIMarker","uiGmapPromise","uiGmapGmapUtil","uiGmapLogger","uiGmapSpiderfierMarkerManager",function(i,r,o,a,s,u,l,c,p,d,f,h,g){var m,v;return v=function(e,t){return t.plurals=new o,t.scope.plurals=t.plurals,t},m=function(i){function c(t,n,i,r){this.maybeExecMappedEvent=e(this.maybeExecMappedEvent,this),this.onDestroy=e(this.onDestroy,this),this.newChildMarker=e(this.newChildMarker,this),this.pieceMeal=e(this.pieceMeal,this),this.rebuildAll=e(this.rebuildAll,this),this.createAllNew=e(this.createAllNew,this),this.bindToTypeEvents=e(this.bindToTypeEvents,this),this.createChildScopes=e(this.createChildScopes,this),this.validateScope=e(this.validateScope,this),this.onWatch=e(this.onWatch,this),c.__super__.constructor.call(this,t,n,i,r),this["interface"]=p,v(new o,this),this.scope.pluralsUpdate={updateCtr:0},this.$log.info(this),this.doRebuildAll=null!=this.scope.doRebuildAll&&this.scope.doRebuildAll,this.setIdKey(this.scope),this.scope.$watch("doRebuildAll",function(e){return function(t,n){if(t!==n)return e.doRebuildAll=t}}(this)),this.modelsLength()||(this.modelsRendered=!1),this.scope.$watch("models",function(e){return function(t,n){if(!_.isEqual(t,n)||!e.modelsRendered){if(0===t.length&&0===n.length)return;return e.modelsRendered=!0,e.onWatch("models",e.scope,t,n)}}}(this),!this.isTrue(i.modelsbyref)),this.watch("doCluster",this.scope),this.watch("type",this.scope),this.watch("clusterOptions",this.scope),this.watch("clusterEvents",this.scope),this.watch("typeOptions",this.scope),this.watch("typeEvents",this.scope),this.watch("fit",this.scope),this.watch("idKey",this.scope),this.gManager=void 0,this.createAllNew(this.scope)}return n(c,i),c.include(f),c.include(r),c.prototype.onWatch=function(e,t,n,i){return"idKey"===e&&n!==i&&(this.idKey=n),this.doRebuildAll||"doCluster"===e||"type"===e?this.rebuildAll(t):this.pieceMeal(t)},c.prototype.validateScope=function(e){var n;return n=t.isUndefined(e.models)||void 0===e.models,n&&this.$log.error(this.constructor.name+": no valid models attribute found"),c.__super__.validateScope.call(this,e)||n},c.prototype.createChildScopes=function(e){if(null!=this.gMap&&null!=this.scope.models)return e?this.createAllNew(this.scope,!1):this.pieceMeal(this.scope,!1)},c.prototype.bindToTypeEvents=function(e,n){var i,r;return null==n&&(n=["click","mouseout","mouseover"]),r=this,this.origTypeEvents?t.extend(e,this.origTypeEvents):(this.origTypeEvents={},_.each(n,function(t){return function(n){return t.origTypeEvents[n]=null!=e?e[n]:void 0}}(this))),i={},_.each(n,function(e){return i[e]=function(t){return r.maybeExecMappedEvent(t,e)}}),t.extend(e,i)},c.prototype.createAllNew=function(e){var t,n,i,r;if(null!=this.gManager&&(this.gManager instanceof g&&(t=this.gManager.isSpiderfied()),this.gManager.clear(),delete this.gManager),i=e.typeEvents||e.clusterEvents,r=e.typeOptions||e.clusterOptions,e.doCluster||"cluster"===e.type?(null!=i&&this.bindToTypeEvents(i),this.gManager=new u(this.map,(void 0),r,i)):"spider"===e.type?(null!=i&&this.bindToTypeEvents(i,["spiderfy","unspiderfy"]),this.gManager=new g(this.map,(void 0),r,i,this.scope),t&&this.gManager.spiderfy()):this.gManager=new l(this.map),!this.didQueueInitPromise(this,e))return n=null,s.promiseLock(this,d.promiseTypes.create,"createAllNew",function(e){return n=e},function(t){return function(){return s.each(e.models,function(i){return t.newChildMarker(i,e),n},s.chunkSizeFrom(e.chunk)).then(function(){return t.modelsRendered=!0,e.fit&&t.gManager.fit(),t.gManager.draw(),t.scope.pluralsUpdate.updateCtr+=1},s.chunkSizeFrom(e.chunk))}}(this))},c.prototype.rebuildAll=function(e){var t;if(e.doRebuild||void 0===e.doRebuild)return(null!=(t=this.scope.plurals)?t.length:void 0)?this.onDestroy(e).then(function(t){return function(){return t.createAllNew(e)}}(this)):this.createAllNew(e)},c.prototype.pieceMeal=function(e){var t,n;if(!e.$$destroyed)return t=null,n=null,this.modelsLength()&&this.scope.plurals.length?s.promiseLock(this,d.promiseTypes.update,"pieceMeal",function(e){return t=e},function(i){return function(){return d.promise(function(){return i.figureOutState(i.idKey,e,i.scope.plurals,i.modelKeyComparison)}).then(function(r){return n=r,s.each(n.removals,function(e){if(null!=e)return null!=e.destroy&&e.destroy(),i.scope.plurals.remove(e.id),t},s.chunkSizeFrom(e.chunk))}).then(function(){return s.each(n.adds,function(n){return i.newChildMarker(n,e),t},s.chunkSizeFrom(e.chunk))}).then(function(){return s.each(n.updates,function(e){return i.updateChild(e.child,e.model),t},s.chunkSizeFrom(e.chunk))}).then(function(){return(n.adds.length>0||n.removals.length>0||n.updates.length>0)&&(e.plurals=i.scope.plurals,e.fit&&i.gManager.fit(),i.gManager.draw()),i.scope.pluralsUpdate.updateCtr+=1})}}(this)):(this.inProgress=!1,this.rebuildAll(e))},c.prototype.newChildMarker=function(e,t){var n,i,r;if(!e)throw"model undefined";return null==e[this.idKey]?void this.$log.error("Marker model has no id to assign a child to. This is required for performance. Please assign id, or redirect id to a different key."):(this.$log.info("child",n,"markers",this.scope.markerModels),i=t.$new(!1),i.events=t.events,r={},p.scopeKeys.forEach(function(e){return r[e]=t[e]}),n=new a({scope:i,model:e,keys:r,gMap:this.map,defaults:this.DEFAULTS,doClick:this.doClick,gManager:this.gManager,doDrawSelf:!1,isScopeModel:!0}),this.scope.plurals.put(e[this.idKey],n),n)},c.prototype.onDestroy=function(e){return c.__super__.onDestroy.call(this,e),s.promiseLock(this,d.promiseTypes["delete"],void 0,void 0,function(e){return function(){return s.each(e.scope.plurals.values(),function(e){if(null!=e)return e.destroy(!1)},s.chunkSizeFrom(e.scope.cleanchunk,!1)).then(function(){return null!=e.gManager&&e.gManager.destroy(),e.plurals.removeAll(),e.plurals!==e.scope.plurals&&console.error("plurals out of sync for MarkersParentModel"),e.scope.pluralsUpdate.updateCtr+=1})}}(this))},c.prototype.maybeExecMappedEvent=function(e,t){var n,i;if(!this.scope.$$destroyed)return i=this.scope.typeEvents||this.scope.clusterEvents,_.isFunction(null!=i?i[t]:void 0)&&(n=this.mapTypeToPlurals(e),this.origTypeEvents[t])?this.origTypeEvents[t](n.group,n.mapped):void 0},c.prototype.mapTypeToPlurals=function(e){var t,n,i;return _.isArray(e)?t=e:_.isFunction(e.getMarkers)&&(t=e.getMarkers()),null==t?void h.error("Unable to map event as we cannot find the array group to map"):(n=(null!=(i=this.scope.plurals.values())?i.length:void 0)?t.map(function(e){return function(t){return e.scope.plurals.get(t.key).model}}(this)):[],{cluster:e,mapped:n,group:e})},c.prototype.getItem=function(e,t,n){return"models"===t?e[t][n]:e[t].get(n)},c}(i)}])}.call(this),function(){["Polygon","Polyline"].forEach(function(e){return t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmap"+e+"sParentModel",["uiGmapBasePolysParentModel","uiGmap"+e+"ChildModel","uiGmapI"+e,function(t,n,i){return t(i,n,e)}])})}.call(this),function(){var e=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapRectangleParentModel",["uiGmapLogger","uiGmapGmapUtil","uiGmapEventsHelper","uiGmapRectangleOptionsBuilder",function(t,n,i,r){var o;return o=function(r){function o(e,n,i,r,o){var a,s,u,l,c,p,d,f,h,g,m;this.scope=e,this.attrs=i,this.gMap=r,this.DEFAULTS=o,a=void 0,l=!1,h=[],f=void 0,c=function(e){return function(){if(e.isTrue(e.attrs.fit))return e.fitMapBounds(e.gMap,a)}}(this),u=function(e){return function(){var n,i,r;return null!=e.scope.bounds&&null!=(null!=(n=e.scope.bounds)?n.sw:void 0)&&null!=(null!=(i=e.scope.bounds)?i.ne:void 0)&&e.validateBoundPoints(e.scope.bounds)?(a=e.convertBoundPoints(e.scope.bounds),t.info("new new bounds created: "+JSON.stringify(a))):null!=e.scope.bounds.getNorthEast&&null!=e.scope.bounds.getSouthWest?a=e.scope.bounds:null!=e.scope.bounds?t.error("Invalid bounds for newValue: "+JSON.stringify(null!=(r=e.scope)?r.bounds:void 0)):void 0}}(this),u(),p=new google.maps.Rectangle(this.buildOpts(a)),t.info("gObject (rectangle) created: "+p),g=!1,m=function(e){return function(){var t,n,i;if(t=p.getBounds(),n=t.getNorthEast(),i=t.getSouthWest(),!g)return e.scope.$evalAsync(function(e){if(null!=e.bounds&&null!=e.bounds.sw&&null!=e.bounds.ne&&(e.bounds.ne={latitude:n.lat(),longitude:n.lng()},e.bounds.sw={latitude:i.lat(),longitude:i.lng()}),null!=e.bounds.getNorthEast&&null!=e.bounds.getSouthWest)return e.bounds=t})}}(this),d=function(e){return function(){return c(),e.removeEvents(h),h.push(google.maps.event.addListener(p,"dragstart",function(){return l=!0})),h.push(google.maps.event.addListener(p,"dragend",function(){return l=!1,m()})),h.push(google.maps.event.addListener(p,"bounds_changed",function(){if(!l)return m()}))}}(this),s=function(e){return function(){return e.removeEvents(h),null!=f&&e.removeEvents(f),p.setMap(null)}}(this),null!=a&&d(),this.scope.$watch("bounds",function(e,t){var n;if(!(_.isEqual(e,t)&&null!=a||l))return g=!0,null==e?void s():(null==a?n=!0:c(),u(),p.setBounds(a),g=!1,n&&null!=a?d():void 0)},!0),this.setMyOptions=function(e){return function(t,n){if(!_.isEqual(t,n)&&null!=a&&null!=t)return p.setOptions(e.buildOpts(a))}}(this),this.props.push("bounds"),this.watchProps(this.props),null!=this.attrs.events&&(f=this.setEvents(p,this.scope,this.scope),this.scope.$watch("events",function(e){return function(t,n){if(!_.isEqual(t,n))return null!=f&&e.removeEvents(f),f=e.setEvents(p,e.scope,e.scope)}}(this))),this.scope.$on("$destroy",function(){return s()}),t.info(this)}return e(o,r),o.include(n),o.include(i),o}(r)}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapSearchBoxParentModel",["uiGmapBaseObject","uiGmapLogger","uiGmapEventsHelper",function(i,r,o){var a;return a=function(i){function a(n,i,o,a,s,u,l){var c;return this.scope=n,this.element=i,this.attrs=o,this.gMap=a,this.ctrlPosition=s,this.template=u,this.$log=null!=l?l:r,this.setVisibility=e(this.setVisibility,this),this.getBounds=e(this.getBounds,this),this.setBounds=e(this.setBounds,this),this.createSearchBox=e(this.createSearchBox,this),this.addToParentDiv=e(this.addToParentDiv,this),this.addAsMapControl=e(this.addAsMapControl,this),this.init=e(this.init,this),null==this.attrs.template?void this.$log.error("template attribute for the search-box directive is mandatory. Places Search Box creation aborted!!"):(t.isUndefined(this.scope.options)&&(this.scope.options={},this.scope.options.visible=!0),t.isUndefined(this.scope.options.visible)&&(this.scope.options.visible=!0),t.isUndefined(this.scope.options.autocomplete)&&(this.scope.options.autocomplete=!1),this.visible=this.scope.options.visible,this.autocomplete=this.scope.options.autocomplete,c=t.element("<div></div>"),c.append(this.template),this.input=c.find("input")[0],void this.init())}return n(a,i),a.include(o),a.prototype.init=function(){return this.createSearchBox(),this.scope.$watch("options",function(e){return function(n,i){if(t.isObject(n)&&(null!=n.bounds&&e.setBounds(n.bounds),null!=n.visible&&e.visible!==n.visible))return e.setVisibility(n.visible)}}(this),!0),null!=this.attrs.parentdiv?this.addToParentDiv():this.addAsMapControl(),this.visible||this.setVisibility(this.visible),this.autocomplete?this.listener=google.maps.event.addListener(this.gObject,"place_changed",function(e){return function(){return e.places=e.gObject.getPlace()}}(this)):this.listener=google.maps.event.addListener(this.gObject,"places_changed",function(e){return function(){return e.places=e.gObject.getPlaces()}}(this)),this.listeners=this.setEvents(this.gObject,this.scope,this.scope),this.$log.info(this),this.scope.$on("$stateChangeSuccess",function(e){return function(){if(null!=e.attrs.parentdiv)return e.addToParentDiv()}}(this)),this.scope.$on("$destroy",function(e){return function(){return e.gObject=null}}(this))},a.prototype.addAsMapControl=function(){return this.gMap.controls[google.maps.ControlPosition[this.ctrlPosition]].push(this.input)},a.prototype.addToParentDiv=function(){var e;if(this.parentDiv=t.element(document.getElementById(this.scope.parentdiv)),null!=(e=this.parentDiv)?e.length:void 0)return this.parentDiv.append(this.input)},a.prototype.createSearchBox=function(){return this.autocomplete?this.gObject=new google.maps.places.Autocomplete(this.input,this.scope.options):this.gObject=new google.maps.places.SearchBox(this.input,this.scope.options)},a.prototype.setBounds=function(e){if(t.isUndefined(e.isEmpty))this.$log.error("Error: SearchBoxParentModel setBounds. Bounds not an instance of LatLngBounds.");else if(e.isEmpty()===!1&&null!=this.gObject)return this.gObject.setBounds(e)},a.prototype.getBounds=function(){return this.gObject.getBounds()},a.prototype.setVisibility=function(e){return null!=this.attrs.parentdiv?e===!1?this.parentDiv.addClass("ng-hide"):this.parentDiv.removeClass("ng-hide"):e===!1?this.gMap.controls[google.maps.ControlPosition[this.ctrlPosition]].clear():this.gMap.controls[google.maps.ControlPosition[this.ctrlPosition]].push(this.input),this.visible=e},a}(i)}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapWindowsParentModel",["uiGmapIWindowParentModel","uiGmapModelsWatcher","uiGmapPropMap","uiGmapWindowChildModel","uiGmapLinked","uiGmap_async","uiGmapLogger","$timeout","$compile","$http","$templateCache","$interpolate","uiGmapPromise","uiGmapIWindow","uiGmapGmapUtil",function(i,r,o,a,s,u,l,c,p,d,f,h,g,m,v){var y;return y=function(i){function y(t,n,i,r,a,u){this.gMap=a,this.markersScope=u,this.modelKeyComparison=e(this.modelKeyComparison,this),this.interpolateContent=e(this.interpolateContent,this),this.setChildScope=e(this.setChildScope,this),this.createWindow=e(this.createWindow,this),this.setContentKeys=e(this.setContentKeys,this),this.pieceMeal=e(this.pieceMeal,this),this.createAllNew=e(this.createAllNew,this),this.watchIdKey=e(this.watchIdKey,this),this.createChildScopes=e(this.createChildScopes,this),this.watchOurScope=e(this.watchOurScope,this),this.watchDestroy=e(this.watchDestroy,this),this.onDestroy=e(this.onDestroy,this),this.rebuildAll=e(this.rebuildAll,this),this.doINeedToWipe=e(this.doINeedToWipe,this),this.watchModels=e(this.watchModels,this),this.go=e(this.go,this),y.__super__.constructor.call(this,t,n,i,r,c,p,d,f),this["interface"]=m,this.plurals=new o,_.each(m.scopeKeys,function(e){return function(t){return e[t+"Key"]=void 0}}(this)),this.linked=new s(t,n,i,r),this.contentKeys=void 0,this.isIconVisibleOnClick=void 0,this.firstTime=!0,this.firstWatchModels=!0,this.$log.info(self),this.parentScope=void 0,this.go(t)}return n(y,i),y.include(r),y.prototype.go=function(e){return this.watchOurScope(e),this.doRebuildAll=null!=this.scope.doRebuildAll&&this.scope.doRebuildAll,e.$watch("doRebuildAll",function(e){return function(t,n){if(t!==n)return e.doRebuildAll=t}}(this)),this.createChildScopes()},y.prototype.watchModels=function(e){var t;return t=null!=this.markersScope?"pluralsUpdate":"models",e.$watch(t,function(t){return function(n,i){var r;if(!_.isEqual(n,i)||t.firstWatchModels)return t.firstWatchModels=!1,t.doRebuildAll||t.doINeedToWipe(e.models)?t.rebuildAll(e,!0,!0):(r=0===t.plurals.length,null!=t.existingPieces?_.last(t.existingPieces._content).then(function(){return t.createChildScopes(r)}):t.createChildScopes(r))}}(this),!0)},y.prototype.doINeedToWipe=function(e){var t;return t=null==e||0===e.length,this.plurals.length>0&&t},y.prototype.rebuildAll=function(e,t,n){return this.onDestroy(n).then(function(e){return function(){if(t)return e.createChildScopes()}}(this))},y.prototype.onDestroy=function(e){return y.__super__.onDestroy.call(this,this.scope),u.promiseLock(this,g.promiseTypes["delete"],void 0,void 0,function(e){return function(){return u.each(e.plurals.values(),function(e){return e.destroy(!0)},u.chunkSizeFrom(e.scope.cleanchunk,!1)).then(function(){var t;return null!=(t=e.plurals)?t.removeAll():void 0})}}(this))},y.prototype.watchDestroy=function(e){return e.$on("$destroy",function(t){return function(){return t.firstWatchModels=!0,t.firstTime=!0,t.rebuildAll(e,!1,!0)}}(this))},y.prototype.watchOurScope=function(e){return _.each(m.scopeKeys,function(t){return function(n){var i;return i=n+"Key",t[i]="function"==typeof e[n]?e[n]():e[n]}}(this))},y.prototype.createChildScopes=function(e){var n,i,r;return null==e&&(e=!0),this.isIconVisibleOnClick=!0,t.isDefined(this.linked.attrs.isiconvisibleonclick)&&(this.isIconVisibleOnClick=this.linked.scope.isIconVisibleOnClick),n=t.isUndefined(this.linked.scope.models),!n||void 0!==this.markersScope&&void 0!==(null!=(i=this.markersScope)?i.plurals:void 0)&&void 0!==(null!=(r=this.markersScope)?r.models:void 0)?null!=this.gMap?null!=this.linked.scope.models?(this.watchIdKey(this.linked.scope),e?this.createAllNew(this.linked.scope,!1):this.pieceMeal(this.linked.scope,!1)):(this.parentScope=this.markersScope,this.watchIdKey(this.parentScope),e?this.createAllNew(this.markersScope,!0,"plurals",!1):this.pieceMeal(this.markersScope,!0,"plurals",!1)):void 0:void this.$log.error("No models to create windows from! Need direct models or models derived from markers!")},y.prototype.watchIdKey=function(e){return this.setIdKey(e),e.$watch("idKey",function(t){return function(n,i){if(n!==i&&null==n)return t.idKey=n,t.rebuildAll(e,!0,!0)}}(this))},y.prototype.createAllNew=function(e,t,n,i){var r;if(null==n&&(n="models"),null==i&&(i=!1),this.firstTime&&(this.watchModels(e),this.watchDestroy(e)),this.setContentKeys(e.models),!this.didQueueInitPromise(this,e))return r=null,u.promiseLock(this,g.promiseTypes.create,"createAllNew",function(e){return r=e},function(i){return function(){return u.each(e.models,function(o){var a,s;return a=t&&null!=(s=i.getItem(e,n,o[i.idKey]))?s.gObject:void 0,r||(!a&&i.markersScope&&l.error("Unable to get gMarker from markersScope!"),i.createWindow(o,a,i.gMap)),r},u.chunkSizeFrom(e.chunk)).then(function(){return i.firstTime=!1})}}(this))},y.prototype.pieceMeal=function(e,t,n,i){var r,o;if(null==n&&(n="models"),null==i&&(i=!0),!e.$$destroyed)return r=null,o=null,null!=e&&this.modelsLength()&&this.plurals.length?u.promiseLock(this,g.promiseTypes.update,"pieceMeal",function(e){return r=e},function(t){return function(){return g.promise(function(){return t.figureOutState(t.idKey,e,t.plurals,t.modelKeyComparison)}).then(function(n){return o=n,u.each(o.removals,function(e){
  if(null!=e)return t.plurals.remove(e.id),null!=e.destroy&&e.destroy(!0),r},u.chunkSizeFrom(e.chunk))}).then(function(){return u.each(o.adds,function(i){var o,a;if(o=null!=(a=t.getItem(e,n,i[t.idKey]))?a.gObject:void 0,!o)throw"Gmarker undefined";return t.createWindow(i,o,t.gMap),r})}).then(function(){return u.each(o.updates,function(e){return t.updateChild(e.child,e.model),r},u.chunkSizeFrom(e.chunk))})}}(this)):(l.debug("pieceMeal: rebuildAll"),this.rebuildAll(this.scope,!0,!0))},y.prototype.setContentKeys=function(e){if(this.modelsLength(e))return this.contentKeys=Object.keys(e[0])},y.prototype.createWindow=function(e,t,n){var i,r,o,s,u,l;return r=this.linked.scope.$new(!1),this.setChildScope(r,e),r.$watch("model",function(e){return function(t,n){if(t!==n)return e.setChildScope(r,t)}}(this),!0),o={html:function(t){return function(){return t.interpolateContent(t.linked.element.html(),e)}}(this)},this.DEFAULTS=this.scopeOrModelVal(this.optionsKey,this.scope,e)||{},s=this.createWindowOptions(t,r,o.html(),this.DEFAULTS),i=new a({model:e,scope:r,opts:s,isIconVisibleOnClick:this.isIconVisibleOnClick,gMap:n,markerScope:null!=(u=this.markersScope)&&null!=(l=u.plurals.get(e[this.idKey]))?l.scope:void 0,element:o,needToManualDestroy:!1,markerIsVisibleAfterWindowClose:!0,isScopeModel:!0}),null==e[this.idKey]?void this.$log.error("Window model has no id to assign a child to. This is required for performance. Please assign id, or redirect id to a different key."):(this.plurals.put(e[this.idKey],i),i)},y.prototype.setChildScope=function(e,t){return _.each(m.scopeKeys,function(n){return function(i){var r,o;if(r=i+"Key",o="self"===n[r]?t:t[n[r]],o!==e[i])return e[i]=o}}(this)),e.model=t},y.prototype.interpolateContent=function(e,t){var n,i,r,o,a,s;if(void 0!==this.contentKeys&&0!==this.contentKeys.length){for(n=h(e),r={},s=this.contentKeys,i=0,a=s.length;i<a;i++)o=s[i],r[o]=t[o];return n(r)}},y.prototype.modelKeyComparison=function(e,t){var n,i;if(i=null!=this.scope.coords?this.scope:this.parentScope,null==i)throw"No scope or parentScope set!";return(n=v.equalCoords(this.evalModelHandle(e,i.coords),this.evalModelHandle(t,i.coords)))?n=_.every(_.without(this["interface"].scopeKeys,"coords"),function(n){return function(r){return n.evalModelHandle(e,i[r])===n.evalModelHandle(t,i[r])}}(this)):n},y}(i)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapCircle",["uiGmapICircle","uiGmapCircleParentModel",function(e,t){return _.extend(e,{link:function(e,n,i,r){return r.getScope().deferred.promise.then(function(r){return new t(e,n,i,r)})}})}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapControl",["uiGmapIControl","$http","$templateCache","$compile","$controller","uiGmapGoogleMapApi",function(i,r,o,a,s,u){var l;return l=function(l){function c(){this.link=e(this.link,this),c.__super__.constructor.call(this)}return n(c,l),c.prototype.link=function(e,n,l,c){return u.then(function(n){return function(u){var l,p;return t.isUndefined(e.template)?void n.$log.error("mapControl: could not find a valid template property"):(l=t.isDefined(e.index&&!isNaN(parseInt(e.index)))?parseInt(e.index):void 0,p=t.isDefined(e.position)?e.position.toUpperCase().replace(/-/g,"_"):"TOP_CENTER",u.ControlPosition[p]?i.mapPromise(e,c).then(function(i){var u,c;return u=void 0,c=t.element("<div></div>"),r.get(e.template,{cache:o}).success(function(n){var i,r;if(r=e.$new(),c.append(n),t.isDefined(e.controller)&&(i=s(e.controller,{$scope:r}),c.children().data("$ngControllerController",i)),u=a(c.children())(r),l)return u[0].index=l}).error(function(e){return n.$log.error("mapControl: template could not be found")}).then(function(){return i.controls[google.maps.ControlPosition[p]].push(u[0])})}):void n.$log.error("mapControl: invalid position property"))}}(this))},c}(i)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").service("uiGmapDragZoom",["uiGmapCtrlHandle","uiGmapPropertyAction",function(e,t){return{restrict:"EMA",transclude:!0,template:'<div class="angular-google-map-dragzoom" ng-transclude style="display: none"></div>',require:"^uiGmapGoogleMap",scope:{keyboardkey:"=",options:"=",spec:"="},controller:["$scope","$element",function(t,n){return t.ctrlType="uiGmapDragZoom",_.extend(this,e.handle(t,n))}],link:function(n,i,r,o){return e.mapPromise(n,o).then(function(e){var i,r,o;return i=function(t){return e.enableKeyDragZoom(t)},r=new t(function(e,t){return t?i({key:t}):i()}),o=new t(function(e,t){if(t)return i(t)}),n.$watch("keyboardkey",r.sic("keyboardkey")),r.sic(n.keyboardkey),n.$watch("options",o.sic("options")),o.sic(n.options)})}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapDrawingManager",["uiGmapIDrawingManager","uiGmapDrawingManagerParentModel",function(e,t){return _.extend(e,{link:function(e,n,i,r){return r.getScope().deferred.promise.then(function(r){return new t(e,n,i,r)})}})}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapApiFreeDrawPolygons",["uiGmapLogger","uiGmapBaseObject","uiGmapCtrlHandle","uiGmapDrawFreeHandChildModel","uiGmapLodash",function(t,i,r,o,a){var s;return s=function(i){function s(){return this.link=e(this.link,this),s.__super__.constructor.apply(this,arguments)}return n(s,i),s.include(r),s.prototype.restrict="EMA",s.prototype.replace=!0,s.prototype.require="^uiGmapGoogleMap",s.prototype.scope={polygons:"=",draw:"="},s.prototype.link=function(e,n,i,r){return this.mapPromise(e,r).then(function(n){return function(n){var i,s;return e.polygons?_.isArray(e.polygons)?(i=new o(n,r.getScope()),s=void 0,e.draw=function(){return"function"==typeof s&&s(),i.engage(e.polygons).then(function(){var t;return t=!0,s=e.$watchCollection("polygons",function(e,n){var i;return t||e===n?void(t=!1):(i=a.differenceObjects(n,e),i.forEach(function(e){return e.setMap(null)}))})})}):t.error("Free Draw Polygons must be of type Array!"):t.error("No polygons to bind to!")}}(this))},s}(i)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").service("uiGmapICircle",[function(){var e;return e={},{restrict:"EA",replace:!0,require:"^uiGmapGoogleMap",scope:{center:"=center",radius:"=radius",stroke:"=stroke",fill:"=fill",clickable:"=",draggable:"=",editable:"=",geodesic:"=",icons:"=icons",visible:"=",events:"=",control:"=",zIndex:"=zindex"}}}])}.call(this),function(){var e=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIControl",["uiGmapBaseObject","uiGmapLogger","uiGmapCtrlHandle",function(t,n,i){var r;return r=function(t){function r(){this.restrict="EA",this.replace=!0,this.require="^uiGmapGoogleMap",this.scope={template:"@template",position:"@position",controller:"@controller",index:"@index"},this.$log=n}return e(r,t),r.extend(i),r.prototype.link=function(e,t,n,i){throw new Exception("Not implemented!!")},r}(t)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").service("uiGmapIDrawingManager",[function(){return{restrict:"EA",replace:!0,require:"^uiGmapGoogleMap",scope:{"static":"@",control:"=",options:"=",events:"="}}}])}.call(this),function(){var e=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIMarker",["uiGmapBaseObject","uiGmapCtrlHandle",function(t,n){var i;return i=function(t){function i(){this.restrict="EMA",this.require="^uiGmapGoogleMap",this.priority=-1,this.transclude=!0,this.replace=!0,this.scope=_.extend(this.scope||{},i.scope)}return e(i,t),i.scope={coords:"=coords",icon:"=icon",click:"&click",options:"=options",events:"=events",fit:"=fit",idKey:"=idkey",control:"=control"},i.scopeKeys=_.keys(i.scope),i.keys=i.scopeKeys,i.extend(n),i}(t)}])}.call(this),function(){var e=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIPolygon",["uiGmapGmapUtil","uiGmapBaseObject","uiGmapLogger","uiGmapCtrlHandle",function(t,n,i,r){var o;return o=function(n){function o(){}return e(o,n),o.scope={path:"=path",stroke:"=stroke",clickable:"=",draggable:"=",editable:"=",geodesic:"=",fill:"=",icons:"=icons",visible:"=","static":"=",events:"=",zIndex:"=zindex",fit:"=",control:"=control"},o.scopeKeys=_.keys(o.scope),o.include(t),o.extend(r),o.prototype.restrict="EMA",o.prototype.replace=!0,o.prototype.require="^uiGmapGoogleMap",o.prototype.scope=o.scope,o.prototype.DEFAULTS={},o.prototype.$log=i,o}(n)}])}.call(this),function(){var e=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIPolyline",["uiGmapGmapUtil","uiGmapBaseObject","uiGmapLogger","uiGmapCtrlHandle",function(t,n,i,r){var o;return o=function(n){function o(){}return e(o,n),o.scope={path:"=",stroke:"=",clickable:"=",draggable:"=",editable:"=",geodesic:"=",icons:"=",visible:"=","static":"=",fit:"=",events:"=",zIndex:"=zindex"},o.scopeKeys=_.keys(o.scope),o.include(t),o.extend(r),o.prototype.restrict="EMA",o.prototype.replace=!0,o.prototype.require="^uiGmapGoogleMap",o.prototype.scope=o.scope,o.prototype.DEFAULTS={},o.prototype.$log=i,o}(n)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").service("uiGmapIRectangle",[function(){var e;return e={},{restrict:"EMA",require:"^uiGmapGoogleMap",replace:!0,scope:{bounds:"=",stroke:"=",clickable:"=",draggable:"=",editable:"=",fill:"=",visible:"=",events:"="}}}])}.call(this),function(){var e=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIWindow",["uiGmapBaseObject","uiGmapChildEvents","uiGmapCtrlHandle",function(t,n,i){var r;return r=function(t){function r(){this.restrict="EMA",this.template=void 0,this.transclude=!0,this.priority=-100,this.require="^uiGmapGoogleMap",this.replace=!0,this.scope=_.extend(this.scope||{},r.scope)}return e(r,t),r.scope={coords:"=coords",template:"=template",templateUrl:"=templateurl",templateParameter:"=templateparameter",isIconVisibleOnClick:"=isiconvisibleonclick",closeClick:"&closeclick",options:"=options",control:"=control",show:"=show"},r.scopeKeys=_.keys(r.scope),r.include(n),r.extend(i),r}(t)}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapMap",["$timeout","$q","$log","uiGmapGmapUtil","uiGmapBaseObject","uiGmapCtrlHandle","uiGmapIsReady","uiGmapuuid","uiGmapExtendGWin","uiGmapExtendMarkerClusterer","uiGmapGoogleMapsUtilV3","uiGmapGoogleMapApi","uiGmapEventsHelper","uiGmapGoogleMapObjectManager",function(i,r,o,a,s,u,l,c,p,d,f,h,g,m){var v,y,b;return v=void 0,b=[f,p,d],y=function(r){function s(){this.link=e(this.link,this);var t;t=function(e){var t,n;return n=void 0,e.$on("$destroy",function(){return l.decrement()}),t=u.handle(e),e.ctrlType="Map",e.deferred.promise.then(function(){return b.forEach(function(e){return e.init()})}),t.getMap=function(){return e.map},n=_.extend(this,t)},this.controller=["$scope",t]}return n(s,r),s.include(a),s.prototype.restrict="EMA",s.prototype.transclude=!0,s.prototype.replace=!1,s.prototype.template='<div class="angular-google-map"><div class="angular-google-map-container">\n</div><div ng-transclude style="display: none"></div></div>',s.prototype.scope={center:"=",zoom:"=",dragging:"=",control:"=",options:"=",events:"=",eventOpts:"=",styles:"=",bounds:"=",update:"="},s.prototype.link=function(e,n,r){var a,s;return a=[],e.$on("$destroy",function(){if(g.removeEvents(a),"true"===r.recycleMapInstance&&e.map)return m.recycleMapInstance(e.map),e.map=null}),e.idleAndZoomChanged=!1,null==e.center?void(s=e.$watch("center",function(t){return function(){if(e.center)return s(),t.link(e,n,r)}}(this))):h.then(function(s){return function(u){var p,d,f,h,y,b,$,w,k,x,C,A,M,S,D,T,E;if(v={mapTypeId:u.MapTypeId.ROADMAP},S=l.spawn(),A=function(){return S.deferred.resolve({instance:S.instance,map:p})},!s.validateCoords(e.center))return void o.error("angular-google-maps: could not find a valid center property");if(!t.isDefined(e.zoom))return void o.error("angular-google-maps: map zoom property not set");if(y=t.element(n),y.addClass("angular-google-map"),x={options:{}},r.options&&(x.options=e.options),r.styles&&(x.styles=e.styles),r.type&&(D=r.type.toUpperCase(),google.maps.MapTypeId.hasOwnProperty(D)?x.mapTypeId=google.maps.MapTypeId[r.type.toUpperCase()]:o.error("angular-google-maps: invalid map type '"+r.type+"'")),w=t.extend({},v,x,{center:s.getCoords(e.center),zoom:e.zoom,bounds:e.bounds}),p="true"===r.recycleMapInstance?m.createMapInstance(y.find("div")[1],w):new google.maps.Map(y.find("div")[1],w),p.uiGmap_id=c.generate(),h=!1,a.push(google.maps.event.addListenerOnce(p,"idle",function(){return e.deferred.resolve(p),A()})),f=r.events&&null!=(null!=(C=e.events)?C.blacklist:void 0)?e.events.blacklist:[],_.isString(f)&&(f=[f]),k=function(t,n,i){if(!_.includes(f,t))return i&&i(),a.push(google.maps.event.addListener(p,t,function(){var t;if(!(null!=(t=e.update)?t.lazy:void 0))return n()}))},_.includes(f,"all")||(k("dragstart",function(){return h=!0,e.$evalAsync(function(e){if(null!=e.dragging)return e.dragging=h})}),k("dragend",function(){return h=!1,e.$evalAsync(function(e){if(null!=e.dragging)return e.dragging=h})}),T=function(n,i){if(null==n&&(n=p.center),null==i&&(i=e),!_.includes(f,"center"))if(t.isDefined(i.center.type)){if(i.center.coordinates[1]!==n.lat()&&(i.center.coordinates[1]=n.lat()),i.center.coordinates[0]!==n.lng())return i.center.coordinates[0]=n.lng()}else if(i.center.latitude!==n.lat()&&(i.center.latitude=n.lat()),i.center.longitude!==n.lng())return i.center.longitude=n.lng()},M=!1,k("idle",function(){var t,n,i;return t=p.getBounds(),n=t.getNorthEast(),i=t.getSouthWest(),M=!0,e.$evalAsync(function(t){return T(),_.isUndefined(t.bounds)||_.includes(f,"bounds")||(t.bounds.northeast={latitude:n.lat(),longitude:n.lng()},t.bounds.southwest={latitude:i.lat(),longitude:i.lng()}),_.includes(f,"zoom")||(t.zoom=p.zoom,e.idleAndZoomChanged=!e.idleAndZoomChanged),M=!1})})),t.isDefined(e.events)&&null!==e.events&&t.isObject(e.events)){$=function(t){return function(){return e.events[t].apply(e,[p,t,arguments])}},d=[];for(b in e.events)e.events.hasOwnProperty(b)&&t.isFunction(e.events[b])&&d.push(google.maps.event.addListener(p,b,$(b)));a.concat(d)}return p.getOptions=function(){return w},e.map=p,null!=r.control&&null!=e.control&&(e.control.refresh=function(e){var t,n,i;if(null!=p)return null!=("undefined"!=typeof google&&null!==google&&null!=(n=google.maps)&&null!=(i=n.event)?i.trigger:void 0)&&null!=p&&google.maps.event.trigger(p,"resize"),null!=(null!=e?e.latitude:void 0)&&null!=(null!=e?e.longitude:void 0)?(t=s.getCoords(e),s.isTrue(r.pan)?p.panTo(t):p.setCenter(t)):void 0},e.control.getGMap=function(){return p},e.control.getMapOptions=function(){return w},e.control.getCustomEventListeners=function(){return d},e.control.removeEvents=function(e){return g.removeEvents(e)}),e.$watch("center",function(t,n){var i;if(t!==n&&!M&&(i=s.getCoords(e.center),i.lat()!==p.center.lat()||i.lng()!==p.center.lng()))return h?void 0:(s.validateCoords(t)||o.error("Invalid center for newValue: "+JSON.stringify(t)),s.isTrue(r.pan)&&e.zoom===p.zoom?p.panTo(i):p.setCenter(i))},!0),E=null,e.$watch("zoom",function(t,n){var r,o;if(null!=t&&!_.isEqual(t,n)&&(null!=p?p.getZoom():void 0)!==(null!=e?e.zoom:void 0)&&!M)return null!=E&&i.cancel(E),E=i(function(){return p.setZoom(t)},(null!=(r=e.eventOpts)&&null!=(o=r.debounce)?o.zoomMs:void 0)+20,!1)}),e.$watch("bounds",function(e,t){var n,i,r,a,s,u,l;if(e!==t)return null==(null!=e&&null!=(r=e.northeast)?r.latitude:void 0)||null==(null!=e&&null!=(a=e.northeast)?a.longitude:void 0)||null==(null!=e&&null!=(s=e.southwest)?s.latitude:void 0)||null==(null!=e&&null!=(u=e.southwest)?u.longitude:void 0)?void o.error("Invalid map bounds for new value: "+JSON.stringify(e)):(i=new google.maps.LatLng(e.northeast.latitude,e.northeast.longitude),l=new google.maps.LatLng(e.southwest.latitude,e.southwest.longitude),n=new google.maps.LatLngBounds(l,i),p.fitBounds(n))}),["options","styles"].forEach(function(t){return e.$watch(t,function(e,n){if(!_.isEqual(e,n))return"options"===t?x.options=e:x.options[t]=e,null!=p?p.setOptions(x):void 0},!0)})}}(this))},s}(s)}])}.call(this),function(){var e=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapMarker",["uiGmapIMarker","uiGmapMarkerChildModel","uiGmapMarkerManager","uiGmapLogger",function(t,n,i,r){var o;return o=function(o){function a(){a.__super__.constructor.call(this),this.template='<span class="angular-google-map-marker" ng-transclude></span>',r.info(this)}return e(a,o),a.prototype.controller=["$scope","$element",function(e,n){return e.ctrlType="Marker",_.extend(this,t.handle(e,n))}],a.prototype.link=function(e,r,o,a){var s;return s=t.mapPromise(e,a),s.then(function(r){var o,a,s;if(o=new i(r),a=_.object(t.keys,t.keys),s=new n({scope:e,model:e,keys:a,gMap:r,doClick:!0,gManager:o,doDrawSelf:!1,trackModel:!1}),s.deferred.promise.then(function(t){return e.deferred.resolve(t)}),null!=e.control)return e.control.getGMarkers=o.getGMarkers}),e.$on("$destroy",function(){var e;return"undefined"!=typeof e&&null!==e&&e.clear(),e=null})},a}(t)}])}.call(this),function(){var e=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapMarkers",["uiGmapIMarker","uiGmapPlural","uiGmapMarkersParentModel","uiGmap_sync","uiGmapLogger",function(t,n,i,r,o){var a;return a=function(r){function a(){a.__super__.constructor.call(this),this.template='<span class="angular-google-map-markers" ng-transclude></span>',n.extend(this,{doCluster:"=?docluster",clusterOptions:"=clusteroptions",clusterEvents:"=clusterevents",modelsByRef:"=modelsbyref",type:"=?type",typeOptions:"=?typeoptions",typeEvents:"=?typeevents"}),o.info(this)}return e(a,r),a.prototype.controller=["$scope","$element",function(e,n){return e.ctrlType="Markers",_.extend(this,t.handle(e,n))}],a.prototype.link=function(e,r,o,a){var s,u;return s=void 0,u=function(){return e.deferred.resolve()},t.mapPromise(e,a).then(function(t){var l;return l=a.getScope(),l.$watch("idleAndZoomChanged",function(){return _.defer(s.gManager.draw)}),s=new i(e,r,o,t),n.link(e,s),null!=e.control&&(e.control.getGMarkers=function(){var e;return null!=(e=s.gManager)?e.getGMarkers():void 0},e.control.getChildMarkers=function(){return s.plurals}),_.last(s.existingPieces._content).then(function(){return u()})})},a}(t)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").service("uiGmapPlural",[function(){var e;return e=function(e,t){if(null!=e.control)return e.control.updateModels=function(n){return e.models=n,t.createChildScopes(!1)},e.control.newModels=function(n){return e.models=n,t.rebuildAll(e,!0,!0)},e.control.clean=function(){return t.rebuildAll(e,!1,!0)},e.control.getPlurals=function(){return t.plurals},e.control.getManager=function(){return t.gManager},e.control.hasManager=function(){return null!=t.gManager==!0},e.control.managerDraw=function(){var t;if(e.control.hasManager())return null!=(t=e.control.getManager())?t.draw():void 0}},{extend:function(e,t){return _.extend(e.scope||{},t||{},{idKey:"=idkey",doRebuildAll:"=dorebuildall",models:"=models",chunk:"=chunk",cleanchunk:"=cleanchunk",control:"=control"})},link:function(t,n){return e(t,n)}}}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolygon",["uiGmapIPolygon","$timeout","uiGmapPolygonChildModel",function(t,i,r){var o;return o=function(i){function o(){return this.link=e(this.link,this),o.__super__.constructor.apply(this,arguments)}return n(o,i),o.prototype.link=function(e,n,i,o){var a,s;return a=[],s=t.mapPromise(e,o),null!=e.control&&(e.control.getInstance=this,e.control.polygons=a,e.control.promise=s),s.then(function(t){return function(n){return a.push(new r({scope:e,attrs:i,gMap:n,defaults:t.DEFAULTS}))}}(this))},o}(t)}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolygons",["uiGmapIPolygon","$timeout","uiGmapPolygonsParentModel","uiGmapPlural",function(i,r,o,a){var s;return s=function(i){function r(){this.link=e(this.link,this),r.__super__.constructor.call(this),a.extend(this),this.$log.info(this)}return n(r,i),r.prototype.link=function(e,n,i,r){return r.getScope().deferred.promise.then(function(r){return function(s){return(t.isUndefined(e.path)||null===e.path)&&r.$log.warn("polygons: no valid path attribute found"),e.models||r.$log.warn("polygons: no models found to create from"),a.link(e,new o(e,n,i,s,r.DEFAULTS))}}(this))},r}(i)}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolyline",["uiGmapIPolyline","$timeout","uiGmapPolylineChildModel",function(i,r,o){var a;return a=function(r){function a(){return this.link=e(this.link,this),a.__super__.constructor.apply(this,arguments)}return n(a,r),a.prototype.link=function(e,n,r,a){return i.mapPromise(e,a).then(function(n){return function(i){return!t.isUndefined(e.path)&&null!==e.path&&n.validatePath(e.path)||n.$log.warn("polyline: no valid path attribute found"),new o({scope:e,attrs:r,gMap:i,defaults:n.DEFAULTS})}}(this))},a}(i)}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolylines",["uiGmapIPolyline","$timeout","uiGmapPolylinesParentModel","uiGmapPlural",function(i,r,o,a){var s;return s=function(i){function r(){this.link=e(this.link,this),r.__super__.constructor.call(this),a.extend(this),this.$log.info(this)}return n(r,i),r.prototype.link=function(e,n,i,r){return r.getScope().deferred.promise.then(function(r){return function(s){return(t.isUndefined(e.path)||null===e.path)&&r.$log.warn("polylines: no valid path attribute found"),e.models||r.$log.warn("polylines: no models found to create from"),a.link(e,new o(e,n,i,s,r.DEFAULTS))}}(this))},r}(i)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapRectangle",["uiGmapLogger","uiGmapGmapUtil","uiGmapIRectangle","uiGmapRectangleParentModel",function(e,t,n,i){return _.extend(n,{link:function(e,t,n,r){return r.getScope().deferred.promise.then(function(r){return new i(e,t,n,r)})}})}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapWindow",["uiGmapIWindow","uiGmapGmapUtil","uiGmapWindowChildModel","uiGmapLodash","uiGmapLogger",function(i,r,o,a,s){var u;return u=function(u){function l(){this.link=e(this.link,this),l.__super__.constructor.call(this),this.require=["^uiGmapGoogleMap","^?uiGmapMarker"],this.template='<span class="angular-google-maps-window" ng-transclude></span>',s.debug(this),this.childWindows=[]}return n(l,u),l.include(r),l.prototype.link=function(e,n,r,o){var a,s;return a=o.length>1&&null!=o[1]?o[1]:void 0,s=null!=a?a.getScope():void 0,this.mapPromise=i.mapPromise(e,o[0]),this.mapPromise.then(function(i){return function(o){var u;return u=!0,t.isDefined(r.isiconvisibleonclick)&&(u=e.isIconVisibleOnClick),a?s.deferred.promise.then(function(t){return i.init(e,n,u,o,s)}):void i.init(e,n,u,o)}}(this))},l.prototype.init=function(e,t,n,i,r){var s,u,l,c,p;if(u=null!=e.options?e.options:{},c=null!=e&&this.validateCoords(e.coords),null!=(null!=r?r.getGMarker:void 0)&&(l=r.getGMarker()),p=c?this.createWindowOptions(l,e,t.html(),u):u,null!=i&&(s=new o({scope:e,opts:p,isIconVisibleOnClick:n,gMap:i,markerScope:r,element:t}),this.childWindows.push(s),e.$on("$destroy",function(e){return function(){return e.childWindows=a.withoutObjects(e.childWindows,[s],function(e,t){return e.scope.$id===t.scope.$id}),e.childWindows.length=0}}(this))),null!=e.control&&(e.control.getGWindows=function(e){return function(){return e.childWindows.map(function(e){return e.gObject})}}(this),e.control.getChildWindows=function(e){return function(){return e.childWindows}}(this),e.control.getPlurals=e.control.getChildWindows,e.control.showWindow=function(e){return function(){return e.childWindows.map(function(e){return e.showWindow()})}}(this),e.control.hideWindow=function(e){return function(){return e.childWindows.map(function(e){return e.hideWindow()})}}(this)),null!=this.onChildCreation&&null!=s)return this.onChildCreation(s)},l}(i)}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapWindows",["uiGmapIWindow","uiGmapPlural","uiGmapWindowsParentModel","uiGmapPromise","uiGmapLogger",function(t,i,r,o,a){var s;return s=function(t){function s(){this.link=e(this.link,this),s.__super__.constructor.call(this),this.require=["^uiGmapGoogleMap","^?uiGmapMarkers"],this.template='<span class="angular-google-maps-windows" ng-transclude></span>',i.extend(this),a.debug(this)}return n(s,t),s.prototype.link=function(e,t,n,i){var r,a,s;return r=i[0].getScope(),a=i.length>1&&null!=i[1]?i[1]:void 0,s=null!=a?a.getScope():void 0,r.deferred.promise.then(function(r){return function(a){var u,l;return u=(null!=s&&null!=(l=s.deferred)?l.promise:void 0)||o.resolve(),u.then(function(){var o,u;return o=null!=(u=r.parentModel)?u.existingPieces:void 0,o?o.then(function(){return r.init(e,t,n,i,a,s)}):r.init(e,t,n,i,a,s)})}}(this))},s.prototype.init=function(e,t,n,o,a,s){var u;if(u=new r(e,t,n,o,a,s),i.link(e,u),null!=e.control)return e.control.getGWindows=function(){return u.plurals.map(function(e){return e.gObject})},e.control.getChildWindows=function(){return u.plurals}},s}(t)}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapGoogleMap",["uiGmapMap",function(e){return new e}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapMarker",["$timeout","uiGmapMarker",function(e,t){return new t(e)}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapMarkers",["$timeout","uiGmapMarkers",function(e,t){return new t(e)}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapPolygon",["uiGmapPolygon",function(e){return new e}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapCircle",["uiGmapCircle",function(e){return e}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapPolyline",["uiGmapPolyline",function(e){return new e}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapPolylines",["uiGmapPolylines",function(e){return new e}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapRectangle",["uiGmapLogger","uiGmapRectangle",function(e,t){return t}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapWindow",["$timeout","$compile","$http","$templateCache","uiGmapWindow",function(e,t,n,i,r){return new r(e,t,n,i)}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapWindows",["$timeout","$compile","$http","$templateCache","$interpolate","uiGmapWindows",function(e,t,n,i,r,o){return new o(e,t,n,i,r)}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};t.module("uiGmapgoogle-maps").directive("uiGmapLayer",["$timeout","uiGmapLogger","uiGmapLayerParentModel",function(t,n,i){var r;return new(r=function(){function t(){this.link=e(this.link,this),this.$log=n,this.restrict="EMA",this.require="^uiGmapGoogleMap",this.priority=-1,this.transclude=!0,this.template="<span class='angular-google-map-layer' ng-transclude></span>",this.replace=!0,this.scope={show:"=show",type:"=type",namespace:"=namespace",options:"=options",onCreated:"&oncreated"}}return t.prototype.link=function(e,t,n,r){return r.getScope().deferred.promise.then(function(r){return function(r){return null!=e.onCreated?new i(e,t,n,r,e.onCreated):new i(e,t,n,r)}}(this))},t}())}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapMapControl",["uiGmapControl",function(e){return new e}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapDragZoom",["uiGmapDragZoom",function(e){return e}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapDrawingManager",["uiGmapDrawingManager",function(e){return e}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapFreeDrawPolygons",["uiGmapApiFreeDrawPolygons",function(e){return new e}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};t.module("uiGmapgoogle-maps").directive("uiGmapMapType",["$timeout","uiGmapLogger","uiGmapMapTypeParentModel",function(t,n,i){var r;return new(r=function(){function t(){this.link=e(this.link,this),this.$log=n,this.restrict="EMA",this.require="^uiGmapGoogleMap",this.priority=-1,this.transclude=!0,this.template='<span class="angular-google-map-layer" ng-transclude></span>',this.replace=!0,this.scope={show:"=show",options:"=options",refresh:"=refresh",id:"@"}}return t.prototype.link=function(e,t,n,r){return r.getScope().deferred.promise.then(function(r){return function(r){return new i(e,t,n,r)}}(this))},t}())}])}.call(this),
  function(){t.module("uiGmapgoogle-maps").directive("uiGmapPolygons",["uiGmapPolygons",function(e){return new e}])}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};t.module("uiGmapgoogle-maps").directive("uiGmapSearchBox",["uiGmapGoogleMapApi","uiGmapLogger","uiGmapSearchBoxParentModel","$http","$templateCache","$compile",function(n,i,r,o,a,s){var u;return new(u=function(){function u(){this.link=e(this.link,this),this.$log=i,this.restrict="EMA",this.require="^uiGmapGoogleMap",this.priority=-1,this.transclude=!0,this.template="<span class='angular-google-map-search' ng-transclude></span>",this.replace=!0,this.scope={template:"=template",events:"=events",position:"=?position",options:"=?options",parentdiv:"=?parentdiv",ngModel:"=?"}}return u.prototype.require="ngModel",u.prototype.link=function(e,i,u,l){return n.then(function(n){return function(c){return null==e.template&&(a.put("uigmap-searchbox-default.tpl.html",'<input type="text">'),e.template="uigmap-searchbox-default.tpl.html"),o.get(e.template,{cache:a}).success(function(o){return t.isUndefined(e.events)?void n.$log.error("searchBox: the events property is required"):l.getScope().deferred.promise.then(function(a){var l;return l=t.isDefined(e.position)?e.position.toUpperCase().replace(/-/g,"_"):"TOP_LEFT",c.ControlPosition[l]?new r(e,i,u,a,l,s(o)(e)):void n.$log.error("searchBox: invalid position property")})})}}(this))},u}())}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapShow",["$animate","uiGmapLogger",function(e,n){return{scope:{uiGmapShow:"=",uiGmapAfterShow:"&",uiGmapAfterHide:"&"},link:function(i,r){var o,a,s;return o=function(t,n){return e[t](r,"ng-hide").then(function(){return n()})},a=function(t,n){return e[t](r,"ng-hide",n)},s=function(e,i){return t.version.major>1?n.error("uiGmapShow is not supported for Angular Major greater than 1.\nYour Major is "+t.version.major+'"'):1===t.version.major&&t.version.minor<3?a(e,i):o(e,i)},i.$watch("uiGmapShow",function(e){if(e&&s("removeClass",i.uiGmapAfterShow),!e)return s("addClass",i.uiGmapAfterHide)})}}}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapStreetViewPanorama",["uiGmapGoogleMapApi","uiGmapLogger","uiGmapGmapUtil","uiGmapEventsHelper",function(e,n,i,r){var o;return o="uiGmapStreetViewPanorama",{restrict:"EMA",template:'<div class="angular-google-map-street-view-panorama"></div>',replace:!0,scope:{focalcoord:"=",radius:"=?",events:"=?",options:"=?",control:"=?",povoptions:"=?",imagestatus:"="},link:function(a,s,u){return e.then(function(e){return function(e){var u,l,c,p,d,f,h,g,m,v;return g=void 0,v=void 0,c=!1,f=void 0,h=null,m=null,u=function(){if(r.removeEvents(f),null!=g&&(g.unbind("position"),g.setVisible(!1)),null!=v)return null!=(null!=v?v.setVisible:void 0)&&v.setVisible(!1),v=void 0},d=function(e,n){var i;return i=google.maps.geometry.spherical.computeHeading(e,n),c=!0,a.radius=a.radius||50,m=t.extend({heading:i,zoom:1,pitch:0},a.povoptions||{}),h=h=t.extend({navigationControl:!1,addressControl:!1,linksControl:!1,position:e,pov:m,visible:!0},a.options||{}),c=!1},l=function(){var e;return a.focalcoord?a.radius?(u(),null==v&&(v=new google.maps.StreetViewService),a.events&&(f=r.setEvents(v,a,a)),e=i.getCoords(a.focalcoord),v.getPanoramaByLocation(e,a.radius,function(t,n){var i,r,o;if(null!=a.imagestatus&&(a.imagestatus=n),null!=(null!=(o=a.events)?o.image_status_changed:void 0)&&a.events.image_status_changed(v,"image_status_changed",a,n),"OK"===n)return r=t.location.latLng,d(r,e),i=s[0],g=new google.maps.StreetViewPanorama(i,h)})):void n.error(o+": needs a radius to set the camera view from its focal target."):void n.error(o+": focalCoord needs to be defined")},null!=a.control&&(a.control.getOptions=function(){return h},a.control.getPovOptions=function(){return m},a.control.getGObject=function(){return v},a.control.getGPano=function(){return g}),a.$watch("options",function(e,t){if(e!==t&&e!==h&&!c)return l()}),p=!0,a.$watch("focalcoord",function(e,t){if((e!==t||p)&&null!=e)return p=!1,l()}),a.$on("$destroy",function(){return u()})}}(this))}}}])}.call(this),t.module("uiGmapgoogle-maps.wrapped").service("uiGmapuuid",function(){function e(){}return e.generate=function(){var t=e._gri,n=e._ha;return n(t(32),8)+"-"+n(t(16),4)+"-"+n(16384|t(12),4)+"-"+n(32768|t(14),4)+"-"+n(t(48),12)},e._gri=function(e){return 0>e?NaN:30>=e?0|Math.random()*(1<<e):53>=e?(0|1073741824*Math.random())+1073741824*(0|Math.random()*(1<<e-30)):NaN},e._ha=function(e,t){for(var n=e.toString(16),i=t-n.length,r="0";0<i;i>>>=1,r+=r)1&i&&(n=r+n);return n},e}),t.module("uiGmapgoogle-maps.wrapped").service("uiGmapGoogleMapsUtilV3",function(){return{init:_.once(function(){+function(){function t(e){e=e||{},google.maps.OverlayView.apply(this,arguments),this.content_=e.content||"",this.disableAutoPan_=e.disableAutoPan||!1,this.maxWidth_=e.maxWidth||0,this.pixelOffset_=e.pixelOffset||new google.maps.Size(0,0),this.position_=e.position||new google.maps.LatLng(0,0),this.zIndex_=e.zIndex||null,this.boxClass_=e.boxClass||"infoBox",this.boxStyle_=e.boxStyle||{},this.closeBoxMargin_=e.closeBoxMargin||"2px",this.closeBoxURL_=e.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===e.closeBoxURL&&(this.closeBoxURL_=""),this.infoBoxClearance_=e.infoBoxClearance||new google.maps.Size(1,1),"undefined"==typeof e.visible&&("undefined"==typeof e.isHidden?e.visible=!0:e.visible=!e.isHidden),this.isHidden_=!e.visible,this.alignBottom_=e.alignBottom||!1,this.pane_=e.pane||"floatPane",this.enableEventPropagation_=e.enableEventPropagation||!1,this.div_=null,this.closeListener_=null,this.moveListener_=null,this.contextListener_=null,this.eventListeners_=null,this.fixedWidthSet_=null}function i(e,t){e.getMarkerClusterer().extend(i,google.maps.OverlayView),this.cluster_=e,this.className_=e.getMarkerClusterer().getClusterClass(),this.styles_=t,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(e.getMap())}function r(e){this.markerClusterer_=e,this.map_=e.getMap(),this.gridSize_=e.getGridSize(),this.minClusterSize_=e.getMinimumClusterSize(),this.averageCenter_=e.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new i(this,e.getStyles())}function o(e,t,i){this.extend(o,google.maps.OverlayView),t=t||[],i=i||{},this.markers_=[],this.clusters_=[],this.listeners_=[],this.activeMap_=null,this.ready_=!1,this.gridSize_=i.gridSize||60,this.minClusterSize_=i.minimumClusterSize||2,this.maxZoom_=i.maxZoom||null,this.styles_=i.styles||[],this.title_=i.title||"",this.zoomOnClick_=!0,i.zoomOnClick!==n&&(this.zoomOnClick_=i.zoomOnClick),this.averageCenter_=!1,i.averageCenter!==n&&(this.averageCenter_=i.averageCenter),this.ignoreHidden_=!1,i.ignoreHidden!==n&&(this.ignoreHidden_=i.ignoreHidden),this.enableRetinaIcons_=!1,i.enableRetinaIcons!==n&&(this.enableRetinaIcons_=i.enableRetinaIcons),this.imagePath_=i.imagePath||o.IMAGE_PATH,this.imageExtension_=i.imageExtension||o.IMAGE_EXTENSION,this.imageSizes_=i.imageSizes||o.IMAGE_SIZES,this.calculator_=i.calculator||o.CALCULATOR,this.batchSize_=i.batchSize||o.BATCH_SIZE,this.batchSizeIE_=i.batchSizeIE||o.BATCH_SIZE_IE,this.clusterClass_=i.clusterClass||"cluster",navigator.userAgent.toLowerCase().indexOf("msie")!==-1&&(this.batchSize_=this.batchSizeIE_),this.setupStyles_(),this.addMarkers(t,!0),this.setMap(e)}function a(e,t){function n(){}n.prototype=t.prototype,e.superClass_=t.prototype,e.prototype=new n,e.prototype.constructor=e}function s(e,t,n){this.marker_=e,this.handCursorURL_=e.handCursorURL,this.labelDiv_=document.createElement("div"),this.labelDiv_.style.cssText="position: absolute; overflow: hidden;",this.eventDiv_=document.createElement("div"),this.eventDiv_.style.cssText=this.labelDiv_.style.cssText,this.eventDiv_.setAttribute("onselectstart","return false;"),this.eventDiv_.setAttribute("ondragstart","return false;"),this.crossDiv_=s.getSharedCross(t)}function u(e){e=e||{},e.labelContent=e.labelContent||"",e.labelAnchor=e.labelAnchor||new google.maps.Point(0,0),e.labelClass=e.labelClass||"markerLabels",e.labelStyle=e.labelStyle||{},e.labelInBackground=e.labelInBackground||!1,"undefined"==typeof e.labelVisible&&(e.labelVisible=!0),"undefined"==typeof e.raiseOnDrag&&(e.raiseOnDrag=!0),"undefined"==typeof e.clickable&&(e.clickable=!0),"undefined"==typeof e.draggable&&(e.draggable=!1),"undefined"==typeof e.optimized&&(e.optimized=!1),e.crossImage=e.crossImage||"http"+("https:"===document.location.protocol?"s":"")+"://maps.gstatic.com/intl/en_us/mapfiles/drag_cross_67_16.png",e.handCursor=e.handCursor||"http"+("https:"===document.location.protocol?"s":"")+"://maps.gstatic.com/intl/en_us/mapfiles/closedhand_8_8.cur",e.optimized=!1,this.label=new s(this,e.crossImage,e.handCursor),google.maps.Marker.apply(this,arguments)}function l(e){var t=e||{};this.ready_=!1,this.dragging_=!1,e.visible==n&&(e.visible=!0),e.shadow==n&&(e.shadow="7px -3px 5px rgba(88,88,88,0.7)"),e.anchor==n&&(e.anchor=c.BOTTOM),this.setValues(t)}t.prototype=new google.maps.OverlayView,t.prototype.createInfoBoxDiv_=function(){var e,t,n,i=this,r=function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()},o=function(e){e.returnValue=!1,e.preventDefault&&e.preventDefault(),i.enableEventPropagation_||r(e)};if(!this.div_){if(this.div_=document.createElement("div"),this.setBoxStyle_(),"undefined"==typeof this.content_.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+this.content_:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(this.content_)),this.getPanes()[this.pane_].appendChild(this.div_),this.addClickHandler_(),this.div_.style.width?this.fixedWidthSet_=!0:0!==this.maxWidth_&&this.div_.offsetWidth>this.maxWidth_?(this.div_.style.width=this.maxWidth_,this.div_.style.overflow="auto",this.fixedWidthSet_=!0):(n=this.getBoxWidths_(),this.div_.style.width=this.div_.offsetWidth-n.left-n.right+"px",this.fixedWidthSet_=!1),this.panBox_(this.disableAutoPan_),!this.enableEventPropagation_){for(this.eventListeners_=[],t=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],e=0;e<t.length;e++)this.eventListeners_.push(google.maps.event.addDomListener(this.div_,t[e],r));this.eventListeners_.push(google.maps.event.addDomListener(this.div_,"mouseover",function(e){this.style.cursor="default"}))}this.contextListener_=google.maps.event.addDomListener(this.div_,"contextmenu",o),google.maps.event.trigger(this,"domready")}},t.prototype.getCloseBoxImg_=function(){var e="";return""!==this.closeBoxURL_&&(e="<img",e+=" src='"+this.closeBoxURL_+"'",e+=" align=right",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin_+";",e+="'>"),e},t.prototype.addClickHandler_=function(){var e;""!==this.closeBoxURL_?(e=this.div_.firstChild,this.closeListener_=google.maps.event.addDomListener(e,"click",this.getCloseClickHandler_())):this.closeListener_=null},t.prototype.getCloseClickHandler_=function(){var e=this;return function(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation(),google.maps.event.trigger(e,"closeclick"),e.close()}},t.prototype.panBox_=function(e){var t,n,i=0,r=0;if(!e&&(t=this.getMap(),t instanceof google.maps.Map)){t.getBounds().contains(this.position_)||t.setCenter(this.position_),n=t.getBounds();var o=t.getDiv(),a=o.offsetWidth,s=o.offsetHeight,u=this.pixelOffset_.width,l=this.pixelOffset_.height,c=this.div_.offsetWidth,p=this.div_.offsetHeight,d=this.infoBoxClearance_.width,f=this.infoBoxClearance_.height,h=this.getProjection().fromLatLngToContainerPixel(this.position_);if(h.x<-u+d?i=h.x+u-d:h.x+c+u+d>a&&(i=h.x+c+u+d-a),this.alignBottom_?h.y<-l+f+p?r=h.y+l-f-p:h.y+l+f>s&&(r=h.y+l+f-s):h.y<-l+f?r=h.y+l-f:h.y+p+l+f>s&&(r=h.y+p+l+f-s),0!==i||0!==r){t.getCenter();t.panBy(i,r)}}},t.prototype.setBoxStyle_=function(){var e,t;if(this.div_){this.div_.className=this.boxClass_,this.div_.style.cssText="",t=this.boxStyle_;for(e in t)t.hasOwnProperty(e)&&(this.div_.style[e]=t[e]);this.div_.style.WebkitTransform="translateZ(0)","undefined"!=typeof this.div_.style.opacity&&""!==this.div_.style.opacity&&(this.div_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*this.div_.style.opacity+')"',this.div_.style.filter="alpha(opacity="+100*this.div_.style.opacity+")"),this.div_.style.position="absolute",this.div_.style.visibility="hidden",null!==this.zIndex_&&(this.div_.style.zIndex=this.zIndex_)}},t.prototype.getBoxWidths_=function(){var e,t={top:0,bottom:0,left:0,right:0},n=this.div_;return document.defaultView&&document.defaultView.getComputedStyle?(e=n.ownerDocument.defaultView.getComputedStyle(n,""),e&&(t.top=parseInt(e.borderTopWidth,10)||0,t.bottom=parseInt(e.borderBottomWidth,10)||0,t.left=parseInt(e.borderLeftWidth,10)||0,t.right=parseInt(e.borderRightWidth,10)||0)):document.documentElement.currentStyle&&n.currentStyle&&(t.top=parseInt(n.currentStyle.borderTopWidth,10)||0,t.bottom=parseInt(n.currentStyle.borderBottomWidth,10)||0,t.left=parseInt(n.currentStyle.borderLeftWidth,10)||0,t.right=parseInt(n.currentStyle.borderRightWidth,10)||0),t},t.prototype.onRemove=function(){this.div_&&(this.div_.parentNode.removeChild(this.div_),this.div_=null)},t.prototype.draw=function(){this.createInfoBoxDiv_();var e=this.getProjection().fromLatLngToDivPixel(this.position_);this.div_.style.left=e.x+this.pixelOffset_.width+"px",this.alignBottom_?this.div_.style.bottom=-(e.y+this.pixelOffset_.height)+"px":this.div_.style.top=e.y+this.pixelOffset_.height+"px",this.isHidden_?this.div_.style.visibility="hidden":this.div_.style.visibility="visible"},t.prototype.setOptions=function(e){"undefined"!=typeof e.boxClass&&(this.boxClass_=e.boxClass,this.setBoxStyle_()),"undefined"!=typeof e.boxStyle&&(this.boxStyle_=e.boxStyle,this.setBoxStyle_()),"undefined"!=typeof e.content&&this.setContent(e.content),"undefined"!=typeof e.disableAutoPan&&(this.disableAutoPan_=e.disableAutoPan),"undefined"!=typeof e.maxWidth&&(this.maxWidth_=e.maxWidth),"undefined"!=typeof e.pixelOffset&&(this.pixelOffset_=e.pixelOffset),"undefined"!=typeof e.alignBottom&&(this.alignBottom_=e.alignBottom),"undefined"!=typeof e.position&&this.setPosition(e.position),"undefined"!=typeof e.zIndex&&this.setZIndex(e.zIndex),"undefined"!=typeof e.closeBoxMargin&&(this.closeBoxMargin_=e.closeBoxMargin),"undefined"!=typeof e.closeBoxURL&&(this.closeBoxURL_=e.closeBoxURL),"undefined"!=typeof e.infoBoxClearance&&(this.infoBoxClearance_=e.infoBoxClearance),"undefined"!=typeof e.isHidden&&(this.isHidden_=e.isHidden),"undefined"!=typeof e.visible&&(this.isHidden_=!e.visible),"undefined"!=typeof e.enableEventPropagation&&(this.enableEventPropagation_=e.enableEventPropagation),this.div_&&this.draw()},t.prototype.setContent=function(e){this.content_=e,this.div_&&(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.fixedWidthSet_||(this.div_.style.width=""),"undefined"==typeof e.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+e:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(e)),this.fixedWidthSet_||(this.div_.style.width=this.div_.offsetWidth+"px","undefined"==typeof e.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+e:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(e))),this.addClickHandler_()),google.maps.event.trigger(this,"content_changed")},t.prototype.setPosition=function(e){this.position_=e,this.div_&&this.draw(),google.maps.event.trigger(this,"position_changed")},t.prototype.setZIndex=function(e){this.zIndex_=e,this.div_&&(this.div_.style.zIndex=e),google.maps.event.trigger(this,"zindex_changed")},t.prototype.setVisible=function(e){this.isHidden_=!e,this.div_&&(this.div_.style.visibility=this.isHidden_?"hidden":"visible")},t.prototype.getContent=function(){return this.content_},t.prototype.getPosition=function(){return this.position_},t.prototype.getZIndex=function(){return this.zIndex_},t.prototype.getVisible=function(){var e;return e="undefined"!=typeof this.getMap()&&null!==this.getMap()&&!this.isHidden_},t.prototype.show=function(){this.isHidden_=!1,this.div_&&(this.div_.style.visibility="visible")},t.prototype.hide=function(){this.isHidden_=!0,this.div_&&(this.div_.style.visibility="hidden")},t.prototype.open=function(e,t){var n=this;t&&(this.position_=t.getPosition(),this.moveListener_=google.maps.event.addListener(t,"position_changed",function(){n.setPosition(this.getPosition())})),this.setMap(e),this.div_&&this.panBox_()},t.prototype.close=function(){var e;if(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.eventListeners_){for(e=0;e<this.eventListeners_.length;e++)google.maps.event.removeListener(this.eventListeners_[e]);this.eventListeners_=null}this.moveListener_&&(google.maps.event.removeListener(this.moveListener_),this.moveListener_=null),this.contextListener_&&(google.maps.event.removeListener(this.contextListener_),this.contextListener_=null),this.setMap(null)},function(){function t(e,t){var n=this,i=new google.maps.OverlayView;i.onAdd=function(){n.init_(e,t)},i.draw=function(){},i.onRemove=function(){},i.setMap(e),this.prjov_=i}var n=function(e){var t;switch(e){case"thin":t="2px";break;case"medium":t="4px";break;case"thick":t="6px";break;default:t=e}return t},i=function(e){var t,i={};if(document.defaultView&&document.defaultView.getComputedStyle){if(t=e.ownerDocument.defaultView.getComputedStyle(e,""))return i.top=parseInt(t.borderTopWidth,10)||0,i.bottom=parseInt(t.borderBottomWidth,10)||0,i.left=parseInt(t.borderLeftWidth,10)||0,i.right=parseInt(t.borderRightWidth,10)||0,i}else if(document.documentElement.currentStyle&&e.currentStyle)return i.top=parseInt(n(e.currentStyle.borderTopWidth),10)||0,i.bottom=parseInt(n(e.currentStyle.borderBottomWidth),10)||0,i.left=parseInt(n(e.currentStyle.borderLeftWidth),10)||0,i.right=parseInt(n(e.currentStyle.borderRightWidth),10)||0,i;return i.top=parseInt(e.style["border-top-width"],10)||0,i.bottom=parseInt(e.style["border-bottom-width"],10)||0,i.left=parseInt(e.style["border-left-width"],10)||0,i.right=parseInt(e.style["border-right-width"],10)||0,i},r={x:0,y:0},o=function(e){r.x="undefined"!=typeof document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft,r.y="undefined"!=typeof document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop};o();var a=function(t){var n=0,i=0;return t=t||e.event,"undefined"!=typeof t.pageX?(n=t.pageX,i=t.pageY):"undefined"!=typeof t.clientX&&(n=t.clientX+r.x,i=t.clientY+r.y),{left:n,top:i}},s=function(t){for(var n=t.offsetLeft,i=t.offsetTop,r=t.offsetParent;null!==r;){r!==document.body&&r!==document.documentElement&&(n-=r.scrollLeft,i-=r.scrollTop);var o=r,a=o.offsetLeft,s=o.offsetTop;if(!a&&!s&&e.getComputedStyle){var u=document.defaultView.getComputedStyle(o,null).MozTransform||document.defaultView.getComputedStyle(o,null).WebkitTransform;if(u&&"string"==typeof u){var l=u.split(",");a+=parseInt(l[4],10)||0,s+=parseInt(l[5],10)||0}}n+=a,i+=s,r=r.offsetParent}return{left:n,top:i}},u=function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},l=function(e,t){"undefined"!=typeof t&&(e.style.opacity=t),"undefined"!=typeof e.style.opacity&&""!==e.style.opacity&&(e.style.filter="alpha(opacity="+100*e.style.opacity+")")};t.prototype.init_=function(t,n){var r,a=this;for(this.map_=t,n=n||{},this.key_=n.key||"shift",this.key_=this.key_.toLowerCase(),this.borderWidths_=i(this.map_.getDiv()),this.veilDiv_=[],r=0;r<4;r++)this.veilDiv_[r]=document.createElement("div"),this.veilDiv_[r].onselectstart=function(){return!1},u(this.veilDiv_[r].style,{backgroundColor:"gray",opacity:.25,cursor:"crosshair"}),u(this.veilDiv_[r].style,n.paneStyle),u(this.veilDiv_[r].style,n.veilStyle),u(this.veilDiv_[r].style,{position:"absolute",overflow:"hidden",display:"none"}),"shift"===this.key_&&(this.veilDiv_[r].style.MozUserSelect="none"),l(this.veilDiv_[r]),"transparent"===this.veilDiv_[r].style.backgroundColor&&(this.veilDiv_[r].style.backgroundColor="white",l(this.veilDiv_[r],0)),this.map_.getDiv().appendChild(this.veilDiv_[r]);this.noZoom_=n.noZoom||!1,this.visualEnabled_=n.visualEnabled||!1,this.visualClass_=n.visualClass||"",this.visualPosition_=n.visualPosition||google.maps.ControlPosition.LEFT_TOP,this.visualPositionOffset_=n.visualPositionOffset||new google.maps.Size(35,0),this.visualPositionIndex_=n.visualPositionIndex||null,this.visualSprite_=n.visualSprite||"http"+("https:"===document.location.protocol?"s":"")+"://maps.gstatic.com/mapfiles/ftr/controls/dragzoom_btn.png",this.visualSize_=n.visualSize||new google.maps.Size(20,20),this.visualTips_=n.visualTips||{},this.visualTips_.off=this.visualTips_.off||"Turn on drag zoom mode",this.visualTips_.on=this.visualTips_.on||"Turn off drag zoom mode",this.boxDiv_=document.createElement("div"),u(this.boxDiv_.style,{border:"4px solid #736AFF"}),u(this.boxDiv_.style,n.boxStyle),u(this.boxDiv_.style,{position:"absolute",display:"none"}),l(this.boxDiv_),this.map_.getDiv().appendChild(this.boxDiv_),this.boxBorderWidths_=i(this.boxDiv_),this.listeners_=[google.maps.event.addDomListener(document,"keydown",function(e){a.onKeyDown_(e)}),google.maps.event.addDomListener(document,"keyup",function(e){a.onKeyUp_(e)}),google.maps.event.addDomListener(this.veilDiv_[0],"mousedown",function(e){a.onMouseDown_(e)}),google.maps.event.addDomListener(this.veilDiv_[1],"mousedown",function(e){a.onMouseDown_(e)}),google.maps.event.addDomListener(this.veilDiv_[2],"mousedown",function(e){a.onMouseDown_(e)}),google.maps.event.addDomListener(this.veilDiv_[3],"mousedown",function(e){a.onMouseDown_(e)}),google.maps.event.addDomListener(document,"mousedown",function(e){a.onMouseDownDocument_(e)}),google.maps.event.addDomListener(document,"mousemove",function(e){a.onMouseMove_(e)}),google.maps.event.addDomListener(document,"mouseup",function(e){a.onMouseUp_(e)}),google.maps.event.addDomListener(e,"scroll",o)],this.hotKeyDown_=!1,this.mouseDown_=!1,this.dragging_=!1,this.startPt_=null,this.endPt_=null,this.mapWidth_=null,this.mapHeight_=null,this.mousePosn_=null,this.mapPosn_=null,this.visualEnabled_&&(this.buttonDiv_=this.initControl_(this.visualPositionOffset_),null!==this.visualPositionIndex_&&(this.buttonDiv_.index=this.visualPositionIndex_),this.map_.controls[this.visualPosition_].push(this.buttonDiv_),this.controlIndex_=this.map_.controls[this.visualPosition_].length-1)},t.prototype.initControl_=function(e){var t,n,i=this;return t=document.createElement("div"),t.className=this.visualClass_,t.style.position="relative",t.style.overflow="hidden",t.style.height=this.visualSize_.height+"px",t.style.width=this.visualSize_.width+"px",t.title=this.visualTips_.off,n=document.createElement("img"),n.src=this.visualSprite_,n.style.position="absolute",n.style.left=-(2*this.visualSize_.width)+"px",n.style.top="0px",t.appendChild(n),t.onclick=function(e){i.hotKeyDown_=!i.hotKeyDown_,i.hotKeyDown_?(i.buttonDiv_.firstChild.style.left=-(0*i.visualSize_.width)+"px",i.buttonDiv_.title=i.visualTips_.on,i.activatedByControl_=!0,google.maps.event.trigger(i,"activate")):(i.buttonDiv_.firstChild.style.left=-(2*i.visualSize_.width)+"px",i.buttonDiv_.title=i.visualTips_.off,google.maps.event.trigger(i,"deactivate")),i.onMouseMove_(e)},t.onmouseover=function(){i.buttonDiv_.firstChild.style.left=-(1*i.visualSize_.width)+"px"},t.onmouseout=function(){i.hotKeyDown_?(i.buttonDiv_.firstChild.style.left=-(0*i.visualSize_.width)+"px",i.buttonDiv_.title=i.visualTips_.on):(i.buttonDiv_.firstChild.style.left=-(2*i.visualSize_.width)+"px",i.buttonDiv_.title=i.visualTips_.off)},t.ondragstart=function(){return!1},u(t.style,{cursor:"pointer",marginTop:e.height+"px",marginLeft:e.width+"px"}),t},t.prototype.isHotKeyDown_=function(t){var n;if(t=t||e.event,n=t.shiftKey&&"shift"===this.key_||t.altKey&&"alt"===this.key_||t.ctrlKey&&"ctrl"===this.key_,!n)switch(t.keyCode){case 16:"shift"===this.key_&&(n=!0);break;case 17:"ctrl"===this.key_&&(n=!0);break;case 18:"alt"===this.key_&&(n=!0)}return n},t.prototype.isMouseOnMap_=function(){var e=this.mousePosn_;if(e){var t=this.mapPosn_,n=this.map_.getDiv();return e.left>t.left&&e.left<t.left+n.offsetWidth&&e.top>t.top&&e.top<t.top+n.offsetHeight}return!1},t.prototype.setVeilVisibility_=function(){var e;if(this.map_&&this.hotKeyDown_&&this.isMouseOnMap_()){var t=this.map_.getDiv();if(this.mapWidth_=t.offsetWidth-(this.borderWidths_.left+this.borderWidths_.right),this.mapHeight_=t.offsetHeight-(this.borderWidths_.top+this.borderWidths_.bottom),this.activatedByControl_){var n=parseInt(this.buttonDiv_.style.left,10)+this.visualPositionOffset_.width,i=parseInt(this.buttonDiv_.style.top,10)+this.visualPositionOffset_.height,r=this.visualSize_.width,o=this.visualSize_.height;for(this.veilDiv_[0].style.top="0px",this.veilDiv_[0].style.left="0px",this.veilDiv_[0].style.width=n+"px",this.veilDiv_[0].style.height=this.mapHeight_+"px",this.veilDiv_[1].style.top="0px",this.veilDiv_[1].style.left=n+r+"px",this.veilDiv_[1].style.width=this.mapWidth_-(n+r)+"px",this.veilDiv_[1].style.height=this.mapHeight_+"px",this.veilDiv_[2].style.top="0px",this.veilDiv_[2].style.left=n+"px",this.veilDiv_[2].style.width=r+"px",this.veilDiv_[2].style.height=i+"px",this.veilDiv_[3].style.top=i+o+"px",this.veilDiv_[3].style.left=n+"px",this.veilDiv_[3].style.width=r+"px",this.veilDiv_[3].style.height=this.mapHeight_-(i+o)+"px",e=0;e<this.veilDiv_.length;e++)this.veilDiv_[e].style.display="block"}else{for(this.veilDiv_[0].style.left="0px",this.veilDiv_[0].style.top="0px",this.veilDiv_[0].style.width=this.mapWidth_+"px",this.veilDiv_[0].style.height=this.mapHeight_+"px",e=1;e<this.veilDiv_.length;e++)this.veilDiv_[e].style.width="0px",this.veilDiv_[e].style.height="0px";for(e=0;e<this.veilDiv_.length;e++)this.veilDiv_[e].style.display="block"}}else for(e=0;e<this.veilDiv_.length;e++)this.veilDiv_[e].style.display="none"},t.prototype.onKeyDown_=function(e){this.map_&&!this.hotKeyDown_&&this.isHotKeyDown_(e)&&(this.mapPosn_=s(this.map_.getDiv()),this.hotKeyDown_=!0,this.activatedByControl_=!1,this.setVeilVisibility_(),google.maps.event.trigger(this,"activate"))},t.prototype.getMousePoint_=function(e){var t=a(e),n=new google.maps.Point;return n.x=t.left-this.mapPosn_.left-this.borderWidths_.left,n.y=t.top-this.mapPosn_.top-this.borderWidths_.top,n.x=Math.min(n.x,this.mapWidth_),n.y=Math.min(n.y,this.mapHeight_),n.x=Math.max(n.x,0),n.y=Math.max(n.y,0),n},t.prototype.onMouseDown_=function(e){if(this.map_&&this.hotKeyDown_){this.mapPosn_=s(this.map_.getDiv()),this.dragging_=!0,this.startPt_=this.endPt_=this.getMousePoint_(e),this.boxDiv_.style.width=this.boxDiv_.style.height="0px";var t=this.prjov_.getProjection(),n=t.fromContainerPixelToLatLng(this.startPt_);google.maps.event.trigger(this,"dragstart",n)}},t.prototype.onMouseDownDocument_=function(e){this.mouseDown_=!0},t.prototype.onMouseMove_=function(e){if(this.mousePosn_=a(e),this.dragging_){this.endPt_=this.getMousePoint_(e);var t=Math.min(this.startPt_.x,this.endPt_.x),n=Math.min(this.startPt_.y,this.endPt_.y),i=Math.abs(this.startPt_.x-this.endPt_.x),r=Math.abs(this.startPt_.y-this.endPt_.y),o=Math.max(0,i-(this.boxBorderWidths_.left+this.boxBorderWidths_.right)),u=Math.max(0,r-(this.boxBorderWidths_.top+this.boxBorderWidths_.bottom));this.veilDiv_[0].style.top="0px",this.veilDiv_[0].style.left="0px",this.veilDiv_[0].style.width=t+"px",this.veilDiv_[0].style.height=this.mapHeight_+"px",this.veilDiv_[1].style.top="0px",this.veilDiv_[1].style.left=t+i+"px",this.veilDiv_[1].style.width=this.mapWidth_-(t+i)+"px",this.veilDiv_[1].style.height=this.mapHeight_+"px",this.veilDiv_[2].style.top="0px",this.veilDiv_[2].style.left=t+"px",this.veilDiv_[2].style.width=i+"px",this.veilDiv_[2].style.height=n+"px",this.veilDiv_[3].style.top=n+r+"px",this.veilDiv_[3].style.left=t+"px",this.veilDiv_[3].style.width=i+"px",this.veilDiv_[3].style.height=this.mapHeight_-(n+r)+"px",this.boxDiv_.style.top=n+"px",this.boxDiv_.style.left=t+"px",this.boxDiv_.style.width=o+"px",this.boxDiv_.style.height=u+"px",this.boxDiv_.style.display="block",google.maps.event.trigger(this,"drag",new google.maps.Point(t,n+r),new google.maps.Point(t+i,n),this.prjov_.getProjection())}else this.mouseDown_||(this.mapPosn_=s(this.map_.getDiv()),this.setVeilVisibility_())},t.prototype.onMouseUp_=function(e){var t,n=this;if(this.mouseDown_=!1,this.dragging_){if(this.getMousePoint_(e).x===this.startPt_.x&&this.getMousePoint_(e).y===this.startPt_.y)return void this.onKeyUp_(e);var i=Math.min(this.startPt_.x,this.endPt_.x),r=Math.min(this.startPt_.y,this.endPt_.y),o=Math.abs(this.startPt_.x-this.endPt_.x),a=Math.abs(this.startPt_.y-this.endPt_.y),s=!0;s&&(i+=this.borderWidths_.left,r+=this.borderWidths_.top);var u=this.prjov_.getProjection(),l=u.fromContainerPixelToLatLng(new google.maps.Point(i,r+a)),c=u.fromContainerPixelToLatLng(new google.maps.Point(i+o,r)),p=new google.maps.LatLngBounds(l,c);if(this.noZoom_)this.boxDiv_.style.display="none";else{t=this.map_.getZoom(),this.map_.fitBounds(p),this.map_.getZoom()<t&&this.map_.setZoom(t);var d=u.fromLatLngToContainerPixel(l),f=u.fromLatLngToContainerPixel(c);s&&(d.x-=this.borderWidths_.left,d.y-=this.borderWidths_.top,f.x-=this.borderWidths_.left,f.y-=this.borderWidths_.top),this.boxDiv_.style.left=d.x+"px",this.boxDiv_.style.top=f.y+"px",this.boxDiv_.style.width=Math.abs(f.x-d.x)-(this.boxBorderWidths_.left+this.boxBorderWidths_.right)+"px",this.boxDiv_.style.height=Math.abs(f.y-d.y)-(this.boxBorderWidths_.top+this.boxBorderWidths_.bottom)+"px",setTimeout(function(){n.boxDiv_.style.display="none"},1e3)}this.dragging_=!1,this.onMouseMove_(e),google.maps.event.trigger(this,"dragend",p),this.isHotKeyDown_(e)||this.onKeyUp_(e)}},t.prototype.onKeyUp_=function(e){var t,n,i,r,o,a,s,u,l=null;if(this.map_&&this.hotKeyDown_){for(this.hotKeyDown_=!1,this.dragging_&&(this.boxDiv_.style.display="none",this.dragging_=!1,n=Math.min(this.startPt_.x,this.endPt_.x),i=Math.min(this.startPt_.y,this.endPt_.y),r=Math.abs(this.startPt_.x-this.endPt_.x),o=Math.abs(this.startPt_.y-this.endPt_.y),a=this.prjov_.getProjection(),s=a.fromContainerPixelToLatLng(new google.maps.Point(n,i+o)),u=a.fromContainerPixelToLatLng(new google.maps.Point(n+r,i)),l=new google.maps.LatLngBounds(s,u)),t=0;t<this.veilDiv_.length;t++)this.veilDiv_[t].style.display="none";this.visualEnabled_&&(this.buttonDiv_.firstChild.style.left=-(2*this.visualSize_.width)+"px",this.buttonDiv_.title=this.visualTips_.off,this.buttonDiv_.style.display=""),google.maps.event.trigger(this,"deactivate",l)}},google.maps.Map.prototype.enableKeyDragZoom=function(e){this.dragZoom_=new t(this,e)},google.maps.Map.prototype.disableKeyDragZoom=function(){var e,t=this.dragZoom_;if(t){for(e=0;e<t.listeners_.length;++e)google.maps.event.removeListener(t.listeners_[e]);for(this.getDiv().removeChild(t.boxDiv_),e=0;e<t.veilDiv_.length;e++)this.getDiv().removeChild(t.veilDiv_[e]);t.visualEnabled_&&this.controls[t.visualPosition_].removeAt(t.controlIndex_),t.prjov_.setMap(null),this.dragZoom_=null}},google.maps.Map.prototype.keyDragZoomEnabled=function(){return null!==this.dragZoom_},google.maps.Map.prototype.getDragZoomObject=function(){return this.dragZoom_}}(),i.prototype.onAdd=function(){var e,t,n=this;this.div_=document.createElement("div"),this.div_.className=this.className_,this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){t=e}),google.maps.event.addDomListener(this.div_,"mousedown",function(){e=!0,t=!1}),google.maps.event.addDomListener(this.div_,"click",function(i){if(e=!1,!t){var r,o,a=n.cluster_.getMarkerClusterer();google.maps.event.trigger(a,"click",n.cluster_),google.maps.event.trigger(a,"clusterclick",n.cluster_),a.getZoomOnClick()&&(o=a.getMaxZoom(),r=n.cluster_.getBounds(),a.getMap().fitBounds(r),setTimeout(function(){
  a.getMap().fitBounds(r),null!==o&&a.getMap().getZoom()>o&&a.getMap().setZoom(o+1)},100)),i.cancelBubble=!0,i.stopPropagation&&i.stopPropagation()}}),google.maps.event.addDomListener(this.div_,"mouseover",function(){var e=n.cluster_.getMarkerClusterer();google.maps.event.trigger(e,"mouseover",n.cluster_)}),google.maps.event.addDomListener(this.div_,"mouseout",function(){var e=n.cluster_.getMarkerClusterer();google.maps.event.trigger(e,"mouseout",n.cluster_)})},i.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},i.prototype.draw=function(){if(this.visible_){var e=this.getPosFromLatLng_(this.center_);this.div_.style.top=e.y+"px",this.div_.style.left=e.x+"px"}},i.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},i.prototype.show=function(){if(this.div_){var e="",t=this.backgroundPosition_.split(" "),n=parseInt(t[0].trim(),10),i=parseInt(t[1].trim(),10),r=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(r),e="<img src='"+this.url_+"' style='position: absolute; top: "+i+"px; left: "+n+"px; ",this.cluster_.getMarkerClusterer().enableRetinaIcons_||(e+="clip: rect("+-1*i+"px, "+(-1*n+this.width_)+"px, "+(-1*i+this.height_)+"px, "+-1*n+"px);"),e+="'>",this.div_.innerHTML=e+"<div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'>"+this.sums_.text+"</div>","undefined"==typeof this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""}this.visible_=!0},i.prototype.useStyle=function(e){this.sums_=e;var t=Math.max(0,e.index-1);t=Math.min(this.styles_.length-1,t);var n=this.styles_[t];this.url_=n.url,this.height_=n.height,this.width_=n.width,this.anchorText_=n.anchorText||[0,0],this.anchorIcon_=n.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)],this.textColor_=n.textColor||"black",this.textSize_=n.textSize||11,this.textDecoration_=n.textDecoration||"none",this.fontWeight_=n.fontWeight||"bold",this.fontStyle_=n.fontStyle||"normal",this.fontFamily_=n.fontFamily||"Arial,sans-serif",this.backgroundPosition_=n.backgroundPosition||"0 0"},i.prototype.setCenter=function(e){this.center_=e},i.prototype.createCss=function(e){var t=[];return t.push("cursor: pointer;"),t.push("position: absolute; top: "+e.y+"px; left: "+e.x+"px;"),t.push("width: "+this.width_+"px; height: "+this.height_+"px;"),t.join("")},i.prototype.getPosFromLatLng_=function(e){var t=this.getProjection().fromLatLngToDivPixel(e);return t.x-=this.anchorIcon_[1],t.y-=this.anchorIcon_[0],t.x=parseInt(t.x,10),t.y=parseInt(t.y,10),t},r.prototype.getSize=function(){return this.markers_.length},r.prototype.getMarkers=function(){return this.markers_},r.prototype.getCenter=function(){return this.center_},r.prototype.getMap=function(){return this.map_},r.prototype.getMarkerClusterer=function(){return this.markerClusterer_},r.prototype.getBounds=function(){var e,t=new google.maps.LatLngBounds(this.center_,this.center_),n=this.getMarkers();for(e=0;e<n.length;e++)t.extend(n[e].getPosition());return t},r.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},r.prototype.addMarker=function(e){var t,n,i;if(this.isMarkerAlreadyAdded_(e))return!1;if(this.center_){if(this.averageCenter_){var r=this.markers_.length+1,o=(this.center_.lat()*(r-1)+e.getPosition().lat())/r,a=(this.center_.lng()*(r-1)+e.getPosition().lng())/r;this.center_=new google.maps.LatLng(o,a),this.calculateBounds_()}}else this.center_=e.getPosition(),this.calculateBounds_();if(e.isAdded=!0,this.markers_.push(e),n=this.markers_.length,i=this.markerClusterer_.getMaxZoom(),null!==i&&this.map_.getZoom()>i)e.getMap()!==this.map_&&e.setMap(this.map_);else if(n<this.minClusterSize_)e.getMap()!==this.map_&&e.setMap(this.map_);else if(n===this.minClusterSize_)for(t=0;t<n;t++)this.markers_[t].setMap(null);else e.setMap(null);return this.updateIcon_(),!0},r.prototype.isMarkerInClusterBounds=function(e){return this.bounds_.contains(e.getPosition())},r.prototype.calculateBounds_=function(){var e=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(e)},r.prototype.updateIcon_=function(){var e=this.markers_.length,t=this.markerClusterer_.getMaxZoom();if(null!==t&&this.map_.getZoom()>t)return void this.clusterIcon_.hide();if(e<this.minClusterSize_)return void this.clusterIcon_.hide();var n=this.markerClusterer_.getStyles().length,i=this.markerClusterer_.getCalculator()(this.markers_,n);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(i),this.clusterIcon_.show()},r.prototype.isMarkerAlreadyAdded_=function(e){var t;if(this.markers_.indexOf)return this.markers_.indexOf(e)!==-1;for(t=0;t<this.markers_.length;t++)if(e===this.markers_[t])return!0;return!1},o.prototype.onAdd=function(){var e=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){e.resetViewport_(!1),this.getZoom()!==(this.get("minZoom")||0)&&this.getZoom()!==this.get("maxZoom")||google.maps.event.trigger(this,"idle")}),google.maps.event.addListener(this.getMap(),"idle",function(){e.redraw_()})]},o.prototype.onRemove=function(){var e;for(e=0;e<this.markers_.length;e++)this.markers_[e].getMap()!==this.activeMap_&&this.markers_[e].setMap(this.activeMap_);for(e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();for(this.clusters_=[],e=0;e<this.listeners_.length;e++)google.maps.event.removeListener(this.listeners_[e]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},o.prototype.draw=function(){},o.prototype.setupStyles_=function(){var e,t;if(!(this.styles_.length>0))for(e=0;e<this.imageSizes_.length;e++)t=this.imageSizes_[e],this.styles_.push({url:this.imagePath_+(e+1)+"."+this.imageExtension_,height:t,width:t})},o.prototype.fitMapToMarkers=function(){var e,t=this.getMarkers(),n=new google.maps.LatLngBounds;for(e=0;e<t.length;e++)n.extend(t[e].getPosition());this.getMap().fitBounds(n)},o.prototype.getGridSize=function(){return this.gridSize_},o.prototype.setGridSize=function(e){this.gridSize_=e},o.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},o.prototype.setMinimumClusterSize=function(e){this.minClusterSize_=e},o.prototype.getMaxZoom=function(){return this.maxZoom_},o.prototype.setMaxZoom=function(e){this.maxZoom_=e},o.prototype.getStyles=function(){return this.styles_},o.prototype.setStyles=function(e){this.styles_=e},o.prototype.getTitle=function(){return this.title_},o.prototype.setTitle=function(e){this.title_=e},o.prototype.getZoomOnClick=function(){return this.zoomOnClick_},o.prototype.setZoomOnClick=function(e){this.zoomOnClick_=e},o.prototype.getAverageCenter=function(){return this.averageCenter_},o.prototype.setAverageCenter=function(e){this.averageCenter_=e},o.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},o.prototype.setIgnoreHidden=function(e){this.ignoreHidden_=e},o.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},o.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons_=e},o.prototype.getImageExtension=function(){return this.imageExtension_},o.prototype.setImageExtension=function(e){this.imageExtension_=e},o.prototype.getImagePath=function(){return this.imagePath_},o.prototype.setImagePath=function(e){this.imagePath_=e},o.prototype.getImageSizes=function(){return this.imageSizes_},o.prototype.setImageSizes=function(e){this.imageSizes_=e},o.prototype.getCalculator=function(){return this.calculator_},o.prototype.setCalculator=function(e){this.calculator_=e},o.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},o.prototype.setBatchSizeIE=function(e){this.batchSizeIE_=e},o.prototype.getClusterClass=function(){return this.clusterClass_},o.prototype.setClusterClass=function(e){this.clusterClass_=e},o.prototype.getMarkers=function(){return this.markers_},o.prototype.getTotalMarkers=function(){return this.markers_.length},o.prototype.getClusters=function(){return this.clusters_},o.prototype.getTotalClusters=function(){return this.clusters_.length},o.prototype.addMarker=function(e,t){this.pushMarkerTo_(e),t||this.redraw_()},o.prototype.addMarkers=function(e,t){var n;for(n in e)e.hasOwnProperty(n)&&this.pushMarkerTo_(e[n]);t||this.redraw_()},o.prototype.pushMarkerTo_=function(e){if(e.getDraggable()){var t=this;google.maps.event.addListener(e,"dragend",function(){t.ready_&&(this.isAdded=!1,t.repaint())})}e.isAdded=!1,this.markers_.push(e)},o.prototype.removeMarker=function(e,t){var n=this.removeMarker_(e);return!t&&n&&this.repaint(),n},o.prototype.removeMarkers=function(e,t){var n,i,r=!1;for(n=0;n<e.length;n++)i=this.removeMarker_(e[n]),r=r||i;return!t&&r&&this.repaint(),r},o.prototype.removeMarker_=function(e){var t,n=-1;if(this.markers_.indexOf)n=this.markers_.indexOf(e);else for(t=0;t<this.markers_.length;t++)if(e===this.markers_[t]){n=t;break}return n!==-1&&(e.setMap(null),this.markers_.splice(n,1),!0)},o.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},o.prototype.repaint=function(){var e=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout(function(){var t;for(t=0;t<e.length;t++)e[t].remove()},0)},o.prototype.getExtendedBounds=function(e){var t=this.getProjection(),n=new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()),i=new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()),r=t.fromLatLngToDivPixel(n);r.x+=this.gridSize_,r.y-=this.gridSize_;var o=t.fromLatLngToDivPixel(i);o.x-=this.gridSize_,o.y+=this.gridSize_;var a=t.fromDivPixelToLatLng(r),s=t.fromDivPixelToLatLng(o);return e.extend(a),e.extend(s),e},o.prototype.redraw_=function(){this.createClusters_(0)},o.prototype.resetViewport_=function(e){var t,n;for(t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();for(this.clusters_=[],t=0;t<this.markers_.length;t++)n=this.markers_[t],n.isAdded=!1,e&&n.setMap(null)},o.prototype.distanceBetweenPoints_=function(e,t){var n=6371,i=(t.lat()-e.lat())*Math.PI/180,r=(t.lng()-e.lng())*Math.PI/180,o=Math.sin(i/2)*Math.sin(i/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2),a=2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o)),s=n*a;return s},o.prototype.isMarkerInBounds_=function(e,t){return t.contains(e.getPosition())},o.prototype.addToClosestCluster_=function(e){var t,n,i,o,a=4e4,s=null;for(t=0;t<this.clusters_.length;t++)i=this.clusters_[t],o=i.getCenter(),o&&(n=this.distanceBetweenPoints_(o,e.getPosition()),n<a&&(a=n,s=i));s&&s.isMarkerInClusterBounds(e)?s.addMarker(e):(i=new r(this),i.addMarker(e),this.clusters_.push(i))},o.prototype.createClusters_=function(e){var t,n,i,r=this;if(this.ready_){0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),"undefined"!=typeof this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),i=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,(-178.48388434375)),new google.maps.LatLng((-85.08136444384544),178.00048865625));var o=this.getExtendedBounds(i),a=Math.min(e+this.batchSize_,this.markers_.length);for(t=e;t<a;t++)n=this.markers_[t],!n.isAdded&&this.isMarkerInBounds_(n,o)&&(!this.ignoreHidden_||this.ignoreHidden_&&n.getVisible())&&this.addToClosestCluster_(n);a<this.markers_.length?this.timerRefStatic=setTimeout(function(){r.createClusters_(a)},0):(delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this))}},o.prototype.extend=function(e,t){return function(e){var t;for(t in e.prototype)this.prototype[t]=e.prototype[t];return this}.apply(e,[t])},o.CALCULATOR=function(e,t){for(var n=0,i="",r=e.length.toString(),o=r;0!==o;)o=parseInt(o/10,10),n++;return n=Math.min(n,t),{text:r,index:n,title:i}},o.BATCH_SIZE=2e3,o.BATCH_SIZE_IE=500,o.IMAGE_PATH="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m",o.IMAGE_EXTENSION="png",o.IMAGE_SIZES=[53,56,66,78,90],a(s,google.maps.OverlayView),s.getSharedCross=function(e){var t;return"undefined"==typeof s.getSharedCross.crossDiv&&(t=document.createElement("img"),t.style.cssText="position: absolute; z-index: 1000002; display: none;",t.style.marginLeft="-8px",t.style.marginTop="-9px",t.src=e,s.getSharedCross.crossDiv=t),s.getSharedCross.crossDiv},s.prototype.onAdd=function(){var e,t,n,i,r,o,a,u=this,l=!1,c=!1,p=20,d="url("+this.handCursorURL_+")",f=function(e){e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()},h=function(){u.marker_.setAnimation(null)};this.getPanes().overlayImage.appendChild(this.labelDiv_),this.getPanes().overlayMouseTarget.appendChild(this.eventDiv_),"undefined"==typeof s.getSharedCross.processed&&(this.getPanes().overlayImage.appendChild(this.crossDiv_),s.getSharedCross.processed=!0),this.listeners_=[google.maps.event.addDomListener(this.eventDiv_,"mouseover",function(e){(u.marker_.getDraggable()||u.marker_.getClickable())&&(this.style.cursor="pointer",google.maps.event.trigger(u.marker_,"mouseover",e))}),google.maps.event.addDomListener(this.eventDiv_,"mouseout",function(e){!u.marker_.getDraggable()&&!u.marker_.getClickable()||c||(this.style.cursor=u.marker_.getCursor(),google.maps.event.trigger(u.marker_,"mouseout",e))}),google.maps.event.addDomListener(this.eventDiv_,"mousedown",function(e){c=!1,u.marker_.getDraggable()&&(l=!0,this.style.cursor=d),(u.marker_.getDraggable()||u.marker_.getClickable())&&(google.maps.event.trigger(u.marker_,"mousedown",e),f(e))}),google.maps.event.addDomListener(document,"mouseup",function(t){var n;if(l&&(l=!1,u.eventDiv_.style.cursor="pointer",google.maps.event.trigger(u.marker_,"mouseup",t)),c){if(r){n=u.getProjection().fromLatLngToDivPixel(u.marker_.getPosition()),n.y+=p,u.marker_.setPosition(u.getProjection().fromDivPixelToLatLng(n));try{u.marker_.setAnimation(google.maps.Animation.BOUNCE),setTimeout(h,1406)}catch(o){}}u.crossDiv_.style.display="none",u.marker_.setZIndex(e),i=!0,c=!1,t.latLng=u.marker_.getPosition(),google.maps.event.trigger(u.marker_,"dragend",t)}}),google.maps.event.addListener(u.marker_.getMap(),"mousemove",function(i){var s;l&&(c?(i.latLng=new google.maps.LatLng(i.latLng.lat()-t,i.latLng.lng()-n),s=u.getProjection().fromLatLngToDivPixel(i.latLng),r&&(u.crossDiv_.style.left=s.x+"px",u.crossDiv_.style.top=s.y+"px",u.crossDiv_.style.display="",s.y-=p),u.marker_.setPosition(u.getProjection().fromDivPixelToLatLng(s)),r&&(u.eventDiv_.style.top=s.y+p+"px"),google.maps.event.trigger(u.marker_,"drag",i)):(t=i.latLng.lat()-u.marker_.getPosition().lat(),n=i.latLng.lng()-u.marker_.getPosition().lng(),e=u.marker_.getZIndex(),o=u.marker_.getPosition(),a=u.marker_.getMap().getCenter(),r=u.marker_.get("raiseOnDrag"),c=!0,u.marker_.setZIndex(1e6),i.latLng=u.marker_.getPosition(),google.maps.event.trigger(u.marker_,"dragstart",i)))}),google.maps.event.addDomListener(document,"keydown",function(e){c&&27===e.keyCode&&(r=!1,u.marker_.setPosition(o),u.marker_.getMap().setCenter(a),google.maps.event.trigger(document,"mouseup",e))}),google.maps.event.addDomListener(this.eventDiv_,"click",function(e){(u.marker_.getDraggable()||u.marker_.getClickable())&&(i?i=!1:(google.maps.event.trigger(u.marker_,"click",e),f(e)))}),google.maps.event.addDomListener(this.eventDiv_,"dblclick",function(e){(u.marker_.getDraggable()||u.marker_.getClickable())&&(google.maps.event.trigger(u.marker_,"dblclick",e),f(e))}),google.maps.event.addListener(this.marker_,"dragstart",function(e){c||(r=this.get("raiseOnDrag"))}),google.maps.event.addListener(this.marker_,"drag",function(e){c||r&&(u.setPosition(p),u.labelDiv_.style.zIndex=1e6+(this.get("labelInBackground")?-1:1))}),google.maps.event.addListener(this.marker_,"dragend",function(e){c||r&&u.setPosition(0)}),google.maps.event.addListener(this.marker_,"position_changed",function(){u.setPosition()}),google.maps.event.addListener(this.marker_,"zindex_changed",function(){u.setZIndex()}),google.maps.event.addListener(this.marker_,"visible_changed",function(){u.setVisible()}),google.maps.event.addListener(this.marker_,"labelvisible_changed",function(){u.setVisible()}),google.maps.event.addListener(this.marker_,"title_changed",function(){u.setTitle()}),google.maps.event.addListener(this.marker_,"labelcontent_changed",function(){u.setContent()}),google.maps.event.addListener(this.marker_,"labelanchor_changed",function(){u.setAnchor()}),google.maps.event.addListener(this.marker_,"labelclass_changed",function(){u.setStyles()}),google.maps.event.addListener(this.marker_,"labelstyle_changed",function(){u.setStyles()})]},s.prototype.onRemove=function(){var e;for(this.labelDiv_.parentNode.removeChild(this.labelDiv_),this.eventDiv_.parentNode.removeChild(this.eventDiv_),e=0;e<this.listeners_.length;e++)google.maps.event.removeListener(this.listeners_[e])},s.prototype.draw=function(){this.setContent(),this.setTitle(),this.setStyles()},s.prototype.setContent=function(){var e=this.marker_.get("labelContent");"undefined"==typeof e.nodeType?(this.labelDiv_.innerHTML=e,this.eventDiv_.innerHTML=this.labelDiv_.innerHTML):(this.labelDiv_.innerHTML="",this.labelDiv_.appendChild(e),e=e.cloneNode(!0),this.eventDiv_.innerHTML="",this.eventDiv_.appendChild(e))},s.prototype.setTitle=function(){this.eventDiv_.title=this.marker_.getTitle()||""},s.prototype.setStyles=function(){var e,t;this.labelDiv_.className=this.marker_.get("labelClass"),this.eventDiv_.className=this.labelDiv_.className,this.labelDiv_.style.cssText="",this.eventDiv_.style.cssText="",t=this.marker_.get("labelStyle");for(e in t)t.hasOwnProperty(e)&&(this.labelDiv_.style[e]=t[e],this.eventDiv_.style[e]=t[e]);this.setMandatoryStyles()},s.prototype.setMandatoryStyles=function(){this.labelDiv_.style.position="absolute",this.labelDiv_.style.overflow="hidden","undefined"!=typeof this.labelDiv_.style.opacity&&""!==this.labelDiv_.style.opacity&&(this.labelDiv_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(opacity='+100*this.labelDiv_.style.opacity+')"',this.labelDiv_.style.filter="alpha(opacity="+100*this.labelDiv_.style.opacity+")"),this.eventDiv_.style.position=this.labelDiv_.style.position,this.eventDiv_.style.overflow=this.labelDiv_.style.overflow,this.eventDiv_.style.opacity=.01,this.eventDiv_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(opacity=1)"',this.eventDiv_.style.filter="alpha(opacity=1)",this.setAnchor(),this.setPosition(),this.setVisible()},s.prototype.setAnchor=function(){var e=this.marker_.get("labelAnchor");this.labelDiv_.style.marginLeft=-e.x+"px",this.labelDiv_.style.marginTop=-e.y+"px",this.eventDiv_.style.marginLeft=-e.x+"px",this.eventDiv_.style.marginTop=-e.y+"px"},s.prototype.setPosition=function(e){var t=this.getProjection().fromLatLngToDivPixel(this.marker_.getPosition());"undefined"==typeof e&&(e=0),this.labelDiv_.style.left=Math.round(t.x)+"px",this.labelDiv_.style.top=Math.round(t.y-e)+"px",this.eventDiv_.style.left=this.labelDiv_.style.left,this.eventDiv_.style.top=this.labelDiv_.style.top,this.setZIndex()},s.prototype.setZIndex=function(){var e=this.marker_.get("labelInBackground")?-1:1;"undefined"==typeof this.marker_.getZIndex()?(this.labelDiv_.style.zIndex=parseInt(this.labelDiv_.style.top,10)+e,this.eventDiv_.style.zIndex=this.labelDiv_.style.zIndex):(this.labelDiv_.style.zIndex=this.marker_.getZIndex()+e,this.eventDiv_.style.zIndex=this.labelDiv_.style.zIndex)},s.prototype.setVisible=function(){this.marker_.get("labelVisible")?this.labelDiv_.style.display=this.marker_.getVisible()?"block":"none":this.labelDiv_.style.display="none",this.eventDiv_.style.display=this.labelDiv_.style.display},a(u,google.maps.Marker),u.prototype.setMap=function(e){google.maps.Marker.prototype.setMap.apply(this,arguments),this.label.setMap(e)},l.prototype=new google.maps.OverlayView,e.RichMarker=l,l.prototype.getVisible=function(){return this.get("visible")},l.prototype.getVisible=l.prototype.getVisible,l.prototype.setVisible=function(e){this.set("visible",e)},l.prototype.setVisible=l.prototype.setVisible,l.prototype.visible_changed=function(){this.ready_&&(this.markerWrapper_.style.display=this.getVisible()?"":"none",this.draw())},l.prototype.visible_changed=l.prototype.visible_changed,l.prototype.setFlat=function(e){this.set("flat",!!e)},l.prototype.setFlat=l.prototype.setFlat,l.prototype.getFlat=function(){return this.get("flat")},l.prototype.getFlat=l.prototype.getFlat,l.prototype.getWidth=function(){return this.get("width")},l.prototype.getWidth=l.prototype.getWidth,l.prototype.getHeight=function(){return this.get("height")},l.prototype.getHeight=l.prototype.getHeight,l.prototype.setShadow=function(e){this.set("shadow",e),this.flat_changed()},l.prototype.setShadow=l.prototype.setShadow,l.prototype.getShadow=function(){return this.get("shadow")},l.prototype.getShadow=l.prototype.getShadow,l.prototype.flat_changed=function(){this.ready_&&(this.markerWrapper_.style.boxShadow=this.markerWrapper_.style.webkitBoxShadow=this.markerWrapper_.style.MozBoxShadow=this.getFlat()?"":this.getShadow())},l.prototype.flat_changed=l.prototype.flat_changed,l.prototype.setZIndex=function(e){this.set("zIndex",e)},l.prototype.setZIndex=l.prototype.setZIndex,l.prototype.getZIndex=function(){return this.get("zIndex")},l.prototype.getZIndex=l.prototype.getZIndex,l.prototype.zIndex_changed=function(){this.getZIndex()&&this.ready_&&(this.markerWrapper_.style.zIndex=this.getZIndex())},l.prototype.zIndex_changed=l.prototype.zIndex_changed,l.prototype.getDraggable=function(){return this.get("draggable")},l.prototype.getDraggable=l.prototype.getDraggable,l.prototype.setDraggable=function(e){this.set("draggable",!!e)},l.prototype.setDraggable=l.prototype.setDraggable,l.prototype.draggable_changed=function(){this.ready_&&(this.getDraggable()?this.addDragging_(this.markerWrapper_):this.removeDragListeners_())},l.prototype.draggable_changed=l.prototype.draggable_changed,l.prototype.getPosition=function(){return this.get("position")},l.prototype.getPosition=l.prototype.getPosition,l.prototype.setPosition=function(e){this.set("position",e)},l.prototype.setPosition=l.prototype.setPosition,l.prototype.position_changed=function(){this.draw()},l.prototype.position_changed=l.prototype.position_changed,l.prototype.getAnchor=function(){return this.get("anchor")},l.prototype.getAnchor=l.prototype.getAnchor,l.prototype.setAnchor=function(e){this.set("anchor",e)},l.prototype.setAnchor=l.prototype.setAnchor,l.prototype.anchor_changed=function(){this.draw()},l.prototype.anchor_changed=l.prototype.anchor_changed,l.prototype.htmlToDocumentFragment_=function(e){var t=document.createElement("DIV");if(t.innerHTML=e,1==t.childNodes.length)return t.removeChild(t.firstChild);for(var n=document.createDocumentFragment();t.firstChild;)n.appendChild(t.firstChild);return n},l.prototype.removeChildren_=function(e){if(e)for(var t;t=e.firstChild;)e.removeChild(t)},l.prototype.setContent=function(e){this.set("content",e)},l.prototype.setContent=l.prototype.setContent,l.prototype.getContent=function(){return this.get("content")},l.prototype.getContent=l.prototype.getContent,l.prototype.content_changed=function(){if(this.markerContent_){this.removeChildren_(this.markerContent_);var e=this.getContent();if(e){"string"==typeof e&&(e=e.replace(/^\s*([\S\s]*)\b\s*$/,"$1"),e=this.htmlToDocumentFragment_(e)),this.markerContent_.appendChild(e);for(var t,n=this,i=this.markerContent_.getElementsByTagName("IMG"),r=0;t=i[r];r++)google.maps.event.addDomListener(t,"mousedown",function(e){n.getDraggable()&&(e.preventDefault&&e.preventDefault(),e.returnValue=!1)}),google.maps.event.addDomListener(t,"load",function(){n.draw()});google.maps.event.trigger(this,"domready")}this.ready_&&this.draw()}},l.prototype.content_changed=l.prototype.content_changed,l.prototype.setCursor_=function(e){if(this.ready_){var t="";navigator.userAgent.indexOf("Gecko/")!==-1?("dragging"==e&&(t="-moz-grabbing"),"dragready"==e&&(t="-moz-grab"),"draggable"==e&&(t="pointer")):("dragging"!=e&&"dragready"!=e||(t="move"),"draggable"==e&&(t="pointer")),this.markerWrapper_.style.cursor!=t&&(this.markerWrapper_.style.cursor=t)}},l.prototype.startDrag=function(e){if(this.getDraggable()&&!this.dragging_){this.dragging_=!0;var t=this.getMap();this.mapDraggable_=t.get("draggable"),t.set("draggable",!1),this.mouseX_=e.clientX,this.mouseY_=e.clientY,this.setCursor_("dragready"),this.markerWrapper_.style.MozUserSelect="none",this.markerWrapper_.style.KhtmlUserSelect="none",this.markerWrapper_.style.WebkitUserSelect="none",this.markerWrapper_.unselectable="on",this.markerWrapper_.onselectstart=function(){return!1},this.addDraggingListeners_(),google.maps.event.trigger(this,"dragstart")}},l.prototype.stopDrag=function(){this.getDraggable()&&this.dragging_&&(this.dragging_=!1,this.getMap().set("draggable",this.mapDraggable_),this.mouseX_=this.mouseY_=this.mapDraggable_=null,this.markerWrapper_.style.MozUserSelect="",this.markerWrapper_.style.KhtmlUserSelect="",this.markerWrapper_.style.WebkitUserSelect="",this.markerWrapper_.unselectable="off",this.markerWrapper_.onselectstart=function(){},this.removeDraggingListeners_(),this.setCursor_("draggable"),google.maps.event.trigger(this,"dragend"),this.draw())},l.prototype.drag=function(e){if(!this.getDraggable()||!this.dragging_)return void this.stopDrag();var t=this.mouseX_-e.clientX,n=this.mouseY_-e.clientY;this.mouseX_=e.clientX,this.mouseY_=e.clientY;var i=parseInt(this.markerWrapper_.style.left,10)-t,r=parseInt(this.markerWrapper_.style.top,10)-n;this.markerWrapper_.style.left=i+"px",this.markerWrapper_.style.top=r+"px";var o=this.getOffset_(),a=new google.maps.Point(i-o.width,r-o.height),s=this.getProjection();this.setPosition(s.fromDivPixelToLatLng(a)),this.setCursor_("dragging"),google.maps.event.trigger(this,"drag")},l.prototype.removeDragListeners_=function(){this.draggableListener_&&(google.maps.event.removeListener(this.draggableListener_),delete this.draggableListener_),this.setCursor_("")},l.prototype.addDragging_=function(e){if(e){var t=this;this.draggableListener_=google.maps.event.addDomListener(e,"mousedown",function(e){t.startDrag(e)}),this.setCursor_("draggable")}},l.prototype.addDraggingListeners_=function(){var t=this;this.markerWrapper_.setCapture?(this.markerWrapper_.setCapture(!0),this.draggingListeners_=[google.maps.event.addDomListener(this.markerWrapper_,"mousemove",function(e){t.drag(e)},!0),google.maps.event.addDomListener(this.markerWrapper_,"mouseup",function(){t.stopDrag(),t.markerWrapper_.releaseCapture()},!0)]):this.draggingListeners_=[google.maps.event.addDomListener(e,"mousemove",function(e){t.drag(e)},!0),google.maps.event.addDomListener(e,"mouseup",function(){t.stopDrag()},!0)]},l.prototype.removeDraggingListeners_=function(){if(this.draggingListeners_){for(var e,t=0;e=this.draggingListeners_[t];t++)google.maps.event.removeListener(e);this.draggingListeners_.length=0}},l.prototype.getOffset_=function(){var e=this.getAnchor();if("object"==typeof e)return e;var t=new google.maps.Size(0,0);if(!this.markerContent_)return t;var n=this.markerContent_.offsetWidth,i=this.markerContent_.offsetHeight;switch(e){case c.TOP_LEFT:break;case c.TOP:t.width=-n/2;break;case c.TOP_RIGHT:t.width=-n;break;case c.LEFT:t.height=-i/2;break;case c.MIDDLE:t.width=-n/2,t.height=-i/2;break;case c.RIGHT:t.width=-n,t.height=-i/2;break;case c.BOTTOM_LEFT:t.height=-i;break;case c.BOTTOM:t.width=-n/2,t.height=-i;break;case c.BOTTOM_RIGHT:t.width=-n,t.height=-i}return t},l.prototype.onAdd=function(){if(this.markerWrapper_||(this.markerWrapper_=document.createElement("DIV"),this.markerWrapper_.style.position="absolute"),this.getZIndex()&&(this.markerWrapper_.style.zIndex=this.getZIndex()),this.markerWrapper_.style.display=this.getVisible()?"":"none",!this.markerContent_){this.markerContent_=document.createElement("DIV"),this.markerWrapper_.appendChild(this.markerContent_);var e=this;google.maps.event.addDomListener(this.markerContent_,"click",function(t){google.maps.event.trigger(e,"click")}),google.maps.event.addDomListener(this.markerContent_,"mouseover",function(t){google.maps.event.trigger(e,"mouseover")}),google.maps.event.addDomListener(this.markerContent_,"mouseout",function(t){google.maps.event.trigger(e,"mouseout")})}this.ready_=!0,this.content_changed(),this.flat_changed(),this.draggable_changed();var t=this.getPanes();t&&t.overlayMouseTarget.appendChild(this.markerWrapper_),google.maps.event.trigger(this,"ready")},l.prototype.onAdd=l.prototype.onAdd,l.prototype.draw=function(){if(this.ready_&&!this.dragging_){var e=this.getProjection();if(e){var t=this.get("position"),n=e.fromLatLngToDivPixel(t),i=this.getOffset_();this.markerWrapper_.style.top=n.y+i.height+"px",this.markerWrapper_.style.left=n.x+i.width+"px";var r=this.markerContent_.offsetHeight,o=this.markerContent_.offsetWidth;o!=this.get("width")&&this.set("width",o),r!=this.get("height")&&this.set("height",r)}}},l.prototype.draw=l.prototype.draw,l.prototype.onRemove=function(){this.markerWrapper_&&this.markerWrapper_.parentNode&&this.markerWrapper_.parentNode.removeChild(this.markerWrapper_),this.removeDragListeners_()},l.prototype.onRemove=l.prototype.onRemove;var c={TOP_LEFT:1,TOP:2,TOP_RIGHT:3,LEFT:4,MIDDLE:5,RIGHT:6,BOTTOM_LEFT:7,BOTTOM:8,BOTTOM_RIGHT:9};e.RichMarkerPosition=c,e.InfoBox=t,e.Cluster=r,e.ClusterIcon=i,e.MarkerClusterer=o,e.MarkerLabel_=s,e.MarkerWithLabel=u,e.RichMarker=l}()})}}),function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,n,i){t.module("uiGmapgoogle-maps.wrapped").service("uiGmapDataStructures",function(){return{Graph:i(1).Graph,Queue:i(1).Queue}})},function(e,t,n){(function(){e.exports={Graph:n(2),Heap:n(3),LinkedList:n(4),Map:n(5),Queue:n(6),RedBlackTree:n(7),Trie:n(8)}}).call(this)},function(e,t){(function(){var t,n={}.hasOwnProperty;t=function(){function e(){this._nodes={},this.nodeSize=0,this.edgeSize=0}return e.prototype.addNode=function(e){if(!this._nodes[e])return this.nodeSize++,this._nodes[e]={_outEdges:{},_inEdges:{}}},e.prototype.getNode=function(e){return this._nodes[e]},e.prototype.removeNode=function(e){var t,i,r,o,a;if(i=this._nodes[e]){o=i._outEdges;for(r in o)n.call(o,r)&&this.removeEdge(e,r);a=i._inEdges;for(t in a)n.call(a,t)&&this.removeEdge(t,e);return this.nodeSize--,delete this._nodes[e],i}},e.prototype.addEdge=function(e,t,n){var i,r,o;if(null==n&&(n=1),!this.getEdge(e,t)&&(r=this._nodes[e],o=this._nodes[t],r&&o))return i={weight:n},r._outEdges[t]=i,o._inEdges[e]=i,this.edgeSize++,i},e.prototype.getEdge=function(e,t){var n,i;if(n=this._nodes[e],i=this._nodes[t],n&&i)return n._outEdges[t]},e.prototype.removeEdge=function(e,t){var n,i,r;if(i=this._nodes[e],r=this._nodes[t],n=this.getEdge(e,t))return delete i._outEdges[t],delete r._inEdges[e],this.edgeSize--,n},e.prototype.getInEdgesOf=function(e){var t,i,r,o;r=this._nodes[e],i=[],o=null!=r?r._inEdges:void 0;for(t in o)n.call(o,t)&&i.push(this.getEdge(t,e));return i},e.prototype.getOutEdgesOf=function(e){var t,i,r,o;t=this._nodes[e],i=[],o=null!=t?t._outEdges:void 0;for(r in o)n.call(o,r)&&i.push(this.getEdge(e,r));return i},e.prototype.getAllEdgesOf=function(e){var t,n,i,r,o,a,s;if(n=this.getInEdgesOf(e),i=this.getOutEdgesOf(e),0===n.length)return i;for(r=this.getEdge(e,e),
  t=o=0,a=n.length;0<=a?o<a:o>a;t=0<=a?++o:--o)if(n[t]===r){s=[n[n.length-1],n[t]],n[t]=s[0],n[n.length-1]=s[1],n.pop();break}return n.concat(i)},e.prototype.forEachNode=function(e){var t,i,r;r=this._nodes;for(t in r)n.call(r,t)&&(i=r[t],e(i,t))},e.prototype.forEachEdge=function(e){var t,i,r,o,a,s;a=this._nodes;for(i in a)if(n.call(a,i)){r=a[i],s=r._outEdges;for(o in s)n.call(s,o)&&(t=s[o],e(t))}},e}(),e.exports=t}).call(this)},function(e,t){(function(){var t,n,i,r;t=function(){function e(e){var t,n,i,r,o,a;for(null==e&&(e=[]),this._data=[void 0],i=0,o=e.length;i<o;i++)n=e[i],null!=n&&this._data.push(n);if(this._data.length>1)for(t=r=2,a=this._data.length;2<=a?r<a:r>a;t=2<=a?++r:--r)this._upHeap(t);this.size=this._data.length-1}return e.prototype.add=function(e){if(null!=e)return this._data.push(e),this._upHeap(this._data.length-1),this.size++,e},e.prototype.removeMin=function(){var e;if(1!==this._data.length)return this.size--,2===this._data.length?this._data.pop():(e=this._data[1],this._data[1]=this._data.pop(),this._downHeap(),e)},e.prototype.peekMin=function(){return this._data[1]},e.prototype._upHeap=function(e){var t,n;for(t=this._data[e];this._data[e]<this._data[i(e)]&&e>1;)n=[this._data[i(e)],this._data[e]],this._data[e]=n[0],this._data[i(e)]=n[1],e=i(e)},e.prototype._downHeap=function(){var e,t,i;for(e=1;n(e<this._data.length)&&(t=n(e),t<this._data.length-1&&this._data[r(e)]<this._data[t]&&(t=r(e)),this._data[t]<this._data[e]);)i=[this._data[e],this._data[t]],this._data[t]=i[0],this._data[e]=i[1],e=t},e}(),i=function(e){return e>>1},n=function(e){return e<<1},r=function(e){return(e<<1)+1},e.exports=t}).call(this)},function(e,t){(function(){var t;t=function(){function e(e){var t,n,i;for(null==e&&(e=[]),this.head={prev:void 0,value:void 0,next:void 0},this.tail={prev:void 0,value:void 0,next:void 0},this.size=0,n=0,i=e.length;n<i;n++)t=e[n],this.add(t)}return e.prototype.at=function(e){var t,n,i,r,o;if(-this.size<=e&&e<this.size){if(e=this._adjust(e),2*e<this.size)for(t=this.head,n=i=1;i<=e;n=i+=1)t=t.next;else for(t=this.tail,n=r=1,o=this.size-e-1;r<=o;n=r+=1)t=t.prev;return t}},e.prototype.add=function(e,t){var n,i,r,o,a;if(null==t&&(t=this.size),-this.size<=t&&t<=this.size)return i={value:e},t=this._adjust(t),0===this.size?this.head=i:0===t?(r=[i,this.head,i],this.head.prev=r[0],i.next=r[1],this.head=r[2]):(n=this.at(t-1),o=[n.next,i,i,n],i.next=o[0],null!=(a=n.next)?a.prev=o[1]:void 0,n.next=o[2],i.prev=o[3]),t===this.size&&(this.tail=i),this.size++,e},e.prototype.removeAt=function(e){var t,n,i;if(null==e&&(e=this.size-1),-this.size<=e&&e<this.size&&0!==this.size)return e=this._adjust(e),1===this.size?(n=this.head.value,this.head.value=this.tail.value=void 0):0===e?(n=this.head.value,this.head=this.head.next,this.head.prev=void 0):(t=this.at(e),n=t.value,t.prev.next=t.next,null!=(i=t.next)&&(i.prev=t.prev),e===this.size-1&&(this.tail=t.prev)),this.size--,n},e.prototype.remove=function(e){var t;if(null!=e){for(t=this.head;t&&t.value!==e;)t=t.next;if(t)return 1===this.size?this.head.value=this.tail.value=void 0:t===this.head?(this.head=this.head.next,this.head.prev=void 0):t===this.tail?(this.tail=this.tail.prev,this.tail.next=void 0):(t.prev.next=t.next,t.next.prev=t.prev),this.size--,e}},e.prototype.indexOf=function(e,t){var n,i;if(null==t&&(t=0),null==this.head.value&&!this.head.next||t>=this.size)return-1;for(t=Math.max(0,this._adjust(t)),n=this.at(t),i=t;n&&n.value!==e;)n=n.next,i++;return i===this.size?-1:i},e.prototype._adjust=function(e){return e<0?this.size+e:e},e}(),e.exports=t}).call(this)},function(e,t){(function(){var t,n,i,r,o={}.hasOwnProperty;n="_mapId_",t=function(){function e(t){var n,i;this._content={},this._itemId=0,this._id=e._newMapId(),this.size=0;for(n in t)o.call(t,n)&&(i=t[n],this.set(n,i))}return e._mapIdTracker=0,e._newMapId=function(){return this._mapIdTracker++},e.prototype.hash=function(e,t){var o,a;return null==t&&(t=!1),a=i(e),r(e)?(o=n+this._id,t&&!e[o]&&(e[o]=this._itemId++),o+"_"+e[o]):a+"_"+e},e.prototype.set=function(e,t){return this.has(e)||this.size++,this._content[this.hash(e,!0)]=[t,e],t},e.prototype.get=function(e){var t;return null!=(t=this._content[this.hash(e)])?t[0]:void 0},e.prototype.has=function(e){return this.hash(e)in this._content},e.prototype["delete"]=function(e){var t;return t=this.hash(e),t in this._content&&(delete this._content[t],r(e)&&delete e[n+this._id],this.size--,!0)},e.prototype.forEach=function(e){var t,n,i;i=this._content;for(t in i)o.call(i,t)&&(n=i[t],e(n[1],n[0]))},e}(),r=function(e){var t,n,r,o,a;for(t=["Boolean","Number","String","Undefined","Null","RegExp","Function"],r=i(e),o=0,a=t.length;o<a;o++)if(n=t[o],r===n)return!1;return!0},i=function(e){return Object.prototype.toString.apply(e).match(/\[object (.+)\]/)[1]},e.exports=t}).call(this)},function(e,t){(function(){var t;t=function(){function e(e){null==e&&(e=[]),this._content=e,this._dequeueIndex=0,this.size=this._content.length}return e.prototype.enqueue=function(e){return this.size++,this._content.push(e),e},e.prototype.dequeue=function(){var e;if(0!==this.size)return this.size--,e=this._content[this._dequeueIndex],this._dequeueIndex++,2*this._dequeueIndex>this._content.length&&(this._content=this._content.slice(this._dequeueIndex),this._dequeueIndex=0),e},e.prototype.peek=function(){return this._content[this._dequeueIndex]},e}(),e.exports=t}).call(this)},function(e,t){(function(){var t,n,i,r,o,a,s,u,l,c,p,d,f,h,g;n=0,i=1,r=2,s=3,o=1,t=2,a=function(){function e(e){var t,n,i;for(null==e&&(e=[]),this._root,this.size=0,n=0,i=e.length;n<i;n++)t=e[n],null!=t&&this.add(t)}return e.prototype.add=function(e){var a,p,d,f;if(null!=e){if(this.size++,d={value:e,_color:o},this._root){if(p=u(this._root,function(t){return e===t.value?n:e<t.value?t._left?i:(d._parent=t,t._left=d,s):t._right?r:(d._parent=t,t._right=d,s)}),null!=p)return}else this._root=d;for(a=d;;){if(a===this._root){a._color=t;break}if(a._parent._color===t)break;{if((null!=(f=g(a))?f._color:void 0)!==o){!c(a)&&c(a._parent)?(this._rotateLeft(a._parent),a=a._left):c(a)&&!c(a._parent)&&(this._rotateRight(a._parent),a=a._right),a._parent._color=t,l(a)._color=o,c(a)?this._rotateRight(l(a)):this._rotateLeft(l(a));break}a._parent._color=t,g(a)._color=t,l(a)._color=o,a=l(a)}}return e}},e.prototype.has=function(e){var t;return t=u(this._root,function(t){return e===t.value?n:e<t.value?i:r}),!!t},e.prototype.peekMin=function(){var e;return null!=(e=f(this._root))?e.value:void 0},e.prototype.peekMax=function(){var e;return null!=(e=d(this._root))?e.value:void 0},e.prototype.remove=function(e){var t;if(t=u(this._root,function(t){return e===t.value?n:e<t.value?i:r}))return this._removeNode(this._root,t),this.size--,e},e.prototype.removeMin=function(){var e,t;if(e=f(this._root))return t=e.value,this._removeNode(this._root,e),t},e.prototype.removeMax=function(){var e,t;if(e=d(this._root))return t=e.value,this._removeNode(this._root,e),t},e.prototype._removeNode=function(e,n){var i,r,a,s,u,l,d,g,m,v;if(n._left&&n._right&&(r=f(n._right),n.value=r.value,n=r),r=n._left||n._right,r||(r={color:t,_right:void 0,_left:void 0,isLeaf:!0}),r._parent=n._parent,null!=(a=n._parent)&&(a[p(n)]=r),n._color===t)if(r._color===o)r._color=t,r._parent||(this._root=r);else for(;;){if(!r._parent){r.isLeaf?this._root=void 0:this._root=r;break}if(i=h(r),(null!=i?i._color:void 0)===o&&(r._parent._color=o,i._color=t,c(r)?this._rotateLeft(r._parent):this._rotateRight(r._parent)),i=h(r),r._parent._color!==t||i&&(i._color!==t||i._left&&i._left._color!==t||i._right&&i._right._color!==t)){if(!(r._parent._color!==o||i&&(i._color!==t||i._left&&(null!=(s=i._left)?s._color:void 0)!==t||i._right&&(null!=(u=i._right)?u._color:void 0)!==t))){null!=i&&(i._color=o),r._parent._color=t;break}if((null!=i?i._color:void 0)===t){!c(r)||i._right&&i._right._color!==t||(null!=(l=i._left)?l._color:void 0)!==o?c(r)||i._left&&i._left._color!==t||(null!=(g=i._right)?g._color:void 0)!==o||(i._color=o,null!=(m=i._right)&&(m._color=t),this._rotateLeft(i)):(i._color=o,null!=(d=i._left)&&(d._color=t),this._rotateRight(i));break}i=h(r),i._color=r._parent._color,c(r)?(i._right._color=t,this._rotateRight(r._parent)):(i._left._color=t,this._rotateLeft(r._parent))}else null!=i&&(i._color=o),r.isLeaf&&(r._parent[p(r)]=void 0),r=r._parent}if(r.isLeaf)return null!=(v=r._parent)?v[p(r)]=void 0:void 0},e.prototype._rotateLeft=function(e){var t,n;if(null!=(t=e._parent)&&(t[p(e)]=e._right),e._right._parent=e._parent,e._parent=e._right,e._right=e._right._left,e._parent._left=e,null!=(n=e._right)&&(n._parent=e),null==e._parent._parent)return this._root=e._parent},e.prototype._rotateRight=function(e){var t,n;if(null!=(t=e._parent)&&(t[p(e)]=e._left),e._left._parent=e._parent,e._parent=e._left,e._left=e._left._right,e._parent._right=e,null!=(n=e._left)&&(n._parent=e),null==e._parent._parent)return this._root=e._parent},e}(),c=function(e){return e===e._parent._left},p=function(e){return c(e)?"_left":"_right"},u=function(e,t){var o,a,u;for(a=e,u=void 0;a;){if(o=t(a),o===n){u=a;break}if(o===i)a=a._left;else if(o===r)a=a._right;else if(o===s)break}return u},f=function(e){return u(e,function(e){return e._left?i:n})},d=function(e){return u(e,function(e){return e._right?r:n})},l=function(e){var t;return null!=(t=e._parent)?t._parent:void 0},g=function(e){if(l(e))return c(e._parent)?l(e)._right:l(e)._left},h=function(e){return c(e)?e._parent._right:e._parent._left},e.exports=a}).call(this)},function(e,t,n){(function(){var t,i,r,o,a={}.hasOwnProperty;t=n(6),r="end",i=function(){function e(e){var t,n,i;for(null==e&&(e=[]),this._root={},this.size=0,n=0,i=e.length;n<i;n++)t=e[n],this.add(t)}return e.prototype.add=function(e){var t,n,i,o;if(null!=e){for(this.size++,t=this._root,i=0,o=e.length;i<o;i++)n=e[i],null==t[n]&&(t[n]={}),t=t[n];return t[r]=!0,e}},e.prototype.has=function(e){var t,n,i,o;if(null==e)return!1;for(t=this._root,i=0,o=e.length;i<o;i++){if(n=e[i],null==t[n])return!1;t=t[n]}return!!t[r]},e.prototype.longestPrefixOf=function(e){var t,n,i,r,o;if(null==e)return"";for(t=this._root,i="",r=0,o=e.length;r<o&&(n=e[r],null!=t[n]);r++)i+=n,t=t[n];return i},e.prototype.wordsWithPrefix=function(e){var n,i,o,s,u,l,c,p,d,f;if(null==e)return[];for(null!=e||(e=""),c=[],i=this._root,p=0,d=e.length;p<d;p++)if(o=e[p],i=i[o],null==i)return[];for(u=new t,u.enqueue([i,""]);0!==u.size;){f=u.dequeue(),s=f[0],n=f[1],s[r]&&c.push(e+n);for(o in s)a.call(s,o)&&(l=s[o],u.enqueue([l,n+o]))}return c},e.prototype.remove=function(e){var t,n,i,a,s,u,l,c;if(null!=e){for(t=this._root,a=[],s=0,l=e.length;s<l;s++){if(i=e[s],null==t[i])return;t=t[i],a.push([i,t])}if(t[r]){if(this.size--,delete t[r],o(t,1))return e;for(n=u=c=a.length-1;(c<=1?u<=1:u>=1)&&!o(a[n][1],1);n=c<=1?++u:--u)delete a[n-1][1][a[n][0]];return o(this._root[a[0][0]],1)||delete this._root[a[0][0]],e}}},e}(),o=function(e,t){var n,i;if(0===t)return!0;i=0;for(n in e)if(a.call(e,n)&&(i++,i>=t))return!0;return!1},e.exports=i}).call(this)}]),t.module("uiGmapgoogle-maps.wrapped").service("uiGmapMarkerSpiderfier",["uiGmapGoogleMapApi",function(t){var n=this;return+function(){var t={}.hasOwnProperty,n=[].slice;this.OverlappingMarkerSpiderfier=function(){function i(e,n){var i,o,a,s,u,l;this.map=e,null==n&&(n={});for(o in n)t.call(n,o)&&(l=n[o],this[o]=l);for(this.projHelper=new this.constructor.ProjHelper(this.map),this.initMarkerArrays(),this.listeners={},u=["click","zoom_changed","maptypeid_changed"],a=0,s=u.length;a<s;a++)i=u[a],r.addListener(this.map,i,function(e){return function(){return e.unspiderfy()}}(this))}var r,o,a,s,u,l,c,p,d,f,h;for(p=i.prototype,d=[i,p],a=0,l=d.length;a<l;a++)h=d[a],h.VERSION="0.3.3";return o=void 0,r=void 0,c=void 0,f=2*Math.PI,p.keepSpiderfied=!1,p.markersWontHide=!1,p.markersWontMove=!1,p.nearbyDistance=20,p.circleSpiralSwitchover=9,p.circleFootSeparation=23,p.circleStartAngle=f/12,p.spiralFootSeparation=26,p.spiralLengthStart=11,p.spiralLengthFactor=4,p.spiderfiedZIndex=1e3,p.usualLegZIndex=10,p.highlightedLegZIndex=20,p.event="click",p.minZoomLevel=!1,p.legWeight=1.5,p.legColors={usual:{},highlighted:{}},u=p.legColors.usual,s=p.legColors.highlighted,i.initializeGoogleMaps=function(e){return o=e.maps,r=o.event,c=o.MapTypeId,u[c.HYBRID]=u[c.SATELLITE]="#fff",s[c.HYBRID]=s[c.SATELLITE]="#f00",u[c.TERRAIN]=u[c.ROADMAP]="#444",s[c.TERRAIN]=s[c.ROADMAP]="#f00",this.ProjHelper=function(e){return this.setMap(e)},this.ProjHelper.prototype=new o.OverlayView,this.ProjHelper.prototype.draw=function(){}},p.initMarkerArrays=function(){return this.markers=[],this.markerListenerRefs=[]},p.addMarker=function(e){var t;return null!=e._oms?this:(e._oms=!0,t=[r.addListener(e,this.event,function(t){return function(n){return t.spiderListener(e,n)}}(this))],this.markersWontHide||t.push(r.addListener(e,"visible_changed",function(t){return function(){return t.markerChangeListener(e,!1)}}(this))),this.markersWontMove||t.push(r.addListener(e,"position_changed",function(t){return function(){return t.markerChangeListener(e,!0)}}(this))),this.markerListenerRefs.push(t),this.markers.push(e),this)},p.markerChangeListener=function(e,t){if(null!=e._omsData&&(t||!e.getVisible())&&null==this.spiderfying&&null==this.unspiderfying)return this.unspiderfy(t?e:null)},p.getMarkers=function(){return this.markers.slice(0)},p.removeMarker=function(e){var t,n,i,o,a;if(null!=e._omsData&&this.unspiderfy(),t=this.arrIndexOf(this.markers,e),t<0)return this;for(a=this.markerListenerRefs.splice(t,1)[0],n=0,i=a.length;n<i;n++)o=a[n],r.removeListener(o);return delete e._oms,this.markers.splice(t,1),this},p.clearMarkers=function(){var e,t,n,i,o,a,s,u,l;for(this.unspiderfy(),l=this.markers,e=t=0,n=l.length;t<n;e=++t){for(s=l[e],a=this.markerListenerRefs[e],u=0,i=a.length;u<i;u++)o=a[u],r.removeListener(o);delete s._oms}return this.initMarkerArrays(),this},p.addListener=function(e,t){var n;return(null!=(n=this.listeners)[e]?n[e]:n[e]=[]).push(t),this},p.removeListener=function(e,t){var n;return n=this.arrIndexOf(this.listeners[e],t),n<0||this.listeners[e].splice(n,1),this},p.clearListeners=function(e){return this.listeners[e]=[],this},p.trigger=function(){var e,t,i,r,o,a,s,u;for(t=arguments[0],e=2<=arguments.length?n.call(arguments,1):[],s=null!=(a=this.listeners[t])?a:[],u=[],r=0,o=s.length;r<o;r++)i=s[r],u.push(i.apply(null,e));return u},p.generatePtsCircle=function(e,t){var n,i,r,a,s,u,l,c;for(r=this.circleFootSeparation*(2+e),u=r/f,i=f/e,c=[],a=s=0,l=e;0<=l?s<l:s>l;a=0<=l?++s:--s)n=this.circleStartAngle+a*i,c.push(new o.Point(t.x+u*Math.cos(n),t.y+u*Math.sin(n)));return c},p.generatePtsSpiral=function(e,t){var n,i,r,a,s,u,l;for(a=this.spiralLengthStart,n=0,l=[],i=r=0,u=e;0<=u?r<u:r>u;i=0<=u?++r:--r)n+=this.spiralFootSeparation/a+5e-4*i,s=new o.Point(t.x+a*Math.cos(n),t.y+a*Math.sin(n)),a+=f*this.spiralLengthFactor/n,l.push(s);return l},p.spiderListener=function(t,n){var i,r,o,a,s,u,l,c,d,f,h,g,m;if(c=null!=t._omsData,c&&this.keepSpiderfied||("mouseover"===this.event?(i=this,r=function(){return i.unspiderfy()},e.clearTimeout(p.timeout),p.timeout=setTimeout(r,3e3)):this.unspiderfy()),c||this.map.getStreetView().getVisible()||"GoogleEarthAPI"===this.map.getMapTypeId())return this.trigger("click",t,n);for(f=[],h=[],d=this.nearbyDistance,g=d*d,l=this.llToPt(t.position),m=this.markers,o=0,a=m.length;o<a;o++)s=m[o],null!=s.map&&s.getVisible()&&(u=this.llToPt(s.position),this.ptDistanceSq(u,l)<g?f.push({marker:s,markerPt:u}):h.push(s));return 1===f.length?this.trigger("click",t,n):this.spiderfy(f,h)},p.markersNearMarker=function(e,t){var n,i,r,o,a,s,u,l,c,p,d;if(null==t&&(t=!1),null==this.projHelper.getProjection())throw"Must wait for 'idle' event on map before calling markersNearMarker";for(u=this.nearbyDistance,l=u*u,a=this.llToPt(e.position),s=[],c=this.markers,n=0,i=c.length;n<i&&(r=c[n],!(r!==e&&null!=r.map&&r.getVisible()&&(o=this.llToPt(null!=(p=null!=(d=r._omsData)?d.usualPosition:void 0)?p:r.position),this.ptDistanceSq(o,a)<l&&(s.push(r),t))));n++);return s},p.markersNearAnyOtherMarker=function(){var e,t,n,i,r,o,a,s,u,l,c,p,d,f,h,g,m,v,y,b,$;if(null==this.projHelper.getProjection())throw"Must wait for 'idle' event on map before calling markersNearAnyOtherMarker";for(h=this.nearbyDistance,g=h*h,d=function(){var e,t,n,i,r,o;for(n=this.markers,o=[],e=0,t=n.length;e<t;e++)s=n[e],o.push({pt:this.llToPt(null!=(i=null!=(r=s._omsData)?r.usualPosition:void 0)?i:s.position),willSpiderfy:!1});return o}.call(this),v=this.markers,t=i=0,r=v.length;i<r;t=++i)if(u=v[t],null!=u.map&&u.getVisible()&&(l=d[t],!l.willSpiderfy))for(y=this.markers,n=f=0,o=y.length;f<o;n=++f)if(c=y[n],n!==t&&null!=c.map&&c.getVisible()&&(p=d[n],(!(n<t)||p.willSpiderfy)&&this.ptDistanceSq(l.pt,p.pt)<g)){l.willSpiderfy=p.willSpiderfy=!0;break}for(b=this.markers,$=[],e=m=0,a=b.length;m<a;e=++m)s=b[e],d[e].willSpiderfy&&$.push(s);return $},p.makeHighlightListenerFuncs=function(e){return{highlight:function(t){return function(){return e._omsData.leg.setOptions({strokeColor:t.legColors.highlighted[t.map.mapTypeId],zIndex:t.highlightedLegZIndex})}}(this),unhighlight:function(t){return function(){return e._omsData.leg.setOptions({strokeColor:t.legColors.usual[t.map.mapTypeId],zIndex:t.usualLegZIndex})}}(this)}},p.spiderfy=function(e,t){var n,i,a,s,u,l,c,p,d,f,h;return!(this.minZoomLevel&&this.map.getZoom()<this.minZoomLevel)&&(this.spiderfying=!0,f=e.length,n=this.ptAverage(function(){var t,n,i;for(i=[],t=0,n=e.length;t<n;t++)p=e[t],i.push(p.markerPt);return i}()),s=f>=this.circleSpiralSwitchover?this.generatePtsSpiral(f,n).reverse():this.generatePtsCircle(f,n),h=function(){var t,n,p;for(p=[],t=0,n=s.length;t<n;t++)a=s[t],i=this.ptToLl(a),d=this.minExtract(e,function(e){return function(t){return e.ptDistanceSq(t.markerPt,a)}}(this)),c=d.marker,l=new o.Polyline({map:this.map,path:[c.position,i],strokeColor:this.legColors.usual[this.map.mapTypeId],strokeWeight:this.legWeight,zIndex:this.usualLegZIndex}),c._omsData={usualPosition:c.position,leg:l},this.legColors.highlighted[this.map.mapTypeId]!==this.legColors.usual[this.map.mapTypeId]&&(u=this.makeHighlightListenerFuncs(c),c._omsData.hightlightListeners={highlight:r.addListener(c,"mouseover",u.highlight),unhighlight:r.addListener(c,"mouseout",u.unhighlight)}),c.setPosition(i),c.setZIndex(Math.round(this.spiderfiedZIndex+a.y)),p.push(c);return p}.call(this),delete this.spiderfying,this.spiderfied=!0,this.trigger("spiderfy",h,t))},p.unspiderfy=function(e){var t,n,i,o,a,s,u;if(null==e&&(e=null),null==this.spiderfied)return this;for(this.unspiderfying=!0,u=[],a=[],s=this.markers,t=0,n=s.length;t<n;t++)o=s[t],null!=o._omsData?(o._omsData.leg.setMap(null),o!==e&&o.setPosition(o._omsData.usualPosition),o.setZIndex(null),i=o._omsData.hightlightListeners,null!=i&&(r.removeListener(i.highlight),r.removeListener(i.unhighlight)),delete o._omsData,u.push(o)):a.push(o);return delete this.unspiderfying,delete this.spiderfied,this.trigger("unspiderfy",u,a),this},p.ptDistanceSq=function(e,t){var n,i;return n=e.x-t.x,i=e.y-t.y,n*n+i*i},p.ptAverage=function(e){var t,n,i,r,a,s;for(a=s=0,t=0,n=e.length;t<n;t++)r=e[t],a+=r.x,s+=r.y;return i=e.length,new o.Point(a/i,s/i)},p.llToPt=function(e){return this.projHelper.getProjection().fromLatLngToDivPixel(e)},p.ptToLl=function(e){return this.projHelper.getProjection().fromDivPixelToLatLng(e)},p.minExtract=function(e,t){var n,i,r,o,a,s,u;for(r=a=0,s=e.length;a<s;r=++a)o=e[r],u=t(o),("undefined"==typeof n||null===n||u<i)&&(i=u,n=r);return e.splice(n,1)[0]},p.arrIndexOf=function(e,t){var n,i,r,o;if(null!=e.indexOf)return e.indexOf(t);for(n=i=0,r=e.length;i<r;n=++i)if(o=e[n],o===t)return n;return-1},i}()}.apply(n),t.then(function(){n.OverlappingMarkerSpiderfier.initializeGoogleMaps(e.google)}),this.OverlappingMarkerSpiderfier}]),t.module("uiGmapgoogle-maps.extensions").service("uiGmapExtendMarkerClusterer",["uiGmapLodash","uiGmapPropMap",function(t,n){return{init:_.once(function(){(function(){var i={}.hasOwnProperty,r=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};e.NgMapCluster=function(e){function i(e){i.__super__.constructor.call(this,e),this.markers_=new n}return r(i,e),i.prototype.addMarker=function(e){var t,n;if(this.isMarkerAlreadyAdded_(e)){var i=this.markers_.get(e.key);if(i.getPosition().lat()==e.getPosition().lat()&&i.getPosition().lon()==e.getPosition().lon())return!1}if(this.center_){if(this.averageCenter_){var r=this.markers_.length+1,o=(this.center_.lat()*(r-1)+e.getPosition().lat())/r,a=(this.center_.lng()*(r-1)+e.getPosition().lng())/r;this.center_=new google.maps.LatLng(o,a),this.calculateBounds_()}}else this.center_=e.getPosition(),this.calculateBounds_();return e.isAdded=!0,this.markers_.push(e),t=this.markers_.length,n=this.markerClusterer_.getMaxZoom(),null!==n&&this.map_.getZoom()>n?e.getMap()!==this.map_&&e.setMap(this.map_):t<this.minClusterSize_?e.getMap()!==this.map_&&e.setMap(this.map_):t===this.minClusterSize_?this.markers_.each(function(e){e.setMap(null)}):e.setMap(null),!0},i.prototype.isMarkerAlreadyAdded_=function(e){return t.isNullOrUndefined(this.markers_.get(e.key))},i.prototype.getBounds=function(){var e=new google.maps.LatLngBounds(this.center_,this.center_);return this.getMarkers().each(function(t){e.extend(t.getPosition())}),e},i.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=new n,delete this.markers_},i}(Cluster),e.NgMapMarkerClusterer=function(e){function t(e,i,r){t.__super__.constructor.call(this,e,i,r),this.markers_=new n}return r(t,e),t.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=new n},t.prototype.removeMarker_=function(e){return!!this.markers_.get(e.key)&&(e.setMap(null),this.markers_.remove(e.key),!0)},t.prototype.createClusters_=function(e){var t,n,i,r=this;if(this.ready_){0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),"undefined"!=typeof this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),i=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,(-178.48388434375)),new google.maps.LatLng((-85.08136444384544),178.00048865625));var o=this.getExtendedBounds(i),a=Math.min(e+this.batchSize_,this.markers_.length),s=this.markers_.values();for(t=e;t<a;t++)n=s[t],!n.isAdded&&this.isMarkerInBounds_(n,o)&&(!this.ignoreHidden_||this.ignoreHidden_&&n.getVisible())&&this.addToClosestCluster_(n);if(a<this.markers_.length)this.timerRefStatic=setTimeout(function(){r.createClusters_(a)},0);else{for(t=0;t<this.clusters_.length;t++)this.clusters_[t].updateIcon_();delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this)}}},t.prototype.addToClosestCluster_=function(e){var t,n,i,r,o=4e4,a=null;for(t=0;t<this.clusters_.length;t++)i=this.clusters_[t],r=i.getCenter(),r&&(n=this.distanceBetweenPoints_(r,e.getPosition()),n<o&&(o=n,a=i));a&&a.isMarkerInClusterBounds(e)?a.addMarker(e):(i=new NgMapCluster(this),i.addMarker(e),this.clusters_.push(i))},t.prototype.redraw_=function(){this.createClusters_(0)},t.prototype.resetViewport_=function(e){var t;for(t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[],this.markers_.each(function(t){t.isAdded=!1,e&&t.setMap(null)})},t.prototype.extend=function(e,t){return function(e){var t;for(t in e.prototype)"constructor"!==t&&(this.prototype[t]=e.prototype[t]);return this}.apply(e,[t])},ClusterIcon.prototype.show=function(){if(this.div_){var e="",t=this.backgroundPosition_.split(" "),n=parseInt(t[0].trim(),10),i=parseInt(t[1].trim(),10),r=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(r),e="<img src='"+this.url_+"' style='position: absolute; top: "+i+"px; left: "+n+"px; ",e+=this.cluster_.getMarkerClusterer().enableRetinaIcons_?"width: "+this.width_+"px;height: "+this.height_+"px;":"clip: rect("+-1*i+"px, "+(-1*n+this.width_)+"px, "+(-1*i+this.height_)+"px, "+-1*n+"px);",e+="'>",this.div_.innerHTML=e+"<div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'>"+this.sums_.text+"</div>","undefined"==typeof this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""}this.visible_=!0},t}(MarkerClusterer)}).call(this)})}}])}(window,angular),function(e,t){"object"==typeof module&&module.exports?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Spinner=t()}(this,function(){"use strict";function e(e,t){var n,i=document.createElement(e||"div");for(n in t)i[n]=t[n];return i}function t(e){for(var t=1,n=arguments.length;t<n;t++)e.appendChild(arguments[t]);return e}function n(e,t,n,i){var r=["opacity",t,~~(100*e),n,i].join("-"),o=.01+n/i*100,a=Math.max(1-(1-e)/t*(100-o),e),s=l.substring(0,l.indexOf("Animation")).toLowerCase(),u=s&&"-"+s+"-"||"";return d[r]||(c.insertRule("@"+u+"keyframes "+r+"{0%{opacity:"+a+"}"+o+"%{opacity:"+e+"}"+(o+.01)+"%{opacity:1}"+(o+t)%100+"%{opacity:"+e+"}100%{opacity:"+a+"}}",c.cssRules.length),d[r]=1),r}function i(e,t){var n,i,r=e.style;if(t=t.charAt(0).toUpperCase()+t.slice(1),void 0!==r[t])return t;for(i=0;i<p.length;i++)if(n=p[i]+t,void 0!==r[n])return n}function r(e,t){for(var n in t)e.style[i(e,n)||n]=t[n];return e}function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)void 0===e[i]&&(e[i]=n[i])}return e}function a(e,t){return"string"==typeof e?e:e[t%e.length]}function s(e){this.opts=o(e||{},s.defaults,f)}function u(){function n(t,n){return e("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',n)}c.addRule(".spin-vml","behavior:url(#default#VML)"),s.prototype.lines=function(e,i){function o(){return r(n("group",{coordsize:c+" "+c,coordorigin:-l+" "+-l}),{width:c,height:c})}function s(e,s,u){t(d,t(r(o(),{rotation:360/i.lines*e+"deg",left:~~s}),t(r(n("roundrect",{arcsize:i.corners}),{width:l,height:i.scale*i.width,left:i.scale*i.radius,top:-i.scale*i.width>>1,filter:u}),n("fill",{color:a(i.color,e),opacity:i.opacity}),n("stroke",{opacity:0}))))}var u,l=i.scale*(i.length+i.width),c=2*i.scale*l,p=-(i.width+i.length)*i.scale*2+"px",d=r(o(),{position:"absolute",top:p,left:p});if(i.shadow)for(u=1;u<=i.lines;u++)s(u,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(u=1;u<=i.lines;u++)s(u);return t(e,d)},s.prototype.opacity=function(e,t,n,i){var r=e.firstChild;i=i.shadow&&i.lines||0,r&&t+i<r.childNodes.length&&(r=r.childNodes[t+i],r=r&&r.firstChild,r=r&&r.firstChild,r&&(r.opacity=n))}}var l,c,p=["webkit","Moz","ms","O"],d={},f={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",opacity:.25,rotate:0,direction:1,speed:1,trail:100,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:!1,hwaccel:!1,position:"absolute"};if(s.defaults={},o(s.prototype,{spin:function(t){this.stop();var n=this,i=n.opts,o=n.el=e(null,{className:i.className});if(r(o,{position:i.position,width:0,zIndex:i.zIndex,left:i.left,top:i.top}),t&&t.insertBefore(o,t.firstChild||null),o.setAttribute("role","progressbar"),n.lines(o,n.opts),!l){var a,s=0,u=(i.lines-1)*(1-i.direction)/2,c=i.fps,p=c/i.speed,d=(1-i.opacity)/(p*i.trail/100),f=p/i.lines;!function h(){s++;for(var e=0;e<i.lines;e++)a=Math.max(1-(s+(i.lines-e)*f)%p*d,i.opacity),n.opacity(o,e*i.direction+u,a,i);n.timeout=n.el&&setTimeout(h,~~(1e3/c))}()}return n},stop:function(){var e=this.el;return e&&(clearTimeout(this.timeout),e.parentNode&&e.parentNode.removeChild(e),this.el=void 0),this},lines:function(i,o){function s(t,n){return r(e(),{position:"absolute",width:o.scale*(o.length+o.width)+"px",height:o.scale*o.width+"px",background:t,boxShadow:n,transformOrigin:"left",transform:"rotate("+~~(360/o.lines*c+o.rotate)+"deg) translate("+o.scale*o.radius+"px,0)",borderRadius:(o.corners*o.scale*o.width>>1)+"px"})}for(var u,c=0,p=(o.lines-1)*(1-o.direction)/2;c<o.lines;c++)u=r(e(),{position:"absolute",top:1+~(o.scale*o.width/2)+"px",transform:o.hwaccel?"translate3d(0,0,0)":"",opacity:o.opacity,animation:l&&n(o.opacity,o.trail,p+c*o.direction,o.lines)+" "+1/o.speed+"s linear infinite"}),o.shadow&&t(u,r(s("#000","0 0 4px #000"),{top:"2px"})),t(i,t(u,s(a(o.color,c),"0 0 1px rgba(0,0,0,.1)")));return i},opacity:function(e,t,n){t<e.childNodes.length&&(e.childNodes[t].style.opacity=n)}}),"undefined"!=typeof document){c=function(){var n=e("style",{type:"text/css"});return t(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}();var h=r(e("group"),{behavior:"url(#default#VML)"});!i(h,"transform")&&h.adj?u():l=i(h,"animation")}return s}),function(e){"use strict";function t(e,t){return e.module("angularSpinner",[]).constant("SpinJSSpinner",t).provider("usSpinnerConfig",function(){var e={},t={};return{setDefaults:function(t){e=t||e},setTheme:function(e,n){t[e]=n},$get:function(){return{config:e,themes:t}}}}).factory("usSpinnerService",["$rootScope",function(e){var t={};return t.spin=function(t){e.$broadcast("us-spinner:spin",t)},t.stop=function(t){e.$broadcast("us-spinner:stop",t)},t}]).directive("usSpinner",["SpinJSSpinner","usSpinnerConfig",function(t,n){return{scope:!0,link:function(i,r,o){function a(){i.spinner&&i.spinner.stop()}i.spinner=null,i.key=!!e.isDefined(o.spinnerKey)&&o.spinnerKey,i.startActive=e.isDefined(o.spinnerStartActive)?i.$eval(o.spinnerStartActive):!i.key,i.spin=function(){i.spinner&&i.spinner.spin(r[0])},i.stop=function(){i.startActive=!1,a()},i.$watch(o.usSpinner,function(s){a(),s=e.extend({},n.config,n.themes[o.spinnerTheme],s),i.spinner=new t(s),i.key&&!i.startActive||o.spinnerOn||i.spinner.spin(r[0])},!0),o.spinnerOn&&i.$watch(o.spinnerOn,function(e){e?i.spin():i.stop()}),i.$on("us-spinner:spin",function(e,t){t===i.key&&i.spin()}),i.$on("us-spinner:stop",function(e,t){t===i.key&&i.stop()}),i.$on("$destroy",function(){i.stop(),i.spinner=null})}}}])}"object"==typeof module&&module.exports?module.exports=t(require("angular"),require("spin.js")):"function"==typeof define&&define.amd?define(["angular","spin"],t):t(e.angular,e.Spinner)}(this),!window.XMLHttpRequest||window.FileAPI&&FileAPI.shouldLoad||(window.XMLHttpRequest.prototype.setRequestHeader=function(e){return function(t,n){if("__setXHR_"===t){var i=n(this);i instanceof Function&&i(this)}else e.apply(this,arguments)}}(window.XMLHttpRequest.prototype.setRequestHeader));var ngFileUpload=angular.module("ngFileUpload",[]);ngFileUpload.version="12.0.4",ngFileUpload.service("UploadBase",["$http","$q","$timeout",function(e,t,n){function i(i){function r(e){l.notify&&l.notify(e),c.progressFunc&&n(function(){c.progressFunc(e)})}function s(e){return null!=i._start&&a?{loaded:e.loaded+i._start,total:i._file&&i._file.size||e.total,type:e.type,config:i,lengthComputable:!0,target:e.target}:e}function u(){e(i).then(function(e){a&&i._chunkSize&&!i._finished&&i._file?(r({loaded:i._end,total:i._file&&i._file.size,config:i,type:"progress"}),o.upload(i,!0)):(i._finished&&delete i._finished,l.resolve(e))},function(e){l.reject(e)},function(e){l.notify(e)})}i.method=i.method||"POST",i.headers=i.headers||{};var l=i._deferred=i._deferred||t.defer(),c=l.promise;return i.disableProgress||(i.headers.__setXHR_=function(){return function(e){e&&e.upload&&e.upload.addEventListener&&(i.__XHR=e,i.xhrFn&&i.xhrFn(e),e.upload.addEventListener("progress",function(e){e.config=i,r(s(e))},!1),e.upload.addEventListener("load",function(e){e.lengthComputable&&(e.config=i,r(s(e)))},!1))}}),a?i._chunkSize&&i._end&&!i._finished?(i._start=i._end,i._end+=i._chunkSize,u()):i.resumeSizeUrl?e.get(i.resumeSizeUrl).then(function(e){i.resumeSizeResponseReader?i._start=i.resumeSizeResponseReader(e.data):i._start=parseInt((null==e.data.size?e.data:e.data.size).toString()),
  i._chunkSize&&(i._end=i._start+i._chunkSize),u()},function(e){throw e}):i.resumeSize?i.resumeSize().then(function(e){i._start=e,u()},function(e){throw e}):(i._chunkSize&&(i._start=0,i._end=i._start+i._chunkSize),u()):u(),c.success=function(e){return c.then(function(t){e(t.data,t.status,t.headers,i)}),c},c.error=function(e){return c.then(null,function(t){e(t.data,t.status,t.headers,i)}),c},c.progress=function(e){return c.progressFunc=e,c.then(null,null,function(t){e(t)}),c},c.abort=c.pause=function(){return i.__XHR&&n(function(){i.__XHR.abort()}),c},c.xhr=function(e){return i.xhrFn=function(t){return function(){t&&t.apply(c,arguments),e.apply(c,arguments)}}(i.xhrFn),c},o.promisesCount++,c["finally"](function(){o.promisesCount--}),c}function r(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var o=this;o.promisesCount=0,this.isResumeSupported=function(){return window.Blob&&window.Blob.prototype.slice};var a=this.isResumeSupported();this.isUploadInProgress=function(){return o.promisesCount>0},this.rename=function(e,t){return e.ngfName=t,e},this.jsonBlob=function(e){null==e||angular.isString(e)||(e=JSON.stringify(e));var t=new window.Blob([e],{type:"application/json"});return t._ngfBlob=!0,t},this.json=function(e){return angular.toJson(e)},this.isFile=function(e){return null!=e&&(e instanceof window.Blob||e.flashId&&e.name&&e.size)},this.upload=function(e,t){function n(t,n){if(t._ngfBlob)return t;if(e._file=e._file||t,null!=e._start&&a){e._end&&e._end>=t.size&&(e._finished=!0,e._end=t.size);var i=t.slice(e._start,e._end||t.size);return i.name=t.name,i.ngfName=t.ngfName,e._chunkSize&&(n.append("_chunkSize",e._chunkSize),n.append("_currentChunkSize",e._end-e._start),n.append("_chunkNumber",Math.floor(e._start/e._chunkSize)),n.append("_totalSize",e._file.size)),i}return t}function s(t,i,r){if(void 0!==i)if(angular.isDate(i)&&(i=i.toISOString()),angular.isString(i))t.append(r,i);else if(o.isFile(i)){var a=n(i,t),u=r.split(",");u[1]&&(a.ngfName=u[1].replace(/^\s+|\s+$/g,""),r=u[0]),e._fileKey=e._fileKey||r,t.append(r,a,a.ngfName||a.name)}else if(angular.isObject(i)){if(i.$$ngfCircularDetection)throw"ngFileUpload: Circular reference in config.data. Make sure specified data for Upload.upload() has no circular reference: "+r;i.$$ngfCircularDetection=!0;try{for(var l in i)if(i.hasOwnProperty(l)&&"$$ngfCircularDetection"!==l){var c=null==e.objectKey?"[i]":e.objectKey;i.length&&parseInt(l)>-1&&(c=null==e.arrayKey?c:e.arrayKey),s(t,i[l],r+c.replace(/[ik]/g,l))}}finally{delete i.$$ngfCircularDetection}}else t.append(r,i)}function u(){e._chunkSize=o.translateScalars(e.resumeChunkSize),e._chunkSize=e._chunkSize?parseInt(e._chunkSize.toString()):null,e.headers=e.headers||{},e.headers["Content-Type"]=void 0,e.transformRequest=e.transformRequest?angular.isArray(e.transformRequest)?e.transformRequest:[e.transformRequest]:[],e.transformRequest.push(function(t){var n,i=new window.FormData;t=t||e.fields||{},e.file&&(t.file=e.file);for(n in t)if(t.hasOwnProperty(n)){var r=t[n];e.formDataAppender?e.formDataAppender(i,n,r):s(i,r,n)}return i})}return t||(e=r(e)),e._isDigested||(e._isDigested=!0,u()),i(e)},this.http=function(t){return t=r(t),t.transformRequest=t.transformRequest||function(t){return window.ArrayBuffer&&t instanceof window.ArrayBuffer||t instanceof window.Blob?t:e.defaults.transformRequest[0].apply(this,arguments)},t._chunkSize=o.translateScalars(t.resumeChunkSize),t._chunkSize=t._chunkSize?parseInt(t._chunkSize.toString()):null,i(t)},this.translateScalars=function(e){if(angular.isString(e)){if(e.search(/kb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2));if(e.search(/mb/i)===e.length-2)return parseFloat(1048576*e.substring(0,e.length-2));if(e.search(/gb/i)===e.length-2)return parseFloat(1073741824*e.substring(0,e.length-2));if(e.search(/b/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/s/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/m/i)===e.length-1)return parseFloat(60*e.substring(0,e.length-1));if(e.search(/h/i)===e.length-1)return parseFloat(3600*e.substring(0,e.length-1))}return e},this.urlToBlob=function(n){var i=t.defer();return e({url:n,method:"get",responseType:"arraybuffer"}).then(function(e){var t=new Uint8Array(e.data),n=e.headers("content-type")||"image/WebP",r=new window.Blob([t],{type:n});i.resolve(r)},function(e){i.reject(e)}),i.promise},this.setDefaults=function(e){this.defaults=e||{}},this.defaults={},this.version=ngFileUpload.version}]),ngFileUpload.service("Upload",["$parse","$timeout","$compile","$q","UploadExif",function(e,t,n,i,r){function o(e,t,n){var r=[u.emptyPromise()];return angular.forEach(e,function(i,o){0===i.type.indexOf("image/jpeg")&&u.attrGetter("ngfFixOrientation",t,n,{$file:i})&&r.push(u.happyPromise(u.applyExifRotation(i),i).then(function(t){e.splice(o,1,t)}))}),i.all(r)}function a(e,t,n){var r=u.attrGetter("ngfResize",t,n);if(!r||!u.isResizeSupported()||!e.length)return u.emptyPromise();if(!(r instanceof Function))return s(r,e,t,n);var o=i.defer();r(e).then(function(i){s(i,e,t,n).then(function(e){o.resolve(e)},function(e){o.reject(e)})},function(e){o.reject(e)})}function s(e,t,n,r){function o(i,o){if(0===i.type.indexOf("image")){if(e.pattern&&!u.validatePattern(i,e.pattern))return;var s=u.resize(i,e.width,e.height,e.quality,e.type,e.ratio,e.centerCrop,function(e,t){return u.attrGetter("ngfResizeIf",n,r,{$width:e,$height:t,$file:i})},e.restoreExif!==!1);a.push(s),s.then(function(e){t.splice(o,1,e)},function(e){i.$error="resize",i.$errorParam=(e?(e.message?e.message:e)+": ":"")+(i&&i.name)})}}for(var a=[u.emptyPromise()],s=0;s<t.length;s++)o(t[s],s);return i.all(a)}var u=r;return u.getAttrWithDefaults=function(e,t){if(null!=e[t])return e[t];var n=u.defaults[t];return null==n?n:angular.isString(n)?n:JSON.stringify(n)},u.attrGetter=function(t,n,i,r){var o=this.getAttrWithDefaults(n,t);if(!i)return o;try{return r?e(o)(i,r):e(o)(i)}catch(a){if(t.search(/min|max|pattern/i))return o;throw a}},u.shouldUpdateOn=function(e,t,n){var i=u.attrGetter("ngModelOptions",t,n);return!i||!i.updateOn||i.updateOn.split(" ").indexOf(e)>-1},u.emptyPromise=function(){var e=i.defer(),n=arguments;return t(function(){e.resolve.apply(e,n)}),e.promise},u.rejectPromise=function(){var e=i.defer(),n=arguments;return t(function(){e.reject.apply(e,n)}),e.promise},u.happyPromise=function(e,n){var r=i.defer();return e.then(function(e){r.resolve(e)},function(e){t(function(){throw e}),r.resolve(n)}),r.promise},u.updateModel=function(n,i,r,s,l,c,p){function d(o,a,l,p,d){i.$$ngfPrevValidFiles=o,i.$$ngfPrevInvalidFiles=a;var f=o&&o.length?o[0]:null,h=a&&a.length?a[0]:null;n&&(u.applyModelValidation(n,o),n.$setViewValue(d?f:o)),s&&e(s)(r,{$files:o,$file:f,$newFiles:l,$duplicateFiles:p,$invalidFiles:a,$invalidFile:h,$event:c});var g=u.attrGetter("ngfModelInvalid",i);g&&t(function(){e(g).assign(r,d?h:a)}),t(function(){})}function f(){function e(e,t){return e.name===t.name&&(e.$ngfOrigSize||e.size)===(t.$ngfOrigSize||t.size)&&e.type===t.type}function t(t){var n;for(n=0;n<y.length;n++)if(e(t,y[n]))return!0;for(n=0;n<b.length;n++)if(e(t,b[n]))return!0;return!1}if(l){v=[],$=[];for(var n=0;n<l.length;n++)t(l[n])?$.push(l[n]):v.push(l[n])}}function h(e){return angular.isArray(e)?e:[e]}function g(){_=[],w=[],angular.forEach(v,function(e){e.$error?w.push(e):_.push(e)})}function m(){function e(){t(function(){d(k?y.concat(_):_,k?b.concat(w):w,l,$,x)},A&&A.debounce?A.debounce.change||A.debounce:0)}a(C?v:_,i,r).then(function(){C?u.validate(v,y.length,n,i,r).then(function(){g(),e()}):e()},function(e){throw"Could not resize files "+e})}var v,y,b,$=[],w=[],_=[];y=i.$$ngfPrevValidFiles||[],b=i.$$ngfPrevInvalidFiles||[],n&&n.$modelValue&&(y=h(n.$modelValue));var k=u.attrGetter("ngfKeep",i,r);v=(l||[]).slice(0),"distinct"!==k&&u.attrGetter("ngfKeepDistinct",i,r)!==!0||f(i,r);var x=!k&&!u.attrGetter("ngfMultiple",i,r)&&!u.attrGetter("multiple",i);if(!k||v.length){u.attrGetter("ngfBeforeModelChange",i,r,{$files:l,$file:l&&l.length?l[0]:null,$newFiles:v,$duplicateFiles:$,$event:c});var C=u.attrGetter("ngfValidateAfterResize",i,r),A=u.attrGetter("ngModelOptions",i,r);u.validate(v,y.length,n,i,r).then(function(){p?d(v,[],l,$,x):(A&&A.allowInvalid||C?_=v:g(),u.attrGetter("ngfFixOrientation",i,r)&&u.isExifSupported()?o(_,i,r).then(function(){m()}):m())})}},u}]),ngFileUpload.directive("ngfSelect",["$parse","$timeout","$compile","Upload",function(e,t,n,i){function r(e){var t=e.match(/Android[^\d]*(\d+)\.(\d+)/);if(t&&t.length>2){var n=i.defaults.androidFixMinorVersion||4;return parseInt(t[1])<4||parseInt(t[1])===n&&parseInt(t[2])<n}return e.indexOf("Chrome")===-1&&/.*Windows.*Safari.*/.test(e)}function o(e,t,n,i,o,s,u,l){function c(){return"input"===t[0].tagName.toLowerCase()&&n.type&&"file"===n.type.toLowerCase()}function p(){return b("ngfChange")||b("ngfSelect")}function d(t){if(l.shouldUpdateOn("change",n,e)){for(var r=t.__files_||t.target&&t.target.files,o=[],a=0;a<r.length;a++)o.push(r[a]);l.updateModel(i,n,e,p(),o.length?o:null,t)}}function f(e){if(t!==e)for(var n=0;n<t[0].attributes.length;n++){var i=t[0].attributes[n];"type"!==i.name&&"class"!==i.name&&"style"!==i.name&&(null!=i.value&&""!==i.value||("required"===i.name&&(i.value="required"),"multiple"===i.name&&(i.value="multiple")),e.attr(i.name,"id"===i.name?"ngf-"+i.value:i.value))}}function h(){if(c())return t;var e=angular.element('<input type="file">');f(e);var n=angular.element("<label>upload</label>");return n.css("visibility","hidden").css("position","absolute").css("overflow","hidden").css("width","0px").css("height","0px").css("border","none").css("margin","0px").css("padding","0px").attr("tabindex","-1"),a.push({el:t,ref:n}),document.body.appendChild(n.append(e)[0]),e}function g(n){if(t.attr("disabled"))return!1;if(!b("ngfSelectDisabled",e)){var i=m(n);if(null!=i)return i;v(n);try{c()||document.body.contains(_[0])||(a.push({el:t,ref:_.parent()}),document.body.appendChild(_.parent()[0]),_.bind("change",d))}catch(o){}return r(navigator.userAgent)?setTimeout(function(){_[0].click()},0):_[0].click(),!1}}function m(e){var t=e.changedTouches||e.originalEvent&&e.originalEvent.changedTouches;if("touchstart"===e.type)return w=t?t[0].clientY:0,!0;if(e.stopPropagation(),e.preventDefault(),"touchend"===e.type){var n=t?t[0].clientY:0;if(Math.abs(n-w)>20)return!1}}function v(t){l.shouldUpdateOn("click",n,e)&&_.val()&&(_.val(null),l.updateModel(i,n,e,p(),null,t,!0))}function y(e){if(_&&!_.attr("__ngf_ie10_Fix_")){if(!_[0].parentNode)return void(_=null);e.preventDefault(),e.stopPropagation(),_.unbind("click");var t=_.clone();return _.replaceWith(t),_=t,_.attr("__ngf_ie10_Fix_","true"),_.bind("change",d),_.bind("click",y),_[0].click(),!1}_.removeAttr("__ngf_ie10_Fix_")}var b=function(e,t){return l.attrGetter(e,n,t)};l.registerModelChangeValidator(i,n,e);var $=[];$.push(e.$watch(b("ngfMultiple"),function(){_.attr("multiple",b("ngfMultiple",e))})),$.push(e.$watch(b("ngfCapture"),function(){_.attr("capture",b("ngfCapture",e))})),$.push(e.$watch(b("ngfAccept"),function(){_.attr("accept",b("ngfAccept",e))})),n.$observe("accept",function(){_.attr("accept",b("accept"))}),$.push(function(){n.$$observers&&delete n.$$observers.accept});var w=0,_=t;c()||(_=h()),_.bind("change",d),c()?t.bind("click",v):t.bind("click touchstart touchend",g),navigator.appVersion.indexOf("MSIE 10")!==-1&&_.bind("click",y),i&&i.$formatters.push(function(e){return null!=e&&0!==e.length||_.val()&&_.val(null),e}),e.$on("$destroy",function(){c()||_.parent().remove(),angular.forEach($,function(e){e()})}),s(function(){for(var e=0;e<a.length;e++){var t=a[e];document.body.contains(t.el[0])||(a.splice(e,1),t.ref.remove())}}),window.FileAPI&&window.FileAPI.ngfFixIE&&window.FileAPI.ngfFixIE(t,_,d)}var a=[];return{restrict:"AEC",require:"?ngModel",link:function(r,a,s,u){o(r,a,s,u,e,t,n,i)}}}]),function(){function e(e){return"img"===e.tagName.toLowerCase()?"image":"audio"===e.tagName.toLowerCase()?"audio":"video"===e.tagName.toLowerCase()?"video":/./}function t(t,n,i,r,o,a,s,u){function l(e){var a=t.attrGetter("ngfNoObjectUrl",o,i);t.dataUrl(e,a)["finally"](function(){n(function(){var t=(a?e.$ngfDataUrl:e.$ngfBlobUrl)||e.$ngfDataUrl;u?r.css("background-image","url('"+(t||"")+"')"):r.attr("src",t),t?r.removeClass("ng-hide"):r.addClass("ng-hide")})})}n(function(){var n=i.$watch(o[a],function(n){var i=s;if("ngfThumbnail"===a&&(i||(i={width:r[0].clientWidth,height:r[0].clientHeight}),0===i.width&&window.getComputedStyle)){var o=getComputedStyle(r[0]);i={width:parseInt(o.width.slice(0,-2)),height:parseInt(o.height.slice(0,-2))}}return angular.isString(n)?(r.removeClass("ng-hide"),u?r.css("background-image","url('"+n+"')"):r.attr("src",n)):void(!n||!n.type||0!==n.type.search(e(r[0]))||u&&0!==n.type.indexOf("image")?r.addClass("ng-hide"):i&&t.isResizeSupported()?t.resize(n,i.width,i.height,i.quality).then(function(e){l(e)},function(e){throw e}):l(n))});i.$on("$destroy",function(){n()})})}ngFileUpload.service("UploadDataUrl",["UploadBase","$timeout","$q",function(e,t,n){var i=e;return i.base64DataUrl=function(e){if(angular.isArray(e)){var t=n.defer(),r=0;return angular.forEach(e,function(n){i.dataUrl(n,!0)["finally"](function(){if(r++,r===e.length){var n=[];angular.forEach(e,function(e){n.push(e.$ngfDataUrl)}),t.resolve(n,e)}})}),t.promise}return i.dataUrl(e,!0)},i.dataUrl=function(e,r){if(!e)return i.emptyPromise(e,e);if(r&&null!=e.$ngfDataUrl||!r&&null!=e.$ngfBlobUrl)return i.emptyPromise(r?e.$ngfDataUrl:e.$ngfBlobUrl,e);var o=r?e.$$ngfDataUrlPromise:e.$$ngfBlobUrlPromise;if(o)return o;var a=n.defer();return t(function(){if(window.FileReader&&e&&(!window.FileAPI||navigator.userAgent.indexOf("MSIE 8")===-1||e.size<2e4)&&(!window.FileAPI||navigator.userAgent.indexOf("MSIE 9")===-1||e.size<4e6)){var n=window.URL||window.webkitURL;if(n&&n.createObjectURL&&!r){var o;try{o=n.createObjectURL(e)}catch(s){return void t(function(){e.$ngfBlobUrl="",a.reject()})}t(function(){if(e.$ngfBlobUrl=o,o){a.resolve(o,e),i.blobUrls=i.blobUrls||[],i.blobUrlsTotalSize=i.blobUrlsTotalSize||0,i.blobUrls.push({url:o,size:e.size}),i.blobUrlsTotalSize+=e.size||0;for(var t=i.defaults.blobUrlsMaxMemory||268435456,r=i.defaults.blobUrlsMaxQueueSize||200;(i.blobUrlsTotalSize>t||i.blobUrls.length>r)&&i.blobUrls.length>1;){var s=i.blobUrls.splice(0,1)[0];n.revokeObjectURL(s.url),i.blobUrlsTotalSize-=s.size}}})}else{var u=new FileReader;u.onload=function(n){t(function(){e.$ngfDataUrl=n.target.result,a.resolve(n.target.result,e),t(function(){delete e.$ngfDataUrl},1e3)})},u.onerror=function(){t(function(){e.$ngfDataUrl="",a.reject()})},u.readAsDataURL(e)}}else t(function(){e[r?"$ngfDataUrl":"$ngfBlobUrl"]="",a.reject()})}),o=r?e.$$ngfDataUrlPromise=a.promise:e.$$ngfBlobUrlPromise=a.promise,o["finally"](function(){delete e[r?"$$ngfDataUrlPromise":"$$ngfBlobUrlPromise"]}),o},i}]),ngFileUpload.directive("ngfSrc",["Upload","$timeout",function(e,n){return{restrict:"AE",link:function(i,r,o){t(e,n,i,r,o,"ngfSrc",e.attrGetter("ngfResize",o,i),!1)}}}]),ngFileUpload.directive("ngfBackground",["Upload","$timeout",function(e,n){return{restrict:"AE",link:function(i,r,o){t(e,n,i,r,o,"ngfBackground",e.attrGetter("ngfResize",o,i),!0)}}}]),ngFileUpload.directive("ngfThumbnail",["Upload","$timeout",function(e,n){return{restrict:"AE",link:function(i,r,o){var a=e.attrGetter("ngfSize",o,i);t(e,n,i,r,o,"ngfThumbnail",a,e.attrGetter("ngfAsBackground",o,i))}}}]),ngFileUpload.config(["$compileProvider",function(e){e.imgSrcSanitizationWhitelist&&e.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|local|file|data|blob):/),e.aHrefSanitizationWhitelist&&e.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|local|file|data|blob):/)}]),ngFileUpload.filter("ngfDataUrl",["UploadDataUrl","$sce",function(e,t){return function(n,i,r){if(angular.isString(n))return t.trustAsResourceUrl(n);var o=n&&((i?n.$ngfDataUrl:n.$ngfBlobUrl)||n.$ngfDataUrl);return n&&!o?(!n.$ngfDataUrlFilterInProgress&&angular.isObject(n)&&(n.$ngfDataUrlFilterInProgress=!0,e.dataUrl(n,i)),""):(n&&delete n.$ngfDataUrlFilterInProgress,(n&&o?r?t.trustAsResourceUrl(o):o:n)||"")}}])}(),ngFileUpload.service("UploadValidate",["UploadDataUrl","$q","$timeout",function(e,t,n){function i(e){var t="",n=[];if(e.length>2&&"/"===e[0]&&"/"===e[e.length-1])t=e.substring(1,e.length-1);else{var r=e.split(",");if(r.length>1)for(var o=0;o<r.length;o++){var a=i(r[o]);a.regexp?(t+="("+a.regexp+")",o<r.length-1&&(t+="|")):n=n.concat(a.excludes)}else 0===e.indexOf("!")?n.push("^((?!"+i(e.substring(1)).regexp+").)*$"):(0===e.indexOf(".")&&(e="*"+e),t="^"+e.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")+"$",t=t.replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:t,excludes:n}}function r(e,t){null==t||e.$dirty||(e.$setDirty?e.$setDirty():e.$dirty=!0)}var o=e;return o.validatePattern=function(e,t){if(!t)return!0;var n=i(t),r=!0;if(n.regexp&&n.regexp.length){var o=new RegExp(n.regexp,"i");r=null!=e.type&&o.test(e.type)||null!=e.name&&o.test(e.name)}for(var a=n.excludes.length;a--;){var s=new RegExp(n.excludes[a],"i");r=r&&(null==e.type||s.test(e.type))&&(null==e.name||s.test(e.name))}return r},o.ratioToFloat=function(e){var t=e.toString(),n=t.search(/[x:]/i);return t=n>-1?parseFloat(t.substring(0,n))/parseFloat(t.substring(n+1)):parseFloat(t)},o.registerModelChangeValidator=function(e,t,n){e&&e.$formatters.push(function(i){e.$dirty&&(i&&!angular.isArray(i)&&(i=[i]),o.validate(i,0,e,t,n).then(function(){o.applyModelValidation(e,i)}))})},o.applyModelValidation=function(e,t){r(e,t),angular.forEach(e.$ngfValidations,function(t){e.$setValidity(t.name,t.valid)})},o.getValidationAttr=function(e,t,n,i,r){var a="ngf"+n[0].toUpperCase()+n.substr(1),s=o.attrGetter(a,e,t,{$file:r});if(null==s&&(s=o.attrGetter("ngfValidate",e,t,{$file:r}))){var u=(i||n).split(".");s=s[u[0]],u.length>1&&(s=s&&s[u[1]])}return s},o.validate=function(e,n,i,r,a){function s(t,n,s){if(e){for(var u=e.length,l=null;u--;){var c=e[u];if(c){var p=o.getValidationAttr(r,a,t,n,c);null!=p&&(s(c,p,u)||(c.$error=t,(c.$errorMessages=c.$errorMessages||{})[t]=!0,c.$errorParam=p,e.splice(u,1),l=!1))}}null!==l&&i.$ngfValidations.push({name:t,valid:l})}}function u(n,s,u,c,p){function d(e,t,i){null!=i?c(t,i).then(function(r){p(r,i)?e.resolve():(t.$error=n,(t.$errorMessages=t.$errorMessages||{})[n]=!0,t.$errorParam=i,e.reject())},function(){l("ngfValidateForce",{$file:t})?(t.$error=n,(t.$errorMessages=t.$errorMessages||{})[n]=!0,t.$errorParam=i,e.reject()):e.resolve()}):e.resolve()}var f=[o.emptyPromise()];if(e)return e=void 0===e.length?[e]:e,angular.forEach(e,function(e){var i=t.defer();return f.push(i.promise),!u||null!=e.type&&0===e.type.search(u)?void("dimensions"===n&&null!=o.attrGetter("ngfDimensions",r)?o.imageDimensions(e).then(function(t){d(i,e,l("ngfDimensions",{$file:e,$width:t.width,$height:t.height}))},function(){i.reject()}):"duration"===n&&null!=o.attrGetter("ngfDuration",r)?o.mediaDuration(e).then(function(t){d(i,e,l("ngfDuration",{$file:e,$duration:t}))},function(){i.reject()}):d(i,e,o.getValidationAttr(r,a,n,s,e))):void i.resolve()}),t.all(f).then(function(){i.$ngfValidations.push({name:n,valid:!0})},function(){i.$ngfValidations.push({name:n,valid:!1})})}i=i||{},i.$ngfValidations=i.$ngfValidations||[],angular.forEach(i.$ngfValidations,function(e){e.valid=!0});var l=function(e,t){return o.attrGetter(e,r,a,t)};if(null==e||0===e.length)return o.emptyPromise(i);e=void 0===e.length?[e]:e.slice(0),s("maxFiles",null,function(e,t,i){return n+i<t}),s("pattern",null,o.validatePattern),s("minSize","size.min",function(e,t){return e.size+.1>=o.translateScalars(t)}),s("maxSize","size.max",function(e,t){return e.size-.1<=o.translateScalars(t)});var c=0;if(s("maxTotalSize",null,function(t,n){return c+=t.size,!(c>o.translateScalars(n))||(e.splice(0,e.length),!1)}),s("validateFn",null,function(e,t){return t===!0||null===t||""===t}),!e.length)return o.emptyPromise(i,i.$ngfValidations);var p=t.defer(),d=[];return d.push(o.happyPromise(u("maxHeight","height.max",/image/,this.imageDimensions,function(e,t){return e.height<=t}))),d.push(o.happyPromise(u("minHeight","height.min",/image/,this.imageDimensions,function(e,t){return e.height>=t}))),d.push(o.happyPromise(u("maxWidth","width.max",/image/,this.imageDimensions,function(e,t){return e.width<=t}))),d.push(o.happyPromise(u("minWidth","width.min",/image/,this.imageDimensions,function(e,t){return e.width>=t}))),d.push(o.happyPromise(u("dimensions",null,/image/,function(e,t){return o.emptyPromise(t)},function(e){return e}))),d.push(o.happyPromise(u("ratio",null,/image/,this.imageDimensions,function(e,t){for(var n=t.toString().split(","),i=!1,r=0;r<n.length;r++)Math.abs(e.width/e.height-o.ratioToFloat(n[r]))<1e-4&&(i=!0);return i}))),d.push(o.happyPromise(u("maxRatio","ratio.max",/image/,this.imageDimensions,function(e,t){return e.width/e.height-o.ratioToFloat(t)<1e-4}))),d.push(o.happyPromise(u("minRatio","ratio.min",/image/,this.imageDimensions,function(e,t){return e.width/e.height-o.ratioToFloat(t)>-1e-4}))),d.push(o.happyPromise(u("maxDuration","duration.max",/audio|video/,this.mediaDuration,function(e,t){return e<=o.translateScalars(t)}))),d.push(o.happyPromise(u("minDuration","duration.min",/audio|video/,this.mediaDuration,function(e,t){return e>=o.translateScalars(t)}))),d.push(o.happyPromise(u("duration",null,/audio|video/,function(e,t){return o.emptyPromise(t)},function(e){return e}))),d.push(o.happyPromise(u("validateAsyncFn",null,null,function(e,t){return t},function(e){return e===!0||null===e||""===e}))),t.all(d).then(function(){p.resolve(i,i.$ngfValidations)})},o.imageDimensions=function(e){if(e.$ngfWidth&&e.$ngfHeight){var i=t.defer();return n(function(){i.resolve({width:e.$ngfWidth,height:e.$ngfHeight})}),i.promise}if(e.$ngfDimensionPromise)return e.$ngfDimensionPromise;var r=t.defer();return n(function(){return 0!==e.type.indexOf("image")?void r.reject("not image"):void o.dataUrl(e).then(function(t){function i(){var t=s[0].clientWidth,n=s[0].clientHeight;s.remove(),e.$ngfWidth=t,e.$ngfHeight=n,r.resolve({width:t,height:n})}function o(){s.remove(),r.reject("load error")}function a(){n(function(){s[0].parentNode&&(s[0].clientWidth?i():u>10?o():a())},1e3)}var s=angular.element("<img>").attr("src",t).css("visibility","hidden").css("position","fixed").css("max-width","none !important").css("max-height","none !important");s.on("load",i),s.on("error",o);var u=0;a(),angular.element(document.getElementsByTagName("body")[0]).append(s)},function(){r.reject("load error")})}),e.$ngfDimensionPromise=r.promise,e.$ngfDimensionPromise["finally"](function(){delete e.$ngfDimensionPromise}),e.$ngfDimensionPromise},o.mediaDuration=function(e){if(e.$ngfDuration){var i=t.defer();return n(function(){i.resolve(e.$ngfDuration)}),i.promise}if(e.$ngfDurationPromise)return e.$ngfDurationPromise;var r=t.defer();return n(function(){return 0!==e.type.indexOf("audio")&&0!==e.type.indexOf("video")?void r.reject("not media"):void o.dataUrl(e).then(function(t){function i(){var t=s[0].duration;e.$ngfDuration=t,s.remove(),r.resolve(t)}function o(){s.remove(),r.reject("load error")}function a(){n(function(){s[0].parentNode&&(s[0].duration?i():u>10?o():a())},1e3)}var s=angular.element(0===e.type.indexOf("audio")?"<audio>":"<video>").attr("src",t).css("visibility","none").css("position","fixed");s.on("loadedmetadata",i),s.on("error",o);var u=0;a(),angular.element(document.body).append(s)},function(){r.reject("load error")})}),e.$ngfDurationPromise=r.promise,e.$ngfDurationPromise["finally"](function(){delete e.$ngfDurationPromise}),e.$ngfDurationPromise},o}]),ngFileUpload.service("UploadResize",["UploadValidate","$q",function(e,t){var n=e,i=function(e,t,n,i,r){var o=r?Math.max(n/e,i/t):Math.min(n/e,i/t);return{width:e*o,height:t*o,marginX:e*o-n,marginY:t*o-i}},r=function(e,r,o,a,s,u,l,c){var p=t.defer(),d=document.createElement("canvas"),f=document.createElement("img");return f.onload=function(){if(null!=c&&c(f.width,f.height)===!1)return void p.reject("resizeIf");try{if(u){var e=n.ratioToFloat(u),t=f.width/f.height;t<e?(r=f.width,o=r/e):(o=f.height,r=o*e)}r||(r=f.width),o||(o=f.height);var h=i(f.width,f.height,r,o,l);d.width=Math.min(h.width,r),d.height=Math.min(h.height,o);var g=d.getContext("2d");g.drawImage(f,Math.min(0,-h.marginX/2),Math.min(0,-h.marginY/2),h.width,h.height),p.resolve(d.toDataURL(s||"image/WebP",a||.934))}catch(m){p.reject(m)}},f.onerror=function(){p.reject()},f.src=e,p.promise};return n.dataUrltoBlob=function(e,t,n){for(var i=e.split(","),r=i[0].match(/:(.*?);/)[1],o=atob(i[1]),a=o.length,s=new Uint8Array(a);a--;)s[a]=o.charCodeAt(a);var u=new window.Blob([s],{type:r});return u.name=t,u.$ngfOrigSize=n,u},n.isResizeSupported=function(){var e=document.createElement("canvas");return window.atob&&e.getContext&&e.getContext("2d")&&window.Blob},n.isResizeSupported()&&Object.defineProperty(window.Blob.prototype,"name",{get:function(){return this.$ngfName},set:function(e){this.$ngfName=e},configurable:!0}),n.resize=function(e,i,o,a,s,u,l,c,p){if(0!==e.type.indexOf("image"))return n.emptyPromise(e);var d=t.defer();return n.dataUrl(e,!0).then(function(t){r(t,i,o,a,s||e.type,u,l,c).then(function(i){if("image/jpeg"===e.type&&p)try{i=n.restoreExif(t,i)}catch(r){setTimeout(function(){throw r},1)}try{var o=n.dataUrltoBlob(i,e.name,e.size);d.resolve(o)}catch(r){d.reject(r)}},function(t){"resizeIf"===t&&d.resolve(e),d.reject(t)})},function(e){d.reject(e)}),d.promise},n}]),function(){function e(e,n,i,r,o,a,s,u,l,c){function p(){return n.attr("disabled")||v("ngfDropDisabled",e)}function d(t,n){u.updateModel(r,i,e,v("ngfChange")||v("ngfDrop"),t,n)}function f(t,n){if(!u.shouldUpdateOn(t,i,e)||!n)return u.rejectPromise([]);var r=[];n.replace(/<(img src|img [^>]* src) *=\"([^\"]*)\"/gi,function(e,t,n){r.push(n)});var o=[],a=[];if(r.length){angular.forEach(r,function(e){o.push(u.urlToBlob(e).then(function(e){a.push(e)}))});var s=c.defer();return c.all(o).then(function(){s.resolve(a)},function(e){s.reject(e)}),s.promise}return u.emptyPromise()}function h(e,t,n,i){var r=v("ngfDragOverClass",e,{$event:n}),o="dragover";if(angular.isString(r))o=r;else if(r&&(r.delay&&(w=r.delay),r.accept||r.reject)){var a=n.dataTransfer.items;if(null!=a&&a.length)for(var s=r.pattern||v("ngfPattern",e,{$event:n}),l=a.length;l--;){if(!u.validatePattern(a[l],s)){o=r.reject;break}o=r.accept}else o=r.accept}i(o)}function g(t,n,r,o){function a(e,t){var n=c.defer();if(null!=e)if(e.isDirectory){var i=[u.emptyPromise()];if(d){var r={type:"directory"};r.name=r.path=(t||"")+e.name+e.name,f.push(r)}var o=e.createReader(),s=[],g=function(){o.readEntries(function(r){try{r.length?(s=s.concat(Array.prototype.slice.call(r||[],0)),g()):(angular.forEach(s.slice(0),function(n){f.length<=l&&h<=p&&i.push(a(n,(t?t:"")+e.name+"/"))}),c.all(i).then(function(){n.resolve()},function(e){n.reject(e)}))}catch(o){n.reject(o)}},function(e){n.reject(e)})};g()}else e.file(function(e){try{e.path=(t?t:"")+e.name,d&&(e=u.rename(e,e.path)),f.push(e),h+=e.size,n.resolve()}catch(i){n.reject(i)}},function(e){n.reject(e)});return n.promise}var l=u.getValidationAttr(i,e,"maxFiles")||Number.MAX_VALUE,p=u.getValidationAttr(i,e,"maxTotalSize")||Number.MAX_VALUE,d=v("ngfIncludeDir",e),f=[],h=0,g=[u.emptyPromise()];if(t&&t.length>0&&"file"!==s.protocol())for(var m=0;m<t.length;m++){if(t[m].webkitGetAsEntry&&t[m].webkitGetAsEntry()&&t[m].webkitGetAsEntry().isDirectory){var y=t[m].webkitGetAsEntry();if(y.isDirectory&&!r)continue;null!=y&&g.push(a(y))}else{var b=t[m].getAsFile();null!=b&&(f.push(b),h+=b.size)}if(f.length>l||h>p||!o&&f.length>0)break}else if(null!=n)for(var $=0;$<n.length;$++){var w=n.item($);if((w.type||w.size>0)&&(f.push(w),h+=w.size),f.length>l||h>p||!o&&f.length>0)break}var _=c.defer();return c.all(g).then(function(){if(o||d||!f.length)_.resolve(f);else{for(var e=0;f[e]&&"directory"===f[e].type;)e++;_.resolve([f[e]])}},function(e){_.reject(e)}),_.promise}var m=t(),v=function(e,t,n){return u.attrGetter(e,i,t,n)};if(v("dropAvailable")&&a(function(){e[v("dropAvailable")]?e[v("dropAvailable")].value=m:e[v("dropAvailable")]=m}),!m)return void(v("ngfHideOnDropNotAvailable",e)===!0&&n.css("display","none"));null==v("ngfSelect")&&u.registerModelChangeValidator(r,i,e);var y,b=null,$=o(v("ngfStopPropagation")),w=1;n[0].addEventListener("dragover",function(t){if(!p()&&u.shouldUpdateOn("drop",i,e)){if(t.preventDefault(),$(e)&&t.stopPropagation(),navigator.userAgent.indexOf("Chrome")>-1){var r=t.dataTransfer.effectAllowed;t.dataTransfer.dropEffect="move"===r||"linkMove"===r?"move":"copy"}a.cancel(b),y||(y="C",h(e,i,t,function(i){y=i,n.addClass(y),v("ngfDrag",e,{$isDragging:!0,$class:y,$event:t})}))}},!1),n[0].addEventListener("dragenter",function(t){!p()&&u.shouldUpdateOn("drop",i,e)&&(t.preventDefault(),$(e)&&t.stopPropagation())},!1),n[0].addEventListener("dragleave",function(t){!p()&&u.shouldUpdateOn("drop",i,e)&&(t.preventDefault(),$(e)&&t.stopPropagation(),b=a(function(){y&&n.removeClass(y),y=null,v("ngfDrag",e,{$isDragging:!1,$event:t})},w||100))},!1),n[0].addEventListener("drop",function(t){if(!p()&&u.shouldUpdateOn("drop",i,e)){t.preventDefault(),$(e)&&t.stopPropagation(),y&&n.removeClass(y),y=null;var r,o=t.dataTransfer.items;try{r=t.dataTransfer&&t.dataTransfer.getData&&t.dataTransfer.getData("text/html")}catch(a){}g(o,t.dataTransfer.files,v("ngfAllowDir",e)!==!1,v("multiple")||v("ngfMultiple",e)).then(function(e){e.length?d(e,t):f("dropUrl",r).then(function(e){d(e,t)})})}},!1),n[0].addEventListener("paste",function(t){if(navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&v("ngfEnableFirefoxPaste",e)&&t.preventDefault(),!p()&&u.shouldUpdateOn("paste",i,e)){var n=[],r=t.clipboardData||t.originalEvent.clipboardData;if(r&&r.items)for(var o=0;o<r.items.length;o++)r.items[o].type.indexOf("image")!==-1&&n.push(r.items[o].getAsFile());n.length?d(n,t):f("pasteUrl",r).then(function(e){d(e,t)})}},!1),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&v("ngfEnableFirefoxPaste",e)&&(n.attr("contenteditable",!0),n.on("keypress",function(e){e.metaKey||e.ctrlKey||e.preventDefault()}))}function t(){var e=document.createElement("div");return"draggable"in e&&"ondrop"in e&&!/Edge\/12./i.test(navigator.userAgent)}ngFileUpload.directive("ngfDrop",["$parse","$timeout","$location","Upload","$http","$q",function(t,n,i,r,o,a){return{restrict:"AEC",require:"?ngModel",link:function(s,u,l,c){e(s,u,l,c,t,n,i,r,o,a)}}}]),ngFileUpload.directive("ngfNoFileDrop",function(){return function(e,n){t()&&n.css("display","none")}}),ngFileUpload.directive("ngfDropAvailable",["$parse","$timeout","Upload",function(e,n,i){return function(r,o,a){if(t()){var s=e(i.attrGetter("ngfDropAvailable",a));n(function(){s(r),s.assign&&s.assign(r,!0)})}}}])}(),ngFileUpload.service("UploadExif",["UploadResize","$q",function(e,t){function n(e,t,n,i){switch(t){case 2:return e.transform(-1,0,0,1,n,0);case 3:return e.transform(-1,0,0,-1,n,i);case 4:return e.transform(1,0,0,-1,0,i);case 5:return e.transform(0,1,1,0,0,0);case 6:return e.transform(0,1,-1,0,i,0);case 7:return e.transform(0,-1,-1,0,i,n);case 8:return e.transform(0,-1,1,0,0,n)}}function i(e){for(var t="",n=new Uint8Array(e),i=n.byteLength,r=0;r<i;r++)t+=String.fromCharCode(n[r]);return window.btoa(t)}var r=e;return r.isExifSupported=function(){return window.FileReader&&(new FileReader).readAsArrayBuffer&&r.isResizeSupported()},r.readOrientation=function(e){var n=t.defer(),i=new FileReader,r=e.slice?e.slice(0,65536):e;return i.readAsArrayBuffer(r),i.onerror=function(e){return n.reject(e)},i.onload=function(e){var t={orientation:1},i=new DataView(this.result);if(65496!==i.getUint16(0,!1))return n.resolve(t);for(var r=i.byteLength,o=2;o<r;){var a=i.getUint16(o,!1);if(o+=2,65505===a){if(1165519206!==i.getUint32(o+=2,!1))return n.resolve(t);var s=18761===i.getUint16(o+=6,!1);o+=i.getUint32(o+4,s);var u=i.getUint16(o,s);o+=2;for(var l=0;l<u;l++)if(274===i.getUint16(o+12*l,s)){var c=i.getUint16(o+12*l+8,s);return c>=2&&c<=8&&(i.setUint16(o+12*l+8,1,s),
  t.fixedArrayBuffer=e.target.result),t.orientation=c,n.resolve(t)}}else{if(65280!==(65280&a))break;o+=i.getUint16(o,!1)}}return n.resolve(t)},n.promise},r.applyExifRotation=function(e){if(0!==e.type.indexOf("image/jpeg"))return r.emptyPromise(e);var o=t.defer();return r.readOrientation(e).then(function(t){return t.orientation<2||t.orientation>8?o.resolve(e):void r.dataUrl(e,!0).then(function(a){var s=document.createElement("canvas"),u=document.createElement("img");u.onload=function(){try{s.width=t.orientation>4?u.height:u.width,s.height=t.orientation>4?u.width:u.height;var a=s.getContext("2d");n(a,t.orientation,u.width,u.height),a.drawImage(u,0,0);var l=s.toDataURL(e.type||"image/WebP",.934);l=r.restoreExif(i(t.fixedArrayBuffer),l);var c=r.dataUrltoBlob(l,e.name);o.resolve(c)}catch(p){return o.reject(p)}},u.onerror=function(){o.reject()},u.src=a},function(e){o.reject(e)})},function(e){o.reject(e)}),o.promise},r.restoreExif=function(e,t){var n={};return n.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n.encode64=function(e){var t,n,i,r,o,a="",s="",u="",l=0;do t=e[l++],n=e[l++],s=e[l++],i=t>>2,r=(3&t)<<4|n>>4,o=(15&n)<<2|s>>6,u=63&s,isNaN(n)?o=u=64:isNaN(s)&&(u=64),a=a+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(u),t=n=s="",i=r=o=u="";while(l<e.length);return a},n.restore=function(e,t){e.match("data:image/jpeg;base64,")&&(e=e.replace("data:image/jpeg;base64,",""));var n=this.decode64(e),i=this.slice2Segments(n),r=this.exifManipulation(t,i);return"data:image/jpeg;base64,"+this.encode64(r)},n.exifManipulation=function(e,t){var n=this.getExifArray(t),i=this.insertExif(e,n);return new Uint8Array(i)},n.getExifArray=function(e){for(var t,n=0;n<e.length;n++)if(t=e[n],255===t[0]&225===t[1])return t;return[]},n.insertExif=function(e,t){var n=e.replace("data:image/jpeg;base64,",""),i=this.decode64(n),r=i.indexOf(255,3),o=i.slice(0,r),a=i.slice(r),s=o;return s=s.concat(t),s=s.concat(a)},n.slice2Segments=function(e){for(var t=0,n=[];;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{var i=256*e[t+2]+e[t+3],r=t+i+2,o=e.slice(t,r);n.push(o),t=r}if(t>e.length)break}return n},n.decode64=function(e){var t,n,i,r,o,a="",s="",u=0,l=[],c=/[^A-Za-z0-9\+\/\=]/g;c.exec(e)&&console.log("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, NaNExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do i=this.KEY_STR.indexOf(e.charAt(u++)),r=this.KEY_STR.indexOf(e.charAt(u++)),o=this.KEY_STR.indexOf(e.charAt(u++)),s=this.KEY_STR.indexOf(e.charAt(u++)),t=i<<2|r>>4,n=(15&r)<<4|o>>2,a=(3&o)<<6|s,l.push(t),64!==o&&l.push(n),64!==s&&l.push(a),t=n=a="",i=r=o=s="";while(u<e.length);return l},n.restore(e,t)},r}]),function(){function e(e,t){window.XMLHttpRequest.prototype[e]=t(window.XMLHttpRequest.prototype[e])}function t(e,t,n){try{Object.defineProperty(e,t,{get:n})}catch(i){}}if(window.FileAPI||(window.FileAPI={}),!window.XMLHttpRequest)throw"AJAX is not supported. XMLHttpRequest is not defined.";if(FileAPI.shouldLoad=!window.FormData||FileAPI.forceLoad,FileAPI.shouldLoad){var n=function(e){if(!e.__listeners){e.upload||(e.upload={}),e.__listeners=[];var t=e.upload.addEventListener;e.upload.addEventListener=function(n,i){e.__listeners[n]=i,t&&t.apply(this,arguments)}}};e("open",function(e){return function(t,i,r){n(this),this.__url=i;try{e.apply(this,[t,i,r])}catch(o){o.message.indexOf("Access is denied")>-1&&(this.__origError=o,e.apply(this,[t,"_fix_for_ie_crossdomain__",r]))}}}),e("getResponseHeader",function(e){return function(t){return this.__fileApiXHR&&this.__fileApiXHR.getResponseHeader?this.__fileApiXHR.getResponseHeader(t):null==e?null:e.apply(this,[t])}}),e("getAllResponseHeaders",function(e){return function(){return this.__fileApiXHR&&this.__fileApiXHR.getAllResponseHeaders?this.__fileApiXHR.getAllResponseHeaders():null==e?null:e.apply(this)}}),e("abort",function(e){return function(){return this.__fileApiXHR&&this.__fileApiXHR.abort?this.__fileApiXHR.abort():null==e?null:e.apply(this)}}),e("setRequestHeader",function(e){return function(t,i){if("__setXHR_"===t){n(this);var r=i(this);r instanceof Function&&r(this)}else this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[t]=i,e.apply(this,arguments)}}),e("send",function(e){return function(){var n=this;if(arguments[0]&&arguments[0].__isFileAPIShim){var i=arguments[0],r={url:n.__url,jsonp:!1,cache:!0,complete:function(e,i){e&&angular.isString(e)&&e.indexOf("#2174")!==-1&&(e=null),n.__completed=!0,!e&&n.__listeners.load&&n.__listeners.load({type:"load",loaded:n.__loaded,total:n.__total,target:n,lengthComputable:!0}),!e&&n.__listeners.loadend&&n.__listeners.loadend({type:"loadend",loaded:n.__loaded,total:n.__total,target:n,lengthComputable:!0}),"abort"===e&&n.__listeners.abort&&n.__listeners.abort({type:"abort",loaded:n.__loaded,total:n.__total,target:n,lengthComputable:!0}),void 0!==i.status&&t(n,"status",function(){return 0===i.status&&e&&"abort"!==e?500:i.status}),void 0!==i.statusText&&t(n,"statusText",function(){return i.statusText}),t(n,"readyState",function(){return 4}),void 0!==i.response&&t(n,"response",function(){return i.response});var r=i.responseText||(e&&0===i.status&&"abort"!==e?e:void 0);t(n,"responseText",function(){return r}),t(n,"response",function(){return r}),e&&t(n,"err",function(){return e}),n.__fileApiXHR=i,n.onreadystatechange&&n.onreadystatechange(),n.onload&&n.onload()},progress:function(e){if(e.target=n,n.__listeners.progress&&n.__listeners.progress(e),n.__total=e.total,n.__loaded=e.loaded,e.total===e.loaded){var t=this;setTimeout(function(){n.__completed||(n.getAllResponseHeaders=function(){},t.complete(null,{status:204,statusText:"No Content"}))},FileAPI.noContentTimeout||1e4)}},headers:n.__requestHeaders};r.data={},r.files={};for(var o=0;o<i.data.length;o++){var a=i.data[o];null!=a.val&&null!=a.val.name&&null!=a.val.size&&null!=a.val.type?r.files[a.key]=a.val:r.data[a.key]=a.val}setTimeout(function(){if(!FileAPI.hasFlash)throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';n.__fileApiXHR=FileAPI.upload(r)},1)}else{if(this.__origError)throw this.__origError;e.apply(n,arguments)}}}),window.XMLHttpRequest.__isFileAPIShim=!0,window.FormData=FormData=function(){return{append:function(e,t,n){t.__isFileAPIBlobShim&&(t=t.data[0]),this.data.push({key:e,val:t,name:n})},data:[],__isFileAPIShim:!0}},window.Blob=Blob=function(e){return{data:e,__isFileAPIBlobShim:!0}}}}(),function(){function e(e){return"input"===e[0].tagName.toLowerCase()&&e.attr("type")&&"file"===e.attr("type").toLowerCase()}function t(){try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(e)return!0}catch(t){if(void 0!==navigator.mimeTypes["application/x-shockwave-flash"])return!0}return!1}function n(e){var t=0,n=0;if(window.jQuery)return jQuery(e).offset();if(e.offsetParent)do t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent;while(e);return{left:t,top:n}}if(FileAPI.shouldLoad){if(FileAPI.hasFlash=t(),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var i,r,o,a,s,u=document.createElement("script"),l=document.getElementsByTagName("script");if(window.FileAPI.jsUrl)i=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)r=window.FileAPI.jsPath;else for(o=0;o<l.length;o++)if(s=l[o].src,a=s.search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/),a>-1){r=s.substring(0,a+1);break}null==FileAPI.staticPath&&(FileAPI.staticPath=r),u.setAttribute("src",i||r+"FileAPI.min.js"),document.getElementsByTagName("head")[0].appendChild(u)}FileAPI.ngfFixIE=function(i,r,o){if(!t())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';var a=function(){var t=r.parent();i.attr("disabled")?t&&t.removeClass("js-fileapi-wrapper"):(r.attr("__ngf_flash_")||(r.unbind("change"),r.unbind("click"),r.bind("change",function(e){s.apply(this,[e]),o.apply(this,[e])}),r.attr("__ngf_flash_","true")),t.addClass("js-fileapi-wrapper"),e(i)||(t.css("position","absolute").css("top",n(i[0]).top+"px").css("left",n(i[0]).left+"px").css("width",i[0].offsetWidth+"px").css("height",i[0].offsetHeight+"px").css("filter","alpha(opacity=0)").css("display",i.css("display")).css("overflow","hidden").css("z-index","900000").css("visibility","visible"),r.css("width",i[0].offsetWidth+"px").css("height",i[0].offsetHeight+"px").css("position","absolute").css("top","0px").css("left","0px")))};i.bind("mouseenter",a);var s=function(e){for(var t=FileAPI.getFiles(e),n=0;n<t.length;n++)void 0===t[n].size&&(t[n].size=0),void 0===t[n].name&&(t[n].name="file"),void 0===t[n].type&&(t[n].type="undefined");e.target||(e.target={}),e.target.files=t,e.target.files!==t&&(e.__files_=t),(e.__files_||e.target.files).item=function(t){return(e.__files_||e.target.files)[t]||null}}},FileAPI.disableFileInput=function(e,t){t?e.removeClass("js-fileapi-wrapper"):e.addClass("js-fileapi-wrapper")}}}(),window.FileReader||(window.FileReader=function(){var e=this,t=!1;this.listeners={},this.addEventListener=function(t,n){e.listeners[t]=e.listeners[t]||[],e.listeners[t].push(n)},this.removeEventListener=function(t,n){e.listeners[t]&&e.listeners[t].splice(e.listeners[t].indexOf(n),1)},this.dispatchEvent=function(t){var n=e.listeners[t.type];if(n)for(var i=0;i<n.length;i++)n[i].call(e,t)},this.onabort=this.onerror=this.onload=this.onloadstart=this.onloadend=this.onprogress=null;var n=function(t,n){var i={type:t,target:e,loaded:n.loaded,total:n.total,error:n.error};return null!=n.result&&(i.target.result=n.result),i},i=function(i){t||(t=!0,e.onloadstart&&e.onloadstart(n("loadstart",i)));var r;"load"===i.type?(e.onloadend&&e.onloadend(n("loadend",i)),r=n("load",i),e.onload&&e.onload(r),e.dispatchEvent(r)):"progress"===i.type?(r=n("progress",i),e.onprogress&&e.onprogress(r),e.dispatchEvent(r)):(r=n("error",i),e.onerror&&e.onerror(r),e.dispatchEvent(r))};this.readAsDataURL=function(e){FileAPI.readAsDataURL(e,i)},this.readAsText=function(e){FileAPI.readAsText(e,i)}}),$(".btn-number").click(function(e){e.preventDefault(),fieldName=$(this).attr("data-field"),type=$(this).attr("data-type");var t=$("input[name='"+fieldName+"']"),n=parseInt(t.val());isNaN(n)?t.val(0):"minus"==type?(n>t.attr("min")&&t.val(n-1).change(),parseInt(t.val())==t.attr("min")&&$(this).attr("disabled",!0)):"plus"==type&&(n<t.attr("max")&&t.val(n+1).change(),parseInt(t.val())==t.attr("max")&&$(this).attr("disabled",!0))}),$(".input-number").focusin(function(){$(this).data("oldValue",$(this).val())}),$(".input-number").change(function(){minValue=parseInt($(this).attr("min")),maxValue=parseInt($(this).attr("max")),valueCurrent=parseInt($(this).val()),name=$(this).attr("name"),valueCurrent>=minValue?$(".btn-number[data-type='minus'][data-field='"+name+"']").removeAttr("disabled"):(alert("Sorry, the minimum value was reached"),$(this).val($(this).data("oldValue"))),valueCurrent<=maxValue?$(".btn-number[data-type='plus'][data-field='"+name+"']").removeAttr("disabled"):(alert("Sorry, the maximum value was reached"),$(this).val($(this).data("oldValue")))}),$(".input-number").keydown(function(e){$.inArray(e.keyCode,[46,8,9,27,13,190])!==-1||65==e.keyCode&&e.ctrlKey===!0||e.keyCode>=35&&e.keyCode<=39||(e.shiftKey||e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105)&&e.preventDefault()}),$(document).ready(function(){$("#slider").slider({animate:!0,value:1,min:0,max:1e4,step:10,slide:function(e,t){update(1,t.value)}}),$("#slider2").slider({animate:!0,value:0,min:0,max:500,step:1,slide:function(e,t){update(2,t.value)}}),$("#amount").val(0),$("#duration").val(0),$("#amount-label").text(0),$("#duration-label").text(0),update()});var scrollTimer,lastScrollFireTime=0;$(window).on("scroll",function(){function e(){$(window).on("scroll",function(){scrollPosition=$(this).scrollTop(),scrollPosition>=i-1100?($(".static-ul").css("position","relative"),$("#ticket").css("display","none")):scrollPosition>=430?($(".static-ul").css("position","fixed"),$(".static-ul").css("top","50px"),$("#ticket").css("display","block"),$("#ticket").css("position","fixed"),$("#ticket").css("width","27.773889%"),$("#ticket").css("top","130px"),$("#ticket").css("right","8.33%"),$(".upticket").css("display","none")):($(".static-ul").css("position","relative"),$("#ticket").css("display","none"),$(".upticket").css("display","block"))})}var t=100,n=(new Date).getTime(),i=$(document).height();scrollTimer||(n-lastScrollFireTime>3*t&&(e(),lastScrollFireTime=n),scrollTimer=setTimeout(function(){scrollTimer=null,lastScrollFireTime=(new Date).getTime(),e()},t))});