text: !function(e){"use strict";function t(e){if(!y(e))return Xn;v(e.objectMaxDepth)&&(Xn.objectMaxDepth=n(e.objectMaxDepth)?e.objectMaxDepth:NaN),v(e.urlErrorParamsEnabled)&&M(e.urlErrorParamsEnabled)&&(Xn.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function n(e){return x(e)&&0<e}function r(e,t){return t=t||Error,function(){var n,r=arguments[0];for(n="["+(e?e+":":"")+r+"] http://errors.angularjs.org/1.7.9/"+(e?e+"/":"")+r,r=1;r<arguments.length;r++){var i;n=n+(1==r?"?":"&")+"p"+(r-1)+"=",n+=encodeURIComponent(i="function"==typeof(i=arguments[r])?i.toString().replace(/ \{[\s\S]*$/,""):void 0===i?"undefined":"string"!=typeof i?JSON.stringify(i):i)}return new t(n)}}function i(e){if(null==e||_(e))return!1;if(A(e)||w(e)||Bn&&e instanceof Bn)return!0;var t="length"in Object(e)&&e.length;return x(t)&&(0<=t&&t-1 in e||"function"==typeof e.item)}function o(e,t,n){var r,a;if(e)if(E(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(A(e)||i(e)){var s="object"!=typeof e;for(r=0,a=e.length;r<a;r++)(s||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==o)e.forEach(t,n,e);else if(b(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)Yn.call(e,r)&&t.call(n,e[r],r,e);return e}function a(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function s(e){return function(t,n){e(n,t)}}function u(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var a=t[i];if(y(a)||E(a))for(var s=Object.keys(a),l=0,c=s.length;l<c;l++){var f=s[l],d=a[f];n&&y(d)?C(d)?e[f]=new Date(d.valueOf()):k(d)?e[f]=new RegExp(d):d.nodeName?e[f]=d.cloneNode(!0):T(d)?e[f]=d.clone():"__proto__"!==f&&(y(e[f])||(e[f]=A(d)?[]:{}),u(e[f],[d],!0)):e[f]=d}}return r?e.$$hashKey=r:delete e.$$hashKey,e}function l(e){return u(e,Qn.call(arguments,1),!1)}function c(e){return u(e,Qn.call(arguments,1),!0)}function f(e){return parseInt(e,10)}function d(e,t){return l(Object.create(e),t)}function h(){}function p(e){return e}function m(e){return function(){return e}}function $(e){return E(e.toString)&&e.toString!==nr}function g(e){return void 0===e}function v(e){return void 0!==e}function y(e){return null!==e&&"object"==typeof e}function b(e){return null!==e&&"object"==typeof e&&!rr(e)}function w(e){return"string"==typeof e}function x(e){return"number"==typeof e}function C(e){return"[object Date]"===nr.call(e)}function A(e){return Array.isArray(e)||e instanceof Array}function S(e){switch(nr.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function E(e){return"function"==typeof e}function k(e){return"[object RegExp]"===nr.call(e)}function _(e){return e&&e.window===e}function O(e){return e&&e.$evalAsync&&e.$watch}function M(e){return"boolean"==typeof e}function T(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function D(e){return Zn(e.nodeName||e[0]&&e[0].nodeName)}function P(e,t){var n=e.indexOf(t);return 0<=n&&e.splice(n,1),n}function R(e,t,r){function i(e,t,n){if(0>--n)return"...";var r,i=t.$$hashKey;if(A(e)){r=0;for(var o=e.length;r<o;r++)t.push(a(e[r],n))}else if(b(e))for(r in e)t[r]=a(e[r],n);else if(e&&"function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&(t[r]=a(e[r],n));else for(r in e)Yn.call(e,r)&&(t[r]=a(e[r],n));return i?t.$$hashKey=i:delete t.$$hashKey,t}function a(e,t){if(!y(e))return e;if(-1!==(n=u.indexOf(e)))return l[n];if(_(e)||O(e))throw ir("cpws");var n=!1,r=s(e);return void 0===r&&(r=A(e)?[]:Object.create(rr(e)),n=!0),u.push(e),l.push(r),n?i(e,r,t):r}function s(e){switch(nr.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(a(e.buffer),e.byteOffset,e.length);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]":return(t=new RegExp(e.source,e.toString().match(/[^/]*$/)[0])).lastIndex=e.lastIndex,t;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(E(e.cloneNode))return e.cloneNode(!0)}var u=[],l=[];if(r=n(r)?r:NaN,t){if(function(e){return e&&x(e.length)&&cr.test(nr.call(e))}(t)||"[object ArrayBuffer]"===nr.call(t))throw ir("cpta");if(e===t)throw ir("cpi");return A(t)?t.length=0:o(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),u.push(e),l.push(t),i(e,t,r)}return a(e,r)}function I(e,t){return e===t||e!=e&&t!=t}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,r=typeof e;if(r===typeof t&&"object"===r){if(!A(e)){if(C(e))return!!C(t)&&I(e.getTime(),t.getTime());if(k(e))return!!k(t)&&e.toString()===t.toString();if(O(e)||O(t)||_(e)||_(t)||A(t)||C(t)||k(t))return!1;for(n in r=oe(),e)if("$"!==n.charAt(0)&&!E(e[n])){if(!F(e[n],t[n]))return!1;r[n]=!0}for(n in t)if(!(n in r)&&"$"!==n.charAt(0)&&v(t[n])&&!E(t[n]))return!1;return!0}if(!A(t))return!1;if((r=e.length)===t.length){for(n=0;n<r;n++)if(!F(e[n],t[n]))return!1;return!0}}return!1}function U(e,t,n){return e.concat(Qn.call(t,n))}function j(e,t){var n=2<arguments.length?Qn.call(arguments,2):[];return!E(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,U(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function N(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:_(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":O(n)&&(r="$SCOPE"),r}function V(e,t){if(!g(e))return x(t)||(t=t?2:null),JSON.stringify(e,N,t)}function L(e){return w(e)?JSON.parse(e):e}function z(e,t){e=e.replace(mr,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return sr(n)?t:n}function H(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function q(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return H(e,n*((t=z(t,r))-r))}function B(e){e=Bn(e).clone().empty();var t=Bn("<div></div>").append(e).html();try{return e[0].nodeType===br?Zn(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+Zn(t)})}catch(e){return Zn(t)}}function W(e){try{return decodeURIComponent(e)}catch(e){}}function G(e){var t={};return o((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),-1!==(n=e.indexOf("="))&&(r=e.substring(0,n),i=e.substring(n+1)),v(r=W(r))&&(i=!v(i)||W(i),Yn.call(t,r)?A(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function X(e){return K(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function K(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 Y(t,n){var r,i,a={};o($r,function(e){e+="app",!r&&t.hasAttribute&&t.hasAttribute(e)&&(r=t,i=t.getAttribute(e))}),o($r,function(e){var n;e+="app",!r&&(n=t.querySelector("["+e.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(e))}),r&&(gr?(a.strictDi=null!==function(e,t){var n,r,i=$r.length;for(r=0;r<i;++r)if(n=$r[r]+t,w(n=e.getAttribute(n)))return n;return null}(r,"strict-di"),n(r,i?[i]:[],a)):e.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."))}function Z(t,n,r){y(r)||(r={}),r=l({strictDi:!1},r);var i=function(){if((t=Bn(t)).injector()){var i=t[0]===e.document?"document":B(t);throw ir("btstrpd",i.replace(/</,"&lt;").replace(/>/,"&gt;"))}return(n=n||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng"),(i=je(n,r.strictDi)).invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),i},a=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(e&&a.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(a,"")),e&&!s.test(e.name))return i();e.name=e.name.replace(s,""),or.resumeBootstrap=function(e){return o(e,function(e){n.push(e)}),i()},E(or.resumeDeferredBootstrap)&&or.resumeDeferredBootstrap()}function J(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function Q(e){if(!(e=or.element(e).injector()))throw ir("test");return e.get("$$testability")}function ee(e,t){return t=t||"_",e.replace(vr,function(e,n){return(n?t:"")+e.toLowerCase()})}function te(e,t,n){if(!e)throw ir("areq",t||"?",n||"required");return e}function ne(e,t,n){return n&&A(e)&&(e=e[e.length-1]),te(E(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function re(e,t){if("hasOwnProperty"===e)throw ir("badname",t)}function ie(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=Bn(Qn.call(e,0,i))),t.push(n));return t||e}function oe(){return Object.create(null)}function ae(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!$(e)||A(e)||C(e)?V(e):e.toString()}return e}function se(e,t){if(A(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(y(e))for(n in t=t||{},e)"$"===n.charAt(0)&&"$"===n.charAt(1)||(t[n]=e[n]);return t||e}function ue(e,t){var r=[];return n(t)&&(e=or.copy(e,null,t)),JSON.stringify(e,function(e,t){if(y(t=N(e,t))){if(0<=r.indexOf(t))return"...";r.push(t)}return t})}function le(e,t){return t.toUpperCase()}function ce(e){return e.replace(Ar,le)}function fe(e){return 1===(e=e.nodeType)||!e||9===e}function de(e,t){var n,r,i=t.createDocumentFragment(),a=[];if(Or.test(e)){for(n=i.appendChild(t.createElement("div")),r=(Mr.exec(e)||["",""])[1].toLowerCase(),r=Dr[r]||Dr._default,n.innerHTML=r[1]+e.replace(Tr,"<$1></$2>")+r[2],r=r[0];r--;)n=n.lastChild;a=U(a,n.childNodes),(n=i.firstChild).textContent=""}else a.push(t.createTextNode(e));return i.textContent="",i.innerHTML="",o(a,function(e){i.appendChild(e)}),i}function he(t){if(t instanceof he)return t;var n,r;if(w(t)&&(t=fr(t),n=!0),!(this instanceof he)){if(n&&"<"!==t.charAt(0))throw kr("nosel");return new he(t)}n?(n=e.document,Se(this,t=(r=_r.exec(t))?[n.createElement(r[1])]:(r=de(t,n))?r.childNodes:[])):E(t)?Me(t):Se(this,t)}function pe(e){return e.cloneNode(!0)}function me(e,t){!t&&fe(e)&&Bn.cleanData([e]),e.querySelectorAll&&Bn.cleanData(e.querySelectorAll("*"))}function $e(e){for(var t in e)return!1;return!0}function ge(e){var t,n=e.ng339,r=(t=n&&xr[n])&&t.events;(t=t&&t.data)&&!$e(t)||r&&!$e(r)||(delete xr[n],e.ng339=void 0)}function ve(e,t,n,r){if(v(r))throw kr("offargs");var i=(r=be(e))&&r.events,a=r&&r.handle;if(a){if(t){var s=function(t){var r=i[t];v(n)&&P(r||[],n),v(n)&&r&&0<r.length||(e.removeEventListener(t,a),delete i[t])};o(t.split(" "),function(e){s(e),Er[e]&&s(Er[e])})}else for(t in i)"$destroy"!==t&&e.removeEventListener(t,a),delete i[t];ge(e)}}function ye(e,t){var n=e.ng339;(n=n&&xr[n])&&(t?delete n.data[t]:n.data={},ge(e))}function be(e,t){var n=(n=e.ng339)&&xr[n];return t&&!n&&(e.ng339=n=++Cr,n=xr[n]={events:{},data:{},handle:void 0}),n}function we(e,t,n){if(fe(e)){var r,i=v(n),o=!i&&t&&!y(t),a=!t;if(e=(e=be(e,!o))&&e.data,i)e[ce(t)]=n;else{if(a)return e;if(o)return e&&e[ce(t)];for(r in t)e[ce(r)]=t[r]}}}function xe(e,t){return!!e.getAttribute&&-1<(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")}function Ce(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;o(t.split(" "),function(e){e=fr(e),r=r.replace(" "+e+" "," ")}),r!==n&&e.setAttribute("class",fr(r))}}function Ae(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;o(t.split(" "),function(e){e=fr(e),-1===r.indexOf(" "+e+" ")&&(r+=e+" ")}),r!==n&&e.setAttribute("class",fr(r))}}function Se(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function Ee(e,t){return ke(e,"$"+(t||"ngController")+"Controller")}function ke(e,t,n){for(9===e.nodeType&&(e=e.documentElement),t=A(t)?t:[t];e;){for(var r=0,i=t.length;r<i;r++)if(v(n=Bn.data(e,t[r])))return n;e=e.parentNode||11===e.nodeType&&e.host}}function _e(e){for(me(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Oe(e,t){t||me(e);var n=e.parentNode;n&&n.removeChild(e)}function Me(t){function n(){e.document.removeEventListener("DOMContentLoaded",n),e.removeEventListener("load",n),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",n),e.addEventListener("load",n))}function Te(e,t){var n=Ir[t.toLowerCase()];return n&&Fr[D(e)]&&n}function De(e,t,n){n.call(e,t)}function Pe(e,t,n){var r=t.relatedTarget;r&&(r===e||Pr.call(e,r))||n.call(e,t)}function Re(){this.$get=function(){return l(he,{hasClass:function(e,t){return e.attr&&(e=e[0]),xe(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Ae(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Ce(e,t)}})}}function Ie(e,t){var n=e&&e.$$hashKey;return n?("function"==typeof n&&(n=e.$$hashKey()),n):"function"===(n=typeof e)||"object"===n&&null!==e?e.$$hashKey=n+":"+(t||function(){return++ar})():n+":"+e}function Fe(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}function Ue(e){return(e=Function.prototype.toString.call(e).replace(Br,"")).match(Lr)||e.match(zr)}function je(e,t){function n(e){return function(t,n){if(!y(t))return e(t,n);o(t,s(e))}}function r(e,t){if(re(e,"service"),(E(t)||A(t))&&(t=h.instantiate(t)),!t.$get)throw Wr("pget",e);return d[e+"Provider"]=t}function i(e,t,n){return r(e,{$get:!1!==n?function(e,t){return function(){var n=v.invoke(t,this);if(g(n))throw Wr("undef",e);return n}}(e,t):t})}function a(e){te(g(e)||A(e),"modulesToLoad","not an array");var t,n=[];return o(e,function(e){function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=h.get(r[0]);i[r[1]].apply(i,r[2])}}if(!f.get(e)){f.set(e,!0);try{w(e)?(t=Gn(e),v.modules[e]=t,n=n.concat(a(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):E(e)?n.push(h.invoke(e)):A(e)?n.push(h.invoke(e)):ne(e,"module")}catch(t){throw A(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Wr("modulerr",e,t.stack||t.message||t)}}}),n}function u(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===l)throw Wr("cdep",t+" <- "+c.join(" <- "));return e[t]}try{return c.unshift(t),e[t]=l,e[t]=n(t,r),e[t]}catch(n){throw e[t]===l&&delete e[t],n}finally{c.shift()}}function i(e,n,i){for(var o=[],a=0,s=(e=je.$$annotate(e,t,i)).length;a<s;a++){var u=e[a];if("string"!=typeof u)throw Wr("itkn",u);o.push(n&&n.hasOwnProperty(u)?n[u]:r(u,i))}return o}return{invoke:function(e,t,n,r){if("string"==typeof n&&(r=n,n=null),n=i(e,n,r),A(e)&&(e=e[e.length-1]),r=e,qn||"function"!=typeof r)r=!1;else{var o=r.$$ngIsClass;M(o)||(o=r.$$ngIsClass=/^class\b/.test(Function.prototype.toString.call(r))),r=o}return r?(n.unshift(null),new(Function.prototype.bind.apply(e,n))):e.apply(t,n)},instantiate:function(e,t,n){var r=A(e)?e[e.length-1]:e;return(e=i(e,t,n)).unshift(null),new(Function.prototype.bind.apply(r,e))},get:r,annotate:je.$$annotate,has:function(t){return d.hasOwnProperty(t+"Provider")||e.hasOwnProperty(t)}}}t=!0===t;var l={},c=[],f=new Nr,d={$provide:{provider:n(r),factory:n(i),service:n(function(e,t){return i(e,["$injector",function(e){return e.instantiate(t)}])}),value:n(function(e,t){return i(e,m(t),!1)}),constant:n(function(e,t){re(e,"constant"),d[e]=t,p[e]=t}),decorator:function(e,t){var n=h.get(e+"Provider"),r=n.$get;n.$get=function(){var e=v.invoke(r,n);return v.invoke(t,null,{$delegate:e})}}}},h=d.$injector=u(d,function(e,t){throw or.isString(t)&&c.push(t),Wr("unpr",c.join(" <- "))}),p={},$=u(p,function(e,t){var n=h.get(e+"Provider",t);return v.invoke(n.$get,n,void 0,e)}),v=$;d.$injectorProvider={$get:m($)},v.modules=h.modules=oe();var b=a(e);return(v=$.get("$injector")).strictDi=t,o(b,function(e){e&&v.invoke(e)}),v.loadNewModules=function(e){o(a(e),function(e){e&&v.invoke(e)})},v}function Ne(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(n,r,i){function o(e){var t;e?(e.scrollIntoView(),E(t=a.yOffset)?t=t():T(t)?(t=t[0],t="fixed"!==n.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom):x(t)||(t=0),t&&(e=e.getBoundingClientRect().top,n.scrollBy(0,e-t))):n.scrollTo(0,0)}function a(e){var t;(e=w(e)?e:x(e)?e.toString():r.hash())?(t=s.getElementById(e))?o(t):(t=function(e){var t=null;return Array.prototype.some.call(e,function(e){if("a"===D(e))return t=e,!0}),t}(s.getElementsByName(e)))?o(t):"top"===e&&o(null):o(null)}var s=n.document;return t&&i.$watch(function(){return r.hash()},function(t,n){t===n&&""===t||function(t,n){"complete"===(n=n||e).document.readyState?n.setTimeout(t):Bn(n).on("load",t)}(function(){i.$evalAsync(a)})}),a}]}function Ve(e,t){return e||t?e?t?(A(e)&&(e=e.join(" ")),A(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function Le(e){return y(e)?e:{}}function ze(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,n,r,i){return new function(e,t,n,r,i){function a(){x=null,u()}function s(){F(v=g(v=C())?null:v,E)&&(v=E),y=E=v}function u(){var e=y;s(),b===l.url()&&e===v||(b=l.url(),y=v,o(A,function(e){e(l.url(),v)}))}var l=this,c=e.location,f=e.history,d=e.setTimeout,p=e.clearTimeout,m={},$=i(n);l.isMock=!1,l.$$completeOutstandingRequest=$.completeTask,l.$$incOutstandingRequestCount=$.incTaskCount,l.notifyWhenNoOutstandingRequests=$.notifyWhenNoPendingTasks;var v,y,b=c.href,w=t.find("base"),x=null,C=r.history?function(){try{return f.state}catch(e){}}:h;s(),l.url=function(t,n,i){if(g(i)&&(i=null),c!==e.location&&(c=e.location),f!==e.history&&(f=e.history),t){var o=y===i;if(t=Zt(t).href,b===t&&(!r.history||o))return l;var a=b&&gt(b)===gt(t);return b=t,y=i,!r.history||a&&o?(a||(x=t),n?c.replace(t):a?(n=c,i=-1===(o=(i=t).indexOf("#"))?"":i.substr(o),n.hash=i):c.href=t,c.href!==t&&(x=t)):(f[n?"replaceState":"pushState"](i,"",t),s()),x&&(x=t),l}return(x||c.href).replace(/#$/,"")},l.state=function(){return v};var A=[],S=!1,E=null;l.onUrlChange=function(t){return S||(r.history&&Bn(e).on("popstate",a),Bn(e).on("hashchange",a),S=!0),A.push(t),t},l.$$applicationDestroyed=function(){Bn(e).off("hashchange popstate",a)},l.$$checkUrlChange=u,l.baseHref=function(){var e=w.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},l.defer=function(e,t,n){var r;return t=t||0,n=n||$.DEFAULT_TASK_TYPE,$.incTaskCount(n),r=d(function(){delete m[r],$.completeTask(e,n)},t),m[r]=n,r},l.defer.cancel=function(e){if(m.hasOwnProperty(e)){var t=m[e];return delete m[e],p(e),$.completeTask(h,t),!0}return!1}}(e,r,t,n,i)}]}function He(){this.$get=function(){function e(e,n){function i(e){e!==d&&(h?h===e&&(h=e.n):h=e,o(e.n,e.p),o(e,d),(d=e).n=null)}function o(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw r("$cacheFactory")("iid",e);var a=0,s=l({},n,{id:e}),u=oe(),c=n&&n.capacity||Number.MAX_VALUE,f=oe(),d=null,h=null;return t[e]={put:function(e,t){if(!g(t)){if(c<Number.MAX_VALUE)i(f[e]||(f[e]={key:e}));return e in u||a++,u[e]=t,a>c&&this.remove(h.key),t}},get:function(e){if(c<Number.MAX_VALUE){var t=f[e];if(!t)return;i(t)}return u[e]},remove:function(e){if(c<Number.MAX_VALUE){var t=f[e];if(!t)return;t===d&&(d=t.p),t===h&&(h=t.n),o(t.n,t.p),delete f[e]}e in u&&(delete u[e],a--)},removeAll:function(){u=oe(),a=0,f=oe(),d=h=null},destroy:function(){f=s=u=null,delete t[e]},info:function(){return l({},s,{size:a})}}}var t={};return e.info=function(){var e={};return o(t,function(t,n){e[n]=t.info()}),e},e.get=function(e){return t[e]},e}}function qe(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function Be(t,n){function r(e,t,n){var r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=oe();return o(e,function(e,o){if((e=e.trim())in x)i[o]=x[e];else{var a=e.match(r);if(!a)throw ei("iscp",t,o,e,n?"controller bindings definition":"isolate scope definition");i[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o},a[4]&&(x[e]=i[o])}}),i}function i(e){var t=e.require||e.controller&&e.name;return!A(t)&&y(t)&&o(t,function(e,n){var r=e.match($);e.substring(r[0].length)||(t[n]=r[0]+n)}),t}var a={},u=/^\s*directive:\s*([\w-]+)\s+(.*)$/,c=/(([\w-]+)(?::([^;]+))?;?)/,f=function(e){var t,n={};for(e=e.split(","),t=0;t<e.length;t++)n[e[t]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),$=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,b=/^(on[a-z]+|formaction)$/,x=oe();this.directive=function e(n,r){return te(n,"name"),re(n,"directive"),w(n)?(function(e){var t=e.charAt(0);if(!t||t!==Zn(t))throw ei("baddir",e);if(e!==e.trim())throw ei("baddir",e)}(n),te(r,"directiveFactory"),a.hasOwnProperty(n)||(a[n]=[],t.factory(n+"Directive",["$injector","$exceptionHandler",function(e,t){var r=[];return o(a[n],function(o,a){try{var s=e.invoke(o);E(s)?s={compile:m(s)}:!s.compile&&s.link&&(s.compile=m(s.link)),s.priority=s.priority||0,s.index=a,s.name=s.name||n,s.require=i(s);var u=s,l=s.restrict;if(l&&(!w(l)||!/[EACM]/.test(l)))throw ei("badrestrict",l,n);u.restrict=l||"EA",s.$$moduleName=o.$$moduleName,r.push(s)}catch(e){t(e)}}),r}])),a[n].push(r)):o(n,s(e)),this},this.component=function e(t,n){function r(e){function t(t){return E(t)||A(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var r=n.template||n.templateUrl?n.template:"",a={controller:i,controllerAs:function(e,t){if(t&&w(t))return t;if(w(e)){var n=oi.exec(e);if(n)return n[3]}}(n.controller)||n.controllerAs||"$ctrl",template:t(r),templateUrl:t(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return o(n,function(e,t){"$"===t.charAt(0)&&(a[t]=e)}),a}if(!w(t))return o(t,s(j(this,e))),this;var i=n.controller||function(){};return o(n,function(e,t){"$"===t.charAt(0)&&(r[t]=e,E(i)&&(i[t]=e))}),r.$inject=["$injector"],this.directive(t,r)},this.aHrefSanitizationWhitelist=function(e){return v(e)?(n.aHrefSanitizationWhitelist(e),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return v(e)?(n.imgSrcSanitizationWhitelist(e),this):n.imgSrcSanitizationWhitelist()};var C=!0;this.debugInfoEnabled=function(e){return v(e)?(C=e,this):C};var k=!1;this.strictComponentBindingsEnabled=function(e){return v(e)?(k=e,this):k};var _=10;this.onChangesTtl=function(e){return arguments.length?(_=e,this):_};var T=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(T=e,this):T};var R=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(R=e,this):R};var U=oe();this.addPropertySecurityContext=function(e,t,n){var r=e.toLowerCase()+"|"+t.toLowerCase();if(r in U&&U[r]!==n)throw ei("ctxoverride",e,t,U[r],n);return U[r]=n,this},function(){function e(e,t){o(t,function(t){U[t.toLowerCase()]=e})}e(Mi.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(Mi.CSS,["*|style"]),e(Mi.URL,"area|href area|ping a|href a|ping blockquote|cite body|background del|cite input|src ins|cite q|cite".split(" ")),e(Mi.MEDIA_URL,"audio|src img|src img|srcset source|src source|srcset track|src video|src video|poster".split(" ")),e(Mi.RESOURCE_URL,"*|formAction applet|code applet|codebase base|href embed|src frame|src form|action head|profile html|manifest iframe|src link|href media|src object|codebase object|data script|src".split(" "))}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,n,i,s,m,v,x,N,V){function L(){try{if(!--Me)throw Se=void 0,ei("infchng",_);x.$apply(function(){for(var e=0,t=Se.length;e<t;++e)try{Se[e]()}catch(e){i(e)}Se=void 0})}finally{Me++}}function z(e,t){if(!e)return e;if(!w(e))throw ei("srcset",t,e.toString());for(var n="",r=fr(e),i=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,o=(i=/\s/.test(r)?i:/(,)/,r=r.split(i),i=Math.floor(r.length/2),0);o<i;o++){var a=2*o;n=(n=n+N.getTrustedMediaUrl(fr(r[a])))+" "+fr(r[a+1])}return r=fr(r[2*o]).split(/\s/),n+=N.getTrustedMediaUrl(fr(r[0])),2===r.length&&(n+=" "+fr(r[1])),n}function H(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=t[i]}else this.$attr={};this.$$element=e}function q(e,t){try{e.addClass(t)}catch(e){}}function W(e,t,n,r,i){e instanceof Bn||(e=Bn(e));var o=G(e,t,e,n,r,i);W.$$addScopeClass(e);var a=null;return function(t,n,r){if(!e)throw ei("multilink");te(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new());var s=(r=r||{}).parentBoundTranscludeFn,u=r.transcludeControllers;if(r=r.futureParentElement,s&&s.$$boundTransclude&&(s=s.$$boundTransclude),a||(a=(r=r&&r[0])&&"foreignobject"!==D(r)&&nr.call(r).match(/SVG/)?"svg":"html"),r="html"!==a?Bn($e(a,Bn("<div></div>").append(e).html())):n?Rr.clone.call(e):e,u)for(var l in u)r.data("$"+l+"Controller",u[l].instance);return W.$$addScopeInfo(r,t),n&&n(r,t),o&&o(t,r,r,s),n||(e=o=null),r}}function G(e,t,n,r,i,o){for(var a,s,u,l,c,f=[],d=A(e)||e instanceof Bn,h=0;h<e.length;h++)a=new H,11===qn&&X(e,h,d),(o=(s=Y(e[h],[],a,0===h?r:void 0,i)).length?re(s,e[h],a,t,n,null,[],[],o):null)&&o.scope&&W.$$addScopeClass(a.$$element),a=o&&o.terminal||!(u=e[h].childNodes)||!u.length?null:G(u,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:t),(o||a)&&(f.push(h,o,a),l=!0,c=c||o),o=null;return l?function(e,n,r,i){var o,a,s,u,l,d;if(c)for(d=Array(n.length),u=0;u<f.length;u+=3)d[o=f[u]]=n[o];else d=n;for(u=0,l=f.length;u<l;)a=d[f[u++]],n=f[u++],o=f[u++],n?(n.scope?(s=e.$new(),W.$$addScopeInfo(Bn(a),s)):s=e,n(o,s,a,r,n.transcludeOnThisElement?K(e,n.transclude,i):!n.templateOnThisElement&&i?i:!i&&t?K(e,t):null)):o&&o(e,a.childNodes,void 0,i)}:null}function X(e,t,n){var r,i=e[t],o=i.parentNode;if(i.nodeType===br)for(;(r=o?i.nextSibling:e[t+1])&&r.nodeType===br;)i.nodeValue+=r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===e[t+1]&&e.splice(t+1,1)}function K(e,t,n){function r(r,i,o,a,s){return r||((r=e.$new(!1,s)).$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i,o=r.$$slots=oe();for(i in t.$$slots)o[i]=t.$$slots[i]?K(e,t.$$slots[i],n):null;return r}function Y(e,t,n,r,o){var a,s=n.$attr;switch(e.nodeType){case 1:ue(t,Ge(a=D(e)),"E",r,o);for(var u,l,f,d,h,p=e.attributes,$=0,g=p&&p.length;$<g;$++){var v,b=!1,C=!1,A=!1,S=!1,E=!1;l=(u=p[$]).name,d=u.value,(h=(f=Ge(l.toLowerCase())).match(Ie))?(A="Attr"===h[1],S="Prop"===h[1],E="On"===h[1],l=l.replace(ni,"").toLowerCase().substr(4+h[1].length).replace(/_(.)/g,function(e,t){return t.toUpperCase()})):(v=f.match(Fe))&&le(v[1])&&(b=l,C=l.substr(0,l.length-5)+"end",l=l.substr(0,l.length-6)),S||E?(n[f]=d,s[f]=u.name,S?ve(e,t,f,l):t.push(Un(m,x,i,f,l,!1))):(s[f=Ge(l.toLowerCase())]=l,!A&&n.hasOwnProperty(f)||(n[f]=d,Te(e,f)&&(n[f]=!0)),ye(e,t,d,f,A),ue(t,f,"A",r,o,b,C))}if("input"===a&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!Oe)break;if(y(s=e.className)&&(s=s.animVal),w(s)&&""!==s)for(;e=c.exec(s);)ue(t,f=Ge(e[2]),"C",r,o)&&(n[f]=fr(e[3])),s=s.substr(e.index+e[0].length);break;case br:me(t,e.nodeValue);break;case 8:if(!_e)break;Z(e,t,n,r,o)}return t.sort(de),t}function Z(e,t,n,r,i){try{var o=u.exec(e.nodeValue);if(o){var a=Ge(o[1]);ue(t,a,"M",r,i)&&(n[a]=fr(o[2]))}}catch(e){}}function J(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw ei("uterdir",t,n);1===e.nodeType&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(0<i);else r.push(e);return Bn(r)}function Q(e,t,n){return function(r,i,o,a,s){return i=J(i[0],t,n),e(r,i,o,a,s)}}function ne(e,t,n,r,i,o){var a;return e?W(t,n,r,i,o):function(){return a||(a=W(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function re(t,n,r,a,s,u,c,f,d){function h(e,t,n,r){e&&(n&&(e=Q(e,n,r)),e.require=m.require,e.directiveName=$,(k===m||m.$$isolateScope)&&(e=we(e,{isolateScope:!0})),c.push(e)),t&&(n&&(t=Q(t,n,r)),t.require=m.require,t.directiveName=$,(k===m||m.$$isolateScope)&&(t=we(t,{isolateScope:!0})),f.push(t))}function p(e,t,a,s,u){var d,h,p,m,$,v,b,w;for(d in n===a?(s=r,w=r.$$element):s=new H(w=Bn(a),r),$=t,k?m=t.$new(!0):C&&($=t.$parent),u&&((b=function(e,t,n,r){var i;if(O(e)||(r=n,n=t,t=e,e=void 0),R&&(i=v),n||(n=R?w.parent():w),!r)return u(e,t,i,n,M);var o=u.$$slots[r];if(o)return o(e,t,i,n,M);if(g(o))throw ei("noslot",r,B(w))}).$$boundTransclude=u,b.isSlotFilled=function(e){return!!u.$$slots[e]}),S&&(v=ae(w,s,b,S,m,t,k)),k&&(W.$$addScopeInfo(w,m,!0,!(_&&(_===k||_===k.$$originalDirective))),W.$$addScopeClass(w,!0),m.$$isolateBindings=k.$$isolateBindings,(h=Ae(t,s,m,m.$$isolateBindings,k)).removeWatches&&m.$on("$destroy",h.removeWatches)),v){h=S[d],p=v[d];var x=h.$$bindings.bindToController;p.instance=p(),w.data("$"+h.name+"Controller",p.instance),p.bindingInfo=Ae($,s,p.instance,x,h)}for(o(S,function(e,t){var n=e.require;e.bindToController&&!A(n)&&y(n)&&l(v[t].instance,ie(t,n,w,v))}),o(v,function(e){var t=e.instance;if(E(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){i(e)}if(E(t.$onInit))try{t.$onInit()}catch(e){i(e)}E(t.$doCheck)&&($.$watch(function(){t.$doCheck()}),t.$doCheck()),E(t.$onDestroy)&&$.$on("$destroy",function(){t.$onDestroy()})}),d=0,h=c.length;d<h;d++)xe(p=c[d],p.isolateScope?m:t,w,s,p.require&&ie(p.directiveName,p.require,w,v),b);var M=t;for(k&&(k.template||null===k.templateUrl)&&(M=m),e&&e(M,a.childNodes,void 0,u),d=f.length-1;0<=d;d--)xe(p=f[d],p.isolateScope?m:t,w,s,p.require&&ie(p.directiveName,p.require,w,v),b);o(v,function(e){E((e=e.instance).$postLink)&&e.$postLink()})}d=d||{};for(var m,$,v,b,w,x=-Number.MAX_VALUE,C=d.newScopeDirective,S=d.controllerDirectives,k=d.newIsolateScopeDirective,_=d.templateDirective,M=d.nonTlbTranscludeDirective,T=!1,P=!1,R=d.hasElementTranscludeDirective,I=r.$$element=Bn(n),F=a,U=!1,N=!1,V=0,L=t.length;V<L;V++){var z=(m=t[V]).$$start,q=m.$$end;if(z&&(I=J(n,z,q)),v=void 0,x>m.priority)break;if((w=m.scope)&&(m.templateUrl||(y(w)?(he("new/isolated scope",k||C,m,I),k=m):he("new/isolated scope",k,m,I)),C=C||m),$=m.name,!U&&(m.replace&&(m.templateUrl||m.template)||m.transclude&&!m.$$tlb)){for(w=V+1;U=t[w++];)if(U.transclude&&!U.$$tlb||U.replace&&(U.templateUrl||U.template)){N=!0;break}U=!0}if(!m.templateUrl&&m.controller&&(S=S||oe(),he("'"+$+"' controller",S[$],m,I),S[$]=m),w=m.transclude)if(T=!0,m.$$tlb||(he("transclusion",M,m,I),M=m),"element"===w)R=!0,x=m.priority,v=I,I=r.$$element=Bn(W.$$createComment($,r[$])),n=I[0],be(s,Qn.call(v,0),n),F=ne(N,v,a,x,u&&u.name,{nonTlbTranscludeDirective:M});else{var G=oe();if(y(w)){v=e.document.createDocumentFragment();var X=oe(),K=oe();for(var Z in o(w,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,X[e]=t,G[t]=null,K[t]=n}),o(I.contents(),function(t){var n=X[Ge(D(t))];n?(K[n]=!0,G[n]=G[n]||e.document.createDocumentFragment(),G[n].appendChild(t)):v.appendChild(t)}),o(K,function(e,t){if(!e)throw ei("reqslot",t)}),G)G[Z]&&(F=Bn(G[Z].childNodes),G[Z]=ne(N,F,a));v=Bn(v.childNodes)}else v=Bn(pe(n)).contents();I.empty(),(F=ne(N,v,a,void 0,void 0,{needsNewScope:m.$$isolateScope||m.$$newScope})).$$slots=G}if(m.template)if(P=!0,he("template",_,m,I),_=m,w=E(m.template)?m.template(I,r):m.template,w=Re(w),m.replace){if(u=m,v=Or.test(w)?Ke($e(m.templateNamespace,fr(w))):[],n=v[0],1!==v.length||1!==n.nodeType)throw ei("tplrt",$,"");be(s,I,n),w=Y(n,[],L={$attr:{}});var ee=t.splice(V+1,t.length-(V+1));(k||C)&&se(w,k,C),t=t.concat(w).concat(ee),ce(r,L),L=t.length}else I.html(w);if(m.templateUrl)P=!0,he("template",_,m,I),_=m,m.replace&&(u=m),p=fe(t.splice(V,t.length-V),I,r,s,T&&F,c,f,{controllerDirectives:S,newScopeDirective:C!==m&&C,newIsolateScopeDirective:k,templateDirective:_,nonTlbTranscludeDirective:M}),L=t.length;else if(m.compile)try{b=m.compile(I,r,F);var te=m.$$originalDirective||m;E(b)?h(null,j(te,b),z,q):b&&h(j(te,b.pre),j(te,b.post),z,q)}catch(e){i(e,B(I))}m.terminal&&(p.terminal=!0,x=Math.max(x,m.priority))}return p.scope=C&&!0===C.scope,p.transcludeOnThisElement=T,p.templateOnThisElement=P,p.transclude=F,d.hasElementTranscludeDirective=R,p}function ie(e,t,n,r){var i;if(w(t)){var a=t.match($);t=t.substring(a[0].length);var s=a[1]||a[3];a="?"===a[2];if("^^"===s?n=n.parent():i=(i=r&&r[t])&&i.instance,!i){var u="$"+t+"Controller";i="^^"===s&&n[0]&&9===n[0].nodeType?null:s?n.inheritedData(u):n.data(u)}if(!i&&!a)throw ei("ctreq",t,e)}else if(A(t))for(i=[],s=0,a=t.length;s<a;s++)i[s]=ie(e,t[s],n,r);else y(t)&&(i={},o(t,function(t,o){i[o]=ie(e,t,n,r)}));return i||null}function ae(e,t,n,r,i,o,a){var s,u=oe();for(s in r){var l=r[s],c={$scope:l===a||l.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},f=l.controller;"@"===f&&(f=t[l.name]),c=v(f,c,!0,l.controllerAs),u[l.name]=c,e.data("$"+l.name+"Controller",c.instance)}return u}function se(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=d(e[r],{$$isolateScope:t,$$newScope:n})}function ue(e,n,i,o,s,u,l){if(n===s)return null;var c=null;if(a.hasOwnProperty(n))for(var f=0,h=(s=t.get(n+"Directive")).length;f<h;f++)if(n=s[f],(g(o)||o>n.priority)&&-1!==n.restrict.indexOf(i)){if(u&&(n=d(n,{$$start:u,$$end:l})),!n.$$bindings){var p=c=n,m=n.name,$={isolateScope:null,bindToController:null};if(y(p.scope)&&(!0===p.bindToController?($.bindToController=r(p.scope,m,!0),$.isolateScope={}):$.isolateScope=r(p.scope,m,!1)),y(p.bindToController)&&($.bindToController=r(p.bindToController,m,!0)),$.bindToController&&!p.controller)throw ei("noctrl",m);y((c=c.$$bindings=$).isolateScope)&&(n.$$isolateBindings=c.isolateScope)}e.push(n),c=n}return c}function le(e){if(a.hasOwnProperty(e))for(var n=t.get(e+"Directive"),r=0,i=n.length;r<i;r++)if((e=n[r]).multiElement)return!0;return!1}function ce(e,t){var n=t.$attr,r=e.$attr;o(e,function(r,i){"$"!==i.charAt(0)&&(t[i]&&t[i]!==r&&(r=r.length?r+("style"===i?";":" ")+t[i]:t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))})}function fe(e,t,n,r,a,u,l,c){var f,h,p=[],m=t[0],$=e.shift(),g=d($,{templateUrl:null,transclude:null,replace:null,$$originalDirective:$}),v=E($.templateUrl)?$.templateUrl(t,n):$.templateUrl,b=$.templateNamespace;return t.empty(),s(v).then(function(i){var s,d;if(i=Re(i),$.replace){if(i=Or.test(i)?Ke($e(b,fr(i))):[],s=i[0],1!==i.length||1!==s.nodeType)throw ei("tplrt",$.name,v);i={$attr:{}},be(r,t,s);var w=Y(s,[],i);y($.scope)&&se(w,!0),e=w.concat(e),ce(n,i)}else s=m,t.html(i);for(e.unshift(g),f=re(e,s,n,a,t,$,u,l,c),o(r,function(e,n){e===s&&(r[n]=t[0])}),h=G(t[0].childNodes,a);p.length;){i=p.shift(),d=p.shift();var x=p.shift(),C=p.shift();w=t[0];if(!i.$$destroyed){if(d!==m){var A=d.className;c.hasElementTranscludeDirective&&$.replace||(w=pe(s)),be(x,Bn(d),w),q(Bn(w),A)}d=f.transcludeOnThisElement?K(i,f.transclude,C):C,f(h,i,w,r,d)}}p=null}).catch(function(e){S(e)&&i(e)}),function(e,t,n,r,i){e=i,t.$$destroyed||(p?p.push(t,n,r,e):(f.transcludeOnThisElement&&(e=K(t,f.transclude,i)),f(h,t,n,r,e)))}}function de(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 he(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw ei("multidir",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,B(r))}function me(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=!!(e=e.parent()).length;return t&&W.$$addBindingClass(e),function(e,n){var i=n.parent();t||W.$$addBindingClass(i),W.$$addBindingInfo(i,r.expressions),e.$watch(r,function(e){n[0].nodeValue=e})}}})}function $e(t,n){switch(t=Zn(t||"html")){case"svg":case"math":var r=e.document.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function ge(e){return z(N.valueOf(e),"ng-prop-srcset")}function ve(e,t,n,r){if(b.test(r))throw ei("nodomevents");var i=function(e,t){var n=t.toLowerCase();return U[e+"|"+n]||U["*|"+n]}(e=D(e),r),o=p;"srcset"!==r||"img"!==e&&"source"!==e?i&&(o=N.getTrusted.bind(N,i)):o=ge,t.push({priority:100,compile:function(e,t){var i=m(t[n]),a=m(t[n],function(e){return N.valueOf(e)});return{pre:function(e,t){function n(){var n=i(e);t[0][r]=o(n)}n(),e.$watch(a,n)}}}})}function ye(e,t,r,i,o){var a=D(e),s=function(e,t){return"srcdoc"===t?N.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(e)?N.RESOURCE_URL:N.MEDIA_URL:"xlinkHref"===t?"image"===e?N.MEDIA_URL:"a"===e?N.URL:N.RESOURCE_URL:"form"===e&&"action"===t||"base"===e&&"href"===t||"link"===e&&"href"===t?N.RESOURCE_URL:"a"!==e||"href"!==t&&"ngHref"!==t?void 0:N.URL}(a,i),u=f[i]||o,l=n(r,!o,s,u);if(l){if("multiple"===i&&"select"===a)throw ei("selmulti",B(e));if(b.test(i))throw ei("nodomevents");t.push({priority:100,compile:function(){return{pre:function(e,t,o){t=o.$$observers||(o.$$observers=oe());var a=o[i];a!==r&&(l=a&&n(a,!0,s,u),r=a),l&&(o[i]=l(e),(t[i]||(t[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(l,function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)}))}}}})}}function be(t,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]===a){t[i++]=r,o=i+s-1;for(var l=t.length;i<l;i++,o++)o<l?t[i]=t[o]:delete t[i];t.length-=s-1,t.context===a&&(t.context=r);break}for(u&&u.replaceChild(r,a),t=e.document.createDocumentFragment(),i=0;i<s;i++)t.appendChild(n[i]);for(Bn.hasData(a)&&(Bn.data(r,Bn.data(a)),Bn(a).off("$destroy")),Bn.cleanData(t.querySelectorAll("*")),i=1;i<s;i++)delete n[i];n[0]=r,n.length=1}function we(e,t){return l(function(){return e.apply(null,arguments)},e,t)}function xe(e,t,n,r,o,a){try{e(t,n,r,o,a)}catch(e){i(e,B(n))}}function Ce(e,t){if(k)throw ei("missingattr",e,t)}function Ae(e,t,r,i,a){function s(t,n,i){E(r.$onChanges)&&!I(n,i)&&(Se||(e.$$postDigest(L),Se=[]),l||(l={},Se.push(u)),l[t]&&(i=l[t].previousValue),l[t]=new We(i,n))}function u(){r.$onChanges(l),l=void 0}var l,c=[],f={};return o(i,function(i,o){var u,l,d,p,$=i.attrName,g=i.optional;switch(i.mode){case"@":g||Yn.call(t,$)||(Ce($,a.name),r[o]=t[$]=void 0),g=t.$observe($,function(e){(w(e)||M(e))&&(s(o,e,r[o]),r[o]=e)}),t.$$observers[$].$$scope=e,w(u=t[$])?r[o]=n(u)(e):M(u)&&(r[o]=u),f[o]=new We(ti,r[o]),c.push(g);break;case"=":if(!Yn.call(t,$)){if(g)break;Ce($,a.name),t[$]=void 0}if(g&&!t[$])break;l=m(t[$]),p=l.literal?F:I,d=l.assign||function(){throw u=r[o]=l(e),ei("nonassign",t[$],$,a.name)},u=r[o]=l(e),(g=function(t){return p(t,r[o])||(p(t,u)?d(e,t=r[o]):r[o]=t),u=t}).$stateful=!0,g=i.collection?e.$watchCollection(t[$],g):e.$watch(m(t[$],g),null,l.literal),c.push(g);break;case"<":if(!Yn.call(t,$)){if(g)break;Ce($,a.name),t[$]=void 0}if(g&&!t[$])break;var v=(l=m(t[$])).literal,y=r[o]=l(e);f[o]=new We(ti,r[o]),g=e[i.collection?"$watchCollection":"$watch"](l,function(e,t){if(t===e){if(t===y||v&&F(t,y))return;t=y}s(o,e,t),r[o]=e}),c.push(g);break;case"&":if(g||Yn.call(t,$)||Ce($,a.name),(l=t.hasOwnProperty($)?m(t[$]):h)===h&&g)break;r[o]=function(t){return l(e,t)}}}),{initialChanges:f,removeWatches:c.length&&function(){for(var e=0,t=c.length;e<t;++e)c[e]()}}}var Se,Ee=/^\w/,ke=e.document.createElement("div"),_e=T,Oe=R,Me=_;H.prototype={$normalize:Ge,$addClass:function(e){e&&0<e.length&&V.addClass(this.$$element,e)},$removeClass:function(e){e&&0<e.length&&V.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=Xe(e,t);n&&n.length&&V.addClass(this.$$element,n),(n=Xe(t,e))&&n.length&&V.removeClass(this.$$element,n)},$set:function(e,t,n,r){var a=Te(this.$$element[0],e),s=Ur[e],u=e;a?(this.$$element.prop(e,t),r=a):s&&(this[s]=t,u=s),this[e]=t,r?this.$attr[e]=r:(r=this.$attr[e])||(this.$attr[e]=r=ee(e,"-")),"img"===D(this.$$element)&&"srcset"===e&&(this[e]=t=z(t,"$set('srcset', value)")),!1!==n&&(null===t||g(t)?this.$$element.removeAttr(r):Ee.test(r)?a&&!1===t?this.$$element.removeAttr(r):this.$$element.attr(r,t):function(e,t,n){ke.innerHTML="<span "+t+">";var r=(t=ke.firstChild.attributes)[0];t.removeNamedItem(r.name),r.value=n,e.attributes.setNamedItem(r)}(this.$$element[0],r,t)),(e=this.$$observers)&&o(e[u],function(e){try{e(t)}catch(e){i(e)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=oe()),i=r[e]||(r[e]=[]);return i.push(t),x.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||g(n[e])||t(n[e])}),function(){P(i,t)}}};var De=n.startSymbol(),Pe=n.endSymbol(),Re="{{"===De&&"}}"===Pe?p:function(e){return e.replace(/\{\{/g,De).replace(/}}/g,Pe)},Ie=/^ng(Attr|Prop|On)([A-Z].*)$/,Fe=/^(.+)Start$/;return W.$$addBindingInfo=C?function(e,t){var n=e.data("$binding")||[];A(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:h,W.$$addBindingClass=C?function(e){q(e,"ng-binding")}:h,W.$$addScopeInfo=C?function(e,t,n,r){e.data(n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope",t)}:h,W.$$addScopeClass=C?function(e,t){q(e,t?"ng-isolate-scope":"ng-scope")}:h,W.$$createComment=function(t,n){var r="";return C&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},W}]}function We(e,t){this.previousValue=e,this.currentValue=t}function Ge(e){return e.replace(ni,"").replace(ri,function(e,t,n){return n?t.toUpperCase():t})}function Xe(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/),o=0;e:for(;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a===i[s])continue e;n+=(0<n.length?" ":"")+a}return n}function Ke(e){var t=(e=Bn(e)).length;if(1>=t)return e;for(;t--;){var n=e[t];(8===n.nodeType||n.nodeType===br&&""===n.nodeValue.trim())&&er.call(e,t,1)}return e}function Ye(){var e={};this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){re(t,"controller"),y(t)?l(e,t):e[t]=n},this.$get=["$injector",function(t){function n(e,t,n,i){if(!e||!y(e.$scope))throw r("$controller")("noscp",i,t);e.$scope[t]=n}return function(r,i,o,a){var s,u,c;if(o=!0===o,a&&w(a)&&(c=a),w(r)){if(!(a=r.match(oi)))throw ii("ctrlfmt",r);if(u=a[1],c=c||a[3],!(r=e.hasOwnProperty(u)?e[u]:function(e,t,n){if(!t)return e;for(var r,i=e,o=(t=t.split(".")).length,a=0;a<o;a++)r=t[a],e&&(e=(i=e)[r]);return!n&&E(e)?j(i,e):e}(i.$scope,u,!0)))throw ii("ctrlreg",u);ne(r,u,!0)}return o?(o=(A(r)?r[r.length-1]:r).prototype,s=Object.create(o||null),c&&n(i,c,s,u||r.name),l(function(){var e=t.invoke(r,s,i,u);return e!==s&&(y(e)||E(e))&&(s=e,c&&n(i,c,s,u||r.name)),s},{instance:s,identifier:c})):(s=t.instantiate(r,i,u),c&&n(i,c,s,u||r.name),s)}}]}function Ze(){this.$get=["$window",function(e){return Bn(e.document)}]}function Je(){this.$get=["$document","$rootScope",function(e,t){function n(){i=r.hidden}var r=e[0],i=r&&r.hidden;return e.on("visibilitychange",n),t.$on("$destroy",function(){e.off("visibilitychange",n)}),function(){return i}}]}function Qe(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function et(e){return y(e)?C(e)?e.toISOString():V(e):e}function tt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return a(e,function(e,n){null===e||g(e)||E(e)||(A(e)?o(e,function(e){t.push(K(n)+"="+K(et(e)))}):t.push(K(n)+"="+K(et(e))))}),t.join("&")}}}function nt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return function e(n,r,i){A(n)?o(n,function(t,n){e(t,r+"["+(y(t)?n:"")+"]")}):y(n)&&!C(n)?a(n,function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))}):(E(n)&&(n=n()),t.push(K(r)+"="+(null==n?"":K(et(n)))))}(e,"",!0),t.join("&")}}}function rt(e,t){if(w(e)){var n,r,i=e.replace(fi,"").trim();if(i)if((r=n=(n=t("Content-Type"))&&0===n.indexOf(si))||(r=(r=i.match(li))&&ci[r[0]].test(i)),r)try{e=L(i)}catch(t){if(!n)return e;throw di("baddata",e,t)}}return e}function it(e){var t,n=oe();return w(e)?o(e.split("\n"),function(e){t=e.indexOf(":");var r=Zn(fr(e.substr(0,t)));e=fr(e.substr(t+1)),r&&(n[r]=n[r]?n[r]+", "+e:e)}):y(e)&&o(e,function(e,t){var r=Zn(t),i=fr(e);r&&(n[r]=n[r]?n[r]+", "+i:i)}),n}function ot(e){var t;return function(n){return t||(t=it(e)),n?(void 0===(n=t[Zn(n)])&&(n=null),n):t}}function at(e,t,n,r){return E(r)?r(e,t,n):(o(r,function(r){e=r(e,t,n)}),e)}function st(){var e=this.defaults={transformResponse:[rt],transformRequest:[function(e){return y(e)&&"[object File]"!==nr.call(e)&&"[object Blob]"!==nr.call(e)&&"[object FormData]"!==nr.call(e)?V(e):e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:se(ui),put:se(ui),patch:se(ui)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},t=!1;this.useApplyAsync=function(e){return v(e)?(t=!!e,this):t};var n=this.interceptors=[],i=this.xsrfWhitelistedOrigins=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(a,s,u,c,f,d,p,m){function $(t){function n(e,t){for(var n=0,r=t.length;n<r;){var i=t[n++],o=t[n++];e=e.then(i,o)}return t.length=0,e}function i(e){var t=l({},e);return t.data=at(e.data,e.headers,e.status,s.transformResponse),200<=(e=e.status)&&300>e?t:d.reject(t)}if(!y(t))throw r("$http")("badreq",t);if(!w(m.valueOf(t.url)))throw r("$http")("badreq",t.url);var s=l({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},t);s.headers=function(t){var n,r,i,a=e.headers,s=l({},t.headers);a=l({},a.common,a[Zn(t.method)]);e:for(n in a){for(i in r=Zn(n),s)if(Zn(i)===r)continue e;s[n]=a[n]}return function(e,t){var n,r={};return o(e,function(e,i){E(e)?null!=(n=e(t))&&(r[i]=n):r[i]=e}),r}(s,se(t))}(t),s.method=Jn(s.method),s.paramSerializer=w(s.paramSerializer)?p.get(s.paramSerializer):s.paramSerializer,a.$$incOutstandingRequestCount("$http");var u=[],c=[];return t=d.resolve(s),o(C,function(e){(e.request||e.requestError)&&u.unshift(e.request,e.requestError),(e.response||e.responseError)&&c.push(e.response,e.responseError)}),t=(t=n(t,u)).then(function(t){var n=t.headers,r=at(t.data,ot(n),void 0,t.transformRequest);return g(r)&&o(n,function(e,t){"content-type"===Zn(t)&&delete n[t]}),g(t.withCredentials)&&!g(e.withCredentials)&&(t.withCredentials=e.withCredentials),b(t,r).then(i,i)}),(t=n(t,c)).finally(function(){a.$$completeOutstandingRequest(h,"$http")})}function b(n,r){function i(e){if(e){var n={};return o(e,function(e,r){n[r]=function(n){function r(){e(n)}t?f.$applyAsync(r):f.$$phase?r():f.$apply(r)}}),n}}function a(e,t,r,i,o){(200<=(t=-1<=t?t:0)&&300>t?b.resolve:b.reject)({data:e,status:t,headers:ot(r),config:n,statusText:i,xhrStatus:o})}function l(e){a(e.data,e.status,se(e.headers()),e.statusText,e.xhrStatus)}function c(){var e=$.pendingRequests.indexOf(n);-1!==e&&$.pendingRequests.splice(e,1)}var h,p,b=d.defer(),C=b.promise,k=n.headers,_="jsonp"===Zn(n.method),O=n.url;return _?O=m.getTrustedResourceUrl(O):w(O)||(O=m.valueOf(O)),O=function(e,t){return 0<t.length&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}(O,n.paramSerializer(n.params)),_&&(O=function(e,t){var n=e.split("?");if(2<n.length)throw di("badjsonp",e);return o(n=G(n[1]),function(n,r){if("JSON_CALLBACK"===n)throw di("badjsonp",e);if(r===t)throw di("badjsonp",t,e)}),e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}(O,n.jsonpCallbackParam)),$.pendingRequests.push(n),C.then(c,c),!n.cache&&!e.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(h=y(n.cache)?n.cache:y(e.cache)?e.cache:x),h&&(v(p=h.get(O))?p&&E(p.then)?p.then(l,l):A(p)?a(p[1],p[0],se(p[2]),p[3],p[4]):a(p,200,{},"OK","complete"):h.put(O,C)),g(p)&&((p=S(n.url)?u()[n.xsrfCookieName||e.xsrfCookieName]:void 0)&&(k[n.xsrfHeaderName||e.xsrfHeaderName]=p),s(n.method,O,r,function(e,n,r,i,o){function s(){a(n,e,r,i,o)}h&&(200<=e&&300>e?h.put(O,[e,n,it(r),i,o]):h.remove(O)),t?f.$applyAsync(s):(s(),f.$$phase||f.$apply())},k,n.timeout,n.withCredentials,n.responseType,i(n.eventHandlers),i(n.uploadEventHandlers))),C}var x=c("$http");e.paramSerializer=w(e.paramSerializer)?p.get(e.paramSerializer):e.paramSerializer;var C=[];o(n,function(e){C.unshift(w(e)?p.get(e):p.invoke(e))});var S=function(e){var t=[Ii].concat(e.map(Zt));return function(e){return e=Zt(e),t.some(Jt.bind(null,e))}}(i);return $.pendingRequests=[],function(e){o(arguments,function(e){$[e]=function(t,n){return $(l({},n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){o(arguments,function(e){$[e]=function(t,n,r){return $(l({},r||{},{method:e,url:t,data:n}))}})}("post","put","patch"),$.defaults=e,$}]}function ut(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function lt(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return function(e,t,n,r,i){function a(e,t,n){e=e.replace("JSON_CALLBACK",t);var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){o.removeEventListener("load",a),o.removeEventListener("error",a),i.body.removeChild(o),o=null;var s=-1,u="unknown";e&&("load"!==e.type||r.wasCalled(t)||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},o.addEventListener("load",a),o.addEventListener("error",a),i.body.appendChild(o),a}return function(i,s,u,l,c,f,d,h,p,m){function $(e){C="timeout"===e,w&&w(),x&&x.abort()}function y(e,t,r,i,o,a){v(A)&&n.cancel(A),w=x=null,e(t,r,i,o,a)}if(s=s||e.url(),"jsonp"===Zn(i))var b=r.createCallback(s),w=a(s,b,function(e,t){var n=200===e&&r.getResponse(b);y(l,e,n,"",t,"complete"),r.removeCallback(b)});else{var x=t(i,s),C=!1;if(x.open(i,s,!0),o(c,function(e,t){v(e)&&x.setRequestHeader(t,e)}),x.onload=function(){var e=x.statusText||"",t="response"in x?x.response:x.responseText,n=1223===x.status?204:x.status;0===n&&(n=t?200:"file"===Zt(s).protocol?404:0),y(l,n,t,x.getAllResponseHeaders(),e,"complete")},x.onerror=function(){y(l,-1,null,null,"","error")},x.ontimeout=function(){y(l,-1,null,null,"","timeout")},x.onabort=function(){y(l,-1,null,null,"",C?"timeout":"abort")},o(p,function(e,t){x.addEventListener(t,e)}),o(m,function(e,t){x.upload.addEventListener(t,e)}),d&&(x.withCredentials=!0),h)try{x.responseType=h}catch(e){if("json"!==h)throw e}x.send(g(u)?null:u)}if(0<f)var A=n(function(){$("timeout")},f);else f&&E(f.then)&&f.then(function(){$(v(f.$$timeoutId)?"timeout":"abort")})}}(e,r,e.defer,t,n[0])}]}function ct(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(d,e).replace(h,t)}function s(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function u(o,u,d,h){var p=d===i.URL||d===i.MEDIA_URL;if(!o.length||-1===o.indexOf(e)){if(u)return;return u=a(o),p&&(u=i.getTrusted(d,u)),(u=m(u)).exp=o,u.expressions=[],u.$$watchDelegate=s,u}h=!!h;for(var $,y,b,w,x=0,C=[],A=o.length,S=[],E=[];x<A;){if(-1===($=o.indexOf(e,x))||-1===(y=o.indexOf(t,$+c))){x!==A&&S.push(a(o.substring(x)));break}x!==$&&S.push(a(o.substring(x,$))),x=o.substring($+c,y),C.push(x),x=y+f,E.push(S.length),S.push("")}w=1===S.length&&1===E.length;var k=p&&w?void 0:function(e){try{return e=d&&!p?i.getTrusted(d,e):i.valueOf(e),h&&!v(e)?e:ae(e)}catch(e){r(hi.interr(o,e))}};if(b=C.map(function(e){return n(e,k)}),!u||C.length){var _=function(e){for(var t=0,n=C.length;t<n;t++){if(h&&g(e[t]))return;S[E[t]]=e[t]}return p?i.getTrusted(d,w?S[0]:S.join("")):(d&&1<S.length&&hi.throwNoconcat(o),S.join(""))};return l(function(e){var t=0,n=C.length,i=Array(n);try{for(;t<n;t++)i[t]=b[t](e);return _(i)}catch(e){r(hi.interr(o,e))}},{exp:o,expressions:C,$$watchDelegate:function(e,t){var n;return e.$watchGroup(b,function(r,i){var o=_(r);t.call(this,o,r!==i?n:o,e),n=o})}})}}var c=e.length,f=t.length,d=new RegExp(e.replace(/./g,o),"g"),h=new RegExp(t.replace(/./g,o),"g");return u.startSymbol=function(){return e},u.endSymbol=function(){return t},u}]}function ft(){this.$get=["$$intervalFactory","$window",function(e,t){var n={},r=function(e){t.clearInterval(e),delete n[e]},i=e(function(e,r,i){return e=t.setInterval(e,r),n[e]=i,e},r);return i.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$intervalId"))throw pi("badprom");if(!n.hasOwnProperty(e.$$intervalId))return!1;e=e.$$intervalId;var t=n[e],i=t.promise;return i.$$state&&(i.$$state.pur=!0),t.reject("canceled"),r(e),!0},i}]}function dt(){this.$get=["$browser","$q","$$q","$rootScope",function(e,t,n,r){return function(i,o){return function(a,s,u,l){function c(){f?a.apply(null,d):a(h)}var f=4<arguments.length,d=f?Qn.call(arguments,4):[],h=0,p=v(l)&&!l,m=(p?n:t).defer(),$=m.promise;return u=v(u)?u:0,$.$$intervalId=i(function(){p?e.defer(c):r.$evalAsync(c),m.notify(h++),0<u&&h>=u&&(m.resolve(h),o($.$$intervalId)),p||r.$apply()},s,m,p),$}}}]}function ht(e,t){var n=Zt(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=f(n.port)||gi[n.protocol]||null}function pt(e,t,n){if(yi.test(e))throw vi("badpath",e);(r="/"!==e.charAt(0))&&(e="/"+e),e=Zt(e);for(var r,i=(r=(r&&"/"===e.pathname.charAt(0)?e.pathname.substring(1):e.pathname).split("/")).length;i--;)r[i]=decodeURIComponent(r[i]),n&&(r[i]=r[i].replace(/\//g,"%2F"));n=r.join("/"),t.$$path=n,t.$$search=G(e.search),t.$$hash=decodeURIComponent(e.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function mt(e,t){return e.slice(0,t.length)===t}function $t(e,t){if(mt(t,e))return t.substr(e.length)}function gt(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function vt(e,t,n){this.$$html5=!0,n=n||"",ht(e,this),this.$$parse=function(e){var n=$t(t,e);if(!w(n))throw vi("ipthprfx",e,t);pt(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(e){return t+e.substr(1)},this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(v(o=$t(e,r))?(a=o,a=n&&v(o=$t(n,o))?t+($t("/",o)||o):e+a):v(o=$t(t,r))?a=t+o:t===r+"/"&&(a=t),a&&this.$$parse(a),!!a);var o,a}}function yt(e,t,n){ht(e,this),this.$$parse=function(r){var i;g(o=$t(e,r)||$t(t,r))||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",g(o)&&(e=r,this.replace())):g(i=$t(n,o))&&(i=o),pt(i,this,!1),r=this.$$path;var o,a=/^\/[A-Z]:(\/.*)/;mt(i,o=e)&&(i=i.replace(o,"")),a.exec(i)||(r=(i=a.exec(r))?i[1]:r),this.$$path=r,this.$$compose()},this.$$normalizeUrl=function(t){return e+(t?n+t:"")},this.$$parseLinkUrl=function(t,n){return gt(e)===gt(t)&&(this.$$parse(t),!0)}}function bt(e,t,n){this.$$html5=!0,yt.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(e===gt(r)?o=r:(a=$t(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o);var o,a},this.$$normalizeUrl=function(t){return e+n+t}}function wt(e){return function(){return this[e]}}function xt(e,t){return function(n){return g(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Ct(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return v(t)?(e=t,this):e},this.html5Mode=function(e){return M(e)?(t.enabled=e,this):y(e)?(M(e.enabled)&&(t.enabled=e.enabled),M(e.requireBase)&&(t.requireBase=e.requireBase),(M(e.rewriteLinks)||w(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(e,t,n){var i=l.url(),o=l.$$state;try{r.url(e,t,n),l.$$state=r.state()}catch(e){throw l.url(i),l.$$state=o,e}}function u(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,c;c=r.baseHref();var f,d=r.url();if(t.enabled){if(!c&&t.requireBase)throw vi("nobase");f=d.substring(0,d.indexOf("/",d.indexOf("//")+2))+(c||"/"),c=i.history?vt:bt}else f=gt(d),c=yt;var h=f.substr(0,gt(f).lastIndexOf("/")+1);(l=new c(f,h,"#"+e)).$$parseLinkUrl(d,d),l.$$state=r.state();var p=/^\s*(javascript|mailto):/i;o.on("click",function(e){if((a=t.rewriteLinks)&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var i=Bn(e.target);"a"!==D(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;if(!w(a)||!g(i.attr(a))){var a=i.prop("href"),s=i.attr("href")||i.attr("xlink:href");y(a)&&"[object SVGAnimatedString]"===a.toString()&&(a=Zt(a.animVal).href),p.test(a)||!a||i.attr("target")||e.isDefaultPrevented()||!l.$$parseLinkUrl(a,s)||(e.preventDefault(),l.absUrl()!==r.url()&&n.$apply())}}}),l.absUrl()!==d&&r.url(l.absUrl(),!0);var m=!0;return r.onUrlChange(function(e,t){mt(e,h)?(n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;l.$$parse(e),l.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,l.absUrl()===e&&(r?(l.$$parse(i),l.$$state=o,s(i,!1,o)):(m=!1,u(i,o)))}),n.$$phase||n.$digest()):a.location.href=e}),n.$watch(function(){if(m||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var e=r.url(),t=l.absUrl(),o=r.state(),a=l.$$replace,c=!function(e,t){return e===t||Zt(e).href===Zt(t).href}(e,t)||l.$$html5&&i.history&&o!==l.$$state;(m||c)&&(m=!1,n.$evalAsync(function(){var t=l.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,l.$$state,o).defaultPrevented;l.absUrl()===t&&(r?(l.$$parse(e),l.$$state=o):(c&&s(t,a,o===l.$$state?null:l.$$state),u(e,o)))}))}l.$$replace=!1}),l}]}function At(){var e=!0,t=this;this.debugEnabled=function(t){return v(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){var t=n.console||{},r=t[e]||t.log||h;return function(){var e=[];return o(arguments,function(t){e.push(function(e){return S(e)&&(e.stack&&i?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}(t))}),Function.prototype.apply.call(r,t,e)}}var i=qn||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:r("log"),info:r("info"),warn:r("warn"),error:r("error"),debug:function(){var n=r("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function St(e){return e+""}function Et(e,t){return void 0!==e?e:t}function kt(e,t){return void 0===e?t:void 0===t?e:e+t}function _t(e,t,n){var r,i,a=e.isPure=function(e,t){switch(e.type){case Ei.MemberExpression:if(e.computed)return!1;break;case Ei.UnaryExpression:return 1;case Ei.BinaryExpression:return"+"!==e.operator&&1;case Ei.CallExpression:return!1}return void 0===t?ki:t}(e,n);switch(e.type){case Ei.Program:r=!0,o(e.body,function(e){_t(e.expression,t,a),r=r&&e.expression.constant}),e.constant=r;break;case Ei.Literal:e.constant=!0,e.toWatch=[];break;case Ei.UnaryExpression:_t(e.argument,t,a),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case Ei.BinaryExpression:_t(e.left,t,a),_t(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case Ei.LogicalExpression:_t(e.left,t,a),_t(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case Ei.ConditionalExpression:_t(e.test,t,a),_t(e.alternate,t,a),_t(e.consequent,t,a),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case Ei.Identifier:e.constant=!1,e.toWatch=[e];break;case Ei.MemberExpression:_t(e.object,t,a),e.computed&&_t(e.property,t,a),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case Ei.CallExpression:r=n=!!e.filter&&!t(e.callee.name).$stateful,i=[],o(e.arguments,function(e){_t(e,t,a),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=n?i:[e];break;case Ei.AssignmentExpression:_t(e.left,t,a),_t(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case Ei.ArrayExpression:r=!0,i=[],o(e.elements,function(e){_t(e,t,a),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=i;break;case Ei.ObjectExpression:r=!0,i=[],o(e.properties,function(e){_t(e.value,t,a),r=r&&e.value.constant,i.push.apply(i,e.value.toWatch),e.computed&&(_t(e.key,t,!1),r=r&&e.key.constant,i.push.apply(i,e.key.toWatch))}),e.constant=r,e.toWatch=i;break;case Ei.ThisExpression:e.constant=!1,e.toWatch=[];break;case Ei.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Ot(e){if(1===e.length){var t=(e=e[0].expression).toWatch;return 1!==t.length?t:t[0]!==e?t:void 0}}function Mt(e){return e.type===Ei.Identifier||e.type===Ei.MemberExpression}function Tt(e){if(1===e.body.length&&Mt(e.body[0].expression))return{type:Ei.AssignmentExpression,left:e.body[0].expression,right:{type:Ei.NGValueParameter},operator:"="}}function Dt(e){this.$filter=e}function Pt(e){this.$filter=e}function Rt(e,t,n){this.ast=new Ei(e,n),this.astCompiler=n.csp?new Pt(t):new Dt(t)}function It(e){return E(e.valueOf)?e.valueOf():xi.call(e)}function Ft(){var e,t,n=oe(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){r[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(i){function a(e,t){var r,o;switch(typeof e){case"string":return o=e=e.trim(),(r=n[o])||(r=new Rt(r=new Si($),i,$).parse(e),n[o]=d(r)),m(r,t);case"function":return m(e,t);default:return m(h,t)}}function s(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&(e=It(e),"object"==typeof e&&!n))&&(e===t||e!=e&&t!=t)}function u(e,t,n,r,i){var o;if(1===(u=r.inputs).length){var a=s,u=u[0];return e.$watch(function(e){var t=u(e);return s(t,a,u.isPure)||(o=r(e,void 0,void 0,[t]),a=t&&It(t)),o},t,n,i)}for(var l=[],c=[],f=0,d=u.length;f<d;f++)l[f]=s,c[f]=null;return e.$watch(function(e){for(var t=!1,n=0,i=u.length;n<i;n++){var a=u[n](e);(t||(t=!s(a,l[n],u[n].isPure)))&&(c[n]=a,l[n]=a&&It(a))}return t&&(o=r(e,void 0,void 0,c)),o},t,n,i)}function l(e,t,n,r,i){function o(){l(u)&&s()}function a(e,t,n,r){return u=m&&r?r[0]:f(e,t,n,r),l(u)&&e.$$postDigest(o),h(u)}var s,u,l=r.literal?c:v,f=r.$$intercepted||r,h=r.$$interceptor||p,m=r.inputs&&!f.inputs;return a.literal=r.literal,a.constant=r.constant,a.inputs=r.inputs,d(a),s=e.$watch(a,t,n,i)}function c(e){var t=!0;return o(e,function(e){v(e)||(t=!1)}),t}function f(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function d(e){return e.constant?e.$$watchDelegate=f:e.oneTime?e.$$watchDelegate=l:e.inputs&&(e.$$watchDelegate=u),e}function m(e,t){if(!t)return e;e.$$interceptor&&(t=function(e,t){function n(n){return t(e(n))}return n.$stateful=e.$stateful||t.$stateful,n.$$pure=e.$$pure&&t.$$pure,n}(e.$$interceptor,t),e=e.$$intercepted);var n=!1,r=function(r,i,o,a){return r=n&&a?a[0]:e(r,i,o,a),t(r)};return r.$$intercepted=e,r.$$interceptor=t,r.literal=e.literal,r.oneTime=e.oneTime,r.constant=e.constant,t.$stateful||(n=!e.inputs,r.inputs=e.inputs?e.inputs:[e],t.$$pure||(r.inputs=r.inputs.map(function(e){return e.isPure===ki?function(t){return e(t)}:e}))),d(r)}var $={csp:hr().noUnsafeEval,literals:R(r),isIdentifierStart:E(e)&&e,isIdentifierContinue:E(t)&&t};return a.$$getAst=function(e){return new Rt(new Si($),i,$).getAst(e).ast},a}]}function Ut(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return Nt(function(e){t.$evalAsync(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return v(t)?(e=t,this):e}}function jt(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return Nt(function(e){t.defer(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return v(t)?(e=t,this):e}}function Nt(e,t,n){function i(){return new function(){var e=this.promise=new a;this.resolve=function(t){c(e,t)},this.reject=function(t){f(e,t)},this.notify=function(t){h(e,t)}}}function a(){this.$$state={status:0}}function s(){for(;!w&&x.length;){var e=x.shift();if(!e.pur){e.pur=!0;var n="Possibly unhandled rejection: "+("function"==typeof(n=e.value)?n.toString().replace(/ \{[\s\S]*$/,""):g(n)?"undefined":"string"!=typeof n?ue(n,void 0):n);S(e.value)?t(e.value,n):t(n)}}}function u(r){!n||r.pending||2!==r.status||r.pur||(0===w&&0===x.length&&e(s),x.push(r)),!r.processScheduled&&r.pending&&(r.processScheduled=!0,++w,e(function(){var i,o,a;a=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(var u=0,l=a.length;u<l;++u){r.pur=!0,o=a[u][0],i=a[u][r.status];try{E(i)?c(o,i(r.value)):1===r.status?c(o,r.value):f(o,r.value)}catch(e){f(o,e),e&&!0===e.$$passToExceptionHandler&&t(e)}}}finally{--w,n&&0===w&&e(s)}}))}function c(e,t){e.$$state.status||(t===e?d(e,b("qcycle",t)):function e(t,n){function r(n){a||(a=!0,e(t,n))}function i(e){a||(a=!0,d(t,e))}var o,a=!1;try{(y(n)||E(n))&&(o=n.then),E(o)?(t.$$state.status=-1,o.call(n,function r(e){a||(a=!0,function e(t,n){function r(n){a||(a=!0,e(t,n))}function i(e){a||(a=!0,d(t,e))}var o,a=!1;try{(y(n)||E(n))&&(o=n.then),E(o)?(t.$$state.status=-1,o.call(n,r,i,function(e){h(t,e)})):(t.$$state.value=n,t.$$state.status=1,u(t.$$state))}catch(e){i(e)}}(t,e))},i,function(e){h(t,e)})):(t.$$state.value=n,t.$$state.status=1,u(t.$$state))}catch(e){i(e)}}(e,t))}function f(e,t){e.$$state.status||d(e,t)}function d(e,t){e.$$state.value=t,e.$$state.status=2,u(e.$$state)}function h(n,r){var i=n.$$state.pending;0>=n.$$state.status&&i&&i.length&&e(function(){for(var e,n,o=0,a=i.length;o<a;o++){n=i[o][0],e=i[o][3];try{h(n,E(e)?e(r):r)}catch(e){t(e)}}})}function p(e){var t=new a;return f(t,e),t}function m(e,t,n){var r=null;try{E(n)&&(r=n())}catch(e){return p(e)}return r&&E(r.then)?r.then(function(){return t(e)},p):t(e)}function $(e,t,n,r){var i=new a;return c(i,e),i.then(t,n,r)}function v(e){if(!E(e))throw b("norslvr",e);var t=new a;return e(function(e){c(t,e)},function(e){f(t,e)}),t}var b=r("$q",TypeError),w=0,x=[];l(a.prototype,{then:function(e,t,n){if(g(e)&&g(t)&&g(n))return this;var r=new a;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),0<this.$$state.status&&u(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return m(t,C,e)},function(t){return m(t,p,e)},t)}});var C=$;return v.prototype=a.prototype,v.defer=i,v.reject=p,v.when=$,v.resolve=C,v.all=function(e){var t=new a,n=0,r=A(e)?[]:{};return o(e,function(e,i){n++,$(e).then(function(e){r[i]=e,--n||c(t,r)},function(e){f(t,e)})}),0===n&&c(t,r),t},v.race=function(e){var t=i();return o(e,function(e){$(e).then(t.resolve,t.reject)}),t.promise},v}function Vt(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function Lt(){var e=10,t=r("$rootScope"),n=null,a=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$exceptionHandler","$parse","$browser",function(r,s,u){function l(e){e.currentScope.$$destroyed=!0}function c(){this.$id=++ar,this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$suspended=this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function f(e){if(v.$$phase)throw t("inprog",v.$$phase);v.$$phase=e}function d(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function p(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function m(){}function $(){for(;x.length;)try{x.shift()()}catch(e){r(e)}a=null}c.prototype={constructor:c,$new:function(e,t){var n;return t=t||this,e?(n=new c).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=++ar,this.$$ChildScope=null,this.$$suspended=!1}return t.prototype=e,t}(this)),n=new this.$$ChildScope),n.$parent=t,n.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=n,t.$$childTail=n):t.$$childHead=t.$$childTail=n,(e||t!==this)&&n.$on("$destroy",l),n},$watch:function(e,t,r,i){var o=s(e);if(t=E(t)?t:h,o.$$watchDelegate)return o.$$watchDelegate(this,t,r,o,e);var a=this,u=a.$$watchers,l={fn:t,last:m,get:o,exp:i||e,eq:!!r};return n=null,u||((u=a.$$watchers=[]).$$digestWatchIndex=-1),u.unshift(l),u.$$digestWatchIndex++,d(this,1),function(){var e=P(u,l);0<=e&&(d(a,-1),e<u.$$digestWatchIndex&&u.$$digestWatchIndex--),n=null}},$watchGroup:function(e,t){function n(){u=!1;try{l?(l=!1,t(i,i,s)):t(i,r,s)}finally{for(var n=0;n<e.length;n++)r[n]=i[n]}}var r=Array(e.length),i=Array(e.length),a=[],s=this,u=!1,l=!0;if(!e.length){var c=!0;return s.$evalAsync(function(){c&&t(i,i,s)}),function(){c=!1}}return 1===e.length?this.$watch(e[0],function(e,n,o){i[0]=e,r[0]=n,t(i,e===n?i:r,o)}):(o(e,function(e,t){var r=s.$watch(e,function(e){i[t]=e,u||(u=!0,s.$evalAsync(n))});a.push(r)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function n(e){var t,n,a;if(!g(r=e)){if(y(r))if(i(r))for(o!==d&&(m=(o=d).length=0,c++),e=r.length,m!==e&&(c++,o.length=m=e),t=0;t<e;t++)a=o[t],n=r[t],a!=a&&n!=n||a===n||(c++,o[t]=n);else{for(t in o!==h&&(o=h={},m=0,c++),e=0,r)Yn.call(r,t)&&(e++,n=r[t],a=o[t],t in o?a!=a&&n!=n||a===n||(c++,o[t]=n):(m++,o[t]=n,c++));if(m>e)for(t in c++,o)Yn.call(r,t)||(m--,delete o[t])}else o!==r&&(o=r,c++);return c}}n.$$pure=s(e).literal,n.$stateful=!n.$$pure;var r,o,a,u=this,l=1<t.length,c=0,f=s(e,n),d=[],h={},p=!0,m=0;return this.$watch(f,function(){if(p?(p=!1,t(r,r,u)):t(r,a,u),l)if(y(r))if(i(r)){a=Array(r.length);for(var e=0;e<r.length;e++)a[e]=r[e]}else for(e in a={},r)Yn.call(r,e)&&(a[e]=r[e]);else a=r})},$digest:function(){var i,o,s,l,c,d,h,p,g=e,y=b.length?v:this,x=[];f("$digest"),u.$$checkUrlChange(),this===v&&null!==a&&(u.defer.cancel(a),$()),n=null;do{for(c=!1,d=y,l=0;l<b.length;l++){try{(0,(p=b[l]).fn)(p.scope,p.locals)}catch(e){r(e)}n=null}b.length=0;e:do{if(l=!d.$$suspended&&d.$$watchers)for(l.$$digestWatchIndex=l.length;l.$$digestWatchIndex--;)try{if(i=l[l.$$digestWatchIndex])if((o=(0,i.get)(d))===(s=i.last)||(i.eq?F(o,s):sr(o)&&sr(s))){if(i===n){c=!1;break e}}else c=!0,n=i,i.last=i.eq?R(o,null):o,(0,i.fn)(o,s===m?o:s,d),5>g&&(x[h=4-g]||(x[h]=[]),x[h].push({msg:E(i.exp)?"fn: "+(i.exp.name||i.exp.toString()):i.exp,newVal:o,oldVal:s}))}catch(e){r(e)}if(!(l=!d.$$suspended&&d.$$watchersCount&&d.$$childHead||d!==y&&d.$$nextSibling))for(;d!==y&&!(l=d.$$nextSibling);)d=d.$parent}while(d=l);if((c||b.length)&&!g--)throw v.$$phase=null,t("infdig",e,x)}while(c||b.length);for(v.$$phase=null;C<w.length;)try{w[C++]()}catch(e){r(e)}w.length=C=0,u.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;for(var t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===v&&u.$$applicationDestroyed(),d(this,-this.$$watchersCount),this.$$listenerCount)p(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=h,this.$on=this.$watch=this.$watchGroup=function(){return h},this.$$listeners={},this.$$nextSibling=null,function e(t){9===qn&&(t.$$childHead&&e(t.$$childHead),t.$$nextSibling&&e(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}(this)}},$eval:function(e,t){return s(e)(this,t)},$evalAsync:function(e,t){v.$$phase||b.length||u.defer(function(){b.length&&v.$digest()},null,"$evalAsync"),b.push({scope:this,fn:s(e),locals:t})},$$postDigest:function(e){w.push(e)},$apply:function(e){try{f("$apply");try{return this.$eval(e)}finally{v.$$phase=null}}catch(e){r(e)}finally{try{v.$digest()}catch(e){throw r(e),e}}},$applyAsync:function(e){var t=this;e&&x.push(function(){t.$eval(e)}),e=s(e),null===a&&(a=u.defer(function(){v.$apply($)},null,"$applyAsync"))},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do{r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(delete n[r],p(i,1,e))}},$emit:function(e,t){var n,i,o,a=[],s=this,u=!1,l={name:e,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=U([l],arguments,1);do{for(n=s.$$listeners[e]||a,l.currentScope=s,i=0,o=n.length;i<o;i++)if(n[i])try{n[i].apply(null,c)}catch(e){r(e)}else n.splice(i,1),i--,o--;if(u)break;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(e,t){var n=this,i=this,o={name:e,targetScope:this,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[e])return o;for(var a,s,u=U([o],arguments,1);n=i;){for(o.currentScope=n,a=0,s=(i=n.$$listeners[e]||[]).length;a<s;a++)if(i[a])try{i[a].apply(null,u)}catch(e){r(e)}else i.splice(a,1),a--,s--;if(!(i=n.$$listenerCount[e]&&n.$$childHead||n!==this&&n.$$nextSibling))for(;n!==this&&!(i=n.$$nextSibling);)n=n.$parent}return o.currentScope=null,o}};var v=new c,b=v.$$asyncQueue=[],w=v.$$postDigestQueue=[],x=v.$$applyAsyncQueue=[],C=0;return v}]}function zt(){var e=/^\s*(https?|s?ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return v(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return v(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i=r?t:e,o=Zt(n&&n.trim()).href;return""===o||o.match(i)?n:"unsafe:"+o}}}function Ht(e){var t=[];return v(e)&&o(e,function(e){t.push(function(e){if("self"===e)return e;if(w(e)){if(-1<e.indexOf("***"))throw Oi("iwcard",e);return e=dr(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(k(e))return new RegExp("^"+e.source+"$");throw Oi("imatcher")}(e))}),t}function qt(){this.SCE_CONTEXTS=Mi;var t=["self"],n=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=Ht(e)),t},this.resourceUrlBlacklist=function(e){return arguments.length&&(n=Ht(e)),n},this.$get=["$injector","$$sanitizeUri",function(r,i){function o(t,n){var r;return"self"===t?(r=Jt(n,Ii))||(e.document.baseURI?r=e.document.baseURI:(_i||((_i=e.document.createElement("a")).href=".",_i=_i.cloneNode(!1)),r=_i.href),r=Jt(n,r)):r=!!t.exec(n.href),r}function a(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}var s=function(e){throw Oi("unsafe")};r.has("$sanitize")&&(s=r.get("$sanitize"));var u=a(),l={};return l[Mi.HTML]=a(u),l[Mi.CSS]=a(u),l[Mi.MEDIA_URL]=a(u),l[Mi.URL]=a(l[Mi.MEDIA_URL]),l[Mi.JS]=a(u),l[Mi.RESOURCE_URL]=a(l[Mi.URL]),{trustAs:function(e,t){var n=l.hasOwnProperty(e)?l[e]:null;if(!n)throw Oi("icontext",e,t);if(null===t||g(t)||""===t)return t;if("string"!=typeof t)throw Oi("itype",e);return new n(t)},getTrusted:function(e,r){if(null===r||g(r)||""===r)return r;if((c=l.hasOwnProperty(e)?l[e]:null)&&r instanceof c)return r.$$unwrapTrustedValue();if(E(r.$$unwrapTrustedValue)&&(r=r.$$unwrapTrustedValue()),e===Mi.MEDIA_URL||e===Mi.URL)return i(r.toString(),e===Mi.MEDIA_URL);if(e===Mi.RESOURCE_URL){var a,u,c=Zt(r.toString()),f=!1;for(a=0,u=t.length;a<u;a++)if(o(t[a],c)){f=!0;break}if(f)for(a=0,u=n.length;a<u;a++)if(o(n[a],c)){f=!1;break}if(f)return r;throw Oi("insecurl",r.toString())}if(e===Mi.HTML)return s(r);throw Oi("unsafe")},valueOf:function(e){return e instanceof u?e.$$unwrapTrustedValue():e}}}]}function Bt(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&8>qn)throw Oi("iequirks");var r=se(Mi);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=p),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o(Mi,function(e,t){var n=Zn(t);r[("parse_as_"+n).replace(Ti,le)]=function(t){return i(e,t)},r[("get_trusted_"+n).replace(Ti,le)]=function(t){return a(e,t)},r[("trust_as_"+n).replace(Ti,le)]=function(t){return s(e,t)}}),r}]}function Wt(){this.$get=["$window","$document",function(e,t){var n={},r=!((!e.nw||!e.nw.process)&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,i=f((/android (\d+)/.exec(Zn((e.navigator||{}).userAgent))||[])[1]),o=/Boxee/i.test((e.navigator||{}).userAgent),a=t[0]||{},s=a.body&&a.body.style,u=!1,l=!1;return s&&(u=!!("transition"in s||"webkitTransition"in s),l=!!("animation"in s||"webkitAnimation"in s)),{history:!(!r||4>i||o),hasEvent:function(e){if("input"===e&&qn)return!1;if(g(n[e])){var t=a.createElement("div");n[e]="on"+e in t}return n[e]},csp:hr(),transitions:u,animations:l,android:i}}]}function Gt(){this.$get=m(function(e){return new function(e){function t(){var e=i.pop();return e&&e.cb}function n(e){for(var t=i.length-1;0<=t;--t){var n=i[t];if(n.type===e)return i.splice(t,1),n.cb}}var r={},i=[],o=this.ALL_TASKS_TYPE="$$all$$",a=this.DEFAULT_TASK_TYPE="$$default$$";this.completeTask=function(i,s){s=s||a;try{i()}finally{var u;r[u=s||a]&&(r[u]--,r[o]--),u=r[s];var l=r[o];if(!l||!u)for(u=l?n:t;l=u(s);)try{l()}catch(t){e.error(t)}}},this.incTaskCount=function(e){r[e=e||a]=(r[e]||0)+1,r[o]=(r[o]||0)+1},this.notifyWhenNoPendingTasks=function(e,t){r[t=t||o]?i.push({type:t,cb:e}):e()}}(e)})}function Xt(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,r,i,o){function a(s,u){a.totalPendingRequests++,w(s)&&!g(n.get(s))||(s=o.getTrustedResourceUrl(s));var c=r.defaults&&r.defaults.transformResponse;return A(c)?c=c.filter(function(e){return e!==rt}):c===rt&&(c=null),r.get(s,l({cache:n,transformResponse:c},e)).finally(function(){a.totalPendingRequests--}).then(function(e){return n.put(s,e.data)},function(e){return u||(e=Di("tpload",s,e.status,e.statusText),t(e)),i.reject(e)})}return a.totalPendingRequests=0,a}]}function Kt(){this.$get=["$rootScope","$browser","$location",function(e,t,n){return{findBindings:function(e,t,n){var r=[];return o(e=e.getElementsByClassName("ng-binding"),function(e){var i=or.element(e).data("$binding");i&&o(i,function(i){n?new RegExp("(^|\\s)"+dr(t)+"(\\s|\\||$)").test(i)&&r.push(e):-1!==i.indexOf(t)&&r.push(e)})}),r},findModels:function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=e.querySelectorAll("["+r[i]+"model"+(n?"=":"*=")+'"'+t+'"]');if(o.length)return o}},getLocation:function(){return n.url()},setLocation:function(t){t!==n.url()&&(n.url(t),e.$digest())},whenStable:function(e){t.notifyWhenNoOutstandingRequests(e)}}}]}function Yt(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,s,u){E(o)||(u=s,s=o,o=h);var l,c=Qn.call(arguments,3),f=v(u)&&!u,d=(f?r:n).defer(),p=d.promise;return l=t.defer(function(){try{d.resolve(o.apply(null,c))}catch(e){d.reject(e),i(e)}finally{delete a[p.$$timeoutId]}f||e.$apply()},s,"$timeout"),p.$$timeoutId=l,a[l]=d,p}var a={};return o.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw Pi("badprom");if(!a.hasOwnProperty(e.$$timeoutId))return!1;e=e.$$timeoutId;var n=a[e],r=n.promise;return r.$$state&&(r.$$state.pur=!0),n.reject("canceled"),delete a[e],t.defer.cancel(e)},o}]}function Zt(e){return w(e)?(qn&&(Ri.setAttribute("href",e),e=Ri.href),Ri.setAttribute("href",e),e=Ri.hostname,!Fi&&-1<e.indexOf(":")&&(e="["+e+"]"),{href:Ri.href,protocol:Ri.protocol?Ri.protocol.replace(/:$/,""):"",host:Ri.host,search:Ri.search?Ri.search.replace(/^\?/,""):"",hash:Ri.hash?Ri.hash.replace(/^#/,""):"",hostname:e,port:Ri.port,pathname:"/"===Ri.pathname.charAt(0)?Ri.pathname:"/"+Ri.pathname}):e}function Jt(e,t){return e=Zt(e),t=Zt(t),e.protocol===t.protocol&&e.host===t.host}function Qt(){this.$get=m(e)}function en(e){function t(e){try{return decodeURIComponent(e)}catch(t){return e}}var n=e[0]||{},r={},i="";return function(){var e,o,a,s,u;try{e=n.cookie||""}catch(t){e=""}if(e!==i)for(e=(i=e).split("; "),r={},a=0;a<e.length;a++)0<(s=(o=e[a]).indexOf("="))&&(u=t(o.substring(0,s)),g(r[u])&&(r[u]=t(o.substring(s+1))));return r}}function tn(){this.$get=en}function nn(e){function t(n,r){if(y(n)){var i={};return o(n,function(e,n){i[n]=t(n,e)}),i}return e.factory(n+"Filter",r)}this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+"Filter")}}],t("currency",sn),t("date",$n),t("filter",rn),t("json",gn),t("limitTo",vn),t("lowercase",Hi),t("number",un),t("orderBy",bn),t("uppercase",qi)}function rn(){return function(e,t,n,o){if(!i(e)){if(null==e)return e;throw r("filter")("notarray",e)}var a;switch(o=o||"$",an(t)){case"function":break;case"boolean":case"null":case"number":case"string":a=!0;case"object":t=function(e,t,n,r){var i=y(e)&&n in e;return!0===t?t=F:E(t)||(t=function(e,t){return!(g(e)||(null===e||null===t?e!==t:y(t)||y(e)&&!$(e)||(e=Zn(""+e),t=Zn(""+t),-1===e.indexOf(t))))}),function(o){return i&&!y(o)?on(o,e[n],t,n,!1):on(o,e,t,n,r)}}(t,n,o,a);break;default:return e}return Array.prototype.filter.call(e,t)}}function on(e,t,n,r,i,o){var a=an(e),s=an(t);if("string"===s&&"!"===t.charAt(0))return!on(e,t.substring(1),n,r,i);if(A(e))return e.some(function(e){return on(e,t,n,r,i)});switch(a){case"object":var u;if(i){for(u in e)if(u.charAt&&"$"!==u.charAt(0)&&on(e[u],t,n,r,!0))return!0;return!o&&on(e,t,n,r,!1)}if("object"===s){for(u in t)if(!E(o=t[u])&&!g(o)&&!on((a=u===r)?e:e[u],o,n,r,a,a))return!1;return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function an(e){return null===e?"null":typeof e}function sn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){g(n)&&(n=t.CURRENCY_SYM),g(r)&&(r=t.PATTERNS[1].maxFrac);var i=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:ln(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(i,n)}}function un(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:ln(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function ln(e,t,n,r,i){if(!w(e)&&!x(e)||isNaN(e))return"";var o=!isFinite(e),a=!1,s=Math.abs(e)+"",u="";if(o)u="∞";else{for(function(e,t,n,r){var i=e.d,o=i.length-e.i;if(r=i[n=(t=g(t)?Math.min(Math.max(n,o),r):+t)+e.i],0<n){i.splice(Math.max(e.i,n));for(var a=n;a<i.length;a++)i[a]=0}else for(o=Math.max(0,o),e.i=1,i.length=Math.max(1,n=t+1),i[0]=0,a=1;a<n;a++)i[a]=0;if(5<=r)if(0>n-1){for(r=0;r>n;r--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[n-1]++;for(;o<Math.max(0,t);o++)i.push(0);(t=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0))&&(i.unshift(t),e.i++)}(a=function(e){var t,n,r,i,o,a=0;for(-1<(n=e.indexOf(ji))&&(e=e.replace(ji,"")),0<(r=e.search(/e/i))?(0>n&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):0>n&&(n=e.length),r=0;e.charAt(r)===Ni;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===Ni;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>Ui&&(t=t.splice(0,Ui-1),a=n-1,n=1),{d:t,e:a,i:n}}(s),i,t.minFrac,t.maxFrac),u=a.d,s=a.i,i=a.e,o=[],a=u.reduce(function(e,t){return e&&!t},!0);0>s;)u.unshift(0),s++;for(0<s?o=u.splice(s,u.length):(o=u,u=[0]),s=[],u.length>=t.lgSize&&s.unshift(u.splice(-t.lgSize,u.length).join(""));u.length>t.gSize;)s.unshift(u.splice(-t.gSize,u.length).join(""));u.length&&s.unshift(u.join("")),u=s.join(n),o.length&&(u+=r+o.join("")),i&&(u+="e+"+i)}return 0>e&&!a?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}function cn(e,t,n,r){var i="";for((0>e||r&&0>=e)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e=Ni+e;return n&&(e=e.substr(e.length-t)),i+e}function fn(e,t,n,r,i){return n=n||0,function(o){return o=o["get"+e](),(0<n||o>-n)&&(o+=n),0===o&&-12===n&&(o=12),cn(o,t,r,i)}}function dn(e,t,n){return function(r,i){var o=r["get"+e]();return i[Jn((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function hn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(4>=t?5:12)-t)}function pn(e){return function(t){var n=hn(t.getFullYear());return t=+new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))-+n,cn(t=1+Math.round(t/6048e5),e)}}function mn(e,t){return 0>=e.getFullYear()?t.ERAS[0]:t.ERAS[1]}function $n(e){function t(e){var t;if(t=e.match(n)){e=new Date(0);var r=0,i=0,o=t[8]?e.setUTCFullYear:e.setFullYear,a=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=f(t[9]+t[10]),i=f(t[9]+t[11])),o.call(e,f(t[1]),f(t[2])-1,f(t[3])),r=f(t[4]||0)-r,i=f(t[5]||0)-i,o=f(t[6]||0),t=Math.round(1e3*parseFloat("0."+(t[7]||0))),a.call(e,r,i,o,t)}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var a,s,u="",l=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,w(n)&&(n=zi.test(n)?f(n):t(n)),x(n)&&(n=new Date(n)),!C(n)||!isFinite(n.getTime()))return n;for(;r;)(s=Li.exec(r))?r=(l=U(l,s,1)).pop():(l.push(r),r=null);var c=n.getTimezoneOffset();return i&&(c=z(i,c),n=q(n,i,!0)),o(l,function(t){a=Vi[t],u+=a?a(n,e.DATETIME_FORMATS,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function gn(){return function(e,t){return g(t)&&(t=2),V(e,t)}}function vn(){return function(e,t,n){return t=1/0===Math.abs(Number(t))?Number(t):f(t),sr(t)?e:(x(e)&&(e=e.toString()),i(e)?(n=0>(n=!n||isNaN(n)?0:f(n))?Math.max(0,e.length+n):n,0<=t?yn(e,n,n+t):0===n?yn(e,t,e.length):yn(e,Math.max(0,n+t),n)):e)}}function yn(e,t,n){return w(e)?e.slice(t,n):Qn.call(e,t,n)}function bn(e){function t(t){return t.map(function(t){var n=1,r=p;if(E(t))r=t;else if(w(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t)).constant)){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}})}function n(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e,t){var n=0,r=e.type;if(r===(i=t.type)){var i=e.value,o=t.value;"string"===r?(i=i.toLowerCase(),o=o.toLowerCase()):"object"===r&&(y(i)&&(i=e.index),y(o)&&(o=t.index)),i!==o&&(n=i<o?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i?-1:r<i?-1:1;return n}return function(e,a,s,u){if(null==e)return e;if(!i(e))throw r("orderBy")("notarray",e);A(a)||(a=[a]),0===a.length&&(a=["+"]);var l=t(a),c=s?-1:1,f=E(u)?u:o;return(e=Array.prototype.map.call(e,function(e,t){return{value:e,tieBreaker:{value:t,type:"number",index:t},predicateValues:l.map(function(r){var i=r.get(e);return r=typeof i,null===i?r="null":"object"===r&&(E(i.valueOf)&&n(i=i.valueOf())||$(i)&&n(i=i.toString())),{value:i,type:r,index:t}})}})).sort(function(e,t){for(var n=0,r=l.length;n<r;n++){var i=f(e.predicateValues[n],t.predicateValues[n]);if(i)return i*l[n].descending*c}return(f(e.tieBreaker,t.tieBreaker)||o(e.tieBreaker,t.tieBreaker))*c}),e.map(function(e){return e.value})}}function wn(e){return E(e)&&(e={link:e}),e.restrict=e.restrict||"AC",m(e)}function xn(e,t,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$valid=this.$pristine=!0,this.$submitted=this.$invalid=!1,this.$$parentForm=Gi,this.$$element=e,this.$$animate=r,Cn(this)}function Cn(e){e.$$classCache={},e.$$classCache[Mo]=!(e.$$classCache[Oo]=e.$$element.hasClass(Oo))}function An(e){function t(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function n(e,n,r){n=n?"-"+ee(n,"-"):"",t(e,Oo+n,!0===r),t(e,Mo+n,!1===r)}var r=e.set,i=e.unset;e.clazz.prototype.$setValidity=function(e,o,a){g(o)?(this.$pending||(this.$pending={}),r(this.$pending,e,a)):(this.$pending&&i(this.$pending,e,a),Sn(this.$pending)&&(this.$pending=void 0)),M(o)?o?(i(this.$error,e,a),r(this.$$success,e,a)):(r(this.$error,e,a),i(this.$$success,e,a)):(i(this.$error,e,a),i(this.$$success,e,a)),this.$pending?(t(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,n(this,"",null)):(t(this,"ng-pending",!1),this.$valid=Sn(this.$error),this.$invalid=!this.$valid,n(this,"",this.$valid)),n(this,e,o=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null)),this.$$parentForm.$setValidity(e,o,this)}}function Sn(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function En(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function kn(e,t,n,r,i,o){var a=Zn(t[0].type);if(!i.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionupdate",function(e){(g(e.data)||""===e.data)&&(s=!1)}),t.on("compositionend",function(){s=!1,l()})}var u,l=function(e){if(u&&(o.defer.cancel(u),u=null),!s){var i=t.val();e=e&&e.type,"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=fr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,e)}};if(i.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&&19>t||37<=t&&40>=t||c(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut drop",c)}t.on("change",l),ao[a]&&r.$$hasNativeValidators&&a===n.type&&t.on("keydown wheel mousedown",function(e){if(!u){var t=this.validity,n=t.badInput,r=t.typeMismatch;u=o.defer(function(){u=null,t.badInput===n&&t.typeMismatch===r||l(e)})}}),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function _n(e,t){return function(n,r){var i,a;if(C(n))return n;if(w(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Zi.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n))return i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,function(e,n){n<t.length&&(a[t[n]]=+e)}),i=new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0),100>a.yyyy&&i.setFullYear(a.yyyy),i}return NaN}}function On(e,t,n,r){return function(i,o,a,s,u,l,c,f){function d(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function h(e){return v(e)&&!C(e)?p(e)||void 0:e}function p(e,t){var r=s.$options.getOption("timezone");$&&$!==r&&(t=H(t,z($)));var i=n(e,t);return!isNaN(i)&&r&&(i=q(i,r)),i}Mn(i,o,a,s,e),kn(0,o,a,s,u,l);var m,$,y="time"===e||"datetimelocal"===e;if(s.$parsers.push(function(n){return s.$isEmpty(n)?null:t.test(n)?p(n,m):void(s.$$parserName=e)}),s.$formatters.push(function(e){if(e&&!C(e))throw Po("datefmt",e);if(d(e)){m=e;var t=s.$options.getOption("timezone");t&&($=t,m=q(m,t,!0));var n=r;return y&&w(s.$options.getOption("timeSecondsFormat"))&&(n=r.replace("ss.sss",s.$options.getOption("timeSecondsFormat")).replace(/:$/,"")),e=c("date")(e,n,t),y&&s.$options.getOption("timeStripZeroSeconds")&&(e=e.replace(/(?::00)?(?:\.000)?$/,"")),e}return $=m=null,""}),v(a.min)||a.ngMin){var b=a.min||f(a.ngMin)(i),x=h(b);s.$validators.min=function(e){return!d(e)||g(x)||n(e)>=x},a.$observe("min",function(e){e!==b&&(x=h(e),b=e,s.$validate())})}if(v(a.max)||a.ngMax){var A=a.max||f(a.ngMax)(i),S=h(A);s.$validators.max=function(e){return!d(e)||g(S)||n(e)<=S},a.$observe("max",function(e){e!==A&&(S=h(e),A=e,s.$validate())})}}}function Mn(e,t,n,r,i){(r.$$hasNativeValidators=y(t[0].validity))&&r.$parsers.push(function(e){var n=t.prop("validity")||{};if(!n.badInput&&!n.typeMismatch)return e;r.$$parserName=i})}function Tn(e){e.$parsers.push(function(t){return e.$isEmpty(t)?null:eo.test(t)?parseFloat(t):void(e.$$parserName="number")}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!x(t))throw Po("numfmt",t);t=t.toString()}return t})}function Dn(e){return v(e)&&!x(e)&&(e=parseFloat(e)),sr(e)?void 0:e}function Pn(e){var t=e.toString(),n=t.indexOf(".");return-1===n?-1<e&&1>e&&(e=/e-(\d+)$/.exec(t))?Number(e[1]):0:t.length-n-1}function Rn(e,t,n){var r=(0|(e=Number(e)))!==e,i=(0|t)!==t,o=(0|n)!==n;if(r||i||o){var a=r?Pn(e):0,s=i?Pn(t):0,u=o?Pn(n):0;a=Math.max(a,s,u);e*=a=Math.pow(10,a),t*=a,n*=a,r&&(e=Math.round(e)),i&&(t=Math.round(t)),o&&(n=Math.round(n))}return 0==(e-t)%n}function In(e,t,n,r,i){if(v(r)){if(!(e=e(r)).constant)throw Po("constexpr",n,r);return e(t)}return i}function Fn(e,t){function n(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[],r=0;e:for(;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i===t[o])continue e;n.push(i)}return n}function r(e){if(!e)return e;var t=e;return A(e)?t=e.map(r).join(" "):y(e)?t=Object.keys(e).filter(function(t){return e[t]}).join(" "):w(e)||(t=e+""),t}var i;return e="ngClass"+e,["$parse",function(a){return{restrict:"AC",link:function(s,u,l){function c(e,t){var n=[];return o(e,function(e){(0<t||d[e])&&(d[e]=(d[e]||0)+t,d[e]===+(0<t)&&n.push(e))}),n.join(" ")}var f,d=u.data("$classCounts"),h=!0;d||(d=oe(),u.data("$classCounts",d)),"ngClass"!==e&&(i||(i=a("$index",function(e){return 1&e})),s.$watch(i,function(e){if(e===t){var n=c((n=f)&&n.split(" "),1);l.$addClass(n)}else n=c((n=f)&&n.split(" "),-1),l.$removeClass(n);h=e})),s.$watch(a(l[e],r),function(e){if(h===t){var r=f&&f.split(" "),i=e&&e.split(" "),o=n(r,i);r=n(i,r),o=c(o,-1),r=c(r,1);l.$addClass(r),l.$removeClass(o)}f=e})}}}]}function Un(e,t,n,r,i,o){return{restrict:"A",compile:function(a,s){var u=e(s[r]);return function(e,r){r.on(i,function(r){var i=function(){u(e,{$event:r})};if(t.$$phase)if(o)e.$evalAsync(i);else try{i()}catch(e){n(e)}else e.$apply(i)})}}}}function jn(e,t,n,r,i,o,a,s,u){this.$modelValue=this.$viewValue=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=u(n.name||"",!1)(e),this.$$parentForm=Gi,this.$options=Ro,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=e,this.$$rootScope=e.$root,this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=t,Cn(this),function(e){e.$$scope.$watch(function(t){return(t=e.$$ngModelGet(t))===e.$modelValue||e.$modelValue!=e.$modelValue&&t!=t||e.$$setModelValue(t),t})}(this)}function Nn(e){this.$$options=e}function Vn(e,t){o(t,function(t,n){v(e[n])||(e[n]=t)})}function Ln(e,t){e.prop("selected",t),e.attr("selected",t)}function zn(e,t,n){if(e){if(w(e)&&(e=new RegExp("^"+e+"$")),!e.test)throw r("ngPattern")("noregexp",t,e,B(n));return e}}function Hn(e){return e=f(e),sr(e)?-1:e}var qn,Bn,Wn,Gn,Xn={objectMaxDepth:5,urlErrorParamsEnabled:!0},Kn=/^\/(.+)\/([a-z]*)$/,Yn=Object.prototype.hasOwnProperty,Zn=function(e){return w(e)?e.toLowerCase():e},Jn=function(e){return w(e)?e.toUpperCase():e},Qn=[].slice,er=[].splice,tr=[].push,nr=Object.prototype.toString,rr=Object.getPrototypeOf,ir=r("ng"),or=e.angular||(e.angular={}),ar=0;qn=e.document.documentMode;var sr=Number.isNaN||function(e){return e!=e};h.$inject=[],p.$inject=[];var ur,lr,cr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,fr=function(e){return w(e)?e.trim():e},dr=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},hr=function(){if(!v(hr.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");hr.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else{t=hr;try{new Function(""),n=!1}catch(e){n=!0}t.rules={noUnsafeEval:n,noInlineStyle:!1}}}return hr.rules},pr=function(){if(v(pr.name_))return pr.name_;var t,n,r,i,o=$r.length;for(n=0;n<o;++n)if(r=$r[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return pr.name_=i},mr=/:/g,$r=["ng-","data-ng-","ng:","x-ng-"],gr=(ur=e.document,!(lr=ur.currentScript)||(lr instanceof e.HTMLScriptElement||lr instanceof e.SVGScriptElement)&&[(lr=lr.attributes).getNamedItem("src"),lr.getNamedItem("href"),lr.getNamedItem("xlink:href")].every(function(e){if(!e)return!0;if(!e.value)return!1;var t=ur.createElement("a");if(t.href=e.value,ur.location.origin===t.origin)return!0;switch(t.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})),vr=/[A-Z]/g,yr=!1,br=3,wr={full:"1.7.9",major:1,minor:7,dot:9,codeName:"pollution-eradication"};he.expando="ng339";var xr=he.cache={},Cr=1;he._data=function(e){return this.cache[e[this.expando]]||{}};var Ar=/-([a-z])/g,Sr=/^-ms-/,Er={mouseleave:"mouseout",mouseenter:"mouseover"},kr=r("jqLite"),_r=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Or=/<|&#?\w+;/,Mr=/<([\w:-]+)/,Tr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Dr={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,"",""]};Dr.optgroup=Dr.option,Dr.tbody=Dr.tfoot=Dr.colgroup=Dr.caption=Dr.thead,Dr.th=Dr.td;var Pr=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},Rr=he.prototype={ready:Me,toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return Bn(0<=e?this[e]:this[this.length+e])},length:0,push:tr,sort:[].sort,splice:[].splice},Ir={};o("multiple selected checked disabled readOnly required open".split(" "),function(e){Ir[Zn(e)]=e});var Fr={};o("input select option textarea button form details".split(" "),function(e){Fr[e]=!0});var Ur={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};o({data:we,removeData:ye,hasData:function(e){for(var t in xr[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t<n;t++)ye(e[t]),ve(e[t])}},function(e,t){he[t]=e}),o({data:we,inheritedData:ke,scope:function(e){return Bn.data(e,"$scope")||ke(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Bn.data(e,"$isolateScope")||Bn.data(e,"$isolateScopeNoTemplate")},controller:Ee,injector:function(e){return ke(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:xe,css:function(e,t,n){if(t=ce(t.replace(Sr,"ms-")),!v(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){if((r=e.nodeType)!==br&&2!==r&&8!==r&&e.getAttribute){var r=Zn(t),i=Ir[r];if(!v(n))return e=e.getAttribute(t),i&&null!==e&&(e=r),null===e?void 0:e;null===n||!1===n&&i?e.removeAttribute(t):e.setAttribute(t,i?r:n)}},prop:function(e,t,n){if(!v(n))return e[t];e[t]=n},text:function(){function e(e,t){if(g(t)){var n=e.nodeType;return 1===n||n===br?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(g(t)){if(e.multiple&&"select"===D(e)){var n=[];return o(e.options,function(e){e.selected&&n.push(e.value||e.text)}),n}return e.value}e.value=t},html:function(e,t){if(g(t))return e.innerHTML;me(e,!0),e.innerHTML=t},empty:_e},function(e,t){he.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==_e&&g(2===e.length&&e!==xe&&e!==Ee?t:n)){if(y(t)){for(r=0;r<o;r++)if(e===we)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(o=g(r=e.$dv)?Math.min(o,1):o,i=0;i<o;i++){var a=e(this[i],t,n);r=r?r+a:a}return r}for(r=0;r<o;r++)e(this[r],t,n);return this}}),o({removeData:ye,on:function(e,t,n,r){if(v(r))throw kr("onargs");if(fe(e)){var i=(r=be(e,!0)).events,o=r.handle;o||(o=r.handle=function(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(g(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=i.specialHandlerWrapper||De;1<o&&(i=se(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(e,n,i[u])}};return n.elem=e,n}(e,i));for(var a=(r=0<=t.indexOf(" ")?t.split(" "):[t]).length,s=function(t,r,a){var s=i[t];s||((s=i[t]=[]).specialHandlerWrapper=r,"$destroy"===t||a||e.addEventListener(t,o)),s.push(n)};a--;)t=r[a],Er[t]?(s(Er[t],Pe),s(t,void 0,!0)):s(t)}},off:ve,one:function(e,t,n){(e=Bn(e)).on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;me(e),o(new he(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){1===e.nodeType&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){if(1===(n=e.nodeType)||11===n)for(var n=0,r=(t=new he(t)).length;n<r;n++)e.appendChild(t[n])},prepend:function(e,t){if(1===e.nodeType){var n=e.firstChild;o(new he(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){var n=Bn(t).eq(0).clone()[0],r=e.parentNode;r&&r.replaceChild(n,e),n.appendChild(e)},remove:Oe,detach:function(e){Oe(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r)for(var i=0,o=(t=new he(t)).length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Ae,removeClass:Ce,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var r=n;g(r)&&(r=!xe(e,t)),(r?Ae:Ce)(e,t)})},parent:function(e){return(e=e.parentNode)&&11!==e.nodeType?e:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:pe,triggerHandler:function(e,t,n){var r,i,a=t.type||t,s=be(e);(s=(s=s&&s.events)&&s[a])&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:h,type:a,target:e},t.type&&(r=l(r,t)),t=se(s),i=n?[r].concat(n):[r],o(t,function(t){r.isImmediatePropagationStopped()||t.apply(e,i)}))}},function(e,t){he.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;o<a;o++)g(i)?v(i=e(this[o],t,n,r))&&(i=Bn(i)):Se(i,e(this[o],t,n,r));return v(i)?i:this}}),he.prototype.bind=he.prototype.on,he.prototype.unbind=he.prototype.off;var jr=Object.create(null);Fe.prototype={_idx:function(e){return e!==this._lastKey&&(this._lastKey=e,this._lastIndex=this._keys.indexOf(e)),this._lastIndex},_transformKey:function(e){return sr(e)?jr:e},get:function(e){if(e=this._transformKey(e),-1!==(e=this._idx(e)))return this._values[e]},has:function(e){return e=this._transformKey(e),-1!==this._idx(e)},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){return e=this._transformKey(e),-1!==(e=this._idx(e))&&(this._keys.splice(e,1),this._values.splice(e,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Nr=Fe,Vr=[function(){this.$get=[function(){return Nr}]}],Lr=/^([^(]+?)=>/,zr=/^[^(]*\(\s*([^)]*)\)/m,Hr=/,/,qr=/^\s*(_?)(\S+?)\1\s*$/,Br=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Wr=r("$injector");je.$$annotate=function(e,t,n){var r;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw w(n)&&n||(n=e.name||function(e){return(e=Ue(e))?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(e)),Wr("strictdi",n);o((t=Ue(e))[1].split(Hr),function(e){e.replace(qr,function(e,t,n){r.push(n)})})}e.$inject=r}}else A(e)?(ne(e[t=e.length-1],"fn"),r=e.slice(0,t)):ne(e,"fn",!0);return r};var Gr=r("$animate"),Xr=function(){this.$get=h},Kr=function(){var e=new Nr,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(e,t,n){var r=!1;return t&&o(t=w(t)?t.split(" "):A(t)?t:[],function(t){t&&(r=!0,e[t]=n)}),r}function a(){o(t,function(t){var n=e.get(t);if(n){var r=function(e){w(e)&&(e=e.split(" "));var t=oe();return o(e,function(e){e.length&&(t[e]=!0)}),t}(t.attr("class")),i="",a="";o(n,function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:a+=(a.length?" ":"")+t)}),o(t,function(e){i&&Ae(e,i),a&&Ce(e,a)}),e.delete(t)}}),t.length=0}return{enabled:h,on:h,off:h,pin:h,push:function(o,s,u,l){return l&&l(),(u=u||{}).from&&o.css(u.from),u.to&&o.css(u.to),(u.addClass||u.removeClass)&&(s=u.addClass,l=u.removeClass,s=i(u=e.get(o)||{},s,!0),l=i(u,l,!1),(s||l)&&(e.set(o,u),t.push(o),1===t.length&&r.$$postDigest(a))),(o=new n).complete(),o}}}]},Yr=["$provide",function(e){var t=this,n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Gr("notcsel",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.customFilter=function(e){return 1===arguments.length&&(r=E(e)?e:null),r},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)&&/[(\s|\/)]ng-animate[(\s|\/)]/.test(n.toString()))throw n=null,Gr("nongcls","ng-animate");return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r;e:{for(r=0;r<n.length;r++){var i=n[r];if(1===i.nodeType){r=i;break e}}r=void 0}!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.cancel&&e.cancel()},enter:function(n,r,i,o){return r=r&&Bn(r),i=i&&Bn(i),t(n,r=r||i.parent(),i),e.push(n,"enter",Le(o))},move:function(n,r,i,o){return r=r&&Bn(r),i=i&&Bn(i),t(n,r=r||i.parent(),i),e.push(n,"move",Le(o))},leave:function(t,n){return e.push(t,"leave",Le(n),function(){t.remove()})},addClass:function(t,n,r){return(r=Le(r)).addClass=Ve(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return(r=Le(r)).removeClass=Ve(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return(i=Le(i)).addClass=Ve(i.addClass,n),i.removeClass=Ve(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return(o=Le(o)).from=o.from?l(o.from,n):n,o.to=o.to?l(o.to,r):r,o.tempClasses=Ve(o.tempClasses,i||"ng-inline-animate"),e.push(t,"animate",o)}}}]}],Zr=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),1<n.length||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)}}}]},Jr=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,r,i){function a(e){this.setHost(e);var t=n();this._doneCallbacks=[],this._tick=function(e){r()?i(e,0,!1):t(e)},this._state=0}return a.chain=function(e,t){var n=0;!function r(){n===e.length?t(!0):e[n](function(e){!1===e?t(!1):(n++,r())})}()},a.all=function(e,t){function n(n){i=i&&n,++r===e.length&&t(i)}var r=0,i=!0;o(e,function(e){e.done(n)})},a.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:h,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){!1===t?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;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&(o(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},a}]},Qr=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function i(){return e(function(){o.addClass&&(t.addClass(o.addClass),o.addClass=null),o.removeClass&&(t.removeClass(o.removeClass),o.removeClass=null),o.to&&(t.css(o.to),o.to=null),a||s.complete(),a=!0}),s}var o=r||{};o.$$prepared||(o=R(o)),o.cleanupStyles&&(o.from=o.to=null),o.from&&(t.css(o.from),o.from=null);var a,s=new n;return{start:i,end:i}}}]},ei=r("$compile"),ti=new function(){};Be.$inject=["$provide","$$sanitizeUriProvider"],We.prototype.isFirstChange=function(){return this.previousValue===ti};var ni=/^((?:x|data)[:\-_])/i,ri=/[:\-_]+(.)/g,ii=r("$controller"),oi=/^(\S+)(\s+as\s+([\w$]+))?$/,ai=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof Bn&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},si="application/json",ui={"Content-Type":si+";charset=utf-8"},li=/^\[|^\{(?!\{)/,ci={"[":/]$/,"{":/}$/},fi=/^\)]\}',?\n/,di=r("$http"),hi=or.$interpolateMinErr=r("$interpolate");hi.throwNoconcat=function(e){throw hi("noconcat",e)},hi.interr=function(e,t){return hi("interr",e,t.toString())};var pi=r("$interval"),mi=function(){this.$get=function(){var e=or.callbacks,t={};return{createCallback:function(n){var r="angular.callbacks."+(n="_"+(e.$$counter++).toString(36)),i=function(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}(n);return t[r]=e[n]=i,r},wasCalled:function(e){return t[e].called},getResponse:function(e){return t[e].data},removeCallback:function(n){delete e[t[n].id],delete t[n]}}}},$i=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,gi={http:80,https:443,ftp:21},vi=r("$location"),yi=/^\s*[\\/]{2,}/,bi={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){for(var e=this.$$path,t=this.$$hash,n=function(e){var t=[];return o(e,function(e,n){A(e)?o(e,function(e){t.push(K(n,!0)+(!0===e?"":"="+K(e,!0)))}):t.push(K(n,!0)+(!0===e?"":"="+K(e,!0)))}),t.length?t.join("&"):""}(this.$$search),r=(t=t?"#"+X(t):"",(e=e.split("/")).length);r--;)e[r]=X(e[r].replace(/%2F/g,"/"));this.$$url=e.join("/")+(n?"?"+n:"")+t,this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:wt("$$absUrl"),url:function(e){if(g(e))return this.$$url;var t=$i.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:wt("$$protocol"),host:wt("$$host"),port:wt("$$port"),path:xt("$$path",function(e){return"/"===(e=null!==e?e.toString():"").charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(w(e)||x(e))e=e.toString(),this.$$search=G(e);else{if(!y(e))throw vi("isrcharg");o(e=R(e,{}),function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:g(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}};o([bt,yt,vt],function(e){e.prototype=Object.create(bi),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==vt||!this.$$html5)throw vi("nostate");return this.$$state=g(t)?null:t,this.$$urlUpdatedByLocation=!0,this}});var wi=r("$parse"),xi={}.constructor.prototype.valueOf,Ci=oe();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){Ci[e]=!0});var Ai={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Si=function(e){this.options=e};Si.prototype={constructor:Si,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;)if('"'===(e=this.text.charAt(this.index))||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var t=e+this.peek(),n=t+this.peek(2),r=Ci[t],i=Ci[n];Ci[e]||r||i?(e=i?n:r?t:e,this.tokens.push({index:this.index,text:e,operator:!0}),this.index+=e.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){return e=e||1,this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(e){return"0"<=e&&"9">=e&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===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&&"z">=e||"A"<=e&&"Z">=e||"_"===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),r=t.charCodeAt(0);return 55296<=n&&56319>=n&&56320<=r&&57343>=r?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){throw n=n||this.index,t=v(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n,wi("lexerr",e,t,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=Zn(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){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="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);r=r+o;if(i)"u"===o?((i=this.text.substring(this.index+1,this.index+5)).match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+i+"]"),this.index+=4,n+=String.fromCharCode(parseInt(i,16))):n+=Ai[o]||o,i=!1;else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var Ei=function(e,t){this.lexer=e,this.options=t};Ei.Program="Program",Ei.ExpressionStatement="ExpressionStatement",Ei.AssignmentExpression="AssignmentExpression",Ei.ConditionalExpression="ConditionalExpression",Ei.LogicalExpression="LogicalExpression",Ei.BinaryExpression="BinaryExpression",Ei.UnaryExpression="UnaryExpression",Ei.CallExpression="CallExpression",Ei.MemberExpression="MemberExpression",Ei.Identifier="Identifier",Ei.Literal="Literal",Ei.ArrayExpression="ArrayExpression",Ei.Property="Property",Ei.ObjectExpression="ObjectExpression",Ei.ThisExpression="ThisExpression",Ei.LocalsExpression="LocalsExpression",Ei.NGValueParameter="NGValueParameter",Ei.prototype={ast:function(e){return this.text=e,this.tokens=this.lexer.lex(e),e=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var e=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:Ei.Program,body:e}},expressionStatement:function(){return{type:Ei.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!Mt(e))throw wi("lval");e={type:Ei.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:Ei.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:Ei.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:Ei.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:Ei.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:Ei.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:Ei.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:Ei.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:Ei.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e,t;for(this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=R(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:Ei.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());t=this.expect("(","[",".");)"("===t.text?(e={type:Ei.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:Ei.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:Ei.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){e=[e];for(var t={type:Ei.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return t},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:Ei.Identifier,name:e.text}},constant:function(){return{type:Ei.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:Ei.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Ei.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:Ei.ObjectExpression,properties:t}},throwError:function(e,t){throw wi("syntax",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw wi("ueoe",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 wi("ueoe",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=(e=this.tokens[e]).text;if(o===t||o===n||o===r||o===i||!(t||n||r||i))return e}return!1},expect:function(e,t,n,r){return!!(e=this.peek(e,t,n,r))&&(this.tokens.shift(),e)},selfReferential:{this:{type:Ei.ThisExpression},$locals:{type:Ei.LocalsExpression}}};var ki=2;Dt.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},_t(e,t.$filter);var n,r="";return this.stage="assign",(n=Tt(e))&&(this.state.computing="assign",r=this.nextId(),this.recurse(n,r),this.return_(r),r="fn.assign="+this.generateFunction("assign","s,v,l")),n=Ot(e.body),t.stage="inputs",o(n,function(e,n){var r="fn"+n;t.state[r]={vars:[],body:[],own:{}},t.state.computing=r;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push({name:r,isPure:e.isPure}),e.watchId=n}),this.state.computing="fn",this.stage="main",this.recurse(e),e='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",e=new Function("$filter","getStringValue","ifDefined","plus",e)(this.$filter,St,Et,kt),this.state=this.stage=void 0,e},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return o(t,function(t){e.push("var "+t.name+"="+n.generateFunction(t.name,"s")),t.isPure&&e.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")}),t.length&&e.push("fn.inputs=["+t.map(function(e){return e.name}).join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return o(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,r,i,a){var s,u,l,c,f,d=this;if(r=r||h,!a&&v(e.watchId))t=t||this.nextId(),this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,r,i,!0));else switch(e.type){case Ei.Program:o(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 Ei.Literal:c=this.escape(e.value),this.assign(t,c),r(t||c);break;case Ei.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 Ei.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 Ei.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 Ei.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 Ei.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),d.if_("inputs"===d.stage||d.not(d.getHasOwnProperty("l",e.name)),function(){d.if_("inputs"===d.stage||"s",function(){i&&1!==i&&d.if_(d.isNull(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))),r(t);break;case Ei.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(){e.computed?(u=d.nextId(),d.recurse(e.property,u),d.getStringValue(u),i&&1!==i&&d.if_(d.not(d.computedMember(s,u)),d.lazyAssign(d.computedMember(s,u),"{}")),c=d.computedMember(s,u),d.assign(t,c),n&&(n.computed=!0,n.name=u)):(i&&1!==i&&d.if_(d.isNull(d.nonComputedMember(s,e.property.name)),d.lazyAssign(d.nonComputedMember(s,e.property.name),"{}")),c=d.nonComputedMember(s,e.property.name),d.assign(t,c),n&&(n.computed=!1,n.name=e.property.name))},function(){d.assign(t,"undefined")}),r(t)},!!i);break;case Ei.CallExpression:t=t||this.nextId(),e.filter?(u=d.filter(e.callee.name),l=[],o(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(){o(e.arguments,function(t){d.recurse(t,e.constant?void 0:d.nextId(),void 0,function(e){l.push(e)})}),c=s.name?d.member(s.context,s.name,s.computed)+"("+l.join(",")+")":u+"("+l.join(",")+")",d.assign(t,c)},function(){d.assign(t,"undefined")}),r(t)}));break;case Ei.AssignmentExpression:u=this.nextId(),s={},this.recurse(e.left,void 0,s,function(){d.if_(d.notNull(s.context),function(){d.recurse(e.right,u),c=d.member(s.context,s.name,s.computed)+e.operator+u,d.assign(t,c),r(t||c)})},1);break;case Ei.ArrayExpression:l=[],o(e.elements,function(t){d.recurse(t,e.constant?void 0:d.nextId(),void 0,function(e){l.push(e)})}),c="["+l.join(",")+"]",this.assign(t,c),r(t||c);break;case Ei.ObjectExpression:l=[],f=!1,o(e.properties,function(e){e.computed&&(f=!0)}),f?(t=t||this.nextId(),this.assign(t,"{}"),o(e.properties,function(e){e.computed?(s=d.nextId(),d.recurse(e.key,s)):s=e.key.type===Ei.Identifier?e.key.name:""+e.key.value,u=d.nextId(),d.recurse(e.value,u),d.assign(d.member(t,s,e.computed),u)})):(o(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===Ei.Identifier?t.key.name:""+t.key.value)+":"+e)})}),c="{"+l.join(",")+"}",this.assign(t,c)),r(t||c);break;case Ei.ThisExpression:this.assign(t,"s"),r(t||"s");break;case Ei.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case Ei.NGValueParameter:this.assign(t,"v"),r(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){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(!0===e)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?e+"."+t:e+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(w(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw wi("esc")},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]}},Pt.prototype={compile:function(e){var t,n,r,i=this;_t(e,i.$filter),(t=Tt(e))&&(n=this.recurse(t)),(t=Ot(e.body))&&(r=[],o(t,function(e,t){var n=i.recurse(e);n.isPure=e.isPure,e.input=n,r.push(n),e.watchId=t}));var a=[];return o(e.body,function(e){a.push(i.recurse(e.expression))}),e=0===e.body.length?h:1===e.body.length?a[0]:function(e,t){var n;return o(a,function(r){n=r(e,t)}),n},n&&(e.assign=function(e,t,r){return n(e,r,t)}),r&&(e.inputs=r),e},recurse:function(e,t,n){var r,i,a,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case Ei.Literal:return this.value(e.value,t);case Ei.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case Ei.BinaryExpression:case Ei.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case Ei.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case Ei.Identifier:return s.identifier(e.name,t,n);case Ei.MemberExpression:return r=this.recurse(e.object,!1,!!n),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(r,i,t,n):this.nonComputedMember(r,i,t,n);case Ei.CallExpression:return a=[],o(e.arguments,function(e){a.push(s.recurse(e))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,o){for(var s=[],u=0;u<a.length;++u)s.push(a[u](e,n,r,o));return e=i.apply(void 0,s,o),t?{context:void 0,name:void 0,value:e}:e}:function(e,n,r,o){var s,u=i(e,n,r,o);if(null!=u.value){s=[];for(var l=0;l<a.length;++l)s.push(a[l](e,n,r,o));s=u.value.apply(u.context,s)}return t?{value:s}:s};case Ei.AssignmentExpression:return r=this.recurse(e.left,!0,1),i=this.recurse(e.right),function(e,n,o,a){var s=r(e,n,o,a);return e=i(e,n,o,a),s.context[s.name]=e,t?{value:e}:e};case Ei.ArrayExpression:return a=[],o(e.elements,function(e){a.push(s.recurse(e))}),function(e,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](e,n,r,i));return t?{value:o}:o};case Ei.ObjectExpression:return a=[],o(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===Ei.Identifier?e.key.name:""+e.key.value,computed:!1,value:s.recurse(e.value)})}),function(e,n,r,i){for(var o={},s=0;s<a.length;++s)a[s].computed?o[a[s].key(e,n,r,i)]=a[s].value(e,n,r,i):o[a[s].key]=a[s].value(e,n,r,i);return t?{value:o}:o};case Ei.ThisExpression:return function(e){return t?{value:e}:e};case Ei.LocalsExpression:return function(e,n){return t?{value:n}:n};case Ei.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){return n=v(n=e(n,r,i,o))?+n:0,t?{value:n}:n}},"unary-":function(e,t){return function(n,r,i,o){return n=v(n=e(n,r,i,o))?-n:-0,t?{value:n}:n}},"unary!":function(e,t){return function(n,r,i,o){return n=!e(n,r,i,o),t?{value:n}:n}},"binary+":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a);return s=kt(s,r=t(r,i,o,a)),n?{value:s}:s}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a);return r=t(r,i,o,a),s=(v(s)?s:0)-(v(r)?r:0),n?{value:s}:s}},"binary*":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)*t(r,i,o,a),n?{value:r}:r}},"binary/":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)/t(r,i,o,a),n?{value:r}:r}},"binary%":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)%t(r,i,o,a),n?{value:r}:r}},"binary===":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)===t(r,i,o,a),n?{value:r}:r}},"binary!==":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)!==t(r,i,o,a),n?{value:r}:r}},"binary==":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)==t(r,i,o,a),n?{value:r}:r}},"binary!=":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)!=t(r,i,o,a),n?{value:r}:r}},"binary<":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)<t(r,i,o,a),n?{value:r}:r}},"binary>":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)>t(r,i,o,a),n?{value:r}:r}},"binary<=":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)<=t(r,i,o,a),n?{value:r}:r}},"binary>=":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)>=t(r,i,o,a),n?{value:r}:r}},"binary&&":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)&&t(r,i,o,a),n?{value:r}:r}},"binary||":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)||t(r,i,o,a),n?{value:r}:r}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){return i=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s),r?{value:i}:i}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(r,i,o,a){return r=i&&e in i?i:r,n&&1!==n&&r&&null==r[e]&&(r[e]={}),i=r?r[e]:void 0,t?{context:r,name:e,value:i}:i}},computedMember:function(e,t,n,r){return function(i,o,a,s){var u,l,c=e(i,o,a,s);return null!=c&&(u=t(i,o,a,s),u+="",r&&1!==r&&c&&!c[u]&&(c[u]={}),l=c[u]),n?{context:c,name:u,value:l}:l}},nonComputedMember:function(e,t,n,r){return function(i,o,a,s){return i=e(i,o,a,s),r&&1!==r&&i&&null==i[t]&&(i[t]={}),o=null!=i?i[t]:void 0,n?{context:i,name:t,value:o}:o}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}},Rt.prototype={constructor:Rt,parse:function(e){e=this.getAst(e);var t=this.astCompiler.compile(e.ast),n=e.ast;return t.literal=0===n.body.length||1===n.body.length&&(n.body[0].expression.type===Ei.Literal||n.body[0].expression.type===Ei.ArrayExpression||n.body[0].expression.type===Ei.ObjectExpression),t.constant=e.ast.constant,t.oneTime=e.oneTime,t},getAst:function(e){var t=!1;return":"===(e=e.trim()).charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}};var _i,Oi=r("$sce"),Mi={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Ti=/_([a-z])/g,Di=r("$templateRequest"),Pi=r("$timeout"),Ri=e.document.createElement("a"),Ii=Zt(e.location.href);Ri.href="http://[::1]";var Fi="[::1]"===Ri.hostname;en.$inject=["$document"],nn.$inject=["$provide"];var Ui=22,ji=".",Ni="0";sn.$inject=["$locale"],un.$inject=["$locale"];var Vi={yyyy:fn("FullYear",4,0,!1,!0),yy:fn("FullYear",2,0,!0,!0),y:fn("FullYear",1,0,!1,!0),MMMM:dn("Month"),MMM:dn("Month",!0),MM:fn("Month",2,1),M:fn("Month",1,1),LLLL:dn("Month",!1,!0),dd:fn("Date",2),d:fn("Date",1),HH:fn("Hours",2),H:fn("Hours",1),hh:fn("Hours",2,-12),h:fn("Hours",1,-12),mm:fn("Minutes",2),m:fn("Minutes",1),ss:fn("Seconds",2),s:fn("Seconds",1),sss:fn("Milliseconds",3),EEEE:dn("Day"),EEE:dn("Day",!0),a:function(e,t){return 12>e.getHours()?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,n){return(0<=(e=-1*n)?"+":"")+(cn(Math[0<e?"floor":"ceil"](e/60),2)+cn(Math.abs(e%60),2))},ww:pn(2),w:pn(1),G:mn,GG:mn,GGG:mn,GGGG:function(e,t){return 0>=e.getFullYear()?t.ERANAMES[0]:t.ERANAMES[1]}},Li=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,zi=/^-?\d+$/;$n.$inject=["$locale"];var Hi=m(Zn),qi=m(Jn);bn.$inject=["$parse"];var Bi=m({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]"===nr.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Wi={};o(Ir,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!==e){var r=Ge("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,0,i)}),Wi[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(Ur,function(e,t){Wi[t]=function(){return{priority:100,link:function(e,n,r){"ngPattern"===t&&"/"===r.ngPattern.charAt(0)&&(n=r.ngPattern.match(Kn))?r.$set("ngPattern",new RegExp(n[1],n[2])):e.$watch(r[t],function(e){r.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=Ge("ng-"+e);Wi[t]=["$sce",function(n){return{priority:99,link:function(r,i,o){var a=e,s=e;"href"===e&&"[object SVGAnimatedString]"===nr.call(i.prop("href"))&&(s="xlinkHref",o.$attr[s]="xlink:href",a=null),o.$set(t,n.getTrustedMediaUrl(o[t])),o.$observe(t,function(t){t?(o.$set(s,t),qn&&a&&i.prop(a,o[s])):"href"===e&&o.$set(s,null)})}}}]});var Gi={$addControl:h,$getControls:m([]),$$renameControl:function(e,t){e.$name=t},$removeControl:h,$setValidity:h,$setDirty:h,$setPristine:h,$setSubmitted:h,$$setSubmitted:h};xn.$inject=["$element","$attrs","$scope","$animate","$interpolate"],xn.prototype={$rollbackViewValue:function(){o(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){o(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){re(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$getControls:function(){return se(this.$$controls)},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],o(this.$pending,function(t,n){this.$setValidity(n,null,e)},this),o(this.$error,function(t,n){this.$setValidity(n,null,e)},this),o(this.$$success,function(t,n){this.$setValidity(n,null,e)},this),P(this.$$controls,e),e.$$parentForm=Gi},$setDirty:function(){this.$$animate.removeClass(this.$$element,To),this.$$animate.addClass(this.$$element,Do),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,To,Do+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,o(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){o(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){for(var e=this;e.$$parentForm&&e.$$parentForm!==Gi;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,o(this.$$controls,function(e){e.$$setSubmitted&&e.$$setSubmitted()})}},An({clazz:xn,set:function(e,t,n){var r=e[t];r?-1===r.indexOf(n)&&r.push(n):e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(P(r,n),0===r.length&&delete e[t])}});var Xi=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||h}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:xn,compile:function(n,i){n.addClass(To).addClass(Oo);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,a){var s=a[0];if(!("action"in i)){var u=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()};n[0].addEventListener("submit",u),n.on("$destroy",function(){t(function(){n[0].removeEventListener("submit",u)},0,!1)})}(a[1]||s.$$parentForm).$addControl(s);var c=o?r(s.$name):h;o&&(c(e,s),i.$observe(o,function(t){s.$name!==t&&(c(e,void 0),s.$$parentForm.$$renameControl(s,t),(c=r(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),c(e,void 0),l(s,Gi)})}}}}}]},Ki=Xi(),Yi=Xi(!0),Zi=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Ji=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Qi=/^(?=.{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])?)*$/,eo=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,to=/^(\d{4,})-(\d{2})-(\d{2})$/,no=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ro=/^(\d{4,})-W(\d\d)$/,io=/^(\d{4,})-(\d\d)$/,oo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ao=oe();o(["date","datetime-local","month","time","week"],function(e){ao[e]=!0});var so={text:function(e,t,n,r,i,o){kn(0,t,n,r,i,o),En(r)},date:On("date",to,_n(to,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":On("datetimelocal",no,_n(no,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:On("time",oo,_n(oo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:On("week",ro,function(e,t){if(C(e))return e;if(w(e)){ro.lastIndex=0;var n=ro.exec(e);if(n){var r=+n[1],i=+n[2],o=n=0,a=0,s=0,u=hn(r);i=7*(i-1);return t&&(n=t.getHours(),o=t.getMinutes(),a=t.getSeconds(),s=t.getMilliseconds()),new Date(r,0,u.getDate()+i,n,o,a,s)}}return NaN},"yyyy-Www"),month:On("month",io,_n(io,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,r,i,o,a,s){var u;if(Mn(0,t,0,r,"number"),Tn(r),kn(0,t,n,r,i,o),v(n.min)||n.ngMin){var l=n.min||s(n.ngMin)(e);u=Dn(l),r.$validators.min=function(e,t){return r.$isEmpty(t)||g(u)||t>=u},n.$observe("min",function(e){e!==l&&(u=Dn(e),l=e,r.$validate())})}if(v(n.max)||n.ngMax){var c=n.max||s(n.ngMax)(e),f=Dn(c);r.$validators.max=function(e,t){return r.$isEmpty(t)||g(f)||t<=f},n.$observe("max",function(e){e!==c&&(f=Dn(e),c=e,r.$validate())})}if(v(n.step)||n.ngStep){var d=n.step||s(n.ngStep)(e),h=Dn(d);r.$validators.step=function(e,t){return r.$isEmpty(t)||g(h)||Rn(t,u||0,h)},n.$observe("step",function(e){e!==d&&(h=Dn(e),d=e,r.$validate())})}},url:function(e,t,n,r,i,o){kn(0,t,n,r,i,o),En(r),r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Ji.test(n)}},email:function(e,t,n,r,i,o){kn(0,t,n,r,i,o),En(r),r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Qi.test(n)}},radio:function(e,t,n,r){var i=!n.ngTrim||"false"!==fr(n.ngTrim);g(n.name)&&t.attr("name",++ar),t.on("change",function(e){var o;t[0].checked&&(o=n.value,i&&(o=fr(o)),r.$setViewValue(o,e&&e.type))}),r.$render=function(){var e=n.value;i&&(e=fr(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)},range:function(e,t,n,r,i,o){function a(e,r){t.attr(e,n[e]);var i=n[e];n.$observe(e,function(e){e!==i&&(i=e,r(e))})}Mn(0,t,0,r,"range"),Tn(r),kn(0,t,n,r,i,o);var s=r.$$hasNativeValidators&&"range"===t[0].type,u=s?0:void 0,l=s?100:void 0,c=s?1:void 0,f=t[0].validity;e=v(n.min),i=v(n.max),o=v(n.step);var d=r.$render;r.$render=s&&v(f.rangeUnderflow)&&v(f.rangeOverflow)?function(){d(),r.$setViewValue(t.val())}:d,e&&(u=Dn(n.min),r.$validators.min=s?function(){return!0}:function(e,t){return r.$isEmpty(t)||g(u)||t>=u},a("min",function(e){u=Dn(e),sr(r.$modelValue)||(s?(e=t.val(),u>e&&(e=u,t.val(e)),r.$setViewValue(e)):r.$validate())})),i&&(l=Dn(n.max),r.$validators.max=s?function(){return!0}:function(e,t){return r.$isEmpty(t)||g(l)||t<=l},a("max",function(e){l=Dn(e),sr(r.$modelValue)||(s?(e=t.val(),l<e&&(t.val(l),e=l<u?u:l),r.$setViewValue(e)):r.$validate())})),o&&(c=Dn(n.step),r.$validators.step=s?function(){return!f.stepMismatch}:function(e,t){return r.$isEmpty(t)||g(c)||Rn(t,u||0,c)},a("step",function(e){c=Dn(e),sr(r.$modelValue)||(s?r.$viewValue!==t.val()&&r.$setViewValue(t.val()):r.$validate())}))},checkbox:function(e,t,n,r,i,o,a,s){var u=In(s,e,"ngTrueValue",n.ngTrueValue,!0),l=In(s,e,"ngFalseValue",n.ngFalseValue,!1);t.on("change",function(e){r.$setViewValue(t[0].checked,e&&e.type)}),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push(function(e){return F(e,u)}),r.$parsers.push(function(e){return e?u:l})},hidden:h,button:h,submit:h,reset:h,file:h},uo=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(so[Zn(a.type)]||so.text)(i,o,a,s[0],t,e,n,r)}}}}],lo=function(){var e={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}};return{restrict:"E",priority:200,compile:function(t,n){if("hidden"===Zn(n.type))return{pre:function(t,n,r,i){(t=n[0]).parentNode&&t.parentNode.insertBefore(t,t.nextSibling),Object.defineProperty&&Object.defineProperty(t,"value",e)}}}}},co=/^(true|false|\d+)$/,fo=function(){function e(e,t,n){var r=v(n)?n:9===qn?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return co.test(n.ngValue)?function(t,n,r){e(n,r,t=t.$eval(r.ngValue))}:function(t,n,r){t.$watch(r.ngValue,function(t){e(n,r,t)})}}}},ho=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,function(e){n.textContent=ae(e)})}}}}],po=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){n=e(r.attr(i.$attr.ngBindTemplate)),t.$$addBindingInfo(r,n.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=g(e)?"":e})}}}}],mo=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(t){return e.valueOf(t)});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")})}}}}],$o=m({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),go=Fn("",!0),vo=Fn("Odd",0),yo=Fn("Even",1),bo=wn({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),wo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],xo={},Co={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=Ge("ng-"+e);xo[t]=["$parse","$rootScope","$exceptionHandler",function(n,r,i){return Un(n,r,i,t,e,Co[e])}]});var Ao=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,l;n.$watch(i.ngIf,function(n){n?u||a(function(n,o){u=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=ie(s.clone),e.leave(l).done(function(e){!1!==e&&(l=null)}),s=null))})}}}],So=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:or.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,l,c){var f,d,h,p=0,m=function(){d&&(d.remove(),d=null),f&&(f.$destroy(),f=null),h&&(n.leave(h).done(function(e){!1!==e&&(d=null)}),d=h,h=null)};r.$watch(o,function(o){var u=function(e){!1===e||!v(s)||s&&!r.$eval(s)||t()},d=++p;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&d===p){var t=r.$new();l.template=e,e=c(t,function(e){m(),n.enter(e,null,i).done(u)}),h=e,(f=t).$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||d!==p||(m(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(m(),l.template=null)})}}}}],Eo=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){nr.call(r[0]).match(/SVG/)?(r.empty(),t(de(o.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r})):(r.html(o.template),t(r.contents())(n))}}}],ko=wn({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),_o=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=n.ngList||", ",a="false"!==n.ngTrim,s=a?fr(i):i;r.$parsers.push(function(e){if(!g(e)){var t=[];return e&&o(e.split(s),function(e){e&&t.push(a?fr(e):e)}),t}}),r.$formatters.push(function(e){if(A(e))return e.join(i)}),r.$isEmpty=function(e){return!e||!e.length}}}},Oo="ng-valid",Mo="ng-invalid",To="ng-pristine",Do="ng-dirty",Po=r("ngModel");jn.$inject="$scope $exceptionHandler $attrs $element $parse $animate $timeout $q $interpolate".split(" "),jn.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return E(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){E(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw Po("nonassign",this.$$attr.ngModel,B(this.$$element))},$render:h,$isEmpty:function(e){return g(e)||""===e||null===e||e!=e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Do),this.$$animate.addClass(this.$$element,To)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,To),this.$$animate.addClass(this.$$element,Do),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!sr(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(t,e,function(e){i||n===e||(o.$modelValue=e?t:void 0,o.$modelValue!==r&&o.$$writeModelToScope())})}},$$runValidators:function(e,t,n){function r(e,t){a===s.$$currentValidationRunId&&s.$setValidity(e,t)}function i(e){a===s.$$currentValidationRunId&&n(e)}this.$$currentValidationRunId++;var a=this.$$currentValidationRunId,s=this;!function(){var e=s.$$parserName;return g(s.$$parserValid)?(r(e,null),!0):(s.$$parserValid||(o(s.$validators,function(e,t){r(t,null)}),o(s.$asyncValidators,function(e,t){r(t,null)})),r(e,s.$$parserValid),s.$$parserValid)}()?i(!1):function(){var n=!0;return o(s.$validators,function(i,o){var a=Boolean(i(e,t));n=n&&a,r(o,a)}),!!n||(o(s.$asyncValidators,function(e,t){r(t,null)}),!1)}()?function(){var n=[],a=!0;o(s.$asyncValidators,function(i,o){var s=i(e,t);if(!s||!E(s.then))throw Po("nopromise",s);r(o,void 0),n.push(s.then(function(){r(o,!0)},function(){a=!1,r(o,!1)}))}),n.length?s.$$q.all(n).then(function(){i(a)},h):i(!0)}():i(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var e=this.$$lastCommittedViewValue,t=this;if(this.$$parserValid=!g(e)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var n=0;n<this.$parsers.length;n++)if(g(e=this.$parsers[n](e))){this.$$parserValid=!1;break}sr(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var r=this.$modelValue,i=this.$options.getOption("allowInvalid");this.$$rawModelValue=e,i&&(this.$modelValue=e,t.$modelValue!==r&&t.$$writeModelToScope()),this.$$runValidators(e,this.$$lastCommittedViewValue,function(n){i||(t.$modelValue=n?e:void 0,t.$modelValue!==r&&t.$$writeModelToScope())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),o(this.$viewChangeListeners,function(e){try{e()}catch(e){this.$$exceptionHandler(e)}},this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");x(t[e])?t=t[e]:x(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:x(t["*"])&&(t=t["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;0<t?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e),this.$$setUpdateOnEvents()},$processModelValue:function(){var e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,h))},$$format:function(){for(var e=this.$formatters,t=e.length,n=this.$modelValue;t--;)n=e[t](n);return n},$$setModelValue:function(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),(this.$$updateEvents=this.$options.getOption("updateOn"))&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(e){this.$$debounceViewValueCommit(e&&e.type)}},An({clazz:jn,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var Ro,Io=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:jn,priority:1,compile:function(t){return t.addClass(To).addClass("ng-untouched").addClass(Oo),{pre:function(e,t,n,r){var i=r[0];t=r[1]||i.$$parentForm,(r=r[2])&&(i.$options=r.$options),i.$$initGetterSetters(),t.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){function o(){a.$setTouched()}var a=i[0];a.$$setUpdateOnEvents(),n.on("blur",function(){a.$touched||(e.$$phase?t.$evalAsync(o):t.$apply(o))})}}}}}],Fo=/(\s+|^)default(\s+|$)/;Nn.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return o(e=l({},e),function(n,r){"$inherit"===n?"*"===r?t=!0:(e[r]=this.$$options[r],"updateOn"===r&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(e.updateOnDefault=!1,e[r]=fr(n.replace(Fo,function(){return e.updateOnDefault=!0," "})))},this),t&&(delete e["*"],Vn(e,this.$$options)),Vn(e,Ro.$$options),new Nn(e)}},Ro=new Nn({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var Uo=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:Ro,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}},jo=wn({terminal:!0,priority:1e3}),No=r("ngOptions"),Vo=/^\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]+?))?$/,Lo=["$compile","$document","$parse",function(t,n,r){function a(e,t,n){function o(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function a(e){var t;if(!l&&i(e))t=e;else for(var n in t=[],e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n);return t}var s=e.match(Vo);if(!s)throw No("iexp",e,B(t));var u=s[5]||s[7],l=s[6];e=/ as /.test(s[0])&&s[1];var c=s[9];t=r(s[2]?s[1]:u);var f=e&&r(e)||t,d=c&&r(c),h=c?function(e,t){return d(n,t)}:function(e){return Ie(e)},p=function(e,t){return h(e,b(e,t))},m=r(s[2]||s[1]),$=r(s[3]||""),g=r(s[4]||""),v=r(s[8]),y={},b=l?function(e,t){return y[l]=t,y[u]=e,y}:function(e){return y[u]=e,y};return{trackBy:c,getTrackByValue:p,getWatchables:r(v,function(e){for(var t=[],r=a(e=e||[]),i=r.length,o=0;o<i;o++){var u=e[l=e===r?o:r[o]],l=b(u,l);u=h(u,l);t.push(u),(s[2]||s[1])&&(u=m(n,l),t.push(u)),s[4]&&(l=g(n,l),t.push(l))}return t}),getOptions:function(){for(var e=[],t={},r=v(n)||[],i=a(r),s=i.length,u=0;u<s;u++){var l=r===i?u:i[u],d=b(r[l],l),y=f(n,d);y=new o(l=h(y,d),y,m(n,d),$(n,d),d=g(n,d));e.push(y),t[l]=y}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[p(e)]},getViewValueFromOption:function(e){return c?R(e.viewValue):e.viewValue}}}}}var s=e.document.createElement("option"),u=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=h},post:function(e,r,i,l){function c(e){var t=(e=g.getOptionFromViewValue(e))&&e.element;return t&&!t.selected&&(t.selected=!0),e}function f(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),t.value=e.selectValue}var d=l[0],h=l[1],p=i.multiple;l=0;for(var m=r.children(),$=m.length;l<$;l++)if(""===m[l].value){d.hasEmptyOption=!0,d.emptyOption=m.eq(l);break}r.empty(),l=!!d.emptyOption,Bn(s.cloneNode(!1)).val("?");var g,y=a(i.ngOptions,r,e),b=n[0].createDocumentFragment();d.generateUnknownOptionValue=function(e){return"?"},p?(d.writeValue=function(e){if(g){var t=e&&e.map(c)||[];g.items.forEach(function(e){e.element.selected&&-1===Array.prototype.indexOf.call(t,e)&&(e.element.selected=!1)})}},d.readValue=function(){var e=[];return o(r.val()||[],function(t){(t=g.selectValueMap[t])&&!t.disabled&&e.push(g.getViewValueFromOption(t))}),e},y.trackBy&&e.$watchCollection(function(){if(A(h.$viewValue))return h.$viewValue.map(function(e){return y.getTrackByValue(e)})},function(){h.$render()})):(d.writeValue=function(e){if(g){var t=r[0].options[r[0].selectedIndex],n=g.getOptionFromViewValue(e);t&&t.removeAttribute("selected"),n?(r[0].value!==n.selectValue&&(d.removeUnknownOption(),r[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):d.selectUnknownOrEmptyOption(e)}},d.readValue=function(){var e=g.selectValueMap[r.val()];return e&&!e.disabled?(d.unselectEmptyOption(),d.removeUnknownOption(),g.getViewValueFromOption(e)):null},y.trackBy&&e.$watch(function(){return y.getTrackByValue(h.$viewValue)},function(){h.$render()})),l&&(t(d.emptyOption)(e),r.prepend(d.emptyOption),8===d.emptyOption[0].nodeType?(d.hasEmptyOption=!1,d.registerOption=function(e,t){""===t.val()&&(d.hasEmptyOption=!0,d.emptyOption=t,d.emptyOption.removeClass("ng-scope"),h.$render(),t.on("$destroy",function(){var e=d.$isEmptyOptionSelected();d.hasEmptyOption=!1,d.emptyOption=void 0,e&&h.$render()}))}):d.emptyOption.removeClass("ng-scope")),e.$watchCollection(y.getWatchables,function(){var e=g&&d.readValue();if(g)for(var t=g.items.length-1;0<=t;t--){var n=g.items[t];v(n.group)?Oe(n.element.parentNode):Oe(n.element)}var i={};(g=y.getOptions()).items.forEach(function(e){var t;if(v(e.group)){(t=i[e.group])||(t=u.cloneNode(!1),b.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t);var n=s.cloneNode(!1);t.appendChild(n),f(e,n)}else t=s.cloneNode(!1),b.appendChild(t),f(e,t)}),r[0].appendChild(b),h.$render(),h.$isEmpty(e)||(t=d.readValue(),(y.trackBy||p?F(e,t):e===t)||(h.$setViewValue(t),h.$render()))})}}}}],zo=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function l(e){s.text(e||"")}var c,f=u.count,d=u.$attr.when&&s.attr(u.$attr.when),p=u.offset||0,m=a.$eval(d)||{},$={},v=t.startSymbol(),y=t.endSymbol(),b=v+f+"-"+p+y,w=or.noop;o(u,function(e,t){var n=i.exec(t);n&&(n=(n[1]?"-":"")+Zn(n[2]),m[n]=s.attr(u.$attr[t]))}),o(m,function(e,n){$[n]=t(e.replace(r,b))}),a.$watch(f,function(t){var r=parseFloat(t),i=sr(r);i||r in m||(r=e.pluralCat(r-p)),r===c||i&&sr(c)||(w(),g(i=$[r])?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+d),w=h,l()):w=a.$watch(i,l),c=r)})}}}],Ho=r("ngRef"),qo=["$parse",function(e){return{priority:-1,restrict:"A",compile:function(t,n){var r=Ge(D(t)),i=e(n.ngRef),o=i.assign||function(){throw Ho("nonassign",n.ngRef)};return function(e,t,a){var s;if(a.hasOwnProperty("ngRefRead")){if("$element"===a.ngRefRead)s=t;else if(!(s=t.data("$"+a.ngRefRead+"Controller")))throw Ho("noctrl",a.ngRefRead,n.ngRef)}else s=t.data("$"+r+"Controller");o(e,s=s||t),t.on("$destroy",function(){i(e)===s&&o(e,null)})}}}}],Bo=["$parse","$animate","$compile",function(e,t,n){var a=r("ngRepeat"),s=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},u=function(e,t,n){return Ie(n)},l=function(e,t){return t};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,c){var f=c.ngRepeat,d=n.$$createComment("end ngRepeat",f);if(!(h=f.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/)))throw a("iexp",f);var h,p=h[1],m=h[2],$=h[3],g=h[4];if(!(h=p.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw a("iidexp",p);var v,y=h[3]||h[1],b=h[2];if($&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test($)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test($)))throw a("badident",$);if(g){var w={$id:Ie},x=e(g);v=function(e,t,n,r){return b&&(w[b]=t),w[y]=n,w.$index=r,x(e,w)}}return function(e,n,r,c,h){var p=oe();e.$watchCollection(m,function(r){var c,m,g,x,C,A,S,E,k,_,O=n[0],M=oe();if($&&(e[$]=r),i(r))E=r,m=v||u;else for(_ in m=v||l,E=[],r)Yn.call(r,_)&&"$"!==_.charAt(0)&&E.push(_);for(x=E.length,_=Array(x),c=0;c<x;c++)if(C=r===E?c:E[c],A=r[C],S=m(e,C,A,c),p[S])k=p[S],delete p[S],M[S]=k,_[c]=k;else{if(M[S])throw o(_,function(e){e&&e.scope&&(p[e.id]=e)}),a("dupes",f,S,A);_[c]={id:S,scope:void 0,clone:void 0},M[S]=!0}for(g in w&&(w[y]=void 0),p){if(S=ie((k=p[g]).clone),t.leave(S),S[0].parentNode)for(c=0,m=S.length;c<m;c++)S[c].$$NG_REMOVED=!0;k.scope.$destroy()}for(c=0;c<x;c++)if(C=r===E?c:E[c],A=r[C],(k=_[c]).scope){g=O;do{g=g.nextSibling}while(g&&g.$$NG_REMOVED);k.clone[0]!==g&&t.move(ie(k.clone),null,O),O=k.clone[k.clone.length-1],s(k.scope,c,y,A,b,C,x)}else h(function(e,n){k.scope=n;var r=d.cloneNode(!1);e[e.length++]=r,t.enter(e,null,O),O=r,k.clone=e,M[k.id]=k,s(k.scope,c,y,A,b,C,x)});p=M})}}}}],Wo=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Go=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Xo=wn(function(e,t,n){e.$watchCollection(n.ngStyle,function(e,n){n&&e!==n&&o(n,function(e,n){t.css(n,"")}),e&&t.css(e)})}),Ko=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var s=[],u=[],l=[],c=[],f=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(i.ngSwitch||i.on,function(n){for(var r,i;l.length;)e.cancel(l.pop());for(r=0,i=c.length;r<i;++r){var d=ie(u[r].clone);c[r].$destroy(),(l[r]=e.leave(d)).done(f(l,r))}u.length=0,c.length=0,(s=a.cases["!"+n]||a.cases["?"])&&o(s,function(n){n.transclude(function(r,i){c.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen"),u.push({clone:r}),e.enter(r,o.parent(),o)})})})}}}],Yo=wn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){o(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(e,t,n){return n[t-1]!==e}),function(e){r.cases["!"+e]=r.cases["!"+e]||[],r.cases["!"+e].push({transclude:i,element:t})})}}),Zo=wn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),Jo=r("ngTransclude"),Qo=["$compile",function(e){return{restrict:"EAC",compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){function a(){n(e,function(e){t.append(e)})}if(!o)throw Jo("orphan",B(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude=""),o(function(e,n){var r;if(r=e.length)e:{r=0;for(var i=e.length;r<i;r++){var o=e[r];if(o.nodeType!==br||o.nodeValue.trim()){r=!0;break e}}r=void 0}r?t.append(e):(a(),n.$destroy())},null,r=r.ngTransclude||r.ngTranscludeSlot),r&&!o.isSlotFilled(r)&&a()}}}}],ea=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){"text/ng-template"===n.type&&e.put(n.id,t[0].text)}}}],ta={$setViewValue:h,$render:h},na=["$element","$scope",function(t,n){function r(){s||(s=!0,n.$$postDigest(function(){s=!1,o.ngModelCtrl.$render()}))}function i(e){u||(u=!0,n.$$postDigest(function(){n.$$destroyed||(u=!1,o.ngModelCtrl.$setViewValue(o.readValue()),e&&o.ngModelCtrl.$render())}))}var o=this,a=new Nr;o.selectValueMap={},o.ngModelCtrl=ta,o.multiple=!1,o.unknownOption=Bn(e.document.createElement("option")),o.hasEmptyOption=!1,o.emptyOption=void 0,o.renderUnknownOption=function(e){e=o.generateUnknownOptionValue(e),o.unknownOption.val(e),t.prepend(o.unknownOption),Ln(o.unknownOption,!0),t.val(e)},o.updateUnknownOption=function(e){e=o.generateUnknownOptionValue(e),o.unknownOption.val(e),Ln(o.unknownOption,!0),t.val(e)},o.generateUnknownOptionValue=function(e){return"? "+Ie(e)+" ?"},o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.selectEmptyOption=function(){o.emptyOption&&(t.val(""),Ln(o.emptyOption,!0))},o.unselectEmptyOption=function(){o.hasEmptyOption&&Ln(o.emptyOption,!1)},n.$on("$destroy",function(){o.renderUnknownOption=h}),o.readValue=function(){var e=(e=t.val())in o.selectValueMap?o.selectValueMap[e]:e;return o.hasOption(e)?e:null},o.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];n&&Ln(Bn(n),!1),o.hasOption(e)?(o.removeUnknownOption(),n=Ie(e),t.val(n in o.selectValueMap?n:e),Ln(Bn(t[0].options[t[0].selectedIndex]),!0)):o.selectUnknownOrEmptyOption(e)},o.addOption=function(e,t){if(8!==t[0].nodeType){re(e,'"option value"'),""===e&&(o.hasEmptyOption=!0,o.emptyOption=t);var n=a.get(e)||0;a.set(e,n+1),r()}},o.removeOption=function(e){var t=a.get(e);t&&(1===t?(a.delete(e),""===e&&(o.hasEmptyOption=!1,o.emptyOption=void 0)):a.set(e,t-1))},o.hasOption=function(e){return!!a.get(e)},o.$hasEmptyOption=function(){return o.hasEmptyOption},o.$isUnknownOptionSelected=function(){return t[0].options[0]===o.unknownOption[0]},o.$isEmptyOptionSelected=function(){return o.hasEmptyOption&&t[0].options[t[0].selectedIndex]===o.emptyOption[0]},o.selectUnknownOrEmptyOption=function(e){null==e&&o.emptyOption?(o.removeUnknownOption(),o.selectEmptyOption()):o.unknownOption.parent().length?o.updateUnknownOption(e):o.renderUnknownOption(e)};var s=!1,u=!1;o.registerOption=function(e,t,n,a,s){var u,l;n.$attr.ngValue?n.$observe("value",function(e){var n,r=t.prop("selected");v(l)&&(o.removeOption(u),delete o.selectValueMap[l],n=!0),l=Ie(e),u=e,o.selectValueMap[l]=e,o.addOption(e,t),t.attr("value",l),n&&r&&i()}):a?n.$observe("value",function(e){o.readValue();var n,r=t.prop("selected");v(u)&&(o.removeOption(u),n=!0),u=e,o.addOption(e,t),n&&r&&i()}):s?e.$watch(s,function(e,r){n.$set("value",e);var a=t.prop("selected");r!==e&&o.removeOption(r),o.addOption(e,t),r&&a&&i()}):o.addOption(n.value,t);n.$observe("disabled",function(e){("true"===e||e&&t.prop("selected"))&&(o.multiple?i(!0):(o.ngModelCtrl.$setViewValue(null),o.ngModelCtrl.$render()))}),t.on("$destroy",function(){var e=o.readValue(),t=n.value;o.removeOption(t),r(),(o.multiple&&e&&-1!==e.indexOf(t)||e===t)&&i(!0)})}}],ra=function(){return{restrict:"E",require:["select","?ngModel"],controller:na,priority:1,link:{pre:function(e,t,n,r){var i=r[0],a=r[1];if(a){if(i.ngModelCtrl=a,t.on("change",function(){i.removeUnknownOption(),e.$apply(function(){a.$setViewValue(i.readValue())})}),n.multiple){i.multiple=!0,i.readValue=function(){var e=[];return o(t.find("option"),function(t){t.selected&&!t.disabled&&(t=t.value,e.push(t in i.selectValueMap?i.selectValueMap[t]:t))}),e},i.writeValue=function(e){o(t.find("option"),function(t){var n=!!e&&(-1!==Array.prototype.indexOf.call(e,t.value)||-1!==Array.prototype.indexOf.call(e,i.selectValueMap[t.value]));n!==t.selected&&Ln(Bn(t),n)})};var s,u=NaN;e.$watch(function(){u!==a.$viewValue||F(s,a.$viewValue)||(s=se(a.$viewValue),a.$render()),u=a.$viewValue}),a.$isEmpty=function(e){return!e||0===e.length}}}else i.registerOption=h},post:function(e,t,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}}},ia=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var r,i;return v(n.ngValue)||(v(n.value)?r=e(n.value,!0):(i=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var o=t.parent();(o=o.data("$selectController")||o.parent().data("$selectController"))&&o.registerOption(e,t,n,r,i)}}}}],oa=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.hasOwnProperty("required")||e(r.ngRequired)(t);r.ngRequired||(r.required=!0),i.$validators.required=function(e,t){return!o||!i.$isEmpty(t)},r.$observe("required",function(e){o!==e&&(o=e,i.$validate())})}}}}],aa=["$parse",function(e){return{restrict:"A",require:"?ngModel",compile:function(t,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&Kn.test(n.ngPattern)?function(){return n.ngPattern}:e(n.ngPattern)),function(e,t,n,o){if(o){var a=n.pattern;n.ngPattern?a=i(e):r=n.pattern;var s=zn(a,r,t);n.$observe("pattern",function(e){var n=s;s=zn(e,r,t),(n&&n.toString())!==(s&&s.toString())&&o.$validate()}),o.$validators.pattern=function(e,t){return o.$isEmpty(t)||g(s)||s.test(t)}}}}}}],sa=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.maxlength||e(r.ngMaxlength)(t),a=Hn(o);r.$observe("maxlength",function(e){o!==e&&(a=Hn(e),o=e,i.$validate())}),i.$validators.maxlength=function(e,t){return 0>a||i.$isEmpty(t)||t.length<=a}}}}}],ua=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.minlength||e(r.ngMinlength)(t),a=Hn(o)||-1;r.$observe("minlength",function(e){o!==e&&(a=Hn(e)||-1,o=e,i.$validate())}),i.$validators.minlength=function(e,t){return i.$isEmpty(t)||t.length>=a}}}}}];e.angular.bootstrap?e.console&&console.log("WARNING: Tried to load AngularJS more than once."):(function(){var t;if(!yr){var n=pr();(Wn=g(n)?e.jQuery:n?e[n]:void 0)&&Wn.fn.on?(Bn=Wn,l(Wn.fn,{scope:Rr.scope,isolateScope:Rr.isolateScope,controller:Rr.controller,injector:Rr.injector,inheritedData:Rr.inheritedData})):Bn=he,t=Bn.cleanData,Bn.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=(Bn._data(r)||{}).events)&&n.$destroy&&Bn(r).triggerHandler("$destroy");t(e)},or.element=Bn,yr=!0}}(),function(n){l(n,{errorHandlingConfig:t,bootstrap:Z,copy:R,extend:l,merge:c,equals:F,element:Bn,forEach:o,injector:je,noop:h,bind:j,toJson:V,fromJson:L,identity:p,isUndefined:g,isDefined:v,isString:w,isFunction:E,isObject:y,isNumber:x,isElement:T,isArray:A,version:wr,isDate:C,callbacks:{$$counter:0},getTestability:Q,reloadWithDebugInfo:J,$$minErr:r,$$csp:hr,$$encodeUriSegment:X,$$encodeUriQuery:K,$$lowercase:Zn,$$stringify:ae,$$uppercase:Jn}),(Gn=function(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=r("$injector"),i=r("ng");return(e=t(e,"angular",Object)).$$minErr=e.$$minErr||r,t(e,"module",function(){var e={};return function(r,o,a){var s={};if("hasOwnProperty"===r)throw i("badname","module");return o&&e.hasOwnProperty(r)&&(e[r]=null),t(e,r,function(){function e(e,t,n,r){return r||(r=u),function(){return r[n||"push"]([e,t,arguments]),d}}function t(e,t,n){return n||(n=u),function(i,o){return o&&E(o)&&(o.$$moduleName=r),n.push([e,t,arguments]),d}}if(!o)throw n("nomod",r);var u=[],l=[],c=[],f=e("$injector","invoke","push",l),d={_invokeQueue:u,_configBlocks:l,_runBlocks:c,info:function(e){if(v(e)){if(!y(e))throw i("aobj","value");return s=e,this}return s},requires:o,name:r,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:t("$provide","decorator",l),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),component:t("$compileProvider","component"),config:f,run:function(e){return c.push(e),this}};return a&&f(a),d})}})}(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:zt}),e.provider("$compile",Be).directive({a:Bi,input:uo,textarea:uo,form:Ki,script:ea,select:ra,option:ia,ngBind:ho,ngBindHtml:mo,ngBindTemplate:po,ngClass:go,ngClassEven:yo,ngClassOdd:vo,ngCloak:bo,ngController:wo,ngForm:Yi,ngHide:Go,ngIf:Ao,ngInclude:So,ngInit:ko,ngNonBindable:jo,ngPluralize:zo,ngRef:qo,ngRepeat:Bo,ngShow:Wo,ngStyle:Xo,ngSwitch:Ko,ngSwitchWhen:Yo,ngSwitchDefault:Zo,ngOptions:Lo,ngTransclude:Qo,ngModel:Io,ngList:_o,ngChange:$o,pattern:aa,ngPattern:aa,required:oa,ngRequired:oa,minlength:ua,ngMinlength:ua,maxlength:sa,ngMaxlength:sa,ngValue:fo,ngModelOptions:Uo}).directive({ngInclude:Eo,input:lo}).directive(Wi).directive(xo),e.provider({$anchorScroll:Ne,$animate:Yr,$animateCss:Qr,$$animateJs:Xr,$$animateQueue:Kr,$$AnimateRunner:Jr,$$animateAsyncRun:Zr,$browser:ze,$cacheFactory:He,$controller:Ye,$document:Ze,$$isDocumentHidden:Je,$exceptionHandler:Qe,$filter:nn,$$forceReflow:ai,$interpolate:ct,$interval:ft,$$intervalFactory:dt,$http:st,$httpParamSerializer:tt,$httpParamSerializerJQLike:nt,$httpBackend:lt,$xhrFactory:ut,$jsonpCallbacks:mi,$location:Ct,$log:At,$parse:Ft,$rootScope:Lt,$q:Ut,$$q:jt,$sce:Bt,$sceDelegate:qt,$sniffer:Wt,$$taskTrackerFactory:Gt,$templateCache:qe,$templateRequest:Xt,$$testability:Kt,$timeout:Yt,$window:Qt,$$rAF:Vt,$$jqLite:Re,$$Map:Vr,$$cookieReader:tn})}]).info({angularVersion:"1.7.9"})}(or),or.module("ngLocale",[],["$provide",function(e){e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var n=0|e,r=t;return void 0===r&&(r=Math.min(function(e){var t=(e+="").indexOf(".");return-1==t?0:e.length-t-1}(e),3)),Math.pow(10,r),1==n&&0==r?"one":"other"}})}]),Bn(function(){Y(e.document,Z)}))}(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>'),function(e,t){"use strict";function n(e,t){var n=[],r=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[?*])?/g,function(e,t,r,i){return e="?"===i||"*?"===i,i="*"===i||"*?"===i,n.push({name:r,optional:e}),t=t||"",(e?"(?:"+t:t+"(?:")+(i?"(.+?)":"([^/]+)")+(e?"?)?":")")}).replace(/([/$*])/g,"\\$1");return t.ignoreTrailingSlashes&&(r=r.replace(/\/+$/,"")+"/*"),{keys:n,regexp:new RegExp("^"+r+"(?:[?#]|$)",t.caseInsensitiveMatch?"i":"")}}function r(e){c&&e.get("$route")}function i(e,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,a,s,u){function l(){h&&(r.cancel(h),h=null),f&&(f.$destroy(),f=null),d&&((h=r.leave(d)).done(function(e){!1!==e&&(h=null)}),d=null)}function c(){var a=e.current&&e.current.locals;if(t.isDefined(a&&a.$template)){a=i.$new();var s=e.current;d=u(a,function(e){r.enter(e,null,d||o).done(function(e){!1===e||!t.isDefined(p)||p&&!i.$eval(p)||n()}),l()}),(f=s.scope=a).$emit("$viewContentLoaded"),f.$eval(m)}else l()}var f,d,h,p=a.autoscroll,m=a.onload||"";i.$on("$routeChangeSuccess",c),c()}}}function o(e,t,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,a=o.locals;i.html(a.$template);var s=e(i.contents());if(o.controller){a.$scope=r;var u=t(o.controller,a);o.controllerAs&&(r[o.controllerAs]=u),i.data("$ngControllerController",u),i.children().data("$ngControllerController",u)}r[o.resolveAs||"$resolve"]=a,s(r)}}}var a,s,u,l,c,f=t.module("ngRoute",[]).info({angularVersion:"1.7.9"}).provider("$route",function(){function e(e,n){return t.extend(Object.create(e),n)}a=t.isArray,s=t.isObject,u=t.isDefined,l=t.noop;var r={};this.when=function(e,i){var o;if(o=void 0,a(i)){o=o||[];for(var u=0,l=i.length;u<l;u++)o[u]=i[u]}else if(s(i))for(u in o=o||{},i)"$"===u.charAt(0)&&"$"===u.charAt(1)||(o[u]=i[u]);return o=o||i,t.isUndefined(o.reloadOnUrl)&&(o.reloadOnUrl=!0),t.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),t.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),r[e]=t.extend(o,{originalPath:e},e&&n(e,o)),e&&(u="/"===e[e.length-1]?e.substr(0,e.length-1):e+"/",r[u]=t.extend({originalPath:e,redirectTo:e},n(u,o))),this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeof e&&(e={redirectTo:e}),this.when(null,e),this},c=!0,this.eagerInstantiationEnabled=function(e){return u(e)?(c=e,this):c},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce","$browser",function(n,i,o,a,s,u,c,f){function h(o){var a=x.current;y=function(){var n,o;return t.forEach(r,function(r,a){var s;if(s=!o){var u=i.path();s=r.keys;var l={};if(r.regexp)if(u=r.regexp.exec(u)){for(var c=1,f=u.length;c<f;++c){var d=s[c-1],h=u[c];d&&h&&(l[d.name]=h)}s=l}else s=null;else s=null;s=n=s}s&&((o=e(r,{params:t.extend({},i.search(),n),pathParams:n})).$$route=r)}),o||r.null&&e(r.null,{params:{},pathParams:{}})}(),(b=!w&&y&&a&&y.$$route===a.$$route&&(!y.reloadOnUrl||!y.reloadOnSearch&&t.equals(y.pathParams,a.pathParams)))||!a&&!y||n.$broadcast("$routeChangeStart",y,a).defaultPrevented&&o&&o.preventDefault()}function p(){var e=x.current,r=y;if(b)e.params=r.params,t.copy(e.params,o),n.$broadcast("$routeUpdate",e);else if(r||e){w=!1,x.current=r;var i=a.resolve(r);f.$$incOutstandingRequestCount("$route"),i.then(m).then($).then(function(a){return a&&i.then(g).then(function(i){r===x.current&&(r&&(r.locals=i,t.copy(r.params,o)),n.$broadcast("$routeChangeSuccess",r,e))})}).catch(function(t){r===x.current&&n.$broadcast("$routeChangeError",r,e,t)}).finally(function(){f.$$completeOutstandingRequest(l,"$route")})}}function m(e){var n={route:e,hasRedirection:!1};if(e)if(e.redirectTo)if(t.isString(e.redirectTo))n.path=v(e.redirectTo,e.params),n.search=e.params,n.hasRedirection=!0;else{var r=i.path(),o=i.search();e=e.redirectTo(e.pathParams,r,o),t.isDefined(e)&&(n.url=e,n.hasRedirection=!0)}else if(e.resolveRedirectTo)return a.resolve(s.invoke(e.resolveRedirectTo)).then(function(e){return t.isDefined(e)&&(n.url=e,n.hasRedirection=!0),n});return n}function $(e){var t=!0;if(e.route!==x.current)t=!1;else if(e.hasRedirection){var n=i.url(),r=e.url;r?i.url(r).replace():r=i.path(e.path).search(e.search).replace().url(),r!==n&&(t=!1)}return t}function g(e){if(e){var n=t.extend({},e.resolve);return t.forEach(n,function(e,r){n[r]=t.isString(e)?s.get(e):s.invoke(e,null,null,r)}),e=function(e){var n,r;return t.isDefined(n=e.template)?t.isFunction(n)&&(n=n(e.params)):t.isDefined(r=e.templateUrl)&&(t.isFunction(r)&&(r=r(e.params)),t.isDefined(r)&&(e.loadedTemplateUrl=c.valueOf(r),n=u(r))),n}(e),t.isDefined(e)&&(n.$template=e),a.all(n)}}function v(e,n){var r=[];return t.forEach((e||"").split(":"),function(e,t){if(0===t)r.push(e);else{var i=e.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}}),r.join("")}var y,b,w=!1,x={routes:r,reload:function(){w=!0;var e={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,w=!1}};n.$evalAsync(function(){h(e),e.defaultPrevented||p()})},updateParams:function(e){if(!this.current||!this.current.$$route)throw d("norout");e=t.extend({},this.current.params,e),i.path(v(this.current.$$route.originalPath,e)),i.search(e)}};return n.$on("$locationChangeStart",h),n.$on("$locationChangeSuccess",p),x}]}).run(r),d=t.$$minErr("ngRoute");r.$inject=["$injector"],f.provider("$routeParams",function(){this.$get=function(){return{}}}),f.directive("ngView",i),f.directive("ngView",o),i.$inject=["$route","$anchorScroll","$animate"],o.$inject=["$compile","$controller","$route"]}(window,window.angular),function(e,t){"use strict";function n(e,t,n){if(!e)throw L("areq",t||"?",n||"required");return e}function r(e,t){return e||t?e?t?(_(e)&&(e=e.join(" ")),_(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function i(e,t,n){var r="";return e=_(e)?e:e&&P(e)&&e.length?e.split(/\s+/):[],k(e,function(e,i){e&&0<e.length&&(r+=0<i?" ":"",r+=n?t+e:e+t)}),r}function o(e){if(e instanceof I)switch(e.length){case 0:return e;case 1:if(1===e[0].nodeType)return e;break;default:return I(a(e))}if(1===e.nodeType)return I(e)}function a(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(1===n.nodeType)return n}}function s(e){return function(t,n){n.addClass&&(function(e,t,n){k(t,function(t){e.addClass(t,n)})}(e,t,n.addClass),n.addClass=null),n.removeClass&&(function(e,t,n){k(t,function(t){e.removeClass(t,n)})}(e,t,n.removeClass),n.removeClass=null)}}function u(e){if(!(e=e||{}).$$prepared){var t=e.domOperation||F;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=F},e.$$prepared=!0}return e}function l(e,t){c(e,t),f(e,t)}function c(e,t){t.from&&(e.css(t.from),t.from=null)}function f(e,t){t.to&&(e.css(t.to),t.to=null)}function d(e,t,n){var r=t.options||{};n=n.options||{};var i=(r.addClass||"")+" "+(n.addClass||""),o=(r.removeClass||"")+" "+(n.removeClass||"");return e=function(e,t,n){function r(e){P(e)&&(e=e.split(" "));var t={};return k(e,function(e){e.length&&(t[e]=!0)}),t}var i={};e=r(e),t=r(t),k(t,function(e,t){i[t]=1}),n=r(n),k(n,function(e,t){i[t]=1===i[t]?null:-1});var o={addClass:"",removeClass:""};return k(i,function(t,n){var r,i;1===t?(r="addClass",i=!e[n]||e[n+"-remove"]):-1===t&&(r="removeClass",i=e[n]||e[n+"-add"]),i&&(o[r].length&&(o[r]+=" "),o[r]+=n)}),o}(e.attr("class"),i,o),n.preparationClasses&&(r.preparationClasses=$(n.preparationClasses,r.preparationClasses),delete n.preparationClasses),i=r.domOperation!==F?r.domOperation:null,E(r,n),i&&(r.domOperation=i),r.addClass=e.addClass?e.addClass:null,r.removeClass=e.removeClass?e.removeClass:null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function h(e){return e instanceof I?e[0]:e}function p(e,t){var n=t?"paused":"",r=C+"PlayState";return m(e,[r,n]),[r,n]}function m(e,t){e.style[t[0]]=t[1]}function $(e,t){return e?t?e+" "+t:e:t}function g(e,t,n){var r=Object.create(null),i=e.getComputedStyle(t)||{};return k(n,function(e,t){var n=i[e];if(n){var o=n.charAt(0);("-"===o||"+"===o||0<=o)&&(n=function(e){var t=0;return e=e.split(/\s*,\s*/),k(e,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}(n)),0===n&&(n=null),r[t]=n}}),r}function v(e){return 0===e||null!=e}function y(e,t){var n=w,r=e+"s";return t?n+="Duration":r+=" linear all",[n,r]}function b(e,t,n){k(n,function(n){e[n]=O(e[n])?e[n]:t.style.getPropertyValue(n)})}var w,x,C,A;void 0===e.ontransitionend&&void 0!==e.onwebkittransitionend?(w="WebkitTransition",x="webkitTransitionEnd transitionend"):(w="transition",x="transitionend"),void 0===e.onanimationend&&void 0!==e.onwebkitanimationend?(C="WebkitAnimation",A="webkitAnimationEnd animationend"):(C="animation",A="animationend");var S,E,k,_,O,M,T,D,P,R,I,F,U=C+"Delay",j=C+"Duration",N=w+"Delay",V=w+"Duration",L=t.$$minErr("ng"),z={blockTransitions:function(e,t){var n=t?"-"+t+"s":"";return m(e,[N,n]),[N,n]}},H={transitionDuration:V,transitionDelay:N,transitionProperty:w+"Property",animationDuration:j,animationDelay:U,animationIterationCount:C+"IterationCount"},q={transitionDuration:V,transitionDelay:N,animationDuration:j,animationDelay:U};t.module("ngAnimate",[],function(){F=t.noop,S=t.copy,E=t.extend,I=t.element,k=t.forEach,_=t.isArray,P=t.isString,D=t.isObject,R=t.isUndefined,O=t.isDefined,T=t.isFunction,M=t.isElement}).info({angularVersion:"1.7.9"}).directive("ngAnimateSwap",["$animate",function(e){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link:function(t,n,r,i,o){var a,s;t.$watchCollection(r.ngAnimateSwap||r.for,function(t){a&&e.leave(a),s&&(s.$destroy(),s=null),(t||0===t)&&o(function(t,r){a=t,s=r,e.enter(t,null,n)})})}}}]).directive("ngAnimateChildren",["$interpolate",function(e){return{link:function(t,n,r){function i(e){n.data("$$ngAnimateChildren","on"===e||"true"===e)}var o=r.ngAnimateChildren;P(o)&&0===o.length?n.data("$$ngAnimateChildren",!0):(i(e(o)(t)),r.$observe("ngAnimateChildren",i))}}}]).factory("$$rAFScheduler",["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),o=0;o<t.length;o++)t[o]();i||e(function(){i||n()})}}var r,i;return r=t.queue=[],t.waitUntilQuiet=function(t){i&&i(),i=e(function(){i=null,t(),n()})},t}]).provider("$$animateQueue",["$animateProvider",function(t){function r(e){return{addClass:e.addClass,removeClass:e.removeClass,from:e.from,to:e.to}}function c(e,t){if(e&&t){var n=function(e){if(!e)return null;e=e.split(" ");var t=Object.create(null);return k(e,function(e){t[e]=!0}),t}(t);return e.split(" ").some(function(e){return n[e]})}}function f(e,t,n){return m[e].some(function(e){return e(t,n)})}function p(e,t){var n=0<(e.addClass||"").length,r=0<(e.removeClass||"").length;return t?n&&r:n||r}var m=this.rules={skip:[],cancel:[],join:[]};m.join.push(function(e,t){return!e.structural&&p(e)}),m.skip.push(function(e,t){return!e.structural&&!p(e)}),m.skip.push(function(e,t){return"leave"===t.event&&e.structural}),m.skip.push(function(e,t){return t.structural&&2===t.state&&!e.structural}),m.cancel.push(function(e,t){return t.structural&&e.structural}),m.cancel.push(function(e,t){return 2===t.state&&e.structural}),m.cancel.push(function(e,t){if(t.structural)return!1;var n=e.addClass,r=e.removeClass,i=t.addClass,o=t.removeClass;return!(R(n)&&R(r)||R(i)&&R(o))&&(c(n,o)||c(r,i))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(c,m,g,v,y,b,w,x,C,A,T){function F(e){q.delete(e.target)}function U(e,t,n){var r=[],i=G[n];return i&&k(i,function(i){J.call(i.node,t)?r.push(i.callback):"leave"===n&&J.call(i.node,e)&&r.push(i.callback)}),r}function j(e,t,n){var r=a(t);return e.filter(function(e){return!(e.node===r&&(!n||e.callback===n))})}function N(e,t,n){function a(e,t,n,r){E(function(){var e=U(x,y,t);e.length?c(function(){k(e,function(e){e(v,n,r)}),"close"!==n||y.parentNode||Q.off(y)}):"close"!==n||y.parentNode||Q.off(y)}),e.progress(t,n,r)}function s(e){var t=v,n=g;n.preparationClasses&&(t.removeClass(n.preparationClasses),n.preparationClasses=null),n.activeClasses&&(t.removeClass(n.activeClasses),n.activeClasses=null),Z(v,g),l(v,g),g.domOperation(),A.complete(!e)}var g=S(n),v=o(e),y=h(v),x=y&&y.parentNode,A=(g=u(g),new w),E=function(){var e=!1;return function(t){e?t():m.$$postDigest(function(){e=!0,t()})}}();if(_(g.addClass)&&(g.addClass=g.addClass.join(" ")),g.addClass&&!P(g.addClass)&&(g.addClass=null),_(g.removeClass)&&(g.removeClass=g.removeClass.join(" ")),g.removeClass&&!P(g.removeClass)&&(g.removeClass=null),g.from&&!D(g.from)&&(g.from=null),g.to&&!D(g.to)&&(g.to=null),!(B&&y&&K(y,t,n)&&Y(y,g)))return s(),A;var O=0<=["enter","move","leave"].indexOf(t),M=T(),R=M||q.get(y),I=!!(n=!R&&H.get(y)||{}).state;if(R||I&&1===n.state||(R=!L(y,x,t)),R)return M&&a(A,t,"start",r(g)),s(),M&&a(A,t,"close",r(g)),A;if(O&&function(e){e=e.querySelectorAll("[data-ng-animate]"),k(e,function(e){var t=parseInt(e.getAttribute("data-ng-animate"),10),n=H.get(e);if(n)switch(t){case 2:n.runner.end();case 1:H.delete(e)}})}(y),M={structural:O,element:v,event:t,addClass:g.addClass,removeClass:g.removeClass,close:s,options:g,runner:A},I){if(f("skip",M,n))return 2===n.state?(s(),A):(d(v,n,M),n.runner);if(f("cancel",M,n))if(2===n.state)n.runner.end();else{if(!n.structural)return d(v,n,M),n.runner;n.close()}else if(f("join",M,n)){if(2!==n.state)return function(e,t,n,r){e="",n&&(e=i(n,"ng-",!0)),r.addClass&&(e=$(e,i(r.addClass,"-add"))),r.removeClass&&(e=$(e,i(r.removeClass,"-remove"))),e.length&&(r.preparationClasses=e,t.addClass(e))}(C,v,O?t:null,g),t=M.event=n.event,g=d(v,n,M),n.runner;d(v,M,{})}}else d(v,M,{});if((I=M.structural)||(I="animate"===M.event&&0<Object.keys(M.options.to||{}).length||p(M)),!I)return s(),V(y),A;var F=(n.counter||0)+1;return M.counter=F,z(y,1,M),m.$$postDigest(function(){v=o(e);var n=!(i=H.get(y)),i=i||{},u=0<(v.parent()||[]).length&&("animate"===i.event||i.structural||p(i));n||i.counter!==F||!u?(n&&(Z(v,g),l(v,g)),(n||O&&i.event!==t)&&(g.domOperation(),A.end()),u||V(y)):(t=!i.structural&&p(i,!0)?"setClass":i.event,z(y,2),i=b(v,t,i.options),A.setHost(i),a(A,t,"start",r(g)),i.done(function(e){s(!e),(e=H.get(y))&&e.counter===F&&V(y),a(A,t,"close",r(g))}))}),A}function V(e){e.removeAttribute("data-ng-animate"),H.delete(e)}function L(e,t,n){n=v[0].body;var r,i=h(g),o=e===n||"HTML"===e.nodeName,a=e===i,s=!1,u=q.get(e);for((e=I.data(e,"$ngAnimatePin"))&&(t=h(e));t&&(a||(a=t===i),1===t.nodeType);){if(e=H.get(t)||{},!s){var l=q.get(t);if(!0===l&&!1!==u){u=!0;break}!1===l&&(u=!1),s=e.structural}if((R(r)||!0===r)&&(e=I.data(t,"$$ngAnimateChildren"),O(e)&&(r=e)),s&&!1===r)break;if(o||(o=t===n),o&&a)break;t=a||!(e=I.data(t,"$ngAnimatePin"))?t.parentNode:h(e)}return(!s||r)&&!0!==u&&a&&o}function z(e,t,n){(n=n||{}).state=t,e.setAttribute("data-ng-animate",t),n=(t=H.get(e))?E(t,n):n,H.set(e,n)}var H=new y,q=new y,B=null,W=m.$watch(function(){return 0===x.totalPendingRequests},function(e){e&&(W(),m.$$postDigest(function(){m.$$postDigest(function(){null===B&&(B=!0)})}))}),G=Object.create(null);y=t.customFilter();var X=t.classNameFilter();A=function(){return!0};var K=y||A,Y=X?function(e,t){var n=[e.getAttribute("class"),t.addClass,t.removeClass].join(" ");return X.test(n)}:A,Z=s(C),J=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},Q={on:function(e,t,n){var r=a(t);G[e]=G[e]||[],G[e].push({node:r,callback:n}),I(t).on("$destroy",function(){H.get(r)||Q.off(e,t,n)})},off:function(e,t,n){if(1!==arguments.length||P(arguments[0])){var r=G[e];r&&(G[e]=1===arguments.length?null:j(r,t,n))}else for(r in t=arguments[0],G)G[r]=j(G[r],t)},pin:function(e,t){n(M(e),"element","not an element"),n(M(t),"parentElement","not an element"),e.data("$ngAnimatePin",t)},push:function(e,t,n,r){return(n=n||{}).domOperation=r,N(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!B;else if(M(e)){var r=h(e);1===n?t=!q.get(r):(q.has(r)||I(e).on("$destroy",F),q.set(r,!t))}else t=B=!!e;return t}};return Q}]}]).provider("$$animateCache",function(){var e=0,t=Object.create(null);this.$get=[function(){return{cacheKey:function(t,n,r,i){var o=t.parentNode;return t=[o.$$ngAnimateParentKey||(o.$$ngAnimateParentKey=++e),n,t.getAttribute("class")],r&&t.push(r),i&&t.push(i),t.join(" ")},containsCachedAnimationWithoutDuration:function(e){return(e=t[e])&&!e.isValid||!1},flush:function(){t=Object.create(null)},count:function(e){return(e=t[e])?e.total:0},get:function(e){return(e=t[e])&&e.value},put:function(e,n,r){t[e]?(t[e].total++,t[e].value=n):t[e]={total:1,value:n,isValid:r}}}}]}).provider("$$animation",["$animateProvider",function(e){var t=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler","$$animateCache",function(e,n,i,o,a,c,f){function d(e){function t(e){if(e.processed)return e;e.processed=!0;var n,o=e.domNode,a=o.parentNode;for(i.set(o,e);a;){if(n=i.get(a)){n.processed||(n=t(n));break}a=a.parentNode}return(n||r).children.push(e),e}var n,r={children:[]},i=new a;for(n=0;n<e.length;n++){var o=e[n];i.set(o.domNode,e[n]={domNode:o.domNode,element:o.element,fn:o.fn,children:[]})}for(n=0;n<e.length;n++)t(e[n]);return function(e){var t,n=[],r=[];for(t=0;t<e.children.length;t++)r.push(e.children[t]);e=r.length;var i=0,o=[];for(t=0;t<r.length;t++){var a=r[t];0>=e&&(e=i,i=0,n.push(o),o=[]),o.push(a),a.children.forEach(function(e){i++,r.push(e)}),e--}return o.length&&n.push(o),n}(r)}var p=[],m=s(e);return function(a,s,$){function g(e){var t=[],n={};k(e,function(e,r){var i=h(e.element),o=0<=["enter","move"].indexOf(e.event);if((i=e.structural?function(e){e=e.hasAttribute("ng-animate-ref")?[e]:e.querySelectorAll("[ng-animate-ref]");var t=[];return k(e,function(e){var n=e.getAttribute("ng-animate-ref");n&&n.length&&t.push(e)}),t}(i):[]).length){var a=o?"to":"from";k(i,function(e){var t=e.getAttribute("ng-animate-ref");n[t]=n[t]||{},n[t][a]={animationID:r,element:I(e)}})}else t.push(e)});var r={},i={};return k(n,function(n,o){var a=n.from,s=n.to;if(a&&s){var u=e[a.animationID],l=e[s.animationID],c=a.animationID.toString();if(!i[c]){var f=i[c]={structural:!0,beforeStart:function(){u.beforeStart(),l.beforeStart()},close:function(){u.close(),l.close()},classes:function(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r<e.length;r++){var i=e[r];if("ng-"!==i.substring(0,3))for(var o=0;o<t.length;o++)if(i===t[o]){n.push(i);break}}return n.join(" ")}(u.classes,l.classes),from:u,to:l,anchors:[]};f.classes.length?t.push(f):(t.push(u),t.push(l))}i[c].anchors.push({out:a.element,in:s.element})}else s=(a=a?a.animationID:s.animationID).toString(),r[s]||(r[s]=!0,t.push(e[a]))}),t}function v(e){for(var n=t.length-1;0<=n;n--){var r=i.get(t[n])(e);if(r)return r}}function y(){var e=a.data("$$animationRunner");!e||"leave"===s&&$.$$domOperationFired||e.end()}function b(t){a.off("$destroy",y),a.removeData("$$animationRunner"),m(a,$),l(a,$),$.domOperation(),A&&e.removeClass(a,A),x.complete(!t)}$=u($);var w=0<=["enter","move","leave"].indexOf(s),x=new o({end:function(){b()},cancel:function(){b(!0)}});if(!t.length)return b(),x;var C=r(a.attr("class"),r($.addClass,$.removeClass)),A=$.tempClasses;return A&&(C+=" "+A,$.tempClasses=null),w&&a.data("$$animatePrepareClasses","ng-"+s+"-prepare"),a.data("$$animationRunner",x),p.push({element:a,classes:C,event:s,structural:w,options:$,beforeStart:function(){A=(A?A+" ":"")+"ng-animate",e.addClass(a,A);var t=a.data("$$animatePrepareClasses");t&&e.removeClass(a,t)},close:b}),a.on("$destroy",y),1<p.length?x:(n.$$postDigest(function(){var t=[];k(p,function(e){e.element.data("$$animationRunner")?t.push(e):e.close()}),p.length=0;var n=g(t),r=[];k(n,function(e){var t=e.from?e.from.element:e.element,n=$.addClass,i=f.cacheKey(t[0],e.event,(n?n+" ":"")+"ng-animate",$.removeClass);r.push({element:t,domNode:h(t),fn:function(){var t,n=e.close;if(f.containsCachedAnimationWithoutDuration(i))n();else{if(e.beforeStart(),(e.anchors?e.from.element||e.to.element:e.element).data("$$animationRunner")){var r=v(e);r&&(t=r.start)}t?((t=t()).done(function(e){n(!e)}),function(e,t){function n(e){(e=e.data("$$animationRunner"))&&e.setHost(t)}e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element)}(e,t)):n()}}})});n=d(r);for(var i=0;i<n.length;i++)for(var o=n[i],a=0;a<o.length;a++){var s=o[a],u=s.element;n[i][a]=s.fn,0===i?u.removeData("$$animatePrepareClasses"):(s=u.data("$$animatePrepareClasses"))&&e.addClass(u,s)}c(n)}),x)}}]}]).provider("$animateCss",["$animateProvider",function(e){this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$animateCache","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,t,n,r,o,a,d,$,E){function O(n,r,a,s){var u,l="stagger-"+a;return 0<o.count(a)&&((u=o.get(l))||(r=i(r,"-stagger"),t.addClass(n,r),(u=g(e,n,s)).animationDuration=Math.max(u.animationDuration,0),u.transitionDuration=Math.max(u.transitionDuration,0),t.removeClass(n,r),o.put(l,u,!0))),u||{}}function M(e){P.push(e),$.waitUntilQuiet(function(){o.flush();for(var e=a(),t=0;t<P.length;t++)P[t](e);P.length=0})}function T(t,n,r,i){return(n=o.get(r))||"infinite"===(n=g(e,t,H)).animationIterationCount&&(n.animationIterationCount=1),o.put(r,n,i||0<n.transitionDuration||0<n.animationDuration),r=(t=n).animationDelay,i=t.transitionDelay,t.maxDelay=r&&i?Math.max(r,i):r||i,t.maxDuration=Math.max(t.animationDuration*t.animationIterationCount,t.transitionDuration),t}var D=s(t),P=[];return function(e,a){function s(){g()}function $(){g(!0)}function g(n){if(!(W||X&&G)){W=!0,G=!1,ce&&!L.$$skipPreparationClasses&&t.removeClass(e,ce),ye&&t.removeClass(e,ye),p(B,!1),z.blockTransitions(B,!1),k(ne,function(e){B.style[e[0]]=""}),D(e,L),l(e,L),Object.keys(H).length&&k(H,function(e,t){e?B.style.setProperty(t,e):B.style.removeProperty(t)}),L.onDone&&L.onDone(),oe&&oe.length&&e.off(oe.join(" "),I);var i=e.data("$$animateCss");i&&(r.cancel(i[0].timer),e.removeData("$$animateCss")),K&&K.complete(!n)}}function P(e){ge.blockTransition&&z.blockTransitions(B,e),ge.blockKeyframeAnimation&&p(B,!!e)}function R(){return K=new n({end:s,cancel:$}),M(F),g(),{$$willAnimate:!1,start:function(){return K},end:s}}function I(e){e.stopPropagation();var t=e.originalEvent||e;t.target===B&&(e=t.$manualTimeStamp||Date.now(),t=parseFloat(t.elapsedTime.toFixed(3)),Math.max(e-te,0)>=J&&t>=Q&&(X=!0,g()))}function V(){function n(){if(!W){if(P(!1),k(ne,function(e){B.style[e[0]]=e[1]}),D(e,L),t.addClass(e,ye),ge.recalculateTimingStyles){if(fe=B.getAttribute("class")+" "+ce,he=o.cacheKey(B,ae,L.addClass,L.removeClass),me=T(B,fe,he,!1),$e=me.maxDelay,Z=Math.max($e,0),0===(Q=me.maxDuration))return void g();ge.hasTransitions=0<me.transitionDuration,ge.hasAnimations=0<me.animationDuration}if(ge.applyAnimationDelay&&($e="boolean"!=typeof L.delay&&v(L.delay)?parseFloat(L.delay):$e,Z=Math.max($e,0),me.animationDelay=$e,ve=[U,$e+"s"],ne.push(ve),B.style[ve[0]]=ve[1]),J=1e3*Z,ee=1e3*Q,L.easing){var n,a=L.easing;ge.hasTransitions&&(n=w+"TimingFunction",ne.push([n,a]),B.style[n]=a),ge.hasAnimations&&(n=C+"TimingFunction",ne.push([n,a]),B.style[n]=a)}me.transitionDuration&&oe.push(x),me.animationDuration&&oe.push(A),te=Date.now();var s=J+1.5*ee;n=te+s;var u=!0;if((a=e.data("$$animateCss")||[]).length){var l=a[0];(u=n>l.expectedEndTime)?r.cancel(l.timer):a.push(g)}u&&(s=r(i,s,!1),a[0]={timer:s,expectedEndTime:n},a.push(g),e.data("$$animateCss",a)),oe.length&&e.on(oe.join(" "),I),L.to&&(L.cleanupStyles&&b(H,B,Object.keys(L.to)),f(e,L))}}function i(){var t=e.data("$$animateCss");if(t){for(var n=1;n<t.length;n++)t[n]();e.removeData("$$animateCss")}}if(!W)if(B.parentNode){var a=function(e){if(X)G&&e&&(G=!1,g());else if(G=!e,me.animationDuration)if(e=p(B,G),G)ne.push(e);else{var t=ne,n=t.indexOf(e);0<=e&&t.splice(n,1)}},s=0<pe&&(me.transitionDuration&&0===de.transitionDuration||me.animationDuration&&0===de.animationDuration)&&Math.max(de.animationDelay,de.transitionDelay);s?r(n,Math.floor(s*pe*1e3),!1):n(),Y.resume=function(){a(!0)},Y.pause=function(){a(!1)}}else g()}var L=a||{};L.$$prepared||(L=u(S(L)));var H={},B=h(e);if(!B||!B.parentNode||!E.enabled())return R();var W,G,X,K,Y,Z,J,Q,ee,te,ne=[],re=e.attr("class"),ie=function(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}(L),oe=[];if(0===L.duration||!d.animations&&!d.transitions)return R();var ae=L.event&&_(L.event)?L.event.join(" "):L.event,se=ae&&L.structural,ue="",le="";se?ue=i(ae,"ng-",!0):ae&&(ue=ae),L.addClass&&(le+=i(L.addClass,"-add")),L.removeClass&&(le.length&&(le+=" "),le+=i(L.removeClass,"-remove")),L.applyClassesEarly&&le.length&&D(e,L);var ce=[ue,le].join(" ").trim(),fe=re+" "+ce;re=ie.to&&0<Object.keys(ie.to).length;if(!(0<(L.keyframeStyle||"").length||re||ce))return R();var de,he=o.cacheKey(B,ae,L.addClass,L.removeClass);if(o.containsCachedAnimationWithoutDuration(he))return ce=null,R();0<L.stagger?(ie=parseFloat(L.stagger),de={transitionDelay:ie,animationDelay:ie,transitionDuration:0,animationDuration:0}):de=O(B,ce,he,q),L.$$skipPreparationClasses||t.addClass(e,ce),L.transitionStyle&&(ie=[w,L.transitionStyle],m(B,ie),ne.push(ie)),0<=L.duration&&(ie=0<B.style[w].length,ie=y(L.duration,ie),m(B,ie),ne.push(ie)),L.keyframeStyle&&(ie=[C,L.keyframeStyle],m(B,ie),ne.push(ie));var pe=de?0<=L.staggerIndex?L.staggerIndex:o.count(he):0;(ue=0===pe)&&!L.skipBlocking&&z.blockTransitions(B,9999);var me=T(B,fe,he,!se),$e=me.maxDelay;Z=Math.max($e,0),Q=me.maxDuration;var ge={};if(ge.hasTransitions=0<me.transitionDuration,ge.hasAnimations=0<me.animationDuration,ge.hasTransitionAll=ge.hasTransitions&&"all"===me.transitionProperty,ge.applyTransitionDuration=re&&(ge.hasTransitions&&!ge.hasTransitionAll||ge.hasAnimations&&!ge.hasTransitions),ge.applyAnimationDuration=L.duration&&ge.hasAnimations,ge.applyTransitionDelay=v(L.delay)&&(ge.applyTransitionDuration||ge.hasTransitions),ge.applyAnimationDelay=v(L.delay)&&ge.hasAnimations,ge.recalculateTimingStyles=0<le.length,(ge.applyTransitionDuration||ge.applyAnimationDuration)&&(Q=L.duration?parseFloat(L.duration):Q,ge.applyTransitionDuration&&(ge.hasTransitions=!0,me.transitionDuration=Q,ie=0<B.style[w+"Property"].length,ne.push(y(Q,ie))),ge.applyAnimationDuration&&(ge.hasAnimations=!0,me.animationDuration=Q,ne.push([j,Q+"s"]))),0===Q&&!ge.recalculateTimingStyles)return R();var ve,ye=i(ce,"-active");null!=L.delay&&("boolean"!=typeof L.delay&&(ve=parseFloat(L.delay),Z=Math.max(ve,0)),ge.applyTransitionDelay&&ne.push([N,ve+"s"]),ge.applyAnimationDelay&&ne.push([U,ve+"s"]));return null==L.duration&&0<me.transitionDuration&&(ge.recalculateTimingStyles=ge.recalculateTimingStyles||ue),J=1e3*Z,ee=1e3*Q,L.skipBlocking||(ge.blockTransition=0<me.transitionDuration,ge.blockKeyframeAnimation=0<me.animationDuration&&0<de.animationDelay&&0===de.animationDuration),L.from&&(L.cleanupStyles&&b(H,B,Object.keys(L.from)),c(e,L)),ge.blockTransition||ge.blockKeyframeAnimation?P(Q):L.skipBlocking||z.blockTransitions(B,!1),{$$willAnimate:!0,end:s,start:function(){if(!W)return K=new n(Y={end:s,cancel:$,resume:null,pause:null}),M(V),K}}}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(e){e.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,t,n,r,i,o,a){function s(e){return e.replace(/\bng-\S+\b/g,"")}function u(e,t){return P(e)&&(e=e.split(" ")),P(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function l(t,r,i){function o(e){var t={},n=h(e).getBoundingClientRect();return k(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=f.scrollTop;break;case"left":r+=f.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function a(){var t=u(n=s(i.attr("class")||""),m),n=u(m,n);return(t=e(p,{to:o(i),addClass:"ng-anchor-in "+t,removeClass:"ng-anchor-out "+n,delay:!0})).$$willAnimate?t:null}function l(){p.remove(),r.removeClass("ng-animate-shim"),i.removeClass("ng-animate-shim")}var c,p=I(h(r).cloneNode(!0)),m=s(p.attr("class")||"");if(r.addClass("ng-animate-shim"),i.addClass("ng-animate-shim"),p.addClass("ng-anchor"),d.append(p),!(t=function(){var t=e(p,{addClass:"ng-anchor-out",delay:!0,from:o(r)});return t.$$willAnimate?t:null}())&&!(c=a()))return l();var $=t||c;return{start:function(){function e(){r&&r.end()}var t,r=$.start();return r.done(function(){if(r=null,!c&&(c=a()))return(r=c.start()).done(function(){r=null,l(),t.complete()}),r;l(),t.complete()}),t=new n({end:e,cancel:e})}}}function c(t){var n=t.element,r=t.options||{};return t.structural&&(r.event=t.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===t.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=$(r.event,r.preparationClasses)),(t=e(n,r)).$$willAnimate?t:null}if(!i.animations&&!i.transitions)return F;var f=a[0].body;t=h(r);var d=I(t.parentNode&&11===t.parentNode.nodeType||f.contains(t)?t:f);return function(e){return e.from&&e.to?function(e,t,r,i){var o=c(e),a=c(t),s=[];if(k(i,function(e){(e=l(r,e.out,e.in))&&s.push(e)}),o||a||0!==s.length)return{start:function(){function e(){k(t,function(e){e.end()})}var t=[];o&&t.push(o.start()),a&&t.push(a.start()),k(s,function(e){t.push(e.start())});var r=new n({end:e,cancel:e});return n.all(t,function(e){r.complete(e)}),r}}}(e.from,e.to,e.classes,e.anchors):c(e)}}]}]).provider("$$animateJs",["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function i(n){n=_(n)?n:n.split(" ");for(var r=[],i={},o=0;o<n.length;o++){var a=n[o],s=e.$$registeredAnimations[a];s&&!i[a]&&(r.push(t.get(s)),i[a]=!0)}return r}var o=s(r);return function(e,t,r,a){function s(){a.domOperation(),o(e,a)}function c(e,t,r,i,o){var a=[];return k(i,function(i){var s=i[o];s&&a.push(function(){var i,o,a=!1,u=function(e){a||(a=!0,(o||F)(e),i.complete(!e))};return i=new n({end:function(){u()},cancel:function(){u(!0)}}),o=function(e,t,r,i,o){switch(r){case"animate":t=[t,i.from,i.to,o];break;case"setClass":t=[t,v,y,o];break;case"addClass":t=[t,v,o];break;case"removeClass":t=[t,y,o];break;default:t=[t,o]}if(t.push(i),e=e.apply(e,t))if(T(e.start)&&(e=e.start()),e instanceof n)e.done(o);else if(T(e))return e;return F}(s,e,t,r,function(e){u(!1===e)}),i})}),a}function f(e,t,r,i,o){var a,s,u=c(e,t,r,i,o);0===u.length&&("beforeSetClass"===o?(a=c(e,"removeClass",r,i,"beforeRemoveClass"),s=c(e,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(a=c(e,"removeClass",r,i,"removeClass"),s=c(e,"addClass",r,i,"addClass")),a&&(u=u.concat(a)),s&&(u=u.concat(s)));if(0!==u.length)return function(e){var t=[];return u.length&&k(u,function(e){t.push(e())}),t.length?n.all(t,e):e(),function(e){k(t,function(t){e?t.cancel():t.end()})}}}var d=!1;3===arguments.length&&D(r)&&(a=r,r=null),a=u(a),r||(r=e.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var h,p,m,$,g,v=a.addClass,y=a.removeClass,b=i(r);b.length&&("leave"===t?($="leave",m="afterLeave"):($="before"+t.charAt(0).toUpperCase()+t.substr(1),m=t),"enter"!==t&&"move"!==t&&(h=f(e,t,a,b,$)),p=f(e,t,a,b,m));if(h||p)return{$$willAnimate:!0,end:function(){return g?g.end():(d=!0,s(),l(e,a),(g=new n).complete(!0)),g},start:function(){function t(t){d=!0,s(),l(e,a),g.complete(t)}if(g)return g;g=new n;var r,i=[];return h&&i.push(function(e){r=h(e)}),i.length?i.push(function(e){s(),e(!0)}):s(),p&&i.push(function(e){r=p(e)}),g.setHost({end:function(){d||((r||F)(void 0),t(void 0))},cancel:function(){d||((r||F)(!0),t(!0))}}),n.chain(i,t),g}}}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){return e(t.element,t.event,t.classes,t.options)}return function(e){if(!e.from||!e.to)return n(e);var r=n(e.from),i=n(e.to);return r||i?{start:function(){function e(){return function(){k(n,function(e){e.end()})}}var n=[];r&&n.push(r.start()),i&&n.push(i.start()),t.all(n,function(e){o.complete(e)});var o=new t({end:e(),cancel:e()});return o}}:void 0}}]}])}(window,window.angular),function(e,t){"use strict";var n,r,i,o,a,s,u,l,c,f,d=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",function(){function h(e,t){return p(e.split(","),t)}function p(e,t){var n,r={};for(n=0;n<e.length;n++)r[t?s(e[n]):e[n]]=!0;return r}function m(e,t){t&&t.length&&r(e,p(t))}function $(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function g(e){return e.replace(/&/g,"&amp;").replace(w,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+((e=e.charCodeAt(1))-56320)+65536)+";"}).replace(x,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function v(e,t){var n=t[e];if(n&&l.call(t,n))throw d("elclob",t.outerHTML||t.outerText);return n}var y=!1,b=!1;this.$get=["$$sanitizeUri",function(e){return y=!0,b&&r(O,k),function(t){var n=[];return c(t,f(n,function(t,n){return!/^unsafe:/.test(e(t,n))})),n.join("")}}],this.enableSvg=function(e){return a(e)?(b=e,this):b},this.addValidElements=function(e){return y||(o(e)&&(e={htmlElements:e}),m(k,e.svgElements),m(C,e.htmlVoidElements),m(O,e.htmlVoidElements),m(O,e.htmlElements)),this},this.addValidAttrs=function(e){return y||r(T,p(e,!0)),this},n=t.bind,r=t.extend,i=t.forEach,o=t.isArray,a=t.isDefined,s=t.$$lowercase,u=t.noop,c=function(e,t){null===e||void 0===e?e="":"string"!=typeof e&&(e=""+e);var n=D(e);if(!n)return"";var r=5;do{if(0===r)throw d("uinput");r--,e=n.innerHTML,n=D(e)}while(e!==n.innerHTML);for(r=n.firstChild;r;){switch(r.nodeType){case 1:t.start(r.nodeName.toLowerCase(),$(r.attributes));break;case 3:t.chars(r.textContent)}var i;if(!(i=r.firstChild)&&(1===r.nodeType&&t.end(r.nodeName.toLowerCase()),!(i=v("nextSibling",r))))for(;null==i&&(r=v("parentNode",r))!==n;)i=v("nextSibling",r),1===r.nodeType&&t.end(r.nodeName.toLowerCase());r=i}for(;r=n.firstChild;)n.removeChild(r)},f=function(e,t){var r=!1,o=n(e,e.push);return{start:function(e,n){e=s(e),!r&&_[e]&&(r=e),r||!0!==O[e]||(o("<"),o(e),i(n,function(n,r){var i=s(r),a="img"===e&&"src"===i||"background"===i;!0!==T[i]||!0===M[i]&&!t(n,a)||(o(" "),o(r),o('="'),o(g(n)),o('"'))}),o(">"))},end:function(e){e=s(e),r||!0!==O[e]||!0===C[e]||(o("</"),o(e),o(">")),e==r&&(r=!1)},chars:function(e){r||o(g(e))}}},l=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};var w=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,x=/([^#-~ |!])/g,C=h("area,br,col,hr,img,wbr"),A=h("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),S=h("rp,rt"),E=r({},S,A),k=(A=r({},A,h("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),S=r({},S,h("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),h("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan")),_=h("script,style"),O=r({},C,A,S,E),M=h("background,cite,href,longdesc,src,xlink:href,xml:base"),T=(E=h("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),S=h("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),r({},M,S,E)),D=function(t,n){var r;if(!n||!n.implementation)throw d("noinert");var i=((r=n.implementation.createHTMLDocument("inert")).documentElement||r.getDocumentElement()).querySelector("body");return i.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',i.querySelector("svg")?(i.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',i.querySelector("svg img")?function(e){e="<remove></remove>"+e;try{var n=(new t.DOMParser).parseFromString(e,"text/html").body;return n.firstChild.remove(),n}catch(e){}}:function(t){return i.innerHTML=t,n.documentMode&&function t(n){for(;n;){if(n.nodeType===e.Node.ELEMENT_NODE)for(var r=n.attributes,i=0,o=r.length;i<o;i++){var a=r[i],s=a.name.toLowerCase();"xmlns:ns1"!==s&&0!==s.lastIndexOf("ns1:",0)||(n.removeAttributeNode(a),i--,o--)}(r=n.firstChild)&&t(r),n=v("nextSibling",n)}}(i),i}):function(e){e="<remove></remove>"+e;try{e=encodeURI(e)}catch(e){return}var n=new t.XMLHttpRequest;return n.responseType="document",n.open("GET","data:text/html;charset=utf-8,"+e,!1),n.send(null),(e=n.response.body).firstChild.remove(),e}}(e,e.document)}).info({angularVersion:"1.7.9"}),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i,i=t.$$minErr("linky"),o=t.isDefined,a=t.isFunction,s=t.isObject,l=t.isString;return function(t,c,d){function h(e){e&&y.push(function(e){var t=[];return f(t,u).chars(e),t.join("")}(e))}function p(e,t){var n,r=g(e);for(n in y.push("<a "),r)y.push(n+'="'+r[n]+'" ');!o(c)||"target"in r||y.push('target="',c,'" '),y.push('href="',e.replace(/"/g,"&quot;"),'">'),h(t),y.push("</a>")}if(null==t||""===t)return t;if(!l(t))throw i("notstring",t);for(var m,$,g=a(d)?d:s(d)?function(){return d}:function(){return{}},v=t,y=[];t=v.match(n);)m=t[0],t[2]||t[4]||(m=(t[3]?"http://":"mailto:")+m),$=t.index,h(v.substr(0,$)),p(m,t[0].replace(r,"")),v=v.substring($+t[0].length);return h(v),e(y.join(""))}}])}(window,window.angular),function(e,t){"use strict";var n="BUTTON A INPUT TEXTAREA SELECT DETAILS SUMMARY".split(" "),r=function(e,t){if(-1!==t.indexOf(e[0].nodeName))return!0};t.module("ngAria",["ng"]).info({angularVersion:"1.7.9"}).provider("$aria",function(){function e(e,t,i,o){return function(a,s,u){if(!u.hasOwnProperty("ngAriaDisable")){var l=u.$normalize(t);!n[l]||r(s,i)||u[l]||a.$watch(u[e],function(e){e=o?!e:!!e,s.attr(t,e)})}}}var n={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};this.config=function(e){n=t.extend(n,e)},this.$get=function(){return{config:function(e){return n[e]},$$watchExpr:e}}}).directive("ngShow",["$aria",function(e){return e.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(e){return e.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(e){return e.$$watchExpr("ngValue","aria-checked",n,!1)}]).directive("ngChecked",["$aria",function(e){return e.$$watchExpr("ngChecked","aria-checked",n,!1)}]).directive("ngReadonly",["$aria",function(e){return e.$$watchExpr("ngReadonly","aria-readonly",n,!1)}]).directive("ngRequired",["$aria",function(e){return e.$$watchExpr("ngRequired","aria-required",n,!1)}]).directive("ngModel",["$aria",function(e){function t(t,i,o,a){return e.config(i)&&!o.attr(t)&&(a||!r(o,n))&&("hidden"!==o.attr("type")||"INPUT"!==o[0].nodeName)}function i(e,t){return!t.attr("role")&&t.attr("type")===e&&!r(t,n)}return{restrict:"A",require:"ngModel",priority:200,compile:function(n,r){if(!r.hasOwnProperty("ngAriaDisable")){var o=function(e,t){var n=e.type,r=e.role;return"checkbox"===(n||r)||"menuitemcheckbox"===r?"checkbox":"radio"===(n||r)||"menuitemradio"===r?"radio":"range"===n||"progressbar"===r||"slider"===r?"range":""}(r);return{post:function(n,r,a,s){function u(){return s.$modelValue}var l=t("tabindex","tabindex",r,!1);switch(o){case"radio":case"checkbox":i(o,r)&&r.attr("role",o),t("aria-checked","ariaChecked",r,!1)&&n.$watch(u,"radio"===o?function(e){r.attr("aria-checked",a.value==s.$viewValue)}:function(){r.attr("aria-checked",!s.$isEmpty(s.$viewValue))}),l&&r.attr("tabindex",0);break;case"range":if(i(o,r)&&r.attr("role","slider"),e.config("ariaValue")){var c=!r.attr("aria-valuemin")&&(a.hasOwnProperty("min")||a.hasOwnProperty("ngMin")),f=!r.attr("aria-valuemax")&&(a.hasOwnProperty("max")||a.hasOwnProperty("ngMax")),d=!r.attr("aria-valuenow");c&&a.$observe("min",function(e){r.attr("aria-valuemin",e)}),f&&a.$observe("max",function(e){r.attr("aria-valuemax",e)}),d&&n.$watch(u,function(e){r.attr("aria-valuenow",e)})}l&&r.attr("tabindex",0)}!a.hasOwnProperty("ngRequired")&&s.$validators.required&&t("aria-required","ariaRequired",r,!1)&&a.$observe("required",function(){r.attr("aria-required",!!a.required)}),t("aria-invalid","ariaInvalid",r,!0)&&n.$watch(function(){return s.$invalid},function(e){r.attr("aria-invalid",!!e)})}}}}}}]).directive("ngDisabled",["$aria",function(e){return e.$$watchExpr("ngDisabled","aria-disabled",n,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(e,t,n,r){n.hasOwnProperty("ngAriaDisable")||t.attr("aria-live")||t.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(e,t){return{restrict:"A",compile:function(i,o){if(!o.hasOwnProperty("ngAriaDisable")){var a=t(o.ngClick);return function(t,i,o){r(i,n)||(e.config("bindRoleForClick")&&!i.attr("role")&&i.attr("role","button"),e.config("tabindex")&&!i.attr("tabindex")&&i.attr("tabindex",0),!e.config("bindKeydown")||o.ngKeydown||o.ngKeypress||o.ngKeyup)||i.on("keydown",function(e){var r=e.which||e.keyCode;13!==r&&32!==r||(-1!==n.indexOf(e.target.nodeName)||e.target.isContentEditable||e.preventDefault(),t.$apply(function(){a(t,{$event:e})}))})}}}}}]).directive("ngDblclick",["$aria",function(e){return function(t,i,o){o.hasOwnProperty("ngAriaDisable")||!e.config("tabindex")||i.attr("tabindex")||r(i,n)||i.attr("tabindex",0)}}])}(window,window.angular),function(e,t){"use strict";function n(e){return["$animate",function(t){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link:function(n,r,o,a,s){var u,l,c,f,d;if(!e){u=r[0],c=o.ngMessage||o.when;var h=function(e){l=e?i(e)?e:e.split(/[\s,]+/):null,a.reRender()};(o=o.ngMessageExp||o.whenExp)?(h(n.$eval(o)),n.$watchCollection(o,h)):h(c)}a.register(u,d={test:function(e){var t=l;return e=t?i(t)?0<=t.indexOf(e):t.hasOwnProperty(e):void 0},attach:function(){f||s(function(n,i){t.enter(n,null,r);var o=(f=n).$$attachId=a.getAttachId();f.on("$destroy",function(){f&&f.$$attachId===o&&(a.deregister(u,e),d.detach()),i.$destroy()})})},detach:function(){if(f){var e=f;f=null,t.leave(e)}}},e),n.$on("$destroy",function(){a.deregister(u,e)})}}}]}var r,i,o,a;t.module("ngMessages",[],function(){r=t.forEach,i=t.isArray,o=t.isString,a=t.element}).info({angularVersion:"1.7.9"}).directive("ngMessages",["$animate",function(e){function t(e,t){return o(t)&&0===t.length||n(e.$eval(t))}function n(e){return o(e)?e.length:!!e}return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(i,o,a){function s(e,t){for(var n=t,r=[];n&&n!==e;){var i=n.$$ngMessageNode;if(i&&i.length)return h[i];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}var u=this,l=0,c=0;this.getAttachId=function(){return c++};var f,d,h=this.messages={};this.render=function(s){f=!1,d=s=s||{};for(var l=t(o,a.ngMessagesMultiple)||t(o,a.multiple),c=[],h={},p=0,m=u.head,$=!1,g=0;null!=m;){g++;var v=m.message,y=!1;$||r(s,function(e,t){n(e)&&!y&&(p++,v.test(t)&&!h[t]&&(y=h[t]=!0,v.attach()))}),y?$=!l:c.push(v),m=m.next}r(c,function(e){e.detach()}),s=c.length!==g,(l=u.default&&!s&&0<p)?u.default.attach():u.default&&u.default.detach(),s||l?e.setClass(i,"ng-active","ng-inactive"):e.setClass(i,"ng-inactive","ng-active")},o.$watchCollection(a.ngMessages||a.for,u.render),this.reRender=function(){f||(f=!0,o.$evalAsync(function(){f&&d&&u.render(d)}))},this.register=function(e,t,n){if(n)u.default=t;else{n=l.toString(),h[n]={message:t};var r=i[0];t=h[n],u.head?(r=s(r,e))?(t.next=r.next,r.next=t):(t.next=u.head,u.head=t):u.head=t,e.$$ngMessageNode=n,l++}u.reRender()},this.deregister=function(e,t){if(t)delete u.default;else{var n=e.$$ngMessageNode;delete e.$$ngMessageNode;var r=h[n];if(r){var o=s(i[0],e);o?o.next=r.next:u.head=r.next}delete h[n]}u.reRender()}}]}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(e,t,n){function r(e,r){var i=n.$$createComment?n.$$createComment("ngMessagesInclude",r):t[0].createComment(" ngMessagesInclude: "+r+" ");i=a(i);e.after(i),e.remove()}return{restrict:"AE",require:"^^ngMessages",link:function(t,i,a){var s=a.ngMessagesInclude||a.src;e(s).then(function(e){t.$$destroyed||(o(e)&&!e.trim()?r(i,s):n(e)(t,function(e){i.after(e),r(i,s)}))})}}}]).directive("ngMessage",n()).directive("ngMessageExp",n()).directive("ngMessageDefault",n(!0))}(window,window.angular),function(e,t){var n=t.isDefined,r=t.isUndefined,i=t.isNumber,o=t.isObject,a=t.isArray,s=t.isString,u=t.extend,l=t.toJson;t.module("LocalStorageModule",[]).provider("localStorageService",function(){this.prefix="ls",this.storageType="localStorage",this.cookie={expiry:30,path:"/",secure:!1},this.defaultToCookie=!0,this.notify={setItem:!0,removeItem:!1},this.setPrefix=function(e){return this.prefix=e,this},this.setStorageType=function(e){return this.storageType=e,this},this.setDefaultToCookie=function(e){return this.defaultToCookie=!!e,this},this.setStorageCookie=function(e,t,n){return this.cookie.expiry=e,this.cookie.path=t,this.cookie.secure=n,this},this.setStorageCookieDomain=function(e){return this.cookie.domain=e,this},this.setNotify=function(e,t){return this.notify={setItem:e,removeItem:t},this},this.$get=["$rootScope","$window","$document","$parse","$timeout",function(e,t,c,f,d){function h(n){if(n||(n=t.event),v.setItem&&s(n.key)&&x(n.key)){var r=w(n.key);d(function(){e.$broadcast("LocalStorageModule.notification.changed",{key:r,newvalue:n.newValue,storageType:m.storageType})})}}var p,m=this,$=m.prefix,g=m.cookie,v=m.notify,y=m.storageType;c?c[0]&&(c=c[0]):c=document,"."!==$.substr(-1)&&($=$?$+".":"");var b=function(e){return $+e},w=function(e){return e.replace(new RegExp("^"+$,"g"),"")},x=function(e){return 0===e.indexOf($)},C=function(){try{var n=y in t&&null!==t[y],r=b("__"+Math.round(1e7*Math.random()));return n&&((p=t[y]).setItem(r,""),p.removeItem(r)),n}catch(t){return m.defaultToCookie&&(y="cookie"),e.$broadcast("LocalStorageModule.notification.error",t.message),!1}},A=C(),S=function(t,n,i){var o=P();try{if(R(i),n=r(n)?null:l(n),!A&&m.defaultToCookie||"cookie"===m.storageType)return A||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),v.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:"cookie"}),O(t,n);try{p&&p.setItem(b(t),n),v.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:m.storageType})}catch(r){return e.$broadcast("LocalStorageModule.notification.error",r.message),O(t,n)}return!0}finally{R(o)}},E=function(t,n){var r=P();try{if(R(n),!A&&m.defaultToCookie||"cookie"===m.storageType)return A||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),M(t);var i=p?p.getItem(b(t)):null;if(!i||"null"===i)return null;try{return JSON.parse(i)}catch(e){return i}}finally{R(r)}},k=function(){var t=P();try{var n,r,i=0;for(arguments.length>=1&&("localStorage"===arguments[arguments.length-1]||"sessionStorage"===arguments[arguments.length-1])&&(i=1,R(arguments[arguments.length-1])),n=0;n<arguments.length-i;n++)if(r=arguments[n],!A&&m.defaultToCookie||"cookie"===m.storageType)A||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),v.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:r,storageType:"cookie"}),T(r);else try{p.removeItem(b(r)),v.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:r,storageType:m.storageType})}catch(t){e.$broadcast("LocalStorageModule.notification.error",t.message),T(r)}}finally{R(t)}},_=function(){try{return t.navigator.cookieEnabled||"cookie"in c&&(c.cookie.length>0||(c.cookie="test").indexOf.call(c.cookie,"test")>-1)}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),!1}}(),O=function(t,n,s,u){if(r(n))return!1;if((a(n)||o(n))&&(n=l(n)),!_)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;try{var f="",d=new Date,h="";if(null===n?(d.setTime(d.getTime()+-864e5),f="; expires="+d.toGMTString(),n=""):i(s)&&0!==s?(d.setTime(d.getTime()+24*s*60*60*1e3),f="; expires="+d.toGMTString()):0!==g.expiry&&(d.setTime(d.getTime()+24*g.expiry*60*60*1e3),f="; expires="+d.toGMTString()),t){var p="; path="+g.path;g.domain&&(h="; domain="+g.domain),"boolean"==typeof u?!0===u&&(h+="; secure"):!0===g.secure&&(h+="; secure"),c.cookie=b(t)+"="+encodeURIComponent(n)+f+p+h}}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),!1}return!0},M=function(t){if(!_)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;for(var n=c.cookie&&c.cookie.split(";")||[],r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(b(t)+"=")){var o=decodeURIComponent(i.substring($.length+t.length+1,i.length));try{var a=JSON.parse(o);return"number"==typeof a?o:a}catch(e){return o}}}return null},T=function(e){O(e,null)},D=function(){for(var e=null,t=$.length,n=c.cookie.split(";"),r=0;r<n.length;r++){for(e=n[r];" "===e.charAt(0);)e=e.substring(1,e.length);var i=e.substring(t,e.indexOf("="));T(i)}},P=function(){return y},R=function(e){return e&&y!==e&&(y=e,A=C()),A};A&&(t.addEventListener?(t.addEventListener("storage",h,!1),e.$on("$destroy",function(){t.removeEventListener("storage",h)})):t.attachEvent&&(t.attachEvent("onstorage",h),e.$on("$destroy",function(){t.detachEvent("onstorage",h)})));return{isSupported:A,getStorageType:P,setStorageType:R,setPrefix:function(e){$=e},set:S,add:S,get:E,keys:function(t){var n=P();try{if(R(t),!A)return e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),[];var r=$.length,i=[];for(var o in p)if(o.substr(0,r)===$)try{i.push(o.substr(r))}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.Description),[]}return i}finally{R(n)}},remove:k,clearAll:function(t,n){var r=P();try{R(n);var i=$?new RegExp("^"+$):new RegExp,o=t?new RegExp(t):new RegExp;if(!A&&m.defaultToCookie||"cookie"===m.storageType)return A||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),D();if(!A&&!m.defaultToCookie)return!1;var a=$.length;for(var s in p)if(i.test(s)&&o.test(s.substr(a)))try{k(s.substr(a))}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),D()}return!0}finally{R(r)}},bind:function(e,t,r,i,a){var s=E(i=i||t,a);return null===s&&n(r)?s=r:o(s)&&o(r)&&(s=u(s,r)),f(t).assign(e,s),e.$watch(t,function(e){S(i,e,a)},o(e[t]))},deriveKey:b,underiveKey:w,length:function(e){var n=P();try{R(e);for(var r=0,i=t[y],o=0;o<i.length;o++)0===i.key(o).indexOf($)&&r++;return r}finally{R(n)}},defaultToCookie:this.defaultToCookie,cookie:{isSupported:_,set:O,add:O,get:M,remove:T,clearAll:D}}}]})}(window,window.angular),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(e){}}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,r){e.__listeners[n]=r,t&&t.apply(this,arguments)}}};e("open",function(e){return function(t,r,i){n(this),this.__url=r;try{e.apply(this,[t,r,i])}catch(n){n.message.indexOf("Access is denied")>-1&&(this.__origError=n,e.apply(this,[t,"_fix_for_ie_crossdomain__",i]))}}}),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,r){if("__setXHR_"===t){n(this);var i=r(this);i instanceof Function&&i(this)}else this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[t]=r,e.apply(this,arguments)}}),e("send",function(e){return function(){var n=this;if(arguments[0]&&arguments[0].__isFileAPIShim){for(var r=arguments[0],i={url:n.__url,jsonp:!1,cache:!0,complete:function(e,r){e&&angular.isString(e)&&-1!==e.indexOf("#2174")&&(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!==r.status&&t(n,"status",function(){return 0===r.status&&e&&"abort"!==e?500:r.status}),void 0!==r.statusText&&t(n,"statusText",function(){return r.statusText}),t(n,"readyState",function(){return 4}),void 0!==r.response&&t(n,"response",function(){return r.response});var i=r.responseText||(e&&0===r.status&&"abort"!==e?e:void 0);t(n,"responseText",function(){return i}),t(n,"response",function(){return i}),e&&t(n,"err",function(){return e}),n.__fileApiXHR=r,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,data:{},files:{}},o=0;o<r.data.length;o++){var a=r.data[o];null!=a.val&&null!=a.val.name&&null!=a.val.size&&null!=a.val.type?i.files[a.key]=a.val:i.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(i)},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(){try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return!0}catch(e){if(void 0!==navigator.mimeTypes["application/x-shockwave-flash"])return!0}return!1}function t(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=e(),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var n,r,i,o,a,s=document.createElement("script"),u=document.getElementsByTagName("script");if(window.FileAPI.jsUrl)n=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)r=window.FileAPI.jsPath;else for(i=0;i<u.length;i++)if((o=(a=u[i].src).search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/))>-1){r=a.substring(0,o+1);break}null==FileAPI.staticPath&&(FileAPI.staticPath=r),s.setAttribute("src",n||r+"FileAPI.min.js"),document.getElementsByTagName("head")[0].appendChild(s)}FileAPI.ngfFixIE=function(n,r,i){if(!e())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';n.bind("mouseenter",function(){var e=r.parent();n.attr("disabled")?e&&e.removeClass("js-fileapi-wrapper"):(r.attr("__ngf_flash_")||(r.unbind("change"),r.unbind("click"),r.bind("change",function(e){o.apply(this,[e]),i.apply(this,[e])}),r.attr("__ngf_flash_","true")),e.addClass("js-fileapi-wrapper"),function(e){return"input"===e[0].tagName.toLowerCase()&&e.attr("type")&&"file"===e.attr("type").toLowerCase()}(n)||(e.css("position","absolute").css("top",t(n[0]).top+"px").css("left",t(n[0]).left+"px").css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("filter","alpha(opacity=0)").css("display",n.css("display")).css("overflow","hidden").css("z-index","900000").css("visibility","visible"),r.css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("position","absolute").css("top","0px").css("left","0px")))});var o=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 r=0;r<n.length;r++)n[r].call(e,t)},this.onabort=this.onerror=this.onload=this.onloadstart=this.onloadend=this.onprogress=null;var n=function(t,n){var r={type:t,target:e,loaded:n.loaded,total:n.total,error:n.error};return null!=n.result&&(r.target.result=n.result),r},r=function(r){var i;t||(t=!0,e.onloadstart&&e.onloadstart(n("loadstart",r))),"load"===r.type?(e.onloadend&&e.onloadend(n("loadend",r)),i=n("load",r),e.onload&&e.onload(i),e.dispatchEvent(i)):"progress"===r.type?(i=n("progress",r),e.onprogress&&e.onprogress(i),e.dispatchEvent(i)):(i=n("error",r),e.onerror&&e.onerror(i),e.dispatchEvent(i))};this.readAsDataURL=function(e){FileAPI.readAsDataURL(e,r)},this.readAsText=function(e){FileAPI.readAsText(e,r)}}),!window.XMLHttpRequest||window.FileAPI&&FileAPI.shouldLoad||(window.XMLHttpRequest.prototype.setRequestHeader=function(e){return function(t,n){if("__setXHR_"===t){var r=n(this);r instanceof Function&&r(this)}else e.apply(this,arguments)}}(window.XMLHttpRequest.prototype.setRequestHeader));var ngFileUpload=angular.module("ngFileUpload",[]);ngFileUpload.version="12.2.13",ngFileUpload.service("UploadBase",["$http","$q","$timeout",function(e,t,n){function r(r){function i(e){l.notify&&l.notify(e),c.progressFunc&&n(function(){c.progressFunc(e)})}function s(e){return null!=r._start&&a?{loaded:e.loaded+r._start,total:r._file&&r._file.size||e.total,type:e.type,config:r,lengthComputable:!0,target:e.target}:e}function u(){e(r).then(function(e){if(a&&r._chunkSize&&!r._finished&&r._file){var t=r._file&&r._file.size||0;i({loaded:Math.min(r._end,t),total:t,config:r,type:"progress"}),o.upload(r,!0)}else r._finished&&delete r._finished,l.resolve(e)},function(e){l.reject(e)},function(e){l.notify(e)})}r.method=r.method||"POST",r.headers=r.headers||{};var l=r._deferred=r._deferred||t.defer(),c=l.promise;return r.disableProgress||(r.headers.__setXHR_=function(){return function(e){e&&e.upload&&e.upload.addEventListener&&(r.__XHR=e,r.xhrFn&&r.xhrFn(e),e.upload.addEventListener("progress",function(e){e.config=r,i(s(e))},!1),e.upload.addEventListener("load",function(e){e.lengthComputable&&(e.config=r,i(s(e)))},!1))}}),a?r._chunkSize&&r._end&&!r._finished?(r._start=r._end,r._end+=r._chunkSize,u()):r.resumeSizeUrl?e.get(r.resumeSizeUrl).then(function(e){r._start=r.resumeSizeResponseReader?r.resumeSizeResponseReader(e.data):parseInt((null==e.data.size?e.data:e.data.size).toString()),r._chunkSize&&(r._end=r._start+r._chunkSize),u()},function(e){throw e}):r.resumeSize?r.resumeSize().then(function(e){r._start=e,r._chunkSize&&(r._end=r._start+r._chunkSize),u()},function(e){throw e}):(r._chunkSize&&(r._start=0,r._end=r._start+r._chunkSize),u()):u(),c.success=function(e){return c.then(function(t){e(t.data,t.status,t.headers,r)}),c},c.error=function(e){return c.then(null,function(t){e(t.data,t.status,t.headers,r)}),c},c.progress=function(e){return c.progressFunc=e,c.then(null,null,function(t){e(t)}),c},c.abort=c.pause=function(){return r.__XHR&&n(function(){r.__XHR.abort()}),c},c.xhr=function(e){return r.xhrFn=(t=r.xhrFn,function(){t&&t.apply(c,arguments),e.apply(c,arguments)}),c;var t},o.promisesCount++,c.finally&&c.finally instanceof Function&&c.finally(function(){o.promisesCount--}),c}function i(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 r=t.slice(e._start,e._end||t.size);return r.name=t.name,r.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)),r}return t}function s(t,r,i){if(void 0!==r)if(angular.isDate(r)&&(r=r.toISOString()),angular.isString(r))t.append(i,r);else if(o.isFile(r)){var a=n(r,t),u=i.split(",");u[1]&&(a.ngfName=u[1].replace(/^\s+|\s+$/g,""),i=u[0]),e._fileKey=e._fileKey||i,t.append(i,a,a.ngfName||a.name)}else if(angular.isObject(r)){if(r.$$ngfCircularDetection)throw"ngFileUpload: Circular reference in config.data. Make sure specified data for Upload.upload() has no circular reference: "+i;r.$$ngfCircularDetection=!0;try{for(var l in r)if(r.hasOwnProperty(l)&&"$$ngfCircularDetection"!==l){var c=null==e.objectKey?"[i]":e.objectKey;r.length&&parseInt(l)>-1&&(c=null==e.arrayKey?c:e.arrayKey),s(t,r[l],i+c.replace(/[ik]/g,l))}}finally{delete r.$$ngfCircularDetection}}else t.append(i,r)}return t||(e=i(e)),e._isDigested||(e._isDigested=!0,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,r=new window.FormData;for(n in t=t||e.fields||{},e.file&&(t.file=e.file),t)if(t.hasOwnProperty(n)){var i=t[n];e.formDataAppender?e.formDataAppender(r,n,i):s(r,i,n)}return r})),r(e)},this.http=function(t){return(t=i(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,r(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 r=t.defer();return e({url:n,method:"get",responseType:"arraybuffer"}).then(function(e){var t=new Uint8Array(e.data),i=e.headers("content-type")||"image/WebP",o=new window.Blob([t],{type:i}),a=n.match(/.*\/(.+?)(\?.*)?$/);a.length>1&&(o.name=a[1]),r.resolve(o)},function(e){r.reject(e)}),r.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,r,i){function o(e,t,n){var i=[u.emptyPromise()];return angular.forEach(e,function(r,o){0===r.type.indexOf("image/jpeg")&&u.attrGetter("ngfFixOrientation",t,n,{$file:r})&&i.push(u.happyPromise(u.applyExifRotation(r),r).then(function(t){e.splice(o,1,t)}))}),r.all(i)}function a(e,t,n,i){var o=u.attrGetter("ngfResize",t,n);if(!o||!u.isResizeSupported()||!e.length)return u.emptyPromise();if(o instanceof Function){var a=r.defer();return o(e).then(function(r){s(r,e,t,n,i).then(function(e){a.resolve(e)},function(e){a.reject(e)})},function(e){a.reject(e)})}return s(o,e,t,n,i)}function s(e,t,n,i,o){function a(r,a){if(0===r.type.indexOf("image")){if(e.pattern&&!u.validatePattern(r,e.pattern))return;e.resizeIf=function(e,t){return u.attrGetter("ngfResizeIf",n,i,{$width:e,$height:t,$file:r})};var l=u.resize(r,e);s.push(l),l.then(function(e){t.splice(a,1,e)},function(e){r.$error="resize",(r.$errorMessages=r.$errorMessages||{}).resize=!0,r.$errorParam=(e?(e.message?e.message:e)+": ":"")+(r&&r.name),o.$ngfValidations.push({name:"resize",valid:!1}),u.applyModelValidation(o,t)})}}for(var s=[u.emptyPromise()],l=0;l<t.length;l++)a(t[l],l);return r.all(s)}var u=i;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,r,i){var o=this.getAttrWithDefaults(n,t);if(!r)return o;try{return i?e(o)(r,i):e(o)(r)}catch(e){if(t.search(/min|max|pattern/i))return o;throw e}},u.shouldUpdateOn=function(e,t,n){var r=u.attrGetter("ngfModelOptions",t,n);return!r||!r.updateOn||r.updateOn.split(" ").indexOf(e)>-1},u.emptyPromise=function(){var e=r.defer(),n=arguments;return t(function(){e.resolve.apply(e,n)}),e.promise},u.rejectPromise=function(){var e=r.defer(),n=arguments;return t(function(){e.reject.apply(e,n)}),e.promise},u.happyPromise=function(e,n){var i=r.defer();return e.then(function(e){i.resolve(e)},function(e){t(function(){throw e}),i.resolve(n)}),i.promise},u.updateModel=function(n,r,i,s,l,c,f){function d(o,a,l,f,d){r.$$ngfPrevValidFiles=o,r.$$ngfPrevInvalidFiles=a;var h=o&&o.length?o[0]:null,p=a&&a.length?a[0]:null;n&&(u.applyModelValidation(n,o),n.$setViewValue(d?h:o)),s&&e(s)(i,{$files:o,$file:h,$newFiles:l,$duplicateFiles:f,$invalidFiles:a,$invalidFile:p,$event:c});var m=u.attrGetter("ngfModelInvalid",r);m&&t(function(){e(m).assign(i,d?p:a)}),t(function(){})}function h(){function e(){t(function(){d(b?m.concat(y):y,b?$.concat(v):v,l,g,w)},C&&C.debounce?C.debounce.change||C.debounce:0)}var o=x?p:y;a(o,r,i,n).then(function(){x?u.validate(p,b?m.length:0,n,r,i).then(function(t){y=t.validsFiles,v=t.invalidsFiles,e()}):e()},function(){for(var t=0;t<o.length;t++){var n=o[t];if("resize"===n.$error){var r=y.indexOf(n);r>-1&&(y.splice(r,1),v.push(n)),e()}}})}var p,m,$,g=[],v=[],y=[];m=r.$$ngfPrevValidFiles||[],$=r.$$ngfPrevInvalidFiles||[],n&&n.$modelValue&&(m=function(e){return angular.isArray(e)?e:[e]}(n.$modelValue));var b=u.attrGetter("ngfKeep",r,i);p=(l||[]).slice(0),("distinct"===b||!0===u.attrGetter("ngfKeepDistinct",r,i))&&function(){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<m.length;n++)if(e(t,m[n]))return!0;for(n=0;n<$.length;n++)if(e(t,$[n]))return!0;return!1}if(l){p=[],g=[];for(var n=0;n<l.length;n++)t(l[n])?g.push(l[n]):p.push(l[n])}}();var w=!b&&!u.attrGetter("ngfMultiple",r,i)&&!u.attrGetter("multiple",r);if(!b||p.length){u.attrGetter("ngfBeforeModelChange",r,i,{$files:l,$file:l&&l.length?l[0]:null,$newFiles:p,$duplicateFiles:g,$event:c});var x=u.attrGetter("ngfValidateAfterResize",r,i),C=u.attrGetter("ngfModelOptions",r,i);u.validate(p,b?m.length:0,n,r,i).then(function(e){f?d(p,[],l,g,w):(C&&C.allowInvalid||x?y=p:(y=e.validFiles,v=e.invalidFiles),u.attrGetter("ngfFixOrientation",r,i)&&u.isExifSupported()?o(y,r,i).then(function(){h()}):h())})}},u}]),ngFileUpload.directive("ngfSelect",["$parse","$timeout","$compile","Upload",function(e,t,n,r){function i(e){var t=e.match(/Android[^\d]*(\d+)\.(\d+)/);if(t&&t.length>2){var n=r.defaults.androidFixMinorVersion||4;return parseInt(t[1])<4||parseInt(t[1])===n&&parseInt(t[2])<n}return-1===e.indexOf("Chrome")&&/.*Windows.*Safari.*/.test(e)}function o(e,t,n,r,o,s,u,l){function c(){return"input"===t[0].tagName.toLowerCase()&&n.type&&"file"===n.type.toLowerCase()}function f(){return m("ngfChange")||m("ngfSelect")}function d(t){if(l.shouldUpdateOn("change",n,e)){var i=t.__files_||t.target&&t.target.files,o=[];if(!i)return;for(var a=0;a<i.length;a++)o.push(i[a]);l.updateModel(r,n,e,f(),o.length?o:null,t)}}function h(e,r){function i(t){e.attr("id","ngf-"+t),r.attr("id","ngf-label-"+t)}for(var o=0;o<t[0].attributes.length;o++){var a=t[0].attributes[o];"type"!==a.name&&"class"!==a.name&&"style"!==a.name&&("id"===a.name?(i(a.value),$.push(n.$observe("id",i))):e.attr(a.name,a.value||"required"!==a.name&&"multiple"!==a.name?a.value:a.name))}}function p(t){l.shouldUpdateOn("click",n,e)&&y.val()&&(y.val(null),l.updateModel(r,n,e,f(),null,t,!0))}var m=function(e,t){return l.attrGetter(e,n,t)};l.registerModelChangeValidator(r,n,e);var $=[];m("ngfMultiple")&&$.push(e.$watch(m("ngfMultiple"),function(){y.attr("multiple",m("ngfMultiple",e))})),m("ngfCapture")&&$.push(e.$watch(m("ngfCapture"),function(){y.attr("capture",m("ngfCapture",e))})),m("ngfAccept")&&$.push(e.$watch(m("ngfAccept"),function(){y.attr("accept",m("ngfAccept",e))})),$.push(n.$observe("accept",function(){y.attr("accept",m("accept"))}));var g=0,v=0,y=t;c()||(y=function(){if(c())return t;var e=angular.element('<input type="file">'),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"),h(e,n),a.push({el:t,ref:n}),document.body.appendChild(n.append(e)[0]),e}()),y.bind("change",d),c()?t.bind("click",p):t.bind("click touchstart touchend",function(n){if(t.attr("disabled"))return!1;if(!m("ngfSelectDisabled",e)){var r=function(e){var t=e.changedTouches||e.originalEvent&&e.originalEvent.changedTouches;if(t){if("touchstart"===e.type)return v=t[0].clientX,g=t[0].clientY,!0;if("touchend"===e.type){var n=t[0].clientX,r=t[0].clientY;if(Math.abs(n-v)>20||Math.abs(r-g)>20)return e.stopPropagation(),e.preventDefault(),!1}return!0}}(n);if(null!=r)return r;p(n);try{c()||document.body.contains(y[0])||(a.push({el:t,ref:y.parent()}),document.body.appendChild(y.parent()[0]),y.bind("change",d))}catch(e){}return i(navigator.userAgent)?setTimeout(function(){y[0].click()},0):y[0].click(),!1}}),-1!==navigator.appVersion.indexOf("MSIE 10")&&y.bind("click",function e(t){if(y&&!y.attr("__ngf_ie10_Fix_")){if(!y[0].parentNode)return void(y=null);t.preventDefault(),t.stopPropagation(),y.unbind("click");var n=y.clone();return y.replaceWith(n),(y=n).attr("__ngf_ie10_Fix_","true"),y.bind("change",d),y.bind("click",e),y[0].click(),!1}y.removeAttr("__ngf_ie10_Fix_")}),r&&r.$formatters.push(function(e){return(null==e||0===e.length)&&y.val()&&y.val(null),e}),e.$on("$destroy",function(){c()||y.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,y,d)}var a=[];return{restrict:"AEC",require:"?ngModel",link:function(e,n,i,a){o(e,n,i,a,0,t,0,r)}}}]),function(){function e(e,t,n,r,i,o,a,s){function u(o){var a=e.attrGetter("ngfNoObjectUrl",i,n);e.dataUrl(o,a).finally(function(){t(function(){var e=(a?o.$ngfDataUrl:o.$ngfBlobUrl)||o.$ngfDataUrl;s?r.css("background-image","url('"+(e||"")+"')"):r.attr("src",e),e?r.removeClass("ng-hide"):r.addClass("ng-hide")})})}t(function(){var t=n.$watch(i[o],function(t){var l=a;if("ngfThumbnail"===o&&(l||(l={width:r[0].naturalWidth||r[0].clientWidth,height:r[0].naturalHeight||r[0].clientHeight}),0===l.width&&window.getComputedStyle)){var c=getComputedStyle(r[0]);c.width&&c.width.indexOf("px")>-1&&c.height&&c.height.indexOf("px")>-1&&(l={width:parseInt(c.width.slice(0,-2)),height:parseInt(c.height.slice(0,-2))})}return angular.isString(t)?(r.removeClass("ng-hide"),s?r.css("background-image","url('"+t+"')"):r.attr("src",t)):void(!t||!t.type||0!==t.type.search(function(e){return"img"===e.tagName.toLowerCase()?"image":"audio"===e.tagName.toLowerCase()?"audio":"video"===e.tagName.toLowerCase()?"video":/./}(r[0]))||s&&0!==t.type.indexOf("image")?r.addClass("ng-hide"):l&&e.isResizeSupported()?(l.resizeIf=function(r,o){return e.attrGetter("ngfResizeIf",i,n,{$width:r,$height:o,$file:t})},e.resize(t,l).then(function(e){u(e)},function(e){throw e})):u(t))});n.$on("$destroy",function(){t()})})}ngFileUpload.service("UploadDataUrl",["UploadBase","$timeout","$q",function(e,t,n){var r=e;return r.base64DataUrl=function(e){if(angular.isArray(e)){var t=n.defer(),i=0;return angular.forEach(e,function(n){r.dataUrl(n,!0).finally(function(){if(++i===e.length){var n=[];angular.forEach(e,function(e){n.push(e.$ngfDataUrl)}),t.resolve(n,e)}})}),t.promise}return r.dataUrl(e,!0)},r.dataUrl=function(e,i){if(!e)return r.emptyPromise(e,e);if(i&&null!=e.$ngfDataUrl||!i&&null!=e.$ngfBlobUrl)return r.emptyPromise(i?e.$ngfDataUrl:e.$ngfBlobUrl,e);var o=i?e.$$ngfDataUrlPromise:e.$$ngfBlobUrlPromise;if(o)return o;var a=n.defer();return t(function(){if(window.FileReader&&e&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 8")||e.size<2e4)&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 9")||e.size<4e6)){var n=window.URL||window.webkitURL;if(n&&n.createObjectURL&&!i){var o;try{o=n.createObjectURL(e)}catch(n){return void t(function(){e.$ngfBlobUrl="",a.reject()})}t(function(){if(e.$ngfBlobUrl=o,o){a.resolve(o,e),r.blobUrls=r.blobUrls||[],r.blobUrlsTotalSize=r.blobUrlsTotalSize||0,r.blobUrls.push({url:o,size:e.size}),r.blobUrlsTotalSize+=e.size||0;for(var t=r.defaults.blobUrlsMaxMemory||268435456,i=r.defaults.blobUrlsMaxQueueSize||200;(r.blobUrlsTotalSize>t||r.blobUrls.length>i)&&r.blobUrls.length>1;){var s=r.blobUrls.splice(0,1)[0];n.revokeObjectURL(s.url),r.blobUrlsTotalSize-=s.size}}})}else{var s=new FileReader;s.onload=function(n){t(function(){e.$ngfDataUrl=n.target.result,a.resolve(n.target.result,e),t(function(){delete e.$ngfDataUrl},1e3)})},s.onerror=function(){t(function(){e.$ngfDataUrl="",a.reject()})},s.readAsDataURL(e)}}else t(function(){e[i?"$ngfDataUrl":"$ngfBlobUrl"]="",a.reject()})}),(o=i?e.$$ngfDataUrlPromise=a.promise:e.$$ngfBlobUrlPromise=a.promise).finally(function(){delete e[i?"$$ngfDataUrlPromise":"$$ngfBlobUrlPromise"]}),o},r}]),ngFileUpload.directive("ngfSrc",["Upload","$timeout",function(t,n){return{restrict:"AE",link:function(r,i,o){e(t,n,r,i,o,"ngfSrc",t.attrGetter("ngfResize",o,r),!1)}}}]),ngFileUpload.directive("ngfBackground",["Upload","$timeout",function(t,n){return{restrict:"AE",link:function(r,i,o){e(t,n,r,i,o,"ngfBackground",t.attrGetter("ngfResize",o,r),!0)}}}]),ngFileUpload.directive("ngfThumbnail",["Upload","$timeout",function(t,n){return{restrict:"AE",link:function(r,i,o){var a=t.attrGetter("ngfSize",o,r);e(t,n,r,i,o,"ngfThumbnail",a,t.attrGetter("ngfAsBackground",o,r))}}}]),ngFileUpload.config(["$compileProvider",function(e){e.imgSrcSanitizationWhitelist&&e.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/),e.aHrefSanitizationWhitelist&&e.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/)}]),ngFileUpload.filter("ngfDataUrl",["UploadDataUrl","$sce",function(e,t){return function(n,r,i){if(angular.isString(n))return t.trustAsResourceUrl(n);var o=n&&((r?n.$ngfDataUrl:n.$ngfBlobUrl)||n.$ngfDataUrl);return n&&!o?(!n.$ngfDataUrlFilterInProgress&&angular.isObject(n)&&(n.$ngfDataUrlFilterInProgress=!0,e.dataUrl(n,r)),""):(n&&delete n.$ngfDataUrlFilterInProgress,(n&&o?i?t.trustAsResourceUrl(o):o:n)||"")}}])}(),ngFileUpload.service("UploadValidate",["UploadDataUrl","$q","$timeout",function(e,t,n){var r=e;return r.validatePattern=function(e,t){if(!t)return!0;var n=function e(t){var n="",r=[];if(t.length>2&&"/"===t[0]&&"/"===t[t.length-1])n=t.substring(1,t.length-1);else{var i=t.split(",");if(i.length>1)for(var o=0;o<i.length;o++){var a=e(i[o]);a.regexp?(n+="("+a.regexp+")",o<i.length-1&&(n+="|")):r=r.concat(a.excludes)}else 0===t.indexOf("!")?r.push("^((?!"+e(t.substring(1)).regexp+").)*$"):(0===t.indexOf(".")&&(t="*"+t),n=(n="^"+t.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")+"$").replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:n,excludes:r}}(t),r=!0;if(n.regexp&&n.regexp.length){var i=new RegExp(n.regexp,"i");r=null!=e.type&&i.test(e.type)||null!=e.name&&i.test(e.name)}for(var o=n.excludes.length;o--;){var a=new RegExp(n.excludes[o],"i");r=r&&(null==e.type||a.test(e.type))&&(null==e.name||a.test(e.name))}return r},r.ratioToFloat=function(e){var t=e.toString(),n=t.search(/[x:]/i);return n>-1?parseFloat(t.substring(0,n))/parseFloat(t.substring(n+1)):parseFloat(t)},r.registerModelChangeValidator=function(e,t,n){e&&e.$formatters.push(function(i){if(e.$dirty){var o=i;i&&!angular.isArray(i)&&(o=[i]),r.validate(o,0,e,t,n).then(function(){r.applyModelValidation(e,o)})}return i})},r.applyModelValidation=function(e,t){(function(e,t){null==t||e.$dirty||(e.$setDirty?e.$setDirty():e.$dirty=!0)})(e,t),angular.forEach(e.$ngfValidations,function(t){e.$setValidity(t.name,t.valid)})},r.getValidationAttr=function(e,t,n,i,o){var a="ngf"+n[0].toUpperCase()+n.substr(1),s=r.attrGetter(a,e,t,{$file:o});if(null==s&&(s=r.attrGetter("ngfValidate",e,t,{$file:o}))){var u=(i||n).split(".");s=s[u[0]],u.length>1&&(s=s&&s[u[1]])}return s},r.validate=function(e,n,i,o,a){function s(t,n,s){if(e){for(var u=e.length,l=null;u--;){var h=e[u];if(h){var p=r.getValidationAttr(o,a,t,n,h);null!=p&&(s(h,p,u)||(-1===c.indexOf(t)?(h.$error=t,(h.$errorMessages=h.$errorMessages||{})[t]=!0,h.$errorParam=p,-1===d.indexOf(h)&&d.push(h),f||e.splice(u,1),l=!1):e.splice(u,1)))}}null!==l&&i.$ngfValidations.push({name:t,valid:l})}}function u(n,s,u,h,p){function m(t,r,i){function o(o){if(o())if(-1===c.indexOf(n)){if(r.$error=n,(r.$errorMessages=r.$errorMessages||{})[n]=!0,r.$errorParam=i,-1===d.indexOf(r)&&d.push(r),!f){var a=e.indexOf(r);a>-1&&e.splice(a,1)}t.resolve(!1)}else{var s=e.indexOf(r);s>-1&&e.splice(s,1),t.resolve(!0)}else t.resolve(!0)}null!=i?h(r,i).then(function(e){o(function(){return!p(e,i)})},function(){o(function(){return l("ngfValidateForce",{$file:r})})}):t.resolve(!0)}var $=[r.emptyPromise(!0)];e&&(e=void 0===e.length?[e]:e,angular.forEach(e,function(e){var i=t.defer();return $.push(i.promise),!u||null!=e.type&&0===e.type.search(u)?void("dimensions"===n&&null!=r.attrGetter("ngfDimensions",o)?r.imageDimensions(e).then(function(t){m(i,e,l("ngfDimensions",{$file:e,$width:t.width,$height:t.height}))},function(){i.resolve(!1)}):"duration"===n&&null!=r.attrGetter("ngfDuration",o)?r.mediaDuration(e).then(function(t){m(i,e,l("ngfDuration",{$file:e,$duration:t}))},function(){i.resolve(!1)}):m(i,e,r.getValidationAttr(o,a,n,s,e))):void i.resolve(!0)}));var g=t.defer();return t.all($).then(function(e){for(var t=!0,r=0;r<e.length;r++)if(!e[r]){t=!1;break}i.$ngfValidations.push({name:n,valid:t}),g.resolve(t)}),g.promise}(i=i||{}).$ngfValidations=i.$ngfValidations||[],angular.forEach(i.$ngfValidations,function(e){e.valid=!0});var l=function(e,t){return r.attrGetter(e,o,a,t)},c=(r.attrGetter("ngfIgnoreInvalid",o,a)||"").split(" "),f=r.attrGetter("ngfRunAllValidations",o,a);if(null==e||0===e.length)return r.emptyPromise({validFiles:e,invalidFiles:[]});e=void 0===e.length?[e]:e.slice(0);var d=[];s("pattern",null,r.validatePattern),s("minSize","size.min",function(e,t){return e.size+.1>=r.translateScalars(t)}),s("maxSize","size.max",function(e,t){return e.size-.1<=r.translateScalars(t)});var h=0;if(s("maxTotalSize",null,function(t,n){return!((h+=t.size)>r.translateScalars(n))||(e.splice(0,e.length),!1)}),s("validateFn",null,function(e,t){return!0===t||null===t||""===t}),!e.length)return r.emptyPromise({validFiles:[],invalidFiles:d});var p=t.defer(),m=[];return m.push(u("maxHeight","height.max",/image/,this.imageDimensions,function(e,t){return e.height<=t})),m.push(u("minHeight","height.min",/image/,this.imageDimensions,function(e,t){return e.height>=t})),m.push(u("maxWidth","width.max",/image/,this.imageDimensions,function(e,t){return e.width<=t})),m.push(u("minWidth","width.min",/image/,this.imageDimensions,function(e,t){return e.width>=t})),m.push(u("dimensions",null,/image/,function(e,t){return r.emptyPromise(t)},function(e){return e})),m.push(u("ratio",null,/image/,this.imageDimensions,function(e,t){for(var n=t.toString().split(","),i=!1,o=0;o<n.length;o++)Math.abs(e.width/e.height-r.ratioToFloat(n[o]))<.01&&(i=!0);return i})),m.push(u("maxRatio","ratio.max",/image/,this.imageDimensions,function(e,t){return e.width/e.height-r.ratioToFloat(t)<1e-4})),m.push(u("minRatio","ratio.min",/image/,this.imageDimensions,function(e,t){return e.width/e.height-r.ratioToFloat(t)>-1e-4})),m.push(u("maxDuration","duration.max",/audio|video/,this.mediaDuration,function(e,t){return e<=r.translateScalars(t)})),m.push(u("minDuration","duration.min",/audio|video/,this.mediaDuration,function(e,t){return e>=r.translateScalars(t)})),m.push(u("duration",null,/audio|video/,function(e,t){return r.emptyPromise(t)},function(e){return e})),m.push(u("validateAsyncFn",null,null,function(e,t){return t},function(e){return!0===e||null===e||""===e})),t.all(m).then(function(){if(f)for(var t=0;t<e.length;t++){e[t].$error&&e.splice(t--,1)}f=!1,s("maxFiles",null,function(e,t,r){return t>n+r}),p.resolve({validFiles:e,invalidFiles:d})}),p.promise},r.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 o=t.defer();return n(function(){return 0!==e.type.indexOf("image")?void o.reject("not image"):void r.dataUrl(e).then(function(t){function r(){var t=a[0].naturalWidth||a[0].clientWidth,n=a[0].naturalHeight||a[0].clientHeight;a.remove(),e.$ngfWidth=t,e.$ngfHeight=n,o.resolve({width:t,height:n})}function i(){a.remove(),o.reject("load error")}var a=angular.element("<img>").attr("src",t).css("visibility","hidden").css("position","fixed").css("max-width","none !important").css("max-height","none !important");a.on("load",r),a.on("error",i);var s=0;(function e(){n(function(){a[0].parentNode&&(a[0].clientWidth?r():s++>10?i():e())},1e3)})(),angular.element(document.getElementsByTagName("body")[0]).append(a)},function(){o.reject("load error")})}),e.$ngfDimensionPromise=o.promise,e.$ngfDimensionPromise.finally(function(){delete e.$ngfDimensionPromise}),e.$ngfDimensionPromise},r.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 o=t.defer();return n(function(){return 0!==e.type.indexOf("audio")&&0!==e.type.indexOf("video")?void o.reject("not media"):void r.dataUrl(e).then(function(t){function r(){var t=a[0].duration;e.$ngfDuration=t,a.remove(),o.resolve(t)}function i(){a.remove(),o.reject("load error")}var a=angular.element(0===e.type.indexOf("audio")?"<audio>":"<video>").attr("src",t).css("visibility","none").css("position","fixed");a.on("loadedmetadata",r),a.on("error",i);var s=0;(function e(){n(function(){a[0].parentNode&&(a[0].duration?r():s>10?i():e())},1e3)})(),angular.element(document.body).append(a)},function(){o.reject("load error")})}),e.$ngfDurationPromise=o.promise,e.$ngfDurationPromise.finally(function(){delete e.$ngfDurationPromise}),e.$ngfDurationPromise},r}]),ngFileUpload.service("UploadResize",["UploadValidate","$q",function(e,t){var n=e,r=function(e,r,i,o,a,s,u,l){var c=t.defer(),f=document.createElement("canvas"),d=document.createElement("img");return d.setAttribute("style","visibility:hidden;position:fixed;z-index:-100000"),document.body.appendChild(d),d.onload=function(){var e=d.width,t=d.height;if(d.parentNode.removeChild(d),null==l||!1!==l(e,t))try{if(s){var h=n.ratioToFloat(s);h>e/t?i=(r=e)/h:r=(i=t)*h}r||(r=e),i||(i=t);var p=function(e,t,n,r,i){var o=i?Math.max(n/e,r/t):Math.min(n/e,r/t);return{width:e*o,height:t*o,marginX:e*o-n,marginY:t*o-r}}(e,t,r,i,u);f.width=Math.min(p.width,r),f.height=Math.min(p.height,i),f.getContext("2d").drawImage(d,Math.min(0,-p.marginX/2),Math.min(0,-p.marginY/2),p.width,p.height),c.resolve(f.toDataURL(a||"image/WebP",o||.934))}catch(e){c.reject(e)}else c.reject("resizeIf")},d.onerror=function(){d.parentNode.removeChild(d),c.reject()},d.src=e,c.promise};return n.dataUrltoBlob=function(e,t,n){for(var r=e.split(","),i=r[0].match(/:(.*?);/)[1],o=atob(r[1]),a=o.length,s=new Uint8Array(a);a--;)s[a]=o.charCodeAt(a);var u=new window.Blob([s],{type:i});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){if(0!==e.type.indexOf("image"))return n.emptyPromise(e);var o=t.defer();return n.dataUrl(e,!0).then(function(t){r(t,i.width,i.height,i.quality,i.type||e.type,i.ratio,i.centerCrop,i.resizeIf).then(function(r){if("image/jpeg"===e.type&&!1!==i.restoreExif)try{r=n.restoreExif(t,r)}catch(e){setTimeout(function(){throw e},1)}try{var a=n.dataUrltoBlob(r,e.name,e.size);o.resolve(a)}catch(e){o.reject(e)}},function(t){"resizeIf"===t&&o.resolve(e),o.reject(t)})},function(e){o.reject(e)}),o.promise},n}]),function(){function e(e,n,r,i,o,a,s,u,l,c){function f(){return n.attr("disabled")||g("ngfDropDisabled",e)}function d(t,n,r){if(t){var i;try{i=t&&t.getData&&t.getData("text/html")}catch(e){}m(t.items,t.files,!1!==g("ngfAllowDir",e),g("multiple")||g("ngfMultiple",e)).then(function(e){e.length?h(e,n):p(r,i).then(function(e){h(e,n)})})}}function h(t,n){u.updateModel(i,r,e,g("ngfChange")||g("ngfDrop"),t,n)}function p(t,n){if(!u.shouldUpdateOn(t,r,e)||"string"!=typeof n)return u.rejectPromise([]);var i=[];n.replace(/<(img src|img [^>]* src) *=\"([^\"]*)\"/gi,function(e,t,n){i.push(n)});var o=[],a=[];if(i.length){angular.forEach(i,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 m(t,n,i,o){function a(e,t){var n=c.defer();if(null!=e)if(e.isDirectory){var r=[u.emptyPromise()];if(d){var i={type:"directory"};i.name=i.path=(t||"")+e.name,h.push(i)}var o=e.createReader(),s=[],m=function(){o.readEntries(function(i){try{i.length?(s=s.concat(Array.prototype.slice.call(i||[],0)),m()):(angular.forEach(s.slice(0),function(n){h.length<=l&&f>=p&&r.push(a(n,(t||"")+e.name+"/"))}),c.all(r).then(function(){n.resolve()},function(e){n.reject(e)}))}catch(e){n.reject(e)}},function(e){n.reject(e)})};m()}else e.file(function(e){try{e.path=(t||"")+e.name,d&&(e=u.rename(e,e.path)),h.push(e),p+=e.size,n.resolve()}catch(e){n.reject(e)}},function(e){n.reject(e)});return n.promise}var l=u.getValidationAttr(r,e,"maxFiles");null==l&&(l=Number.MAX_VALUE);var f=u.getValidationAttr(r,e,"maxTotalSize");null==f&&(f=Number.MAX_VALUE);var d=g("ngfIncludeDir",e),h=[],p=0,m=[u.emptyPromise()];if(t&&t.length>0&&"file:"!==s.location.protocol)for(var $=0;$<t.length;$++){if(t[$].webkitGetAsEntry&&t[$].webkitGetAsEntry()&&t[$].webkitGetAsEntry().isDirectory){var v=t[$].webkitGetAsEntry();if(v.isDirectory&&!i)continue;null!=v&&m.push(a(v))}else{var y=t[$].getAsFile();null!=y&&(h.push(y),p+=y.size)}if(h.length>l||p>f||!o&&h.length>0)break}else if(null!=n)for(var b=0;b<n.length;b++){var w=n.item(b);if((w.type||w.size>0)&&(h.push(w),p+=w.size),h.length>l||p>f||!o&&h.length>0)break}var x=c.defer();return c.all(m).then(function(){if(o||d||!h.length)x.resolve(h);else{for(var e=0;h[e]&&"directory"===h[e].type;)e++;x.resolve([h[e]])}},function(e){x.reject(e)}),x.promise}var $=t(),g=function(e,t,n){return u.attrGetter(e,r,t,n)};if(g("dropAvailable")&&a(function(){e[g("dropAvailable")]?e[g("dropAvailable")].value=$:e[g("dropAvailable")]=$}),$){null==g("ngfSelect")&&u.registerModelChangeValidator(i,r,e);var v,y=null,b=o(g("ngfStopPropagation")),w=1;n[0].addEventListener("dragover",function(t){if(!f()&&u.shouldUpdateOn("drop",r,e)){if(t.preventDefault(),b(e)&&t.stopPropagation(),navigator.userAgent.indexOf("Chrome")>-1){var i=t.dataTransfer.effectAllowed;t.dataTransfer.dropEffect="move"===i||"linkMove"===i?"move":"copy"}a.cancel(y),v||(v="C",function(e,t,n,r){var i=g("ngfDragOverClass",e,{$event:n}),o="dragover";if(angular.isString(i))o=i;else if(i&&(i.delay&&(w=i.delay),i.accept||i.reject)){var a=n.dataTransfer.items;if(null!=a&&a.length)for(var s=i.pattern||g("ngfPattern",e,{$event:n}),l=a.length;l--;){if(!u.validatePattern(a[l],s)){o=i.reject;break}o=i.accept}else o=i.accept}r(o)}(e,0,t,function(r){v=r,n.addClass(v),g("ngfDrag",e,{$isDragging:!0,$class:v,$event:t})}))}},!1),n[0].addEventListener("dragenter",function(t){!f()&&u.shouldUpdateOn("drop",r,e)&&(t.preventDefault(),b(e)&&t.stopPropagation())},!1),n[0].addEventListener("dragleave",function(t){!f()&&u.shouldUpdateOn("drop",r,e)&&(t.preventDefault(),b(e)&&t.stopPropagation(),y=a(function(){v&&n.removeClass(v),v=null,g("ngfDrag",e,{$isDragging:!1,$event:t})},w||100))},!1),n[0].addEventListener("drop",function(t){!f()&&u.shouldUpdateOn("drop",r,e)&&(t.preventDefault(),b(e)&&t.stopPropagation(),v&&n.removeClass(v),v=null,d(t.dataTransfer,t,"dropUrl"))},!1),n[0].addEventListener("paste",function(t){navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&g("ngfEnableFirefoxPaste",e)&&t.preventDefault(),!f()&&u.shouldUpdateOn("paste",r,e)&&d(t.clipboardData||t.originalEvent.clipboardData,t,"pasteUrl")},!1),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&g("ngfEnableFirefoxPaste",e)&&(n.attr("contenteditable",!0),n.on("keypress",function(e){e.metaKey||e.ctrlKey||e.preventDefault()}))}else!0===g("ngfHideOnDropNotAvailable",e)&&n.css("display","none")}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","$window","Upload","$http","$q",function(t,n,r,i,o,a){return{restrict:"AEC",require:"?ngModel",link:function(o,s,u,l){e(o,s,u,l,t,n,r,i,0,a)}}}]),ngFileUpload.directive("ngfNoFileDrop",function(){return function(e,n){t()&&n.css("display","none")}}),ngFileUpload.directive("ngfDropAvailable",["$parse","$timeout","Upload",function(e,n,r){return function(i,o,a){if(t()){var s=e(r.attrGetter("ngfDropAvailable",a));n(function(){s(i),s.assign&&s.assign(i,!0)})}}}])}(),ngFileUpload.service("UploadExif",["UploadResize","$q",function(e,t){var n=e;return n.isExifSupported=function(){return window.FileReader&&(new FileReader).readAsArrayBuffer&&n.isResizeSupported()},n.readOrientation=function(e){var n=t.defer(),r=new FileReader,i=e.slice?e.slice(0,65536):e;return r.readAsArrayBuffer(i),r.onerror=function(e){return n.reject(e)},r.onload=function(e){var t={orientation:1},r=new DataView(this.result);if(65496!==r.getUint16(0,!1))return n.resolve(t);for(var i=r.byteLength,o=2;i>o;){var a=r.getUint16(o,!1);if(o+=2,65505===a){if(1165519206!==r.getUint32(o+=2,!1))return n.resolve(t);var s=18761===r.getUint16(o+=6,!1);o+=r.getUint32(o+4,s);var u=r.getUint16(o,s);o+=2;for(var l=0;u>l;l++)if(274===r.getUint16(o+12*l,s)){var c=r.getUint16(o+12*l+8,s);return c>=2&&8>=c&&(r.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+=r.getUint16(o,!1)}}return n.resolve(t)},n.promise},n.applyExifRotation=function(e){if(0!==e.type.indexOf("image/jpeg"))return n.emptyPromise(e);var r=t.defer();return n.readOrientation(e).then(function(t){return t.orientation<2||t.orientation>8?r.resolve(e):void n.dataUrl(e,!0).then(function(i){var o=document.createElement("canvas"),a=document.createElement("img");a.onload=function(){try{o.width=t.orientation>4?a.height:a.width,o.height=t.orientation>4?a.width:a.height;var i=o.getContext("2d");(function(e,t,n,r){switch(t){case 2:return e.transform(-1,0,0,1,n,0);case 3:return e.transform(-1,0,0,-1,n,r);case 4:return e.transform(1,0,0,-1,0,r);case 5:return e.transform(0,1,1,0,0,0);case 6:return e.transform(0,1,-1,0,r,0);case 7:return e.transform(0,-1,-1,0,r,n);case 8:e.transform(0,-1,1,0,0,n)}})(i,t.orientation,a.width,a.height),i.drawImage(a,0,0);var s=o.toDataURL(e.type||"image/WebP",.934);s=n.restoreExif(function(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,i=0;r>i;i++)t+=String.fromCharCode(n[i]);return window.btoa(t)}(t.fixedArrayBuffer),s);var u=n.dataUrltoBlob(s,e.name);r.resolve(u)}catch(e){return r.reject(e)}},a.onerror=function(){r.reject()},a.src=i},function(e){r.reject(e)})},function(e){r.reject(e)}),r.promise},n.restoreExif=function(e,t){var n={KEY_STR:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode64:function(e){var t,n,r,i,o,a="",s="",u="",l=0;do{r=(t=e[l++])>>2,i=(3&t)<<4|(n=e[l++])>>4,o=(15&n)<<2|(s=e[l++])>>6,u=63&s,isNaN(n)?o=u=64:isNaN(s)&&(u=64),a=a+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(u),t=n=s="",r=i=o=u=""}while(l<e.length);return a},restore:function(e,t){e.match("data:image/jpeg;base64,")&&(e=e.replace("data:image/jpeg;base64,",""));var n=this.decode64(e),r=this.slice2Segments(n),i=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(i)},exifManipulation:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)},getExifArray:function(e){for(var t,n=0;n<e.length;n++)if(255===(t=e[n])[0]&225===t[1])return t;return[]},insertExif:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),i=r.indexOf(255,3),o=r.slice(0,i),a=r.slice(i),s=o;return(s=s.concat(t)).concat(a)},slice2Segments:function(e){for(var t=0,n=[];!(255===e[t]&218===e[t+1]);){if(255===e[t]&216===e[t+1])t+=2;else{var r=t+(256*e[t+2]+e[t+3])+2,i=e.slice(t,r);n.push(i),t=r}if(t>e.length)break}return n},decode64:function(e){var t,n,r,i,o="",a="",s=0,u=[];/[^A-Za-z0-9\+\/\=]/g.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{t=this.KEY_STR.indexOf(e.charAt(s++))<<2|(r=this.KEY_STR.indexOf(e.charAt(s++)))>>4,n=(15&r)<<4|(i=this.KEY_STR.indexOf(e.charAt(s++)))>>2,o=(3&i)<<6|(a=this.KEY_STR.indexOf(e.charAt(s++))),u.push(t),64!==i&&u.push(n),64!==a&&u.push(o),t=n=o="",r=i=a=""}while(s<e.length);return u}};return n.restore(e,t)},n}]),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(e){}}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,r){e.__listeners[n]=r,t&&t.apply(this,arguments)}}};e("open",function(e){return function(t,r,i){n(this),this.__url=r;try{e.apply(this,[t,r,i])}catch(n){n.message.indexOf("Access is denied")>-1&&(this.__origError=n,e.apply(this,[t,"_fix_for_ie_crossdomain__",i]))}}}),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,r){if("__setXHR_"===t){n(this);var i=r(this);i instanceof Function&&i(this)}else this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[t]=r,e.apply(this,arguments)}}),e("send",function(e){return function(){var n=this;if(arguments[0]&&arguments[0].__isFileAPIShim){for(var r=arguments[0],i={url:n.__url,jsonp:!1,cache:!0,complete:function(e,r){e&&angular.isString(e)&&-1!==e.indexOf("#2174")&&(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!==r.status&&t(n,"status",function(){return 0===r.status&&e&&"abort"!==e?500:r.status}),void 0!==r.statusText&&t(n,"statusText",function(){return r.statusText}),t(n,"readyState",function(){return 4}),void 0!==r.response&&t(n,"response",function(){return r.response});var i=r.responseText||(e&&0===r.status&&"abort"!==e?e:void 0);t(n,"responseText",function(){return i}),t(n,"response",function(){return i}),e&&t(n,"err",function(){return e}),n.__fileApiXHR=r,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,data:{},files:{}},o=0;o<r.data.length;o++){var a=r.data[o];null!=a.val&&null!=a.val.name&&null!=a.val.size&&null!=a.val.type?i.files[a.key]=a.val:i.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(i)},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(){try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return!0}catch(e){if(void 0!==navigator.mimeTypes["application/x-shockwave-flash"])return!0}return!1}function t(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=e(),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var n,r,i,o,a,s=document.createElement("script"),u=document.getElementsByTagName("script");if(window.FileAPI.jsUrl)n=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)r=window.FileAPI.jsPath;else for(i=0;i<u.length;i++)if((o=(a=u[i].src).search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/))>-1){r=a.substring(0,o+1);break}null==FileAPI.staticPath&&(FileAPI.staticPath=r),s.setAttribute("src",n||r+"FileAPI.min.js"),document.getElementsByTagName("head")[0].appendChild(s)}FileAPI.ngfFixIE=function(n,r,i){if(!e())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';n.bind("mouseenter",function(){var e=r.parent();n.attr("disabled")?e&&e.removeClass("js-fileapi-wrapper"):(r.attr("__ngf_flash_")||(r.unbind("change"),r.unbind("click"),r.bind("change",function(e){o.apply(this,[e]),i.apply(this,[e])}),r.attr("__ngf_flash_","true")),e.addClass("js-fileapi-wrapper"),function(e){return"input"===e[0].tagName.toLowerCase()&&e.attr("type")&&"file"===e.attr("type").toLowerCase()}(n)||(e.css("position","absolute").css("top",t(n[0]).top+"px").css("left",t(n[0]).left+"px").css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("filter","alpha(opacity=0)").css("display",n.css("display")).css("overflow","hidden").css("z-index","900000").css("visibility","visible"),r.css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("position","absolute").css("top","0px").css("left","0px")))});var o=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 r=0;r<n.length;r++)n[r].call(e,t)},this.onabort=this.onerror=this.onload=this.onloadstart=this.onloadend=this.onprogress=null;var n=function(t,n){var r={type:t,target:e,loaded:n.loaded,total:n.total,error:n.error};return null!=n.result&&(r.target.result=n.result),r},r=function(r){var i;t||(t=!0,e.onloadstart&&e.onloadstart(n("loadstart",r))),"load"===r.type?(e.onloadend&&e.onloadend(n("loadend",r)),i=n("load",r),e.onload&&e.onload(i),e.dispatchEvent(i)):"progress"===r.type?(i=n("progress",r),e.onprogress&&e.onprogress(i),e.dispatchEvent(i)):(i=n("error",r),e.onerror&&e.onerror(i),e.dispatchEvent(i))};this.readAsDataURL=function(e){FileAPI.readAsDataURL(e,r)},this.readAsText=function(e){FileAPI.readAsText(e,r)}}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports&&"string"!=typeof exports.nodeName?module.exports=t():e.Croppie=t()}("undefined"!=typeof self?self:this,function(){"function"!=typeof Promise&&function(e){function t(e,t){return function(){e.apply(t,arguments)}}function n(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],s(e,t(i,this),t(o,this))}function r(e){var t=this;return null===this._state?void this._deferreds.push(e):void l(function(){var n=t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(n){return void e.reject(n)}e.resolve(r)}else(t._state?e.resolve:e.reject)(t._value)})}function i(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void s(t(n,e),t(i,this),t(o,this))}this._state=!0,this._value=e,a.call(this)}catch(e){o.call(this,e)}}function o(e){this._state=!1,this._value=e,a.call(this)}function a(){for(var e=0,t=this._deferreds.length;e<t;e++)r.call(this,this._deferreds[e]);this._deferreds=null}function s(e,t,n){var r=!1;try{e(function(e){r||(r=!0,t(e))},function(e){r||(r=!0,n(e))})}catch(e){if(r)return;r=!0,n(e)}}var u=setTimeout,l="function"==typeof setImmediate&&setImmediate||function(e){u(e,1)},c=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};n.prototype.catch=function(e){return this.then(null,e)},n.prototype.then=function(e,t){var i=this;return new n(function(n,o){r.call(i,new function(e,t,n,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r}(e,t,n,o))})},n.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&c(arguments[0])?arguments[0]:arguments);return new n(function(t,n){function r(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(e){r(o,e)},n)}e[o]=a,0==--i&&t(e)}catch(a){n(a)}}if(0===e.length)return t([]);for(var i=e.length,o=0;o<e.length;o++)r(o,e[o])})},n.resolve=function(e){return e&&"object"==typeof e&&e.constructor===n?e:new n(function(t){t(e)})},n.reject=function(e){return new n(function(t,n){n(e)})},n.race=function(e){return new n(function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)})},n._setImmediateFn=function(e){l=e},"undefined"!=typeof module&&module.exports?module.exports=n:e.Promise||(e.Promise=n)}(this),"function"!=typeof window.CustomEvent&&function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){for(var r=atob(this.toDataURL(t,n).split(",")[1]),i=r.length,o=new Uint8Array(i),a=0;a<i;a++)o[a]=r.charCodeAt(a);e(new Blob([o],{type:t||"image/png"}))}});var e,t,n,r=["Webkit","Moz","ms"],i=document.createElement("div").style,o=[1,8,3,6],a=[2,7,4,5];function s(e){if(e in i)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=r.length;n--;)if((e=r[n]+t)in i)return e}function u(e,t){for(var n in e=e||{},t)t[n]&&t[n].constructor&&t[n].constructor===Object?(e[n]=e[n]||{},u(e[n],t[n])):e[n]=t[n];return e}function l(e){return u({},e)}function c(e){if("createEvent"in document){var t=document.createEvent("HTMLEvents");t.initEvent("change",!1,!0),e.dispatchEvent(t)}else e.fireEvent("onchange")}function f(e,t,n){if("string"==typeof t){var r=t;(t={})[r]=n}for(var i in t)e.style[i]=t[i]}function d(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function h(e,t){for(var n in t)e.setAttribute(n,t[n])}function p(e){return parseInt(e,10)}function m(e,t){var n=e.naturalWidth,r=e.naturalHeight,i=t||y(e);if(i&&5<=i){var o=n;n=r,r=o}return{width:n,height:r}}t=s("transform"),e=s("transformOrigin"),n=s("userSelect");var $={translate3d:{suffix:", 0px"},translate:{suffix:""}},g=function(e,t,n){this.x=parseFloat(e),this.y=parseFloat(t),this.scale=parseFloat(n)};g.parse=function(e){return e.style?g.parse(e.style[t]):-1<e.indexOf("matrix")||-1<e.indexOf("none")?g.fromMatrix(e):g.fromString(e)},g.fromMatrix=function(e){var t=e.substring(7).split(",");return t.length&&"none"!==e||(t=[1,0,0,1,0,0]),new g(p(t[4]),p(t[5]),parseFloat(t[0]))},g.fromString=function(e){var t=e.split(") "),n=t[0].substring(N.globals.translate.length+1).split(","),r=1<t.length?t[1].substring(6):1,i=1<n.length?n[0]:0,o=1<n.length?n[1]:0;return new g(i,o,r)},g.prototype.toString=function(){var e=$[N.globals.translate].suffix||"";return N.globals.translate+"("+this.x+"px, "+this.y+"px"+e+") scale("+this.scale+")"};var v=function(t){if(!t||!t.style[e])return this.x=0,void(this.y=0);var n=t.style[e].split(" ");this.x=parseFloat(n[0]),this.y=parseFloat(n[1])};function y(e){return e.exifdata&&e.exifdata.Orientation?p(e.exifdata.Orientation):1}function b(e,t,n){var r=t.width,i=t.height,o=e.getContext("2d");switch(e.width=t.width,e.height=t.height,o.save(),n){case 2:o.translate(r,0),o.scale(-1,1);break;case 3:o.translate(r,i),o.rotate(180*Math.PI/180);break;case 4:o.translate(0,i),o.scale(1,-1);break;case 5:e.width=i,e.height=r,o.rotate(90*Math.PI/180),o.scale(1,-1);break;case 6:e.width=i,e.height=r,o.rotate(90*Math.PI/180),o.translate(0,-i);break;case 7:e.width=i,e.height=r,o.rotate(-90*Math.PI/180),o.translate(-r,i),o.scale(1,-1);break;case 8:e.width=i,e.height=r,o.translate(0,r),o.rotate(-90*Math.PI/180)}o.drawImage(t,0,0,r,i),o.restore()}function w(){return this.options.enableExif&&window.EXIF}function x(e){if(this.options.enableZoom){var t=this.elements.zoomer,n=R(e,4);t.value=Math.max(parseFloat(t.min),Math.min(parseFloat(t.max),n)).toString()}}function C(n){var r=this,i=r._currentZoom,o=r.elements.preview.getBoundingClientRect(),a=r.elements.viewport.getBoundingClientRect(),s=g.parse(r.elements.preview.style[t]),u=new v(r.elements.preview),l=a.top-o.top+a.height/2,c=a.left-o.left+a.width/2,d={},h={};if(n){var p=u.x,m=u.y,$=s.x,y=s.y;d.y=p,d.x=m,s.y=$,s.x=y}else d.y=l/i,d.x=c/i,h.y=(d.y-u.y)*(1-i),h.x=(d.x-u.x)*(1-i),s.x-=h.x,s.y-=h.y;var b={};b[e]=d.x+"px "+d.y+"px",b[t]=s.toString(),f(r.elements.preview,b)}function A(){if(this.elements){var e=this.elements.boundary.getBoundingClientRect(),t=this.elements.preview.getBoundingClientRect();f(this.elements.overlay,{width:t.width+"px",height:t.height+"px",top:t.top-e.top+"px",left:t.left-e.left+"px"})}}v.prototype.toString=function(){return this.x+"px "+this.y+"px"};var S,E,k=(S=A,500,function(){var e=this,t=arguments;clearTimeout(E),E=setTimeout(function(){E=null,S.apply(e,t)},500)});function _(){var e,t=this,n=t.get();O.call(t)&&(t.options.update.call(t,n),t.$&&"undefined"==typeof Prototype?t.$(t.element).trigger("update.croppie",n):(window.CustomEvent?e=new CustomEvent("update",{detail:n}):(e=document.createEvent("CustomEvent")).initCustomEvent("update",!0,!0,n),t.element.dispatchEvent(e)))}function O(){return 0<this.elements.preview.offsetHeight&&0<this.elements.preview.offsetWidth}function M(){var n,r=this,i={},o=r.elements.preview,a=new g(0,0,1),s=new v;O.call(r)&&!r.data.bound&&(r.data.bound=!0,i[t]=a.toString(),i[e]=s.toString(),i.opacity=1,f(o,i),n=r.elements.preview.getBoundingClientRect(),r._originalImageWidth=n.width,r._originalImageHeight=n.height,r.data.orientation=y(r.elements.img),r.options.enableZoom?T.call(r,!0):r._currentZoom=1,a.scale=r._currentZoom,i[t]=a.toString(),f(o,i),r.data.points.length?function(n){if(4!==n.length)throw"Croppie - Invalid number of points supplied: "+n;var r=this,i=n[2]-n[0],o=r.elements.viewport.getBoundingClientRect(),a=r.elements.boundary.getBoundingClientRect(),s=o.left-a.left,u=o.top-a.top,l=o.width/i,c=n[1],d=n[0],h=-1*n[1]+u,p=-1*n[0]+s,m={};m[e]=d+"px "+c+"px",m[t]=new g(p,h,l).toString(),f(r.elements.preview,m),x.call(r,l),r._currentZoom=l}.call(r,r.data.points):function(){var e=this,n=e.elements.preview.getBoundingClientRect(),r=e.elements.viewport.getBoundingClientRect(),i=e.elements.boundary.getBoundingClientRect(),o=r.left-i.left,a=r.top-i.top,s=o-(n.width-r.width)/2,u=a-(n.height-r.height)/2,l=new g(s,u,e._currentZoom);f(e.elements.preview,t,l.toString())}.call(r),C.call(r),A.call(r))}function T(e){var t,n,r,i,o=this,a=Math.max(o.options.minZoom,0)||0,s=o.options.maxZoom||1.5,u=o.elements.zoomer,l=parseFloat(u.value),f=o.elements.boundary.getBoundingClientRect(),d=m(o.elements.img,o.data.orientation),h=o.elements.viewport.getBoundingClientRect();o.options.enforceBoundary&&(r=h.width/d.width,i=h.height/d.height,a=Math.max(r,i)),s<=a&&(s=a+1),u.min=R(a,4),u.max=R(s,4),!e&&(l<u.min||l>u.max)?x.call(o,l<u.min?u.min:u.max):e&&(n=Math.max(f.width/d.width,f.height/d.height),t=null!==o.data.boundZoom?o.data.boundZoom:n,x.call(o,t)),c(u)}function D(e){var t=e.points,n=p(t[0]),r=p(t[1]),i=p(t[2])-n,o=p(t[3])-r,a=e.circle,s=document.createElement("canvas"),u=s.getContext("2d"),l=e.outputWidth||i,c=e.outputHeight||o;s.width=l,s.height=c,e.backgroundColor&&(u.fillStyle=e.backgroundColor,u.fillRect(0,0,l,c));var f=n,d=r,h=i,m=o,$=0,g=0,v=l,y=c;return n<0&&(f=0,$=Math.abs(n)/i*l),h+f>this._originalImageWidth&&(v=(h=this._originalImageWidth-f)/i*l),r<0&&(d=0,g=Math.abs(r)/o*c),m+d>this._originalImageHeight&&(y=(m=this._originalImageHeight-d)/o*c),u.drawImage(this.elements.preview,f,d,h,m,$,g,v,y),a&&(u.fillStyle="#fff",u.globalCompositeOperation="destination-in",u.beginPath(),u.arc(s.width/2,s.height/2,s.width/2,0,2*Math.PI,!0),u.closePath(),u.fill()),s}function P(e,t){var n,r,i,o,a=this,s=[],u=null,l=w.call(a);if("string"==typeof e)n=e,e={};else if(Array.isArray(e))s=e.slice();else{if(void 0===e&&a.data.url)return M.call(a),_.call(a),null;n=e.url,s=e.points||[],u=void 0===e.zoom?null:e.zoom}return a.data.bound=!1,a.data.url=n||a.data.url,a.data.boundZoom=u,(r=n,i=l,o=new Image,o.style.opacity="0",new Promise(function(e,t){function n(){o.style.opacity="1",setTimeout(function(){e(o)},1)}o.removeAttribute("crossOrigin"),r.match(/^https?:\/\/|^\/\//)&&o.setAttribute("crossOrigin","anonymous"),o.onload=function(){i?EXIF.getData(o,function(){n()}):n()},o.onerror=function(e){o.style.opacity=1,setTimeout(function(){t(e)},1)},o.src=r})).then(function(n){if(function(e){this.elements.img.parentNode&&(Array.prototype.forEach.call(this.elements.img.classList,function(t){e.classList.add(t)}),this.elements.img.parentNode.replaceChild(e,this.elements.img),this.elements.preview=e),this.elements.img=e}.call(a,n),s.length)a.options.relative&&(s=[s[0]*n.naturalWidth/100,s[1]*n.naturalHeight/100,s[2]*n.naturalWidth/100,s[3]*n.naturalHeight/100]);else{var r,i,o=m(n),u=a.elements.viewport.getBoundingClientRect(),l=u.width/u.height;l<o.width/o.height?r=(i=o.height)*l:(r=o.width,i=o.height/l);var c=(o.width-r)/2,f=(o.height-i)/2,d=c+r,h=f+i;a.data.points=[c,f,d,h]}a.data.points=s.map(function(e){return parseFloat(e)}),a.options.useCanvas&&function(e){var t=this.elements.canvas,n=this.elements.img;t.getContext("2d").clearRect(0,0,t.width,t.height),t.width=n.width,t.height=n.height,b(t,n,this.options.enableOrientation&&e||y(n))}.call(a,e.orientation),M.call(a),_.call(a),t&&t()})}function R(e,t){return parseFloat(e).toFixed(t||0)}function I(){var e=this,t=e.elements.preview.getBoundingClientRect(),n=e.elements.viewport.getBoundingClientRect(),r=n.left-t.left,i=n.top-t.top,o=(n.width-e.elements.viewport.offsetWidth)/2,a=(n.height-e.elements.viewport.offsetHeight)/2,s=r+e.elements.viewport.offsetWidth+o,u=i+e.elements.viewport.offsetHeight+a,l=e._currentZoom;(l===1/0||isNaN(l))&&(l=1);var c=e.options.enforceBoundary?0:Number.NEGATIVE_INFINITY;return r=Math.max(c,r/l),i=Math.max(c,i/l),s=Math.max(c,s/l),u=Math.max(c,u/l),{points:[R(r),R(i),R(s),R(u)],zoom:l,orientation:e.data.orientation}}var F={type:"canvas",format:"png",quality:1},U=["jpeg","webp","png"];if(window.jQuery){var j=window.jQuery;j.fn.croppie=function(e){if("string"!=typeof e)return this.each(function(){var t=new N(this,e);(t.$=j)(this).data("croppie",t)});var t=Array.prototype.slice.call(arguments,1),n=j(this).data("croppie");return"get"===e?n.get():"result"===e?n.result.apply(n,t):"bind"===e?n.bind.apply(n,t):this.each(function(){var n=j(this).data("croppie");if(n){var r=n[e];if(!j.isFunction(r))throw"Croppie "+e+" method not found";r.apply(n,t),"destroy"===e&&j(this).removeData("croppie")}})}}function N(r,i){if(-1<r.className.indexOf("croppie-container"))throw new Error("Croppie: Can't initialize croppie more than once");if(this.element=r,this.options=u(l(N.defaults),i),"img"===this.element.tagName.toLowerCase()){var o=this.element;d(o,"cr-original-image"),h(o,{"aria-hidden":"true",alt:""});var a=document.createElement("div");this.element.parentNode.appendChild(a),a.appendChild(o),this.element=a,this.options.url=this.options.url||o.src}if(function(){var r,i,o,a,s,u,l=this,p=l.options.viewport.type?"cr-vp-"+l.options.viewport.type:null;l.options.useCanvas=l.options.enableOrientation||w.call(l),l.data={},l.elements={},r=l.elements.boundary=document.createElement("div"),o=l.elements.viewport=document.createElement("div"),i=l.elements.img=document.createElement("img"),a=l.elements.overlay=document.createElement("div"),l.options.useCanvas?(l.elements.canvas=document.createElement("canvas"),l.elements.preview=l.elements.canvas):l.elements.preview=i,d(r,"cr-boundary"),r.setAttribute("aria-dropeffect","none"),s=l.options.boundary.width,u=l.options.boundary.height,f(r,{width:s+(isNaN(s)?"":"px"),height:u+(isNaN(u)?"":"px")}),d(o,"cr-viewport"),p&&d(o,p),f(o,{width:l.options.viewport.width+"px",height:l.options.viewport.height+"px"}),o.setAttribute("tabindex",0),d(l.elements.preview,"cr-image"),h(l.elements.preview,{alt:"preview","aria-grabbed":"false"}),d(a,"cr-overlay"),l.element.appendChild(r),r.appendChild(l.elements.preview),r.appendChild(o),r.appendChild(a),d(l.element,"croppie-container"),l.options.customClass&&d(l.element,l.options.customClass),function(){var e,r,i,o,a,s=this,u=!1;function l(e,t){var n=s.elements.preview.getBoundingClientRect(),r=a.y+t,i=a.x+e;s.options.enforceBoundary?(o.top>n.top+t&&o.bottom<n.bottom+t&&(a.y=r),o.left>n.left+e&&o.right<n.right+e&&(a.x=i)):(a.y=r,a.x=i)}function d(e){s.elements.preview.setAttribute("aria-grabbed",e),s.elements.boundary.setAttribute("aria-dropeffect",e?"move":"none")}function h(t){if((void 0===t.button||0===t.button)&&(t.preventDefault(),!u)){if(u=!0,e=t.pageX,r=t.pageY,t.touches){var i=t.touches[0];e=i.pageX,r=i.pageY}d(u),a=g.parse(s.elements.preview),window.addEventListener("mousemove",p),window.addEventListener("touchmove",p),window.addEventListener("mouseup",m),window.addEventListener("touchend",m),document.body.style[n]="none",o=s.elements.viewport.getBoundingClientRect()}}function p(n){n.preventDefault();var o=n.pageX,u=n.pageY;if(n.touches){var d=n.touches[0];o=d.pageX,u=d.pageY}var h=o-e,p=u-r,m={};if("touchmove"===n.type&&1<n.touches.length){var $=n.touches[0],g=n.touches[1],v=Math.sqrt(($.pageX-g.pageX)*($.pageX-g.pageX)+($.pageY-g.pageY)*($.pageY-g.pageY));i||(i=v/s._currentZoom);var y=v/i;return x.call(s,y),void c(s.elements.zoomer)}l(h,p),m[t]=a.toString(),f(s.elements.preview,m),A.call(s),r=u,e=o}function m(){d(u=!1),window.removeEventListener("mousemove",p),window.removeEventListener("touchmove",p),window.removeEventListener("mouseup",m),window.removeEventListener("touchend",m),document.body.style[n]="",C.call(s),_.call(s),i=0}s.elements.overlay.addEventListener("mousedown",h),s.elements.viewport.addEventListener("keydown",function(e){var r,u,c;if(!e.shiftKey||38!==e.keyCode&&40!==e.keyCode){if(s.options.enableKeyMovement&&37<=e.keyCode&&e.keyCode<=40){e.preventDefault();var d=function(e){switch(e){case 37:return[1,0];case 38:return[0,1];case 39:return[-1,0];case 40:return[0,-1]}}(e.keyCode);a=g.parse(s.elements.preview),document.body.style[n]="none",o=s.elements.viewport.getBoundingClientRect(),c={},l((u=d)[0],u[1]),c[t]=a.toString(),f(s.elements.preview,c),A.call(s),document.body.style[n]="",C.call(s),_.call(s),i=0}}else r=38===e.keyCode?parseFloat(s.elements.zoomer.value)+parseFloat(s.elements.zoomer.step):parseFloat(s.elements.zoomer.value)-parseFloat(s.elements.zoomer.step),s.setZoom(r)}),s.elements.overlay.addEventListener("touchstart",h)}.call(this),l.options.enableZoom&&function(){var n=this,r=n.elements.zoomerWrap=document.createElement("div"),i=n.elements.zoomer=document.createElement("input");function o(){(function(n){var r=this,i=n?n.transform:g.parse(r.elements.preview),o=n?n.viewportRect:r.elements.viewport.getBoundingClientRect(),a=n?n.origin:new v(r.elements.preview);function s(){var n={};n[t]=i.toString(),n[e]=a.toString(),f(r.elements.preview,n)}if(r._currentZoom=n?n.value:r._currentZoom,i.scale=r._currentZoom,r.elements.zoomer.setAttribute("aria-valuenow",r._currentZoom),s(),r.options.enforceBoundary){var u=function(e){var t=this._currentZoom,n=e.width,r=e.height,i=this.elements.boundary.clientWidth/2,o=this.elements.boundary.clientHeight/2,a=this.elements.preview.getBoundingClientRect(),s=a.width,u=a.height,l=n/2,c=r/2,f=-1*(l/t-i),d=-1*(c/t-o),h=1/t*l,p=1/t*c;return{translate:{maxX:f,minX:f-(s*(1/t)-n*(1/t)),maxY:d,minY:d-(u*(1/t)-r*(1/t))},origin:{maxX:s*(1/t)-h,minX:h,maxY:u*(1/t)-p,minY:p}}}.call(r,o),l=u.translate,c=u.origin;i.x>=l.maxX&&(a.x=c.minX,i.x=l.maxX),i.x<=l.minX&&(a.x=c.maxX,i.x=l.minX),i.y>=l.maxY&&(a.y=c.minY,i.y=l.maxY),i.y<=l.minY&&(a.y=c.maxY,i.y=l.minY)}s(),k.call(r),_.call(r)}).call(n,{value:parseFloat(i.value),origin:new v(n.elements.preview),viewportRect:n.elements.viewport.getBoundingClientRect(),transform:g.parse(n.elements.preview)})}function a(e){var t,r;if("ctrl"===n.options.mouseWheelZoom&&!0!==e.ctrlKey)return 0;t=e.wheelDelta?e.wheelDelta/1200:e.deltaY?e.deltaY/1060:e.detail?e.detail/-60:0,r=n._currentZoom+t*n._currentZoom,e.preventDefault(),x.call(n,r),o.call(n)}d(r,"cr-slider-wrap"),d(i,"cr-slider"),i.type="range",i.step="0.0001",i.value="1",i.style.display=n.options.showZoomer?"":"none",i.setAttribute("aria-label","zoom"),n.element.appendChild(r),r.appendChild(i),n._currentZoom=1,n.elements.zoomer.addEventListener("input",o),n.elements.zoomer.addEventListener("change",o),n.options.mouseWheelZoom&&(n.elements.boundary.addEventListener("mousewheel",a),n.elements.boundary.addEventListener("DOMMouseScroll",a))}.call(l),l.options.enableResize&&function(){var e,t,r,i,o,a,s,u=this,l=document.createElement("div"),c=!1,h=50;function p(a){if((void 0===a.button||0===a.button)&&(a.preventDefault(),!c)){var s=u.elements.overlay.getBoundingClientRect();if(c=!0,t=a.pageX,r=a.pageY,e=-1!==a.currentTarget.className.indexOf("vertical")?"v":"h",i=s.width,o=s.height,a.touches){var l=a.touches[0];t=l.pageX,r=l.pageY}window.addEventListener("mousemove",m),window.addEventListener("touchmove",m),window.addEventListener("mouseup",$),window.addEventListener("touchend",$),document.body.style[n]="none"}}function m(n){var a=n.pageX,s=n.pageY;if(n.preventDefault(),n.touches){var c=n.touches[0];a=c.pageX,s=c.pageY}var d=a-t,p=s-r,m=u.options.viewport.height+p,$=u.options.viewport.width+d;"v"===e&&h<=m&&m<=o?(f(l,{height:m+"px"}),u.options.boundary.height+=p,f(u.elements.boundary,{height:u.options.boundary.height+"px"}),u.options.viewport.height+=p,f(u.elements.viewport,{height:u.options.viewport.height+"px"})):"h"===e&&h<=$&&$<=i&&(f(l,{width:$+"px"}),u.options.boundary.width+=d,f(u.elements.boundary,{width:u.options.boundary.width+"px"}),u.options.viewport.width+=d,f(u.elements.viewport,{width:u.options.viewport.width+"px"})),A.call(u),T.call(u),C.call(u),_.call(u),r=s,t=a}function $(){c=!1,window.removeEventListener("mousemove",m),window.removeEventListener("touchmove",m),window.removeEventListener("mouseup",$),window.removeEventListener("touchend",$),document.body.style[n]=""}d(l,"cr-resizer"),f(l,{width:this.options.viewport.width+"px",height:this.options.viewport.height+"px"}),this.options.resizeControls.height&&(d(a=document.createElement("div"),"cr-resizer-vertical"),l.appendChild(a)),this.options.resizeControls.width&&(d(s=document.createElement("div"),"cr-resizer-horisontal"),l.appendChild(s)),a&&(a.addEventListener("mousedown",p),a.addEventListener("touchstart",p)),s&&(s.addEventListener("mousedown",p),s.addEventListener("touchstart",p)),this.elements.boundary.appendChild(l)}.call(l)}.call(this),this.options.url){var s={url:this.options.url,points:this.options.points};delete this.options.url,delete this.options.points,P.call(this,s)}}return N.defaults={viewport:{width:100,height:100,type:"square"},boundary:{},orientationControls:{enabled:!0,leftClass:"",rightClass:""},resizeControls:{width:!0,height:!0},customClass:"",showZoomer:!0,enableZoom:!0,enableResize:!1,mouseWheelZoom:!0,enableExif:!1,enforceBoundary:!0,enableOrientation:!1,enableKeyMovement:!0,update:function(){}},N.globals={translate:"translate3d"},u(N.prototype,{bind:function(e,t){return P.call(this,e,t)},get:function(){var e=I.call(this),t=e.points;return this.options.relative&&(t[0]/=this.elements.img.naturalWidth/100,t[1]/=this.elements.img.naturalHeight/100,t[2]/=this.elements.img.naturalWidth/100,t[3]/=this.elements.img.naturalHeight/100),e},result:function(e){return function(e){var t=this,n=I.call(t),r=u(l(F),l(e)),i="string"==typeof e?e:r.type||"base64",o=r.size||"viewport",a=r.format,s=r.quality,c=r.backgroundColor,h="boolean"==typeof r.circle?r.circle:"circle"===t.options.viewport.type,p=t.elements.viewport.getBoundingClientRect(),m=p.width/p.height;return"viewport"===o?(n.outputWidth=p.width,n.outputHeight=p.height):"object"==typeof o&&(o.width&&o.height?(n.outputWidth=o.width,n.outputHeight=o.height):o.width?(n.outputWidth=o.width,n.outputHeight=o.width/m):o.height&&(n.outputWidth=o.height*m,n.outputHeight=o.height)),-1<U.indexOf(a)&&(n.format="image/"+a,n.quality=s),n.circle=h,n.url=t.data.url,n.backgroundColor=c,new Promise(function(e){switch(i.toLowerCase()){case"rawcanvas":e(D.call(t,n));break;case"canvas":case"base64":e(function(e){return D.call(this,e).toDataURL(e.format,e.quality)}.call(t,n));break;case"blob":(function(e){var t=this;return new Promise(function(n){D.call(t,e).toBlob(function(e){n(e)},e.format,e.quality)})}).call(t,n).then(e);break;default:e(function(e){var t=e.points,n=document.createElement("div"),r=document.createElement("img"),i=t[2]-t[0],o=t[3]-t[1];return d(n,"croppie-result"),n.appendChild(r),f(r,{left:-1*t[0]+"px",top:-1*t[1]+"px"}),r.src=e.url,f(n,{width:i+"px",height:o+"px"}),n}.call(t,n))}})}.call(this,e)},refresh:function(){return function(){M.call(this)}.call(this)},setZoom:function(e){x.call(this,e),c(this.elements.zoomer)},rotate:function(e){(function(e){if(!this.options.useCanvas||!this.options.enableOrientation)throw"Croppie: Cannot rotate without enableOrientation && EXIF.js included";var t,n,r,i,s,u=this,l=u.elements.canvas;u.data.orientation=(t=u.data.orientation,n=e,i=(r=-1<o.indexOf(t)?o:a).indexOf(t),s=n/90%r.length,r[(r.length+i+s%r.length)%r.length]),b(l,u.elements.img,u.data.orientation),C.call(u,!0),T.call(u)}).call(this,e)},destroy:function(){return function(){var e,t,n=this;n.element.removeChild(n.elements.boundary),t="croppie-container",(e=n.element).classList?e.classList.remove(t):e.className=e.className.replace(t,""),n.options.enableZoom&&n.element.removeChild(n.elements.zoomerWrap),delete n.elements}.call(this)}}),N}),angular.module("angularCroppie",[]).component("croppie",{bindings:{src:"<",ngModel:"=",viewportW:"=",viewportH:"=",outputW:"=",outputH:"=",onUpdate:"&",options:"<"},controller:["$scope","$element",function(e,t){var n=this;this.$onInit=function(){var r=angular.extend({viewport:{width:n.viewportW||200,height:n.viewportH||200}},n.options);r.update=function(){i.result({type:"canvas",size:{width:n.outputW||n.viewportW,height:n.outputH||n.viewportH}}).then(function(t){e.$apply(function(){n.ngModel=t}),n.onUpdate&&n.onUpdate()})};var i=new Croppie(t[0],r);n.$onChanges=function(e){var t=e.src&&e.src.currentValue;t&&i.bind({url:t})}}}]});