public/assets/javascripts.js in engine2-1.0.2 vs public/assets/javascripts.js in engine2-1.0.3
- old
+ new
@@ -1,13 +1,13 @@
-!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(r){}}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(o){o.message.indexOf("Access is denied")>-1&&(this.__origError=o,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){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};i.data={},i.files={};for(var 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(e){return"input"===e[0].tagName.toLowerCase()&&e.attr("type")&&"file"===e.attr("type").toLowerCase()}function t(){try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(e)return!0}catch(t){if(void 0!==navigator.mimeTypes["application/x-shockwave-flash"])return!0}return!1}function n(e){var t=0,n=0;if(window.jQuery)return jQuery(e).offset();if(e.offsetParent)do t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent;while(e);return{left:t,top:n}}if(FileAPI.shouldLoad){if(FileAPI.hasFlash=t(),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var r,i,o,a,s,u=document.createElement("script"),l=document.getElementsByTagName("script");if(window.FileAPI.jsUrl)r=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)i=window.FileAPI.jsPath;else for(o=0;o<l.length;o++)if(s=l[o].src,a=s.search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/),a>-1){i=s.substring(0,a+1);break}null==FileAPI.staticPath&&(FileAPI.staticPath=i),u.setAttribute("src",r||i+"FileAPI.min.js"),document.getElementsByTagName("head")[0].appendChild(u)}FileAPI.ngfFixIE=function(r,i,o){if(!t())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';var a=function(){var t=i.parent();r.attr("disabled")?t&&t.removeClass("js-fileapi-wrapper"):(i.attr("__ngf_flash_")||(i.unbind("change"),i.unbind("click"),i.bind("change",function(e){s.apply(this,[e]),o.apply(this,[e])}),i.attr("__ngf_flash_","true")),t.addClass("js-fileapi-wrapper"),e(r)||(t.css("position","absolute").css("top",n(r[0]).top+"px").css("left",n(r[0]).left+"px").css("width",r[0].offsetWidth+"px").css("height",r[0].offsetHeight+"px").css("filter","alpha(opacity=0)").css("display",r.css("display")).css("overflow","hidden").css("z-index","900000").css("visibility","visible"),i.css("width",r[0].offsetWidth+"px").css("height",r[0].offsetHeight+"px").css("position","absolute").css("top","0px").css("left","0px")))};r.bind("mouseenter",a);var s=function(e){for(var t=FileAPI.getFiles(e),n=0;n<t.length;n++)void 0===t[n].size&&(t[n].size=0),void 0===t[n].name&&(t[n].name="file"),void 0===t[n].type&&(t[n].type="undefined");e.target||(e.target={}),e.target.files=t,e.target.files!==t&&(e.__files_=t),(e.__files_||e.target.files).item=function(t){return(e.__files_||e.target.files)[t]||null}}},FileAPI.disableFileInput=function(e,t){t?e.removeClass("js-fileapi-wrapper"):e.addClass("js-fileapi-wrapper")}}}(),window.FileReader||(window.FileReader=function(){var e=this,t=!1;this.listeners={},this.addEventListener=function(t,n){e.listeners[t]=e.listeners[t]||[],e.listeners[t].push(n)},this.removeEventListener=function(t,n){e.listeners[t]&&e.listeners[t].splice(e.listeners[t].indexOf(n),1)},this.dispatchEvent=function(t){var n=e.listeners[t.type];if(n)for(var 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){t||(t=!0,e.onloadstart&&e.onloadstart(n("loadstart",r)));var i;"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,n){"use strict";function r(e,t){return t=t||Error,function(){var n,r,i=2,o=arguments,a=o[0],s="["+(e?e+":":"")+a+"] ",u=o[1];for(s+=u.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1),n=t+i;return n<o.length?be(o[n]):e}),s+="\nhttp://errors.angularjs.org/1.5.3/"+(e?e+"/":"")+a,r=i,n="?";r<o.length;r++,n="&")s+=n+"p"+(r-i)+"="+encodeURIComponent(be(o[r]));return new t(s)}}function i(e){if(null==e||E(e))return!1;if(Wr(e)||S(e)||Pr&&e instanceof Pr)return!0;var t="length"in Object(e)&&e.length;return C(t)&&(t>=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function o(e,t,n){var r,a;if(e)if(_(e))for(r in e)"prototype"==r||"length"==r||"name"==r||e.hasOwnProperty&&!e.hasOwnProperty(r)||t.call(n,e[r],r,e);else if(Wr(e)||i(e)){var s="object"!=typeof e;for(r=0,a=e.length;a>r;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(x(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)Dr.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(){return++Br}function l(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function c(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;o>i;++i){var a=t[i];if(w(a)||_(a))for(var s=Object.keys(a),u=0,f=s.length;f>u;u++){var d=s[u],p=a[d];n&&w(p)?k(p)?e[d]=new Date(p.valueOf()):A(p)?e[d]=new RegExp(p):p.nodeName?e[d]=p.cloneNode(!0):I(p)?e[d]=p.clone():(w(e[d])||(e[d]=Wr(p)?[]:{}),c(e[d],[p],!0)):e[d]=p}}return l(e,r),e}function f(e){return c(e,Vr.call(arguments,1),!1)}function d(e){return c(e,Vr.call(arguments,1),!0)}function p(e){return parseInt(e,10)}function h(e,t){return f(Object.create(e),t)}function g(){}function m(e){return e}function $(e){return function(){return e}}function v(e){return _(e.toString)&&e.toString!==Lr}function y(e){return"undefined"==typeof e}function b(e){return"undefined"!=typeof e}function w(e){return null!==e&&"object"==typeof e}function x(e){return null!==e&&"object"==typeof e&&!Hr(e)}function S(e){return"string"==typeof e}function C(e){return"number"==typeof e}function k(e){return"[object Date]"===Lr.call(e)}function _(e){return"function"==typeof e}function A(e){return"[object RegExp]"===Lr.call(e)}function E(e){return e&&e.window===e}function D(e){return e&&e.$evalAsync&&e.$watch}function T(e){return"[object File]"===Lr.call(e)}function M(e){return"[object FormData]"===Lr.call(e)}function O(e){return"[object Blob]"===Lr.call(e)}function N(e){return"boolean"==typeof e}function F(e){return e&&_(e.then)}function P(e){return e&&C(e.length)&&Yr.test(Lr.call(e))}function j(e){return"[object ArrayBuffer]"===Lr.call(e)}function I(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function V(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}function R(e){return Tr(e.nodeName||e[0]&&e[0].nodeName)}function U(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function L(e,t){function r(e,t){var n,r=t.$$hashKey;if(Wr(e))for(var o=0,a=e.length;a>o;o++)t.push(i(e[o]));else if(x(e))for(n in e)t[n]=i(e[n]);else if(e&&"function"==typeof e.hasOwnProperty)for(n in e)e.hasOwnProperty(n)&&(t[n]=i(e[n]));else for(n in e)Dr.call(e,n)&&(t[n]=i(e[n]));return l(t,r),t}function i(e){if(!w(e))return e;var t=s.indexOf(e);if(-1!==t)return u[t];if(E(e)||D(e))throw zr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var i=!1,o=a(e);return o===n&&(o=Wr(e)?[]:Object.create(Hr(e)),i=!0),s.push(e),u.push(o),i?r(e,o):o}function a(e){switch(Lr.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(i(e.buffer));case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}return _(e.cloneNode)?e.cloneNode(!0):void 0}var s=[],u=[];if(t){if(P(t)||j(t))throw zr("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw zr("cpi","Can't copy! Source and destination are identical.");return Wr(t)?t.length=0:o(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),s.push(e),u.push(t),r(e,t)}return i(e)}function H(e,t){if(Wr(e)){t=t||[];for(var n=0,r=e.length;r>n;n++)t[n]=e[n]}else if(w(e)){t=t||{};for(var i in e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i])}return t||e}function z(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var n,r,i,o=typeof e,a=typeof t;if(o==a&&"object"==o){if(!Wr(e)){if(k(e))return k(t)?z(e.getTime(),t.getTime()):!1;if(A(e))return A(t)?e.toString()==t.toString():!1;if(D(e)||D(t)||E(e)||E(t)||Wr(t)||k(t)||A(t))return!1;i=$e();for(r in e)if("$"!==r.charAt(0)&&!_(e[r])){if(!z(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&b(t[r])&&!_(t[r]))return!1;return!0}if(!Wr(t))return!1;if((n=e.length)==t.length){for(r=0;n>r;r++)if(!z(e[r],t[r]))return!1;return!0}}return!1}function q(e,t,n){return e.concat(Vr.call(t,n))}function B(e,t){return Vr.call(e,t||0)}function W(e,t){var n=arguments.length>2?B(arguments,2):[];return!_(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,q(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function Y(e,r){var i=r;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?i=n:E(r)?i="$WINDOW":r&&t===r?i="$DOCUMENT":D(r)&&(i="$SCOPE"),i}function X(e,t){return y(e)?n:(C(t)||(t=t?2:null),JSON.stringify(e,Y,t))}function G(e){return S(e)?JSON.parse(e):e}function K(e,t){e=e.replace(Zr,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function J(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Z(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset(),i=K(t,r);return J(e,n*(i-r))}function Q(e){e=Pr(e).clone();try{e.empty()}catch(t){}var n=Pr("<div>").append(e).html();try{return e[0].nodeType===ii?Tr(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+Tr(t)})}catch(t){return Tr(n)}}function ee(e){try{return decodeURIComponent(e)}catch(t){}}function te(e){var t={};return o((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),-1!==n&&(r=e.substring(0,n),i=e.substring(n+1)),r=ee(r),b(r)&&(i=b(i)?ee(i):!0,Dr.call(t,r)?Wr(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function ne(e){var t=[];return o(e,function(e,n){Wr(e)?o(e,function(e){t.push(ie(n,!0)+(e===!0?"":"="+ie(e,!0)))}):t.push(ie(n,!0)+(e===!0?"":"="+ie(e,!0)))}),t.length?t.join("&"):""}function re(e){return ie(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ie(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 oe(e,t){var n,r,i=Qr.length;for(r=0;i>r;++r)if(n=Qr[r]+t,S(n=e.getAttribute(n)))return n;return null}function ae(e,t){var n,r,i={};o(Qr,function(t){var i=t+"app";!n&&e.hasAttribute&&e.hasAttribute(i)&&(n=e,r=e.getAttribute(i))}),o(Qr,function(t){var i,o=t+"app";!n&&(i=e.querySelector("["+o.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(o))}),n&&(i.strictDi=null!==oe(n,"strict-di"),t(n,r?[r]:[],i))}function se(n,r,i){w(i)||(i={});var a={strictDi:!1};i=f(a,i);var s=function(){if(n=Pr(n),n.injector()){var e=n[0]===t?"document":Q(n);throw zr("btstrpd","App Already Bootstrapped with this Element '{0}'",e.replace(/</,"<").replace(/>/,">"))}r=r||[],r.unshift(["$provide",function(e){e.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),r.unshift("ng");var o=it(r,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},u=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;return e&&u.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(u,"")),e&&!l.test(e.name)?s():(e.name=e.name.replace(l,""),qr.resumeBootstrap=function(e){return o(e,function(e){r.push(e)}),s()},void(_(qr.resumeDeferredBootstrap)&&qr.resumeDeferredBootstrap()))}function ue(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function le(e){var t=qr.element(e).injector();if(!t)throw zr("test","no injector found for element argument to getTestability");return t.get("$$testability")}function ce(e,t){return t=t||"_",e.replace(ei,function(e,n){return(n?t:"")+e.toLowerCase()})}function fe(){var t;if(!ti){var r=Jr();jr=y(r)?e.jQuery:r?e[r]:n,jr&&jr.fn.on?(Pr=jr,f(jr.fn,{scope:Si.scope,isolateScope:Si.isolateScope,controller:Si.controller,injector:Si.injector,inheritedData:Si.inheritedData}),t=jr.cleanData,jr.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)n=jr._data(r,"events"),n&&n.$destroy&&jr(r).triggerHandler("$destroy");t(e)}):Pr=Me,qr.element=Pr,ti=!0}}function de(e,t,n){if(!e)throw zr("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function pe(e,t,n){return n&&Wr(e)&&(e=e[e.length-1]),de(_(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function he(e,t){if("hasOwnProperty"===e)throw zr("badname","hasOwnProperty is not a valid {0} name",t)}function ge(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;a>s;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&_(e)?W(o,e):e}function me(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=Pr(Vr.call(e,0,i))),t.push(n));return t||e}function $e(){return Object.create(null)}function ve(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=r("$injector"),i=r("ng"),o=t(e,"angular",Object);return o.$$minErr=o.$$minErr||r,t(o,"module",function(){var e={};return function(r,o,a){var s=function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)};return s(r,"module"),o&&e.hasOwnProperty(r)&&(e[r]=null),t(e,r,function(){function e(e,t,n,r){return r||(r=i),function(){return r[n||"push"]([e,t,arguments]),c}}function t(e,t){return function(n,o){return o&&_(o)&&(o.$$moduleName=r),i.push([e,t,arguments]),c}}if(!o)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);var i=[],s=[],u=[],l=e("$injector","invoke","push",s),c={_invokeQueue:i,_configBlocks:s,_runBlocks:u,requires:o,name:r,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:t("$provide","decorator"),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),component:t("$compileProvider","component"),config:l,run:function(e){return u.push(e),this}};return a&&l(a),c})}})}function ye(e){var t=[];return JSON.stringify(e,function(e,n){if(n=Y(e,n),w(n)){if(t.indexOf(n)>=0)return"...";t.push(n)}return n})}function be(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):y(e)?"undefined":"string"!=typeof e?ye(e):e}function we(t){f(t,{bootstrap:se,copy:L,extend:f,merge:d,equals:z,element:Pr,forEach:o,injector:it,noop:g,bind:W,toJson:X,fromJson:G,identity:m,isUndefined:y,isDefined:b,isString:S,isFunction:_,isObject:w,isNumber:C,isElement:I,isArray:Wr,version:ui,isDate:k,lowercase:Tr,uppercase:Mr,callbacks:{counter:0},getTestability:le,$$minErr:r,$$csp:Kr,reloadWithDebugInfo:ue}),(Ir=ve(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Sn}),e.provider("$compile",ht).directive({a:To,input:Go,textarea:Go,form:Po,script:qa,select:Ya,style:Ga,option:Xa,ngBind:Zo,ngBindHtml:ea,ngBindTemplate:Qo,ngClass:na,ngClassEven:ia,ngClassOdd:ra,ngCloak:oa,ngController:aa,ngForm:jo,ngHide:Ia,ngIf:la,ngInclude:ca,ngInit:da,ngNonBindable:Ea,ngPluralize:Oa,ngRepeat:Na,ngShow:ja,ngStyle:Va,ngSwitch:Ra,ngSwitchWhen:Ua,ngSwitchDefault:La,ngOptions:Ma,ngTransclude:za,ngModel:ka,ngList:pa,ngChange:ta,pattern:Ja,ngPattern:Ja,required:Ka,ngRequired:Ka,minlength:Qa,ngMinlength:Qa,maxlength:Za,ngMaxlength:Za,ngValue:Jo,ngModelOptions:Aa}).directive({ngInclude:fa}).directive(Mo).directive(sa),e.provider({$anchorScroll:ot,$animate:Ri,$animateCss:Hi,$$animateJs:Ii,$$animateQueue:Vi,$$AnimateRunner:Li,$$animateAsyncRun:Ui,$browser:ft,$cacheFactory:dt,$controller:yt,$document:bt,$exceptionHandler:wt,$filter:In,$$forceReflow:Yi,$interpolate:Pt,$interval:jt,$http:Mt,$httpParamSerializer:St,$httpParamSerializerJQLike:Ct,$httpBackend:Nt,$xhrFactory:Ot,$location:Kt,$log:Jt,$parse:$n,$rootScope:xn,$q:vn,$$q:yn,$sce:An,$sceDelegate:_n,$sniffer:En,$templateCache:pt,$templateRequest:Dn,$$testability:Tn,$timeout:Mn,$window:Fn,$$rAF:wn,$$jqLite:Ze,$$HashMap:Ai,$$cookieReader:jn})}])}function xe(){return++ci}function Se(e){return e.replace(pi,function(e,t,n,r){return r?n.toUpperCase():n}).replace(hi,"Moz$1")}function Ce(e){return!vi.test(e)}function ke(e){var t=e.nodeType;return t===ni||!t||t===ai}function _e(e){for(var t in li[e.ng339])return!0;return!1}function Ae(e){for(var t=0,n=e.length;n>t;t++)Pe(e[t])}function Ee(e,t){var n,r,i,a,s=t.createDocumentFragment(),u=[];if(Ce(e))u.push(t.createTextNode(e));else{for(n=n||s.appendChild(t.createElement("div")),r=(yi.exec(e)||["",""])[1].toLowerCase(),i=wi[r]||wi._default,n.innerHTML=i[1]+e.replace(bi,"<$1></$2>")+i[2],a=i[0];a--;)n=n.lastChild;u=q(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",o(u,function(e){s.appendChild(e)}),s}function De(e,n){n=n||t;var r;return(r=$i.exec(e))?[n.createElement(r[1])]:(r=Ee(e,n))?r.childNodes:[]}function Te(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function Me(e){if(e instanceof Me)return e;var t;if(S(e)&&(e=Xr(e),t=!0),!(this instanceof Me)){if(t&&"<"!=e.charAt(0))throw mi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Me(e)}t?Le(this,De(e)):Le(this,e)}function Oe(e){return e.cloneNode(!0)}function Ne(e,t){if(t||Pe(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;i>r;r++)Pe(n[r])}function Fe(e,t,n,r){if(b(r))throw mi("offargs","jqLite#off() does not support the `selector` argument");var i=je(e),a=i&&i.events,s=i&&i.handle;if(s)if(t){var u=function(t){var r=a[t];b(n)&&U(r||[],n),b(n)&&r&&r.length>0||(di(e,t,s),delete a[t])};o(t.split(" "),function(e){u(e),gi[e]&&u(gi[e])})}else for(t in a)"$destroy"!==t&&di(e,t,s),delete a[t]}function Pe(e,t){var r=e.ng339,i=r&&li[r];if(i){if(t)return void delete i.data[t];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),Fe(e)),delete li[r],e.ng339=n}}function je(e,t){var r=e.ng339,i=r&&li[r];return t&&!i&&(e.ng339=r=xe(),i=li[r]={events:{},data:{},handle:n}),i}function Ie(e,t,n){if(ke(e)){var r=b(n),i=!r&&t&&!w(t),o=!t,a=je(e,!i),s=a&&a.data;if(r)s[t]=n;else{if(o)return s;if(i)return s&&s[t];f(s,t)}}}function Ve(e,t){return e.getAttribute?(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function Re(e,t){t&&e.setAttribute&&o(t.split(" "),function(t){e.setAttribute("class",Xr((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Xr(t)+" "," ")))})}function Ue(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(t.split(" "),function(e){e=Xr(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",Xr(n))}}function Le(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;n>r;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function He(e,t){return ze(e,"$"+(t||"ngController")+"Controller")}function ze(e,t,n){e.nodeType==ai&&(e=e.documentElement);for(var r=Wr(t)?t:[t];e;){for(var i=0,o=r.length;o>i;i++)if(b(n=Pr.data(e,r[i])))return n;e=e.parentNode||e.nodeType===si&&e.host}}function qe(e){for(Ne(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Be(e,t){t||Ne(e);var n=e.parentNode;n&&n.removeChild(e)}function We(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):Pr(n).on("load",t)}function Ye(e,t){var n=Ci[t.toLowerCase()];return n&&ki[R(e)]&&n}function Xe(e){return _i[e]}function Ge(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(y(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0};var s=i.specialHandlerWrapper||Ke;o>1&&(i=H(i));for(var u=0;o>u;u++)n.isImmediatePropagationStopped()||s(e,n,i[u])}};return n.elem=e,n}function Ke(e,t,n){n.call(e,t)}function Je(e,t,n){var r=t.relatedTarget;r&&(r===e||xi.call(e,r))||n.call(e,t)}function Ze(){this.$get=function(){return f(Me,{hasClass:function(e,t){return e.attr&&(e=e[0]),Ve(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Ue(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Re(e,t)}})}}function Qe(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"==r||"object"==r&&null!==e?e.$$hashKey=r+":"+(t||u)():r+":"+e}function et(e,t){if(t){var n=0;this.nextUid=function(){return++n}}o(e,this.put,this)}function tt(e){var t=e.toString().replace(Oi,""),n=t.match(Ei)||t.match(Di);return n}function nt(e){var t=tt(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function rt(e,t,n){var r,i,a;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw S(n)&&n||(n=e.name||nt(e)),Ni("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=tt(e),o(i[1].split(Ti),function(e){e.replace(Mi,function(e,t,n){r.push(n)})})}e.$inject=r}}else Wr(e)?(a=e.length-1,pe(e[a],"fn"),r=e.slice(0,a)):pe(e,"fn",!0);return r}function it(e,t){function r(e){return function(t,n){return w(t)?void o(t,s(e)):e(t,n)}}function i(e,t){if(he(e,"service"),(_(t)||Wr(t))&&(t=C.instantiate(t)),!t.$get)throw Ni("pget","Provider '{0}' must define $get factory method.",e);return x[e+m]=t}function a(e,t){return function(){var n=E.invoke(t,this);if(y(n))throw Ni("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function u(e,t,n){return i(e,{$get:n!==!1?a(e,t):t})}function l(e,t){return u(e,["$injector",function(e){return e.instantiate(t)}])}function c(e,t){return u(e,$(t),!1)}function f(e,t){he(e,"constant"),x[e]=t,k[e]=t}function d(e,t){var n=C.get(e+m),r=n.$get;n.$get=function(){var e=E.invoke(r,n);return E.invoke(t,null,{$delegate:e})}}function p(e){de(y(e)||Wr(e),"modulesToLoad","not an array");var t,n=[];return o(e,function(e){function r(e){var t,n;for(t=0,n=e.length;n>t;t++){var r=e[t],i=C.get(r[0]);i[r[1]].apply(i,r[2])}}if(!b.get(e)){b.put(e,!0);try{S(e)?(t=Ir(e),n=n.concat(p(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):_(e)?n.push(C.invoke(e)):Wr(e)?n.push(C.invoke(e)):pe(e,"module")}catch(i){throw Wr(e)&&(e=e[e.length-1]),i.message&&i.stack&&-1==i.stack.indexOf(i.message)&&(i=i.message+"\n"+i.stack),Ni("modulerr","Failed to instantiate module {0} due to:\n{1}",e,i.stack||i.message||i)}}}),n}function h(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===g)throw Ni("cdep","Circular dependency found: {0}",t+" <- "+v.join(" <- "));return e[t]}try{return v.unshift(t),e[t]=g,e[t]=n(t,r)}catch(i){throw e[t]===g&&delete e[t],i}finally{v.shift()}}function i(e,n,i){for(var o=[],a=it.$$annotate(e,t,i),s=0,u=a.length;u>s;s++){var l=a[s];if("string"!=typeof l)throw Ni("itkn","Incorrect injection token! Expected service name as string, got {0}",l);o.push(n&&n.hasOwnProperty(l)?n[l]:r(l,i))}return o}function o(e){return 11>=Fr?!1:"function"==typeof e&&/^(?:class\s|constructor\()/.test(Function.prototype.toString.call(e))}function a(e,t,n,r){"string"==typeof n&&(r=n,n=null);var a=i(e,n,r);return Wr(e)&&(e=e[e.length-1]),o(e)?(a.unshift(null),new(Function.prototype.bind.apply(e,a))):e.apply(t,a)}function s(e,t,n){var r=Wr(e)?e[e.length-1]:e,o=i(e,t,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))}return{invoke:a,instantiate:s,get:r,annotate:it.$$annotate,has:function(t){return x.hasOwnProperty(t+m)||e.hasOwnProperty(t)}}}t=t===!0;var g={},m="Provider",v=[],b=new et([],!0),x={$provide:{provider:r(i),factory:r(u),service:r(l),value:r(c),constant:r(f),decorator:d}},C=x.$injector=h(x,function(e,t){throw qr.isString(t)&&v.push(t),Ni("unpr","Unknown provider: {0}",v.join(" <- "))}),k={},A=h(k,function(e,t){var r=C.get(e+m,t);return E.invoke(r.$get,r,n,e)}),E=A;x["$injector"+m]={$get:$(A)};var D=p(e);return E=A.get("$injector"),E.strictDi=t,o(D,function(e){e&&E.invoke(e)}),E}function ot(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return Array.prototype.some.call(e,function(e){return"a"===R(e)?(t=e,!0):void 0}),t}function o(){var e=s.yOffset;if(_(e))e=e();else if(I(e)){var n=e[0],r=t.getComputedStyle(n);e="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else C(e)||(e=0);return e}function a(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function s(e){e=S(e)?e:n.hash();var t;e?(t=u.getElementById(e))?a(t):(t=i(u.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var u=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||We(function(){r.$evalAsync(s)})}),s}]}function at(e,t){return e||t?e?t?(Wr(e)&&(e=e.join(" ")),Wr(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function st(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===Pi)return n}}function ut(e){S(e)&&(e=e.split(" "));var t=$e();return o(e,function(e){e.length&&(t[e]=!0)}),t}function lt(e){return w(e)?e:{}}function ct(e,t,n,r){function i(e){try{e.apply(null,B(arguments,1))}finally{if($--,0===$)for(;v.length;)try{v.pop()()}catch(t){n.error(t)}}}function a(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}function s(){C=null,u(),l()}function u(){b=k(),b=y(b)?null:b,z(b,E)&&(b=E),E=b}function l(){x===c.url()&&w===b||(x=c.url(),w=b,o(_,function(e){e(c.url(),b)}))}var c=this,f=e.location,d=e.history,p=e.setTimeout,h=e.clearTimeout,m={};c.isMock=!1;var $=0,v=[];c.$$completeOutstandingRequest=i,c.$$incOutstandingRequestCount=function(){$++},c.notifyWhenNoOutstandingRequests=function(e){0===$?e():v.push(e)};var b,w,x=f.href,S=t.find("base"),C=null,k=r.history?function(){try{return d.state}catch(e){}}:g;u(),w=b,c.url=function(t,n,i){if(y(i)&&(i=null),f!==e.location&&(f=e.location),d!==e.history&&(d=e.history),t){var o=w===i;if(x===t&&(!r.history||o))return c;var s=x&&Lt(x)===Lt(t);return x=t,w=i,!r.history||s&&o?(s&&!C||(C=t),n?f.replace(t):s?f.hash=a(t):f.href=t,f.href!==t&&(C=t)):(d[n?"replaceState":"pushState"](i,"",t),u(),w=b),c}return C||f.href.replace(/%27/g,"'")},c.state=function(){return b};var _=[],A=!1,E=null;c.onUrlChange=function(t){return A||(r.history&&Pr(e).on("popstate",s),Pr(e).on("hashchange",s),A=!0),_.push(t),t},c.$$applicationDestroyed=function(){Pr(e).off("hashchange popstate",s)},c.$$checkUrlChange=l,c.baseHref=function(){var e=S.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""},c.defer=function(e,t){var n;return $++,n=p(function(){delete m[n],i(e)},t||0),m[n]=!0,n},c.defer.cancel=function(e){return m[e]?(delete m[e],h(e),i(g),!0):!1}}function ft(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new ct(e,r,t,n)}]}function dt(){this.$get=function(){function e(e,n){function i(e){e!=d&&(p?p==e&&(p=e.n):p=e,o(e.n,e.p),o(e,d),d=e,d.n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=f({},n,{id:e}),u=$e(),l=n&&n.capacity||Number.MAX_VALUE,c=$e(),d=null,p=null;return t[e]={put:function(e,t){if(!y(t)){if(l<Number.MAX_VALUE){var n=c[e]||(c[e]={key:e});i(n)}return e in u||a++,u[e]=t,a>l&&this.remove(p.key),t}},get:function(e){if(l<Number.MAX_VALUE){var t=c[e];if(!t)return;i(t)}return u[e]},remove:function(e){if(l<Number.MAX_VALUE){var t=c[e];if(!t)return;t==d&&(d=t.p),t==p&&(p=t.n),o(t.n,t.p),delete c[e]}e in u&&(delete u[e],a--)},removeAll:function(){u=$e(),a=0,c=$e(),d=p=null},destroy:function(){u=null,s=null,c=null,delete t[e]},info:function(){return f({},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 pt(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function ht(e,r){function i(e,t,n){var r=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,i={};return o(e,function(e,o){if(e in k)return void(i[o]=k[e]);var a=e.match(r);if(!a)throw zi("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,o,e,n?"controller bindings definition":"isolate scope definition");
-i[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o},a[4]&&(k[e]=i[o])}),i}function a(e,t){var n={isolateScope:null,bindToController:null};if(w(e.scope)&&(e.bindToController===!0?(n.bindToController=i(e.scope,t,!0),n.isolateScope={}):n.isolateScope=i(e.scope,t,!1)),w(e.bindToController)&&(n.bindToController=i(e.bindToController,t,!0)),w(n.bindToController)){var r=e.controller,o=e.controllerAs;if(!r)throw zi("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);if(!vt(r,o))throw zi("noident","Cannot bind to controller without identifier for directive '{0}'.",t)}return n}function u(e){var t=e.charAt(0);if(!t||t!==Tr(t))throw zi("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw zi("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}var l={},c="Directive",d=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,p=/(([\w\-]+)(?:\:([^;]+))?;?)/,v=V("ngSrc,ngSrcset,src,srcset"),x=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,C=/^(on[a-z]+|formaction)$/,k=$e();this.directive=function T(t,n){return he(t,"directive"),S(t)?(u(t),de(n,"directiveFactory"),l.hasOwnProperty(t)||(l[t]=[],e.factory(t+c,["$injector","$exceptionHandler",function(e,n){var r=[];return o(l[t],function(i,o){try{var a=e.invoke(i);_(a)?a={compile:$(a)}:!a.compile&&a.link&&(a.compile=$(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||t,a.require=a.require||a.controller&&a.name,a.restrict=a.restrict||"EA",a.$$moduleName=i.$$moduleName,r.push(a)}catch(s){n(s)}}),r}])),l[t].push(n)):o(t,s(T)),this},this.component=function(e,t){function n(e){function n(t){return _(t)||Wr(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var i=t.template||t.templateUrl?t.template:"";return{controller:r,controllerAs:vt(t.controller)||t.controllerAs||"$ctrl",template:n(i),templateUrl:n(t.templateUrl),transclude:t.transclude,scope:{},bindToController:t.bindings||{},restrict:"E",require:t.require}}var r=t.controller||g;return o(t,function(e,t){"$"===t.charAt(0)&&(n[t]=e,r[t]=e)}),n.$inject=["$injector"],this.directive(e,n)},this.aHrefSanitizationWhitelist=function(e){return b(e)?(r.aHrefSanitizationWhitelist(e),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return b(e)?(r.imgSrcSanitizationWhitelist(e),this):r.imgSrcSanitizationWhitelist()};var A=!0;this.debugInfoEnabled=function(e){return b(e)?(A=e,this):A};var E=10;this.onChangesTtl=function(e){return arguments.length?(E=e,this):E},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(e,r,i,s,u,$,b,k,T,M){function O(){try{if(!--be)throw me=n,zi("infchng","{0} $onChanges() iterations reached. Aborting!\n",E);b.$apply(function(){for(var e=0,t=me.length;t>e;++e)me[e]();me=n})}finally{be++}}function F(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;r>n;n++)i=o[n],this[i]=t[i]}else this.$attr={};this.$$element=e}function P(e,t,n){ye.innerHTML="<span "+t+">";var r=ye.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}function j(e,t){try{e.addClass(t)}catch(n){}}function I(e,n,r,i,o){e instanceof Pr||(e=Pr(e));for(var a=/\S+/,s=0,u=e.length;u>s;s++){var l=e[s];l.nodeType===ii&&l.nodeValue.match(a)&&Te(l,e[s]=t.createElement("span"))}var c=L(e,n,e,r,i,o);I.$$addScopeClass(e);var f=null;return function(t,n,r){de(t,"scope"),o&&o.needsNewScope&&(t=t.$parent.$new()),r=r||{};var i=r.parentBoundTranscludeFn,a=r.transcludeControllers,s=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),f||(f=V(s));var u;if(u="html"!==f?Pr(se(f,Pr("<div>").append(e).html())):n?Si.clone.call(e):e,a)for(var l in a)u.data("$"+l+"Controller",a[l].instance);return I.$$addScopeInfo(u,t),n&&n(u,t),c&&c(t,u,u,i),u}}function V(e){var t=e&&e[0];return t&&"foreignobject"!==R(t)&&Lr.call(t).match(/SVG/)?"svg":"html"}function L(e,t,r,i,o,a){function s(e,r,i,o){var a,s,u,l,c,f,d,p,m;if(h){var $=r.length;for(m=new Array($),c=0;c<g.length;c+=3)d=g[c],m[d]=r[d]}else m=r;for(c=0,f=g.length;f>c;)u=m[g[c++]],a=g[c++],s=g[c++],a?(a.scope?(l=e.$new(),I.$$addScopeInfo(Pr(u),l)):l=e,p=a.transcludeOnThisElement?H(e,a.transclude,o):!a.templateOnThisElement&&o?o:!o&&t?H(e,t):null,a(s,l,u,i,p)):s&&s(e,u.childNodes,n,o)}for(var u,l,c,f,d,p,h,g=[],m=0;m<e.length;m++)u=new F,l=q(e[m],[],u,0===m?i:n,o),c=l.length?G(l,e[m],u,t,r,null,[],[],a):null,c&&c.scope&&I.$$addScopeClass(u.$$element),d=c&&c.terminal||!(f=e[m].childNodes)||!f.length?null:L(f,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:t),(c||d)&&(g.push(m,c,d),p=!0,h=h||c),a=null;return p?s:null}function H(e,t,n){function r(r,i,o,a,s){return r||(r=e.$new(!1,s),r.$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=$e();for(var o in t.$$slots)t.$$slots[o]?i[o]=H(e,t.$$slots[o],n):i[o]=null;return r}function q(e,t,n,r,i){var o,a,s=e.nodeType,u=n.$attr;switch(s){case ni:ee(t,gt(R(e)),"E",r,i);for(var l,c,f,h,g,m,$=e.attributes,v=0,y=$&&$.length;y>v;v++){var b=!1,x=!1;l=$[v],c=l.name,g=Xr(l.value),h=gt(c),(m=ke.test(h))&&(c=c.replace(qi,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var C=h.match(_e);C&&te(C[1])&&(b=c,x=c.substr(0,c.length-5)+"end",c=c.substr(0,c.length-6)),f=gt(c.toLowerCase()),u[f]=c,!m&&n.hasOwnProperty(f)||(n[f]=g,Ye(e,f)&&(n[f]=!0)),le(e,t,g,f,m),ee(t,f,"A",r,i,b,x)}if(a=e.className,w(a)&&(a=a.animVal),S(a)&&""!==a)for(;o=p.exec(a);)f=gt(o[2]),ee(t,f,"C",r,i)&&(n[f]=Xr(o[3])),a=a.substr(o.index+o[0].length);break;case ii:if(11===Fr)for(;e.parentNode&&e.nextSibling&&e.nextSibling.nodeType===ii;)e.nodeValue=e.nodeValue+e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);ae(t,e.nodeValue);break;case oi:try{o=d.exec(e.nodeValue),o&&(f=gt(o[1]),ee(t,f,"M",r,i)&&(n[f]=Xr(o[2])))}catch(k){}}return t.sort(ie),t}function W(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw zi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType==ni&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0)}else r.push(e);return Pr(r)}function Y(e,t,n){return function(r,i,o,a,s){return i=W(i[0],t,n),e(r,i,o,a,s)}}function X(e,t,n,r,i,o){var a;return e?I(t,n,r,i,o):function(){return a||(a=I(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function G(e,t,r,a,s,u,l,c,d){function p(e,t,n,r){e&&(n&&(e=Y(e,n,r)),e.require=g.require,e.directiveName=m,(k===g||g.$$isolateScope)&&(e=pe(e,{isolateScope:!0})),l.push(e)),t&&(n&&(t=Y(t,n,r)),t.require=g.require,t.directiveName=m,(k===g||g.$$isolateScope)&&(t=pe(t,{isolateScope:!0})),c.push(t))}function h(e,i,a,s,u){function d(e,t,r,i){var o;if(D(e)||(i=r,r=t,t=e,e=n),O&&(o=v),r||(r=O?x.parent():x),!i)return u(e,t,o,r,U);var a=u.$$slots[i];if(a)return a(e,t,o,r,U);if(y(a))throw zi("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',i,Q(x))}var p,h,g,m,$,v,b,x,E,T,M;t===a?(E=r,x=r.$$element):(x=Pr(a),E=new F(x,r)),$=i,k?m=i.$new(!0):S&&($=i.$parent),u&&(b=d,b.$$boundTransclude=u,b.isSlotFilled=function(e){return!!u.$$slots[e]}),C&&(v=J(x,E,b,C,m,i,k)),k&&(I.$$addScopeInfo(x,m,!0,!(A&&(A===k||A===k.$$originalDirective))),I.$$addScopeClass(x,!0),m.$$isolateBindings=k.$$isolateBindings,T=ge(i,E,m,m.$$isolateBindings,k),T&&m.$on("$destroy",T));for(var N in v){var P=C[N],j=v[N],V=P.$$bindings.bindToController;j.identifier&&V&&(M=ge($,E,j.instance,V,P));var R=j();R!==j.instance&&(j.instance=R,x.data("$"+P.name+"Controller",R),M&&M(),M=ge($,E,j.instance,V,P))}for(o(C,function(e,t){var n=e.require;e.bindToController&&!Wr(n)&&w(n)&&f(v[t].instance,K(t,n,x,v))}),o(v,function(e){var t=e.instance;_(t.$onInit)&&t.$onInit(),_(t.$onDestroy)&&$.$on("$destroy",function(){t.$onDestroy()})}),p=0,h=l.length;h>p;p++)g=l[p],he(g,g.isolateScope?m:i,x,E,g.require&&K(g.directiveName,g.require,x,v),b);var U=i;for(k&&(k.template||null===k.templateUrl)&&(U=m),e&&e(U,a.childNodes,n,u),p=c.length-1;p>=0;p--)g=c[p],he(g,g.isolateScope?m:i,x,E,g.require&&K(g.directiveName,g.require,x,v),b);o(v,function(e){var t=e.instance;_(t.$postLink)&&t.$postLink()})}d=d||{};for(var g,m,$,v,b,x=-Number.MAX_VALUE,S=d.newScopeDirective,C=d.controllerDirectives,k=d.newIsolateScopeDirective,A=d.templateDirective,E=d.nonTlbTranscludeDirective,T=!1,M=!1,O=d.hasElementTranscludeDirective,N=r.$$element=Pr(t),P=u,j=a,V=!1,U=!1,L=0,H=e.length;H>L;L++){g=e[L];var z=g.$$start,G=g.$$end;if(z&&(N=W(t,z,G)),$=n,x>g.priority)break;if((b=g.scope)&&(g.templateUrl||(w(b)?(oe("new/isolated scope",k||S,g,N),k=g):oe("new/isolated scope",k,g,N)),S=S||g),m=g.name,!V&&(g.replace&&(g.templateUrl||g.template)||g.transclude&&!g.$$tlb)){for(var ee,te=L+1;ee=e[te++];)if(ee.transclude&&!ee.$$tlb||ee.replace&&(ee.templateUrl||ee.template)){U=!0;break}V=!0}if(!g.templateUrl&&g.controller&&(b=g.controller,C=C||$e(),oe("'"+m+"' controller",C[m],g,N),C[m]=g),b=g.transclude)if(T=!0,g.$$tlb||(oe("transclusion",E,g,N),E=g),"element"==b)O=!0,x=g.priority,$=N,N=r.$$element=Pr(I.$$createComment(m,r[m])),t=N[0],fe(s,B($),t),$[0].$$parentNode=$[0].parentNode,j=X(U,$,a,x,P&&P.name,{nonTlbTranscludeDirective:E});else{var ie=$e();if($=Pr(Oe(t)).contents(),w(b)){$=[];var ae=$e(),ue=$e();o(b,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,ae[e]=t,ie[t]=null,ue[t]=n}),o(N.contents(),function(e){var t=ae[gt(R(e))];t?(ue[t]=!0,ie[t]=ie[t]||[],ie[t].push(e)):$.push(e)}),o(ue,function(e,t){if(!e)throw zi("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var le in ie)ie[le]&&(ie[le]=X(U,ie[le],a))}N.empty(),j=X(U,$,a,n,n,{needsNewScope:g.$$isolateScope||g.$$newScope}),j.$$slots=ie}if(g.template)if(M=!0,oe("template",A,g,N),A=g,b=_(g.template)?g.template(N,r):g.template,b=Se(b),g.replace){if(P=g,$=Ce(b)?[]:$t(se(g.templateNamespace,Xr(b))),t=$[0],1!=$.length||t.nodeType!==ni)throw zi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m,"");fe(s,N,t);var ce={$attr:{}},de=q(t,[],ce),me=e.splice(L+1,e.length-(L+1));(k||S)&&Z(de,k,S),e=e.concat(de).concat(me),ne(r,ce),H=e.length}else N.html(b);if(g.templateUrl)M=!0,oe("template",A,g,N),A=g,g.replace&&(P=g),h=re(e.splice(L,e.length-L),N,r,s,T&&j,l,c,{controllerDirectives:C,newScopeDirective:S!==g&&S,newIsolateScopeDirective:k,templateDirective:A,nonTlbTranscludeDirective:E}),H=e.length;else if(g.compile)try{v=g.compile(N,r,j),_(v)?p(null,v,z,G):v&&p(v.pre,v.post,z,G)}catch(ve){i(ve,Q(N))}g.terminal&&(h.terminal=!0,x=Math.max(x,g.priority))}return h.scope=S&&S.scope===!0,h.transcludeOnThisElement=T,h.templateOnThisElement=M,h.transclude=j,d.hasElementTranscludeDirective=O,h}function K(e,t,n,r){var i;if(S(t)){var a=t.match(x),s=t.substring(a[0].length),u=a[1]||a[3],l="?"===a[2];if("^^"===u?n=n.parent():(i=r&&r[s],i=i&&i.instance),!i){var c="$"+s+"Controller";i=u?n.inheritedData(c):n.data(c)}if(!i&&!l)throw zi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(Wr(t)){i=[];for(var f=0,d=t.length;d>f;f++)i[f]=K(e,t[f],n,r)}else w(t)&&(i={},o(t,function(t,o){i[o]=K(e,t,n,r)}));return i||null}function J(e,t,n,r,i,o,a){var s=$e();for(var u in r){var l=r[u],c={$scope:l===a||l.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},f=l.controller;"@"==f&&(f=t[l.name]);var d=$(f,c,!0,l.controllerAs);s[l.name]=d,e.data("$"+l.name+"Controller",d.instance)}return s}function Z(e,t,n){for(var r=0,i=e.length;i>r;r++)e[r]=h(e[r],{$$isolateScope:t,$$newScope:n})}function ee(t,n,r,o,s,u,f){if(n===s)return null;var d=null;if(l.hasOwnProperty(n))for(var p,g=e.get(n+c),m=0,$=g.length;$>m;m++)try{if(p=g[m],(y(o)||o>p.priority)&&-1!=p.restrict.indexOf(r)){if(u&&(p=h(p,{$$start:u,$$end:f})),!p.$$bindings){var v=p.$$bindings=a(p,p.name);w(v.isolateScope)&&(p.$$isolateBindings=v.isolateScope)}t.push(p),d=p}}catch(b){i(b)}return d}function te(t){if(l.hasOwnProperty(t))for(var n,r=e.get(t+c),i=0,o=r.length;o>i;i++)if(n=r[i],n.multiElement)return!0;return!1}function ne(e,t){var n=t.$attr,r=e.$attr,i=e.$$element;o(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,o){"class"==o?(j(i,t),e["class"]=(e["class"]?e["class"]+" ":"")+t):"style"==o?(i.attr("style",i.attr("style")+";"+t),e.style=(e.style?e.style+";":"")+t):"$"==o.charAt(0)||e.hasOwnProperty(o)||(e[o]=t,r[o]=n[o])})}function re(e,t,n,r,i,a,u,l){var c,f,d=[],p=t[0],g=e.shift(),m=h(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),$=_(g.templateUrl)?g.templateUrl(t,n):g.templateUrl,v=g.templateNamespace;return t.empty(),s($).then(function(s){var h,y,b,x;if(s=Se(s),g.replace){if(b=Ce(s)?[]:$t(se(v,Xr(s))),h=b[0],1!=b.length||h.nodeType!==ni)throw zi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,$);y={$attr:{}},fe(r,t,h);var S=q(h,[],y);w(g.scope)&&Z(S,!0),e=S.concat(e),ne(n,y)}else h=p,t.html(s);for(e.unshift(m),c=G(e,h,n,i,t,g,a,u,l),o(r,function(e,n){e==h&&(r[n]=t[0])}),f=L(t[0].childNodes,i);d.length;){var C=d.shift(),k=d.shift(),_=d.shift(),A=d.shift(),E=t[0];if(!C.$$destroyed){if(k!==p){var D=k.className;l.hasElementTranscludeDirective&&g.replace||(E=Oe(h)),fe(_,Pr(k),E),j(Pr(E),D)}x=c.transcludeOnThisElement?H(C,c.transclude,A):A,c(f,C,E,r,x)}}d=null}),function(e,t,n,r,i){var o=i;t.$$destroyed||(d?d.push(t,n,r,o):(c.transcludeOnThisElement&&(o=H(t,c.transclude,i)),c(f,t,n,r,o)))}}function ie(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 oe(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw zi("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,Q(r))}function ae(e,t){var n=r(t,!0);n&&e.push({priority:0,compile:function(e){var t=e.parent(),r=!!t.length;return r&&I.$$addBindingClass(t),function(e,t){var i=t.parent();r||I.$$addBindingClass(i),I.$$addBindingInfo(i,n.expressions),e.$watch(n,function(e){t[0].nodeValue=e})}}})}function se(e,n){switch(e=Tr(e||"html")){case"svg":case"math":var r=t.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function ue(e,t){if("srcdoc"==t)return k.HTML;var n=R(e);return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?k.RESOURCE_URL:void 0}function le(e,t,n,i,o){var a=ue(e,i);o=v[i]||o;var s=r(n,!0,a,o);if(s){if("multiple"===i&&"select"===R(e))throw zi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Q(e));t.push({priority:100,compile:function(){return{pre:function(e,t,u){var l=u.$$observers||(u.$$observers=$e());if(C.test(i))throw zi("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=u[i];c!==n&&(s=c&&r(c,!0,a,o),n=c),s&&(u[i]=s(e),(l[i]||(l[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||e).$watch(s,function(e,t){"class"===i&&e!=t?u.$updateClass(e,t):u.$set(i,e)}))}}}})}}function fe(e,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(e)for(i=0,o=e.length;o>i;i++)if(e[i]==a){e[i++]=r;for(var l=i,c=l+s-1,f=e.length;f>l;l++,c++)f>c?e[l]=e[c]:delete e[l];e.length-=s-1,e.context===a&&(e.context=r);break}u&&u.replaceChild(r,a);var d=t.createDocumentFragment();for(i=0;s>i;i++)d.appendChild(n[i]);for(Pr.hasData(a)&&(Pr.data(r,Pr.data(a)),Pr(a).off("$destroy")),Pr.cleanData(d.querySelectorAll("*")),i=1;s>i;i++)delete n[i];n[0]=r,n.length=1}function pe(e,t){return f(function(){return e.apply(null,arguments)},e,t)}function he(e,t,n,r,o,a){try{e(t,n,r,o,a)}catch(s){i(s,Q(n))}}function ge(e,t,i,a,s){function l(t,n,r){_(i.$onChanges)&&n!==r&&(me||(e.$$postDigest(O),me=[]),f||(f={},me.push(c)),f[t]&&(r=f[t].previousValue),f[t]={previousValue:r,currentValue:n})}function c(){i.$onChanges(f),f=n}var f,d=[];return o(a,function(n,o){var a,c,f,p,h,m=n.attrName,$=n.optional,v=n.mode;switch(v){case"@":$||Dr.call(t,m)||(i[o]=t[m]=void 0),t.$observe(m,function(e){if(S(e)){var t=i[o];l(o,e,t),i[o]=e}}),t.$$observers[m].$$scope=e,a=t[m],S(a)?i[o]=r(a)(e):N(a)&&(i[o]=a);break;case"=":if(!Dr.call(t,m)){if($)break;t[m]=void 0}if($&&!t[m])break;c=u(t[m]),p=c.literal?z:function(e,t){return e===t||e!==e&&t!==t},f=c.assign||function(){throw a=i[o]=c(e),zi("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[m],m,s.name)},a=i[o]=c(e);var y=function(t){return p(t,i[o])||(p(t,a)?f(e,t=i[o]):i[o]=t),a=t};y.$stateful=!0,h=n.collection?e.$watchCollection(t[m],y):e.$watch(u(t[m],y),null,c.literal),d.push(h);break;case"<":if(!Dr.call(t,m)){if($)break;t[m]=void 0}if($&&!t[m])break;c=u(t[m]),i[o]=c(e),h=e.$watch(c,function(e){var t=i[o];l(o,e,t),i[o]=e},c.literal),d.push(h);break;case"&":if(c=t.hasOwnProperty(m)?u(t[m]):g,c===g&&$)break;i[o]=function(t){return c(e,t)}}}),d.length&&function(){for(var e=0,t=d.length;t>e;++e)d[e]()}}var me,ve=/^\w/,ye=t.createElement("div"),be=E;F.prototype={$normalize:gt,$addClass:function(e){e&&e.length>0&&T.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&T.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=mt(e,t);n&&n.length&&T.addClass(this.$$element,n);var r=mt(t,e);r&&r.length&&T.removeClass(this.$$element,r)},$set:function(e,t,n,r){var a,s=this.$$element[0],u=Ye(s,e),l=Xe(e),c=e;if(u?(this.$$element.prop(e,t),r=u):l&&(this[l]=t,c=l),this[e]=t,r?this.$attr[e]=r:(r=this.$attr[e],r||(this.$attr[e]=r=ce(e,"-"))),a=R(this.$$element),"a"===a&&("href"===e||"xlinkHref"===e)||"img"===a&&"src"===e)this[e]=t=M(t,"src"===e);else if("img"===a&&"srcset"===e){for(var f="",d=Xr(t),p=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,h=/\s/.test(d)?p:/(,)/,g=d.split(h),m=Math.floor(g.length/2),$=0;m>$;$++){var v=2*$;f+=M(Xr(g[v]),!0),f+=" "+Xr(g[v+1])}var b=Xr(g[2*$]).split(/\s/);f+=M(Xr(b[0]),!0),2===b.length&&(f+=" "+Xr(b[1])),this[e]=t=f}n!==!1&&(null===t||y(t)?this.$$element.removeAttr(r):ve.test(r)?this.$$element.attr(r,t):P(this.$$element[0],r,t));var w=this.$$observers;w&&o(w[c],function(e){try{e(t)}catch(n){i(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=$e()),i=r[e]||(r[e]=[]);return i.push(t),b.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||y(n[e])||t(n[e])}),function(){U(i,t)}}};var we=r.startSymbol(),xe=r.endSymbol(),Se="{{"==we&&"}}"==xe?m:function(e){return e.replace(/\{\{/g,we).replace(/}}/g,xe)},ke=/^ngAttr[A-Z]/,_e=/^(.+)Start$/;return I.$$addBindingInfo=A?function(e,t){var n=e.data("$binding")||[];Wr(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:g,I.$$addBindingClass=A?function(e){j(e,"ng-binding")}:g,I.$$addScopeInfo=A?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:g,I.$$addScopeClass=A?function(e,t){j(e,t?"ng-isolate-scope":"ng-scope")}:g,I.$$createComment=function(e,n){var r="";return A&&(r=" "+(e||"")+": "+(n||"")+" "),t.createComment(r)},I}]}function gt(e){return Se(e.replace(qi,""))}function mt(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue e;n+=(n.length>0?" ":"")+a}return n}function $t(e){e=Pr(e);var t=e.length;if(1>=t)return e;for(;t--;){var n=e[t];n.nodeType===oi&&Rr.call(e,t,1)}return e}function vt(e,t){if(t&&S(t))return t;if(S(e)){var n=Wi.exec(e);if(n)return n[3]}}function yt(){var e={},t=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){he(t,"controller"),w(t)?f(e,t):e[t]=n},this.allowGlobals=function(){t=!0},this.$get=["$injector","$window",function(i,o){function a(e,t,n,i){if(!e||!w(e.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t);e.$scope[t]=n}return function(r,s,u,l){var c,d,p,h;if(u=u===!0,l&&S(l)&&(h=l),S(r)){if(d=r.match(Wi),!d)throw Bi("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);p=d[1],h=h||d[3],r=e.hasOwnProperty(p)?e[p]:ge(s.$scope,p,!0)||(t?ge(o,p,!0):n),pe(r,p,!0)}if(u){var g=(Wr(r)?r[r.length-1]:r).prototype;c=Object.create(g||null),h&&a(s,h,c,p||r.name);var m;return m=f(function(){var e=i.invoke(r,c,s,p);return e!==c&&(w(e)||_(e))&&(c=e,h&&a(s,h,c,p||r.name)),c},{instance:c,identifier:h})}return c=i.instantiate(r,s,p),h&&a(s,h,c,p||r.name),c}}]}function bt(){this.$get=["$window",function(e){return Pr(e.document)}]}function wt(){this.$get=["$log",function(e){return function(){e.error.apply(e,arguments)}}]}function xt(e){return w(e)?k(e)?e.toISOString():X(e):e}function St(){this.$get=function(){return function(e){if(!e)return"";var t=[];return a(e,function(e,n){null===e||y(e)||(Wr(e)?o(e,function(e){t.push(ie(n)+"="+ie(xt(e)))}):t.push(ie(n)+"="+ie(xt(e))))}),t.join("&")}}}function Ct(){this.$get=function(){return function(e){function t(e,r,i){null===e||y(e)||(Wr(e)?o(e,function(e,n){t(e,r+"["+(w(e)?n:"")+"]")}):w(e)&&!k(e)?a(e,function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))}):n.push(ie(r)+"="+ie(xt(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function kt(e,t){if(S(e)){var n=e.replace(Zi,"").trim();if(n){var r=t("Content-Type");(r&&0===r.indexOf(Xi)||_t(n))&&(e=G(n))}}return e}function _t(e){var t=e.match(Ki);return t&&Ji[t[0]].test(e)}function At(e){function t(e,t){e&&(r[e]=r[e]?r[e]+", "+t:t)}var n,r=$e();return S(e)?o(e.split("\n"),function(e){n=e.indexOf(":"),t(Tr(Xr(e.substr(0,n))),Xr(e.substr(n+1)))}):w(e)&&o(e,function(e,n){t(Tr(n),Xr(e))}),r}function Et(e){var t;return function(n){if(t||(t=At(e)),n){var r=t[Tr(n)];return void 0===r&&(r=null),r}return t}}function Dt(e,t,n,r){return _(r)?r(e,t,n):(o(r,function(r){e=r(e,t,n)}),e)}function Tt(e){return e>=200&&300>e}function Mt(){var e=this.defaults={transformResponse:[kt],transformRequest:[function(e){return!w(e)||T(e)||O(e)||M(e)?e:X(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:H(Gi),put:H(Gi),patch:H(Gi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},t=!1;this.useApplyAsync=function(e){return b(e)?(t=!!e,this):t};var i=!0;this.useLegacyPromiseExtensions=function(e){return b(e)?(i=!!e,this):i};var a=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(s,u,l,c,d,p){function h(t){function a(e){var t=f({},e);return t.data=Dt(e.data,e.headers,e.status,l.transformResponse),Tt(e.status)?t:d.reject(t)}function s(e,t){var n,r={};return o(e,function(e,i){_(e)?(n=e(t),null!=n&&(r[i]=n)):r[i]=e}),r}function u(t){var n,r,i,o=e.headers,a=f({},t.headers);o=f({},o.common,o[Tr(t.method)]);e:for(n in o){r=Tr(n);for(i in a)if(Tr(i)===r)continue e;a[n]=o[n]}return s(a,H(t))}if(!w(t))throw r("$http")("badreq","Http request configuration must be an object. Received: {0}",t);if(!S(t.url))throw r("$http")("badreq","Http request configuration url must be a string. Received: {0}",t.url);var l=f({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},t);l.headers=u(t),l.method=Mr(l.method),l.paramSerializer=S(l.paramSerializer)?p.get(l.paramSerializer):l.paramSerializer;var c=function(t){var r=t.headers,i=Dt(t.data,Et(r),n,t.transformRequest);return y(i)&&o(r,function(e,t){"content-type"===Tr(t)&&delete r[t]}),y(t.withCredentials)&&!y(e.withCredentials)&&(t.withCredentials=e.withCredentials),$(t,i).then(a,a)},h=[c,n],g=d.when(l);for(o(C,function(e){(e.request||e.requestError)&&h.unshift(e.request,e.requestError),(e.response||e.responseError)&&h.push(e.response,e.responseError)});h.length;){var m=h.shift(),v=h.shift();g=g.then(m,v)}return i?(g.success=function(e){return pe(e,"fn"),g.then(function(t){e(t.data,t.status,t.headers,l)}),g},g.error=function(e){return pe(e,"fn"),g.then(null,function(t){e(t.data,t.status,t.headers,l)}),g}):(g.success=eo("success"),g.error=eo("error")),g}function g(){o(arguments,function(e){h[e]=function(t,n){return h(f({},n||{},{method:e,url:t}))}})}function m(){o(arguments,function(e){h[e]=function(t,n,r){return h(f({},r||{},{method:e,url:t,data:n}))}})}function $(r,i){function o(e,n,r,i){function o(){a(n,e,r,i)}p&&(Tt(e)?p.put(C,[e,n,At(r),i]):p.remove(C)),t?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function a(e,t,n,i){t=t>=-1?t:0,(Tt(t)?m.resolve:m.reject)({data:e,status:t,headers:Et(n),config:r,statusText:i})}function l(e){a(e.data,e.status,H(e.headers()),e.statusText)}function f(){var e=h.pendingRequests.indexOf(r);-1!==e&&h.pendingRequests.splice(e,1)}var p,g,m=d.defer(),$=m.promise,S=r.headers,C=v(r.url,r.paramSerializer(r.params));if(h.pendingRequests.push(r),$.then(f,f),!r.cache&&!e.cache||r.cache===!1||"GET"!==r.method&&"JSONP"!==r.method||(p=w(r.cache)?r.cache:w(e.cache)?e.cache:x),p&&(g=p.get(C),b(g)?F(g)?g.then(l,l):Wr(g)?a(g[1],g[0],H(g[2]),g[3]):a(g,200,{},"OK"):p.put(C,$)),y(g)){var k=Nn(r.url)?u()[r.xsrfCookieName||e.xsrfCookieName]:n;k&&(S[r.xsrfHeaderName||e.xsrfHeaderName]=k),s(r.method,C,i,o,S,r.timeout,r.withCredentials,r.responseType)}return $}function v(e,t){return t.length>0&&(e+=(-1==e.indexOf("?")?"?":"&")+t),e}var x=l("$http");e.paramSerializer=S(e.paramSerializer)?p.get(e.paramSerializer):e.paramSerializer;var C=[];return o(a,function(e){C.unshift(S(e)?p.get(e):p.invoke(e))}),h.pendingRequests=[],g("get","delete","head","jsonp"),m("post","put","patch"),h.defaults=e,h}]}function Ot(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Nt(){this.$get=["$browser","$window","$document","$xhrFactory",function(e,t,n,r){return Ft(e,r,e.defer,t.angular.callbacks,n[0])}]}function Ft(e,t,n,r,i){function a(e,t,n){var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){di(o,"load",a),di(o,"error",a),i.body.removeChild(o),o=null;var s=-1,u="unknown";e&&("load"!==e.type||r[t].called||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},fi(o,"load",a),fi(o,"error",a),i.body.appendChild(o),a}return function(i,s,u,l,c,f,d,p){function h(){v&&v(),w&&w.abort()}function m(t,r,i,o,a){b(C)&&n.cancel(C),v=w=null,t(r,i,o,a),e.$$completeOutstandingRequest(g)}if(e.$$incOutstandingRequestCount(),s=s||e.url(),"jsonp"==Tr(i)){var $="_"+(r.counter++).toString(36);r[$]=function(e){r[$].data=e,r[$].called=!0};var v=a(s.replace("JSON_CALLBACK","angular.callbacks."+$),$,function(e,t){m(l,e,r[$].data,"",t),r[$]=g})}else{var w=t(i,s);w.open(i,s,!0),o(c,function(e,t){b(e)&&w.setRequestHeader(t,e)}),w.onload=function(){var e=w.statusText||"",t="response"in w?w.response:w.responseText,n=1223===w.status?204:w.status;0===n&&(n=t?200:"file"==On(s).protocol?404:0),m(l,n,t,w.getAllResponseHeaders(),e)};var x=function(){m(l,-1,null,null,"")};if(w.onerror=x,w.onabort=x,d&&(w.withCredentials=!0),p)try{w.responseType=p}catch(S){if("json"!==p)throw S}w.send(y(u)?null:u)}if(f>0)var C=n(h,f);else F(f)&&f.then(h)}}function Pt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(p,e).replace(h,t)}function s(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=X(e)}return e}function u(e,t,n,r){var i;return i=e.$watch(function(e){return i(),r(e)},t,n)}function l(o,l,p,h){function g(e){try{return e=O(e),h&&!b(e)?e:s(e)}catch(t){r(to.interr(o,t))}}if(!o.length||-1===o.indexOf(e)){var m;if(!l){var v=a(o);m=$(v),m.exp=o,m.expressions=[],m.$$watchDelegate=u}return m}h=!!h;for(var w,x,S,C=0,k=[],A=[],E=o.length,D=[],T=[];E>C;){if(-1==(w=o.indexOf(e,C))||-1==(x=o.indexOf(t,w+c))){C!==E&&D.push(a(o.substring(C)));break}C!==w&&D.push(a(o.substring(C,w))),S=o.substring(w+c,x),k.push(S),A.push(n(S,g)),C=x+d,T.push(D.length),D.push("")}if(p&&D.length>1&&to.throwNoconcat(o),!l||k.length){var M=function(e){for(var t=0,n=k.length;n>t;t++){if(h&&y(e[t]))return;D[T[t]]=e[t]}return D.join("")},O=function(e){return p?i.getTrusted(p,e):i.valueOf(e)};return f(function(e){var t=0,n=k.length,i=new Array(n);try{for(;n>t;t++)i[t]=A[t](e);return M(i)}catch(a){r(to.interr(o,a))}},{exp:o,expressions:k,$$watchDelegate:function(e,t){var n;return e.$watchGroup(A,function(r,i){var o=M(r);_(t)&&t.call(this,o,r!==i?n:o,e),n=o})}})}}var c=e.length,d=t.length,p=new RegExp(e.replace(/./g,o),"g"),h=new RegExp(t.replace(/./g,o),"g");return l.startSymbol=function(){return e},l.endSymbol=function(){return t},l}]}function jt(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,r,i){function o(o,s,u,l){function c(){f?o.apply(null,d):o(g)}var f=arguments.length>4,d=f?B(arguments,4):[],p=t.setInterval,h=t.clearInterval,g=0,m=b(l)&&!l,$=(m?r:n).defer(),v=$.promise;return u=b(u)?u:0,v.$$intervalId=p(function(){m?i.defer(c):e.$evalAsync(c),$.notify(g++),u>0&&g>=u&&($.resolve(g),h(v.$$intervalId),delete a[v.$$intervalId]),m||e.$apply()},s),a[v.$$intervalId]=$,v}var a={};return o.cancel=function(e){return e&&e.$$intervalId in a?(a[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete a[e.$$intervalId],!0):!1},o}]}function It(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=re(t[n]);return t.join("/")}function Vt(e,t){var n=On(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=p(n.port)||ro[n.protocol]||null}function Rt(e,t){var n="/"!==e.charAt(0);n&&(e="/"+e);var r=On(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=te(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Ut(e,t){return 0===t.indexOf(e)?t.substr(e.length):void 0}function Lt(e){var t=e.indexOf("#");return-1==t?e:e.substr(0,t)}function Ht(e){return e.replace(/(#.+)|#$/,"$1")}function zt(e){return e.substr(0,Lt(e).lastIndexOf("/")+1)}function qt(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function Bt(e,t,n){this.$$html5=!0,n=n||"",Vt(e,this),this.$$parse=function(e){var n=Ut(t,e);if(!S(n))throw io("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);Rt(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=ne(this.$$search),n=this.$$hash?"#"+re(this.$$hash):"";this.$$url=It(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return b(o=Ut(e,r))?(a=o,s=b(o=Ut(n,o))?t+(Ut("/",o)||o):e+a):b(o=Ut(t,r))?s=t+o:t==r+"/"&&(s=t),s&&this.$$parse(s),!!s}}function Wt(e,t,n){Vt(e,this),this.$$parse=function(r){function i(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===t.indexOf(n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}var o,a=Ut(e,r)||Ut(t,r);y(a)||"#"!==a.charAt(0)?this.$$html5?o=a:(o="",y(a)&&(e=r,this.replace())):(o=Ut(n,a),y(o)&&(o=a)),Rt(o,this),this.$$path=i(this.$$path,o,e),this.$$compose()},this.$$compose=function(){var t=ne(this.$$search),r=this.$$hash?"#"+re(this.$$hash):"";this.$$url=It(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(t){return Lt(e)==Lt(t)?(this.$$parse(t),!0):!1}}function Yt(e,t,n){this.$$html5=!0,Wt.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e==Lt(r)?o=r:(a=Ut(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$compose=function(){var t=ne(this.$$search),r=this.$$hash?"#"+re(this.$$hash):"";this.$$url=It(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url}}function Xt(e){return function(){return this[e]}}function Gt(e,t){return function(n){return y(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Kt(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return b(t)?(e=t,this):e},this.html5Mode=function(e){return N(e)?(t.enabled=e,this):w(e)?(N(e.enabled)&&(t.enabled=e.enabled),N(e.requireBase)&&(t.requireBase=e.requireBase),N(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(a){throw l.url(i),l.$$state=o,a}}function u(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,c,f,d=r.baseHref(),p=r.url();if(t.enabled){if(!d&&t.requireBase)throw io("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=qt(p)+(d||"/"),c=i.history?Bt:Yt}else f=Lt(p),c=Wt;var h=zt(f);l=new c(f,h,"#"+e),l.$$parseLinkUrl(p,p),l.$$state=r.state();var g=/^\s*(javascript|mailto):/i;
-o.on("click",function(e){if(t.rewriteLinks&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!=e.which&&2!=e.button){for(var i=Pr(e.target);"a"!==R(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var s=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");w(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=On(s.animVal).href),g.test(s)||!s||i.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(s,u)&&(e.preventDefault(),l.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),Ht(l.absUrl())!=Ht(p)&&r.url(l.absUrl(),!0);var m=!0;return r.onUrlChange(function(e,t){return y(Ut(h,e))?void(a.location.href=e):(n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;e=Ht(e),l.$$parse(e),l.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,l.absUrl()===e&&(r?(l.$$parse(i),l.$$state=o,s(i,!1,o)):(m=!1,u(i,o)))}),void(n.$$phase||n.$digest()))}),n.$watch(function(){var e=Ht(r.url()),t=Ht(l.absUrl()),o=r.state(),a=l.$$replace,c=e!==t||l.$$html5&&i.history&&o!==l.$$state;(m||c)&&(m=!1,n.$evalAsync(function(){var t=l.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,l.$$state,o).defaultPrevented;l.absUrl()===t&&(r?(l.$$parse(e),l.$$state=o):(c&&s(t,a,o===l.$$state?null:l.$$state),u(e,o)))})),l.$$replace=!1}),l}]}function Jt(){var e=!0,t=this;this.debugEnabled=function(t){return b(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return e instanceof Error&&(e.stack?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function i(e){var t=n.console||{},i=t[e]||t.log||g,a=!1;try{a=!!i.apply}catch(s){}return a?function(){var e=[];return o(arguments,function(t){e.push(r(t))}),i.apply(t,e)}:function(e,t){i(e,null==t?"":t)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function Zt(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw ao("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function Qt(e){return e+""}function en(e,t){if(e){if(e.constructor===e)throw ao("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.window===e)throw ao("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw ao("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw ao("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function tn(e,t){if(e){if(e.constructor===e)throw ao("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===so||e===uo||e===lo)throw ao("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function nn(e,t){if(e&&(e===0..constructor||e===(!1).constructor||e==="".constructor||e==={}.constructor||e===[].constructor||e===Function.constructor))throw ao("isecaf","Assigning to a constructor is disallowed! Expression: {0}",t)}function rn(e,t){return"undefined"!=typeof e?e:t}function on(e,t){return"undefined"==typeof e?t:"undefined"==typeof t?e:e+t}function an(e,t){var n=e(t);return!n.$stateful}function sn(e,t){var n,r;switch(e.type){case ho.Program:n=!0,o(e.body,function(e){sn(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case ho.Literal:e.constant=!0,e.toWatch=[];break;case ho.UnaryExpression:sn(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case ho.BinaryExpression:sn(e.left,t),sn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case ho.LogicalExpression:sn(e.left,t),sn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case ho.ConditionalExpression:sn(e.test,t),sn(e.alternate,t),sn(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case ho.Identifier:e.constant=!1,e.toWatch=[e];break;case ho.MemberExpression:sn(e.object,t),e.computed&&sn(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case ho.CallExpression:n=e.filter?an(t,e.callee.name):!1,r=[],o(e.arguments,function(e){sn(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=e.filter&&an(t,e.callee.name)?r:[e];break;case ho.AssignmentExpression:sn(e.left,t),sn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case ho.ArrayExpression:n=!0,r=[],o(e.elements,function(e){sn(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=r;break;case ho.ObjectExpression:n=!0,r=[],o(e.properties,function(e){sn(e.value,t),n=n&&e.value.constant,e.value.constant||r.push.apply(r,e.value.toWatch)}),e.constant=n,e.toWatch=r;break;case ho.ThisExpression:e.constant=!1,e.toWatch=[];break;case ho.LocalsExpression:e.constant=!1,e.toWatch=[]}}function un(e){if(1==e.length){var t=e[0].expression,r=t.toWatch;return 1!==r.length?r:r[0]!==t?r:n}}function ln(e){return e.type===ho.Identifier||e.type===ho.MemberExpression}function cn(e){return 1===e.body.length&&ln(e.body[0].expression)?{type:ho.AssignmentExpression,left:e.body[0].expression,right:{type:ho.NGValueParameter},operator:"="}:void 0}function fn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===ho.Literal||e.body[0].expression.type===ho.ArrayExpression||e.body[0].expression.type===ho.ObjectExpression)}function dn(e){return e.constant}function pn(e,t){this.astBuilder=e,this.$filter=t}function hn(e,t){this.astBuilder=e,this.$filter=t}function gn(e){return"constructor"==e}function mn(e){return _(e.valueOf)?e.valueOf():mo.call(e)}function $n(){var e=$e(),t=$e(),r={"true":!0,"false":!1,"null":null,undefined:n};this.addLiteral=function(e,t){r[e]=t},this.$get=["$filter",function(i){function a(n,r,o){var a,u,h;switch(o=o||v,typeof n){case"string":n=n.trim(),h=n;var y=o?t:e;if(a=y[h],!a){":"===n.charAt(0)&&":"===n.charAt(1)&&(u=!0,n=n.substring(2));var b=o?$:m,w=new po(b),x=new go(w,i,b);a=x.parse(n),a.constant?a.$$watchDelegate=d:u?a.$$watchDelegate=a.literal?f:c:a.inputs&&(a.$$watchDelegate=l),o&&(a=s(a)),y[h]=a}return p(a,r);case"function":return p(n,r);default:return p(g,r)}}function s(e){function t(t,n,r,i){var o=v;v=!0;try{return e(t,n,r,i)}finally{v=o}}if(!e)return e;t.$$watchDelegate=e.$$watchDelegate,t.assign=s(e.assign),t.constant=e.constant,t.literal=e.literal;for(var n=0;e.inputs&&n<e.inputs.length;++n)e.inputs[n]=s(e.inputs[n]);return t.inputs=e.inputs,t}function u(e,t){return null==e||null==t?e===t:"object"==typeof e&&(e=mn(e),"object"==typeof e)?!1:e===t||e!==e&&t!==t}function l(e,t,r,i,o){var a,s=i.inputs;if(1===s.length){var l=u;return s=s[0],e.$watch(function(e){var t=s(e);return u(t,l)||(a=i(e,n,n,[t]),l=t&&mn(t)),a},t,r,o)}for(var c=[],f=[],d=0,p=s.length;p>d;d++)c[d]=u,f[d]=null;return e.$watch(function(e){for(var t=!1,r=0,o=s.length;o>r;r++){var l=s[r](e);(t||(t=!u(l,c[r])))&&(f[r]=l,c[r]=l&&mn(l))}return t&&(a=i(e,n,n,f)),a},t,r,o)}function c(e,t,n,r){var i,o;return i=e.$watch(function(e){return r(e)},function(e,n,r){o=e,_(t)&&t.apply(this,arguments),b(e)&&r.$$postDigest(function(){b(o)&&i()})},n)}function f(e,t,n,r){function i(e){var t=!0;return o(e,function(e){b(e)||(t=!1)}),t}var a,s;return a=e.$watch(function(e){return r(e)},function(e,n,r){s=e,_(t)&&t.call(this,e,n,r),i(e)&&r.$$postDigest(function(){i(s)&&a()})},n)}function d(e,t,n,r){var i;return i=e.$watch(function(e){return i(),r(e)},t,n)}function p(e,t){if(!t)return e;var n=e.$$watchDelegate,r=!1,i=n!==f&&n!==c,o=i?function(n,i,o,a){var s=r&&a?a[0]:e(n,i,o,a);return t(s,n,i)}:function(n,r,i,o){var a=e(n,r,i,o),s=t(a,n,r);return b(a)?s:a};return e.$$watchDelegate&&e.$$watchDelegate!==l?o.$$watchDelegate=e.$$watchDelegate:t.$stateful||(o.$$watchDelegate=l,r=!e.inputs,o.inputs=e.inputs?e.inputs:[e]),o}var h=Kr().noUnsafeEval,m={csp:h,expensiveChecks:!1,literals:L(r)},$={csp:h,expensiveChecks:!0,literals:L(r)},v=!1;return a.$$runningExpensiveChecks=function(){return v},a}]}function vn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return bn(function(t){e.$evalAsync(t)},t)}]}function yn(){this.$get=["$browser","$exceptionHandler",function(e,t){return bn(function(t){e.defer(t)},t)}]}function bn(e,t){function i(){this.$$state={status:0}}function a(e,t){return function(n){t.call(e,n)}}function s(e){var r,i,o;o=e.pending,e.processScheduled=!1,e.pending=n;for(var a=0,s=o.length;s>a;++a){i=o[a][0],r=o[a][e.status];try{_(r)?i.resolve(r(e.value)):1===e.status?i.resolve(e.value):i.reject(e.value)}catch(u){i.reject(u),t(u)}}}function u(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,e(function(){s(t)}))}function l(){this.promise=new i}function c(e){var t=new l,n=0,r=Wr(e)?[]:{};return o(e,function(e,i){n++,$(e).then(function(e){r.hasOwnProperty(i)||(r[i]=e,--n||t.resolve(r))},function(e){r.hasOwnProperty(i)||t.reject(e)})}),0===n&&t.resolve(r),t.promise}var d=r("$q",TypeError),p=function(){var e=new l;return e.resolve=a(e,e.resolve),e.reject=a(e,e.reject),e.notify=a(e,e.notify),e};f(i.prototype,{then:function(e,t,n){if(y(e)&&y(t)&&y(n))return this;var r=new l;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&u(this.$$state),r.promise},"catch":function(e){return this.then(null,e)},"finally":function(e,t){return this.then(function(t){return m(t,!0,e)},function(t){return m(t,!1,e)},t)}}),f(l.prototype,{resolve:function(e){this.promise.$$state.status||(e===this.promise?this.$$reject(d("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):this.$$resolve(e))},$$resolve:function(e){function n(e){s||(s=!0,o.$$resolve(e))}function r(e){s||(s=!0,o.$$reject(e))}var i,o=this,s=!1;try{(w(e)||_(e))&&(i=e&&e.then),_(i)?(this.promise.$$state.status=-1,i.call(e,n,r,a(this,this.notify))):(this.promise.$$state.value=e,this.promise.$$state.status=1,u(this.promise.$$state))}catch(l){r(l),t(l)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,u(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&e(function(){for(var e,i,o=0,a=r.length;a>o;o++){i=r[o][0],e=r[o][3];try{i.notify(_(e)?e(n):n)}catch(s){t(s)}}})}});var h=function(e){var t=new l;return t.reject(e),t.promise},g=function(e,t){var n=new l;return t?n.resolve(e):n.reject(e),n.promise},m=function(e,t,n){var r=null;try{_(n)&&(r=n())}catch(i){return g(i,!1)}return F(r)?r.then(function(){return g(e,t)},function(e){return g(e,!1)}):g(e,t)},$=function(e,t,n,r){var i=new l;return i.resolve(e),i.promise.then(t,n,r)},v=$,b=function(e){function t(e){r.resolve(e)}function n(e){r.reject(e)}if(!_(e))throw d("norslvr","Expected resolverFn, got '{0}'",e);var r=new l;return e(t,n),r.promise};return b.prototype=i.prototype,b.defer=p,b.reject=h,b.when=$,b.resolve=v,b.all=c,b}function wn(){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 xn(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=u(),this.$$ChildScope=null}return t.prototype=e,t}var t=10,n=r("$rootScope"),a=null,s=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$exceptionHandler","$parse","$browser",function(r,l,c){function f(e){e.currentScope.$$destroyed=!0}function d(e){9===Fr&&(e.$$childHead&&d(e.$$childHead),e.$$nextSibling&&d(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function p(){this.$id=u(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function h(e){if(C.$$phase)throw n("inprog","{0} already in progress",C.$$phase);C.$$phase=e}function m(){C.$$phase=null}function $(e,t){do e.$$watchersCount+=t;while(e=e.$parent)}function v(e,t,n){do e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n];while(e=e.$parent)}function b(){}function x(){for(;E.length;)try{E.shift()()}catch(e){r(e)}s=null}function S(){null===s&&(s=c.defer(function(){C.$apply(x)}))}p.prototype={constructor:p,$new:function(t,n){var r;return n=n||this,t?(r=new p,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!=this)&&r.$on("$destroy",f),r},$watch:function(e,t,n,r){var i=l(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,n,i,e);var o=this,s=o.$$watchers,u={fn:t,last:b,get:i,exp:r||e,eq:!!n};return a=null,_(t)||(u.fn=g),s||(s=o.$$watchers=[]),s.unshift(u),$(this,1),function(){U(s,u)>=0&&$(o,-1),a=null}},$watchGroup:function(e,t){function n(){u=!1,l?(l=!1,t(i,i,s)):t(i,r,s)}var r=new Array(e.length),i=new 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 o=s.$watch(e,function(e,o){i[t]=e,r[t]=o,u||(u=!0,s.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function n(e){o=e;var t,n,r,s,u;if(!y(o)){if(w(o))if(i(o)){a!==p&&(a=p,m=a.length=0,f++),t=o.length,m!==t&&(f++,a.length=m=t);for(var l=0;t>l;l++)u=a[l],s=o[l],r=u!==u&&s!==s,r||u===s||(f++,a[l]=s)}else{a!==h&&(a=h={},m=0,f++),t=0;for(n in o)Dr.call(o,n)&&(t++,s=o[n],u=a[n],n in a?(r=u!==u&&s!==s,r||u===s||(f++,a[n]=s)):(m++,a[n]=s,f++));if(m>t){f++;for(n in a)Dr.call(o,n)||(m--,delete a[n])}}else a!==o&&(a=o,f++);return f}}function r(){if(g?(g=!1,t(o,o,u)):t(o,s,u),c)if(w(o))if(i(o)){s=new Array(o.length);for(var e=0;e<o.length;e++)s[e]=o[e]}else{s={};for(var n in o)Dr.call(o,n)&&(s[n]=o[n])}else s=o}n.$stateful=!0;var o,a,s,u=this,c=t.length>1,f=0,d=l(e,n),p=[],h={},g=!0,m=0;return this.$watch(d,r)},$digest:function(){var e,i,o,u,l,f,d,p,g,$,v,y,w=t,S=this,E=[];h("$digest"),c.$$checkUrlChange(),this===C&&null!==s&&(c.defer.cancel(s),x()),a=null;do{for(p=!1,$=S;k.length;){try{y=k.shift(),y.scope.$eval(y.expression,y.locals)}catch(D){r(D)}a=null}e:do{if(f=$.$$watchers)for(d=f.length;d--;)try{if(e=f[d])if(l=e.get,(i=l($))===(o=e.last)||(e.eq?z(i,o):"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))){if(e===a){p=!1;break e}}else p=!0,a=e,e.last=e.eq?L(i,null):i,u=e.fn,u(i,o===b?i:o,$),5>w&&(v=4-w,E[v]||(E[v]=[]),E[v].push({msg:_(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:i,oldVal:o}))}catch(D){r(D)}if(!(g=$.$$watchersCount&&$.$$childHead||$!==S&&$.$$nextSibling))for(;$!==S&&!(g=$.$$nextSibling);)$=$.$parent}while($=g);if((p||k.length)&&!w--)throw m(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,E)}while(p||k.length);for(m();A.length;)try{A.shift()()}catch(D){r(D)}},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===C&&c.$$applicationDestroyed(),$(this,-this.$$watchersCount);for(var t in this.$$listenerCount)v(this,this.$$listenerCount[t],t);e&&e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=g,this.$on=this.$watch=this.$watchGroup=function(){return g},this.$$listeners={},this.$$nextSibling=null,d(this)}},$eval:function(e,t){return l(e)(this,t)},$evalAsync:function(e,t){C.$$phase||k.length||c.defer(function(){k.length&&C.$digest()}),k.push({scope:this,expression:l(e),locals:t})},$$postDigest:function(e){A.push(e)},$apply:function(e){try{h("$apply");try{return this.$eval(e)}finally{m()}}catch(t){r(t)}finally{try{C.$digest()}catch(t){throw r(t),t}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&E.push(t),e=l(e),S()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++;while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(n[r]=null,v(i,1,e))}},$emit:function(e){var t,n,i,o=[],a=this,s=!1,u={name:e,targetScope:a,stopPropagation:function(){s=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=q([u],arguments,1);do{for(t=a.$$listeners[e]||o,u.currentScope=a,n=0,i=t.length;i>n;n++)if(t[n])try{t[n].apply(null,l)}catch(c){r(c)}else t.splice(n,1),n--,i--;if(s)return u.currentScope=null,u;a=a.$parent}while(a);return u.currentScope=null,u},$broadcast:function(e){var t=this,n=t,i=t,o={name:e,targetScope:t,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!t.$$listenerCount[e])return o;for(var a,s,u,l=q([o],arguments,1);n=i;){for(o.currentScope=n,a=n.$$listeners[e]||[],s=0,u=a.length;u>s;s++)if(a[s])try{a[s].apply(null,l)}catch(c){r(c)}else a.splice(s,1),s--,u--;if(!(i=n.$$listenerCount[e]&&n.$$childHead||n!==t&&n.$$nextSibling))for(;n!==t&&!(i=n.$$nextSibling);)n=n.$parent}return o.currentScope=null,o}};var C=new p,k=C.$$asyncQueue=[],A=C.$$postDigestQueue=[],E=C.$$applyAsyncQueue=[];return C}]}function Sn(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return b(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return b(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return i=On(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function Cn(e){if("self"===e)return e;if(S(e)){if(e.indexOf("***")>-1)throw $o("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=Gr(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(A(e))return new RegExp("^"+e.source+"$");throw $o("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function kn(e){var t=[];return b(e)&&o(e,function(e){t.push(Cn(e))}),t}function _n(){this.SCE_CONTEXTS=vo;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=kn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=kn(e)),t},this.$get=["$injector",function(n){function r(e,t){return"self"===e?Nn(t):!!e.exec(t.href)}function i(n){var i,o,a=On(n.toString()),s=!1;for(i=0,o=e.length;o>i;i++)if(r(e[i],a)){s=!0;break}if(s)for(i=0,o=t.length;o>i;i++)if(r(t[i],a)){s=!1;break}return s}function o(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function a(e,t){var n=f.hasOwnProperty(e)?f[e]:null;if(!n)throw $o("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||y(t)||""===t)return t;if("string"!=typeof t)throw $o("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)}function s(e){return e instanceof c?e.$$unwrapTrustedValue():e}function u(e,t){if(null===t||y(t)||""===t)return t;var n=f.hasOwnProperty(e)?f[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(e===vo.RESOURCE_URL){if(i(t))return t;throw $o("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}if(e===vo.HTML)return l(t);throw $o("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(){throw $o("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(l=n.get("$sanitize"));var c=o(),f={};return f[vo.HTML]=o(c),f[vo.CSS]=o(c),f[vo.URL]=o(c),f[vo.JS]=o(c),f[vo.RESOURCE_URL]=o(f[vo.URL]),{trustAs:a,getTrusted:u,valueOf:s}}]}function An(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&8>Fr)throw $o("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=H(vo);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=m),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o(vo,function(e,t){var n=Tr(t);r[Se("parse_as_"+n)]=function(t){return i(e,t)},r[Se("get_trusted_"+n)]=function(t){return a(e,t)},r[Se("trust_as_"+n)]=function(t){return s(e,t)}}),r}]}function En(){this.$get=["$window","$document",function(e,t){var n,r,i={},o=e.chrome&&e.chrome.app&&e.chrome.app.runtime,a=!o&&e.history&&e.history.pushState,s=p((/android (\d+)/.exec(Tr((e.navigator||{}).userAgent))||[])[1]),u=/Boxee/i.test((e.navigator||{}).userAgent),l=t[0]||{},c=/^(Moz|webkit|ms)(?=[A-Z])/,f=l.body&&l.body.style,d=!1,h=!1;if(f){for(var g in f)if(r=c.exec(g)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in f&&"webkit"),d=!!("transition"in f||n+"Transition"in f),h=!!("animation"in f||n+"Animation"in f),!s||d&&h||(d=S(f.webkitTransition),h=S(f.webkitAnimation))}return{history:!(!a||4>s||u),hasEvent:function(e){if("input"===e&&11>=Fr)return!1;if(y(i[e])){var t=l.createElement("div");i[e]="on"+e in t}return i[e]},csp:Kr(),vendorPrefix:n,transitions:d,animations:h,android:s}}]}function Dn(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$templateCache","$http","$q","$sce",function(t,n,r,i){function o(a,s){function u(e){if(!s)throw yo("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,e.status,e.statusText);return r.reject(e)}o.totalPendingRequests++,S(a)&&t.get(a)||(a=i.getTrustedResourceUrl(a));var l=n.defaults&&n.defaults.transformResponse;return Wr(l)?l=l.filter(function(e){return e!==kt}):l===kt&&(l=null),n.get(a,f({cache:t,transformResponse:l},e))["finally"](function(){o.totalPendingRequests--}).then(function(e){return t.put(a,e.data),e.data},u)}return o.totalPendingRequests=0,o}]}function Tn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r.findBindings=function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return o(r,function(e){var r=qr.element(e).data("$binding");r&&o(r,function(r){if(n){var o=new RegExp("(^|\\s)"+Gr(t)+"(\\s|\\||$)");o.test(r)&&i.push(e)}else-1!=r.indexOf(t)&&i.push(e)})}),i},r.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+t+'"]',s=e.querySelectorAll(a);if(s.length)return s}},r.getLocation=function(){return n.url()},r.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},r.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},r}]}function Mn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,s,u){_(o)||(u=s,s=o,o=g);var l,c=B(arguments,3),f=b(u)&&!u,d=(f?r:n).defer(),p=d.promise;return l=t.defer(function(){try{d.resolve(o.apply(null,c))}catch(t){d.reject(t),i(t)}finally{delete a[p.$$timeoutId]}f||e.$apply()},s),p.$$timeoutId=l,a[l]=d,p}var a={};return o.cancel=function(e){return e&&e.$$timeoutId in a?(a[e.$$timeoutId].reject("canceled"),delete a[e.$$timeoutId],t.defer.cancel(e.$$timeoutId)):!1},o}]}function On(e){var t=e;return Fr&&(bo.setAttribute("href",t),t=bo.href),bo.setAttribute("href",t),{href:bo.href,protocol:bo.protocol?bo.protocol.replace(/:$/,""):"",host:bo.host,search:bo.search?bo.search.replace(/^\?/,""):"",hash:bo.hash?bo.hash.replace(/^#/,""):"",hostname:bo.hostname,port:bo.port,pathname:"/"===bo.pathname.charAt(0)?bo.pathname:"/"+bo.pathname}}function Nn(e){var t=S(e)?On(e):e;return t.protocol===wo.protocol&&t.host===wo.host}function Fn(){this.$get=$(e)}function Pn(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,l=n.cookie||"";if(l!==i)for(i=l,e=i.split("; "),r={},a=0;a<e.length;a++)o=e[a],s=o.indexOf("="),s>0&&(u=t(o.substring(0,s)),y(r[u])&&(r[u]=t(o.substring(s+1))));return r}}function jn(){this.$get=Pn}function In(e){function t(r,i){if(w(r)){var a={};return o(r,function(e,n){a[n]=t(n,e)}),a}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Hn),t("date",rr),t("filter",Vn),t("json",ir),t("limitTo",or),t("lowercase",Eo),t("number",zn),t("orderBy",ar),t("uppercase",Do)}function Vn(){return function(e,t,n){if(!i(e)){if(null==e)return e;throw r("filter")("notarray","Expected array but received: {0}",e)}var o,a,s=Ln(t);switch(s){case"function":o=t;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=Rn(t,n,a);break;default:return e}return Array.prototype.filter.call(e,o)}}function Rn(e,t,n){var r,i=w(e)&&"$"in e;return t===!0?t=z:_(t)||(t=function(e,t){return y(e)?!1:null===e||null===t?e===t:w(t)||w(e)&&!v(e)?!1:(e=Tr(""+e),t=Tr(""+t),-1!==e.indexOf(t))}),r=function(r){return i&&!w(r)?Un(r,e.$,t,!1):Un(r,e,t,n)}}function Un(e,t,n,r,i){var o=Ln(e),a=Ln(t);if("string"===a&&"!"===t.charAt(0))return!Un(e,t.substring(1),n,r);if(Wr(e))return e.some(function(e){return Un(e,t,n,r)});switch(o){case"object":var s;if(r){for(s in e)if("$"!==s.charAt(0)&&Un(e[s],t,n,!0))return!0;return i?!1:Un(e,t,n,!1)}if("object"===a){for(s in t){var u=t[s];if(!_(u)&&!y(u)){var l="$"===s,c=l?e:e[s];if(!Un(c,u,n,l,l))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Ln(e){return null===e?"null":typeof e}function Hn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return y(n)&&(n=t.CURRENCY_SYM),y(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:Wn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function zn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Wn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function qn(e){var t,n,r,i,o,a=0;for((n=e.indexOf(So))>-1&&(e=e.replace(So,"")),(r=e.search(/e/i))>0?(0>n&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):0>n&&(n=e.length),r=0;e.charAt(r)==Co;r++);if(r==(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)==Co;)o--;for(n-=r,t=[],i=0;o>=r;r++,i++)t[i]=+e.charAt(r)}return n>xo&&(t=t.splice(0,xo-1),a=n-1,n=1),{d:t,e:a,i:n}}function Bn(e,t,n,r){var i=e.d,o=i.length-e.i;t=y(t)?Math.min(Math.max(n,o),r):+t;var a=t+e.i,s=i[a];if(a>0){i.splice(Math.max(e.i,a));for(var u=a;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),e.i=1,i.length=Math.max(1,a=t+1),i[0]=0;for(var l=1;a>l;l++)i[l]=0}if(s>=5)if(0>a-1){for(var c=0;c>a;c--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;o<Math.max(0,t);o++)i.push(0);var f=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0);f&&(i.unshift(f),e.i++)}function Wn(e,t,n,r,i){if(!S(e)&&!C(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,u=Math.abs(e)+"",l="";if(a)l="\u221e";else{o=qn(u),Bn(o,i,t.minFrac,t.maxFrac);var c=o.d,f=o.i,d=o.e,p=[];for(s=c.reduce(function(e,t){return e&&!t},!0);0>f;)c.unshift(0),f++;f>0?p=c.splice(f):(p=c,c=[0]);var h=[];for(c.length>=t.lgSize&&h.unshift(c.splice(-t.lgSize).join(""));c.length>t.gSize;)h.unshift(c.splice(-t.gSize).join(""));c.length&&h.unshift(c.join("")),l=h.join(n),p.length&&(l+=r+p.join("")),d&&(l+="e+"+d)}return 0>e&&!s?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function Yn(e,t,n,r){var i="";for((0>e||r&&0>=e)&&(r?e=-e+1:(e=-e,i="-")),e=""+e;e.length<t;)e=Co+e;return n&&(e=e.substr(e.length-t)),i+e}function Xn(e,t,n,r,i){return n=n||0,function(o){var a=o["get"+e]();return(n>0||a>-n)&&(a+=n),0===a&&-12==n&&(a=12),Yn(a,t,r,i)}}function Gn(e,t,n){return function(r,i){var o=r["get"+e](),a=(n?"STANDALONE":"")+(t?"SHORT":""),s=Mr(a+e);return i[s][o]}}function Kn(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=Yn(Math[r>0?"floor":"ceil"](r/60),2)+Yn(Math.abs(r%60),2)}function Jn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(4>=t?5:12)-t)}function Zn(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Qn(e){return function(t){var n=Jn(t.getFullYear()),r=Zn(t),i=+r-+n,o=1+Math.round(i/6048e5);return Yn(o,e)}}function er(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function tr(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function nr(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function rr(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=p(t[9]+t[10]),o=p(t[9]+t[11])),a.call(r,p(t[1]),p(t[2])-1,p(t[3]));var u=p(t[4]||0)-i,l=p(t[5]||0)-o,c=p(t[6]||0),f=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,u,l,c,f),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var a,s,u="",l=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,S(n)&&(n=Ao.test(n)?p(n):t(n)),C(n)&&(n=new Date(n)),!k(n)||!isFinite(n.getTime()))return n;for(;r;)s=_o.exec(r),s?(l=q(l,s,1),r=l.pop()):(l.push(r),r=null);var c=n.getTimezoneOffset();return i&&(c=K(i,c),n=Z(n,i,!0)),o(l,function(t){a=ko[t],u+=a?a(n,e.DATETIME_FORMATS,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function ir(){return function(e,t){return y(t)&&(t=2),X(e,t)}}function or(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):p(t),isNaN(t)?e:(C(e)&&(e=e.toString()),Wr(e)||S(e)?(n=!n||isNaN(n)?0:p(n),n=0>n?Math.max(0,e.length+n):n,t>=0?e.slice(n,n+t):0===n?e.slice(t,e.length):e.slice(Math.max(0,n+t),n)):e)}}function ar(e){function t(t,n){return n=n?-1:1,t.map(function(t){var r=1,i=m;if(_(t))i=t;else if(S(t)&&("+"!=t.charAt(0)&&"-"!=t.charAt(0)||(r="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(i=e(t),i.constant))){var o=i();i=function(e){return e[o]}}return{get:i,descending:r*n}})}function n(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e,t){return"function"==typeof e.valueOf&&(e=e.valueOf(),n(e))?e:v(e)&&(e=e.toString(),n(e))?e:t}function a(e,t){var n=typeof e;return null===e?(n="string",e="null"):"string"===n?e=e.toLowerCase():"object"===n&&(e=o(e,t)),{value:e,type:n}}function s(e,t){var n=0;return e.type===t.type?e.value!==t.value&&(n=e.value<t.value?-1:1):n=e.type<t.type?-1:1,n}return function(e,n,o){function u(e,t){return{value:e,predicateValues:c.map(function(n){return a(n.get(e),t)})}}function l(e,t){for(var n=0,r=0,i=c.length;i>r&&!(n=s(e.predicateValues[r],t.predicateValues[r])*c[r].descending);++r);return n}if(null==e)return e;if(!i(e))throw r("orderBy")("notarray","Expected array but received: {0}",e);Wr(n)||(n=[n]),0===n.length&&(n=["+"]);var c=t(n,o);c.push({get:function(){return{}},descending:o?-1:1});var f=Array.prototype.map.call(e,u);return f.sort(l),e=f.map(function(e){return e.value})}}function sr(e){return _(e)&&(e={link:e}),e.restrict=e.restrict||"AC",$(e)}function ur(e,t){e.$name=t}function lr(e,t,r,i,a){var s=this,u=[];s.$error={},s.$$success={},s.$pending=n,s.$name=a(t.name||t.ngForm||"")(r),s.$dirty=!1,s.$pristine=!0,s.$valid=!0,s.$invalid=!1,s.$submitted=!1,s.$$parentForm=Oo,s.$rollbackViewValue=function(){o(u,function(e){e.$rollbackViewValue()})},s.$commitViewValue=function(){o(u,function(e){e.$commitViewValue()})},s.$addControl=function(e){he(e.$name,"input"),u.push(e),e.$name&&(s[e.$name]=e),e.$$parentForm=s},s.$$renameControl=function(e,t){var n=e.$name;s[n]===e&&delete s[n],s[t]=e,e.$name=t},s.$removeControl=function(e){e.$name&&s[e.$name]===e&&delete s[e.$name],o(s.$pending,function(t,n){s.$setValidity(n,null,e)}),o(s.$error,function(t,n){s.$setValidity(n,null,e)}),o(s.$$success,function(t,n){s.$setValidity(n,null,e)}),U(u,e),e.$$parentForm=Oo;
-},Cr({ctrl:this,$element:e,set:function(e,t,n){var r=e[t];if(r){var i=r.indexOf(n);-1===i&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(U(r,n),0===r.length&&delete e[t])},$animate:i}),s.$setDirty=function(){i.removeClass(e,ma),i.addClass(e,$a),s.$dirty=!0,s.$pristine=!1,s.$$parentForm.$setDirty()},s.$setPristine=function(){i.setClass(e,ma,$a+" "+No),s.$dirty=!1,s.$pristine=!0,s.$submitted=!1,o(u,function(e){e.$setPristine()})},s.$setUntouched=function(){o(u,function(e){e.$setUntouched()})},s.$setSubmitted=function(){i.addClass(e,No),s.$submitted=!0,s.$$parentForm.$setSubmitted()}}function cr(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function fr(e,t,n,r,i,o){dr(e,t,n,r,i,o),cr(r)}function dr(e,t,n,r,i,o){var a=Tr(t[0].type);if(!i.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1,l()})}var u,l=function(e){if(u&&(o.defer.cancel(u),u=null),!s){var i=t.val(),l=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Xr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))t.on("input",l);else{var c=function(e,t,n){u||(u=o.defer(function(){u=null,t&&t.value===n||l(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||t>15&&19>t||t>=37&&40>=t||c(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",c)}t.on("change",l),Yo[a]&&r.$$hasNativeValidators&&a===n.type&&t.on(Wo,function(e){if(!u){var t=this[Er],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 pr(e,t){if(k(e))return e;if(S(e)){zo.lastIndex=0;var n=zo.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,l=Jn(r),c=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),u=t.getMilliseconds()),new Date(r,0,l.getDate()+c,o,a,s,u)}}return NaN}function hr(e,t){return function(n,r){var i,a;if(k(n))return n;if(S(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Io.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n))return i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,function(e,n){n<t.length&&(a[t[n]]=+e)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function gr(e,t,r,i){return function(o,a,s,u,l,c,f){function d(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function p(e){return b(e)&&!k(e)?r(e)||n:e}mr(o,a,s,u),dr(o,a,s,u,l,c);var h,g=u&&u.$options&&u.$options.timezone;if(u.$$parserName=e,u.$parsers.push(function(e){if(u.$isEmpty(e))return null;if(t.test(e)){var i=r(e,h);return g&&(i=Z(i,g)),i}return n}),u.$formatters.push(function(e){if(e&&!k(e))throw Sa("datefmt","Expected `{0}` to be a date",e);return d(e)?(h=e,h&&g&&(h=Z(h,g,!0)),f("date")(e,i,g)):(h=null,"")}),b(s.min)||s.ngMin){var m;u.$validators.min=function(e){return!d(e)||y(m)||r(e)>=m},s.$observe("min",function(e){m=p(e),u.$validate()})}if(b(s.max)||s.ngMax){var $;u.$validators.max=function(e){return!d(e)||y($)||r(e)<=$},s.$observe("max",function(e){$=p(e),u.$validate()})}}}function mr(e,t,r,i){var o=t[0],a=i.$$hasNativeValidators=w(o.validity);a&&i.$parsers.push(function(e){var r=t.prop(Er)||{};return r.badInput||r.typeMismatch?n:e})}function $r(e,t,r,i,o,a){if(mr(e,t,r,i),dr(e,t,r,i,o,a),i.$$parserName="number",i.$parsers.push(function(e){return i.$isEmpty(e)?null:Uo.test(e)?parseFloat(e):n}),i.$formatters.push(function(e){if(!i.$isEmpty(e)){if(!C(e))throw Sa("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}),b(r.min)||r.ngMin){var s;i.$validators.min=function(e){return i.$isEmpty(e)||y(s)||e>=s},r.$observe("min",function(e){b(e)&&!C(e)&&(e=parseFloat(e,10)),s=C(e)&&!isNaN(e)?e:n,i.$validate()})}if(b(r.max)||r.ngMax){var u;i.$validators.max=function(e){return i.$isEmpty(e)||y(u)||u>=e},r.$observe("max",function(e){b(e)&&!C(e)&&(e=parseFloat(e,10)),u=C(e)&&!isNaN(e)?e:n,i.$validate()})}}function vr(e,t,n,r,i,o){dr(e,t,n,r,i,o),cr(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Vo.test(n)}}function yr(e,t,n,r,i,o){dr(e,t,n,r,i,o),cr(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Ro.test(n)}}function br(e,t,n,r){y(n.name)&&t.attr("name",u());var i=function(e){t[0].checked&&r.$setViewValue(n.value,e&&e.type)};t.on("click",i),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function wr(e,t,n,r,i){var o;if(b(r)){if(o=e(r),!o.constant)throw Sa("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}function xr(e,t,n,r,i,o,a,s){var u=wr(s,e,"ngTrueValue",n.ngTrueValue,!0),l=wr(s,e,"ngFalseValue",n.ngFalseValue,!1),c=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",c),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return e===!1},r.$formatters.push(function(e){return z(e,u)}),r.$parsers.push(function(e){return e?u:l})}function Sr(e,t){return e="ngClass"+e,["$animate",function(n){function r(e,t){var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i==t[o])continue e;n.push(i)}return n}function i(e){var t=[];return Wr(e)?(o(e,function(e){t=t.concat(i(e))}),t):S(e)?e.split(" "):w(e)?(o(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t):e}return{restrict:"AC",link:function(a,s,u){function l(e){var t=f(e,1);u.$addClass(t)}function c(e){var t=f(e,-1);u.$removeClass(t)}function f(e,t){var n=s.data("$classCounts")||$e(),r=[];return o(e,function(e){(t>0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&r.push(e))}),s.data("$classCounts",n),r.join(" ")}function d(e,t){var i=r(t,e),o=r(e,t);i=f(i,1),o=f(o,-1),i&&i.length&&n.addClass(s,i),o&&o.length&&n.removeClass(s,o)}function p(e){if(t===!0||a.$index%2===t){var n=i(e||[]);if(h){if(!z(e,h)){var r=i(h);d(r,n)}}else l(n)}h=H(e)}var h;a.$watch(u[e],p,!0),u.$observe("class",function(){p(a.$eval(u[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,r){var o=1&n;if(o!==(1&r)){var s=i(a.$eval(u[e]));o===t?l(s):c(s)}})}}}]}function Cr(e){function t(e,t,u){y(t)?r("$pending",e,u):i("$pending",e,u),N(t)?t?(f(s.$error,e,u),c(s.$$success,e,u)):(c(s.$error,e,u),f(s.$$success,e,u)):(f(s.$error,e,u),f(s.$$success,e,u)),s.$pending?(o(ba,!0),s.$valid=s.$invalid=n,a("",null)):(o(ba,!1),s.$valid=kr(s.$error),s.$invalid=!s.$valid,a("",s.$valid));var l;l=s.$pending&&s.$pending[e]?n:s.$error[e]?!1:s.$$success[e]?!0:null,a(e,l),s.$$parentForm.$setValidity(e,l,s)}function r(e,t,n){s[e]||(s[e]={}),c(s[e],t,n)}function i(e,t,r){s[e]&&f(s[e],t,r),kr(s[e])&&(s[e]=n)}function o(e,t){t&&!l[e]?(d.addClass(u,e),l[e]=!0):!t&&l[e]&&(d.removeClass(u,e),l[e]=!1)}function a(e,t){e=e?"-"+ce(e,"-"):"",o(ha+e,t===!0),o(ga+e,t===!1)}var s=e.ctrl,u=e.$element,l={},c=e.set,f=e.unset,d=e.$animate;l[ga]=!(l[ha]=u.hasClass(ha)),s.$setValidity=t}function kr(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function _r(e){e[0].hasAttribute("selected")&&(e[0].selected=!0)}var Ar=/^\/(.+)\/([a-z]*)$/,Er="validity",Dr=Object.prototype.hasOwnProperty,Tr=function(e){return S(e)?e.toLowerCase():e},Mr=function(e){return S(e)?e.toUpperCase():e},Or=function(e){return S(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},Nr=function(e){return S(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(Tr=Or,Mr=Nr);var Fr,Pr,jr,Ir,Vr=[].slice,Rr=[].splice,Ur=[].push,Lr=Object.prototype.toString,Hr=Object.getPrototypeOf,zr=r("ng"),qr=e.angular||(e.angular={}),Br=0;Fr=t.documentMode,g.$inject=[],m.$inject=[];var Wr=Array.isArray,Yr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Xr=function(e){return S(e)?e.trim():e},Gr=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Kr=function(){function e(){try{return new Function(""),!1}catch(e){return!0}}if(!b(Kr.rules)){var n=t.querySelector("[ng-csp]")||t.querySelector("[data-ng-csp]");if(n){var r=n.getAttribute("ng-csp")||n.getAttribute("data-ng-csp");Kr.rules={noUnsafeEval:!r||-1!==r.indexOf("no-unsafe-eval"),noInlineStyle:!r||-1!==r.indexOf("no-inline-style")}}else Kr.rules={noUnsafeEval:e(),noInlineStyle:!1}}return Kr.rules},Jr=function(){if(b(Jr.name_))return Jr.name_;var e,n,r,i,o=Qr.length;for(n=0;o>n;++n)if(r=Qr[n],e=t.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return Jr.name_=i},Zr=/:/g,Qr=["ng-","data-ng-","ng:","x-ng-"],ei=/[A-Z]/g,ti=!1,ni=1,ri=2,ii=3,oi=8,ai=9,si=11,ui={full:"1.5.3",major:1,minor:5,dot:3,codeName:"diplohaplontic-meiosis"};Me.expando="ng339";var li=Me.cache={},ci=1,fi=function(e,t,n){e.addEventListener(t,n,!1)},di=function(e,t,n){e.removeEventListener(t,n,!1)};Me._data=function(e){return this.cache[e[this.expando]]||{}};var pi=/([\:\-\_]+(.))/g,hi=/^moz([A-Z])/,gi={mouseleave:"mouseout",mouseenter:"mouseover"},mi=r("jqLite"),$i=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,vi=/<|&#?\w+;/,yi=/<([\w:-]+)/,bi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wi={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,"",""]};wi.optgroup=wi.option,wi.tbody=wi.tfoot=wi.colgroup=wi.caption=wi.thead,wi.th=wi.td;var xi=Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},Si=Me.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),Me(e).on("load",r))},toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return Pr(e>=0?this[e]:this[this.length+e])},length:0,push:Ur,sort:[].sort,splice:[].splice},Ci={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Ci[Tr(e)]=e});var ki={};o("input,select,option,textarea,button,form,details".split(","),function(e){ki[e]=!0});var _i={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};o({data:Ie,removeData:Pe,hasData:_e,cleanData:Ae},function(e,t){Me[t]=e}),o({data:Ie,inheritedData:ze,scope:function(e){return Pr.data(e,"$scope")||ze(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Pr.data(e,"$isolateScope")||Pr.data(e,"$isolateScopeNoTemplate")},controller:He,injector:function(e){return ze(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Ve,css:function(e,t,n){return t=Se(t),b(n)?void(e.style[t]=n):e.style[t]},attr:function(e,t,r){var i=e.nodeType;if(i!==ii&&i!==ri&&i!==oi){var o=Tr(t);if(Ci[o]){if(!b(r))return e[t]||(e.attributes.getNamedItem(t)||g).specified?o:n;r?(e[t]=!0,e.setAttribute(t,o)):(e[t]=!1,e.removeAttribute(o))}else if(b(r))e.setAttribute(t,r);else if(e.getAttribute){var a=e.getAttribute(t,2);return null===a?n:a}}},prop:function(e,t,n){return b(n)?void(e[t]=n):e[t]},text:function(){function e(e,t){if(y(t)){var n=e.nodeType;return n===ni||n===ii?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(y(t)){if(e.multiple&&"select"===R(e)){var n=[];return o(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){return y(t)?e.innerHTML:(Ne(e,!0),void(e.innerHTML=t))},empty:qe},function(e,t){Me.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==qe&&y(2==e.length&&e!==Ve&&e!==He?t:n)){if(w(t)){for(r=0;o>r;r++)if(e===Ie)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var a=e.$dv,s=y(a)?Math.min(o,1):o,u=0;s>u;u++){var l=e(this[u],t,n);a=a?a+l:l}return a}for(r=0;o>r;r++)e(this[r],t,n);return this}}),o({removeData:Pe,on:function(e,t,r,i){if(b(i))throw mi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ke(e)){var o=je(e,!0),a=o.events,s=o.handle;s||(s=o.handle=Ge(e,a));for(var u=t.indexOf(" ")>=0?t.split(" "):[t],l=u.length,c=function(t,n,i){var o=a[t];o||(o=a[t]=[],o.specialHandlerWrapper=n,"$destroy"===t||i||fi(e,t,s)),o.push(r)};l--;)t=u[l],gi[t]?(c(gi[t],Je),c(t,n,!0)):c(t)}},off:Fe,one:function(e,t,n){e=Pr(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;Ne(e),o(new Me(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){e.nodeType===ni&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===ni||n===si){t=new Me(t);for(var r=0,i=t.length;i>r;r++){var o=t[r];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===ni){var n=e.firstChild;o(new Me(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){Te(e,Pr(t).eq(0).clone()[0])},remove:Be,detach:function(e){Be(e,!0)},after:function(e,t){var n=e,r=e.parentNode;t=new Me(t);for(var i=0,o=t.length;o>i;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Ue,removeClass:Re,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var r=n;y(r)&&(r=!Ve(e,t)),(r?Ue:Re)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==si?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Oe,triggerHandler:function(e,t,n){var r,i,a,s=t.type||t,u=je(e),l=u&&u.events,c=l&&l[s];c&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:g,type:s,target:e},t.type&&(r=f(r,t)),i=H(c),a=n?[r].concat(n):[r],o(i,function(t){r.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){Me.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;a>o;o++)y(i)?(i=e(this[o],t,n,r),b(i)&&(i=Pr(i))):Le(i,e(this[o],t,n,r));return b(i)?i:this},Me.prototype.bind=Me.prototype.on,Me.prototype.unbind=Me.prototype.off}),et.prototype={put:function(e,t){this[Qe(e,this.nextUid)]=t},get:function(e){return this[Qe(e,this.nextUid)]},remove:function(e){var t=this[e=Qe(e,this.nextUid)];return delete this[e],t}};var Ai=[function(){this.$get=[function(){return et}]}],Ei=/^([^\(]+?)=>/,Di=/^[^\(]*\(\s*([^\)]*)\)/m,Ti=/,/,Mi=/^\s*(_?)(\S+?)\1\s*$/,Oi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ni=r("$injector");it.$$annotate=rt;var Fi=r("$animate"),Pi=1,ji="ng-animate",Ii=function(){this.$get=g},Vi=function(){var e=new et,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(e,t,n){var r=!1;return t&&(t=S(t)?t.split(" "):Wr(t)?t:[],o(t,function(t){t&&(r=!0,e[t]=n)})),r}function a(){o(t,function(t){var n=e.get(t);if(n){var r=ut(t.attr("class")),i="",a="";o(n,function(e,t){var n=!!r[t];e!==n&&(e?i+=(i.length?" ":"")+t:a+=(a.length?" ":"")+t)}),o(t,function(e){i&&Ue(e,i),a&&Re(e,a)}),e.remove(t)}}),t.length=0}function s(n,o,s){var u=e.get(n)||{},l=i(u,o,!0),c=i(u,s,!1);(l||c)&&(e.put(n,u),t.push(n),1===t.length&&r.$$postDigest(a))}return{enabled:g,on:g,off:g,pin:g,push:function(e,t,r,i){i&&i(),r=r||{},r.from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&s(e,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},Ri=["$provide",function(e){var t=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Fi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.classNameFilter=function(e){if(1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null,this.$$classNameFilter)){var t=new RegExp("(\\s+|\\/)"+ji+"(\\s+|\\/)");if(t.test(this.$$classNameFilter.toString()))throw Fi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',ji)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=st(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,r,i,o){return r=r&&Pr(r),i=i&&Pr(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",lt(o))},move:function(n,r,i,o){return r=r&&Pr(r),i=i&&Pr(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",lt(o))},leave:function(t,n){return e.push(t,"leave",lt(n),function(){t.remove()})},addClass:function(t,n,r){return r=lt(r),r.addClass=at(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=lt(r),r.removeClass=at(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=lt(i),i.addClass=at(i.addClass,n),i.removeClass=at(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=lt(o),o.from=o.from?f(o.from,n):n,o.to=o.to?f(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=at(o.tempClasses,i),e.push(t,"animate",o)}}}]}],Ui=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e(function(){for(var e=0;e<n.length;e++)n[e]();n=[]})}var n=[];return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}]},Li=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(e,t,n,r,i){function a(e){this.setHost(e);var t=n(),o=function(e){i(e,0,!1)};this._doneCallbacks=[],this._tick=function(e){var n=r[0];n&&n.hidden?o(e):t(e)},this._state=0}var s=0,u=1,l=2;return a.chain=function(e,t){function n(){return r===e.length?void t(!0):void e[r](function(e){return e===!1?void t(!1):(r++,void n())})}var r=0;n()},a.all=function(e,t){function n(n){i=i&&n,++r===e.length&&t(i)}var r=0,i=!0;o(e,function(e){e.done(n)})},a.prototype={setHost:function(e){this.host=e||{}},done:function(e){this._state===l?e():this._doneCallbacks.push(e)},progress:g,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){t===!1?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},"catch":function(e){return this.getPromise()["catch"](e)},"finally":function(e){return this.getPromise()["finally"](e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;t._state===s&&(t._state=u,t._tick(function(){t._resolve(e)}))},_resolve:function(e){this._state!==l&&(o(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=l)}},a}]},Hi=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function i(){return e(function(){o(),s||u.complete(),s=!0}),u}function o(){a.addClass&&(t.addClass(a.addClass),a.addClass=null),a.removeClass&&(t.removeClass(a.removeClass),a.removeClass=null),a.to&&(t.css(a.to),a.to=null)}var a=r||{};a.$$prepared||(a=L(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(t.css(a.from),a.from=null);var s,u=new n;return{start:i,end:i}}}]},zi=r("$compile");ht.$inject=["$provide","$$sanitizeUriProvider"];var qi=/^((?:x|data)[\:\-_])/i,Bi=r("$controller"),Wi=/^(\S+)(\s+as\s+([\w$]+))?$/,Yi=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof Pr&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},Xi="application/json",Gi={"Content-Type":Xi+";charset=utf-8"},Ki=/^\[|^\{(?!\{)/,Ji={"[":/]$/,"{":/}$/},Zi=/^\)\]\}',?\n/,Qi=r("$http"),eo=function(e){return function(){throw Qi("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",e)}},to=qr.$interpolateMinErr=r("$interpolate");to.throwNoconcat=function(e){throw to("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",e)},to.interr=function(e,t){return to("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var no=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,ro={http:80,https:443,ftp:21},io=r("$location"),oo={$$html5:!1,$$replace:!1,absUrl:Xt("$$absUrl"),url:function(e){if(y(e))return this.$$url;var t=no.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:Xt("$$protocol"),host:Xt("$$host"),port:Xt("$$port"),path:Gt("$$path",function(e){return e=null!==e?e.toString():"","/"==e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(S(e)||C(e))e=e.toString(),this.$$search=te(e);else{if(!w(e))throw io("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=L(e,{}),o(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:y(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:Gt("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};o([Yt,Wt,Bt],function(e){e.prototype=Object.create(oo),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==Bt||!this.$$html5)throw io("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=y(t)?null:t,this}});var ao=r("$parse"),so=Function.prototype.call,uo=Function.prototype.apply,lo=Function.prototype.bind,co=$e();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){co[e]=!0});var fo={n:"\n",f:"\f",r:"\r",t:" ",v:"\x0B","'":"'",'"':'"'},po=function(e){this.options=e};po.prototype={constructor:po,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(t))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=co[t],o=co[n],a=co[r];if(i||o||a){var s=a?r:o?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):!1},isNumber:function(e){return e>="0"&&"9">=e&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||" "===e||"\n"===e||"\x0B"===e||"\xa0"===e},isIdent:function(e){return e>="a"&&"z">=e||e>="A"&&"Z">=e||"_"===e||"$"===e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=b(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw ao("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=Tr(this.text.charAt(this.index));if("."==n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){for(var e=this.index;this.index<this.text.length;){var t=this.text.charAt(this.index);if(!this.isIdent(t)&&!this.isNumber(t))break;this.index++}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{var s=fo[o];n+=s||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 ho=function(e,t){this.lexer=e,this.options=t};ho.Program="Program",ho.ExpressionStatement="ExpressionStatement",ho.AssignmentExpression="AssignmentExpression",ho.ConditionalExpression="ConditionalExpression",ho.LogicalExpression="LogicalExpression",ho.BinaryExpression="BinaryExpression",ho.UnaryExpression="UnaryExpression",ho.CallExpression="CallExpression",ho.MemberExpression="MemberExpression",ho.Identifier="Identifier",ho.Literal="Literal",ho.ArrayExpression="ArrayExpression",ho.Property="Property",ho.ObjectExpression="ObjectExpression",ho.ThisExpression="ThisExpression",ho.LocalsExpression="LocalsExpression",ho.NGValueParameter="NGValueParameter",ho.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:ho.Program,body:e}},expressionStatement:function(){return{type:ho.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e,t=this.expression();e=this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();return this.expect("=")&&(e={type:ho.AssignmentExpression,left:e,right:this.assignment(),operator:"="}),e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:ho.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:ho.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:ho.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:ho.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:ho.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:ho.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:ho.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:ho.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=L(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:ho.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:ho.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:ho.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:ho.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:ho.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do e.push(this.expression());while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:ho.Identifier,name:e.text}},constant:function(){return{type:ho.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:ho.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:ho.Property,kind:"init"},this.peek().constant?e.key=this.constant():this.peek().identifier?e.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),e.value=this.expression(),t.push(e)}while(this.expect(","));return this.consume("}"),{type:ho.ObjectExpression,properties:t}},throwError:function(e,t){throw ao("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw ao("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw ao("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return i?(this.tokens.shift(),i):!1},selfReferential:{"this":{type:ho.ThisExpression},$locals:{type:ho.LocalsExpression}}},pn.prototype={compile:function(e,t){var r=this,i=this.astBuilder.ast(e);this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},sn(i,r.$filter);var a,s="";if(this.stage="assign",a=cn(i)){this.state.computing="assign";var u=this.nextId();this.recurse(a,u),this.return_(u),s="fn.assign="+this.generateFunction("assign","s,v,l")}var l=un(i.body);r.stage="inputs",o(l,function(e,t){var n="fn"+t;r.state[n]={vars:[],body:[],own:{}},r.state.computing=n;var i=r.nextId();r.recurse(e,i),r.return_(i),r.state.inputs.push(n),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(i);var c='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+s+this.watchFns()+"return fn;",f=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",c)(this.$filter,Zt,en,tn,Qt,nn,rn,on,e);return this.state=this.stage=n,f.literal=fn(i),f.constant=dn(i),f},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return o(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return o(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,r,i,a,s){var u,l,c,f,d=this;if(i=i||g,!s&&b(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,r,i,a,!0));switch(e.type){case ho.Program:o(e.body,function(t,r){d.recurse(t.expression,n,n,function(e){l=e}),r!==e.body.length-1?d.current().body.push(l,";"):d.return_(l)});break;case ho.Literal:f=this.escape(e.value),this.assign(t,f),i(f);break;case ho.UnaryExpression:this.recurse(e.argument,n,n,function(e){l=e}),f=e.operator+"("+this.ifDefined(l,0)+")",this.assign(t,f),i(f);break;case ho.BinaryExpression:this.recurse(e.left,n,n,function(e){u=e}),this.recurse(e.right,n,n,function(e){l=e}),f="+"===e.operator?this.plus(u,l):"-"===e.operator?this.ifDefined(u,0)+e.operator+this.ifDefined(l,0):"("+u+")"+e.operator+"("+l+")",
-this.assign(t,f),i(f);break;case ho.LogicalExpression:t=t||this.nextId(),d.recurse(e.left,t),d.if_("&&"===e.operator?t:d.not(t),d.lazyRecurse(e.right,t)),i(t);break;case ho.ConditionalExpression:t=t||this.nextId(),d.recurse(e.test,t),d.if_(t,d.lazyRecurse(e.alternate,t),d.lazyRecurse(e.consequent,t)),i(t);break;case ho.Identifier:t=t||this.nextId(),r&&(r.context="inputs"===d.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),r.computed=!1,r.name=e.name),Zt(e.name),d.if_("inputs"===d.stage||d.not(d.getHasOwnProperty("l",e.name)),function(){d.if_("inputs"===d.stage||"s",function(){a&&1!==a&&d.if_(d.not(d.nonComputedMember("s",e.name)),d.lazyAssign(d.nonComputedMember("s",e.name),"{}")),d.assign(t,d.nonComputedMember("s",e.name))})},t&&d.lazyAssign(t,d.nonComputedMember("l",e.name))),(d.state.expensiveChecks||gn(e.name))&&d.addEnsureSafeObject(t),i(t);break;case ho.MemberExpression:u=r&&(r.context=this.nextId())||this.nextId(),t=t||this.nextId(),d.recurse(e.object,u,n,function(){d.if_(d.notNull(u),function(){a&&1!==a&&d.addEnsureSafeAssignContext(u),e.computed?(l=d.nextId(),d.recurse(e.property,l),d.getStringValue(l),d.addEnsureSafeMemberName(l),a&&1!==a&&d.if_(d.not(d.computedMember(u,l)),d.lazyAssign(d.computedMember(u,l),"{}")),f=d.ensureSafeObject(d.computedMember(u,l)),d.assign(t,f),r&&(r.computed=!0,r.name=l)):(Zt(e.property.name),a&&1!==a&&d.if_(d.not(d.nonComputedMember(u,e.property.name)),d.lazyAssign(d.nonComputedMember(u,e.property.name),"{}")),f=d.nonComputedMember(u,e.property.name),(d.state.expensiveChecks||gn(e.property.name))&&(f=d.ensureSafeObject(f)),d.assign(t,f),r&&(r.computed=!1,r.name=e.property.name))},function(){d.assign(t,"undefined")}),i(t)},!!a);break;case ho.CallExpression:t=t||this.nextId(),e.filter?(l=d.filter(e.callee.name),c=[],o(e.arguments,function(e){var t=d.nextId();d.recurse(e,t),c.push(t)}),f=l+"("+c.join(",")+")",d.assign(t,f),i(t)):(l=d.nextId(),u={},c=[],d.recurse(e.callee,l,u,function(){d.if_(d.notNull(l),function(){d.addEnsureSafeFunction(l),o(e.arguments,function(e){d.recurse(e,d.nextId(),n,function(e){c.push(d.ensureSafeObject(e))})}),u.name?(d.state.expensiveChecks||d.addEnsureSafeObject(u.context),f=d.member(u.context,u.name,u.computed)+"("+c.join(",")+")"):f=l+"("+c.join(",")+")",f=d.ensureSafeObject(f),d.assign(t,f)},function(){d.assign(t,"undefined")}),i(t)}));break;case ho.AssignmentExpression:if(l=this.nextId(),u={},!ln(e.left))throw ao("lval","Trying to assign a value to a non l-value");this.recurse(e.left,n,u,function(){d.if_(d.notNull(u.context),function(){d.recurse(e.right,l),d.addEnsureSafeObject(d.member(u.context,u.name,u.computed)),d.addEnsureSafeAssignContext(u.context),f=d.member(u.context,u.name,u.computed)+e.operator+l,d.assign(t,f),i(t||f)})},1);break;case ho.ArrayExpression:c=[],o(e.elements,function(e){d.recurse(e,d.nextId(),n,function(e){c.push(e)})}),f="["+c.join(",")+"]",this.assign(t,f),i(f);break;case ho.ObjectExpression:c=[],o(e.properties,function(e){d.recurse(e.value,d.nextId(),n,function(t){c.push(d.escape(e.key.type===ho.Identifier?e.key.name:""+e.key.value)+":"+t)})}),f="{"+c.join(",")+"}",this.assign(t,f),i(f);break;case ho.ThisExpression:this.assign(t,"s"),i("s");break;case ho.LocalsExpression:this.assign(t,"l"),i("l");break;case ho.NGValueParameter:this.assign(t,"v"),i("v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){return e?(this.current().body.push(e,"=",t,";"),e):void 0},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(e===!0)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return e+"."+t},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},addEnsureSafeObject:function(e){this.current().body.push(this.ensureSafeObject(e),";")},addEnsureSafeMemberName:function(e){this.current().body.push(this.ensureSafeMemberName(e),";")},addEnsureSafeFunction:function(e){this.current().body.push(this.ensureSafeFunction(e),";")},addEnsureSafeAssignContext:function(e){this.current().body.push(this.ensureSafeAssignContext(e),";")},ensureSafeObject:function(e){return"ensureSafeObject("+e+",text)"},ensureSafeMemberName:function(e){return"ensureSafeMemberName("+e+",text)"},ensureSafeFunction:function(e){return"ensureSafeFunction("+e+",text)"},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},ensureSafeAssignContext:function(e){return"ensureSafeAssignContext("+e+",text)"},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(S(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(C(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(null===e)return"null";if("undefined"==typeof e)return"undefined";throw ao("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},hn.prototype={compile:function(e,t){var n=this,r=this.astBuilder.ast(e);this.expression=e,this.expensiveChecks=t,sn(r,n.$filter);var i,a;(i=cn(r))&&(a=this.recurse(i));var s,u=un(r.body);u&&(s=[],o(u,function(e,t){var r=n.recurse(e);e.input=r,s.push(r),e.watchId=t}));var l=[];o(r.body,function(e){l.push(n.recurse(e.expression))});var c=0===r.body.length?g:1===r.body.length?l[0]:function(e,t){var n;return o(l,function(r){n=r(e,t)}),n};return a&&(c.assign=function(e,t,n){return a(e,n,t)}),s&&(c.inputs=s),c.literal=fn(r),c.constant=dn(r),c},recurse:function(e,t,r){var i,a,s,u=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case ho.Literal:return this.value(e.value,t);case ho.UnaryExpression:return a=this.recurse(e.argument),this["unary"+e.operator](a,t);case ho.BinaryExpression:return i=this.recurse(e.left),a=this.recurse(e.right),this["binary"+e.operator](i,a,t);case ho.LogicalExpression:return i=this.recurse(e.left),a=this.recurse(e.right),this["binary"+e.operator](i,a,t);case ho.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case ho.Identifier:return Zt(e.name,u.expression),u.identifier(e.name,u.expensiveChecks||gn(e.name),t,r,u.expression);case ho.MemberExpression:return i=this.recurse(e.object,!1,!!r),e.computed||(Zt(e.property.name,u.expression),a=e.property.name),e.computed&&(a=this.recurse(e.property)),e.computed?this.computedMember(i,a,t,r,u.expression):this.nonComputedMember(i,a,u.expensiveChecks,t,r,u.expression);case ho.CallExpression:return s=[],o(e.arguments,function(e){s.push(u.recurse(e))}),e.filter&&(a=this.$filter(e.callee.name)),e.filter||(a=this.recurse(e.callee,!0)),e.filter?function(e,r,i,o){for(var u=[],l=0;l<s.length;++l)u.push(s[l](e,r,i,o));var c=a.apply(n,u,o);return t?{context:n,name:n,value:c}:c}:function(e,n,r,i){var o,l=a(e,n,r,i);if(null!=l.value){en(l.context,u.expression),tn(l.value,u.expression);for(var c=[],f=0;f<s.length;++f)c.push(en(s[f](e,n,r,i),u.expression));o=en(l.value.apply(l.context,c),u.expression)}return t?{value:o}:o};case ho.AssignmentExpression:return i=this.recurse(e.left,!0,1),a=this.recurse(e.right),function(e,n,r,o){var s=i(e,n,r,o),l=a(e,n,r,o);return en(s.value,u.expression),nn(s.context),s.context[s.name]=l,t?{value:l}:l};case ho.ArrayExpression:return s=[],o(e.elements,function(e){s.push(u.recurse(e))}),function(e,n,r,i){for(var o=[],a=0;a<s.length;++a)o.push(s[a](e,n,r,i));return t?{value:o}:o};case ho.ObjectExpression:return s=[],o(e.properties,function(e){s.push({key:e.key.type===ho.Identifier?e.key.name:""+e.key.value,value:u.recurse(e.value)})}),function(e,n,r,i){for(var o={},a=0;a<s.length;++a)o[s[a].key]=s[a].value(e,n,r,i);return t?{value:o}:o};case ho.ThisExpression:return function(e){return t?{value:e}:e};case ho.LocalsExpression:return function(e,n){return t?{value:n}:n};case ho.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=b(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=b(a)?-a:0,t?{value:a}:a}},"unary!":function(e,t){return function(n,r,i,o){var a=!e(n,r,i,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),l=on(s,u);return n?{value:l}:l}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),l=(b(s)?s:0)-(b(u)?u:0);return n?{value:l}:l}},"binary*":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)*t(r,i,o,a);return n?{value:s}:s}},"binary/":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)/t(r,i,o,a);return n?{value:s}:s}},"binary%":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)%t(r,i,o,a);return n?{value:s}:s}},"binary===":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)===t(r,i,o,a);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!==t(r,i,o,a);return n?{value:s}:s}},"binary==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)==t(r,i,o,a);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!=t(r,i,o,a);return n?{value:s}:s}},"binary<":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<t(r,i,o,a);return n?{value:s}:s}},"binary>":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(e,t){return function(){return t?{context:n,name:n,value:e}:e}},identifier:function(e,t,r,i,o){return function(a,s){var u=s&&e in s?s:a;i&&1!==i&&u&&!u[e]&&(u[e]={});var l=u?u[e]:n;return t&&en(l,o),r?{context:u,name:e,value:l}:l}},computedMember:function(e,t,n,r,i){return function(o,a,s,u){var l,c,f=e(o,a,s,u);return null!=f&&(l=t(o,a,s,u),l=Qt(l),Zt(l,i),r&&1!==r&&(nn(f),f&&!f[l]&&(f[l]={})),c=f[l],en(c,i)),n?{context:f,name:l,value:c}:c}},nonComputedMember:function(e,t,r,i,o,a){return function(s,u,l,c){var f=e(s,u,l,c);o&&1!==o&&(nn(f),f&&!f[t]&&(f[t]={}));var d=null!=f?f[t]:n;return(r||gn(t))&&en(d,a),i?{context:f,name:t,value:d}:d}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}};var go=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new ho(e,n),this.astCompiler=n.csp?new hn(this.ast,t):new pn(this.ast,t)};go.prototype={constructor:go,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}};var mo=Object.prototype.valueOf,$o=r("$sce"),vo={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},yo=r("$compile"),bo=t.createElement("a"),wo=On(e.location.href);Pn.$inject=["$document"],In.$inject=["$provide"];var xo=22,So=".",Co="0";Hn.$inject=["$locale"],zn.$inject=["$locale"];var ko={yyyy:Xn("FullYear",4,0,!1,!0),yy:Xn("FullYear",2,0,!0,!0),y:Xn("FullYear",1,0,!1,!0),MMMM:Gn("Month"),MMM:Gn("Month",!0),MM:Xn("Month",2,1),M:Xn("Month",1,1),LLLL:Gn("Month",!1,!0),dd:Xn("Date",2),d:Xn("Date",1),HH:Xn("Hours",2),H:Xn("Hours",1),hh:Xn("Hours",2,-12),h:Xn("Hours",1,-12),mm:Xn("Minutes",2),m:Xn("Minutes",1),ss:Xn("Seconds",2),s:Xn("Seconds",1),sss:Xn("Milliseconds",3),EEEE:Gn("Day"),EEE:Gn("Day",!0),a:er,Z:Kn,ww:Qn(2),w:Qn(1),G:tr,GG:tr,GGG:tr,GGGG:nr},_o=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Ao=/^\-?\d+$/;rr.$inject=["$locale"];var Eo=$(Tr),Do=$(Mr);ar.$inject=["$parse"];var To=$({restrict:"E",compile:function(e,t){return t.href||t.xlinkHref?void 0:function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Lr.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Mo={};o(Ci,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!=e){var r=gt("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),Mo[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(_i,function(e,t){Mo[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(Ar);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=gt("ng-"+e);Mo[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===Lr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){return t?(i.$set(a,t),void(Fr&&o&&r.prop(o,i[a]))):void("href"===e&&i.$set(a,null))})}}}});var Oo={$addControl:g,$$renameControl:ur,$removeControl:g,$setValidity:g,$setDirty:g,$setPristine:g,$setSubmitted:g},No="ng-submitted";lr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Fo=function(e){return["$timeout","$parse",function(t,r){function i(e){return""===e?r('this[""]').assign:r(e).assign||g}var o={name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:lr,compile:function(r,o){r.addClass(ma).addClass(ha);var a=o.name?"name":e&&o.ngForm?"ngForm":!1;return{pre:function(e,r,o,s){var u=s[0];if(!("action"in o)){var l=function(t){e.$apply(function(){u.$commitViewValue(),u.$setSubmitted()}),t.preventDefault()};fi(r[0],"submit",l),r.on("$destroy",function(){t(function(){di(r[0],"submit",l)},0,!1)})}var c=s[1]||u.$$parentForm;c.$addControl(u);var d=a?i(u.$name):g;a&&(d(e,u),o.$observe(a,function(t){u.$name!==t&&(d(e,n),u.$$parentForm.$$renameControl(u,t),(d=i(u.$name))(e,u))})),r.on("$destroy",function(){u.$$parentForm.$removeControl(u),d(e,n),f(u,Oo)})}}}};return o}]},Po=Fo(),jo=Fo(!0),Io=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Vo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Ro=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Uo=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Lo=/^(\d{4,})-(\d{2})-(\d{2})$/,Ho=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,zo=/^(\d{4,})-W(\d\d)$/,qo=/^(\d{4,})-(\d\d)$/,Bo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Wo="keydown wheel mousedown",Yo=$e();o("date,datetime-local,month,time,week".split(","),function(e){Yo[e]=!0});var Xo={text:fr,date:gr("date",Lo,hr(Lo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":gr("datetimelocal",Ho,hr(Ho,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:gr("time",Bo,hr(Bo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:gr("week",zo,pr,"yyyy-Www"),month:gr("month",qo,hr(qo,["yyyy","MM"]),"yyyy-MM"),number:$r,url:vr,email:yr,radio:br,checkbox:xr,hidden:g,button:g,submit:g,reset:g,file:g},Go=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(Xo[Tr(a.type)]||Xo.text)(i,o,a,s[0],t,e,n,r)}}}}],Ko=/^(true|false|\d+)$/,Jo=function(){return{restrict:"A",priority:100,compile:function(e,t){return Ko.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},Zo=["$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=y(e)?"":e})}}}}],Qo=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=y(e)?"":e})}}}}],ea=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(e){return(e||"").toString()});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){r.html(e.getTrustedHtml(o(t))||"")})}}}}],ta=$({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),na=Sr("",!0),ra=Sr("Odd",0),ia=Sr("Even",1),oa=sr({compile:function(e,t){t.$set("ngCloak",n),e.removeClass("ng-cloak")}}),aa=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],sa={},ua={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=gt("ng-"+e);sa[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t],null,!0);return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})};ua[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var la=["$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=me(s.clone),e.leave(l).then(function(){l=null}),s=null))})}}}],ca=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:qr.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,l,c){var f,d,p,h=0,g=function(){d&&(d.remove(),d=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).then(function(){d=null}),d=p,p=null)};r.$watch(o,function(o){var u=function(){!b(s)||s&&!r.$eval(s)||t()},d=++h;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&d===h){var t=r.$new();l.template=e;var s=c(t,function(e){g(),n.enter(e,null,i).then(u)});f=t,p=s,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||d===h&&(g(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(g(),l.template=null)})}}}}],fa=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return Lr.call(r[0]).match(/SVG/)?(r.empty(),void e(Ee(o.template,t).childNodes)(n,function(e){r.append(e)},{futureParentElement:r})):(r.html(o.template),void e(r.contents())(n))}}}],da=sr({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),pa=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,r,i){var a=t.attr(r.$attr.ngList)||", ",s="false"!==r.ngTrim,u=s?Xr(a):a,l=function(e){if(!y(e)){var t=[];return e&&o(e.split(u),function(e){e&&t.push(s?Xr(e):e)}),t}};i.$parsers.push(l),i.$formatters.push(function(e){return Wr(e)?e.join(a):n}),i.$isEmpty=function(e){return!e||!e.length}}}},ha="ng-valid",ga="ng-invalid",ma="ng-pristine",$a="ng-dirty",va="ng-untouched",ya="ng-touched",ba="ng-pending",wa="ng-empty",xa="ng-not-empty",Sa=r("ngModel"),Ca=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,r,i,a,s,u,l,c,f){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=n,this.$name=f(r.name||"",!1)(e),this.$$parentForm=Oo;var d,p=a(r.ngModel),h=p.assign,m=p,$=h,v=null,w=this;this.$$setOptions=function(e){if(w.$options=e,e&&e.getterSetter){var t=a(r.ngModel+"()"),n=a(r.ngModel+"($$$p)");m=function(e){var n=p(e);return _(n)&&(n=t(e)),n},$=function(e,t){_(p(e))?n(e,{$$$p:t}):h(e,t)}}else if(!p.assign)throw Sa("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,Q(i))},this.$render=g,this.$isEmpty=function(e){return y(e)||""===e||null===e||e!==e},this.$$updateEmptyClasses=function(e){w.$isEmpty(e)?(s.removeClass(i,xa),s.addClass(i,wa)):(s.removeClass(i,wa),s.addClass(i,xa))};var x=0;Cr({ctrl:this,$element:i,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},$animate:s}),this.$setPristine=function(){w.$dirty=!1,w.$pristine=!0,s.removeClass(i,$a),s.addClass(i,ma)},this.$setDirty=function(){w.$dirty=!0,w.$pristine=!1,s.removeClass(i,ma),s.addClass(i,$a),w.$$parentForm.$setDirty()},this.$setUntouched=function(){w.$touched=!1,w.$untouched=!0,s.setClass(i,va,ya)},this.$setTouched=function(){w.$touched=!0,w.$untouched=!1,s.setClass(i,ya,va)},this.$rollbackViewValue=function(){u.cancel(v),w.$viewValue=w.$$lastCommittedViewValue,w.$render()},this.$validate=function(){if(!C(w.$modelValue)||!isNaN(w.$modelValue)){var e=w.$$lastCommittedViewValue,t=w.$$rawModelValue,r=w.$valid,i=w.$modelValue,o=w.$options&&w.$options.allowInvalid;w.$$runValidators(t,e,function(e){o||r===e||(w.$modelValue=e?t:n,w.$modelValue!==i&&w.$$writeModelToScope())})}},this.$$runValidators=function(e,t,r){function i(){var e=w.$$parserName||"parse";return y(d)?(u(e,null),!0):(d||(o(w.$validators,function(e,t){u(t,null)}),o(w.$asyncValidators,function(e,t){u(t,null)})),u(e,d),d)}function a(){var n=!0;return o(w.$validators,function(r,i){var o=r(e,t);n=n&&o,u(i,o)}),n?!0:(o(w.$asyncValidators,function(e,t){u(t,null)}),!1)}function s(){var r=[],i=!0;o(w.$asyncValidators,function(o,a){var s=o(e,t);if(!F(s))throw Sa("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);u(a,n),r.push(s.then(function(){u(a,!0)},function(){i=!1,u(a,!1)}))}),r.length?c.all(r).then(function(){l(i)},g):l(!0)}function u(e,t){f===x&&w.$setValidity(e,t)}function l(e){f===x&&r(e)}x++;var f=x;return i()&&a()?void s():void l(!1)},this.$commitViewValue=function(){var e=w.$viewValue;u.cancel(v),(w.$$lastCommittedViewValue!==e||""===e&&w.$$hasNativeValidators)&&(w.$$updateEmptyClasses(e),w.$$lastCommittedViewValue=e,w.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function t(){w.$modelValue!==a&&w.$$writeModelToScope()}var r=w.$$lastCommittedViewValue,i=r;if(d=y(i)?n:!0)for(var o=0;o<w.$parsers.length;o++)if(i=w.$parsers[o](i),y(i)){d=!1;break}C(w.$modelValue)&&isNaN(w.$modelValue)&&(w.$modelValue=m(e));var a=w.$modelValue,s=w.$options&&w.$options.allowInvalid;w.$$rawModelValue=i,s&&(w.$modelValue=i,t()),w.$$runValidators(i,w.$$lastCommittedViewValue,function(e){s||(w.$modelValue=e?i:n,t())})},this.$$writeModelToScope=function(){$(e,w.$modelValue),o(w.$viewChangeListeners,function(e){try{e()}catch(n){t(n)}})},this.$setViewValue=function(e,t){w.$viewValue=e,w.$options&&!w.$options.updateOnDefault||w.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n,r=0,i=w.$options;i&&b(i.debounce)&&(n=i.debounce,C(n)?r=n:C(n[t])?r=n[t]:C(n["default"])&&(r=n["default"])),u.cancel(v),r?v=u(function(){w.$commitViewValue()},r):l.$$phase?w.$commitViewValue():e.$apply(function(){w.$commitViewValue()})},e.$watch(function(){var t=m(e);if(t!==w.$modelValue&&(w.$modelValue===w.$modelValue||t===t)){w.$modelValue=w.$$rawModelValue=t,d=n;for(var r=w.$formatters,i=r.length,o=t;i--;)o=r[i](o);w.$viewValue!==o&&(w.$$updateEmptyClasses(o),w.$viewValue=w.$$lastCommittedViewValue=o,w.$render(),w.$$runValidators(t,o,g))}return t})}],ka=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Ca,priority:1,compile:function(t){return t.addClass(ma).addClass(va).addClass(ha),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(e){o.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){o.$touched||(e.$$phase?t.$evalAsync(o.$setTouched):t.$apply(o.$setTouched))})}}}}}],_a=/(\s+|^)default(\s+|$)/,Aa=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var n=this;this.$options=L(e.$eval(t.ngModelOptions)),b(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Xr(this.$options.updateOn.replace(_a,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},Ea=sr({terminal:!0,priority:1e3}),Da=r("ngOptions"),Ta=/^\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]+?))?$/,Ma=["$compile","$parse",function(e,n){function r(e,t,r){function o(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function a(e){var t;if(!l&&i(e))t=e;else{t=[];for(var n in e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n)}return t}var s=e.match(Ta);if(!s)throw Da("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,Q(t));var u=s[5]||s[7],l=s[6],c=/ as /.test(s[0])&&s[1],f=s[9],d=n(s[2]?s[1]:u),p=c&&n(c),h=p||d,g=f&&n(f),m=f?function(e,t){return g(r,t)}:function(e){return Qe(e)},$=function(e,t){return m(e,S(e,t))},v=n(s[2]||s[1]),y=n(s[3]||""),b=n(s[4]||""),w=n(s[8]),x={},S=l?function(e,t){return x[l]=t,x[u]=e,x}:function(e){return x[u]=e,x};return{trackBy:f,getTrackByValue:$,getWatchables:n(w,function(e){var t=[];e=e||[];for(var n=a(e),i=n.length,o=0;i>o;o++){var u=e===n?o:n[o],l=e[u],c=S(l,u),f=m(l,c);if(t.push(f),s[2]||s[1]){var d=v(r,c);t.push(d)}if(s[4]){var p=b(r,c);t.push(p)}}return t}),getOptions:function(){for(var e=[],t={},n=w(r)||[],i=a(n),s=i.length,u=0;s>u;u++){var l=n===i?u:i[u],c=n[l],d=S(c,l),p=h(r,d),g=m(p,d),x=v(r,d),C=y(r,d),k=b(r,d),_=new o(g,p,x,C,k);e.push(_),t[g]=_}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[$(e)]},getViewValueFromOption:function(e){return f?qr.copy(e.viewValue):e.viewValue}}}}}function a(t,n,i,a){function l(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),e.value!==t.value&&(t.value=e.selectValue)}function c(e,t,n,r){var i;return t&&Tr(t.nodeName)===n?i=t:(i=r.cloneNode(!1),t?e.insertBefore(i,t):e.appendChild(i)),i}function f(e){for(var t;e;)t=e.nextSibling,Be(e),e=t}function d(e){var t=h&&h[0],n=S&&S[0];if(t||n)for(;e&&(e===t||e===n||e.nodeType===oi||"option"===R(e)&&""===e.value);)e=e.nextSibling;return e}function p(){var e=C&&g.readValue();C=k.getOptions();var t={},r=n[0].firstChild;if(x&&n.prepend(h),r=d(r),C.items.forEach(function(e){var i,o,a;b(e.group)?(i=t[e.group],i||(o=c(n[0],r,"optgroup",u),r=o.nextSibling,o.label=e.group,i=t[e.group]={groupElement:o,currentOptionElement:o.firstChild}),a=c(i.groupElement,i.currentOptionElement,"option",s),l(e,a),i.currentOptionElement=a.nextSibling):(a=c(n[0],r,"option",s),l(e,a),r=a.nextSibling)}),Object.keys(t).forEach(function(e){f(t[e].currentOptionElement)}),f(r),m.$render(),!m.$isEmpty(e)){var i=g.readValue(),o=k.trackBy||$;(o?z(e,i):e===i)||(m.$setViewValue(i),m.$render())}}for(var h,g=a[0],m=a[1],$=i.multiple,v=0,y=n.children(),w=y.length;w>v;v++)if(""===y[v].value){h=y.eq(v);break}var x=!!h,S=Pr(s.cloneNode(!1));S.val("?");var C,k=r(i.ngOptions,n,t),_=function(){x||n.prepend(h),n.val(""),h.prop("selected",!0),h.attr("selected",!0)},A=function(){x||h.remove()},E=function(){n.prepend(S),n.val("?"),S.prop("selected",!0),S.attr("selected",!0)},D=function(){S.remove()};$?(m.$isEmpty=function(e){return!e||0===e.length},g.writeValue=function(e){C.items.forEach(function(e){e.element.selected=!1}),e&&e.forEach(function(e){var t=C.getOptionFromViewValue(e);t&&!t.disabled&&(t.element.selected=!0)})},g.readValue=function(){var e=n.val()||[],t=[];return o(e,function(e){var n=C.selectValueMap[e];n&&!n.disabled&&t.push(C.getViewValueFromOption(n))}),t},k.trackBy&&t.$watchCollection(function(){return Wr(m.$viewValue)?m.$viewValue.map(function(e){return k.getTrackByValue(e)}):void 0},function(){m.$render()})):(g.writeValue=function(e){var t=C.getOptionFromViewValue(e);t&&!t.disabled?(n[0].value!==t.selectValue&&(D(),A(),n[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):null===e||x?(D(),_()):(A(),E())},g.readValue=function(){var e=C.selectValueMap[n.val()];return e&&!e.disabled?(A(),D(),C.getViewValueFromOption(e)):null},k.trackBy&&t.$watch(function(){return k.getTrackByValue(m.$viewValue)},function(){m.$render()})),x?(h.remove(),e(h)(t),h.removeClass("ng-scope")):h=Pr(s.cloneNode(!1)),p(),t.$watchCollection(k.getWatchables,p)}var s=t.createElement("option"),u=t.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=g},post:a}}}],Oa=["$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,h=a.$eval(d)||{},m={},$=t.startSymbol(),v=t.endSymbol(),b=$+f+"-"+p+v,w=qr.noop;o(u,function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+Tr(n[2]);h[r]=s.attr(u.$attr[t])}}),o(h,function(e,n){m[n]=t(e.replace(r,b))}),a.$watch(f,function(t){var r=parseFloat(t),i=isNaN(r);if(i||r in h||(r=e.pluralCat(r-p)),r!==c&&!(i&&C(c)&&isNaN(c))){w();var o=m[r];y(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+d),w=g,l()):w=a.$watch(o,l),c=r}})}}}],Na=["$parse","$animate","$compile",function(e,t,a){var s="$$NG_REMOVED",u=r("ngRepeat"),l=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0===(1&t))},c=function(e){return e.clone[0]},f=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,d){var p=d.ngRepeat,h=a.$$createComment("end ngRepeat",p),g=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!g)throw u("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var m=g[1],$=g[2],v=g[3],y=g[4];if(g=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!g)throw u("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var b=g[3]||g[1],w=g[2];if(v&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(v)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(v)))throw u("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",v);var x,S,C,k,_={$id:Qe};return y?x=e(y):(C=function(e,t){return Qe(t)},k=function(e){return e}),function(e,r,a,d,g){x&&(S=function(t,n,r){return w&&(_[w]=t),_[b]=n,_.$index=r,x(e,_)});var m=$e();e.$watchCollection($,function(a){var d,$,y,x,_,A,E,D,T,M,O,N,F=r[0],P=$e();if(v&&(e[v]=a),i(a))T=a,D=S||C;else{D=S||k,T=[];for(var j in a)Dr.call(a,j)&&"$"!==j.charAt(0)&&T.push(j)}for(x=T.length,O=new Array(x),d=0;x>d;d++)if(_=a===T?d:T[d],A=a[_],E=D(_,A,d),m[E])M=m[E],delete m[E],P[E]=M,O[d]=M;else{if(P[E])throw o(O,function(e){e&&e.scope&&(m[e.id]=e)}),u("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,E,A);O[d]={id:E,scope:n,clone:n},P[E]=!0}for(var I in m){if(M=m[I],N=me(M.clone),t.leave(N),N[0].parentNode)for(d=0,$=N.length;$>d;d++)N[d][s]=!0;M.scope.$destroy()}for(d=0;x>d;d++)if(_=a===T?d:T[d],A=a[_],M=O[d],M.scope){
-y=F;do y=y.nextSibling;while(y&&y[s]);c(M)!=y&&t.move(me(M.clone),null,F),F=f(M),l(M.scope,d,b,A,w,_,x)}else g(function(e,n){M.scope=n;var r=h.cloneNode(!1);e[e.length++]=r,t.enter(e,null,F),F=r,M.clone=e,P[M.id]=M,l(M.scope,d,b,A,w,_,x)});m=P})}}}}],Fa="ng-hide",Pa="ng-hide-animate",ja=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,Fa,{tempClasses:Pa})})}}}],Ia=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,Fa,{tempClasses:Pa})})}}}],Va=sr(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&o(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),Ra=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var s=i.ngSwitch||i.on,u=[],l=[],c=[],f=[],d=function(e,t){return function(){e.splice(t,1)}};n.$watch(s,function(n){var r,i;for(r=0,i=c.length;i>r;++r)e.cancel(c[r]);for(c.length=0,r=0,i=f.length;i>r;++r){var s=me(l[r].clone);f[r].$destroy();var p=c[r]=e.leave(s);p.then(d(c,r))}l.length=0,f.length=0,(u=a.cases["!"+n]||a.cases["?"])&&o(u,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:r};l.push(a),e.enter(r,o.parent(),o)})})})}}}],Ua=sr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}}),La=sr({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})}}),Ha=r("ngTransclude"),za=sr({restrict:"EAC",link:function(e,t,n,r,i){function o(e){e.length&&(t.empty(),t.append(e))}if(n.ngTransclude===n.$attr.ngTransclude&&(n.ngTransclude=""),!i)throw Ha("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Q(t));var a=n.ngTransclude||n.ngTranscludeSlot;i(o,null,a)}}),qa=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],Ba={$setViewValue:g,$render:g},Wa=["$element","$scope",function(e,r){var i=this,o=new et;i.ngModelCtrl=Ba,i.unknownOption=Pr(t.createElement("option")),i.renderUnknownOption=function(t){var n="? "+Qe(t)+" ?";i.unknownOption.val(n),e.prepend(i.unknownOption),e.val(n)},r.$on("$destroy",function(){i.renderUnknownOption=g}),i.removeUnknownOption=function(){i.unknownOption.parent()&&i.unknownOption.remove()},i.readValue=function(){return i.removeUnknownOption(),e.val()},i.writeValue=function(t){i.hasOption(t)?(i.removeUnknownOption(),e.val(t),""===t&&i.emptyOption.prop("selected",!0)):null==t&&i.emptyOption?(i.removeUnknownOption(),e.val("")):i.renderUnknownOption(t)},i.addOption=function(e,t){if(t[0].nodeType!==oi){he(e,'"option value"'),""===e&&(i.emptyOption=t);var n=o.get(e)||0;o.put(e,n+1),i.ngModelCtrl.$render(),_r(t)}},i.removeOption=function(e){var t=o.get(e);t&&(1===t?(o.remove(e),""===e&&(i.emptyOption=n)):o.put(e,t-1))},i.hasOption=function(e){return!!o.get(e)},i.registerOption=function(e,t,n,r,o){if(r){var a;n.$observe("value",function(e){b(a)&&i.removeOption(a),a=e,i.addOption(e,t)})}else o?e.$watch(o,function(e,r){n.$set("value",e),r!==e&&i.removeOption(r),i.addOption(e,t)}):i.addOption(n.value,t);t.on("$destroy",function(){i.removeOption(n.value),i.ngModelCtrl.$render()})}}],Ya=function(){function e(e,t,n,r){var i=r[1];if(i){var a=r[0];if(a.ngModelCtrl=i,t.on("change",function(){e.$apply(function(){i.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var e=[];return o(t.find("option"),function(t){t.selected&&e.push(t.value)}),e},a.writeValue=function(e){var n=new et(e);o(t.find("option"),function(e){e.selected=b(n.get(e.value))})};var s,u=NaN;e.$watch(function(){u!==i.$viewValue||z(s,i.$viewValue)||(s=H(i.$viewValue),i.$render()),u=i.$viewValue}),i.$isEmpty=function(e){return!e||0===e.length}}}}function t(e,t,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Wa,priority:1,link:{pre:e,post:t}}},Xa=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){if(b(n.value))var r=e(n.value,!0);else{var i=e(t.text(),!0);i||n.$set("value",t.text())}return function(e,t,n){var o="$selectController",a=t.parent(),s=a.data(o)||a.parent().data(o);s&&s.registerOption(e,t,n,r,i)}}}}],Ga=$({restrict:"E",terminal:!1}),Ka=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},Ja=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,i,o){if(o){var a,s=i.ngPattern||i.pattern;i.$observe("pattern",function(e){if(S(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",s,e,Q(t));a=e||n,o.$validate()}),o.$validators.pattern=function(e,t){return o.$isEmpty(t)||y(a)||a.test(t)}}}}},Za=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=p(e);i=isNaN(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return 0>i||r.$isEmpty(t)||t.length<=i}}}}},Qa=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=p(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};return e.angular.bootstrap?void(e.console&&console.log("WARNING: Tried to load angular more than once.")):(fe(),we(qr),qr.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return-1==t?0:e.length-t-1}function r(e,r){var i=r;n===i&&(i=Math.min(t(e),3));var o=Math.pow(10,i),a=(e*o|0)%o;return{v:i,f:a}}var i={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-\xa4",negSuf:"",posPre:"\xa4",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var n=0|e,o=r(e,t);return 1==n&&0==o.v?i.ONE:i.OTHER}})}]),void Pr(t).ready(function(){ae(t,se)}))}(window,document),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),angular.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return-1==t?0:e.length-t-1}function n(e,n){var r=n;void 0===r&&(r=Math.min(t(e),3));var i=Math.pow(10,r),o=(e*i|0)%i;return{v:r,f:o}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["niedziela","poniedzia\u0142ek","wtorek","\u015broda","czwartek","pi\u0105tek","sobota"],MONTH:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","wrze\u015bnia","pa\u017adziernika","listopada","grudnia"],SHORTDAY:["niedz.","pon.","wt.","\u015br.","czw.","pt.","sob."],SHORTMONTH:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","pa\u017a","lis","gru"],fullDate:"EEEE, d MMMM y",longDate:"d MMMM y",medium:"d MMM y HH:mm:ss",mediumDate:"d MMM y",mediumTime:"HH:mm:ss","short":"dd.MM.y HH:mm",shortDate:"dd.MM.y",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"z\u0142",DECIMAL_SEP:",",GROUP_SEP:"\xa0",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:"\xa0\xa4",posPre:"",posSuf:"\xa0\xa4"}]},id:"pl",pluralCat:function(e,t){var i=0|e,o=n(e,t);return 1==i&&0==o.v?r.ONE:0==o.v&&i%10>=2&&4>=i%10&&(12>i%100||i%100>14)?r.FEW:0==o.v&&1!=i&&i%10>=0&&1>=i%10||0==o.v&&i%10>=5&&9>=i%10||0==o.v&&i%100>=12&&14>=i%100?r.MANY:r.OTHER}})}]),function(e,t){"use strict";function n(){function e(e,n){return t.extend(Object.create(e),n)}function n(e,t){var n=t.caseInsensitiveMatch,r={originalPath:e,regexp:e},i=r.keys=[];return e=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g,function(e,t,n,r){var o="?"===r||"*?"===r?"?":null,a="*"===r||"*?"===r?"*":null;return i.push({name:n,optional:!!o}),t=t||"",""+(o?"":t)+"(?:"+(o?t:"")+(a&&"(.+?)"||"([^/]+)")+(o||"")+")"+(o||"")}).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+e+"$",n?"i":""),r}var r={};this.when=function(e,i){var o=t.copy(i);if(t.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),t.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),r[e]=t.extend(o,e&&n(e,o)),e){var a="/"==e[e.length-1]?e.substr(0,e.length-1):e+"/";r[a]=t.extend({redirectTo:e},n(a,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeof e&&(e={redirectTo:e}),this.when(null,e),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,i,o,a,u,l,c){function f(e,t){var n=t.keys,r={};if(!t.regexp)return null;var i=t.regexp.exec(e);if(!i)return null;for(var o=1,a=i.length;a>o;++o){var s=n[o-1],u=i[o];s&&u&&(r[s.name]=u)}return r}function d(e){var r=y.current;m=h(),$=m&&r&&m.$$route===r.$$route&&t.equals(m.pathParams,r.pathParams)&&!m.reloadOnSearch&&!v,$||!r&&!m||n.$broadcast("$routeChangeStart",m,r).defaultPrevented&&e&&e.preventDefault()}function p(){var e=y.current,r=m;$?(e.params=r.params,t.copy(e.params,o),n.$broadcast("$routeUpdate",e)):(r||e)&&(v=!1,y.current=r,r&&r.redirectTo&&(t.isString(r.redirectTo)?i.path(g(r.redirectTo,r.params)).search(r.params).replace():i.url(r.redirectTo(r.pathParams,i.path(),i.search())).replace()),a.when(r).then(function(){if(r){var e,n,i=t.extend({},r.resolve);return t.forEach(i,function(e,n){i[n]=t.isString(e)?u.get(e):u.invoke(e,null,null,n)}),t.isDefined(e=r.template)?t.isFunction(e)&&(e=e(r.params)):t.isDefined(n=r.templateUrl)&&(t.isFunction(n)&&(n=n(r.params)),t.isDefined(n)&&(r.loadedTemplateUrl=c.valueOf(n),e=l(n))),t.isDefined(e)&&(i.$template=e),a.all(i)}}).then(function(i){r==y.current&&(r&&(r.locals=i,t.copy(r.params,o)),n.$broadcast("$routeChangeSuccess",r,e))},function(t){r==y.current&&n.$broadcast("$routeChangeError",r,e,t)}))}function h(){var n,o;return t.forEach(r,function(r){!o&&(n=f(i.path(),r))&&(o=e(r,{params:t.extend({},i.search(),n),pathParams:n}),o.$$route=r)}),o||r[null]&&e(r[null],{params:{},pathParams:{}})}function g(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 m,$,v=!1,y={routes:r,reload:function(){v=!0;var e={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,v=!1}};n.$evalAsync(function(){d(e),e.defaultPrevented||p()})},updateParams:function(e){if(!this.current||!this.current.$$route)throw s("norout","Tried updating route when with no current route");e=t.extend({},this.current.params,e),i.path(g(this.current.$$route.originalPath,e)),i.search(e)}};return n.$on("$locationChangeStart",d),n.$on("$locationChangeSuccess",p),y}]}function r(){this.$get=function(){return{}}}function i(e,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,a,s,u){function l(){p&&(r.cancel(p),p=null),f&&(f.$destroy(),f=null),d&&(p=r.leave(d),p.then(function(){p=null}),d=null)}function c(){var a=e.current&&e.current.locals,s=a&&a.$template;if(t.isDefined(s)){var c=i.$new(),p=e.current,m=u(c,function(e){r.enter(e,null,d||o).then(function(){!t.isDefined(h)||h&&!i.$eval(h)||n()}),l()});d=m,f=p.scope=c,f.$emit("$viewContentLoaded"),f.$eval(g)}else l()}var f,d,p,h=a.autoscroll,g=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=t.module("ngRoute",["ng"]).provider("$route",n).run(["$route",t.noop]),s=t.$$minErr("ngRoute");a.provider("$routeParams",r),a.directive("ngView",i),a.directive("ngView",o),i.$inject=["$route","$anchorScroll","$animate"],o.$inject=["$compile","$controller","$route"]}(window,window.angular),function(e,t,n){"use strict";function r(){var e=!1;this.$get=["$$sanitizeUri",function(n){return e&&t.extend(S,w),function(e){var t=[];return a(e,l(t,function(e,t){return!/^unsafe:/.test(n(e,t))})),t.join("")}}],this.enableSvg=function(n){return t.isDefined(n)?(e=n,this):e}}function i(e){var n=[],r=l(n,t.noop);return r.chars(e),n.join("")}function o(e,n){var r,i={},o=e.split(",");for(r=0;r<o.length;r++)i[n?t.lowercase(o[r]):o[r]]=!0;return i}function a(e,t){null===e||e===n?e="":"string"!=typeof e&&(e=""+e),f.innerHTML=e;var r=5;do{if(0===r)throw d("uinput","Failed to sanitize html because the input is unstable");r--,document.documentMode<=11&&c(f),e=f.innerHTML,f.innerHTML=e}while(e!==f.innerHTML);for(var i=f.firstChild;i;){switch(i.nodeType){case 1:t.start(i.nodeName.toLowerCase(),s(i.attributes));break;case 3:t.chars(i.textContent)}var o;if(!(o=i.firstChild)&&(1==i.nodeType&&t.end(i.nodeName.toLowerCase()),o=i.nextSibling,!o))for(;null==o&&(i=i.parentNode,i!==f);)o=i.nextSibling,1==i.nodeType&&t.end(i.nodeName.toLowerCase());i=o}for(;i=f.firstChild;)f.removeChild(i)}function s(e){for(var t={},n=0,r=e.length;r>n;n++){var i=e[n];t[i.name]=i.value}return t}function u(e){return e.replace(/&/g,"&").replace(p,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+(1024*(t-55296)+(n-56320)+65536)+";"}).replace(h,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function l(e,n){var r=!1,i=t.bind(e,e.push);return{start:function(e,o){e=t.lowercase(e),!r&&x[e]&&(r=e),r||S[e]!==!0||(i("<"),i(e),t.forEach(o,function(r,o){var a=t.lowercase(o),s="img"===e&&"src"===a||"background"===a;A[a]!==!0||C[a]===!0&&!n(r,s)||(i(" "),i(o),i('="'),i(u(r)),i('"'))}),i(">"))},end:function(e){e=t.lowercase(e),r||S[e]!==!0||g[e]===!0||(i("</"),i(e),i(">")),e==r&&(r=!1)},chars:function(e){r||i(u(e))}}}function c(e){if(e.nodeType===Node.ELEMENT_NODE)for(var t=e.attributes,n=0,r=t.length;r>n;n++){var i=t[n],o=i.name.toLowerCase();"xmlns:ns1"!==o&&0!==o.indexOf("ns1:")||(e.removeAttributeNode(i),n--,r--)}var a=e.firstChild;a&&c(a),a=e.nextSibling,a&&c(a)}var f,d=t.$$minErr("$sanitize"),p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=/([^\#-~ |!])/g,g=o("area,br,col,hr,img,wbr"),m=o("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$=o("rp,rt"),v=t.extend({},$,m),y=t.extend({},m,o("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")),b=t.extend({},$,o("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")),w=o("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"),x=o("script,style"),S=t.extend({},g,y,b,v),C=o("background,cite,href,longdesc,src,xlink:href"),k=o("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"),_=o("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),A=t.extend({},C,_,k);!function(e){var t;if(!e.document||!e.document.implementation)throw d("noinert","Can't create an inert html document");t=e.document.implementation.createHTMLDocument("inert");var n=t.documentElement||t.getDocumentElement(),r=n.getElementsByTagName("body");if(1===r.length)f=r[0];else{var i=t.createElement("html");f=t.createElement("body"),i.appendChild(f),t.appendChild(i)}}(e),t.module("ngSanitize",[]).provider("$sanitize",r),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i,o=t.$$minErr("linky"),a=t.isString;return function(s,u,l){function c(e){e&&m.push(i(e))}function f(e,n){var r;if(m.push("<a "),t.isFunction(l)&&(l=l(e)),t.isObject(l))for(r in l)m.push(r+'="'+l[r]+'" ');else l={};!t.isDefined(u)||"target"in l||m.push('target="',u,'" '),m.push('href="',e.replace(/"/g,"""),'">'),c(n),m.push("</a>")}if(null==s||""===s)return s;if(!a(s))throw o("notstring","Expected string but received: {0}",s);for(var d,p,h,g=s,m=[];d=g.match(n);)p=d[0],d[2]||d[4]||(p=(d[3]?"http://":"mailto:")+p),h=d.index,c(g.substr(0,h)),f(p,d[0].replace(r,"")),g=g.substring(h+d[0].length);return c(g),e(m.join(""))}}])}(window,window.angular),function(e,t){"use strict";function n(e,t,n){if(!e)throw ge("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function r(e,t){return e||t?e?t?(H(e)&&(e=e.join(" ")),H(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function i(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function o(e,t,n){var r="";return e=H(e)?e:e&&z(e)&&e.length?e.split(/\s+/):[],L(e,function(e,i){e&&e.length>0&&(r+=i>0?" ":"",r+=n?t+e:e+t)}),r}function a(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function s(e){if(e instanceof U)switch(e.length){case 0:return[];case 1:if(e[0].nodeType===G)return e;break;default:return U(u(e))}return e.nodeType===G?U(e):void 0}function u(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType==G)return n}}function l(e,t,n){L(t,function(t){e.addClass(t,n)})}function c(e,t,n){L(t,function(t){e.removeClass(t,n)})}function f(e){return function(t,n){n.addClass&&(l(e,t,n.addClass),n.addClass=null),n.removeClass&&(c(e,t,n.removeClass),n.removeClass=null)}}function d(e){if(e=e||{},!e.$$prepared){var t=e.domOperation||I;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=I},e.$$prepared=!0}return e}function p(e,t){h(e,t),g(e,t)}function h(e,t){t.from&&(e.css(t.from),t.from=null)}function g(e,t){t.to&&(e.css(t.to),t.to=null)}function m(e,t,n){var r=t.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),s=$(e.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=C(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var u=r.domOperation!==I?r.domOperation:null;return R(r,i),u&&(r.domOperation=u),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function $(e,t,n){function r(e){z(e)&&(e=e.split(" "));var t={};return L(e,function(e){e.length&&(t[e]=!0)}),t}var i=1,o=-1,a={};e=r(e),t=r(t),L(t,function(e,t){a[t]=i}),n=r(n),L(n,function(e,t){a[t]=a[t]===i?null:o});var s={addClass:"",removeClass:""};return L(a,function(t,n){var r,a;t===i?(r="addClass",a=!e[n]):t===o&&(r="removeClass",a=e[n]),a&&(s[r].length&&(s[r]+=" "),s[r]+=n)}),s}function v(e){return e instanceof t.element?e[0]:e}function y(e,t,n){var r="";t&&(r=o(t,Z,!0)),n.addClass&&(r=C(r,o(n.addClass,K))),n.removeClass&&(r=C(r,o(n.removeClass,J))),r.length&&(n.preparationClasses=r,e.addClass(r))}function b(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)}function w(e,t){var n=t?"-"+t+"s":"";return S(e,[pe,n]),[pe,n]}function x(e,t){var n=t?"paused":"",r=P+le;return S(e,[r,n]),[r,n]}function S(e,t){var n=t[0],r=t[1];e.style[n]=r}function C(e,t){return e?t?e+" "+t:e:t}function k(e){return[de,e+"s"]}function _(e,t){var n=t?fe:pe;return[n,e+"s"]}function A(e,t,n){var r=Object.create(null),i=e.getComputedStyle(t)||{};return L(n,function(e,t){var n=i[e];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=E(n)),0===n&&(n=null),r[t]=n}}),r}function E(e){var t=0,n=e.split(/\s*,\s*/);return L(n,function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function D(e){return 0===e||null!=e}function T(e,t){var n=N,r=e+"s";return t?n+=ie:r+=" linear all",[n,r]}function M(){var e=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){var n=e[t];return n?n.total:0},get:function(t){var n=e[t];return n&&n.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}function O(e,t,n){L(n,function(n){e[n]=W(e[n])?e[n]:t.style.getPropertyValue(n)})}var N,F,P,j,I=t.noop,V=t.copy,R=t.extend,U=t.element,L=t.forEach,H=t.isArray,z=t.isString,q=t.isObject,B=t.isUndefined,W=t.isDefined,Y=t.isFunction,X=t.isElement,G=1,K="-add",J="-remove",Z="ng-",Q="-active",ee="-prepare",te="ng-animate",ne="$$ngAnimateChildren",re="";B(e.ontransitionend)&&W(e.onwebkittransitionend)?(re="-webkit-",N="WebkitTransition",F="webkitTransitionEnd transitionend"):(N="transition",F="transitionend"),B(e.onanimationend)&&W(e.onwebkitanimationend)?(re="-webkit-",P="WebkitAnimation",j="webkitAnimationEnd animationend"):(P="animation",j="animationend");var ie="Duration",oe="Property",ae="Delay",se="TimingFunction",ue="IterationCount",le="PlayState",ce=9999,fe=P+ae,de=P+ie,pe=N+ae,he=N+ie,ge=t.$$minErr("ng"),me=["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),o=0;o<t.length;o++)t[o]();i||e(function(){i||n()})}}var r,i;return r=t.queue=[],t.waitUntilQuiet=function(t){i&&i(),i=e(function(){i=null,t(),n()})},t}],$e=["$interpolate",function(e){return{link:function(n,r,i){function o(e){e="on"===e||"true"===e,r.data(ne,e)}var a=i.ngAnimateChildren;t.isString(a)&&0===a.length?r.data(ne,!0):(o(e(a)(n)),i.$observe("ngAnimateChildren",o))}}}],ve="$$animateCss",ye=1e3,be=3,we=1.5,xe={transitionDuration:he,transitionDelay:pe,transitionProperty:N+oe,animationDuration:de,animationDelay:fe,animationIterationCount:P+ue},Se={transitionDuration:he,transitionDelay:pe,animationDuration:de,animationDelay:fe},Ce=["$animateProvider",function(){var e=M(),t=M();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(n,r,s,u,l,c,m,$){function y(e,t){var n="$$ngAnimateParentKey",r=e.parentNode,i=r[n]||(r[n]=++U);return i+"-"+e.getAttribute("class")+"-"+t}function b(t,r,i,o){var a=e.get(i);return a||(a=A(n,t,o),"infinite"===a.animationIterationCount&&(a.animationIterationCount=1)),e.put(i,a),a}function C(i,a,s,u){var l;if(e.count(s)>0&&(l=t.get(s),!l)){var c=o(a,"-stagger");r.addClass(i,c),l=A(n,i,u),l.animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),r.removeClass(i,c),t.put(s,l)}return l||{}}function E(n){z.push(n),m.waitUntilQuiet(function(){e.flush(),t.flush();for(var n=l(),r=0;r<z.length;r++)z[r](n);z.length=0})}function M(e,t,n){var r=b(e,t,n,xe),i=r.animationDelay,o=r.transitionDelay;return r.maxDelay=i&&o?Math.max(i,o):i||o,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}var R=f(r),U=0,z=[];return function(t,n){function l(){m()}function f(){m(!0)}function m(e){if(!(Y||G&&X)){Y=!0,X=!1,q.$$skipPreparationClasses||r.removeClass(t,xe),r.removeClass(t,ke),x(W,!1),w(W,!1),L(le,function(e){W.style[e[0]]=""}),R(t,q),p(t,q),Object.keys(B).length&&L(B,function(e,t){e?W.style.setProperty(t,e):W.style.removeProperty(t)}),q.onDone&&q.onDone(),pe&&pe.length&&t.off(pe.join(" "),U);var n=t.data(ve);n&&(u.cancel(n[0].timer),t.removeData(ve)),ee&&ee.complete(!e)}}function b(e){Re.blockTransition&&w(W,e),Re.blockKeyframeAnimation&&x(W,!!e)}function A(){return ee=new s({end:l,cancel:f}),E(I),m(),{$$willAnimate:!1,start:function(){return ee},end:l}}function U(e){e.stopPropagation();var t=e.originalEvent||e,n=t.$manualTimeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(be));Math.max(n-ue,0)>=re&&r>=ie&&(G=!0,m())}function z(){function e(){if(!Y){if(b(!1),L(le,function(e){var t=e[0],n=e[1];W.style[t]=n}),R(t,q),r.addClass(t,ke),Re.recalculateTimingStyles){if(Ce=W.className+" "+xe,Ee=y(W,Ce),Ie=M(W,Ce,Ee),Ve=Ie.maxDelay,ne=Math.max(Ve,0),ie=Ie.maxDuration,0===ie)return void m();Re.hasTransitions=Ie.transitionDuration>0,Re.hasAnimations=Ie.animationDuration>0}if(Re.applyAnimationDelay&&(Ve="boolean"!=typeof q.delay&&D(q.delay)?parseFloat(q.delay):Ve,ne=Math.max(Ve,0),Ie.animationDelay=Ve,Ue=_(Ve,!0),le.push(Ue),W.style[Ue[0]]=Ue[1]),re=ne*ye,ae=ie*ye,q.easing){var e,i=q.easing;Re.hasTransitions&&(e=N+se,le.push([e,i]),W.style[e]=i),Re.hasAnimations&&(e=P+se,le.push([e,i]),W.style[e]=i)}Ie.transitionDuration&&pe.push(F),Ie.animationDuration&&pe.push(j),ue=Date.now();var o=re+we*ae,a=ue+o,s=t.data(ve)||[],l=!0;if(s.length){var c=s[0];l=a>c.expectedEndTime,l?u.cancel(c.timer):s.push(m)}if(l){var f=u(n,o,!1);s[0]={timer:f,expectedEndTime:a},s.push(m),t.data(ve,s)}pe.length&&t.on(pe.join(" "),U),q.to&&(q.cleanupStyles&&O(B,W,Object.keys(q.to)),g(t,q))}}function n(){var e=t.data(ve);if(e){for(var n=1;n<e.length;n++)e[n]();t.removeData(ve)}}if(!Y){if(!W.parentNode)return void m();var i=function(e){if(G)X&&e&&(X=!1,m());else if(X=!e,Ie.animationDuration){var t=x(W,X);X?le.push(t):a(le,t)}},o=Pe>0&&(Ie.transitionDuration&&0===De.transitionDuration||Ie.animationDuration&&0===De.animationDuration)&&Math.max(De.animationDelay,De.transitionDelay);o?u(e,Math.floor(o*Pe*ye),!1):e(),te.resume=function(){i(!0)},te.pause=function(){i(!1)}}}var q=n||{};q.$$prepared||(q=d(V(q)));var B={},W=v(t);if(!W||!W.parentNode||!$.enabled())return A();var Y,X,G,ee,te,ne,re,ie,ae,ue,le=[],fe=t.attr("class"),de=i(q),pe=[];if(0===q.duration||!c.animations&&!c.transitions)return A();var he=q.event&&H(q.event)?q.event.join(" "):q.event,ge=he&&q.structural,me="",$e="";ge?me=o(he,Z,!0):he&&(me=he),q.addClass&&($e+=o(q.addClass,K)),q.removeClass&&($e.length&&($e+=" "),$e+=o(q.removeClass,J)),q.applyClassesEarly&&$e.length&&R(t,q);var xe=[me,$e].join(" ").trim(),Ce=fe+" "+xe,ke=o(xe,Q),_e=de.to&&Object.keys(de.to).length>0,Ae=(q.keyframeStyle||"").length>0;if(!Ae&&!_e&&!xe)return A();var Ee,De;if(q.stagger>0){var Te=parseFloat(q.stagger);De={transitionDelay:Te,animationDelay:Te,transitionDuration:0,animationDuration:0}}else Ee=y(W,Ce),De=C(W,xe,Ee,Se);q.$$skipPreparationClasses||r.addClass(t,xe);var Me;if(q.transitionStyle){var Oe=[N,q.transitionStyle];S(W,Oe),le.push(Oe)}if(q.duration>=0){Me=W.style[N].length>0;var Ne=T(q.duration,Me);S(W,Ne),le.push(Ne)}if(q.keyframeStyle){var Fe=[P,q.keyframeStyle];S(W,Fe),le.push(Fe)}var Pe=De?q.staggerIndex>=0?q.staggerIndex:e.count(Ee):0,je=0===Pe;je&&!q.skipBlocking&&w(W,ce);var Ie=M(W,Ce,Ee),Ve=Ie.maxDelay;ne=Math.max(Ve,0),ie=Ie.maxDuration;var Re={};if(Re.hasTransitions=Ie.transitionDuration>0,Re.hasAnimations=Ie.animationDuration>0,Re.hasTransitionAll=Re.hasTransitions&&"all"==Ie.transitionProperty,Re.applyTransitionDuration=_e&&(Re.hasTransitions&&!Re.hasTransitionAll||Re.hasAnimations&&!Re.hasTransitions),Re.applyAnimationDuration=q.duration&&Re.hasAnimations,Re.applyTransitionDelay=D(q.delay)&&(Re.applyTransitionDuration||Re.hasTransitions),Re.applyAnimationDelay=D(q.delay)&&Re.hasAnimations,Re.recalculateTimingStyles=$e.length>0,(Re.applyTransitionDuration||Re.applyAnimationDuration)&&(ie=q.duration?parseFloat(q.duration):ie,Re.applyTransitionDuration&&(Re.hasTransitions=!0,Ie.transitionDuration=ie,Me=W.style[N+oe].length>0,le.push(T(ie,Me))),Re.applyAnimationDuration&&(Re.hasAnimations=!0,Ie.animationDuration=ie,le.push(k(ie)))),0===ie&&!Re.recalculateTimingStyles)return A();if(null!=q.delay){var Ue;"boolean"!=typeof q.delay&&(Ue=parseFloat(q.delay),ne=Math.max(Ue,0)),Re.applyTransitionDelay&&le.push(_(Ue)),Re.applyAnimationDelay&&le.push(_(Ue,!0))}return null==q.duration&&Ie.transitionDuration>0&&(Re.recalculateTimingStyles=Re.recalculateTimingStyles||je),re=ne*ye,ae=ie*ye,q.skipBlocking||(Re.blockTransition=Ie.transitionDuration>0,Re.blockKeyframeAnimation=Ie.animationDuration>0&&De.animationDelay>0&&0===De.animationDuration),q.from&&(q.cleanupStyles&&O(B,W,Object.keys(q.from)),h(t,q)),Re.blockTransition||Re.blockKeyframeAnimation?b(ie):q.skipBlocking||w(W,!1),{$$willAnimate:!0,end:l,start:function(){return Y?void 0:(te={end:l,cancel:f,resume:null,pause:null},ee=new s(te),E(z),ee)}}}}]}],ke=["$$animationProvider",function(e){function t(e){return e.parentNode&&11===e.parentNode.nodeType}e.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor",i="ng-anchor-out",o="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,a,s,u,l,c,d){function p(e){return e.replace(/\bng-\S+\b/g,"")}function h(e,t){return z(e)&&(e=e.split(" ")),z(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function g(t,a,u){function l(e){var t={},n=v(e).getBoundingClientRect();return L(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=y.scrollTop;break;case"left":r+=y.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function c(){var t=e(m,{addClass:i,delay:!0,from:l(a)});return t.$$willAnimate?t:null}function f(e){return e.attr("class")||""}function d(){var t=p(f(u)),n=h(t,$),r=h($,t),a=e(m,{to:l(u),addClass:o+" "+n,removeClass:i+" "+r,delay:!0});return a.$$willAnimate?a:null}function g(){m.remove(),a.removeClass(n),u.removeClass(n)}var m=U(v(a).cloneNode(!0)),$=p(f(m));a.addClass(n),u.addClass(n),m.addClass(r),w.append(m);var b,x=c();if(!x&&(b=d(),!b))return g();var S=x||b;return{start:function(){function e(){n&&n.end()}var t,n=S.start();return n.done(function(){return n=null,!b&&(b=d())?(n=b.start(),n.done(function(){n=null,g(),t.complete()}),n):(g(),void t.complete())}),t=new s({end:e,cancel:e})}}}function m(e,t,n,r){var i=$(e,I),o=$(t,I),a=[];return L(r,function(e){var t=e.out,r=e["in"],i=g(n,t,r);i&&a.push(i)}),i||o||0!==a.length?{start:function(){function e(){L(t,function(e){e.end()})}var t=[];i&&t.push(i.start()),o&&t.push(o.start()),L(a,function(e){t.push(e.start())});var n=new s({
-end:e,cancel:e});return s.all(t,function(e){n.complete(e)}),n}}:void 0}function $(t){var n=t.element,r=t.options||{};t.structural&&(r.event=t.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===t.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=C(r.event,r.preparationClasses));var i=e(n,r);return i.$$willAnimate?i:null}if(!l.animations&&!l.transitions)return I;var y=d[0].body,b=v(u),w=U(t(b)||y.contains(b)?b:y);f(c);return function(e){return e.from&&e.to?m(e.from,e.to,e.classes,e.anchors):$(e)}}]}],_e=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function i(n){n=H(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=f(r);return function(e,t,r,a){function s(){a.domOperation(),o(e,a)}function u(){h=!0,s(),p(e,a)}function l(e,t,r,i,o){var a;switch(r){case"animate":a=[t,i.from,i.to,o];break;case"setClass":a=[t,$,v,o];break;case"addClass":a=[t,$,o];break;case"removeClass":a=[t,v,o];break;default:a=[t,o]}a.push(i);var s=e.apply(e,a);if(s)if(Y(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(Y(s))return s;return I}function c(e,t,r,i,o){var a=[];return L(i,function(i){var s=i[o];s&&a.push(function(){var i,o,a=!1,u=function(e){a||(a=!0,(o||I)(e),i.complete(!e))};return i=new n({end:function(){u()},cancel:function(){u(!0)}}),o=l(s,e,t,r,function(e){var t=e===!1;u(t)}),i})}),a}function f(e,t,r,i,o){var a=c(e,t,r,i,o);if(0===a.length){var s,u;"beforeSetClass"===o?(s=c(e,"removeClass",r,i,"beforeRemoveClass"),u=c(e,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(s=c(e,"removeClass",r,i,"removeClass"),u=c(e,"addClass",r,i,"addClass")),s&&(a=a.concat(s)),u&&(a=a.concat(u))}if(0!==a.length)return function(e){var t=[];return a.length&&L(a,function(e){t.push(e())}),t.length?n.all(t,e):e(),function(e){L(t,function(t){e?t.cancel():t.end()})}}}var h=!1;3===arguments.length&&q(r)&&(a=r,r=null),a=d(a),r||(r=e.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var g,m,$=a.addClass,v=a.removeClass,y=i(r);if(y.length){var b,w;"leave"==t?(w="leave",b="afterLeave"):(w="before"+t.charAt(0).toUpperCase()+t.substr(1),b=t),"enter"!==t&&"move"!==t&&(g=f(e,t,a,y,w)),m=f(e,t,a,y,b)}if(g||m){var x;return{$$willAnimate:!0,end:function(){return x?x.end():(u(),x=new n,x.complete(!0)),x},start:function(){function e(e){u(e),x.complete(e)}function t(t){h||((r||I)(t),e(t))}if(x)return x;x=new n;var r,i=[];return g&&i.push(function(e){r=g(e)}),i.length?i.push(function(e){s(),e(!0)}):s(),m&&i.push(function(e){r=m(e)}),x.setHost({end:function(){t()},cancel:function(){t(!0)}}),n.chain(i,e),x}}}}}]}],Ae=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){var n=t.element,r=t.event,i=t.options,o=t.classes;return e(n,r,o,i)}return function(e){if(e.from&&e.to){var r=n(e.from),i=n(e.to);if(!r&&!i)return;return{start:function(){function e(){return function(){L(o,function(e){e.end()})}}function n(e){a.complete(e)}var o=[];r&&o.push(r.start()),i&&o.push(i.start()),t.all(o,n);var a=new t({end:e(),cancel:e()});return a}}}return n(e)}}]}],Ee="data-ng-animate",De="$ngAnimatePin",Te=["$animateProvider",function(e){function t(e){if(!e)return null;var t=e.split(c),n=Object.create(null);return L(t,function(e){n[e]=!0}),n}function r(e,n){if(e&&n){var r=t(n);return e.split(c).some(function(e){return r[e]})}}function i(e,t,n,r){return h[e].some(function(e){return e(t,n,r)})}function o(e,t){var n=(e.addClass||"").length>0,r=(e.removeClass||"").length>0;return t?n&&r:n||r}var a=1,l=2,c=" ",h=this.rules={skip:[],cancel:[],join:[]};h.join.push(function(e,t){return!t.structural&&o(t)}),h.skip.push(function(e,t){return!t.structural&&!o(t)}),h.skip.push(function(e,t,n){return"leave"==n.event&&t.structural}),h.skip.push(function(e,t,n){return n.structural&&n.state===l&&!t.structural}),h.cancel.push(function(e,t,n){return n.structural&&t.structural}),h.cancel.push(function(e,t,n){return n.state===l&&t.structural}),h.cancel.push(function(e,t,n){if(n.structural)return!1;var i=t.addClass,o=t.removeClass,a=n.addClass,s=n.removeClass;return B(i)&&B(o)||B(a)&&B(s)?!1:r(i,s)||r(o,a)}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(t,r,c,h,g,$,w,x,S){function C(){var e=!1;return function(t){e?t():r.$$postDigest(function(){e=!0,t()})}}function k(e,t){return m(e,t,{})}function _(e,t,n){var r=v(t),i=v(e),o=[],a=I[n];return a&&L(a,function(e){Z.call(e.node,r)?o.push(e.callback):"leave"===n&&Z.call(e.node,i)&&o.push(e.callback)}),o}function A(e,n,u){function c(n,r,i,o){T(function(){var n=_(x,e,r);n.length&&t(function(){L(n,function(t){t(e,i,o)})})}),n.progress(r,i,o)}function f(t){b(e,S),J(e,S),p(e,S),S.domOperation(),A.complete(!t)}var g,x,S=V(u);e=s(e),e&&(g=v(e),x=e.parent()),S=d(S);var A=new w,T=C();if(H(S.addClass)&&(S.addClass=S.addClass.join(" ")),S.addClass&&!z(S.addClass)&&(S.addClass=null),H(S.removeClass)&&(S.removeClass=S.removeClass.join(" ")),S.removeClass&&!z(S.removeClass)&&(S.removeClass=null),S.from&&!q(S.from)&&(S.from=null),S.to&&!q(S.to)&&(S.to=null),!g)return f(),A;var j=[g.className,S.addClass,S.removeClass].join(" ");if(!K(j))return f(),A;var I=["enter","move","leave"].indexOf(n)>=0,R=!P||h[0].hidden||F.get(g),U=!R&&N.get(g)||{},B=!!U.state;if(R||B&&U.state==a||(R=!M(e,x,n)),R)return f(),A;I&&E(e);var W={structural:I,element:e,event:n,addClass:S.addClass,removeClass:S.removeClass,close:f,options:S,runner:A};if(B){var Y=i("skip",e,W,U);if(Y)return U.state===l?(f(),A):(m(e,U,W),U.runner);var X=i("cancel",e,W,U);if(X)if(U.state===l)U.runner.end();else{if(!U.structural)return m(e,U,W),U.runner;U.close()}else{var G=i("join",e,W,U);if(G){if(U.state!==l)return y(e,I?n:null,S),n=W.event=U.event,S=m(e,U,W),U.runner;k(e,W)}}}else k(e,W);var Z=W.structural;if(Z||(Z="animate"===W.event&&Object.keys(W.options.to||{}).length>0||o(W)),!Z)return f(),D(e),A;var Q=(U.counter||0)+1;return W.counter=Q,O(e,a,W),r.$$postDigest(function(){var t=N.get(g),r=!t;t=t||{};var i=e.parent()||[],a=i.length>0&&("animate"===t.event||t.structural||o(t));if(r||t.counter!==Q||!a)return r&&(J(e,S),p(e,S)),(r||I&&t.event!==n)&&(S.domOperation(),A.end()),void(a||D(e));n=!t.structural&&o(t,!0)?"setClass":t.event,O(e,l);var s=$(e,n,t.options);s.done(function(t){f(!t);var r=N.get(g);r&&r.counter===Q&&D(v(e)),c(A,n,"close",{})}),A.setHost(s),c(A,n,"start",{})}),A}function E(e){var t=v(e),n=t.querySelectorAll("["+Ee+"]");L(n,function(e){var t=parseInt(e.getAttribute(Ee)),n=N.get(e);if(n)switch(t){case l:n.runner.end();case a:N.remove(e)}})}function D(e){var t=v(e);t.removeAttribute(Ee),N.remove(t)}function T(e,t){return v(e)===v(t)}function M(e,t){var n,r=U(h[0].body),i=T(e,r)||"HTML"===e[0].nodeName,o=T(e,c),a=!1,s=F.get(v(e)),u=U.data(e[0],De);for(u&&(t=u),t=v(t);t&&(o||(o=T(t,c)),t.nodeType===G);){var l=N.get(t)||{};if(!a){var f=F.get(t);if(f===!0&&s!==!1){s=!0;break}f===!1&&(s=!1),a=l.structural}if(B(n)||n===!0){var d=U.data(t,ne);W(d)&&(n=d)}if(a&&n===!1)break;if(i||(i=T(t,r)),i&&o)break;t=o||!(u=U.data(t,De))?t.parentNode:v(u)}var p=(!a||n)&&s!==!0;return p&&o&&i}function O(e,t,n){n=n||{},n.state=t;var r=v(e);r.setAttribute(Ee,t);var i=N.get(r),o=i?R(i,n):n;N.put(r,o)}var N=new g,F=new g,P=null,j=r.$watch(function(){return 0===x.totalPendingRequests},function(e){e&&(j(),r.$$postDigest(function(){r.$$postDigest(function(){null===P&&(P=!0)})}))}),I={},Y=e.classNameFilter(),K=Y?function(e){return Y.test(e)}:function(){return!0},J=f(S),Z=Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},Q={on:function(e,t,n){var r=u(t);I[e]=I[e]||[],I[e].push({node:r,callback:n}),U(t).on("$destroy",function(){Q.off(e,t,n)})},off:function(e,t,n){function r(e,t,n){var r=u(t);return e.filter(function(e){var t=e.node===r&&(!n||e.callback===n);return!t})}var i=I[e];i&&(I[e]=1===arguments.length?null:r(i,t,n))},pin:function(e,t){n(X(e),"element","not an element"),n(X(t),"parentElement","not an element"),e.data(De,t)},push:function(e,t,n,r){return n=n||{},n.domOperation=r,A(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!P;else{var r=X(e);if(r){var i=v(e),o=F.get(i);1===n?t=!o:F.put(i,!t)}else t=P=!!e}return t}};return Q}]}],Me=["$animateProvider",function(){function e(e,t){e.data(a,t)}function t(e){e.removeData(a)}function n(e){return e.data(a)}var i="ng-animate-ref",o=this.drivers=[],a="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(a,s,u,l,c,h){function g(e){function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode,r=n.parentNode;o.put(n,e);for(var a;r;){if(a=o.get(r)){a.processed||(a=t(a));break}r=r.parentNode}return(a||i).children.push(e),e}function n(e){var t,n=[],r=[];for(t=0;t<e.children.length;t++)r.push(e.children[t]);var i=r.length,o=0,a=[];for(t=0;t<r.length;t++){var s=r[t];0>=i&&(i=o,o=0,n.push(a),a=[]),a.push(s.fn),s.children.forEach(function(e){o++,r.push(e)}),i--}return a.length&&n.push(a),n}var r,i={children:[]},o=new c;for(r=0;r<e.length;r++){var a=e[r];o.put(a.domNode,e[r]={domNode:a.domNode,fn:a.fn,children:[]})}for(r=0;r<e.length;r++)t(e[r]);return n(i)}var m=[],$=f(a);return function(c,f,y){function b(e){var t="["+i+"]",n=e.hasAttribute(i)?[e]:e.querySelectorAll(t),r=[];return L(n,function(e){var t=e.getAttribute(i);t&&t.length&&r.push(e)}),r}function w(e){var t=[],n={};L(e,function(e,r){var o=e.element,a=v(o),s=e.event,u=["enter","move"].indexOf(s)>=0,l=e.structural?b(a):[];if(l.length){var c=u?"to":"from";L(l,function(e){var t=e.getAttribute(i);n[t]=n[t]||{},n[t][c]={animationID:r,element:U(e)}})}else t.push(e)});var r={},o={};return L(n,function(n){var i=n.from,a=n.to;if(!i||!a){var s=i?i.animationID:a.animationID,u=s.toString();return void(r[u]||(r[u]=!0,t.push(e[s])))}var l=e[i.animationID],c=e[a.animationID],f=i.animationID.toString();if(!o[f]){var d=o[f]={structural:!0,beforeStart:function(){l.beforeStart(),c.beforeStart()},close:function(){l.close(),c.close()},classes:x(l.classes,c.classes),from:l,to:c,anchors:[]};d.classes.length?t.push(d):(t.push(l),t.push(c))}o[f].anchors.push({out:i.element,"in":a.element})}),t}function x(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r<e.length;r++){var i=e[r];if("ng-"!==i.substring(0,3))for(var o=0;o<t.length;o++)if(i===t[o]){n.push(i);break}}return n.join(" ")}function S(e){for(var t=o.length-1;t>=0;t--){var n=o[t];if(u.has(n)){var r=u.get(n),i=r(e);if(i)return i}}}function C(){c.addClass(te),M&&a.addClass(c,M),O&&(a.removeClass(c,O),O=null)}function k(e,t){function r(e){n(e).setHost(t)}e.from&&e.to?(r(e.from.element),r(e.to.element)):r(e.element)}function _(){var e=n(c);!e||"leave"===f&&y.$$domOperationFired||e.end()}function A(e){c.off("$destroy",_),t(c),$(c,y),p(c,y),y.domOperation(),M&&a.removeClass(c,M),c.removeClass(te),D.complete(!e)}y=d(y);var E=["enter","move","leave"].indexOf(f)>=0,D=new l({end:function(){A()},cancel:function(){A(!0)}});if(!o.length)return A(),D;e(c,D);var T=r(c.attr("class"),r(y.addClass,y.removeClass)),M=y.tempClasses;M&&(T+=" "+M,y.tempClasses=null);var O;return E&&(O="ng-"+f+ee,a.addClass(c,O)),m.push({element:c,classes:T,event:f,structural:E,options:y,beforeStart:C,close:A}),c.on("$destroy",_),m.length>1?D:(s.$$postDigest(function(){var e=[];L(m,function(t){n(t.element)?e.push(t):t.close()}),m.length=0;var t=w(e),r=[];L(t,function(e){r.push({domNode:v(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var t,r=e.close,i=e.anchors?e.from.element||e.to.element:e.element;if(n(i)){var o=S(e);o&&(t=o.start)}if(t){var a=t();a.done(function(e){r(!e)}),k(e,a)}else r()}})}),h(g(r))}),D)}}]}],Oe=["$animate","$rootScope",function(e){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,n,r,i,o){var a,s;t.$watchCollection(r.ngAnimateSwap||r["for"],function(r){a&&e.leave(a),s&&(s.$destroy(),s=null),(r||0===r)&&(s=t.$new(),o(s,function(t){a=t,e.enter(t,null,n)}))})}}}];t.module("ngAnimate",[]).directive("ngAnimateSwap",Oe).directive("ngAnimateChildren",$e).factory("$$rAFScheduler",me).provider("$$animateQueue",Te).provider("$$animation",Me).provider("$animateCss",Ce).provider("$$animateCssDriver",ke).provider("$$animateJs",_e).provider("$$animateJsDriver",Ae)}(window,window.angular),function(e,t,n){"use strict";function r(e,n,r){function i(e,r,i){var a,s;i=i||{},s=i.expires,a=t.isDefined(i.path)?i.path:o,t.isUndefined(r)&&(s="Thu, 01 Jan 1970 00:00:00 GMT",r=""),t.isString(s)&&(s=new Date(s));var u=encodeURIComponent(e)+"="+encodeURIComponent(r);u+=a?";path="+a:"",u+=i.domain?";domain="+i.domain:"",u+=s?";expires="+s.toUTCString():"",u+=i.secure?";secure":"";var l=u.length+1;return l>4096&&n.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+l+" > 4096 bytes)!"),u}var o=r.baseHref(),a=e[0];return function(e,t,n){a.cookie=i(e,t,n)}}t.module("ngCookies",["ng"]).provider("$cookies",[function(){function e(e){return e?t.extend({},r,e):r}var r=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(r,i){return{get:function(e){return r()[e]},getObject:function(e){var n=this.get(e);return n?t.fromJson(n):n},getAll:function(){return r()},put:function(t,n,r){i(t,n,e(r))},putObject:function(e,n,r){this.put(e,t.toJson(n),r)},remove:function(t,r){i(t,n,e(r))}}}]}]),t.module("ngCookies").factory("$cookieStore",["$cookies",function(e){return{get:function(t){return e.getObject(t)},put:function(t,n){e.putObject(t,n)},remove:function(t){e.remove(t)}}}]),r.$inject=["$document","$log","$browser"],t.module("ngCookies").provider("$$cookieWriter",function(){this.$get=r})}(window,window.angular),function(e,t,n){"use strict";function r(e,n,r,i,o,a){function s(e,n){return angular.element((n||t).querySelectorAll(e))}function u(e){return l[e]?l[e]:l[e]=n.get(e,{cache:a}).then(function(e){return e.data})}this.compile=function(t){t.template&&/\.html$/.test(t.template)&&(console.warn("Deprecated use of `template` option to pass a file. Please use the `templateUrl` option instead."),t.templateUrl=t.template,t.template="");var n=t.templateUrl,a=t.template||"",l=t.controller,c=t.controllerAs,f=angular.copy(t.resolve||{}),d=angular.copy(t.locals||{}),p=t.transformTemplate||angular.identity,h=t.bindToController;if(angular.forEach(f,function(e,t){angular.isString(e)?f[t]=r.get(e):f[t]=r.invoke(e)}),angular.extend(f,d),a)f.$template=e.when(a);else{if(!n)throw new Error("Missing `template` / `templateUrl` option.");f.$template=u(n)}return t.titleTemplate&&(f.$template=e.all([f.$template,u(t.titleTemplate)]).then(function(e){var t=angular.element(e[0]);return s('[ng-bind="title"]',t[0]).removeAttr("ng-bind").html(e[1]),t[0].outerHTML})),t.contentTemplate&&(f.$template=e.all([f.$template,u(t.contentTemplate)]).then(function(e){var n=angular.element(e[0]),r=s('[ng-bind="content"]',n[0]).removeAttr("ng-bind").html(e[1]);return t.templateUrl||r.next().remove(),n[0].outerHTML})),e.all(f).then(function(e){var n=p(e.$template);t.html&&(n=n.replace(/ng-bind="/gi,'ng-bind-html="'));var r=angular.element("<div>").html(n.trim()).contents(),a=i(r);return{locals:e,element:r,link:function(t){if(e.$scope=t,l){var n=o(l,e,!0);h&&angular.extend(n.instance,e);var i=angular.isObject(n)?n:n();r.data("$ngControllerController",i),r.children().data("$ngControllerController",i),c&&(t[c]=i)}return a.apply(null,arguments)}}})};var l={}}r.$inject=["$q","$http","$injector","$compile","$controller","$templateCache"],angular.module("mgcrea.ngStrap.tooltip",["mgcrea.ngStrap.core","mgcrea.ngStrap.helpers.dimensions"]).provider("$tooltip",function(){var e=this.defaults={animation:"am-fade",customClass:"",prefixClass:"tooltip",prefixEvent:"tooltip",container:!1,target:!1,placement:"top",templateUrl:"tooltip/tooltip.tpl.html",template:"",titleTemplate:!1,trigger:"hover focus",keyboard:!1,html:!1,show:!1,title:"",type:"",delay:0,autoClose:!1,bsEnabled:!0,viewport:{selector:"body",padding:0}};this.$get=["$window","$rootScope","$bsCompiler","$q","$templateCache","$http","$animate","$sce","dimensions","$$rAF","$timeout",function(n,r,i,o,a,s,u,l,c,f,d){function p(o,a){function s(){F.$emit(O.prefixEvent+".show",M)}function p(){if(F.$emit(O.prefixEvent+".hide",M),U===q){if(z&&"focus"===O.trigger)return o[0].blur();T()}}function v(){var e=O.trigger.split(" ");angular.forEach(e,function(e){"click"===e||"contextmenu"===e?o.on(e,M.toggle):"manual"!==e&&(o.on("hover"===e?"mouseenter":"focus",M.enter),o.on("hover"===e?"mouseleave":"blur",M.leave),"button"===P&&"hover"!==e&&o.on(m?"touchstart":"mousedown",M.$onFocusElementMouseDown))})}function y(){for(var e=O.trigger.split(" "),t=e.length;t--;){var n=e[t];"click"===n||"contextmenu"===n?o.off(n,M.toggle):"manual"!==n&&(o.off("hover"===n?"mouseenter":"focus",M.enter),o.off("hover"===n?"mouseleave":"blur",M.leave),"button"===P&&"hover"!==n&&o.off(m?"touchstart":"mousedown",M.$onFocusElementMouseDown))}}function b(){"focus"!==O.trigger?U.on("keyup",M.$onKeyUp):o.on("keyup",M.$onFocusKeyUp)}function w(){"focus"!==O.trigger?U.off("keyup",M.$onKeyUp):o.off("keyup",M.$onFocusKeyUp)}function x(){d(function(){U.on("click",C),$.on("click",M.hide),B=!0},0,!1)}function S(){B&&(U.off("click",C),$.off("click",M.hide),B=!1)}function C(e){e.stopPropagation()}function k(e){e=e||O.target||o;var r=e[0],i="BODY"===r.tagName,a=r.getBoundingClientRect(),s={};for(var u in a)s[u]=a[u];null===s.width&&(s=angular.extend({},s,{width:a.right-a.left,height:a.bottom-a.top}));var l=i?{top:0,left:0}:c.offset(r),f={scroll:i?t.documentElement.scrollTop||t.body.scrollTop:e.prop("scrollTop")||0},d=i?{width:t.documentElement.clientWidth,height:n.innerHeight}:null;return angular.extend({},s,f,d,l)}function _(e,t,n,r){var i,o=e.split("-");switch(o[0]){case"right":i={top:t.top+t.height/2-r/2,left:t.left+t.width};break;case"bottom":i={top:t.top+t.height,left:t.left+t.width/2-n/2};break;case"left":i={top:t.top+t.height/2-r/2,left:t.left-n};break;default:i={top:t.top-r,left:t.left+t.width/2-n/2}}if(!o[1])return i;if("top"===o[0]||"bottom"===o[0])switch(o[1]){case"left":i.left=t.left;break;case"right":i.left=t.left+t.width-n}else if("left"===o[0]||"right"===o[0])switch(o[1]){case"top":i.top=t.top-r+t.height;break;case"bottom":i.top=t.top}return i}function A(e,t){var n=U[0],r=n.offsetWidth,i=n.offsetHeight,o=parseInt(c.css(n,"margin-top"),10),a=parseInt(c.css(n,"margin-left"),10);isNaN(o)&&(o=0),isNaN(a)&&(a=0),e.top=e.top+o,e.left=e.left+a,c.setOffset(n,angular.extend({using:function(e){U.css({top:Math.round(e.top)+"px",left:Math.round(e.left)+"px",right:""})}},e),0);var s=n.offsetWidth,u=n.offsetHeight;if("top"===t&&u!==i&&(e.top=e.top+i-u),!/top-left|top-right|bottom-left|bottom-right/.test(t)){var l=E(t,e,s,u);if(l.left?e.left+=l.left:e.top+=l.top,c.setOffset(n,e),/top|right|bottom|left/.test(t)){var f=/top|bottom/.test(t),d=f?2*l.left-r+s:2*l.top-i+u,p=f?"offsetWidth":"offsetHeight";D(d,n[p],f)}}}function E(e,t,n,r){var i={top:0,left:0};if(!M.$viewport)return i;var o=O.viewport&&O.viewport.padding||0,a=k(M.$viewport);if(/right|left/.test(e)){var s=t.top-o-a.scroll,u=t.top+o-a.scroll+r;s<a.top?i.top=a.top-s:u>a.top+a.height&&(i.top=a.top+a.height-u)}else{var l=t.left-o,c=t.left+o+n;l<a.left?i.left=a.left-l:c>a.right&&(i.left=a.left+a.width-c)}return i}function D(e,t,n){var r=g(".tooltip-arrow, .arrow",U[0]);r.css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")}function T(){clearTimeout(I),M.$isShown&&null!==U&&(O.autoClose&&S(),O.keyboard&&w()),H&&(H.$destroy(),H=null),U&&(U.remove(),U=M.$element=null)}var M={},O=M.$options=angular.extend({},e,a),N=M.$promise=i.compile(O),F=M.$scope=O.scope&&O.scope.$new()||r.$new(),P=o[0].nodeName.toLowerCase();if(O.delay&&angular.isString(O.delay)){var j=O.delay.split(",").map(parseFloat);O.delay=j.length>1?{show:j[0],hide:j[1]}:j[0]}M.$id=O.id||o.attr("id")||"",O.title&&(F.title=l.trustAsHtml(O.title)),F.$setEnabled=function(e){F.$$postDigest(function(){M.setEnabled(e)})},F.$hide=function(){F.$$postDigest(function(){M.hide()})},F.$show=function(){F.$$postDigest(function(){M.show()})},F.$toggle=function(){F.$$postDigest(function(){M.toggle()})},M.$isShown=F.$isShown=!1;var I,V,R,U,L,H;N.then(function(e){R=e,M.init()}),M.init=function(){O.delay&&angular.isNumber(O.delay)&&(O.delay={show:O.delay,hide:O.delay}),"self"===O.container?L=o:angular.isElement(O.container)?L=O.container:O.container&&(L=g(O.container)),v(),O.target&&(O.target=angular.isElement(O.target)?O.target:g(O.target)),O.show&&F.$$postDigest(function(){"focus"===O.trigger?o[0].focus():M.show()})},M.destroy=function(){y(),T(),F.$destroy()},M.enter=function(){return clearTimeout(I),V="in",O.delay&&O.delay.show?void(I=setTimeout(function(){"in"===V&&M.show()},O.delay.show)):M.show()},M.show=function(){if(O.bsEnabled&&!M.$isShown){F.$emit(O.prefixEvent+".show.before",M);var e,t;O.container?(e=L,t=L[0].lastChild?angular.element(L[0].lastChild):null):(e=null,t=o),U&&T(),H=M.$scope.$new(),U=M.$element=R.link(H,function(){}),U.css({top:"-9999px",left:"-9999px",right:"auto",display:"block",visibility:"hidden"}),O.animation&&U.addClass(O.animation),O.type&&U.addClass(O.prefixClass+"-"+O.type),O.customClass&&U.addClass(O.customClass),t?t.after(U):e.prepend(U),M.$isShown=F.$isShown=!0,h(F),M.$applyPlacement(),angular.version.minor<=2?u.enter(U,e,t,s):u.enter(U,e,t).then(s),h(F),f(function(){U&&U.css({visibility:"visible"}),O.keyboard&&("focus"!==O.trigger&&M.focus(),b())}),O.autoClose&&x()}},M.leave=function(){return clearTimeout(I),V="out",O.delay&&O.delay.hide?void(I=setTimeout(function(){"out"===V&&M.hide()},O.delay.hide)):M.hide()};var z,q;M.hide=function(e){M.$isShown&&(F.$emit(O.prefixEvent+".hide.before",M),z=e,q=U,angular.version.minor<=2?u.leave(U,p):u.leave(U).then(p),M.$isShown=F.$isShown=!1,h(F),O.keyboard&&null!==U&&w(),O.autoClose&&null!==U&&S())},M.toggle=function(e){e&&e.preventDefault(),M.$isShown?M.leave():M.enter()},M.focus=function(){U[0].focus()},M.setEnabled=function(e){O.bsEnabled=e},M.setViewport=function(e){O.viewport=e},M.$applyPlacement=function(){if(U){var t=O.placement,n=/\s?auto?\s?/i,r=n.test(t);r&&(t=t.replace(n,"")||e.placement),U.addClass(O.placement);var i=k(),o=U.prop("offsetWidth"),a=U.prop("offsetHeight");if(M.$viewport=O.viewport&&g(O.viewport.selector||O.viewport),r){var s=t,u=k(M.$viewport);/bottom/.test(s)&&i.bottom+a>u.bottom?t=s.replace("bottom","top"):/top/.test(s)&&i.top-a<u.top&&(t=s.replace("top","bottom")),/left/.test(s)&&i.left-o<u.left?t=t.replace("left","right"):/right/.test(s)&&i.right+o>u.width&&(t=t.replace("right","left")),U.removeClass(s).addClass(t)}var l=_(t,i,o,a);A(l,t)}},M.$onKeyUp=function(e){27===e.which&&M.$isShown&&(M.hide(),e.stopPropagation())},M.$onFocusKeyUp=function(e){27===e.which&&(o[0].blur(),e.stopPropagation())},M.$onFocusElementMouseDown=function(e){e.preventDefault(),e.stopPropagation(),M.$isShown?o[0].blur():o[0].focus()};var B=!1;return M}function h(e){e.$$phase||e.$root&&e.$root.$$phase||e.$digest()}function g(e,n){return angular.element((n||t).querySelectorAll(e))}var m="createTouch"in n.document,$=angular.element(n.document);return p}]}).directive("bsTooltip",["$window","$location","$sce","$tooltip","$$rAF",function(e,t,n,r,i){return{restrict:"EAC",scope:!0,link:function(e,t,o){var a,s={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","titleTemplate","placement","container","delay","trigger","html","animation","backdropAnimation","type","customClass","id"],function(e){angular.isDefined(o[e])&&(s[e]=o[e])});var u=/^(false|0|)$/i;angular.forEach(["html","container"],function(e){angular.isDefined(o[e])&&u.test(o[e])&&(s[e]=!1)});var l=t.attr("data-target");angular.isDefined(l)&&(u.test(l)?s.target=!1:s.target=l),e.hasOwnProperty("title")||(e.title=""),o.$observe("title",function(t){if(angular.isDefined(t)||!e.hasOwnProperty("title")){var r=e.title;e.title=n.trustAsHtml(t),angular.isDefined(r)&&i(function(){a&&a.$applyPlacement()})}}),o.$observe("disabled",function(e){e&&a.$isShown&&a.hide()}),o.bsTooltip&&e.$watch(o.bsTooltip,function(t,n){angular.isObject(t)?angular.extend(e,t):e.title=t,angular.isDefined(n)&&i(function(){a&&a.$applyPlacement()})},!0),o.bsShow&&e.$watch(o.bsShow,function(e){a&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|,?(tooltip),?/i)),e===!0?a.show():a.hide())}),o.bsEnabled&&e.$watch(o.bsEnabled,function(e){a&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|1|,?(tooltip),?/i)),e===!1?a.setEnabled(!1):a.setEnabled(!0))}),o.viewport&&e.$watch(o.viewport,function(e){a&&angular.isDefined(e)&&a.setViewport(e)}),a=r(t,s),e.$on("$destroy",function(){a&&a.destroy(),s=null,a=null})}}}]),angular.module("mgcrea.ngStrap.typeahead",["mgcrea.ngStrap.tooltip","mgcrea.ngStrap.helpers.parseOptions"]).provider("$typeahead",function(){var e=this.defaults={animation:"am-fade",prefixClass:"typeahead",prefixEvent:"$typeahead",placement:"bottom-left",templateUrl:"typeahead/typeahead.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,minLength:1,filter:"bsAsyncFilter",limit:6,autoSelect:!1,comparator:"",trimValue:!0};this.$get=["$window","$rootScope","$tooltip","$$rAF","$timeout",function(t,n,r,i,o){function a(t,n,a){var u={},l=angular.extend({},e,a);u=r(t,l);var c=a.scope,f=u.$scope;f.$resetMatches=function(){f.$matches=[],f.$activeIndex=l.autoSelect?0:-1},f.$resetMatches(),f.$activate=function(e){f.$$postDigest(function(){u.activate(e)})},f.$select=function(e){f.$$postDigest(function(){u.select(e)})},f.$isVisible=function(){return u.$isVisible()},u.update=function(e){f.$matches=e,f.$activeIndex>=e.length&&(f.$activeIndex=l.autoSelect?0:-1),s(f),i(u.$applyPlacement)},u.activate=function(e){f.$activeIndex=e},u.select=function(e){if(-1!==e){var t=f.$matches[e].value;n.$setViewValue(t),n.$render(),f.$resetMatches(),c&&c.$digest(),f.$emit(l.prefixEvent+".select",t,e,u)}},u.$isVisible=function(){return l.minLength&&n?f.$matches.length&&angular.isString(n.$viewValue)&&n.$viewValue.length>=l.minLength:!!f.$matches.length},u.$getIndex=function(e){var t;for(t=f.$matches.length;t--&&!angular.equals(f.$matches[t].value,e););return t},u.$onMouseDown=function(e){e.preventDefault(),e.stopPropagation()},u.$onKeyDown=function(e){/(38|40|13)/.test(e.keyCode)&&(!u.$isVisible()||13===e.keyCode&&-1===f.$activeIndex||(e.preventDefault(),e.stopPropagation()),13===e.keyCode&&f.$matches.length?u.select(f.$activeIndex):38===e.keyCode&&f.$activeIndex>0?f.$activeIndex--:40===e.keyCode&&f.$activeIndex<f.$matches.length-1?f.$activeIndex++:angular.isUndefined(f.$activeIndex)&&(f.$activeIndex=0),f.$digest())};var d=u.show;u.show=function(){d(),o(function(){u.$element&&(u.$element.on("mousedown",u.$onMouseDown),l.keyboard&&t&&t.on("keydown",u.$onKeyDown))},0,!1)};var p=u.hide;return u.hide=function(){u.$element&&u.$element.off("mousedown",u.$onMouseDown),l.keyboard&&t&&t.off("keydown",u.$onKeyDown),l.autoSelect||u.activate(-1),p()},u}function s(e){e.$$phase||e.$root&&e.$root.$$phase||e.$digest()}return a.defaults=e,a}]}).filter("bsAsyncFilter",["$filter",function(e){return function(t,n,r){return t&&angular.isFunction(t.then)?t.then(function(t){return e("filter")(t,n,r)}):e("filter")(t,n,r)}}]).directive("bsTypeahead",["$window","$parse","$q","$typeahead","$parseOptions",function(e,t,n,r,i){var o=r.defaults;return{restrict:"EAC",require:"ngModel",link:function(e,t,n,a){t.off("change");var s={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","filter","limit","minLength","watchOptions","selectMode","autoSelect","comparator","id","prefixEvent","prefixClass"],function(e){angular.isDefined(n[e])&&(s[e]=n[e])});var u=/^(false|0|)$/i;angular.forEach(["html","container","trimValue","filter"],function(e){angular.isDefined(n[e])&&u.test(n[e])&&(s[e]=!1)}),t.attr("autocomplete")||t.attr("autocomplete","off");var l=angular.isDefined(s.filter)?s.filter:o.filter,c=s.limit||o.limit,f=s.comparator||o.comparator,d=n.bsOptions;l&&(d+=" | "+l+":$viewValue",f&&(d+=":"+f)),c&&(d+=" | limitTo:"+c);var p=i(d),h=r(t,a,s);if(s.watchOptions){var g=p.$match[7].replace(/\|.+/,"").replace(/\(.*\)/g,"").trim();e.$watchCollection(g,function(){p.valuesFn(e,a).then(function(e){h.update(e),a.$render()})})}e.$watch(n.ngModel,function(t){e.$modelValue=t,p.valuesFn(e,a).then(function(e){return s.selectMode&&!e.length&&t.length>0?void a.$setViewValue(a.$viewValue.substring(0,a.$viewValue.length-1)):(e.length>c&&(e=e.slice(0,c)),h.update(e),void a.$render())})}),a.$formatters.push(function(e){var t=p.displayValue(e);return t?t:angular.isDefined(e)&&"object"!=typeof e?e:""}),a.$render=function(){if(a.$isEmpty(a.$viewValue))return t.val("");var e=h.$getIndex(a.$modelValue),n=-1!==e?h.$scope.$matches[e].label:a.$viewValue;n=angular.isObject(n)?p.displayValue(n):n;var r=n?n.toString().replace(/<(?:.|\n)*?>/gm,""):"";t.val(s.trimValue===!1?r:r.trim())},e.$on("$destroy",function(){h&&h.destroy(),s=null,h=null})}}}]),angular.module("mgcrea.ngStrap.timepicker",["mgcrea.ngStrap.helpers.dateParser","mgcrea.ngStrap.helpers.dateFormatter","mgcrea.ngStrap.tooltip"]).provider("$timepicker",function(){var e=this.defaults={animation:"am-fade",prefixClass:"timepicker",placement:"bottom-left",templateUrl:"timepicker/timepicker.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,useNative:!0,timeType:"date",timeFormat:"shortTime",timezone:null,modelTimeFormat:null,autoclose:!1,minTime:-(1/0),maxTime:+(1/0),length:5,hourStep:1,minuteStep:5,secondStep:5,roundDisplay:!1,iconUp:"glyphicon glyphicon-chevron-up",iconDown:"glyphicon glyphicon-chevron-down",arrowBehavior:"pager"};this.$get=["$window","$document","$rootScope","$sce","$dateFormatter","$tooltip","$timeout",function(t,n,r,i,o,a,s){function u(t,n,r){function i(e){var t=6e4*h.minuteStep;return new Date(Math.floor(e.getTime()/t)*t)}function u(e,n){var r=e+n;if(t[0].createTextRange){var i=t[0].createTextRange();i.collapse(!0),i.moveStart("character",e),i.moveEnd("character",r),i.select()}else t[0].setSelectionRange?t[0].setSelectionRange(e,r):angular.isUndefined(t[0].selectionStart)&&(t[0].selectionStart=e,t[0].selectionEnd=r)}function f(){t[0].focus()}var d=a(t,angular.extend({},e,r)),p=r.scope,h=d.$options,g=d.$scope,m=h.lang,$=function(e,t,n){return o.formatDate(e,t,m,n)},v=0,y=h.roundDisplay?i(new Date):new Date,b=n.$dateValue||y,w={hour:b.getHours(),meridian:b.getHours()<12,minute:b.getMinutes(),second:b.getSeconds(),millisecond:b.getMilliseconds()},x=o.getDatetimeFormat(h.timeFormat,m),S=o.hoursFormat(x),C=o.timeSeparator(x),k=o.minutesFormat(x),_=o.secondsFormat(x),A=o.showSeconds(x),E=o.showAM(x);g.$iconUp=h.iconUp,g.$iconDown=h.iconDown,g.$select=function(e,t){d.select(e,t)},g.$moveIndex=function(e,t){d.$moveIndex(e,t)},g.$switchMeridian=function(e){d.switchMeridian(e)},d.update=function(e){angular.isDate(e)&&!isNaN(e.getTime())?(d.$date=e,angular.extend(w,{hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()}),d.$build()):d.$isBuilt||d.$build()},d.select=function(e,t,r){n.$dateValue&&!isNaN(n.$dateValue.getTime())||(n.$dateValue=new Date(1970,0,1)),angular.isDate(e)||(e=new Date(e)),0===t?n.$dateValue.setHours(e.getHours()):1===t?n.$dateValue.setMinutes(e.getMinutes()):2===t&&n.$dateValue.setSeconds(e.getSeconds()),n.$setViewValue(angular.copy(n.$dateValue)),n.$render(),h.autoclose&&!r&&s(function(){d.hide(!0)})},d.switchMeridian=function(e){if(n.$dateValue&&!isNaN(n.$dateValue.getTime())){var t=(e||n.$dateValue).getHours();n.$dateValue.setHours(12>t?t+12:t-12),n.$setViewValue(angular.copy(n.$dateValue)),n.$render()}},d.$build=function(){var e,t,n=g.midIndex=parseInt(h.length/2,10),r=[];for(e=0;e<h.length;e++)t=new Date(1970,0,1,w.hour-(n-e)*h.hourStep),r.push({date:t,label:$(t,S),selected:d.$date&&d.$isSelected(t,0),disabled:d.$isDisabled(t,0)});var i,o=[];for(e=0;e<h.length;e++)i=new Date(1970,0,1,0,w.minute-(n-e)*h.minuteStep),o.push({date:i,label:$(i,k),selected:d.$date&&d.$isSelected(i,1),disabled:d.$isDisabled(i,1)});var a,s=[];for(e=0;e<h.length;e++)a=new Date(1970,0,1,0,0,w.second-(n-e)*h.secondStep),s.push({date:a,label:$(a,_),selected:d.$date&&d.$isSelected(a,2),disabled:d.$isDisabled(a,2)});var u=[];for(e=0;e<h.length;e++)A?u.push([r[e],o[e],s[e]]):u.push([r[e],o[e]]);g.rows=u,g.showSeconds=A,g.showAM=E,g.isAM=(d.$date||r[n].date).getHours()<12,g.timeSeparator=C,d.$isBuilt=!0},d.$isSelected=function(e,t){return d.$date?0===t?e.getHours()===d.$date.getHours():1===t?e.getMinutes()===d.$date.getMinutes():2===t?e.getSeconds()===d.$date.getSeconds():void 0:!1;
-},d.$isDisabled=function(e,t){var n;return 0===t?n=e.getTime()+6e4*w.minute+1e3*w.second:1===t?n=e.getTime()+36e5*w.hour+1e3*w.second:2===t&&(n=e.getTime()+36e5*w.hour+6e4*w.minute),n<1*h.minTime||n>1*h.maxTime},g.$arrowAction=function(e,t){"picker"===h.arrowBehavior?d.$setTimeByStep(e,t):d.$moveIndex(e,t)},d.$setTimeByStep=function(e,t){var n=new Date(d.$date||b),r=n.getHours(),i=n.getMinutes(),o=n.getSeconds();0===t?n.setHours(r-parseInt(h.hourStep,10)*e):1===t?n.setMinutes(i-parseInt(h.minuteStep,10)*e):2===t&&n.setSeconds(o-parseInt(h.secondStep,10)*e),d.select(n,t,!0)},d.$moveIndex=function(e,t){var n;0===t?(n=new Date(1970,0,1,w.hour+e*h.length,w.minute,w.second),angular.extend(w,{hour:n.getHours()})):1===t?(n=new Date(1970,0,1,w.hour,w.minute+e*h.length*h.minuteStep,w.second),angular.extend(w,{minute:n.getMinutes()})):2===t&&(n=new Date(1970,0,1,w.hour,w.minute,w.second+e*h.length*h.secondStep),angular.extend(w,{second:n.getSeconds()})),d.$build()},d.$onMouseDown=function(e){if("input"!==e.target.nodeName.toLowerCase()&&e.preventDefault(),e.stopPropagation(),c){var t=angular.element(e.target);"button"!==t[0].nodeName.toLowerCase()&&(t=t.parent()),t.triggerHandler("click")}},d.$onKeyDown=function(e){if(/(38|37|39|40|13)/.test(e.keyCode)&&!e.shiftKey&&!e.altKey){if(e.preventDefault(),e.stopPropagation(),13===e.keyCode)return void d.hide(!0);var t=new Date(d.$date),n=t.getHours(),r=$(t,S).length,i=t.getMinutes(),o=$(t,k).length,a=t.getSeconds(),s=$(t,_).length,l=1,c=/(37|39)/.test(e.keyCode),f=2+1*A+1*E;c&&(37===e.keyCode?v=1>v?f-1:v-1:39===e.keyCode&&(v=f-1>v?v+1:0));var g=[0,r],m=0;38===e.keyCode&&(m=-1),40===e.keyCode&&(m=1);var y=2===v&&A,b=2===v&&!A||3===v&&A;0===v?(t.setHours(n+m*parseInt(h.hourStep,10)),r=$(t,S).length,g=[0,r]):1===v?(t.setMinutes(i+m*parseInt(h.minuteStep,10)),o=$(t,k).length,g=[r+l,o]):y?(t.setSeconds(a+m*parseInt(h.secondStep,10)),s=$(t,_).length,g=[r+l+o+l,s]):b&&(c||d.switchMeridian(),g=[r+l+o+l+(s+l)*A,2]),d.select(t,v,!0),u(g[0],g[1]),p.$digest()}};var D=d.init;d.init=function(){return l&&h.useNative?(t.prop("type","time"),void t.css("-webkit-appearance","textfield")):(c&&(t.prop("type","text"),t.attr("readonly","true"),t.on("click",f)),void D())};var T=d.destroy;d.destroy=function(){l&&h.useNative&&t.off("click",f),T()};var M=d.show;d.show=function(){!c&&t.attr("readonly")||t.attr("disabled")||(M(),s(function(){d.$element&&d.$element.on(c?"touchstart":"mousedown",d.$onMouseDown),h.keyboard&&t&&t.on("keydown",d.$onKeyDown)},0,!1))};var O=d.hide;return d.hide=function(e){d.$isShown&&(d.$element&&d.$element.off(c?"touchstart":"mousedown",d.$onMouseDown),h.keyboard&&t&&t.off("keydown",d.$onKeyDown),O(e))},d}var l=/(ip[ao]d|iphone|android)/gi.test(t.navigator.userAgent),c="createTouch"in t.document&&l;return e.lang||(e.lang=o.getDefaultLocale()),u.defaults=e,u}]}).directive("bsTimepicker",["$window","$parse","$q","$dateFormatter","$dateParser","$timepicker",function(e,t,r,i,o,a){var s=a.defaults,u=/(ip[ao]d|iphone|android)/gi.test(e.navigator.userAgent);return{restrict:"EAC",require:"ngModel",link:function(e,t,r,l){function c(e){if(angular.isDate(e)){var t=isNaN(d.minTime)||new Date(e.getTime()).setFullYear(1970,0,1)>=d.minTime,n=isNaN(d.maxTime)||new Date(e.getTime()).setFullYear(1970,0,1)<=d.maxTime,r=t&&n;l.$setValidity("date",r),l.$setValidity("min",t),l.$setValidity("max",n),r&&(l.$dateValue=e)}}function f(){return!l.$dateValue||isNaN(l.$dateValue.getTime())?"":m(l.$dateValue,d.timeFormat)}var d={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","autoclose","timeType","timeFormat","timezone","modelTimeFormat","useNative","hourStep","minuteStep","secondStep","length","arrowBehavior","iconUp","iconDown","roundDisplay","id","prefixClass","prefixEvent"],function(e){angular.isDefined(r[e])&&(d[e]=r[e])});var p=/^(false|0|)$/i;angular.forEach(["html","container","autoclose","useNative","roundDisplay"],function(e){angular.isDefined(r[e])&&p.test(r[e])&&(d[e]=!1)}),u&&(d.useNative||s.useNative)&&(d.timeFormat="HH:mm");var h=a(t,l,d);d=h.$options;var g=d.lang,m=function(e,t,n){return i.formatDate(e,t,g,n)};r.bsShow&&e.$watch(r.bsShow,function(e){h&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|,?(timepicker),?/i)),e===!0?h.show():h.hide())});var $=o({format:d.timeFormat,lang:g});angular.forEach(["minTime","maxTime"],function(e){angular.isDefined(r[e])&&r.$observe(e,function(t){h.$options[e]=$.getTimeForAttribute(e,t),isNaN(h.$options[e])||h.$build(),c(l.$dateValue)})}),e.$watch(r.ngModel,function(){h.update(l.$dateValue)},!0),l.$parsers.unshift(function(e){var t;if(!e)return l.$setValidity("date",!0),null;var r=angular.isDate(e)?e:$.parse(e,l.$dateValue);return!r||isNaN(r.getTime())?(l.$setValidity("date",!1),n):(c(r),"string"===d.timeType?(t=$.timezoneOffsetAdjust(r,d.timezone,!0),m(t,d.modelTimeFormat||d.timeFormat)):(t=$.timezoneOffsetAdjust(l.$dateValue,d.timezone,!0),"number"===d.timeType?t.getTime():"unix"===d.timeType?t.getTime()/1e3:"iso"===d.timeType?t.toISOString():new Date(t)))}),l.$formatters.push(function(e){var t;return t=angular.isUndefined(e)||null===e?NaN:angular.isDate(e)?e:"string"===d.timeType?$.parse(e,null,d.modelTimeFormat):"unix"===d.timeType?new Date(1e3*e):new Date(e),l.$dateValue=$.timezoneOffsetAdjust(t,d.timezone),f()}),l.$render=function(){t.val(f())},e.$on("$destroy",function(){h&&h.destroy(),d=null,h=null})}}}]),angular.module("mgcrea.ngStrap.tab",[]).provider("$tab",function(){var e=this.defaults={animation:"am-fade",template:"tab/tab.tpl.html",navClass:"nav-tabs",activeClass:"active"},t=this.controller=function(t,n,r){var i=this;i.$options=angular.copy(e),angular.forEach(["animation","navClass","activeClass"],function(e){angular.isDefined(r[e])&&(i.$options[e]=r[e])}),t.$navClass=i.$options.navClass,t.$activeClass=i.$options.activeClass,i.$panes=t.$panes=[],i.$activePaneChangeListeners=i.$viewChangeListeners=[],i.$push=function(e){angular.isUndefined(i.$panes.$active)&&t.$setActive(e.name||0),i.$panes.push(e)},i.$remove=function(e){var t,n=i.$panes.indexOf(e),r=i.$panes.$active;t=angular.isString(r)?i.$panes.map(function(e){return e.name}).indexOf(r):i.$panes.$active,i.$panes.splice(n,1),t>n?t--:n===t&&t===i.$panes.length&&t--,t>=0&&t<i.$panes.length?i.$setActive(i.$panes[t].name||t):i.$setActive()},i.$setActive=t.$setActive=function(e){i.$panes.$active=e,i.$activePaneChangeListeners.forEach(function(e){e()})},i.$isActive=t.$isActive=function(e,t){return i.$panes.$active===e.name||i.$panes.$active===t}};this.$get=function(){var n={};return n.defaults=e,n.controller=t,n}}).directive("bsTabs",["$window","$animate","$tab","$parse",function(e,t,n,r){var i=n.defaults;return{require:["?ngModel","bsTabs"],transclude:!0,scope:!0,controller:["$scope","$element","$attrs",n.controller],templateUrl:function(e,t){return t.template||i.template},link:function(e,t,n,i){var o=i[0],a=i[1];if(o&&(a.$activePaneChangeListeners.push(function(){o.$setViewValue(a.$panes.$active)}),o.$formatters.push(function(e){return a.$setActive(e),e})),n.bsActivePane){var s=r(n.bsActivePane);a.$activePaneChangeListeners.push(function(){s.assign(e,a.$panes.$active)}),e.$watch(n.bsActivePane,function(e){a.$setActive(e)},!0)}}}}]).directive("bsPane",["$window","$animate","$sce",function(e,t,n){return{require:["^?ngModel","^bsTabs"],scope:!0,link:function(e,r,i,o){function a(){var n=s.$panes.indexOf(e);t[s.$isActive(e,n)?"addClass":"removeClass"](r,s.$options.activeClass)}var s=o[1];r.addClass("tab-pane"),i.$observe("title",function(t){e.title=n.trustAsHtml(t)}),e.name=i.name,s.$options.animation&&r.addClass(s.$options.animation),i.$observe("disabled",function(t){e.disabled=e.$eval(t)}),s.$push(e),e.$on("$destroy",function(){s.$remove(e)}),s.$activePaneChangeListeners.push(function(){a()}),a()}}}]),angular.module("mgcrea.ngStrap.select",["mgcrea.ngStrap.tooltip","mgcrea.ngStrap.helpers.parseOptions"]).provider("$select",function(){var e=this.defaults={animation:"am-fade",prefixClass:"select",prefixEvent:"$select",placement:"bottom-left",templateUrl:"select/select.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,multiple:!1,allNoneButtons:!1,sort:!0,caretHtml:' <span class="caret"></span>',placeholder:"Choose among the following...",allText:"All",noneText:"None",maxLength:3,maxLengthHtml:"selected",iconCheckmark:"glyphicon glyphicon-ok"};this.$get=["$window","$document","$rootScope","$tooltip","$timeout",function(t,n,r,i,o){function a(r,a,s){var l={},c=angular.extend({},e,s);l=i(r,c);var f=l.$scope;f.$matches=[],c.multiple?f.$activeIndex=[]:f.$activeIndex=-1,f.$isMultiple=c.multiple,f.$showAllNoneButtons=c.allNoneButtons&&c.multiple,f.$iconCheckmark=c.iconCheckmark,f.$allText=c.allText,f.$noneText=c.noneText,f.$activate=function(e){f.$$postDigest(function(){l.activate(e)})},f.$select=function(e){f.$$postDigest(function(){l.select(e)})},f.$isVisible=function(){return l.$isVisible()},f.$isActive=function(e){return l.$isActive(e)},f.$selectAll=function(){for(var e=0;e<f.$matches.length;e++)f.$isActive(e)||f.$select(e)},f.$selectNone=function(){for(var e=0;e<f.$matches.length;e++)f.$isActive(e)&&f.$select(e)},l.update=function(e){f.$matches=e,l.$updateActiveIndex()},l.activate=function(e){return c.multiple?(l.$isActive(e)?f.$activeIndex.splice(f.$activeIndex.indexOf(e),1):f.$activeIndex.push(e),c.sort&&f.$activeIndex.sort(function(e,t){return e-t})):f.$activeIndex=e,f.$activeIndex},l.select=function(e){var t=f.$matches[e].value;f.$apply(function(){l.activate(e),c.multiple?a.$setViewValue(f.$activeIndex.map(function(e){return angular.isUndefined(f.$matches[e])?null:f.$matches[e].value})):(a.$setViewValue(t),l.hide())}),f.$emit(c.prefixEvent+".select",t,e,l)},l.$updateActiveIndex=function(){c.multiple?angular.isArray(a.$modelValue)?f.$activeIndex=a.$modelValue.map(function(e){return l.$getIndex(e)}):f.$activeIndex=[]:angular.isDefined(a.$modelValue)&&f.$matches.length?f.$activeIndex=l.$getIndex(a.$modelValue):f.$activeIndex=-1},l.$isVisible=function(){return c.minLength&&a?f.$matches.length&&a.$viewValue.length>=c.minLength:f.$matches.length},l.$isActive=function(e){return c.multiple?-1!==f.$activeIndex.indexOf(e):f.$activeIndex===e},l.$getIndex=function(e){var t;for(t=f.$matches.length;t--&&!angular.equals(f.$matches[t].value,e););return t},l.$onMouseDown=function(e){if(e.preventDefault(),e.stopPropagation(),u){var t=angular.element(e.target);t.triggerHandler("click")}},l.$onKeyDown=function(e){return/(9|13|38|40)/.test(e.keyCode)?(9!==e.keyCode&&(e.preventDefault(),e.stopPropagation()),c.multiple&&9===e.keyCode?l.hide():c.multiple||13!==e.keyCode&&9!==e.keyCode?void(c.multiple||(38===e.keyCode&&f.$activeIndex>0?f.$activeIndex--:38===e.keyCode&&f.$activeIndex<0?f.$activeIndex=f.$matches.length-1:40===e.keyCode&&f.$activeIndex<f.$matches.length-1?f.$activeIndex++:angular.isUndefined(f.$activeIndex)&&(f.$activeIndex=0),f.$digest())):l.select(f.$activeIndex)):void 0},l.$isIE=function(){var e=t.navigator.userAgent;return e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0},l.$selectScrollFix=function(e){"UL"===n[0].activeElement.tagName&&(e.preventDefault(),e.stopImmediatePropagation(),e.target.focus())};var d=l.show;l.show=function(){d(),c.multiple&&l.$element.addClass("select-multiple"),o(function(){l.$element.on(u?"touchstart":"mousedown",l.$onMouseDown),c.keyboard&&r.on("keydown",l.$onKeyDown)},0,!1)};var p=l.hide;return l.hide=function(){!c.multiple&&angular.isUndefined(a.$modelValue)&&(f.$activeIndex=-1),l.$element.off(u?"touchstart":"mousedown",l.$onMouseDown),c.keyboard&&r.off("keydown",l.$onKeyDown),p(!0)},l}var s=/(ip[ao]d|iphone|android)/gi.test(t.navigator.userAgent),u="createTouch"in t.document&&s;return a.defaults=e,a}]}).directive("bsSelect",["$window","$parse","$q","$select","$parseOptions",function(e,t,n,r,i){var o=r.defaults;return{restrict:"EAC",require:"ngModel",link:function(e,t,n,a){var s={scope:e,placeholder:o.placeholder};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","placeholder","allNoneButtons","maxLength","maxLengthHtml","allText","noneText","iconCheckmark","autoClose","id","sort","caretHtml","prefixClass","prefixEvent"],function(e){angular.isDefined(n[e])&&(s[e]=n[e])});var u=/^(false|0|)$/i;angular.forEach(["html","container","allNoneButtons","sort"],function(e){angular.isDefined(n[e])&&u.test(n[e])&&(s[e]=!1)});var l=t.attr("data-multiple");if(angular.isDefined(l)&&(u.test(l)?s.multiple=!1:s.multiple=l),"select"===t[0].nodeName.toLowerCase()){var c=t;c.css("display","none"),t=angular.element('<button type="button" class="btn btn-default"></button>'),c.after(t)}var f=i(n.bsOptions),d=r(t,a,s);d.$isIE()&&t[0].addEventListener("blur",d.$selectScrollFix);var p=f.$match[7].replace(/\|.+/,"").trim();e.$watch(p,function(){f.valuesFn(e,a).then(function(e){d.update(e),a.$render()})},!0),e.$watch(n.ngModel,function(){d.$updateActiveIndex(),a.$render()},!0),a.$render=function(){var e,n;s.multiple&&angular.isArray(a.$modelValue)?(e=a.$modelValue.map(function(e){return n=d.$getIndex(e),-1!==n?d.$scope.$matches[n].label:!1}).filter(angular.isDefined),e=e.length>(s.maxLength||o.maxLength)?e.length+" "+(s.maxLengthHtml||o.maxLengthHtml):e.join(", ")):(n=d.$getIndex(a.$modelValue),e=-1!==n?d.$scope.$matches[n].label:!1),t.html((e||s.placeholder)+(s.caretHtml||o.caretHtml))},s.multiple&&(a.$isEmpty=function(e){return!e||0===e.length}),e.$on("$destroy",function(){d&&d.destroy(),s=null,d=null})}}}]),angular.module("mgcrea.ngStrap.scrollspy",["mgcrea.ngStrap.helpers.debounce","mgcrea.ngStrap.helpers.dimensions"]).provider("$scrollspy",function(){var e=this.$$spies={},n=this.defaults={debounce:150,throttle:100,offset:100};this.$get=["$window","$document","$rootScope","dimensions","debounce","throttle",function(r,i,o,a,s,u){function l(e,t){return e[0].nodeName&&e[0].nodeName.toLowerCase()===t.toLowerCase()}function c(i){var c=angular.extend({},n,i);c.element||(c.element=p);var h=l(c.element,"body"),g=h?f:c.element,m=h?"window":c.id;if(e[m])return e[m].$$count++,e[m];var $,v,y,b,w,x,S,C,k={},_=k.$trackedElements=[],A=[];return k.init=function(){this.$$count=1,b=s(this.checkPosition,c.debounce),w=u(this.checkPosition,c.throttle),g.on("click",this.checkPositionWithEventLoop),f.on("resize",b),g.on("scroll",w),x=s(this.checkOffsets,c.debounce),$=o.$on("$viewContentLoaded",x),v=o.$on("$includeContentLoaded",x),x(),m&&(e[m]=k)},k.destroy=function(){this.$$count--,this.$$count>0||(g.off("click",this.checkPositionWithEventLoop),f.off("resize",b),g.off("scroll",w),$(),v(),m&&delete e[m])},k.checkPosition=function(){if(A.length){if(C=(h?r.pageYOffset:g.prop("scrollTop"))||0,S=Math.max(r.innerHeight,d.prop("clientHeight")),C<A[0].offsetTop&&y!==A[0].target)return k.$activateElement(A[0]);for(var e=A.length;e--;)if(!angular.isUndefined(A[e].offsetTop)&&null!==A[e].offsetTop&&y!==A[e].target&&!(C<A[e].offsetTop||A[e+1]&&C>A[e+1].offsetTop))return k.$activateElement(A[e])}},k.checkPositionWithEventLoop=function(){setTimeout(k.checkPosition,1)},k.$activateElement=function(e){if(y){var t=k.$getTrackedElement(y);t&&(t.source.removeClass("active"),l(t.source,"li")&&l(t.source.parent().parent(),"li")&&t.source.parent().parent().removeClass("active"))}y=e.target,e.source.addClass("active"),l(e.source,"li")&&l(e.source.parent().parent(),"li")&&e.source.parent().parent().addClass("active")},k.$getTrackedElement=function(e){return _.filter(function(t){return t.target===e})[0]},k.checkOffsets=function(){angular.forEach(_,function(e){var n=t.querySelector(e.target);e.offsetTop=n?a.offset(n).top:null,c.offset&&null!==e.offsetTop&&(e.offsetTop-=1*c.offset)}),A=_.filter(function(e){return null!==e.offsetTop}).sort(function(e,t){return e.offsetTop-t.offsetTop}),b()},k.trackElement=function(e,t){_.push({target:e,source:t})},k.untrackElement=function(e,t){for(var n,r=_.length;r--;)if(_[r].target===e&&_[r].source===t){n=r;break}_.splice(n,1)},k.activate=function(e){_[e].addClass("active")},k.init(),k}var f=angular.element(r),d=angular.element(i.prop("documentElement")),p=angular.element(r.document.body);return c}]}).directive("bsScrollspy",["$rootScope","debounce","dimensions","$scrollspy",function(e,t,n,r){return{restrict:"EAC",link:function(e,t,n){var i={scope:e};angular.forEach(["offset","target"],function(e){angular.isDefined(n[e])&&(i[e]=n[e])});var o=r(i);o.trackElement(i.target,t),e.$on("$destroy",function(){o&&(o.untrackElement(i.target,t),o.destroy()),i=null,o=null})}}}]).directive("bsScrollspyList",["$rootScope","debounce","dimensions","$scrollspy",function(){return{restrict:"A",compile:function(e){var t=e[0].querySelectorAll("li > a[href]");angular.forEach(t,function(e){var t=angular.element(e);t.parent().attr("bs-scrollspy","").attr("data-target",t.attr("href"))})}}}]),angular.module("mgcrea.ngStrap.popover",["mgcrea.ngStrap.tooltip"]).provider("$popover",function(){var e=this.defaults={animation:"am-fade",customClass:"",container:!1,target:!1,placement:"right",templateUrl:"popover/popover.tpl.html",contentTemplate:!1,trigger:"click",keyboard:!0,html:!1,title:"",content:"",delay:0,autoClose:!1};this.$get=["$tooltip",function(t){function n(n,r){var i=angular.extend({},e,r),o=t(n,i);return i.content&&(o.$scope.content=i.content),o}return n}]}).directive("bsPopover",["$window","$sce","$popover",function(e,t,n){var r=e.requestAnimationFrame||e.setTimeout;return{restrict:"EAC",scope:!0,link:function(e,i,o){var a,s={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","contentTemplate","placement","container","delay","trigger","html","animation","customClass","autoClose","id","prefixClass","prefixEvent"],function(e){angular.isDefined(o[e])&&(s[e]=o[e])});var u=/^(false|0|)$/i;angular.forEach(["html","container","autoClose"],function(e){angular.isDefined(o[e])&&u.test(o[e])&&(s[e]=!1)});var l=i.attr("data-target");angular.isDefined(l)&&(u.test(l)?s.target=!1:s.target=l),angular.forEach(["title","content"],function(n){o[n]&&o.$observe(n,function(i,o){e[n]=t.trustAsHtml(i),angular.isDefined(o)&&r(function(){a&&a.$applyPlacement()})})}),o.bsPopover&&e.$watch(o.bsPopover,function(t,n){angular.isObject(t)?angular.extend(e,t):e.content=t,angular.isDefined(n)&&r(function(){a&&a.$applyPlacement()})},!0),o.bsShow&&e.$watch(o.bsShow,function(e){a&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|,?(popover),?/i)),e===!0?a.show():a.hide())}),o.viewport&&e.$watch(o.viewport,function(e){a&&angular.isDefined(e)&&a.setViewport(e)}),a=n(i,s),e.$on("$destroy",function(){a&&a.destroy(),s=null,a=null})}}}]),angular.module("mgcrea.ngStrap.navbar",[]).provider("$navbar",function(){var e=this.defaults={activeClass:"active",routeAttr:"data-match-route",strict:!1};this.$get=function(){return{defaults:e}}}).directive("bsNavbar",["$window","$location","$navbar",function(e,t,n){var r=n.defaults;return{restrict:"A",link:function(e,n,i){var o=angular.copy(r);angular.forEach(Object.keys(r),function(e){angular.isDefined(i[e])&&(o[e]=i[e])}),e.$watch(function(){return t.path()},function(e){var t=n[0].querySelectorAll("li["+o.routeAttr+"]");angular.forEach(t,function(t){var n=angular.element(t),r=n.attr(o.routeAttr).replace("/","\\/");o.strict&&(r="^"+r+"$");var i=new RegExp(r,"i");i.test(e)?n.addClass(o.activeClass):n.removeClass(o.activeClass)})})}}}]),angular.module("mgcrea.ngStrap.dropdown",["mgcrea.ngStrap.tooltip"]).provider("$dropdown",function(){var e=this.defaults={animation:"am-fade",prefixClass:"dropdown",prefixEvent:"dropdown",placement:"bottom-left",templateUrl:"dropdown/dropdown.tpl.html",trigger:"click",container:!1,keyboard:!0,html:!1,delay:0};this.$get=["$window","$rootScope","$tooltip","$timeout",function(t,n,r,i){function o(t,o){function u(e){return e.target!==t[0]?e.target!==t[0]&&l.hide():void 0}var l={},c=angular.extend({},e,o);l.$scope=c.scope&&c.scope.$new()||n.$new(),l=r(t,c);var f=t.parent();l.$onKeyDown=function(e){if(/(38|40)/.test(e.keyCode)){e.preventDefault(),e.stopPropagation();var t=angular.element(l.$element[0].querySelectorAll("li:not(.divider) a"));if(t.length){var n;angular.forEach(t,function(e,t){s&&s.call(e,":focus")&&(n=t)}),38===e.keyCode&&n>0?n--:40===e.keyCode&&n<t.length-1?n++:angular.isUndefined(n)&&(n=0),t.eq(n)[0].focus()}}};var d=l.show;l.show=function(){d(),i(function(){c.keyboard&&l.$element&&l.$element.on("keydown",l.$onKeyDown),a.on("click",u)},0,!1),f.hasClass("dropdown")&&f.addClass("open")};var p=l.hide;l.hide=function(){l.$isShown&&(c.keyboard&&l.$element&&l.$element.off("keydown",l.$onKeyDown),a.off("click",u),f.hasClass("dropdown")&&f.removeClass("open"),p())};var h=l.destroy;return l.destroy=function(){a.off("click",u),h()},l}var a=angular.element(t.document.body),s=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector;return o}]}).directive("bsDropdown",["$window","$sce","$dropdown",function(e,t,r){return{restrict:"EAC",scope:!0,compile:function(e,t){if(!t.bsDropdown){for(var i=e[0].nextSibling;i&&1!==i.nodeType;)i=i.nextSibling;i&&i.className.split(" ").indexOf("dropdown-menu")>=0&&(t.template=i.outerHTML,t.templateUrl=n,i.parentNode.removeChild(i))}return function(e,n,i){var o={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","id","autoClose"],function(e){angular.isDefined(t[e])&&(o[e]=t[e])});var a=/^(false|0|)$/i;angular.forEach(["html","container"],function(e){angular.isDefined(i[e])&&a.test(i[e])&&(o[e]=!1)}),i.bsDropdown&&e.$watch(i.bsDropdown,function(t){e.content=t},!0);var s=r(n,o);i.bsShow&&e.$watch(i.bsShow,function(e){s&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|,?(dropdown),?/i)),e===!0?s.show():s.hide())}),e.$on("$destroy",function(){s&&s.destroy(),o=null,s=null})}}}}]),angular.module("mgcrea.ngStrap.modal",["mgcrea.ngStrap.core","mgcrea.ngStrap.helpers.dimensions"]).provider("$modal",function(){var e=this.defaults={animation:"am-fade",backdropAnimation:"am-fade",customClass:"",prefixClass:"modal",prefixEvent:"modal",placement:"top",templateUrl:"modal/modal.tpl.html",template:"",contentTemplate:!1,container:!1,element:null,backdrop:!0,keyboard:!0,html:!1,show:!0,size:null};this.$get=["$window","$rootScope","$bsCompiler","$animate","$timeout","$sce","dimensions",function(n,r,i,o,a,s){function u(t){function n(){A.$emit(k.prefixEvent+".show",C)}function a(){p.removeClass(k.prefixClass+"-open"),k.animation&&p.removeClass(k.prefixClass+"-with-"+k.animation),A.$emit(k.prefixEvent+".hide",C)}function u(){k.backdrop&&(D.on("click",w),M.on("click",w),M.on("wheel",x))}function v(){k.backdrop&&(D.off("click",w),M.off("click",w),M.off("wheel",x))}function y(){k.keyboard&&D.on("keyup",C.$onKeyUp)}function b(){k.keyboard&&D.off("keyup",C.$onKeyUp)}function w(e){e.target===e.currentTarget&&("static"===k.backdrop?C.focus():C.hide())}function x(e){e.preventDefault()}function S(){C.$isShown&&null!==D&&(v(),b()),T&&(T.$destroy(),T=null),D&&(D.remove(),D=C.$element=null)}var C={},k=C.$options=angular.extend({},e,t),_=C.$promise=i.compile(k),A=C.$scope=k.scope&&k.scope.$new()||r.$new();k.element||k.container||(k.container="body"),C.$id=k.id||k.element&&k.element.attr("id")||"",f(["title","content"],function(e){k[e]&&(A[e]=s.trustAsHtml(k[e]))}),A.$hide=function(){A.$$postDigest(function(){C.hide()})},A.$show=function(){A.$$postDigest(function(){C.show()})},A.$toggle=function(){A.$$postDigest(function(){C.toggle()})},C.$isShown=A.$isShown=!1;var E,D,T,M=angular.element('<div class="'+k.prefixClass+'-backdrop"/>');return M.css({position:"fixed",top:"0px",left:"0px",bottom:"0px",right:"0px"}),_.then(function(e){E=e,C.init()}),C.init=function(){k.show&&A.$$postDigest(function(){C.show()})},C.destroy=function(){S(),M&&(M.remove(),M=null),A.$destroy()},C.show=function(){if(!C.$isShown){var e,t;if(angular.isElement(k.container)?(e=k.container,t=k.container[0].lastChild?angular.element(k.container[0].lastChild):null):k.container?(e=c(k.container),t=e[0]&&e[0].lastChild?angular.element(e[0].lastChild):null):(e=null,t=k.element),D&&S(),T=C.$scope.$new(),D=C.$element=E.link(T,function(){}),C.$backdrop=M,k.backdrop&&(D.css({"z-index":g+20*h}),M.css({"z-index":m+20*h}),h++),!A.$emit(k.prefixEvent+".show.before",C).defaultPrevented){D.css({display:"block"}).addClass(k.placement),k.customClass&&D.addClass(k.customClass),k.size&&$[k.size]&&angular.element(c(".modal-dialog",D[0])).addClass($[k.size]),k.animation&&(k.backdrop&&M.addClass(k.backdropAnimation),D.addClass(k.animation)),k.backdrop&&o.enter(M,p,null),angular.version.minor<=2?o.enter(D,e,t,n):o.enter(D,e,t).then(n),C.$isShown=A.$isShown=!0,l(A);var r=D[0];d(function(){r.focus()}),p.addClass(k.prefixClass+"-open"),k.animation&&p.addClass(k.prefixClass+"-with-"+k.animation),u(),y()}}},C.hide=function(){C.$isShown&&(k.backdrop&&h--,A.$emit(k.prefixEvent+".hide.before",C).defaultPrevented||(angular.version.minor<=2?o.leave(D,a):o.leave(D).then(a),k.backdrop&&o.leave(M),C.$isShown=A.$isShown=!1,l(A),v(),b()))},C.toggle=function(){C.$isShown?C.hide():C.show()},C.focus=function(){D[0].focus()},C.$onKeyUp=function(e){27===e.which&&C.$isShown&&(C.hide(),e.stopPropagation())},C}function l(e){e.$$phase||e.$root&&e.$root.$$phase||e.$digest()}function c(e,n){return angular.element((n||t).querySelectorAll(e))}var f=angular.forEach,d=n.requestAnimationFrame||n.setTimeout,p=angular.element(n.document.body),h=0,g=1050,m=1040,$={lg:"modal-lg",sm:"modal-sm"};return u}]}).directive("bsModal",["$window","$sce","$modal",function(e,t,n){return{restrict:"EAC",scope:!0,link:function(e,r,i){var o={scope:e,element:r,show:!1};angular.forEach(["template","templateUrl","controller","controllerAs","contentTemplate","placement","backdrop","keyboard","html","container","animation","backdropAnimation","id","prefixEvent","prefixClass","customClass","modalClass","size"],function(e){angular.isDefined(i[e])&&(o[e]=i[e])}),o.modalClass&&(o.customClass=o.modalClass);var a=/^(false|0|)$/i;angular.forEach(["backdrop","keyboard","html","container"],function(e){angular.isDefined(i[e])&&a.test(i[e])&&(o[e]=!1)}),angular.forEach(["title","content"],function(n){i[n]&&i.$observe(n,function(r){e[n]=t.trustAsHtml(r)})}),i.bsModal&&e.$watch(i.bsModal,function(t){angular.isObject(t)?angular.extend(e,t):e.content=t},!0);var s=n(o);r.on(i.trigger||"click",s.toggle),e.$on("$destroy",function(){s&&s.destroy(),o=null,s=null})}}}]),angular.version.minor<3&&angular.version.dot<14&&angular.module("ng").factory("$$rAF",["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||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}]),angular.module("mgcrea.ngStrap.helpers.parseOptions",[]).provider("$parseOptions",function(){var e=this.defaults={regexp:/^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(.*?)(?:\s+track\s+by\s+(.*?))?$/};this.$get=["$parse","$q",function(t,n){function r(r,i){function o(e,t){return e.map(function(e,n){var r,i,o={};return o[c]=e,r=l(t,o),i=p(t,o),{label:r,value:i,index:n}})}var a={},s=angular.extend({},e,i);a.$values=[];var u,l,c,f,d,p,h;return a.init=function(){a.$match=u=r.match(s.regexp),l=t(u[2]||u[1]),c=u[4]||u[6],f=u[5],d=t(u[3]||""),p=t(u[2]?u[1]:c),h=t(u[7])},a.valuesFn=function(e,t){return n.when(h(e,t)).then(function(t){return angular.isArray(t)||(t=[]),a.$values=t.length?o(t,e):[],a.$values})},a.displayValue=function(e){var t={};return t[c]=e,l(t)},a.init(),a}return r}]}),angular.module("mgcrea.ngStrap.helpers.dimensions",[]).factory("dimensions",function(){function t(e){var t=e.ownerDocument,i=e.offsetParent||t;if(r(i,"#document"))return t.documentElement;for(;i&&!r(i,"html")&&"static"===n.css(i,"position");)i=i.offsetParent;return i||t.documentElement}var n={},r=n.nodeName=function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()};return n.css=function(t,n,r){var i;return i=t.currentStyle?t.currentStyle[n]:e.getComputedStyle?e.getComputedStyle(t)[n]:t.style[n],r===!0?parseFloat(i)||0:i},n.offset=function(t){var n=t.getBoundingClientRect(),r=t.ownerDocument;return{width:n.width||t.offsetWidth,height:n.height||t.offsetHeight,top:n.top+(e.pageYOffset||r.documentElement.scrollTop)-(r.documentElement.clientTop||0),left:n.left+(e.pageXOffset||r.documentElement.scrollLeft)-(r.documentElement.clientLeft||0)}},n.setOffset=function(e,t,r){var i,o,a,s,u,l,c,f=n.css(e,"position"),d=angular.element(e),p={};"static"===f&&(e.style.position="relative"),u=n.offset(e),a=n.css(e,"top"),l=n.css(e,"left"),c=("absolute"===f||"fixed"===f)&&(a+l).indexOf("auto")>-1,c?(i=n.position(e),s=i.top,o=i.left):(s=parseFloat(a)||0,o=parseFloat(l)||0),angular.isFunction(t)&&(t=t.call(e,r,u)),null!==t.top&&(p.top=t.top-u.top+s),null!==t.left&&(p.left=t.left-u.left+o),"using"in t?t.using.call(d,p):d.css({top:p.top+"px",left:p.left+"px"})},n.position=function(e){var i,o,a={top:0,left:0};return"fixed"===n.css(e,"position")?o=e.getBoundingClientRect():(i=t(e),o=n.offset(e),r(i,"html")||(a=n.offset(i)),a.top+=n.css(i,"borderTopWidth",!0),a.left+=n.css(i,"borderLeftWidth",!0)),{width:e.offsetWidth,height:e.offsetHeight,top:o.top-a.top-n.css(e,"marginTop",!0),left:o.left-a.left-n.css(e,"marginLeft",!0)}},n.height=function(e,t){var r=e.offsetHeight;return t?r+=n.css(e,"marginTop",!0)+n.css(e,"marginBottom",!0):r-=n.css(e,"paddingTop",!0)+n.css(e,"paddingBottom",!0)+n.css(e,"borderTopWidth",!0)+n.css(e,"borderBottomWidth",!0),r},n.width=function(e,t){var r=e.offsetWidth;return t?r+=n.css(e,"marginLeft",!0)+n.css(e,"marginRight",!0):r-=n.css(e,"paddingLeft",!0)+n.css(e,"paddingRight",!0)+n.css(e,"borderLeftWidth",!0)+n.css(e,"borderRightWidth",!0),r},n}),angular.module("mgcrea.ngStrap.helpers.debounce",[]).factory("debounce",["$timeout",function(e){return function(t,n,r){var i=null;return function(){var o=this,a=arguments,s=r&&!i;return i&&e.cancel(i),i=e(function(){i=null,r||t.apply(o,a)},n,!1),s&&t.apply(o,a),i}}}]).factory("throttle",["$timeout",function(e){return function(t,n,r){var i=null;return r||(r={}),function(){var o=this,a=arguments;i||(r.leading!==!1&&t.apply(o,a),i=e(function(){i=null,r.trailing!==!1&&t.apply(o,a)},n,!1))}}}]),angular.module("mgcrea.ngStrap.helpers.dateParser",[]).provider("$dateParser",["$localeProvider",function(){function e(){this.year=1970,this.month=0,this.day=1,this.hours=0,this.minutes=0,this.seconds=0,this.milliseconds=0}function t(){}function n(e){return!isNaN(parseFloat(e))&&isFinite(e)}function r(e,t){for(var n=e.length,r=t.toString().toLowerCase(),i=0;n>i;i++)if(e[i].toLowerCase()===r)return i;return-1}e.prototype.setMilliseconds=function(e){this.milliseconds=e},e.prototype.setSeconds=function(e){this.seconds=e},e.prototype.setMinutes=function(e){this.minutes=e},e.prototype.setHours=function(e){this.hours=e},e.prototype.getHours=function(){return this.hours},e.prototype.setDate=function(e){this.day=e},e.prototype.setMonth=function(e){this.month=e},e.prototype.setFullYear=function(e){this.year=e},e.prototype.fromDate=function(e){return this.year=e.getFullYear(),this.month=e.getMonth(),this.day=e.getDate(),this.hours=e.getHours(),this.minutes=e.getMinutes(),this.seconds=e.getSeconds(),this.milliseconds=e.getMilliseconds(),this},e.prototype.toDate=function(){return new Date(this.year,this.month,this.day,this.hours,this.minutes,this.seconds,this.milliseconds)};var i=e.prototype,o=this.defaults={format:"shortDate",strict:!1};this.$get=["$locale","dateFilter",function(a,s){var u=function(u){function l(e){var t=c(e);return h(t)}function c(e){var t=f(e),n=t.replace(/''/g,"\\'"),r=/('(?:\\'|.)*?')/,i=n.split(r),o=Object.keys(w),a=[];return angular.forEach(i,function(e){if(d(e))e=p(e);else for(var t=0;t<o.length;t++)e=e.split(o[t]).join("${"+t+"}");a.push(e)}),a.join("")}function f(e){return e.replace(/\\/g,"[\\\\]").replace(/-/g,"[-]").replace(/\./g,"[.]").replace(/\*/g,"[*]").replace(/\+/g,"[+]").replace(/\?/g,"[?]").replace(/\$/g,"[$]").replace(/\^/g,"[^]").replace(/\//g,"[/]").replace(/\\s/g,"[\\s]")}function d(e){return/^'.*'$/.test(e)}function p(e){return e.replace(/^'(.*)'$/,"$1")}function h(e){for(var t=Object.keys(w),n=e,r=0;r<t.length;r++)n=n.split("${"+r+"}").join("("+w[t[r]]+")");return new RegExp("^"+n+"$",["i"]);
-}function g(e){var t=c(e);return m(t)}function m(e){for(var t,n,r,i,o=Object.keys(w),a=new RegExp("\\${(\\d+)}","g"),s=[];null!==(t=a.exec(e));)n=t[1],r=o[n],i=x[r],s.push(i);return s}var $,v,y=angular.extend({},o,u),b={},w={sss:"[0-9]{3}",ss:"[0-5][0-9]",s:y.strict?"[1-5]?[0-9]":"[0-9]|[0-5][0-9]",mm:"[0-5][0-9]",m:y.strict?"[1-5]?[0-9]":"[0-9]|[0-5][0-9]",HH:"[01][0-9]|2[0-3]",H:y.strict?"1?[0-9]|2[0-3]":"[01]?[0-9]|2[0-3]",hh:"[0][1-9]|[1][012]",h:y.strict?"[1-9]|1[012]":"0?[1-9]|1[012]",a:"AM|PM",EEEE:a.DATETIME_FORMATS.DAY.join("|"),EEE:a.DATETIME_FORMATS.SHORTDAY.join("|"),dd:"0[1-9]|[12][0-9]|3[01]",d:y.strict?"[1-9]|[1-2][0-9]|3[01]":"0?[1-9]|[1-2][0-9]|3[01]",MMMM:a.DATETIME_FORMATS.MONTH.join("|"),MMM:a.DATETIME_FORMATS.SHORTMONTH.join("|"),MM:"0[1-9]|1[012]",M:y.strict?"[1-9]|1[012]":"0?[1-9]|1[012]",yyyy:"[1]{1}[0-9]{3}|[2]{1}[0-9]{3}",yy:"[0-9]{2}",y:y.strict?"-?(0|[1-9][0-9]{0,3})":"-?0*[0-9]{1,4}"},x={sss:i.setMilliseconds,ss:i.setSeconds,s:i.setSeconds,mm:i.setMinutes,m:i.setMinutes,HH:i.setHours,H:i.setHours,hh:i.setHours,h:i.setHours,EEEE:t,EEE:t,dd:i.setDate,d:i.setDate,a:function(e){var t=this.getHours()%12;return this.setHours(e.match(/pm/i)?t+12:t)},MMMM:function(e){return this.setMonth(r(a.DATETIME_FORMATS.MONTH,e))},MMM:function(e){return this.setMonth(r(a.DATETIME_FORMATS.SHORTMONTH,e))},MM:function(e){return this.setMonth(1*e-1)},M:function(e){return this.setMonth(1*e-1)},yyyy:i.setFullYear,yy:function(e){return this.setFullYear(2e3+1*e)},y:function(e){return 50>=1*e&&2===e.length?this.setFullYear(2e3+1*e):this.setFullYear(1*e)}};return b.init=function(){b.$format=a.DATETIME_FORMATS[y.format]||y.format,$=l(b.$format),v=g(b.$format)},b.isValid=function(e){return angular.isDate(e)?!isNaN(e.getTime()):$.test(e)},b.parse=function(t,n,r,i){r&&(r=a.DATETIME_FORMATS[r]||r),angular.isDate(t)&&(t=s(t,r||b.$format,i));var o=r?l(r):$,u=r?g(r):v,c=o.exec(t);if(!c)return!1;for(var f=n&&!isNaN(n.getTime())?(new e).fromDate(n):(new e).fromDate(new Date(1970,0,1,0)),d=0;d<c.length-1;d++)u[d]&&u[d].call(f,c[d+1]);var p=f.toDate();return parseInt(f.day,10)!==p.getDate()?!1:p},b.getDateForAttribute=function(e,t){var r;if("today"===t){var i=new Date;r=new Date(i.getFullYear(),i.getMonth(),i.getDate()+("maxDate"===e?1:0),0,0,0,"minDate"===e?0:-1)}else r=angular.isString(t)&&t.match(/^".+"$/)?new Date(t.substr(1,t.length-2)):n(t)?new Date(parseInt(t,10)):angular.isString(t)&&0===t.length?"minDate"===e?-(1/0):+(1/0):new Date(t);return r},b.getTimeForAttribute=function(e,t){var r;return r="now"===t?(new Date).setFullYear(1970,0,1):angular.isString(t)&&t.match(/^".+"$/)?new Date(t.substr(1,t.length-2)).setFullYear(1970,0,1):n(t)?new Date(parseInt(t,10)).setFullYear(1970,0,1):angular.isString(t)&&0===t.length?"minTime"===e?-(1/0):+(1/0):b.parse(t,new Date(1970,0,1,0))},b.daylightSavingAdjust=function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},b.timezoneOffsetAdjust=function(e,t,n){return e?(t&&"UTC"===t&&(e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+(n?-1:1)*e.getTimezoneOffset())),e):null},b.init(),b};return u}]}]),angular.module("mgcrea.ngStrap.helpers.dateFormatter",[]).service("$dateFormatter",["$locale","dateFilter",function(e,t){function n(e){return/(h+)([:\.])?(m+)([:\.])?(s*)[ ]?(a?)/i.exec(e).slice(1)}this.getDefaultLocale=function(){return e.id},this.getDatetimeFormat=function(t){return e.DATETIME_FORMATS[t]||t},this.weekdaysShort=function(){return e.DATETIME_FORMATS.SHORTDAY},this.hoursFormat=function(e){return n(e)[0]},this.minutesFormat=function(e){return n(e)[2]},this.secondsFormat=function(e){return n(e)[4]},this.timeSeparator=function(e){return n(e)[1]},this.showSeconds=function(e){return!!n(e)[4]},this.showAM=function(e){return!!n(e)[5]},this.formatDate=function(e,n,r,i){return t(e,n,i)}}]),angular.module("mgcrea.ngStrap.core",[]).service("$bsCompiler",r),angular.module("mgcrea.ngStrap.datepicker",["mgcrea.ngStrap.helpers.dateParser","mgcrea.ngStrap.helpers.dateFormatter","mgcrea.ngStrap.tooltip"]).provider("$datepicker",function(){var e=this.defaults={animation:"am-fade",prefixClass:"datepicker",placement:"bottom-left",templateUrl:"datepicker/datepicker.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,useNative:!1,dateType:"date",dateFormat:"shortDate",timezone:null,modelDateFormat:null,dayFormat:"dd",monthFormat:"MMM",yearFormat:"yyyy",monthTitleFormat:"MMMM yyyy",yearTitleFormat:"yyyy",strictFormat:!1,autoclose:!1,minDate:-(1/0),maxDate:+(1/0),startView:0,minView:0,startWeek:0,daysOfWeekDisabled:"",iconLeft:"glyphicon glyphicon-chevron-left",iconRight:"glyphicon glyphicon-chevron-right"};this.$get=["$window","$document","$rootScope","$sce","$dateFormatter","datepickerViews","$tooltip","$timeout",function(t,n,r,i,o,a,s,u){function l(t,n,r){function i(e){e.selected=l.$isSelected(e.date)}function o(){t[0].focus()}var l=s(t,angular.extend({},e,r)),d=r.scope,p=l.$options,h=l.$scope;p.startView&&(p.startView-=p.minView);var g=a(l);l.$views=g.views;var m=g.viewDate;h.$mode=p.startView,h.$iconLeft=p.iconLeft,h.$iconRight=p.iconRight;var $=l.$views[h.$mode];h.$select=function(e){l.select(e)},h.$selectPane=function(e){l.$selectPane(e)},h.$toggleMode=function(){l.setMode((h.$mode+1)%l.$views.length)},l.update=function(e){angular.isDate(e)&&!isNaN(e.getTime())&&(l.$date=e,$.update.call($,e)),l.$build(!0)},l.updateDisabledDates=function(e){p.disabledDateRanges=e;for(var t=0,n=h.rows.length;n>t;t++)angular.forEach(h.rows[t],l.$setDisabledEl)},l.select=function(e,t){angular.isDate(n.$dateValue)||(n.$dateValue=new Date(e)),!h.$mode||t?(n.$setViewValue(angular.copy(e)),n.$render(),p.autoclose&&!t&&u(function(){l.hide(!0)})):(angular.extend(m,{year:e.getFullYear(),month:e.getMonth(),date:e.getDate()}),l.setMode(h.$mode-1),l.$build())},l.setMode=function(e){h.$mode=e,$=l.$views[h.$mode],l.$build()},l.$build=function(e){e===!0&&$.built||(e!==!1||$.built)&&$.build.call($)},l.$updateSelected=function(){for(var e=0,t=h.rows.length;t>e;e++)angular.forEach(h.rows[e],i)},l.$isSelected=function(e){return $.isSelected(e)},l.$setDisabledEl=function(e){e.disabled=$.isDisabled(e.date)},l.$selectPane=function(e){var t=$.steps,n=new Date(Date.UTC(m.year+(t.year||0)*e,m.month+(t.month||0)*e,1));angular.extend(m,{year:n.getUTCFullYear(),month:n.getUTCMonth(),date:n.getUTCDate()}),l.$build()},l.$onMouseDown=function(e){if(e.preventDefault(),e.stopPropagation(),f){var t=angular.element(e.target);"button"!==t[0].nodeName.toLowerCase()&&(t=t.parent()),t.triggerHandler("click")}},l.$onKeyDown=function(e){if(/(38|37|39|40|13)/.test(e.keyCode)&&!e.shiftKey&&!e.altKey){if(e.preventDefault(),e.stopPropagation(),13===e.keyCode)return void(h.$mode?h.$apply(function(){l.setMode(h.$mode-1)}):l.hide(!0));$.onKeyDown(e),d.$digest()}};var v=l.init;l.init=function(){return c&&p.useNative?(t.prop("type","date"),void t.css("-webkit-appearance","textfield")):(f&&(t.prop("type","text"),t.attr("readonly","true"),t.on("click",o)),void v())};var y=l.destroy;l.destroy=function(){c&&p.useNative&&t.off("click",o),y()};var b=l.show;l.show=function(){!f&&t.attr("readonly")||t.attr("disabled")||(b(),u(function(){l.$isShown&&(l.$element.on(f?"touchstart":"mousedown",l.$onMouseDown),p.keyboard&&t.on("keydown",l.$onKeyDown))},0,!1))};var w=l.hide;return l.hide=function(e){l.$isShown&&(l.$element.off(f?"touchstart":"mousedown",l.$onMouseDown),p.keyboard&&t.off("keydown",l.$onKeyDown),w(e))},l}var c=/(ip[ao]d|iphone|android)/gi.test(t.navigator.userAgent),f="createTouch"in t.document&&c;return e.lang||(e.lang=o.getDefaultLocale()),l.defaults=e,l}]}).directive("bsDatepicker",["$window","$parse","$q","$dateFormatter","$dateParser","$datepicker",function(e,t,n,r,i,o){var a=/(ip[ao]d|iphone|android)/gi.test(e.navigator.userAgent);return{restrict:"EAC",require:"ngModel",link:function(e,t,n,s){function u(e){return e&&e.length?e:null}function l(e){if(angular.isDate(e)){var t=isNaN(p.$options.minDate)||e.getTime()>=p.$options.minDate,n=isNaN(p.$options.maxDate)||e.getTime()<=p.$options.maxDate,r=t&&n;s.$setValidity("date",r),s.$setValidity("min",t),s.$setValidity("max",n),r&&(s.$dateValue=e)}}function c(){return!s.$dateValue||isNaN(s.$dateValue.getTime())?"":g(s.$dateValue,f.dateFormat)}var f={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","html","animation","autoclose","dateType","dateFormat","timezone","modelDateFormat","dayFormat","strictFormat","startWeek","startDate","useNative","lang","startView","minView","iconLeft","iconRight","daysOfWeekDisabled","id","prefixClass","prefixEvent"],function(e){angular.isDefined(n[e])&&(f[e]=n[e])});var d=/^(false|0|)$/i;angular.forEach(["html","container","autoclose","useNative"],function(e){angular.isDefined(n[e])&&d.test(n[e])&&(f[e]=!1)});var p=o(t,s,f);f=p.$options,a&&f.useNative&&(f.dateFormat="yyyy-MM-dd");var h=f.lang,g=function(e,t){return r.formatDate(e,t,h)},m=i({format:f.dateFormat,lang:h,strict:f.strictFormat});n.bsShow&&e.$watch(n.bsShow,function(e){p&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|,?(datepicker),?/i)),e===!0?p.show():p.hide())}),angular.forEach(["minDate","maxDate"],function(e){angular.isDefined(n[e])&&n.$observe(e,function(t){p.$options[e]=m.getDateForAttribute(e,t),isNaN(p.$options[e])||p.$build(!1),l(s.$dateValue)})}),angular.isDefined(n.dateFormat)&&n.$observe("dateFormat",function(e){p.$options.dateFormat=e}),e.$watch(n.ngModel,function(){p.update(s.$dateValue)},!0),angular.isDefined(n.disabledDates)&&e.$watch(n.disabledDates,function(e,t){e=u(e),t=u(t),e&&p.updateDisabledDates(e)}),s.$parsers.unshift(function(e){var t;if(!e)return s.$setValidity("date",!0),null;var n=m.parse(e,s.$dateValue);return!n||isNaN(n.getTime())?void s.$setValidity("date",!1):(l(n),"string"===f.dateType?(t=m.timezoneOffsetAdjust(n,f.timezone,!0),g(t,f.modelDateFormat||f.dateFormat)):(t=m.timezoneOffsetAdjust(s.$dateValue,f.timezone,!0),"number"===f.dateType?t.getTime():"unix"===f.dateType?t.getTime()/1e3:"iso"===f.dateType?t.toISOString():new Date(t)))}),s.$formatters.push(function(e){var t;return t=angular.isUndefined(e)||null===e?NaN:angular.isDate(e)?e:"string"===f.dateType?m.parse(e,null,f.modelDateFormat):"unix"===f.dateType?new Date(1e3*e):new Date(e),s.$dateValue=m.timezoneOffsetAdjust(t,f.timezone),c()}),s.$render=function(){t.val(c())},e.$on("$destroy",function(){p&&p.destroy(),f=null,p=null})}}}]).provider("datepickerViews",function(){function e(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n}function t(e,t){return(e%t+t)%t}this.$get=["$dateFormatter","$dateParser","$sce",function(n,r,i){return function(o){var a=o.$scope,s=o.$options,u=s.lang,l=function(e,t){return n.formatDate(e,t,u)},c=r({format:s.dateFormat,lang:u,strict:s.strictFormat}),f=n.weekdaysShort(u),d=f.slice(s.startWeek).concat(f.slice(0,s.startWeek)),p=i.trustAsHtml('<th class="dow text-center">'+d.join('</th><th class="dow text-center">')+"</th>"),h=o.$date||(s.startDate?c.getDateForAttribute("startDate",s.startDate):new Date),g={year:h.getFullYear(),month:h.getMonth(),date:h.getDate()},m=[{format:s.dayFormat,split:7,steps:{month:1},update:function(e,t){!this.built||t||e.getFullYear()!==g.year||e.getMonth()!==g.month?(angular.extend(g,{year:o.$date.getFullYear(),month:o.$date.getMonth(),date:o.$date.getDate()}),o.$build()):e.getDate()===g.date&&1!==e.getDate()||(g.date=o.$date.getDate(),o.$updateSelected())},build:function(){var n=new Date(g.year,g.month,1),r=n.getTimezoneOffset(),i=new Date(+n-864e5*t(n.getDay()-s.startWeek,7)),u=i.getTimezoneOffset(),f=c.timezoneOffsetAdjust(new Date,s.timezone).toDateString();u!==r&&(i=new Date(+i+6e4*(u-r)));for(var d,h=[],m=0;42>m;m++)d=c.daylightSavingAdjust(new Date(i.getFullYear(),i.getMonth(),i.getDate()+m)),h.push({date:d,isToday:d.toDateString()===f,label:l(d,this.format),selected:o.$date&&this.isSelected(d),muted:d.getMonth()!==g.month,disabled:this.isDisabled(d)});a.title=l(n,s.monthTitleFormat),a.showLabels=!0,a.labels=p,a.rows=e(h,this.split),this.built=!0},isSelected:function(e){return o.$date&&e.getFullYear()===o.$date.getFullYear()&&e.getMonth()===o.$date.getMonth()&&e.getDate()===o.$date.getDate()},isDisabled:function(e){var t=e.getTime();if(t<s.minDate||t>s.maxDate)return!0;if(-1!==s.daysOfWeekDisabled.indexOf(e.getDay()))return!0;if(s.disabledDateRanges)for(var n=0;n<s.disabledDateRanges.length;n++)if(t>=s.disabledDateRanges[n].start&&t<=s.disabledDateRanges[n].end)return!0;return!1},onKeyDown:function(e){if(o.$date){var t,n=o.$date.getTime();37===e.keyCode?t=new Date(n-864e5):38===e.keyCode?t=new Date(n-6048e5):39===e.keyCode?t=new Date(n+864e5):40===e.keyCode&&(t=new Date(n+6048e5)),this.isDisabled(t)||o.select(t,!0)}}},{name:"month",format:s.monthFormat,split:4,steps:{year:1},update:function(e){this.built&&e.getFullYear()===g.year?e.getMonth()!==g.month&&(angular.extend(g,{month:o.$date.getMonth(),date:o.$date.getDate()}),o.$updateSelected()):(angular.extend(g,{year:o.$date.getFullYear(),month:o.$date.getMonth(),date:o.$date.getDate()}),o.$build())},build:function(){for(var t,n=[],r=0;12>r;r++)t=new Date(g.year,r,1),n.push({date:t,label:l(t,this.format),selected:o.$isSelected(t),disabled:this.isDisabled(t)});a.title=l(t,s.yearTitleFormat),a.showLabels=!1,a.rows=e(n,this.split),this.built=!0},isSelected:function(e){return o.$date&&e.getFullYear()===o.$date.getFullYear()&&e.getMonth()===o.$date.getMonth()},isDisabled:function(e){var t=+new Date(e.getFullYear(),e.getMonth()+1,0);return t<s.minDate||e.getTime()>s.maxDate},onKeyDown:function(e){if(o.$date){var t=o.$date.getMonth(),n=new Date(o.$date);37===e.keyCode?n.setMonth(t-1):38===e.keyCode?n.setMonth(t-4):39===e.keyCode?n.setMonth(t+1):40===e.keyCode&&n.setMonth(t+4),this.isDisabled(n)||o.select(n,!0)}}},{name:"year",format:s.yearFormat,split:4,steps:{year:12},update:function(e,t){!this.built||t||parseInt(e.getFullYear()/20,10)!==parseInt(g.year/20,10)?(angular.extend(g,{year:o.$date.getFullYear(),month:o.$date.getMonth(),date:o.$date.getDate()}),o.$build()):e.getFullYear()!==g.year&&(angular.extend(g,{year:o.$date.getFullYear(),month:o.$date.getMonth(),date:o.$date.getDate()}),o.$updateSelected())},build:function(){for(var t,n=g.year-g.year%(3*this.split),r=[],i=0;12>i;i++)t=new Date(n+i,0,1),r.push({date:t,label:l(t,this.format),selected:o.$isSelected(t),disabled:this.isDisabled(t)});a.title=r[0].label+"-"+r[r.length-1].label,a.showLabels=!1,a.rows=e(r,this.split),this.built=!0},isSelected:function(e){return o.$date&&e.getFullYear()===o.$date.getFullYear()},isDisabled:function(e){var t=+new Date(e.getFullYear()+1,0,0);return t<s.minDate||e.getTime()>s.maxDate},onKeyDown:function(e){if(o.$date){var t=o.$date.getFullYear(),n=new Date(o.$date);37===e.keyCode?n.setYear(t-1):38===e.keyCode?n.setYear(t-4):39===e.keyCode?n.setYear(t+1):40===e.keyCode&&n.setYear(t+4),this.isDisabled(n)||o.select(n,!0)}}}];return{views:s.minView?Array.prototype.slice.call(m,s.minView):m,viewDate:g}}}]}),angular.module("mgcrea.ngStrap.collapse",[]).provider("$collapse",function(){var e=this.defaults={animation:"am-collapse",disallowToggle:!1,activeClass:"in",startCollapsed:!1,allowMultiple:!1},t=this.controller=function(t,n,r){function i(e){for(var t=u.$targets.$active,n=0;n<t.length;n++)e<t[n]&&(t[n]=t[n]-1),t[n]===u.$targets.length&&(t[n]=u.$targets.length-1)}function o(e){var t=u.$targets.$active;return-1!==t.indexOf(e)}function a(e){var t=u.$targets.$active.indexOf(e);-1!==t&&u.$targets.$active.splice(t,1)}function s(e){u.$options.allowMultiple||u.$targets.$active.splice(0,1),-1===u.$targets.$active.indexOf(e)&&u.$targets.$active.push(e)}var u=this;u.$options=angular.copy(e),angular.forEach(["animation","disallowToggle","activeClass","startCollapsed","allowMultiple"],function(e){angular.isDefined(r[e])&&(u.$options[e]=r[e])});var l=/^(false|0|)$/i;angular.forEach(["disallowToggle","startCollapsed","allowMultiple"],function(e){angular.isDefined(r[e])&&l.test(r[e])&&(u.$options[e]=!1)}),u.$toggles=[],u.$targets=[],u.$viewChangeListeners=[],u.$registerToggle=function(e){u.$toggles.push(e)},u.$registerTarget=function(e){u.$targets.push(e)},u.$unregisterToggle=function(e){var t=u.$toggles.indexOf(e);u.$toggles.splice(t,1)},u.$unregisterTarget=function(e){var t=u.$targets.indexOf(e);u.$targets.splice(t,1),u.$options.allowMultiple&&a(e),i(t),u.$viewChangeListeners.forEach(function(e){e()})},u.$targets.$active=u.$options.startCollapsed?[]:[0],u.$setActive=t.$setActive=function(e){angular.isArray(e)?u.$targets.$active=e:!u.$options.disallowToggle&&o(e)?a(e):s(e),u.$viewChangeListeners.forEach(function(e){e()})},u.$activeIndexes=function(){return u.$options.allowMultiple?u.$targets.$active:1===u.$targets.$active.length?u.$targets.$active[0]:-1}};this.$get=function(){var n={};return n.defaults=e,n.controller=t,n}}).directive("bsCollapse",["$window","$animate","$collapse",function(e,t,n){return{require:["?ngModel","bsCollapse"],controller:["$scope","$element","$attrs",n.controller],link:function(e,t,n,r){var i=r[0],o=r[1];i&&(o.$viewChangeListeners.push(function(){i.$setViewValue(o.$activeIndexes())}),i.$formatters.push(function(e){if(angular.isArray(e))o.$setActive(e);else{var t=o.$activeIndexes();angular.isArray(t)?-1===t.indexOf(1*e)&&o.$setActive(1*e):t!==1*e&&o.$setActive(1*e)}return e}))}}}]).directive("bsCollapseToggle",function(){return{require:["^?ngModel","^bsCollapse"],link:function(e,t,n,r){var i=r[1];t.attr("data-toggle","collapse"),i.$registerToggle(t),e.$on("$destroy",function(){i.$unregisterToggle(t)}),t.on("click",function(){if(!n.disabled){var r=n.bsCollapseToggle&&"bs-collapse-toggle"!==n.bsCollapseToggle?n.bsCollapseToggle:i.$toggles.indexOf(t);i.$setActive(1*r),e.$apply()}})}}}).directive("bsCollapseTarget",["$animate",function(e){return{require:["^?ngModel","^bsCollapse"],link:function(t,n,r,i){function o(){var t=a.$targets.indexOf(n),r=a.$activeIndexes(),i="removeClass";angular.isArray(r)?-1!==r.indexOf(t)&&(i="addClass"):t===r&&(i="addClass"),e[i](n,a.$options.activeClass)}var a=i[1];n.addClass("collapse"),a.$options.animation&&n.addClass(a.$options.animation),a.$registerTarget(n),t.$on("$destroy",function(){a.$unregisterTarget(n)}),a.$viewChangeListeners.push(function(){o()}),o()}}}]),angular.module("mgcrea.ngStrap.button",[]).provider("$button",function(){var e=this.defaults={activeClass:"active",toggleEvent:"click"};this.$get=function(){return{defaults:e}}}).directive("bsCheckboxGroup",function(){return{restrict:"A",require:"ngModel",compile:function(e,t){e.attr("data-toggle","buttons"),e.removeAttr("ng-model");var n=e[0].querySelectorAll('input[type="checkbox"]');angular.forEach(n,function(e){var n=angular.element(e);n.attr("bs-checkbox",""),n.attr("ng-model",t.ngModel+"."+n.attr("value"))})}}}).directive("bsCheckbox",["$button","$$rAF",function(e,t){var n=e.defaults,r=/^(true|false|\d+)$/;return{restrict:"A",require:"ngModel",link:function(e,i,o,a){var s=n,u="INPUT"===i[0].nodeName,l=u?i.parent():i,c=angular.isDefined(o.trueValue)?o.trueValue:!0;r.test(o.trueValue)&&(c=e.$eval(o.trueValue));var f=angular.isDefined(o.falseValue)?o.falseValue:!1;r.test(o.falseValue)&&(f=e.$eval(o.falseValue));var d="boolean"!=typeof c||"boolean"!=typeof f;d&&(a.$parsers.push(function(e){return e?c:f}),a.$formatters.push(function(e){return angular.equals(e,c)}),e.$watch(o.ngModel,function(){a.$render()})),a.$render=function(){var e=angular.equals(a.$modelValue,c);t(function(){u&&(i[0].checked=e),l.toggleClass(s.activeClass,e)})},i.bind(s.toggleEvent,function(){e.$apply(function(){u||a.$setViewValue(!l.hasClass("active")),d||a.$render()})})}}}]).directive("bsRadioGroup",function(){return{restrict:"A",require:"ngModel",compile:function(e,t){e.attr("data-toggle","buttons"),e.removeAttr("ng-model");var n=e[0].querySelectorAll('input[type="radio"]');angular.forEach(n,function(e){angular.element(e).attr("bs-radio",""),angular.element(e).attr("ng-model",t.ngModel)})}}}).directive("bsRadio",["$button","$$rAF",function(e,t){var n=e.defaults,r=/^(true|false|\d+)$/;return{restrict:"A",require:"ngModel",link:function(e,i,o,a){var s,u=n,l="INPUT"===i[0].nodeName,c=l?i.parent():i;o.$observe("value",function(t){s="boolean"!=typeof t&&r.test(t)?e.$eval(t):t,a.$render()}),a.$render=function(){var e=angular.equals(a.$modelValue,s);t(function(){l&&(i[0].checked=e),c.toggleClass(u.activeClass,e)})},i.bind(u.toggleEvent,function(){e.$apply(function(){a.$setViewValue(s),a.$render()})})}}}]),angular.module("mgcrea.ngStrap.alert",["mgcrea.ngStrap.modal"]).provider("$alert",function(){var e=this.defaults={animation:"am-fade",prefixClass:"alert",prefixEvent:"alert",placement:null,templateUrl:"alert/alert.tpl.html",container:!1,element:null,backdrop:!1,keyboard:!0,show:!0,duration:!1,type:!1,dismissable:!0};this.$get=["$modal","$timeout",function(t,n){function r(r){var i={},o=angular.extend({},e,r);i=t(o),i.$scope.dismissable=!!o.dismissable,o.type&&(i.$scope.type=o.type);var a=i.show;return o.duration&&(i.show=function(){a(),n(function(){i.hide()},1e3*o.duration)}),i}return r}]}).directive("bsAlert",["$window","$sce","$alert",function(e,t,n){return{restrict:"EAC",scope:!0,link:function(e,r,i){var o={scope:e,element:r,show:!1};angular.forEach(["template","templateUrl","controller","controllerAs","placement","keyboard","html","container","animation","duration","dismissable"],function(e){angular.isDefined(i[e])&&(o[e]=i[e])});var a=/^(false|0|)$/i;angular.forEach(["keyboard","html","container","dismissable"],function(e){angular.isDefined(i[e])&&a.test(i[e])&&(o[e]=!1)}),e.hasOwnProperty("title")||(e.title=""),angular.forEach(["title","content","type"],function(n){i[n]&&i.$observe(n,function(r){e[n]=t.trustAsHtml(r)})}),i.bsAlert&&e.$watch(i.bsAlert,function(t){angular.isObject(t)?angular.extend(e,t):e.content=t},!0);var s=n(o);r.on(i.trigger||"click",s.toggle),e.$on("$destroy",function(){s&&s.destroy(),o=null,s=null})}}}]),angular.module("mgcrea.ngStrap.aside",["mgcrea.ngStrap.modal"]).provider("$aside",function(){var e=this.defaults={animation:"am-fade-and-slide-right",prefixClass:"aside",prefixEvent:"aside",placement:"right",templateUrl:"aside/aside.tpl.html",contentTemplate:!1,container:!1,element:null,backdrop:!0,keyboard:!0,html:!1,show:!0};this.$get=["$modal",function(t){function n(n){var r={},i=angular.extend({},e,n);return r=t(i)}return n}]}).directive("bsAside",["$window","$sce","$aside",function(e,t,n){return{restrict:"EAC",scope:!0,link:function(e,r,i){var o={scope:e,element:r,show:!1};angular.forEach(["template","templateUrl","controller","controllerAs","contentTemplate","placement","backdrop","keyboard","html","container","animation"],function(e){angular.isDefined(i[e])&&(o[e]=i[e])});var a=/^(false|0|)$/i;angular.forEach(["backdrop","keyboard","html","container"],function(e){angular.isDefined(i[e])&&a.test(i[e])&&(o[e]=!1)}),angular.forEach(["title","content"],function(n){i[n]&&i.$observe(n,function(r){e[n]=t.trustAsHtml(r)})}),i.bsAside&&e.$watch(i.bsAside,function(t){angular.isObject(t)?angular.extend(e,t):e.content=t},!0);var s=n(o);r.on(i.trigger||"click",s.toggle),e.$on("$destroy",function(){s&&s.destroy(),o=null,s=null})}}}]),angular.module("mgcrea.ngStrap.affix",["mgcrea.ngStrap.helpers.dimensions","mgcrea.ngStrap.helpers.debounce"]).provider("$affix",function(){var e=this.defaults={offsetTop:"auto",inlineStyles:!0};this.$get=["$window","debounce","dimensions",function(t,n,r){function i(i,s){function u(e,t,n){var r=l(),i=c();return v>=r?"top":null!==e&&r+e<=t.top?"middle":null!==y&&t.top+n+m>=i-y?"bottom":"middle"}function l(){return p[0]===t?t.pageYOffset:p[0].scrollTop}function c(){return p[0]===t?t.document.body.scrollHeight:p[0].scrollHeight}var f={},d=angular.extend({},e,s),p=d.target,h="affix affix-top affix-bottom",g=!1,m=0,$=0,v=0,y=0,b=null,w=null,x=i.parent();if(d.offsetParent)if(d.offsetParent.match(/^\d+$/))for(var S=0;S<1*d.offsetParent-1;S++)x=x.parent();else x=angular.element(d.offsetParent);return f.init=function(){this.$parseOffsets(),$=r.offset(i[0]).top+m,g=!i[0].style.width,p.on("scroll",this.checkPosition),p.on("click",this.checkPositionWithEventLoop),a.on("resize",this.$debouncedOnResize),this.checkPosition(),this.checkPositionWithEventLoop()},f.destroy=function(){p.off("scroll",this.checkPosition),p.off("click",this.checkPositionWithEventLoop),a.off("resize",this.$debouncedOnResize)},f.checkPositionWithEventLoop=function(){setTimeout(f.checkPosition,1)},f.checkPosition=function(){var e=l(),t=r.offset(i[0]),n=r.height(i[0]),a=u(w,t,n);b!==a&&(b=a,"top"===a?(w=null,g&&i.css("width",""),d.inlineStyles&&(i.css("position",d.offsetParent?"":"relative"),i.css("top",""))):"bottom"===a?(w=d.offsetUnpin?-(1*d.offsetUnpin):t.top-e,g&&i.css("width",""),d.inlineStyles&&(i.css("position",d.offsetParent?"":"relative"),i.css("top",d.offsetParent?"":o[0].offsetHeight-y-n-$+"px"))):(w=null,g&&i.css("width",i[0].offsetWidth+"px"),d.inlineStyles&&(i.css("position","fixed"),i.css("top",m+"px"))),i.removeClass(h).addClass("affix"+("middle"!==a?"-"+a:"")))},f.$onResize=function(){f.$parseOffsets(),f.checkPosition()},f.$debouncedOnResize=n(f.$onResize,50),f.$parseOffsets=function(){var e=i.css("position");d.inlineStyles&&i.css("position",d.offsetParent?"":"relative"),d.offsetTop&&("auto"===d.offsetTop&&(d.offsetTop="+0"),d.offsetTop.match(/^[-+]\d+$/)?(m=1*-d.offsetTop,v=d.offsetParent?r.offset(x[0]).top+1*d.offsetTop:r.offset(i[0]).top-r.css(i[0],"marginTop",!0)+1*d.offsetTop):v=1*d.offsetTop),d.offsetBottom&&(y=d.offsetParent&&d.offsetBottom.match(/^[-+]\d+$/)?c()-(r.offset(x[0]).top+r.height(x[0]))+1*d.offsetBottom+1:1*d.offsetBottom),d.inlineStyles&&i.css("position",e)},f.init(),f}var o=angular.element(t.document.body),a=angular.element(t);return i}]}).directive("bsAffix",["$affix","$window",function(e,t){return{restrict:"EAC",require:"^?bsAffixTarget",link:function(n,r,i,o){var a={scope:n,target:o?o.$element:angular.element(t)};angular.forEach(["offsetTop","offsetBottom","offsetParent","offsetUnpin","inlineStyles"],function(e){if(angular.isDefined(i[e])){var t=i[e];/true/i.test(t)&&(t=!0),/false/i.test(t)&&(t=!1),a[e]=t}});var s=e(r,a);n.$on("$destroy",function(){s&&s.destroy(),a=null,s=null})}}}]).directive("bsAffixTarget",function(){return{controller:["$element",function(e){this.$element=e}]}}),angular.module("mgcrea.ngStrap",["mgcrea.ngStrap.modal","mgcrea.ngStrap.aside","mgcrea.ngStrap.alert","mgcrea.ngStrap.button","mgcrea.ngStrap.select","mgcrea.ngStrap.datepicker","mgcrea.ngStrap.timepicker","mgcrea.ngStrap.navbar","mgcrea.ngStrap.tooltip","mgcrea.ngStrap.popover","mgcrea.ngStrap.dropdown","mgcrea.ngStrap.typeahead","mgcrea.ngStrap.scrollspy","mgcrea.ngStrap.affix","mgcrea.ngStrap.tab","mgcrea.ngStrap.collapse"])}(window,document),function(){"use strict";angular.module("mgcrea.ngStrap.aside").run(["$templateCache",function(e){e.put("aside/aside.tpl.html",'<div class="aside" tabindex="-1" role="dialog"><div class="aside-dialog"><div class="aside-content"><div class="aside-header" ng-show="title"><button type="button" class="close" ng-click="$hide()">×</button><h4 class="aside-title" ng-bind="title"></h4></div><div class="aside-body" ng-bind="content"></div><div class="aside-footer"><button type="button" class="btn btn-default" ng-click="$hide()">Close</button></div></div></div></div>')}]),angular.module("mgcrea.ngStrap.alert").run(["$templateCache",function(e){e.put("alert/alert.tpl.html",'<div class="alert" ng-class="[type ? \'alert-\' + type : null]"><button type="button" class="close" ng-if="dismissable" ng-click="$hide()">×</button> <strong ng-bind="title"></strong> <span ng-bind-html="content"></span></div>')}]),angular.module("mgcrea.ngStrap.datepicker").run(["$templateCache",function(e){e.put("datepicker/datepicker.tpl.html",'<div class="dropdown-menu datepicker" ng-class="\'datepicker-mode-\' + $mode" style="max-width: 320px"><table style="table-layout: fixed; height: 100%; width: 100%"><thead><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$selectPane(-1)"><i class="{{$iconLeft}}"></i></button></th><th colspan="{{ rows[0].length - 2 }}"><button tabindex="-1" type="button" class="btn btn-default btn-block text-strong" ng-click="$toggleMode()"><strong style="text-transform: capitalize" ng-bind="title"></strong></button></th><th><button tabindex="-1" type="button" class="btn btn-default pull-right" ng-click="$selectPane(+1)"><i class="{{$iconRight}}"></i></button></th></tr><tr ng-if="showLabels" ng-bind-html="labels"></tr></thead><tbody><tr ng-repeat="(i, row) in rows" height="{{ 100 / rows.length }}%"><td class="text-center" ng-repeat="(j, el) in row"><button tabindex="-1" type="button" class="btn btn-default" style="width: 100%" ng-class="{\'btn-primary\': el.selected, \'btn-info btn-today\': el.isToday && !el.selected}" ng-click="$select(el.date)" ng-disabled="el.disabled"><span ng-class="{\'text-muted\': el.muted}" ng-bind="el.label"></span></button></td></tr></tbody></table></div>')}]),angular.module("mgcrea.ngStrap.modal").run(["$templateCache",function(e){e.put("modal/modal.tpl.html",'<div class="modal" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-header" ng-show="title"><button type="button" class="close" aria-label="Close" ng-click="$hide()"><span aria-hidden="true">×</span></button><h4 class="modal-title" ng-bind="title"></h4></div><div class="modal-body" ng-bind="content"></div><div class="modal-footer"><button type="button" class="btn btn-default" ng-click="$hide()">Close</button></div></div></div></div>')}]),angular.module("mgcrea.ngStrap.dropdown").run(["$templateCache",function(e){e.put("dropdown/dropdown.tpl.html",'<ul tabindex="-1" class="dropdown-menu" role="menu" ng-show="content && content.length"><li role="presentation" ng-class="{divider: item.divider, active: item.active}" ng-repeat="item in content"><a role="menuitem" tabindex="-1" ng-href="{{item.href}}" ng-if="!item.divider && item.href" target="{{item.target || \'\'}}" ng-bind="item.text"></a> <a role="menuitem" tabindex="-1" href="javascript:void(0)" ng-if="!item.divider && item.click" ng-click="$eval(item.click);$hide()" ng-bind="item.text"></a></li></ul>')}]),angular.module("mgcrea.ngStrap.popover").run(["$templateCache",function(e){e.put("popover/popover.tpl.html",'<div class="popover" tabindex="-1"><div class="arrow"></div><h3 class="popover-title" ng-bind="title" ng-show="title"></h3><div class="popover-content" ng-bind="content"></div></div>')}]),angular.module("mgcrea.ngStrap.select").run(["$templateCache",function(e){e.put("select/select.tpl.html",'<ul tabindex="-1" class="select dropdown-menu" ng-show="$isVisible()" role="select"><li ng-if="$showAllNoneButtons"><div class="btn-group" style="margin-bottom: 5px; margin-left: 5px"><button type="button" class="btn btn-default btn-xs" ng-click="$selectAll()">{{$allText}}</button> <button type="button" class="btn btn-default btn-xs" ng-click="$selectNone()">{{$noneText}}</button></div></li><li role="presentation" ng-repeat="match in $matches" ng-class="{active: $isActive($index)}"><a style="cursor: default" role="menuitem" tabindex="-1" ng-click="$select($index, $event)"><i class="{{$iconCheckmark}} pull-right" ng-if="$isMultiple && $isActive($index)"></i> <span ng-bind="match.label"></span></a></li></ul>')}]),angular.module("mgcrea.ngStrap.tab").run(["$templateCache",function(e){e.put("tab/tab.tpl.html",'<ul class="nav" ng-class="$navClass" role="tablist"><li role="presentation" ng-repeat="$pane in $panes track by $index" ng-class="[ $isActive($pane, $index) ? $activeClass : \'\', $pane.disabled ? \'disabled\' : \'\' ]"><a role="tab" data-toggle="tab" ng-click="!$pane.disabled && $setActive($pane.name || $index)" data-index="{{ $index }}" ng-bind-html="$pane.title" aria-controls="$pane.title"></a></li></ul><div ng-transclude class="tab-content"></div>')}]),angular.module("mgcrea.ngStrap.timepicker").run(["$templateCache",function(e){e.put("timepicker/timepicker.tpl.html",'<div class="dropdown-menu timepicker" style="min-width: 0px;width: auto"><table height="100%"><thead><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 0)"><i class="{{ $iconUp }}"></i></button></th><th> </th><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 1)"><i class="{{ $iconUp }}"></i></button></th><th ng-if="showSeconds"> </th><th ng-if="showSeconds"><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 2)"><i class="{{ $iconUp }}"></i></button></th></tr></thead><tbody><tr ng-repeat="(i, row) in rows"><td class="text-center"><button tabindex="-1" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[0].selected}" ng-click="$select(row[0].date, 0)" ng-disabled="row[0].disabled"><span ng-class="{\'text-muted\': row[0].muted}" ng-bind="row[0].label"></span></button></td><td><span ng-bind="i == midIndex ? timeSeparator : \' \'"></span></td><td class="text-center"><button tabindex="-1" ng-if="row[1].date" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[1].selected}" ng-click="$select(row[1].date, 1)" ng-disabled="row[1].disabled"><span ng-class="{\'text-muted\': row[1].muted}" ng-bind="row[1].label"></span></button></td><td ng-if="showSeconds"><span ng-bind="i == midIndex ? timeSeparator : \' \'"></span></td><td ng-if="showSeconds" class="text-center"><button tabindex="-1" ng-if="row[2].date" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[2].selected}" ng-click="$select(row[2].date, 2)" ng-disabled="row[2].disabled"><span ng-class="{\'text-muted\': row[2].muted}" ng-bind="row[2].label"></span></button></td><td ng-if="showAM"> </td><td ng-if="showAM"><button tabindex="-1" ng-show="i == midIndex - !isAM * 1" style="width: 100%" type="button" ng-class="{\'btn-primary\': !!isAM}" class="btn btn-default" ng-click="$switchMeridian()" ng-disabled="el.disabled">AM</button> <button tabindex="-1" ng-show="i == midIndex + 1 - !isAM * 1" style="width: 100%" type="button" ng-class="{\'btn-primary\': !isAM}" class="btn btn-default" ng-click="$switchMeridian()" ng-disabled="el.disabled">PM</button></td></tr></tbody><tfoot><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 0)"><i class="{{ $iconDown }}"></i></button></th><th> </th><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 1)"><i class="{{ $iconDown }}"></i></button></th><th ng-if="showSeconds"> </th><th ng-if="showSeconds"><button ng-if="showSeconds" tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 2)"><i class="{{ $iconDown }}"></i></button></th></tr></tfoot></table></div>');
-}]),angular.module("mgcrea.ngStrap.typeahead").run(["$templateCache",function(e){e.put("typeahead/typeahead.tpl.html",'<ul tabindex="-1" class="typeahead dropdown-menu" ng-show="$isVisible()" role="select"><li role="presentation" ng-repeat="match in $matches" ng-class="{active: $index == $activeIndex}"><a role="menuitem" tabindex="-1" ng-click="$select($index, $event)" ng-bind="match.label"></a></li></ul>')}]),angular.module("mgcrea.ngStrap.tooltip").run(["$templateCache",function(e){e.put("tooltip/tooltip.tpl.html",'<div class="tooltip in" ng-show="title"><div class="tooltip-arrow"></div><div class="tooltip-inner" ng-bind="title"></div></div>')}])}(window,document),!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.0.4",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){a&&r._chunkSize&&!r._finished&&r._file?(i({loaded:r._end,total:r._file&&r._file.size,config:r,type:"progress"}),o.upload(r,!0)):(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,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=function(t){return function(){t&&t.apply(c,arguments),e.apply(c,arguments)}}(r.xhrFn),c},o.promisesCount++,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)}function u(){e._chunkSize=o.translateScalars(e.resumeChunkSize),e._chunkSize=e._chunkSize?parseInt(e._chunkSize.toString()):null,e.headers=e.headers||{},e.headers["Content-Type"]=void 0,e.transformRequest=e.transformRequest?angular.isArray(e.transformRequest)?e.transformRequest:[e.transformRequest]:[],e.transformRequest.push(function(t){var n,r=new window.FormData;t=t||e.fields||{},e.file&&(t.file=e.file);for(n in t)if(t.hasOwnProperty(n)){var i=t[n];e.formDataAppender?e.formDataAppender(r,n,i):s(r,i,n)}return r})}return t||(e=i(e)),e._isDigested||(e._isDigested=!0,u()),r(e)},this.http=function(t){return t=i(t),t.transformRequest=t.transformRequest||function(t){return window.ArrayBuffer&&t instanceof window.ArrayBuffer||t instanceof window.Blob?t:e.defaults.transformRequest[0].apply(this,arguments)},t._chunkSize=o.translateScalars(t.resumeChunkSize),t._chunkSize=t._chunkSize?parseInt(t._chunkSize.toString()):null,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),n=e.headers("content-type")||"image/WebP",i=new window.Blob([t],{type:n});r.resolve(i)},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){var i=u.attrGetter("ngfResize",t,n);if(!i||!u.isResizeSupported()||!e.length)return u.emptyPromise();if(!(i instanceof Function))return s(i,e,t,n);var o=r.defer();i(e).then(function(r){s(r,e,t,n).then(function(e){o.resolve(e)},function(e){o.reject(e)})},function(e){o.reject(e)})}function s(e,t,n,i){function o(r,o){if(0===r.type.indexOf("image")){if(e.pattern&&!u.validatePattern(r,e.pattern))return;var s=u.resize(r,e.width,e.height,e.quality,e.type,e.ratio,e.centerCrop,function(e,t){return u.attrGetter("ngfResizeIf",n,i,{$width:e,$height:t,$file:r})},e.restoreExif!==!1);a.push(s),s.then(function(e){t.splice(o,1,e)},function(e){r.$error="resize",r.$errorParam=(e?(e.message?e.message:e)+": ":"")+(r&&r.name)})}}for(var a=[u.emptyPromise()],s=0;s<t.length;s++)o(t[s],s);return r.all(a)}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(a){if(t.search(/min|max|pattern/i))return o;throw a}},u.shouldUpdateOn=function(e,t,n){var r=u.attrGetter("ngModelOptions",t,n);return r&&r.updateOn?r.updateOn.split(" ").indexOf(e)>-1:!0},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 p=o&&o.length?o[0]:null,h=a&&a.length?a[0]:null;n&&(u.applyModelValidation(n,o),n.$setViewValue(d?p:o)),s&&e(s)(i,{$files:o,$file:p,$newFiles:l,$duplicateFiles:f,$invalidFiles:a,$invalidFile:h,$event:c});var g=u.attrGetter("ngfModelInvalid",r);g&&t(function(){e(g).assign(i,d?h:a)}),t(function(){})}function p(){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<v.length;n++)if(e(t,v[n]))return!0;for(n=0;n<y.length;n++)if(e(t,y[n]))return!0;return!1}if(l){$=[],b=[];for(var n=0;n<l.length;n++)t(l[n])?b.push(l[n]):$.push(l[n])}}function h(e){return angular.isArray(e)?e:[e]}function g(){x=[],w=[],angular.forEach($,function(e){e.$error?w.push(e):x.push(e)})}function m(){function e(){t(function(){d(S?v.concat(x):x,S?y.concat(w):w,l,b,C)},_&&_.debounce?_.debounce.change||_.debounce:0)}a(k?$:x,r,i).then(function(){k?u.validate($,v.length,n,r,i).then(function(){g(),e()}):e()},function(e){throw"Could not resize files "+e})}var $,v,y,b=[],w=[],x=[];v=r.$$ngfPrevValidFiles||[],y=r.$$ngfPrevInvalidFiles||[],n&&n.$modelValue&&(v=h(n.$modelValue));var S=u.attrGetter("ngfKeep",r,i);$=(l||[]).slice(0),("distinct"===S||u.attrGetter("ngfKeepDistinct",r,i)===!0)&&p(r,i);var C=!S&&!u.attrGetter("ngfMultiple",r,i)&&!u.attrGetter("multiple",r);if(!S||$.length){u.attrGetter("ngfBeforeModelChange",r,i,{$files:l,$file:l&&l.length?l[0]:null,$newFiles:$,$duplicateFiles:b,$event:c});var k=u.attrGetter("ngfValidateAfterResize",r,i),_=u.attrGetter("ngModelOptions",r,i);u.validate($,v.length,n,r,i).then(function(){f?d($,[],l,b,C):(_&&_.allowInvalid||k?x=$:g(),u.attrGetter("ngfFixOrientation",r,i)&&u.isExifSupported()?o(x,r,i).then(function(){m()}):m())})}},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 y("ngfChange")||y("ngfSelect")}function d(t){if(l.shouldUpdateOn("change",n,e)){for(var i=t.__files_||t.target&&t.target.files,o=[],a=0;a<i.length;a++)o.push(i[a]);l.updateModel(r,n,e,f(),o.length?o:null,t)}}function p(e){if(t!==e)for(var n=0;n<t[0].attributes.length;n++){var r=t[0].attributes[n];"type"!==r.name&&"class"!==r.name&&"style"!==r.name&&((null==r.value||""===r.value)&&("required"===r.name&&(r.value="required"),"multiple"===r.name&&(r.value="multiple")),e.attr(r.name,"id"===r.name?"ngf-"+r.value:r.value))}}function h(){if(c())return t;var e=angular.element('<input type="file">');p(e);var n=angular.element("<label>upload</label>");return n.css("visibility","hidden").css("position","absolute").css("overflow","hidden").css("width","0px").css("height","0px").css("border","none").css("margin","0px").css("padding","0px").attr("tabindex","-1"),a.push({el:t,ref:n}),document.body.appendChild(n.append(e)[0]),e}function g(n){if(t.attr("disabled"))return!1;if(!y("ngfSelectDisabled",e)){var r=m(n);if(null!=r)return r;$(n);try{c()||document.body.contains(x[0])||(a.push({el:t,ref:x.parent()}),document.body.appendChild(x.parent()[0]),x.bind("change",d))}catch(o){}return i(navigator.userAgent)?setTimeout(function(){x[0].click()},0):x[0].click(),!1}}function m(e){var t=e.changedTouches||e.originalEvent&&e.originalEvent.changedTouches;if("touchstart"===e.type)return w=t?t[0].clientY:0,!0;if(e.stopPropagation(),e.preventDefault(),"touchend"===e.type){var n=t?t[0].clientY:0;if(Math.abs(n-w)>20)return!1}}function $(t){l.shouldUpdateOn("click",n,e)&&x.val()&&(x.val(null),l.updateModel(r,n,e,f(),null,t,!0))}function v(e){if(x&&!x.attr("__ngf_ie10_Fix_")){if(!x[0].parentNode)return void(x=null);e.preventDefault(),e.stopPropagation(),x.unbind("click");var t=x.clone();return x.replaceWith(t),x=t,x.attr("__ngf_ie10_Fix_","true"),x.bind("change",d),x.bind("click",v),x[0].click(),!1}x.removeAttr("__ngf_ie10_Fix_")}var y=function(e,t){return l.attrGetter(e,n,t)};l.registerModelChangeValidator(r,n,e);var b=[];b.push(e.$watch(y("ngfMultiple"),function(){x.attr("multiple",y("ngfMultiple",e))})),b.push(e.$watch(y("ngfCapture"),function(){x.attr("capture",y("ngfCapture",e))})),b.push(e.$watch(y("ngfAccept"),function(){x.attr("accept",y("ngfAccept",e))})),n.$observe("accept",function(){x.attr("accept",y("accept"))}),b.push(function(){n.$$observers&&delete n.$$observers.accept});var w=0,x=t;c()||(x=h()),x.bind("change",d),c()?t.bind("click",$):t.bind("click touchstart touchend",g),-1!==navigator.appVersion.indexOf("MSIE 10")&&x.bind("click",v),r&&r.$formatters.push(function(e){return(null==e||0===e.length)&&x.val()&&x.val(null),e}),e.$on("$destroy",function(){c()||x.parent().remove(),angular.forEach(b,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,x,d)}var a=[];return{restrict:"AEC",require:"?ngModel",link:function(i,a,s,u){o(i,a,s,u,e,t,n,r)}}}]),function(){function e(e){return"img"===e.tagName.toLowerCase()?"image":"audio"===e.tagName.toLowerCase()?"audio":"video"===e.tagName.toLowerCase()?"video":/./}function t(t,n,r,i,o,a,s,u){function l(e){var a=t.attrGetter("ngfNoObjectUrl",o,r);t.dataUrl(e,a)["finally"](function(){n(function(){var t=(a?e.$ngfDataUrl:e.$ngfBlobUrl)||e.$ngfDataUrl;u?i.css("background-image","url('"+(t||"")+"')"):i.attr("src",t),t?i.removeClass("ng-hide"):i.addClass("ng-hide")})})}n(function(){var n=r.$watch(o[a],function(n){var r=s;if("ngfThumbnail"===a&&(r||(r={width:i[0].clientWidth,height:i[0].clientHeight}),0===r.width&&window.getComputedStyle)){var o=getComputedStyle(i[0]);r={width:parseInt(o.width.slice(0,-2)),height:parseInt(o.height.slice(0,-2))}}return angular.isString(n)?(i.removeClass("ng-hide"),u?i.css("background-image","url('"+n+"')"):i.attr("src",n)):void(!n||!n.type||0!==n.type.search(e(i[0]))||u&&0!==n.type.indexOf("image")?i.addClass("ng-hide"):r&&t.isResizeSupported()?t.resize(n,r.width,r.height,r.quality).then(function(e){l(e)},function(e){throw e}):l(n))});r.$on("$destroy",function(){n()})})}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++,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(s){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 u=new FileReader;u.onload=function(n){t(function(){e.$ngfDataUrl=n.target.result,a.resolve(n.target.result,e),t(function(){delete e.$ngfDataUrl},1e3)})},u.onerror=function(){t(function(){e.$ngfDataUrl="",a.reject()})},u.readAsDataURL(e)}}else t(function(){e[i?"$ngfDataUrl":"$ngfBlobUrl"]="",a.reject()})}),o=i?e.$$ngfDataUrlPromise=a.promise:e.$$ngfBlobUrlPromise=a.promise,o["finally"](function(){delete e[i?"$$ngfDataUrlPromise":"$$ngfBlobUrlPromise"]}),o},r}]),ngFileUpload.directive("ngfSrc",["Upload","$timeout",function(e,n){return{restrict:"AE",link:function(r,i,o){t(e,n,r,i,o,"ngfSrc",e.attrGetter("ngfResize",o,r),!1)}}}]),ngFileUpload.directive("ngfBackground",["Upload","$timeout",function(e,n){return{restrict:"AE",link:function(r,i,o){t(e,n,r,i,o,"ngfBackground",e.attrGetter("ngfResize",o,r),!0)}}}]),ngFileUpload.directive("ngfThumbnail",["Upload","$timeout",function(e,n){return{restrict:"AE",link:function(r,i,o){var a=e.attrGetter("ngfSize",o,r);t(e,n,r,i,o,"ngfThumbnail",a,e.attrGetter("ngfAsBackground",o,r))}}}]),ngFileUpload.config(["$compileProvider",function(e){e.imgSrcSanitizationWhitelist&&e.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|local|file|data|blob):/),e.aHrefSanitizationWhitelist&&e.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|local|file|data|blob):/)}]),ngFileUpload.filter("ngfDataUrl",["UploadDataUrl","$sce",function(e,t){return function(n,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){function r(e){var t="",n=[];if(e.length>2&&"/"===e[0]&&"/"===e[e.length-1])t=e.substring(1,e.length-1);else{var i=e.split(",");if(i.length>1)for(var o=0;o<i.length;o++){var a=r(i[o]);a.regexp?(t+="("+a.regexp+")",o<i.length-1&&(t+="|")):n=n.concat(a.excludes)}else 0===e.indexOf("!")?n.push("^((?!"+r(e.substring(1)).regexp+").)*$"):(0===e.indexOf(".")&&(e="*"+e),t="^"+e.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")+"$",t=t.replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:t,excludes:n}}function i(e,t){null==t||e.$dirty||(e.$setDirty?e.$setDirty():e.$dirty=!0)}var o=e;return o.validatePattern=function(e,t){if(!t)return!0;var n=r(t),i=!0;if(n.regexp&&n.regexp.length){var o=new RegExp(n.regexp,"i");i=null!=e.type&&o.test(e.type)||null!=e.name&&o.test(e.name)}for(var a=n.excludes.length;a--;){var s=new RegExp(n.excludes[a],"i");i=i&&(null==e.type||s.test(e.type))&&(null==e.name||s.test(e.name))}return i},o.ratioToFloat=function(e){var t=e.toString(),n=t.search(/[x:]/i);return t=n>-1?parseFloat(t.substring(0,n))/parseFloat(t.substring(n+1)):parseFloat(t)},o.registerModelChangeValidator=function(e,t,n){e&&e.$formatters.push(function(r){e.$dirty&&(r&&!angular.isArray(r)&&(r=[r]),o.validate(r,0,e,t,n).then(function(){o.applyModelValidation(e,r)}))})},o.applyModelValidation=function(e,t){i(e,t),angular.forEach(e.$ngfValidations,function(t){e.$setValidity(t.name,t.valid)})},o.getValidationAttr=function(e,t,n,r,i){var a="ngf"+n[0].toUpperCase()+n.substr(1),s=o.attrGetter(a,e,t,{$file:i});if(null==s&&(s=o.attrGetter("ngfValidate",e,t,{$file:i}))){var u=(r||n).split(".");s=s[u[0]],u.length>1&&(s=s&&s[u[1]])}return s},o.validate=function(e,n,r,i,a){function s(t,n,s){if(e){for(var u=e.length,l=null;u--;){var c=e[u];if(c){var f=o.getValidationAttr(i,a,t,n,c);null!=f&&(s(c,f,u)||(c.$error=t,(c.$errorMessages=c.$errorMessages||{})[t]=!0,c.$errorParam=f,e.splice(u,1),l=!1))}}null!==l&&r.$ngfValidations.push({name:t,valid:l})}}function u(n,s,u,c,f){function d(e,t,r){null!=r?c(t,r).then(function(i){f(i,r)?e.resolve():(t.$error=n,(t.$errorMessages=t.$errorMessages||{})[n]=!0,t.$errorParam=r,e.reject())},function(){l("ngfValidateForce",{$file:t})?(t.$error=n,(t.$errorMessages=t.$errorMessages||{})[n]=!0,t.$errorParam=r,e.reject()):e.resolve()}):e.resolve()}var p=[o.emptyPromise()];return e?(e=void 0===e.length?[e]:e,angular.forEach(e,function(e){var r=t.defer();return p.push(r.promise),!u||null!=e.type&&0===e.type.search(u)?void("dimensions"===n&&null!=o.attrGetter("ngfDimensions",i)?o.imageDimensions(e).then(function(t){d(r,e,l("ngfDimensions",{$file:e,$width:t.width,$height:t.height}))},function(){r.reject()}):"duration"===n&&null!=o.attrGetter("ngfDuration",i)?o.mediaDuration(e).then(function(t){d(r,e,l("ngfDuration",{$file:e,$duration:t}))},function(){r.reject()}):d(r,e,o.getValidationAttr(i,a,n,s,e))):void r.resolve()}),t.all(p).then(function(){r.$ngfValidations.push({name:n,valid:!0})},function(){r.$ngfValidations.push({name:n,valid:!1})})):void 0}r=r||{},r.$ngfValidations=r.$ngfValidations||[],angular.forEach(r.$ngfValidations,function(e){e.valid=!0});var l=function(e,t){return o.attrGetter(e,i,a,t)};if(null==e||0===e.length)return o.emptyPromise(r);e=void 0===e.length?[e]:e.slice(0),s("maxFiles",null,function(e,t,r){return t>n+r}),s("pattern",null,o.validatePattern),s("minSize","size.min",function(e,t){return e.size+.1>=o.translateScalars(t)}),s("maxSize","size.max",function(e,t){return e.size-.1<=o.translateScalars(t)});var c=0;if(s("maxTotalSize",null,function(t,n){return c+=t.size,c>o.translateScalars(n)?(e.splice(0,e.length),!1):!0}),s("validateFn",null,function(e,t){return t===!0||null===t||""===t}),!e.length)return o.emptyPromise(r,r.$ngfValidations);var f=t.defer(),d=[];return d.push(o.happyPromise(u("maxHeight","height.max",/image/,this.imageDimensions,function(e,t){return e.height<=t}))),d.push(o.happyPromise(u("minHeight","height.min",/image/,this.imageDimensions,function(e,t){return e.height>=t}))),d.push(o.happyPromise(u("maxWidth","width.max",/image/,this.imageDimensions,function(e,t){return e.width<=t}))),d.push(o.happyPromise(u("minWidth","width.min",/image/,this.imageDimensions,function(e,t){return e.width>=t}))),d.push(o.happyPromise(u("dimensions",null,/image/,function(e,t){return o.emptyPromise(t)},function(e){return e}))),d.push(o.happyPromise(u("ratio",null,/image/,this.imageDimensions,function(e,t){for(var n=t.toString().split(","),r=!1,i=0;i<n.length;i++)Math.abs(e.width/e.height-o.ratioToFloat(n[i]))<1e-4&&(r=!0);return r}))),d.push(o.happyPromise(u("maxRatio","ratio.max",/image/,this.imageDimensions,function(e,t){return e.width/e.height-o.ratioToFloat(t)<1e-4}))),d.push(o.happyPromise(u("minRatio","ratio.min",/image/,this.imageDimensions,function(e,t){return e.width/e.height-o.ratioToFloat(t)>-1e-4}))),d.push(o.happyPromise(u("maxDuration","duration.max",/audio|video/,this.mediaDuration,function(e,t){return e<=o.translateScalars(t)}))),d.push(o.happyPromise(u("minDuration","duration.min",/audio|video/,this.mediaDuration,function(e,t){return e>=o.translateScalars(t)}))),d.push(o.happyPromise(u("duration",null,/audio|video/,function(e,t){return o.emptyPromise(t)},function(e){return e}))),d.push(o.happyPromise(u("validateAsyncFn",null,null,function(e,t){return t},function(e){return e===!0||null===e||""===e}))),t.all(d).then(function(){f.resolve(r,r.$ngfValidations)})},o.imageDimensions=function(e){if(e.$ngfWidth&&e.$ngfHeight){var r=t.defer();return n(function(){r.resolve({width:e.$ngfWidth,height:e.$ngfHeight})}),r.promise}if(e.$ngfDimensionPromise)return e.$ngfDimensionPromise;var i=t.defer();return n(function(){return 0!==e.type.indexOf("image")?void i.reject("not image"):void o.dataUrl(e).then(function(t){function r(){var t=s[0].clientWidth,n=s[0].clientHeight;s.remove(),e.$ngfWidth=t,e.$ngfHeight=n,i.resolve({width:t,height:n})}function o(){s.remove(),i.reject("load error")}function a(){n(function(){s[0].parentNode&&(s[0].clientWidth?r():u>10?o():a())},1e3)}var s=angular.element("<img>").attr("src",t).css("visibility","hidden").css("position","fixed").css("max-width","none !important").css("max-height","none !important");s.on("load",r),s.on("error",o);var u=0;a(),angular.element(document.getElementsByTagName("body")[0]).append(s)},function(){i.reject("load error")})}),e.$ngfDimensionPromise=i.promise,e.$ngfDimensionPromise["finally"](function(){delete e.$ngfDimensionPromise}),e.$ngfDimensionPromise},o.mediaDuration=function(e){if(e.$ngfDuration){var r=t.defer();return n(function(){r.resolve(e.$ngfDuration)}),r.promise}if(e.$ngfDurationPromise)return e.$ngfDurationPromise;var i=t.defer();return n(function(){return 0!==e.type.indexOf("audio")&&0!==e.type.indexOf("video")?void i.reject("not media"):void o.dataUrl(e).then(function(t){function r(){var t=s[0].duration;e.$ngfDuration=t,s.remove(),i.resolve(t)}function o(){s.remove(),i.reject("load error")}function a(){n(function(){s[0].parentNode&&(s[0].duration?r():u>10?o():a())},1e3)}var s=angular.element(0===e.type.indexOf("audio")?"<audio>":"<video>").attr("src",t).css("visibility","none").css("position","fixed");s.on("loadedmetadata",r),s.on("error",o);var u=0;a(),angular.element(document.body).append(s)},function(){i.reject("load error")})}),e.$ngfDurationPromise=i.promise,e.$ngfDurationPromise["finally"](function(){delete e.$ngfDurationPromise}),e.$ngfDurationPromise},o}]),ngFileUpload.service("UploadResize",["UploadValidate","$q",function(e,t){var n=e,r=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}},i=function(e,i,o,a,s,u,l,c){var f=t.defer(),d=document.createElement("canvas"),p=document.createElement("img");return p.onload=function(){if(null!=c&&c(p.width,p.height)===!1)return void f.reject("resizeIf");try{if(u){var e=n.ratioToFloat(u),t=p.width/p.height;e>t?(i=p.width,o=i/e):(o=p.height,i=o*e)}i||(i=p.width),o||(o=p.height);var h=r(p.width,p.height,i,o,l);d.width=Math.min(h.width,i),d.height=Math.min(h.height,o);var g=d.getContext("2d");g.drawImage(p,Math.min(0,-h.marginX/2),Math.min(0,-h.marginY/2),h.width,h.height),f.resolve(d.toDataURL(s||"image/WebP",a||.934))}catch(m){f.reject(m)}},p.onerror=function(){f.reject()},p.src=e,f.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,r,o,a,s,u,l,c,f){if(0!==e.type.indexOf("image"))return n.emptyPromise(e);var d=t.defer();return n.dataUrl(e,!0).then(function(t){i(t,r,o,a,s||e.type,u,l,c).then(function(r){if("image/jpeg"===e.type&&f)try{r=n.restoreExif(t,r)}catch(i){setTimeout(function(){throw i},1)}try{var o=n.dataUrltoBlob(r,e.name,e.size);d.resolve(o)}catch(i){d.reject(i)}},function(t){"resizeIf"===t&&d.resolve(e),d.reject(t)})},function(e){d.reject(e)}),d.promise},n}]),function(){function e(e,n,r,i,o,a,s,u,l,c){function f(){return n.attr("disabled")||$("ngfDropDisabled",e)}function d(t,n){u.updateModel(i,r,e,$("ngfChange")||$("ngfDrop"),t,n)}function p(t,n){if(!u.shouldUpdateOn(t,r,e)||!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 h(e,t,n,r){var i=$("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||$("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)}function g(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+e.name,p.push(i)}var o=e.createReader(),s=[],g=function(){o.readEntries(function(i){try{i.length?(s=s.concat(Array.prototype.slice.call(i||[],0)),g()):(angular.forEach(s.slice(0),function(n){p.length<=l&&f>=h&&r.push(a(n,(t?t:"")+e.name+"/"))}),c.all(r).then(function(){n.resolve()},function(e){n.reject(e)}))}catch(o){n.reject(o)}},function(e){n.reject(e)})};g()}else e.file(function(e){try{e.path=(t?t:"")+e.name,d&&(e=u.rename(e,e.path)),p.push(e),h+=e.size,n.resolve()}catch(r){n.reject(r)}},function(e){n.reject(e)});return n.promise}var l=u.getValidationAttr(r,e,"maxFiles")||Number.MAX_VALUE,f=u.getValidationAttr(r,e,"maxTotalSize")||Number.MAX_VALUE,d=$("ngfIncludeDir",e),p=[],h=0,g=[u.emptyPromise()];if(t&&t.length>0&&"file"!==s.protocol())for(var m=0;m<t.length;m++){if(t[m].webkitGetAsEntry&&t[m].webkitGetAsEntry()&&t[m].webkitGetAsEntry().isDirectory){var v=t[m].webkitGetAsEntry();if(v.isDirectory&&!i)continue;null!=v&&g.push(a(v))}else{var y=t[m].getAsFile();null!=y&&(p.push(y),h+=y.size)}if(p.length>l||h>f||!o&&p.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)&&(p.push(w),h+=w.size),p.length>l||h>f||!o&&p.length>0)break}var x=c.defer();return c.all(g).then(function(){if(o||d||!p.length)x.resolve(p);else{for(var e=0;p[e]&&"directory"===p[e].type;)e++;x.resolve([p[e]])}},function(e){x.reject(e)}),x.promise}var m=t(),$=function(e,t,n){return u.attrGetter(e,r,t,n)};if($("dropAvailable")&&a(function(){e[$("dropAvailable")]?e[$("dropAvailable")].value=m:e[$("dropAvailable")]=m}),!m)return void($("ngfHideOnDropNotAvailable",e)===!0&&n.css("display","none"));null==$("ngfSelect")&&u.registerModelChangeValidator(i,r,e);var v,y=null,b=o($("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",h(e,r,t,function(r){v=r,n.addClass(v),$("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,$("ngfDrag",e,{$isDragging:!1,$event:t})},w||100))},!1),n[0].addEventListener("drop",function(t){if(!f()&&u.shouldUpdateOn("drop",r,e)){t.preventDefault(),b(e)&&t.stopPropagation(),v&&n.removeClass(v),v=null;var i,o=t.dataTransfer.items;try{i=t.dataTransfer&&t.dataTransfer.getData&&t.dataTransfer.getData("text/html")}catch(a){}g(o,t.dataTransfer.files,$("ngfAllowDir",e)!==!1,$("multiple")||$("ngfMultiple",e)).then(function(e){e.length?d(e,t):p("dropUrl",i).then(function(e){d(e,t)})})}},!1),n[0].addEventListener("paste",function(t){if(navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&$("ngfEnableFirefoxPaste",e)&&t.preventDefault(),!f()&&u.shouldUpdateOn("paste",r,e)){var n=[],i=t.clipboardData||t.originalEvent.clipboardData;if(i&&i.items)for(var o=0;o<i.items.length;o++)-1!==i.items[o].type.indexOf("image")&&n.push(i.items[o].getAsFile());n.length?d(n,t):p("pasteUrl",i).then(function(e){d(e,t)})}},!1),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&$("ngfEnableFirefoxPaste",e)&&(n.attr("contenteditable",!0),n.on("keypress",function(e){e.metaKey||e.ctrlKey||e.preventDefault()}))}function t(){var e=document.createElement("div");return"draggable"in e&&"ondrop"in e&&!/Edge\/12./i.test(navigator.userAgent)}ngFileUpload.directive("ngfDrop",["$parse","$timeout","$location","Upload","$http","$q",function(t,n,r,i,o,a){return{restrict:"AEC",require:"?ngModel",link:function(s,u,l,c){e(s,u,l,c,t,n,r,i,o,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){function n(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:return e.transform(0,-1,1,0,0,n)}}function r(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)}var i=e;return i.isExifSupported=function(){return window.FileReader&&(new FileReader).readAsArrayBuffer&&i.isResizeSupported()},i.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},i.applyExifRotation=function(e){if(0!==e.type.indexOf("image/jpeg"))return i.emptyPromise(e);var o=t.defer();return i.readOrientation(e).then(function(t){return t.orientation<2||t.orientation>8?o.resolve(e):void i.dataUrl(e,!0).then(function(a){var s=document.createElement("canvas"),u=document.createElement("img");u.onload=function(){try{s.width=t.orientation>4?u.height:u.width,s.height=t.orientation>4?u.width:u.height;var a=s.getContext("2d");n(a,t.orientation,u.width,u.height),a.drawImage(u,0,0);var l=s.toDataURL(e.type||"image/WebP",.934);l=i.restoreExif(r(t.fixedArrayBuffer),l);var c=i.dataUrltoBlob(l,e.name);o.resolve(c)}catch(f){return o.reject(f)}},u.onerror=function(){o.reject()},u.src=a},function(e){o.reject(e)})},function(e){o.reject(e)}),o.promise},i.restoreExif=function(e,t){var n={};return n.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n.encode64=function(e){var t,n,r,i,o,a="",s="",u="",l=0;do t=e[l++],n=e[l++],s=e[l++],r=t>>2,i=(3&t)<<4|n>>4,o=(15&n)<<2|s>>6,u=63&s,isNaN(n)?o=u=64:isNaN(s)&&(u=64),a=a+this.KEY_STR.charAt(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},n.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)},n.exifManipulation=function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)},n.getExifArray=function(e){for(var t,n=0;n<e.length;n++)if(t=e[n],255===t[0]&225===t[1])return t;return[]},n.insertExif=function(e,t){var n=e.replace("data:image/jpeg;base64,",""),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),s=s.concat(a)},n.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=256*e[t+2]+e[t+3],i=t+r+2,o=e.slice(t,i);n.push(o),t=i}if(t>e.length)break}return n},n.decode64=function(e){var t,n,r,i,o,a="",s="",u=0,l=[],c=/[^A-Za-z0-9\+\/\=]/g;c.exec(e)&&console.log("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, NaNExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do r=this.KEY_STR.indexOf(e.charAt(u++)),i=this.KEY_STR.indexOf(e.charAt(u++)),o=this.KEY_STR.indexOf(e.charAt(u++)),s=this.KEY_STR.indexOf(e.charAt(u++)),t=r<<2|i>>4,n=(15&i)<<4|o>>2,a=(3&o)<<6|s,l.push(t),64!==o&&l.push(n),64!==s&&l.push(a),t=n=a="",r=i=o=s="";while(u<e.length);return l},n.restore(e,t)},i}]),function(){"use strict";angular.module("ui.tree",[]).constant("treeConfig",{treeClass:"angular-ui-tree",emptyTreeClass:"angular-ui-tree-empty",hiddenClass:"angular-ui-tree-hidden",nodesClass:"angular-ui-tree-nodes",nodeClass:"angular-ui-tree-node",handleClass:"angular-ui-tree-handle",placeholderClass:"angular-ui-tree-placeholder",dragClass:"angular-ui-tree-drag",dragThreshold:3,levelThreshold:30,defaultCollapsed:!1})}(),function(){"use strict";angular.module("ui.tree").controller("TreeHandleController",["$scope","$element",function(e,t){this.scope=e,e.$element=t,e.$nodeScope=null,e.$type="uiTreeHandle"}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeNodeController",["$scope","$element",function(e,t){function n(e){var t,r,i,o=0,a=e.childNodes();if(!a||0===a.length)return 0;for(i=a.length-1;i>=0;i--)t=a[i],r=1+n(t),o=Math.max(o,r);return o}this.scope=e,e.$element=t,e.$modelValue=null,e.$parentNodeScope=null,e.$childNodesScope=null,e.$parentNodesScope=null,e.$treeScope=null,e.$handleScope=null,e.$type="uiTreeNode",e.$$allowNodeDrop=!1,e.collapsed=!1,e.init=function(n){var r=n[0];e.$treeScope=n[1]?n[1].scope:null,e.$parentNodeScope=r.scope.$nodeScope,e.$modelValue=r.scope.$modelValue[e.$index],e.$parentNodesScope=r.scope,r.scope.initSubNode(e),t.on("$destroy",function(){r.scope.destroySubNode(e)})},e.index=function(){return e.$parentNodesScope.$modelValue.indexOf(e.$modelValue)},e.dragEnabled=function(){return!(e.$treeScope&&!e.$treeScope.dragEnabled)},e.isSibling=function(t){return e.$parentNodesScope==t.$parentNodesScope},e.isChild=function(t){var n=e.childNodes();return n&&n.indexOf(t)>-1},e.prev=function(){var t=e.index();return t>0?e.siblings()[t-1]:null},e.siblings=function(){return e.$parentNodesScope.childNodes()},e.childNodesCount=function(){return e.childNodes()?e.childNodes().length:0},e.hasChild=function(){return e.childNodesCount()>0},e.childNodes=function(){return e.$childNodesScope&&e.$childNodesScope.$modelValue?e.$childNodesScope.childNodes():null},e.accept=function(t,n){return e.$childNodesScope&&e.$childNodesScope.$modelValue&&e.$childNodesScope.accept(t,n)},e.remove=function(){return e.$parentNodesScope.removeNode(e)},e.toggle=function(){e.collapsed=!e.collapsed},e.collapse=function(){e.collapsed=!0},e.expand=function(){e.collapsed=!1},e.depth=function(){var t=e.$parentNodeScope;return t?t.depth()+1:1},e.maxSubDepth=function(){return e.$childNodesScope?n(e.$childNodesScope):0}}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeNodesController",["$scope","$element",function(e,t){this.scope=e,e.$element=t,e.$modelValue=null,e.$nodeScope=null,e.$treeScope=null,e.$type="uiTreeNodes",e.$nodesMap={},e.nodropEnabled=!1,e.maxDepth=0,e.cloneEnabled=!1,e.initSubNode=function(t){return t.$modelValue?void(e.$nodesMap[t.$modelValue.$$hashKey]=t):null},e.destroySubNode=function(t){return t.$modelValue?void(e.$nodesMap[t.$modelValue.$$hashKey]=null):null},e.accept=function(t,n){return e.$treeScope.$callbacks.accept(t,e,n)},e.beforeDrag=function(t){return e.$treeScope.$callbacks.beforeDrag(t)},e.isParent=function(t){return t.$parentNodesScope==e},e.hasChild=function(){return e.$modelValue.length>0},e.safeApply=function(e){var t=this.$root.$$phase;"$apply"==t||"$digest"==t?e&&"function"==typeof e&&e():this.$apply(e)},e.removeNode=function(t){var n=e.$modelValue.indexOf(t.$modelValue);return n>-1?(e.safeApply(function(){e.$modelValue.splice(n,1)[0]}),e.$treeScope.$callbacks.removed(t)):null},e.insertNode=function(t,n){e.safeApply(function(){e.$modelValue.splice(t,0,n)})},e.childNodes=function(){var t,n=[];if(e.$modelValue)for(t=0;t<e.$modelValue.length;t++)n.push(e.$nodesMap[e.$modelValue[t].$$hashKey]);return n},e.depth=function(){return e.$nodeScope?e.$nodeScope.depth():0},e.outOfDepth=function(t){var n=e.maxDepth||e.$treeScope.maxDepth;return n>0?e.depth()+t.maxSubDepth()+1>n:!1}}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeController",["$scope","$element",function(e,t){this.scope=e,e.$element=t,e.$nodesScope=null,e.$type="uiTree",e.$emptyElm=null,e.$callbacks=null,e.dragEnabled=!0,e.emptyPlaceholderEnabled=!0,e.maxDepth=0,e.dragDelay=0,e.cloneEnabled=!1,e.nodropEnabled=!1,e.isEmpty=function(){return e.$nodesScope&&e.$nodesScope.$modelValue&&0===e.$nodesScope.$modelValue.length},e.place=function(t){e.$nodesScope.$element.append(t),e.$emptyElm.remove()},this.resetEmptyElement=function(){e.$nodesScope.$modelValue&&0!==e.$nodesScope.$modelValue.length||!e.emptyPlaceholderEnabled?e.$emptyElm.remove():t.append(e.$emptyElm)},e.resetEmptyElement=this.resetEmptyElement}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTree",["treeConfig","$window",function(e,t){return{restrict:"A",scope:!0,controller:"TreeController",link:function(n,r,i,o){var a,s,u,l={accept:null,beforeDrag:null},c={};angular.extend(c,e),c.treeClass&&r.addClass(c.treeClass),"table"===r.prop("tagName").toLowerCase()?(n.$emptyElm=angular.element(t.document.createElement("tr")),s=r.find("tr"),u=s.length>0?angular.element(s).children().length:1e6,a=angular.element(t.document.createElement("td")).attr("colspan",u),n.$emptyElm.append(a)):n.$emptyElm=angular.element(t.document.createElement("div")),c.emptyTreeClass&&n.$emptyElm.addClass(c.emptyTreeClass),n.$watch("$nodesScope.$modelValue.length",function(e){angular.isNumber(e)&&o.resetEmptyElement()},!0),n.$watch(i.dragEnabled,function(e){"boolean"==typeof e&&(n.dragEnabled=e)}),n.$watch(i.emptyPlaceholderEnabled,function(e){"boolean"==typeof e&&(n.emptyPlaceholderEnabled=e,o.resetEmptyElement())}),n.$watch(i.nodropEnabled,function(e){"boolean"==typeof e&&(n.nodropEnabled=e)}),n.$watch(i.cloneEnabled,function(e){"boolean"==typeof e&&(n.cloneEnabled=e)}),n.$watch(i.maxDepth,function(e){"number"==typeof e&&(n.maxDepth=e)}),n.$watch(i.dragDelay,function(e){"number"==typeof e&&(n.dragDelay=e)}),l.accept=function(e,t){return!(t.nodropEnabled||t.$treeScope.nodropEnabled||t.outOfDepth(e))},l.beforeDrag=function(){return!0},l.removed=function(){},l.dropped=function(){},l.dragStart=function(){},l.dragMove=function(){},l.dragStop=function(){},l.beforeDrop=function(){},n.$watch(i.uiTree,function(e){angular.forEach(e,function(e,t){l[t]&&"function"==typeof e&&(l[t]=e)}),n.$callbacks=l},!0)}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeHandle",["treeConfig",function(e){return{require:"^uiTreeNode",restrict:"A",scope:!0,controller:"TreeHandleController",link:function(t,n,r,i){var o={};angular.extend(o,e),o.handleClass&&n.addClass(o.handleClass),t!=i.scope&&(t.$nodeScope=i.scope,i.scope.$handleScope=t)}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeNode",["treeConfig","UiTreeHelper","$window","$document","$timeout","$q","$rootElement",function(e,t,n,r,i,o,a){return{require:["^uiTreeNodes","^uiTree"],restrict:"A",controller:"TreeNodeController",link:function(s,u,l,c){var f,d,p,h,g,m,$,v,y,b,w,x,S,C,k,_,A,E,D,T,M,O,N,F,P={},j="ontouchstart"in window,I=null,V=document.body,R=document.documentElement;angular.extend(P,e),P.nodeClass&&u.addClass(P.nodeClass),s.init(c),s.collapsed=!!t.getNodeAttribute(s,"collapsed")||e.defaultCollapsed,s.sourceOnly=s.nodropEnabled||s.$treeScope.nodropEnabled,s.$watch(l.collapsed,function(e){"boolean"==typeof e&&(s.collapsed=e)}),s.$watch("collapsed",function(e){t.setNodeAttribute(s,"collapsed",e),l.$set("collapsed",e)}),s.$on("angular-ui-tree:collapse-all",function(){s.collapsed=!0}),s.$on("angular-ui-tree:expand-all",function(){s.collapsed=!1}),b=function(e){if((j||2!==e.button&&3!==e.which)&&!(e.uiTreeDragging||e.originalEvent&&e.originalEvent.uiTreeDragging)){var i,o,l,c,b,w,x,S,C,k=angular.element(e.target);if(i=t.treeNodeHandlerContainerOfElement(k),i&&(k=angular.element(i)),o=u.clone(),S=t.elementIsTreeNode(k),C=t.elementIsTreeNodeHandle(k),(S||C)&&!(S&&t.elementContainsTreeNodeHandler(k)||(l=k.prop("tagName").toLowerCase(),"input"==l||"textarea"==l||"button"==l||"select"==l))){for(F=angular.element(e.target);F&&F[0]&&F[0]!==u;){if(t.nodrag(F))return;F=F.parent()}s.beforeDrag(s)&&(e.uiTreeDragging=!0,e.originalEvent&&(e.originalEvent.uiTreeDragging=!0),e.preventDefault(),b=t.eventObj(e),f=!0,d=t.dragInfo(s),c=u.prop("tagName"),"tr"===c.toLowerCase()?(h=angular.element(n.document.createElement(c)),w=angular.element(n.document.createElement("td")).addClass(P.placeholderClass).attr("colspan",u[0].children.length),h.append(w)):h=angular.element(n.document.createElement(c)).addClass(P.placeholderClass),g=angular.element(n.document.createElement(c)),P.hiddenClass&&g.addClass(P.hiddenClass),p=t.positionStarted(b,u),h.css("height",t.height(u)+"px"),m=angular.element(n.document.createElement(s.$parentNodesScope.$element.prop("tagName"))).addClass(s.$parentNodesScope.$element.attr("class")).addClass(P.dragClass),m.css("width",t.width(u)+"px"),m.css("z-index",9999),x=(u[0].querySelector(".angular-ui-tree-handle")||u[0]).currentStyle,x&&(document.body.setAttribute("ui-tree-cursor",r.find("body").css("cursor")||""),r.find("body").css({cursor:x.cursor+"!important"})),s.sourceOnly&&h.css("display","none"),u.after(h),u.after(g),d.isClone()&&s.sourceOnly?m.append(o):m.append(u),a.append(m),m.css({left:b.pageX-p.offsetX+"px",top:b.pageY-p.offsetY+"px"}),$={placeholder:h,dragging:m},D(),s.$apply(function(){s.$treeScope.$callbacks.dragStart(d.eventArgs($,p))}),v=Math.max(V.scrollHeight,V.offsetHeight,R.clientHeight,R.scrollHeight,R.offsetHeight),y=Math.max(V.scrollWidth,V.offsetWidth,R.clientWidth,R.scrollWidth,R.offsetWidth))}}},w=function(e){var r,i,o,a,u,l,c,g,b,w,x,S,C,k,_,A,E=t.eventObj(e);if(m){if(e.preventDefault(),n.getSelection?n.getSelection().removeAllRanges():n.document.selection&&n.document.selection.empty(),o=E.pageX-p.offsetX,a=E.pageY-p.offsetY,0>o&&(o=0),0>a&&(a=0),a+10>v&&(a=v-10),o+10>y&&(o=y-10),m.css({left:o+"px",top:a+"px"}),u=window.pageYOffset||n.document.documentElement.scrollTop,l=u+(window.innerHeight||n.document.clientHeight||n.document.clientHeight),l<E.pageY&&v>=l&&window.scrollBy(0,10),u>E.pageY&&window.scrollBy(0,-10),t.positionMoved(e,p,f),f)return void(f=!1);if(g=t.offset(m).left-t.offset(h).left>=P.threshold,b=E.pageX-(n.pageXOffset||n.document.body.scrollLeft||n.document.documentElement.scrollLeft)-(n.document.documentElement.clientLeft||0),w=E.pageY-(n.pageYOffset||n.document.body.scrollTop||n.document.documentElement.scrollTop)-(n.document.documentElement.clientTop||0),angular.isFunction(m.hide)?m.hide():(x=m[0].style.display,m[0].style.display="none"),n.document.elementFromPoint(b,w),C=angular.element(n.document.elementFromPoint(b,w)),N=t.treeNodeHandlerContainerOfElement(C),N&&(C=angular.element(N)),angular.isFunction(m.show)?m.show():m[0].style.display=x,O=!(t.elementIsTreeNodeHandle(C)||t.elementIsTreeNode(C)||t.elementIsTreeNodes(C)||t.elementIsTree(C)||t.elementIsPlaceholder(C)),O&&(h.remove(),I&&(I.resetEmptyElement(),I=null)),p.dirAx&&p.distAxX>=P.levelThreshold&&(p.distAxX=0,p.distX>0&&(r=d.prev(),r&&!r.collapsed&&r.accept(s,r.childNodesCount())&&(r.$childNodesScope.$element.append(h),d.moveTo(r.$childNodesScope,r.childNodes(),r.childNodesCount()))),p.distX<0&&(i=d.next(),i||(c=d.parentNode(),c&&c.$parentNodesScope.accept(s,c.index()+1)&&(c.$element.after(h),d.moveTo(c.$parentNodesScope,c.siblings(),c.index()+1))))),!p.dirAx){if(t.elementIsTree(C)?S=C.controller("uiTree").scope:t.elementIsTreeNodeHandle(C)?S=C.controller("uiTreeHandle").scope:t.elementIsTreeNode(C)?S=C.controller("uiTreeNode").scope:t.elementIsTreeNodes(C)?S=C.controller("uiTreeNodes").scope:t.elementIsPlaceholder(C)?S=C.controller("uiTreeNodes").scope:C.controller("uiTreeNode")&&(S=C.controller("uiTreeNode").scope),k=!1,!S)return;if(!S.$treeScope||S.$parent.nodropEnabled||S.$treeScope.nodropEnabled||h.css("display",""),"uiTree"==S.$type&&S.dragEnabled&&(k=S.isEmpty()),"uiTreeHandle"==S.$type&&(S=S.$nodeScope),"uiTreeNode"!=S.$type&&!k)return;I&&h.parent()[0]!=I.$element[0]&&(I.resetEmptyElement(),I=null),k?(I=S,S.$nodesScope.accept(s,0)&&(S.place(h),d.moveTo(S.$nodesScope,S.$nodesScope.childNodes(),0))):S.dragEnabled()&&(C=S.$element,_=t.offset(C),A=S.horizontal?E.pageX<_.left+t.width(C)/2:E.pageY<_.top+t.height(C)/2,S.$parentNodesScope.accept(s,S.index())?A?(C[0].parentNode.insertBefore(h[0],C[0]),d.moveTo(S.$parentNodesScope,S.siblings(),S.index())):(C.after(h),d.moveTo(S.$parentNodesScope,S.siblings(),S.index()+1)):!A&&S.accept(s,S.childNodesCount())?(S.$childNodesScope.$element.append(h),d.moveTo(S.$childNodesScope,S.childNodes(),S.childNodesCount())):O=!0)}s.$apply(function(){s.$treeScope.$callbacks.dragMove(d.eventArgs($,p))})}},x=function(e){var t=d.eventArgs($,p);e.preventDefault(),T(),s.$treeScope.$apply(function(){o.when(s.$treeScope.$callbacks.beforeDrop(t)).then(function(e){e!==!1&&s.$$allowNodeDrop&&!O?(d.apply(),s.$treeScope.$callbacks.dropped(t)):E()})["catch"](function(){E()})["finally"](function(){g.replaceWith(s.$element),h.remove(),m&&(m.remove(),m=null),s.$treeScope.$callbacks.dragStop(t),s.$$allowNodeDrop=!1,d=null;var e=document.body.getAttribute("ui-tree-cursor");null!==e&&(r.find("body").css({cursor:e}),document.body.removeAttribute("ui-tree-cursor"))})})},S=function(e){s.dragEnabled()&&b(e)},C=function(e){w(e)},k=function(e){s.$$allowNodeDrop=!0,x(e)},_=function(e){x(e)},A=function(){var e;return{exec:function(t,n){n||(n=0),this.cancel(),e=i(t,n)},cancel:function(){i.cancel(e)}}}(),E=function(){u.bind("touchstart mousedown",function(e){A.exec(function(){S(e)},s.dragDelay||0)}),u.bind("touchend touchcancel mouseup",function(){A.cancel()})},E(),D=function(){angular.element(r).bind("touchend",k),angular.element(r).bind("touchcancel",k),angular.element(r).bind("touchmove",C),angular.element(r).bind("mouseup",k),angular.element(r).bind("mousemove",C),angular.element(r).bind("mouseleave",_)},T=function(){angular.element(r).unbind("touchend",k),angular.element(r).unbind("touchcancel",k),angular.element(r).unbind("touchmove",C),angular.element(r).unbind("mouseup",k),angular.element(r).unbind("mousemove",C),angular.element(r).unbind("mouseleave",_)},M=function(e){27==e.keyCode&&(s.$$allowNodeDrop=!1,x(e))},angular.element(n.document).bind("keydown",M),s.$on("$destroy",function(){angular.element(n.document).unbind("keydown",M)})}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeNodes",["treeConfig","$window",function(e){return{require:["ngModel","?^uiTreeNode","^uiTree"],restrict:"A",scope:!0,controller:"TreeNodesController",link:function(t,n,r,i){var o={},a=i[0],s=i[1],u=i[2];angular.extend(o,e),o.nodesClass&&n.addClass(o.nodesClass),s?(s.scope.$childNodesScope=t,t.$nodeScope=s.scope):u.scope.$nodesScope=t,t.$treeScope=u.scope,a&&(a.$render=function(){t.$modelValue=a.$modelValue}),t.$watch(function(){return r.maxDepth},function(e){"number"==typeof e&&(t.maxDepth=e)}),t.$watch(function(){return r.nodropEnabled},function(e){"undefined"!=typeof e&&(t.nodropEnabled=!0)},!0),r.$observe("horizontal",function(e){t.horizontal="undefined"!=typeof e})}}}])}(),function(){"use strict";function e(e,t){if(void 0===t)return null;for(var n=t.parentNode,r=1,i="function"==typeof n.setAttribute&&n.hasAttribute(e)?n:null;n&&"function"==typeof n.setAttribute&&!n.hasAttribute(e);){if(n=n.parentNode,i=n,n===document.documentElement){i=null;break}r++}return i}angular.module("ui.tree").factory("UiTreeHelper",["$document","$window","treeConfig",function(t,n,r){return{nodesData:{},setNodeAttribute:function(e,t,n){if(!e.$modelValue)return null;var r=this.nodesData[e.$modelValue.$$hashKey];r||(r={},this.nodesData[e.$modelValue.$$hashKey]=r),r[t]=n},getNodeAttribute:function(e,t){if(!e.$modelValue)return null;var n=this.nodesData[e.$modelValue.$$hashKey];return n?n[t]:null},nodrag:function(e){return"undefined"!=typeof e.attr("data-nodrag")?"false"!==e.attr("data-nodrag"):!1},eventObj:function(e){var t=e;return void 0!==e.targetTouches?t=e.targetTouches.item(0):void 0!==e.originalEvent&&void 0!==e.originalEvent.targetTouches&&(t=e.originalEvent.targetTouches.item(0)),t},dragInfo:function(e){return{source:e,sourceInfo:{cloneModel:e.$treeScope.cloneEnabled===!0?angular.copy(e.$modelValue):void 0,nodeScope:e,index:e.index(),nodesScope:e.$parentNodesScope},index:e.index(),siblings:e.siblings().slice(0),parent:e.$parentNodesScope,moveTo:function(e,t,n){this.parent=e,this.siblings=t.slice(0);var r=this.siblings.indexOf(this.source);r>-1&&(this.siblings.splice(r,1),this.source.index()<n&&n--),this.siblings.splice(n,0,this.source),this.index=n},parentNode:function(){return this.parent.$nodeScope},prev:function(){return this.index>0?this.siblings[this.index-1]:null},next:function(){return this.index<this.siblings.length-1?this.siblings[this.index+1]:null},isClone:function(){return this.source.$treeScope.cloneEnabled===!0},clonedNode:function(e){return angular.copy(e)},isDirty:function(){return this.source.$parentNodesScope!=this.parent||this.source.index()!=this.index},isForeign:function(){return this.source.$treeScope!==this.parent.$treeScope},eventArgs:function(e,t){return{source:this.sourceInfo,dest:{index:this.index,nodesScope:this.parent},elements:e,pos:t}},apply:function(){var e=this.source.$modelValue;this.parent.nodropEnabled||this.parent.$treeScope.nodropEnabled||this.isDirty()&&(this.isClone()&&this.isForeign()?this.parent.insertNode(this.index,this.sourceInfo.cloneModel):(this.source.remove(),this.parent.insertNode(this.index,e)))}}},height:function(e){return e.prop("scrollHeight")},width:function(e){return e.prop("scrollWidth")},offset:function(e){var r=e[0].getBoundingClientRect();return{width:e.prop("offsetWidth"),height:e.prop("offsetHeight"),top:r.top+(n.pageYOffset||t[0].body.scrollTop||t[0].documentElement.scrollTop),left:r.left+(n.pageXOffset||t[0].body.scrollLeft||t[0].documentElement.scrollLeft)}},positionStarted:function(e,t){var n={},r=e.pageX,i=e.pageY;return e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length>0&&(r=e.originalEvent.touches[0].pageX,i=e.originalEvent.touches[0].pageY),n.offsetX=r-this.offset(t).left,n.offsetY=i-this.offset(t).top,n.startX=n.lastX=r,n.startY=n.lastY=i,n.nowX=n.nowY=n.distX=n.distY=n.dirAx=0,n.dirX=n.dirY=n.lastDirX=n.lastDirY=n.distAxX=n.distAxY=0,n},positionMoved:function(e,t,n){var r,i=e.pageX,o=e.pageY;return e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length>0&&(i=e.originalEvent.touches[0].pageX,o=e.originalEvent.touches[0].pageY),t.lastX=t.nowX,t.lastY=t.nowY,t.nowX=i,t.nowY=o,t.distX=t.nowX-t.lastX,t.distY=t.nowY-t.lastY,t.lastDirX=t.dirX,t.lastDirY=t.dirY,t.dirX=0===t.distX?0:t.distX>0?1:-1,t.dirY=0===t.distY?0:t.distY>0?1:-1,r=Math.abs(t.distX)>Math.abs(t.distY)?1:0,n?(t.dirAx=r,void(t.moving=!0)):(t.dirAx!==r?(t.distAxX=0,t.distAxY=0):(t.distAxX+=Math.abs(t.distX),0!==t.dirX&&t.dirX!==t.lastDirX&&(t.distAxX=0),t.distAxY+=Math.abs(t.distY),0!==t.dirY&&t.dirY!==t.lastDirY&&(t.distAxY=0)),void(t.dirAx=r))},elementIsTreeNode:function(e){return"undefined"!=typeof e.attr("ui-tree-node")},elementIsTreeNodeHandle:function(e){return"undefined"!=typeof e.attr("ui-tree-handle")},elementIsTree:function(e){return"undefined"!=typeof e.attr("ui-tree")},elementIsTreeNodes:function(e){return"undefined"!=typeof e.attr("ui-tree-nodes")},elementIsPlaceholder:function(e){return e.hasClass(r.placeholderClass)},elementContainsTreeNodeHandler:function(e){return e[0].querySelectorAll("[ui-tree-handle]").length>=1},treeNodeHandlerContainerOfElement:function(t){return e("ui-tree-handle",t[0])}}}])}(),function(e,t){"use strict";function n(e){return/^-?\d+\.?\d*$/.test(e.replace(/["']/g,""))}var r=t.isDefined,i=t.isUndefined,o=t.isNumber,a=t.isObject,s=t.isArray,u=t.extend,l=t.toJson,c=t.fromJson,f=t.module("LocalStorageModule",[]);f.provider("localStorageService",function(){this.prefix="ls",this.storageType="localStorage",this.cookie={expiry:30,path:"/"},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.setStorageCookie=function(e,t){return this.cookie={expiry:e,path:t},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",function(e,t,f,d){var p,h=this,g=h.prefix,m=h.cookie,$=h.notify,v=h.storageType;f?f[0]&&(f=f[0]):f=document,"."!==g.substr(-1)&&(g=g?g+".":"");var y=function(e){return g+e},b=function(){try{var n=v in t&&null!==t[v],r=y("__"+Math.round(1e7*Math.random()));return n&&(p=t[v],p.setItem(r,""),p.removeItem(r)),n}catch(i){return v="cookie",e.$broadcast("LocalStorageModule.notification.error",i.message),!1}}(),w=function(t,n){if(i(n)?n=null:(a(n)||s(n)||o(+n||n))&&(n=l(n)),!b||"cookie"===h.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),$.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:"cookie"}),A(t,n);try{(a(n)||s(n))&&(n=l(n)),p&&p.setItem(y(t),n),$.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:h.storageType})}catch(r){return e.$broadcast("LocalStorageModule.notification.error",r.message),A(t,n)}return!0},x=function(t){if(!b||"cookie"===h.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),E(t);var r=p?p.getItem(y(t)):null;return r&&"null"!==r?"{"===r.charAt(0)||"["===r.charAt(0)||n(r)?c(r):r:null},S=function(t){if(!b||"cookie"===h.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),$.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:t,storageType:"cookie"}),D(t);try{p.removeItem(y(t)),$.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:t,storageType:h.storageType})}catch(n){return e.$broadcast("LocalStorageModule.notification.error",n.message),D(t)}return!0},C=function(){if(!b)return e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),!1;var t=g.length,n=[];for(var r in p)if(r.substr(0,t)===g)try{n.push(r.substr(t))}catch(i){return e.$broadcast("LocalStorageModule.notification.error",i.Description),[]}return n},k=function(t){t=t||"";var n=g.slice(0,-1),r=new RegExp(n+"."+t);if(!b||"cookie"===h.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),T();var i=g.length;for(var o in p)if(r.test(o))try{S(o.substr(i))}catch(a){return e.$broadcast("LocalStorageModule.notification.error",a.message),T()}return!0},_=function(){try{return t.navigator.cookieEnabled||"cookie"in f&&(f.cookie.length>0||(f.cookie="test").indexOf.call(f.cookie,"test")>-1)}catch(n){return e.$broadcast("LocalStorageModule.notification.error",n.message),!1}}(),A=function(t,n){if(i(n))return!1;if((s(n)||a(n))&&(n=l(n)),!_)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;try{var r="",o=new Date,u="";if(null===n?(o.setTime(o.getTime()+-864e5),r="; expires="+o.toGMTString(),n=""):0!==m.expiry&&(o.setTime(o.getTime()+24*m.expiry*60*60*1e3),r="; expires="+o.toGMTString()),t){var c="; path="+m.path;m.domain&&(u="; domain="+m.domain),f.cookie=y(t)+"="+encodeURIComponent(n)+r+c+u}}catch(d){return e.$broadcast("LocalStorageModule.notification.error",d.message),!1}return!0},E=function(t){if(!_)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;for(var n=f.cookie&&f.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(y(t)+"=")){var o=decodeURIComponent(i.substring(g.length+t.length+1,i.length));try{var a=JSON.parse(o);return c(a)}catch(s){return o}}}return null},D=function(e){A(e,null)},T=function(){for(var e=null,t=g.length,n=f.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("="));D(i)}},M=function(){return v},O=function(e,t,n,i){i=i||t;var o=x(i);return null===o&&r(n)?o=n:a(o)&&a(n)&&(o=u(n,o)),d(t).assign(e,o),e.$watch(t,function(e){w(i,e)},a(e[t]))},N=function(){for(var e=0,n=t[v],r=0;r<n.length;r++)0===n.key(r).indexOf(g)&&e++;return e};return{isSupported:b,getStorageType:M,set:w,add:w,get:x,keys:C,remove:S,clearAll:k,bind:O,deriveKey:y,length:N,cookie:{isSupported:_,set:A,add:A,get:E,remove:D,clearAll:T}}}]})}(window,window.angular),function(){function e(e,t){return e.set(t[0],t[1]),e}function t(e,t){return e.add(t),e}function n(e,t,n){var r=n.length;switch(r){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t,n,r){for(var i=-1,o=e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function i(e,t){for(var n=-1,r=e.length,i=-1,o=t.length,a=Array(r+o);++n<r;)a[n]=e[n];for(;++i<o;)a[n++]=t[i];return a}function o(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function a(e,t){for(var n=e.length;n--&&t(e[n],n,e)!==!1;);return e}function s(e,t){for(var n=-1,r=e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function u(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function l(e,t){return!!e.length&&v(e,t,0)>-1}function c(e,t,n){for(var r=-1,i=e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function f(e,t){for(var n=-1,r=e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function d(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function p(e,t,n,r){var i=-1,o=e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function h(e,t,n,r){var i=e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function g(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function m(e,t,n,r){var i;return n(e,function(e,n,o){return t(e,n,o)?(i=r?n:e,!1):No}),i}function $(e,t,n){for(var r=e.length,i=n?r:-1;n?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function v(e,t,n){if(t!==t)return O(e,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function y(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function b(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function w(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].c;return e}function x(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function S(e,t){return f(t,function(t){return[t,e[t]]})}function C(e){return function(t){return e(t)}}function k(e,t){return f(t,function(t){return e[t]})}function _(e){return e&&e.Object===Object?e:null}function A(e,t){if(e!==t){var n=null===e,r=e===No,i=e===e,o=null===t,a=t===No,s=t===t;if(e>t&&!o||!i||n&&!a&&s||r&&s)return 1;if(t>e&&!n||!s||o&&!r&&i||a&&i)return-1}return 0}function E(e,t,n){for(var r=-1,i=e.a,o=t.a,a=i.length,s=n.length;++r<a;){var u=A(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.b-t.b}function D(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&r++;return r}function T(e){return _s[e]}function M(e){return"\\"+Es[e]}function O(e,t,n){for(var r=e.length,i=t+(n?0:-1);n?i--:++i<r;){var o=e[i];if(o!==o)return i}return-1}function N(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function F(e,t){return e="number"==typeof e||ns.test(e)?+e:-1,t=null==t?na:t,e>-1&&e%1==0&&t>e}function P(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function j(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function I(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==Vo||(e[n]=Vo,o[i++]=n)}return o}function V(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function R(e){if(!e||!Ss.test(e))return e.length;for(var t=xs.lastIndex=0;xs.test(e);)t++;return t}function U(e){return e.match(xs)}function L(e){if(wi(e)&&!cl(e)&&!(e instanceof q)){if(e instanceof z)return e;if(Ls.call(e,"__wrapped__"))return _n(e)}return new z(e)}function H(){}function z(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=No}function q(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=oa,this.__views__=[]}function B(){var e=new q(this.__wrapped__);return e.__actions__=jt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,
-e.__iteratees__=jt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=jt(this.__views__),e}function W(){if(this.__filtered__){var e=new q(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Y(){var e=this.__wrapped__.value(),t=this.__dir__,n=cl(e),r=0>t,i=n?e.length:0,o=un(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,p=uu(u,this.__takeCount__);if(!n||Po>i||i==u&&p==u)return St(e,this.__actions__);var h=[];e:for(;u--&&p>d;){l+=t;for(var g=-1,m=e[l];++g<f;){var $=c[g],v=$.iteratee,y=$.type,b=v(m);if(y==Qo)m=b;else if(!b){if(y==Zo)continue e;break e}}h[d++]=m}return h}function X(){}function G(e,t){return J(e,t)&&delete e[t]}function K(e,t){if(mu){var n=e[t];return n===Io?No:n}return Ls.call(e,t)?e[t]:No}function J(e,t){return mu?e[t]!==No:Ls.call(e,t)}function Z(e,t,n){e[t]=mu&&n===No?Io:n}function Q(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ee(){this.__data__={hash:new X,map:du?new du:[],string:new X}}function te(e){var t=this.__data__;return $n(e)?G("string"==typeof e?t.string:t.hash,e):du?t.map["delete"](e):he(t.map,e)}function ne(e){var t=this.__data__;return $n(e)?K("string"==typeof e?t.string:t.hash,e):du?t.map.get(e):ge(t.map,e)}function re(e){var t=this.__data__;return $n(e)?J("string"==typeof e?t.string:t.hash,e):du?t.map.has(e):me(t.map,e)}function ie(e,t){var n=this.__data__;return $n(e)?Z("string"==typeof e?n.string:n.hash,e,t):du?n.map.set(e,t):ve(n.map,e,t),this}function oe(e){var t=-1,n=e?e.length:0;for(this.__data__=new Q;++t<n;)this.push(e[t])}function ae(e,t){var n=e.__data__;if($n(t)){var r=n.__data__,i="string"==typeof t?r.string:r.hash;return i[t]===Io}return n.has(t)}function se(e){var t=this.__data__;if($n(e)){var n=t.__data__,r="string"==typeof e?n.string:n.hash;r[e]=Io}else t.set(e,Io)}function ue(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function le(){this.__data__={array:[],map:null}}function ce(e){var t=this.__data__,n=t.array;return n?he(n,e):t.map["delete"](e)}function fe(e){var t=this.__data__,n=t.array;return n?ge(n,e):t.map.get(e)}function de(e){var t=this.__data__,n=t.array;return n?me(n,e):t.map.has(e)}function pe(e,t){var n=this.__data__,r=n.array;r&&(Po-1>r.length?ve(r,e,t):(n.array=null,n.map=new Q(r)));var i=n.map;return i&&i.set(e,t),this}function he(e,t){var n=$e(e,t);if(0>n)return!1;var r=e.length-1;return n==r?e.pop():eu.call(e,n,1),!0}function ge(e,t){var n=$e(e,t);return 0>n?No:e[n][1]}function me(e,t){return $e(e,t)>-1}function $e(e,t){for(var n=e.length;n--;)if(ni(e[n][0],t))return n;return-1}function ve(e,t,n){var r=$e(e,t);0>r?e.push([t,n]):e[r][1]=n}function ye(e,t,n,r){return e===No||ni(e,Rs[n])&&!Ls.call(r,n)?t:e}function be(e,t,n){(n===No||ni(e[t],n))&&("number"!=typeof t||n!==No||t in e)||(e[t]=n)}function we(e,t,n){var r=e[t];Ls.call(e,t)&&ni(r,n)&&(n!==No||t in e)||(e[t]=n)}function xe(e,t,n,r){return Eu(e,function(e,i,o){t(r,e,n(e),o)}),r}function Se(e,t){return e&&It(t,so(t),e)}function Ce(e,t){for(var n=-1,r=null==e,i=t.length,o=Array(i);++n<i;)o[n]=r?No:io(e,t[n]);return o}function ke(e){return ui(e)?e:[]}function _e(e){return"function"==typeof e?e:Eo}function Ae(e){return"string"==typeof e||Pi(e)?e:e+""}function Ee(e){return cl(e)?e:Vu(e)}function De(e,t,n){return e===e&&(n!==No&&(e=e>n?n:e),t!==No&&(e=t>e?t:e)),e}function Te(e,t,n,r,i,a,s){var u;if(r&&(u=a?r(e,i,a,s):r(e)),u!==No)return u;if(!bi(e))return e;var l=cl(e);if(l){if(u=cn(e),!t)return jt(e,u)}else{var c=sn(e),f=c==pa||c==ha;if(fl(e))return _t(e,t);if(c==$a||c==ua||f&&!a){if(N(e))return a?e:{};if(u=fn(f?{}:e),!t)return Rt(e,Se(u,e))}else{if(!ks[c])return a?e:{};u=dn(e,c,Te,t)}}s||(s=new ue);var d=s.get(e);if(d)return d;if(s.set(e,u),!l)var p=n?Jt(e):so(e);return o(p||e,function(i,o){p&&(o=i,i=e[o]),we(u,o,Te(i,t,n,r,o,e,s))}),u}function Me(e){return bi(e)?Zs(e):{}}function Oe(e,t,n,r){var i=-1,o=l,a=!0,s=e.length,u=[],d=t.length;if(!s)return u;n&&(t=f(t,C(n))),r?(o=c,a=!1):Po>t.length||(o=ae,a=!1,t=new oe(t));e:for(;++i<s;){var p=e[i],h=n?n(p):p;if(a&&h===h){for(var g=d;g--;)if(t[g]===h)continue e;u.push(p)}else o(t,h,r)||u.push(p)}return u}function Ne(e,t){var n=!0;return Eu(e,function(e,r,i){return n=!!t(e,r,i)}),n}function Fe(e,t,n,r){var i=e.length;for(n=zi(n),0>n&&(n=-n>i?0:i+n),r=r===No||r>i?i:zi(r),0>r&&(r+=i),r=n>r?0:qi(r);r>n;)e[n++]=t;return e}function Pe(e,t){var n=[];return Eu(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function je(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=hn),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?je(s,t-1,n,r,i):d(i,s):r||(i[i.length]=s)}return i}function Ie(e,t){return e&&Tu(e,t,so)}function Ve(e,t){return e&&Mu(e,t,so)}function Re(e,t){return u(t,function(t){return $i(e[t])})}function Ue(e,t){t=mn(t,e)?[t]:Ee(t);for(var n=0,r=t.length;null!=e&&r>n;)e=e[t[n++]];return n&&n==r?e:No}function Le(e,t,n){var r=t(e);return cl(e)?r:d(r,n(e))}function He(e,t){return Ls.call(e,t)||"object"==typeof e&&t in e&&null===on(e)}function ze(e,t){return t in Object(e)}function qe(e,t,n){for(var r=n?c:l,i=e[0].length,o=e.length,a=o,s=Array(o),u=1/0,d=[];a--;){var p=e[a];a&&t&&(p=f(p,C(t))),u=uu(p.length,u),s[a]=n||!t&&(120>i||120>p.length)?No:new oe(a&&p)}p=e[0];var h=-1,g=s[0];e:for(;++h<i&&u>d.length;){var m=p[h],$=t?t(m):m;if(!(g?ae(g,$):r(d,$,n))){for(a=o;--a;){var v=s[a];if(!(v?ae(v,$):r(e[a],$,n)))continue e}g&&g.push($),d.push(m)}}return d}function Be(e,t,n,r){return Ie(e,function(e,i,o){t(r,n(e),i,o)}),r}function We(e,t,r){mn(t,e)||(t=Ee(t),e=Sn(e,t),t=Bn(t));var i=null==e?e:e[t];return null==i?No:n(i,e,r)}function Ye(e,t,n,r,i){return e===t?!0:null==e||null==t||!bi(e)&&!wi(t)?e!==e&&t!==t:Xe(e,t,Ye,n,r,i)}function Xe(e,t,n,r,i,o){var a=cl(e),s=cl(t),u=la,l=la;a||(u=sn(e),u=u==ua?$a:u),s||(l=sn(t),l=l==ua?$a:l);var c=u==$a&&!N(e),f=l==$a&&!N(t),d=u==l;if(d&&!c)return o||(o=new ue),a||ji(e)?Xt(e,t,n,r,i,o):Gt(e,t,u,n,r,i,o);if(!(i&Go)){var p=c&&Ls.call(e,"__wrapped__"),h=f&&Ls.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return o||(o=new ue),n(g,m,r,i,o)}}return d?(o||(o=new ue),Kt(e,t,n,r,i,o)):!1}function Ge(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===No&&!(u in e))return!1}else{var f=new ue;if(r)var d=r(l,c,u,e,t,f);if(!(d===No?Ye(c,l,r,Xo|Go,f):d))return!1}}return!0}function Ke(e){return"function"==typeof e?e:null==e?Eo:"object"==typeof e?cl(e)?tt(e[0],e[1]):et(e):Oo(e)}function Je(e){return au(Object(e))}function Ze(e){e=null==e?e:Object(e);var t=[];for(var n in e)t.push(n);return t}function Qe(e,t){var n=-1,r=si(e)?Array(e.length):[];return Eu(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function et(e){var t=tn(e);return 1==t.length&&t[0][2]?wn(t[0][0],t[0][1]):function(n){return n===e||Ge(n,e,t)}}function tt(e,t){return mn(e)&&bn(t)?wn(e,t):function(n){var r=io(n,e);return r===No&&r===t?ao(n,e):Ye(t,r,No,Xo|Go)}}function nt(e,t,n,r,i){if(e!==t){if(!cl(t)&&!ji(t))var a=uo(t);o(a||t,function(o,s){if(a&&(s=o,o=t[s]),bi(o))i||(i=new ue),rt(e,t,s,n,nt,r,i);else{var u=r?r(e[s],o,s+"",e,t,i):No;u===No&&(u=o),be(e,s,u)}})}}function rt(e,t,n,r,i,o,a){var s=e[n],u=t[n],l=a.get(u);if(l)return be(e,n,l),No;var c=o?o(s,u,n+"",e,t,a):No,f=c===No;f&&(c=u,cl(u)||ji(u)?cl(s)?c=s:ui(s)?c=jt(s):(f=!1,c=Te(u,!0)):Ti(u)||oi(u)?oi(s)?c=Wi(s):!bi(s)||r&&$i(s)?(f=!1,c=Te(u,!0)):c=s:f=!1),a.set(u,c),f&&i(c,u,r,o,a),a["delete"](u),be(e,n,c)}function it(e,t,n){var r=-1;t=f(t.length?t:[Eo],en());var i=Qe(e,function(e){var n=f(t,function(t){return t(e)});return{a:n,b:++r,c:e}});return w(i,function(e,t){return E(e,t,n)})}function ot(e,t){return e=Object(e),p(t,function(t,n){return n in e&&(t[n]=e[n]),t},{})}function at(e,t){for(var n=-1,r=Zt(e),i=r.length,o={};++n<i;){var a=r[n],s=e[a];t(s,a)&&(o[a]=s)}return o}function st(e){return function(t){return null==t?No:t[e]}}function ut(e){return function(t){return Ue(t,e)}}function lt(e,t,n,r){var i=r?y:v,o=-1,a=t.length,s=e;for(n&&(s=f(e,C(n)));++o<a;)for(var u=0,l=t[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==e&&eu.call(s,u,1),eu.call(e,u,1);return e}function ct(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(r==n||i!=o){var o=i;if(F(i))eu.call(e,i,1);else if(mn(i,e))delete e[i];else{var a=Ee(i),s=Sn(e,a);null!=s&&delete s[Bn(a)]}}}return e}function ft(e,t){return e+nu(lu()*(t-e+1))}function dt(e,t,n,r){t=mn(t,e)?[t]:Ee(t);for(var i=-1,o=t.length,a=o-1,s=e;null!=s&&++i<o;){var u=t[i];if(bi(s)){var l=n;if(i!=a){var c=s[u];l=r?r(c,u,s):No,l===No&&(l=null==c?F(t[i+1])?[]:{}:c)}we(s,u,l)}s=s[u]}return e}function pt(e,t,n){var r=-1,i=e.length;0>t&&(t=-t>i?0:i+t),n=n>i?i:n,0>n&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}function ht(e,t){var n;return Eu(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function gt(e,t,n){var r=0,i=e?e.length:r;if("number"==typeof t&&t===t&&sa>=i){for(;i>r;){var o=r+i>>>1,a=e[o];(n?t>=a:t>a)&&null!==a?r=o+1:i=o}return i}return mt(e,t,Eo,n)}function mt(e,t,n,r){t=n(t);for(var i=0,o=e?e.length:0,a=t!==t,s=null===t,u=t===No;o>i;){var l=nu((i+o)/2),c=n(e[l]),f=c!==No,d=c===c;if(a)var p=d||r;else p=s?d&&f&&(r||null!=c):u?d&&(r||f):null==c?!1:r?t>=c:t>c;p?i=l+1:o=l}return uu(o,aa)}function $t(e){return vt(e)}function vt(e,t){for(var n=0,r=e.length,i=e[0],o=t?t(i):i,a=o,s=1,u=[i];++n<r;)i=e[n],o=t?t(i):i,ni(o,a)||(a=o,u[s++]=i);return u}function yt(e,t,n){var r=-1,i=l,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=c;else if(Po>o)u=t?[]:s;else{var f=t?null:Nu(e);if(f)return V(f);a=!1,i=ae,u=new oe}e:for(;++r<o;){var d=e[r],p=t?t(d):d;if(a&&p===p){for(var h=u.length;h--;)if(u[h]===p)continue e;t&&u.push(p),s.push(d)}else i(u,p,n)||(u!==s&&u.push(p),s.push(d))}return s}function bt(e,t){t=mn(t,e)?[t]:Ee(t),e=Sn(e,t);var n=Bn(t);return null!=e&&oo(e,n)?delete e[n]:!0}function wt(e,t,n,r){return dt(e,t,n(Ue(e,t)),r)}function xt(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?pt(e,r?0:o,r?o+1:i):pt(e,r?o+1:0,r?i:o)}function St(e,t){var n=e;return n instanceof q&&(n=n.value()),p(t,function(e,t){return t.func.apply(t.thisArg,d([e],t.args))},n)}function Ct(e,t,n){for(var r=-1,i=e.length;++r<i;)var o=o?d(Oe(o,e[r],t,n),Oe(e[r],o,t,n)):e[r];return o&&o.length?yt(o,t,n):[]}function kt(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=o>r?t[r]:No;n(a,e[r],s)}return a}function _t(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function At(e){var t=new e.constructor(e.byteLength);return new Xs(t).set(new Xs(e)),t}function Et(e,t){var n=t?At(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Dt(t,n,r){var i=n?r(j(t),!0):j(t);return p(i,e,new t.constructor)}function Tt(e){var t=new e.constructor(e.source,Ja.exec(e));return t.lastIndex=e.lastIndex,t}function Mt(e,n,r){var i=n?r(V(e),!0):V(e);return p(i,t,new e.constructor)}function Ot(e){return _u?Object(_u.call(e)):{}}function Nt(e,t){var n=t?At(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ft(e,t,n,r){for(var i=-1,o=e.length,a=n.length,s=-1,u=t.length,l=su(o-a,0),c=Array(u+l),f=!r;++s<u;)c[s]=t[s];for(;++i<a;)(f||o>i)&&(c[n[i]]=e[i]);for(;l--;)c[s++]=e[i++];return c}function Pt(e,t,n,r){for(var i=-1,o=e.length,a=-1,s=n.length,u=-1,l=t.length,c=su(o-s,0),f=Array(c+l),d=!r;++i<c;)f[i]=e[i];for(var p=i;++u<l;)f[p+u]=t[u];for(;++a<s;)(d||o>i)&&(f[p+n[a]]=e[i++]);return f}function jt(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function It(e,t,n){return Vt(e,t,n)}function Vt(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(n[a],e[a],a,n,e):e[a];we(n,a,s)}return n}function Rt(e,t){return It(e,an(e),t)}function Ut(e,t){return function(n,i){var o=cl(n)?r:xe,a=t?t():{};return o(n,e,en(i),a)}}function Lt(e){return Kr(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:No,a=i>2?n[2]:No;for(o="function"==typeof o?(i--,o):No,a&&gn(n[0],n[1],a)&&(o=3>i?No:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}function Ht(e,t){return function(n,r){if(null==n)return n;if(!si(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function zt(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(n(o[u],u,o)===!1)break}return t}}function qt(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Me(e.prototype),r=e.apply(n,t);return bi(r)?r:n}}function Bt(e,t,n,r,i,o,a,s,u,l){function c(){for(var $=arguments.length,v=$,y=Array($);v--;)y[v]=arguments[v];if(h)var b=rn(c),w=D(y,b);if(r&&(y=Ft(y,r,i,h)),o&&(y=Pt(y,o,a,h)),$-=w,h&&l>$){var x=I(y,b);return Yt(e,t,Bt,c.placeholder,n,y,x,s,u,l-$)}var S=d?n:this,C=p?S[e]:e;return $=y.length,s?y=Cn(y,s):g&&$>1&&y.reverse(),f&&$>u&&(y.length=u),this&&this!==Is&&this instanceof c&&(C=m||qt(C)),C.apply(S,y)}var f=t&Wo,d=t&Ro,p=t&Uo,h=t&(Ho|zo),g=t&Yo,m=p?No:qt(e);return c}function Wt(e,t){return function(n,r){return Be(n,e,t(r),{})}}function Yt(e,t,n,r,i,o,a,s,u,l){var c=t&Ho,f=s?jt(s):No,d=c?a:No,p=c?No:a,h=c?o:No,g=c?No:o;t|=c?qo:Bo,t&=~(c?Bo:qo),t&Lo||(t&=~(Ro|Uo));var m=[e,t,i,h,d,g,p,f,u,l],$=n.apply(No,m);return vn(e)&&Iu($,m),$.placeholder=r,$}function Xt(e,t,n,r,i,o){var a=-1,s=i&Go,u=i&Xo,l=e.length,c=t.length;if(!(l==c||s&&c>l))return!1;var f=o.get(e);if(f)return f==t;var d=!0;for(o.set(e,t);++a<l;){var p=e[a],h=t[a];if(r)var m=s?r(h,p,a,t,e,o):r(p,h,a,e,t,o);if(m!==No){if(m)continue;d=!1;break}if(u){if(!g(t,function(e){return p===e||n(p,e,r,i,o)})){d=!1;break}}else if(p!==h&&!n(p,h,r,i,o)){d=!1;break}}return o["delete"](e),d}function Gt(e,t,n,r,i,o,a){switch(n){case _a:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ka:return!(e.byteLength!=t.byteLength||!r(new Xs(e),new Xs(t)));case ca:case fa:return+e==+t;case da:return e.name==t.name&&e.message==t.message;case ma:return e!=+e?t!=+t:e==+t;case ya:case wa:return e==t+"";case ga:var s=j;case ba:var u=o&Go;if(s||(s=V),e.size!=t.size&&!u)return!1;var l=a.get(e);return l?l==t:(o|=Xo,a.set(e,t),Xt(s(e),s(t),r,i,o,a));case xa:if(_u)return _u.call(e)==_u.call(t)}return!1}function Kt(e,t,n,r,i,o){var a=i&Go,s=so(e),u=s.length,l=so(t),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var d=s[f];if(!(a?d in t:He(t,d)))return!1}var p=o.get(e);if(p)return p==t;var h=!0;o.set(e,t);for(var g=a;++f<u;){d=s[f];var m=e[d],$=t[d];if(r)var v=a?r($,m,d,t,e,o):r(m,$,d,e,t,o);if(!(v===No?m===$||n(m,$,r,i,o):v)){h=!1;break}g||(g="constructor"==d)}if(h&&!g){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(h=!1)}return o["delete"](e),h}function Jt(e){return Le(e,so,an)}function Zt(e){return Le(e,uo,ju)}function Qt(e){for(var t=e.name+"",n=yu[t],r=Ls.call(yu,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function en(){var e=L.iteratee||Do;return e=e===Do?Ke:e,arguments.length?e(arguments[0],arguments[1]):e}function tn(e){for(var t=$o(e),n=t.length;n--;)t[n][2]=bn(t[n][1]);return t}function nn(e,t){var n=e[t];return _i(n)?n:No}function rn(e){var t=Ls.call(L,"placeholder")?L:e;return t.placeholder}function on(e){return ru(Object(e))}function an(e){return Ks(Object(e))}function sn(e){return zs.call(e)}function un(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=uu(t,e+a);break;case"takeRight":e=su(e,t-a)}}return{start:e,end:t}}function ln(e,t,n){t=mn(t,e)?[t]:Ee(t);for(var r,i=-1,o=t.length;++i<o;){var a=t[i];if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;var o=e?e.length:0;return!!o&&yi(o)&&F(a,o)&&(cl(e)||Fi(e)||oi(e))}function cn(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Ls.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function fn(e){return"function"!=typeof e.constructor||yn(e)?{}:Me(on(e))}function dn(e,t,n,r){var i=e.constructor;switch(t){case ka:return At(e);case ca:case fa:return new i(+e);case _a:return Et(e,r);case Aa:case Ea:case Da:case Ta:case Ma:case Oa:case Na:case Fa:case Pa:return Nt(e,r);case ga:return Dt(e,r,n);case ma:case wa:return new i(e);case ya:return Tt(e);case ba:return Mt(e,r,n);case xa:return Ot(e)}}function pn(e){var t=e?e.length:No;return yi(t)&&(cl(e)||Fi(e)||oi(e))?x(t,String):null}function hn(e){return ui(e)&&(cl(e)||oi(e))}function gn(e,t,n){if(!bi(n))return!1;var r=typeof t;return("number"==r?si(n)&&F(t,n.length):"string"==r&&t in n)?ni(n[t],e):!1}function mn(e,t){var n=typeof e;return"number"==n||"symbol"==n?!0:!cl(e)&&(Pi(e)||Ba.test(e)||!qa.test(e)||null!=t&&e in Object(t))}function $n(e){var t=typeof e;return"number"==t||"boolean"==t||"string"==t&&"__proto__"!=e||null==e}function vn(e){var t=Qt(e),n=L[t];if("function"!=typeof n||!(t in q.prototype))return!1;if(e===n)return!0;var r=Fu(n);return!!r&&e===r[0]}function yn(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||Rs;return e===n}function bn(e){return e===e&&!bi(e)}function wn(e,t){return function(n){return null==n?!1:n[e]===t&&(t!==No||e in Object(n))}}function xn(e,t,n,r,i,o){return bi(e)&&bi(t)&&nt(e,t,No,xn,o.set(t,e)),e}function Sn(e,t){return 1==t.length?e:Ue(e,pt(t,0,-1))}function Cn(e,t){for(var n=e.length,r=uu(t.length,n),i=jt(e);r--;){var o=t[r];e[r]=F(o,n)?i[o]:No}return e}function kn(e){if(null!=e){try{return Us.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function _n(e){if(e instanceof q)return e.clone();var t=new z(e.__wrapped__,e.__chain__);return t.__actions__=jt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function An(e,t,n){t=(n?gn(e,t,n):t===No)?1:su(zi(t),0);var r=e?e.length:0;if(!r||1>t)return[];for(var i=0,o=0,a=Array(tu(r/t));r>i;)a[o++]=pt(e,i,i+=t);return a}function En(e){for(var t=-1,n=e?e.length:0,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i}function Dn(){var e=arguments.length,t=Jr(arguments[0]);if(2>e)return e?jt(t):[];for(var n=Array(e-1);e--;)n[e-1]=arguments[e];return i(t,je(n,1))}function Tn(e,t,n){var r=e?e.length:0;return r?(t=n||t===No?1:zi(t),pt(e,0>t?0:t,r)):[]}function Mn(e,t,n){var r=e?e.length:0;return r?(t=n||t===No?1:zi(t),t=r-t,pt(e,0,0>t?0:t)):[]}function On(e,t){return e&&e.length?xt(e,en(t,3),!0,!0):[]}function Nn(e,t){return e&&e.length?xt(e,en(t,3),!0):[]}function Fn(e,t,n,r){var i=e?e.length:0;return i?(n&&"number"!=typeof n&&gn(e,t,n)&&(n=0,r=i),Fe(e,t,n,r)):[]}function Pn(e,t){return e&&e.length?$(e,en(t,3)):-1}function jn(e,t){return e&&e.length?$(e,en(t,3),!0):-1}function In(e){var t=e?e.length:0;return t?je(e,1):[]}function Vn(e){var t=e?e.length:0;return t?je(e,ta):[]}function Rn(e,t){var n=e?e.length:0;return n?(t=t===No?1:zi(t),je(e,t)):[]}function Un(e){for(var t=-1,n=e?e.length:0,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function Ln(e){return e?e[0]:No}function Hn(e,t,n){var r=e?e.length:0;return r?(n=zi(n),0>n&&(n=su(r+n,0)),v(e,t,n)):-1}function zn(e){return Mn(e,1)}function qn(e,t){return e?ou.call(e,t):""}function Bn(e){var t=e?e.length:0;return t?e[t-1]:No}function Wn(e,t,n){var r=e?e.length:0;if(!r)return-1;var i=r;if(n!==No&&(i=zi(n),i=(0>i?su(r+i,0):uu(i,r-1))+1),t!==t)return O(e,i,!0);for(;i--;)if(e[i]===t)return i;return-1}function Yn(e,t){return e&&e.length&&t&&t.length?lt(e,t):e}function Xn(e,t,n){return e&&e.length&&t&&t.length?lt(e,t,en(n)):e}function Gn(e,t,n){return e&&e.length&&t&&t.length?lt(e,t,No,n):e}function Kn(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=en(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return ct(e,i),n}function Jn(e){return e?cu.call(e):e}function Zn(e,t,n){var r=e?e.length:0;return r?(n&&"number"!=typeof n&&gn(e,t,n)?(t=0,n=r):(t=null==t?0:zi(t),n=n===No?r:zi(n)),pt(e,t,n)):[]}function Qn(e,t){return gt(e,t)}function er(e,t,n){return mt(e,t,en(n))}function tr(e,t){var n=e?e.length:0;if(n){var r=gt(e,t);if(n>r&&ni(e[r],t))return r}return-1}function nr(e,t){return gt(e,t,!0)}function rr(e,t,n){return mt(e,t,en(n),!0)}function ir(e,t){var n=e?e.length:0;if(n){var r=gt(e,t,!0)-1;if(ni(e[r],t))return r}return-1}function or(e){return e&&e.length?$t(e):[]}function ar(e,t){return e&&e.length?vt(e,en(t)):[]}function sr(e){return Tn(e,1)}function ur(e,t,n){return e&&e.length?(t=n||t===No?1:zi(t),pt(e,0,0>t?0:t)):[]}function lr(e,t,n){var r=e?e.length:0;return r?(t=n||t===No?1:zi(t),t=r-t,pt(e,0>t?0:t,r)):[]}function cr(e,t){return e&&e.length?xt(e,en(t,3),!1,!0):[]}function fr(e,t){return e&&e.length?xt(e,en(t,3)):[]}function dr(e){return e&&e.length?yt(e):[]}function pr(e,t){return e&&e.length?yt(e,en(t)):[]}function hr(e,t){return e&&e.length?yt(e,No,t):[]}function gr(e){if(!e||!e.length)return[];var t=0;return e=u(e,function(e){return ui(e)?(t=su(e.length,t),!0):No}),x(t,function(t){return f(e,st(t))})}function mr(e,t){if(!e||!e.length)return[];var r=gr(e);return null==t?r:f(r,function(e){return n(t,No,e)})}function $r(e,t){return kt(e||[],t||[],we)}function vr(e,t){return kt(e||[],t||[],dt)}function yr(e){var t=L(e);return t.__chain__=!0,t}function br(e,t){return t(e),e}function wr(e,t){return t(e)}function xr(){return yr(this)}function Sr(){return new z(this.value(),this.__chain__)}function Cr(){this.__values__===No&&(this.__values__=Hi(this.value()));var e=this.__index__>=this.__values__.length,t=e?No:this.__values__[this.__index__++];return{done:e,value:t}}function kr(){return this}function _r(e){for(var t,n=this;n instanceof H;){var r=_n(n);r.__index__=0,r.__values__=No,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function Ar(){var e=this.__wrapped__;if(e instanceof q){var t=e;return this.__actions__.length&&(t=new q(this)),t=t.reverse(),t.__actions__.push({func:wr,args:[Jn],thisArg:No}),new z(t,this.__chain__)}return this.thru(Jn)}function Er(){return St(this.__wrapped__,this.__actions__)}function Dr(e,t,n){var r=cl(e)?s:Ne;return n&&gn(e,t,n)&&(t=No),r(e,en(t,3))}function Tr(e,t){var n=cl(e)?u:Pe;return n(e,en(t,3))}function Mr(e,t){if(t=en(t,3),cl(e)){var n=$(e,t);return n>-1?e[n]:No}return m(e,t,Eu)}function Or(e,t){if(t=en(t,3),cl(e)){var n=$(e,t,!0);return n>-1?e[n]:No}return m(e,t,Du)}function Nr(e,t){return je(Rr(e,t),1)}function Fr(e,t){return je(Rr(e,t),ta)}function Pr(e,t,n){return n=n===No?1:zi(n),je(Rr(e,t),n)}function jr(e,t){return"function"==typeof t&&cl(e)?o(e,t):Eu(e,en(t))}function Ir(e,t){return"function"==typeof t&&cl(e)?a(e,t):Du(e,en(t))}function Vr(e,t,n,r){e=si(e)?e:So(e),n=n&&!r?zi(n):0;var i=e.length;return 0>n&&(n=su(i+n,0)),Fi(e)?i>=n&&e.indexOf(t,n)>-1:!!i&&v(e,t,n)>-1}function Rr(e,t){var n=cl(e)?f:Qe;return n(e,en(t,3))}function Ur(e,t,n,r){return null==e?[]:(cl(t)||(t=null==t?[]:[t]),n=r?No:n,cl(n)||(n=null==n?[]:[n]),it(e,t,n))}function Lr(e,t,n){var r=cl(e)?p:b,i=3>arguments.length;return r(e,en(t,4),n,i,Eu)}function Hr(e,t,n){var r=cl(e)?h:b,i=3>arguments.length;return r(e,en(t,4),n,i,Du)}function zr(e,t){var n=cl(e)?u:Pe;return t=en(t,3),n(e,function(e,n,r){return!t(e,n,r)})}function qr(e){var t=si(e)?e:So(e),n=t.length;return n>0?t[ft(0,n-1)]:No}function Br(e,t,n){var r=-1,i=Hi(e),o=i.length,a=o-1;for(t=(n?gn(e,t,n):t===No)?1:De(zi(t),0,o);++r<t;){var s=ft(r,a),u=i[s];i[s]=i[r],i[r]=u}return i.length=t,i}function Wr(e){return Br(e,oa)}function Yr(e){if(null==e)return 0;if(si(e)){var t=e.length;return t&&Fi(e)?R(e):t}if(wi(e)){var n=sn(e);if(n==ga||n==ba)return e.size}return so(e).length}function Xr(e,t,n){var r=cl(e)?g:ht;return n&&gn(e,t,n)&&(t=No),r(e,en(t,3))}function Gr(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(jo);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(Gr.Cache||Q),n}function Kr(e,t){if("function"!=typeof e)throw new TypeError(jo);return t=su(t===No?e.length-1:zi(t),0),function(){for(var r=arguments,i=-1,o=su(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,r[0],a);case 2:return e.call(this,r[0],r[1],a)}var s=Array(t+1);for(i=-1;++i<t;)s[i]=r[i];return s[t]=a,n(e,this,s)}}function Jr(){if(!arguments.length)return[];var e=arguments[0];return cl(e)?e:[e]}function Zr(e){return Te(e,!1,!0)}function Qr(e,t){return Te(e,!1,!0,t)}function ei(e){return Te(e,!0,!0)}function ti(e,t){return Te(e,!0,!0,t)}function ni(e,t){return e===t||e!==e&&t!==t}function ri(e,t){return e>t}function ii(e,t){return e>=t}function oi(e){return ui(e)&&Ls.call(e,"callee")&&(!Qs.call(e,"callee")||zs.call(e)==ua)}function ai(e){return wi(e)&&zs.call(e)==ka}function si(e){return null!=e&&yi(Pu(e))&&!$i(e)}function ui(e){return wi(e)&&si(e)}function li(e){return e===!0||e===!1||wi(e)&&zs.call(e)==ca}function ci(e){return wi(e)&&zs.call(e)==fa}function fi(e){return!!e&&1===e.nodeType&&wi(e)&&!Ti(e)}function di(e){if(si(e)&&(cl(e)||Fi(e)||$i(e.splice)||oi(e)||fl(e)))return!e.length;if(wi(e)){var t=sn(e);if(t==ga||t==ba)return!e.size}for(var n in e)if(Ls.call(e,n))return!1;return!(vu&&so(e).length)}function pi(e,t){return Ye(e,t)}function hi(e,t,n){n="function"==typeof n?n:No;var r=n?n(e,t):No;return r===No?Ye(e,t,n):!!r}function gi(e){return wi(e)?zs.call(e)==da||"string"==typeof e.message&&"string"==typeof e.name:!1}function mi(e){return"number"==typeof e&&iu(e)}function $i(e){var t=bi(e)?zs.call(e):"";return t==pa||t==ha}function vi(e){return"number"==typeof e&&e==zi(e)}function yi(e){return"number"==typeof e&&e>-1&&e%1==0&&na>=e}function bi(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function wi(e){return!!e&&"object"==typeof e}function xi(e){return wi(e)&&sn(e)==ga}function Si(e,t){return e===t||Ge(e,t,tn(t))}function Ci(e,t,n){return n="function"==typeof n?n:No,Ge(e,t,tn(t),n)}function ki(e){return Di(e)&&e!=+e}function _i(e){if(!bi(e))return!1;var t=$i(e)||N(e)?qs:es;return t.test(kn(e))}function Ai(e){return null===e}function Ei(e){return null==e}function Di(e){return"number"==typeof e||wi(e)&&zs.call(e)==ma}function Ti(e){if(!wi(e)||zs.call(e)!=$a||N(e))return!1;var t=on(e);if(null===t)return!0;var n=Ls.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Us.call(n)==Hs}function Mi(e){return bi(e)&&zs.call(e)==ya}function Oi(e){return vi(e)&&e>=-na&&na>=e}function Ni(e){return wi(e)&&sn(e)==ba}function Fi(e){return"string"==typeof e||!cl(e)&&wi(e)&&zs.call(e)==wa}function Pi(e){return"symbol"==typeof e||wi(e)&&zs.call(e)==xa}function ji(e){return wi(e)&&yi(e.length)&&!!Cs[zs.call(e)]}function Ii(e){return e===No}function Vi(e){return wi(e)&&sn(e)==Sa}function Ri(e){return wi(e)&&zs.call(e)==Ca}function Ui(e,t){return t>e}function Li(e,t){return t>=e}function Hi(e){if(!e)return[];if(si(e))return Fi(e)?U(e):jt(e);if(Js&&e[Js])return P(e[Js]());var t=sn(e),n=t==ga?j:t==ba?V:So;return n(e)}function zi(e){if(!e)return 0===e?e:0;if(e=Bi(e),e===ta||e===-ta){var t=0>e?-1:1;return t*ra}var n=e%1;return e===e?n?e-n:e:0}function qi(e){return e?De(zi(e),0,oa):0}function Bi(e){if("number"==typeof e)return e;if(Pi(e))return ia;if(bi(e)){var t=$i(e.valueOf)?e.valueOf():e;e=bi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Xa,"");var n=Qa.test(e);return n||ts.test(e)?Ds(e.slice(2),n?2:8):Za.test(e)?ia:+e}function Wi(e){return It(e,uo(e))}function Yi(e){return De(zi(e),-na,na)}function Xi(e){if("string"==typeof e)return e;if(null==e)return"";if(Pi(e))return Au?Au.call(e):"";var t=e+"";return"0"==t&&1/e==-ta?"-0":t}function Gi(e,t){var n=Me(e);return t?Se(n,t):n}function Ki(e,t){return m(e,en(t,3),Ie,!0)}function Ji(e,t){return m(e,en(t,3),Ve,!0)}function Zi(e,t){return null==e?e:Tu(e,en(t),uo)}function Qi(e,t){return null==e?e:Mu(e,en(t),uo)}function eo(e,t){return e&&Ie(e,en(t))}function to(e,t){return e&&Ve(e,en(t))}function no(e){return null==e?[]:Re(e,so(e))}function ro(e){return null==e?[]:Re(e,uo(e))}function io(e,t,n){var r=null==e?No:Ue(e,t);return r===No?n:r}function oo(e,t){return null!=e&&ln(e,t,He)}function ao(e,t){return null!=e&&ln(e,t,ze)}function so(e){var t=yn(e);if(!t&&!si(e))return Je(e);var n=pn(e),r=!!n,i=n||[],o=i.length;for(var a in e)!He(e,a)||r&&("length"==a||F(a,o))||t&&"constructor"==a||i.push(a);return i}function uo(e){for(var t=-1,n=yn(e),r=Ze(e),i=r.length,o=pn(e),a=!!o,s=o||[],u=s.length;++t<i;){var l=r[t];a&&("length"==l||F(l,u))||"constructor"==l&&(n||!Ls.call(e,l))||s.push(l)}return s}function lo(e,t){var n={};return t=en(t,3),Ie(e,function(e,r,i){n[t(e,r,i)]=e}),n}function co(e,t){var n={};return t=en(t,3),Ie(e,function(e,r,i){n[r]=t(e,r,i)}),n}function fo(e,t){return t=en(t),at(e,function(e,n){return!t(e,n)})}function po(e,t){return null==e?{}:at(e,en(t))}function ho(e,t,n){t=mn(t,e)?[t]:Ee(t);var r=-1,i=t.length;for(i||(e=No,i=1);++r<i;){var o=null==e?No:e[t[r]];o===No&&(r=i,o=n),e=$i(o)?o.call(e):o}return e}function go(e,t,n){return null==e?e:dt(e,t,n)}function mo(e,t,n,r){return r="function"==typeof r?r:No,null==e?e:dt(e,t,n,r)}function $o(e){return S(e,so(e))}function vo(e){return S(e,uo(e))}function yo(e,t,n){var r=cl(e)||ji(e);if(t=en(t,4),null==n)if(r||bi(e)){var i=e.constructor;n=r?cl(e)?new i:[]:$i(i)?Me(on(e)):{}}else n={};return(r?o:Ie)(e,function(e,r,i){return t(n,e,r,i)}),n}function bo(e,t){return null==e?!0:bt(e,t)}function wo(e,t,n){return null==e?e:wt(e,t,_e(n))}function xo(e,t,n,r){return r="function"==typeof r?r:No,null==e?e:wt(e,t,_e(n),r)}function So(e){return e?k(e,so(e)):[]}function Co(e){return null==e?[]:k(e,uo(e))}function ko(e){return e=Xi(e),e&&Ua.test(e)?e.replace(Ra,T):e}function _o(e,t,n){var r=L.templateSettings;n&&gn(e,t,n)&&(t=No),e=Xi(e),t=hl({},t,r,ye);var i,o,a=hl({},t.imports,r.imports,ye),s=so(a),u=k(a,s),l=0,c=t.interpolate||rs,f="__p+='",d=RegExp((t.escape||rs).source+"|"+c.source+"|"+(c===za?Ka:rs).source+"|"+(t.evaluate||rs).source+"|$","g"),p="sourceURL"in t?"//# sourceURL="+t.sourceURL+"\n":"";e.replace(d,function(t,n,r,a,s,u){return r||(r=a),f+=e.slice(l,u).replace(is,M),n&&(i=!0,f+="'+__e("+n+")+'"),s&&(o=!0,f+="';"+s+";\n__p+='"),r&&(f+="'+((__t=("+r+"))==null?'':__t)+'"),l=u+t.length,t}),f+="';";var h=t.variable;h||(f="with(obj){"+f+"}"),f=(o?f.replace(ja,""):f).replace(Ia,"$1").replace(Va,"$1;"),f="function("+(h||"obj")+"){"+(h?"":"obj||(obj={});")+"var __t,__p=''"+(i?",__e=_.escape":"")+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+f+"return __p}";var g=_l(function(){return Function(s,p+"return "+f).apply(No,u)});if(g.source=f,gi(g))throw g;return g}function Ao(e){return function(){return e}}function Eo(e){return e}function Do(e){return Ke("function"==typeof e?e:Te(e,!0))}function To(e,t,n){var r=so(t),i=Re(t,r);null!=n||bi(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Re(t,so(t)));var a=bi(n)&&"chain"in n?n.chain:!0,s=$i(e);return o(i,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),i=n.__actions__=jt(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,d([this.value()],arguments))})}),e}function Mo(){}function Oo(e){return mn(e)?st(e):ut(e)}var No,Fo="4.9.0",Po=200,jo="Expected a function",Io="__lodash_hash_undefined__",Vo="__lodash_placeholder__",Ro=1,Uo=2,Lo=4,Ho=8,zo=16,qo=32,Bo=64,Wo=128,Yo=512,Xo=1,Go=2,Ko=150,Jo=16,Zo=1,Qo=2,ea=3,ta=1/0,na=9007199254740991,ra=1.7976931348623157e308,ia=NaN,oa=4294967295,aa=oa-1,sa=oa>>>1,ua="[object Arguments]",la="[object Array]",ca="[object Boolean]",fa="[object Date]",da="[object Error]",pa="[object Function]",ha="[object GeneratorFunction]",ga="[object Map]",ma="[object Number]",$a="[object Object]",va="[object Promise]",ya="[object RegExp]",ba="[object Set]",wa="[object String]",xa="[object Symbol]",Sa="[object WeakMap]",Ca="[object WeakSet]",ka="[object ArrayBuffer]",_a="[object DataView]",Aa="[object Float32Array]",Ea="[object Float64Array]",Da="[object Int8Array]",Ta="[object Int16Array]",Ma="[object Int32Array]",Oa="[object Uint8Array]",Na="[object Uint8ClampedArray]",Fa="[object Uint16Array]",Pa="[object Uint32Array]",ja=/\b__p\+='';/g,Ia=/\b(__p\+=)''\+/g,Va=/(__e\(.*?\)|\b__t\))\+'';/g,Ra=/[&<>"'`]/g,Ua=RegExp(Ra.source),La=/<%-([\s\S]+?)%>/g,Ha=/<%([\s\S]+?)%>/g,za=/<%=([\s\S]+?)%>/g,qa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ba=/^\w*$/,Wa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,Ya=/[\\^$.*+?()[\]{}|]/g,Xa=/^\s+|\s+$/g,Ga=/\\(\\)?/g,Ka=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ja=/\w*$/,Za=/^[-+]0x[0-9a-f]+$/i,Qa=/^0b[01]+$/i,es=/^\[object .+?Constructor\]$/,ts=/^0o[0-7]+$/i,ns=/^(?:0|[1-9]\d*)$/,rs=/($^)/,is=/['\n\r\u2028\u2029\\]/g,os="\\ud800-\\udfff",as="\\u0300-\\u036f\\ufe20-\\ufe23",ss="\\u20d0-\\u20f0",us="\\ufe0e\\ufe0f",ls="["+os+"]",cs="["+as+ss+"]",fs="\\ud83c[\\udffb-\\udfff]",ds="(?:"+cs+"|"+fs+")",ps="[^"+os+"]",hs="(?:\\ud83c[\\udde6-\\uddff]){2}",gs="[\\ud800-\\udbff][\\udc00-\\udfff]",ms="\\u200d",$s=ds+"?",vs="["+us+"]?",ys="(?:"+ms+"(?:"+[ps,hs,gs].join("|")+")"+vs+$s+")*",bs=vs+$s+ys,ws="(?:"+[ps+cs+"?",cs,hs,gs,ls].join("|")+")",xs=RegExp(fs+"(?="+fs+")|"+ws+bs,"g"),Ss=RegExp("["+ms+os+as+ss+us+"]"),Cs={};
-Cs[Aa]=Cs[Ea]=Cs[Da]=Cs[Ta]=Cs[Ma]=Cs[Oa]=Cs[Na]=Cs[Fa]=Cs[Pa]=!0,Cs[ua]=Cs[la]=Cs[ka]=Cs[ca]=Cs[_a]=Cs[fa]=Cs[da]=Cs[pa]=Cs[ga]=Cs[ma]=Cs[$a]=Cs[ya]=Cs[ba]=Cs[wa]=Cs[Sa]=!1;var ks={};ks[ua]=ks[la]=ks[ka]=ks[_a]=ks[ca]=ks[fa]=ks[Aa]=ks[Ea]=ks[Da]=ks[Ta]=ks[Ma]=ks[ga]=ks[ma]=ks[$a]=ks[ya]=ks[ba]=ks[wa]=ks[xa]=ks[Oa]=ks[Na]=ks[Fa]=ks[Pa]=!0,ks[da]=ks[pa]=ks[Sa]=!1;var _s={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},As={"function":!0,object:!0},Es={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ds=parseInt,Ts=As[typeof exports]&&exports&&!exports.nodeType?exports:No,Ms=As[typeof module]&&module&&!module.nodeType?module:No,Os=Ms&&Ms.exports===Ts?Ts:No,Ns=_(Ts&&Ms&&"object"==typeof global&&global),Fs=_(As[typeof self]&&self),Ps=_(As[typeof window]&&window),js=_(As[typeof this]&&this),Is=Ns||Ps!==(js&&js.window)&&Ps||Fs||js||Function("return this")(),Vs=Array.prototype,Rs=Object.prototype,Us=Function.prototype.toString,Ls=Rs.hasOwnProperty,Hs=Us.call(Object),zs=Rs.toString,qs=RegExp("^"+Us.call(Ls).replace(Ya,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bs=Os?Is.Buffer:No,Ws=Is.Reflect,Ys=Is.Symbol,Xs=Is.Uint8Array,Gs=Ws?Ws.enumerate:No,Ks=Object.getOwnPropertySymbols,Js="symbol"==typeof(Js=Ys&&Ys.iterator)?Js:No,Zs=Object.create,Qs=Rs.propertyIsEnumerable,eu=Vs.splice,tu=Math.ceil,nu=Math.floor,ru=Object.getPrototypeOf,iu=Is.isFinite,ou=Vs.join,au=Object.keys,su=Math.max,uu=Math.min,lu=Math.random,cu=Vs.reverse,fu=nn(Is,"DataView"),du=nn(Is,"Map"),pu=nn(Is,"Promise"),hu=nn(Is,"Set"),gu=nn(Is,"WeakMap"),mu=nn(Object,"create"),$u=gu&&new gu,vu=!Qs.call({valueOf:1},"valueOf"),yu={},bu=kn(fu),wu=kn(du),xu=kn(pu),Su=kn(hu),Cu=kn(gu),ku=Ys?Ys.prototype:No,_u=ku?ku.valueOf:No,Au=ku?ku.toString:No;L.templateSettings={escape:La,evaluate:Ha,interpolate:za,variable:"",imports:{_:L}},L.prototype=H.prototype,L.prototype.constructor=L,z.prototype=Me(H.prototype),z.prototype.constructor=z,q.prototype=Me(H.prototype),q.prototype.constructor=q,X.prototype=mu?mu(null):Rs,Q.prototype.clear=ee,Q.prototype["delete"]=te,Q.prototype.get=ne,Q.prototype.has=re,Q.prototype.set=ie,oe.prototype.push=se,ue.prototype.clear=le,ue.prototype["delete"]=ce,ue.prototype.get=fe,ue.prototype.has=de,ue.prototype.set=pe;var Eu=Ht(Ie),Du=Ht(Ve,!0),Tu=zt(),Mu=zt(!0);Gs&&!Qs.call({valueOf:1},"valueOf")&&(Ze=function(e){return P(Gs(e))});var Ou=$u?function(e,t){return $u.set(e,t),e}:Eo,Nu=hu&&2===new hu([1,2]).size?function(e){return new hu(e)}:Mo,Fu=$u?function(e){return $u.get(e)}:Mo,Pu=st("length");Ks||(an=function(){return[]});var ju=Ks?function(e){for(var t=[];e;)d(t,an(e)),e=on(e);return t}:an;(fu&&sn(new fu(new ArrayBuffer(1)))!=_a||du&&sn(new du)!=ga||pu&&sn(pu.resolve())!=va||hu&&sn(new hu)!=ba||gu&&sn(new gu)!=Sa)&&(sn=function(e){var t=zs.call(e),n=t==$a?e.constructor:No,r=n?kn(n):No;if(r)switch(r){case bu:return _a;case wu:return ga;case xu:return va;case Su:return ba;case Cu:return Sa}return t});var Iu=function(){var e=0,t=0;return function(n,r){var i=ll(),o=Jo-(i-t);if(t=i,o>0){if(++e>=Ko)return n}else e=0;return Ou(n,r)}}(),Vu=Gr(function(e){var t=[];return Xi(e).replace(Wa,function(e,n,r,i){t.push(r?i.replace(Ga,"$1"):n||e)}),t}),Ru=Kr(function(e,t){return ui(e)?Oe(e,je(t,1,ui,!0)):[]}),Uu=Kr(function(e,t){var n=Bn(t);return ui(n)&&(n=No),ui(e)?Oe(e,je(t,1,ui,!0),en(n)):[]}),Lu=Kr(function(e,t){var n=Bn(t);return ui(n)&&(n=No),ui(e)?Oe(e,je(t,1,ui,!0),No,n):[]}),Hu=Kr(function(e){var t=f(e,ke);return t.length&&t[0]===e[0]?qe(t):[]}),zu=Kr(function(e){var t=Bn(e),n=f(e,ke);return t===Bn(n)?t=No:n.pop(),n.length&&n[0]===e[0]?qe(n,en(t)):[]}),qu=Kr(function(e){var t=Bn(e),n=f(e,ke);return t===Bn(n)?t=No:n.pop(),n.length&&n[0]===e[0]?qe(n,No,t):[]}),Bu=Kr(Yn),Wu=Kr(function(e,t){t=f(je(t,1),String);var n=Ce(e,t);return ct(e,t.sort(A)),n}),Yu=Kr(function(e){return yt(je(e,1,ui,!0))}),Xu=Kr(function(e){var t=Bn(e);return ui(t)&&(t=No),yt(je(e,1,ui,!0),en(t))}),Gu=Kr(function(e){var t=Bn(e);return ui(t)&&(t=No),yt(je(e,1,ui,!0),No,t)}),Ku=Kr(function(e,t){return ui(e)?Oe(e,t):[]}),Ju=Kr(function(e){return Ct(u(e,ui))}),Zu=Kr(function(e){var t=Bn(e);return ui(t)&&(t=No),Ct(u(e,ui),en(t))}),Qu=Kr(function(e){var t=Bn(e);return ui(t)&&(t=No),Ct(u(e,ui),No,t)}),el=Kr(gr),tl=Kr(function(e){var t=e.length,n=t>1?e[t-1]:No;return n="function"==typeof n?(e.pop(),n):No,mr(e,n)}),nl=Kr(function(e){e=je(e,1);var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Ce(t,e)};return 1>=t&&!this.__actions__.length&&r instanceof q&&F(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:wr,args:[i],thisArg:No}),new z(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(No),e})):this.thru(i)}),rl=Ut(function(e,t,n){Ls.call(e,n)?++e[n]:e[n]=1}),il=Ut(function(e,t,n){Ls.call(e,n)?e[n].push(t):e[n]=[t]}),ol=Kr(function(e,t,r){var i=-1,o="function"==typeof t,a=mn(t),s=si(e)?Array(e.length):[];return Eu(e,function(e){var u=o?t:a&&null!=e?e[t]:No;s[++i]=u?n(u,e,r):We(e,t,r)}),s}),al=Ut(function(e,t,n){e[n]=t}),sl=Ut(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ul=Kr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&gn(e,t[0],t[1])?t=[]:n>2&&gn(t[0],t[1],t[2])&&(t.length=1),it(e,je(t,1),[])}),ll=Date.now;Gr.Cache=Q;var cl=Array.isArray,fl=Bs?function(e){return e instanceof Bs}:Ao(!1),dl=Lt(function(e,t){if(vu||yn(t)||si(t))return It(t,so(t),e),No;for(var n in t)Ls.call(t,n)&&we(e,n,t[n])}),pl=Lt(function(e,t){if(vu||yn(t)||si(t))return It(t,uo(t),e),No;for(var n in t)we(e,n,t[n])}),hl=Lt(function(e,t,n,r){Vt(t,uo(t),e,r)}),gl=Lt(function(e,t,n,r){Vt(t,so(t),e,r)}),ml=Kr(function(e,t){return Ce(e,je(t,1))}),$l=Kr(function(e){return e.push(No,ye),n(hl,No,e)}),vl=Kr(function(e){return e.push(No,xn),n(Sl,No,e)}),yl=Wt(function(e,t,n){e[t]=n},Ao(Eo)),bl=Wt(function(e,t,n){Ls.call(e,t)?e[t].push(n):e[t]=[n]},en),wl=Kr(We),xl=Lt(function(e,t,n){nt(e,t,n)}),Sl=Lt(function(e,t,n,r){nt(e,t,n,r)}),Cl=Kr(function(e,t){return null==e?{}:(t=f(je(t,1),Ae),ot(e,Oe(Zt(e),t)))}),kl=Kr(function(e,t){return null==e?{}:ot(e,je(t,1))}),_l=Kr(function(e,t){try{return n(e,No,t)}catch(r){return gi(r)?r:Error(r)}});L.assign=dl,L.assignIn=pl,L.assignInWith=hl,L.assignWith=gl,L.at=ml,L.castArray=Jr,L.chain=yr,L.chunk=An,L.compact=En,L.concat=Dn,L.constant=Ao,L.countBy=rl,L.create=Gi,L.defaults=$l,L.defaultsDeep=vl,L.difference=Ru,L.differenceBy=Uu,L.differenceWith=Lu,L.drop=Tn,L.dropRight=Mn,L.dropRightWhile=On,L.dropWhile=Nn,L.fill=Fn,L.filter=Tr,L.flatMap=Nr,L.flatMapDeep=Fr,L.flatMapDepth=Pr,L.flatten=In,L.flattenDeep=Vn,L.flattenDepth=Rn,L.fromPairs=Un,L.functions=no,L.functionsIn=ro,L.groupBy=il,L.initial=zn,L.intersection=Hu,L.intersectionBy=zu,L.intersectionWith=qu,L.invert=yl,L.invertBy=bl,L.invokeMap=ol,L.iteratee=Do,L.keyBy=al,L.keys=so,L.keysIn=uo,L.map=Rr,L.mapKeys=lo,L.mapValues=co,L.memoize=Gr,L.merge=xl,L.mergeWith=Sl,L.mixin=To,L.omit=Cl,L.omitBy=fo,L.orderBy=Ur,L.partition=sl,L.pick=kl,L.pickBy=po,L.property=Oo,L.pull=Bu,L.pullAll=Yn,L.pullAllBy=Xn,L.pullAllWith=Gn,L.pullAt=Wu,L.reject=zr,L.remove=Kn,L.rest=Kr,L.reverse=Jn,L.sampleSize=Br,L.set=go,L.setWith=mo,L.shuffle=Wr,L.slice=Zn,L.sortBy=ul,L.sortedUniq=or,L.sortedUniqBy=ar,L.tail=sr,L.take=ur,L.takeRight=lr,L.takeRightWhile=cr,L.takeWhile=fr,L.tap=br,L.thru=wr,L.toArray=Hi,L.toPairs=$o,L.toPairsIn=vo,L.toPlainObject=Wi,L.transform=yo,L.union=Yu,L.unionBy=Xu,L.unionWith=Gu,L.uniq=dr,L.uniqBy=pr,L.uniqWith=hr,L.unset=bo,L.unzip=gr,L.unzipWith=mr,L.update=wo,L.updateWith=xo,L.values=So,L.valuesIn=Co,L.without=Ku,L.xor=Ju,L.xorBy=Zu,L.xorWith=Qu,L.zip=el,L.zipObject=$r,L.zipObjectDeep=vr,L.zipWith=tl,L.entries=$o,L.entriesIn=vo,L.extend=pl,L.extendWith=hl,To(L,L),L.attempt=_l,L.clone=Zr,L.cloneDeep=ei,L.cloneDeepWith=ti,L.cloneWith=Qr,L.eq=ni,L.escape=ko,L.every=Dr,L.find=Mr,L.findIndex=Pn,L.findKey=Ki,L.findLast=Or,L.findLastIndex=jn,L.findLastKey=Ji,L.forEach=jr,L.forEachRight=Ir,L.forIn=Zi,L.forInRight=Qi,L.forOwn=eo,L.forOwnRight=to,L.get=io,L.gt=ri,L.gte=ii,L.has=oo,L.hasIn=ao,L.head=Ln,L.identity=Eo,L.includes=Vr,L.indexOf=Hn,L.invoke=wl,L.isArguments=oi,L.isArray=cl,L.isArrayBuffer=ai,L.isArrayLike=si,L.isArrayLikeObject=ui,L.isBoolean=li,L.isBuffer=fl,L.isDate=ci,L.isElement=fi,L.isEmpty=di,L.isEqual=pi,L.isEqualWith=hi,L.isError=gi,L.isFinite=mi,L.isFunction=$i,L.isInteger=vi,L.isLength=yi,L.isMap=xi,L.isMatch=Si,L.isMatchWith=Ci,L.isNaN=ki,L.isNative=_i,L.isNil=Ei,L.isNull=Ai,L.isNumber=Di,L.isObject=bi,L.isObjectLike=wi,L.isPlainObject=Ti,L.isRegExp=Mi,L.isSafeInteger=Oi,L.isSet=Ni,L.isString=Fi,L.isSymbol=Pi,L.isTypedArray=ji,L.isUndefined=Ii,L.isWeakMap=Vi,L.isWeakSet=Ri,L.join=qn,L.last=Bn,L.lastIndexOf=Wn,L.lt=Ui,L.lte=Li,L.noop=Mo,L.now=ll,L.reduce=Lr,L.reduceRight=Hr,L.result=ho,L.sample=qr,L.size=Yr,L.some=Xr,L.sortedIndex=Qn,L.sortedIndexBy=er,L.sortedIndexOf=tr,L.sortedLastIndex=nr,L.sortedLastIndexBy=rr,L.sortedLastIndexOf=ir,L.template=_o,L.toInteger=zi,L.toLength=qi,L.toNumber=Bi,L.toSafeInteger=Yi,L.toString=Xi,L.each=jr,L.eachRight=Ir,L.first=Ln,To(L,function(){var e={};return Ie(L,function(t,n){Ls.call(L.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),L.VERSION=Fo,o(["drop","take"],function(e,t){q.prototype[e]=function(n){var r=this.__filtered__;if(r&&!t)return new q(this);n=n===No?1:su(zi(n),0);var i=this.clone();return r?i.__takeCount__=uu(n,i.__takeCount__):i.__views__.push({size:uu(n,oa),type:e+(0>i.__dir__?"Right":"")}),i},q.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),o(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==Zo||n==ea;q.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:en(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),o(["head","last"],function(e,t){var n="take"+(t?"Right":"");q.prototype[e]=function(){return this[n](1).value()[0]}}),o(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");q.prototype[e]=function(){return this.__filtered__?new q(this):this[n](1)}}),q.prototype.compact=function(){return this.filter(Eo)},q.prototype.find=function(e){return this.filter(e).head()},q.prototype.findLast=function(e){return this.reverse().find(e)},q.prototype.invokeMap=Kr(function(e,t){return"function"==typeof e?new q(this):this.map(function(n){return We(n,e,t)})}),q.prototype.reject=function(e){return e=en(e,3),this.filter(function(t){return!e(t)})},q.prototype.slice=function(e,t){e=zi(e);var n=this;return n.__filtered__&&(e>0||0>t)?new q(n):(0>e?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==No&&(t=zi(t),n=0>t?n.dropRight(-t):n.take(t-e)),n)},q.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},q.prototype.toArray=function(){return this.take(oa)},Ie(q.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=L[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(L.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof q,u=a[0],l=s||cl(t),c=function(e){var t=i.apply(L,d([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var f=this.__chain__,p=!!this.__actions__.length,h=o&&!f,g=s&&!p;if(!o&&l){t=g?t:new q(this);var m=e.apply(t,a);return m.__actions__.push({func:wr,args:[c],thisArg:No}),new z(m,f)}return h&&g?e.apply(this,a):(m=this.thru(c),h?r?m.value()[0]:m.value():m)})}),o(["pop","push","shift","sort","splice","unshift"],function(e){var t=Vs[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);L.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(cl(i)?i:[],e)}return this[n](function(n){return t.apply(cl(n)?n:[],e)})}}),Ie(q.prototype,function(e,t){var n=L[t];if(n){var r=n.name+"",i=yu[r]||(yu[r]=[]);i.push({name:t,func:n})}}),yu[Bt(No,Uo).name]=[{name:"wrapper",func:No}],q.prototype.clone=B,q.prototype.reverse=W,q.prototype.value=Y,L.prototype.at=nl,L.prototype.chain=xr,L.prototype.commit=Sr,L.prototype.next=Cr,L.prototype.plant=_r,L.prototype.reverse=Ar,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=Er,Js&&(L.prototype[Js]=kr),(Ps||Fs||{})._=L,"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return L}):Ts&&Ms?(Os&&((Ms.exports=L)._=L),Ts._=L):Is._=L}.call(this);
+!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(r){}}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(o){o.message.indexOf("Access is denied")>-1&&(this.__origError=o,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){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};i.data={},i.files={};for(var 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(e){return"input"===e[0].tagName.toLowerCase()&&e.attr("type")&&"file"===e.attr("type").toLowerCase()}function t(){try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(e)return!0}catch(t){if(void 0!==navigator.mimeTypes["application/x-shockwave-flash"])return!0}return!1}function n(e){var t=0,n=0;if(window.jQuery)return jQuery(e).offset();if(e.offsetParent)do t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent;while(e);return{left:t,top:n}}if(FileAPI.shouldLoad){if(FileAPI.hasFlash=t(),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var r,i,o,a,s,u=document.createElement("script"),l=document.getElementsByTagName("script");if(window.FileAPI.jsUrl)r=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)i=window.FileAPI.jsPath;else for(o=0;o<l.length;o++)if(s=l[o].src,a=s.search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/),a>-1){i=s.substring(0,a+1);break}null==FileAPI.staticPath&&(FileAPI.staticPath=i),u.setAttribute("src",r||i+"FileAPI.min.js"),document.getElementsByTagName("head")[0].appendChild(u)}FileAPI.ngfFixIE=function(r,i,o){if(!t())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';var a=function(){var t=i.parent();r.attr("disabled")?t&&t.removeClass("js-fileapi-wrapper"):(i.attr("__ngf_flash_")||(i.unbind("change"),i.unbind("click"),i.bind("change",function(e){s.apply(this,[e]),o.apply(this,[e])}),i.attr("__ngf_flash_","true")),t.addClass("js-fileapi-wrapper"),e(r)||(t.css("position","absolute").css("top",n(r[0]).top+"px").css("left",n(r[0]).left+"px").css("width",r[0].offsetWidth+"px").css("height",r[0].offsetHeight+"px").css("filter","alpha(opacity=0)").css("display",r.css("display")).css("overflow","hidden").css("z-index","900000").css("visibility","visible"),i.css("width",r[0].offsetWidth+"px").css("height",r[0].offsetHeight+"px").css("position","absolute").css("top","0px").css("left","0px")))};r.bind("mouseenter",a);var s=function(e){for(var t=FileAPI.getFiles(e),n=0;n<t.length;n++)void 0===t[n].size&&(t[n].size=0),void 0===t[n].name&&(t[n].name="file"),void 0===t[n].type&&(t[n].type="undefined");e.target||(e.target={}),e.target.files=t,e.target.files!==t&&(e.__files_=t),(e.__files_||e.target.files).item=function(t){return(e.__files_||e.target.files)[t]||null}}},FileAPI.disableFileInput=function(e,t){t?e.removeClass("js-fileapi-wrapper"):e.addClass("js-fileapi-wrapper")}}}(),window.FileReader||(window.FileReader=function(){var e=this,t=!1;this.listeners={},this.addEventListener=function(t,n){e.listeners[t]=e.listeners[t]||[],e.listeners[t].push(n)},this.removeEventListener=function(t,n){e.listeners[t]&&e.listeners[t].splice(e.listeners[t].indexOf(n),1)},this.dispatchEvent=function(t){var n=e.listeners[t.type];if(n)for(var 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){t||(t=!0,e.onloadstart&&e.onloadstart(n("loadstart",r)));var i;"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){"use strict";function t(e,t){return t=t||Error,function(){var n,r,i=2,o=arguments,a=o[0],s="["+(e?e+":":"")+a+"] ",u=o[1];for(s+=u.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1),n=t+i;return n<o.length?$e(o[n]):e}),s+="\nhttp://errors.angularjs.org/1.5.5/"+(e?e+"/":"")+a,r=i,n="?";r<o.length;r++,n="&")s+=n+"p"+(r-i)+"="+encodeURIComponent($e(o[r]));return new t(s)}}function n(e){if(null==e||k(e))return!1;if(Wr(e)||w(e)||Pr&&e instanceof Pr)return!0;var t="length"in Object(e)&&e.length;return x(t)&&(t>=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function r(e,t,i){var o,a;if(e)if(C(e))for(o in e)"prototype"==o||"length"==o||"name"==o||e.hasOwnProperty&&!e.hasOwnProperty(o)||t.call(i,e[o],o,e);else if(Wr(e)||n(e)){var s="object"!=typeof e;for(o=0,a=e.length;a>o;o++)(s||o in e)&&t.call(i,e[o],o,e)}else if(e.forEach&&e.forEach!==r)e.forEach(t,i,e);else if(b(e))for(o in e)t.call(i,e[o],o,e);else if("function"==typeof e.hasOwnProperty)for(o in e)e.hasOwnProperty(o)&&t.call(i,e[o],o,e);else for(o in e)Dr.call(e,o)&&t.call(i,e[o],o,e);return e}function i(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 o(e){return function(t,n){e(n,t)}}function a(){return++Br}function s(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function u(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;o>i;++i){var a=t[i];if(y(a)||C(a))for(var l=Object.keys(a),c=0,f=l.length;f>c;c++){var d=l[c],p=a[d];n&&y(p)?S(p)?e[d]=new Date(p.valueOf()):_(p)?e[d]=new RegExp(p):p.nodeName?e[d]=p.cloneNode(!0):P(p)?e[d]=p.clone():(y(e[d])||(e[d]=Wr(p)?[]:{}),u(e[d],[p],!0)):e[d]=p}}return s(e,r),e}function l(e){return u(e,Vr.call(arguments,1),!1)}function c(e){return u(e,Vr.call(arguments,1),!0)}function f(e){return parseInt(e,10)}function d(e,t){return l(Object.create(e),t)}function p(){}function h(e){return e}function g(e){return function(){return e}}function m(e){return C(e.toString)&&e.toString!==Lr}function v(e){return"undefined"==typeof e}function $(e){return"undefined"!=typeof e}function y(e){return null!==e&&"object"==typeof e}function b(e){return null!==e&&"object"==typeof e&&!Hr(e)}function w(e){return"string"==typeof e}function x(e){return"number"==typeof e}function S(e){return"[object Date]"===Lr.call(e)}function C(e){return"function"==typeof e}function _(e){return"[object RegExp]"===Lr.call(e)}function k(e){return e&&e.window===e}function A(e){return e&&e.$evalAsync&&e.$watch}function E(e){return"[object File]"===Lr.call(e)}function D(e){return"[object FormData]"===Lr.call(e)}function T(e){return"[object Blob]"===Lr.call(e)}function M(e){return"boolean"==typeof e}function O(e){return e&&C(e.then)}function N(e){return e&&x(e.length)&&Yr.test(Lr.call(e))}function F(e){return"[object ArrayBuffer]"===Lr.call(e)}function P(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function I(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}function j(e){return Tr(e.nodeName||e[0]&&e[0].nodeName)}function V(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function R(e,t){function n(e,t){var n,r=t.$$hashKey;if(Wr(e))for(var o=0,a=e.length;a>o;o++)t.push(i(e[o]));else if(b(e))for(n in e)t[n]=i(e[n]);else if(e&&"function"==typeof e.hasOwnProperty)for(n in e)e.hasOwnProperty(n)&&(t[n]=i(e[n]));else for(n in e)Dr.call(e,n)&&(t[n]=i(e[n]));return s(t,r),t}function i(e){if(!y(e))return e;var t=a.indexOf(e);if(-1!==t)return u[t];if(k(e)||A(e))throw zr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=o(e);return void 0===i&&(i=Wr(e)?[]:Object.create(Hr(e)),r=!0),a.push(e),u.push(i),r?n(e,i):i}function o(e){switch(Lr.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(i(e.buffer));case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}return C(e.cloneNode)?e.cloneNode(!0):void 0}var a=[],u=[];if(t){if(N(t)||F(t))throw zr("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw zr("cpi","Can't copy! Source and destination are identical.");return Wr(t)?t.length=0:r(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),a.push(e),u.push(t),n(e,t)}return i(e)}function U(e,t){if(Wr(e)){t=t||[];for(var n=0,r=e.length;r>n;n++)t[n]=e[n]}else if(y(e)){t=t||{};for(var i in e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i])}return t||e}function L(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var n,r,i,o=typeof e,a=typeof t;if(o==a&&"object"==o){if(!Wr(e)){if(S(e))return S(t)?L(e.getTime(),t.getTime()):!1;if(_(e))return _(t)?e.toString()==t.toString():!1;if(A(e)||A(t)||k(e)||k(t)||Wr(t)||S(t)||_(t))return!1;i=ge();for(r in e)if("$"!==r.charAt(0)&&!C(e[r])){if(!L(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&$(t[r])&&!C(t[r]))return!1;return!0}if(!Wr(t))return!1;if((n=e.length)==t.length){for(r=0;n>r;r++)if(!L(e[r],t[r]))return!1;return!0}}return!1}function H(e,t,n){return e.concat(Vr.call(t,n))}function z(e,t){return Vr.call(e,t||0)}function q(e,t){var n=arguments.length>2?z(arguments,2):[];return!C(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,H(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function B(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:k(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":A(n)&&(r="$SCOPE"),r}function W(e,t){return v(e)?void 0:(x(t)||(t=t?2:null),JSON.stringify(e,B,t))}function Y(e){return w(e)?JSON.parse(e):e}function X(e,t){e=e.replace(Zr,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function G(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function K(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset(),i=X(t,r);return G(e,n*(i-r))}function J(e){e=Pr(e).clone();try{e.empty()}catch(t){}var n=Pr("<div>").append(e).html();try{return e[0].nodeType===ii?Tr(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+Tr(t)})}catch(t){return Tr(n)}}function Z(e){try{return decodeURIComponent(e)}catch(t){}}function Q(e){var t={};return r((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),-1!==n&&(r=e.substring(0,n),i=e.substring(n+1)),r=Z(r),$(r)&&(i=$(i)?Z(i):!0,Dr.call(t,r)?Wr(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function ee(e){var t=[];return r(e,function(e,n){Wr(e)?r(e,function(e){t.push(ne(n,!0)+(e===!0?"":"="+ne(e,!0)))}):t.push(ne(n,!0)+(e===!0?"":"="+ne(e,!0)))}),t.length?t.join("&"):""}function te(e){return ne(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ne(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 re(e,t){var n,r,i=Qr.length;for(r=0;i>r;++r)if(n=Qr[r]+t,w(n=e.getAttribute(n)))return n;return null}function ie(e,t){var n,i,o={};r(Qr,function(t){var r=t+"app";!n&&e.hasAttribute&&e.hasAttribute(r)&&(n=e,i=e.getAttribute(r))}),r(Qr,function(t){var r,o=t+"app";!n&&(r=e.querySelector("["+o.replace(":","\\:")+"]"))&&(n=r,i=r.getAttribute(o))}),n&&(o.strictDi=null!==re(n,"strict-di"),t(n,i?[i]:[],o))}function oe(t,n,i){y(i)||(i={});var o={strictDi:!1};i=l(o,i);var a=function(){if(t=Pr(t),t.injector()){var r=t[0]===e.document?"document":J(t);throw zr("btstrpd","App already bootstrapped with this element '{0}'",r.replace(/</,"<").replace(/>/,">"))}n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=nt(n,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},s=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;return e&&s.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(s,"")),e&&!u.test(e.name)?a():(e.name=e.name.replace(u,""),qr.resumeBootstrap=function(e){return r(e,function(e){n.push(e)}),a()},void(C(qr.resumeDeferredBootstrap)&&qr.resumeDeferredBootstrap()))}function ae(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function se(e){var t=qr.element(e).injector();if(!t)throw zr("test","no injector found for element argument to getTestability");return t.get("$$testability")}function ue(e,t){return t=t||"_",e.replace(ei,function(e,n){return(n?t:"")+e.toLowerCase()})}function le(){var t;if(!ti){var n=Jr();Ir=v(n)?e.jQuery:n?e[n]:void 0,Ir&&Ir.fn.on?(Pr=Ir,l(Ir.fn,{scope:Si.scope,isolateScope:Si.isolateScope,controller:Si.controller,injector:Si.injector,inheritedData:Si.inheritedData}),t=Ir.cleanData,Ir.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)n=Ir._data(r,"events"),n&&n.$destroy&&Ir(r).triggerHandler("$destroy");t(e)}):Pr=De,qr.element=Pr,ti=!0}}function ce(e,t,n){if(!e)throw zr("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function fe(e,t,n){return n&&Wr(e)&&(e=e[e.length-1]),ce(C(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function de(e,t){if("hasOwnProperty"===e)throw zr("badname","hasOwnProperty is not a valid {0} name",t)}function pe(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;a>s;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&C(e)?q(o,e):e}function he(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=Pr(Vr.call(e,0,i))),t.push(n));return t||e}function ge(){return Object.create(null)}function me(e){function n(e,t,n){return e[t]||(e[t]=n())}var r=t("$injector"),i=t("ng"),o=n(e,"angular",Object);return o.$$minErr=o.$$minErr||t,n(o,"module",function(){var e={};return function(t,o,a){var s=function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)};return s(t,"module"),o&&e.hasOwnProperty(t)&&(e[t]=null),n(e,t,function(){function e(e,t,n,r){return r||(r=i),function(){return r[n||"push"]([e,t,arguments]),c}}function n(e,n){return function(r,o){return o&&C(o)&&(o.$$moduleName=t),i.push([e,n,arguments]),c}}if(!o)throw r("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",t);var i=[],s=[],u=[],l=e("$injector","invoke","push",s),c={_invokeQueue:i,_configBlocks:s,_runBlocks:u,requires:o,name:t,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:l,run:function(e){return u.push(e),this}};return a&&l(a),c})}})}function ve(e){var t=[];return JSON.stringify(e,function(e,n){if(n=B(e,n),y(n)){if(t.indexOf(n)>=0)return"...";t.push(n)}return n})}function $e(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):v(e)?"undefined":"string"!=typeof e?ve(e):e}function ye(n){l(n,{bootstrap:oe,copy:R,extend:l,merge:c,equals:L,element:Pr,forEach:r,injector:nt,noop:p,bind:q,toJson:W,fromJson:Y,identity:h,isUndefined:v,isDefined:$,isString:w,isFunction:C,isObject:y,isNumber:x,isElement:P,isArray:Wr,version:ui,isDate:S,lowercase:Tr,uppercase:Mr,callbacks:{counter:0},getTestability:se,$$minErr:t,$$csp:Kr,reloadWithDebugInfo:ae}),(jr=me(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Sn}),e.provider("$compile",pt).directive({a:Mo,input:Ko,textarea:Ko,form:Io,script:Ba,select:Xa,style:Ka,option:Ga,ngBind:Qo,ngBindHtml:ta,ngBindTemplate:ea,ngClass:ra,ngClassEven:oa,ngClassOdd:ia,ngCloak:aa,ngController:sa,ngForm:jo,ngHide:Va,ngIf:ca,ngInclude:fa,ngInit:pa,ngNonBindable:Da,ngPluralize:Na,ngRepeat:Fa,ngShow:ja,ngStyle:Ra,ngSwitch:Ua,ngSwitchWhen:La,ngSwitchDefault:Ha,ngOptions:Oa,ngTransclude:qa,ngModel:ka,ngList:ha,ngChange:na,pattern:Za,ngPattern:Za,required:Ja,ngRequired:Ja,minlength:es,ngMinlength:es,maxlength:Qa,ngMaxlength:Qa,ngValue:Zo,ngModelOptions:Ea}).directive({ngInclude:da}).directive(Oo).directive(ua),e.provider({$anchorScroll:rt,$animate:Ri,$animateCss:Hi,$$animateJs:ji,$$animateQueue:Vi,$$AnimateRunner:Li,$$animateAsyncRun:Ui,$browser:lt,$cacheFactory:ct,$controller:yt,$document:bt,$exceptionHandler:wt,$filter:jn,$$forceReflow:Xi,$interpolate:Pt,$interval:It,$http:Mt,$httpParamSerializer:St,$httpParamSerializerJQLike:Ct,$httpBackend:Nt,$xhrFactory:Ot,$location:Kt,$log:Jt,$parse:vn,$rootScope:xn,$q:$n,$$q:yn,$sce:An,$sceDelegate:kn,$sniffer:En,$templateCache:ft,$templateRequest:Dn,$$testability:Tn,$timeout:Mn,$window:Fn,$$rAF:wn,$$jqLite:Ke,$$HashMap:Ai,$$cookieReader:In})}])}function be(){return++ci}function we(e){return e.replace(pi,function(e,t,n,r){return r?n.toUpperCase():n}).replace(hi,"Moz$1")}function xe(e){return!$i.test(e)}function Se(e){var t=e.nodeType;return t===ni||!t||t===ai}function Ce(e){for(var t in li[e.ng339])return!0;return!1}function _e(e){for(var t=0,n=e.length;n>t;t++)Ne(e[t])}function ke(e,t){var n,i,o,a,s=t.createDocumentFragment(),u=[];if(xe(e))u.push(t.createTextNode(e));else{for(n=n||s.appendChild(t.createElement("div")),i=(yi.exec(e)||["",""])[1].toLowerCase(),o=wi[i]||wi._default,n.innerHTML=o[1]+e.replace(bi,"<$1></$2>")+o[2],a=o[0];a--;)n=n.lastChild;u=H(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",r(u,function(e){s.appendChild(e)}),s}function Ae(t,n){n=n||e.document;var r;return(r=vi.exec(t))?[n.createElement(r[1])]:(r=ke(t,n))?r.childNodes:[]}function Ee(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function De(e){if(e instanceof De)return e;var t;if(w(e)&&(e=Xr(e),t=!0),!(this instanceof De)){if(t&&"<"!=e.charAt(0))throw mi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new De(e)}t?Re(this,Ae(e)):Re(this,e)}function Te(e){return e.cloneNode(!0)}function Me(e,t){if(t||Ne(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;i>r;r++)Ne(n[r])}function Oe(e,t,n,i){if($(i))throw mi("offargs","jqLite#off() does not support the `selector` argument");var o=Fe(e),a=o&&o.events,s=o&&o.handle;if(s)if(t){var u=function(t){var r=a[t];$(n)&&V(r||[],n),$(n)&&r&&r.length>0||(di(e,t,s),delete a[t])};r(t.split(" "),function(e){u(e),gi[e]&&u(gi[e])})}else for(t in a)"$destroy"!==t&&di(e,t,s),delete a[t]}function Ne(e,t){var n=e.ng339,r=n&&li[n];if(r){if(t)return void delete r.data[t];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),Oe(e)),delete li[n],e.ng339=void 0}}function Fe(e,t){var n=e.ng339,r=n&&li[n];return t&&!r&&(e.ng339=n=be(),r=li[n]={events:{},data:{},handle:void 0}),r}function Pe(e,t,n){if(Se(e)){var r=$(n),i=!r&&t&&!y(t),o=!t,a=Fe(e,!i),s=a&&a.data;if(r)s[t]=n;else{if(o)return s;if(i)return s&&s[t];l(s,t)}}}function Ie(e,t){return e.getAttribute?(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function je(e,t){t&&e.setAttribute&&r(t.split(" "),function(t){e.setAttribute("class",Xr((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Xr(t)+" "," ")))})}function Ve(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(t.split(" "),function(e){e=Xr(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",Xr(n))}}function Re(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;n>r;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function Ue(e,t){return Le(e,"$"+(t||"ngController")+"Controller")}function Le(e,t,n){e.nodeType==ai&&(e=e.documentElement);for(var r=Wr(t)?t:[t];e;){for(var i=0,o=r.length;o>i;i++)if($(n=Pr.data(e,r[i])))return n;e=e.parentNode||e.nodeType===si&&e.host}}function He(e){for(Me(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function ze(e,t){t||Me(e);var n=e.parentNode;n&&n.removeChild(e)}function qe(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):Pr(n).on("load",t)}function Be(e,t){var n=Ci[t.toLowerCase()];return n&&_i[j(e)]&&n}function We(e){return ki[e]}function Ye(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(v(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0};var s=i.specialHandlerWrapper||Xe;o>1&&(i=U(i));for(var u=0;o>u;u++)n.isImmediatePropagationStopped()||s(e,n,i[u])}};return n.elem=e,n}function Xe(e,t,n){n.call(e,t)}function Ge(e,t,n){var r=t.relatedTarget;r&&(r===e||xi.call(e,r))||n.call(e,t)}function Ke(){this.$get=function(){return l(De,{hasClass:function(e,t){return e.attr&&(e=e[0]),Ie(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Ve(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),je(e,t)}})}}function Je(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"==r||"object"==r&&null!==e?e.$$hashKey=r+":"+(t||a)():r+":"+e}function Ze(e,t){if(t){var n=0;this.nextUid=function(){return++n}}r(e,this.put,this)}function Qe(e){var t=Function.prototype.toString.call(e).replace(Oi,""),n=t.match(Ei)||t.match(Di);return n}function et(e){var t=Qe(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function tt(e,t,n){var i,o,a;if("function"==typeof e){if(!(i=e.$inject)){if(i=[],e.length){if(t)throw w(n)&&n||(n=e.name||et(e)),Ni("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);o=Qe(e),r(o[1].split(Ti),function(e){e.replace(Mi,function(e,t,n){i.push(n)})})}e.$inject=i}}else Wr(e)?(a=e.length-1,fe(e[a],"fn"),i=e.slice(0,a)):fe(e,"fn",!0);return i}function nt(e,t){function n(e){return function(t,n){return y(t)?void r(t,o(e)):e(t,n)}}function i(e,t){if(de(e,"service"),(C(t)||Wr(t))&&(t=S.instantiate(t)),!t.$get)throw Ni("pget","Provider '{0}' must define $get factory method.",e);return x[e+m]=t}function a(e,t){return function(){var n=A.invoke(t,this);if(v(n))throw Ni("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function s(e,t,n){return i(e,{$get:n!==!1?a(e,t):t})}function u(e,t){return s(e,["$injector",function(e){return e.instantiate(t)}])}function l(e,t){return s(e,g(t),!1)}function c(e,t){de(e,"constant"),x[e]=t,_[e]=t}function f(e,t){var n=S.get(e+m),r=n.$get;n.$get=function(){var e=A.invoke(r,n);return A.invoke(t,null,{$delegate:e})}}function d(e){ce(v(e)||Wr(e),"modulesToLoad","not an array");var t,n=[];return r(e,function(e){function r(e){var t,n;for(t=0,n=e.length;n>t;t++){var r=e[t],i=S.get(r[0]);i[r[1]].apply(i,r[2])}}if(!b.get(e)){b.put(e,!0);try{w(e)?(t=jr(e),n=n.concat(d(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):C(e)?n.push(S.invoke(e)):Wr(e)?n.push(S.invoke(e)):fe(e,"module")}catch(i){throw Wr(e)&&(e=e[e.length-1]),i.message&&i.stack&&-1==i.stack.indexOf(i.message)&&(i=i.message+"\n"+i.stack),Ni("modulerr","Failed to instantiate module {0} due to:\n{1}",e,i.stack||i.message||i)}}}),n}function p(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===h)throw Ni("cdep","Circular dependency found: {0}",t+" <- "+$.join(" <- "));return e[t]}try{return $.unshift(t),e[t]=h,e[t]=n(t,r)}catch(i){throw e[t]===h&&delete e[t],i}finally{$.shift()}}function i(e,n,i){for(var o=[],a=nt.$$annotate(e,t,i),s=0,u=a.length;u>s;s++){var l=a[s];if("string"!=typeof l)throw Ni("itkn","Incorrect injection token! Expected service name as string, got {0}",l);o.push(n&&n.hasOwnProperty(l)?n[l]:r(l,i))}return o}function o(e){return 11>=Fr?!1:"function"==typeof e&&/^(?:class\s|constructor\()/.test(Function.prototype.toString.call(e))}function a(e,t,n,r){"string"==typeof n&&(r=n,n=null);var a=i(e,n,r);return Wr(e)&&(e=e[e.length-1]),o(e)?(a.unshift(null),new(Function.prototype.bind.apply(e,a))):e.apply(t,a)}function s(e,t,n){var r=Wr(e)?e[e.length-1]:e,o=i(e,t,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))}return{invoke:a,instantiate:s,get:r,annotate:nt.$$annotate,has:function(t){return x.hasOwnProperty(t+m)||e.hasOwnProperty(t)}}}t=t===!0;var h={},m="Provider",$=[],b=new Ze([],!0),x={$provide:{provider:n(i),factory:n(s),service:n(u),value:n(l),constant:n(c),decorator:f}},S=x.$injector=p(x,function(e,t){throw qr.isString(t)&&$.push(t),Ni("unpr","Unknown provider: {0}",$.join(" <- "))}),_={},k=p(_,function(e,t){var n=S.get(e+m,t);return A.invoke(n.$get,n,void 0,e)}),A=k;x["$injector"+m]={$get:g(k)};var E=d(e);return A=k.get("$injector"),A.strictDi=t,r(E,function(e){e&&A.invoke(e)}),A}function rt(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return Array.prototype.some.call(e,function(e){return"a"===j(e)?(t=e,!0):void 0}),t}function o(){var e=s.yOffset;if(C(e))e=e();else if(P(e)){var n=e[0],r=t.getComputedStyle(n);e="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else x(e)||(e=0);return e}function a(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function s(e){e=w(e)?e:n.hash();var t;e?(t=u.getElementById(e))?a(t):(t=i(u.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var u=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||qe(function(){r.$evalAsync(s)})}),s}]}function it(e,t){return e||t?e?t?(Wr(e)&&(e=e.join(" ")),Wr(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function ot(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===Pi)return n}}function at(e){w(e)&&(e=e.split(" "));var t=ge();return r(e,function(e){e.length&&(t[e]=!0)}),t}function st(e){return y(e)?e:{}}function ut(e,t,n,i){function o(e){try{e.apply(null,z(arguments,1))}finally{if($--,0===$)for(;y.length;)try{y.pop()()}catch(t){n.error(t)}}}function a(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}function s(){C=null,u(),l()}function u(){b=_(),b=v(b)?null:b,L(b,E)&&(b=E),E=b}function l(){x===c.url()&&w===b||(x=c.url(),w=b,r(k,function(e){e(c.url(),b)}))}var c=this,f=e.location,d=e.history,h=e.setTimeout,g=e.clearTimeout,m={};c.isMock=!1;var $=0,y=[];c.$$completeOutstandingRequest=o,c.$$incOutstandingRequestCount=function(){$++},c.notifyWhenNoOutstandingRequests=function(e){0===$?e():y.push(e)};var b,w,x=f.href,S=t.find("base"),C=null,_=i.history?function(){try{return d.state}catch(e){}}:p;u(),w=b,c.url=function(t,n,r){if(v(r)&&(r=null),f!==e.location&&(f=e.location),d!==e.history&&(d=e.history),t){var o=w===r;if(x===t&&(!i.history||o))return c;var s=x&&Lt(x)===Lt(t);return x=t,w=r,!i.history||s&&o?(s&&!C||(C=t),n?f.replace(t):s?f.hash=a(t):f.href=t,f.href!==t&&(C=t)):(d[n?"replaceState":"pushState"](r,"",t),u(),w=b),c}return C||f.href.replace(/%27/g,"'")},c.state=function(){return b};var k=[],A=!1,E=null;c.onUrlChange=function(t){return A||(i.history&&Pr(e).on("popstate",s),Pr(e).on("hashchange",s),A=!0),k.push(t),t},c.$$applicationDestroyed=function(){Pr(e).off("hashchange popstate",s)},c.$$checkUrlChange=l,c.baseHref=function(){var e=S.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""},c.defer=function(e,t){var n;return $++,n=h(function(){delete m[n],o(e)},t||0),m[n]=!0,n},c.defer.cancel=function(e){return m[e]?(delete m[e],g(e),o(p),!0):!1}}function lt(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new ut(e,r,t,n)}]}function ct(){this.$get=function(){function e(e,r){function i(e){e!=d&&(p?p==e&&(p=e.n):p=e,o(e.n,e.p),o(e,d),d=e,d.n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in n)throw t("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=l({},r,{id:e}),u=ge(),c=r&&r.capacity||Number.MAX_VALUE,f=ge(),d=null,p=null;return n[e]={put:function(e,t){if(!v(t)){if(c<Number.MAX_VALUE){var n=f[e]||(f[e]={key:e});i(n)}return e in u||a++,u[e]=t,a>c&&this.remove(p.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==p&&(p=t.n),o(t.n,t.p),delete f[e]}e in u&&(delete u[e],a--)},removeAll:function(){u=ge(),a=0,f=ge(),d=p=null},destroy:function(){u=null,s=null,f=null,delete n[e]},info:function(){return l({},s,{size:a})}}}var n={};return e.info=function(){var e={};return r(n,function(t,n){e[n]=t.info()}),e},e.get=function(e){return n[e]},e}}function ft(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function dt(){}function pt(t,n){function i(e,t,n){var i=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,o=ge();return r(e,function(e,r){if(e in _)return void(o[r]=_[e]);var a=e.match(i);
+if(!a)throw zi("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,r,e,n?"controller bindings definition":"isolate scope definition");o[r]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||r},a[4]&&(_[e]=o[r])}),o}function a(e,t){var n={isolateScope:null,bindToController:null};if(y(e.scope)&&(e.bindToController===!0?(n.bindToController=i(e.scope,t,!0),n.isolateScope={}):n.isolateScope=i(e.scope,t,!1)),y(e.bindToController)&&(n.bindToController=i(e.bindToController,t,!0)),y(n.bindToController)){var r=e.controller,o=e.controllerAs;if(!r)throw zi("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);if(!$t(r,o))throw zi("noident","Cannot bind to controller without identifier for directive '{0}'.",t)}return n}function s(e){var t=e.charAt(0);if(!t||t!==Tr(t))throw zi("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw zi("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}var u={},c="Directive",f=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,m=/(([\w\-]+)(?:\:([^;]+))?;?)/,b=I("ngSrc,ngSrcset,src,srcset"),x=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,S=/^(on[a-z]+|formaction)$/,_=ge();this.directive=function D(e,n){return de(e,"directive"),w(e)?(s(e),ce(n,"directiveFactory"),u.hasOwnProperty(e)||(u[e]=[],t.factory(e+c,["$injector","$exceptionHandler",function(t,n){var i=[];return r(u[e],function(r,o){try{var a=t.invoke(r);C(a)?a={compile:g(a)}:!a.compile&&a.link&&(a.compile=g(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||e,a.require=a.require||a.controller&&a.name,a.restrict=a.restrict||"EA",a.$$moduleName=r.$$moduleName,i.push(a)}catch(s){n(s)}}),i}])),u[e].push(n)):r(e,o(D)),this},this.component=function(e,t){function n(e){function n(t){return C(t)||Wr(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var o=t.template||t.templateUrl?t.template:"",a={controller:i,controllerAs:$t(t.controller)||t.controllerAs||"$ctrl",template:n(o),templateUrl:n(t.templateUrl),transclude:t.transclude,scope:{},bindToController:t.bindings||{},restrict:"E",require:t.require};return r(t,function(e,t){"$"===t.charAt(0)&&(a[t]=e)}),a}var i=t.controller||function(){};return r(t,function(e,t){"$"===t.charAt(0)&&(n[t]=e,C(i)&&(i[t]=e))}),n.$inject=["$injector"],this.directive(e,n)},this.aHrefSanitizationWhitelist=function(e){return $(e)?(n.aHrefSanitizationWhitelist(e),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return $(e)?(n.imgSrcSanitizationWhitelist(e),this):n.imgSrcSanitizationWhitelist()};var k=!0;this.debugInfoEnabled=function(e){return $(e)?(k=e,this):k};var E=10;this.onChangesTtl=function(e){return arguments.length?(E=e,this):E},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(t,n,i,o,s,g,$,_,D,T){function O(){try{if(!--ye)throw me=void 0,zi("infchng","{0} $onChanges() iterations reached. Aborting!\n",E);$.$apply(function(){for(var e=0,t=me.length;t>e;++e)me[e]();me=void 0})}finally{ye++}}function N(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;r>n;n++)i=o[n],this[i]=t[i]}else this.$attr={};this.$$element=e}function F(e,t,n){$e.innerHTML="<span "+t+">";var r=$e.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}function P(e,t){try{e.addClass(t)}catch(n){}}function I(t,n,r,i,o){t instanceof Pr||(t=Pr(t));for(var a=/\S+/,s=0,u=t.length;u>s;s++){var l=t[s];l.nodeType===ii&&l.nodeValue.match(a)&&Ee(l,t[s]=e.document.createElement("span"))}var c=U(t,n,t,r,i,o);I.$$addScopeClass(t);var f=null;return function(e,n,r){ce(e,"scope"),o&&o.needsNewScope&&(e=e.$parent.$new()),r=r||{};var i=r.parentBoundTranscludeFn,a=r.transcludeControllers,s=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),f||(f=R(s));var u;if(u="html"!==f?Pr(ae(f,Pr("<div>").append(t).html())):n?Si.clone.call(t):t,a)for(var l in a)u.data("$"+l+"Controller",a[l].instance);return I.$$addScopeInfo(u,e),n&&n(u,e),c&&c(e,u,u,i),u}}function R(e){var t=e&&e[0];return t&&"foreignobject"!==j(t)&&Lr.call(t).match(/SVG/)?"svg":"html"}function U(e,t,n,r,i,o){function a(e,n,r,i){var o,a,s,u,l,c,f,d,g;if(p){var m=n.length;for(g=new Array(m),l=0;l<h.length;l+=3)f=h[l],g[f]=n[f]}else g=n;for(l=0,c=h.length;c>l;)s=g[h[l++]],o=h[l++],a=h[l++],o?(o.scope?(u=e.$new(),I.$$addScopeInfo(Pr(s),u)):u=e,d=o.transcludeOnThisElement?H(e,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&t?H(e,t):null,o(a,u,s,r,d)):a&&a(e,s.childNodes,void 0,i)}for(var s,u,l,c,f,d,p,h=[],g=0;g<e.length;g++)s=new N,u=q(e[g],[],s,0===g?r:void 0,i),l=u.length?X(u,e[g],s,t,n,null,[],[],o):null,l&&l.scope&&I.$$addScopeClass(s.$$element),f=l&&l.terminal||!(c=e[g].childNodes)||!c.length?null:U(c,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:t),(l||f)&&(h.push(g,l,f),d=!0,p=p||l),o=null;return d?a:null}function H(e,t,n){function r(r,i,o,a,s){return r||(r=e.$new(!1,s),r.$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=ge();for(var o in t.$$slots)t.$$slots[o]?i[o]=H(e,t.$$slots[o],n):i[o]=null;return r}function q(e,t,n,r,i){var o,a,s=e.nodeType,u=n.$attr;switch(s){case ni:Q(t,gt(j(e)),"E",r,i);for(var l,c,d,p,h,g,v=e.attributes,$=0,b=v&&v.length;b>$;$++){var x=!1,S=!1;l=v[$],c=l.name,h=Xr(l.value),p=gt(c),(g=Ce.test(p))&&(c=c.replace(Bi,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var C=p.match(_e);C&&ee(C[1])&&(x=c,S=c.substr(0,c.length-5)+"end",c=c.substr(0,c.length-6)),d=gt(c.toLowerCase()),u[d]=c,!g&&n.hasOwnProperty(d)||(n[d]=h,Be(e,d)&&(n[d]=!0)),le(e,t,h,d,g),Q(t,d,"A",r,i,x,S)}if(a=e.className,y(a)&&(a=a.animVal),w(a)&&""!==a)for(;o=m.exec(a);)d=gt(o[2]),Q(t,d,"C",r,i)&&(n[d]=Xr(o[3])),a=a.substr(o.index+o[0].length);break;case ii:if(11===Fr)for(;e.parentNode&&e.nextSibling&&e.nextSibling.nodeType===ii;)e.nodeValue=e.nodeValue+e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);oe(t,e.nodeValue);break;case oi:try{o=f.exec(e.nodeValue),o&&(d=gt(o[1]),Q(t,d,"M",r,i)&&(n[d]=Xr(o[2])))}catch(_){}}return t.sort(re),t}function B(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw zi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType==ni&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0)}else r.push(e);return Pr(r)}function W(e,t,n){return function(r,i,o,a,s){return i=B(i[0],t,n),e(r,i,o,a,s)}}function Y(e,t,n,r,i,o){var a;return e?I(t,n,r,i,o):function(){return a||(a=I(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function X(e,t,n,o,a,s,u,c,f){function d(e,t,n,r){e&&(n&&(e=W(e,n,r)),e.require=h.require,e.directiveName=g,(_===h||h.$$isolateScope)&&(e=de(e,{isolateScope:!0})),u.push(e)),t&&(n&&(t=W(t,n,r)),t.require=h.require,t.directiveName=g,(_===h||h.$$isolateScope)&&(t=de(t,{isolateScope:!0})),c.push(t))}function p(e,i,o,a,s){function f(e,t,n,r){var i;if(A(e)||(r=n,n=t,t=e,e=void 0),M&&(i=$),n||(n=M?w.parent():w),!r)return s(e,t,i,n,V);var o=s.$$slots[r];if(o)return o(e,t,i,n,V);if(v(o))throw zi("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,J(w))}var d,p,h,g,m,$,b,w,E,D;t===o?(E=n,w=n.$$element):(w=Pr(o),E=new N(w,n)),m=i,_?g=i.$new(!0):x&&(m=i.$parent),s&&(b=f,b.$$boundTransclude=s,b.isSlotFilled=function(e){return!!s.$$slots[e]}),S&&($=K(w,E,b,S,g,i,_)),_&&(I.$$addScopeInfo(w,g,!0,!(k&&(k===_||k===_.$$originalDirective))),I.$$addScopeClass(w,!0),g.$$isolateBindings=_.$$isolateBindings,D=he(i,E,g,g.$$isolateBindings,_),D.removeWatches&&g.$on("$destroy",D.removeWatches));for(var T in $){var O=S[T],F=$[T],P=O.$$bindings.bindToController;F.identifier&&P?F.bindingInfo=he(m,E,F.instance,P,O):F.bindingInfo={};var j=F();j!==F.instance&&(F.instance=j,w.data("$"+O.name+"Controller",j),F.bindingInfo.removeWatches&&F.bindingInfo.removeWatches(),F.bindingInfo=he(m,E,F.instance,P,O))}for(r(S,function(e,t){var n=e.require;e.bindToController&&!Wr(n)&&y(n)&&l($[t].instance,G(t,n,w,$))}),r($,function(e){var t=e.instance;C(t.$onChanges)&&t.$onChanges(e.bindingInfo.initialChanges),C(t.$onInit)&&t.$onInit(),C(t.$onDestroy)&&m.$on("$destroy",function(){t.$onDestroy()})}),d=0,p=u.length;p>d;d++)h=u[d],pe(h,h.isolateScope?g:i,w,E,h.require&&G(h.directiveName,h.require,w,$),b);var V=i;for(_&&(_.template||null===_.templateUrl)&&(V=g),e&&e(V,o.childNodes,void 0,s),d=c.length-1;d>=0;d--)h=c[d],pe(h,h.isolateScope?g:i,w,E,h.require&&G(h.directiveName,h.require,w,$),b);r($,function(e){var t=e.instance;C(t.$postLink)&&t.$postLink()})}f=f||{};for(var h,g,m,$,b,w=-Number.MAX_VALUE,x=f.newScopeDirective,S=f.controllerDirectives,_=f.newIsolateScopeDirective,k=f.templateDirective,E=f.nonTlbTranscludeDirective,D=!1,T=!1,M=f.hasElementTranscludeDirective,O=n.$$element=Pr(t),F=s,P=o,V=!1,R=!1,U=0,L=e.length;L>U;U++){h=e[U];var H=h.$$start,X=h.$$end;if(H&&(O=B(t,H,X)),m=void 0,w>h.priority)break;if((b=h.scope)&&(h.templateUrl||(y(b)?(ie("new/isolated scope",_||x,h,O),_=h):ie("new/isolated scope",_,h,O)),x=x||h),g=h.name,!V&&(h.replace&&(h.templateUrl||h.template)||h.transclude&&!h.$$tlb)){for(var Q,ee=U+1;Q=e[ee++];)if(Q.transclude&&!Q.$$tlb||Q.replace&&(Q.templateUrl||Q.template)){R=!0;break}V=!0}if(!h.templateUrl&&h.controller&&(b=h.controller,S=S||ge(),ie("'"+g+"' controller",S[g],h,O),S[g]=h),b=h.transclude)if(D=!0,h.$$tlb||(ie("transclusion",E,h,O),E=h),"element"==b)M=!0,w=h.priority,m=O,O=n.$$element=Pr(I.$$createComment(g,n[g])),t=O[0],fe(a,z(m),t),m[0].$$parentNode=m[0].parentNode,P=Y(R,m,o,w,F&&F.name,{nonTlbTranscludeDirective:E});else{var re=ge();if(m=Pr(Te(t)).contents(),y(b)){m=[];var oe=ge(),se=ge();r(b,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,oe[e]=t,re[t]=null,se[t]=n}),r(O.contents(),function(e){var t=oe[gt(j(e))];t?(se[t]=!0,re[t]=re[t]||[],re[t].push(e)):m.push(e)}),r(se,function(e,t){if(!e)throw zi("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var ue in re)re[ue]&&(re[ue]=Y(R,re[ue],o))}O.empty(),P=Y(R,m,o,void 0,void 0,{needsNewScope:h.$$isolateScope||h.$$newScope}),P.$$slots=re}if(h.template)if(T=!0,ie("template",k,h,O),k=h,b=C(h.template)?h.template(O,n):h.template,b=Se(b),h.replace){if(F=h,m=xe(b)?[]:vt(ae(h.templateNamespace,Xr(b))),t=m[0],1!=m.length||t.nodeType!==ni)throw zi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g,"");fe(a,O,t);var le={$attr:{}},ce=q(t,[],le),me=e.splice(U+1,e.length-(U+1));(_||x)&&Z(ce,_,x),e=e.concat(ce).concat(me),te(n,le),L=e.length}else O.html(b);if(h.templateUrl)T=!0,ie("template",k,h,O),k=h,h.replace&&(F=h),p=ne(e.splice(U,e.length-U),O,n,a,D&&P,u,c,{controllerDirectives:S,newScopeDirective:x!==h&&x,newIsolateScopeDirective:_,templateDirective:k,nonTlbTranscludeDirective:E}),L=e.length;else if(h.compile)try{$=h.compile(O,n,P),C($)?d(null,$,H,X):$&&d($.pre,$.post,H,X)}catch(ve){i(ve,J(O))}h.terminal&&(p.terminal=!0,w=Math.max(w,h.priority))}return p.scope=x&&x.scope===!0,p.transcludeOnThisElement=D,p.templateOnThisElement=T,p.transclude=P,f.hasElementTranscludeDirective=M,p}function G(e,t,n,i){var o;if(w(t)){var a=t.match(x),s=t.substring(a[0].length),u=a[1]||a[3],l="?"===a[2];if("^^"===u?n=n.parent():(o=i&&i[s],o=o&&o.instance),!o){var c="$"+s+"Controller";o=u?n.inheritedData(c):n.data(c)}if(!o&&!l)throw zi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(Wr(t)){o=[];for(var f=0,d=t.length;d>f;f++)o[f]=G(e,t[f],n,i)}else y(t)&&(o={},r(t,function(t,r){o[r]=G(e,t,n,i)}));return o||null}function K(e,t,n,r,i,o,a){var s=ge();for(var u in r){var l=r[u],c={$scope:l===a||l.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},f=l.controller;"@"==f&&(f=t[l.name]);var d=g(f,c,!0,l.controllerAs);s[l.name]=d,e.data("$"+l.name+"Controller",d.instance)}return s}function Z(e,t,n){for(var r=0,i=e.length;i>r;r++)e[r]=d(e[r],{$$isolateScope:t,$$newScope:n})}function Q(e,n,r,o,s,l,f){if(n===s)return null;var p=null;if(u.hasOwnProperty(n))for(var h,g=t.get(n+c),m=0,$=g.length;$>m;m++)try{if(h=g[m],(v(o)||o>h.priority)&&-1!=h.restrict.indexOf(r)){if(l&&(h=d(h,{$$start:l,$$end:f})),!h.$$bindings){var b=h.$$bindings=a(h,h.name);y(b.isolateScope)&&(h.$$isolateBindings=b.isolateScope)}e.push(h),p=h}}catch(w){i(w)}return p}function ee(e){if(u.hasOwnProperty(e))for(var n,r=t.get(e+c),i=0,o=r.length;o>i;i++)if(n=r[i],n.multiElement)return!0;return!1}function te(e,t){var n=t.$attr,i=e.$attr,o=e.$$element;r(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),r(t,function(t,r){"class"==r?(P(o,t),e["class"]=(e["class"]?e["class"]+" ":"")+t):"style"==r?(o.attr("style",o.attr("style")+";"+t),e.style=(e.style?e.style+";":"")+t):"$"==r.charAt(0)||e.hasOwnProperty(r)||(e[r]=t,i[r]=n[r])})}function ne(e,t,n,i,a,s,u,l){var c,f,p=[],h=t[0],g=e.shift(),m=d(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=C(g.templateUrl)?g.templateUrl(t,n):g.templateUrl,$=g.templateNamespace;return t.empty(),o(v).then(function(o){var d,b,w,x;if(o=Se(o),g.replace){if(w=xe(o)?[]:vt(ae($,Xr(o))),d=w[0],1!=w.length||d.nodeType!==ni)throw zi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,v);b={$attr:{}},fe(i,t,d);var S=q(d,[],b);y(g.scope)&&Z(S,!0),e=S.concat(e),te(n,b)}else d=h,t.html(o);for(e.unshift(m),c=X(e,d,n,a,t,g,s,u,l),r(i,function(e,n){e==d&&(i[n]=t[0])}),f=U(t[0].childNodes,a);p.length;){var C=p.shift(),_=p.shift(),k=p.shift(),A=p.shift(),E=t[0];if(!C.$$destroyed){if(_!==h){var D=_.className;l.hasElementTranscludeDirective&&g.replace||(E=Te(d)),fe(k,Pr(_),E),P(Pr(E),D)}x=c.transcludeOnThisElement?H(C,c.transclude,A):A,c(f,C,E,i,x)}}p=null}),function(e,t,n,r,i){var o=i;t.$$destroyed||(p?p.push(t,n,r,o):(c.transcludeOnThisElement&&(o=H(t,c.transclude,i)),c(f,t,n,r,o)))}}function re(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 ie(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw zi("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,J(r))}function oe(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&I.$$addBindingClass(t),function(e,t){var i=t.parent();n||I.$$addBindingClass(i),I.$$addBindingInfo(i,r.expressions),e.$watch(r,function(e){t[0].nodeValue=e})}}})}function ae(t,n){switch(t=Tr(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 se(e,t){if("srcdoc"==t)return _.HTML;var n=j(e);return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?_.RESOURCE_URL:void 0}function le(e,t,r,i,o){var a=se(e,i);o=b[i]||o;var s=n(r,!0,a,o);if(s){if("multiple"===i&&"select"===j(e))throw zi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",J(e));t.push({priority:100,compile:function(){return{pre:function(e,t,u){var l=u.$$observers||(u.$$observers=ge());if(S.test(i))throw zi("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=u[i];c!==r&&(s=c&&n(c,!0,a,o),r=c),s&&(u[i]=s(e),(l[i]||(l[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||e).$watch(s,function(e,t){"class"===i&&e!=t?u.$updateClass(e,t):u.$set(i,e)}))}}}})}}function fe(t,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(t)for(i=0,o=t.length;o>i;i++)if(t[i]==a){t[i++]=r;for(var l=i,c=l+s-1,f=t.length;f>l;l++,c++)f>c?t[l]=t[c]:delete t[l];t.length-=s-1,t.context===a&&(t.context=r);break}u&&u.replaceChild(r,a);var d=e.document.createDocumentFragment();for(i=0;s>i;i++)d.appendChild(n[i]);for(Pr.hasData(a)&&(Pr.data(r,Pr.data(a)),Pr(a).off("$destroy")),Pr.cleanData(d.querySelectorAll("*")),i=1;s>i;i++)delete n[i];n[0]=r,n.length=1}function de(e,t){return l(function(){return e.apply(null,arguments)},e,t)}function pe(e,t,n,r,o,a){try{e(t,n,r,o,a)}catch(s){i(s,J(n))}}function he(e,t,i,o,a){function u(t,n,r){C(i.$onChanges)&&n!==r&&(me||(e.$$postDigest(O),me=[]),c||(c={},me.push(l)),c[t]&&(r=c[t].previousValue),c[t]=new ht(r,n))}function l(){i.$onChanges(c),c=void 0}var c,f=[],d={};return r(o,function(r,o){var l,c,h,g,m,v=r.attrName,$=r.optional,y=r.mode;switch(y){case"@":$||Dr.call(t,v)||(i[o]=t[v]=void 0),t.$observe(v,function(e){if(w(e)||M(e)){var t=i[o];u(o,e,t),i[o]=e}}),t.$$observers[v].$$scope=e,l=t[v],w(l)?i[o]=n(l)(e):M(l)&&(i[o]=l),d[o]=new ht(qi,i[o]);break;case"=":if(!Dr.call(t,v)){if($)break;t[v]=void 0}if($&&!t[v])break;c=s(t[v]),g=c.literal?L:function(e,t){return e===t||e!==e&&t!==t},h=c.assign||function(){throw l=i[o]=c(e),zi("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[v],v,a.name)},l=i[o]=c(e);var b=function(t){return g(t,i[o])||(g(t,l)?h(e,t=i[o]):i[o]=t),l=t};b.$stateful=!0,m=r.collection?e.$watchCollection(t[v],b):e.$watch(s(t[v],b),null,c.literal),f.push(m);break;case"<":if(!Dr.call(t,v)){if($)break;t[v]=void 0}if($&&!t[v])break;c=s(t[v]),i[o]=c(e),d[o]=new ht(qi,i[o]),m=e.$watch(c,function(e,t){e===t&&(t=i[o]),u(o,e,t),i[o]=e},c.literal),f.push(m);break;case"&":if(c=t.hasOwnProperty(v)?s(t[v]):p,c===p&&$)break;i[o]=function(t){return c(e,t)}}}),{initialChanges:d,removeWatches:f.length&&function(){for(var e=0,t=f.length;t>e;++e)f[e]()}}}var me,ve=/^\w/,$e=e.document.createElement("div"),ye=E;N.prototype={$normalize:gt,$addClass:function(e){e&&e.length>0&&D.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&D.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=mt(e,t);n&&n.length&&D.addClass(this.$$element,n);var r=mt(t,e);r&&r.length&&D.removeClass(this.$$element,r)},$set:function(e,t,n,o){var a,s=this.$$element[0],u=Be(s,e),l=We(e),c=e;if(u?(this.$$element.prop(e,t),o=u):l&&(this[l]=t,c=l),this[e]=t,o?this.$attr[e]=o:(o=this.$attr[e],o||(this.$attr[e]=o=ue(e,"-"))),a=j(this.$$element),"a"===a&&("href"===e||"xlinkHref"===e)||"img"===a&&"src"===e)this[e]=t=T(t,"src"===e);else if("img"===a&&"srcset"===e){for(var f="",d=Xr(t),p=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,h=/\s/.test(d)?p:/(,)/,g=d.split(h),m=Math.floor(g.length/2),$=0;m>$;$++){var y=2*$;f+=T(Xr(g[y]),!0),f+=" "+Xr(g[y+1])}var b=Xr(g[2*$]).split(/\s/);f+=T(Xr(b[0]),!0),2===b.length&&(f+=" "+Xr(b[1])),this[e]=t=f}n!==!1&&(null===t||v(t)?this.$$element.removeAttr(o):ve.test(o)?this.$$element.attr(o,t):F(this.$$element[0],o,t));var w=this.$$observers;w&&r(w[c],function(e){try{e(t)}catch(n){i(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=ge()),i=r[e]||(r[e]=[]);return i.push(t),$.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||v(n[e])||t(n[e])}),function(){V(i,t)}}};var be=n.startSymbol(),we=n.endSymbol(),Se="{{"==be&&"}}"==we?h:function(e){return e.replace(/\{\{/g,be).replace(/}}/g,we)},Ce=/^ngAttr[A-Z]/,_e=/^(.+)Start$/;return I.$$addBindingInfo=k?function(e,t){var n=e.data("$binding")||[];Wr(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:p,I.$$addBindingClass=k?function(e){P(e,"ng-binding")}:p,I.$$addScopeInfo=k?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:p,I.$$addScopeClass=k?function(e,t){P(e,t?"ng-isolate-scope":"ng-scope")}:p,I.$$createComment=function(t,n){var r="";return k&&(r=" "+(t||"")+": "+(n||"")+" "),e.document.createComment(r)},I}]}function ht(e,t){this.previousValue=e,this.currentValue=t}function gt(e){return we(e.replace(Bi,""))}function mt(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue e;n+=(n.length>0?" ":"")+a}return n}function vt(e){e=Pr(e);var t=e.length;if(1>=t)return e;for(;t--;){var n=e[t];n.nodeType===oi&&Rr.call(e,t,1)}return e}function $t(e,t){if(t&&w(t))return t;if(w(e)){var n=Yi.exec(e);if(n)return n[3]}}function yt(){var e={},n=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){de(t,"controller"),y(t)?l(e,t):e[t]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function o(e,n,r,i){if(!e||!y(e.$scope))throw t("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);e.$scope[n]=r}return function(t,a,s,u){var c,f,d,p;if(s=s===!0,u&&w(u)&&(p=u),w(t)){if(f=t.match(Yi),!f)throw Wi("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",t);d=f[1],p=p||f[3],t=e.hasOwnProperty(d)?e[d]:pe(a.$scope,d,!0)||(n?pe(i,d,!0):void 0),fe(t,d,!0)}if(s){var h=(Wr(t)?t[t.length-1]:t).prototype;c=Object.create(h||null),p&&o(a,p,c,d||t.name);var g;return g=l(function(){var e=r.invoke(t,c,a,d);return e!==c&&(y(e)||C(e))&&(c=e,p&&o(a,p,c,d||t.name)),c},{instance:c,identifier:p})}return c=r.instantiate(t,a,d),p&&o(a,p,c,d||t.name),c}}]}function bt(){this.$get=["$window",function(e){return Pr(e.document)}]}function wt(){this.$get=["$log",function(e){return function(){e.error.apply(e,arguments)}}]}function xt(e){return y(e)?S(e)?e.toISOString():W(e):e}function St(){this.$get=function(){return function(e){if(!e)return"";var t=[];return i(e,function(e,n){null===e||v(e)||(Wr(e)?r(e,function(e){t.push(ne(n)+"="+ne(xt(e)))}):t.push(ne(n)+"="+ne(xt(e))))}),t.join("&")}}}function Ct(){this.$get=function(){return function(e){function t(e,o,a){null===e||v(e)||(Wr(e)?r(e,function(e,n){t(e,o+"["+(y(e)?n:"")+"]")}):y(e)&&!S(e)?i(e,function(e,n){t(e,o+(a?"":"[")+n+(a?"":"]"))}):n.push(ne(o)+"="+ne(xt(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function _t(e,t){if(w(e)){var n=e.replace(Qi,"").trim();if(n){var r=t("Content-Type");(r&&0===r.indexOf(Gi)||kt(n))&&(e=Y(n))}}return e}function kt(e){var t=e.match(Ji);return t&&Zi[t[0]].test(e)}function At(e){function t(e,t){e&&(i[e]=i[e]?i[e]+", "+t:t)}var n,i=ge();return w(e)?r(e.split("\n"),function(e){n=e.indexOf(":"),t(Tr(Xr(e.substr(0,n))),Xr(e.substr(n+1)))}):y(e)&&r(e,function(e,n){t(Tr(n),Xr(e))}),i}function Et(e){var t;return function(n){if(t||(t=At(e)),n){var r=t[Tr(n)];return void 0===r&&(r=null),r}return t}}function Dt(e,t,n,i){return C(i)?i(e,t,n):(r(i,function(r){e=r(e,t,n)}),e)}function Tt(e){return e>=200&&300>e}function Mt(){var e=this.defaults={transformResponse:[_t],transformRequest:[function(e){return!y(e)||E(e)||T(e)||D(e)?e:W(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:U(Ki),put:U(Ki),patch:U(Ki)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},n=!1;this.useApplyAsync=function(e){return $(e)?(n=!!e,this):n};var i=!0;this.useLegacyPromiseExtensions=function(e){return $(e)?(i=!!e,this):i};var o=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,s,u,c,f,d){function p(n){function o(e){var t=l({},e);return t.data=Dt(e.data,e.headers,e.status,u.transformResponse),Tt(e.status)?t:f.reject(t)}function a(e,t){var n,i={};return r(e,function(e,r){C(e)?(n=e(t),null!=n&&(i[r]=n)):i[r]=e}),i}function s(t){var n,r,i,o=e.headers,s=l({},t.headers);o=l({},o.common,o[Tr(t.method)]);e:for(n in o){r=Tr(n);for(i in s)if(Tr(i)===r)continue e;s[n]=o[n]}return a(s,U(t))}if(!y(n))throw t("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!w(n.url))throw t("$http")("badreq","Http request configuration url must be a string. Received: {0}",n.url);var u=l({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},n);u.headers=s(n),u.method=Mr(u.method),u.paramSerializer=w(u.paramSerializer)?d.get(u.paramSerializer):u.paramSerializer;var c=function(t){var n=t.headers,i=Dt(t.data,Et(n),void 0,t.transformRequest);return v(i)&&r(n,function(e,t){"content-type"===Tr(t)&&delete n[t]}),v(t.withCredentials)&&!v(e.withCredentials)&&(t.withCredentials=e.withCredentials),m(t,i).then(o,o)},p=[c,void 0],h=f.when(u);for(r(S,function(e){(e.request||e.requestError)&&p.unshift(e.request,e.requestError),(e.response||e.responseError)&&p.push(e.response,e.responseError)});p.length;){var g=p.shift(),$=p.shift();h=h.then(g,$)}return i?(h.success=function(e){return fe(e,"fn"),h.then(function(t){e(t.data,t.status,t.headers,u)}),h},h.error=function(e){return fe(e,"fn"),h.then(null,function(t){e(t.data,t.status,t.headers,u)}),h}):(h.success=to("success"),h.error=to("error")),h}function h(){r(arguments,function(e){p[e]=function(t,n){return p(l({},n||{},{method:e,url:t}))}})}function g(){r(arguments,function(e){p[e]=function(t,n,r){return p(l({},r||{},{method:e,url:t,data:n}))}})}function m(t,i){function o(e){if(e){var t={};return r(e,function(e,r){t[r]=function(t){function r(){e(t)}n?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}}),t}}function u(e,t,r,i){function o(){l(t,e,r,i)}g&&(Tt(e)?g.put(_,[e,t,At(r),i]):g.remove(_)),n?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function l(e,n,r,i){n=n>=-1?n:0,(Tt(n)?w.resolve:w.reject)({data:e,status:n,headers:Et(r),config:t,statusText:i})}function d(e){l(e.data,e.status,U(e.headers()),e.statusText)}function h(){var e=p.pendingRequests.indexOf(t);-1!==e&&p.pendingRequests.splice(e,1)}var g,m,w=f.defer(),S=w.promise,C=t.headers,_=b(t.url,t.paramSerializer(t.params));if(p.pendingRequests.push(t),S.then(h,h),!t.cache&&!e.cache||t.cache===!1||"GET"!==t.method&&"JSONP"!==t.method||(g=y(t.cache)?t.cache:y(e.cache)?e.cache:x),g&&(m=g.get(_),$(m)?O(m)?m.then(d,d):Wr(m)?l(m[1],m[0],U(m[2]),m[3]):l(m,200,{},"OK"):g.put(_,S)),v(m)){var k=Nn(t.url)?s()[t.xsrfCookieName||e.xsrfCookieName]:void 0;k&&(C[t.xsrfHeaderName||e.xsrfHeaderName]=k),a(t.method,_,i,u,C,t.timeout,t.withCredentials,t.responseType,o(t.eventHandlers),o(t.uploadEventHandlers))}return S}function b(e,t){return t.length>0&&(e+=(-1==e.indexOf("?")?"?":"&")+t),e}var x=u("$http");e.paramSerializer=w(e.paramSerializer)?d.get(e.paramSerializer):e.paramSerializer;var S=[];return r(o,function(e){S.unshift(w(e)?d.get(e):d.invoke(e))}),p.pendingRequests=[],h("get","delete","head","jsonp"),g("post","put","patch"),p.defaults=e,p}]}function Ot(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Nt(){this.$get=["$browser","$window","$document","$xhrFactory",function(e,t,n,r){return Ft(e,r,e.defer,t.angular.callbacks,n[0])}]}function Ft(e,t,n,i,o){function a(e,t,n){var r=o.createElement("script"),a=null;return r.type="text/javascript",r.src=e,r.async=!0,a=function(e){di(r,"load",a),di(r,"error",a),o.body.removeChild(r),r=null;var s=-1,u="unknown";e&&("load"!==e.type||i[t].called||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},fi(r,"load",a),fi(r,"error",a),o.body.appendChild(r),a}return function(o,s,u,l,c,f,d,h,g,m){function y(){x&&x(),S&&S.abort()}function b(t,r,i,o,a){$(k)&&n.cancel(k),x=S=null,t(r,i,o,a),e.$$completeOutstandingRequest(p)}if(e.$$incOutstandingRequestCount(),s=s||e.url(),"jsonp"==Tr(o)){var w="_"+(i.counter++).toString(36);i[w]=function(e){i[w].data=e,i[w].called=!0};var x=a(s.replace("JSON_CALLBACK","angular.callbacks."+w),w,function(e,t){b(l,e,i[w].data,"",t),i[w]=p})}else{var S=t(o,s);S.open(o,s,!0),r(c,function(e,t){$(e)&&S.setRequestHeader(t,e)}),S.onload=function(){var e=S.statusText||"",t="response"in S?S.response:S.responseText,n=1223===S.status?204:S.status;0===n&&(n=t?200:"file"==On(s).protocol?404:0),b(l,n,t,S.getAllResponseHeaders(),e)};var C=function(){b(l,-1,null,null,"")};if(S.onerror=C,S.onabort=C,r(g,function(e,t){S.addEventListener(t,e)}),r(m,function(e,t){S.upload.addEventListener(t,e)}),d&&(S.withCredentials=!0),h)try{S.responseType=h}catch(_){if("json"!==h)throw _}S.send(v(u)?null:u)}if(f>0)var k=n(y,f);else O(f)&&f.then(y)}}function Pt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(p,e).replace(h,t)}function s(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=W(e)}return e}function u(e,t,n,r){var i;return i=e.$watch(function(e){return i(),r(e)},t,n)}function c(o,c,p,h){function m(e){try{return e=O(e),h&&!$(e)?e:s(e)}catch(t){r(no.interr(o,t))}}if(!o.length||-1===o.indexOf(e)){var y;if(!c){var b=a(o);y=g(b),y.exp=o,y.expressions=[],y.$$watchDelegate=u}return y}h=!!h;for(var w,x,S,_=0,k=[],A=[],E=o.length,D=[],T=[];E>_;){if(-1==(w=o.indexOf(e,_))||-1==(x=o.indexOf(t,w+f))){_!==E&&D.push(a(o.substring(_)));break}_!==w&&D.push(a(o.substring(_,w))),S=o.substring(w+f,x),k.push(S),A.push(n(S,m)),_=x+d,T.push(D.length),D.push("")}if(p&&D.length>1&&no.throwNoconcat(o),!c||k.length){var M=function(e){for(var t=0,n=k.length;n>t;t++){if(h&&v(e[t]))return;D[T[t]]=e[t]}return D.join("")},O=function(e){return p?i.getTrusted(p,e):i.valueOf(e)};return l(function(e){var t=0,n=k.length,i=new Array(n);try{for(;n>t;t++)i[t]=A[t](e);return M(i)}catch(a){r(no.interr(o,a))}},{exp:o,expressions:k,$$watchDelegate:function(e,t){var n;return e.$watchGroup(A,function(r,i){var o=M(r);C(t)&&t.call(this,o,r!==i?n:o,e),n=o})}})}}var f=e.length,d=t.length,p=new RegExp(e.replace(/./g,o),"g"),h=new RegExp(t.replace(/./g,o),"g");return c.startSymbol=function(){return e},c.endSymbol=function(){return t},c}]}function It(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,r,i){function o(o,s,u,l){function c(){f?o.apply(null,d):o(g)}var f=arguments.length>4,d=f?z(arguments,4):[],p=t.setInterval,h=t.clearInterval,g=0,m=$(l)&&!l,v=(m?r:n).defer(),y=v.promise;return u=$(u)?u:0,y.$$intervalId=p(function(){m?i.defer(c):e.$evalAsync(c),v.notify(g++),u>0&&g>=u&&(v.resolve(g),h(y.$$intervalId),delete a[y.$$intervalId]),m||e.$apply()},s),a[y.$$intervalId]=v,y}var a={};return o.cancel=function(e){return e&&e.$$intervalId in a?(a[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete a[e.$$intervalId],!0):!1},o}]}function jt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=te(t[n]);return t.join("/")}function Vt(e,t){var n=On(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=f(n.port)||io[n.protocol]||null}function Rt(e,t){var n="/"!==e.charAt(0);n&&(e="/"+e);var r=On(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=Q(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Ut(e,t){return 0===t.indexOf(e)?t.substr(e.length):void 0}function Lt(e){var t=e.indexOf("#");return-1==t?e:e.substr(0,t)}function Ht(e){return e.replace(/(#.+)|#$/,"$1")}function zt(e){return e.substr(0,Lt(e).lastIndexOf("/")+1)}function qt(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function Bt(e,t,n){this.$$html5=!0,n=n||"",Vt(e,this),this.$$parse=function(e){var n=Ut(t,e);if(!w(n))throw oo("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);Rt(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=ee(this.$$search),n=this.$$hash?"#"+te(this.$$hash):"";this.$$url=jt(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return $(o=Ut(e,r))?(a=o,s=$(o=Ut(n,o))?t+(Ut("/",o)||o):e+a):$(o=Ut(t,r))?s=t+o:t==r+"/"&&(s=t),s&&this.$$parse(s),!!s}}function Wt(e,t,n){Vt(e,this),this.$$parse=function(r){function i(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===t.indexOf(n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}var o,a=Ut(e,r)||Ut(t,r);v(a)||"#"!==a.charAt(0)?this.$$html5?o=a:(o="",v(a)&&(e=r,this.replace())):(o=Ut(n,a),v(o)&&(o=a)),Rt(o,this),this.$$path=i(this.$$path,o,e),this.$$compose()},this.$$compose=function(){var t=ee(this.$$search),r=this.$$hash?"#"+te(this.$$hash):"";this.$$url=jt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(t){return Lt(e)==Lt(t)?(this.$$parse(t),!0):!1}}function Yt(e,t,n){this.$$html5=!0,Wt.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e==Lt(r)?o=r:(a=Ut(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$compose=function(){var t=ee(this.$$search),r=this.$$hash?"#"+te(this.$$hash):"";this.$$url=jt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url}}function Xt(e){return function(){return this[e]}}function Gt(e,t){return function(n){return v(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}
+function Kt(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return $(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)&&(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(a){throw l.url(i),l.$$state=o,a}}function u(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,c,f,d=r.baseHref(),p=r.url();if(t.enabled){if(!d&&t.requireBase)throw oo("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=qt(p)+(d||"/"),c=i.history?Bt:Yt}else f=Lt(p),c=Wt;var h=zt(f);l=new c(f,h,"#"+e),l.$$parseLinkUrl(p,p),l.$$state=r.state();var g=/^\s*(javascript|mailto):/i;o.on("click",function(e){if(t.rewriteLinks&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!=e.which&&2!=e.button){for(var i=Pr(e.target);"a"!==j(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var s=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");y(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=On(s.animVal).href),g.test(s)||!s||i.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(s,u)&&(e.preventDefault(),l.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),Ht(l.absUrl())!=Ht(p)&&r.url(l.absUrl(),!0);var m=!0;return r.onUrlChange(function(e,t){return v(Ut(h,e))?void(a.location.href=e):(n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;e=Ht(e),l.$$parse(e),l.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,l.absUrl()===e&&(r?(l.$$parse(i),l.$$state=o,s(i,!1,o)):(m=!1,u(i,o)))}),void(n.$$phase||n.$digest()))}),n.$watch(function(){var e=Ht(r.url()),t=Ht(l.absUrl()),o=r.state(),a=l.$$replace,c=e!==t||l.$$html5&&i.history&&o!==l.$$state;(m||c)&&(m=!1,n.$evalAsync(function(){var t=l.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,l.$$state,o).defaultPrevented;l.absUrl()===t&&(r?(l.$$parse(e),l.$$state=o):(c&&s(t,a,o===l.$$state?null:l.$$state),u(e,o)))})),l.$$replace=!1}),l}]}function Jt(){var e=!0,t=this;this.debugEnabled=function(t){return $(t)?(e=t,this):e},this.$get=["$window",function(n){function i(e){return e instanceof Error&&(e.stack?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function o(e){var t=n.console||{},o=t[e]||t.log||p,a=!1;try{a=!!o.apply}catch(s){}return a?function(){var e=[];return r(arguments,function(t){e.push(i(t))}),o.apply(t,e)}:function(e,t){o(e,null==t?"":t)}}return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:function(){var n=o("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function Zt(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw so("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function Qt(e){return e+""}function en(e,t){if(e){if(e.constructor===e)throw so("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.window===e)throw so("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw so("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw so("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function tn(e,t){if(e){if(e.constructor===e)throw so("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===uo||e===lo||e===co)throw so("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function nn(e,t){if(e&&(e===0..constructor||e===(!1).constructor||e==="".constructor||e==={}.constructor||e===[].constructor||e===Function.constructor))throw so("isecaf","Assigning to a constructor is disallowed! Expression: {0}",t)}function rn(e,t){return"undefined"!=typeof e?e:t}function on(e,t){return"undefined"==typeof e?t:"undefined"==typeof t?e:e+t}function an(e,t){var n=e(t);return!n.$stateful}function sn(e,t){var n,i;switch(e.type){case go.Program:n=!0,r(e.body,function(e){sn(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case go.Literal:e.constant=!0,e.toWatch=[];break;case go.UnaryExpression:sn(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case go.BinaryExpression:sn(e.left,t),sn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case go.LogicalExpression:sn(e.left,t),sn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case go.ConditionalExpression:sn(e.test,t),sn(e.alternate,t),sn(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case go.Identifier:e.constant=!1,e.toWatch=[e];break;case go.MemberExpression:sn(e.object,t),e.computed&&sn(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case go.CallExpression:n=e.filter?an(t,e.callee.name):!1,i=[],r(e.arguments,function(e){sn(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=e.filter&&an(t,e.callee.name)?i:[e];break;case go.AssignmentExpression:sn(e.left,t),sn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case go.ArrayExpression:n=!0,i=[],r(e.elements,function(e){sn(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=i;break;case go.ObjectExpression:n=!0,i=[],r(e.properties,function(e){sn(e.value,t),n=n&&e.value.constant,e.value.constant||i.push.apply(i,e.value.toWatch)}),e.constant=n,e.toWatch=i;break;case go.ThisExpression:e.constant=!1,e.toWatch=[];break;case go.LocalsExpression:e.constant=!1,e.toWatch=[]}}function un(e){if(1==e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length?n:n[0]!==t?n:void 0}}function ln(e){return e.type===go.Identifier||e.type===go.MemberExpression}function cn(e){return 1===e.body.length&&ln(e.body[0].expression)?{type:go.AssignmentExpression,left:e.body[0].expression,right:{type:go.NGValueParameter},operator:"="}:void 0}function fn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===go.Literal||e.body[0].expression.type===go.ArrayExpression||e.body[0].expression.type===go.ObjectExpression)}function dn(e){return e.constant}function pn(e,t){this.astBuilder=e,this.$filter=t}function hn(e,t){this.astBuilder=e,this.$filter=t}function gn(e){return"constructor"==e}function mn(e){return C(e.valueOf)?e.valueOf():vo.call(e)}function vn(){var e,t,n=ge(),i=ge(),o={"true":!0,"false":!1,"null":null,undefined:void 0};this.addLiteral=function(e,t){o[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(a){function s(e,t,r){var o,s,l;switch(r=r||b,typeof e){case"string":e=e.trim(),l=e;var m=r?i:n;if(o=m[l],!o){":"===e.charAt(0)&&":"===e.charAt(1)&&(s=!0,e=e.substring(2));var $=r?y:v,w=new ho($),x=new mo(w,a,$);o=x.parse(e),o.constant?o.$$watchDelegate=h:s?o.$$watchDelegate=o.literal?d:f:o.inputs&&(o.$$watchDelegate=c),r&&(o=u(o)),m[l]=o}return g(o,t);case"function":return g(e,t);default:return g(p,t)}}function u(e){function t(t,n,r,i){var o=b;b=!0;try{return e(t,n,r,i)}finally{b=o}}if(!e)return e;t.$$watchDelegate=e.$$watchDelegate,t.assign=u(e.assign),t.constant=e.constant,t.literal=e.literal;for(var n=0;e.inputs&&n<e.inputs.length;++n)e.inputs[n]=u(e.inputs[n]);return t.inputs=e.inputs,t}function l(e,t){return null==e||null==t?e===t:"object"==typeof e&&(e=mn(e),"object"==typeof e)?!1:e===t||e!==e&&t!==t}function c(e,t,n,r,i){var o,a=r.inputs;if(1===a.length){var s=l;return a=a[0],e.$watch(function(e){var t=a(e);return l(t,s)||(o=r(e,void 0,void 0,[t]),s=t&&mn(t)),o},t,n,i)}for(var u=[],c=[],f=0,d=a.length;d>f;f++)u[f]=l,c[f]=null;return e.$watch(function(e){for(var t=!1,n=0,i=a.length;i>n;n++){var s=a[n](e);(t||(t=!l(s,u[n])))&&(c[n]=s,u[n]=s&&mn(s))}return t&&(o=r(e,void 0,void 0,c)),o},t,n,i)}function f(e,t,n,r){var i,o;return i=e.$watch(function(e){return r(e)},function(e,n,r){o=e,C(t)&&t.apply(this,arguments),$(e)&&r.$$postDigest(function(){$(o)&&i()})},n)}function d(e,t,n,i){function o(e){var t=!0;return r(e,function(e){$(e)||(t=!1)}),t}var a,s;return a=e.$watch(function(e){return i(e)},function(e,n,r){s=e,C(t)&&t.call(this,e,n,r),o(e)&&r.$$postDigest(function(){o(s)&&a()})},n)}function h(e,t,n,r){var i;return i=e.$watch(function(e){return i(),r(e)},t,n)}function g(e,t){if(!t)return e;var n=e.$$watchDelegate,r=!1,i=n!==d&&n!==f,o=i?function(n,i,o,a){var s=r&&a?a[0]:e(n,i,o,a);return t(s,n,i)}:function(n,r,i,o){var a=e(n,r,i,o),s=t(a,n,r);return $(a)?s:a};return e.$$watchDelegate&&e.$$watchDelegate!==c?o.$$watchDelegate=e.$$watchDelegate:t.$stateful||(o.$$watchDelegate=c,r=!e.inputs,o.inputs=e.inputs?e.inputs:[e]),o}var m=Kr().noUnsafeEval,v={csp:m,expensiveChecks:!1,literals:R(o),isIdentifierStart:C(e)&&e,isIdentifierContinue:C(t)&&t},y={csp:m,expensiveChecks:!0,literals:R(o),isIdentifierStart:C(e)&&e,isIdentifierContinue:C(t)&&t},b=!1;return s.$$runningExpensiveChecks=function(){return b},s}]}function $n(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return bn(function(t){e.$evalAsync(t)},t)}]}function yn(){this.$get=["$browser","$exceptionHandler",function(e,t){return bn(function(t){e.defer(t)},t)}]}function bn(e,n){function i(){this.$$state={status:0}}function o(e,t){return function(n){t.call(e,n)}}function a(e){var t,r,i;i=e.pending,e.processScheduled=!1,e.pending=void 0;for(var o=0,a=i.length;a>o;++o){r=i[o][0],t=i[o][e.status];try{C(t)?r.resolve(t(e.value)):1===e.status?r.resolve(e.value):r.reject(e.value)}catch(s){r.reject(s),n(s)}}}function s(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,e(function(){a(t)}))}function u(){this.promise=new i}function c(e){var t=new u,n=0,i=Wr(e)?[]:{};return r(e,function(e,r){n++,m(e).then(function(e){i.hasOwnProperty(r)||(i[r]=e,--n||t.resolve(i))},function(e){i.hasOwnProperty(r)||t.reject(e)})}),0===n&&t.resolve(i),t.promise}var f=t("$q",TypeError),d=function(){var e=new u;return e.resolve=o(e,e.resolve),e.reject=o(e,e.reject),e.notify=o(e,e.notify),e};l(i.prototype,{then:function(e,t,n){if(v(e)&&v(t)&&v(n))return this;var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&s(this.$$state),r.promise},"catch":function(e){return this.then(null,e)},"finally":function(e,t){return this.then(function(t){return g(t,!0,e)},function(t){return g(t,!1,e)},t)}}),l(u.prototype,{resolve:function(e){this.promise.$$state.status||(e===this.promise?this.$$reject(f("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):this.$$resolve(e))},$$resolve:function(e){function t(e){u||(u=!0,a.$$resolve(e))}function r(e){u||(u=!0,a.$$reject(e))}var i,a=this,u=!1;try{(y(e)||C(e))&&(i=e&&e.then),C(i)?(this.promise.$$state.status=-1,i.call(e,t,r,o(this,this.notify))):(this.promise.$$state.value=e,this.promise.$$state.status=1,s(this.promise.$$state))}catch(l){r(l),n(l)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,s(this.promise.$$state)},notify:function(t){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&e(function(){for(var e,i,o=0,a=r.length;a>o;o++){i=r[o][0],e=r[o][3];try{i.notify(C(e)?e(t):t)}catch(s){n(s)}}})}});var p=function(e){var t=new u;return t.reject(e),t.promise},h=function(e,t){var n=new u;return t?n.resolve(e):n.reject(e),n.promise},g=function(e,t,n){var r=null;try{C(n)&&(r=n())}catch(i){return h(i,!1)}return O(r)?r.then(function(){return h(e,t)},function(e){return h(e,!1)}):h(e,t)},m=function(e,t,n,r){var i=new u;return i.resolve(e),i.promise.then(t,n,r)},$=m,b=function(e){function t(e){r.resolve(e)}function n(e){r.reject(e)}if(!C(e))throw f("norslvr","Expected resolverFn, got '{0}'",e);var r=new u;return e(t,n),r.promise};return b.prototype=i.prototype,b.defer=d,b.reject=p,b.when=m,b.resolve=$,b.all=c,b}function wn(){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 xn(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=a(),this.$$ChildScope=null}return t.prototype=e,t}var i=10,o=t("$rootScope"),s=null,u=null;this.digestTtl=function(e){return arguments.length&&(i=e),i},this.$get=["$exceptionHandler","$parse","$browser",function(t,l,c){function f(e){e.currentScope.$$destroyed=!0}function d(e){9===Fr&&(e.$$childHead&&d(e.$$childHead),e.$$nextSibling&&d(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function h(){this.$id=a(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function g(e){if(_.$$phase)throw o("inprog","{0} already in progress",_.$$phase);_.$$phase=e}function m(){_.$$phase=null}function $(e,t){do e.$$watchersCount+=t;while(e=e.$parent)}function b(e,t,n){do e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n];while(e=e.$parent)}function w(){}function x(){for(;E.length;)try{E.shift()()}catch(e){t(e)}u=null}function S(){null===u&&(u=c.defer(function(){_.$apply(x)}))}h.prototype={constructor:h,$new:function(t,n){var r;return n=n||this,t?(r=new h,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!=this)&&r.$on("$destroy",f),r},$watch:function(e,t,n,r){var i=l(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,n,i,e);var o=this,a=o.$$watchers,u={fn:t,last:w,get:i,exp:r||e,eq:!!n};return s=null,C(t)||(u.fn=p),a||(a=o.$$watchers=[]),a.unshift(u),$(this,1),function(){V(a,u)>=0&&$(o,-1),s=null}},$watchGroup:function(e,t){function n(){u=!1,l?(l=!1,t(o,o,s)):t(o,i,s)}var i=new Array(e.length),o=new Array(e.length),a=[],s=this,u=!1,l=!0;if(!e.length){var c=!0;return s.$evalAsync(function(){c&&t(o,o,s)}),function(){c=!1}}return 1===e.length?this.$watch(e[0],function(e,n,r){o[0]=e,i[0]=n,t(o,e===n?o:i,r)}):(r(e,function(e,t){var r=s.$watch(e,function(e,r){o[t]=e,i[t]=r,u||(u=!0,s.$evalAsync(n))});a.push(r)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function r(e){o=e;var t,r,i,s,u;if(!v(o)){if(y(o))if(n(o)){a!==p&&(a=p,m=a.length=0,f++),t=o.length,m!==t&&(f++,a.length=m=t);for(var l=0;t>l;l++)u=a[l],s=o[l],i=u!==u&&s!==s,i||u===s||(f++,a[l]=s)}else{a!==h&&(a=h={},m=0,f++),t=0;for(r in o)Dr.call(o,r)&&(t++,s=o[r],u=a[r],r in a?(i=u!==u&&s!==s,i||u===s||(f++,a[r]=s)):(m++,a[r]=s,f++));if(m>t){f++;for(r in a)Dr.call(o,r)||(m--,delete a[r])}}else a!==o&&(a=o,f++);return f}}function i(){if(g?(g=!1,t(o,o,u)):t(o,s,u),c)if(y(o))if(n(o)){s=new Array(o.length);for(var e=0;e<o.length;e++)s[e]=o[e]}else{s={};for(var r in o)Dr.call(o,r)&&(s[r]=o[r])}else s=o}r.$stateful=!0;var o,a,s,u=this,c=t.length>1,f=0,d=l(e,r),p=[],h={},g=!0,m=0;return this.$watch(d,i)},$digest:function(){var e,n,r,a,l,f,d,p,h,v,$,y,b=i,S=this,E=[];g("$digest"),c.$$checkUrlChange(),this===_&&null!==u&&(c.defer.cancel(u),x()),s=null;do{for(p=!1,v=S;k.length;){try{y=k.shift(),y.scope.$eval(y.expression,y.locals)}catch(D){t(D)}s=null}e:do{if(f=v.$$watchers)for(d=f.length;d--;)try{if(e=f[d])if(l=e.get,(n=l(v))===(r=e.last)||(e.eq?L(n,r):"number"==typeof n&&"number"==typeof r&&isNaN(n)&&isNaN(r))){if(e===s){p=!1;break e}}else p=!0,s=e,e.last=e.eq?R(n,null):n,a=e.fn,a(n,r===w?n:r,v),5>b&&($=4-b,E[$]||(E[$]=[]),E[$].push({msg:C(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:n,oldVal:r}))}catch(D){t(D)}if(!(h=v.$$watchersCount&&v.$$childHead||v!==S&&v.$$nextSibling))for(;v!==S&&!(h=v.$$nextSibling);)v=v.$parent}while(v=h);if((p||k.length)&&!b--)throw m(),o("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",i,E)}while(p||k.length);for(m();A.length;)try{A.shift()()}catch(D){t(D)}},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===_&&c.$$applicationDestroyed(),$(this,-this.$$watchersCount);for(var t in this.$$listenerCount)b(this,this.$$listenerCount[t],t);e&&e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=p,this.$on=this.$watch=this.$watchGroup=function(){return p},this.$$listeners={},this.$$nextSibling=null,d(this)}},$eval:function(e,t){return l(e)(this,t)},$evalAsync:function(e,t){_.$$phase||k.length||c.defer(function(){k.length&&_.$digest()}),k.push({scope:this,expression:l(e),locals:t})},$$postDigest:function(e){A.push(e)},$apply:function(e){try{g("$apply");try{return this.$eval(e)}finally{m()}}catch(n){t(n)}finally{try{_.$digest()}catch(n){throw t(n),n}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&E.push(t),e=l(e),S()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++;while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(n[r]=null,b(i,1,e))}},$emit:function(e){var n,r,i,o=[],a=this,s=!1,u={name:e,targetScope:a,stopPropagation:function(){s=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=H([u],arguments,1);do{for(n=a.$$listeners[e]||o,u.currentScope=a,r=0,i=n.length;i>r;r++)if(n[r])try{n[r].apply(null,l)}catch(c){t(c)}else n.splice(r,1),r--,i--;if(s)return u.currentScope=null,u;a=a.$parent}while(a);return u.currentScope=null,u},$broadcast:function(e){var n=this,r=n,i=n,o={name:e,targetScope:n,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return o;for(var a,s,u,l=H([o],arguments,1);r=i;){for(o.currentScope=r,a=r.$$listeners[e]||[],s=0,u=a.length;u>s;s++)if(a[s])try{a[s].apply(null,l)}catch(c){t(c)}else a.splice(s,1),s--,u--;if(!(i=r.$$listenerCount[e]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}};var _=new h,k=_.$$asyncQueue=[],A=_.$$postDigestQueue=[],E=_.$$applyAsyncQueue=[];return _}]}function Sn(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return $(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return $(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return i=On(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function Cn(e){if("self"===e)return e;if(w(e)){if(e.indexOf("***")>-1)throw $o("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=Gr(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(_(e))return new RegExp("^"+e.source+"$");throw $o("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function _n(e){var t=[];return $(e)&&r(e,function(e){t.push(Cn(e))}),t}function kn(){this.SCE_CONTEXTS=yo;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=_n(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=_n(e)),t},this.$get=["$injector",function(n){function r(e,t){return"self"===e?Nn(t):!!e.exec(t.href)}function i(n){var i,o,a=On(n.toString()),s=!1;for(i=0,o=e.length;o>i;i++)if(r(e[i],a)){s=!0;break}if(s)for(i=0,o=t.length;o>i;i++)if(r(t[i],a)){s=!1;break}return s}function o(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function a(e,t){var n=f.hasOwnProperty(e)?f[e]:null;if(!n)throw $o("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||v(t)||""===t)return t;if("string"!=typeof t)throw $o("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)}function s(e){return e instanceof c?e.$$unwrapTrustedValue():e}function u(e,t){if(null===t||v(t)||""===t)return t;var n=f.hasOwnProperty(e)?f[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(e===yo.RESOURCE_URL){if(i(t))return t;throw $o("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}if(e===yo.HTML)return l(t);throw $o("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(){throw $o("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(l=n.get("$sanitize"));var c=o(),f={};return f[yo.HTML]=o(c),f[yo.CSS]=o(c),f[yo.URL]=o(c),f[yo.JS]=o(c),f[yo.RESOURCE_URL]=o(f[yo.URL]),{trustAs:a,getTrusted:u,valueOf:s}}]}function An(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&8>Fr)throw $o("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var i=U(yo);i.isEnabled=function(){return e},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,e||(i.trustAs=i.getTrusted=function(e,t){return t},i.valueOf=h),i.parseAs=function(e,n){var r=t(n);return r.literal&&r.constant?r:t(n,function(t){return i.getTrusted(e,t)})};var o=i.parseAs,a=i.getTrusted,s=i.trustAs;return r(yo,function(e,t){var n=Tr(t);i[we("parse_as_"+n)]=function(t){return o(e,t)},i[we("get_trusted_"+n)]=function(t){return a(e,t)},i[we("trust_as_"+n)]=function(t){return s(e,t)}}),i}]}function En(){this.$get=["$window","$document",function(e,t){var n,r,i={},o=e.chrome&&e.chrome.app&&e.chrome.app.runtime,a=!o&&e.history&&e.history.pushState,s=f((/android (\d+)/.exec(Tr((e.navigator||{}).userAgent))||[])[1]),u=/Boxee/i.test((e.navigator||{}).userAgent),l=t[0]||{},c=/^(Moz|webkit|ms)(?=[A-Z])/,d=l.body&&l.body.style,p=!1,h=!1;if(d){for(var g in d)if(r=c.exec(g)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in d&&"webkit"),p=!!("transition"in d||n+"Transition"in d),h=!!("animation"in d||n+"Animation"in d),!s||p&&h||(p=w(d.webkitTransition),h=w(d.webkitAnimation))}return{history:!(!a||4>s||u),hasEvent:function(e){if("input"===e&&11>=Fr)return!1;if(v(i[e])){var t=l.createElement("div");i[e]="on"+e in t}return i[e]},csp:Kr(),vendorPrefix:n,transitions:p,animations:h,android:s}}]}function Dn(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$templateCache","$http","$q","$sce",function(t,n,r,i){function o(a,s){function u(e){if(!s)throw bo("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,e.status,e.statusText);return r.reject(e)}o.totalPendingRequests++,w(a)&&t.get(a)||(a=i.getTrustedResourceUrl(a));var c=n.defaults&&n.defaults.transformResponse;return Wr(c)?c=c.filter(function(e){return e!==_t}):c===_t&&(c=null),n.get(a,l({cache:t,transformResponse:c},e))["finally"](function(){o.totalPendingRequests--}).then(function(e){return t.put(a,e.data),e.data},u)}return o.totalPendingRequests=0,o}]}function Tn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var i={};return i.findBindings=function(e,t,n){var i=e.getElementsByClassName("ng-binding"),o=[];return r(i,function(e){var i=qr.element(e).data("$binding");i&&r(i,function(r){if(n){var i=new RegExp("(^|\\s)"+Gr(t)+"(\\s|\\||$)");i.test(r)&&o.push(e)}else-1!=r.indexOf(t)&&o.push(e)})}),o},i.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+t+'"]',s=e.querySelectorAll(a);if(s.length)return s}},i.getLocation=function(){return n.url()},i.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},i.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},i}]}function Mn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,s,u){C(o)||(u=s,s=o,o=p);var l,c=z(arguments,3),f=$(u)&&!u,d=(f?r:n).defer(),h=d.promise;return l=t.defer(function(){try{d.resolve(o.apply(null,c))}catch(t){d.reject(t),i(t)}finally{delete a[h.$$timeoutId]}f||e.$apply()},s),h.$$timeoutId=l,a[l]=d,h}var a={};return o.cancel=function(e){return e&&e.$$timeoutId in a?(a[e.$$timeoutId].reject("canceled"),delete a[e.$$timeoutId],t.defer.cancel(e.$$timeoutId)):!1},o}]}function On(e){var t=e;return Fr&&(wo.setAttribute("href",t),t=wo.href),wo.setAttribute("href",t),{href:wo.href,protocol:wo.protocol?wo.protocol.replace(/:$/,""):"",host:wo.host,search:wo.search?wo.search.replace(/^\?/,""):"",hash:wo.hash?wo.hash.replace(/^#/,""):"",hostname:wo.hostname,port:wo.port,pathname:"/"===wo.pathname.charAt(0)?wo.pathname:"/"+wo.pathname}}function Nn(e){var t=w(e)?On(e):e;return t.protocol===xo.protocol&&t.host===xo.host}function Fn(){this.$get=g(e)}function Pn(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,l=n.cookie||"";if(l!==i)for(i=l,e=i.split("; "),r={},a=0;a<e.length;a++)o=e[a],s=o.indexOf("="),s>0&&(u=t(o.substring(0,s)),v(r[u])&&(r[u]=t(o.substring(s+1))));return r}}function In(){this.$get=Pn}function jn(e){function t(i,o){if(y(i)){var a={};return r(i,function(e,n){a[n]=t(n,e)}),a}return e.factory(i+n,o)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Hn),t("date",rr),t("filter",Vn),t("json",ir),t("limitTo",or),t("lowercase",Do),t("number",zn),t("orderBy",ar),t("uppercase",To)}function Vn(){return function(e,r,i){if(!n(e)){if(null==e)return e;throw t("filter")("notarray","Expected array but received: {0}",e)}var o,a,s=Ln(r);switch(s){case"function":o=r;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=Rn(r,i,a);break;default:return e}return Array.prototype.filter.call(e,o)}}function Rn(e,t,n){var r,i=y(e)&&"$"in e;return t===!0?t=L:C(t)||(t=function(e,t){return v(e)?!1:null===e||null===t?e===t:y(t)||y(e)&&!m(e)?!1:(e=Tr(""+e),t=Tr(""+t),-1!==e.indexOf(t))}),r=function(r){return i&&!y(r)?Un(r,e.$,t,!1):Un(r,e,t,n)}}function Un(e,t,n,r,i){var o=Ln(e),a=Ln(t);if("string"===a&&"!"===t.charAt(0))return!Un(e,t.substring(1),n,r);if(Wr(e))return e.some(function(e){return Un(e,t,n,r)});switch(o){case"object":var s;if(r){for(s in e)if("$"!==s.charAt(0)&&Un(e[s],t,n,!0))return!0;return i?!1:Un(e,t,n,!1)}if("object"===a){for(s in t){var u=t[s];if(!C(u)&&!v(u)){var l="$"===s,c=l?e:e[s];if(!Un(c,u,n,l,l))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Ln(e){return null===e?"null":typeof e}function Hn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return v(n)&&(n=t.CURRENCY_SYM),v(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:Wn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function zn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Wn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function qn(e){var t,n,r,i,o,a=0;for((n=e.indexOf(Co))>-1&&(e=e.replace(Co,"")),(r=e.search(/e/i))>0?(0>n&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):0>n&&(n=e.length),r=0;e.charAt(r)==_o;r++);if(r==(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)==_o;)o--;for(n-=r,t=[],i=0;o>=r;r++,i++)t[i]=+e.charAt(r)}return n>So&&(t=t.splice(0,So-1),a=n-1,n=1),{d:t,e:a,i:n}}function Bn(e,t,n,r){var i=e.d,o=i.length-e.i;t=v(t)?Math.min(Math.max(n,o),r):+t;var a=t+e.i,s=i[a];if(a>0){i.splice(Math.max(e.i,a));for(var u=a;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),e.i=1,i.length=Math.max(1,a=t+1),i[0]=0;for(var l=1;a>l;l++)i[l]=0}if(s>=5)if(0>a-1){for(var c=0;c>a;c--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;o<Math.max(0,t);o++)i.push(0);var f=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0);f&&(i.unshift(f),e.i++)}function Wn(e,t,n,r,i){if(!w(e)&&!x(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,u=Math.abs(e)+"",l="";if(a)l="\u221e";else{o=qn(u),Bn(o,i,t.minFrac,t.maxFrac);var c=o.d,f=o.i,d=o.e,p=[];for(s=c.reduce(function(e,t){return e&&!t},!0);0>f;)c.unshift(0),f++;f>0?p=c.splice(f):(p=c,c=[0]);var h=[];for(c.length>=t.lgSize&&h.unshift(c.splice(-t.lgSize).join(""));c.length>t.gSize;)h.unshift(c.splice(-t.gSize).join(""));c.length&&h.unshift(c.join("")),l=h.join(n),p.length&&(l+=r+p.join("")),d&&(l+="e+"+d)}return 0>e&&!s?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function Yn(e,t,n,r){var i="";for((0>e||r&&0>=e)&&(r?e=-e+1:(e=-e,i="-")),e=""+e;e.length<t;)e=_o+e;return n&&(e=e.substr(e.length-t)),i+e}function Xn(e,t,n,r,i){return n=n||0,function(o){var a=o["get"+e]();return(n>0||a>-n)&&(a+=n),0===a&&-12==n&&(a=12),Yn(a,t,r,i)}}function Gn(e,t,n){return function(r,i){var o=r["get"+e](),a=(n?"STANDALONE":"")+(t?"SHORT":""),s=Mr(a+e);return i[s][o]}}function Kn(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=Yn(Math[r>0?"floor":"ceil"](r/60),2)+Yn(Math.abs(r%60),2)}function Jn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(4>=t?5:12)-t)}function Zn(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Qn(e){return function(t){var n=Jn(t.getFullYear()),r=Zn(t),i=+r-+n,o=1+Math.round(i/6048e5);return Yn(o,e)}}function er(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function tr(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function nr(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function rr(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=f(t[9]+t[10]),o=f(t[9]+t[11])),a.call(r,f(t[1]),f(t[2])-1,f(t[3]));var u=f(t[4]||0)-i,l=f(t[5]||0)-o,c=f(t[6]||0),d=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,u,l,c,d),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,o){var a,s,u="",l=[];if(i=i||"mediumDate",i=e.DATETIME_FORMATS[i]||i,w(n)&&(n=Eo.test(n)?f(n):t(n)),x(n)&&(n=new Date(n)),!S(n)||!isFinite(n.getTime()))return n;for(;i;)s=Ao.exec(i),s?(l=H(l,s,1),i=l.pop()):(l.push(i),i=null);var c=n.getTimezoneOffset();return o&&(c=X(o,c),n=K(n,o,!0)),r(l,function(t){a=ko[t],u+=a?a(n,e.DATETIME_FORMATS,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function ir(){return function(e,t){return v(t)&&(t=2),W(e,t)}}function or(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):f(t),isNaN(t)?e:(x(e)&&(e=e.toString()),Wr(e)||w(e)?(n=!n||isNaN(n)?0:f(n),n=0>n?Math.max(0,e.length+n):n,t>=0?e.slice(n,n+t):0===n?e.slice(t,e.length):e.slice(Math.max(0,n+t),n)):e)}}function ar(e){function r(t,n){return n=n?-1:1,t.map(function(t){var r=1,i=h;if(C(t))i=t;else if(w(t)&&("+"!=t.charAt(0)&&"-"!=t.charAt(0)||(r="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(i=e(t),i.constant))){var o=i();i=function(e){return e[o]}}return{get:i,descending:r*n}})}function i(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e,t){return"function"==typeof e.valueOf&&(e=e.valueOf(),i(e))?e:m(e)&&(e=e.toString(),i(e))?e:t}function a(e,t){var n=typeof e;return null===e?(n="string",e="null"):"string"===n?e=e.toLowerCase():"object"===n&&(e=o(e,t)),{value:e,type:n}}function s(e,t){var n=0;return e.type===t.type?e.value!==t.value&&(n=e.value<t.value?-1:1):n=e.type<t.type?-1:1,n}return function(e,i,o){function u(e,t){return{value:e,predicateValues:c.map(function(n){return a(n.get(e),t)})}}function l(e,t){for(var n=0,r=0,i=c.length;i>r&&!(n=s(e.predicateValues[r],t.predicateValues[r])*c[r].descending);++r);return n}if(null==e)return e;if(!n(e))throw t("orderBy")("notarray","Expected array but received: {0}",e);
+Wr(i)||(i=[i]),0===i.length&&(i=["+"]);var c=r(i,o);c.push({get:function(){return{}},descending:o?-1:1});var f=Array.prototype.map.call(e,u);return f.sort(l),e=f.map(function(e){return e.value})}}function sr(e){return C(e)&&(e={link:e}),e.restrict=e.restrict||"AC",g(e)}function ur(e,t){e.$name=t}function lr(e,t,n,i,o){var a=this,s=[];a.$error={},a.$$success={},a.$pending=void 0,a.$name=o(t.name||t.ngForm||"")(n),a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,a.$submitted=!1,a.$$parentForm=No,a.$rollbackViewValue=function(){r(s,function(e){e.$rollbackViewValue()})},a.$commitViewValue=function(){r(s,function(e){e.$commitViewValue()})},a.$addControl=function(e){de(e.$name,"input"),s.push(e),e.$name&&(a[e.$name]=e),e.$$parentForm=a},a.$$renameControl=function(e,t){var n=e.$name;a[n]===e&&delete a[n],a[t]=e,e.$name=t},a.$removeControl=function(e){e.$name&&a[e.$name]===e&&delete a[e.$name],r(a.$pending,function(t,n){a.$setValidity(n,null,e)}),r(a.$error,function(t,n){a.$setValidity(n,null,e)}),r(a.$$success,function(t,n){a.$setValidity(n,null,e)}),V(s,e),e.$$parentForm=No},Cr({ctrl:this,$element:e,set:function(e,t,n){var r=e[t];if(r){var i=r.indexOf(n);-1===i&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(V(r,n),0===r.length&&delete e[t])},$animate:i}),a.$setDirty=function(){i.removeClass(e,va),i.addClass(e,$a),a.$dirty=!0,a.$pristine=!1,a.$$parentForm.$setDirty()},a.$setPristine=function(){i.setClass(e,va,$a+" "+Fo),a.$dirty=!1,a.$pristine=!0,a.$submitted=!1,r(s,function(e){e.$setPristine()})},a.$setUntouched=function(){r(s,function(e){e.$setUntouched()})},a.$setSubmitted=function(){i.addClass(e,Fo),a.$submitted=!0,a.$$parentForm.$setSubmitted()}}function cr(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function fr(e,t,n,r,i,o){dr(e,t,n,r,i,o),cr(r)}function dr(e,t,n,r,i,o){var a=Tr(t[0].type);if(!i.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1,l()})}var u,l=function(e){if(u&&(o.defer.cancel(u),u=null),!s){var i=t.val(),l=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Xr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))t.on("input",l);else{var c=function(e,t,n){u||(u=o.defer(function(){u=null,t&&t.value===n||l(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||t>15&&19>t||t>=37&&40>=t||c(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",c)}t.on("change",l),Xo[a]&&r.$$hasNativeValidators&&a===n.type&&t.on(Yo,function(e){if(!u){var t=this[Er],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 pr(e,t){if(S(e))return e;if(w(e)){qo.lastIndex=0;var n=qo.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,l=Jn(r),c=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),u=t.getMilliseconds()),new Date(r,0,l.getDate()+c,o,a,s,u)}}return NaN}function hr(e,t){return function(n,i){var o,a;if(S(n))return n;if(w(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Vo.test(n))return new Date(n);if(e.lastIndex=0,o=e.exec(n))return o.shift(),a=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(o,function(e,n){n<t.length&&(a[t[n]]=+e)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function gr(e,t,n,r){return function(i,o,a,s,u,l,c){function f(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function d(e){return $(e)&&!S(e)?n(e)||void 0:e}mr(i,o,a,s),dr(i,o,a,s,u,l);var p,h=s&&s.$options&&s.$options.timezone;if(s.$$parserName=e,s.$parsers.push(function(e){if(s.$isEmpty(e))return null;if(t.test(e)){var r=n(e,p);return h&&(r=K(r,h)),r}}),s.$formatters.push(function(e){if(e&&!S(e))throw Ca("datefmt","Expected `{0}` to be a date",e);return f(e)?(p=e,p&&h&&(p=K(p,h,!0)),c("date")(e,r,h)):(p=null,"")}),$(a.min)||a.ngMin){var g;s.$validators.min=function(e){return!f(e)||v(g)||n(e)>=g},a.$observe("min",function(e){g=d(e),s.$validate()})}if($(a.max)||a.ngMax){var m;s.$validators.max=function(e){return!f(e)||v(m)||n(e)<=m},a.$observe("max",function(e){m=d(e),s.$validate()})}}}function mr(e,t,n,r){var i=t[0],o=r.$$hasNativeValidators=y(i.validity);o&&r.$parsers.push(function(e){var n=t.prop(Er)||{};return n.badInput||n.typeMismatch?void 0:e})}function vr(e,t,n,r,i,o){if(mr(e,t,n,r),dr(e,t,n,r,i,o),r.$$parserName="number",r.$parsers.push(function(e){return r.$isEmpty(e)?null:Lo.test(e)?parseFloat(e):void 0}),r.$formatters.push(function(e){if(!r.$isEmpty(e)){if(!x(e))throw Ca("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}),$(n.min)||n.ngMin){var a;r.$validators.min=function(e){return r.$isEmpty(e)||v(a)||e>=a},n.$observe("min",function(e){$(e)&&!x(e)&&(e=parseFloat(e,10)),a=x(e)&&!isNaN(e)?e:void 0,r.$validate()})}if($(n.max)||n.ngMax){var s;r.$validators.max=function(e){return r.$isEmpty(e)||v(s)||s>=e},n.$observe("max",function(e){$(e)&&!x(e)&&(e=parseFloat(e,10)),s=x(e)&&!isNaN(e)?e:void 0,r.$validate()})}}function $r(e,t,n,r,i,o){dr(e,t,n,r,i,o),cr(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Ro.test(n)}}function yr(e,t,n,r,i,o){dr(e,t,n,r,i,o),cr(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Uo.test(n)}}function br(e,t,n,r){v(n.name)&&t.attr("name",a());var i=function(e){t[0].checked&&r.$setViewValue(n.value,e&&e.type)};t.on("click",i),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function wr(e,t,n,r,i){var o;if($(r)){if(o=e(r),!o.constant)throw Ca("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}function xr(e,t,n,r,i,o,a,s){var u=wr(s,e,"ngTrueValue",n.ngTrueValue,!0),l=wr(s,e,"ngFalseValue",n.ngFalseValue,!1),c=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",c),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return e===!1},r.$formatters.push(function(e){return L(e,u)}),r.$parsers.push(function(e){return e?u:l})}function Sr(e,t){return e="ngClass"+e,["$animate",function(n){function i(e,t){var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i==t[o])continue e;n.push(i)}return n}function o(e){var t=[];return Wr(e)?(r(e,function(e){t=t.concat(o(e))}),t):w(e)?e.split(" "):y(e)?(r(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t):e}return{restrict:"AC",link:function(a,s,u){function l(e){var t=f(e,1);u.$addClass(t)}function c(e){var t=f(e,-1);u.$removeClass(t)}function f(e,t){var n=s.data("$classCounts")||ge(),i=[];return r(e,function(e){(t>0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&i.push(e))}),s.data("$classCounts",n),i.join(" ")}function d(e,t){var r=i(t,e),o=i(e,t);r=f(r,1),o=f(o,-1),r&&r.length&&n.addClass(s,r),o&&o.length&&n.removeClass(s,o)}function p(e){if(t===!0||a.$index%2===t){var n=o(e||[]);if(h){if(!L(e,h)){var r=o(h);d(r,n)}}else l(n)}h=Wr(e)?e.map(function(e){return U(e)}):U(e)}var h;a.$watch(u[e],p,!0),u.$observe("class",function(){p(a.$eval(u[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,r){var i=1&n;if(i!==(1&r)){var s=o(a.$eval(u[e]));i===t?l(s):c(s)}})}}}]}function Cr(e){function t(e,t,s){v(t)?n("$pending",e,s):r("$pending",e,s),M(t)?t?(c(a.$error,e,s),l(a.$$success,e,s)):(l(a.$error,e,s),c(a.$$success,e,s)):(c(a.$error,e,s),c(a.$$success,e,s)),a.$pending?(i(wa,!0),a.$valid=a.$invalid=void 0,o("",null)):(i(wa,!1),a.$valid=_r(a.$error),a.$invalid=!a.$valid,o("",a.$valid));var u;u=a.$pending&&a.$pending[e]?void 0:a.$error[e]?!1:a.$$success[e]?!0:null,o(e,u),a.$$parentForm.$setValidity(e,u,a)}function n(e,t,n){a[e]||(a[e]={}),l(a[e],t,n)}function r(e,t,n){a[e]&&c(a[e],t,n),_r(a[e])&&(a[e]=void 0)}function i(e,t){t&&!u[e]?(f.addClass(s,e),u[e]=!0):!t&&u[e]&&(f.removeClass(s,e),u[e]=!1)}function o(e,t){e=e?"-"+ue(e,"-"):"",i(ga+e,t===!0),i(ma+e,t===!1)}var a=e.ctrl,s=e.$element,u={},l=e.set,c=e.unset,f=e.$animate;u[ma]=!(u[ga]=s.hasClass(ga)),a.$setValidity=t}function _r(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function kr(e){e[0].hasAttribute("selected")&&(e[0].selected=!0)}var Ar=/^\/(.+)\/([a-z]*)$/,Er="validity",Dr=Object.prototype.hasOwnProperty,Tr=function(e){return w(e)?e.toLowerCase():e},Mr=function(e){return w(e)?e.toUpperCase():e},Or=function(e){return w(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},Nr=function(e){return w(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(Tr=Or,Mr=Nr);var Fr,Pr,Ir,jr,Vr=[].slice,Rr=[].splice,Ur=[].push,Lr=Object.prototype.toString,Hr=Object.getPrototypeOf,zr=t("ng"),qr=e.angular||(e.angular={}),Br=0;Fr=e.document.documentMode,p.$inject=[],h.$inject=[];var Wr=Array.isArray,Yr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Xr=function(e){return w(e)?e.trim():e},Gr=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Kr=function(){function t(){try{return new Function(""),!1}catch(e){return!0}}if(!$(Kr.rules)){var n=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(n){var r=n.getAttribute("ng-csp")||n.getAttribute("data-ng-csp");Kr.rules={noUnsafeEval:!r||-1!==r.indexOf("no-unsafe-eval"),noInlineStyle:!r||-1!==r.indexOf("no-inline-style")}}else Kr.rules={noUnsafeEval:t(),noInlineStyle:!1}}return Kr.rules},Jr=function(){if($(Jr.name_))return Jr.name_;var t,n,r,i,o=Qr.length;for(n=0;o>n;++n)if(r=Qr[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return Jr.name_=i},Zr=/:/g,Qr=["ng-","data-ng-","ng:","x-ng-"],ei=/[A-Z]/g,ti=!1,ni=1,ri=2,ii=3,oi=8,ai=9,si=11,ui={full:"1.5.5",major:1,minor:5,dot:5,codeName:"material-conspiration"};De.expando="ng339";var li=De.cache={},ci=1,fi=function(e,t,n){e.addEventListener(t,n,!1)},di=function(e,t,n){e.removeEventListener(t,n,!1)};De._data=function(e){return this.cache[e[this.expando]]||{}};var pi=/([\:\-\_]+(.))/g,hi=/^moz([A-Z])/,gi={mouseleave:"mouseout",mouseenter:"mouseover"},mi=t("jqLite"),vi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,$i=/<|&#?\w+;/,yi=/<([\w:-]+)/,bi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wi={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,"",""]};wi.optgroup=wi.option,wi.tbody=wi.tfoot=wi.colgroup=wi.caption=wi.thead,wi.th=wi.td;var xi=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},Si=De.prototype={ready:function(t){function n(){r||(r=!0,t())}var r=!1;"complete"===e.document.readyState?e.setTimeout(n):(this.on("DOMContentLoaded",n),De(e).on("load",n))},toString:function(){var e=[];return r(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return Pr(e>=0?this[e]:this[this.length+e])},length:0,push:Ur,sort:[].sort,splice:[].splice},Ci={};r("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Ci[Tr(e)]=e});var _i={};r("input,select,option,textarea,button,form,details".split(","),function(e){_i[e]=!0});var ki={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};r({data:Pe,removeData:Ne,hasData:Ce,cleanData:_e},function(e,t){De[t]=e}),r({data:Pe,inheritedData:Le,scope:function(e){return Pr.data(e,"$scope")||Le(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Pr.data(e,"$isolateScope")||Pr.data(e,"$isolateScopeNoTemplate")},controller:Ue,injector:function(e){return Le(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Ie,css:function(e,t,n){return t=we(t),$(n)?void(e.style[t]=n):e.style[t]},attr:function(e,t,n){var r=e.nodeType;if(r!==ii&&r!==ri&&r!==oi){var i=Tr(t);if(Ci[i]){if(!$(n))return e[t]||(e.attributes.getNamedItem(t)||p).specified?i:void 0;n?(e[t]=!0,e.setAttribute(t,i)):(e[t]=!1,e.removeAttribute(i))}else if($(n))e.setAttribute(t,n);else if(e.getAttribute){var o=e.getAttribute(t,2);return null===o?void 0:o}}},prop:function(e,t,n){return $(n)?void(e[t]=n):e[t]},text:function(){function e(e,t){if(v(t)){var n=e.nodeType;return n===ni||n===ii?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(v(t)){if(e.multiple&&"select"===j(e)){var n=[];return r(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){return v(t)?e.innerHTML:(Me(e,!0),void(e.innerHTML=t))},empty:He},function(e,t){De.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==He&&v(2==e.length&&e!==Ie&&e!==Ue?t:n)){if(y(t)){for(r=0;o>r;r++)if(e===Pe)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var a=e.$dv,s=v(a)?Math.min(o,1):o,u=0;s>u;u++){var l=e(this[u],t,n);a=a?a+l:l}return a}for(r=0;o>r;r++)e(this[r],t,n);return this}}),r({removeData:Ne,on:function(e,t,n,r){if($(r))throw mi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Se(e)){var i=Fe(e,!0),o=i.events,a=i.handle;a||(a=i.handle=Ye(e,o));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],u=s.length,l=function(t,r,i){var s=o[t];s||(s=o[t]=[],s.specialHandlerWrapper=r,"$destroy"===t||i||fi(e,t,a)),s.push(n)};u--;)t=s[u],gi[t]?(l(gi[t],Ge),l(t,void 0,!0)):l(t)}},off:Oe,one:function(e,t,n){e=Pr(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,i=e.parentNode;Me(e),r(new De(t),function(t){n?i.insertBefore(t,n.nextSibling):i.replaceChild(t,e),n=t})},children:function(e){var t=[];return r(e.childNodes,function(e){e.nodeType===ni&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===ni||n===si){t=new De(t);for(var r=0,i=t.length;i>r;r++){var o=t[r];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===ni){var n=e.firstChild;r(new De(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){Ee(e,Pr(t).eq(0).clone()[0])},remove:ze,detach:function(e){ze(e,!0)},after:function(e,t){var n=e,r=e.parentNode;t=new De(t);for(var i=0,o=t.length;o>i;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Ve,removeClass:je,toggleClass:function(e,t,n){t&&r(t.split(" "),function(t){var r=n;v(r)&&(r=!Ie(e,t)),(r?Ve:je)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==si?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Te,triggerHandler:function(e,t,n){var i,o,a,s=t.type||t,u=Fe(e),c=u&&u.events,f=c&&c[s];f&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:p,type:s,target:e},t.type&&(i=l(i,t)),o=U(f),a=n?[i].concat(n):[i],r(o,function(t){i.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){De.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;a>o;o++)v(i)?(i=e(this[o],t,n,r),$(i)&&(i=Pr(i))):Re(i,e(this[o],t,n,r));return $(i)?i:this},De.prototype.bind=De.prototype.on,De.prototype.unbind=De.prototype.off}),Ze.prototype={put:function(e,t){this[Je(e,this.nextUid)]=t},get:function(e){return this[Je(e,this.nextUid)]},remove:function(e){var t=this[e=Je(e,this.nextUid)];return delete this[e],t}};var Ai=[function(){this.$get=[function(){return Ze}]}],Ei=/^([^\(]+?)=>/,Di=/^[^\(]*\(\s*([^\)]*)\)/m,Ti=/,/,Mi=/^\s*(_?)(\S+?)\1\s*$/,Oi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ni=t("$injector");nt.$$annotate=tt;var Fi=t("$animate"),Pi=1,Ii="ng-animate",ji=function(){this.$get=p},Vi=function(){var e=new Ze,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function o(e,t,n){var i=!1;return t&&(t=w(t)?t.split(" "):Wr(t)?t:[],r(t,function(t){t&&(i=!0,e[t]=n)})),i}function a(){r(t,function(t){var n=e.get(t);if(n){var i=at(t.attr("class")),o="",a="";r(n,function(e,t){var n=!!i[t];e!==n&&(e?o+=(o.length?" ":"")+t:a+=(a.length?" ":"")+t)}),r(t,function(e){o&&Ve(e,o),a&&je(e,a)}),e.remove(t)}}),t.length=0}function s(n,r,s){var u=e.get(n)||{},l=o(u,r,!0),c=o(u,s,!1);(l||c)&&(e.put(n,u),t.push(n),1===t.length&&i.$$postDigest(a))}return{enabled:p,on:p,off:p,pin:p,push:function(e,t,r,i){i&&i(),r=r||{},r.from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&s(e,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},Ri=["$provide",function(e){var t=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Fi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.classNameFilter=function(e){if(1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null,this.$$classNameFilter)){var t=new RegExp("(\\s+|\\/)"+Ii+"(\\s+|\\/)");if(t.test(this.$$classNameFilter.toString()))throw Fi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Ii)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=ot(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,r,i,o){return r=r&&Pr(r),i=i&&Pr(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",st(o))},move:function(n,r,i,o){return r=r&&Pr(r),i=i&&Pr(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",st(o))},leave:function(t,n){return e.push(t,"leave",st(n),function(){t.remove()})},addClass:function(t,n,r){return r=st(r),r.addClass=it(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=st(r),r.removeClass=it(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=st(i),i.addClass=it(i.addClass,n),i.removeClass=it(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=st(o),o.from=o.from?l(o.from,n):n,o.to=o.to?l(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=it(o.tempClasses,i),e.push(t,"animate",o)}}}]}],Ui=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e(function(){for(var e=0;e<n.length;e++)n[e]();n=[]})}var n=[];return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}]},Li=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(e,t,n,i,o){function a(e){this.setHost(e);var t=n(),r=function(e){o(e,0,!1)};this._doneCallbacks=[],this._tick=function(e){var n=i[0];n&&n.hidden?r(e):t(e)},this._state=0}var s=0,u=1,l=2;return a.chain=function(e,t){function n(){return r===e.length?void t(!0):void e[r](function(e){return e===!1?void t(!1):(r++,void n())})}var r=0;n()},a.all=function(e,t){function n(n){o=o&&n,++i===e.length&&t(o)}var i=0,o=!0;r(e,function(e){e.done(n)})},a.prototype={setHost:function(e){this.host=e||{}},done:function(e){this._state===l?e():this._doneCallbacks.push(e)},progress:p,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){t===!1?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},"catch":function(e){return this.getPromise()["catch"](e)},"finally":function(e){return this.getPromise()["finally"](e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;t._state===s&&(t._state=u,t._tick(function(){t._resolve(e)}))},_resolve:function(e){this._state!==l&&(r(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=l)}},a}]},Hi=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function i(){return e(function(){o(),s||u.complete(),s=!0}),u}function o(){a.addClass&&(t.addClass(a.addClass),a.addClass=null),a.removeClass&&(t.removeClass(a.removeClass),a.removeClass=null),a.to&&(t.css(a.to),a.to=null)}var a=r||{};a.$$prepared||(a=R(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(t.css(a.from),a.from=null);var s,u=new n;return{start:i,end:i}}}]},zi=t("$compile"),qi=new dt;pt.$inject=["$provide","$$sanitizeUriProvider"],ht.prototype.isFirstChange=function(){return this.previousValue===qi};var Bi=/^((?:x|data)[\:\-_])/i,Wi=t("$controller"),Yi=/^(\S+)(\s+as\s+([\w$]+))?$/,Xi=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof Pr&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},Gi="application/json",Ki={"Content-Type":Gi+";charset=utf-8"},Ji=/^\[|^\{(?!\{)/,Zi={"[":/]$/,"{":/}$/},Qi=/^\)\]\}',?\n/,eo=t("$http"),to=function(e){return function(){throw eo("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",e)}},no=qr.$interpolateMinErr=t("$interpolate");no.throwNoconcat=function(e){throw no("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",e)},no.interr=function(e,t){return no("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var ro=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,io={http:80,https:443,ftp:21},oo=t("$location"),ao={$$html5:!1,$$replace:!1,absUrl:Xt("$$absUrl"),url:function(e){if(v(e))return this.$$url;var t=ro.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:Xt("$$protocol"),host:Xt("$$host"),port:Xt("$$port"),path:Gt("$$path",function(e){return e=null!==e?e.toString():"","/"==e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(w(e)||x(e))e=e.toString(),this.$$search=Q(e);else{if(!y(e))throw oo("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=R(e,{}),r(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:v(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:Gt("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};r([Yt,Wt,Bt],function(e){e.prototype=Object.create(ao),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==Bt||!this.$$html5)throw oo("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=v(t)?null:t,this}});var so=t("$parse"),uo=Function.prototype.call,lo=Function.prototype.apply,co=Function.prototype.bind,fo=ge();r("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){fo[e]=!0});var po={n:"\n",f:"\f",r:"\r",t:" ",v:"\x0B","'":"'",'"':'"'},ho=function(e){this.options=e};ho.prototype={constructor:ho,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=fo[t],o=fo[n],a=fo[r];if(i||o||a){var s=a?r:o?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):!1},isNumber:function(e){return e>="0"&&"9">=e&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||" "===e||"\n"===e||"\x0B"===e||"\xa0"===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return e>="a"&&"z">=e||e>="A"&&"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 n>=55296&&56319>=n&&r>=56320&&57343>=r?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=$(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw so("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=Tr(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);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{var s=po[o];n+=s||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 go=function(e,t){this.lexer=e,this.options=t};go.Program="Program",go.ExpressionStatement="ExpressionStatement",go.AssignmentExpression="AssignmentExpression",go.ConditionalExpression="ConditionalExpression",go.LogicalExpression="LogicalExpression",go.BinaryExpression="BinaryExpression",go.UnaryExpression="UnaryExpression",go.CallExpression="CallExpression",go.MemberExpression="MemberExpression",go.Identifier="Identifier",go.Literal="Literal",go.ArrayExpression="ArrayExpression",go.Property="Property",go.ObjectExpression="ObjectExpression",go.ThisExpression="ThisExpression",go.LocalsExpression="LocalsExpression",go.NGValueParameter="NGValueParameter",go.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:go.Program,body:e}},expressionStatement:function(){return{type:go.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e,t=this.expression();e=this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();return this.expect("=")&&(e={type:go.AssignmentExpression,left:e,right:this.assignment(),operator:"="}),e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:go.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:go.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:go.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:go.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:go.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:go.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:go.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:go.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=R(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:go.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:go.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:go.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:go.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:go.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do e.push(this.expression());while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:go.Identifier,name:e.text}},constant:function(){return{type:go.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:go.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:go.Property,kind:"init"},this.peek().constant?e.key=this.constant():this.peek().identifier?e.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),e.value=this.expression(),t.push(e)}while(this.expect(","));return this.consume("}"),{type:go.ObjectExpression,properties:t}},throwError:function(e,t){throw so("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw so("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw so("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return i?(this.tokens.shift(),i):!1},selfReferential:{"this":{type:go.ThisExpression},$locals:{type:go.LocalsExpression}}},pn.prototype={compile:function(e,t){var n=this,i=this.astBuilder.ast(e);this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},sn(i,n.$filter);var o,a="";if(this.stage="assign",o=cn(i)){this.state.computing="assign";var s=this.nextId();this.recurse(o,s),this.return_(s),a="fn.assign="+this.generateFunction("assign","s,v,l");
+}var u=un(i.body);n.stage="inputs",r(u,function(e,t){var r="fn"+t;n.state[r]={vars:[],body:[],own:{}},n.state.computing=r;var i=n.nextId();n.recurse(e,i),n.return_(i),n.state.inputs.push(r),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(i);var l='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",c=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",l)(this.$filter,Zt,en,tn,Qt,nn,rn,on,e);return this.state=this.stage=void 0,c.literal=fn(i),c.constant=dn(i),c},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return r(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return r(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,i,o,a){var s,u,l,c,f=this;if(i=i||p,!a&&$(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,i,o,!0));switch(e.type){case go.Program:r(e.body,function(t,n){f.recurse(t.expression,void 0,void 0,function(e){u=e}),n!==e.body.length-1?f.current().body.push(u,";"):f.return_(u)});break;case go.Literal:c=this.escape(e.value),this.assign(t,c),i(c);break;case go.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){u=e}),c=e.operator+"("+this.ifDefined(u,0)+")",this.assign(t,c),i(c);break;case go.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),i(c);break;case go.LogicalExpression:t=t||this.nextId(),f.recurse(e.left,t),f.if_("&&"===e.operator?t:f.not(t),f.lazyRecurse(e.right,t)),i(t);break;case go.ConditionalExpression:t=t||this.nextId(),f.recurse(e.test,t),f.if_(t,f.lazyRecurse(e.alternate,t),f.lazyRecurse(e.consequent,t)),i(t);break;case go.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),Zt(e.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",e.name)),function(){f.if_("inputs"===f.stage||"s",function(){o&&1!==o&&f.if_(f.not(f.nonComputedMember("s",e.name)),f.lazyAssign(f.nonComputedMember("s",e.name),"{}")),f.assign(t,f.nonComputedMember("s",e.name))})},t&&f.lazyAssign(t,f.nonComputedMember("l",e.name))),(f.state.expensiveChecks||gn(e.name))&&f.addEnsureSafeObject(t),i(t);break;case go.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),f.recurse(e.object,s,void 0,function(){f.if_(f.notNull(s),function(){o&&1!==o&&f.addEnsureSafeAssignContext(s),e.computed?(u=f.nextId(),f.recurse(e.property,u),f.getStringValue(u),f.addEnsureSafeMemberName(u),o&&1!==o&&f.if_(f.not(f.computedMember(s,u)),f.lazyAssign(f.computedMember(s,u),"{}")),c=f.ensureSafeObject(f.computedMember(s,u)),f.assign(t,c),n&&(n.computed=!0,n.name=u)):(Zt(e.property.name),o&&1!==o&&f.if_(f.not(f.nonComputedMember(s,e.property.name)),f.lazyAssign(f.nonComputedMember(s,e.property.name),"{}")),c=f.nonComputedMember(s,e.property.name),(f.state.expensiveChecks||gn(e.property.name))&&(c=f.ensureSafeObject(c)),f.assign(t,c),n&&(n.computed=!1,n.name=e.property.name))},function(){f.assign(t,"undefined")}),i(t)},!!o);break;case go.CallExpression:t=t||this.nextId(),e.filter?(u=f.filter(e.callee.name),l=[],r(e.arguments,function(e){var t=f.nextId();f.recurse(e,t),l.push(t)}),c=u+"("+l.join(",")+")",f.assign(t,c),i(t)):(u=f.nextId(),s={},l=[],f.recurse(e.callee,u,s,function(){f.if_(f.notNull(u),function(){f.addEnsureSafeFunction(u),r(e.arguments,function(e){f.recurse(e,f.nextId(),void 0,function(e){l.push(f.ensureSafeObject(e))})}),s.name?(f.state.expensiveChecks||f.addEnsureSafeObject(s.context),c=f.member(s.context,s.name,s.computed)+"("+l.join(",")+")"):c=u+"("+l.join(",")+")",c=f.ensureSafeObject(c),f.assign(t,c)},function(){f.assign(t,"undefined")}),i(t)}));break;case go.AssignmentExpression:if(u=this.nextId(),s={},!ln(e.left))throw so("lval","Trying to assign a value to a non l-value");this.recurse(e.left,void 0,s,function(){f.if_(f.notNull(s.context),function(){f.recurse(e.right,u),f.addEnsureSafeObject(f.member(s.context,s.name,s.computed)),f.addEnsureSafeAssignContext(s.context),c=f.member(s.context,s.name,s.computed)+e.operator+u,f.assign(t,c),i(t||c)})},1);break;case go.ArrayExpression:l=[],r(e.elements,function(e){f.recurse(e,f.nextId(),void 0,function(e){l.push(e)})}),c="["+l.join(",")+"]",this.assign(t,c),i(c);break;case go.ObjectExpression:l=[],r(e.properties,function(e){f.recurse(e.value,f.nextId(),void 0,function(t){l.push(f.escape(e.key.type===go.Identifier?e.key.name:""+e.key.value)+":"+t)})}),c="{"+l.join(",")+"}",this.assign(t,c),i(c);break;case go.ThisExpression:this.assign(t,"s"),i("s");break;case go.LocalsExpression:this.assign(t,"l"),i("l");break;case go.NGValueParameter:this.assign(t,"v"),i("v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){return e?(this.current().body.push(e,"=",t,";"),e):void 0},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(e===!0)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var n=/[$_a-zA-Z][$_a-zA-Z0-9]*/,r=/[^$_a-zA-Z0-9]/g;return n.test(t)?e+"."+t:e+'["'+t.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},addEnsureSafeObject:function(e){this.current().body.push(this.ensureSafeObject(e),";")},addEnsureSafeMemberName:function(e){this.current().body.push(this.ensureSafeMemberName(e),";")},addEnsureSafeFunction:function(e){this.current().body.push(this.ensureSafeFunction(e),";")},addEnsureSafeAssignContext:function(e){this.current().body.push(this.ensureSafeAssignContext(e),";")},ensureSafeObject:function(e){return"ensureSafeObject("+e+",text)"},ensureSafeMemberName:function(e){return"ensureSafeMemberName("+e+",text)"},ensureSafeFunction:function(e){return"ensureSafeFunction("+e+",text)"},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},ensureSafeAssignContext:function(e){return"ensureSafeAssignContext("+e+",text)"},lazyRecurse:function(e,t,n,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(e===!0)return"true";if(e===!1)return"false";if(null===e)return"null";if("undefined"==typeof e)return"undefined";throw so("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},hn.prototype={compile:function(e,t){var n=this,i=this.astBuilder.ast(e);this.expression=e,this.expensiveChecks=t,sn(i,n.$filter);var o,a;(o=cn(i))&&(a=this.recurse(o));var s,u=un(i.body);u&&(s=[],r(u,function(e,t){var r=n.recurse(e);e.input=r,s.push(r),e.watchId=t}));var l=[];r(i.body,function(e){l.push(n.recurse(e.expression))});var c=0===i.body.length?p:1===i.body.length?l[0]:function(e,t){var n;return r(l,function(r){n=r(e,t)}),n};return a&&(c.assign=function(e,t,n){return a(e,n,t)}),s&&(c.inputs=s),c.literal=fn(i),c.constant=dn(i),c},recurse:function(e,t,n){var i,o,a,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case go.Literal:return this.value(e.value,t);case go.UnaryExpression:return o=this.recurse(e.argument),this["unary"+e.operator](o,t);case go.BinaryExpression:return i=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](i,o,t);case go.LogicalExpression:return i=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](i,o,t);case go.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case go.Identifier:return Zt(e.name,s.expression),s.identifier(e.name,s.expensiveChecks||gn(e.name),t,n,s.expression);case go.MemberExpression:return i=this.recurse(e.object,!1,!!n),e.computed||(Zt(e.property.name,s.expression),o=e.property.name),e.computed&&(o=this.recurse(e.property)),e.computed?this.computedMember(i,o,t,n,s.expression):this.nonComputedMember(i,o,s.expensiveChecks,t,n,s.expression);case go.CallExpression:return a=[],r(e.arguments,function(e){a.push(s.recurse(e))}),e.filter&&(o=this.$filter(e.callee.name)),e.filter||(o=this.recurse(e.callee,!0)),e.filter?function(e,n,r,i){for(var s=[],u=0;u<a.length;++u)s.push(a[u](e,n,r,i));var l=o.apply(void 0,s,i);return t?{context:void 0,name:void 0,value:l}:l}:function(e,n,r,i){var u,l=o(e,n,r,i);if(null!=l.value){en(l.context,s.expression),tn(l.value,s.expression);for(var c=[],f=0;f<a.length;++f)c.push(en(a[f](e,n,r,i),s.expression));u=en(l.value.apply(l.context,c),s.expression)}return t?{value:u}:u};case go.AssignmentExpression:return i=this.recurse(e.left,!0,1),o=this.recurse(e.right),function(e,n,r,a){var u=i(e,n,r,a),l=o(e,n,r,a);return en(u.value,s.expression),nn(u.context),u.context[u.name]=l,t?{value:l}:l};case go.ArrayExpression:return a=[],r(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 go.ObjectExpression:return a=[],r(e.properties,function(e){a.push({key:e.key.type===go.Identifier?e.key.name:""+e.key.value,value:s.recurse(e.value)})}),function(e,n,r,i){for(var o={},s=0;s<a.length;++s)o[a[s].key]=a[s].value(e,n,r,i);return t?{value:o}:o};case go.ThisExpression:return function(e){return t?{value:e}:e};case go.LocalsExpression:return function(e,n){return t?{value:n}:n};case go.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=$(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=$(a)?-a:0,t?{value:a}:a}},"unary!":function(e,t){return function(n,r,i,o){var a=!e(n,r,i,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),l=on(s,u);return n?{value:l}:l}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),l=($(s)?s:0)-($(u)?u:0);return n?{value:l}:l}},"binary*":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)*t(r,i,o,a);return n?{value:s}:s}},"binary/":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)/t(r,i,o,a);return n?{value:s}:s}},"binary%":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)%t(r,i,o,a);return n?{value:s}:s}},"binary===":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)===t(r,i,o,a);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!==t(r,i,o,a);return n?{value:s}:s}},"binary==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)==t(r,i,o,a);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!=t(r,i,o,a);return n?{value:s}:s}},"binary<":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<t(r,i,o,a);return n?{value:s}:s}},"binary>":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n,r,i){return function(o,a){var s=a&&e in a?a:o;r&&1!==r&&s&&!s[e]&&(s[e]={});var u=s?s[e]:void 0;return t&&en(u,i),n?{context:s,name:e,value:u}:u}},computedMember:function(e,t,n,r,i){return function(o,a,s,u){var l,c,f=e(o,a,s,u);return null!=f&&(l=t(o,a,s,u),l=Qt(l),Zt(l,i),r&&1!==r&&(nn(f),f&&!f[l]&&(f[l]={})),c=f[l],en(c,i)),n?{context:f,name:l,value:c}:c}},nonComputedMember:function(e,t,n,r,i,o){return function(a,s,u,l){var c=e(a,s,u,l);i&&1!==i&&(nn(c),c&&!c[t]&&(c[t]={}));var f=null!=c?c[t]:void 0;return(n||gn(t))&&en(f,o),r?{context:c,name:t,value:f}:f}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}};var mo=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new go(e,n),this.astCompiler=n.csp?new hn(this.ast,t):new pn(this.ast,t)};mo.prototype={constructor:mo,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}};var vo=Object.prototype.valueOf,$o=t("$sce"),yo={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},bo=t("$compile"),wo=e.document.createElement("a"),xo=On(e.location.href);Pn.$inject=["$document"],jn.$inject=["$provide"];var So=22,Co=".",_o="0";Hn.$inject=["$locale"],zn.$inject=["$locale"];var ko={yyyy:Xn("FullYear",4,0,!1,!0),yy:Xn("FullYear",2,0,!0,!0),y:Xn("FullYear",1,0,!1,!0),MMMM:Gn("Month"),MMM:Gn("Month",!0),MM:Xn("Month",2,1),M:Xn("Month",1,1),LLLL:Gn("Month",!1,!0),dd:Xn("Date",2),d:Xn("Date",1),HH:Xn("Hours",2),H:Xn("Hours",1),hh:Xn("Hours",2,-12),h:Xn("Hours",1,-12),mm:Xn("Minutes",2),m:Xn("Minutes",1),ss:Xn("Seconds",2),s:Xn("Seconds",1),sss:Xn("Milliseconds",3),EEEE:Gn("Day"),EEE:Gn("Day",!0),a:er,Z:Kn,ww:Qn(2),w:Qn(1),G:tr,GG:tr,GGG:tr,GGGG:nr},Ao=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Eo=/^\-?\d+$/;rr.$inject=["$locale"];var Do=g(Tr),To=g(Mr);ar.$inject=["$parse"];var Mo=g({restrict:"E",compile:function(e,t){return t.href||t.xlinkHref?void 0:function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Lr.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Oo={};r(Ci,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!=e){var r=gt("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),Oo[r]=function(){return{restrict:"A",priority:100,link:i}}}}),r(ki,function(e,t){Oo[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(Ar);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),r(["src","srcset","href"],function(e){var t=gt("ng-"+e);Oo[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===Lr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){return t?(i.$set(a,t),void(Fr&&o&&r.prop(o,i[a]))):void("href"===e&&i.$set(a,null))})}}}});var No={$addControl:p,$$renameControl:ur,$removeControl:p,$setValidity:p,$setDirty:p,$setPristine:p,$setSubmitted:p},Fo="ng-submitted";lr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Po=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||p}var i={name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:lr,compile:function(n,i){n.addClass(va).addClass(ga);var o=i.name?"name":e&&i.ngForm?"ngForm":!1;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()};fi(n[0],"submit",u),n.on("$destroy",function(){t(function(){di(n[0],"submit",u)},0,!1)})}var c=a[1]||s.$$parentForm;c.$addControl(s);var f=o?r(s.$name):p;o&&(f(e,s),i.$observe(o,function(t){s.$name!==t&&(f(e,void 0),s.$$parentForm.$$renameControl(s,t),(f=r(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),f(e,void 0),l(s,No)})}}}};return i}]},Io=Po(),jo=Po(!0),Vo=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Ro=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Uo=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Lo=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ho=/^(\d{4,})-(\d{2})-(\d{2})$/,zo=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,qo=/^(\d{4,})-W(\d\d)$/,Bo=/^(\d{4,})-(\d\d)$/,Wo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Yo="keydown wheel mousedown",Xo=ge();r("date,datetime-local,month,time,week".split(","),function(e){Xo[e]=!0});var Go={text:fr,date:gr("date",Ho,hr(Ho,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":gr("datetimelocal",zo,hr(zo,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:gr("time",Wo,hr(Wo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:gr("week",qo,pr,"yyyy-Www"),month:gr("month",Bo,hr(Bo,["yyyy","MM"]),"yyyy-MM"),number:vr,url:$r,email:yr,radio:br,checkbox:xr,hidden:p,button:p,submit:p,reset:p,file:p},Ko=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(Go[Tr(a.type)]||Go.text)(i,o,a,s[0],t,e,n,r)}}}}],Jo=/^(true|false|\d+)$/,Zo=function(){return{restrict:"A",priority:100,compile:function(e,t){return Jo.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},Qo=["$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=v(e)?"":e})}}}}],ea=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=v(e)?"":e})}}}}],ta=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(e){return(e||"").toString()});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){r.html(e.getTrustedHtml(o(t))||"")})}}}}],na=g({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),ra=Sr("",!0),ia=Sr("Odd",0),oa=Sr("Even",1),aa=sr({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),sa=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ua={},la={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=gt("ng-"+e);ua[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t],null,!0);return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})};la[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var ca=["$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=he(s.clone),e.leave(l).then(function(){l=null}),s=null))})}}}],fa=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:qr.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,l,c){var f,d,p,h=0,g=function(){d&&(d.remove(),d=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).then(function(){d=null}),d=p,p=null)};r.$watch(o,function(o){var u=function(){!$(s)||s&&!r.$eval(s)||t()},d=++h;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&d===h){var t=r.$new();l.template=e;var s=c(t,function(e){g(),n.enter(e,null,i).then(u)});f=t,p=s,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||d===h&&(g(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(g(),l.template=null)})}}}}],da=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return Lr.call(r[0]).match(/SVG/)?(r.empty(),void t(ke(o.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r})):(r.html(o.template),void t(r.contents())(n))}}}],pa=sr({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),ha=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,i){var o=t.attr(n.$attr.ngList)||", ",a="false"!==n.ngTrim,s=a?Xr(o):o,u=function(e){if(!v(e)){var t=[];return e&&r(e.split(s),function(e){e&&t.push(a?Xr(e):e)}),t}};i.$parsers.push(u),i.$formatters.push(function(e){return Wr(e)?e.join(o):void 0}),i.$isEmpty=function(e){return!e||!e.length}}}},ga="ng-valid",ma="ng-invalid",va="ng-pristine",$a="ng-dirty",ya="ng-untouched",ba="ng-touched",wa="ng-pending",xa="ng-empty",Sa="ng-not-empty",Ca=t("ngModel"),_a=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,n,i,o,a,s,u,l,c){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=c(n.name||"",!1)(e),this.$$parentForm=No;var f,d=o(n.ngModel),h=d.assign,g=d,m=h,y=null,b=this;this.$$setOptions=function(e){if(b.$options=e,e&&e.getterSetter){var t=o(n.ngModel+"()"),r=o(n.ngModel+"($$$p)");g=function(e){var n=d(e);return C(n)&&(n=t(e)),n},m=function(e,t){C(d(e))?r(e,{$$$p:t}):h(e,t)}}else if(!d.assign)throw Ca("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,J(i))},this.$render=p,this.$isEmpty=function(e){return v(e)||""===e||null===e||e!==e},this.$$updateEmptyClasses=function(e){b.$isEmpty(e)?(a.removeClass(i,Sa),a.addClass(i,xa)):(a.removeClass(i,xa),a.addClass(i,Sa))};var w=0;Cr({ctrl:this,$element:i,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},$animate:a}),this.$setPristine=function(){b.$dirty=!1,b.$pristine=!0,a.removeClass(i,$a),a.addClass(i,va)},this.$setDirty=function(){b.$dirty=!0,b.$pristine=!1,a.removeClass(i,va),a.addClass(i,$a),b.$$parentForm.$setDirty()},this.$setUntouched=function(){b.$touched=!1,b.$untouched=!0,a.setClass(i,ya,ba)},this.$setTouched=function(){b.$touched=!0,b.$untouched=!1,a.setClass(i,ba,ya)},this.$rollbackViewValue=function(){s.cancel(y),b.$viewValue=b.$$lastCommittedViewValue,b.$render()},this.$validate=function(){if(!x(b.$modelValue)||!isNaN(b.$modelValue)){var e=b.$$lastCommittedViewValue,t=b.$$rawModelValue,n=b.$valid,r=b.$modelValue,i=b.$options&&b.$options.allowInvalid;b.$$runValidators(t,e,function(e){i||n===e||(b.$modelValue=e?t:void 0,b.$modelValue!==r&&b.$$writeModelToScope())})}},this.$$runValidators=function(e,t,n){function i(){var e=b.$$parserName||"parse";return v(f)?(s(e,null),!0):(f||(r(b.$validators,function(e,t){s(t,null)}),r(b.$asyncValidators,function(e,t){s(t,null)})),s(e,f),f)}function o(){var n=!0;return r(b.$validators,function(r,i){var o=r(e,t);n=n&&o,s(i,o)}),n?!0:(r(b.$asyncValidators,function(e,t){s(t,null)}),!1)}function a(){var n=[],i=!0;r(b.$asyncValidators,function(r,o){var a=r(e,t);if(!O(a))throw Ca("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),n.push(a.then(function(){s(o,!0)},function(){i=!1,s(o,!1)}))}),n.length?l.all(n).then(function(){u(i)},p):u(!0)}function s(e,t){c===w&&b.$setValidity(e,t)}function u(e){c===w&&n(e)}w++;var c=w;return i()&&o()?void a():void u(!1)},this.$commitViewValue=function(){var e=b.$viewValue;s.cancel(y),(b.$$lastCommittedViewValue!==e||""===e&&b.$$hasNativeValidators)&&(b.$$updateEmptyClasses(e),b.$$lastCommittedViewValue=e,b.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function t(){b.$modelValue!==o&&b.$$writeModelToScope()}var n=b.$$lastCommittedViewValue,r=n;if(f=v(r)?void 0:!0)for(var i=0;i<b.$parsers.length;i++)if(r=b.$parsers[i](r),v(r)){f=!1;break}x(b.$modelValue)&&isNaN(b.$modelValue)&&(b.$modelValue=g(e));var o=b.$modelValue,a=b.$options&&b.$options.allowInvalid;b.$$rawModelValue=r,a&&(b.$modelValue=r,t()),b.$$runValidators(r,b.$$lastCommittedViewValue,function(e){a||(b.$modelValue=e?r:void 0,t())})},this.$$writeModelToScope=function(){m(e,b.$modelValue),r(b.$viewChangeListeners,function(e){try{e()}catch(n){t(n)}})},this.$setViewValue=function(e,t){b.$viewValue=e,b.$options&&!b.$options.updateOnDefault||b.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n,r=0,i=b.$options;i&&$(i.debounce)&&(n=i.debounce,x(n)?r=n:x(n[t])?r=n[t]:x(n["default"])&&(r=n["default"])),s.cancel(y),r?y=s(function(){b.$commitViewValue()},r):u.$$phase?b.$commitViewValue():e.$apply(function(){b.$commitViewValue()})},e.$watch(function(){var t=g(e);if(t!==b.$modelValue&&(b.$modelValue===b.$modelValue||t===t)){b.$modelValue=b.$$rawModelValue=t,f=void 0;for(var n=b.$formatters,r=n.length,i=t;r--;)i=n[r](i);b.$viewValue!==i&&(b.$$updateEmptyClasses(i),b.$viewValue=b.$$lastCommittedViewValue=i,b.$render(),b.$$runValidators(t,i,p))}return t})}],ka=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:_a,priority:1,compile:function(t){return t.addClass(va).addClass(ya).addClass(ga),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(e){o.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){o.$touched||(e.$$phase?t.$evalAsync(o.$setTouched):t.$apply(o.$setTouched))})}}}}}],Aa=/(\s+|^)default(\s+|$)/,Ea=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var n=this;this.$options=R(e.$eval(t.ngModelOptions)),$(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Xr(this.$options.updateOn.replace(Aa,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},Da=sr({terminal:!0,priority:1e3}),Ta=t("ngOptions"),Ma=/^\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]+?))?$/,Oa=["$compile","$document","$parse",function(t,i,o){function a(e,t,r){function i(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&&n(e))t=e;else{t=[];for(var r in e)e.hasOwnProperty(r)&&"$"!==r.charAt(0)&&t.push(r)}return t}var s=e.match(Ma);if(!s)throw Ta("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,J(t));var u=s[5]||s[7],l=s[6],c=/ as /.test(s[0])&&s[1],f=s[9],d=o(s[2]?s[1]:u),p=c&&o(c),h=p||d,g=f&&o(f),m=f?function(e,t){return g(r,t)}:function(e){return Je(e)},v=function(e,t){return m(e,S(e,t))},$=o(s[2]||s[1]),y=o(s[3]||""),b=o(s[4]||""),w=o(s[8]),x={},S=l?function(e,t){return x[l]=t,x[u]=e,x}:function(e){return x[u]=e,x};return{trackBy:f,getTrackByValue:v,getWatchables:o(w,function(e){var t=[];e=e||[];for(var n=a(e),i=n.length,o=0;i>o;o++){var u=e===n?o:n[o],l=e[u],c=S(l,u),f=m(l,c);if(t.push(f),s[2]||s[1]){var d=$(r,c);t.push(d)}if(s[4]){var p=b(r,c);t.push(p)}}return t}),getOptions:function(){for(var e=[],t={},n=w(r)||[],o=a(n),s=o.length,u=0;s>u;u++){var l=n===o?u:o[u],c=n[l],d=S(c,l),p=h(r,d),g=m(p,d),x=$(r,d),C=y(r,d),_=b(r,d),k=new i(g,p,x,C,_);e.push(k),t[g]=k}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[v(e)]},getViewValueFromOption:function(e){return f?qr.copy(e.viewValue):e.viewValue}}}}}function s(e,n,o,s){function c(e,t){var n=u.cloneNode(!1);t.appendChild(n),f(e,n)}function f(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),e.value!==t.value&&(t.value=e.selectValue)}function d(){var e=S&&h.readValue();if(S)for(var t=S.items.length-1;t>=0;t--){var r=S.items[t];ze(r.group?r.element.parentNode:r.element)}S=C.getOptions();var i={};if(w&&n.prepend(p),S.items.forEach(function(e){var t;$(e.group)?(t=i[e.group],t||(t=l.cloneNode(!1),_.appendChild(t),t.label=e.group,i[e.group]=t),c(e,t)):c(e,_)}),n[0].appendChild(_),g.$render(),!g.$isEmpty(e)){var o=h.readValue(),a=C.trackBy||m;(a?L(e,o):e===o)||(g.$setViewValue(o),g.$render())}}for(var p,h=s[0],g=s[1],m=o.multiple,v=0,y=n.children(),b=y.length;b>v;v++)if(""===y[v].value){p=y.eq(v);break}var w=!!p,x=Pr(u.cloneNode(!1));x.val("?");var S,C=a(o.ngOptions,n,e),_=i[0].createDocumentFragment(),k=function(){w||n.prepend(p),n.val(""),p.prop("selected",!0),p.attr("selected",!0)},A=function(){w||p.remove()},E=function(){n.prepend(x),n.val("?"),x.prop("selected",!0),x.attr("selected",!0)},D=function(){x.remove()};m?(g.$isEmpty=function(e){return!e||0===e.length},h.writeValue=function(e){S.items.forEach(function(e){e.element.selected=!1}),e&&e.forEach(function(e){var t=S.getOptionFromViewValue(e);t&&(t.element.selected=!0)})},h.readValue=function(){var e=n.val()||[],t=[];return r(e,function(e){var n=S.selectValueMap[e];n&&!n.disabled&&t.push(S.getViewValueFromOption(n))}),t},C.trackBy&&e.$watchCollection(function(){return Wr(g.$viewValue)?g.$viewValue.map(function(e){return C.getTrackByValue(e)}):void 0},function(){g.$render()})):(h.writeValue=function(e){var t=S.getOptionFromViewValue(e);t?(n[0].value!==t.selectValue&&(D(),A(),n[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):null===e||w?(D(),k()):(A(),E())},h.readValue=function(){var e=S.selectValueMap[n.val()];return e&&!e.disabled?(A(),D(),S.getViewValueFromOption(e)):null},C.trackBy&&e.$watch(function(){return C.getTrackByValue(g.$viewValue)},function(){g.$render()})),w?(p.remove(),t(p)(e),p.removeClass("ng-scope")):p=Pr(u.cloneNode(!1)),n.empty(),d(),e.$watchCollection(C.getWatchables,d)}var u=e.document.createElement("option"),l=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=p},post:s}}}],Na=["$locale","$interpolate","$log",function(e,t,n){var i=/{}/g,o=/^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),h=u.offset||0,g=a.$eval(d)||{},m={},$=t.startSymbol(),y=t.endSymbol(),b=$+f+"-"+h+y,w=qr.noop;r(u,function(e,t){var n=o.exec(t);if(n){var r=(n[1]?"-":"")+Tr(n[2]);g[r]=s.attr(u.$attr[t])}}),r(g,function(e,n){m[n]=t(e.replace(i,b))}),a.$watch(f,function(t){var r=parseFloat(t),i=isNaN(r);if(i||r in g||(r=e.pluralCat(r-h)),r!==c&&!(i&&x(c)&&isNaN(c))){w();var o=m[r];v(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+d),w=p,l()):w=a.$watch(o,l),c=r}})}}}],Fa=["$parse","$animate","$compile",function(e,i,o){var a="$$NG_REMOVED",s=t("ngRepeat"),u=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))},l=function(e){return e.clone[0]},c=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,f){var d=f.ngRepeat,p=o.$$createComment("end ngRepeat",d),h=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!h)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",d);var g=h[1],m=h[2],v=h[3],$=h[4];if(h=g.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!h)throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);var y=h[3]||h[1],b=h[2];if(v&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(v)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(v)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",v);var w,x,S,C,_={$id:Je};return $?w=e($):(S=function(e,t){return Je(t)},C=function(e){return e}),function(e,t,o,f,h){w&&(x=function(t,n,r){return b&&(_[b]=t),_[y]=n,_.$index=r,w(e,_)});var g=ge();e.$watchCollection(m,function(o){var f,m,$,w,_,k,A,E,D,T,M,O,N=t[0],F=ge();if(v&&(e[v]=o),n(o))D=o,E=x||S;else{E=x||C,D=[];for(var P in o)Dr.call(o,P)&&"$"!==P.charAt(0)&&D.push(P)}for(w=D.length,M=new Array(w),f=0;w>f;f++)if(_=o===D?f:D[f],k=o[_],A=E(_,k,f),g[A])T=g[A],delete g[A],F[A]=T,M[f]=T;else{if(F[A])throw r(M,function(e){e&&e.scope&&(g[e.id]=e)}),s("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",d,A,k);M[f]={id:A,scope:void 0,clone:void 0},F[A]=!0}for(var I in g){if(T=g[I],O=he(T.clone),i.leave(O),O[0].parentNode)for(f=0,m=O.length;m>f;f++)O[f][a]=!0;T.scope.$destroy()}for(f=0;w>f;f++)if(_=o===D?f:D[f],k=o[_],T=M[f],T.scope){$=N;do $=$.nextSibling;while($&&$[a]);l(T)!=$&&i.move(he(T.clone),null,N),N=c(T),u(T.scope,f,y,k,b,_,w)}else h(function(e,t){T.scope=t;var n=p.cloneNode(!1);e[e.length++]=n,i.enter(e,null,N),N=n,T.clone=e,F[T.id]=T,u(T.scope,f,y,k,b,_,w)});g=F})}}}}],Pa="ng-hide",Ia="ng-hide-animate",ja=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,Pa,{tempClasses:Ia})})}}}],Va=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,Pa,{tempClasses:Ia})})}}}],Ra=sr(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&r(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),Ua=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,o,a){var s=o.ngSwitch||o.on,u=[],l=[],c=[],f=[],d=function(e,t){return function(){e.splice(t,1)}};n.$watch(s,function(n){var i,o;for(i=0,o=c.length;o>i;++i)e.cancel(c[i]);for(c.length=0,i=0,o=f.length;o>i;++i){var s=he(l[i].clone);f[i].$destroy();var p=c[i]=e.leave(s);p.then(d(c,i))}l.length=0,f.length=0,(u=a.cases["!"+n]||a.cases["?"])&&r(u,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:r};l.push(a),e.enter(r,o.parent(),o)})})})}}}],La=sr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}}),Ha=sr({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})}}),za=t("ngTransclude"),qa=sr({restrict:"EAC",link:function(e,t,n,r,i){function o(e){e.length&&(t.empty(),t.append(e))}if(n.ngTransclude===n.$attr.ngTransclude&&(n.ngTransclude=""),!i)throw za("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",J(t));var a=n.ngTransclude||n.ngTranscludeSlot;i(o,null,a)}}),Ba=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],Wa={$setViewValue:p,$render:p},Ya=["$element","$scope",function(t,n){var r=this,i=new Ze;r.ngModelCtrl=Wa,r.unknownOption=Pr(e.document.createElement("option")),r.renderUnknownOption=function(e){var n="? "+Je(e)+" ?";r.unknownOption.val(n),t.prepend(r.unknownOption),t.val(n)},n.$on("$destroy",function(){r.renderUnknownOption=p}),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),t.val()},r.writeValue=function(e){r.hasOption(e)?(r.removeUnknownOption(),t.val(e),""===e&&r.emptyOption.prop("selected",!0)):null==e&&r.emptyOption?(r.removeUnknownOption(),t.val("")):r.renderUnknownOption(e)},r.addOption=function(e,t){if(t[0].nodeType!==oi){de(e,'"option value"'),""===e&&(r.emptyOption=t);var n=i.get(e)||0;i.put(e,n+1),r.ngModelCtrl.$render(),kr(t)}},r.removeOption=function(e){var t=i.get(e);t&&(1===t?(i.remove(e),""===e&&(r.emptyOption=void 0)):i.put(e,t-1))},r.hasOption=function(e){return!!i.get(e)},r.registerOption=function(e,t,n,i,o){if(i){var a;n.$observe("value",function(e){$(a)&&r.removeOption(a),a=e,r.addOption(e,t)})}else o?e.$watch(o,function(e,i){n.$set("value",e),i!==e&&r.removeOption(i),r.addOption(e,t)}):r.addOption(n.value,t);t.on("$destroy",function(){r.removeOption(n.value),r.ngModelCtrl.$render()})}}],Xa=function(){function e(e,t,n,i){var o=i[1];if(o){var a=i[0];if(a.ngModelCtrl=o,t.on("change",function(){e.$apply(function(){o.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var e=[];return r(t.find("option"),function(t){t.selected&&e.push(t.value)}),e},a.writeValue=function(e){var n=new Ze(e);r(t.find("option"),function(e){e.selected=$(n.get(e.value))})};var s,u=NaN;e.$watch(function(){u!==o.$viewValue||L(s,o.$viewValue)||(s=U(o.$viewValue),o.$render()),u=o.$viewValue}),o.$isEmpty=function(e){return!e||0===e.length}}}}function t(e,t,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Ya,priority:1,link:{pre:e,post:t}}},Ga=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){if($(n.value))var r=e(n.value,!0);else{var i=e(t.text(),!0);i||n.$set("value",t.text())}return function(e,t,n){var o="$selectController",a=t.parent(),s=a.data(o)||a.parent().data(o);s&&s.registerOption(e,t,n,r,i)}}}}],Ka=g({restrict:"E",terminal:!1}),Ja=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},Za=function(){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",function(e){if(w(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw t("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,e,J(n));o=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||v(o)||o.test(t)}}}}},Qa=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=f(e);i=isNaN(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return 0>i||r.$isEmpty(t)||t.length<=i}}}}},es=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=f(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};return e.angular.bootstrap?void(e.console&&console.log("WARNING: Tried to load angular more than once.")):(le(),ye(qr),qr.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return-1==t?0:e.length-t-1}function n(e,n){var r=n;void 0===r&&(r=Math.min(t(e),3));var i=Math.pow(10,r),o=(e*i|0)%i;return{v:r,f:o}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-\xa4",negSuf:"",posPre:"\xa4",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var i=0|e,o=n(e,t);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),void Pr(e.document).ready(function(){ie(e.document,oe)}))}(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>'),angular.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return-1==t?0:e.length-t-1}function n(e,n){var r=n;void 0===r&&(r=Math.min(t(e),3));var i=Math.pow(10,r),o=(e*i|0)%i;return{v:r,f:o}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["niedziela","poniedzia\u0142ek","wtorek","\u015broda","czwartek","pi\u0105tek","sobota"],MONTH:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","wrze\u015bnia","pa\u017adziernika","listopada","grudnia"],SHORTDAY:["niedz.","pon.","wt.","\u015br.","czw.","pt.","sob."],SHORTMONTH:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","pa\u017a","lis","gru"],fullDate:"EEEE, d MMMM y",longDate:"d MMMM y",medium:"d MMM y HH:mm:ss",mediumDate:"d MMM y",mediumTime:"HH:mm:ss","short":"dd.MM.y HH:mm",shortDate:"dd.MM.y",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"z\u0142",DECIMAL_SEP:",",GROUP_SEP:"\xa0",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:"\xa0\xa4",posPre:"",posSuf:"\xa0\xa4"}]},id:"pl",pluralCat:function(e,t){var i=0|e,o=n(e,t);return 1==i&&0==o.v?r.ONE:0==o.v&&i%10>=2&&4>=i%10&&(12>i%100||i%100>14)?r.FEW:0==o.v&&1!=i&&i%10>=0&&1>=i%10||0==o.v&&i%10>=5&&9>=i%10||0==o.v&&i%100>=12&&14>=i%100?r.MANY:r.OTHER}})}]),function(e,t){"use strict";function n(){function e(e,n){return t.extend(Object.create(e),n)}function n(e,t){var n=t.caseInsensitiveMatch,r={originalPath:e,regexp:e},i=r.keys=[];return e=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g,function(e,t,n,r){var o="?"===r||"*?"===r?"?":null,a="*"===r||"*?"===r?"*":null;return i.push({name:n,optional:!!o}),t=t||"",""+(o?"":t)+"(?:"+(o?t:"")+(a&&"(.+?)"||"([^/]+)")+(o||"")+")"+(o||"")}).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+e+"$",n?"i":""),r}var r={};this.when=function(e,i){var o=t.copy(i);if(t.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),t.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),r[e]=t.extend(o,e&&n(e,o)),e){var a="/"==e[e.length-1]?e.substr(0,e.length-1):e+"/";r[a]=t.extend({redirectTo:e},n(a,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeof e&&(e={redirectTo:e}),this.when(null,e),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,i,o,a,u,l,c){function f(e,t){var n=t.keys,r={};if(!t.regexp)return null;var i=t.regexp.exec(e);if(!i)return null;for(var o=1,a=i.length;a>o;++o){var s=n[o-1],u=i[o];s&&u&&(r[s.name]=u)}return r}function d(e){var r=y.current;m=h(),v=m&&r&&m.$$route===r.$$route&&t.equals(m.pathParams,r.pathParams)&&!m.reloadOnSearch&&!$,v||!r&&!m||n.$broadcast("$routeChangeStart",m,r).defaultPrevented&&e&&e.preventDefault()}function p(){var e=y.current,r=m;v?(e.params=r.params,t.copy(e.params,o),n.$broadcast("$routeUpdate",e)):(r||e)&&($=!1,y.current=r,r&&r.redirectTo&&(t.isString(r.redirectTo)?i.path(g(r.redirectTo,r.params)).search(r.params).replace():i.url(r.redirectTo(r.pathParams,i.path(),i.search())).replace()),a.when(r).then(function(){if(r){var e,n,i=t.extend({},r.resolve);return t.forEach(i,function(e,n){i[n]=t.isString(e)?u.get(e):u.invoke(e,null,null,n)}),t.isDefined(e=r.template)?t.isFunction(e)&&(e=e(r.params)):t.isDefined(n=r.templateUrl)&&(t.isFunction(n)&&(n=n(r.params)),t.isDefined(n)&&(r.loadedTemplateUrl=c.valueOf(n),e=l(n))),t.isDefined(e)&&(i.$template=e),a.all(i)}}).then(function(i){r==y.current&&(r&&(r.locals=i,t.copy(r.params,o)),n.$broadcast("$routeChangeSuccess",r,e))},function(t){r==y.current&&n.$broadcast("$routeChangeError",r,e,t)}))}function h(){var n,o;return t.forEach(r,function(r){!o&&(n=f(i.path(),r))&&(o=e(r,{params:t.extend({},i.search(),n),pathParams:n}),o.$$route=r)}),o||r[null]&&e(r[null],{params:{},pathParams:{}})}function g(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 m,v,$=!1,y={routes:r,reload:function(){$=!0;var e={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,$=!1}};n.$evalAsync(function(){d(e),e.defaultPrevented||p()})},updateParams:function(e){if(!this.current||!this.current.$$route)throw s("norout","Tried updating route when with no current route");e=t.extend({},this.current.params,e),i.path(g(this.current.$$route.originalPath,e)),i.search(e)}};return n.$on("$locationChangeStart",d),n.$on("$locationChangeSuccess",p),y}]}function r(){this.$get=function(){return{}}}function i(e,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,a,s,u){function l(){p&&(r.cancel(p),p=null),f&&(f.$destroy(),f=null),d&&(p=r.leave(d),p.then(function(){p=null}),d=null)}function c(){var a=e.current&&e.current.locals,s=a&&a.$template;if(t.isDefined(s)){var c=i.$new(),p=e.current,m=u(c,function(e){r.enter(e,null,d||o).then(function(){!t.isDefined(h)||h&&!i.$eval(h)||n()}),l()});d=m,f=p.scope=c,f.$emit("$viewContentLoaded"),f.$eval(g)}else l()}var f,d,p,h=a.autoscroll,g=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=t.module("ngRoute",["ng"]).provider("$route",n),s=t.$$minErr("ngRoute");a.provider("$routeParams",r),a.directive("ngView",i),a.directive("ngView",o),i.$inject=["$route","$anchorScroll","$animate"],o.$inject=["$compile","$controller","$route"]}(window,window.angular),function(e,t){"use strict";function n(){var e=!1;this.$get=["$$sanitizeUri",function(n){return e&&t.extend(x,b),function(e){var t=[];return o(e,u(t,function(e,t){return!/^unsafe:/.test(n(e,t))})),t.join("")}}],this.enableSvg=function(n){return t.isDefined(n)?(e=n,this):e}}function r(e){var n=[],r=u(n,t.noop);return r.chars(e),n.join("")}function i(e,n){var r,i={},o=e.split(",");for(r=0;r<o.length;r++)i[n?t.lowercase(o[r]):o[r]]=!0;return i}function o(t,n){null===t||void 0===t?t="":"string"!=typeof t&&(t=""+t),c.innerHTML=t;var r=5;do{if(0===r)throw f("uinput","Failed to sanitize html because the input is unstable");r--,e.document.documentMode&&l(c),t=c.innerHTML,c.innerHTML=t}while(t!==c.innerHTML);for(var i=c.firstChild;i;){switch(i.nodeType){case 1:n.start(i.nodeName.toLowerCase(),a(i.attributes));break;case 3:n.chars(i.textContent)}var o;if(!(o=i.firstChild)&&(1==i.nodeType&&n.end(i.nodeName.toLowerCase()),o=i.nextSibling,!o))for(;null==o&&(i=i.parentNode,i!==c);)o=i.nextSibling,1==i.nodeType&&n.end(i.nodeName.toLowerCase());i=o}for(;i=c.firstChild;)c.removeChild(i)}function a(e){for(var t={},n=0,r=e.length;r>n;n++){var i=e[n];t[i.name]=i.value}return t}function s(e){return e.replace(/&/g,"&").replace(d,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+(1024*(t-55296)+(n-56320)+65536)+";"}).replace(p,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function u(e,n){var r=!1,i=t.bind(e,e.push);return{start:function(e,o){e=t.lowercase(e),!r&&w[e]&&(r=e),r||x[e]!==!0||(i("<"),i(e),t.forEach(o,function(r,o){var a=t.lowercase(o),u="img"===e&&"src"===a||"background"===a;k[a]!==!0||S[a]===!0&&!n(r,u)||(i(" "),i(o),i('="'),i(s(r)),i('"'))}),i(">"))},end:function(e){e=t.lowercase(e),r||x[e]!==!0||h[e]===!0||(i("</"),i(e),i(">")),e==r&&(r=!1)},chars:function(e){r||i(s(e))}}}function l(t){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;i>r;r++){var o=n[r],a=o.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.indexOf("ns1:")||(t.removeAttributeNode(o),r--,i--)}var s=t.firstChild;s&&l(s),s=t.nextSibling,s&&l(s)}var c,f=t.$$minErr("$sanitize"),d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=/([^\#-~ |!])/g,h=i("area,br,col,hr,img,wbr"),g=i("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),m=i("rp,rt"),v=t.extend({},m,g),$=t.extend({},g,i("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")),y=t.extend({},m,i("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")),b=i("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"),w=i("script,style"),x=t.extend({},h,$,y,v),S=i("background,cite,href,longdesc,src,xlink:href"),C=i("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"),_=i("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),k=t.extend({},S,_,C);!function(e){var t;if(!e.document||!e.document.implementation)throw f("noinert","Can't create an inert html document");t=e.document.implementation.createHTMLDocument("inert");var n=t.documentElement||t.getDocumentElement(),r=n.getElementsByTagName("body");if(1===r.length)c=r[0];else{var i=t.createElement("html");c=t.createElement("body"),i.appendChild(c),t.appendChild(i)}}(e),t.module("ngSanitize",[]).provider("$sanitize",n),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,o=t.$$minErr("linky"),a=t.isString;return function(s,u,l){function c(e){e&&m.push(r(e))}function f(e,n){var r;if(m.push("<a "),t.isFunction(l)&&(l=l(e)),t.isObject(l))for(r in l)m.push(r+'="'+l[r]+'" ');else l={};!t.isDefined(u)||"target"in l||m.push('target="',u,'" '),m.push('href="',e.replace(/"/g,"""),'">'),c(n),m.push("</a>")}if(null==s||""===s)return s;if(!a(s))throw o("notstring","Expected string but received: {0}",s);for(var d,p,h,g=s,m=[];d=g.match(n);)p=d[0],d[2]||d[4]||(p=(d[3]?"http://":"mailto:")+p),h=d.index,c(g.substr(0,h)),f(p,d[0].replace(i,"")),g=g.substring(h+d[0].length);return c(g),e(m.join(""))}}])}(window,window.angular),function(e,t){"use strict";function n(e,t,n){if(!e)throw ge("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function r(e,t){return e||t?e?t?(H(e)&&(e=e.join(" ")),H(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function i(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function o(e,t,n){var r="";return e=H(e)?e:e&&z(e)&&e.length?e.split(/\s+/):[],L(e,function(e,i){e&&e.length>0&&(r+=i>0?" ":"",r+=n?t+e:e+t)}),r}function a(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function s(e){if(e instanceof U)switch(e.length){case 0:return[];case 1:if(e[0].nodeType===G)return e;break;default:return U(u(e))}return e.nodeType===G?U(e):void 0}function u(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType==G)return n}}function l(e,t,n){L(t,function(t){e.addClass(t,n)})}function c(e,t,n){L(t,function(t){e.removeClass(t,n)})}function f(e){return function(t,n){n.addClass&&(l(e,t,n.addClass),n.addClass=null),n.removeClass&&(c(e,t,n.removeClass),n.removeClass=null)}}function d(e){if(e=e||{},!e.$$prepared){var t=e.domOperation||j;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=j},e.$$prepared=!0}return e}function p(e,t){h(e,t),g(e,t)}function h(e,t){t.from&&(e.css(t.from),t.from=null)}function g(e,t){t.to&&(e.css(t.to),t.to=null)}function m(e,t,n){var r=t.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),s=v(e.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=C(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var u=r.domOperation!==j?r.domOperation:null;return R(r,i),u&&(r.domOperation=u),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function v(e,t,n){function r(e){z(e)&&(e=e.split(" "));var t={};return L(e,function(e){e.length&&(t[e]=!0)}),t}var i=1,o=-1,a={};e=r(e),t=r(t),L(t,function(e,t){a[t]=i}),n=r(n),L(n,function(e,t){a[t]=a[t]===i?null:o});var s={addClass:"",removeClass:""};return L(a,function(t,n){var r,a;t===i?(r="addClass",a=!e[n]):t===o&&(r="removeClass",a=e[n]),a&&(s[r].length&&(s[r]+=" "),s[r]+=n)}),s}function $(e){return e instanceof t.element?e[0]:e}function y(e,t,n){var r="";t&&(r=o(t,Z,!0)),n.addClass&&(r=C(r,o(n.addClass,K))),n.removeClass&&(r=C(r,o(n.removeClass,J))),r.length&&(n.preparationClasses=r,e.addClass(r))}function b(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)}function w(e,t){var n=t?"-"+t+"s":"";return S(e,[pe,n]),[pe,n]}function x(e,t){var n=t?"paused":"",r=P+le;return S(e,[r,n]),[r,n]}function S(e,t){var n=t[0],r=t[1];e.style[n]=r}function C(e,t){return e?t?e+" "+t:e:t}function _(e){return[de,e+"s"]}function k(e,t){var n=t?fe:pe;return[n,e+"s"]}function A(e,t,n){var r=Object.create(null),i=e.getComputedStyle(t)||{};return L(n,function(e,t){var n=i[e];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=E(n)),0===n&&(n=null),r[t]=n}}),r}function E(e){var t=0,n=e.split(/\s*,\s*/);return L(n,function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function D(e){return 0===e||null!=e}function T(e,t){var n=N,r=e+"s";return t?n+=ie:r+=" linear all",[n,r]}function M(){var e=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){var n=e[t];return n?n.total:0},get:function(t){var n=e[t];return n&&n.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}function O(e,t,n){L(n,function(n){e[n]=W(e[n])?e[n]:t.style.getPropertyValue(n)})}var N,F,P,I,j=t.noop,V=t.copy,R=t.extend,U=t.element,L=t.forEach,H=t.isArray,z=t.isString,q=t.isObject,B=t.isUndefined,W=t.isDefined,Y=t.isFunction,X=t.isElement,G=1,K="-add",J="-remove",Z="ng-",Q="-active",ee="-prepare",te="ng-animate",ne="$$ngAnimateChildren",re="";B(e.ontransitionend)&&W(e.onwebkittransitionend)?(re="-webkit-",N="WebkitTransition",F="webkitTransitionEnd transitionend"):(N="transition",F="transitionend"),B(e.onanimationend)&&W(e.onwebkitanimationend)?(re="-webkit-",P="WebkitAnimation",I="webkitAnimationEnd animationend"):(P="animation",I="animationend");var ie="Duration",oe="Property",ae="Delay",se="TimingFunction",ue="IterationCount",le="PlayState",ce=9999,fe=P+ae,de=P+ie,pe=N+ae,he=N+ie,ge=t.$$minErr("ng"),me=["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),o=0;o<t.length;o++)t[o]();i||e(function(){i||n()})}}var r,i;return r=t.queue=[],t.waitUntilQuiet=function(t){i&&i(),i=e(function(){i=null,t(),n()})},t}],ve=["$interpolate",function(e){return{link:function(n,r,i){function o(e){e="on"===e||"true"===e,r.data(ne,e)}var a=i.ngAnimateChildren;t.isString(a)&&0===a.length?r.data(ne,!0):(o(e(a)(n)),i.$observe("ngAnimateChildren",o))}}}],$e="$$animateCss",ye=1e3,be=3,we=1.5,xe={transitionDuration:he,transitionDelay:pe,transitionProperty:N+oe,animationDuration:de,animationDelay:fe,animationIterationCount:P+ue},Se={transitionDuration:he,transitionDelay:pe,animationDuration:de,animationDelay:fe},Ce=["$animateProvider",function(){var e=M(),t=M();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(n,r,s,u,l,c,m,v){function y(e,t){var n="$$ngAnimateParentKey",r=e.parentNode,i=r[n]||(r[n]=++U);return i+"-"+e.getAttribute("class")+"-"+t}function b(t,r,i,o){var a=e.get(i);return a||(a=A(n,t,o),"infinite"===a.animationIterationCount&&(a.animationIterationCount=1)),e.put(i,a),a}function C(i,a,s,u){var l;if(e.count(s)>0&&(l=t.get(s),!l)){var c=o(a,"-stagger");r.addClass(i,c),l=A(n,i,u),l.animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),r.removeClass(i,c),t.put(s,l)}return l||{}}function E(n){z.push(n),m.waitUntilQuiet(function(){e.flush(),t.flush();for(var n=l(),r=0;r<z.length;r++)z[r](n);z.length=0})}function M(e,t,n){var r=b(e,t,n,xe),i=r.animationDelay,o=r.transitionDelay;return r.maxDelay=i&&o?Math.max(i,o):i||o,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}var R=f(r),U=0,z=[];return function(t,n){function l(){m()}function f(){m(!0)}function m(e){if(!(Y||G&&X)){Y=!0,X=!1,q.$$skipPreparationClasses||r.removeClass(t,xe),r.removeClass(t,_e),x(W,!1),w(W,!1),L(le,function(e){W.style[e[0]]=""}),R(t,q),p(t,q),Object.keys(B).length&&L(B,function(e,t){e?W.style.setProperty(t,e):W.style.removeProperty(t)}),q.onDone&&q.onDone(),pe&&pe.length&&t.off(pe.join(" "),U);var n=t.data($e);n&&(u.cancel(n[0].timer),t.removeData($e)),ee&&ee.complete(!e)}}function b(e){Re.blockTransition&&w(W,e),Re.blockKeyframeAnimation&&x(W,!!e)}function A(){return ee=new s({end:l,cancel:f}),E(j),m(),{$$willAnimate:!1,start:function(){return ee},end:l}}function U(e){e.stopPropagation();var t=e.originalEvent||e,n=t.$manualTimeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(be));Math.max(n-ue,0)>=re&&r>=ie&&(G=!0,m())}function z(){function e(){if(!Y){if(b(!1),L(le,function(e){var t=e[0],n=e[1];W.style[t]=n}),R(t,q),r.addClass(t,_e),Re.recalculateTimingStyles){if(Ce=W.className+" "+xe,Ee=y(W,Ce),je=M(W,Ce,Ee),Ve=je.maxDelay,ne=Math.max(Ve,0),ie=je.maxDuration,0===ie)return void m();Re.hasTransitions=je.transitionDuration>0,Re.hasAnimations=je.animationDuration>0}if(Re.applyAnimationDelay&&(Ve="boolean"!=typeof q.delay&&D(q.delay)?parseFloat(q.delay):Ve,ne=Math.max(Ve,0),je.animationDelay=Ve,Ue=k(Ve,!0),le.push(Ue),W.style[Ue[0]]=Ue[1]),re=ne*ye,ae=ie*ye,q.easing){var e,i=q.easing;Re.hasTransitions&&(e=N+se,le.push([e,i]),W.style[e]=i),Re.hasAnimations&&(e=P+se,le.push([e,i]),W.style[e]=i)}je.transitionDuration&&pe.push(F),je.animationDuration&&pe.push(I),ue=Date.now();var o=re+we*ae,a=ue+o,s=t.data($e)||[],l=!0;if(s.length){var c=s[0];l=a>c.expectedEndTime,l?u.cancel(c.timer):s.push(m)}if(l){var f=u(n,o,!1);s[0]={timer:f,expectedEndTime:a},s.push(m),t.data($e,s)}pe.length&&t.on(pe.join(" "),U),q.to&&(q.cleanupStyles&&O(B,W,Object.keys(q.to)),g(t,q))}}function n(){var e=t.data($e);if(e){for(var n=1;n<e.length;n++)e[n]();t.removeData($e)}}if(!Y){if(!W.parentNode)return void m();var i=function(e){if(G)X&&e&&(X=!1,m());else if(X=!e,je.animationDuration){var t=x(W,X);X?le.push(t):a(le,t)}},o=Pe>0&&(je.transitionDuration&&0===De.transitionDuration||je.animationDuration&&0===De.animationDuration)&&Math.max(De.animationDelay,De.transitionDelay);o?u(e,Math.floor(o*Pe*ye),!1):e(),te.resume=function(){i(!0)},te.pause=function(){i(!1)}}}var q=n||{};q.$$prepared||(q=d(V(q)));var B={},W=$(t);if(!W||!W.parentNode||!v.enabled())return A();var Y,X,G,ee,te,ne,re,ie,ae,ue,le=[],fe=t.attr("class"),de=i(q),pe=[];if(0===q.duration||!c.animations&&!c.transitions)return A();var he=q.event&&H(q.event)?q.event.join(" "):q.event,ge=he&&q.structural,me="",ve="";ge?me=o(he,Z,!0):he&&(me=he),q.addClass&&(ve+=o(q.addClass,K)),q.removeClass&&(ve.length&&(ve+=" "),ve+=o(q.removeClass,J)),q.applyClassesEarly&&ve.length&&R(t,q);var xe=[me,ve].join(" ").trim(),Ce=fe+" "+xe,_e=o(xe,Q),ke=de.to&&Object.keys(de.to).length>0,Ae=(q.keyframeStyle||"").length>0;if(!Ae&&!ke&&!xe)return A();var Ee,De;if(q.stagger>0){var Te=parseFloat(q.stagger);De={transitionDelay:Te,animationDelay:Te,transitionDuration:0,animationDuration:0}}else Ee=y(W,Ce),De=C(W,xe,Ee,Se);q.$$skipPreparationClasses||r.addClass(t,xe);var Me;if(q.transitionStyle){var Oe=[N,q.transitionStyle];S(W,Oe),le.push(Oe)}if(q.duration>=0){Me=W.style[N].length>0;var Ne=T(q.duration,Me);S(W,Ne),le.push(Ne)}if(q.keyframeStyle){var Fe=[P,q.keyframeStyle];S(W,Fe),le.push(Fe)}var Pe=De?q.staggerIndex>=0?q.staggerIndex:e.count(Ee):0,Ie=0===Pe;Ie&&!q.skipBlocking&&w(W,ce);var je=M(W,Ce,Ee),Ve=je.maxDelay;ne=Math.max(Ve,0),ie=je.maxDuration;var Re={};if(Re.hasTransitions=je.transitionDuration>0,Re.hasAnimations=je.animationDuration>0,Re.hasTransitionAll=Re.hasTransitions&&"all"==je.transitionProperty,Re.applyTransitionDuration=ke&&(Re.hasTransitions&&!Re.hasTransitionAll||Re.hasAnimations&&!Re.hasTransitions),Re.applyAnimationDuration=q.duration&&Re.hasAnimations,Re.applyTransitionDelay=D(q.delay)&&(Re.applyTransitionDuration||Re.hasTransitions),Re.applyAnimationDelay=D(q.delay)&&Re.hasAnimations,Re.recalculateTimingStyles=ve.length>0,(Re.applyTransitionDuration||Re.applyAnimationDuration)&&(ie=q.duration?parseFloat(q.duration):ie,Re.applyTransitionDuration&&(Re.hasTransitions=!0,je.transitionDuration=ie,Me=W.style[N+oe].length>0,le.push(T(ie,Me))),Re.applyAnimationDuration&&(Re.hasAnimations=!0,je.animationDuration=ie,le.push(_(ie)))),0===ie&&!Re.recalculateTimingStyles)return A();if(null!=q.delay){var Ue;"boolean"!=typeof q.delay&&(Ue=parseFloat(q.delay),ne=Math.max(Ue,0)),Re.applyTransitionDelay&&le.push(k(Ue)),Re.applyAnimationDelay&&le.push(k(Ue,!0))}return null==q.duration&&je.transitionDuration>0&&(Re.recalculateTimingStyles=Re.recalculateTimingStyles||Ie),re=ne*ye,ae=ie*ye,q.skipBlocking||(Re.blockTransition=je.transitionDuration>0,Re.blockKeyframeAnimation=je.animationDuration>0&&De.animationDelay>0&&0===De.animationDuration),
+q.from&&(q.cleanupStyles&&O(B,W,Object.keys(q.from)),h(t,q)),Re.blockTransition||Re.blockKeyframeAnimation?b(ie):q.skipBlocking||w(W,!1),{$$willAnimate:!0,end:l,start:function(){return Y?void 0:(te={end:l,cancel:f,resume:null,pause:null},ee=new s(te),E(z),ee)}}}}]}],_e=["$$animationProvider",function(e){function t(e){return e.parentNode&&11===e.parentNode.nodeType}e.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor",i="ng-anchor-out",o="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,a,s,u,l,c,d){function p(e){return e.replace(/\bng-\S+\b/g,"")}function h(e,t){return z(e)&&(e=e.split(" ")),z(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function g(t,a,u){function l(e){var t={},n=$(e).getBoundingClientRect();return L(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=y.scrollTop;break;case"left":r+=y.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function c(){var t=e(m,{addClass:i,delay:!0,from:l(a)});return t.$$willAnimate?t:null}function f(e){return e.attr("class")||""}function d(){var t=p(f(u)),n=h(t,v),r=h(v,t),a=e(m,{to:l(u),addClass:o+" "+n,removeClass:i+" "+r,delay:!0});return a.$$willAnimate?a:null}function g(){m.remove(),a.removeClass(n),u.removeClass(n)}var m=U($(a).cloneNode(!0)),v=p(f(m));a.addClass(n),u.addClass(n),m.addClass(r),w.append(m);var b,x=c();if(!x&&(b=d(),!b))return g();var S=x||b;return{start:function(){function e(){n&&n.end()}var t,n=S.start();return n.done(function(){return n=null,!b&&(b=d())?(n=b.start(),n.done(function(){n=null,g(),t.complete()}),n):(g(),void t.complete())}),t=new s({end:e,cancel:e})}}}function m(e,t,n,r){var i=v(e,j),o=v(t,j),a=[];return L(r,function(e){var t=e.out,r=e["in"],i=g(n,t,r);i&&a.push(i)}),i||o||0!==a.length?{start:function(){function e(){L(t,function(e){e.end()})}var t=[];i&&t.push(i.start()),o&&t.push(o.start()),L(a,function(e){t.push(e.start())});var n=new s({end:e,cancel:e});return s.all(t,function(e){n.complete(e)}),n}}:void 0}function v(t){var n=t.element,r=t.options||{};t.structural&&(r.event=t.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===t.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=C(r.event,r.preparationClasses));var i=e(n,r);return i.$$willAnimate?i:null}if(!l.animations&&!l.transitions)return j;var y=d[0].body,b=$(u),w=U(t(b)||y.contains(b)?b:y);f(c);return function(e){return e.from&&e.to?m(e.from,e.to,e.classes,e.anchors):v(e)}}]}],ke=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function i(n){n=H(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=f(r);return function(e,t,r,a){function s(){a.domOperation(),o(e,a)}function u(){h=!0,s(),p(e,a)}function l(e,t,r,i,o){var a;switch(r){case"animate":a=[t,i.from,i.to,o];break;case"setClass":a=[t,v,$,o];break;case"addClass":a=[t,v,o];break;case"removeClass":a=[t,$,o];break;default:a=[t,o]}a.push(i);var s=e.apply(e,a);if(s)if(Y(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(Y(s))return s;return j}function c(e,t,r,i,o){var a=[];return L(i,function(i){var s=i[o];s&&a.push(function(){var i,o,a=!1,u=function(e){a||(a=!0,(o||j)(e),i.complete(!e))};return i=new n({end:function(){u()},cancel:function(){u(!0)}}),o=l(s,e,t,r,function(e){var t=e===!1;u(t)}),i})}),a}function f(e,t,r,i,o){var a=c(e,t,r,i,o);if(0===a.length){var s,u;"beforeSetClass"===o?(s=c(e,"removeClass",r,i,"beforeRemoveClass"),u=c(e,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(s=c(e,"removeClass",r,i,"removeClass"),u=c(e,"addClass",r,i,"addClass")),s&&(a=a.concat(s)),u&&(a=a.concat(u))}if(0!==a.length)return function(e){var t=[];return a.length&&L(a,function(e){t.push(e())}),t.length?n.all(t,e):e(),function(e){L(t,function(t){e?t.cancel():t.end()})}}}var h=!1;3===arguments.length&&q(r)&&(a=r,r=null),a=d(a),r||(r=e.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var g,m,v=a.addClass,$=a.removeClass,y=i(r);if(y.length){var b,w;"leave"==t?(w="leave",b="afterLeave"):(w="before"+t.charAt(0).toUpperCase()+t.substr(1),b=t),"enter"!==t&&"move"!==t&&(g=f(e,t,a,y,w)),m=f(e,t,a,y,b)}if(g||m){var x;return{$$willAnimate:!0,end:function(){return x?x.end():(u(),x=new n,x.complete(!0)),x},start:function(){function e(e){u(e),x.complete(e)}function t(t){h||((r||j)(t),e(t))}if(x)return x;x=new n;var r,i=[];return g&&i.push(function(e){r=g(e)}),i.length?i.push(function(e){s(),e(!0)}):s(),m&&i.push(function(e){r=m(e)}),x.setHost({end:function(){t()},cancel:function(){t(!0)}}),n.chain(i,e),x}}}}}]}],Ae=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){var n=t.element,r=t.event,i=t.options,o=t.classes;return e(n,r,o,i)}return function(e){if(e.from&&e.to){var r=n(e.from),i=n(e.to);if(!r&&!i)return;return{start:function(){function e(){return function(){L(o,function(e){e.end()})}}function n(e){a.complete(e)}var o=[];r&&o.push(r.start()),i&&o.push(i.start()),t.all(o,n);var a=new t({end:e(),cancel:e()});return a}}}return n(e)}}]}],Ee="data-ng-animate",De="$ngAnimatePin",Te=["$animateProvider",function(r){function i(e){if(!e)return null;var t=e.split(g),n=Object.create(null);return L(t,function(e){n[e]=!0}),n}function o(e,t){if(e&&t){var n=i(t);return e.split(g).some(function(e){return n[e]})}}function a(e,t,n,r){return v[e].some(function(e){return e(t,n,r)})}function l(e,t){var n=(e.addClass||"").length>0,r=(e.removeClass||"").length>0;return t?n&&r:n||r}var c=1,h=2,g=" ",v=this.rules={skip:[],cancel:[],join:[]};v.join.push(function(e,t){return!t.structural&&l(t)}),v.skip.push(function(e,t){return!t.structural&&!l(t)}),v.skip.push(function(e,t,n){return"leave"==n.event&&t.structural}),v.skip.push(function(e,t,n){return n.structural&&n.state===h&&!t.structural}),v.cancel.push(function(e,t,n){return n.structural&&t.structural}),v.cancel.push(function(e,t,n){return n.state===h&&t.structural}),v.cancel.push(function(e,t,n){if(n.structural)return!1;var r=t.addClass,i=t.removeClass,a=n.addClass,s=n.removeClass;return B(r)&&B(i)||B(a)&&B(s)?!1:o(r,s)||o(i,a)}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(i,o,g,v,w,x,S,C,_){function k(){var e=!1;return function(t){e?t():o.$$postDigest(function(){e=!0,t()})}}function A(e,t){return m(e,t,{})}function E(e,t,n){var r=$(t),i=$(e),o=[],a=Z[n];return a&&L(a,function(e){re.call(e.node,r)?o.push(e.callback):"leave"===n&&re.call(e.node,i)&&o.push(e.callback)}),o}function D(e,t,n){var r=u(t);return e.filter(function(e){var t=e.node===r&&(!n||e.callback===n);return!t})}function T(e,t){"close"!==e||t[0].parentNode||ie.off(t)}function M(e,t,n){function r(t,n,r,o){_(function(){var t=E(g,e,n);t.length?i(function(){L(t,function(t){t(e,r,o)}),T(r,e)}):T(r,e)}),t.progress(n,r,o)}function u(t){b(e,w),te(e,w),p(e,w),w.domOperation(),C.complete(!t)}var f,g,w=V(n);e=s(e),e&&(f=$(e),g=e.parent()),w=d(w);var C=new S,_=k();if(H(w.addClass)&&(w.addClass=w.addClass.join(" ")),w.addClass&&!z(w.addClass)&&(w.addClass=null),H(w.removeClass)&&(w.removeClass=w.removeClass.join(" ")),w.removeClass&&!z(w.removeClass)&&(w.removeClass=null),w.from&&!q(w.from)&&(w.from=null),w.to&&!q(w.to)&&(w.to=null),!f)return u(),C;var D=[f.className,w.addClass,w.removeClass].join(" ");if(!ee(D))return u(),C;var M=["enter","move","leave"].indexOf(t)>=0,F=v[0].hidden,R=!K||F||Y.get(f),U=!R&&j.get(f)||{},B=!!U.state;if(R||B&&U.state==c||(R=!P(e,g,t)),R)return F&&r(C,t,"start"),u(),F&&r(C,t,"close"),C;M&&O(e);var W={structural:M,element:e,event:t,addClass:w.addClass,removeClass:w.removeClass,close:u,options:w,runner:C};if(B){var X=a("skip",e,W,U);if(X)return U.state===h?(u(),C):(m(e,U,W),U.runner);var G=a("cancel",e,W,U);if(G)if(U.state===h)U.runner.end();else{if(!U.structural)return m(e,U,W),U.runner;U.close()}else{var J=a("join",e,W,U);if(J){if(U.state!==h)return y(e,M?t:null,w),t=W.event=U.event,w=m(e,U,W),U.runner;A(e,W)}}}else A(e,W);var Z=W.structural;if(Z||(Z="animate"===W.event&&Object.keys(W.options.to||{}).length>0||l(W)),!Z)return u(),N(e),C;var Q=(U.counter||0)+1;return W.counter=Q,I(e,c,W),o.$$postDigest(function(){var n=j.get(f),i=!n;n=n||{};var o=e.parent()||[],a=o.length>0&&("animate"===n.event||n.structural||l(n));if(i||n.counter!==Q||!a)return i&&(te(e,w),p(e,w)),(i||M&&n.event!==t)&&(w.domOperation(),C.end()),void(a||N(e));t=!n.structural&&l(n,!0)?"setClass":n.event,I(e,h);var s=x(e,t,n.options);C.setHost(s),r(C,t,"start",{}),s.done(function(n){u(!n);var i=j.get(f);i&&i.counter===Q&&N($(e)),r(C,t,"close",{})})}),C}function O(e){var t=$(e),n=t.querySelectorAll("["+Ee+"]");L(n,function(e){var t=parseInt(e.getAttribute(Ee)),n=j.get(e);if(n)switch(t){case h:n.runner.end();case c:j.remove(e)}})}function N(e){var t=$(e);t.removeAttribute(Ee),j.remove(t)}function F(e,t){return $(e)===$(t)}function P(e,t){var n,r=U(v[0].body),i=F(e,r)||"HTML"===e[0].nodeName,o=F(e,g),a=!1,s=Y.get($(e)),u=U.data(e[0],De);for(u&&(t=u),t=$(t);t&&(o||(o=F(t,g)),t.nodeType===G);){var l=j.get(t)||{};if(!a){var c=Y.get(t);if(c===!0&&s!==!1){s=!0;break}c===!1&&(s=!1),a=l.structural}if(B(n)||n===!0){var f=U.data(t,ne);W(f)&&(n=f)}if(a&&n===!1)break;if(i||(i=F(t,r)),i&&o)break;t=o||!(u=U.data(t,De))?t.parentNode:$(u)}var d=(!a||n)&&s!==!0;return d&&o&&i}function I(e,t,n){n=n||{},n.state=t;var r=$(e);r.setAttribute(Ee,t);var i=j.get(r),o=i?R(i,n):n;j.put(r,o)}var j=new w,Y=new w,K=null,J=o.$watch(function(){return 0===C.totalPendingRequests},function(e){e&&(J(),o.$$postDigest(function(){o.$$postDigest(function(){null===K&&(K=!0)})}))}),Z={},Q=r.classNameFilter(),ee=Q?function(e){return Q.test(e)}:function(){return!0},te=f(_),re=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},ie={on:function(e,t,n){var r=u(t);Z[e]=Z[e]||[],Z[e].push({node:r,callback:n}),U(t).on("$destroy",function(){var i=j.get(r);i||ie.off(e,t,n)})},off:function(e,n,r){if(1!==arguments.length||t.isString(arguments[0])){var i=Z[e];i&&(Z[e]=1===arguments.length?null:D(i,n,r))}else{n=arguments[0];for(var o in Z)Z[o]=D(Z[o],n)}},pin:function(e,t){n(X(e),"element","not an element"),n(X(t),"parentElement","not an element"),e.data(De,t)},push:function(e,t,n,r){return n=n||{},n.domOperation=r,M(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!K;else{var r=X(e);if(r){var i=$(e),o=Y.get(i);1===n?t=!o:Y.put(i,!t)}else t=K=!!e}return t}};return ie}]}],Me=["$animateProvider",function(){function e(e,t){e.data(a,t)}function t(e){e.removeData(a)}function n(e){return e.data(a)}var i="ng-animate-ref",o=this.drivers=[],a="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(a,s,u,l,c,h){function g(e){function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode,r=n.parentNode;o.put(n,e);for(var a;r;){if(a=o.get(r)){a.processed||(a=t(a));break}r=r.parentNode}return(a||i).children.push(e),e}function n(e){var t,n=[],r=[];for(t=0;t<e.children.length;t++)r.push(e.children[t]);var i=r.length,o=0,a=[];for(t=0;t<r.length;t++){var s=r[t];0>=i&&(i=o,o=0,n.push(a),a=[]),a.push(s.fn),s.children.forEach(function(e){o++,r.push(e)}),i--}return a.length&&n.push(a),n}var r,i={children:[]},o=new c;for(r=0;r<e.length;r++){var a=e[r];o.put(a.domNode,e[r]={domNode:a.domNode,fn:a.fn,children:[]})}for(r=0;r<e.length;r++)t(e[r]);return n(i)}var m=[],v=f(a);return function(c,f,y){function b(e){var t="["+i+"]",n=e.hasAttribute(i)?[e]:e.querySelectorAll(t),r=[];return L(n,function(e){var t=e.getAttribute(i);t&&t.length&&r.push(e)}),r}function w(e){var t=[],n={};L(e,function(e,r){var o=e.element,a=$(o),s=e.event,u=["enter","move"].indexOf(s)>=0,l=e.structural?b(a):[];if(l.length){var c=u?"to":"from";L(l,function(e){var t=e.getAttribute(i);n[t]=n[t]||{},n[t][c]={animationID:r,element:U(e)}})}else t.push(e)});var r={},o={};return L(n,function(n){var i=n.from,a=n.to;if(!i||!a){var s=i?i.animationID:a.animationID,u=s.toString();return void(r[u]||(r[u]=!0,t.push(e[s])))}var l=e[i.animationID],c=e[a.animationID],f=i.animationID.toString();if(!o[f]){var d=o[f]={structural:!0,beforeStart:function(){l.beforeStart(),c.beforeStart()},close:function(){l.close(),c.close()},classes:x(l.classes,c.classes),from:l,to:c,anchors:[]};d.classes.length?t.push(d):(t.push(l),t.push(c))}o[f].anchors.push({out:i.element,"in":a.element})}),t}function x(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r<e.length;r++){var i=e[r];if("ng-"!==i.substring(0,3))for(var o=0;o<t.length;o++)if(i===t[o]){n.push(i);break}}return n.join(" ")}function S(e){for(var t=o.length-1;t>=0;t--){var n=o[t];if(u.has(n)){var r=u.get(n),i=r(e);if(i)return i}}}function C(){c.addClass(te),M&&a.addClass(c,M),O&&(a.removeClass(c,O),O=null)}function _(e,t){function r(e){n(e).setHost(t)}e.from&&e.to?(r(e.from.element),r(e.to.element)):r(e.element)}function k(){var e=n(c);!e||"leave"===f&&y.$$domOperationFired||e.end()}function A(e){c.off("$destroy",k),t(c),v(c,y),p(c,y),y.domOperation(),M&&a.removeClass(c,M),c.removeClass(te),D.complete(!e)}y=d(y);var E=["enter","move","leave"].indexOf(f)>=0,D=new l({end:function(){A()},cancel:function(){A(!0)}});if(!o.length)return A(),D;e(c,D);var T=r(c.attr("class"),r(y.addClass,y.removeClass)),M=y.tempClasses;M&&(T+=" "+M,y.tempClasses=null);var O;return E&&(O="ng-"+f+ee,a.addClass(c,O)),m.push({element:c,classes:T,event:f,structural:E,options:y,beforeStart:C,close:A}),c.on("$destroy",k),m.length>1?D:(s.$$postDigest(function(){var e=[];L(m,function(t){n(t.element)?e.push(t):t.close()}),m.length=0;var t=w(e),r=[];L(t,function(e){r.push({domNode:$(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var t,r=e.close,i=e.anchors?e.from.element||e.to.element:e.element;if(n(i)){var o=S(e);o&&(t=o.start)}if(t){var a=t();a.done(function(e){r(!e)}),_(e,a)}else r()}})}),h(g(r))}),D)}}]}],Oe=["$animate","$rootScope",function(e){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,n,r,i,o){var a,s;t.$watchCollection(r.ngAnimateSwap||r["for"],function(r){a&&e.leave(a),s&&(s.$destroy(),s=null),(r||0===r)&&(s=t.$new(),o(s,function(t){a=t,e.enter(t,null,n)}))})}}}];t.module("ngAnimate",[]).directive("ngAnimateSwap",Oe).directive("ngAnimateChildren",ve).factory("$$rAFScheduler",me).provider("$$animateQueue",Te).provider("$$animation",Me).provider("$animateCss",Ce).provider("$$animateCssDriver",_e).provider("$$animateJs",ke).provider("$$animateJsDriver",Ae)}(window,window.angular),function(e,t){"use strict";function n(e,n,r){function i(e,r,i){var a,s;i=i||{},s=i.expires,a=t.isDefined(i.path)?i.path:o,t.isUndefined(r)&&(s="Thu, 01 Jan 1970 00:00:00 GMT",r=""),t.isString(s)&&(s=new Date(s));var u=encodeURIComponent(e)+"="+encodeURIComponent(r);u+=a?";path="+a:"",u+=i.domain?";domain="+i.domain:"",u+=s?";expires="+s.toUTCString():"",u+=i.secure?";secure":"";var l=u.length+1;return l>4096&&n.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+l+" > 4096 bytes)!"),u}var o=r.baseHref(),a=e[0];return function(e,t,n){a.cookie=i(e,t,n)}}t.module("ngCookies",["ng"]).provider("$cookies",[function(){function e(e){return e?t.extend({},n,e):n}var n=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(n,r){return{get:function(e){return n()[e]},getObject:function(e){var n=this.get(e);return n?t.fromJson(n):n},getAll:function(){return n()},put:function(t,n,i){r(t,n,e(i))},putObject:function(e,n,r){this.put(e,t.toJson(n),r)},remove:function(t,n){r(t,void 0,e(n))}}}]}]),t.module("ngCookies").factory("$cookieStore",["$cookies",function(e){return{get:function(t){return e.getObject(t)},put:function(t,n){e.putObject(t,n)},remove:function(t){e.remove(t)}}}]),n.$inject=["$document","$log","$browser"],t.module("ngCookies").provider("$$cookieWriter",function(){this.$get=n})}(window,window.angular),function(e,t,n){"use strict";function r(e,n,r,i,o,a){function s(e,n){return angular.element((n||t).querySelectorAll(e))}function u(e){return l[e]?l[e]:l[e]=n.get(e,{cache:a}).then(function(e){return e.data})}this.compile=function(t){t.template&&/\.html$/.test(t.template)&&(console.warn("Deprecated use of `template` option to pass a file. Please use the `templateUrl` option instead."),t.templateUrl=t.template,t.template="");var n=t.templateUrl,a=t.template||"",l=t.controller,c=t.controllerAs,f=angular.copy(t.resolve||{}),d=angular.copy(t.locals||{}),p=t.transformTemplate||angular.identity,h=t.bindToController;if(angular.forEach(f,function(e,t){angular.isString(e)?f[t]=r.get(e):f[t]=r.invoke(e)}),angular.extend(f,d),a)f.$template=e.when(a);else{if(!n)throw new Error("Missing `template` / `templateUrl` option.");f.$template=u(n)}return t.titleTemplate&&(f.$template=e.all([f.$template,u(t.titleTemplate)]).then(function(e){var t=angular.element(e[0]);return s('[ng-bind="title"]',t[0]).removeAttr("ng-bind").html(e[1]),t[0].outerHTML})),t.contentTemplate&&(f.$template=e.all([f.$template,u(t.contentTemplate)]).then(function(e){var n=angular.element(e[0]),r=s('[ng-bind="content"]',n[0]).removeAttr("ng-bind").html(e[1]);return t.templateUrl||r.next().remove(),n[0].outerHTML})),e.all(f).then(function(e){var n=p(e.$template);t.html&&(n=n.replace(/ng-bind="/gi,'ng-bind-html="'));var r=angular.element("<div>").html(n.trim()).contents(),a=i(r);return{locals:e,element:r,link:function(t){if(e.$scope=t,l){var n=o(l,e,!0);h&&angular.extend(n.instance,e);var i=angular.isObject(n)?n:n();r.data("$ngControllerController",i),r.children().data("$ngControllerController",i),c&&(t[c]=i)}return a.apply(null,arguments)}}})};var l={}}r.$inject=["$q","$http","$injector","$compile","$controller","$templateCache"],angular.module("mgcrea.ngStrap.tooltip",["mgcrea.ngStrap.core","mgcrea.ngStrap.helpers.dimensions"]).provider("$tooltip",function(){var e=this.defaults={animation:"am-fade",customClass:"",prefixClass:"tooltip",prefixEvent:"tooltip",container:!1,target:!1,placement:"top",templateUrl:"tooltip/tooltip.tpl.html",template:"",titleTemplate:!1,trigger:"hover focus",keyboard:!1,html:!1,show:!1,title:"",type:"",delay:0,autoClose:!1,bsEnabled:!0,viewport:{selector:"body",padding:0}};this.$get=["$window","$rootScope","$bsCompiler","$q","$templateCache","$http","$animate","$sce","dimensions","$$rAF","$timeout",function(n,r,i,o,a,s,u,l,c,f,d){function p(o,a){function s(){F.$emit(O.prefixEvent+".show",M)}function p(){if(F.$emit(O.prefixEvent+".hide",M),U===q){if(z&&"focus"===O.trigger)return o[0].blur();T()}}function $(){var e=O.trigger.split(" ");angular.forEach(e,function(e){"click"===e||"contextmenu"===e?o.on(e,M.toggle):"manual"!==e&&(o.on("hover"===e?"mouseenter":"focus",M.enter),o.on("hover"===e?"mouseleave":"blur",M.leave),"button"===P&&"hover"!==e&&o.on(m?"touchstart":"mousedown",M.$onFocusElementMouseDown))})}function y(){for(var e=O.trigger.split(" "),t=e.length;t--;){var n=e[t];"click"===n||"contextmenu"===n?o.off(n,M.toggle):"manual"!==n&&(o.off("hover"===n?"mouseenter":"focus",M.enter),o.off("hover"===n?"mouseleave":"blur",M.leave),"button"===P&&"hover"!==n&&o.off(m?"touchstart":"mousedown",M.$onFocusElementMouseDown))}}function b(){"focus"!==O.trigger?U.on("keyup",M.$onKeyUp):o.on("keyup",M.$onFocusKeyUp)}function w(){"focus"!==O.trigger?U.off("keyup",M.$onKeyUp):o.off("keyup",M.$onFocusKeyUp)}function x(){d(function(){U.on("click",C),v.on("click",M.hide),B=!0},0,!1)}function S(){B&&(U.off("click",C),v.off("click",M.hide),B=!1)}function C(e){e.stopPropagation()}function _(e){e=e||O.target||o;var r=e[0],i="BODY"===r.tagName,a=r.getBoundingClientRect(),s={};for(var u in a)s[u]=a[u];null===s.width&&(s=angular.extend({},s,{width:a.right-a.left,height:a.bottom-a.top}));var l=i?{top:0,left:0}:c.offset(r),f={scroll:i?t.documentElement.scrollTop||t.body.scrollTop:e.prop("scrollTop")||0},d=i?{width:t.documentElement.clientWidth,height:n.innerHeight}:null;return angular.extend({},s,f,d,l)}function k(e,t,n,r){var i,o=e.split("-");switch(o[0]){case"right":i={top:t.top+t.height/2-r/2,left:t.left+t.width};break;case"bottom":i={top:t.top+t.height,left:t.left+t.width/2-n/2};break;case"left":i={top:t.top+t.height/2-r/2,left:t.left-n};break;default:i={top:t.top-r,left:t.left+t.width/2-n/2}}if(!o[1])return i;if("top"===o[0]||"bottom"===o[0])switch(o[1]){case"left":i.left=t.left;break;case"right":i.left=t.left+t.width-n}else if("left"===o[0]||"right"===o[0])switch(o[1]){case"top":i.top=t.top-r+t.height;break;case"bottom":i.top=t.top}return i}function A(e,t){var n=U[0],r=n.offsetWidth,i=n.offsetHeight,o=parseInt(c.css(n,"margin-top"),10),a=parseInt(c.css(n,"margin-left"),10);isNaN(o)&&(o=0),isNaN(a)&&(a=0),e.top=e.top+o,e.left=e.left+a,c.setOffset(n,angular.extend({using:function(e){U.css({top:Math.round(e.top)+"px",left:Math.round(e.left)+"px",right:""})}},e),0);var s=n.offsetWidth,u=n.offsetHeight;if("top"===t&&u!==i&&(e.top=e.top+i-u),!/top-left|top-right|bottom-left|bottom-right/.test(t)){var l=E(t,e,s,u);if(l.left?e.left+=l.left:e.top+=l.top,c.setOffset(n,e),/top|right|bottom|left/.test(t)){var f=/top|bottom/.test(t),d=f?2*l.left-r+s:2*l.top-i+u,p=f?"offsetWidth":"offsetHeight";D(d,n[p],f)}}}function E(e,t,n,r){var i={top:0,left:0};if(!M.$viewport)return i;var o=O.viewport&&O.viewport.padding||0,a=_(M.$viewport);if(/right|left/.test(e)){var s=t.top-o-a.scroll,u=t.top+o-a.scroll+r;s<a.top?i.top=a.top-s:u>a.top+a.height&&(i.top=a.top+a.height-u)}else{var l=t.left-o,c=t.left+o+n;l<a.left?i.left=a.left-l:c>a.right&&(i.left=a.left+a.width-c)}return i}function D(e,t,n){var r=g(".tooltip-arrow, .arrow",U[0]);r.css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")}function T(){clearTimeout(j),M.$isShown&&null!==U&&(O.autoClose&&S(),O.keyboard&&w()),H&&(H.$destroy(),H=null),U&&(U.remove(),U=M.$element=null)}var M={},O=M.$options=angular.extend({},e,a),N=M.$promise=i.compile(O),F=M.$scope=O.scope&&O.scope.$new()||r.$new(),P=o[0].nodeName.toLowerCase();if(O.delay&&angular.isString(O.delay)){var I=O.delay.split(",").map(parseFloat);O.delay=I.length>1?{show:I[0],hide:I[1]}:I[0]}M.$id=O.id||o.attr("id")||"",O.title&&(F.title=l.trustAsHtml(O.title)),F.$setEnabled=function(e){F.$$postDigest(function(){M.setEnabled(e)})},F.$hide=function(){F.$$postDigest(function(){M.hide()})},F.$show=function(){F.$$postDigest(function(){M.show()})},F.$toggle=function(){F.$$postDigest(function(){M.toggle()})},M.$isShown=F.$isShown=!1;var j,V,R,U,L,H;N.then(function(e){R=e,M.init()}),M.init=function(){O.delay&&angular.isNumber(O.delay)&&(O.delay={show:O.delay,hide:O.delay}),"self"===O.container?L=o:angular.isElement(O.container)?L=O.container:O.container&&(L=g(O.container)),$(),O.target&&(O.target=angular.isElement(O.target)?O.target:g(O.target)),O.show&&F.$$postDigest(function(){"focus"===O.trigger?o[0].focus():M.show()})},M.destroy=function(){y(),T(),F.$destroy()},M.enter=function(){return clearTimeout(j),V="in",O.delay&&O.delay.show?void(j=setTimeout(function(){"in"===V&&M.show()},O.delay.show)):M.show()},M.show=function(){if(O.bsEnabled&&!M.$isShown){F.$emit(O.prefixEvent+".show.before",M);var e,t;O.container?(e=L,t=L[0].lastChild?angular.element(L[0].lastChild):null):(e=null,t=o),U&&T(),H=M.$scope.$new(),U=M.$element=R.link(H,function(){}),U.css({top:"-9999px",left:"-9999px",right:"auto",display:"block",visibility:"hidden"}),O.animation&&U.addClass(O.animation),O.type&&U.addClass(O.prefixClass+"-"+O.type),O.customClass&&U.addClass(O.customClass),t?t.after(U):e.prepend(U),M.$isShown=F.$isShown=!0,h(F),M.$applyPlacement(),angular.version.minor<=2?u.enter(U,e,t,s):u.enter(U,e,t).then(s),h(F),f(function(){U&&U.css({visibility:"visible"}),O.keyboard&&("focus"!==O.trigger&&M.focus(),b())}),O.autoClose&&x()}},M.leave=function(){return clearTimeout(j),V="out",O.delay&&O.delay.hide?void(j=setTimeout(function(){"out"===V&&M.hide()},O.delay.hide)):M.hide()};var z,q;M.hide=function(e){M.$isShown&&(F.$emit(O.prefixEvent+".hide.before",M),z=e,q=U,angular.version.minor<=2?u.leave(U,p):u.leave(U).then(p),M.$isShown=F.$isShown=!1,h(F),O.keyboard&&null!==U&&w(),O.autoClose&&null!==U&&S())},M.toggle=function(e){e&&e.preventDefault(),M.$isShown?M.leave():M.enter()},M.focus=function(){U[0].focus()},M.setEnabled=function(e){O.bsEnabled=e},M.setViewport=function(e){O.viewport=e},M.$applyPlacement=function(){if(U){var t=O.placement,n=/\s?auto?\s?/i,r=n.test(t);r&&(t=t.replace(n,"")||e.placement),U.addClass(O.placement);var i=_(),o=U.prop("offsetWidth"),a=U.prop("offsetHeight");if(M.$viewport=O.viewport&&g(O.viewport.selector||O.viewport),r){var s=t,u=_(M.$viewport);/bottom/.test(s)&&i.bottom+a>u.bottom?t=s.replace("bottom","top"):/top/.test(s)&&i.top-a<u.top&&(t=s.replace("top","bottom")),/left/.test(s)&&i.left-o<u.left?t=t.replace("left","right"):/right/.test(s)&&i.right+o>u.width&&(t=t.replace("right","left")),U.removeClass(s).addClass(t)}var l=k(t,i,o,a);A(l,t)}},M.$onKeyUp=function(e){27===e.which&&M.$isShown&&(M.hide(),e.stopPropagation())},M.$onFocusKeyUp=function(e){27===e.which&&(o[0].blur(),e.stopPropagation())},M.$onFocusElementMouseDown=function(e){e.preventDefault(),e.stopPropagation(),M.$isShown?o[0].blur():o[0].focus()};var B=!1;return M}function h(e){e.$$phase||e.$root&&e.$root.$$phase||e.$digest()}function g(e,n){return angular.element((n||t).querySelectorAll(e))}var m="createTouch"in n.document,v=angular.element(n.document);return p}]}).directive("bsTooltip",["$window","$location","$sce","$tooltip","$$rAF",function(e,t,n,r,i){return{restrict:"EAC",scope:!0,link:function(e,t,o){var a,s={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","titleTemplate","placement","container","delay","trigger","html","animation","backdropAnimation","type","customClass","id"],function(e){angular.isDefined(o[e])&&(s[e]=o[e])});var u=/^(false|0|)$/i;angular.forEach(["html","container"],function(e){angular.isDefined(o[e])&&u.test(o[e])&&(s[e]=!1)});var l=t.attr("data-target");angular.isDefined(l)&&(u.test(l)?s.target=!1:s.target=l),e.hasOwnProperty("title")||(e.title=""),o.$observe("title",function(t){if(angular.isDefined(t)||!e.hasOwnProperty("title")){var r=e.title;e.title=n.trustAsHtml(t),angular.isDefined(r)&&i(function(){a&&a.$applyPlacement()})}}),o.$observe("disabled",function(e){e&&a.$isShown&&a.hide()}),o.bsTooltip&&e.$watch(o.bsTooltip,function(t,n){angular.isObject(t)?angular.extend(e,t):e.title=t,angular.isDefined(n)&&i(function(){a&&a.$applyPlacement()})},!0),o.bsShow&&e.$watch(o.bsShow,function(e){a&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|,?(tooltip),?/i)),e===!0?a.show():a.hide())}),o.bsEnabled&&e.$watch(o.bsEnabled,function(e){a&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|1|,?(tooltip),?/i)),e===!1?a.setEnabled(!1):a.setEnabled(!0))}),o.viewport&&e.$watch(o.viewport,function(e){a&&angular.isDefined(e)&&a.setViewport(e)}),a=r(t,s),e.$on("$destroy",function(){a&&a.destroy(),s=null,a=null})}}}]),angular.module("mgcrea.ngStrap.typeahead",["mgcrea.ngStrap.tooltip","mgcrea.ngStrap.helpers.parseOptions"]).provider("$typeahead",function(){var e=this.defaults={animation:"am-fade",prefixClass:"typeahead",prefixEvent:"$typeahead",placement:"bottom-left",templateUrl:"typeahead/typeahead.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,minLength:1,filter:"bsAsyncFilter",limit:6,autoSelect:!1,comparator:"",trimValue:!0};this.$get=["$window","$rootScope","$tooltip","$$rAF","$timeout",function(t,n,r,i,o){function a(t,n,a){var u={},l=angular.extend({},e,a);u=r(t,l);var c=a.scope,f=u.$scope;f.$resetMatches=function(){f.$matches=[],f.$activeIndex=l.autoSelect?0:-1},f.$resetMatches(),f.$activate=function(e){f.$$postDigest(function(){u.activate(e)})},f.$select=function(e){f.$$postDigest(function(){u.select(e)})},f.$isVisible=function(){return u.$isVisible()},u.update=function(e){f.$matches=e,f.$activeIndex>=e.length&&(f.$activeIndex=l.autoSelect?0:-1),s(f),i(u.$applyPlacement)},u.activate=function(e){f.$activeIndex=e},u.select=function(e){if(-1!==e){var t=f.$matches[e].value;n.$setViewValue(t),n.$render(),f.$resetMatches(),c&&c.$digest(),f.$emit(l.prefixEvent+".select",t,e,u)}},u.$isVisible=function(){return l.minLength&&n?f.$matches.length&&angular.isString(n.$viewValue)&&n.$viewValue.length>=l.minLength:!!f.$matches.length},u.$getIndex=function(e){var t;for(t=f.$matches.length;t--&&!angular.equals(f.$matches[t].value,e););return t},u.$onMouseDown=function(e){e.preventDefault(),e.stopPropagation()},u.$onKeyDown=function(e){/(38|40|13)/.test(e.keyCode)&&(!u.$isVisible()||13===e.keyCode&&-1===f.$activeIndex||(e.preventDefault(),e.stopPropagation()),13===e.keyCode&&f.$matches.length?u.select(f.$activeIndex):38===e.keyCode&&f.$activeIndex>0?f.$activeIndex--:40===e.keyCode&&f.$activeIndex<f.$matches.length-1?f.$activeIndex++:angular.isUndefined(f.$activeIndex)&&(f.$activeIndex=0),f.$digest())};var d=u.show;u.show=function(){d(),o(function(){u.$element&&(u.$element.on("mousedown",u.$onMouseDown),l.keyboard&&t&&t.on("keydown",u.$onKeyDown))},0,!1)};var p=u.hide;return u.hide=function(){u.$element&&u.$element.off("mousedown",u.$onMouseDown),l.keyboard&&t&&t.off("keydown",u.$onKeyDown),l.autoSelect||u.activate(-1),p()},u}function s(e){e.$$phase||e.$root&&e.$root.$$phase||e.$digest()}return a.defaults=e,a}]}).filter("bsAsyncFilter",["$filter",function(e){return function(t,n,r){return t&&angular.isFunction(t.then)?t.then(function(t){return e("filter")(t,n,r)}):e("filter")(t,n,r)}}]).directive("bsTypeahead",["$window","$parse","$q","$typeahead","$parseOptions",function(e,t,n,r,i){var o=r.defaults;return{restrict:"EAC",require:"ngModel",link:function(e,t,n,a){t.off("change");var s={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","filter","limit","minLength","watchOptions","selectMode","autoSelect","comparator","id","prefixEvent","prefixClass"],function(e){angular.isDefined(n[e])&&(s[e]=n[e])});var u=/^(false|0|)$/i;angular.forEach(["html","container","trimValue","filter"],function(e){angular.isDefined(n[e])&&u.test(n[e])&&(s[e]=!1)}),t.attr("autocomplete")||t.attr("autocomplete","off");var l=angular.isDefined(s.filter)?s.filter:o.filter,c=s.limit||o.limit,f=s.comparator||o.comparator,d=n.bsOptions;l&&(d+=" | "+l+":$viewValue",f&&(d+=":"+f)),c&&(d+=" | limitTo:"+c);var p=i(d),h=r(t,a,s);if(s.watchOptions){var g=p.$match[7].replace(/\|.+/,"").replace(/\(.*\)/g,"").trim();e.$watchCollection(g,function(){p.valuesFn(e,a).then(function(e){h.update(e),a.$render()})})}e.$watch(n.ngModel,function(t){e.$modelValue=t,p.valuesFn(e,a).then(function(e){return s.selectMode&&!e.length&&t.length>0?void a.$setViewValue(a.$viewValue.substring(0,a.$viewValue.length-1)):(e.length>c&&(e=e.slice(0,c)),h.update(e),void a.$render())})}),a.$formatters.push(function(e){var t=p.displayValue(e);return t?t:angular.isDefined(e)&&"object"!=typeof e?e:""}),a.$render=function(){if(a.$isEmpty(a.$viewValue))return t.val("");var e=h.$getIndex(a.$modelValue),n=-1!==e?h.$scope.$matches[e].label:a.$viewValue;n=angular.isObject(n)?p.displayValue(n):n;var r=n?n.toString().replace(/<(?:.|\n)*?>/gm,""):"";t.val(s.trimValue===!1?r:r.trim())},e.$on("$destroy",function(){h&&h.destroy(),s=null,h=null})}}}]),angular.module("mgcrea.ngStrap.timepicker",["mgcrea.ngStrap.helpers.dateParser","mgcrea.ngStrap.helpers.dateFormatter","mgcrea.ngStrap.tooltip"]).provider("$timepicker",function(){var e=this.defaults={animation:"am-fade",prefixClass:"timepicker",placement:"bottom-left",templateUrl:"timepicker/timepicker.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,useNative:!0,timeType:"date",timeFormat:"shortTime",timezone:null,modelTimeFormat:null,autoclose:!1,minTime:-(1/0),maxTime:+(1/0),length:5,hourStep:1,minuteStep:5,secondStep:5,roundDisplay:!1,iconUp:"glyphicon glyphicon-chevron-up",iconDown:"glyphicon glyphicon-chevron-down",arrowBehavior:"pager"};this.$get=["$window","$document","$rootScope","$sce","$dateFormatter","$tooltip","$timeout",function(t,n,r,i,o,a,s){function u(t,n,r){function i(e){var t=6e4*h.minuteStep;return new Date(Math.floor(e.getTime()/t)*t)}function u(e,n){var r=e+n;if(t[0].createTextRange){var i=t[0].createTextRange();i.collapse(!0),i.moveStart("character",e),i.moveEnd("character",r),i.select()}else t[0].setSelectionRange?t[0].setSelectionRange(e,r):angular.isUndefined(t[0].selectionStart)&&(t[0].selectionStart=e,t[0].selectionEnd=r)}function f(){t[0].focus()}var d=a(t,angular.extend({},e,r)),p=r.scope,h=d.$options,g=d.$scope,m=h.lang,v=function(e,t,n){return o.formatDate(e,t,m,n)},$=0,y=h.roundDisplay?i(new Date):new Date,b=n.$dateValue||y,w={
+hour:b.getHours(),meridian:b.getHours()<12,minute:b.getMinutes(),second:b.getSeconds(),millisecond:b.getMilliseconds()},x=o.getDatetimeFormat(h.timeFormat,m),S=o.hoursFormat(x),C=o.timeSeparator(x),_=o.minutesFormat(x),k=o.secondsFormat(x),A=o.showSeconds(x),E=o.showAM(x);g.$iconUp=h.iconUp,g.$iconDown=h.iconDown,g.$select=function(e,t){d.select(e,t)},g.$moveIndex=function(e,t){d.$moveIndex(e,t)},g.$switchMeridian=function(e){d.switchMeridian(e)},d.update=function(e){angular.isDate(e)&&!isNaN(e.getTime())?(d.$date=e,angular.extend(w,{hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()}),d.$build()):d.$isBuilt||d.$build()},d.select=function(e,t,r){n.$dateValue&&!isNaN(n.$dateValue.getTime())||(n.$dateValue=new Date(1970,0,1)),angular.isDate(e)||(e=new Date(e)),0===t?n.$dateValue.setHours(e.getHours()):1===t?n.$dateValue.setMinutes(e.getMinutes()):2===t&&n.$dateValue.setSeconds(e.getSeconds()),n.$setViewValue(angular.copy(n.$dateValue)),n.$render(),h.autoclose&&!r&&s(function(){d.hide(!0)})},d.switchMeridian=function(e){if(n.$dateValue&&!isNaN(n.$dateValue.getTime())){var t=(e||n.$dateValue).getHours();n.$dateValue.setHours(12>t?t+12:t-12),n.$setViewValue(angular.copy(n.$dateValue)),n.$render()}},d.$build=function(){var e,t,n=g.midIndex=parseInt(h.length/2,10),r=[];for(e=0;e<h.length;e++)t=new Date(1970,0,1,w.hour-(n-e)*h.hourStep),r.push({date:t,label:v(t,S),selected:d.$date&&d.$isSelected(t,0),disabled:d.$isDisabled(t,0)});var i,o=[];for(e=0;e<h.length;e++)i=new Date(1970,0,1,0,w.minute-(n-e)*h.minuteStep),o.push({date:i,label:v(i,_),selected:d.$date&&d.$isSelected(i,1),disabled:d.$isDisabled(i,1)});var a,s=[];for(e=0;e<h.length;e++)a=new Date(1970,0,1,0,0,w.second-(n-e)*h.secondStep),s.push({date:a,label:v(a,k),selected:d.$date&&d.$isSelected(a,2),disabled:d.$isDisabled(a,2)});var u=[];for(e=0;e<h.length;e++)A?u.push([r[e],o[e],s[e]]):u.push([r[e],o[e]]);g.rows=u,g.showSeconds=A,g.showAM=E,g.isAM=(d.$date||r[n].date).getHours()<12,g.timeSeparator=C,d.$isBuilt=!0},d.$isSelected=function(e,t){return d.$date?0===t?e.getHours()===d.$date.getHours():1===t?e.getMinutes()===d.$date.getMinutes():2===t?e.getSeconds()===d.$date.getSeconds():void 0:!1},d.$isDisabled=function(e,t){var n;return 0===t?n=e.getTime()+6e4*w.minute+1e3*w.second:1===t?n=e.getTime()+36e5*w.hour+1e3*w.second:2===t&&(n=e.getTime()+36e5*w.hour+6e4*w.minute),n<1*h.minTime||n>1*h.maxTime},g.$arrowAction=function(e,t){"picker"===h.arrowBehavior?d.$setTimeByStep(e,t):d.$moveIndex(e,t)},d.$setTimeByStep=function(e,t){var n=new Date(d.$date||b),r=n.getHours(),i=n.getMinutes(),o=n.getSeconds();0===t?n.setHours(r-parseInt(h.hourStep,10)*e):1===t?n.setMinutes(i-parseInt(h.minuteStep,10)*e):2===t&&n.setSeconds(o-parseInt(h.secondStep,10)*e),d.select(n,t,!0)},d.$moveIndex=function(e,t){var n;0===t?(n=new Date(1970,0,1,w.hour+e*h.length,w.minute,w.second),angular.extend(w,{hour:n.getHours()})):1===t?(n=new Date(1970,0,1,w.hour,w.minute+e*h.length*h.minuteStep,w.second),angular.extend(w,{minute:n.getMinutes()})):2===t&&(n=new Date(1970,0,1,w.hour,w.minute,w.second+e*h.length*h.secondStep),angular.extend(w,{second:n.getSeconds()})),d.$build()},d.$onMouseDown=function(e){if("input"!==e.target.nodeName.toLowerCase()&&e.preventDefault(),e.stopPropagation(),c){var t=angular.element(e.target);"button"!==t[0].nodeName.toLowerCase()&&(t=t.parent()),t.triggerHandler("click")}},d.$onKeyDown=function(e){if(/(38|37|39|40|13)/.test(e.keyCode)&&!e.shiftKey&&!e.altKey){if(e.preventDefault(),e.stopPropagation(),13===e.keyCode)return void d.hide(!0);var t=new Date(d.$date),n=t.getHours(),r=v(t,S).length,i=t.getMinutes(),o=v(t,_).length,a=t.getSeconds(),s=v(t,k).length,l=1,c=/(37|39)/.test(e.keyCode),f=2+1*A+1*E;c&&(37===e.keyCode?$=1>$?f-1:$-1:39===e.keyCode&&($=f-1>$?$+1:0));var g=[0,r],m=0;38===e.keyCode&&(m=-1),40===e.keyCode&&(m=1);var y=2===$&&A,b=2===$&&!A||3===$&&A;0===$?(t.setHours(n+m*parseInt(h.hourStep,10)),r=v(t,S).length,g=[0,r]):1===$?(t.setMinutes(i+m*parseInt(h.minuteStep,10)),o=v(t,_).length,g=[r+l,o]):y?(t.setSeconds(a+m*parseInt(h.secondStep,10)),s=v(t,k).length,g=[r+l+o+l,s]):b&&(c||d.switchMeridian(),g=[r+l+o+l+(s+l)*A,2]),d.select(t,$,!0),u(g[0],g[1]),p.$digest()}};var D=d.init;d.init=function(){return l&&h.useNative?(t.prop("type","time"),void t.css("-webkit-appearance","textfield")):(c&&(t.prop("type","text"),t.attr("readonly","true"),t.on("click",f)),void D())};var T=d.destroy;d.destroy=function(){l&&h.useNative&&t.off("click",f),T()};var M=d.show;d.show=function(){!c&&t.attr("readonly")||t.attr("disabled")||(M(),s(function(){d.$element&&d.$element.on(c?"touchstart":"mousedown",d.$onMouseDown),h.keyboard&&t&&t.on("keydown",d.$onKeyDown)},0,!1))};var O=d.hide;return d.hide=function(e){d.$isShown&&(d.$element&&d.$element.off(c?"touchstart":"mousedown",d.$onMouseDown),h.keyboard&&t&&t.off("keydown",d.$onKeyDown),O(e))},d}var l=/(ip[ao]d|iphone|android)/gi.test(t.navigator.userAgent),c="createTouch"in t.document&&l;return e.lang||(e.lang=o.getDefaultLocale()),u.defaults=e,u}]}).directive("bsTimepicker",["$window","$parse","$q","$dateFormatter","$dateParser","$timepicker",function(e,t,r,i,o,a){var s=a.defaults,u=/(ip[ao]d|iphone|android)/gi.test(e.navigator.userAgent);return{restrict:"EAC",require:"ngModel",link:function(e,t,r,l){function c(e){if(angular.isDate(e)){var t=isNaN(d.minTime)||new Date(e.getTime()).setFullYear(1970,0,1)>=d.minTime,n=isNaN(d.maxTime)||new Date(e.getTime()).setFullYear(1970,0,1)<=d.maxTime,r=t&&n;l.$setValidity("date",r),l.$setValidity("min",t),l.$setValidity("max",n),r&&(l.$dateValue=e)}}function f(){return!l.$dateValue||isNaN(l.$dateValue.getTime())?"":m(l.$dateValue,d.timeFormat)}var d={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","autoclose","timeType","timeFormat","timezone","modelTimeFormat","useNative","hourStep","minuteStep","secondStep","length","arrowBehavior","iconUp","iconDown","roundDisplay","id","prefixClass","prefixEvent"],function(e){angular.isDefined(r[e])&&(d[e]=r[e])});var p=/^(false|0|)$/i;angular.forEach(["html","container","autoclose","useNative","roundDisplay"],function(e){angular.isDefined(r[e])&&p.test(r[e])&&(d[e]=!1)}),u&&(d.useNative||s.useNative)&&(d.timeFormat="HH:mm");var h=a(t,l,d);d=h.$options;var g=d.lang,m=function(e,t,n){return i.formatDate(e,t,g,n)};r.bsShow&&e.$watch(r.bsShow,function(e){h&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|,?(timepicker),?/i)),e===!0?h.show():h.hide())});var v=o({format:d.timeFormat,lang:g});angular.forEach(["minTime","maxTime"],function(e){angular.isDefined(r[e])&&r.$observe(e,function(t){h.$options[e]=v.getTimeForAttribute(e,t),isNaN(h.$options[e])||h.$build(),c(l.$dateValue)})}),e.$watch(r.ngModel,function(){h.update(l.$dateValue)},!0),l.$parsers.unshift(function(e){var t;if(!e)return l.$setValidity("date",!0),null;var r=angular.isDate(e)?e:v.parse(e,l.$dateValue);return!r||isNaN(r.getTime())?(l.$setValidity("date",!1),n):(c(r),"string"===d.timeType?(t=v.timezoneOffsetAdjust(r,d.timezone,!0),m(t,d.modelTimeFormat||d.timeFormat)):(t=v.timezoneOffsetAdjust(l.$dateValue,d.timezone,!0),"number"===d.timeType?t.getTime():"unix"===d.timeType?t.getTime()/1e3:"iso"===d.timeType?t.toISOString():new Date(t)))}),l.$formatters.push(function(e){var t;return t=angular.isUndefined(e)||null===e?NaN:angular.isDate(e)?e:"string"===d.timeType?v.parse(e,null,d.modelTimeFormat):"unix"===d.timeType?new Date(1e3*e):new Date(e),l.$dateValue=v.timezoneOffsetAdjust(t,d.timezone),f()}),l.$render=function(){t.val(f())},e.$on("$destroy",function(){h&&h.destroy(),d=null,h=null})}}}]),angular.module("mgcrea.ngStrap.tab",[]).provider("$tab",function(){var e=this.defaults={animation:"am-fade",template:"tab/tab.tpl.html",navClass:"nav-tabs",activeClass:"active"},t=this.controller=function(t,n,r){var i=this;i.$options=angular.copy(e),angular.forEach(["animation","navClass","activeClass"],function(e){angular.isDefined(r[e])&&(i.$options[e]=r[e])}),t.$navClass=i.$options.navClass,t.$activeClass=i.$options.activeClass,i.$panes=t.$panes=[],i.$activePaneChangeListeners=i.$viewChangeListeners=[],i.$push=function(e){angular.isUndefined(i.$panes.$active)&&t.$setActive(e.name||0),i.$panes.push(e)},i.$remove=function(e){var t,n=i.$panes.indexOf(e),r=i.$panes.$active;t=angular.isString(r)?i.$panes.map(function(e){return e.name}).indexOf(r):i.$panes.$active,i.$panes.splice(n,1),t>n?t--:n===t&&t===i.$panes.length&&t--,t>=0&&t<i.$panes.length?i.$setActive(i.$panes[t].name||t):i.$setActive()},i.$setActive=t.$setActive=function(e){i.$panes.$active=e,i.$activePaneChangeListeners.forEach(function(e){e()})},i.$isActive=t.$isActive=function(e,t){return i.$panes.$active===e.name||i.$panes.$active===t}};this.$get=function(){var n={};return n.defaults=e,n.controller=t,n}}).directive("bsTabs",["$window","$animate","$tab","$parse",function(e,t,n,r){var i=n.defaults;return{require:["?ngModel","bsTabs"],transclude:!0,scope:!0,controller:["$scope","$element","$attrs",n.controller],templateUrl:function(e,t){return t.template||i.template},link:function(e,t,n,i){var o=i[0],a=i[1];if(o&&(a.$activePaneChangeListeners.push(function(){o.$setViewValue(a.$panes.$active)}),o.$formatters.push(function(e){return a.$setActive(e),e})),n.bsActivePane){var s=r(n.bsActivePane);a.$activePaneChangeListeners.push(function(){s.assign(e,a.$panes.$active)}),e.$watch(n.bsActivePane,function(e){a.$setActive(e)},!0)}}}}]).directive("bsPane",["$window","$animate","$sce",function(e,t,n){return{require:["^?ngModel","^bsTabs"],scope:!0,link:function(e,r,i,o){function a(){var n=s.$panes.indexOf(e);t[s.$isActive(e,n)?"addClass":"removeClass"](r,s.$options.activeClass)}var s=o[1];r.addClass("tab-pane"),i.$observe("title",function(t){e.title=n.trustAsHtml(t)}),e.name=i.name,s.$options.animation&&r.addClass(s.$options.animation),i.$observe("disabled",function(t){e.disabled=e.$eval(t)}),s.$push(e),e.$on("$destroy",function(){s.$remove(e)}),s.$activePaneChangeListeners.push(function(){a()}),a()}}}]),angular.module("mgcrea.ngStrap.select",["mgcrea.ngStrap.tooltip","mgcrea.ngStrap.helpers.parseOptions"]).provider("$select",function(){var e=this.defaults={animation:"am-fade",prefixClass:"select",prefixEvent:"$select",placement:"bottom-left",templateUrl:"select/select.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,multiple:!1,allNoneButtons:!1,sort:!0,caretHtml:' <span class="caret"></span>',placeholder:"Choose among the following...",allText:"All",noneText:"None",maxLength:3,maxLengthHtml:"selected",iconCheckmark:"glyphicon glyphicon-ok"};this.$get=["$window","$document","$rootScope","$tooltip","$timeout",function(t,n,r,i,o){function a(r,a,s){var l={},c=angular.extend({},e,s);l=i(r,c);var f=l.$scope;f.$matches=[],c.multiple?f.$activeIndex=[]:f.$activeIndex=-1,f.$isMultiple=c.multiple,f.$showAllNoneButtons=c.allNoneButtons&&c.multiple,f.$iconCheckmark=c.iconCheckmark,f.$allText=c.allText,f.$noneText=c.noneText,f.$activate=function(e){f.$$postDigest(function(){l.activate(e)})},f.$select=function(e){f.$$postDigest(function(){l.select(e)})},f.$isVisible=function(){return l.$isVisible()},f.$isActive=function(e){return l.$isActive(e)},f.$selectAll=function(){for(var e=0;e<f.$matches.length;e++)f.$isActive(e)||f.$select(e)},f.$selectNone=function(){for(var e=0;e<f.$matches.length;e++)f.$isActive(e)&&f.$select(e)},l.update=function(e){f.$matches=e,l.$updateActiveIndex()},l.activate=function(e){return c.multiple?(l.$isActive(e)?f.$activeIndex.splice(f.$activeIndex.indexOf(e),1):f.$activeIndex.push(e),c.sort&&f.$activeIndex.sort(function(e,t){return e-t})):f.$activeIndex=e,f.$activeIndex},l.select=function(e){var t=f.$matches[e].value;f.$apply(function(){l.activate(e),c.multiple?a.$setViewValue(f.$activeIndex.map(function(e){return angular.isUndefined(f.$matches[e])?null:f.$matches[e].value})):(a.$setViewValue(t),l.hide())}),f.$emit(c.prefixEvent+".select",t,e,l)},l.$updateActiveIndex=function(){c.multiple?angular.isArray(a.$modelValue)?f.$activeIndex=a.$modelValue.map(function(e){return l.$getIndex(e)}):f.$activeIndex=[]:angular.isDefined(a.$modelValue)&&f.$matches.length?f.$activeIndex=l.$getIndex(a.$modelValue):f.$activeIndex=-1},l.$isVisible=function(){return c.minLength&&a?f.$matches.length&&a.$viewValue.length>=c.minLength:f.$matches.length},l.$isActive=function(e){return c.multiple?-1!==f.$activeIndex.indexOf(e):f.$activeIndex===e},l.$getIndex=function(e){var t;for(t=f.$matches.length;t--&&!angular.equals(f.$matches[t].value,e););return t},l.$onMouseDown=function(e){if(e.preventDefault(),e.stopPropagation(),u){var t=angular.element(e.target);t.triggerHandler("click")}},l.$onKeyDown=function(e){return/(9|13|38|40)/.test(e.keyCode)?(9!==e.keyCode&&(e.preventDefault(),e.stopPropagation()),c.multiple&&9===e.keyCode?l.hide():c.multiple||13!==e.keyCode&&9!==e.keyCode?void(c.multiple||(38===e.keyCode&&f.$activeIndex>0?f.$activeIndex--:38===e.keyCode&&f.$activeIndex<0?f.$activeIndex=f.$matches.length-1:40===e.keyCode&&f.$activeIndex<f.$matches.length-1?f.$activeIndex++:angular.isUndefined(f.$activeIndex)&&(f.$activeIndex=0),f.$digest())):l.select(f.$activeIndex)):void 0},l.$isIE=function(){var e=t.navigator.userAgent;return e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0},l.$selectScrollFix=function(e){"UL"===n[0].activeElement.tagName&&(e.preventDefault(),e.stopImmediatePropagation(),e.target.focus())};var d=l.show;l.show=function(){d(),c.multiple&&l.$element.addClass("select-multiple"),o(function(){l.$element.on(u?"touchstart":"mousedown",l.$onMouseDown),c.keyboard&&r.on("keydown",l.$onKeyDown)},0,!1)};var p=l.hide;return l.hide=function(){!c.multiple&&angular.isUndefined(a.$modelValue)&&(f.$activeIndex=-1),l.$element.off(u?"touchstart":"mousedown",l.$onMouseDown),c.keyboard&&r.off("keydown",l.$onKeyDown),p(!0)},l}var s=/(ip[ao]d|iphone|android)/gi.test(t.navigator.userAgent),u="createTouch"in t.document&&s;return a.defaults=e,a}]}).directive("bsSelect",["$window","$parse","$q","$select","$parseOptions",function(e,t,n,r,i){var o=r.defaults;return{restrict:"EAC",require:"ngModel",link:function(e,t,n,a){var s={scope:e,placeholder:o.placeholder};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","placeholder","allNoneButtons","maxLength","maxLengthHtml","allText","noneText","iconCheckmark","autoClose","id","sort","caretHtml","prefixClass","prefixEvent"],function(e){angular.isDefined(n[e])&&(s[e]=n[e])});var u=/^(false|0|)$/i;angular.forEach(["html","container","allNoneButtons","sort"],function(e){angular.isDefined(n[e])&&u.test(n[e])&&(s[e]=!1)});var l=t.attr("data-multiple");if(angular.isDefined(l)&&(u.test(l)?s.multiple=!1:s.multiple=l),"select"===t[0].nodeName.toLowerCase()){var c=t;c.css("display","none"),t=angular.element('<button type="button" class="btn btn-default"></button>'),c.after(t)}var f=i(n.bsOptions),d=r(t,a,s);d.$isIE()&&t[0].addEventListener("blur",d.$selectScrollFix);var p=f.$match[7].replace(/\|.+/,"").trim();e.$watch(p,function(){f.valuesFn(e,a).then(function(e){d.update(e),a.$render()})},!0),e.$watch(n.ngModel,function(){d.$updateActiveIndex(),a.$render()},!0),a.$render=function(){var e,n;s.multiple&&angular.isArray(a.$modelValue)?(e=a.$modelValue.map(function(e){return n=d.$getIndex(e),-1!==n?d.$scope.$matches[n].label:!1}).filter(angular.isDefined),e=e.length>(s.maxLength||o.maxLength)?e.length+" "+(s.maxLengthHtml||o.maxLengthHtml):e.join(", ")):(n=d.$getIndex(a.$modelValue),e=-1!==n?d.$scope.$matches[n].label:!1),t.html((e||s.placeholder)+(s.caretHtml||o.caretHtml))},s.multiple&&(a.$isEmpty=function(e){return!e||0===e.length}),e.$on("$destroy",function(){d&&d.destroy(),s=null,d=null})}}}]),angular.module("mgcrea.ngStrap.scrollspy",["mgcrea.ngStrap.helpers.debounce","mgcrea.ngStrap.helpers.dimensions"]).provider("$scrollspy",function(){var e=this.$$spies={},n=this.defaults={debounce:150,throttle:100,offset:100};this.$get=["$window","$document","$rootScope","dimensions","debounce","throttle",function(r,i,o,a,s,u){function l(e,t){return e[0].nodeName&&e[0].nodeName.toLowerCase()===t.toLowerCase()}function c(i){var c=angular.extend({},n,i);c.element||(c.element=p);var h=l(c.element,"body"),g=h?f:c.element,m=h?"window":c.id;if(e[m])return e[m].$$count++,e[m];var v,$,y,b,w,x,S,C,_={},k=_.$trackedElements=[],A=[];return _.init=function(){this.$$count=1,b=s(this.checkPosition,c.debounce),w=u(this.checkPosition,c.throttle),g.on("click",this.checkPositionWithEventLoop),f.on("resize",b),g.on("scroll",w),x=s(this.checkOffsets,c.debounce),v=o.$on("$viewContentLoaded",x),$=o.$on("$includeContentLoaded",x),x(),m&&(e[m]=_)},_.destroy=function(){this.$$count--,this.$$count>0||(g.off("click",this.checkPositionWithEventLoop),f.off("resize",b),g.off("scroll",w),v(),$(),m&&delete e[m])},_.checkPosition=function(){if(A.length){if(C=(h?r.pageYOffset:g.prop("scrollTop"))||0,S=Math.max(r.innerHeight,d.prop("clientHeight")),C<A[0].offsetTop&&y!==A[0].target)return _.$activateElement(A[0]);for(var e=A.length;e--;)if(!angular.isUndefined(A[e].offsetTop)&&null!==A[e].offsetTop&&y!==A[e].target&&!(C<A[e].offsetTop||A[e+1]&&C>A[e+1].offsetTop))return _.$activateElement(A[e])}},_.checkPositionWithEventLoop=function(){setTimeout(_.checkPosition,1)},_.$activateElement=function(e){if(y){var t=_.$getTrackedElement(y);t&&(t.source.removeClass("active"),l(t.source,"li")&&l(t.source.parent().parent(),"li")&&t.source.parent().parent().removeClass("active"))}y=e.target,e.source.addClass("active"),l(e.source,"li")&&l(e.source.parent().parent(),"li")&&e.source.parent().parent().addClass("active")},_.$getTrackedElement=function(e){return k.filter(function(t){return t.target===e})[0]},_.checkOffsets=function(){angular.forEach(k,function(e){var n=t.querySelector(e.target);e.offsetTop=n?a.offset(n).top:null,c.offset&&null!==e.offsetTop&&(e.offsetTop-=1*c.offset)}),A=k.filter(function(e){return null!==e.offsetTop}).sort(function(e,t){return e.offsetTop-t.offsetTop}),b()},_.trackElement=function(e,t){k.push({target:e,source:t})},_.untrackElement=function(e,t){for(var n,r=k.length;r--;)if(k[r].target===e&&k[r].source===t){n=r;break}k.splice(n,1)},_.activate=function(e){k[e].addClass("active")},_.init(),_}var f=angular.element(r),d=angular.element(i.prop("documentElement")),p=angular.element(r.document.body);return c}]}).directive("bsScrollspy",["$rootScope","debounce","dimensions","$scrollspy",function(e,t,n,r){return{restrict:"EAC",link:function(e,t,n){var i={scope:e};angular.forEach(["offset","target"],function(e){angular.isDefined(n[e])&&(i[e]=n[e])});var o=r(i);o.trackElement(i.target,t),e.$on("$destroy",function(){o&&(o.untrackElement(i.target,t),o.destroy()),i=null,o=null})}}}]).directive("bsScrollspyList",["$rootScope","debounce","dimensions","$scrollspy",function(){return{restrict:"A",compile:function(e){var t=e[0].querySelectorAll("li > a[href]");angular.forEach(t,function(e){var t=angular.element(e);t.parent().attr("bs-scrollspy","").attr("data-target",t.attr("href"))})}}}]),angular.module("mgcrea.ngStrap.popover",["mgcrea.ngStrap.tooltip"]).provider("$popover",function(){var e=this.defaults={animation:"am-fade",customClass:"",container:!1,target:!1,placement:"right",templateUrl:"popover/popover.tpl.html",contentTemplate:!1,trigger:"click",keyboard:!0,html:!1,title:"",content:"",delay:0,autoClose:!1};this.$get=["$tooltip",function(t){function n(n,r){var i=angular.extend({},e,r),o=t(n,i);return i.content&&(o.$scope.content=i.content),o}return n}]}).directive("bsPopover",["$window","$sce","$popover",function(e,t,n){var r=e.requestAnimationFrame||e.setTimeout;return{restrict:"EAC",scope:!0,link:function(e,i,o){var a,s={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","contentTemplate","placement","container","delay","trigger","html","animation","customClass","autoClose","id","prefixClass","prefixEvent"],function(e){angular.isDefined(o[e])&&(s[e]=o[e])});var u=/^(false|0|)$/i;angular.forEach(["html","container","autoClose"],function(e){angular.isDefined(o[e])&&u.test(o[e])&&(s[e]=!1)});var l=i.attr("data-target");angular.isDefined(l)&&(u.test(l)?s.target=!1:s.target=l),angular.forEach(["title","content"],function(n){o[n]&&o.$observe(n,function(i,o){e[n]=t.trustAsHtml(i),angular.isDefined(o)&&r(function(){a&&a.$applyPlacement()})})}),o.bsPopover&&e.$watch(o.bsPopover,function(t,n){angular.isObject(t)?angular.extend(e,t):e.content=t,angular.isDefined(n)&&r(function(){a&&a.$applyPlacement()})},!0),o.bsShow&&e.$watch(o.bsShow,function(e){a&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|,?(popover),?/i)),e===!0?a.show():a.hide())}),o.viewport&&e.$watch(o.viewport,function(e){a&&angular.isDefined(e)&&a.setViewport(e)}),a=n(i,s),e.$on("$destroy",function(){a&&a.destroy(),s=null,a=null})}}}]),angular.module("mgcrea.ngStrap.navbar",[]).provider("$navbar",function(){var e=this.defaults={activeClass:"active",routeAttr:"data-match-route",strict:!1};this.$get=function(){return{defaults:e}}}).directive("bsNavbar",["$window","$location","$navbar",function(e,t,n){var r=n.defaults;return{restrict:"A",link:function(e,n,i){var o=angular.copy(r);angular.forEach(Object.keys(r),function(e){angular.isDefined(i[e])&&(o[e]=i[e])}),e.$watch(function(){return t.path()},function(e){var t=n[0].querySelectorAll("li["+o.routeAttr+"]");angular.forEach(t,function(t){var n=angular.element(t),r=n.attr(o.routeAttr).replace("/","\\/");o.strict&&(r="^"+r+"$");var i=new RegExp(r,"i");i.test(e)?n.addClass(o.activeClass):n.removeClass(o.activeClass)})})}}}]),angular.module("mgcrea.ngStrap.dropdown",["mgcrea.ngStrap.tooltip"]).provider("$dropdown",function(){var e=this.defaults={animation:"am-fade",prefixClass:"dropdown",prefixEvent:"dropdown",placement:"bottom-left",templateUrl:"dropdown/dropdown.tpl.html",trigger:"click",container:!1,keyboard:!0,html:!1,delay:0};this.$get=["$window","$rootScope","$tooltip","$timeout",function(t,n,r,i){function o(t,o){function u(e){return e.target!==t[0]?e.target!==t[0]&&l.hide():void 0}var l={},c=angular.extend({},e,o);l.$scope=c.scope&&c.scope.$new()||n.$new(),l=r(t,c);var f=t.parent();l.$onKeyDown=function(e){if(/(38|40)/.test(e.keyCode)){e.preventDefault(),e.stopPropagation();var t=angular.element(l.$element[0].querySelectorAll("li:not(.divider) a"));if(t.length){var n;angular.forEach(t,function(e,t){s&&s.call(e,":focus")&&(n=t)}),38===e.keyCode&&n>0?n--:40===e.keyCode&&n<t.length-1?n++:angular.isUndefined(n)&&(n=0),t.eq(n)[0].focus()}}};var d=l.show;l.show=function(){d(),i(function(){c.keyboard&&l.$element&&l.$element.on("keydown",l.$onKeyDown),a.on("click",u)},0,!1),f.hasClass("dropdown")&&f.addClass("open")};var p=l.hide;l.hide=function(){l.$isShown&&(c.keyboard&&l.$element&&l.$element.off("keydown",l.$onKeyDown),a.off("click",u),f.hasClass("dropdown")&&f.removeClass("open"),p())};var h=l.destroy;return l.destroy=function(){a.off("click",u),h()},l}var a=angular.element(t.document.body),s=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector;return o}]}).directive("bsDropdown",["$window","$sce","$dropdown",function(e,t,r){return{restrict:"EAC",scope:!0,compile:function(e,t){if(!t.bsDropdown){for(var i=e[0].nextSibling;i&&1!==i.nodeType;)i=i.nextSibling;i&&i.className.split(" ").indexOf("dropdown-menu")>=0&&(t.template=i.outerHTML,t.templateUrl=n,i.parentNode.removeChild(i))}return function(e,n,i){var o={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","keyboard","html","animation","id","autoClose"],function(e){angular.isDefined(t[e])&&(o[e]=t[e])});var a=/^(false|0|)$/i;angular.forEach(["html","container"],function(e){angular.isDefined(i[e])&&a.test(i[e])&&(o[e]=!1)}),i.bsDropdown&&e.$watch(i.bsDropdown,function(t){e.content=t},!0);var s=r(n,o);i.bsShow&&e.$watch(i.bsShow,function(e){s&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|,?(dropdown),?/i)),e===!0?s.show():s.hide())}),e.$on("$destroy",function(){s&&s.destroy(),o=null,s=null})}}}}]),angular.module("mgcrea.ngStrap.modal",["mgcrea.ngStrap.core","mgcrea.ngStrap.helpers.dimensions"]).provider("$modal",function(){var e=this.defaults={animation:"am-fade",backdropAnimation:"am-fade",customClass:"",prefixClass:"modal",prefixEvent:"modal",placement:"top",templateUrl:"modal/modal.tpl.html",template:"",contentTemplate:!1,container:!1,element:null,backdrop:!0,keyboard:!0,html:!1,show:!0,size:null};this.$get=["$window","$rootScope","$bsCompiler","$animate","$timeout","$sce","dimensions",function(n,r,i,o,a,s){function u(t){function n(){A.$emit(_.prefixEvent+".show",C)}function a(){p.removeClass(_.prefixClass+"-open"),_.animation&&p.removeClass(_.prefixClass+"-with-"+_.animation),A.$emit(_.prefixEvent+".hide",C)}function u(){_.backdrop&&(D.on("click",w),M.on("click",w),M.on("wheel",x))}function $(){_.backdrop&&(D.off("click",w),M.off("click",w),M.off("wheel",x))}function y(){_.keyboard&&D.on("keyup",C.$onKeyUp)}function b(){_.keyboard&&D.off("keyup",C.$onKeyUp)}function w(e){e.target===e.currentTarget&&("static"===_.backdrop?C.focus():C.hide())}function x(e){e.preventDefault()}function S(){C.$isShown&&null!==D&&($(),b()),T&&(T.$destroy(),T=null),D&&(D.remove(),D=C.$element=null)}var C={},_=C.$options=angular.extend({},e,t),k=C.$promise=i.compile(_),A=C.$scope=_.scope&&_.scope.$new()||r.$new();_.element||_.container||(_.container="body"),C.$id=_.id||_.element&&_.element.attr("id")||"",f(["title","content"],function(e){_[e]&&(A[e]=s.trustAsHtml(_[e]))}),A.$hide=function(){A.$$postDigest(function(){C.hide()})},A.$show=function(){A.$$postDigest(function(){C.show()})},A.$toggle=function(){A.$$postDigest(function(){C.toggle()})},C.$isShown=A.$isShown=!1;var E,D,T,M=angular.element('<div class="'+_.prefixClass+'-backdrop"/>');return M.css({position:"fixed",top:"0px",left:"0px",bottom:"0px",right:"0px"}),k.then(function(e){E=e,C.init()}),C.init=function(){_.show&&A.$$postDigest(function(){C.show()})},C.destroy=function(){S(),M&&(M.remove(),M=null),A.$destroy()},C.show=function(){if(!C.$isShown){var e,t;if(angular.isElement(_.container)?(e=_.container,t=_.container[0].lastChild?angular.element(_.container[0].lastChild):null):_.container?(e=c(_.container),t=e[0]&&e[0].lastChild?angular.element(e[0].lastChild):null):(e=null,t=_.element),D&&S(),T=C.$scope.$new(),D=C.$element=E.link(T,function(){}),C.$backdrop=M,_.backdrop&&(D.css({"z-index":g+20*h}),M.css({"z-index":m+20*h}),h++),!A.$emit(_.prefixEvent+".show.before",C).defaultPrevented){D.css({display:"block"}).addClass(_.placement),_.customClass&&D.addClass(_.customClass),_.size&&v[_.size]&&angular.element(c(".modal-dialog",D[0])).addClass(v[_.size]),_.animation&&(_.backdrop&&M.addClass(_.backdropAnimation),D.addClass(_.animation)),_.backdrop&&o.enter(M,p,null),angular.version.minor<=2?o.enter(D,e,t,n):o.enter(D,e,t).then(n),C.$isShown=A.$isShown=!0,l(A);var r=D[0];d(function(){r.focus()}),p.addClass(_.prefixClass+"-open"),_.animation&&p.addClass(_.prefixClass+"-with-"+_.animation),u(),y()}}},C.hide=function(){C.$isShown&&(_.backdrop&&h--,A.$emit(_.prefixEvent+".hide.before",C).defaultPrevented||(angular.version.minor<=2?o.leave(D,a):o.leave(D).then(a),_.backdrop&&o.leave(M),C.$isShown=A.$isShown=!1,l(A),$(),b()))},C.toggle=function(){C.$isShown?C.hide():C.show()},C.focus=function(){D[0].focus()},C.$onKeyUp=function(e){27===e.which&&C.$isShown&&(C.hide(),e.stopPropagation())},C}function l(e){e.$$phase||e.$root&&e.$root.$$phase||e.$digest()}function c(e,n){return angular.element((n||t).querySelectorAll(e))}var f=angular.forEach,d=n.requestAnimationFrame||n.setTimeout,p=angular.element(n.document.body),h=0,g=1050,m=1040,v={lg:"modal-lg",sm:"modal-sm"};return u}]}).directive("bsModal",["$window","$sce","$modal",function(e,t,n){return{restrict:"EAC",scope:!0,link:function(e,r,i){var o={scope:e,element:r,show:!1};angular.forEach(["template","templateUrl","controller","controllerAs","contentTemplate","placement","backdrop","keyboard","html","container","animation","backdropAnimation","id","prefixEvent","prefixClass","customClass","modalClass","size"],function(e){angular.isDefined(i[e])&&(o[e]=i[e])}),o.modalClass&&(o.customClass=o.modalClass);var a=/^(false|0|)$/i;angular.forEach(["backdrop","keyboard","html","container"],function(e){angular.isDefined(i[e])&&a.test(i[e])&&(o[e]=!1)}),angular.forEach(["title","content"],function(n){i[n]&&i.$observe(n,function(r){e[n]=t.trustAsHtml(r)})}),i.bsModal&&e.$watch(i.bsModal,function(t){angular.isObject(t)?angular.extend(e,t):e.content=t},!0);var s=n(o);r.on(i.trigger||"click",s.toggle),e.$on("$destroy",function(){s&&s.destroy(),o=null,s=null})}}}]),angular.version.minor<3&&angular.version.dot<14&&angular.module("ng").factory("$$rAF",["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||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}]),angular.module("mgcrea.ngStrap.helpers.parseOptions",[]).provider("$parseOptions",function(){var e=this.defaults={regexp:/^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(.*?)(?:\s+track\s+by\s+(.*?))?$/};this.$get=["$parse","$q",function(t,n){function r(r,i){function o(e,t){return e.map(function(e,n){var r,i,o={};return o[c]=e,r=l(t,o),i=p(t,o),{label:r,value:i,index:n}})}var a={},s=angular.extend({},e,i);a.$values=[];var u,l,c,f,d,p,h;return a.init=function(){a.$match=u=r.match(s.regexp),l=t(u[2]||u[1]),c=u[4]||u[6],f=u[5],d=t(u[3]||""),p=t(u[2]?u[1]:c),h=t(u[7])},a.valuesFn=function(e,t){return n.when(h(e,t)).then(function(t){return angular.isArray(t)||(t=[]),a.$values=t.length?o(t,e):[],a.$values})},a.displayValue=function(e){var t={};return t[c]=e,l(t)},a.init(),a}return r}]}),angular.module("mgcrea.ngStrap.helpers.dimensions",[]).factory("dimensions",function(){function t(e){var t=e.ownerDocument,i=e.offsetParent||t;if(r(i,"#document"))return t.documentElement;for(;i&&!r(i,"html")&&"static"===n.css(i,"position");)i=i.offsetParent;return i||t.documentElement}var n={},r=n.nodeName=function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()};return n.css=function(t,n,r){var i;return i=t.currentStyle?t.currentStyle[n]:e.getComputedStyle?e.getComputedStyle(t)[n]:t.style[n],r===!0?parseFloat(i)||0:i},n.offset=function(t){var n=t.getBoundingClientRect(),r=t.ownerDocument;return{width:n.width||t.offsetWidth,height:n.height||t.offsetHeight,top:n.top+(e.pageYOffset||r.documentElement.scrollTop)-(r.documentElement.clientTop||0),left:n.left+(e.pageXOffset||r.documentElement.scrollLeft)-(r.documentElement.clientLeft||0)}},n.setOffset=function(e,t,r){var i,o,a,s,u,l,c,f=n.css(e,"position"),d=angular.element(e),p={};"static"===f&&(e.style.position="relative"),u=n.offset(e),a=n.css(e,"top"),l=n.css(e,"left"),c=("absolute"===f||"fixed"===f)&&(a+l).indexOf("auto")>-1,c?(i=n.position(e),s=i.top,o=i.left):(s=parseFloat(a)||0,o=parseFloat(l)||0),angular.isFunction(t)&&(t=t.call(e,r,u)),null!==t.top&&(p.top=t.top-u.top+s),null!==t.left&&(p.left=t.left-u.left+o),"using"in t?t.using.call(d,p):d.css({top:p.top+"px",left:p.left+"px"})},n.position=function(e){var i,o,a={top:0,left:0};return"fixed"===n.css(e,"position")?o=e.getBoundingClientRect():(i=t(e),o=n.offset(e),r(i,"html")||(a=n.offset(i)),a.top+=n.css(i,"borderTopWidth",!0),a.left+=n.css(i,"borderLeftWidth",!0)),{width:e.offsetWidth,height:e.offsetHeight,top:o.top-a.top-n.css(e,"marginTop",!0),left:o.left-a.left-n.css(e,"marginLeft",!0)}},n.height=function(e,t){var r=e.offsetHeight;return t?r+=n.css(e,"marginTop",!0)+n.css(e,"marginBottom",!0):r-=n.css(e,"paddingTop",!0)+n.css(e,"paddingBottom",!0)+n.css(e,"borderTopWidth",!0)+n.css(e,"borderBottomWidth",!0),r},n.width=function(e,t){var r=e.offsetWidth;return t?r+=n.css(e,"marginLeft",!0)+n.css(e,"marginRight",!0):r-=n.css(e,"paddingLeft",!0)+n.css(e,"paddingRight",!0)+n.css(e,"borderLeftWidth",!0)+n.css(e,"borderRightWidth",!0),r},n}),angular.module("mgcrea.ngStrap.helpers.debounce",[]).factory("debounce",["$timeout",function(e){return function(t,n,r){var i=null;return function(){var o=this,a=arguments,s=r&&!i;return i&&e.cancel(i),i=e(function(){i=null,r||t.apply(o,a)},n,!1),s&&t.apply(o,a),i}}}]).factory("throttle",["$timeout",function(e){
+return function(t,n,r){var i=null;return r||(r={}),function(){var o=this,a=arguments;i||(r.leading!==!1&&t.apply(o,a),i=e(function(){i=null,r.trailing!==!1&&t.apply(o,a)},n,!1))}}}]),angular.module("mgcrea.ngStrap.helpers.dateParser",[]).provider("$dateParser",["$localeProvider",function(){function e(){this.year=1970,this.month=0,this.day=1,this.hours=0,this.minutes=0,this.seconds=0,this.milliseconds=0}function t(){}function n(e){return!isNaN(parseFloat(e))&&isFinite(e)}function r(e,t){for(var n=e.length,r=t.toString().toLowerCase(),i=0;n>i;i++)if(e[i].toLowerCase()===r)return i;return-1}e.prototype.setMilliseconds=function(e){this.milliseconds=e},e.prototype.setSeconds=function(e){this.seconds=e},e.prototype.setMinutes=function(e){this.minutes=e},e.prototype.setHours=function(e){this.hours=e},e.prototype.getHours=function(){return this.hours},e.prototype.setDate=function(e){this.day=e},e.prototype.setMonth=function(e){this.month=e},e.prototype.setFullYear=function(e){this.year=e},e.prototype.fromDate=function(e){return this.year=e.getFullYear(),this.month=e.getMonth(),this.day=e.getDate(),this.hours=e.getHours(),this.minutes=e.getMinutes(),this.seconds=e.getSeconds(),this.milliseconds=e.getMilliseconds(),this},e.prototype.toDate=function(){return new Date(this.year,this.month,this.day,this.hours,this.minutes,this.seconds,this.milliseconds)};var i=e.prototype,o=this.defaults={format:"shortDate",strict:!1};this.$get=["$locale","dateFilter",function(a,s){var u=function(u){function l(e){var t=c(e);return h(t)}function c(e){var t=f(e),n=t.replace(/''/g,"\\'"),r=/('(?:\\'|.)*?')/,i=n.split(r),o=Object.keys(w),a=[];return angular.forEach(i,function(e){if(d(e))e=p(e);else for(var t=0;t<o.length;t++)e=e.split(o[t]).join("${"+t+"}");a.push(e)}),a.join("")}function f(e){return e.replace(/\\/g,"[\\\\]").replace(/-/g,"[-]").replace(/\./g,"[.]").replace(/\*/g,"[*]").replace(/\+/g,"[+]").replace(/\?/g,"[?]").replace(/\$/g,"[$]").replace(/\^/g,"[^]").replace(/\//g,"[/]").replace(/\\s/g,"[\\s]")}function d(e){return/^'.*'$/.test(e)}function p(e){return e.replace(/^'(.*)'$/,"$1")}function h(e){for(var t=Object.keys(w),n=e,r=0;r<t.length;r++)n=n.split("${"+r+"}").join("("+w[t[r]]+")");return new RegExp("^"+n+"$",["i"])}function g(e){var t=c(e);return m(t)}function m(e){for(var t,n,r,i,o=Object.keys(w),a=new RegExp("\\${(\\d+)}","g"),s=[];null!==(t=a.exec(e));)n=t[1],r=o[n],i=x[r],s.push(i);return s}var v,$,y=angular.extend({},o,u),b={},w={sss:"[0-9]{3}",ss:"[0-5][0-9]",s:y.strict?"[1-5]?[0-9]":"[0-9]|[0-5][0-9]",mm:"[0-5][0-9]",m:y.strict?"[1-5]?[0-9]":"[0-9]|[0-5][0-9]",HH:"[01][0-9]|2[0-3]",H:y.strict?"1?[0-9]|2[0-3]":"[01]?[0-9]|2[0-3]",hh:"[0][1-9]|[1][012]",h:y.strict?"[1-9]|1[012]":"0?[1-9]|1[012]",a:"AM|PM",EEEE:a.DATETIME_FORMATS.DAY.join("|"),EEE:a.DATETIME_FORMATS.SHORTDAY.join("|"),dd:"0[1-9]|[12][0-9]|3[01]",d:y.strict?"[1-9]|[1-2][0-9]|3[01]":"0?[1-9]|[1-2][0-9]|3[01]",MMMM:a.DATETIME_FORMATS.MONTH.join("|"),MMM:a.DATETIME_FORMATS.SHORTMONTH.join("|"),MM:"0[1-9]|1[012]",M:y.strict?"[1-9]|1[012]":"0?[1-9]|1[012]",yyyy:"[1]{1}[0-9]{3}|[2]{1}[0-9]{3}",yy:"[0-9]{2}",y:y.strict?"-?(0|[1-9][0-9]{0,3})":"-?0*[0-9]{1,4}"},x={sss:i.setMilliseconds,ss:i.setSeconds,s:i.setSeconds,mm:i.setMinutes,m:i.setMinutes,HH:i.setHours,H:i.setHours,hh:i.setHours,h:i.setHours,EEEE:t,EEE:t,dd:i.setDate,d:i.setDate,a:function(e){var t=this.getHours()%12;return this.setHours(e.match(/pm/i)?t+12:t)},MMMM:function(e){return this.setMonth(r(a.DATETIME_FORMATS.MONTH,e))},MMM:function(e){return this.setMonth(r(a.DATETIME_FORMATS.SHORTMONTH,e))},MM:function(e){return this.setMonth(1*e-1)},M:function(e){return this.setMonth(1*e-1)},yyyy:i.setFullYear,yy:function(e){return this.setFullYear(2e3+1*e)},y:function(e){return 50>=1*e&&2===e.length?this.setFullYear(2e3+1*e):this.setFullYear(1*e)}};return b.init=function(){b.$format=a.DATETIME_FORMATS[y.format]||y.format,v=l(b.$format),$=g(b.$format)},b.isValid=function(e){return angular.isDate(e)?!isNaN(e.getTime()):v.test(e)},b.parse=function(t,n,r,i){r&&(r=a.DATETIME_FORMATS[r]||r),angular.isDate(t)&&(t=s(t,r||b.$format,i));var o=r?l(r):v,u=r?g(r):$,c=o.exec(t);if(!c)return!1;for(var f=n&&!isNaN(n.getTime())?(new e).fromDate(n):(new e).fromDate(new Date(1970,0,1,0)),d=0;d<c.length-1;d++)u[d]&&u[d].call(f,c[d+1]);var p=f.toDate();return parseInt(f.day,10)!==p.getDate()?!1:p},b.getDateForAttribute=function(e,t){var r;if("today"===t){var i=new Date;r=new Date(i.getFullYear(),i.getMonth(),i.getDate()+("maxDate"===e?1:0),0,0,0,"minDate"===e?0:-1)}else r=angular.isString(t)&&t.match(/^".+"$/)?new Date(t.substr(1,t.length-2)):n(t)?new Date(parseInt(t,10)):angular.isString(t)&&0===t.length?"minDate"===e?-(1/0):+(1/0):new Date(t);return r},b.getTimeForAttribute=function(e,t){var r;return r="now"===t?(new Date).setFullYear(1970,0,1):angular.isString(t)&&t.match(/^".+"$/)?new Date(t.substr(1,t.length-2)).setFullYear(1970,0,1):n(t)?new Date(parseInt(t,10)).setFullYear(1970,0,1):angular.isString(t)&&0===t.length?"minTime"===e?-(1/0):+(1/0):b.parse(t,new Date(1970,0,1,0))},b.daylightSavingAdjust=function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},b.timezoneOffsetAdjust=function(e,t,n){return e?(t&&"UTC"===t&&(e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+(n?-1:1)*e.getTimezoneOffset())),e):null},b.init(),b};return u}]}]),angular.module("mgcrea.ngStrap.helpers.dateFormatter",[]).service("$dateFormatter",["$locale","dateFilter",function(e,t){function n(e){return/(h+)([:\.])?(m+)([:\.])?(s*)[ ]?(a?)/i.exec(e).slice(1)}this.getDefaultLocale=function(){return e.id},this.getDatetimeFormat=function(t){return e.DATETIME_FORMATS[t]||t},this.weekdaysShort=function(){return e.DATETIME_FORMATS.SHORTDAY},this.hoursFormat=function(e){return n(e)[0]},this.minutesFormat=function(e){return n(e)[2]},this.secondsFormat=function(e){return n(e)[4]},this.timeSeparator=function(e){return n(e)[1]},this.showSeconds=function(e){return!!n(e)[4]},this.showAM=function(e){return!!n(e)[5]},this.formatDate=function(e,n,r,i){return t(e,n,i)}}]),angular.module("mgcrea.ngStrap.core",[]).service("$bsCompiler",r),angular.module("mgcrea.ngStrap.datepicker",["mgcrea.ngStrap.helpers.dateParser","mgcrea.ngStrap.helpers.dateFormatter","mgcrea.ngStrap.tooltip"]).provider("$datepicker",function(){var e=this.defaults={animation:"am-fade",prefixClass:"datepicker",placement:"bottom-left",templateUrl:"datepicker/datepicker.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,useNative:!1,dateType:"date",dateFormat:"shortDate",timezone:null,modelDateFormat:null,dayFormat:"dd",monthFormat:"MMM",yearFormat:"yyyy",monthTitleFormat:"MMMM yyyy",yearTitleFormat:"yyyy",strictFormat:!1,autoclose:!1,minDate:-(1/0),maxDate:+(1/0),startView:0,minView:0,startWeek:0,daysOfWeekDisabled:"",iconLeft:"glyphicon glyphicon-chevron-left",iconRight:"glyphicon glyphicon-chevron-right"};this.$get=["$window","$document","$rootScope","$sce","$dateFormatter","datepickerViews","$tooltip","$timeout",function(t,n,r,i,o,a,s,u){function l(t,n,r){function i(e){e.selected=l.$isSelected(e.date)}function o(){t[0].focus()}var l=s(t,angular.extend({},e,r)),d=r.scope,p=l.$options,h=l.$scope;p.startView&&(p.startView-=p.minView);var g=a(l);l.$views=g.views;var m=g.viewDate;h.$mode=p.startView,h.$iconLeft=p.iconLeft,h.$iconRight=p.iconRight;var v=l.$views[h.$mode];h.$select=function(e){l.select(e)},h.$selectPane=function(e){l.$selectPane(e)},h.$toggleMode=function(){l.setMode((h.$mode+1)%l.$views.length)},l.update=function(e){angular.isDate(e)&&!isNaN(e.getTime())&&(l.$date=e,v.update.call(v,e)),l.$build(!0)},l.updateDisabledDates=function(e){p.disabledDateRanges=e;for(var t=0,n=h.rows.length;n>t;t++)angular.forEach(h.rows[t],l.$setDisabledEl)},l.select=function(e,t){angular.isDate(n.$dateValue)||(n.$dateValue=new Date(e)),!h.$mode||t?(n.$setViewValue(angular.copy(e)),n.$render(),p.autoclose&&!t&&u(function(){l.hide(!0)})):(angular.extend(m,{year:e.getFullYear(),month:e.getMonth(),date:e.getDate()}),l.setMode(h.$mode-1),l.$build())},l.setMode=function(e){h.$mode=e,v=l.$views[h.$mode],l.$build()},l.$build=function(e){e===!0&&v.built||(e!==!1||v.built)&&v.build.call(v)},l.$updateSelected=function(){for(var e=0,t=h.rows.length;t>e;e++)angular.forEach(h.rows[e],i)},l.$isSelected=function(e){return v.isSelected(e)},l.$setDisabledEl=function(e){e.disabled=v.isDisabled(e.date)},l.$selectPane=function(e){var t=v.steps,n=new Date(Date.UTC(m.year+(t.year||0)*e,m.month+(t.month||0)*e,1));angular.extend(m,{year:n.getUTCFullYear(),month:n.getUTCMonth(),date:n.getUTCDate()}),l.$build()},l.$onMouseDown=function(e){if(e.preventDefault(),e.stopPropagation(),f){var t=angular.element(e.target);"button"!==t[0].nodeName.toLowerCase()&&(t=t.parent()),t.triggerHandler("click")}},l.$onKeyDown=function(e){if(/(38|37|39|40|13)/.test(e.keyCode)&&!e.shiftKey&&!e.altKey){if(e.preventDefault(),e.stopPropagation(),13===e.keyCode)return void(h.$mode?h.$apply(function(){l.setMode(h.$mode-1)}):l.hide(!0));v.onKeyDown(e),d.$digest()}};var $=l.init;l.init=function(){return c&&p.useNative?(t.prop("type","date"),void t.css("-webkit-appearance","textfield")):(f&&(t.prop("type","text"),t.attr("readonly","true"),t.on("click",o)),void $())};var y=l.destroy;l.destroy=function(){c&&p.useNative&&t.off("click",o),y()};var b=l.show;l.show=function(){!f&&t.attr("readonly")||t.attr("disabled")||(b(),u(function(){l.$isShown&&(l.$element.on(f?"touchstart":"mousedown",l.$onMouseDown),p.keyboard&&t.on("keydown",l.$onKeyDown))},0,!1))};var w=l.hide;return l.hide=function(e){l.$isShown&&(l.$element.off(f?"touchstart":"mousedown",l.$onMouseDown),p.keyboard&&t.off("keydown",l.$onKeyDown),w(e))},l}var c=/(ip[ao]d|iphone|android)/gi.test(t.navigator.userAgent),f="createTouch"in t.document&&c;return e.lang||(e.lang=o.getDefaultLocale()),l.defaults=e,l}]}).directive("bsDatepicker",["$window","$parse","$q","$dateFormatter","$dateParser","$datepicker",function(e,t,n,r,i,o){var a=/(ip[ao]d|iphone|android)/gi.test(e.navigator.userAgent);return{restrict:"EAC",require:"ngModel",link:function(e,t,n,s){function u(e){return e&&e.length?e:null}function l(e){if(angular.isDate(e)){var t=isNaN(p.$options.minDate)||e.getTime()>=p.$options.minDate,n=isNaN(p.$options.maxDate)||e.getTime()<=p.$options.maxDate,r=t&&n;s.$setValidity("date",r),s.$setValidity("min",t),s.$setValidity("max",n),r&&(s.$dateValue=e)}}function c(){return!s.$dateValue||isNaN(s.$dateValue.getTime())?"":g(s.$dateValue,f.dateFormat)}var f={scope:e};angular.forEach(["template","templateUrl","controller","controllerAs","placement","container","delay","trigger","html","animation","autoclose","dateType","dateFormat","timezone","modelDateFormat","dayFormat","strictFormat","startWeek","startDate","useNative","lang","startView","minView","iconLeft","iconRight","daysOfWeekDisabled","id","prefixClass","prefixEvent"],function(e){angular.isDefined(n[e])&&(f[e]=n[e])});var d=/^(false|0|)$/i;angular.forEach(["html","container","autoclose","useNative"],function(e){angular.isDefined(n[e])&&d.test(n[e])&&(f[e]=!1)});var p=o(t,s,f);f=p.$options,a&&f.useNative&&(f.dateFormat="yyyy-MM-dd");var h=f.lang,g=function(e,t){return r.formatDate(e,t,h)},m=i({format:f.dateFormat,lang:h,strict:f.strictFormat});n.bsShow&&e.$watch(n.bsShow,function(e){p&&angular.isDefined(e)&&(angular.isString(e)&&(e=!!e.match(/true|,?(datepicker),?/i)),e===!0?p.show():p.hide())}),angular.forEach(["minDate","maxDate"],function(e){angular.isDefined(n[e])&&n.$observe(e,function(t){p.$options[e]=m.getDateForAttribute(e,t),isNaN(p.$options[e])||p.$build(!1),l(s.$dateValue)})}),angular.isDefined(n.dateFormat)&&n.$observe("dateFormat",function(e){p.$options.dateFormat=e}),e.$watch(n.ngModel,function(){p.update(s.$dateValue)},!0),angular.isDefined(n.disabledDates)&&e.$watch(n.disabledDates,function(e,t){e=u(e),t=u(t),e&&p.updateDisabledDates(e)}),s.$parsers.unshift(function(e){var t;if(!e)return s.$setValidity("date",!0),null;var n=m.parse(e,s.$dateValue);return!n||isNaN(n.getTime())?void s.$setValidity("date",!1):(l(n),"string"===f.dateType?(t=m.timezoneOffsetAdjust(n,f.timezone,!0),g(t,f.modelDateFormat||f.dateFormat)):(t=m.timezoneOffsetAdjust(s.$dateValue,f.timezone,!0),"number"===f.dateType?t.getTime():"unix"===f.dateType?t.getTime()/1e3:"iso"===f.dateType?t.toISOString():new Date(t)))}),s.$formatters.push(function(e){var t;return t=angular.isUndefined(e)||null===e?NaN:angular.isDate(e)?e:"string"===f.dateType?m.parse(e,null,f.modelDateFormat):"unix"===f.dateType?new Date(1e3*e):new Date(e),s.$dateValue=m.timezoneOffsetAdjust(t,f.timezone),c()}),s.$render=function(){t.val(c())},e.$on("$destroy",function(){p&&p.destroy(),f=null,p=null})}}}]).provider("datepickerViews",function(){function e(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n}function t(e,t){return(e%t+t)%t}this.$get=["$dateFormatter","$dateParser","$sce",function(n,r,i){return function(o){var a=o.$scope,s=o.$options,u=s.lang,l=function(e,t){return n.formatDate(e,t,u)},c=r({format:s.dateFormat,lang:u,strict:s.strictFormat}),f=n.weekdaysShort(u),d=f.slice(s.startWeek).concat(f.slice(0,s.startWeek)),p=i.trustAsHtml('<th class="dow text-center">'+d.join('</th><th class="dow text-center">')+"</th>"),h=o.$date||(s.startDate?c.getDateForAttribute("startDate",s.startDate):new Date),g={year:h.getFullYear(),month:h.getMonth(),date:h.getDate()},m=[{format:s.dayFormat,split:7,steps:{month:1},update:function(e,t){!this.built||t||e.getFullYear()!==g.year||e.getMonth()!==g.month?(angular.extend(g,{year:o.$date.getFullYear(),month:o.$date.getMonth(),date:o.$date.getDate()}),o.$build()):e.getDate()===g.date&&1!==e.getDate()||(g.date=o.$date.getDate(),o.$updateSelected())},build:function(){var n=new Date(g.year,g.month,1),r=n.getTimezoneOffset(),i=new Date(+n-864e5*t(n.getDay()-s.startWeek,7)),u=i.getTimezoneOffset(),f=c.timezoneOffsetAdjust(new Date,s.timezone).toDateString();u!==r&&(i=new Date(+i+6e4*(u-r)));for(var d,h=[],m=0;42>m;m++)d=c.daylightSavingAdjust(new Date(i.getFullYear(),i.getMonth(),i.getDate()+m)),h.push({date:d,isToday:d.toDateString()===f,label:l(d,this.format),selected:o.$date&&this.isSelected(d),muted:d.getMonth()!==g.month,disabled:this.isDisabled(d)});a.title=l(n,s.monthTitleFormat),a.showLabels=!0,a.labels=p,a.rows=e(h,this.split),this.built=!0},isSelected:function(e){return o.$date&&e.getFullYear()===o.$date.getFullYear()&&e.getMonth()===o.$date.getMonth()&&e.getDate()===o.$date.getDate()},isDisabled:function(e){var t=e.getTime();if(t<s.minDate||t>s.maxDate)return!0;if(-1!==s.daysOfWeekDisabled.indexOf(e.getDay()))return!0;if(s.disabledDateRanges)for(var n=0;n<s.disabledDateRanges.length;n++)if(t>=s.disabledDateRanges[n].start&&t<=s.disabledDateRanges[n].end)return!0;return!1},onKeyDown:function(e){if(o.$date){var t,n=o.$date.getTime();37===e.keyCode?t=new Date(n-864e5):38===e.keyCode?t=new Date(n-6048e5):39===e.keyCode?t=new Date(n+864e5):40===e.keyCode&&(t=new Date(n+6048e5)),this.isDisabled(t)||o.select(t,!0)}}},{name:"month",format:s.monthFormat,split:4,steps:{year:1},update:function(e){this.built&&e.getFullYear()===g.year?e.getMonth()!==g.month&&(angular.extend(g,{month:o.$date.getMonth(),date:o.$date.getDate()}),o.$updateSelected()):(angular.extend(g,{year:o.$date.getFullYear(),month:o.$date.getMonth(),date:o.$date.getDate()}),o.$build())},build:function(){for(var t,n=[],r=0;12>r;r++)t=new Date(g.year,r,1),n.push({date:t,label:l(t,this.format),selected:o.$isSelected(t),disabled:this.isDisabled(t)});a.title=l(t,s.yearTitleFormat),a.showLabels=!1,a.rows=e(n,this.split),this.built=!0},isSelected:function(e){return o.$date&&e.getFullYear()===o.$date.getFullYear()&&e.getMonth()===o.$date.getMonth()},isDisabled:function(e){var t=+new Date(e.getFullYear(),e.getMonth()+1,0);return t<s.minDate||e.getTime()>s.maxDate},onKeyDown:function(e){if(o.$date){var t=o.$date.getMonth(),n=new Date(o.$date);37===e.keyCode?n.setMonth(t-1):38===e.keyCode?n.setMonth(t-4):39===e.keyCode?n.setMonth(t+1):40===e.keyCode&&n.setMonth(t+4),this.isDisabled(n)||o.select(n,!0)}}},{name:"year",format:s.yearFormat,split:4,steps:{year:12},update:function(e,t){!this.built||t||parseInt(e.getFullYear()/20,10)!==parseInt(g.year/20,10)?(angular.extend(g,{year:o.$date.getFullYear(),month:o.$date.getMonth(),date:o.$date.getDate()}),o.$build()):e.getFullYear()!==g.year&&(angular.extend(g,{year:o.$date.getFullYear(),month:o.$date.getMonth(),date:o.$date.getDate()}),o.$updateSelected())},build:function(){for(var t,n=g.year-g.year%(3*this.split),r=[],i=0;12>i;i++)t=new Date(n+i,0,1),r.push({date:t,label:l(t,this.format),selected:o.$isSelected(t),disabled:this.isDisabled(t)});a.title=r[0].label+"-"+r[r.length-1].label,a.showLabels=!1,a.rows=e(r,this.split),this.built=!0},isSelected:function(e){return o.$date&&e.getFullYear()===o.$date.getFullYear()},isDisabled:function(e){var t=+new Date(e.getFullYear()+1,0,0);return t<s.minDate||e.getTime()>s.maxDate},onKeyDown:function(e){if(o.$date){var t=o.$date.getFullYear(),n=new Date(o.$date);37===e.keyCode?n.setYear(t-1):38===e.keyCode?n.setYear(t-4):39===e.keyCode?n.setYear(t+1):40===e.keyCode&&n.setYear(t+4),this.isDisabled(n)||o.select(n,!0)}}}];return{views:s.minView?Array.prototype.slice.call(m,s.minView):m,viewDate:g}}}]}),angular.module("mgcrea.ngStrap.collapse",[]).provider("$collapse",function(){var e=this.defaults={animation:"am-collapse",disallowToggle:!1,activeClass:"in",startCollapsed:!1,allowMultiple:!1},t=this.controller=function(t,n,r){function i(e){for(var t=u.$targets.$active,n=0;n<t.length;n++)e<t[n]&&(t[n]=t[n]-1),t[n]===u.$targets.length&&(t[n]=u.$targets.length-1)}function o(e){var t=u.$targets.$active;return-1!==t.indexOf(e)}function a(e){var t=u.$targets.$active.indexOf(e);-1!==t&&u.$targets.$active.splice(t,1)}function s(e){u.$options.allowMultiple||u.$targets.$active.splice(0,1),-1===u.$targets.$active.indexOf(e)&&u.$targets.$active.push(e)}var u=this;u.$options=angular.copy(e),angular.forEach(["animation","disallowToggle","activeClass","startCollapsed","allowMultiple"],function(e){angular.isDefined(r[e])&&(u.$options[e]=r[e])});var l=/^(false|0|)$/i;angular.forEach(["disallowToggle","startCollapsed","allowMultiple"],function(e){angular.isDefined(r[e])&&l.test(r[e])&&(u.$options[e]=!1)}),u.$toggles=[],u.$targets=[],u.$viewChangeListeners=[],u.$registerToggle=function(e){u.$toggles.push(e)},u.$registerTarget=function(e){u.$targets.push(e)},u.$unregisterToggle=function(e){var t=u.$toggles.indexOf(e);u.$toggles.splice(t,1)},u.$unregisterTarget=function(e){var t=u.$targets.indexOf(e);u.$targets.splice(t,1),u.$options.allowMultiple&&a(e),i(t),u.$viewChangeListeners.forEach(function(e){e()})},u.$targets.$active=u.$options.startCollapsed?[]:[0],u.$setActive=t.$setActive=function(e){angular.isArray(e)?u.$targets.$active=e:!u.$options.disallowToggle&&o(e)?a(e):s(e),u.$viewChangeListeners.forEach(function(e){e()})},u.$activeIndexes=function(){return u.$options.allowMultiple?u.$targets.$active:1===u.$targets.$active.length?u.$targets.$active[0]:-1}};this.$get=function(){var n={};return n.defaults=e,n.controller=t,n}}).directive("bsCollapse",["$window","$animate","$collapse",function(e,t,n){return{require:["?ngModel","bsCollapse"],controller:["$scope","$element","$attrs",n.controller],link:function(e,t,n,r){var i=r[0],o=r[1];i&&(o.$viewChangeListeners.push(function(){i.$setViewValue(o.$activeIndexes())}),i.$formatters.push(function(e){if(angular.isArray(e))o.$setActive(e);else{var t=o.$activeIndexes();angular.isArray(t)?-1===t.indexOf(1*e)&&o.$setActive(1*e):t!==1*e&&o.$setActive(1*e)}return e}))}}}]).directive("bsCollapseToggle",function(){return{require:["^?ngModel","^bsCollapse"],link:function(e,t,n,r){var i=r[1];t.attr("data-toggle","collapse"),i.$registerToggle(t),e.$on("$destroy",function(){i.$unregisterToggle(t)}),t.on("click",function(){if(!n.disabled){var r=n.bsCollapseToggle&&"bs-collapse-toggle"!==n.bsCollapseToggle?n.bsCollapseToggle:i.$toggles.indexOf(t);i.$setActive(1*r),e.$apply()}})}}}).directive("bsCollapseTarget",["$animate",function(e){return{require:["^?ngModel","^bsCollapse"],link:function(t,n,r,i){function o(){var t=a.$targets.indexOf(n),r=a.$activeIndexes(),i="removeClass";angular.isArray(r)?-1!==r.indexOf(t)&&(i="addClass"):t===r&&(i="addClass"),e[i](n,a.$options.activeClass)}var a=i[1];n.addClass("collapse"),a.$options.animation&&n.addClass(a.$options.animation),a.$registerTarget(n),t.$on("$destroy",function(){a.$unregisterTarget(n)}),a.$viewChangeListeners.push(function(){o()}),o()}}}]),angular.module("mgcrea.ngStrap.button",[]).provider("$button",function(){var e=this.defaults={activeClass:"active",toggleEvent:"click"};this.$get=function(){return{defaults:e}}}).directive("bsCheckboxGroup",function(){return{restrict:"A",require:"ngModel",compile:function(e,t){e.attr("data-toggle","buttons"),e.removeAttr("ng-model");var n=e[0].querySelectorAll('input[type="checkbox"]');angular.forEach(n,function(e){var n=angular.element(e);n.attr("bs-checkbox",""),n.attr("ng-model",t.ngModel+"."+n.attr("value"))})}}}).directive("bsCheckbox",["$button","$$rAF",function(e,t){var n=e.defaults,r=/^(true|false|\d+)$/;return{restrict:"A",require:"ngModel",link:function(e,i,o,a){var s=n,u="INPUT"===i[0].nodeName,l=u?i.parent():i,c=angular.isDefined(o.trueValue)?o.trueValue:!0;r.test(o.trueValue)&&(c=e.$eval(o.trueValue));var f=angular.isDefined(o.falseValue)?o.falseValue:!1;r.test(o.falseValue)&&(f=e.$eval(o.falseValue));var d="boolean"!=typeof c||"boolean"!=typeof f;d&&(a.$parsers.push(function(e){return e?c:f}),a.$formatters.push(function(e){return angular.equals(e,c)}),e.$watch(o.ngModel,function(){a.$render()})),a.$render=function(){var e=angular.equals(a.$modelValue,c);t(function(){u&&(i[0].checked=e),l.toggleClass(s.activeClass,e)})},i.bind(s.toggleEvent,function(){e.$apply(function(){u||a.$setViewValue(!l.hasClass("active")),d||a.$render()})})}}}]).directive("bsRadioGroup",function(){return{restrict:"A",require:"ngModel",compile:function(e,t){e.attr("data-toggle","buttons"),e.removeAttr("ng-model");var n=e[0].querySelectorAll('input[type="radio"]');angular.forEach(n,function(e){angular.element(e).attr("bs-radio",""),angular.element(e).attr("ng-model",t.ngModel)})}}}).directive("bsRadio",["$button","$$rAF",function(e,t){var n=e.defaults,r=/^(true|false|\d+)$/;return{restrict:"A",require:"ngModel",link:function(e,i,o,a){var s,u=n,l="INPUT"===i[0].nodeName,c=l?i.parent():i;o.$observe("value",function(t){s="boolean"!=typeof t&&r.test(t)?e.$eval(t):t,a.$render()}),a.$render=function(){var e=angular.equals(a.$modelValue,s);t(function(){l&&(i[0].checked=e),c.toggleClass(u.activeClass,e)})},i.bind(u.toggleEvent,function(){e.$apply(function(){a.$setViewValue(s),a.$render()})})}}}]),angular.module("mgcrea.ngStrap.alert",["mgcrea.ngStrap.modal"]).provider("$alert",function(){var e=this.defaults={animation:"am-fade",prefixClass:"alert",prefixEvent:"alert",placement:null,templateUrl:"alert/alert.tpl.html",container:!1,element:null,backdrop:!1,keyboard:!0,show:!0,duration:!1,type:!1,dismissable:!0};this.$get=["$modal","$timeout",function(t,n){function r(r){var i={},o=angular.extend({},e,r);i=t(o),i.$scope.dismissable=!!o.dismissable,o.type&&(i.$scope.type=o.type);var a=i.show;return o.duration&&(i.show=function(){a(),n(function(){i.hide()},1e3*o.duration)}),i}return r}]}).directive("bsAlert",["$window","$sce","$alert",function(e,t,n){return{restrict:"EAC",scope:!0,link:function(e,r,i){var o={scope:e,element:r,show:!1};angular.forEach(["template","templateUrl","controller","controllerAs","placement","keyboard","html","container","animation","duration","dismissable"],function(e){angular.isDefined(i[e])&&(o[e]=i[e])});var a=/^(false|0|)$/i;angular.forEach(["keyboard","html","container","dismissable"],function(e){angular.isDefined(i[e])&&a.test(i[e])&&(o[e]=!1)}),e.hasOwnProperty("title")||(e.title=""),angular.forEach(["title","content","type"],function(n){i[n]&&i.$observe(n,function(r){e[n]=t.trustAsHtml(r)})}),i.bsAlert&&e.$watch(i.bsAlert,function(t){angular.isObject(t)?angular.extend(e,t):e.content=t},!0);var s=n(o);r.on(i.trigger||"click",s.toggle),e.$on("$destroy",function(){s&&s.destroy(),o=null,s=null})}}}]),angular.module("mgcrea.ngStrap.aside",["mgcrea.ngStrap.modal"]).provider("$aside",function(){var e=this.defaults={animation:"am-fade-and-slide-right",prefixClass:"aside",prefixEvent:"aside",placement:"right",templateUrl:"aside/aside.tpl.html",contentTemplate:!1,container:!1,element:null,backdrop:!0,keyboard:!0,html:!1,show:!0};this.$get=["$modal",function(t){function n(n){var r={},i=angular.extend({},e,n);return r=t(i)}return n}]}).directive("bsAside",["$window","$sce","$aside",function(e,t,n){return{restrict:"EAC",scope:!0,link:function(e,r,i){var o={scope:e,element:r,show:!1};angular.forEach(["template","templateUrl","controller","controllerAs","contentTemplate","placement","backdrop","keyboard","html","container","animation"],function(e){angular.isDefined(i[e])&&(o[e]=i[e])});var a=/^(false|0|)$/i;angular.forEach(["backdrop","keyboard","html","container"],function(e){angular.isDefined(i[e])&&a.test(i[e])&&(o[e]=!1)}),angular.forEach(["title","content"],function(n){i[n]&&i.$observe(n,function(r){e[n]=t.trustAsHtml(r)})}),i.bsAside&&e.$watch(i.bsAside,function(t){angular.isObject(t)?angular.extend(e,t):e.content=t},!0);var s=n(o);r.on(i.trigger||"click",s.toggle),e.$on("$destroy",function(){s&&s.destroy(),o=null,s=null})}}}]),angular.module("mgcrea.ngStrap.affix",["mgcrea.ngStrap.helpers.dimensions","mgcrea.ngStrap.helpers.debounce"]).provider("$affix",function(){var e=this.defaults={offsetTop:"auto",inlineStyles:!0};this.$get=["$window","debounce","dimensions",function(t,n,r){function i(i,s){function u(e,t,n){var r=l(),i=c();return $>=r?"top":null!==e&&r+e<=t.top?"middle":null!==y&&t.top+n+m>=i-y?"bottom":"middle"}function l(){return p[0]===t?t.pageYOffset:p[0].scrollTop}function c(){return p[0]===t?t.document.body.scrollHeight:p[0].scrollHeight}var f={},d=angular.extend({},e,s),p=d.target,h="affix affix-top affix-bottom",g=!1,m=0,v=0,$=0,y=0,b=null,w=null,x=i.parent();if(d.offsetParent)if(d.offsetParent.match(/^\d+$/))for(var S=0;S<1*d.offsetParent-1;S++)x=x.parent();else x=angular.element(d.offsetParent);return f.init=function(){this.$parseOffsets(),v=r.offset(i[0]).top+m,g=!i[0].style.width,p.on("scroll",this.checkPosition),p.on("click",this.checkPositionWithEventLoop),a.on("resize",this.$debouncedOnResize),this.checkPosition(),this.checkPositionWithEventLoop()},f.destroy=function(){p.off("scroll",this.checkPosition),p.off("click",this.checkPositionWithEventLoop),a.off("resize",this.$debouncedOnResize)},f.checkPositionWithEventLoop=function(){setTimeout(f.checkPosition,1)},f.checkPosition=function(){var e=l(),t=r.offset(i[0]),n=r.height(i[0]),a=u(w,t,n);b!==a&&(b=a,"top"===a?(w=null,g&&i.css("width",""),d.inlineStyles&&(i.css("position",d.offsetParent?"":"relative"),i.css("top",""))):"bottom"===a?(w=d.offsetUnpin?-(1*d.offsetUnpin):t.top-e,g&&i.css("width",""),d.inlineStyles&&(i.css("position",d.offsetParent?"":"relative"),i.css("top",d.offsetParent?"":o[0].offsetHeight-y-n-v+"px"))):(w=null,g&&i.css("width",i[0].offsetWidth+"px"),d.inlineStyles&&(i.css("position","fixed"),i.css("top",m+"px"))),i.removeClass(h).addClass("affix"+("middle"!==a?"-"+a:"")))},f.$onResize=function(){f.$parseOffsets(),f.checkPosition()},f.$debouncedOnResize=n(f.$onResize,50),f.$parseOffsets=function(){var e=i.css("position");d.inlineStyles&&i.css("position",d.offsetParent?"":"relative"),d.offsetTop&&("auto"===d.offsetTop&&(d.offsetTop="+0"),d.offsetTop.match(/^[-+]\d+$/)?(m=1*-d.offsetTop,$=d.offsetParent?r.offset(x[0]).top+1*d.offsetTop:r.offset(i[0]).top-r.css(i[0],"marginTop",!0)+1*d.offsetTop):$=1*d.offsetTop),d.offsetBottom&&(y=d.offsetParent&&d.offsetBottom.match(/^[-+]\d+$/)?c()-(r.offset(x[0]).top+r.height(x[0]))+1*d.offsetBottom+1:1*d.offsetBottom),d.inlineStyles&&i.css("position",e)},f.init(),f}var o=angular.element(t.document.body),a=angular.element(t);return i}]}).directive("bsAffix",["$affix","$window",function(e,t){return{restrict:"EAC",require:"^?bsAffixTarget",link:function(n,r,i,o){var a={scope:n,target:o?o.$element:angular.element(t)};angular.forEach(["offsetTop","offsetBottom","offsetParent","offsetUnpin","inlineStyles"],function(e){if(angular.isDefined(i[e])){var t=i[e];/true/i.test(t)&&(t=!0),/false/i.test(t)&&(t=!1),a[e]=t}});var s=e(r,a);n.$on("$destroy",function(){s&&s.destroy(),a=null,s=null})}}}]).directive("bsAffixTarget",function(){return{controller:["$element",function(e){this.$element=e}]}}),angular.module("mgcrea.ngStrap",["mgcrea.ngStrap.modal","mgcrea.ngStrap.aside","mgcrea.ngStrap.alert","mgcrea.ngStrap.button","mgcrea.ngStrap.select","mgcrea.ngStrap.datepicker","mgcrea.ngStrap.timepicker","mgcrea.ngStrap.navbar","mgcrea.ngStrap.tooltip","mgcrea.ngStrap.popover","mgcrea.ngStrap.dropdown","mgcrea.ngStrap.typeahead","mgcrea.ngStrap.scrollspy","mgcrea.ngStrap.affix","mgcrea.ngStrap.tab","mgcrea.ngStrap.collapse"])}(window,document),function(){"use strict";angular.module("mgcrea.ngStrap.aside").run(["$templateCache",function(e){e.put("aside/aside.tpl.html",'<div class="aside" tabindex="-1" role="dialog"><div class="aside-dialog"><div class="aside-content"><div class="aside-header" ng-show="title"><button type="button" class="close" ng-click="$hide()">×</button><h4 class="aside-title" ng-bind="title"></h4></div><div class="aside-body" ng-bind="content"></div><div class="aside-footer"><button type="button" class="btn btn-default" ng-click="$hide()">Close</button></div></div></div></div>')}]),angular.module("mgcrea.ngStrap.alert").run(["$templateCache",function(e){e.put("alert/alert.tpl.html",'<div class="alert" ng-class="[type ? \'alert-\' + type : null]"><button type="button" class="close" ng-if="dismissable" ng-click="$hide()">×</button> <strong ng-bind="title"></strong> <span ng-bind-html="content"></span></div>')}]),angular.module("mgcrea.ngStrap.datepicker").run(["$templateCache",function(e){e.put("datepicker/datepicker.tpl.html",'<div class="dropdown-menu datepicker" ng-class="\'datepicker-mode-\' + $mode" style="max-width: 320px"><table style="table-layout: fixed; height: 100%; width: 100%"><thead><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$selectPane(-1)"><i class="{{$iconLeft}}"></i></button></th><th colspan="{{ rows[0].length - 2 }}"><button tabindex="-1" type="button" class="btn btn-default btn-block text-strong" ng-click="$toggleMode()"><strong style="text-transform: capitalize" ng-bind="title"></strong></button></th><th><button tabindex="-1" type="button" class="btn btn-default pull-right" ng-click="$selectPane(+1)"><i class="{{$iconRight}}"></i></button></th></tr><tr ng-if="showLabels" ng-bind-html="labels"></tr></thead><tbody><tr ng-repeat="(i, row) in rows" height="{{ 100 / rows.length }}%"><td class="text-center" ng-repeat="(j, el) in row"><button tabindex="-1" type="button" class="btn btn-default" style="width: 100%" ng-class="{\'btn-primary\': el.selected, \'btn-info btn-today\': el.isToday && !el.selected}" ng-click="$select(el.date)" ng-disabled="el.disabled"><span ng-class="{\'text-muted\': el.muted}" ng-bind="el.label"></span></button></td></tr></tbody></table></div>')}]),angular.module("mgcrea.ngStrap.modal").run(["$templateCache",function(e){e.put("modal/modal.tpl.html",'<div class="modal" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-header" ng-show="title"><button type="button" class="close" aria-label="Close" ng-click="$hide()"><span aria-hidden="true">×</span></button><h4 class="modal-title" ng-bind="title"></h4></div><div class="modal-body" ng-bind="content"></div><div class="modal-footer"><button type="button" class="btn btn-default" ng-click="$hide()">Close</button></div></div></div></div>')}]),angular.module("mgcrea.ngStrap.dropdown").run(["$templateCache",function(e){e.put("dropdown/dropdown.tpl.html",'<ul tabindex="-1" class="dropdown-menu" role="menu" ng-show="content && content.length"><li role="presentation" ng-class="{divider: item.divider, active: item.active}" ng-repeat="item in content"><a role="menuitem" tabindex="-1" ng-href="{{item.href}}" ng-if="!item.divider && item.href" target="{{item.target || \'\'}}" ng-bind="item.text"></a> <a role="menuitem" tabindex="-1" href="javascript:void(0)" ng-if="!item.divider && item.click" ng-click="$eval(item.click);$hide()" ng-bind="item.text"></a></li></ul>')}]),angular.module("mgcrea.ngStrap.popover").run(["$templateCache",function(e){e.put("popover/popover.tpl.html",'<div class="popover" tabindex="-1"><div class="arrow"></div><h3 class="popover-title" ng-bind="title" ng-show="title"></h3><div class="popover-content" ng-bind="content"></div></div>');
+}]),angular.module("mgcrea.ngStrap.select").run(["$templateCache",function(e){e.put("select/select.tpl.html",'<ul tabindex="-1" class="select dropdown-menu" ng-show="$isVisible()" role="select"><li ng-if="$showAllNoneButtons"><div class="btn-group" style="margin-bottom: 5px; margin-left: 5px"><button type="button" class="btn btn-default btn-xs" ng-click="$selectAll()">{{$allText}}</button> <button type="button" class="btn btn-default btn-xs" ng-click="$selectNone()">{{$noneText}}</button></div></li><li role="presentation" ng-repeat="match in $matches" ng-class="{active: $isActive($index)}"><a style="cursor: default" role="menuitem" tabindex="-1" ng-click="$select($index, $event)"><i class="{{$iconCheckmark}} pull-right" ng-if="$isMultiple && $isActive($index)"></i> <span ng-bind="match.label"></span></a></li></ul>')}]),angular.module("mgcrea.ngStrap.tab").run(["$templateCache",function(e){e.put("tab/tab.tpl.html",'<ul class="nav" ng-class="$navClass" role="tablist"><li role="presentation" ng-repeat="$pane in $panes track by $index" ng-class="[ $isActive($pane, $index) ? $activeClass : \'\', $pane.disabled ? \'disabled\' : \'\' ]"><a role="tab" data-toggle="tab" ng-click="!$pane.disabled && $setActive($pane.name || $index)" data-index="{{ $index }}" ng-bind-html="$pane.title" aria-controls="$pane.title"></a></li></ul><div ng-transclude class="tab-content"></div>')}]),angular.module("mgcrea.ngStrap.timepicker").run(["$templateCache",function(e){e.put("timepicker/timepicker.tpl.html",'<div class="dropdown-menu timepicker" style="min-width: 0px;width: auto"><table height="100%"><thead><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 0)"><i class="{{ $iconUp }}"></i></button></th><th> </th><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 1)"><i class="{{ $iconUp }}"></i></button></th><th ng-if="showSeconds"> </th><th ng-if="showSeconds"><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 2)"><i class="{{ $iconUp }}"></i></button></th></tr></thead><tbody><tr ng-repeat="(i, row) in rows"><td class="text-center"><button tabindex="-1" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[0].selected}" ng-click="$select(row[0].date, 0)" ng-disabled="row[0].disabled"><span ng-class="{\'text-muted\': row[0].muted}" ng-bind="row[0].label"></span></button></td><td><span ng-bind="i == midIndex ? timeSeparator : \' \'"></span></td><td class="text-center"><button tabindex="-1" ng-if="row[1].date" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[1].selected}" ng-click="$select(row[1].date, 1)" ng-disabled="row[1].disabled"><span ng-class="{\'text-muted\': row[1].muted}" ng-bind="row[1].label"></span></button></td><td ng-if="showSeconds"><span ng-bind="i == midIndex ? timeSeparator : \' \'"></span></td><td ng-if="showSeconds" class="text-center"><button tabindex="-1" ng-if="row[2].date" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[2].selected}" ng-click="$select(row[2].date, 2)" ng-disabled="row[2].disabled"><span ng-class="{\'text-muted\': row[2].muted}" ng-bind="row[2].label"></span></button></td><td ng-if="showAM"> </td><td ng-if="showAM"><button tabindex="-1" ng-show="i == midIndex - !isAM * 1" style="width: 100%" type="button" ng-class="{\'btn-primary\': !!isAM}" class="btn btn-default" ng-click="$switchMeridian()" ng-disabled="el.disabled">AM</button> <button tabindex="-1" ng-show="i == midIndex + 1 - !isAM * 1" style="width: 100%" type="button" ng-class="{\'btn-primary\': !isAM}" class="btn btn-default" ng-click="$switchMeridian()" ng-disabled="el.disabled">PM</button></td></tr></tbody><tfoot><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 0)"><i class="{{ $iconDown }}"></i></button></th><th> </th><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 1)"><i class="{{ $iconDown }}"></i></button></th><th ng-if="showSeconds"> </th><th ng-if="showSeconds"><button ng-if="showSeconds" tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 2)"><i class="{{ $iconDown }}"></i></button></th></tr></tfoot></table></div>')}]),angular.module("mgcrea.ngStrap.typeahead").run(["$templateCache",function(e){e.put("typeahead/typeahead.tpl.html",'<ul tabindex="-1" class="typeahead dropdown-menu" ng-show="$isVisible()" role="select"><li role="presentation" ng-repeat="match in $matches" ng-class="{active: $index == $activeIndex}"><a role="menuitem" tabindex="-1" ng-click="$select($index, $event)" ng-bind="match.label"></a></li></ul>')}]),angular.module("mgcrea.ngStrap.tooltip").run(["$templateCache",function(e){e.put("tooltip/tooltip.tpl.html",'<div class="tooltip in" ng-show="title"><div class="tooltip-arrow"></div><div class="tooltip-inner" ng-bind="title"></div></div>')}])}(window,document),!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.0.4",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){a&&r._chunkSize&&!r._finished&&r._file?(i({loaded:r._end,total:r._file&&r._file.size,config:r,type:"progress"}),o.upload(r,!0)):(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,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=function(t){return function(){t&&t.apply(c,arguments),e.apply(c,arguments)}}(r.xhrFn),c},o.promisesCount++,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)}function u(){e._chunkSize=o.translateScalars(e.resumeChunkSize),e._chunkSize=e._chunkSize?parseInt(e._chunkSize.toString()):null,e.headers=e.headers||{},e.headers["Content-Type"]=void 0,e.transformRequest=e.transformRequest?angular.isArray(e.transformRequest)?e.transformRequest:[e.transformRequest]:[],e.transformRequest.push(function(t){var n,r=new window.FormData;t=t||e.fields||{},e.file&&(t.file=e.file);for(n in t)if(t.hasOwnProperty(n)){var i=t[n];e.formDataAppender?e.formDataAppender(r,n,i):s(r,i,n)}return r})}return t||(e=i(e)),e._isDigested||(e._isDigested=!0,u()),r(e)},this.http=function(t){return t=i(t),t.transformRequest=t.transformRequest||function(t){return window.ArrayBuffer&&t instanceof window.ArrayBuffer||t instanceof window.Blob?t:e.defaults.transformRequest[0].apply(this,arguments)},t._chunkSize=o.translateScalars(t.resumeChunkSize),t._chunkSize=t._chunkSize?parseInt(t._chunkSize.toString()):null,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),n=e.headers("content-type")||"image/WebP",i=new window.Blob([t],{type:n});r.resolve(i)},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){var i=u.attrGetter("ngfResize",t,n);if(!i||!u.isResizeSupported()||!e.length)return u.emptyPromise();if(!(i instanceof Function))return s(i,e,t,n);var o=r.defer();i(e).then(function(r){s(r,e,t,n).then(function(e){o.resolve(e)},function(e){o.reject(e)})},function(e){o.reject(e)})}function s(e,t,n,i){function o(r,o){if(0===r.type.indexOf("image")){if(e.pattern&&!u.validatePattern(r,e.pattern))return;var s=u.resize(r,e.width,e.height,e.quality,e.type,e.ratio,e.centerCrop,function(e,t){return u.attrGetter("ngfResizeIf",n,i,{$width:e,$height:t,$file:r})},e.restoreExif!==!1);a.push(s),s.then(function(e){t.splice(o,1,e)},function(e){r.$error="resize",r.$errorParam=(e?(e.message?e.message:e)+": ":"")+(r&&r.name)})}}for(var a=[u.emptyPromise()],s=0;s<t.length;s++)o(t[s],s);return r.all(a)}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(a){if(t.search(/min|max|pattern/i))return o;throw a}},u.shouldUpdateOn=function(e,t,n){var r=u.attrGetter("ngModelOptions",t,n);return r&&r.updateOn?r.updateOn.split(" ").indexOf(e)>-1:!0},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 p=o&&o.length?o[0]:null,h=a&&a.length?a[0]:null;n&&(u.applyModelValidation(n,o),n.$setViewValue(d?p:o)),s&&e(s)(i,{$files:o,$file:p,$newFiles:l,$duplicateFiles:f,$invalidFiles:a,$invalidFile:h,$event:c});var g=u.attrGetter("ngfModelInvalid",r);g&&t(function(){e(g).assign(i,d?h:a)}),t(function(){})}function p(){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<$.length;n++)if(e(t,$[n]))return!0;for(n=0;n<y.length;n++)if(e(t,y[n]))return!0;return!1}if(l){v=[],b=[];for(var n=0;n<l.length;n++)t(l[n])?b.push(l[n]):v.push(l[n])}}function h(e){return angular.isArray(e)?e:[e]}function g(){x=[],w=[],angular.forEach(v,function(e){e.$error?w.push(e):x.push(e)})}function m(){function e(){t(function(){d(S?$.concat(x):x,S?y.concat(w):w,l,b,C)},k&&k.debounce?k.debounce.change||k.debounce:0)}a(_?v:x,r,i).then(function(){_?u.validate(v,$.length,n,r,i).then(function(){g(),e()}):e()},function(e){throw"Could not resize files "+e})}var v,$,y,b=[],w=[],x=[];$=r.$$ngfPrevValidFiles||[],y=r.$$ngfPrevInvalidFiles||[],n&&n.$modelValue&&($=h(n.$modelValue));var S=u.attrGetter("ngfKeep",r,i);v=(l||[]).slice(0),("distinct"===S||u.attrGetter("ngfKeepDistinct",r,i)===!0)&&p(r,i);var C=!S&&!u.attrGetter("ngfMultiple",r,i)&&!u.attrGetter("multiple",r);if(!S||v.length){u.attrGetter("ngfBeforeModelChange",r,i,{$files:l,$file:l&&l.length?l[0]:null,$newFiles:v,$duplicateFiles:b,$event:c});var _=u.attrGetter("ngfValidateAfterResize",r,i),k=u.attrGetter("ngModelOptions",r,i);u.validate(v,$.length,n,r,i).then(function(){f?d(v,[],l,b,C):(k&&k.allowInvalid||_?x=v:g(),u.attrGetter("ngfFixOrientation",r,i)&&u.isExifSupported()?o(x,r,i).then(function(){m()}):m())})}},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 y("ngfChange")||y("ngfSelect")}function d(t){if(l.shouldUpdateOn("change",n,e)){for(var i=t.__files_||t.target&&t.target.files,o=[],a=0;a<i.length;a++)o.push(i[a]);l.updateModel(r,n,e,f(),o.length?o:null,t)}}function p(e){if(t!==e)for(var n=0;n<t[0].attributes.length;n++){var r=t[0].attributes[n];"type"!==r.name&&"class"!==r.name&&"style"!==r.name&&((null==r.value||""===r.value)&&("required"===r.name&&(r.value="required"),"multiple"===r.name&&(r.value="multiple")),e.attr(r.name,"id"===r.name?"ngf-"+r.value:r.value))}}function h(){if(c())return t;var e=angular.element('<input type="file">');p(e);var n=angular.element("<label>upload</label>");return n.css("visibility","hidden").css("position","absolute").css("overflow","hidden").css("width","0px").css("height","0px").css("border","none").css("margin","0px").css("padding","0px").attr("tabindex","-1"),a.push({el:t,ref:n}),document.body.appendChild(n.append(e)[0]),e}function g(n){if(t.attr("disabled"))return!1;if(!y("ngfSelectDisabled",e)){var r=m(n);if(null!=r)return r;v(n);try{c()||document.body.contains(x[0])||(a.push({el:t,ref:x.parent()}),document.body.appendChild(x.parent()[0]),x.bind("change",d))}catch(o){}return i(navigator.userAgent)?setTimeout(function(){x[0].click()},0):x[0].click(),!1}}function m(e){var t=e.changedTouches||e.originalEvent&&e.originalEvent.changedTouches;if("touchstart"===e.type)return w=t?t[0].clientY:0,!0;if(e.stopPropagation(),e.preventDefault(),"touchend"===e.type){var n=t?t[0].clientY:0;if(Math.abs(n-w)>20)return!1}}function v(t){l.shouldUpdateOn("click",n,e)&&x.val()&&(x.val(null),l.updateModel(r,n,e,f(),null,t,!0))}function $(e){if(x&&!x.attr("__ngf_ie10_Fix_")){if(!x[0].parentNode)return void(x=null);e.preventDefault(),e.stopPropagation(),x.unbind("click");var t=x.clone();return x.replaceWith(t),x=t,x.attr("__ngf_ie10_Fix_","true"),x.bind("change",d),x.bind("click",$),x[0].click(),!1}x.removeAttr("__ngf_ie10_Fix_")}var y=function(e,t){return l.attrGetter(e,n,t)};l.registerModelChangeValidator(r,n,e);var b=[];b.push(e.$watch(y("ngfMultiple"),function(){x.attr("multiple",y("ngfMultiple",e))})),b.push(e.$watch(y("ngfCapture"),function(){x.attr("capture",y("ngfCapture",e))})),b.push(e.$watch(y("ngfAccept"),function(){x.attr("accept",y("ngfAccept",e))})),n.$observe("accept",function(){x.attr("accept",y("accept"))}),b.push(function(){n.$$observers&&delete n.$$observers.accept});var w=0,x=t;c()||(x=h()),x.bind("change",d),c()?t.bind("click",v):t.bind("click touchstart touchend",g),-1!==navigator.appVersion.indexOf("MSIE 10")&&x.bind("click",$),r&&r.$formatters.push(function(e){return(null==e||0===e.length)&&x.val()&&x.val(null),e}),e.$on("$destroy",function(){c()||x.parent().remove(),angular.forEach(b,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,x,d)}var a=[];return{restrict:"AEC",require:"?ngModel",link:function(i,a,s,u){o(i,a,s,u,e,t,n,r)}}}]),function(){function e(e){return"img"===e.tagName.toLowerCase()?"image":"audio"===e.tagName.toLowerCase()?"audio":"video"===e.tagName.toLowerCase()?"video":/./}function t(t,n,r,i,o,a,s,u){function l(e){var a=t.attrGetter("ngfNoObjectUrl",o,r);t.dataUrl(e,a)["finally"](function(){n(function(){var t=(a?e.$ngfDataUrl:e.$ngfBlobUrl)||e.$ngfDataUrl;u?i.css("background-image","url('"+(t||"")+"')"):i.attr("src",t),t?i.removeClass("ng-hide"):i.addClass("ng-hide")})})}n(function(){var n=r.$watch(o[a],function(n){var r=s;if("ngfThumbnail"===a&&(r||(r={width:i[0].clientWidth,height:i[0].clientHeight}),0===r.width&&window.getComputedStyle)){var o=getComputedStyle(i[0]);r={width:parseInt(o.width.slice(0,-2)),height:parseInt(o.height.slice(0,-2))}}return angular.isString(n)?(i.removeClass("ng-hide"),u?i.css("background-image","url('"+n+"')"):i.attr("src",n)):void(!n||!n.type||0!==n.type.search(e(i[0]))||u&&0!==n.type.indexOf("image")?i.addClass("ng-hide"):r&&t.isResizeSupported()?t.resize(n,r.width,r.height,r.quality).then(function(e){l(e)},function(e){throw e}):l(n))});r.$on("$destroy",function(){n()})})}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++,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(s){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 u=new FileReader;u.onload=function(n){t(function(){e.$ngfDataUrl=n.target.result,a.resolve(n.target.result,e),t(function(){delete e.$ngfDataUrl},1e3)})},u.onerror=function(){t(function(){e.$ngfDataUrl="",a.reject()})},u.readAsDataURL(e)}}else t(function(){e[i?"$ngfDataUrl":"$ngfBlobUrl"]="",a.reject()})}),o=i?e.$$ngfDataUrlPromise=a.promise:e.$$ngfBlobUrlPromise=a.promise,o["finally"](function(){delete e[i?"$$ngfDataUrlPromise":"$$ngfBlobUrlPromise"]}),o},r}]),ngFileUpload.directive("ngfSrc",["Upload","$timeout",function(e,n){return{restrict:"AE",link:function(r,i,o){t(e,n,r,i,o,"ngfSrc",e.attrGetter("ngfResize",o,r),!1)}}}]),ngFileUpload.directive("ngfBackground",["Upload","$timeout",function(e,n){return{restrict:"AE",link:function(r,i,o){t(e,n,r,i,o,"ngfBackground",e.attrGetter("ngfResize",o,r),!0)}}}]),ngFileUpload.directive("ngfThumbnail",["Upload","$timeout",function(e,n){return{restrict:"AE",link:function(r,i,o){var a=e.attrGetter("ngfSize",o,r);t(e,n,r,i,o,"ngfThumbnail",a,e.attrGetter("ngfAsBackground",o,r))}}}]),ngFileUpload.config(["$compileProvider",function(e){e.imgSrcSanitizationWhitelist&&e.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|local|file|data|blob):/),e.aHrefSanitizationWhitelist&&e.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|local|file|data|blob):/)}]),ngFileUpload.filter("ngfDataUrl",["UploadDataUrl","$sce",function(e,t){return function(n,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){function r(e){var t="",n=[];if(e.length>2&&"/"===e[0]&&"/"===e[e.length-1])t=e.substring(1,e.length-1);else{var i=e.split(",");if(i.length>1)for(var o=0;o<i.length;o++){var a=r(i[o]);a.regexp?(t+="("+a.regexp+")",o<i.length-1&&(t+="|")):n=n.concat(a.excludes)}else 0===e.indexOf("!")?n.push("^((?!"+r(e.substring(1)).regexp+").)*$"):(0===e.indexOf(".")&&(e="*"+e),t="^"+e.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")+"$",t=t.replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:t,excludes:n}}function i(e,t){null==t||e.$dirty||(e.$setDirty?e.$setDirty():e.$dirty=!0)}var o=e;return o.validatePattern=function(e,t){if(!t)return!0;var n=r(t),i=!0;if(n.regexp&&n.regexp.length){var o=new RegExp(n.regexp,"i");i=null!=e.type&&o.test(e.type)||null!=e.name&&o.test(e.name)}for(var a=n.excludes.length;a--;){var s=new RegExp(n.excludes[a],"i");i=i&&(null==e.type||s.test(e.type))&&(null==e.name||s.test(e.name))}return i},o.ratioToFloat=function(e){var t=e.toString(),n=t.search(/[x:]/i);return t=n>-1?parseFloat(t.substring(0,n))/parseFloat(t.substring(n+1)):parseFloat(t)},o.registerModelChangeValidator=function(e,t,n){e&&e.$formatters.push(function(r){e.$dirty&&(r&&!angular.isArray(r)&&(r=[r]),o.validate(r,0,e,t,n).then(function(){o.applyModelValidation(e,r)}))})},o.applyModelValidation=function(e,t){i(e,t),angular.forEach(e.$ngfValidations,function(t){e.$setValidity(t.name,t.valid)})},o.getValidationAttr=function(e,t,n,r,i){var a="ngf"+n[0].toUpperCase()+n.substr(1),s=o.attrGetter(a,e,t,{$file:i});if(null==s&&(s=o.attrGetter("ngfValidate",e,t,{$file:i}))){var u=(r||n).split(".");s=s[u[0]],u.length>1&&(s=s&&s[u[1]])}return s},o.validate=function(e,n,r,i,a){function s(t,n,s){if(e){for(var u=e.length,l=null;u--;){var c=e[u];if(c){var f=o.getValidationAttr(i,a,t,n,c);null!=f&&(s(c,f,u)||(c.$error=t,(c.$errorMessages=c.$errorMessages||{})[t]=!0,c.$errorParam=f,e.splice(u,1),l=!1))}}null!==l&&r.$ngfValidations.push({name:t,valid:l})}}function u(n,s,u,c,f){function d(e,t,r){null!=r?c(t,r).then(function(i){f(i,r)?e.resolve():(t.$error=n,(t.$errorMessages=t.$errorMessages||{})[n]=!0,t.$errorParam=r,e.reject())},function(){l("ngfValidateForce",{$file:t})?(t.$error=n,(t.$errorMessages=t.$errorMessages||{})[n]=!0,t.$errorParam=r,e.reject()):e.resolve()}):e.resolve()}var p=[o.emptyPromise()];return e?(e=void 0===e.length?[e]:e,angular.forEach(e,function(e){var r=t.defer();return p.push(r.promise),!u||null!=e.type&&0===e.type.search(u)?void("dimensions"===n&&null!=o.attrGetter("ngfDimensions",i)?o.imageDimensions(e).then(function(t){d(r,e,l("ngfDimensions",{$file:e,$width:t.width,$height:t.height}))},function(){r.reject()}):"duration"===n&&null!=o.attrGetter("ngfDuration",i)?o.mediaDuration(e).then(function(t){d(r,e,l("ngfDuration",{$file:e,$duration:t}))},function(){r.reject()}):d(r,e,o.getValidationAttr(i,a,n,s,e))):void r.resolve()}),t.all(p).then(function(){r.$ngfValidations.push({name:n,valid:!0})},function(){r.$ngfValidations.push({name:n,valid:!1})})):void 0}r=r||{},r.$ngfValidations=r.$ngfValidations||[],angular.forEach(r.$ngfValidations,function(e){e.valid=!0});var l=function(e,t){return o.attrGetter(e,i,a,t)};if(null==e||0===e.length)return o.emptyPromise(r);e=void 0===e.length?[e]:e.slice(0),s("maxFiles",null,function(e,t,r){return t>n+r}),s("pattern",null,o.validatePattern),s("minSize","size.min",function(e,t){return e.size+.1>=o.translateScalars(t)}),s("maxSize","size.max",function(e,t){return e.size-.1<=o.translateScalars(t)});var c=0;if(s("maxTotalSize",null,function(t,n){return c+=t.size,c>o.translateScalars(n)?(e.splice(0,e.length),!1):!0}),s("validateFn",null,function(e,t){return t===!0||null===t||""===t}),!e.length)return o.emptyPromise(r,r.$ngfValidations);var f=t.defer(),d=[];return d.push(o.happyPromise(u("maxHeight","height.max",/image/,this.imageDimensions,function(e,t){return e.height<=t}))),d.push(o.happyPromise(u("minHeight","height.min",/image/,this.imageDimensions,function(e,t){return e.height>=t}))),d.push(o.happyPromise(u("maxWidth","width.max",/image/,this.imageDimensions,function(e,t){return e.width<=t}))),d.push(o.happyPromise(u("minWidth","width.min",/image/,this.imageDimensions,function(e,t){return e.width>=t}))),d.push(o.happyPromise(u("dimensions",null,/image/,function(e,t){return o.emptyPromise(t)},function(e){return e}))),d.push(o.happyPromise(u("ratio",null,/image/,this.imageDimensions,function(e,t){for(var n=t.toString().split(","),r=!1,i=0;i<n.length;i++)Math.abs(e.width/e.height-o.ratioToFloat(n[i]))<1e-4&&(r=!0);return r}))),d.push(o.happyPromise(u("maxRatio","ratio.max",/image/,this.imageDimensions,function(e,t){return e.width/e.height-o.ratioToFloat(t)<1e-4}))),d.push(o.happyPromise(u("minRatio","ratio.min",/image/,this.imageDimensions,function(e,t){return e.width/e.height-o.ratioToFloat(t)>-1e-4}))),d.push(o.happyPromise(u("maxDuration","duration.max",/audio|video/,this.mediaDuration,function(e,t){return e<=o.translateScalars(t)}))),d.push(o.happyPromise(u("minDuration","duration.min",/audio|video/,this.mediaDuration,function(e,t){return e>=o.translateScalars(t)}))),d.push(o.happyPromise(u("duration",null,/audio|video/,function(e,t){return o.emptyPromise(t)},function(e){return e}))),d.push(o.happyPromise(u("validateAsyncFn",null,null,function(e,t){return t},function(e){return e===!0||null===e||""===e}))),t.all(d).then(function(){f.resolve(r,r.$ngfValidations)})},o.imageDimensions=function(e){if(e.$ngfWidth&&e.$ngfHeight){var r=t.defer();return n(function(){r.resolve({width:e.$ngfWidth,height:e.$ngfHeight})}),r.promise}if(e.$ngfDimensionPromise)return e.$ngfDimensionPromise;var i=t.defer();return n(function(){return 0!==e.type.indexOf("image")?void i.reject("not image"):void o.dataUrl(e).then(function(t){function r(){var t=s[0].clientWidth,n=s[0].clientHeight;s.remove(),e.$ngfWidth=t,e.$ngfHeight=n,i.resolve({width:t,height:n})}function o(){s.remove(),i.reject("load error")}function a(){n(function(){s[0].parentNode&&(s[0].clientWidth?r():u>10?o():a())},1e3)}var s=angular.element("<img>").attr("src",t).css("visibility","hidden").css("position","fixed").css("max-width","none !important").css("max-height","none !important");s.on("load",r),s.on("error",o);var u=0;a(),angular.element(document.getElementsByTagName("body")[0]).append(s)},function(){i.reject("load error")})}),e.$ngfDimensionPromise=i.promise,e.$ngfDimensionPromise["finally"](function(){delete e.$ngfDimensionPromise}),e.$ngfDimensionPromise},o.mediaDuration=function(e){if(e.$ngfDuration){var r=t.defer();return n(function(){r.resolve(e.$ngfDuration)}),r.promise}if(e.$ngfDurationPromise)return e.$ngfDurationPromise;var i=t.defer();return n(function(){return 0!==e.type.indexOf("audio")&&0!==e.type.indexOf("video")?void i.reject("not media"):void o.dataUrl(e).then(function(t){function r(){var t=s[0].duration;e.$ngfDuration=t,s.remove(),i.resolve(t)}function o(){s.remove(),i.reject("load error")}function a(){n(function(){s[0].parentNode&&(s[0].duration?r():u>10?o():a())},1e3)}var s=angular.element(0===e.type.indexOf("audio")?"<audio>":"<video>").attr("src",t).css("visibility","none").css("position","fixed");s.on("loadedmetadata",r),s.on("error",o);var u=0;a(),angular.element(document.body).append(s)},function(){i.reject("load error")})}),e.$ngfDurationPromise=i.promise,e.$ngfDurationPromise["finally"](function(){delete e.$ngfDurationPromise}),e.$ngfDurationPromise},o}]),ngFileUpload.service("UploadResize",["UploadValidate","$q",function(e,t){var n=e,r=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}},i=function(e,i,o,a,s,u,l,c){var f=t.defer(),d=document.createElement("canvas"),p=document.createElement("img");return p.onload=function(){if(null!=c&&c(p.width,p.height)===!1)return void f.reject("resizeIf");try{if(u){var e=n.ratioToFloat(u),t=p.width/p.height;e>t?(i=p.width,o=i/e):(o=p.height,i=o*e)}i||(i=p.width),o||(o=p.height);var h=r(p.width,p.height,i,o,l);d.width=Math.min(h.width,i),d.height=Math.min(h.height,o);var g=d.getContext("2d");g.drawImage(p,Math.min(0,-h.marginX/2),Math.min(0,-h.marginY/2),h.width,h.height),f.resolve(d.toDataURL(s||"image/WebP",a||.934))}catch(m){f.reject(m)}},p.onerror=function(){f.reject()},p.src=e,f.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,r,o,a,s,u,l,c,f){if(0!==e.type.indexOf("image"))return n.emptyPromise(e);var d=t.defer();return n.dataUrl(e,!0).then(function(t){i(t,r,o,a,s||e.type,u,l,c).then(function(r){if("image/jpeg"===e.type&&f)try{r=n.restoreExif(t,r)}catch(i){setTimeout(function(){throw i},1)}try{var o=n.dataUrltoBlob(r,e.name,e.size);d.resolve(o)}catch(i){d.reject(i)}},function(t){"resizeIf"===t&&d.resolve(e),d.reject(t)})},function(e){d.reject(e)}),d.promise},n}]),function(){function e(e,n,r,i,o,a,s,u,l,c){function f(){return n.attr("disabled")||v("ngfDropDisabled",e)}function d(t,n){u.updateModel(i,r,e,v("ngfChange")||v("ngfDrop"),t,n)}function p(t,n){if(!u.shouldUpdateOn(t,r,e)||!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 h(e,t,n,r){var i=v("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||v("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)}function g(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+e.name,p.push(i)}var o=e.createReader(),s=[],g=function(){o.readEntries(function(i){try{i.length?(s=s.concat(Array.prototype.slice.call(i||[],0)),g()):(angular.forEach(s.slice(0),function(n){p.length<=l&&f>=h&&r.push(a(n,(t?t:"")+e.name+"/"))}),c.all(r).then(function(){n.resolve()},function(e){n.reject(e)}))}catch(o){n.reject(o)}},function(e){n.reject(e)})};g()}else e.file(function(e){try{e.path=(t?t:"")+e.name,d&&(e=u.rename(e,e.path)),p.push(e),h+=e.size,n.resolve()}catch(r){n.reject(r)}},function(e){n.reject(e)});return n.promise}var l=u.getValidationAttr(r,e,"maxFiles")||Number.MAX_VALUE,f=u.getValidationAttr(r,e,"maxTotalSize")||Number.MAX_VALUE,d=v("ngfIncludeDir",e),p=[],h=0,g=[u.emptyPromise()];if(t&&t.length>0&&"file"!==s.protocol())for(var m=0;m<t.length;m++){if(t[m].webkitGetAsEntry&&t[m].webkitGetAsEntry()&&t[m].webkitGetAsEntry().isDirectory){var $=t[m].webkitGetAsEntry();if($.isDirectory&&!i)continue;null!=$&&g.push(a($))}else{var y=t[m].getAsFile();null!=y&&(p.push(y),h+=y.size)}if(p.length>l||h>f||!o&&p.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)&&(p.push(w),h+=w.size),p.length>l||h>f||!o&&p.length>0)break}var x=c.defer();return c.all(g).then(function(){if(o||d||!p.length)x.resolve(p);else{for(var e=0;p[e]&&"directory"===p[e].type;)e++;x.resolve([p[e]])}},function(e){x.reject(e)}),x.promise}var m=t(),v=function(e,t,n){return u.attrGetter(e,r,t,n)};if(v("dropAvailable")&&a(function(){e[v("dropAvailable")]?e[v("dropAvailable")].value=m:e[v("dropAvailable")]=m}),!m)return void(v("ngfHideOnDropNotAvailable",e)===!0&&n.css("display","none"));null==v("ngfSelect")&&u.registerModelChangeValidator(i,r,e);var $,y=null,b=o(v("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),$||($="C",h(e,r,t,function(r){$=r,n.addClass($),v("ngfDrag",e,{$isDragging:!0,$class:$,$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(){$&&n.removeClass($),$=null,v("ngfDrag",e,{$isDragging:!1,$event:t})},w||100))},!1),n[0].addEventListener("drop",function(t){if(!f()&&u.shouldUpdateOn("drop",r,e)){t.preventDefault(),b(e)&&t.stopPropagation(),$&&n.removeClass($),$=null;var i,o=t.dataTransfer.items;try{i=t.dataTransfer&&t.dataTransfer.getData&&t.dataTransfer.getData("text/html")}catch(a){}g(o,t.dataTransfer.files,v("ngfAllowDir",e)!==!1,v("multiple")||v("ngfMultiple",e)).then(function(e){e.length?d(e,t):p("dropUrl",i).then(function(e){d(e,t)})})}},!1),n[0].addEventListener("paste",function(t){if(navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&v("ngfEnableFirefoxPaste",e)&&t.preventDefault(),!f()&&u.shouldUpdateOn("paste",r,e)){var n=[],i=t.clipboardData||t.originalEvent.clipboardData;if(i&&i.items)for(var o=0;o<i.items.length;o++)-1!==i.items[o].type.indexOf("image")&&n.push(i.items[o].getAsFile());n.length?d(n,t):p("pasteUrl",i).then(function(e){d(e,t)})}},!1),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&v("ngfEnableFirefoxPaste",e)&&(n.attr("contenteditable",!0),n.on("keypress",function(e){e.metaKey||e.ctrlKey||e.preventDefault()}))}function t(){var e=document.createElement("div");return"draggable"in e&&"ondrop"in e&&!/Edge\/12./i.test(navigator.userAgent)}ngFileUpload.directive("ngfDrop",["$parse","$timeout","$location","Upload","$http","$q",function(t,n,r,i,o,a){return{restrict:"AEC",require:"?ngModel",link:function(s,u,l,c){e(s,u,l,c,t,n,r,i,o,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){function n(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:return e.transform(0,-1,1,0,0,n)}}function r(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)}var i=e;return i.isExifSupported=function(){return window.FileReader&&(new FileReader).readAsArrayBuffer&&i.isResizeSupported()},i.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},i.applyExifRotation=function(e){if(0!==e.type.indexOf("image/jpeg"))return i.emptyPromise(e);var o=t.defer();return i.readOrientation(e).then(function(t){return t.orientation<2||t.orientation>8?o.resolve(e):void i.dataUrl(e,!0).then(function(a){var s=document.createElement("canvas"),u=document.createElement("img");u.onload=function(){try{s.width=t.orientation>4?u.height:u.width,s.height=t.orientation>4?u.width:u.height;var a=s.getContext("2d");n(a,t.orientation,u.width,u.height),a.drawImage(u,0,0);var l=s.toDataURL(e.type||"image/WebP",.934);l=i.restoreExif(r(t.fixedArrayBuffer),l);var c=i.dataUrltoBlob(l,e.name);o.resolve(c)}catch(f){return o.reject(f)}},u.onerror=function(){o.reject()},u.src=a},function(e){o.reject(e)})},function(e){o.reject(e)}),o.promise},i.restoreExif=function(e,t){var n={};return n.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n.encode64=function(e){var t,n,r,i,o,a="",s="",u="",l=0;do t=e[l++],n=e[l++],s=e[l++],r=t>>2,i=(3&t)<<4|n>>4,o=(15&n)<<2|s>>6,u=63&s,isNaN(n)?o=u=64:isNaN(s)&&(u=64),a=a+this.KEY_STR.charAt(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},n.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)},n.exifManipulation=function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)},n.getExifArray=function(e){for(var t,n=0;n<e.length;n++)if(t=e[n],255===t[0]&225===t[1])return t;return[]},n.insertExif=function(e,t){var n=e.replace("data:image/jpeg;base64,",""),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),s=s.concat(a)},n.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=256*e[t+2]+e[t+3],i=t+r+2,o=e.slice(t,i);n.push(o),t=i}if(t>e.length)break}return n},n.decode64=function(e){var t,n,r,i,o,a="",s="",u=0,l=[],c=/[^A-Za-z0-9\+\/\=]/g;c.exec(e)&&console.log("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, NaNExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do r=this.KEY_STR.indexOf(e.charAt(u++)),i=this.KEY_STR.indexOf(e.charAt(u++)),o=this.KEY_STR.indexOf(e.charAt(u++)),s=this.KEY_STR.indexOf(e.charAt(u++)),t=r<<2|i>>4,n=(15&i)<<4|o>>2,a=(3&o)<<6|s,l.push(t),64!==o&&l.push(n),64!==s&&l.push(a),t=n=a="",r=i=o=s="";while(u<e.length);return l},n.restore(e,t)},i}]),function(){"use strict";angular.module("ui.tree",[]).constant("treeConfig",{treeClass:"angular-ui-tree",emptyTreeClass:"angular-ui-tree-empty",hiddenClass:"angular-ui-tree-hidden",nodesClass:"angular-ui-tree-nodes",nodeClass:"angular-ui-tree-node",handleClass:"angular-ui-tree-handle",placeholderClass:"angular-ui-tree-placeholder",dragClass:"angular-ui-tree-drag",dragThreshold:3,levelThreshold:30,defaultCollapsed:!1})}(),function(){"use strict";angular.module("ui.tree").controller("TreeHandleController",["$scope","$element",function(e,t){this.scope=e,e.$element=t,e.$nodeScope=null,e.$type="uiTreeHandle"}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeNodeController",["$scope","$element",function(e,t){function n(e){var t,r,i,o=0,a=e.childNodes();if(!a||0===a.length)return 0;for(i=a.length-1;i>=0;i--)t=a[i],r=1+n(t),o=Math.max(o,r);return o}this.scope=e,e.$element=t,e.$modelValue=null,e.$parentNodeScope=null,e.$childNodesScope=null,e.$parentNodesScope=null,e.$treeScope=null,e.$handleScope=null,e.$type="uiTreeNode",e.$$allowNodeDrop=!1,e.collapsed=!1,e.init=function(n){var r=n[0];e.$treeScope=n[1]?n[1].scope:null,e.$parentNodeScope=r.scope.$nodeScope,e.$modelValue=r.scope.$modelValue[e.$index],e.$parentNodesScope=r.scope,r.scope.initSubNode(e),t.on("$destroy",function(){r.scope.destroySubNode(e)})},e.index=function(){return e.$parentNodesScope.$modelValue.indexOf(e.$modelValue)},e.dragEnabled=function(){return!(e.$treeScope&&!e.$treeScope.dragEnabled)},e.isSibling=function(t){return e.$parentNodesScope==t.$parentNodesScope},e.isChild=function(t){var n=e.childNodes();return n&&n.indexOf(t)>-1},e.prev=function(){var t=e.index();return t>0?e.siblings()[t-1]:null},e.siblings=function(){return e.$parentNodesScope.childNodes()},e.childNodesCount=function(){return e.childNodes()?e.childNodes().length:0},e.hasChild=function(){return e.childNodesCount()>0},e.childNodes=function(){return e.$childNodesScope&&e.$childNodesScope.$modelValue?e.$childNodesScope.childNodes():null},e.accept=function(t,n){return e.$childNodesScope&&e.$childNodesScope.$modelValue&&e.$childNodesScope.accept(t,n)},e.remove=function(){return e.$parentNodesScope.removeNode(e)},e.toggle=function(){e.collapsed=!e.collapsed},e.collapse=function(){e.collapsed=!0},e.expand=function(){e.collapsed=!1},e.depth=function(){var t=e.$parentNodeScope;return t?t.depth()+1:1},e.maxSubDepth=function(){return e.$childNodesScope?n(e.$childNodesScope):0}}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeNodesController",["$scope","$element",function(e,t){this.scope=e,e.$element=t,e.$modelValue=null,e.$nodeScope=null,e.$treeScope=null,e.$type="uiTreeNodes",e.$nodesMap={},e.nodropEnabled=!1,e.maxDepth=0,e.cloneEnabled=!1,e.initSubNode=function(t){return t.$modelValue?void(e.$nodesMap[t.$modelValue.$$hashKey]=t):null},e.destroySubNode=function(t){return t.$modelValue?void(e.$nodesMap[t.$modelValue.$$hashKey]=null):null},e.accept=function(t,n){return e.$treeScope.$callbacks.accept(t,e,n)},e.beforeDrag=function(t){return e.$treeScope.$callbacks.beforeDrag(t)},e.isParent=function(t){return t.$parentNodesScope==e},e.hasChild=function(){return e.$modelValue.length>0},e.safeApply=function(e){var t=this.$root.$$phase;"$apply"==t||"$digest"==t?e&&"function"==typeof e&&e():this.$apply(e)},e.removeNode=function(t){var n=e.$modelValue.indexOf(t.$modelValue);return n>-1?(e.safeApply(function(){e.$modelValue.splice(n,1)[0]}),e.$treeScope.$callbacks.removed(t)):null},e.insertNode=function(t,n){e.safeApply(function(){e.$modelValue.splice(t,0,n)})},e.childNodes=function(){var t,n=[];if(e.$modelValue)for(t=0;t<e.$modelValue.length;t++)n.push(e.$nodesMap[e.$modelValue[t].$$hashKey]);return n},e.depth=function(){return e.$nodeScope?e.$nodeScope.depth():0},e.outOfDepth=function(t){var n=e.maxDepth||e.$treeScope.maxDepth;return n>0?e.depth()+t.maxSubDepth()+1>n:!1}}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeController",["$scope","$element",function(e,t){this.scope=e,e.$element=t,e.$nodesScope=null,e.$type="uiTree",e.$emptyElm=null,e.$callbacks=null,e.dragEnabled=!0,e.emptyPlaceholderEnabled=!0,e.maxDepth=0,e.dragDelay=0,e.cloneEnabled=!1,e.nodropEnabled=!1,e.isEmpty=function(){return e.$nodesScope&&e.$nodesScope.$modelValue&&0===e.$nodesScope.$modelValue.length},e.place=function(t){e.$nodesScope.$element.append(t),e.$emptyElm.remove()},this.resetEmptyElement=function(){e.$nodesScope.$modelValue&&0!==e.$nodesScope.$modelValue.length||!e.emptyPlaceholderEnabled?e.$emptyElm.remove():t.append(e.$emptyElm)},e.resetEmptyElement=this.resetEmptyElement}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTree",["treeConfig","$window",function(e,t){return{restrict:"A",scope:!0,controller:"TreeController",link:function(n,r,i,o){var a,s,u,l={accept:null,beforeDrag:null},c={};angular.extend(c,e),c.treeClass&&r.addClass(c.treeClass),"table"===r.prop("tagName").toLowerCase()?(n.$emptyElm=angular.element(t.document.createElement("tr")),s=r.find("tr"),u=s.length>0?angular.element(s).children().length:1e6,a=angular.element(t.document.createElement("td")).attr("colspan",u),n.$emptyElm.append(a)):n.$emptyElm=angular.element(t.document.createElement("div")),c.emptyTreeClass&&n.$emptyElm.addClass(c.emptyTreeClass),n.$watch("$nodesScope.$modelValue.length",function(e){angular.isNumber(e)&&o.resetEmptyElement()},!0),n.$watch(i.dragEnabled,function(e){"boolean"==typeof e&&(n.dragEnabled=e)}),n.$watch(i.emptyPlaceholderEnabled,function(e){"boolean"==typeof e&&(n.emptyPlaceholderEnabled=e,o.resetEmptyElement())}),n.$watch(i.nodropEnabled,function(e){"boolean"==typeof e&&(n.nodropEnabled=e)}),n.$watch(i.cloneEnabled,function(e){"boolean"==typeof e&&(n.cloneEnabled=e)}),n.$watch(i.maxDepth,function(e){"number"==typeof e&&(n.maxDepth=e)}),n.$watch(i.dragDelay,function(e){"number"==typeof e&&(n.dragDelay=e)}),l.accept=function(e,t){return!(t.nodropEnabled||t.$treeScope.nodropEnabled||t.outOfDepth(e))},l.beforeDrag=function(){return!0},l.removed=function(){},l.dropped=function(){},l.dragStart=function(){},l.dragMove=function(){},l.dragStop=function(){},l.beforeDrop=function(){},n.$watch(i.uiTree,function(e){angular.forEach(e,function(e,t){l[t]&&"function"==typeof e&&(l[t]=e)}),n.$callbacks=l},!0)}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeHandle",["treeConfig",function(e){return{require:"^uiTreeNode",restrict:"A",scope:!0,controller:"TreeHandleController",link:function(t,n,r,i){var o={};angular.extend(o,e),o.handleClass&&n.addClass(o.handleClass),t!=i.scope&&(t.$nodeScope=i.scope,i.scope.$handleScope=t)}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeNode",["treeConfig","UiTreeHelper","$window","$document","$timeout","$q","$rootElement",function(e,t,n,r,i,o,a){return{require:["^uiTreeNodes","^uiTree"],restrict:"A",controller:"TreeNodeController",link:function(s,u,l,c){var f,d,p,h,g,m,v,$,y,b,w,x,S,C,_,k,A,E,D,T,M,O,N,F,P={},I="ontouchstart"in window,j=null,V=document.body,R=document.documentElement;angular.extend(P,e),P.nodeClass&&u.addClass(P.nodeClass),s.init(c),s.collapsed=!!t.getNodeAttribute(s,"collapsed")||e.defaultCollapsed,s.sourceOnly=s.nodropEnabled||s.$treeScope.nodropEnabled,s.$watch(l.collapsed,function(e){"boolean"==typeof e&&(s.collapsed=e)}),s.$watch("collapsed",function(e){t.setNodeAttribute(s,"collapsed",e),l.$set("collapsed",e)}),s.$on("angular-ui-tree:collapse-all",function(){s.collapsed=!0}),s.$on("angular-ui-tree:expand-all",function(){s.collapsed=!1}),b=function(e){if((I||2!==e.button&&3!==e.which)&&!(e.uiTreeDragging||e.originalEvent&&e.originalEvent.uiTreeDragging)){var i,o,l,c,b,w,x,S,C,_=angular.element(e.target);if(i=t.treeNodeHandlerContainerOfElement(_),i&&(_=angular.element(i)),o=u.clone(),S=t.elementIsTreeNode(_),C=t.elementIsTreeNodeHandle(_),(S||C)&&!(S&&t.elementContainsTreeNodeHandler(_)||(l=_.prop("tagName").toLowerCase(),"input"==l||"textarea"==l||"button"==l||"select"==l))){for(F=angular.element(e.target);F&&F[0]&&F[0]!==u;){if(t.nodrag(F))return;F=F.parent()}s.beforeDrag(s)&&(e.uiTreeDragging=!0,e.originalEvent&&(e.originalEvent.uiTreeDragging=!0),e.preventDefault(),b=t.eventObj(e),f=!0,d=t.dragInfo(s),c=u.prop("tagName"),"tr"===c.toLowerCase()?(h=angular.element(n.document.createElement(c)),w=angular.element(n.document.createElement("td")).addClass(P.placeholderClass).attr("colspan",u[0].children.length),h.append(w)):h=angular.element(n.document.createElement(c)).addClass(P.placeholderClass),g=angular.element(n.document.createElement(c)),P.hiddenClass&&g.addClass(P.hiddenClass),p=t.positionStarted(b,u),h.css("height",t.height(u)+"px"),m=angular.element(n.document.createElement(s.$parentNodesScope.$element.prop("tagName"))).addClass(s.$parentNodesScope.$element.attr("class")).addClass(P.dragClass),m.css("width",t.width(u)+"px"),m.css("z-index",9999),x=(u[0].querySelector(".angular-ui-tree-handle")||u[0]).currentStyle,x&&(document.body.setAttribute("ui-tree-cursor",r.find("body").css("cursor")||""),r.find("body").css({cursor:x.cursor+"!important"})),s.sourceOnly&&h.css("display","none"),u.after(h),u.after(g),d.isClone()&&s.sourceOnly?m.append(o):m.append(u),a.append(m),m.css({left:b.pageX-p.offsetX+"px",top:b.pageY-p.offsetY+"px"}),v={placeholder:h,dragging:m},D(),s.$apply(function(){s.$treeScope.$callbacks.dragStart(d.eventArgs(v,p))}),$=Math.max(V.scrollHeight,V.offsetHeight,R.clientHeight,R.scrollHeight,R.offsetHeight),y=Math.max(V.scrollWidth,V.offsetWidth,R.clientWidth,R.scrollWidth,R.offsetWidth))}}},w=function(e){var r,i,o,a,u,l,c,g,b,w,x,S,C,_,k,A,E=t.eventObj(e);if(m){if(e.preventDefault(),n.getSelection?n.getSelection().removeAllRanges():n.document.selection&&n.document.selection.empty(),o=E.pageX-p.offsetX,a=E.pageY-p.offsetY,0>o&&(o=0),0>a&&(a=0),a+10>$&&(a=$-10),o+10>y&&(o=y-10),m.css({left:o+"px",top:a+"px"}),u=window.pageYOffset||n.document.documentElement.scrollTop,l=u+(window.innerHeight||n.document.clientHeight||n.document.clientHeight),l<E.pageY&&$>=l&&window.scrollBy(0,10),u>E.pageY&&window.scrollBy(0,-10),t.positionMoved(e,p,f),f)return void(f=!1);if(g=t.offset(m).left-t.offset(h).left>=P.threshold,b=E.pageX-(n.pageXOffset||n.document.body.scrollLeft||n.document.documentElement.scrollLeft)-(n.document.documentElement.clientLeft||0),w=E.pageY-(n.pageYOffset||n.document.body.scrollTop||n.document.documentElement.scrollTop)-(n.document.documentElement.clientTop||0),angular.isFunction(m.hide)?m.hide():(x=m[0].style.display,m[0].style.display="none"),n.document.elementFromPoint(b,w),C=angular.element(n.document.elementFromPoint(b,w)),N=t.treeNodeHandlerContainerOfElement(C),N&&(C=angular.element(N)),angular.isFunction(m.show)?m.show():m[0].style.display=x,O=!(t.elementIsTreeNodeHandle(C)||t.elementIsTreeNode(C)||t.elementIsTreeNodes(C)||t.elementIsTree(C)||t.elementIsPlaceholder(C)),O&&(h.remove(),j&&(j.resetEmptyElement(),j=null)),p.dirAx&&p.distAxX>=P.levelThreshold&&(p.distAxX=0,p.distX>0&&(r=d.prev(),r&&!r.collapsed&&r.accept(s,r.childNodesCount())&&(r.$childNodesScope.$element.append(h),d.moveTo(r.$childNodesScope,r.childNodes(),r.childNodesCount()))),p.distX<0&&(i=d.next(),i||(c=d.parentNode(),c&&c.$parentNodesScope.accept(s,c.index()+1)&&(c.$element.after(h),d.moveTo(c.$parentNodesScope,c.siblings(),c.index()+1))))),!p.dirAx){if(t.elementIsTree(C)?S=C.controller("uiTree").scope:t.elementIsTreeNodeHandle(C)?S=C.controller("uiTreeHandle").scope:t.elementIsTreeNode(C)?S=C.controller("uiTreeNode").scope:t.elementIsTreeNodes(C)?S=C.controller("uiTreeNodes").scope:t.elementIsPlaceholder(C)?S=C.controller("uiTreeNodes").scope:C.controller("uiTreeNode")&&(S=C.controller("uiTreeNode").scope),_=!1,!S)return;if(!S.$treeScope||S.$parent.nodropEnabled||S.$treeScope.nodropEnabled||h.css("display",""),"uiTree"==S.$type&&S.dragEnabled&&(_=S.isEmpty()),"uiTreeHandle"==S.$type&&(S=S.$nodeScope),"uiTreeNode"!=S.$type&&!_)return;j&&h.parent()[0]!=j.$element[0]&&(j.resetEmptyElement(),j=null),_?(j=S,S.$nodesScope.accept(s,0)&&(S.place(h),d.moveTo(S.$nodesScope,S.$nodesScope.childNodes(),0))):S.dragEnabled()&&(C=S.$element,k=t.offset(C),A=S.horizontal?E.pageX<k.left+t.width(C)/2:E.pageY<k.top+t.height(C)/2,S.$parentNodesScope.accept(s,S.index())?A?(C[0].parentNode.insertBefore(h[0],C[0]),d.moveTo(S.$parentNodesScope,S.siblings(),S.index())):(C.after(h),d.moveTo(S.$parentNodesScope,S.siblings(),S.index()+1)):!A&&S.accept(s,S.childNodesCount())?(S.$childNodesScope.$element.append(h),d.moveTo(S.$childNodesScope,S.childNodes(),S.childNodesCount())):O=!0)}s.$apply(function(){s.$treeScope.$callbacks.dragMove(d.eventArgs(v,p))})}},x=function(e){var t=d.eventArgs(v,p);e.preventDefault(),T(),s.$treeScope.$apply(function(){o.when(s.$treeScope.$callbacks.beforeDrop(t)).then(function(e){e!==!1&&s.$$allowNodeDrop&&!O?(d.apply(),s.$treeScope.$callbacks.dropped(t)):E()})["catch"](function(){E()})["finally"](function(){g.replaceWith(s.$element),h.remove(),m&&(m.remove(),m=null),s.$treeScope.$callbacks.dragStop(t),s.$$allowNodeDrop=!1,d=null;var e=document.body.getAttribute("ui-tree-cursor");null!==e&&(r.find("body").css({cursor:e}),document.body.removeAttribute("ui-tree-cursor"))})})},S=function(e){s.dragEnabled()&&b(e)},C=function(e){w(e)},_=function(e){s.$$allowNodeDrop=!0,x(e)},k=function(e){x(e)},A=function(){var e;return{exec:function(t,n){n||(n=0),this.cancel(),e=i(t,n)},cancel:function(){i.cancel(e)}}}(),E=function(){u.bind("touchstart mousedown",function(e){A.exec(function(){S(e)},s.dragDelay||0)}),u.bind("touchend touchcancel mouseup",function(){A.cancel()})},E(),D=function(){angular.element(r).bind("touchend",_),angular.element(r).bind("touchcancel",_),angular.element(r).bind("touchmove",C),angular.element(r).bind("mouseup",_),angular.element(r).bind("mousemove",C),angular.element(r).bind("mouseleave",k)},T=function(){angular.element(r).unbind("touchend",_),angular.element(r).unbind("touchcancel",_),angular.element(r).unbind("touchmove",C),angular.element(r).unbind("mouseup",_),angular.element(r).unbind("mousemove",C),angular.element(r).unbind("mouseleave",k)},M=function(e){27==e.keyCode&&(s.$$allowNodeDrop=!1,x(e))},angular.element(n.document).bind("keydown",M),s.$on("$destroy",function(){angular.element(n.document).unbind("keydown",M)})}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeNodes",["treeConfig","$window",function(e){return{require:["ngModel","?^uiTreeNode","^uiTree"],restrict:"A",scope:!0,controller:"TreeNodesController",link:function(t,n,r,i){var o={},a=i[0],s=i[1],u=i[2];angular.extend(o,e),o.nodesClass&&n.addClass(o.nodesClass),s?(s.scope.$childNodesScope=t,t.$nodeScope=s.scope):u.scope.$nodesScope=t,t.$treeScope=u.scope,a&&(a.$render=function(){t.$modelValue=a.$modelValue}),t.$watch(function(){return r.maxDepth},function(e){"number"==typeof e&&(t.maxDepth=e)}),t.$watch(function(){return r.nodropEnabled},function(e){"undefined"!=typeof e&&(t.nodropEnabled=!0)},!0),r.$observe("horizontal",function(e){t.horizontal="undefined"!=typeof e})}}}])}(),function(){"use strict";function e(e,t){if(void 0===t)return null;for(var n=t.parentNode,r=1,i="function"==typeof n.setAttribute&&n.hasAttribute(e)?n:null;n&&"function"==typeof n.setAttribute&&!n.hasAttribute(e);){if(n=n.parentNode,i=n,n===document.documentElement){i=null;break}r++}return i}angular.module("ui.tree").factory("UiTreeHelper",["$document","$window","treeConfig",function(t,n,r){return{nodesData:{},setNodeAttribute:function(e,t,n){if(!e.$modelValue)return null;var r=this.nodesData[e.$modelValue.$$hashKey];r||(r={},this.nodesData[e.$modelValue.$$hashKey]=r),r[t]=n},getNodeAttribute:function(e,t){if(!e.$modelValue)return null;var n=this.nodesData[e.$modelValue.$$hashKey];return n?n[t]:null},nodrag:function(e){return"undefined"!=typeof e.attr("data-nodrag")?"false"!==e.attr("data-nodrag"):!1},eventObj:function(e){var t=e;return void 0!==e.targetTouches?t=e.targetTouches.item(0):void 0!==e.originalEvent&&void 0!==e.originalEvent.targetTouches&&(t=e.originalEvent.targetTouches.item(0)),t},dragInfo:function(e){return{source:e,sourceInfo:{cloneModel:e.$treeScope.cloneEnabled===!0?angular.copy(e.$modelValue):void 0,nodeScope:e,index:e.index(),nodesScope:e.$parentNodesScope},index:e.index(),siblings:e.siblings().slice(0),parent:e.$parentNodesScope,moveTo:function(e,t,n){this.parent=e,this.siblings=t.slice(0);var r=this.siblings.indexOf(this.source);r>-1&&(this.siblings.splice(r,1),this.source.index()<n&&n--),this.siblings.splice(n,0,this.source),this.index=n},parentNode:function(){return this.parent.$nodeScope},prev:function(){return this.index>0?this.siblings[this.index-1]:null},next:function(){return this.index<this.siblings.length-1?this.siblings[this.index+1]:null},isClone:function(){return this.source.$treeScope.cloneEnabled===!0},clonedNode:function(e){return angular.copy(e)},isDirty:function(){return this.source.$parentNodesScope!=this.parent||this.source.index()!=this.index},isForeign:function(){return this.source.$treeScope!==this.parent.$treeScope},eventArgs:function(e,t){return{source:this.sourceInfo,dest:{index:this.index,nodesScope:this.parent},elements:e,pos:t}},apply:function(){var e=this.source.$modelValue;this.parent.nodropEnabled||this.parent.$treeScope.nodropEnabled||this.isDirty()&&(this.isClone()&&this.isForeign()?this.parent.insertNode(this.index,this.sourceInfo.cloneModel):(this.source.remove(),this.parent.insertNode(this.index,e)))}}},height:function(e){return e.prop("scrollHeight")},width:function(e){return e.prop("scrollWidth")},offset:function(e){var r=e[0].getBoundingClientRect();return{width:e.prop("offsetWidth"),height:e.prop("offsetHeight"),top:r.top+(n.pageYOffset||t[0].body.scrollTop||t[0].documentElement.scrollTop),left:r.left+(n.pageXOffset||t[0].body.scrollLeft||t[0].documentElement.scrollLeft)}},positionStarted:function(e,t){var n={},r=e.pageX,i=e.pageY;return e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length>0&&(r=e.originalEvent.touches[0].pageX,i=e.originalEvent.touches[0].pageY),n.offsetX=r-this.offset(t).left,n.offsetY=i-this.offset(t).top,n.startX=n.lastX=r,n.startY=n.lastY=i,n.nowX=n.nowY=n.distX=n.distY=n.dirAx=0,n.dirX=n.dirY=n.lastDirX=n.lastDirY=n.distAxX=n.distAxY=0,n},positionMoved:function(e,t,n){var r,i=e.pageX,o=e.pageY;return e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length>0&&(i=e.originalEvent.touches[0].pageX,o=e.originalEvent.touches[0].pageY),t.lastX=t.nowX,t.lastY=t.nowY,t.nowX=i,t.nowY=o,t.distX=t.nowX-t.lastX,t.distY=t.nowY-t.lastY,t.lastDirX=t.dirX,t.lastDirY=t.dirY,t.dirX=0===t.distX?0:t.distX>0?1:-1,t.dirY=0===t.distY?0:t.distY>0?1:-1,r=Math.abs(t.distX)>Math.abs(t.distY)?1:0,n?(t.dirAx=r,void(t.moving=!0)):(t.dirAx!==r?(t.distAxX=0,t.distAxY=0):(t.distAxX+=Math.abs(t.distX),0!==t.dirX&&t.dirX!==t.lastDirX&&(t.distAxX=0),t.distAxY+=Math.abs(t.distY),0!==t.dirY&&t.dirY!==t.lastDirY&&(t.distAxY=0)),void(t.dirAx=r))},elementIsTreeNode:function(e){return"undefined"!=typeof e.attr("ui-tree-node")},elementIsTreeNodeHandle:function(e){return"undefined"!=typeof e.attr("ui-tree-handle")},elementIsTree:function(e){return"undefined"!=typeof e.attr("ui-tree")},elementIsTreeNodes:function(e){return"undefined"!=typeof e.attr("ui-tree-nodes")},elementIsPlaceholder:function(e){return e.hasClass(r.placeholderClass)},elementContainsTreeNodeHandler:function(e){return e[0].querySelectorAll("[ui-tree-handle]").length>=1},treeNodeHandlerContainerOfElement:function(t){return e("ui-tree-handle",t[0])}}}])}(),function(e,t){"use strict";function n(e){return/^-?\d+\.?\d*$/.test(e.replace(/["']/g,""))}var r=t.isDefined,i=t.isUndefined,o=t.isNumber,a=t.isObject,s=t.isArray,u=t.extend,l=t.toJson,c=t.fromJson,f=t.module("LocalStorageModule",[]);f.provider("localStorageService",function(){this.prefix="ls",this.storageType="localStorage",this.cookie={expiry:30,path:"/"},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.setStorageCookie=function(e,t){return this.cookie={expiry:e,path:t},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",function(e,t,f,d){var p,h=this,g=h.prefix,m=h.cookie,v=h.notify,$=h.storageType;f?f[0]&&(f=f[0]):f=document,"."!==g.substr(-1)&&(g=g?g+".":"");var y=function(e){return g+e},b=function(){try{var n=$ in t&&null!==t[$],r=y("__"+Math.round(1e7*Math.random()));return n&&(p=t[$],p.setItem(r,""),p.removeItem(r)),n}catch(i){return $="cookie",e.$broadcast("LocalStorageModule.notification.error",i.message),!1}}(),w=function(t,n){if(i(n)?n=null:(a(n)||s(n)||o(+n||n))&&(n=l(n)),!b||"cookie"===h.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),v.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:"cookie"}),A(t,n);try{(a(n)||s(n))&&(n=l(n)),p&&p.setItem(y(t),n),v.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:h.storageType})}catch(r){return e.$broadcast("LocalStorageModule.notification.error",r.message),A(t,n)}return!0},x=function(t){if(!b||"cookie"===h.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),E(t);var r=p?p.getItem(y(t)):null;return r&&"null"!==r?"{"===r.charAt(0)||"["===r.charAt(0)||n(r)?c(r):r:null},S=function(t){if(!b||"cookie"===h.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),v.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:t,storageType:"cookie"}),D(t);try{p.removeItem(y(t)),v.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:t,storageType:h.storageType})}catch(n){return e.$broadcast("LocalStorageModule.notification.error",n.message),D(t)}return!0},C=function(){if(!b)return e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),!1;var t=g.length,n=[];for(var r in p)if(r.substr(0,t)===g)try{n.push(r.substr(t))}catch(i){return e.$broadcast("LocalStorageModule.notification.error",i.Description),[]}return n},_=function(t){t=t||"";var n=g.slice(0,-1),r=new RegExp(n+"."+t);if(!b||"cookie"===h.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),T();var i=g.length;for(var o in p)if(r.test(o))try{S(o.substr(i))}catch(a){return e.$broadcast("LocalStorageModule.notification.error",a.message),T()}return!0},k=function(){try{return t.navigator.cookieEnabled||"cookie"in f&&(f.cookie.length>0||(f.cookie="test").indexOf.call(f.cookie,"test")>-1)}catch(n){return e.$broadcast("LocalStorageModule.notification.error",n.message),!1}}(),A=function(t,n){if(i(n))return!1;if((s(n)||a(n))&&(n=l(n)),!k)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;try{var r="",o=new Date,u="";if(null===n?(o.setTime(o.getTime()+-864e5),r="; expires="+o.toGMTString(),n=""):0!==m.expiry&&(o.setTime(o.getTime()+24*m.expiry*60*60*1e3),r="; expires="+o.toGMTString()),t){var c="; path="+m.path;m.domain&&(u="; domain="+m.domain),f.cookie=y(t)+"="+encodeURIComponent(n)+r+c+u}}catch(d){return e.$broadcast("LocalStorageModule.notification.error",d.message),!1}return!0},E=function(t){if(!k)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;for(var n=f.cookie&&f.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(y(t)+"=")){var o=decodeURIComponent(i.substring(g.length+t.length+1,i.length));try{var a=JSON.parse(o);return c(a)}catch(s){return o}}}return null},D=function(e){A(e,null)},T=function(){for(var e=null,t=g.length,n=f.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("="));D(i)}},M=function(){return $},O=function(e,t,n,i){i=i||t;var o=x(i);return null===o&&r(n)?o=n:a(o)&&a(n)&&(o=u(n,o)),d(t).assign(e,o),e.$watch(t,function(e){w(i,e)},a(e[t]))},N=function(){for(var e=0,n=t[$],r=0;r<n.length;r++)0===n.key(r).indexOf(g)&&e++;return e};return{isSupported:b,getStorageType:M,set:w,add:w,get:x,keys:C,remove:S,clearAll:_,bind:O,deriveKey:y,length:N,cookie:{isSupported:k,set:A,add:A,get:E,remove:D,clearAll:T}}}]})}(window,window.angular),function(){function e(e,t){return e.set(t[0],t[1]),e}function t(e,t){return e.add(t),e}function n(e,t,n){var r=n.length;switch(r){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t,n,r){for(var i=-1,o=e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function i(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function o(e,t){for(var n=e.length;n--&&t(e[n],n,e)!==!1;);return e}function a(e,t){for(var n=-1,r=e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function s(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function u(e,t){return!!e.length&&v(e,t,0)>-1}function l(e,t,n){for(var r=-1,i=e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function c(e,t){for(var n=-1,r=e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function f(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function d(e,t,n,r){var i=-1,o=e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function p(e,t,n,r){var i=e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function h(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function g(e,t,n,r){var i;return n(e,function(e,n,o){return t(e,n,o)?(i=r?n:e,!1):Ro}),i}function m(e,t,n){for(var r=e.length,i=n?r:-1;n?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function v(e,t,n){if(t!==t)return T(e,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function $(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function y(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function b(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].c;return e}function w(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function x(e,t){return c(t,function(t){return[t,e[t]]})}function S(e){return function(t){return e(t)}}function C(e,t){return c(t,function(t){return e[t]})}function _(e,t){return e.has(t)}function k(e){return e&&e.Object===Object?e:null}function A(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&r++;return r}function E(e){return Os[e]}function D(e){return"\\"+Fs[e]}function T(e,t,n){for(var r=e.length,i=t+(n?0:-1);n?i--:++i<r;){var o=e[i];if(o!==o)return i}return-1}function M(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function O(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function N(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function F(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==qo||(e[n]=qo,o[i++]=n)}return o}function P(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function I(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function j(e){if(!e||!Ds.test(e))return e.length;for(var t=Es.lastIndex=0;Es.test(e);)t++;return t}function V(e){return e.match(Es)}function R(e){if(Ti(e)&&!$l(e)&&!(e instanceof H)){if(e instanceof L)return e;if(Ys.call(e,"__wrapped__"))return In(e)}return new L(e)}function U(){}function L(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=Ro}function H(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=fa,this.__views__=[]}function z(){var e=new H(this.__wrapped__);return e.__actions__=Lt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Lt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Lt(this.__views__),e}function q(){if(this.__filtered__){var e=new H(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function B(){var e=this.__wrapped__.value(),t=this.__dir__,n=$l(e),r=0>t,i=n?e.length:0,o=gn(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,p=hu(u,this.__takeCount__);if(!n||Lo>i||i==u&&p==u)return St(e,this.__actions__);var h=[];e:for(;u--&&p>d;){l+=t;for(var g=-1,m=e[l];++g<f;){var v=c[g],$=v.iteratee,y=v.type,b=$(m);if(y==oa)m=b;else if(!b){if(y==ia)continue e;break e}}h[d++]=m}return h}function W(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Y(){this.__data__=xu?xu(null):{}}function X(e){return this.has(e)&&delete this.__data__[e]}function G(e){var t=this.__data__;if(xu){var n=t[e];return n===zo?Ro:n}return Ys.call(t,e)?t[e]:Ro}function K(e){var t=this.__data__;return xu?t[e]!==Ro:Ys.call(t,e)}function J(e,t){var n=this.__data__;return n[e]=xu&&t===Ro?zo:t,this}function Z(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(){this.__data__=[]}function ee(e){var t=this.__data__,n=xe(t,e);if(0>n)return!1;var r=t.length-1;return n==r?t.pop():au.call(t,n,1),!0}function te(e){var t=this.__data__,n=xe(t,e);return 0>n?Ro:t[n][1]}function ne(e){return xe(this.__data__,e)>-1}function re(e,t){var n=this.__data__,r=xe(n,e);return 0>r?n.push([e,t]):n[r][1]=t,this}function ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function oe(){this.__data__={hash:new W,map:new($u||Z),string:new W}}function ae(e){return ln(this,e)["delete"](e)}function se(e){return ln(this,e).get(e)}function ue(e){return ln(this,e).has(e)}function le(e,t){return ln(this,e).set(e,t),this}function ce(e){var t=-1,n=e?e.length:0;for(this.__data__=new ie;++t<n;)this.add(e[t])}function fe(e){return this.__data__.set(e,zo),this}function de(e){return this.__data__.has(e)}function pe(e){this.__data__=new Z(e)}function he(){this.__data__=new Z}function ge(e){return this.__data__["delete"](e)}function me(e){return this.__data__.get(e)}function ve(e){return this.__data__.has(e)}function $e(e,t){var n=this.__data__;return n instanceof Z&&n.__data__.length==Lo&&(n=this.__data__=new ie(n.__data__)),n.set(e,t),this}function ye(e,t,n,r){return e===Ro||pi(e,Bs[n])&&!Ys.call(r,n)?t:e}function be(e,t,n){(n===Ro||pi(e[t],n))&&("number"!=typeof t||n!==Ro||t in e)||(e[t]=n)}function we(e,t,n){var r=e[t];Ys.call(e,t)&&pi(r,n)&&(n!==Ro||t in e)||(e[t]=n)}function xe(e,t){for(var n=e.length;n--;)if(pi(e[n][0],t))return n;return-1}function Se(e,t,n,r){return Fu(e,function(e,i,o){t(r,e,n(e),o)}),r}function Ce(e,t){return e&&Ht(t,mo(t),e)}function _e(e,t){for(var n=-1,r=null==e,i=t.length,o=Array(i);++n<i;)o[n]=r?Ro:po(e,t[n]);return o}function ke(e,t,n){return e===e&&(n!==Ro&&(e=n>=e?e:n),t!==Ro&&(e=e>=t?e:t)),e}function Ae(e,t,n,r,o,a,s){var u;if(r&&(u=a?r(e,o,a,s):r(e)),u!==Ro)return u;if(!Di(e))return e;var l=$l(e);if(l){if(u=vn(e),!t)return Lt(e,u)}else{var c=hn(e),f=c==ya||c==ba;if(yl(e))return Dt(e,t);if(c==Sa||c==ha||f&&!a){if(M(e))return a?e:{};if(u=$n(f?{}:e),!t)return zt(e,Ce(u,e))}else{if(!Ms[c])return a?e:{};u=yn(e,c,Ae,t)}}s||(s=new pe);var d=s.get(e);if(d)return d;if(s.set(e,u),!l)var p=n?rn(e):mo(e);return i(p||e,function(i,o){p&&(o=i,i=e[o]),we(u,o,Ae(i,t,n,r,o,e,s))}),u}function Ee(e){return Di(e)?iu(e):{}}function De(e,t,n,r){var i=-1,o=u,a=!0,s=e.length,f=[],d=t.length;if(!s)return f;n&&(t=c(t,S(n))),r?(o=l,a=!1):t.length>=Lo&&(o=_,a=!1,t=new ce(t));e:for(;++i<s;){var p=e[i],h=n?n(p):p;if(p=r||0!==p?p:0,a&&h===h){for(var g=d;g--;)if(t[g]===h)continue e;f.push(p)}else o(t,h,r)||f.push(p)}return f}function Te(e,t){var n=!0;return Fu(e,function(e,r,i){return n=!!t(e,r,i)}),n}function Me(e,t,n,r){var i=e.length;for(n=Ji(n),0>n&&(n=-n>i?0:i+n),r=r===Ro||r>i?i:Ji(r),0>r&&(r+=i),r=n>r?0:Zi(r);r>n;)e[n++]=t;return e}function Oe(e,t){var n=[];return Fu(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Ne(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=wn),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?Ne(s,t-1,n,r,i):f(i,s):r||(i[i.length]=s)}return i}function Fe(e,t){return e&&Iu(e,t,mo)}function Pe(e,t){return e&&ju(e,t,mo)}function Ie(e,t){return s(t,function(t){return ki(e[t])})}function je(e,t){t=_n(t,e)?[t]:Et(t);for(var n=0,r=t.length;null!=e&&r>n;)e=e[Fn(t[n++])];return n&&n==r?e:Ro}function Ve(e,t,n){var r=t(e);return $l(e)?r:f(r,n(e))}function Re(e,t){return e>t}function Ue(e,t){return Ys.call(e,t)||"object"==typeof e&&t in e&&null===dn(e)}function Le(e,t){return t in Object(e)}function He(e,t,n){for(var r=n?l:u,i=e[0].length,o=e.length,a=o,s=Array(o),f=1/0,d=[];a--;){var p=e[a];a&&t&&(p=c(p,S(t))),f=hu(p.length,f),s[a]=!n&&(t||i>=120&&p.length>=120)?new ce(a&&p):Ro}p=e[0];var h=-1,g=s[0];e:for(;++h<i&&f>d.length;){var m=p[h],v=t?t(m):m;if(m=n||0!==m?m:0,!(g?_(g,v):r(d,v,n))){for(a=o;--a;){var $=s[a];if(!($?_($,v):r(e[a],v,n)))continue e}g&&g.push(v),d.push(m)}}return d}function ze(e,t,n,r){return Fe(e,function(e,i,o){t(r,n(e),i,o)}),r}function qe(e,t,r){_n(t,e)||(t=Et(t),e=On(e,t),t=tr(t));var i=null==e?e:e[Fn(t)];return null==i?Ro:n(i,e,r)}function Be(e,t,n,r,i){return e===t?!0:null==e||null==t||!Di(e)&&!Ti(t)?e!==e&&t!==t:We(e,t,Be,n,r,i)}function We(e,t,n,r,i,o){var a=$l(e),s=$l(t),u=ga,l=ga;a||(u=hn(e),u=u==ha?Sa:u),s||(l=hn(t),l=l==ha?Sa:l);var c=u==Sa&&!M(e),f=l==Sa&&!M(t),d=u==l;if(d&&!c)return o||(o=new pe),a||Bi(e)?en(e,t,n,r,i,o):tn(e,t,u,n,r,i,o);if(!(i&ta)){var p=c&&Ys.call(e,"__wrapped__"),h=f&&Ys.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return o||(o=new pe),n(g,m,r,i,o)}}return d?(o||(o=new pe),nn(e,t,n,r,i,o)):!1}function Ye(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===Ro&&!(u in e))return!1}else{var f=new pe;if(r)var d=r(l,c,u,e,t,f);if(!(d===Ro?Be(c,l,r,ea|ta,f):d))return!1}}return!0}function Xe(e){return"function"==typeof e?e:null==e?Fo:"object"==typeof e?$l(e)?et(e[0],e[1]):Qe(e):Vo(e)}function Ge(e){return du(Object(e))}function Ke(e){e=null==e?e:Object(e);var t=[];for(var n in e)t.push(n);return t}function Je(e,t){return t>e}function Ze(e,t){var n=-1,r=mi(e)?Array(e.length):[];return Fu(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function Qe(e){var t=cn(e);return 1==t.length&&t[0][2]?Tn(t[0][0],t[0][1]):function(n){return n===e||Ye(n,e,t)}}function et(e,t){return _n(e)&&Dn(t)?Tn(Fn(e),t):function(n){var r=po(n,e);return r===Ro&&r===t?go(n,e):Be(t,r,Ro,ea|ta)}}function tt(e,t,n,r,o){if(e!==t){if(!$l(t)&&!Bi(t))var a=vo(t);i(a||t,function(i,s){if(a&&(s=i,i=t[s]),Di(i))o||(o=new pe),nt(e,t,s,n,tt,r,o);else{var u=r?r(e[s],i,s+"",e,t,o):Ro;u===Ro&&(u=i),be(e,s,u)}})}}function nt(e,t,n,r,i,o,a){var s=e[n],u=t[n],l=a.get(u);if(l)return be(e,n,l),Ro;var c=o?o(s,u,n+"",e,t,a):Ro,f=c===Ro;f&&(c=u,$l(u)||Bi(u)?$l(s)?c=s:vi(s)?c=Lt(s):(f=!1,c=Ae(u,!0)):Ri(u)||hi(u)?hi(s)?c=eo(s):!Di(s)||r&&ki(s)?(f=!1,c=Ae(u,!0)):c=s:f=!1),a.set(u,c),f&&i(c,u,r,o,a),a["delete"](u),be(e,n,c)}function rt(e,t){var n=e.length;return n?(t+=0>t?n:0,Sn(t,n)?e[t]:Ro):void 0}function it(e,t,n){var r=-1;t=c(t.length?t:[Fo],S(un()));var i=Ze(e,function(e){var n=c(t,function(t){return t(e)});return{a:n,b:++r,c:e}});return b(i,function(e,t){return Vt(e,t,n)})}function ot(e,t){return e=Object(e),d(t,function(t,n){return n in e&&(t[n]=e[n]),t},{})}function at(e,t){for(var n=-1,r=on(e),i=r.length,o={};++n<i;){var a=r[n],s=e[a];t(s,a)&&(o[a]=s)}return o}function st(e){return function(t){return null==t?Ro:t[e]}}function ut(e){return function(t){return je(t,e)}}function lt(e,t,n,r){var i=r?$:v,o=-1,a=t.length,s=e;for(n&&(s=c(e,S(n)));++o<a;)for(var u=0,l=t[o],f=n?n(l):l;(u=i(s,f,u,r))>-1;)s!==e&&au.call(s,u,1),au.call(e,u,1);return e}function ct(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;if(Sn(i))au.call(e,i,1);else if(_n(i,e))delete e[Fn(i)];else{var a=Et(i),s=On(e,a);null!=s&&delete s[Fn(tr(a))]}}}return e}function ft(e,t){return e+uu(gu()*(t-e+1))}function dt(e,t,n,r){t=_n(t,e)?[t]:Et(t);for(var i=-1,o=t.length,a=o-1,s=e;null!=s&&++i<o;){var u=Fn(t[i]);if(Di(s)){var l=n;if(i!=a){var c=s[u];l=r?r(c,u,s):Ro,l===Ro&&(l=null==c?Sn(t[i+1])?[]:{}:c)}we(s,u,l)}s=s[u]}return e}function pt(e,t,n){var r=-1,i=e.length;0>t&&(t=-t>i?0:i+t),n=n>i?i:n,0>n&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}function ht(e,t){var n;return Fu(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function gt(e,t,n){var r=0,i=e?e.length:r;if("number"==typeof t&&t===t&&pa>=i){for(;i>r;){var o=r+i>>>1,a=e[o];null!==a&&!qi(a)&&(n?t>=a:t>a)?r=o+1:i=o}return i}return mt(e,t,Fo,n)}function mt(e,t,n,r){t=n(t);for(var i=0,o=e?e.length:0,a=t!==t,s=null===t,u=qi(t),l=t===Ro;o>i;){var c=uu((i+o)/2),f=n(e[c]),d=f!==Ro,p=null===f,h=f===f,g=qi(f);if(a)var m=r||h;else m=l?h&&(r||d):s?h&&d&&(r||!p):u?h&&d&&!p&&(r||!g):p||g?!1:r?t>=f:t>f;m?i=c+1:o=c}return hu(o,da)}function vt(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!pi(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function $t(e){if("string"==typeof e)return e;if(qi(e))return Nu?Nu.call(e):"";var t=e+"";return"0"==t&&1/e==-sa?"-0":t}function yt(e,t,n){var r=-1,i=u,o=e.length,a=!0,s=[],c=s;if(n)a=!1,i=l;else if(o>=Lo){var f=t?null:Ru(e);if(f)return P(f);a=!1,i=_,c=new ce}else c=t?[]:s;e:for(;++r<o;){var d=e[r],p=t?t(d):d;if(d=n||0!==d?d:0,a&&p===p){for(var h=c.length;h--;)if(c[h]===p)continue e;t&&c.push(p),s.push(d)}else i(c,p,n)||(c!==s&&c.push(p),s.push(d))}return s}function bt(e,t){t=_n(t,e)?[t]:Et(t),e=On(e,t);var n=Fn(tr(t));return!(null!=e&&Ue(e,n))||delete e[n]}function wt(e,t,n,r){return dt(e,t,n(je(e,t)),r)}function xt(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?pt(e,r?0:o,r?o+1:i):pt(e,r?o+1:0,r?i:o)}function St(e,t){var n=e;return n instanceof H&&(n=n.value()),d(t,function(e,t){return t.func.apply(t.thisArg,f([e],t.args))},n)}function Ct(e,t,n){for(var r=-1,i=e.length;++r<i;)var o=o?f(De(o,e[r],t,n),De(e[r],o,t,n)):e[r];return o&&o.length?yt(o,t,n):[]}function _t(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=o>r?t[r]:Ro;n(a,e[r],s)}return a}function kt(e){return vi(e)?e:[]}function At(e){return"function"==typeof e?e:Fo}function Et(e){return $l(e)?e:qu(e)}function Dt(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function Tt(e){var t=new e.constructor(e.byteLength);return new eu(t).set(new eu(e)),t}function Mt(e,t){var n=t?Tt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ot(t,n,r){var i=n?r(N(t),!0):N(t);return d(i,e,new t.constructor)}function Nt(e){var t=new e.constructor(e.source,rs.exec(e));return t.lastIndex=e.lastIndex,t}function Ft(e,n,r){var i=n?r(P(e),!0):P(e);return d(i,t,new e.constructor)}function Pt(e){return Ou?Object(Ou.call(e)):{}}function It(e,t){var n=t?Tt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function jt(e,t){if(e!==t){var n=e!==Ro,r=null===e,i=e===e,o=qi(e),a=t!==Ro,s=null===t,u=t===t,l=qi(t);if(!s&&!l&&!o&&e>t||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t>e||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function Vt(e,t,n){for(var r=-1,i=e.a,o=t.a,a=i.length,s=n.length;++r<a;){var u=jt(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.b-t.b}function Rt(e,t,n,r){for(var i=-1,o=e.length,a=n.length,s=-1,u=t.length,l=pu(o-a,0),c=Array(u+l),f=!r;++s<u;)c[s]=t[s];for(;++i<a;)(f||o>i)&&(c[n[i]]=e[i]);for(;l--;)c[s++]=e[i++];return c}function Ut(e,t,n,r){for(var i=-1,o=e.length,a=-1,s=n.length,u=-1,l=t.length,c=pu(o-s,0),f=Array(c+l),d=!r;++i<c;)f[i]=e[i];for(var p=i;++u<l;)f[p+u]=t[u];for(;++a<s;)(d||o>i)&&(f[p+n[a]]=e[i++]);return f}function Lt(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Ht(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(n[a],e[a],a,n,e):e[a];we(n,a,s)}return n}function zt(e,t){return Ht(e,pn(e),t)}function qt(e,t){return function(n,i){var o=$l(n)?r:Se,a=t?t():{};return o(n,e,un(i),a)}}function Bt(e){return si(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:Ro,a=i>2?n[2]:Ro;for(o=e.length>3&&"function"==typeof o?(i--,o):Ro,a&&Cn(n[0],n[1],a)&&(o=3>i?Ro:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}function Wt(e,t){return function(n,r){if(null==n)return n;if(!mi(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function Yt(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(n(o[u],u,o)===!1)break}return t}}function Xt(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Ee(e.prototype),r=e.apply(n,t);return Di(r)?r:n}}function Gt(e,t,n,r,i,o,a,s,u,l){function c(){for(var v=arguments.length,$=Array(v),y=v;y--;)$[y]=arguments[y];if(h)var b=sn(c),w=A($,b);if(r&&($=Rt($,r,i,h)),o&&($=Ut($,o,a,h)),v-=w,h&&l>v){var x=F($,b);return Zt(e,t,Gt,c.placeholder,n,$,x,s,u,l-v)}var S=d?n:this,C=p?S[e]:e;return v=$.length,s?$=Nn($,s):g&&v>1&&$.reverse(),f&&v>u&&($.length=u),this&&this!==zs&&this instanceof c&&(C=m||Xt(C)),C.apply(S,$)}var f=t&Zo,d=t&Bo,p=t&Wo,h=t&(Xo|Go),g=t&Qo,m=p?Ro:Xt(e);return c}function Kt(e,t){return function(n,r){return ze(n,e,t(r),{})}}function Jt(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Qi(t),n=Qi(n)),e(t,n)}}function Zt(e,t,n,r,i,o,a,s,u,l){var c=t&Xo,f=c?a:Ro,d=c?Ro:a,p=c?o:Ro,h=c?Ro:o;t|=c?Ko:Jo,t&=~(c?Jo:Ko),t&Yo||(t&=~(Bo|Wo));var g=[e,t,i,p,f,h,d,s,u,l],m=n.apply(Ro,g);return An(e)&&zu(m,g),m.placeholder=r,m}function Qt(e){return function(t){var n=hn(t);return n==wa?N(t):n==ka?I(t):x(t,e(t))}}function en(e,t,n,r,i,o){var a=i&ta,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e);if(l)return l==t;var c=-1,f=!0,d=i&ea?new ce:Ro;for(o.set(e,t);++c<s;){var p=e[c],g=t[c];if(r)var m=a?r(g,p,c,t,e,o):r(p,g,c,e,t,o);if(m!==Ro){if(m)continue;f=!1;break}if(d){if(!h(t,function(e,t){return d.has(t)||p!==e&&!n(p,e,r,i,o)?Ro:d.add(t)})){f=!1;break}}else if(p!==g&&!n(p,g,r,i,o)){f=!1;break}}return o["delete"](e),f}function tn(e,t,n,r,i,o,a){switch(n){case Oa:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ma:return!(e.byteLength!=t.byteLength||!r(new eu(e),new eu(t)));case ma:case va:return+e==+t;case $a:return e.name==t.name&&e.message==t.message;case xa:return e!=+e?t!=+t:e==+t;case _a:case Aa:return e==t+"";case wa:var s=N;case ka:var u=o&ta;if(s||(s=P),e.size!=t.size&&!u)return!1;var l=a.get(e);return l?l==t:(o|=ea,a.set(e,t),en(s(e),s(t),r,i,o,a));case Ea:if(Ou)return Ou.call(e)==Ou.call(t)}return!1}function nn(e,t,n,r,i,o){var a=i&ta,s=mo(e),u=s.length,l=mo(t),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var d=s[f];if(!(a?d in t:Ue(t,d)))return!1}var p=o.get(e);if(p)return p==t;var h=!0;o.set(e,t);for(var g=a;++f<u;){d=s[f];var m=e[d],v=t[d];if(r)var $=a?r(v,m,d,t,e,o):r(m,v,d,e,t,o);if(!($===Ro?m===v||n(m,v,r,i,o):$)){h=!1;break}g||(g="constructor"==d)}if(h&&!g){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(h=!1)}return o["delete"](e),h}function rn(e){return Ve(e,mo,pn)}function on(e){return Ve(e,vo,Hu)}function an(e){for(var t=e.name+"",n=_u[t],r=Ys.call(_u,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function sn(e){var t=Ys.call(R,"placeholder")?R:e;return t.placeholder}function un(){var e=R.iteratee||Po;return e=e===Po?Xe:e,arguments.length?e(arguments[0],arguments[1]):e}function ln(e,t){var n=e.__data__;return kn(t)?n["string"==typeof t?"string":"hash"]:n.map}function cn(e){for(var t=Il(e),n=t.length;n--;)t[n][2]=Dn(t[n][1]);return t}function fn(e,t){var n=e[t];return Pi(n)?n:Ro}function dn(e){return lu(Object(e))}function pn(e){return nu(Object(e))}function hn(e){return Gs.call(e)}function gn(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=hu(t,e+a);break;case"takeRight":e=pu(e,t-a)}}return{start:e,end:t}}function mn(e,t,n){t=_n(t,e)?[t]:Et(t);for(var r,i=-1,o=t.length;++i<o;){var a=Fn(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;var o=e?e.length:0;return!!o&&Ei(o)&&Sn(a,o)&&($l(e)||zi(e)||hi(e))}function vn(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Ys.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function $n(e){return"function"!=typeof e.constructor||En(e)?{}:Ee(dn(e))}function yn(e,t,n,r){var i=e.constructor;switch(t){case Ma:return Tt(e);case ma:case va:return new i(+e);case Oa:return Mt(e,r);case Na:case Fa:case Pa:case Ia:case ja:case Va:case Ra:case Ua:case La:return It(e,r);case wa:return Ot(e,r,n);case xa:case Aa:return new i(e);case _a:return Nt(e);case ka:return Ft(e,r,n);case Ea:return Pt(e)}}function bn(e){var t=e?e.length:Ro;return Ei(t)&&($l(e)||zi(e)||hi(e))?w(t,String):null}function wn(e){return $l(e)||hi(e)}function xn(e){return $l(e)&&!(2==e.length&&!ki(e[0]))}function Sn(e,t){return t=null==t?ua:t,!!t&&("number"==typeof e||us.test(e))&&e>-1&&e%1==0&&t>e}function Cn(e,t,n){if(!Di(n))return!1;var r=typeof t;return("number"==r?mi(n)&&Sn(t,n.length):"string"==r&&t in n)?pi(n[t],e):!1}function _n(e,t){if($l(e))return!1;var n=typeof e;return"number"==n||"symbol"==n||"boolean"==n||null==e||qi(e)?!0:Ja.test(e)||!Ka.test(e)||null!=t&&e in Object(t)}function kn(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function An(e){var t=an(e),n=R[t];if("function"!=typeof n||!(t in H.prototype))return!1;if(e===n)return!0;var r=Uu(n);return!!r&&e===r[0]}function En(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||Bs;return e===n}function Dn(e){return e===e&&!Di(e)}function Tn(e,t){return function(n){return null==n?!1:n[e]===t&&(t!==Ro||e in Object(n))}}function Mn(e,t,n,r,i,o){return Di(e)&&Di(t)&&tt(e,t,Ro,Mn,o.set(t,e)),e}function On(e,t){return 1==t.length?e:je(e,pt(t,0,-1))}function Nn(e,t){for(var n=e.length,r=hu(t.length,n),i=Lt(e);r--;){var o=t[r];e[r]=Sn(o,n)?i[o]:Ro}return e}function Fn(e){if("string"==typeof e||qi(e))return e;var t=e+"";return"0"==t&&1/e==-sa?"-0":t}function Pn(e){if(null!=e){try{return Ws.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function In(e){if(e instanceof H)return e.clone();var t=new L(e.__wrapped__,e.__chain__);return t.__actions__=Lt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function jn(e,t,n){t=(n?Cn(e,t,n):t===Ro)?1:pu(Ji(t),0);var r=e?e.length:0;if(!r||1>t)return[];for(var i=0,o=0,a=Array(su(r/t));r>i;)a[o++]=pt(e,i,i+=t);return a}function Vn(e){for(var t=-1,n=e?e.length:0,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i}function Rn(){for(var e=arguments.length,t=Array(e?e-1:0),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return e?f($l(n)?Lt(n):[n],Ne(t,1)):[]}function Un(e,t,n){var r=e?e.length:0;return r?(t=n||t===Ro?1:Ji(t),pt(e,0>t?0:t,r)):[]}function Ln(e,t,n){var r=e?e.length:0;return r?(t=n||t===Ro?1:Ji(t),t=r-t,pt(e,0,0>t?0:t)):[]}function Hn(e,t){return e&&e.length?xt(e,un(t,3),!0,!0):[]}function zn(e,t){return e&&e.length?xt(e,un(t,3),!0):[]}function qn(e,t,n,r){var i=e?e.length:0;return i?(n&&"number"!=typeof n&&Cn(e,t,n)&&(n=0,r=i),Me(e,t,n,r)):[]}function Bn(e,t){return e&&e.length?m(e,un(t,3)):-1}function Wn(e,t){return e&&e.length?m(e,un(t,3),!0):-1}function Yn(e){var t=e?e.length:0;return t?Ne(e,1):[]}function Xn(e){var t=e?e.length:0;return t?Ne(e,sa):[]}function Gn(e,t){var n=e?e.length:0;return n?(t=t===Ro?1:Ji(t),Ne(e,t)):[]}function Kn(e){for(var t=-1,n=e?e.length:0,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function Jn(e){return e&&e.length?e[0]:Ro}function Zn(e,t,n){var r=e?e.length:0;return r?(n=Ji(n),0>n&&(n=pu(r+n,0)),v(e,t,n)):-1}function Qn(e){return Ln(e,1)}function er(e,t){return e?fu.call(e,t):""}function tr(e){var t=e?e.length:0;return t?e[t-1]:Ro}function nr(e,t,n){var r=e?e.length:0;if(!r)return-1;var i=r;if(n!==Ro&&(i=Ji(n),i=(0>i?pu(r+i,0):hu(i,r-1))+1),t!==t)return T(e,i,!0);for(;i--;)if(e[i]===t)return i;return-1}function rr(e,t){return e&&e.length?rt(e,Ji(t)):Ro}function ir(e,t){return e&&e.length&&t&&t.length?lt(e,t):e}function or(e,t,n){return e&&e.length&&t&&t.length?lt(e,t,un(n)):e}function ar(e,t,n){return e&&e.length&&t&&t.length?lt(e,t,Ro,n):e}function sr(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=un(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return ct(e,i),n}function ur(e){return e?mu.call(e):e}function lr(e,t,n){var r=e?e.length:0;return r?(n&&"number"!=typeof n&&Cn(e,t,n)?(t=0,n=r):(t=null==t?0:Ji(t),n=n===Ro?r:Ji(n)),pt(e,t,n)):[]}function cr(e,t){return gt(e,t)}function fr(e,t,n){return mt(e,t,un(n))}function dr(e,t){var n=e?e.length:0;if(n){var r=gt(e,t);if(n>r&&pi(e[r],t))return r}return-1}function pr(e,t){return gt(e,t,!0)}function hr(e,t,n){return mt(e,t,un(n),!0)}function gr(e,t){var n=e?e.length:0;if(n){var r=gt(e,t,!0)-1;if(pi(e[r],t))return r}return-1}function mr(e){return e&&e.length?vt(e):[]}function vr(e,t){return e&&e.length?vt(e,un(t)):[]}function $r(e){return Un(e,1)}function yr(e,t,n){return e&&e.length?(t=n||t===Ro?1:Ji(t),pt(e,0,0>t?0:t)):[]}function br(e,t,n){var r=e?e.length:0;return r?(t=n||t===Ro?1:Ji(t),t=r-t,pt(e,0>t?0:t,r)):[]}function wr(e,t){return e&&e.length?xt(e,un(t,3),!1,!0):[]}function xr(e,t){return e&&e.length?xt(e,un(t,3)):[]}function Sr(e){return e&&e.length?yt(e):[]}function Cr(e,t){return e&&e.length?yt(e,un(t)):[]}function _r(e,t){return e&&e.length?yt(e,Ro,t):[]}function kr(e){if(!e||!e.length)return[];var t=0;return e=s(e,function(e){return vi(e)?(t=pu(e.length,t),!0):Ro}),w(t,function(t){return c(e,st(t))})}function Ar(e,t){if(!e||!e.length)return[];var r=kr(e);return null==t?r:c(r,function(e){return n(t,Ro,e)})}function Er(e,t){return _t(e||[],t||[],we)}function Dr(e,t){return _t(e||[],t||[],dt)}function Tr(e){var t=R(e);return t.__chain__=!0,t}function Mr(e,t){return t(e),e}function Or(e,t){return t(e)}function Nr(){return Tr(this)}function Fr(){return new L(this.value(),this.__chain__)}function Pr(){this.__values__===Ro&&(this.__values__=Gi(this.value()));var e=this.__index__>=this.__values__.length,t=e?Ro:this.__values__[this.__index__++];return{done:e,value:t}}function Ir(){return this}function jr(e){for(var t,n=this;n instanceof U;){var r=In(n);r.__index__=0,r.__values__=Ro,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function Vr(){var e=this.__wrapped__;if(e instanceof H){var t=e;return this.__actions__.length&&(t=new H(this)),t=t.reverse(),t.__actions__.push({func:Or,args:[ur],thisArg:Ro}),new L(t,this.__chain__)}return this.thru(ur)}function Rr(){return St(this.__wrapped__,this.__actions__)}function Ur(e,t,n){var r=$l(e)?a:Te;return n&&Cn(e,t,n)&&(t=Ro),r(e,un(t,3))}function Lr(e,t){var n=$l(e)?s:Oe;return n(e,un(t,3))}function Hr(e,t){if(t=un(t,3),$l(e)){var n=m(e,t);return n>-1?e[n]:Ro}return g(e,t,Fu)}function zr(e,t){if(t=un(t,3),$l(e)){var n=m(e,t,!0);return n>-1?e[n]:Ro}return g(e,t,Pu)}function qr(e,t){return Ne(Kr(e,t),1)}function Br(e,t){return Ne(Kr(e,t),sa)}function Wr(e,t,n){return n=n===Ro?1:Ji(n),Ne(Kr(e,t),n)}function Yr(e,t){var n=$l(e)?i:Fu;return n(e,un(t,3))}function Xr(e,t){var n=$l(e)?o:Pu;return n(e,un(t,3))}function Gr(e,t,n,r){e=mi(e)?e:Do(e),n=n&&!r?Ji(n):0;var i=e.length;return 0>n&&(n=pu(i+n,0)),zi(e)?i>=n&&e.indexOf(t,n)>-1:!!i&&v(e,t,n)>-1}function Kr(e,t){var n=$l(e)?c:Ze;return n(e,un(t,3))}function Jr(e,t,n,r){return null==e?[]:($l(t)||(t=null==t?[]:[t]),n=r?Ro:n,$l(n)||(n=null==n?[]:[n]),it(e,t,n))}function Zr(e,t,n){var r=$l(e)?d:y,i=3>arguments.length;return r(e,un(t,4),n,i,Fu)}function Qr(e,t,n){var r=$l(e)?p:y,i=3>arguments.length;return r(e,un(t,4),n,i,Pu)}function ei(e,t){var n=$l(e)?s:Oe;return t=un(t,3),n(e,function(e,n,r){return!t(e,n,r)})}function ti(e){var t=mi(e)?e:Do(e),n=t.length;return n>0?t[ft(0,n-1)]:Ro}function ni(e,t,n){var r=-1,i=Gi(e),o=i.length,a=o-1;for(t=(n?Cn(e,t,n):t===Ro)?1:ke(Ji(t),0,o);++r<t;){var s=ft(r,a),u=i[s];i[s]=i[r],i[r]=u}return i.length=t,i}function ri(e){return ni(e,fa)}function ii(e){if(null==e)return 0;if(mi(e)){var t=e.length;return t&&zi(e)?j(e):t}if(Ti(e)){var n=hn(e);if(n==wa||n==ka)return e.size}return mo(e).length}function oi(e,t,n){var r=$l(e)?h:ht;return n&&Cn(e,t,n)&&(t=Ro),r(e,un(t,3))}function ai(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(Ho);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(ai.Cache||ie),n}function si(e,t){if("function"!=typeof e)throw new TypeError(Ho);return t=pu(t===Ro?e.length-1:Ji(t),0),function(){for(var r=arguments,i=-1,o=pu(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,r[0],a);case 2:return e.call(this,r[0],r[1],a)}var s=Array(t+1);for(i=-1;++i<t;)s[i]=r[i];return s[t]=a,n(e,this,s)}}function ui(){if(!arguments.length)return[];var e=arguments[0];return $l(e)?e:[e]}function li(e){return Ae(e,!1,!0)}function ci(e,t){return Ae(e,!1,!0,t)}function fi(e){return Ae(e,!0,!0)}function di(e,t){return Ae(e,!0,!0,t)}function pi(e,t){return e===t||e!==e&&t!==t}function hi(e){return vi(e)&&Ys.call(e,"callee")&&(!ou.call(e,"callee")||Gs.call(e)==ha)}function gi(e){return Ti(e)&&Gs.call(e)==Ma}function mi(e){return null!=e&&Ei(Lu(e))&&!ki(e)}function vi(e){return Ti(e)&&mi(e)}function $i(e){return e===!0||e===!1||Ti(e)&&Gs.call(e)==ma}function yi(e){return Ti(e)&&Gs.call(e)==va}function bi(e){return!!e&&1===e.nodeType&&Ti(e)&&!Ri(e)}function wi(e){if(mi(e)&&($l(e)||zi(e)||ki(e.splice)||hi(e)||yl(e)))return!e.length;if(Ti(e)){var t=hn(e);if(t==wa||t==ka)return!e.size}for(var n in e)if(Ys.call(e,n))return!1;return!(Cu&&mo(e).length)}function xi(e,t){return Be(e,t)}function Si(e,t,n){n="function"==typeof n?n:Ro;var r=n?n(e,t):Ro;return r===Ro?Be(e,t,n):!!r}function Ci(e){return Ti(e)?Gs.call(e)==$a||"string"==typeof e.message&&"string"==typeof e.name:!1}function _i(e){return"number"==typeof e&&cu(e)}function ki(e){var t=Di(e)?Gs.call(e):"";return t==ya||t==ba}function Ai(e){return"number"==typeof e&&e==Ji(e)}function Ei(e){return"number"==typeof e&&e>-1&&e%1==0&&ua>=e}function Di(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ti(e){return!!e&&"object"==typeof e}function Mi(e){return Ti(e)&&hn(e)==wa}function Oi(e,t){return e===t||Ye(e,t,cn(t))}function Ni(e,t,n){return n="function"==typeof n?n:Ro,Ye(e,t,cn(t),n)}function Fi(e){return Vi(e)&&e!=+e}function Pi(e){if(!Di(e))return!1;var t=ki(e)||M(e)?Ks:as;return t.test(Pn(e))}function Ii(e){return null===e}function ji(e){return null==e}function Vi(e){return"number"==typeof e||Ti(e)&&Gs.call(e)==xa}function Ri(e){if(!Ti(e)||Gs.call(e)!=Sa||M(e))return!1;var t=dn(e);if(null===t)return!0;var n=Ys.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ws.call(n)==Xs}function Ui(e){return Di(e)&&Gs.call(e)==_a}function Li(e){return Ai(e)&&e>=-ua&&ua>=e}function Hi(e){return Ti(e)&&hn(e)==ka}function zi(e){return"string"==typeof e||!$l(e)&&Ti(e)&&Gs.call(e)==Aa}function qi(e){return"symbol"==typeof e||Ti(e)&&Gs.call(e)==Ea}function Bi(e){return Ti(e)&&Ei(e.length)&&!!Ts[Gs.call(e)]}function Wi(e){return e===Ro}function Yi(e){return Ti(e)&&hn(e)==Da}function Xi(e){return Ti(e)&&Gs.call(e)==Ta}function Gi(e){if(!e)return[];if(mi(e))return zi(e)?V(e):Lt(e);if(ru&&e[ru])return O(e[ru]());var t=hn(e),n=t==wa?N:t==ka?P:Do;return n(e)}function Ki(e){if(!e)return 0===e?e:0;if(e=Qi(e),e===sa||e===-sa){var t=0>e?-1:1;return t*la}return e===e?e:0}function Ji(e){var t=Ki(e),n=t%1;return t===t?n?t-n:t:0}function Zi(e){return e?ke(Ji(e),0,fa):0}function Qi(e){if("number"==typeof e)return e;if(qi(e))return ca;if(Di(e)){var t=ki(e.valueOf)?e.valueOf():e;e=Di(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(es,"");var n=os.test(e);return n||ss.test(e)?Ps(e.slice(2),n?2:8):is.test(e)?ca:+e}function eo(e){return Ht(e,vo(e))}function to(e){return ke(Ji(e),-ua,ua)}function no(e){return null==e?"":$t(e)}function ro(e,t){var n=Ee(e);return t?Ce(n,t):n}function io(e,t){
+return g(e,un(t,3),Fe,!0)}function oo(e,t){return g(e,un(t,3),Pe,!0)}function ao(e,t){return null==e?e:Iu(e,un(t,3),vo)}function so(e,t){return null==e?e:ju(e,un(t,3),vo)}function uo(e,t){return e&&Fe(e,un(t,3))}function lo(e,t){return e&&Pe(e,un(t,3))}function co(e){return null==e?[]:Ie(e,mo(e))}function fo(e){return null==e?[]:Ie(e,vo(e))}function po(e,t,n){var r=null==e?Ro:je(e,t);return r===Ro?n:r}function ho(e,t){return null!=e&&mn(e,t,Ue)}function go(e,t){return null!=e&&mn(e,t,Le)}function mo(e){var t=En(e);if(!t&&!mi(e))return Ge(e);var n=bn(e),r=!!n,i=n||[],o=i.length;for(var a in e)!Ue(e,a)||r&&("length"==a||Sn(a,o))||t&&"constructor"==a||i.push(a);return i}function vo(e){for(var t=-1,n=En(e),r=Ke(e),i=r.length,o=bn(e),a=!!o,s=o||[],u=s.length;++t<i;){var l=r[t];a&&("length"==l||Sn(l,u))||"constructor"==l&&(n||!Ys.call(e,l))||s.push(l)}return s}function $o(e,t){var n={};return t=un(t,3),Fe(e,function(e,r,i){n[t(e,r,i)]=e}),n}function yo(e,t){var n={};return t=un(t,3),Fe(e,function(e,r,i){n[r]=t(e,r,i)}),n}function bo(e,t){return t=un(t),at(e,function(e,n){return!t(e,n)})}function wo(e,t){return null==e?{}:at(e,un(t))}function xo(e,t,n){t=_n(t,e)?[t]:Et(t);var r=-1,i=t.length;for(i||(e=Ro,i=1);++r<i;){var o=null==e?Ro:e[Fn(t[r])];o===Ro&&(r=i,o=n),e=ki(o)?o.call(e):o}return e}function So(e,t,n){return null==e?e:dt(e,t,n)}function Co(e,t,n,r){return r="function"==typeof r?r:Ro,null==e?e:dt(e,t,n,r)}function _o(e,t,n){var r=$l(e)||Bi(e);if(t=un(t,4),null==n)if(r||Di(e)){var o=e.constructor;n=r?$l(e)?new o:[]:ki(o)?Ee(dn(e)):{}}else n={};return(r?i:Fe)(e,function(e,r,i){return t(n,e,r,i)}),n}function ko(e,t){return null==e?!0:bt(e,t)}function Ao(e,t,n){return null==e?e:wt(e,t,At(n))}function Eo(e,t,n,r){return r="function"==typeof r?r:Ro,null==e?e:wt(e,t,At(n),r)}function Do(e){return e?C(e,mo(e)):[]}function To(e){return null==e?[]:C(e,vo(e))}function Mo(e){return e=no(e),e&&Wa.test(e)?e.replace(Ba,E):e}function Oo(e,t,n){var r=R.templateSettings;n&&Cn(e,t,n)&&(t=Ro),e=no(e),t=Cl({},t,r,ye);var i,o,a=Cl({},t.imports,r.imports,ye),s=mo(a),u=C(a,s),l=0,c=t.interpolate||ls,f="__p+='",d=RegExp((t.escape||ls).source+"|"+c.source+"|"+(c===Ga?ns:ls).source+"|"+(t.evaluate||ls).source+"|$","g"),p="sourceURL"in t?"//# sourceURL="+t.sourceURL+"\n":"";e.replace(d,function(t,n,r,a,s,u){return r||(r=a),f+=e.slice(l,u).replace(cs,D),n&&(i=!0,f+="'+__e("+n+")+'"),s&&(o=!0,f+="';"+s+";\n__p+='"),r&&(f+="'+((__t=("+r+"))==null?'':__t)+'"),l=u+t.length,t}),f+="';";var h=t.variable;h||(f="with(obj){"+f+"}"),f=(o?f.replace(Ha,""):f).replace(za,"$1").replace(qa,"$1;"),f="function("+(h||"obj")+"){"+(h?"":"obj||(obj={});")+"var __t,__p=''"+(i?",__e=_.escape":"")+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+f+"return __p}";var g=Vl(function(){return Function(s,p+"return "+f).apply(Ro,u)});if(g.source=f,Ci(g))throw g;return g}function No(e){return function(){return e}}function Fo(e){return e}function Po(e){return Xe("function"==typeof e?e:Ae(e,!0))}function Io(e,t,n){var r=mo(t),o=Ie(t,r);null!=n||Di(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Ie(t,mo(t)));var a=!(Di(n)&&"chain"in n&&!n.chain),s=ki(e);return i(o,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),i=n.__actions__=Lt(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,f([this.value()],arguments))})}),e}function jo(){}function Vo(e){return _n(e)?st(Fn(e)):ut(e)}var Ro,Uo="4.12.0",Lo=200,Ho="Expected a function",zo="__lodash_hash_undefined__",qo="__lodash_placeholder__",Bo=1,Wo=2,Yo=4,Xo=8,Go=16,Ko=32,Jo=64,Zo=128,Qo=512,ea=1,ta=2,na=150,ra=16,ia=1,oa=2,aa=3,sa=1/0,ua=9007199254740991,la=1.7976931348623157e308,ca=NaN,fa=4294967295,da=fa-1,pa=fa>>>1,ha="[object Arguments]",ga="[object Array]",ma="[object Boolean]",va="[object Date]",$a="[object Error]",ya="[object Function]",ba="[object GeneratorFunction]",wa="[object Map]",xa="[object Number]",Sa="[object Object]",Ca="[object Promise]",_a="[object RegExp]",ka="[object Set]",Aa="[object String]",Ea="[object Symbol]",Da="[object WeakMap]",Ta="[object WeakSet]",Ma="[object ArrayBuffer]",Oa="[object DataView]",Na="[object Float32Array]",Fa="[object Float64Array]",Pa="[object Int8Array]",Ia="[object Int16Array]",ja="[object Int32Array]",Va="[object Uint8Array]",Ra="[object Uint8ClampedArray]",Ua="[object Uint16Array]",La="[object Uint32Array]",Ha=/\b__p\+='';/g,za=/\b(__p\+=)''\+/g,qa=/(__e\(.*?\)|\b__t\))\+'';/g,Ba=/[&<>"'`]/g,Wa=RegExp(Ba.source),Ya=/<%-([\s\S]+?)%>/g,Xa=/<%([\s\S]+?)%>/g,Ga=/<%=([\s\S]+?)%>/g,Ka=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ja=/^\w*$/,Za=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,Qa=/[\\^$.*+?()[\]{}|]/g,es=/^\s+|\s+$/g,ts=/\\(\\)?/g,ns=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rs=/\w*$/,is=/^[-+]0x[0-9a-f]+$/i,os=/^0b[01]+$/i,as=/^\[object .+?Constructor\]$/,ss=/^0o[0-7]+$/i,us=/^(?:0|[1-9]\d*)$/,ls=/($^)/,cs=/['\n\r\u2028\u2029\\]/g,fs="\\ud800-\\udfff",ds="\\u0300-\\u036f\\ufe20-\\ufe23",ps="\\u20d0-\\u20f0",hs="\\ufe0e\\ufe0f",gs="["+fs+"]",ms="["+ds+ps+"]",vs="\\ud83c[\\udffb-\\udfff]",$s="(?:"+ms+"|"+vs+")",ys="[^"+fs+"]",bs="(?:\\ud83c[\\udde6-\\uddff]){2}",ws="[\\ud800-\\udbff][\\udc00-\\udfff]",xs="\\u200d",Ss=$s+"?",Cs="["+hs+"]?",_s="(?:"+xs+"(?:"+[ys,bs,ws].join("|")+")"+Cs+Ss+")*",ks=Cs+Ss+_s,As="(?:"+[ys+ms+"?",ms,bs,ws,gs].join("|")+")",Es=RegExp(vs+"(?="+vs+")|"+As+ks,"g"),Ds=RegExp("["+xs+fs+ds+ps+hs+"]"),Ts={};Ts[Na]=Ts[Fa]=Ts[Pa]=Ts[Ia]=Ts[ja]=Ts[Va]=Ts[Ra]=Ts[Ua]=Ts[La]=!0,Ts[ha]=Ts[ga]=Ts[Ma]=Ts[ma]=Ts[Oa]=Ts[va]=Ts[$a]=Ts[ya]=Ts[wa]=Ts[xa]=Ts[Sa]=Ts[_a]=Ts[ka]=Ts[Aa]=Ts[Da]=!1;var Ms={};Ms[ha]=Ms[ga]=Ms[Ma]=Ms[Oa]=Ms[ma]=Ms[va]=Ms[Na]=Ms[Fa]=Ms[Pa]=Ms[Ia]=Ms[ja]=Ms[wa]=Ms[xa]=Ms[Sa]=Ms[_a]=Ms[ka]=Ms[Aa]=Ms[Ea]=Ms[Va]=Ms[Ra]=Ms[Ua]=Ms[La]=!0,Ms[$a]=Ms[ya]=Ms[Da]=!1;var Os={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Ns={"function":!0,object:!0},Fs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ps=parseInt,Is=Ns[typeof exports]&&exports&&!exports.nodeType?exports:Ro,js=Ns[typeof module]&&module&&!module.nodeType?module:Ro,Vs=js&&js.exports===Is?Is:Ro,Rs=k(Is&&js&&"object"==typeof global&&global),Us=k(Ns[typeof self]&&self),Ls=k(Ns[typeof window]&&window),Hs=k(Ns[typeof this]&&this),zs=Rs||Ls!==(Hs&&Hs.window)&&Ls||Us||Hs||Function("return this")(),qs=Array.prototype,Bs=Object.prototype,Ws=Function.prototype.toString,Ys=Bs.hasOwnProperty,Xs=Ws.call(Object),Gs=Bs.toString,Ks=RegExp("^"+Ws.call(Ys).replace(Qa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Js=Vs?zs.Buffer:Ro,Zs=zs.Reflect,Qs=zs.Symbol,eu=zs.Uint8Array,tu=Zs?Zs.enumerate:Ro,nu=Object.getOwnPropertySymbols,ru="symbol"==typeof(ru=Qs&&Qs.iterator)?ru:Ro,iu=Object.create,ou=Bs.propertyIsEnumerable,au=qs.splice,su=Math.ceil,uu=Math.floor,lu=Object.getPrototypeOf,cu=zs.isFinite,fu=qs.join,du=Object.keys,pu=Math.max,hu=Math.min,gu=Math.random,mu=qs.reverse,vu=fn(zs,"DataView"),$u=fn(zs,"Map"),yu=fn(zs,"Promise"),bu=fn(zs,"Set"),wu=fn(zs,"WeakMap"),xu=fn(Object,"create"),Su=wu&&new wu,Cu=!ou.call({valueOf:1},"valueOf"),_u={},ku=Pn(vu),Au=Pn($u),Eu=Pn(yu),Du=Pn(bu),Tu=Pn(wu),Mu=Qs?Qs.prototype:Ro,Ou=Mu?Mu.valueOf:Ro,Nu=Mu?Mu.toString:Ro;R.templateSettings={escape:Ya,evaluate:Xa,interpolate:Ga,variable:"",imports:{_:R}},R.prototype=U.prototype,R.prototype.constructor=R,L.prototype=Ee(U.prototype),L.prototype.constructor=L,H.prototype=Ee(U.prototype),H.prototype.constructor=H,W.prototype.clear=Y,W.prototype["delete"]=X,W.prototype.get=G,W.prototype.has=K,W.prototype.set=J,Z.prototype.clear=Q,Z.prototype["delete"]=ee,Z.prototype.get=te,Z.prototype.has=ne,Z.prototype.set=re,ie.prototype.clear=oe,ie.prototype["delete"]=ae,ie.prototype.get=se,ie.prototype.has=ue,ie.prototype.set=le,ce.prototype.add=ce.prototype.push=fe,ce.prototype.has=de,pe.prototype.clear=he,pe.prototype["delete"]=ge,pe.prototype.get=me,pe.prototype.has=ve,pe.prototype.set=$e;var Fu=Wt(Fe),Pu=Wt(Pe,!0),Iu=Yt(),ju=Yt(!0);tu&&!ou.call({valueOf:1},"valueOf")&&(Ke=function(e){return O(tu(e))});var Vu=Su?function(e,t){return Su.set(e,t),e}:Fo,Ru=bu&&1/P(new bu([,-0]))[1]==sa?function(e){return new bu(e)}:jo,Uu=Su?function(e){return Su.get(e)}:jo,Lu=st("length");nu||(pn=function(){return[]});var Hu=nu?function(e){for(var t=[];e;)f(t,pn(e)),e=dn(e);return t}:pn;(vu&&hn(new vu(new ArrayBuffer(1)))!=Oa||$u&&hn(new $u)!=wa||yu&&hn(yu.resolve())!=Ca||bu&&hn(new bu)!=ka||wu&&hn(new wu)!=Da)&&(hn=function(e){var t=Gs.call(e),n=t==Sa?e.constructor:Ro,r=n?Pn(n):Ro;if(r)switch(r){case ku:return Oa;case Au:return wa;case Eu:return Ca;case Du:return ka;case Tu:return Da}return t});var zu=function(){var e=0,t=0;return function(n,r){var i=gl(),o=ra-(i-t);if(t=i,o>0){if(++e>=na)return n}else e=0;return Vu(n,r)}}(),qu=ai(function(e){var t=[];return no(e).replace(Za,function(e,n,r,i){t.push(r?i.replace(ts,"$1"):n||e)}),t}),Bu=si(function(e,t){return vi(e)?De(e,Ne(t,1,vi,!0)):[]}),Wu=si(function(e,t){var n=tr(t);return vi(n)&&(n=Ro),vi(e)?De(e,Ne(t,1,vi,!0),un(n)):[]}),Yu=si(function(e,t){var n=tr(t);return vi(n)&&(n=Ro),vi(e)?De(e,Ne(t,1,vi,!0),Ro,n):[]}),Xu=si(function(e){var t=c(e,kt);return t.length&&t[0]===e[0]?He(t):[]}),Gu=si(function(e){var t=tr(e),n=c(e,kt);return t===tr(n)?t=Ro:n.pop(),n.length&&n[0]===e[0]?He(n,un(t)):[]}),Ku=si(function(e){var t=tr(e),n=c(e,kt);return t===tr(n)?t=Ro:n.pop(),n.length&&n[0]===e[0]?He(n,Ro,t):[]}),Ju=si(ir),Zu=si(function(e,t){t=Ne(t,1);var n=e?e.length:0,r=_e(e,t);return ct(e,c(t,function(e){return Sn(e,n)?+e:e}).sort(jt)),r}),Qu=si(function(e){return yt(Ne(e,1,vi,!0))}),el=si(function(e){var t=tr(e);return vi(t)&&(t=Ro),yt(Ne(e,1,vi,!0),un(t))}),tl=si(function(e){var t=tr(e);return vi(t)&&(t=Ro),yt(Ne(e,1,vi,!0),Ro,t)}),nl=si(function(e,t){return vi(e)?De(e,t):[]}),rl=si(function(e){return Ct(s(e,vi))}),il=si(function(e){var t=tr(e);return vi(t)&&(t=Ro),Ct(s(e,vi),un(t))}),ol=si(function(e){var t=tr(e);return vi(t)&&(t=Ro),Ct(s(e,vi),Ro,t)}),al=si(kr),sl=si(function(e){var t=e.length,n=t>1?e[t-1]:Ro;return n="function"==typeof n?(e.pop(),n):Ro,Ar(e,n)}),ul=si(function(e){e=Ne(e,1);var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return _e(t,e)};return!(t>1||this.__actions__.length)&&r instanceof H&&Sn(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Or,args:[i],thisArg:Ro}),new L(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(Ro),e})):this.thru(i)}),ll=qt(function(e,t,n){Ys.call(e,n)?++e[n]:e[n]=1}),cl=qt(function(e,t,n){Ys.call(e,n)?e[n].push(t):e[n]=[t]}),fl=si(function(e,t,r){var i=-1,o="function"==typeof t,a=_n(t),s=mi(e)?Array(e.length):[];return Fu(e,function(e){var u=o?t:a&&null!=e?e[t]:Ro;s[++i]=u?n(u,e,r):qe(e,t,r)}),s}),dl=qt(function(e,t,n){e[n]=t}),pl=qt(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),hl=si(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Cn(e,t[0],t[1])?t=[]:n>2&&Cn(t[0],t[1],t[2])&&(t=[t[0]]),t=1==t.length&&$l(t[0])?t[0]:Ne(t,1,xn),it(e,t,[])}),gl=Date.now;ai.Cache=ie;var ml=Jt(Re),vl=Jt(function(e,t){return e>=t}),$l=Array.isArray,yl=Js?function(e){return e instanceof Js}:No(!1),bl=Jt(Je),wl=Jt(function(e,t){return t>=e}),xl=Bt(function(e,t){if(Cu||En(t)||mi(t))return Ht(t,mo(t),e),Ro;for(var n in t)Ys.call(t,n)&&we(e,n,t[n])}),Sl=Bt(function(e,t){if(Cu||En(t)||mi(t))return Ht(t,vo(t),e),Ro;for(var n in t)we(e,n,t[n])}),Cl=Bt(function(e,t,n,r){Ht(t,vo(t),e,r)}),_l=Bt(function(e,t,n,r){Ht(t,mo(t),e,r)}),kl=si(function(e,t){return _e(e,Ne(t,1))}),Al=si(function(e){return e.push(Ro,ye),n(Cl,Ro,e)}),El=si(function(e){return e.push(Ro,Mn),n(Nl,Ro,e)}),Dl=Kt(function(e,t,n){e[t]=n},No(Fo)),Tl=Kt(function(e,t,n){Ys.call(e,t)?e[t].push(n):e[t]=[n]},un),Ml=si(qe),Ol=Bt(function(e,t,n){tt(e,t,n)}),Nl=Bt(function(e,t,n,r){tt(e,t,n,r)}),Fl=si(function(e,t){return null==e?{}:(t=c(Ne(t,1),Fn),ot(e,De(on(e),t)))}),Pl=si(function(e,t){return null==e?{}:ot(e,c(Ne(t,1),Fn))}),Il=Qt(mo),jl=Qt(vo),Vl=si(function(e,t){try{return n(e,Ro,t)}catch(r){return Ci(r)?r:Error(r)}});R.assign=xl,R.assignIn=Sl,R.assignInWith=Cl,R.assignWith=_l,R.at=kl,R.castArray=ui,R.chain=Tr,R.chunk=jn,R.compact=Vn,R.concat=Rn,R.constant=No,R.countBy=ll,R.create=ro,R.defaults=Al,R.defaultsDeep=El,R.difference=Bu,R.differenceBy=Wu,R.differenceWith=Yu,R.drop=Un,R.dropRight=Ln,R.dropRightWhile=Hn,R.dropWhile=zn,R.fill=qn,R.filter=Lr,R.flatMap=qr,R.flatMapDeep=Br,R.flatMapDepth=Wr,R.flatten=Yn,R.flattenDeep=Xn,R.flattenDepth=Gn,R.fromPairs=Kn,R.functions=co,R.functionsIn=fo,R.groupBy=cl,R.initial=Qn,R.intersection=Xu,R.intersectionBy=Gu,R.intersectionWith=Ku,R.invert=Dl,R.invertBy=Tl,R.invokeMap=fl,R.iteratee=Po,R.keyBy=dl,R.keys=mo,R.keysIn=vo,R.map=Kr,R.mapKeys=$o,R.mapValues=yo,R.memoize=ai,R.merge=Ol,R.mergeWith=Nl,R.mixin=Io,R.omit=Fl,R.omitBy=bo,R.orderBy=Jr,R.partition=pl,R.pick=Pl,R.pickBy=wo,R.property=Vo,R.pull=Ju,R.pullAll=ir,R.pullAllBy=or,R.pullAllWith=ar,R.pullAt=Zu,R.reject=ei,R.remove=sr,R.rest=si,R.reverse=ur,R.sampleSize=ni,R.set=So,R.setWith=Co,R.shuffle=ri,R.slice=lr,R.sortBy=hl,R.sortedUniq=mr,R.sortedUniqBy=vr,R.tail=$r,R.take=yr,R.takeRight=br,R.takeRightWhile=wr,R.takeWhile=xr,R.tap=Mr,R.thru=Or,R.toArray=Gi,R.toPairs=Il,R.toPairsIn=jl,R.toPlainObject=eo,R.transform=_o,R.union=Qu,R.unionBy=el,R.unionWith=tl,R.uniq=Sr,R.uniqBy=Cr,R.uniqWith=_r,R.unset=ko,R.unzip=kr,R.unzipWith=Ar,R.update=Ao,R.updateWith=Eo,R.values=Do,R.valuesIn=To,R.without=nl,R.xor=rl,R.xorBy=il,R.xorWith=ol,R.zip=al,R.zipObject=Er,R.zipObjectDeep=Dr,R.zipWith=sl,R.entries=Il,R.entriesIn=jl,R.extend=Sl,R.extendWith=Cl,Io(R,R),R.attempt=Vl,R.clone=li,R.cloneDeep=fi,R.cloneDeepWith=di,R.cloneWith=ci,R.eq=pi,R.escape=Mo,R.every=Ur,R.find=Hr,R.findIndex=Bn,R.findKey=io,R.findLast=zr,R.findLastIndex=Wn,R.findLastKey=oo,R.forEach=Yr,R.forEachRight=Xr,R.forIn=ao,R.forInRight=so,R.forOwn=uo,R.forOwnRight=lo,R.get=po,R.gt=ml,R.gte=vl,R.has=ho,R.hasIn=go,R.head=Jn,R.identity=Fo,R.includes=Gr,R.indexOf=Zn,R.invoke=Ml,R.isArguments=hi,R.isArray=$l,R.isArrayBuffer=gi,R.isArrayLike=mi,R.isArrayLikeObject=vi,R.isBoolean=$i,R.isBuffer=yl,R.isDate=yi,R.isElement=bi,R.isEmpty=wi,R.isEqual=xi,R.isEqualWith=Si,R.isError=Ci,R.isFinite=_i,R.isFunction=ki,R.isInteger=Ai,R.isLength=Ei,R.isMap=Mi,R.isMatch=Oi,R.isMatchWith=Ni,R.isNaN=Fi,R.isNative=Pi,R.isNil=ji,R.isNull=Ii,R.isNumber=Vi,R.isObject=Di,R.isObjectLike=Ti,R.isPlainObject=Ri,R.isRegExp=Ui,R.isSafeInteger=Li,R.isSet=Hi,R.isString=zi,R.isSymbol=qi,R.isTypedArray=Bi,R.isUndefined=Wi,R.isWeakMap=Yi,R.isWeakSet=Xi,R.join=er,R.last=tr,R.lastIndexOf=nr,R.lt=bl,R.lte=wl,R.nth=rr,R.noop=jo,R.now=gl,R.reduce=Zr,R.reduceRight=Qr,R.result=xo,R.sample=ti,R.size=ii,R.some=oi,R.sortedIndex=cr,R.sortedIndexBy=fr,R.sortedIndexOf=dr,R.sortedLastIndex=pr,R.sortedLastIndexBy=hr,R.sortedLastIndexOf=gr,R.template=Oo,R.toFinite=Ki,R.toInteger=Ji,R.toLength=Zi,R.toNumber=Qi,R.toSafeInteger=to,R.toString=no,R.each=Yr,R.eachRight=Xr,R.first=Jn,Io(R,function(){var e={};return Fe(R,function(t,n){Ys.call(R.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),R.VERSION=Uo,i(["drop","take"],function(e,t){H.prototype[e]=function(n){var r=this.__filtered__;if(r&&!t)return new H(this);n=n===Ro?1:pu(Ji(n),0);var i=this.clone();return r?i.__takeCount__=hu(n,i.__takeCount__):i.__views__.push({size:hu(n,fa),type:e+(0>i.__dir__?"Right":"")}),i},H.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),i(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==ia||n==aa;H.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:un(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),i(["head","last"],function(e,t){var n="take"+(t?"Right":"");H.prototype[e]=function(){return this[n](1).value()[0]}}),i(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");H.prototype[e]=function(){return this.__filtered__?new H(this):this[n](1)}}),H.prototype.compact=function(){return this.filter(Fo)},H.prototype.find=function(e){return this.filter(e).head()},H.prototype.findLast=function(e){return this.reverse().find(e)},H.prototype.invokeMap=si(function(e,t){return"function"==typeof e?new H(this):this.map(function(n){return qe(n,e,t)})}),H.prototype.reject=function(e){return e=un(e,3),this.filter(function(t){return!e(t)})},H.prototype.slice=function(e,t){e=Ji(e);var n=this;return n.__filtered__&&(e>0||0>t)?new H(n):(0>e?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==Ro&&(t=Ji(t),n=0>t?n.dropRight(-t):n.take(t-e)),n)},H.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},H.prototype.toArray=function(){return this.take(fa)},Fe(H.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=R[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(R.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof H,u=a[0],l=s||$l(t),c=function(e){var t=i.apply(R,f([e],a));return r&&d?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var d=this.__chain__,p=!!this.__actions__.length,h=o&&!d,g=s&&!p;if(!o&&l){t=g?t:new H(this);var m=e.apply(t,a);return m.__actions__.push({func:Or,args:[c],thisArg:Ro}),new L(m,d)}return h&&g?e.apply(this,a):(m=this.thru(c),h?r?m.value()[0]:m.value():m)})}),i(["pop","push","shift","sort","splice","unshift"],function(e){var t=qs[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);R.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply($l(i)?i:[],e)}return this[n](function(n){return t.apply($l(n)?n:[],e)})}}),Fe(H.prototype,function(e,t){var n=R[t];if(n){var r=n.name+"",i=_u[r]||(_u[r]=[]);i.push({name:t,func:n})}}),_u[Gt(Ro,Wo).name]=[{name:"wrapper",func:Ro}],H.prototype.clone=z,H.prototype.reverse=q,H.prototype.value=B,R.prototype.at=ul,R.prototype.chain=Nr,R.prototype.commit=Fr,R.prototype.next=Pr,R.prototype.plant=jr,R.prototype.reverse=Vr,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=Rr,ru&&(R.prototype[ru]=Ir),(Ls||Us||{})._=R,"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return R}):Is&&js?(Vs&&((js.exports=R)._=R),Is._=R):zs._=R}.call(this);
\ No newline at end of file