LocalCDN-Firefox-Chrome-Brave/resources/angular-material/1.1.21/angular-material.min.jsm

8 lines
397 KiB
JavaScript

/*!
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.21
*/
!function(R,fe,ge){"use strict";function e(e,t){if(t.has("$swipe")){e.warn("You are using the ngTouch module. \nAngularJS Material already has mobile click, tap, and swipe support... \nngTouch is not supported with AngularJS Material!")}}function t(e,t){e.decorator("$$rAF",["$delegate",n]),e.decorator("$q",["$delegate",o]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function n(r){return r.throttle=function(e){var t,n,o,i;return function(){t=arguments,i=this,o=e,n||(n=!0,r(function(){o.apply(i,Array.prototype.slice.call(t)),n=!1}))}},r}function o(e){return e.resolve||(e.resolve=e.when),e}function i(r){return{restrict:"A",link:{pre:function(e,t,n){var o=n.mdAutoFocus||n.mdAutofocus||n.mdSidenavFocus;i(r(o)(e)),o&&e.$watch(o,i);function i(e){fe.isUndefined(e)&&(e=!0),t.toggleClass("md-autofocus",!!e)}}}}}function r(e,d){function s(){return!0}e&&!fe.isArray(e)&&(e=Array.prototype.slice.call(e)),d=!!d;var l=e||[];return{items:function(){return[].concat(l)},count:function(){return l.length},inRange:c,contains:t,indexOf:m,itemAt:function(e){return c(e)?l[e]:null},findBy:function(t,n){return l.filter(function(e){return e[t]===n})},add:function(e,t){if(!e)return-1;fe.isNumber(t)||(t=l.length);return l.splice(t,0,e),m(e)},remove:function(e){t(e)&&l.splice(m(e),1)},first:u,last:p,next:fe.bind(null,n,!1),previous:fe.bind(null,n,!0),hasPrevious:function(e){return!!e&&c(m(e)-1)},hasNext:function(e){return!!e&&c(m(e)+1)}};function c(e){return l.length&&-1<e&&e<l.length}function m(e){return l.indexOf(e)}function t(e){return e&&-1<m(e)}function u(){return l.length?l[0]:null}function p(){return l.length?l[l.length-1]:null}function n(e,t,n,o){n=n||s;for(var i=m(t);;){if(!c(i))return null;var r=i+(e?-1:1),a=null;if(c(r)?a=l[r]:d&&(r=m(a=e?p():u())),null===a||r===o)return null;if(n(a))return a;fe.isUndefined(o)&&(o=r),i=r}}}function a(a,t,o){var r={},d={},i={},n={};return e.getResponsiveAttribute=function(e,t){for(var n=0;n<a.MEDIA_PRIORITY.length;n++){var o=a.MEDIA_PRIORITY[n];if(d[r[o]].matches){var i=l(e,t+"-"+o);if(e[i])return e[i]}}return e[l(e,t)]},e.getQuery=function(e){return d[e]},e.watchResponsiveAttributes=function(e,o,i){var r=[];return e.forEach(function(e){var t=l(o,e);for(var n in fe.isDefined(o[t])&&r.push(o.$observe(t,fe.bind(void 0,i,null))),a.MEDIA)t=l(o,e+"-"+n),fe.isDefined(o[t])&&r.push(o.$observe(t,fe.bind(void 0,i,n)))}),function(){r.forEach(function(e){e()})}},e;function e(e){var t=r[e];fe.isUndefined(t)&&(t=r[e]=function(e){return a.MEDIA[e]||("("!==e.charAt(0)?"("+e+")":e)}(e));var n=i[t];return fe.isUndefined(n)&&(n=function(e){var t=d[e];t=t||(d[e]=o.matchMedia(e));return t.addListener(s),i[t.media]=!!t.matches}(t)),n}function s(e){t.$evalAsync(function(){i[e.media]=!!e.matches})}function l(e,t){return n[t]||(n[t]=e.$normalize(t))}}function d(e,t){var o=["data","x"];return e?t?n(e):i(e):{buildList:i,buildSelector:n,hasAttribute:function(e,t){if(!(e=r(e)))return!1;for(var n=i(t),o=0;o<n.length;o++)if(e.hasAttribute(n[o]))return!0;return!1},removeAttribute:function(t,e){if(!(t=r(t)))return;i(e).forEach(function(e){t.removeAttribute(e)})}};function i(n){return(n=fe.isArray(n)?n:[n]).forEach(function(t){o.forEach(function(e){n.push(e+"-"+t)})}),n}function n(e){return i(e=fe.isArray(e)?e:[e]).map(function(e){return"["+e+"]"}).join(",")}function r(e){if((e=e[0]||e).nodeType)return e}}function A(e){return e.replace(/-[a-z]/g,function(e){return e.charAt(1).toUpperCase()})}var w,_,k,x,N,s,l,c,m,u,p,h,f,g,b,v,E,$,y,C,M,T;function S(o,i,s,r){var a=this.showWarnings;return{expect:d,expectAsync:l,expectWithText:function(e,t){var n=c(e)||"";-1<n.indexOf(r.startSymbol())?l(e,t,function(){return c(e)}):d(e,t,n)},expectWithoutText:function(e,t){var n=c(e);-1<n.indexOf(r.startSymbol())||n||d(e,t,n)},getText:c,hasAriaLabel:m,parentHasAriaLabel:function e(t,n){n=n||1;var o=fe.element(t)[0]||t;if(!o.parentNode)return!1;if(i(o.parentNode))return!0;n--;if(n)return e(o.parentNode,n);return!1;function i(e){if(!m(e))return!1;if(e.hasAttribute("role"))switch(e.getAttribute("role").toLowerCase()){case"command":case"definition":case"directory":case"grid":case"list":case"listitem":case"log":case"marquee":case"menu":case"menubar":case"note":case"presentation":case"separator":case"scrollbar":case"status":case"tablist":return!1}switch(e.tagName.toLowerCase()){case"abbr":case"acronym":case"address":case"applet":case"audio":case"b":case"bdi":case"bdo":case"big":case"blockquote":case"br":case"canvas":case"caption":case"center":case"cite":case"code":case"col":case"data":case"dd":case"del":case"dfn":case"dir":case"div":case"dl":case"em":case"embed":case"fieldset":case"figcaption":case"font":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"hgroup":case"html":case"i":case"ins":case"isindex":case"kbd":case"keygen":case"label":case"legend":case"li":case"map":case"mark":case"menu":case"object":case"ol":case"output":case"pre":case"presentation":case"q":case"rt":case"ruby":case"samp":case"small":case"source":case"span":case"status":case"strike":case"strong":case"sub":case"sup":case"svg":case"tbody":case"td":case"th":case"thead":case"time":case"tr":case"track":case"tt":case"ul":case"var":return!1}return!0}}};function d(e,t,n){var o=fe.element(e)[0]||e;!o||o.hasAttribute(t)&&0!==o.getAttribute(t).length||function(e,t){var n=e.hasChildNodes(),o=!1;if(n)for(var i=e.childNodes,r=0;r<i.length;r++){var a=i[r];1===a.nodeType&&a.hasAttribute(t)&&"none"!==((d=a).currentStyle?d.currentStyle:s.getComputedStyle(d)).display&&(o=!0)}var d;return o}(o,t)||((n=fe.isString(n)?n.trim():"").length?e.attr(t,n):a&&i.warn('ARIA: Attribute "',t,'", required for accessibility, is missing on node:',o))}function l(e,t,n){o(function(){d(e,t,n())})}function c(t){t=t[0]||t;for(var e,n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1),o="";e=n.nextNode();)i(e)||(o+=e.textContent);return o.trim()||"";function i(e){for(;e.parentNode&&(e=e.parentNode)!==t;)if(e.getAttribute&&"true"===e.getAttribute("aria-hidden"))return!0}}function m(e){var t=fe.element(e)[0]||e;return!!t.hasAttribute&&(t.hasAttribute("aria-label")||t.hasAttribute("aria-labelledby")||t.hasAttribute("aria-describedby"))}}function D(r){var a=!1;function d(e,t,n,o,i){this.$q=e,this.$templateRequest=t,this.$injector=n,this.$compile=o,this.$controller=i}this.respectPreAssignBindingsEnabled=function(e){return fe.isDefined(e)?(a=e,this):a},this.$get=["$q","$templateRequest","$injector","$compile","$controller",function(e,t,n,o,i){return new d(e,t,n,o,i)}],d.prototype.compile=function(e){return e.contentElement?this._prepareContentElement(e):this._compileTemplate(e)},d.prototype._prepareContentElement=function(e){var t=this._fetchContentElement(e);return this.$q.resolve({element:t.element,cleanup:t.restore,locals:{},link:function(){return t.element}})},d.prototype._compileTemplate=function(o){var i=this,e=o.templateUrl,t=o.template||"",n=fe.extend({},o.resolve),r=fe.extend({},o.locals),a=o.transformTemplate||fe.identity;return fe.forEach(n,function(e,t){fe.isString(e)?n[t]=i.$injector.get(e):n[t]=i.$injector.invoke(e)}),fe.extend(n,r),n.$$ngTemplate=e?this.$templateRequest(e):this.$q.when(t),this.$q.all(n).then(function(e){var t=a(e.$$ngTemplate,o),n=o.element||fe.element("<div>").html(t.trim()).contents();return i._compileElement(e,n,o)})},d.prototype._compileElement=function(o,i,r){var a=this,d=this.$compile(i),s={element:i,cleanup:i.remove.bind(i),locals:o,link:function(e){if(o.$scope=e,r.controller){var t=fe.extend({},o,{$element:i}),n=a._createController(r,t,o);i.data("$ngControllerController",n),i.children().data("$ngControllerController",n),s.controller=n}return d(e)}};return s},d.prototype._createController=function(e,t,n){var o;if(!a||("function"==typeof r.preAssignBindingsEnabled?r.preAssignBindingsEnabled():1===fe.version.major&&fe.version.minor<6)){var i=this.$controller(e.controller,t,!0);e.bindToController&&fe.extend(i.instance,n),o=i()}else o=this.$controller(e.controller,t),e.bindToController&&fe.extend(o,n);return e.controllerAs&&(t.$scope[e.controllerAs]=o),fe.isFunction(o.$onInit)&&o.$onInit(),o},d.prototype._fetchContentElement=function(e){var t=e.contentElement,n=null;return n=fe.isString(t)?o(t=document.querySelector(t)):(t=t[0]||t,document.contains(t)?o(t):function(){t.parentNode&&t.parentNode.removeChild(t)}),{element:fe.element(t),restore:n};function o(e){var t=e.parentNode,n=e.nextElementSibling;return function(){n?t.insertBefore(e,n):t.appendChild(e)}}}}function I(e,t,n){this.$timeout=e,this.$mdUtil=t,this.$rootScope=n,this.pointerEvent="MSPointerEvent"in R?"MSPointerDown":"PointerEvent"in R?"pointerdown":null,this.bodyElement=fe.element(document.body),this.isBuffering=!1,this.bufferTimeout=null,this.lastInteractionType=null,this.lastInteractionTime=null,this.inputHandler=this.onInputEvent.bind(this),this.bufferedInputHandler=this.onBufferInputEvent.bind(this),this.inputEventMap={keydown:"keyboard",mousedown:"mouse",mouseenter:"mouse",touchstart:"touch",pointerdown:"pointer",MSPointerDown:"pointer"},this.iePointerMap={2:"touch",3:"touch",4:"mouse"},this.initializeEvents(),this.$rootScope.$on("$destroy",this.deregister.bind(this))}function H(e){return e.replace(h,"").replace(f,function(e,t,n,o){return o?n.toUpperCase():n})}function O(){var e=!!document.querySelector("[md-layouts-disabled]");T.enabled=!e}function P(){return T.enabled=!1,{restrict:"A",priority:"900"}}function L(o){return["$mdUtil","$interpolate","$log",function(e,t,n){return l=e,c=t,m=n,{restrict:"A",compile:function(e,t){var n;return T.enabled&&(U(o,z(o,t,""),j(e,o,t)),i(null,e),n=i),n||fe.noop}}}];function i(e,t){t.addClass(o)}}function F(t){var n=t.split("-");return["$log",function(e){return e.warn(t+"has been deprecated. Please use a `"+n[0]+"-gt-<xxx>` variant."),fe.noop}]}function B(e,t,n,o){var i,r=n[0].nodeName.toLowerCase();switch(e.replace(v,"")){case"flex":"md-button"!=r&&"fieldset"!=r||(i="<"+r+" "+e+"></"+r+">","https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers","Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",o.warn(l.supplant("Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",[i,"https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers"])))}}function U(e,t,n){if(!q(t)){switch(e.replace(v,"")){case"layout":W(t,y)||(t=y[0]);break;case"flex":W(t,$)||isNaN(t)&&(t="");break;case"flex-offset":case"flex-order":t&&!isNaN(+t)||(t="0");break;case"layout-align":var o=function(e){var t,n={main:"start",cross:"stretch"};0!==(e=e||"").indexOf("-")&&0!==e.indexOf(" ")||(e="none"+e);(t=e.toLowerCase().trim().replace(E,"-").split("-")).length&&"space"===t[0]&&(t=[t[0]+"-"+t[1],t[2]]);0<t.length&&(n.main=t[0]||n.main);1<t.length&&(n.cross=t[1]||n.cross);C.indexOf(n.main)<0&&(n.main="start");M.indexOf(n.cross)<0&&(n.cross="stretch");return n}(t);t=l.supplant("{main}-{cross}",o);break;case"layout-padding":case"layout-margin":case"layout-fill":case"layout-wrap":case"layout-nowrap":t=""}null!=t&&(n||fe.noop)(t)}return t?t.trim():""}function j(e,t,n){return function(e){q(e)||(n[n.$normalize(t)]=e)}}function q(e){return-1<(e||"").indexOf(c.startSymbol())}function z(e,t,n){var o=t.$normalize(e);return t[o]?t[o].trim().replace(E,"-"):n||null}function W(t,e,n){t=n&&t?t.replace(E,n):t;var o=!1;return t&&e.forEach(function(e){e=n?e.replace(E,n):e,o=o||e===t}),o}function V(e){this._$timeout=e,this._liveElement=this._createLiveElement(),this._announceTimeout=100}function Y(n,o){var i,r=[],a={};return i={notFoundError:function(e,t){n.error((t||"")+"No instance found for handle",e)},getInstances:function(){return r},get:function(e){if(!d(e))return null;var t,n,o;for(t=0,n=r.length;t<n;t++)if((o=r[t]).$$mdHandle===e)return o;return null},register:function(t,e){return e?(t.$$mdHandle=e,r.push(t),(n=a[e])&&(n.forEach(function(e){e.resolve(t)}),delete a[e]),function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}):fe.noop;var n},when:function(e){if(d(e)){var t=o.defer(),n=i.get(e);return n?t.resolve(n):(a[e]===ge&&(a[e]=[]),a[e].push(t)),t.promise}return o.reject("Invalid `md-component-id` value.")}};function d(e){return e&&""!==e}}function K(o){return{attach:function(e,t,n){return n=fe.extend(function(e){return e.hasClass("md-icon-button")?{isMenuItem:e.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:e.hasClass("md-menu-item"),dimBackground:!0}}(t),n),o.attach(e,t,n)}}}function G(o){return{attach:function(e,t,n){return o.attach(e,t,fe.extend({center:!0,dimBackground:!1,fitRipple:!0},n))}}}function X(o){return{attach:function(e,t,n){return o.attach(e,t,fe.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},n))}}}function Q(o){return{attach:function(e,t,n){return o.attach(e,t,fe.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},n))}}}function Z(l){var c="virtual",t=["standard",c];function m(e){return e?(e=e.toLowerCase(),-1<t.indexOf(e)?e:c):c}return{controller:"MdAutocompleteCtrl",controllerAs:"$mdAutocompleteCtrl",scope:{inputName:"@mdInputName",inputMinlength:"@mdInputMinlength",inputMaxlength:"@mdInputMaxlength",searchText:"=?mdSearchText",selectedItem:"=?mdSelectedItem",itemsExpr:"@mdItems",itemText:"&mdItemText",placeholder:"@placeholder",inputAriaDescribedBy:"@?inputAriaDescribedby",inputAriaLabelledBy:"@?inputAriaLabelledby",inputAriaLabel:"@?inputAriaLabel",noCache:"=?mdNoCache",requireMatch:"=?mdRequireMatch",selectOnMatch:"=?mdSelectOnMatch",matchInsensitive:"=?mdMatchCaseInsensitive",itemChange:"&?mdSelectedItemChange",textChange:"&?mdSearchTextChange",minLength:"=?mdMinLength",delay:"=?mdDelay",autofocus:"=?mdAutofocus",floatingLabel:"@?mdFloatingLabel",autoselect:"=?mdAutoselect",menuClass:"@?mdMenuClass",menuContainerClass:"@?mdMenuContainerClass",inputClass:"@?mdInputClass",inputId:"@?mdInputId",escapeOptions:"@?mdEscapeOptions",dropdownItems:"=?mdDropdownItems",dropdownPosition:"@?mdDropdownPosition",clearButton:"=?mdClearButton",selectedMessage:"@?mdSelectedMessage",mdMode:"=?mdMode"},compile:function(e,n){var o=e.find("input");return["md-select-on-focus","md-no-asterisk","ng-trim","ng-pattern"].forEach(function(e){var t=n[n.$normalize(e)];null!==t&&o.attr(e,t)}),function(e,t,n,o){o.hasNotFound=!!t.attr("md-has-not-found"),fe.isDefined(n.mdClearButton)||e.floatingLabel||(e.clearButton=!0),e.mdMode=m(n.mdMode),t.on("click touchstart touchend",function(e){e.stopPropagation()})}},template:function(n,e){var t,o,i=(t=n.find("md-not-found").detach(),(o=t.length?t.html():"")?'<li ng-if="$mdAutocompleteCtrl.notFoundVisible()" md-autocomplete-parent-scope>'+o+"</li>":""),r=function(){var e=n.find("md-item-template").detach(),t=e.length?e.html():n.html();e.length||n.empty();return"<md-autocomplete-parent-scope md-autocomplete-replace>"+t+"</md-autocomplete-parent-scope>"}(),a=n.html(),d=e.tabindex;return i&&n.attr("md-has-not-found",!0),n.attr("tabindex","-1")," <md-autocomplete-wrap ng-class=\"{ 'md-whiteframe-z1': !floatingLabel, 'md-menu-showing': !$mdAutocompleteCtrl.hidden, 'md-show-clear-button': !!clearButton }\"> "+(e.mdFloatingLabel?' <md-input-container ng-if="floatingLabel"> <label>{{floatingLabel}}</label> <input type="text" '+(null!=d?'tabindex="'+d+'"':"")+' id="{{inputId || \'fl-input-\' + $mdAutocompleteCtrl.id}}" name="{{inputName || \'fl-input-\' + $mdAutocompleteCtrl.id }}" ng-class="::inputClass" autocomplete="off" ng-required="$mdAutocompleteCtrl.isRequired" ng-readonly="$mdAutocompleteCtrl.isReadonly" ng-minlength="inputMinlength" ng-maxlength="inputMaxlength" ng-disabled="$mdAutocompleteCtrl.isDisabled" ng-model="$mdAutocompleteCtrl.scope.searchText" ng-model-options="{ allowInvalid: true }" ng-mousedown="$mdAutocompleteCtrl.focusInput()" ng-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur($event)" ng-focus="$mdAutocompleteCtrl.focus($event)" aria-label="{{floatingLabel}}" ng-attr-aria-autocomplete="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'list\'}}" ng-attr-role="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'combobox\'}}" aria-haspopup="{{!$mdAutocompleteCtrl.isDisabled}}" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}" ng-attr-aria-owns="{{$mdAutocompleteCtrl.hidden || $mdAutocompleteCtrl.isDisabled ? undefined : \'ul-\' + $mdAutocompleteCtrl.id}}" ng-attr-aria-activedescendant="{{!$mdAutocompleteCtrl.hidden && $mdAutocompleteCtrl.activeOption ? $mdAutocompleteCtrl.activeOption : undefined}}"> <div md-autocomplete-parent-scope md-autocomplete-replace>'+a+"</div> </md-input-container>":' <input type="text" '+(null!=d?'tabindex="'+d+'"':"")+' id="{{inputId || \'input-\' + $mdAutocompleteCtrl.id}}" name="{{inputName || \'input-\' + $mdAutocompleteCtrl.id }}" ng-class="::inputClass" ng-if="!floatingLabel" autocomplete="off" ng-required="$mdAutocompleteCtrl.isRequired" ng-disabled="$mdAutocompleteCtrl.isDisabled" ng-readonly="$mdAutocompleteCtrl.isReadonly" ng-minlength="inputMinlength" ng-maxlength="inputMaxlength" ng-model="$mdAutocompleteCtrl.scope.searchText" ng-mousedown="$mdAutocompleteCtrl.focusInput()" ng-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur($event)" ng-focus="$mdAutocompleteCtrl.focus($event)" placeholder="{{placeholder}}" aria-label="{{placeholder}}" ng-attr-aria-autocomplete="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'list\'}}" ng-attr-role="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'combobox\'}}" aria-haspopup="{{!$mdAutocompleteCtrl.isDisabled}}" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}" ng-attr-aria-owns="{{$mdAutocompleteCtrl.hidden || $mdAutocompleteCtrl.isDisabled ? undefined : \'ul-\' + $mdAutocompleteCtrl.id}}" ng-attr-aria-activedescendant="{{!$mdAutocompleteCtrl.hidden && $mdAutocompleteCtrl.activeOption ? $mdAutocompleteCtrl.activeOption : undefined}}">')+' <button type="button" aria-label="Clear Input" tabindex="0" ng-if="clearButton && $mdAutocompleteCtrl.scope.searchText" ng-click="$mdAutocompleteCtrl.clear($event)"><md-icon md-svg-src="'+l.mdClose+'"></md-icon></button> <md-progress-linear class="'+(e.mdFloatingLabel?"md-inline":"")+'" ng-if="$mdAutocompleteCtrl.loadingIsVisible()" md-mode="indeterminate"></md-progress-linear> '+function(e,t){if(e=e?" "+e:"",s(t))return' <div ng-hide="$mdAutocompleteCtrl.hidden" class="md-standard-list-container md-autocomplete-suggestions-container md-whiteframe-z1'+e+'" ng-class="{ \'md-not-found\': $mdAutocompleteCtrl.notFoundVisible() }" role="presentation"> <div class="md-standard-list-scroller" role="presentation">';return' <md-virtual-repeat-container md-auto-shrink md-auto-shrink-min="1" ng-hide="$mdAutocompleteCtrl.hidden" class="md-virtual-repeat-container md-autocomplete-suggestions-container md-whiteframe-z1'+e+'" ng-class="{ \'md-not-found\': $mdAutocompleteCtrl.notFoundVisible() }" role="presentation">'}(e.mdMenuContainerClass,e.mdMode)+' <ul class="md-autocomplete-suggestions" ng-class="::menuClass" id="ul-{{$mdAutocompleteCtrl.id}}" ng-mouseenter="$mdAutocompleteCtrl.listEnter()" ng-mouseleave="$mdAutocompleteCtrl.listLeave()" ng-mouseup="$mdAutocompleteCtrl.focusInput()" role="listbox"> <li class="md-autocomplete-suggestion" '+(s(e.mdMode)?"ng-repeat":"md-virtual-repeat")+' ="item in $mdAutocompleteCtrl.matches" ng-class="{ selected: $index === $mdAutocompleteCtrl.index }" ng-attr-id="{{\'md-option-\' + $mdAutocompleteCtrl.id + \'-\' + $index}}" ng-click="$mdAutocompleteCtrl.select($index)" role="option" aria-setsize="{{$mdAutocompleteCtrl.matches.length}}" aria-posinset="{{$index+1}}" aria-selected="{{$index === $mdAutocompleteCtrl.index ? true : false}}" md-extra-name="$mdAutocompleteCtrl.itemName"> '+r+" </li>"+i+" </ul> "+(s(e.mdMode)?" </div> </div> </div>":"</md-virtual-repeat-container>")+" </md-autocomplete-wrap>";function s(e){return m(e)!==c}}}}function J(e,c){return{restrict:"AE",compile:function(e,t,l){return function(n,t,e){var o,i,r=n.$mdAutocompleteCtrl,a=r.parent.$new(),d=r.itemName;function s(e,t){a[t]=n[e],n.$watch(e,function(e){c.nextTick(function(){a[t]=e})})}s("$index","$index"),s("item",d),i=o=!1,n.$watch(function(){i||o||(o=!0,n.$$postDigest(function(){i||a.$digest(),o=i=!1}))}),a.$watch(function(){i=!0}),l(a,function(e){t.after(e)})}},terminal:!0,transclude:"element"}}function ee(e,t,n){this.$scope=e,this.$element=t,this.$attrs=n,this.regex=null}function te(n,o){return{terminal:!0,controller:"MdHighlightCtrl",compile:function(e,t){var i=o(t.mdHighlightText),r=n(e.html());return function(e,t,n,o){o.init(i,r)}}}}function ne(n){return{restrict:"E",link:function(e,t){t.addClass("_md"),e.$on("$destroy",function(){n.destroy()})}}}function oe(e){t.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture","$log"];var p=.5,h=80;return e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:t});function t(i,a,d,r,s,l,c,m){var u;return{themable:!0,onShow:function(e,t,n,o){if((t=d.extractElementByName(t,"md-bottom-sheet")).attr("tabindex","-1"),t.hasClass("ng-cloak")){m.warn("$mdBottomSheet: using `<md-bottom-sheet ng-cloak>` will affect the bottom-sheet opening animations.",t[0])}n.isLockedOpen?(n.clickOutsideToClose=!1,n.escapeToClose=!1):n.cleanupGestures=function(o,e){var t=c.register(e,"drag",{horizontal:!1});return e.on("$md.dragstart",n).on("$md.drag",i).on("$md.dragend",r),function(){t(),e.off("$md.dragstart",n),e.off("$md.drag",i),e.off("$md.dragend",r)};function n(){o.css(a.CSS.TRANSITION_DURATION,"0ms")}function i(e){var t=e.pointer.distanceY;t<5&&(t=Math.max(-h,t/2)),o.css(a.CSS.TRANSFORM,"translate3d(0,"+(h+t)+"px,0)")}function r(e){if(0<e.pointer.distanceY&&(20<e.pointer.distanceY||Math.abs(e.pointer.velocityY)>p)){var t=o.prop("offsetHeight")-e.pointer.distanceY,n=Math.min(t/e.pointer.velocityY*.75,500);o.css(a.CSS.TRANSITION_DURATION,n+"ms"),d.nextTick(s.cancel,!0)}else o.css(a.CSS.TRANSITION_DURATION,""),o.css(a.CSS.TRANSFORM,"")}}(t,n.parent);n.disableBackdrop||((u=d.createBackdrop(e,"md-bottom-sheet-backdrop md-opaque"))[0].tabIndex=-1,n.clickOutsideToClose&&u.on("click",function(){d.nextTick(s.cancel,!0)}),r.inherit(u,n.parent),i.enter(u,n.parent,null));r.inherit(t,n.parent),n.disableParentScroll&&(n.restoreScroll=d.disableScrollAround(t,n.parent));return i.enter(t,n.parent,u).then(function(){var e=d.findFocusTarget(t)||fe.element(t[0].querySelector("button")||t[0].querySelector("a")||t[0].querySelector(d.prefixer("ng-click",!0)))||u;n.escapeToClose&&(n.rootElementKeyupCallback=function(e){e.keyCode===a.KEY_CODE.ESCAPE&&d.nextTick(s.cancel,!0)},l.on("keyup",n.rootElementKeyupCallback),e&&e.focus())})},onRemove:function(e,t,n){n.disableBackdrop||i.leave(u);return i.leave(t).then(function(){n.disableParentScroll&&(n.restoreScroll(),delete n.restoreScroll),n.cleanupGestures&&n.cleanupGestures()})},disableBackdrop:!1,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0,isLockedOpen:!1}}}function ie(n){return{restrict:"E",link:function(e,t){n(t)}}}function re(o,i,r,a){return{restrict:"EA",replace:!0,transclude:!0,template:function(e,t){{return d(t)?'<a class="md-button" ng-transclude></a>':'<button class="md-button" type="'+(void 0===t.type?"button":t.type)+'" ng-transclude></button>'}},link:function(e,t,n){i(t),o.attach(e,t),r.expectWithoutText(t,"aria-label"),d(n)&&fe.isDefined(n.ngDisabled)&&!t.hasClass("_md-nav-button")&&e.$watch(n.ngDisabled,function(e){t.attr("tabindex",e?-1:0)});t.on("click",function(e){!0===n.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}),t.hasClass("md-no-focus")||(t.on("focus",function(){a.isUserInvoked()&&"keyboard"!==a.getLastInteractionType()||t.addClass("md-focused")}),t.on("blur",function(){t.removeClass("md-focused")}))}};function d(e){return fe.isDefined(e.href)||fe.isDefined(e.ngHref)||fe.isDefined(e.ngLink)||fe.isDefined(e.uiSref)}}function ae(o){return{restrict:"E",link:function(e,t,n){t.addClass("_md"),o(t)}}}function de(m,u,p,h,f,g){return m=m[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:p.BEFORE_NG_ARIA,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-icon"></div></div><div ng-transclude class="md-label"></div>',compile:function(e,t){return t.$set("tabindex",t.tabindex||"0"),t.$set("type","checkbox"),t.$set("role",t.type),{pre:function(e,t){t.on("click",function(e){this.hasAttribute("disabled")&&e.stopImmediatePropagation()})},post:function(o,i,r,e){var t,n=e[0],a=e[1]||f.fakeNgModel(),d=e[2];if(n){var s=n.isErrorGetter||function(){return a.$invalid&&(a.$touched||d&&d.$submitted)};n.input=i,o.$watch(s,n.setInvalid)}h(i),i.children().on("focus",function(){i.focus()}),f.parseAttributeBoolean(r.mdIndeterminate)&&(c(),o.$watch(r.mdIndeterminate,c));r.ngChecked&&o.$watch(o.$eval.bind(o,r.ngChecked),function(e){a.$setViewValue(e),a.$render()});function l(t){i[0].hasAttribute("disabled")||o.skipToggle||o.$apply(function(){var e=r.ngChecked&&r.ngClick?r.checked:!a.$viewValue;a.$setViewValue(e,t&&t.type),a.$render()})}function c(e){(t=!1!==e)&&i.attr("aria-checked","mixed"),i.toggleClass("md-indeterminate",t)}(function(e,t,n){r[e]&&o.$watch(r[e],function(e){n[e]&&i.attr(t,n[e])})})("ngDisabled","tabindex",{true:"-1",false:r.tabindex}),u.expectWithText(i,"aria-label"),m.link.pre(o,{on:fe.noop,0:{}},r,[a]),i.on("click",l).on("keypress",function(e){var t,n,o=e.which||e.keyCode;switch(e.preventDefault(),o){case p.KEY_CODE.SPACE:i.addClass("md-focused"),l(e);break;case p.KEY_CODE.ENTER:(n=f.getClosest(e.target,"form"))&&(t=n.querySelector('button[type="submit"]:enabled, input[type="submit"]:enabled'))&&t.click()}}).on("focus",function(){"keyboard"===g.getLastInteractionType()&&i.addClass("md-focused")}).on("blur",function(){i.removeClass("md-focused")}),a.$render=function(){i.toggleClass("md-checked",!!a.$viewValue&&!t)}}}}}}function se(e,t,n,o,i){this.$scope=e,this.$element=t,this.$mdConstant=n,this.$timeout=o,this.$mdUtil=i,this.isEditing=!1,this.parentController=ge,this.enableChipEdit=!1}function le(d,e,t,s){return{restrict:"E",require:["^?mdChips","mdChip"],link:function(e,t,n,o){var i=o.shift(),r=o.shift(),a=fe.element(t[0].querySelector(".md-chip-content"));d(t),i&&(r.init(i),a.on("blur",function(){i.resetSelectedChip(),i.$scope.$applyAsync()}));s(function(){i&&i.shouldFocusLastChip&&i.focusLastChipThenInput()})},controller:"MdChipCtrl"}}function ce(i){return{restrict:"A",require:"^mdChips",scope:!1,link:function(t,e,n,o){e.on("click",function(e){t.$apply(function(){o.removeChip(t.$$replacedScope.$index)})}),i(function(){e.attr({tabindex:"-1","aria-hidden":"true"}),e.find("button").attr("tabindex","-1")})}}}function me(a){return{restrict:"EA",terminal:!0,link:function(e,t,n){var o=e.$parent.$mdChipsCtrl,i=o.parent.$new(!1,o.parent);i.$$replacedScope=e,i.$chip=e.$chip,i.$index=e.$index;var r=(i.$mdChipsCtrl=o).$scope.$eval(n.mdChipTransclude);t.html(r),a(t.contents())(i)},scope:!1}}function ue(e,t,n){this.$element=t,this.$attrs=e,this.$timeout=n,this.selectedItem=null,this.searchText="",this.deRegister=[],this.init()}function pe(n){return{restrict:"E",controller:["$scope","$element",function(e,t){this.$scope=e,this.$element=t}],link:function(e,t){t.addClass("_md"),n(t),e.$broadcast("$mdContentLoaded",t),function(t){fe.element(t).on("$md.pressdown",function(e){"t"===e.pointer.type&&(e.$materialScrollFixed||(e.$materialScrollFixed=!0,0===t.scrollTop?t.scrollTop=1:t.scrollHeight===t.scrollTop+t.offsetHeight&&(t.scrollTop-=1)))})}(t[0])}}}function he(e,t){var d=e('<md-icon md-svg-src="'+t.mdTabsArrow+'"></md-icon>')({})[0];return{require:["^^mdCalendar","^^mdCalendarMonth","mdCalendarMonthBody"],scope:{offset:"=mdMonthOffset"},controller:be,controllerAs:"mdMonthBodyCtrl",bindToController:!0,link:function(e,t,n,o){var i=o[0],r=o[1],a=o[2];a.calendarCtrl=i,a.monthCtrl=r,a.arrowIcon=d.cloneNode(!0),e.$watch(function(){return a.offset},function(e){fe.isNumber(e)&&a.generateContent()})}}}function be(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.monthCtrl=null,this.calendarCtrl=null,this.offset=null,this.focusAfterAppend=null}function ve(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.calendarCtrl=null,this.yearCtrl=null,this.offset=null,this.focusAfterAppend=null}function Ee(e,t,r){return{restrict:"E",link:function(o,i){i.addClass("_md"),t(i),e(function(){var e,t=i[0].querySelector("md-dialog-content");function n(){i.toggleClass("md-content-overflow",t.scrollHeight>t.clientHeight)}t&&(e=t.getElementsByTagName("img"),n(),fe.element(e).on("load",n)),o.$on("$destroy",function(){r.destroy(i)})})}}}function $e(e){var E,$;return n.$inject=["$mdDialog","$mdConstant"],o.$inject=["$mdDialog","$mdAria","$mdUtil","$mdConstant","$animate","$document","$window","$rootElement","$log","$injector","$mdTheming","$interpolate","$mdInteraction"],e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","closeTo","openFrom","parent","fullscreen","multiple"],options:o}).addPreset("alert",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","theme","css"],options:t}).addPreset("confirm",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","cancel","theme","css"],options:t}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","content","placeholder","ariaLabel","ok","cancel","theme","css","required"],options:t});function t(){return{template:['<md-dialog md-theme="{{ dialog.theme || dialog.defaultTheme }}" aria-label="{{ dialog.ariaLabel }}" ng-class="dialog.css">',' <md-dialog-content class="md-dialog-content" role="document" tabIndex="-1">',' <h2 class="md-title">{{ dialog.title }}</h2>',' <div ng-if="::dialog.mdHtmlContent" class="md-dialog-content-body" ',' ng-bind-html="::dialog.mdHtmlContent"></div>',' <div ng-if="::!dialog.mdHtmlContent" class="md-dialog-content-body">'," <p>{{::dialog.mdTextContent}}</p>"," </div>",' <md-input-container md-no-float ng-if="::dialog.$type == \'prompt\'" class="md-prompt-input-container">',' <input ng-keypress="dialog.keypress($event)" md-autofocus ng-model="dialog.result" placeholder="{{::dialog.placeholder}}" ng-required="dialog.required">'," </md-input-container>"," </md-dialog-content>"," <md-dialog-actions>",' <md-button ng-if="dialog.$type === \'confirm\' || dialog.$type === \'prompt\'" ng-click="dialog.abort()" class="md-primary md-cancel-button">'," {{ dialog.cancel }}"," </md-button>",' <md-button ng-click="dialog.hide()" class="md-primary md-confirm-button" md-autofocus="dialog.$type===\'alert\'" ng-disabled="dialog.required && !dialog.result">'," {{ dialog.ok }}"," </md-button>"," </md-dialog-actions>","</md-dialog>"].join("").replace(/\s\s+/g,""),controller:n,controllerAs:"dialog",bindToController:!0}}function n(o,i){this.$onInit=function(){var n="prompt"==this.$type;n&&this.initialValue&&(this.result=this.initialValue),this.hide=function(){o.hide(!n||this.result)},this.abort=function(){o.cancel()},this.keypress=function(e){var t=n&&this.required&&!fe.isDefined(this.result);e.keyCode!==i.KEY_CODE.ENTER||t||o.hide(this.result)}}}function o(u,d,p,h,r,s,f,a,l,c,t,m,g){return{hasBackdrop:!0,isolateScope:!0,onCompiling:function(e){e.defaultTheme=t.defaultTheme(),function(t){var e;t.targetEvent&&t.targetEvent.target&&(e=fe.element(t.targetEvent.target));var n=e&&e.controller("mdTheme");if(t.hasTheme=!!n,!t.hasTheme)return;t.themeWatch=n.$shouldWatch;var o=t.theme||n.$mdTheme;o&&(t.scope.theme=o);var i=n.registerChanges(function(e){t.scope.theme=e,t.themeWatch||i()})}(e)},onShow:function(e,t,n,o){fe.element(s[0].body).addClass("md-dialog-is-showing");var i=t.find("md-dialog");if(i.hasClass("ng-cloak")){l.warn("$mdDialog: using `<md-dialog ng-cloak>` will affect the dialog opening animations.",t[0])}return function(e){e.origin=fe.extend({element:null,bounds:null,focus:fe.noop},e.origin||{}),e.parent=n(e.parent,a),e.closeTo=t(n(e.closeTo)),e.openFrom=t(n(e.openFrom)),e.targetEvent&&(e.origin=t(e.targetEvent.target,e.origin),e.originInteraction=g.getLastInteractionType());function t(e,t){var n=fe.element(e||{});if(n&&n.length){var o=fe.isFunction(n[0].getBoundingClientRect);return fe.extend(t||{},{element:o?n:ge,bounds:o?n[0].getBoundingClientRect():fe.extend({},{top:0,left:0,height:0,width:0},n[0]),focus:fe.bind(n,n.focus)})}}function n(e,t){return fe.isString(e)&&(e=s[0].querySelector(e)),fe.element(e||t)}}(n),function(e,t){var n="alert"===t.$type?"alertdialog":"dialog",o=e.find("md-dialog-content"),i=e.attr("id"),r="dialogContent_"+(i||p.nextUid());e.attr({role:n,tabIndex:"-1"}),0===o.length&&(o=e,i&&(r=i));o.attr("id",r),e.attr("aria-describedby",r),t.ariaLabel?d.expect(e,"aria-label",t.ariaLabel):d.expectAsync(e,"aria-label",function(){if(t.title)return t.title;var e=o.text().split(/\s+/);return 3<e.length&&(e=e.slice(0,3).concat("...")),e.join(" ")});(E=document.createElement("div")).classList.add("md-dialog-focus-trap"),E.tabIndex=0,$=E.cloneNode(!1);function a(){e.focus()}E.addEventListener("focus",a),$.addEventListener("focus",a),e[0].parentNode.insertBefore(E,e[0]),e.after($)}(i,n),function(e,t,n){n.disableParentScroll&&(n.restoreScroll=p.disableScrollAround(t,n.parent));n.hasBackdrop&&(n.backdrop=p.createBackdrop(e,"md-dialog-backdrop md-opaque"),r.enter(n.backdrop,n.parent));n.hideBackdrop=function(e){n.backdrop&&(e?n.backdrop.remove():r.leave(n.backdrop)),n.disableParentScroll&&(n.restoreScroll&&n.restoreScroll(),delete n.restoreScroll),n.hideBackdrop=null}}(e,t,n),function(e,t){function n(){var e="alert"==t.$type?u.hide:u.cancel;p.nextTick(e,!0)}var o=fe.element(f),i=p.debounce(function(){b(e,t)},60),r=[];if(t.escapeToClose){var a=t.parent,d=function(e){e.keyCode===h.KEY_CODE.ESCAPE&&(e.stopImmediatePropagation(),e.preventDefault(),n())};e.on("keydown",d),a.on("keydown",d),r.push(function(){e.off("keydown",d),a.off("keydown",d)})}if(o.on("resize",i),r.push(function(){o.off("resize",i)}),t.clickOutsideToClose){var s,l=e,c=function(e){s=e.target},m=function(e){s===l[0]&&e.target===l[0]&&(e.stopPropagation(),e.preventDefault(),n())};l.on("mousedown",c),l.on("mouseup",m),r.push(function(){l.off("mousedown",c),l.off("mouseup",m)})}t.deactivateListeners=function(){r.forEach(function(e){e()}),t.deactivateListeners=null}}(t,n),function(e,t){t.parent.append(e),t.reverseContainerStretch=b(e,t);var n=e.find("md-dialog"),o=p.dom.animator,i=o.calculateZoomToOrigin,r={transitionInClass:"md-transition-in",transitionOutClass:"md-transition-out"},a=o.toTransformCss(i(n,t.openFrom||t.origin)),d=o.toTransformCss("");return n.toggleClass("md-dialog-fullscreen",!!t.fullscreen),o.translate3d(n,a,d,r).then(function(e){return t.reverseAnimate=function(){return delete t.reverseAnimate,t.closeTo?(r={transitionInClass:"md-transition-out",transitionOutClass:"md-transition-in"},a=d,d=o.toTransformCss(i(n,t.closeTo)),o.translate3d(n,a,d,r)):e(d=o.toTransformCss(i(n,t.origin)))},t.clearAnimate=function(){return delete t.clearAnimate,n.removeClass([r.transitionOutClass,r.transitionInClass].join(" ")),o.translate3d(n,d,o.toTransformCss(""),{})},!0})}(t,n).then(function(){!function(e,t){var o=!0;function n(e){for(var t=function(e){for(var t=[];e.parentNode;){if(e===document.body)return t;for(var n=e.parentNode.children,o=0;o<n.length;o++)e===n[o]||v(n[o],["SCRIPT","STYLE"])||n[o].hasAttribute("aria-live")||t.push(n[o]);e=e.parentNode}return t}(e),n=0;n<t.length;n++)t[n].setAttribute("aria-hidden",o)}n(e[0]),t.unlockScreenReader=function(){o=!1,n(e[0]),t.unlockScreenReader=null}}(t,n),t[0].querySelector(".md-actions")&&l.warn("Using a class of md-actions is deprecated, please use <md-dialog-actions>."),function(){if(n.focusOnOpen){(p.findFocusTarget(t)||t[0].querySelector(".dialog-close, md-dialog-actions button:last-child")||i).focus()}}()})},onShowing:function(e,t,n,o){if(o){var i=o.htmlContent||n.htmlContent||"",r=o.textContent||n.textContent||o.content||n.content||"";if(i&&!c.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(i&&r)throw Error("md-dialog cannot have both `htmlContent` and `textContent`");o.mdHtmlContent=i,o.mdTextContent=r}},onRemove:function(e,t,n){n.deactivateListeners(),n.unlockScreenReader(),n.hideBackdrop(n.$destroy),E&&E.parentNode&&E.parentNode.removeChild(E);$&&$.parentNode&&$.parentNode.removeChild($);return n.$destroy?o():function(e,t){return t.reverseAnimate().then(function(){t.contentElement&&t.clearAnimate()})}(0,n).then(o);function o(){fe.element(s[0].body).removeClass("md-dialog-is-showing"),n.contentElement&&n.reverseContainerStretch(),n.cleanupElement(),n.$destroy||"keyboard"!==n.originInteraction||n.origin.focus()}},clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,closeTo:null,openFrom:null,focusOnOpen:!0,disableParentScroll:!0,autoWrap:!0,fullscreen:!1,transformTemplate:function(e,t){var n,o=m.startSymbol(),i=m.endSymbol(),r=o+(t.themeWatch?"":"::")+"theme"+i;return'<div class="md-dialog-container" tabindex="-1" '+(t.hasTheme?'md-theme="'+r+'"':"")+">"+(n=e,t.autoWrap&&!/<\/md-dialog>/g.test(n)?"<md-dialog>"+(n||"")+"</md-dialog>":n||"")+"</div>"}};function b(e,t){var n="fixed"==f.getComputedStyle(s[0].body).position,o=t.backdrop?f.getComputedStyle(t.backdrop[0]):null,i=o?Math.min(s[0].body.clientHeight,Math.ceil(Math.abs(parseInt(o.height,10)))):0,r={top:e.css("top"),height:e.css("height")},a=Math.abs(t.parent[0].getBoundingClientRect().top);return e.css({top:(n?a:0)+"px",height:i?i+"px":"100%"}),function(){e.css(r)}}function v(e,t){if(-1!==t.indexOf(e.nodeName))return!0}}}function ye(e){return{restrict:"E",link:e}}function Ce(o){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(e,t){var n=e.children();o.prefixer().hasAttribute(n,"ng-repeat")?n.addClass("md-fab-action-item"):n.wrap('<div class="md-fab-action-item">')}}}function Me(t,r,a,d,n,o){var i,s=this,e=0;function l(e){"click"==e.type&&function(e){!function(e){return d.getClosest(e,"md-fab-trigger")}(e.target)||s.toggle();!function(e){return d.getClosest(e,"md-fab-actions")}(e.target)||s.close()}(e),"focusout"!=e.type||i||(i=o(function(){s.close()},100,!1)),"focusin"==e.type&&i&&(o.cancel(i),i=null)}function c(){s.currentActionIndex=-1}function m(){0<r[0].scrollHeight?a.addClass(r,"_md-animations-ready").then(function(){r.removeClass("md-animations-waiting")}):e<10&&(o(m,100),e+=1)}function u(){r.off("keydown",h),fe.element(document).off("click touchend",p)}function p(e){if(e.target){var t=d.getClosest(e.target,"md-fab-trigger"),n=d.getClosest(e.target,"md-fab-actions");t||n||s.close()}}function h(e){switch(e.which){case n.KEY_CODE.ESCAPE:return s.close(),e.preventDefault(),!1;case n.KEY_CODE.LEFT_ARROW:return function(e){"left"===s.direction?g(e):f(e)}(e),!1;case n.KEY_CODE.UP_ARROW:return function(e){"down"===s.direction?f(e):g(e)}(e),!1;case n.KEY_CODE.RIGHT_ARROW:return function(e){"left"===s.direction?f(e):g(e)}(e),!1;case n.KEY_CODE.DOWN_ARROW:return function(e){"up"===s.direction?f(e):g(e)}(e),!1}}function f(e){b(e,-1)}function g(e){b(e,1)}function b(e,t){var n=function(){var e=v()[0].querySelectorAll(".md-fab-action-item");return fe.forEach(e,function(e){fe.element(fe.element(e).children()[0]).attr("tabindex",-1)}),e}();s.currentActionIndex=s.currentActionIndex+t,s.currentActionIndex=Math.min(n.length-1,s.currentActionIndex),s.currentActionIndex=Math.max(0,s.currentActionIndex);var o=fe.element(n[s.currentActionIndex]).children()[0];fe.element(o).attr("tabindex",0),o.focus(),e.preventDefault(),e.stopImmediatePropagation()}function v(){return r.find("md-fab-actions")}s.open=function(){t.$evalAsync("vm.isOpen = true")},s.close=function(){t.$evalAsync("vm.isOpen = false"),r.find("md-fab-trigger")[0].focus()},s.toggle=function(){t.$evalAsync("vm.isOpen = !vm.isOpen")},s.$onInit=function(){s.direction=s.direction||"down",s.isOpen=s.isOpen||!1,c(),r.addClass("md-animations-waiting"),function(){var e=["click","focusin","focusout"];fe.forEach(e,function(e){r.on(e,l)}),t.$on("$destroy",function(){fe.forEach(e,function(e){r.off(e,l)}),u()})}(),function(){var o,i;t.$watch("vm.direction",function(e,t){a.removeClass(r,"md-"+t),a.addClass(r,"md-"+e),c()}),t.$watch("vm.isOpen",function(e){c(),o&&i||(o=r.find("md-fab-trigger"),i=v()),e?(r.on("keydown",h),d.nextTick(function(){fe.element(document).on("click touchend",p)})):u();var t=e?"md-is-open":"",n=e?"":"md-is-open";o.attr("aria-haspopup",!0),o.attr("aria-expanded",e),i.attr("aria-hidden",!e),a.setClass(r,t,n)})}(),m()},1===fe.version.major&&fe.version.minor<=4&&this.$onInit()}function Te(){function o(e,t){if(t){var n=e[0],o=e.controller("mdFabToolbar"),i=n.querySelector(".md-fab-toolbar-background"),r=n.querySelector("md-fab-trigger button"),a=n.querySelector("md-toolbar"),d=n.querySelector("md-fab-trigger button md-icon"),s=e.find("md-fab-actions").children();if(r&&i){var l=R.getComputedStyle(r).getPropertyValue("background-color"),c=n.offsetWidth,m=(n.offsetHeight,c/r.offsetWidth*2);i.style.backgroundColor=l,i.style.borderRadius=c+"px",o.isOpen?(a.style.pointerEvents="inherit",i.style.width=r.offsetWidth+"px",i.style.height=r.offsetHeight+"px",i.style.transform="scale("+m+")",i.style.transitionDelay="0ms",d&&(d.style.transitionDelay=".3s"),fe.forEach(s,function(e,t){e.style.transitionDelay=25*(s.length-t)+"ms"})):(a.style.pointerEvents="none",i.style.transform="scale(1)",i.style.top="0",e.hasClass("md-right")&&(i.style.left="0",i.style.right=null),e.hasClass("md-left")&&(i.style.right="0",i.style.left=null),i.style.transitionDelay="200ms",d&&(d.style.transitionDelay="0ms"),fe.forEach(s,function(e,t){e.style.transitionDelay=200+25*t+"ms"}))}}}return{addClass:function(e,t,n){o(e,t),n()},removeClass:function(e,t,n){o(e,t),n()}}}function Ae(u,b,v,E,$){return{restrict:"E",controller:we,scope:{mdOnLayout:"&"},link:function(n,r,p,t){r.addClass("_md"),r.attr("role","list"),t.layoutDelegate=function(e){var o=[].filter.call(r.children(),function(e){return"MD-GRID-TILE"==e.tagName&&!e.$$mdDestroyed}),i={tileSpans:function(e){return[].map.call(e,function(e){var t=fe.element(e).controller("mdGridTile");return{row:parseInt(E.getResponsiveAttribute(t.$attrs,"md-rowspan"),10)||1,col:parseInt(E.getResponsiveAttribute(t.$attrs,"md-colspan"),10)||1}})}(o),colCount:function(){var e=parseInt(E.getResponsiveAttribute(p,"md-cols"),10);if(isNaN(e))throw"md-grid-list: md-cols attribute was not found, or contained a non-numeric value";return e}(),rowMode:c(),rowHeight:function(){var e=E.getResponsiveAttribute(p,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";switch(c()){case"fixed":return m(e);case"ratio":var t=e.split(":");return parseFloat(t[0])/parseFloat(t[1]);case"fit":return 0}}(),gutter:m(E.getResponsiveAttribute(p,"md-gutter")||1)};if(!e&&fe.equals(i,a))return;var t=v(i.colCount,i.tileSpans,o).map(function(e,n){return{grid:{element:r,style:function(e,t,n,o,i){var r={};switch(o){case"fixed":r.height=g({unit:i,span:t,gutter:n}),r.paddingBottom="";break;case"ratio":var a=h({share:1/i*(1/e*100),gutterShare:1===e?0:(e-1)/e,gutter:n});r.height="",r.paddingBottom=g({unit:a,span:t,gutter:n})}return r}(i.colCount,n,i.gutter,i.rowMode,i.rowHeight)},tiles:e.map(function(e,t){return{element:fe.element(o[t]),style:function(e,t,n,o,i,r,a){var d=1/n*100,s=(n-1)/n,l=h({share:d,gutterShare:s,gutter:i}),c=$.isRtl(p)?{right:f({unit:l,offset:e.col,gutter:i}),width:g({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""}:{left:f({unit:l,offset:e.col,gutter:i}),width:g({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""};switch(r){case"fixed":c.top=f({unit:a,offset:e.row,gutter:i}),c.height=g({unit:a,span:t.row,gutter:i});break;case"ratio":var m=d/a,u=h({share:m,gutterShare:s,gutter:i});c.paddingTop=g({unit:u,span:t.row,gutter:i}),c.marginTop=f({unit:u,offset:e.row,gutter:i});break;case"fit":u=h({share:m=1/o*100,gutterShare:(o-1)/o,gutter:i}),c.top=f({unit:u,offset:e.row,gutter:i}),c.height=g({unit:u,span:t.row,gutter:i})}return c}(e.position,e.spans,i.colCount,n,i.gutter,i.rowMode,i.rowHeight)}})}}).reflow().performance();n.mdOnLayout({$event:{performance:t}}),a=i};var a,o=fe.bind(t,t.invalidateLayout),i=function(){for(var e in b.MEDIA)E(e),E.getQuery(b.MEDIA[e]).addListener(o);return E.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],p,d)}();function d(e){null==e?t.invalidateLayout():E(e)&&t.invalidateLayout()}n.$on("$destroy",function(){for(var e in t.layoutDelegate=fe.noop,i(),b.MEDIA)E.getQuery(b.MEDIA[e]).removeListener(o)});var s=u.startSymbol(),l=u.endSymbol();function e(e){return s+e+l}var h=u(e("share")+"% - ("+e("gutter")+" * "+e("gutterShare")+")"),f=u("calc(("+e("unit")+" + "+e("gutter")+") * "+e("offset")+")"),g=u("calc(("+e("unit")+") * "+e("span")+" + ("+e("span")+" - 1) * "+e("gutter")+")");function c(){var e=E.getResponsiveAttribute(p,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";return"fit"==e?"fit":-1!==e.indexOf(":")?"ratio":"fixed"}function m(e){return/\D$/.test(e)?e:e+"px"}}}}function we(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e.nextTick,this.layoutDelegate=fe.noop}function _e(s){var l=t;return e.animateWith=function(e){l=fe.isFunction(e)?e:t},e;function e(e,t){var n,o,i,r,a,d;return r=s.time(function(){o=function(i,e){var r=0,a=0,d=function(){for(var e=[],t=0;t<i;t++)e.push(0);return e}();return{positioning:e.map(function(e,t){return{spans:e,position:function(e,t){if(e.col>i)throw"md-grid-list: Tile at position "+t+" has a colspan ("+e.col+") that exceeds the column count ("+i+")";var n=0,o=0;for(;o-n<e.col;)i<=r?s():-1!==(n=d.indexOf(0,r))&&-1!==(o=c(n+1))?r=o+1:(n=o=0,s());return l(n,e.col,e.row),r=n+e.col,{col:n,row:a}}(e,t)}}),rowCount:a+Math.max.apply(Math,d)};function s(){a++,l(r=0,i,-1)}function l(e,t,n){for(var o=e;o<e+t;o++)d[o]=Math.max(d[o]+n,0)}function c(e){var t;for(t=e;t<d.length;t++)if(0!==d[t])return t;if(t===d.length)return t}}(e,t)}),n={layoutInfo:function(){return o},map:function(t){return a=s.time(function(){var e=n.layoutInfo();i=t(e.positioning,e.rowCount)}),n},reflow:function(e){return d=s.time(function(){(e||l)(i.grid,i.tiles)}),n},performance:function(){return{tileCount:t.length,layoutTime:r,mapTime:a,reflowTime:d,totalTime:r+a+d}}}}function t(e,t){e.element.css(e.style),t.forEach(function(e){e.element.css(e.style)})}}function ke(r){return{restrict:"E",require:"^mdGridList",template:"<figure ng-transclude></figure>",transclude:!0,scope:{},controller:["$attrs",function(e){this.$attrs=e}],link:function(e,t,n,o){t.attr("role","listitem");var i=r.watchResponsiveAttributes(["md-colspan","md-rowspan"],n,fe.bind(o,o.invalidateLayout));o.invalidateTiles(),e.$on("$destroy",function(){t[0].$$mdDestroyed=!0,i(),o.invalidateLayout()}),fe.isDefined(e.$parent.$index)&&e.$watch(function(){return e.$parent.$index},function(e,t){e!==t&&o.invalidateTiles()})}}}function xe(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}function Ne(t){return{restrict:"E",compile:function(e){return e[0].setAttribute("role","list"),t}}}function Se(u,p,h,f){var g=["md-checkbox","md-switch","md-menu"];return{restrict:"E",controller:"MdListController",compile:function(r,o){var e,i,t,n=r[0].querySelectorAll(".md-secondary"),a=r;if(r[0].setAttribute("role","listitem"),o.ngClick||o.ngDblclick||o.ngHref||o.href||o.uiSref||o.ngAttrUiSref)l("button");else if(!r.hasClass("md-no-proxy")){for(var d,s=0;d=g[s];++s)if(i=r[0].querySelector(d)){e=!0;break}e?l("div"):r.addClass("md-no-proxy")}function l(e){if("div"==e)(a=fe.element('<div class="md-no-style md-list-item-inner">')).append(r.contents()),r.addClass("md-proxy-focus");else{a=fe.element('<div class="md-button md-no-style"> <div class="md-list-item-inner"></div></div>');var t=fe.element('<md-button class="md-no-style"></md-button>');c(r[0],t[0]),t.attr("aria-label")||t.attr("aria-label",u.getText(r)),r.hasClass("md-no-focus")&&t.addClass("md-no-focus"),a.prepend(t),a.children().eq(1).append(r.contents()),r.addClass("_md-button-wrap")}r[0].setAttribute("tabindex","-1"),r.append(a)}function c(t,n,e){var o=h.prefixer(["ng-if","ng-click","ng-dblclick","aria-label","ng-disabled","ui-sref","href","ng-href","rel","target","ng-attr-ui-sref","ui-sref-opts","download"]);e&&(o=o.concat(h.prefixer(e))),fe.forEach(o,function(e){t.hasAttribute(e)&&(n.setAttribute(e,t.getAttribute(e)),t.removeAttribute(e))})}function m(e){for(var t=e.attributes,n=0;n<t.length;n++)if("ngClick"===o.$normalize(t[n].name))return!0;return!1}return t=fe.element('<div class="md-secondary-container">'),fe.forEach(n,function(e){!function(e,t){if(e&&!function(e){var t=e.nodeName.toUpperCase();return"MD-BUTTON"==t||"BUTTON"==t}(e)&&e.hasAttribute("ng-click")){u.expect(e,"aria-label");var n=fe.element('<md-button class="md-secondary md-icon-button">');c(e,n[0],["ng-if","ng-hide","ng-show"]),e.setAttribute("tabindex","-1"),n.append(e),e=n[0]}e&&(!m(e)||!o.ngClick&&function(e){return-1!=g.indexOf(e.nodeName.toLowerCase())}(e))&&fe.element(e).removeClass("md-secondary"),r.addClass("md-with-secondary"),t.append(e)}(e,t)}),a.append(t),function(){for(var e,t,n=["md-switch","md-checkbox"],o=0;t=n[o];++o)if((e=r.find(t)[0])&&!e.hasAttribute("aria-label")){var i=r.find("p")[0];if(!i)return;e.setAttribute("aria-label","Toggle "+i.textContent)}}(),e&&"MD-MENU"===i.nodeName&&function(){var e=fe.element(i),t=e.parent().hasClass("md-secondary-container")||i.parentNode.firstElementChild!==i,n="left";t&&(n="right");e.attr("md-position-mode")||e.attr("md-position-mode",n+" target");var o=e.children().eq(0);m(o[0])||o.attr("ng-click","$mdMenu.open($event)");o.attr("aria-label")||o.attr("aria-label","Open List Menu")}(),function(e,i,t,n){i.addClass("_md");var o=[],r=i[0].firstElementChild,a=i.hasClass("_md-button-wrap")?r.firstElementChild:r,d=a&&m(a),s=i.hasClass("md-no-proxy");r&&r.children&&!d&&!s&&fe.forEach(g,function(e){fe.forEach(r.querySelectorAll(e+":not(.md-secondary)"),function(e){o.push(e)})}),1!=o.length&&!d||(i.addClass("md-clickable"),d||n.attachRipple(e,fe.element(i[0].querySelector(".md-no-style")))),o.length&&fe.forEach(o,function(t){t=fe.element(t),e.mouseActive=!1,t.on("mousedown",function(){e.mouseActive=!0,f(function(){e.mouseActive=!1},100)}).on("focus",function(){!1===e.mouseActive&&i.addClass("md-focused"),t.on("blur",function e(){i.removeClass("md-focused"),t.off("blur",e)})})});function l(e){"INPUT"==e.target.nodeName||"TEXTAREA"==e.target.nodeName||e.target.isContentEditable||(e.which||e.keyCode)==p.KEY_CODE.SPACE&&a&&(a.click(),e.preventDefault(),e.stopPropagation())}d||o.length||a&&a.addEventListener("keypress",l);i.off("click"),i.off("keypress"),1==o.length&&a&&i.children().eq(0).on("click",function(t){(function(e){var t=["md-slider"];if(!e.path)return-1!==t.indexOf(e.target.tagName.toLowerCase());for(var n=e.path.indexOf(i.children()[0]),o=0;o<n;o++)if(-1!==t.indexOf(e.path[o].tagName.toLowerCase()))return!0})(t)||!h.getClosest(t.target,"BUTTON")&&a.contains(t.target)&&fe.forEach(o,function(e){t.target===e||e.contains(t.target)||("MD-MENU"===e.nodeName&&(e=e.children[0]),fe.element(e).triggerHandler("click"))})});e.$on("$destroy",function(){a&&a.removeEventListener("keypress",l)})}}}}function De(e,t,n){this.attachRipple=function(e,t){n.attach(e,t,{})}}function Ie(i,t,r,a,d,o,e,n,s){var l,c,m=d.prefixer(),u=this;this.nestLevel=parseInt(t.mdNestLevel,10)||0,this.init=function(e,t){t=t||{},l=e,(c=r[0].querySelector(m.buildSelector(["ng-click","ng-mouseenter"]))).setAttribute("aria-expanded","false"),this.isInMenuBar=t.isInMenuBar,this.nestedMenus=d.nodesToArray(l[0].querySelectorAll(".md-nested-menu")),l.on("$mdInterimElementRemove",function(){u.isOpen=!1,d.nextTick(function(){u.onIsOpenChanged(u.isOpen)})}),d.nextTick(function(){u.onIsOpenChanged(u.isOpen)});var n="menu_container_"+d.nextUid();l.attr("id",n),fe.element(c).attr({"aria-owns":n,"aria-haspopup":"true"}),a.$on("$destroy",fe.bind(this,function(){this.disableHoverListener(),i.destroy()})),l.on("$destroy",function(){i.destroy()})};var p,h,f=[];this.enableHoverListener=function(){f.push(e.$on("$mdMenuOpen",function(e,t){l[0].contains(t[0])&&(u.currentlyOpenMenu=t.controller("mdMenu"),u.isAlreadyOpening=!1,u.currentlyOpenMenu.registerContainerProxy(u.triggerContainerProxy.bind(u)))})),f.push(e.$on("$mdMenuClose",function(e,t){l[0].contains(t[0])&&(u.currentlyOpenMenu=ge)})),(h=fe.element(d.nodesToArray(l[0].children[0].children))).on("mouseenter",u.handleMenuItemHover),h.on("mouseleave",u.handleMenuItemMouseLeave)},this.disableHoverListener=function(){for(;f.length;)f.shift()();h&&h.off("mouseenter",u.handleMenuItemHover),h&&h.off("mouseleave",u.handleMenuItemMouseLeave)},this.handleMenuItemHover=function(e){if(!u.isAlreadyOpening){var t=e.target.querySelector("md-menu")||d.getClosest(e.target,"MD-MENU");p=o(function(){if(t=t&&fe.element(t).controller("mdMenu"),u.currentlyOpenMenu&&u.currentlyOpenMenu!=t){var e=u.nestLevel+1;u.currentlyOpenMenu.close(!0,{closeTo:e}),u.isAlreadyOpening=!!t,t&&t.open()}else t&&!t.isOpen&&t.open&&(u.isAlreadyOpening=!!t,t&&t.open())},t?100:250);var n=e.currentTarget.querySelector(".md-button:not([disabled])");n&&n.focus()}},this.handleMenuItemMouseLeave=function(){p&&(o.cancel(p),p=ge)},this.open=function(e){e&&e.stopPropagation(),e&&e.preventDefault(),u.isOpen||(u.enableHoverListener(),u.isOpen=!0,d.nextTick(function(){u.onIsOpenChanged(u.isOpen)}),(c=c||(e?e.target:r[0])).setAttribute("aria-expanded","true"),a.$emit("$mdMenuOpen",r),i.show({scope:a,mdMenuCtrl:u,nestLevel:u.nestLevel,element:l,target:c,preserveElement:!0,parent:"body"}).finally(function(){c.setAttribute("aria-expanded","false"),u.disableHoverListener()}))},this.onIsOpenChanged=function(e){e?(l.attr("aria-hidden","false"),r[0].classList.add("md-open"),fe.forEach(u.nestedMenus,function(e){e.classList.remove("md-open")})):(l.attr("aria-hidden","true"),r[0].classList.remove("md-open")),a.$mdMenuIsOpen=u.isOpen},this.focusMenuContainer=function(){var e=l[0].querySelector(m.buildSelector(["md-menu-focus-target","md-autofocus"]));(e=e||l[0].querySelector(".md-button:not([disabled])")).focus()},this.registerContainerProxy=function(e){this.containerProxy=e},this.triggerContainerProxy=function(e){this.containerProxy&&this.containerProxy(e)},this.destroy=function(){return u.isOpen?i.destroy():n.when(!1)},this.close=function(e,t){if(u.isOpen){u.isOpen=!1,d.nextTick(function(){u.onIsOpenChanged(u.isOpen)});var n=fe.extend({},t,{skipFocus:e});if(a.$emit("$mdMenuClose",r,n),i.hide(null,t),!e){var o=u.restoreFocusTo||r.find("button")[0];o instanceof fe.element&&(o=o[0]),o&&o.focus()}}},this.positionMode=function(){var e=(t.mdPositionMode||"target").split(" ");return 1===e.length&&e.push(e[0]),{left:e[0],top:e[1]}},this.offsets=function(){var e=(t.mdOffset||"0 0").split(" ").map(parseFloat);if(2===e.length)return{left:e[0],top:e[1]};if(1===e.length)return{top:e[0],left:e[0]};throw Error("Invalid offsets specified. Please follow format <x, y> or <n>")},a.$mdMenu={open:this.open,close:this.close},a.$mdOpenMenu=fe.bind(this,function(){return s.warn("mdMenu: The $mdOpenMenu method is deprecated. Please use `$mdMenu.open`."),this.open.apply(this,arguments)})}function He(a){var d="Invalid HTML for md-menu: ";return{restrict:"E",require:["mdMenu","?^mdMenuBar"],controller:"mdMenuCtrl",scope:!0,compile:function(e){e.addClass("md-menu");var t=e.children()[0],n=a.prefixer();n.hasAttribute(t,"ng-click")||(t=t.querySelector(n.buildSelector(["ng-click","ng-mouseenter"]))||t);var o="MD-BUTTON"===t.nodeName||"BUTTON"===t.nodeName;t&&o&&!t.hasAttribute("type")&&t.setAttribute("type","button");if(!t)throw Error(d+"Expected the menu to have a trigger element.");if(2!==e.children().length)throw Error(d+"Expected two children elements. The second element must have a `md-menu-content` element.");t&&t.setAttribute("aria-haspopup","true");var i=e[0].querySelectorAll("md-menu"),r=parseInt(e[0].getAttribute("md-nest-level"),10)||0;i&&fe.forEach(a.nodesToArray(i),function(e){e.hasAttribute("md-position-mode")||e.setAttribute("md-position-mode","cascade"),e.classList.add("_md-nested-menu"),e.setAttribute("md-nest-level",r+1)});return s}};function s(e,t,n,o){var i=o[0],r=!!o[1],a=fe.element('<div class="_md md-open-menu-container md-whiteframe-z2"></div>'),d=t.children()[1];t.addClass("_md"),d.hasAttribute("role")||d.setAttribute("role","menu"),a.append(d),t.on("$destroy",function(){a.remove()}),t.append(a),a[0].style.display="none",i.init(a,{isInMenuBar:r})}}function Oe(e){t.$inject=["$mdUtil","$mdTheming","$mdConstant","$document","$window","$q","$$rAF","$animateCss","$animate","$log"];var w=8;return e("$mdMenu").setDefaults({methods:["target"],options:t});function t(C,e,s,M,T,o,i,r,l,c){var A=C.prefixer(),m=C.dom.animator;return{parent:"body",onShow:function(a,n,d){(function(){if(!d.target)throw Error("$mdMenu.show() expected a target to animate from in options.target");fe.extend(d,{alreadyOpen:!1,isRemoved:!1,target:fe.element(d.target),parent:fe.element(d.parent),menuContentEl:fe.element(n[0].querySelector("md-menu-content"))})})(),d.menuContentEl[0]?e.inherit(d.menuContentEl,d.target):c.warn("$mdMenu: Menu elements should always contain a `md-menu-content` element,otherwise interactivity features will not work properly.",n);return d.cleanupResizing=function(){var e=function(t,n){return i.throttle(function(){if(!d.isRemoved){var e=h(t,n);t.css(m.toCss(e))}})}(n,d);return T.addEventListener("resize",e),T.addEventListener("orientationchange",e),function(){T.removeEventListener("resize",e),T.removeEventListener("orientationchange",e)}}(),d.hideBackdrop=function(e,t,n){if(n.nestLevel)return fe.noop;n.disableParentScroll&&!C.getClosest(n.target,"MD-DIALOG")?n.restoreScroll=C.disableScrollAround(n.element,n.parent):n.disableParentScroll=!1;n.hasBackdrop&&(n.backdrop=C.createBackdrop(e,"md-menu-backdrop md-click-catcher"),l.enter(n.backdrop,M[0].body));return function(){n.backdrop&&n.backdrop.remove(),n.disableParentScroll&&n.restoreScroll()}}(a,0,d),function(){return d.parent.append(n),n[0].style.display="",o(function(e){var t=h(n,d);n.removeClass("md-leave"),r(n,{addClass:"md-active",from:m.toCss(t),to:m.toCss({transform:""})}).start().then(e)})}().then(function(e){return d.alreadyOpen=!0,d.cleanupInteraction=function(){if(!d.menuContentEl[0])return fe.noop;d.menuContentEl.on("keydown",i),d.menuContentEl[0].addEventListener("click",r,!0);var e=d.menuContentEl[0].querySelector(A.buildSelector(["md-menu-focus-target","md-autofocus"]));if(!e)for(var t=d.menuContentEl[0].children.length,n=0;n<t;n++){var o=d.menuContentEl[0].children[n];if(e=o.querySelector(".md-button:not([disabled])"))break;if(o.firstElementChild&&!o.firstElementChild.disabled){e=o.firstElementChild;break}}return e&&e.focus(),function(){d.menuContentEl.off("keydown",i),d.menuContentEl[0].removeEventListener("click",r,!0)};function i(e){var t;switch(e.keyCode){case s.KEY_CODE.ESCAPE:d.mdMenuCtrl.close(!1,{closeAll:!0}),t=!0;break;case s.KEY_CODE.TAB:d.mdMenuCtrl.close(!1,{closeAll:!0}),t=!1;break;case s.KEY_CODE.UP_ARROW:u(e,d.menuContentEl,d,-1)||d.nestLevel||d.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case s.KEY_CODE.DOWN_ARROW:u(e,d.menuContentEl,d,1)||d.nestLevel||d.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case s.KEY_CODE.LEFT_ARROW:d.nestLevel?d.mdMenuCtrl.close():d.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case s.KEY_CODE.RIGHT_ARROW:var n=C.getClosest(e.target,"MD-MENU");n&&n!=d.parent[0]?e.target.click():d.mdMenuCtrl.triggerContainerProxy(e),t=!0}t&&(e.preventDefault(),e.stopImmediatePropagation())}function r(e){var t=e.target;do{if(t==d.menuContentEl[0])return;if((o(t,["ng-click","ng-href","ui-sref"])||"BUTTON"==t.nodeName||"MD-BUTTON"==t.nodeName)&&!o(t,["md-prevent-menu-close"])){var n=C.getClosest(t,"MD-MENU");t.hasAttribute("disabled")||n&&n!=d.parent[0]||a.$apply(function(){d.mdMenuCtrl.close(!0,{closeAll:!0})});break}}while(t=t.parentNode);function o(e,t){if(!e)return!1;for(var n,o=0;n=t[o];++o)if(A.hasAttribute(e,n))return!0;return!1}}}(),d.cleanupBackdrop=d.backdrop?(d.backdrop.on("click",t),function(){d.backdrop.off("click",t)}):fe.noop,n.addClass("md-clickable"),e});function t(e){e.preventDefault(),e.stopPropagation(),a.$apply(function(){d.mdMenuCtrl.close(!0,{closeAll:!0})})}},onRemove:function(e,t,n){return n.cleanupInteraction(),n.cleanupBackdrop(),n.cleanupResizing(),n.hideBackdrop(),t.removeClass("md-clickable"),!0===n.$destroy?o():function(){return r(t,{addClass:"md-leave"}).start()}().then(o);function o(){t.removeClass("md-active"),function(e,t){t.preserveElement?a(e).style.display="none":a(e).parentNode===a(t.parent)&&a(t.parent).removeChild(a(e))}(t,n),n.alreadyOpen=!1}},hasBackdrop:!0,disableParentScroll:!0,skipCompile:!0,preserveScope:!0,multiple:!0,themable:!0};function u(e,t,n,o){for(var i,r=C.getClosest(e.target,"MD-MENU-ITEM"),a=C.nodesToArray(t[0].children),d=a.indexOf(r)+o;0<=d&&d<a.length;d+=o){if(i=p(a[d].querySelector(".md-button")))break}return i}function p(e){if(e&&-1!=e.getAttribute("tabindex"))return e.focus(),M[0].activeElement==e}function h(e,t){var n,o=e[0],i=e[0].firstElementChild,r=i.getBoundingClientRect(),a=M[0].body.getBoundingClientRect(),d=T.getComputedStyle(i),s=t.target[0].querySelector(A.buildSelector("md-menu-origin"))||t.target[0],l=s.getBoundingClientRect(),c={left:a.left+w,top:Math.max(a.top,0)+w,bottom:Math.max(a.bottom,Math.max(a.top,0)+a.height)-w,right:a.right-w},m={top:0,left:0,right:0,bottom:0},u={top:0,left:0,right:0,bottom:0},p=t.mdMenuCtrl.positionMode();"target"!==p.top&&"target"!==p.left&&"target-right"!==p.left||(n=function(){for(var e=0;e<i.children.length;++e)if("none"!=T.getComputedStyle(i.children[e]).display)return i.children[e]}())&&(m=(n=(n=n.firstElementChild||n).querySelector(A.buildSelector("md-menu-align-target"))||n).getBoundingClientRect(),u={top:parseFloat(o.style.top||0),left:parseFloat(o.style.left||0)});var h={},f="top ";switch(p.top){case"target":h.top=u.top+l.top-m.top;break;case"cascade":h.top=l.top-parseFloat(d.paddingTop)-s.style.top;break;case"bottom":h.top=l.top+l.height;break;default:throw new Error('Invalid target mode "'+p.top+'" specified for md-menu on Y axis.')}var g=C.isRtl(e);switch(p.left){case"target":h.left=u.left+l.left-m.left,f+=g?"right":"left";break;case"target-left":h.left=l.left,f+="left";break;case"target-right":h.left=l.right-r.width+(r.right-m.right),f+="right";break;case"cascade":var b=g?l.left-r.width<c.left:l.right+r.width<c.right;h.left=b?l.right-s.style.left:l.left-s.style.left-r.width,f+=b?"left":"right";break;case"right":g?(h.left=l.right-l.width,f+="left"):(h.left=l.right-r.width,f+="right");break;case"left":g?(h.left=l.right-r.width,f+="right"):(h.left=l.left,f+="left");break;default:throw new Error('Invalid target mode "'+p.left+'" specified for md-menu on X axis.')}var v,E=t.mdMenuCtrl.offsets();h.top+=E.top,h.left+=E.left,(v=h).top=Math.max(Math.min(v.top,c.bottom-o.offsetHeight),c.top),v.left=Math.max(Math.min(v.left,c.right-o.offsetWidth),c.left);var $=Math.round(100*Math.min(l.width/o.offsetWidth,1))/100,y=Math.round(100*Math.min(l.height/o.offsetHeight,1))/100;return{top:Math.round(h.top),left:Math.round(h.left),transform:t.alreadyOpen?ge:C.supplant("scale({0},{1})",[$,y]),transformOrigin:f}}}function a(e){return e instanceof fe.element&&(e=e[0]),e}}function Pe(n,i){return{restrict:"E",require:"mdMenuBar",controller:"MenuBarController",compile:function(e,t){return t.ariaRole||e[0].setAttribute("role","menubar"),fe.forEach(e[0].children,function(e){if("MD-MENU"==e.nodeName){e.hasAttribute("md-position-mode")||(e.setAttribute("md-position-mode","left bottom"),e.querySelector("button, a, md-button").setAttribute("role","menuitem"));var t=n.nodesToArray(e.querySelectorAll("md-menu-content"));fe.forEach(t,function(e){e.classList.add("md-menu-bar-menu"),e.classList.add("md-dense"),e.hasAttribute("width")||e.setAttribute("width",5)})}}),e.find("md-menu-item").addClass("md-in-menu-bar"),function(e,t,n,o){t.addClass("_md"),i(e,t),o.init()}}}}function Le(e,t,n){this.$element=t,this.$attrs=n,this.$scope=e}function Re(c,e,m){return{controller:"MenuItemController",require:["mdMenuItem","?ngModel"],priority:e.BEFORE_NG_ARIA,compile:function(o,e){var t,n,i=e.type,r="md-in-menu-bar";if("checkbox"!==i&&"radio"!==i||!o.hasClass(r))l("role","menuitem",o[0].querySelector("md-button, button, a"));else{var a=o[0].textContent,d=fe.element('<md-button type="button"></md-button>'),s='<md-icon md-svg-src="'+m.mdChecked+'"></md-icon>';d.html(a),d.attr("tabindex","0"),fe.isDefined(e.mdPreventMenuClose)&&d.attr("md-prevent-menu-close",e.mdPreventMenuClose),o.html(""),o.append(fe.element(s)),o.append(d),o.addClass("md-indent").removeClass(r),l("role","checkbox"===i?"menuitemcheckbox":"menuitemradio",d),t="ng-disabled",n=c.prefixer(t),fe.forEach(n,function(e){if(o[0].hasAttribute(e)){var t=o[0].getAttribute(e);d[0].setAttribute(e,t),o[0].removeAttribute(e)}})}return function(e,t,n,o){var i=o[0],r=o[1];i.init(r)};function l(e,t,n){(n=n||o)instanceof fe.element&&(n=n[0]),n.hasAttribute(e)||n.setAttribute(e,t)}}}}function Fe(i,r){return{restrict:"E",transclude:!0,controller:Be,controllerAs:"ctrl",bindToController:!0,scope:{mdSelectedNavItem:"=?",mdNoInkBar:"=?",navBarAriaLabel:"@?"},template:'<div class="md-nav-bar"><nav role="navigation"><ul class="_md-nav-bar-list" ng-transclude role="tablist" ng-focus="ctrl.onFocus()" aria-label="{{ctrl.navBarAriaLabel}}"></ul></nav><md-nav-ink-bar ng-hide="ctrl.mdNoInkBar"></md-nav-ink-bar></div>',link:function(e,t,n,o){r(t),o.navBarAriaLabel||i.expectAsync(t,"aria-label",fe.noop)}}}function Be(e,t,n,o){this._$timeout=n,this._$scope=t,this._$mdConstant=o,this.mdSelectedNavItem,this.navBarAriaLabel,this._navBarEl=e[0],this._inkbar;var i=this,r=this._$scope.$watch(function(){return i._navBarEl.querySelectorAll("._md-nav-button").length},function(e){0<e&&(i._initTabs(),r())})}function Ue(c,e,m,u){return{restrict:"E",require:["mdNavItem","^mdNavBar"],controller:je,bindToController:!0,controllerAs:"ctrl",replace:!0,transclude:!0,template:function(e,t){var n,o,i=t.mdNavClick,r=t.mdNavHref,a=t.mdNavSref,d=t.srefOpts;if(1<(i?1:0)+(r?1:0)+(a?1:0))throw Error("Please do not specify more than one of the md-nav-click, md-nav-href, or md-nav-sref attributes per nav-item directive.");if(i!==ge&&null!==i)n='ng-click="ctrl.mdNavClick()"';else if(r!==ge&&null!==r)n='ng-href="{{ctrl.mdNavHref}}"';else{if(a===ge||null===a)throw Error("Please specify at least one of the md-nav-click, md-nav-href, or md-nav-sref attributes per nav-item directive.");n='ui-sref="{{ctrl.mdNavSref}}"'}return n&&(o='<md-button class="_md-nav-button md-accent" ng-class="ctrl.getNgClassMap()" ng-blur="ctrl.setFocused(false)" ng-disabled="ctrl.disabled" tabindex="-1" role="tab" ng-attr-aria-label="{{ctrl.navItemAriaLabel ? ctrl.navItemAriaLabel : undefined}}" aria-selected="{{ctrl.isSelected()}}" '+(d?'ui-sref-opts="{{ctrl.srefOpts}}" ':"")+n+'><span ng-transclude class="_md-nav-button-text"></span></md-button>'),'<li class="md-nav-item" role="presentation">'+(o||"")+"</li>"},scope:{mdNavClick:"&?",mdNavHref:"@?",mdNavSref:"@?",srefOpts:"=?",name:"@",navItemAriaLabel:"@?"},link:function(n,o,i,r){var a,d,s,l;e(function(){if(d=r[0],s=r[1],l=fe.element(o[0].querySelector("._md-nav-button")),d.name||(d.name=fe.element(o[0].querySelector("._md-nav-button-text")).text().trim()),l.on("keydown",function(e){s.onKeydown(e)}),l.on("focus",function(){s.getFocusedTab()||s.onFocus()}),l.on("click",function(){s.mdSelectedNavItem=d.name,n.$apply()}),d.disabled=m.parseAttributeBoolean(i.disabled,!1),"MutationObserver"in u){var e=o[0],t=new MutationObserver(function(e){m.nextTick(function(){d.disabled=m.parseAttributeBoolean(i[e[0].attributeName],!1)})});t.observe(e,{attributes:!0,attributeFilter:["disabled"]}),a=t.disconnect.bind(t)}else i.$observe("disabled",function(e){d.disabled=m.parseAttributeBoolean(e,!1)});d.navItemAriaLabel||c.expectWithText(l,"aria-label")}),n.$on("destroy",function(){l.off("keydown"),l.off("focus"),l.off("click"),a()})}}}function je(e){this._$element=e,this.mdNavClick,this.mdNavHref,this.mdNavSref,this.srefOpts,this.name,this.navItemAriaLabel,this._selected=!1,this._focused=!1}function qe($,y,d,C,p,e){var M=$.requestAnimationFrame||$.webkitRequestAnimationFrame||fe.noop,h=$.cancelAnimationFrame||$.webkitCancelAnimationFrame||$.webkitCancelRequestAnimationFrame||fe.noop,f="determinate",T="indeterminate",A="_md-progress-circular-disabled",w="md-mode-indeterminate";return{restrict:"E",scope:{value:"@",mdDiameter:"@",mdMode:"@"},template:'<svg xmlns="http://www.w3.org/2000/svg"><path fill="none"/></svg>',compile:function(e,t){if(e.attr({"aria-valuemin":0,"aria-valuemax":100,role:"progressbar"}),fe.isUndefined(t.mdMode)){var n=t.hasOwnProperty("value")?f:T;t.$set("mdMode",n)}else t.$set("mdMode",t.mdMode.trim());return o}};function o(g,s,l){var b,e,t=s[0],a=fe.element(t.querySelector("svg")),v=fe.element(t.querySelector("path")),n=y.startIndeterminate,o=y.endIndeterminate,i=0,E=0;function c(n,e,t,o,i,r){var a=++E,d=C.now(),s=e-n,l=N(g.mdDiameter),c=S(l),m=t||y.easeFn,u=o||y.duration,p=-90*(i||0),h=r||100;function f(e){v.attr("stroke-dashoffset",k(l,c,e,h)),v.attr("transform","rotate("+p+" "+l/2+" "+l/2+")")}e===n?f(e):b=M(function e(){var t=$.Math.max(0,$.Math.min(C.now()-d,u));f(m(t,n,s,u)),a===E&&t<u&&(b=M(e))})}function r(){c(n,o,y.easeFnIndeterminate,y.durationIndeterminate,i,75),i=++i%4}function m(){e||(e=p(r,y.durationIndeterminate,0,!1),r(),s.addClass(w).removeAttr("aria-valuenow"))}function u(){e&&(p.cancel(e),e=null,s.removeClass(w))}d(s),s.toggleClass(A,l.hasOwnProperty("disabled")),g.mdMode===T&&m(),g.$on("$destroy",function(){u(),b&&h(b)}),g.$watchGroup(["value","mdMode",function(){var e=t.disabled;return!0===e||!1===e?e:fe.isDefined(s.attr("disabled"))}],function(e,t){var n=e[1],o=e[2],i=0,r=0;if(o!==t[2]&&s.toggleClass(A,!!o),o)u();else if(n!==f&&n!==T&&(n=T,l.$set("mdMode",n)),n===T)t[1]===f&&(r=S(i=N(g.mdDiameter)),v.attr("d",_(i,r,!0)),v.attr("stroke-dasharray",(i-r)*$.Math.PI*.75)),m();else{var a=x(e[0]),d=x(t[0]);u(),t[1]===T&&(r=S(i=N(g.mdDiameter)),v.attr("d",_(i,r,!1)),v.attr("stroke-dasharray",(i-r)*$.Math.PI)),s.attr("aria-valuenow",a),c(d,a)}}),g.$watch("mdDiameter",function(e){var t=N(e),n=S(t),o=x(g.value),i=t/2+"px",r={width:t+"px",height:t+"px"};a[0].setAttribute("viewBox","0 0 "+t+" "+t),a.css(r).css("transform-origin",i+" "+i+" "+i),s.css(r),v.attr("stroke-width",n),v.attr("stroke-linecap","square"),g.mdMode==T?(v.attr("d",_(t,n,!0)),v.attr("stroke-dasharray",(t-n)*$.Math.PI*.75),v.attr("stroke-dashoffset",k(t,n,1,75))):(v.attr("d",_(t,n,!1)),v.attr("stroke-dasharray",(t-n)*$.Math.PI),v.attr("stroke-dashoffset",k(t,n,0,100)),c(o,o))})}function _(e,t,n){var o=e/2,i=t/2,r=o+","+i,a=o-i;return"M"+r+"A"+a+","+a+" 0 1 1 "+(i+","+o)+(n?"":"A"+a+","+a+" 0 0 1 "+r)}function k(e,t,n,o){return(e-t)*$.Math.PI*(3*(o||100)/100-n/100)}function x(e){return $.Math.max(0,$.Math.min(e||0,100))}function N(e){var t=y.progressSize;if(e){var n=parseFloat(e);return e.lastIndexOf("%")===e.length-1&&(n=n/100*t),n}return t}function S(e){return y.strokeWidth/100*e}}function ze(m,u,e){var p="determinate",h="indeterminate",f="buffer",g="query",b="_md-progress-linear-disabled";return{restrict:"E",template:'<div class="md-container"><div class="md-dashed"></div><div class="md-bar md-bar1"></div><div class="md-bar md-bar2"></div></div>',compile:function(e,t,n){return e.attr("aria-valuemin",0),e.attr("aria-valuemax",100),e.attr("role","progressbar"),o}};function o(e,n,t){var o;m(n);var i=t.hasOwnProperty("disabled"),r=u.dom.animator.toCss,a=fe.element(n[0].querySelector(".md-bar1")),d=fe.element(n[0].querySelector(".md-bar2")),s=fe.element(n[0].querySelector(".md-container"));function l(){var e=(t.mdMode||"").trim();if(e)switch(e){case p:case h:case f:case g:break;default:e=h}return e}function c(e,t){if(!i&&l()){var n=u.supplant("translateX({0}%) scale({1},1)",[(t-100)/2,t/100]),o=r({transform:n});fe.element(e).css(o)}}n.attr("md-mode",l()).toggleClass(b,i),function(){if(fe.isUndefined(t.mdMode)){var e=fe.isDefined(t.value)?p:h;n.attr("md-mode",e),t.mdMode=e}}(),t.$observe("value",function(e){var t=v(e);n.attr("aria-valuenow",t),l()!=g&&c(d,t)}),t.$observe("mdBufferValue",function(e){c(a,v(e))}),t.$observe("disabled",function(e){i=!0===e||!1===e?!!e:fe.isDefined(e),n.toggleClass(b,i),s.toggleClass(o,!i)}),t.$observe("mdMode",function(e){switch(o&&s.removeClass(o),e){case g:case f:case p:case h:s.addClass(o="md-mode-"+e);break;default:s.addClass(o="md-mode-"+h)}})}function v(e){return Math.max(0,Math.min(e||0,100))}}function We(d,s,l,c){return e.prototype={init:function(e){this._ngModelCtrl=e,this._ngModelCtrl.$render=fe.bind(this,this.render)},add:function(e){this._radioButtonRenderFns.push(e)},remove:function(e){var t=this._radioButtonRenderFns.indexOf(e);-1!==t&&this._radioButtonRenderFns.splice(t,1)},render:function(){this._radioButtonRenderFns.forEach(function(e){e()})},setViewValue:function(e,t){this._ngModelCtrl.$setViewValue(e,t),this.render()},getViewValue:function(){return this._ngModelCtrl.$viewValue},selectNext:function(){return t(this.$element,1)},selectPrevious:function(){return t(this.$element,-1)},setActiveDescendant:function(e){this.$element.attr("aria-activedescendant",e)},isDisabled:function(){return this.$element[0].hasAttribute("disabled")}},{restrict:"E",controller:["$element",e],require:["mdRadioGroup","?ngModel"],link:{pre:function(t,o,e,n){o.addClass("_md"),l(o);var i=n[0],r=n[1]||d.fakeNgModel();function a(){o.hasClass("md-focused")||o.addClass("md-focused")}i.init(r),t.mouseActive=!1,o.attr({role:"radiogroup",tabIndex:o.attr("tabindex")||"0"}).on("keydown",function(e){var t=e.which||e.keyCode;if(t==s.KEY_CODE.ENTER||e.currentTarget==e.target)switch(t){case s.KEY_CODE.LEFT_ARROW:case s.KEY_CODE.UP_ARROW:e.preventDefault(),i.selectPrevious(),a();break;case s.KEY_CODE.RIGHT_ARROW:case s.KEY_CODE.DOWN_ARROW:e.preventDefault(),i.selectNext(),a();break;case s.KEY_CODE.ENTER:var n=fe.element(d.getClosest(o[0],"form"));0<n.length&&n.triggerHandler("submit")}}).on("mousedown",function(e){t.mouseActive=!0,c(function(){t.mouseActive=!1},100)}).on("focus",function(){!1===t.mouseActive&&i.$element.addClass("md-focused")}).on("blur",function(){i.$element.removeClass("md-focused")})}}};function e(e){this._radioButtonRenderFns=[],this.$element=e}function t(e,t){var n=d.iterator(e[0].querySelectorAll("md-radio-button"),!0);if(n.count()){var o=e[0].querySelector("md-radio-button.md-checked"),i=n[t<0?"previous":"next"](o,function(e){return!fe.element(e).attr("disabled")})||n.first();fe.element(i).triggerHandler("click")}}}function Ve(s,l,c){var m="md-checked";return{restrict:"E",require:"^mdRadioGroup",transclude:!0,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-off"></div><div class="md-on"></div></div><div ng-transclude class="md-label"></div>',link:function(t,n,o,i){var r;c(n),function(e){e.attr({id:o.id||"radio_"+l.nextUid(),role:"radio","aria-checked":"false"}),s.expectWithText(e,"aria-label")}(n),o.ngValue?l.nextTick(e,!1):e();function e(){if(!i)throw"RadioButton: No RadioGroupController could be found.";i.add(d),o.$observe("value",d),n.on("click",a).on("$destroy",function(){i.remove(d)})}function a(e){n[0].hasAttribute("disabled")||i.isDisabled()||t.$apply(function(){i.setViewValue(o.value,e&&e.type)})}function d(){var e=i.getViewValue()==o.value;e!==r&&("md-radio-group"!==n[0].parentNode.nodeName.toLowerCase()&&n.parent().toggleClass(m,e),e&&i.setActiveDescendant(n.attr("id")),r=e,n.attr("aria-checked",e).toggleClass(m,e))}}}}function Ye(s,l){return["$mdUtil","$window",function(a,d){return{restrict:"A",multiElement:!0,link:function(o,i,t){var r=o.$on("$md-resize-enable",function(){r();var e=i[0],n=e.nodeType===d.Node.ELEMENT_NODE?d.getComputedStyle(e):{};o.$watch(t[s],function(e){if(!!e===l){a.nextTick(function(){o.$broadcast("$md-resize")});var t={cachedTransitionStyles:n};a.dom.animator.waitTransitionEnd(i,t).then(function(){o.$broadcast("$md-resize")})}})})}}}]}function Ke(o,i,r,a){var d="SideNav '{0}' is not available! Did you use md-component-id='{0}'?",s={find:function(e,t){var n=o.get(e);return n||t?n:(a.error(i.supplant(d,[e||""])),ge)},waitFor:l};return function(e,t){if(fe.isUndefined(e))return s;var n=!0===t,o=s.find(e,n);return!o&&n?s.waitFor(e):!o&&fe.isUndefined(t)?function(e,t){function n(){return!1}function o(){return r.when(i.supplant(d,[t||""]))}return fe.extend({isLockedOpen:n,isOpen:n,toggle:o,open:o,close:o,onClose:fe.noop,then:function(e){return l(t).then(e||fe.noop)}},e)}(s,e):o};function l(e){return o.when(e).catch(a.error)}}function Ge(o,b,v,E,$,y,e,C,M,T,A,w,_){return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){return e.addClass("md-closed").attr("tabIndex","-1"),t}};function t(i,r,e,t){var a,d,s,l,c,m=null,u=null,p=T.when(!0),n=C(e.mdIsLockedOpen),h=fe.element(w);function f(e){return e.keyCode===v.KEY_CODE.ESCAPE?g(e):T.when(!0)}function g(e){return e.preventDefault(),t.close()}e.mdDisableScrollTarget&&((m=A[0].querySelector(e.mdDisableScrollTarget))?m=fe.element(m):M.warn(b.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:e.mdDisableScrollTarget}))),m=m||r.parent(),e.hasOwnProperty("mdDisableBackdrop")||(d=b.createBackdrop(i,"md-sidenav-backdrop md-opaque ng-enter")),e.hasOwnProperty("mdDisableCloseEvents")&&(s=!0),r.addClass("_md"),E(r),d&&E.inherit(d,r),r.on("$destroy",function(){d&&d.remove(),t.destroy()}),i.$on("$destroy",function(){d&&d.remove()}),i.$watch(function(){return n(i.$parent,{$media:function(e){return M.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),o(e)},$mdMedia:o})},function(e,t){(i.isLockedOpen=e)===t?r.toggleClass("md-locked-open",!!e):y[e?"addClass":"removeClass"](r,"md-locked-open");d&&d.toggleClass("md-locked-open",!!e)}),i.$watch("isOpen",function(e){var t,n=b.findFocusTarget(r)||b.findFocusTarget(r,"[md-sidenav-focus]")||r,o=r.parent();s||(o[e?"on":"off"]("keydown",f),d&&d[e?"on":"off"]("click",g));t=function(e,t){var n=r[0],o=e[0].scrollTop;if(t&&o){c={top:n.style.top,bottom:n.style.bottom,height:n.style.height};var i={top:o+"px",bottom:"auto",height:e[0].clientHeight+"px"};r.css(i),d.css(i)}if(!t&&c)return function(){n.style.top=c.top,n.style.bottom=c.bottom,n.style.height=c.height,d[0].style.top=null,d[0].style.bottom=null,d[0].style.height=null,c=null}}(o,e),e&&(u=A[0].activeElement,l=$.getLastInteractionType());return function(e){e&&!a?(a=m.css("overflow"),m.css("overflow","hidden")):fe.isDefined(a)&&(m.css("overflow",a),a=ge)}(e),p=T.all([e&&d?y.enter(d,o):d?y.leave(d):T.when(!0),y[e?"removeClass":"addClass"](r,"md-closed")]).then(function(){i.isOpen&&(_(function(){h.triggerHandler("resize")}),n&&n.focus()),t&&t()})}),t.$toggleOpen=function(e){return i.isOpen===e?T.when(!0):(i.isOpen&&t.onCloseCb&&t.onCloseCb(),T(function(t){i.isOpen=e,b.nextTick(function(){p.then(function(e){!i.isOpen&&u&&"keyboard"===l&&(u.focus(),u=null),t(e)})})}))}}}function Xe(t,e,n,o,i){var r=this;r.isOpen=function(){return!!t.isOpen},r.isLockedOpen=function(){return!!t.isLockedOpen},r.onClose=function(e){return r.onCloseCb=e,r},r.open=function(){return r.$toggleOpen(!0)},r.close=function(){return r.$toggleOpen(!1)},r.toggle=function(){return r.$toggleOpen(!t.isOpen)},r.$toggleOpen=function(e){return o.when(t.isOpen=e)};var a=e.mdComponentId,d=a&&-1<a.indexOf(i.startSymbol()),s=d?i(a)(t.$parent):a;r.destroy=n.register(r,s),d&&e.$observe("mdComponentId",function(e){e&&e!==r.$$mdHandle&&(r.destroy(),r.destroy=n.register(r,e))})}function Qe(l,c,m,d){var s=m.checkStickySupport();return function(e,t,n){var o=t.controller("mdContent");if(o)if(s)t.css({position:s,top:0,"z-index":2});else{var i=o.$element.data("$$sticky");i||(i=function(e){var o,i=e.$element,r=c.throttle(t);return function(e){var t,n,o=200;function i(){+m.now()-n>o?(t=!1,e.triggerHandler("$scrollend")):(e.triggerHandler("$scroll"),c.throttle(i))}e.on("scroll touchmove",function(){t||(t=!0,c.throttle(i),e.triggerHandler("$scrollstart")),e.triggerHandler("$scroll"),n=+m.now()})}(i),i.on("$scrollstart",r),i.on("$scroll",function e(){var t=i.prop("scrollTop");var n=(e.prevScrollTop||0)<t;e.prevScrollTop=t;if(0===t)return void d(null);if(n){if(o.next&&o.next.top<=t)return void d(o.next);if(o.current&&o.next&&o.next.top-t<=o.next.height)return void s(o.current,t+(o.next.top-o.next.height-t))}if(!n){if(o.current&&o.prev&&t<o.current.top)return void d(o.prev);if(o.next&&o.current&&t>=o.next.top-o.current.height)return void s(o.current,t+(o.next.top-t-o.current.height))}o.current&&s(o.current,t)}),o={prev:null,current:null,next:null,items:[],add:function(n,e){e.addClass("md-sticky-clone");var t={element:n,clone:e};return o.items.push(t),m.nextTick(function(){i.prepend(t.clone)}),r(),function(){o.items.forEach(function(e,t){e.element[0]===n[0]&&(o.items.splice(t,1),e.clone.remove())}),r()}},refreshElements:t};function t(){var e;o.items.forEach(a),o.items=o.items.sort(function(e,t){return e.top<t.top?-1:1});for(var t=i.prop("scrollTop"),n=o.items.length-1;0<=n;n--)if(t>o.items[n].top){e=o.items[n];break}d(e)}function a(e){var t=e.element[0];for(e.top=0,e.left=0,e.right=0;t&&t!==i[0];)e.top+=t.offsetTop,e.left+=t.offsetLeft,t.offsetParent&&(e.right+=t.offsetParent.offsetWidth-t.offsetWidth-t.offsetLeft),t=t.offsetParent;e.height=e.element.prop("offsetHeight");var n=m.floatingScrollbars()?"0":ge;m.bidi(e.clone,"margin-left",e.left,n),m.bidi(e.clone,"margin-right",n,e.right)}function d(e){if(o.current!==e){o.current&&(s(o.current,null),n(o.current,null)),e&&n(e,"active"),o.current=e;var t=o.items.indexOf(e);o.next=o.items[t+1],o.prev=o.items[t-1],n(o.next,"next"),n(o.prev,"prev")}}function n(e,t){e&&e.state!==t&&(e.state&&(e.clone.attr("sticky-prev-state",e.state),e.element.attr("sticky-prev-state",e.state)),e.clone.attr("sticky-state",t),e.element.attr("sticky-state",t),e.state=t)}function s(e,t){e&&(null===t||t===ge?e.translateY&&(e.translateY=null,e.clone.css(l.CSS.TRANSFORM,"")):(e.translateY=t,m.bidi(e.clone,l.CSS.TRANSFORM,"translate3d("+e.left+"px,"+t+"px,0)","translateY("+t+"px)")))}}(o),o.$element.data("$$sticky",i));var r=n||d(t.clone())(e),a=i.add(t,r);e.$on("$destroy",a)}}}function Ze(d,s,l,c,m){return{restrict:"E",replace:!0,transclude:!0,template:'<div class="md-subheader _md"> <div class="md-subheader-inner"> <div class="md-subheader-content"></div> </div></div>',link:function(n,o,e,t,i){l(o),o.addClass("_md"),c.prefixer().removeAttribute(o,"ng-repeat");var r=o[0].outerHTML;function a(e){return fe.element(e[0].querySelector(".md-subheader-content"))}e.$set("role","heading"),m.expect(o,"aria-level","2"),i(n,function(e){a(o).append(e)}),o.hasClass("md-no-sticky")||i(n,function(e){var t=s('<div class="md-subheader-wrapper" aria-hidden="true">'+r+"</div>")(n);c.nextTick(function(){a(t).append(e)}),d(n,o,t)})}}}function Je(e){t.$inject=["$parse"];var r="md"+e,a="$md."+e.toLowerCase();return t;function t(i){return{restrict:"A",link:function(n,e,t){var o=i(t[r]);e.on(a,function(e){var t=e.currentTarget;n.$applyAsync(function(){o(n,{$event:e,$target:{current:t}})})})}}}}function et(e,m,u,p,h,f,g){var n=e[0];return{restrict:"E",priority:u.BEFORE_NG_ARIA,transclude:!0,template:'<div class="md-container"><div class="md-bar"></div><div class="md-thumb-container"><div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div></div></div><div ng-transclude class="md-label"></div>',require:["^?mdInputContainer","?ngModel","?^form"],compile:function(e,t){var c=n.compile(e,t).post;return e.addClass("md-dragging"),function(t,n,e,o){o[0];var i=o[1]||m.fakeNgModel(),r=(o[2],null);null!=e.disabled?r=function(){return!0}:e.ngDisabled&&(r=p(e.ngDisabled));var a,d=fe.element(n[0].querySelector(".md-thumb-container")),s=fe.element(n[0].querySelector(".md-container")),l=fe.element(n[0].querySelector(".md-label"));h(function(){n.removeClass("md-dragging")}),c(t,n,e,o),r&&t.$watch(r,function(e){n.attr("tabindex",e?-1:0)}),e.$observe("mdInvert",function(e){var t=m.parseAttributeBoolean(e);t?n.prepend(l):n.prepend(s),n.toggleClass("md-inverted",t)}),f.register(s,"drag"),s.on("$md.dragstart",function(e){if(r&&r(t))return;e.stopPropagation(),n.addClass("md-dragging"),a={width:d.prop("offsetWidth")}}).on("$md.drag",function(e){if(!a)return;e.stopPropagation(),e.srcEvent&&e.srcEvent.preventDefault();var t=e.pointer.distanceX/a.width,n=i.$viewValue?1+t:t;n=Math.max(0,Math.min(1,n)),d.css(u.CSS.TRANSFORM,"translate3d("+100*n+"%,0,0)"),a.translate=n}).on("$md.dragend",function(e){if(!a)return;e.stopPropagation(),n.removeClass("md-dragging"),d.css(u.CSS.TRANSFORM,""),(i.$viewValue?a.translate<.5:.5<a.translate)&&function(e){t.$apply(function(){i.$setViewValue(e),i.$render()})}(!i.$viewValue);a=null,t.skipToggle=!0,g(function(){t.skipToggle=!1},1)})}}}}function tt(o){return{restrict:"A",compile:function(e,t){var n=o(t.mdTabScroll,null,!0);return function(t,e){e.on("wheel",function(e){t.$apply(function(){n(t,{$event:e})})})}}}}function nt(l,c,t,n,i,m,s,r,o,e,a,u,d){var p=this,h=!1,f=[],g=!1,b=!1;function v(t,e){var n=r.$normalize("md-"+t);function o(e){p[t]="false"!==e}e&&O(t,e),r.hasOwnProperty(n)&&o(r[n]),r.$observe(n,o)}function E(){g=!0,fe.element(t).off("resize",x)}function $(){var e=D();fe.element(e.wrapper).toggleClass("md-stretch-tabs",function(){switch(p.stretchTabs){case"always":return!0;case"never":return!1;default:return!p.shouldPaginate&&t.matchMedia("(max-width: 600px)").matches}}()),z()}function y(){p.shouldCenterTabs=I()}function C(t,e){if(t!==e){var n=D();fe.forEach(n.tabs,function(e){e.style.maxWidth=t+"px"}),fe.forEach(n.dummies,function(e){e.style.maxWidth=t+"px"}),m.nextTick(p.updateInkBarStyles)}}function M(e,t){e!==t&&(p.maxTabWidth=R(),p.shouldCenterTabs=I(),m.nextTick(function(){p.maxTabWidth=R(),U(p.selectedIndex)}))}function T(e){c[e?"removeClass":"addClass"]("md-no-tab-content")}function A(e){var t=(p.shouldCenterTabs||V()?"":"-")+e+"px";t=t.replace("--",""),fe.element(D().paging).css(n.CSS.TRANSFORM,"translate("+t+", 0)"),l.$broadcast("$mdTabsPaginationChanged")}function w(e,t){e!==t&&D().tabs[e]&&(U(),B())}function _(e,t){e!==t&&(p.selectedIndex=H(e),p.lastSelectedIndex=t,p.updateInkBarStyles(),q(),U(e),l.$broadcast("$mdTabsChanged"),p.tabs[t]&&p.tabs[t].scope.deselect(),p.tabs[e]&&p.tabs[e].scope.select())}function k(e,t){h||(p.focusIndex=p.selectedIndex=e),t&&p.noSelectClick||m.nextTick(function(){p.tabs[e].element.triggerHandler("click")},!1)}function x(){p.lastSelectedIndex=p.selectedIndex,p.offsetLeft=W(p.offsetLeft),m.nextTick(function(){p.updateInkBarStyles(),P()})}function N(e){fe.element(D().inkBar).toggleClass("ng-hide",e)}function S(e){c.toggleClass("md-dynamic-height",e)}function D(){var e={},t=c[0];return e.wrapper=t.querySelector("md-tabs-wrapper"),e.canvas=e.wrapper.querySelector("md-tabs-canvas"),e.paging=e.canvas.querySelector("md-pagination-wrapper"),e.inkBar=e.paging.querySelector("md-ink-bar"),e.nextButton=t.querySelector("md-next-button"),e.prevButton=t.querySelector("md-prev-button"),e.contents=t.querySelectorAll("md-tabs-content-wrapper > md-tab-content"),e.tabs=e.paging.querySelectorAll("md-tab-item"),e.dummies=e.canvas.querySelectorAll("md-dummy-tab"),e}function I(){return p.centerTabs&&!p.shouldPaginate}function H(e){if(-1===e)return-1;var t,n,o=Math.max(p.tabs.length-e,e);for(t=0;t<=o;t++){if((n=p.tabs[e+t])&&!0!==n.scope.disabled)return n.getIndex();if((n=p.tabs[e-t])&&!0!==n.scope.disabled)return n.getIndex()}return e}function O(e,n,o){Object.defineProperty(p,e,{get:function(){return o},set:function(e){var t=o;o=e,n&&n(e,t)}})}function P(){p.maxTabWidth=R(),p.shouldPaginate=function(){var e;if(p.noPagination||!b)return!1;var t=c.prop("clientWidth");return fe.forEach(D().tabs,function(e){t-=e.offsetWidth}),e=t<0,m.msie&&(D().paging.style.width=e?"999999px":ge),e}()}function L(e){var t=0;return fe.forEach(e,function(e){t+=Math.max(e.offsetWidth,e.getBoundingClientRect().width)}),Math.ceil(t)}function R(){var e=D().canvas.clientWidth;return Math.max(0,Math.min(e-1,264))}function F(e,t){var n,o=t?"focusIndex":"selectedIndex",i=p[o];for(n=i+e;p.tabs[n]&&p.tabs[n].scope.disabled;n+=e);n=(i+e+p.tabs.length)%p.tabs.length,p.tabs[n]&&(p[o]=n)}function B(){p.styleTabItemFocus="keyboard"===a.getLastInteractionType();var e=D().tabs[p.focusIndex];e&&e.focus()}function U(e){var t=D();if(fe.isNumber(e)||(e=p.focusIndex),t.tabs[e]&&!p.shouldCenterTabs){var n=t.tabs[e],o=n.offsetLeft,i=n.offsetWidth+o;if(0!==e)if(V()){var r=L(Array.prototype.slice.call(t.tabs,0,e)),a=L(Array.prototype.slice.call(t.tabs,0,e+1));p.offsetLeft=Math.min(p.offsetLeft,W(r)),p.offsetLeft=Math.max(p.offsetLeft,W(a-t.canvas.clientWidth))}else p.offsetLeft=Math.max(p.offsetLeft,W(i-t.canvas.clientWidth+32)),p.offsetLeft=Math.min(p.offsetLeft,W(o));else p.offsetLeft=0}}function j(){p.selectedIndex=H(p.selectedIndex),p.focusIndex=H(p.focusIndex)}function q(){if(!p.dynamicHeight)return c.css("height","");if(!p.tabs.length)return f.push(q);var e=D(),t=e.contents[p.selectedIndex],n=t?t.offsetHeight:0,o=e.wrapper.offsetHeight,i=n+o,r=c.prop("clientHeight");if(r!==i){"bottom"===c.attr("md-align-tabs")&&(r-=o,i-=o,c.attr("md-border-bottom")!==ge&&++r),h=!0;var a={height:r+"px"},d={height:i+"px"};c.css(a),s(c,{from:a,to:d,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done(function(){c.css({transition:"none",height:""}),m.nextTick(function(){c.css("transition","")}),h=!1})}}function z(e,t){if(!p.noInkBar){var n=D();if(n.tabs[p.selectedIndex])if(p.tabs.length)if(c.prop("offsetParent")){var o=p.selectedIndex,i=n.paging.offsetWidth,r=n.tabs[o],a=r.offsetLeft,d=i-a-r.offsetWidth;if(p.shouldCenterTabs){var s=L(n.tabs);s<i&&e!==i&&t!==s&&u(z,0,!0,i,s)}!function(){var e=D(),t=p.selectedIndex,n=p.lastSelectedIndex,o=fe.element(e.inkBar);if(!fe.isNumber(n))return;o.toggleClass("md-left",t<n).toggleClass("md-right",n<t)}(),fe.element(n.inkBar).css({left:a+"px",right:d+"px"})}else(function e(){e.watcher||(e.watcher=l.$watch(function(){m.nextTick(function(){e.watcher&&c.prop("offsetParent")&&(e.watcher(),e.watcher=null,x())},!1)}))})();else f.push(p.updateInkBarStyles);else fe.element(n.inkBar).css({left:"auto",right:"auto"})}}function W(e){var t=D();if(!t.tabs.length||!p.shouldPaginate)return 0;var n=t.tabs[t.tabs.length-1],o=n.offsetLeft+n.offsetWidth;return e=V()?(e=Math.min(t.paging.offsetWidth-t.canvas.clientWidth,e),Math.max(0,e)):(e=Math.max(0,e),Math.min(o-t.canvas.clientWidth,e))}function V(){return m.isRtl(r)}p.$onInit=function(){(function(t,e){var n=r.$normalize("md-"+t);e&&O(t,e);r.$observe(n,function(e){p[t]=e})})("stretchTabs",$),O("focusIndex",w,p.selectedIndex||0),O("offsetLeft",A,0),O("hasContent",T,!1),O("maxTabWidth",C,R()),O("shouldPaginate",M,!1),v("noInkBar",N),v("dynamicHeight",S),v("noPagination"),v("swipeContent"),v("noDisconnect"),v("autoselect"),v("noSelectClick"),v("centerTabs",y),v("enableDisconnect"),p.scope=l,p.parent=l.$parent,p.tabs=[],p.lastSelectedIndex=null,p.hasFocus=!1,p.styleTabItemFocus=!1,p.shouldCenterTabs=I(),p.tabContentPrefix="tab-content-",p.navigationHint="Use the left and right arrow keys to navigate between tabs",p.selectedIndex=p.selectedIndex||0,function(){var e=r.$mdTabsTemplate,t=fe.element(c[0].querySelector("md-tab-data"));t.html(e),o(t.contents())(p.parent),delete r.$mdTabsTemplate}(),l.$watch("$mdTabsCtrl.selectedIndex",_),fe.element(t).on("resize",x),l.$on("$destroy",E),e(c),m.nextTick(function(){q(),U(),z(),p.tabs[p.selectedIndex]&&p.tabs[p.selectedIndex].scope.select(),b=!0,P()})},p.updatePagination=m.debounce(P,100),p.redirectFocus=B,p.attachRipple=function(e,t){var n=D(),o={colorElement:fe.element(n.inkBar)};i.attach(e,t,o)},p.insertTab=function(e,t){var n=b,o={getIndex:function(){return p.tabs.indexOf(i)},isActive:function(){return this.getIndex()===p.selectedIndex},isLeft:function(){return this.getIndex()<p.selectedIndex},isRight:function(){return this.getIndex()>p.selectedIndex},shouldRender:function(){return!p.noDisconnect||this.isActive()},hasFocus:function(){return p.styleTabItemFocus&&p.hasFocus&&this.getIndex()===p.focusIndex},id:m.nextUid(),hasContent:!(!e.template||!e.template.trim())},i=fe.extend(o,e);fe.isDefined(t)?p.tabs.splice(t,0,i):p.tabs.push(i);return function(){f.forEach(function(e){m.nextTick(e)}),f=[]}(),function(){var e,t=!1;for(e=0;e<p.tabs.length;e++)if(p.tabs[e].hasContent){t=!0;break}p.hasContent=t}(),m.nextTick(function(){P(),function(e){if(e.hasContent){var t=c[0].querySelectorAll('[md-tab-id="'+e.id+'"]');fe.element(t).attr("aria-controls",p.tabContentPrefix+e.id)}}(i),n&&p.autoselect&&m.nextTick(function(){m.nextTick(function(){k(p.tabs.indexOf(i))})})}),i},p.removeTab=function(e){if(g)return;var t=p.selectedIndex,n=p.tabs.splice(e.getIndex(),1)[0];j(),p.selectedIndex===t&&(n.scope.deselect(),p.tabs[p.selectedIndex]&&p.tabs[p.selectedIndex].scope.select());m.nextTick(function(){P(),p.offsetLeft=W(p.offsetLeft)})},p.select=k,p.scroll=function(e){if(!p.shouldPaginate)return;e.preventDefault(),e.deltaY?p.offsetLeft=W(p.offsetLeft+e.deltaY):e.deltaX&&(p.offsetLeft=W(p.offsetLeft+e.deltaX))},p.nextPage=function(){if(!p.canPageForward())return;var e=d.increasePageOffset(D(),p.offsetLeft);p.offsetLeft=W(e)},p.previousPage=function(){if(!p.canPageBack())return;var e=d.decreasePageOffset(D(),p.offsetLeft);p.offsetLeft=W(e)},p.keydown=function(e){switch(e.keyCode){case n.KEY_CODE.LEFT_ARROW:e.preventDefault(),F(-1,!0);break;case n.KEY_CODE.RIGHT_ARROW:e.preventDefault(),F(1,!0);break;case n.KEY_CODE.SPACE:case n.KEY_CODE.ENTER:e.preventDefault(),h||k(p.focusIndex);break;case n.KEY_CODE.TAB:p.focusIndex!==p.selectedIndex&&(p.focusIndex=p.selectedIndex)}},p.canPageForward=function(){var e=D(),t=e.tabs[e.tabs.length-1];if(V())return p.offsetLeft<e.paging.offsetWidth-e.canvas.offsetWidth;return t&&t.offsetLeft+t.offsetWidth>e.canvas.clientWidth+p.offsetLeft},p.canPageBack=function(){return 0<p.offsetLeft},p.refreshIndex=j,p.incrementIndex=F,p.getTabElementIndex=function(e){var t=c[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(t,e[0])},p.updateInkBarStyles=m.debounce(z,100),p.updateTabOrder=m.debounce(function(){var e=p.tabs[p.selectedIndex],t=p.tabs[p.focusIndex];p.tabs=p.tabs.sort(function(e,t){return e.index-t.index}),p.selectedIndex=p.tabs.indexOf(e),p.focusIndex=p.tabs.indexOf(t)},100),p.getFocusedTabId=function(){var e=p.tabs[p.focusIndex];return e&&e.id?"tab-item-"+e.id:null},1===fe.version.major&&fe.version.minor<=4&&this.$onInit()}function ot(n){return{scope:{navigationHint:"@?mdNavigationHint",selectedIndex:"=?mdSelected"},template:function(e,t){return t.$mdTabsTemplate=e.html(),'<md-tabs-wrapper> <md-tab-data></md-tab-data> <md-prev-button tabindex="-1" role="button" aria-label="Previous Page" aria-disabled="{{!$mdTabsCtrl.canPageBack()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.previousPage()"> <md-icon md-svg-src="'+n.mdTabsArrow+'"></md-icon> </md-prev-button> <md-next-button tabindex="-1" role="button" aria-label="Next Page" aria-disabled="{{!$mdTabsCtrl.canPageForward()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.nextPage()"> <md-icon md-svg-src="'+n.mdTabsArrow+'"></md-icon> </md-next-button> <md-tabs-canvas tabindex="{{ $mdTabsCtrl.hasFocus ? -1 : 0 }}" ng-focus="$mdTabsCtrl.redirectFocus()" ng-class="{ \'md-paginated\': $mdTabsCtrl.shouldPaginate, \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" ng-keydown="$mdTabsCtrl.keydown($event)"> <md-pagination-wrapper ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" md-tab-scroll="$mdTabsCtrl.scroll($event)" role="tablist" aria-label="{{::$mdTabsCtrl.navigationHint}}"><md-tab-item tabindex="{{ tab.isActive() ? 0 : -1 }}" class="md-tab {{::tab.scope.tabClass}}" ng-repeat="tab in $mdTabsCtrl.tabs" role="tab" id="tab-item-{{::tab.id}}" md-tab-id="{{::tab.id}}" aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-click="$mdTabsCtrl.select(tab.getIndex())" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" ng-class="{ \'md-active\': tab.isActive(), \'md-focused\': tab.hasFocus(), \'md-disabled\': tab.scope.disabled }" ng-disabled="tab.scope.disabled" md-swipe-left="$mdTabsCtrl.nextPage()" md-swipe-right="$mdTabsCtrl.previousPage()" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-tab-item> <md-ink-bar></md-ink-bar> </md-pagination-wrapper> <md-tabs-dummy-wrapper aria-hidden="true" class="md-visually-hidden md-dummy-wrapper"> <md-dummy-tab class="md-tab" tabindex="-1" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" ng-repeat="tab in $mdTabsCtrl.tabs" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-dummy-tab> </md-tabs-dummy-wrapper> </md-tabs-canvas> </md-tabs-wrapper> <md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent && $mdTabsCtrl.selectedIndex >= 0" class="_md"> <md-tab-content id="{{:: $mdTabsCtrl.tabContentPrefix + tab.id}}" class="_md" role="tabpanel" aria-labelledby="tab-item-{{::tab.id}}" md-swipe-left="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(1)" md-swipe-right="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(-1)" ng-if="tab.hasContent" ng-repeat="(index, tab) in $mdTabsCtrl.tabs" ng-class="{ \'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null, \'md-active\': tab.isActive(), \'md-left\': tab.isLeft(), \'md-right\': tab.isRight(), \'md-no-scroll\': $mdTabsCtrl.dynamicHeight }"> <div md-tabs-template="::tab.template" md-connected-if="tab.isActive()" md-scope="::tab.parent" ng-if="$mdTabsCtrl.enableDisconnect || tab.shouldRender()"></div> </md-tab-content> </md-tabs-content-wrapper>'},controller:"MdTabsController",controllerAs:"$mdTabsCtrl",bindToController:!0}}function it(s,l){return{require:"^?mdTabs",link:function(e,t,n,o){if(o){var i,r,a=function(){o.updatePagination(),o.updateInkBarStyles()};if("MutationObserver"in l){(i=new MutationObserver(a)).observe(t[0],{childList:!0,subtree:!0,characterData:!0}),r=i.disconnect.bind(i)}else{var d=s.debounce(a,15,null,!1);t.on("DOMSubtreeModified",d),r=t.off.bind(t,"DOMSubtreeModified",d)}e.$on("$destroy",function(){r()})}}}}function rt(a,d){return{restrict:"A",link:function(e,t,n,o){if(!o)return;var i=o.enableDisconnect?e.compileScope.$new():e.compileScope;return t.html(e.template),a(t.contents())(i),d.nextTick(function(){e.$watch("connected",function(e){!1===e?o.enableDisconnect&&d.disconnectScope(i):r()}),e.$on("$destroy",r)});function r(){o.enableDisconnect&&d.reconnectScope(i)}},scope:{template:"=mdTabsTemplate",connected:"=?mdConnectedIf",compileScope:"=mdScope"},require:"^?mdTabs"}}function at(n){return{restrict:"E",link:function(e,t){t.addClass("_md"),e.$on("$destroy",function(){n.destroy()})}}}function dt(e){n.$inject=["$mdToast","$scope","$log"],o.$inject=["$animate","$mdToast","$mdUtil","$mdMedia","$document"];var m,u="ok";function t(e){m=e}return e("$mdToast").setDefaults({methods:["position","hideDelay","capsule","parent","position","toastClass"],options:o}).addPreset("simple",{argOption:"textContent",methods:["textContent","content","action","actionKey","actionHint","highlightAction","highlightClass","theme","parent","dismissHint"],options:["$mdToast","$mdTheming",function(e,t){return{template:'<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}"> <div class="md-toast-content" aria-live="polite" aria-relevant="all"> <span class="md-toast-text"> {{ toast.content }} </span> <span class="md-visually-hidden">{{ toast.dismissHint }}</span> <span class="md-visually-hidden" ng-if="toast.action && toast.actionKey"> {{ toast.actionHint }} </span> <md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()" ng-class="highlightClasses"> {{ toast.action }} </md-button> </div></md-toast>',controller:n,theme:t.defaultTheme(),controllerAs:"toast",bindToController:!0}}]}).addMethod("updateTextContent",t).addMethod("updateContent",t);function n(t,n,o){this.$onInit=function(){var e=this;e.highlightAction&&(n.highlightClasses=["md-highlight",e.highlightClass]),e.action&&!e.actionKey&&o.warn("Toasts with actions should define an actionKey for accessibility.","Details: https://material.angularjs.org/latest/api/service/$mdToast#mdtoast-simple"),e.actionKey&&!e.actionHint&&(e.actionHint='Press Control-"'+e.actionKey+'" to '),e.dismissHint||(e.dismissHint="Press Escape to dismiss."),n.$watch(function(){return m},function(){e.content=m}),this.resolve=function(){t.hide(u)}}}function o(o,d,s,t,l){var c="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:function(e,i,r){m=r.textContent||r.content;var a=!t("gt-sm");i=s.extractElementByName(i,"md-toast",!0),r.element=i,r.onSwipe=function(e,t){var n=e.type.replace("$md.",""),o=n.replace("swipe","");"down"===o&&-1!==r.position.indexOf("top")&&!a||"up"===o&&(-1!==r.position.indexOf("bottom")||a)||("left"===o||"right"===o)&&a||(i.addClass("md-"+n),s.nextTick(d.cancel))},r.openClass=function(e){return t("gt-xs")?"md-toast-open-"+(-1<e.indexOf("top")?"top":"bottom"):"md-toast-open-bottom"}(r.position),i.addClass(r.toastClass),r.parent.addClass(r.openClass),s.hasComputedStyle(r.parent,"position","static")&&r.parent.css("position","relative");(function(t){l.on("keydown",function(e){"Escape"===e.key&&d.hide(!1),t&&e.key===t&&e.ctrlKey&&d.hide(u)})})(e.toast&&e.toast.actionKey?e.toast.actionKey:ge),i.on(c,r.onSwipe),i.addClass(a?"md-bottom":r.position.split(" ").map(function(e){return"md-"+e}).join(" ")),r.parent&&r.parent.addClass("md-toast-animating");return o.enter(i,r.parent).then(function(){r.parent&&r.parent.removeClass("md-toast-animating")})},onRemove:function(e,t,n){e.toast&&e.toast.actionKey&&l.off("keydown");t.off(c,n.onSwipe),n.parent&&n.parent.addClass("md-toast-animating");n.openClass&&n.parent.removeClass(n.openClass);return(!0===n.$destroy?t.remove():o.leave(t)).then(function(){n.parent&&n.parent.removeClass("md-toast-animating"),s.hasComputedStyle(n.parent,"position","static")&&n.parent.css("position","")})},toastClass:"",position:"bottom left",themable:!0,hideDelay:3e3,autoWrap:!0,transformTemplate:function(e,t){if(t.autoWrap&&e&&!/md-toast-content/g.test(e)){var n=document.createElement("md-template");n.innerHTML=e;for(var o=0;o<n.children.length;o++)if("MD-TOAST"===n.children[o].nodeName){var i=fe.element('<div class="md-toast-content">');i.append(fe.element(n.children[o].childNodes)),n.children[o].appendChild(i[0])}return n.innerHTML}return e||""}}}}function st(f,g,b,e,v){var E=fe.bind(null,b.supplant,"translate3d(0,{0}px,0)");return{template:"",restrict:"E",link:function(u,p,h){p.addClass("_md"),e(p),b.nextTick(function(){p.addClass("_md-toolbar-transitions")},!1),fe.isDefined(h.mdScrollShrink)&&function(){var n,o,i=fe.noop,r=0,a=0,d=h.mdShrinkSpeedFactor||.5,s=f.throttle(t),l=b.debounce(e,5e3);u.$on("$mdContentLoaded",c),h.$observe("mdScrollShrink",function(e){var t=p.parent().find("md-content");!o&&t.length&&c(null,t);!1===(e=u.$eval(e))?i():i=m()}),h.ngShow&&u.$watch(h.ngShow,e);h.ngHide&&u.$watch(h.ngHide,e);function c(e,t){t&&p.parent()[0]===t.parent()[0]&&(o&&o.off("scroll",s),o=t,i=m())}function t(e){var t=e?e.target.scrollTop:a;l(),r=Math.min(n/d,Math.max(0,r+t-a)),p.css(g.CSS.TRANSFORM,E([-r*d])),o.css(g.CSS.TRANSFORM,E([(n-r)*d])),a=t,b.nextTick(function(){var e=p.hasClass("md-whiteframe-z1");e&&!r?v.removeClass(p,"md-whiteframe-z1"):!e&&r&&v.addClass(p,"md-whiteframe-z1")})}function m(){return o?(o.on("scroll",s),o.attr("scroll-shrink","true"),b.nextTick(e,!1),function(){o.off("scroll",s),o.attr("scroll-shrink","false"),e()}):fe.noop}function e(){var e=-(n=p.prop("offsetHeight"))*d+"px";o.css({"margin-top":e,"margin-bottom":e}),t()}u.$on("$destroy",i)}()}}}function lt(v,E,$,y,C,M,T,A){var w="focus touchstart mouseenter",_="blur touchcancel mouseleave",k={top:{x:T.xPosition.CENTER,y:T.yPosition.ABOVE},right:{x:T.xPosition.OFFSET_END,y:T.yPosition.CENTER},bottom:{x:T.xPosition.CENTER,y:T.yPosition.BELOW},left:{x:T.xPosition.OFFSET_START,y:T.yPosition.CENTER}};return{restrict:"E",priority:210,scope:{mdZIndex:"=?mdZIndex",mdDelay:"=?mdDelay",mdVisible:"=?mdVisible",mdAutohide:"=?mdAutohide",mdDirection:"@?mdDirection"},link:function(a,o,d){var i,e,r,s,l,c="md-tooltip-"+M.nextUid(),m=M.getParentWithPointerEvents(o),u=$.throttle(f),p=!1,h=null;function t(){a.mdZIndex=a.mdZIndex||100,a.mdDelay=a.mdDelay||0,k[a.mdDirection]||(a.mdDirection="bottom")}function n(e){var t=e||C(o.text().trim())(a.$parent);(m.attr("aria-label")||m.attr("aria-labelledby"))&&!m.attr("md-labeled-by-tooltip")||(m.attr("aria-label",t),m.attr("md-labeled-by-tooltip")||m.attr("md-labeled-by-tooltip",c))}function f(){t(),s&&s.panelEl&&s.panelEl.removeClass(i),i="md-origin-"+a.mdDirection,e=k[a.mdDirection],r=T.newPanelPosition().relativeTo(m).addPanelPosition(e.x,e.y),s&&s.panelEl&&(s.panelEl.addClass(i),s.updatePosition(r))}function g(e){g.queued&&g.value===!!e||!g.queued&&a.mdVisible===!!e||(g.value=!!e,g.queued||(e?(g.queued=!0,l=v(function(){a.mdVisible=g.value,g.queued=!1,l=null,a.visibleWatcher||b(a.mdVisible)},a.mdDelay)):M.nextTick(function(){a.mdVisible=!1,a.visibleWatcher||b(!1)})))}function b(e){e?function(){if(!o[0].textContent.trim())throw new Error("Text for the tooltip has not been provided. Please include text within the mdTooltip element.");if(!s){var e=fe.element(document.body),t=T.newPanelAnimation().openFrom(m).closeTo(m).withAnimation({open:"md-show",close:"md-hide"}),n={id:c,attachTo:e,contentElement:o,propagateContainerEvents:!0,panelClass:"md-tooltip",animation:t,position:r,zIndex:a.mdZIndex,focusOnOpen:!1,onDomAdded:function(){s.panelEl.addClass(i)}};s=T.create(n)}s.open().then(function(){s.panelEl.attr("role","tooltip")})}():s&&s.close()}t(),n(),o.detach(),f(),function(){if(m[0]&&"MutationObserver"in E){var e=new MutationObserver(function(e){!function(e){return e.some(function(e){return"disabled"===e.attributeName&&m[0].disabled}),!1}(e)||M.nextTick(function(){g(!1)})});e.observe(m[0],{attributes:!0})}function t(){g(!1)}function n(){h=document.activeElement===m[0]}function o(e){"focus"===e.type&&h?h=!1:a.mdVisible||(m.on(_,i),g(!0),"touchstart"===e.type&&m.one("touchend",function(){M.nextTick(function(){y.one("touchend",i)},!1)}))}function i(){((a.hasOwnProperty("mdAutohide")?a.mdAutohide:d.hasOwnProperty("mdAutohide"))||p||y[0].activeElement!==m[0])&&(l&&(v.cancel(l),g.queued=!1,l=null),m.off(_,i),m.triggerHandler("blur"),g(!1)),p=!1}function r(){p=!0}h=!1,A.register("scroll",t,!0),A.register("blur",n),A.register("resize",u),a.$on("$destroy",function(){A.deregister("scroll",t,!0),A.deregister("blur",n),A.deregister("resize",u),m.off(w,o).off(_,i).off("mousedown",r),i(),e&&e.disconnect()}),m.on("mousedown",r),m.on(w,o)}(),function(){if(o[0]&&"MutationObserver"in E){var e=new MutationObserver(function(e){e.forEach(function(e){"md-visible"!==e.attributeName||a.visibleWatcher||(a.visibleWatcher=a.$watch("mdVisible",b))})});e.observe(o[0],{attributes:!0}),d.hasOwnProperty("mdVisible")&&(a.visibleWatcher=a.$watch("mdVisible",b))}else a.visibleWatcher=a.$watch("mdVisible",b);function t(){a.$destroy()}a.$watch("mdDirection",f),o.one("$destroy",t),m.one("$destroy",t),a.$on("$destroy",function(){g(!1),s&&s.destroy(),e&&e.disconnect(),o.remove()}),-1<o.text().indexOf(C.startSymbol())&&a.$watch(function(){return o.text().trim()},n)}()}}}function ct(e){e.addClass("md-truncate")}function mt(r){return{link:function(e,n,o){var i="";o.$observe("mdWhiteframe",function(e){-1!=(e=parseInt(e,10)||4)&&(24<e||e<1)&&(r.warn("md-whiteframe attribute value is invalid. It should be a number between 1 and 24",n[0]),e=4);var t=-1==e?"":"md-whiteframe-"+e+"dp";o.$updateClass(t,i),i=t})}}}fe.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.core.animate","material.core.gestures","material.core.interaction","material.core.layout","material.core.meta","material.core.theming.palette","material.core.theming","material.components.autocomplete","material.components.backdrop","material.components.bottomSheet","material.components.button","material.components.card","material.components.checkbox","material.components.chips","material.components.colors","material.components.content","material.components.datepicker","material.components.dialog","material.components.divider","material.components.fabActions","material.components.fabShared","material.components.fabSpeedDial","material.components.fabToolbar","material.components.gridList","material.components.icon","material.components.input","material.components.list","material.components.menu","material.components.menuBar","material.components.navBar","material.components.panel","material.components.progressCircular","material.components.progressLinear","material.components.radioButton","material.components.select","material.components.showHide","material.components.sidenav","material.components.slider","material.components.sticky","material.components.subheader","material.components.swipe","material.components.switch","material.components.tabs","material.components.toast","material.components.toolbar","material.components.tooltip","material.components.truncate","material.components.virtualRepeat","material.components.whiteframe"]),e.$inject=["$log","$injector"],t.$inject=["$provide","$mdThemingProvider"],n.$inject=["$delegate"],o.$inject=["$delegate"],fe.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.interaction","material.core.gestures","material.core.theming"]).config(t).run(e),i.$inject=["$parse"],fe.module("material.core").directive("mdAutofocus",i).directive("mdAutoFocus",i).directive("mdSidenavFocus",i),fe.module("material.core").factory("$mdColorUtil",function(){return{rgbaToHex:function(e){return((e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):"").toUpperCase()},hexToRgba:function(e){var t="#"===e[0]?e.substr(1):e,n=t.length/3,o=t.substr(0,n),i=t.substr(n,n),r=t.substr(2*n);return 1==n&&(o+=o,i+=i,r+=r),"rgba("+parseInt(o,16)+","+parseInt(i,16)+","+parseInt(r,16)+",0.1)"},rgbToRgba:function(e){return e.replace(")",", 0.1)").replace("(","a(")},rgbaToRgb:function(e){return e?e.replace("rgba","rgb").replace(/,[^),]+\)/,")"):"rgb(0,0,0)"}}}),fe.module("material.core").factory("$mdConstant",function(){var o=document.createElement("div"),i=function(e){var t,n,o=/^(Moz|webkit|ms)(?=[A-Z])/;for(t in e.style)if(n=o.exec(t))return n[0]}(o),e=/webkit/i.test(i),r=/([:\-_]+(.))/g;function t(e){var t=function(e){return e.replace(r,function(e,t,n,o){return o?n.toUpperCase():n})}(i+"-"+e),n=t.charAt(0).toLowerCase()+t.substring(1);return a(o,e)?e:a(o,t)?t:a(o,n)?n:e}function a(e,t){return fe.isDefined(e.style[t])}var n={isInputKey:function(e){return 31<=e.keyCode&&e.keyCode<=90},isNumPadKey:function(e){return 3===e.location&&97<=e.keyCode&&e.keyCode<=105},isMetaKey:function(e){return 91<=e.keyCode&&e.keyCode<=93},isFnLockKey:function(e){return 112<=e.keyCode&&e.keyCode<=145},isNavigationKey:function(e){var t=n.KEY_CODE;return-1!=[t.SPACE,t.ENTER,t.UP_ARROW,t.DOWN_ARROW].indexOf(e.keyCode)},hasModifierKey:function(e){return e.ctrlKey||e.metaKey||e.altKey},ELEMENT_MAX_PIXELS:1533917,BEFORE_NG_ARIA:210,KEY_CODE:{COMMA:188,SEMICOLON:186,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,TAB:9,BACKSPACE:8,DELETE:46},CSS:{TRANSITIONEND:"transitionend"+(e?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(e?" webkitAnimationEnd":""),TRANSFORM:t("transform"),TRANSFORM_ORIGIN:t("transformOrigin"),TRANSITION:t("transition"),TRANSITION_DURATION:t("transitionDuration"),ANIMATION_PLAY_STATE:t("animationPlayState"),ANIMATION_DURATION:t("animationDuration"),ANIMATION_NAME:t("animationName"),ANIMATION_TIMING:t("animationTimingFunction"),ANIMATION_DIRECTION:t("animationDirection")},MEDIA:{xs:"(max-width: 599px)","gt-xs":"(min-width: 600px)",sm:"(min-width: 600px) and (max-width: 959px)","gt-sm":"(min-width: 960px)",md:"(min-width: 960px) and (max-width: 1279px)","gt-md":"(min-width: 1280px)",lg:"(min-width: 1280px) and (max-width: 1919px)","gt-lg":"(min-width: 1920px)",xl:"(min-width: 1920px)",landscape:"(orientation: landscape)",portrait:"(orientation: portrait)",print:"print"},MEDIA_PRIORITY:["xl","gt-lg","lg","gt-md","md","gt-sm","sm","gt-xs","xs","landscape","portrait","print"]};return n}),fe.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(e){return e.iterator=r,e}])}]),a.$inject=["$mdConstant","$rootScope","$window"],fe.module("material.core").factory("$mdMedia",a),fe.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(e){return e.prefixer=d,e}])}]),function(){t.$inject=["$document","$timeout","$compile","$rootScope","$$mdAnimate","$interpolate","$log","$rootElement","$window","$$rAF"];var b,v,E=0;if(R.navigator){var e=R.navigator.userAgent||R.navigator.vendor||R.opera;b=e.match(/ipad|iphone|ipod/i),v=e.match(/android/i)}function t(s,d,n,a,e,t,r,o,l,m){var i=t.startSymbol(),c=t.endSymbol(),u="{{"===i&&"}}"===c;document.contains||(document.contains=function(e){return document.body.contains(e)});function p(e,t,n){var o=!1;if(e&&e.length){var i=l.getComputedStyle(e[0]);o=fe.isDefined(i[t])&&(!n||i[t]==n)}return o}function h(e){return e?function(e){return-1<String(e).indexOf("px")}(e)||function(e){return-1<String(e).indexOf("%")}(e)?e:e+"px":"0"}var f={dom:{},isIos:b,isAndroid:v,now:R.performance&&R.performance.now?fe.bind(R.performance,R.performance.now):Date.now||function(){return(new Date).getTime()},getModelOption:function(e,t){if(e.$options){var n=e.$options;return n.getOption?n.getOption(t):n[t]}},isRtl:function(e){switch(fe.isDefined(e)&&e.hasOwnProperty("dir")&&e.dir){case"ltr":return!1;case"rtl":return!0}return"rtl"===s[0].dir||"rtl"===s[0].body.dir},bidi:function(e,t,n,o){var i=!this.isRtl();if(0==arguments.length)return i?"ltr":"rtl";var r=fe.element(e);i&&fe.isDefined(n)?r.css(t,h(n)):!i&&fe.isDefined(o)&&r.css(t,h(o))},bidiProperty:function(e,t,n,o){var i=!this.isRtl(),r=fe.element(e);i&&fe.isDefined(t)?(r.css(t,h(o)),r.css(n,"")):!i&&fe.isDefined(n)&&(r.css(n,h(o)),r.css(t,""))},clientRect:function(e,t,n){var o=g(e);t=g(t||o.offsetParent||document.body);var i=o.getBoundingClientRect(),r=n?t.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:i.left-r.left,top:i.top-r.top,width:i.width,height:i.height}},offsetRect:function(e,t){return f.clientRect(e,t,!0)},nodesToArray:function(e){e=e||[];for(var t=[],n=0;n<e.length;++n)t.push(e.item(n));return t},getViewportTop:function(){return f.disableScrollAround._count&&f.disableScrollAround._viewPortTop?f.disableScrollAround._viewPortTop:l.scrollY||l.pageYOffset||0},findFocusTarget:function(e,t){var n,o=this.prefixer("md-autofocus",!0);return(n=i(e,t||o))||t==o||(n=(n=i(e,this.prefixer("md-auto-focus",!0)))||i(e,o)),n;function i(e,t){var n,o=e[0].querySelectorAll(t);return o&&o.length&&o.length&&fe.forEach(o,function(e){(e=fe.element(e)).hasClass("md-autofocus")&&(n=e)}),n}},disableScrollAround:function(e,t,n){if(n=n||{},f.disableScrollAround._count=Math.max(0,f.disableScrollAround._count||0),f.disableScrollAround._count++,f.disableScrollAround._restoreScroll)return f.disableScrollAround._restoreScroll;var d=s[0].body,o=function(){var e=s[0].documentElement,t=e.style.cssText||"",n=d.style.cssText||"",o=f.getViewportTop();f.disableScrollAround._viewPortTop=o;var i=d.clientWidth,r=d.scrollHeight>d.clientHeight+1,a=0<e.scrollTop?e:d;r&&fe.element(d).css({position:"fixed",width:"100%",top:-o+"px"});d.clientWidth<i&&(d.style.overflow="hidden");return function(){d.style.cssText=n,e.style.cssText=t,a.scrollTop=o}}(),i=function(e,t){var n,o=fe.element(e||d);t.disableScrollMask?n=o:(n=fe.element('<div class="md-scroll-mask"> <div class="md-scroll-mask-bar"></div></div>'),o.append(n));function i(e){e.preventDefault()}return n.on("wheel touchmove",i),function(){n.off("wheel touchmove",i),!t.disableScrollMask&&n[0].parentNode&&n[0].parentNode.removeChild(n[0])}}(t,n);return f.disableScrollAround._restoreScroll=function(){--f.disableScrollAround._count<=0&&(delete f.disableScrollAround._viewPortTop,o(),i(),delete f.disableScrollAround._restoreScroll)}},enableScrolling:function(){var e=this.disableScrollAround._restoreScroll;e&&e()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===ge){var e=fe.element("<div><div></div></div>").css({width:"100%","z-index":-1,position:"absolute",height:"35px","overflow-y":"scroll"});e.children().css("height","60px"),s[0].body.appendChild(e[0]),this.floatingScrollbars.cached=e[0].offsetWidth==e[0].childNodes[0].offsetWidth,e.remove()}return this.floatingScrollbars.cached},forceFocus:function(e){var n=e[0]||e;document.addEventListener("click",function e(t){t.target===n&&t.$focus&&(n.focus(),t.stopImmediatePropagation(),t.preventDefault(),n.removeEventListener("click",e))},!0);var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!1,!0,R,{},0,0,0,0,!1,!1,!1,!1,0,null),t.$material=!0,t.$focus=!0,n.dispatchEvent(t)},createBackdrop:function(e,t){return n(f.supplant('<md-backdrop class="{0}">',[t]))(e)},supplant:function(e,r,t){return t=t||/\{([^{}]*)\}/g,e.replace(t,function(t,e){var n=e.split("."),o=r;try{for(var i in n)n.hasOwnProperty(i)&&(o=o[n[i]])}catch(e){o=t}return"string"==typeof o||"number"==typeof o?o:t})},fakeNgModel:function(){return{$fake:!0,$setTouched:fe.noop,$setViewValue:function(e){this.$viewValue=e,this.$render(e),this.$viewChangeListeners.forEach(function(e){e()})},$isEmpty:function(e){return 0===(""+e).length},$parsers:[],$formatters:[],$viewChangeListeners:[],$render:fe.noop}},debounce:function(n,o,i,r){var a;return function(){var e=i,t=Array.prototype.slice.call(arguments);d.cancel(a),a=d(function(){a=ge,n.apply(e,t)},o||10,r)}},throttle:function(n,o){var i;return function(){var e=arguments,t=f.now();(!i||o<t-i)&&(n.apply(this,e),i=t)}},time:function(e){var t=f.now();return e(),f.now()-t},valueOnUse:function(e,t,n){var o=null,i=Array.prototype.slice.call(arguments),r=3<i.length?i.slice(3):[];Object.defineProperty(e,t,{get:function(){return null===o&&(o=n.apply(e,r)),o}})},nextUid:function(){return""+E++},disconnectScope:function(e){if(e&&e.$root!==e&&!e.$$destroyed){var t=e.$parent;e.$$disconnected=!0,t.$$childHead===e&&(t.$$childHead=e.$$nextSibling),t.$$childTail===e&&(t.$$childTail=e.$$prevSibling),e.$$prevSibling&&(e.$$prevSibling.$$nextSibling=e.$$nextSibling),e.$$nextSibling&&(e.$$nextSibling.$$prevSibling=e.$$prevSibling),e.$$nextSibling=e.$$prevSibling=null}},reconnectScope:function(e){if(e&&e.$root!==e&&e.$$disconnected){var t=e,n=t.$parent;t.$$disconnected=!1,t.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=t,n.$$childTail=t):n.$$childHead=n.$$childTail=t}},getClosest:function(e,t,n){if(fe.isString(t)){var o=t.toUpperCase();t=function(e){return e.nodeName.toUpperCase()===o}}if(e instanceof fe.element&&(e=e[0]),n&&(e=e.parentNode),!e)return null;do{if(t(e))return e}while(e=e.parentNode);return null},elementContains:function(t,n){return(R.Node&&R.Node.prototype&&Node.prototype.contains?fe.bind(t,t.contains):fe.bind(t,function(e){return t===n||!!(16&this.compareDocumentPosition(e))}))(n)},extractElementByName:function(e,o,t,n){var i=d(e);return!i&&n&&r.warn(f.supplant("Unable to find node '{0}' in element '{1}'.",[o,e[0].outerHTML])),fe.element(i||e);function d(e){return function(e){if(e)for(var t=0,n=e.length;t<n;t++)if(e[t].nodeName.toLowerCase()===o)return e[t];return null}(e)||(t?function(e){var t;if(e)for(var n=0,o=e.length;n<o;n++){var i=e[n];if(!t)for(var r=0,a=i.childNodes.length;r<a;r++)t=t||d([i.childNodes[r]])}return t}(e):null)}},initOptionalProperties:function(o,i,r){r=r||{},fe.forEach(o.$$isolateBindings,function(e,t){if(e.optional&&fe.isUndefined(o[t])){var n=fe.isDefined(i[e.attrName]);o[t]=fe.isDefined(r[t])?r[t]:n}})},nextTick:function(e,t,n){var o=f.nextTick,i=o.timeout,r=o.queue||[];return r.push({scope:n,callback:e}),null==t&&(t=!0),o.digest=o.digest||t,o.queue=r,i||(o.timeout=d(function(){var e=o.queue,t=o.digest;o.queue=[],o.timeout=null,o.digest=!1,e.forEach(function(e){e.scope&&e.scope.$$destroyed||e.callback()}),t&&a.$digest()},0,!1))},processTemplate:function(e){return u?e:e&&fe.isString(e)?e.replace(/\{\{/g,i).replace(/}}/g,c):e},getParentWithPointerEvents:function(e){for(var t=e.parent();p(t,"pointer-events","none");)t=t.parent();return t},getNearestContentElement:function(e){for(var t=e.parent()[0];t&&t!==o[0]&&t!==document.body&&"MD-CONTENT"!==t.nodeName.toUpperCase();)t=t.parentNode;return t},checkStickySupport:function(){var e,t=fe.element("<div>");s[0].body.appendChild(t[0]);for(var n=["sticky","-webkit-sticky"],o=0;o<n.length;++o)if(t.css({position:n[o],top:0,"z-index":2}),t.css("position")==n[o]){e=n[o];break}return t.remove(),e},parseAttributeBoolean:function(e,t){return""===e||!!e&&(!1===t||"false"!==e&&"0"!==e)},hasComputedStyle:p,isParentFormSubmitted:function(e){var t=f.getClosest(e,"form"),n=t?fe.element(t).controller("form"):null;return!!n&&n.$submitted},animateScrollTo:function(i,r,a){var d=i.scrollTop,s=r-d,l=d<r,c=f.now();m(function e(){var t=(n=a||1e3,o=f.now()-c,function(e,t,n,o){if(o<e)return t+n;var i=(e/=o)*e;return t+n*(i*e*-2+3*i)}(o,d,s,n));var n,o;i.scrollTop=t;(l?t<r:r<t)&&m(e)})},uniq:function(e){if(e)return e.filter(function(e,t,n){return n.indexOf(e)===t})},getInnerHTML:function(e){var t=new XMLSerializer;return Array.prototype.map.call(e.childNodes,function(e){return t.serializeToString(e)}).join("")},getOuterHTML:function(e){return(new XMLSerializer).serializeToString(e)},msie:R.document.documentMode};return f.dom.animator=e(f),f;function g(e){return e[0]||e}}fe.module("material.core").factory("$mdUtil",t),fe.element.prototype.focus=fe.element.prototype.focus||function(){return this.length&&this[0].focus(),this},fe.element.prototype.blur=fe.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),fe.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(t,n,o,i){return function(e){return function(n,e,s,l,r){var c;return c={translate3d:function(t,n,e,o){return r(t,{from:n,to:e,addClass:o.transitionInClass,removeClass:o.transitionOutClass,duration:o.duration}).start().then(function(){return i});function i(e){return r(t,{to:e||n,addClass:o.transitionOutClass,removeClass:o.transitionInClass,duration:o.duration}).start()}},waitTransitionEnd:function(r,a){var d=3e3;return e(function(t,e){var n;"0s"!=(n=(n=(a=a||{}).cachedTransitionStyles)||R.getComputedStyle(r[0])).transitionDuration&&(n.transition||n.transitionProperty)||(d=0);var o=s(i,a.timeout||d);function i(e){e&&e.target!==r[0]||(e&&s.cancel(o),r.off(l.CSS.TRANSITIONEND,i),t())}r.on(l.CSS.TRANSITIONEND,i)})},calculateTransformValues:function(e,t){var n,o,i=t.element,r=t.bounds;if(i||r){var a=i?c.clientRect(i)||(n=e?e.parent():null,(o=n?n.parent():null)?c.clientRect(o):null):c.copyRect(r),d=c.copyRect(e[0].getBoundingClientRect()),s=c.centerPointFor(d),l=c.centerPointFor(a);return{centerX:l.x-s.x,centerY:l.y-s.y,scaleX:Math.round(100*Math.min(.5,a.width/d.width))/100,scaleY:Math.round(100*Math.min(.5,a.height/d.height))/100}}return{centerX:0,centerY:0,scaleX:.5,scaleY:.5}},calculateZoomToOrigin:function(e,t){return fe.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )")(c.calculateTransformValues(e,t))},calculateSlideToOrigin:function(e,t){return fe.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 )")(c.calculateTransformValues(e,t))},toCss:function(e){var o={};return fe.forEach(e,function(e,t){if(!fe.isUndefined(e))if(0<="left top right bottom width height x y min-width min-height max-width max-height".indexOf(t))o[t]=e+"px";else switch(t){case"transition":n(0,l.CSS.TRANSITION,e);break;case"transform":n(0,l.CSS.TRANSFORM,e);break;case"transformOrigin":n(0,l.CSS.TRANSFORM_ORIGIN,e);break;case"font-size":o["font-size"]=e}}),o;function n(e,t,n){fe.forEach(t.split(" "),function(e){o[e]=n})}},toTransformCss:function(t,e,n){var o={};return fe.forEach(l.CSS.TRANSFORM.split(" "),function(e){o[e]=t}),e&&(n=n||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important",o.transition=n),o},copyRect:function(t,n){return t?(n=n||{},fe.forEach("left top right bottom width height".split(" "),function(e){n[e]=Math.round(t[e])}),n.width=n.width||n.right-n.left,n.height=n.height||n.bottom-n.top,n):null},clientRect:function(e){var t,n=fe.element(e)[0].getBoundingClientRect();return(t=n)&&0<t.width&&0<t.height?c.copyRect(n):null},centerPointFor:function(e){return e?{x:Math.round(e.left+e.width/2),y:Math.round(e.top+e.height/2)}:{x:0,y:0}}}}(e,t,n,o,i)}}]),4<=fe.version.minor?fe.module("material.core.animate",[]):(w=fe.forEach,_=fe.isDefined(document.documentElement.style.WebkitAppearance),k=_?"-webkit-":"",x=(_?"webkitTransitionEnd ":"")+"transitionend",N=(_?"webkitAnimationEnd ":"")+"animationend",s=["$q","$$rAFMutex",function(t,n){function e(e){this.setHost(e),this._doneCallbacks=[],this._runInAnimationFrame=n(),this._state=0}return e.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:fe.noop,getPromise:function(){if(!this.promise){var e=this;this.promise=t(function(t,n){e.done(function(e){!1===e?n():t()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._runInAnimationFrame(function(){t._resolve(e)}))},_resolve:function(t){2!==this._state&&(w(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=2)}},e.all=function(t,n){var o=0,i=!0;function r(e){i=i&&e,++o===t.length&&n(i)}w(t,function(e){e.done(r)})},e}],fe.module("material.core.animate",[]).factory("$$forceReflow",["$document",function(e){return function(){return e[0].body.clientWidth+1}}]).factory("$$AnimateRunner",s).factory("$$rAFMutex",["$$rAF",function(n){return function(){var t=!1;return n(function(){t=!0}),function(e){t?e():n(e)}}}]).factory("$animateCss",["$window","$$rAF","$$AnimateRunner","$$forceReflow","$$jqLite","$timeout","$animate",function(h,r,a,f,n,g,d){function b(e,t){t.addClass&&(n.addClass(e,t.addClass),t.addClass=null),t.removeClass&&(n.removeClass(e,t.removeClass),t.removeClass=null)}function v(e){var t=0,n=(e||"").split(/\s*,\s*/);return w(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}var E,$=[];function y(e,t){t.from&&(e.css(t.from),t.from=null)}function C(e,t){t.to&&(e.css(t.to),t.to=null)}function M(e){for(var t=0;t<e.length;t++)if(1===e[t].nodeType)return e[t]}function T(e,t){var n=M(e),o=A(k+"transition-delay");n.style[o]=t?"-9999s":""}return function(o,s){var l=[],c=M(o),e=c&&d.enabled(),t=!1,n=!1;e&&(s.transitionStyle&&l.push([k+"transition",s.transitionStyle]),s.keyframeStyle&&l.push([k+"animation",s.keyframeStyle]),s.delay&&l.push([k+"transition-delay",s.delay+"s"]),s.duration&&l.push([k+"transition-duration",s.duration+"s"]),t=s.keyframeStyle||s.to&&(0<s.duration||s.transitionStyle),n=!!s.addClass||!!s.removeClass,T(o,!0));var m=e&&(t||n);y(o,s);var u,p,i=!1;return{close:h.close,start:function(){var e=new a;return function(e){E&&E(),$.push(e),E=r(function(){E=null;for(var e=f(),t=0;t<$.length;t++)$[t](e);$.length=0})}(function(){if(T(o,!1),!m)return d();w(l,function(e){var t=e[0],n=e[1];c.style[A(t)]=n}),b(o,s);var e=function(e){var t=M(e),n=h.getComputedStyle(t),o=v(n[l("transitionDuration")]),i=v(n[l("animationDuration")]),r=v(n[l("transitionDelay")]),a=v(n[l("animationDelay")]);i*=parseInt(n[l("animationIterationCount")],10)||1;var d=Math.max(i,o),s=Math.max(a,r);return{duration:d,delay:s,animationDuration:i,transitionDuration:o,animationDelay:a,transitionDelay:r};function l(e){return _?"Webkit"+e.charAt(0).toUpperCase()+e.substr(1):e}}(o);if(0===e.duration)return d();var t=[];s.easing&&(e.transitionDuration&&t.push([k+"transition-timing-function",s.easing]),e.animationDuration&&t.push([k+"animation-timing-function",s.easing])),s.delay&&e.animationDelay&&t.push([k+"animation-delay",s.delay+"s"]),s.duration&&e.animationDuration&&t.push([k+"animation-duration",s.duration+"s"]),w(t,function(e){var t=e[0],n=e[1];c.style[A(t)]=n,l.push(e)});var i=1e3*e.delay,r=e.duration,n=1e3*r,a=Date.now();u=[],e.transitionDuration&&u.push(x),e.animationDuration&&u.push(N),u=u.join(" "),p=function(e){e.stopPropagation();var t=e.originalEvent||e,n=t.timeStamp||Date.now(),o=parseFloat(t.elapsedTime.toFixed(3));Math.max(n-a,0)>=i&&r<=o&&d()},o.on(u,p),C(o,s),g(d,i+1.5*n,!1)}),e;function d(){if(!i)return i=!0,u&&p&&o.off(u,p),b(o,s),function(e,t){y(e,t),C(e,t)}(o,s),w(l,function(e){c.style[A(e[0])]=""}),e.complete(!0),e}}}}}])),S.$inject=["$$rAF","$log","$window","$interpolate"],fe.module("material.core").provider("$mdAria",function(){var i={showWarnings:!0};return{disableWarnings:function(){i.showWarnings=!1},$get:["$$rAF","$log","$window","$interpolate",function(e,t,n,o){return S.apply(i,arguments)}]}}),fe.module("material.core").provider("$mdCompiler",D),D.$inject=["$compileProvider"],function(){i.$inject=["$$MdGestureHandler","$$rAF","$timeout","$mdUtil"];var r,a,s={},l=6,c=!(n.$inject=["$mdGesture","$$MdGestureHandler","$mdUtil"]),d=!1,m=null,u=!1;function e(){}function i(o,e,n,t){var i=function(){for(var e=document.createElement("div"),t=["","webkit","Moz","MS","ms","o"],n=0;n<t.length;n++){var o=t[n],i=o?o+"TouchAction":"touchAction";if(fe.isDefined(e.style[i]))return i}}(),r=void 0!==R.jQuery&&fe.element===R.jQuery,a={handler:function(e,t){var n=new o(e);return fe.extend(n,t),s[e]=n,a},register:function(e,t,n){var o=s[t.replace(/^\$md./,"")];if(o)return o.registerElement(e,n);throw new Error("Failed to register element with handler "+t+". Available handlers: "+Object.keys(s).join(", "))},isAndroid:t.isAndroid,isIos:t.isIos,isHijackingClicks:(t.isIos||t.isAndroid)&&!r&&!c};function d(n){return function(e,t){t.distance<this.state.options.maxDistance&&this.dispatchEvent(e,n,t)}}return a.isHijackingClicks&&(a.handler("click",{options:{maxDistance:l},onEnd:d("click")}),a.handler("focus",{options:{maxDistance:l},onEnd:function(e,t){t.distance<this.state.options.maxDistance&&v(e.target)&&(this.dispatchEvent(e,"focus",t),e.target.focus())}}),a.handler("mouseup",{options:{maxDistance:l},onEnd:d("mouseup")}),a.handler("mousedown",{onStart:function(e){this.dispatchEvent(e,"mousedown")}})),a.handler("press",{onStart:function(e,t){this.dispatchEvent(e,"$md.pressdown")},onEnd:function(e,t){this.dispatchEvent(e,"$md.pressup")}}).handler("hold",{options:{maxDistance:6,delay:500},onCancel:function(){n.cancel(this.state.timeout)},onStart:function(e,t){if(!this.state.registeredParent)return this.cancel();this.state.pos={x:t.x,y:t.y},this.state.timeout=n(fe.bind(this,function(){this.dispatchEvent(e,"$md.hold"),this.cancel()}),this.state.options.delay,!1)},onMove:function(e,t){i||"touchmove"!==e.type||e.preventDefault();var n=this.state.pos.x-t.x,o=this.state.pos.y-t.y;Math.sqrt(n*n+o*o)>this.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onSetup:function(e,t){i&&(this.oldTouchAction=e[0].style[i],e[0].style[i]=t.horizontal?"pan-y":"pan-x")},onCleanup:function(e){this.oldTouchAction&&(e[0].style[i]=this.oldTouchAction)},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n,o;i||"touchmove"!==e.type||e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(o=this.state.options.horizontal?(n=Math.abs(t.distanceX)>this.state.options.minDistance,Math.abs(t.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(t.distanceY)>this.state.options.minDistance,Math.abs(t.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=p(e),g(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):o&&this.cancel())},dispatchDragMove:e.throttle(function(e){this.state.isRunning&&(g(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(g(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragend",this.state.dragPointer))}}).handler("swipe",{options:{minVelocity:.65,minDistance:10},onEnd:function(e,t){var n;Math.abs(t.velocityX)>this.state.options.minVelocity&&Math.abs(t.distanceX)>this.state.options.minDistance?(n="left"==t.directionX?"$md.swipeleft":"$md.swiperight",this.dispatchEvent(e,n)):Math.abs(t.velocityY)>this.state.options.minVelocity&&Math.abs(t.distanceY)>this.state.options.minDistance&&(n="up"==t.directionY?"$md.swipeup":"$md.swipedown",this.dispatchEvent(e,n))}})}function t(e){this.name=e,this.state={}}function n(e,i,n){if(!d){!u&&e.isHijackingClicks&&(document.addEventListener("click",function(e){var t;t=n.isIos?fe.isDefined(e.webkitForce)&&0===e.webkitForce:0===e.clientX&&0===e.clientY;t||e.$material||e.isIonicTap||f(e)?(m=null,"label"===e.target.tagName.toLowerCase()&&(m={x:e.x,y:e.y})):(e.preventDefault(),e.stopPropagation(),m=null)},!0),document.addEventListener("mouseup",t,!0),document.addEventListener("mousedown",t,!0),document.addEventListener("focus",t,!0),u=!0);fe.element(document).on("mousedown touchstart pointerdown",function(e){if(r)return;var t=+Date.now();if(a&&!h(e,a)&&t-a.endTime<1500)return;r=p(e),o("start",e)}).on("mousemove touchmove pointermove",function(e){if(!r||!h(e,r))return;g(e,r),o("move",e)}).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",function(e){if(!r||!h(e,r))return;g(e,r),r.endTime=+Date.now(),"pointercancel"!==e.type&&o("end",e);a=r,r=null}).on("$$mdGestureReset",function(){a=r=null})}function t(e){!e.clientX&&!e.clientY||e.$material||e.isIonicTap||f(e)||"mousedown"===e.type&&(v(e.target)||v(document.activeElement))||(e.preventDefault(),e.stopPropagation())}function o(e,t){var n;for(var o in s)(n=s[o])instanceof i&&("start"===e&&n.cancel(),n[e](t,r))}}function p(e){var t=b(e),n={startTime:+Date.now(),target:e.target,type:e.type.charAt(0)};return n.startX=n.x=t.pageX,n.startY=n.y=t.pageY,n}function h(e,t){return e&&t&&e.type.charAt(0)===t.type}function f(e){return m&&m.x===e.x&&m.y===e.y}function g(e,t){var n=b(e),o=t.x=n.pageX,i=t.y=n.pageY;t.distanceX=o-t.startX,t.distanceY=i-t.startY,t.distance=Math.sqrt(t.distanceX*t.distanceX+t.distanceY*t.distanceY),t.directionX=0<t.distanceX?"right":t.distanceX<0?"left":"",t.directionY=0<t.distanceY?"down":t.distanceY<0?"up":"",t.duration=+Date.now()-t.startTime,t.velocityX=t.distanceX/t.duration,t.velocityY=t.distanceY/t.duration}function b(e){return(e=e.originalEvent||e).touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e}function v(e){return!!e&&"-1"!==e.getAttribute("tabindex")&&!e.hasAttribute("disabled")&&(e.hasAttribute("tabindex")||e.hasAttribute("href")||e.isContentEditable||-1!==["INPUT","SELECT","BUTTON","TEXTAREA","VIDEO","AUDIO"].indexOf(e.nodeName))}fe.module("material.core.gestures",[]).provider("$mdGesture",e).factory("$$MdGestureHandler",function(){var e=void 0!==R.jQuery&&fe.element===R.jQuery;return t.prototype={options:{},dispatchEvent:e?function(e,t,n){n=n||r;var o=new fe.element.Event(t);o.$material=!0,o.pointer=n,o.srcEvent=e,fe.extend(o,{clientX:n.x,clientY:n.y,screenX:n.x,screenY:n.y,pageX:n.x,pageY:n.y,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey}),fe.element(n.target).trigger(o)}:function(e,t,n){var o;n=n||r,"click"===t||"mouseup"===t||"mousedown"===t?"function"==typeof R.MouseEvent?o=new MouseEvent(t,{bubbles:!0,cancelable:!0,screenX:Number(e.screenX),screenY:Number(e.screenY),clientX:Number(n.x),clientY:Number(n.y),ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey,button:e.button,buttons:e.buttons,relatedTarget:e.relatedTarget||null}):(o=document.createEvent("MouseEvents")).initMouseEvent(t,!0,!0,R,e.detail,n.x,n.y,n.x,n.y,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget||null):"function"==typeof R.CustomEvent?o=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:{}}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,{});o.$material=!0,o.pointer=n,o.srcEvent=e,n.target.dispatchEvent(o)},onSetup:fe.noop,onCleanup:fe.noop,onStart:fe.noop,onMove:fe.noop,onEnd:fe.noop,onCancel:fe.noop,start:function(e,t){if(!this.state.isRunning){var n=this.getNearestParent(e.target),o=n&&n.$mdGesture[this.name]||{};this.state={isRunning:!0,options:fe.extend({},this.options,o),registeredParent:n},this.onStart(e,t)}},move:function(e,t){this.state.isRunning&&this.onMove(e,t)},end:function(e,t){this.state.isRunning&&(this.state.isRunning=!1,this.onEnd(e,t))},cancel:function(e,t){this.onCancel(e,t),this.state={}},getNearestParent:function(e){for(var t=e;t;){if((t.$mdGesture||{})[this.name])return t;t=t.parentNode}return null},registerElement:function(e,t){var n=this;return e[0].$mdGesture=e[0].$mdGesture||{},e[0].$mdGesture[this.name]=t||{},e.on("$destroy",o),n.onSetup(e,t||{}),o;function o(){delete e[0].$mdGesture[n.name],e.off("$destroy",o),n.onCleanup(e,t||{})}}},t}).run(n),e.prototype={disableAll:function(){d=!0},skipClickHijack:function(){return c=!0},setMaxClickDistance:function(e){l=parseInt(e)},$get:["$$MdGestureHandler","$$rAF","$timeout","$mdUtil",function(e,t,n,o){return new i(e,t,n,o)}]}}(),I.$inject=["$timeout","$mdUtil","$rootScope"],fe.module("material.core.interaction",[]).service("$mdInteraction",I),I.prototype.deregister=function(){this.bodyElement.off("keydown mousedown",this.inputHandler),"ontouchstart"in document.documentElement&&this.bodyElement.off("touchstart",this.bufferedInputHandler),this.pointerEvent&&this.bodyElement.off(this.pointerEvent,this.inputHandler)},I.prototype.initializeEvents=function(){this.bodyElement.on("keydown mousedown",this.inputHandler),"ontouchstart"in document.documentElement&&this.bodyElement.on("touchstart",this.bufferedInputHandler),this.pointerEvent&&this.bodyElement.on(this.pointerEvent,this.inputHandler)},I.prototype.onInputEvent=function(e){if(!this.isBuffering){var t=this.inputEventMap[e.type];"pointer"===t&&(t=this.iePointerMap[e.pointerType]||e.pointerType),this.lastInteractionType=t,this.lastInteractionTime=this.$mdUtil.now()}},I.prototype.onBufferInputEvent=function(e){this.$timeout.cancel(this.bufferTimeout),this.onInputEvent(e),this.isBuffering=!0,this.bufferTimeout=this.$timeout(function(){this.isBuffering=!1}.bind(this),650,!1)},I.prototype.getLastInteractionType=function(){return this.lastInteractionType},I.prototype.isUserInvoked=function(e){var t=fe.isNumber(e)?e:15;return this.lastInteractionTime>=this.$mdUtil.now()-t},fe.module("material.core").provider("$$interimElement",function(){return t.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$mdUtil","$mdCompiler","$mdTheming","$injector","$exceptionHandler"],e.$get=t,e;function e(i){e.$inject=["$$interimElement","$injector"];var n=["onHide","onShow","onRemove"],r={},l={presets:{}},o={setDefaults:function(e){return l.optionsFactory=e.options,l.methods=(e.methods||[]).concat(n),o},addPreset:function(e,t){if((t=t||{}).methods=t.methods||[],t.options=t.options||function(){return{}},/^cancel|hide|show$/.test(e))throw new Error("Preset '"+e+"' in "+i+" is reserved!");if(-1<t.methods.indexOf("_options"))throw new Error("Method '_options' in "+i+" is reserved!");return l.presets[e]={methods:t.methods.concat(n),optionsFactory:t.options,argOption:t.argOption},o},addMethod:function(e,t){return r[e]=t,o},$get:e};return o.addPreset("build",{methods:["controller","controllerAs","resolve","multiple","template","templateUrl","themable","transformTemplate","parent","contentElement"]}),o;function e(e,o){var a,t,n=e(),d={hide:n.hide,cancel:n.cancel,show:function(e){return(e=e||{})._options&&(e=e._options),n.show(fe.extend({},t,e))},destroy:function(e){return n.destroy(e)}};return a=l.methods||[],t=s(l.optionsFactory,{}),fe.forEach(r,function(e,t){d[t]=e}),fe.forEach(l.presets,function(t,n){var o=s(t.optionsFactory,{}),e=(t.methods||[]).concat(a);function i(e){this._options=fe.extend({},o,e)}if(fe.extend(o,{$type:n}),fe.forEach(e,function(t){i.prototype[t]=function(e){return this._options[t]=e,this}}),t.argOption){var r="show"+n.charAt(0).toUpperCase()+n.slice(1);d[r]=function(e){var t=d[n](e);return d.show(t)}}d[n]=function(e){return arguments.length&&t.argOption&&!fe.isObject(e)&&!fe.isArray(e)?(new i)[t.argOption](e):new i(e)}}),d;function s(e,t){var n={};return n[i]=d,o.invoke(e||function(){return t},{},n)}}}function t(m,u,t,p,h,o,n,f,g,s,l){return function(){var c,i=[],r=[],a=[];return c={show:function(e){var t=new d((e=e||{})||{}),n=e.multiple?u.resolve():u.all(i);e.multiple||(n=n.then(function(){var e=r.concat(a.map(c.cancel));return u.all(e)}));var o=n.then(function(){return t.show().then(function(){a.push(t)}).catch(function(e){return e}).finally(function(){i.splice(i.indexOf(o),1)})});return i.push(o),t.deferred.promise.catch(function(e){return e instanceof Error&&l(e),e}),t.deferred.promise},hide:e(function(n,o){return(o=o||{}).closeAll?u.all(a.slice().reverse().map(e)):o.closeTo!==ge?u.all(a.slice(o.closeTo).map(e)):e(a[a.length-1]);function e(e){if(!e)return u.when(n);var t=e.remove(n,!1,o||{}).catch(function(e){return e}).finally(function(){r.splice(r.indexOf(t),1)});return a.splice(a.indexOf(e),1),r.push(t),e.deferred.promise}}),cancel:e(function(e,t){var n=a.pop();if(!n)return u.when(e);var o=n.remove(e,!0,t||{}).catch(function(e){return e}).finally(function(){r.splice(r.indexOf(o),1)});return r.push(o),n.deferred.promise.catch(fe.noop)}),destroy:function(e){var t=e?null:a.shift(),n=fe.element(e).length&&fe.element(e)[0].parentNode;if(n){var o=a.filter(function(e){return e.options.element[0]===n});o.length&&(t=o[0],a.splice(a.indexOf(t),1))}return t?t.remove(!1,!1,{$destroy:!0}):u.when(!1)},$injector_:s};function e(t){return function(){var e=arguments;return a.length?t.apply(c,e):i.length?i[0].finally(function(){return t.apply(c,e)}):u.when("No interim elements currently showing up.")}}function d(a){var r,d,s=u.when(!0);return a=function(e){return(e=e||{}).template&&(e.template=n.processTemplate(e.template)),fe.extend({preserveScope:!1,cancelAutoHide:fe.noop,scope:e.scope||t.$new(e.isolateScope),onShow:function(e,t,n){return o.enter(t,n.parent)},onRemove:function(e,t){return t&&o.leave(t)||u.when()}},e)}(a),r={options:a,deferred:u.defer(),show:function(){return u(function(t,n){function o(e){r.deferred.reject(e),n(e)}a.onCompiling&&a.onCompiling(a),function(t){return(t.skipCompile?null:f.compile(t))||u(function(e){e({locals:{},link:function(){return t.element}})})}(a).then(function(e){d=function(e,t){fe.extend(e.locals,t);var n=e.link(t.scope);return t.element=n,t.parent=function(e,t){var n,o=t.parent;return((o=fe.isFunction(o)?o(t.scope,e,t):fe.isString(o)?fe.element(m[0].querySelector(o)):fe.element(o))||{}).length?o:(h[0]&&h[0].querySelector&&(n=h[0].querySelector(":not(svg) > body")),"#comment"==(n=n||h[0]).nodeName&&(n=m[0].body),fe.element(n))}(n,t),t.themable&&g(n),n}(e,a),a.cleanupElement=e.cleanup,s=function(n,o,i){var e=o.onShowing||fe.noop,r=o.onComplete||fe.noop;try{e(o.scope,n,o,i)}catch(e){return u.reject(e)}return u(function(e,t){try{u.when(o.onShow(o.scope,n,o,i)).then(function(){r(o.scope,n,o),function(){var e,t=fe.noop;a.hideDelay&&(e=p(c.hide,a.hideDelay),t=function(){p.cancel(e)}),a.cancelAutoHide=function(){t(),a.cancelAutoHide=ge}}(),e(n)},t)}catch(e){t(e.message)}})}(d,a,e.controller).then(t,o)}).catch(o)})},remove:function(e,t,n){return d?((a=fe.extend(a||{},n||{})).cancelAutoHide&&a.cancelAutoHide(),a.element.triggerHandler("$mdInterimElementRemove"),!0===a.$destroy?l(a.element,a).then(function(){t&&i(e)||o(e)}):(u.when(s).finally(function(){l(a.element,a).then(function(){t?i(e):o(e)},i)}),r.deferred.promise)):u.when(!1);function o(e){r.deferred.resolve(e)}function i(e){r.deferred.reject(e)}}};function l(o,i){var r=i.onRemoving||fe.noop;return u(function(e,t){try{var n=u.when(i.onRemove(i.scope,o,i)||!0);r(o,n),i.$destroy?(e(o),!i.preserveScope&&i.scope&&n.then(function(){i.scope.$destroy()})):n.then(function(){!i.preserveScope&&i.scope&&i.scope.$destroy(),e(o)},t)}catch(e){t(e.message)}})}}}}}),v=/(-gt)?-(sm|md|lg|print)/g,E=/\s+/g,$=["grow","initial","auto","none","noshrink","nogrow"],y=["row","column"],C=["","start","center","end","stretch","space-around","space-between"],M=["","start","center","end","stretch"],T={enabled:!0,breakpoints:[]},p=fe.module("material.core.layout",["ng"]),h=/^((?:x|data)[:\-_])/i,f=/([:\-_]+(.))/g,g=["layout","flex","flex-order","flex-offset","layout-align"],b=["show","hide","layout-padding","layout-margin"],fe.forEach(["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print"],function(n){fe.forEach(g,function(e){var t=n?e+"-"+n:e;p.directive(H(t),function(r){return["$mdUtil","$interpolate","$log",function(e,t,n){return l=e,c=t,m=n,{restrict:"A",compile:function(e,t){var n;return T.enabled&&(B(r,0,e,m),U(r,z(r,t,""),j(0,r,t)),n=o),n||fe.noop}}}];function o(e,t,n){var o=function(n,o){var i;return function(e){var t=U(o,e||"");fe.isDefined(t)&&(i&&n.removeClass(i),i=t?o+"-"+t.trim().replace(E,"-"):o,n.addClass(i))}}(t,r),i=n.$observe(n.$normalize(r),o);o(z(r,n,"")),e.$on("$destroy",function(){i()})}}(t))}),fe.forEach(b,function(e){var t=n?e+"-"+n:e;p.directive(H(t),L(t))})}),p.provider("$$mdLayout",function(){return{$get:fe.noop,validateAttributeValue:U,validateAttributeUsage:B,disableLayouts:function(e){T.enabled=!0!==e}}}).directive("mdLayoutCss",P).directive("ngCloak",(u="ng-cloak",["$timeout",function(n){return{restrict:"A",priority:-10,compile:function(e){return T.enabled?(e.addClass(u),function(e,t){n(function(){t.removeClass(u)},10,!1)}):fe.noop}}}])).directive("layoutWrap",L("layout-wrap")).directive("layoutNowrap",L("layout-nowrap")).directive("layoutNoWrap",L("layout-no-wrap")).directive("layoutFill",L("layout-fill")).directive("layoutLtMd",F("layout-lt-md")).directive("layoutLtLg",F("layout-lt-lg")).directive("flexLtMd",F("flex-lt-md")).directive("flexLtLg",F("flex-lt-lg")).directive("layoutAlignLtMd",F("layout-align-lt-md")).directive("layoutAlignLtLg",F("layout-align-lt-lg")).directive("flexOrderLtMd",F("flex-order-lt-md")).directive("flexOrderLtLg",F("flex-order-lt-lg")).directive("offsetLtMd",F("flex-offset-lt-md")).directive("offsetLtLg",F("flex-offset-lt-lg")).directive("hideLtMd",F("hide-lt-md")).directive("hideLtLg",F("hide-lt-lg")).directive("showLtMd",F("show-lt-md")).directive("showLtLg",F("show-lt-lg")).config(O),V.$inject=["$timeout"],fe.module("material.core").service("$mdLiveAnnouncer",V),V.prototype.announce=function(e,t){t=t||"polite";var n=this;n._liveElement.textContent="",n._liveElement.setAttribute("aria-live",t),n._$timeout(function(){n._liveElement.textContent=e},n._announceTimeout,!1)},V.prototype._createLiveElement=function(){var e=document.createElement("div");return e.classList.add("md-visually-hidden"),e.setAttribute("role","status"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),document.body.appendChild(e),e},fe.module("material.core.meta",[]).provider("$$mdMeta",function(){var o=fe.element(document.head),i={};function r(e){if(i[e])return!0;var t=document.getElementsByName(e)[0];return!!t&&(i[e]=fe.element(t),!0)}var e={setMeta:function(e,t){if(r(e),i[e])i[e].attr("content",t);else{var n=fe.element('<meta name="'+e+'" content="'+t+'"/>');o.append(n),i[e]=n}return function(){i[e].attr("content",""),i[e].remove(),delete i[e]}},getMeta:function(e){if(!r(e))throw Error("$$mdMeta: could not find a meta tag with the name '"+e+"'");return i[e].attr("content")}};return fe.extend({},e,{$get:function(){return e}})}),Y.$inject=["$log","$q"],fe.module("material.core").factory("$mdComponentRegistry",Y),K.$inject=["$mdInkRipple"],fe.module("material.core").factory("$mdButtonInkRipple",K),G.$inject=["$mdInkRipple"],fe.module("material.core").factory("$mdCheckboxInkRipple",G),X.$inject=["$mdInkRipple"],fe.module("material.core").factory("$mdListInkRipple",X),function(){r.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil","$mdColorUtil"],e.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],fe.module("material.core").provider("$mdInkRipple",function(){var i=!1;return{disableInkRipple:function(){i=!0},$get:["$injector",function(o){return{attach:function(e,t,n){return i||t.controller("mdNoInk")?fe.noop:o.instantiate(r,{$scope:e,$element:t,rippleOptions:n})}}}]}}).directive("mdInkRipple",e).directive("mdNoInk",n).directive("mdNoBar",n).directive("mdNoStretch",n);function e(o,i){return{controller:fe.noop,link:function(e,t,n){n.hasOwnProperty("mdInkRippleCheckbox")?i.attach(e,t):o.attach(e,t)}}}function r(e,t,n,o,i,r,a){this.$window=o,this.$timeout=i,this.$mdUtil=r,this.$mdColorUtil=a,this.$scope=e,this.$element=t,this.options=n,this.mousedown=!1,this.ripples=[],this.timeout=null,this.lastRipple=null,r.valueOnUse(this,"container",this.createContainer),this.$element.addClass("md-ink-ripple"),(t.controller("mdInkRipple")||{}).createRipple=fe.bind(this,this.createRipple),(t.controller("mdInkRipple")||{}).setColor=fe.bind(this,this.color),this.bindEvents()}function t(e,t){(e.mousedown||e.lastRipple)&&(e.mousedown=!1,e.$mdUtil.nextTick(fe.bind(e,t),!1))}function n(){return{controller:fe.noop}}r.prototype.color=function(e){var t,n,o=this;return fe.isDefined(e)&&(o._color=o._parseColor(e)),o._color||o._parseColor(o.inkRipple())||o._parseColor((t=o.options&&o.options.colorElement?o.options.colorElement:[],(n=t.length?t[0]:o.$element[0])?o.$window.getComputedStyle(n).color:"rgb(0,0,0)"))},r.prototype.calculateColor=function(){return this.color()},r.prototype._parseColor=function(e,t){t=t||1;var n=this.$mdColorUtil;if(e)return 0===e.indexOf("rgba")?e.replace(/\d?\.?\d*\s*\)\s*$/,(.1*t).toString()+")"):0===e.indexOf("rgb")?n.rgbToRgba(e):0===e.indexOf("#")?n.hexToRgba(e):void 0},r.prototype.bindEvents=function(){this.$element.on("mousedown",fe.bind(this,this.handleMousedown)),this.$element.on("mouseup touchend",fe.bind(this,this.handleMouseup)),this.$element.on("mouseleave",fe.bind(this,this.handleMouseup)),this.$element.on("touchmove",fe.bind(this,this.handleTouchmove))},r.prototype.handleMousedown=function(e){if(!this.mousedown)if(e.hasOwnProperty("originalEvent")&&(e=e.originalEvent),this.mousedown=!0,this.options.center)this.createRipple(this.container.prop("clientWidth")/2,this.container.prop("clientWidth")/2);else if(e.srcElement!==this.$element[0]){var t=this.$element[0].getBoundingClientRect(),n=e.clientX-t.left,o=e.clientY-t.top;this.createRipple(n,o)}else this.createRipple(e.offsetX,e.offsetY)},r.prototype.handleMouseup=function(){this.$timeout(function(){t(this,this.clearRipples)}.bind(this))},r.prototype.handleTouchmove=function(){t(this,this.deleteRipples)},r.prototype.deleteRipples=function(){for(var e=0;e<this.ripples.length;e++)this.ripples[e].remove()},r.prototype.clearRipples=function(){for(var e=0;e<this.ripples.length;e++)this.fadeInComplete(this.ripples[e])},r.prototype.createContainer=function(){var e=fe.element('<div class="md-ripple-container"></div>');return this.$element.append(e),e},r.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},r.prototype.isRippleAllowed=function(){var e=this.$element[0];do{if(!e.tagName||"BODY"===e.tagName)break;if(e&&fe.isFunction(e.hasAttribute)){if(e.hasAttribute("disabled"))return!1;if("false"===this.inkRipple()||"0"===this.inkRipple())return!1}}while(e=e.parentNode);return!0},r.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},r.prototype.createRipple=function(e,t){if(this.isRippleAllowed()){var n,o,i,r=this,a=r.$mdColorUtil,d=fe.element('<div class="md-ripple"></div>'),s=this.$element.prop("clientWidth"),l=this.$element.prop("clientHeight"),c=2*Math.max(Math.abs(s-e),e),m=2*Math.max(Math.abs(l-t),t),u=(n=this.options.fitRipple,o=c,i=m,n?Math.max(o,i):Math.sqrt(Math.pow(o,2)+Math.pow(i,2))),p=this.calculateColor();d.css({left:e+"px",top:t+"px",background:"black",width:u+"px",height:u+"px",backgroundColor:a.rgbaToRgb(p),borderColor:a.rgbaToRgb(p)}),this.lastRipple=d,this.clearTimeout(),this.timeout=this.$timeout(function(){r.clearTimeout(),r.mousedown||r.fadeInComplete(d)},157.5,!1),this.options.dimBackground&&this.container.css({backgroundColor:p}),this.container.append(d),this.ripples.push(d),d.addClass("md-ripple-placed"),this.$mdUtil.nextTick(function(){d.addClass("md-ripple-scaled md-ripple-active"),r.$timeout(function(){r.clearRipples()},450,!1)},!1)}},r.prototype.fadeInComplete=function(e){this.lastRipple===e&&(this.timeout||this.mousedown)||this.removeRipple(e)},r.prototype.removeRipple=function(e){var t=this;this.ripples.indexOf(e)<0||(this.ripples.splice(this.ripples.indexOf(e),1),e.removeClass("md-ripple-active"),e.addClass("md-ripple-remove"),0===this.ripples.length&&this.container.css({backgroundColor:""}),this.$timeout(function(){t.fadeOutComplete(e)},450,!1))},r.prototype.fadeOutComplete=function(e){e.remove(),this.lastRipple=null}}(),Q.$inject=["$mdInkRipple"],fe.module("material.core").factory("$mdTabInkRipple",Q),fe.module("material.core.theming.palette",[]).constant("$mdColorPalette",{red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100",contrastStrongLightColors:"400 500 600 700 A200 A400 A700"},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"500 600 A200 A400 A700"},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400 A700"},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200"},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400"},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100",contrastStrongLightColors:"500 600 700 A200 A400 A700"},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900 A700",contrastStrongLightColors:"600 700 800 A700"},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",contrastDefaultColor:"dark",contrastLightColors:"900",contrastStrongLightColors:"900"},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",contrastDefaultColor:"dark"},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",contrastDefaultColor:"dark"},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",contrastDefaultColor:"dark",contrastLightColors:"800 900",contrastStrongLightColors:"800 900"},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100 A200",contrastStrongLightColors:"500 600 700 800 900 A400 A700"},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100 A200",contrastStrongLightColors:"300 400"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#ffffff",A200:"#000000",A400:"#303030",A700:"#616161",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900 A200 A400 A700"},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100 A200",contrastStrongLightColors:"400 500 700"}}),function(E){function e(e){var t=!!document.querySelector("[md-themes-disabled]");e.disableTheming(t)}e.$inject=["$mdThemingProvider"],n.$inject=["$mdTheming","$interpolate","$parse","$mdUtil","$q","$log"],o.$inject=["$mdTheming"],t.$inject=["$mdColorPalette","$$mdMetaProvider"],i.$inject=["$injector","$mdTheming"],E.module("material.core.theming",["material.core.theming.palette","material.core.meta"]).directive("mdTheme",n).directive("mdThemable",o).directive("mdThemesDisabled",function(){return C.disableTheming=!0,{restrict:"A",priority:"900"}}).provider("$mdTheming",t).config(e).run(i);var p,s={},l={name:"dark",1:"rgba(0,0,0,0.87)",2:"rgba(0,0,0,0.54)",3:"rgba(0,0,0,0.38)",4:"rgba(0,0,0,0.12)"},c={name:"light",1:"rgba(255,255,255,1.0)",2:"rgba(255,255,255,0.7)",3:"rgba(255,255,255,0.5)",4:"rgba(255,255,255,0.12)"},h="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",f="",m=w("rgba(0,0,0,0.87)"),u=w("rgba(255,255,255,0.87)"),g=w("rgb(255,255,255)"),b=["primary","accent","warn","background"],a="primary",v={accent:{default:"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{default:"50","hue-1":"A100","hue-2":"100","hue-3":"300"}},$={background:{default:"A400","hue-1":"800","hue-2":"900","hue-3":"A200"}};b.forEach(function(e){var t={default:"500","hue-1":"300","hue-2":"800","hue-3":"A100"};v[e]||(v[e]=t),$[e]||($[e]=t)});var y=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],C={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null};function t(e,r){s.$inject=["$rootScope","$mdUtil","$q","$log"];var n,a={},m=!(p={}),u="default";E.extend(p,e);var t=function(e){var t=(e=E.isObject(e)?e:{}).theme||"default",n=e.hue||"800",o=p[e.palette]||p[a[t].colors[e.palette||"primary"].name],i=E.isObject(o[n])?o[n].hex:o[n];return"#"!==i.substr(0,1)&&(i="#"+i),function(e){var t=r.setMeta("theme-color",e),n=r.setMeta("msapplication-navbutton-color",e);return function(){t(),n()}}(i)};return n={definePalette:function(e,t){return t=t||{},p[e]=o(e,t),n},extendPalette:function(e,t){return o(e,E.extend({},p[e]||{},t))},theme:d,configuration:function(){return E.extend({},C,{defaultTheme:u,alwaysWatchTheme:m,registeredStyles:[].concat(C.registeredStyles)})},disableTheming:function(e){C.disableTheming=E.isUndefined(e)||!!e},registerStyles:function(e){C.registeredStyles.push(e)},setNonce:function(e){C.nonce=e},generateThemesOnDemand:function(e){C.generateOnDemand=e},setDefaultTheme:function(e){u=e},alwaysWatchTheme:function(e){m=e},enableBrowserColor:t,$get:s,_LIGHT_DEFAULT_HUES:v,_DARK_DEFAULT_HUES:$,_PALETTES:p,_THEMES:a,_parseRules:M,_rgba:_};function o(e,t){var n=y.filter(function(e){return!t[e]});if(n.length)throw new Error("Missing colors %1 in palette %2!".replace("%1",n.join(", ")).replace("%2",e));return t}function d(e,t){if(a[e])return a[e];var n="string"==typeof(t=t||"default")?a[t]:t,o=new i(e);return n&&E.forEach(n.colors,function(e,t){o.colors[t]={name:e.name,hues:E.extend({},e.hues)}}),a[e]=o}function i(e){var a=this;function t(e){if((e=0===arguments.length||!!e)!==a.isDark){a.isDark=e,a.foregroundPalette=a.isDark?c:l,a.foregroundShadow=a.isDark?h:f;var t=a.isDark?$:v,r=a.isDark?v:$;return E.forEach(t,function(e,t){var n=a.colors[t],o=r[t];if(n)for(var i in n.hues)n.hues[i]===o[i]&&(n.hues[i]=e[i])}),a}}a.name=e,a.colors={},(a.dark=t)(!1),b.forEach(function(o){var i=(a.isDark?$:v)[o];a[o+"Palette"]=function(t,e){var n=a.colors[o]={name:t,hues:E.extend({},i,e)};return Object.keys(n.hues).forEach(function(e){if(!i[e])throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",e).replace("%2",a.name).replace("%3",t).replace("%4",Object.keys(i).join(", ")))}),Object.keys(n.hues).map(function(e){return n.hues[e]}).forEach(function(e){if(-1==y.indexOf(e))throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",e).replace("%2",a.name).replace("%3",o).replace("%4",t).replace("%5",y.join(", ")))}),a},a[o+"Color"]=function(){var e=Array.prototype.slice.call(arguments);return console.warn("$mdThemingProviderTheme."+o+"Color() has been deprecated. Use $mdThemingProviderTheme."+o+"Palette() instead."),a[o+"Palette"].apply(a,e)}})}function s(n,s,o,l){var i=function(e,t){t===ge&&(t=e,e=ge),e===ge&&(e=n),i.inherit(t,t)};return Object.defineProperty(i,"THEMES",{get:function(){return E.extend({},a)}}),Object.defineProperty(i,"PALETTES",{get:function(){return E.extend({},p)}}),Object.defineProperty(i,"ALWAYS_WATCH",{get:function(){return m}}),i.inherit=function(n,e){var o=e.controller("mdTheme")||n.data("$mdThemeController"),t=n.scope();if(d(o&&o.$mdTheme||("default"===u?"":u)),o){var i=m||o.$shouldWatch||s.parseAttributeBoolean(n.attr("md-theme-watch"));if(i||o.isAsyncTheme){var r=function(){a&&(a(),a=ge)},a=o.registerChanges(function(e){d(e),i||r()});t?t.$on("$destroy",r):n.on("$destroy",r)}}function d(e){if(e){c(e)||l.warn("Attempted to use unregistered theme '"+e+"'. Register it with $mdThemingProvider.theme().");var t=n.data("$mdThemeName");t&&n.removeClass("md-"+t+"-theme"),n.addClass("md-"+e+"-theme"),n.data("$mdThemeName",e),o&&n.data("$mdThemeController",o)}}},i.registered=c,i.defaultTheme=function(){return u},i.generateTheme=function(e){A(a[e],e,C.nonce)},i.defineTheme=function(e,t){t=t||{};var n=d(e);return t.primary&&n.primaryPalette(t.primary,t.primaryHues),t.accent&&n.accentPalette(t.accent,t.accentHues),t.warn&&n.warnPalette(t.warn,t.warnHues),t.background&&n.backgroundPalette(t.background,t.backgroundHues),t.dark&&n.dark(),this.generateTheme(e),o.resolve(e)},i.setBrowserColor=t,i;function c(e){return e===ge||""===e||i.THEMES[e]!==ge}}}function n(p,h,f,g,b,v){return{priority:101,link:{pre:function(t,e,n){function o(){var e=h(n.mdTheme)(t);return f(e)(t)||e}var i=[],r=h.startSymbol(),a=h.endSymbol(),d=n.mdTheme.trim(),s=d.substr(0,r.length)===r&&d.lastIndexOf(a)===d.length-a.length,l="::"===n.mdTheme.split(r).join("").split(a).join("").trim().substr(0,"::".length),c={isAsyncTheme:E.isFunction(o())||E.isFunction(o().then),registerChanges:function(t,e){return e&&(t=E.bind(e,t)),i.push(t),function(){var e=i.indexOf(t);-1<e&&i.splice(e,1)}},$setTheme:function(e){p.registered(e)||v.warn("attempted to use unregistered theme '"+e+"'"),c.$mdTheme=e;for(var t=i.length;t--;)i[t](e)},$shouldWatch:g.parseAttributeBoolean(e.attr("md-theme-watch"))||p.ALWAYS_WATCH||s&&!l};function m(e){if("string"==typeof e)return c.$setTheme(e);b.when(E.isFunction(e)?e():e).then(function(e){c.$setTheme(e)})}e.data("$mdThemeController",c),m(o());var u=t.$watch(o,function(e){e&&(m(e),c.$shouldWatch||u())})}}}}function o(e){return e}function M(d,e,t){!function(e,t){if(!p[(e.colors[t]||{}).name])throw new Error("You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3".replace("%1",e.name).replace("%2",t).replace("%3",Object.keys(p).join(", ")))}(d,e),t=t.replace(/THEME_NAME/g,d.name);var n=new RegExp("\\.md-"+d.name+"-theme","g");t=t.replace(/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue-[0-3]|shadow|default)-?(\d\.?\d*)?(contrast)?\s*\}\}'?"?/g,function(e,t,n,o,i){return"foreground"===t?"shadow"==n?d.foregroundShadow:d.foregroundPalette[n]||d.foregroundPalette[1]:(0!==n.indexOf("hue")&&"default"!==n||(n=d.colors[t].hues[n]),_((p[d.colors[t].name][n]||"")[i?"contrast":"value"],o))});var o=new RegExp("('|\")?{{\\s*([a-zA-Z]+)-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),i=[];return E.forEach(["default","hue-1","hue-2","hue-3"],function(a){var e=t.replace(o,function(e,t,n,o,i){var r=d.colors[n];return _(p[r.name][r.hues[a]]["color"===o?"value":"contrast"],i)});"default"!==a&&(e=e.replace(n,".md-"+d.name+"-theme.md-"+a)),"default"==d.name&&(e=e.replace(/((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g,function(e,t,n){return e+", "+t+n})),i.push(e)}),i}var T={};function i(e,t){var n=document.head,o=n?n.firstElementChild:null,i=!C.disableTheming&&e.has("$MD_THEME_CSS")?e.get("$MD_THEME_CSS"):"";if(i+=C.registeredStyles.join(""),o&&0!==i.length){E.forEach(p,function(o,e){var i=o.contrastDefaultColor,r=o.contrastLightColors||[],a=o.contrastStrongLightColors||[],d=o.contrastDarkColors||[];"string"==typeof r&&(r=r.split(" ")),"string"==typeof a&&(a=a.split(" ")),"string"==typeof d&&(d=d.split(" ")),delete o.contrastDefaultColor,delete o.contrastLightColors,delete o.contrastStrongLightColors,delete o.contrastDarkColors,E.forEach(o,function(e,t){if(!E.isObject(e)){var n=w(e);if(!n)throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",e).replace("%2",o.name).replace("%3",t));o[t]={hex:o[t],value:n,contrast:"light"===i?-1<d.indexOf(t)?m:-1<a.indexOf(t)?g:u:-1<r.indexOf(t)?-1<a.indexOf(t)?g:u:m}}})});var r=i.split(/\}(?!(\}|'|"|;))/).filter(function(e){return e&&e.trim().length}).map(function(e){return e.trim()+"}"});b.forEach(function(e){T[e]=""}),r.forEach(function(e){for(var t,n=0;t=b[n];n++)if(-1<e.indexOf(".md-"+t))return T[t]+=e;for(n=0;t=b[n];n++)if(-1<e.indexOf(t))return T[t]+=e;return T[a]+=e}),C.generateOnDemand||E.forEach(t.THEMES,function(e){s[e.name]||"default"!==t.defaultTheme()&&"default"===e.name||A(e,e.name,C.nonce)})}}function A(i,e,r){var a=document.head,d=a?a.firstElementChild:null;s[e]||(b.forEach(function(e){for(var t=M(i,e,T[e]);t.length;){var n=t.shift();if(n){var o=document.createElement("style");o.setAttribute("md-theme-style",""),r&&o.setAttribute("nonce",r),o.appendChild(document.createTextNode(n)),a.insertBefore(o,d)}}}),s[i.name]=!0)}function w(e){if(E.isArray(e)&&3==e.length)return e;if(/^rgb/.test(e))return e.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map(function(e,t){return 3==t?parseFloat(e,10):parseInt(e,10)});if("#"==e.charAt(0)&&(e=e.substring(1)),/^([a-fA-F0-9]{3}){1,2}$/g.test(e)){var t=e.length/3,n=e.substr(0,t),o=e.substr(t,t),i=e.substr(2*t);return 1==t&&(n+=n,o+=o,i+=i),[parseInt(n,16),parseInt(o,16),parseInt(i,16)]}}function _(e,t){return e?(4==e.length&&(e=E.copy(e),t?e.pop():t=e.pop()),t&&("number"==typeof t||"string"==typeof t&&t.length)?"rgba("+e.join(",")+","+t+")":"rgb("+e.join(",")+")"):"rgb('0,0,0')"}}(R.angular),fe.module("material.components.autocomplete",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){e.$inject=["$scope","$element","$mdUtil","$mdConstant","$mdTheming","$window","$animate","$rootElement","$attrs","$q","$log","$mdLiveAnnouncer"],fe.module("material.components.autocomplete").controller("MdAutocompleteCtrl",e);var le=48,ce=5,me=8,ue=2,pe="standard",he="virtual";function e(p,h,f,t,e,n,o,i,g,a,r,d){var s,l,c,m=this,u=p.itemsExpr.split(/ in /i),b=u[1],v=null,E={},$=!1,y=[],C=!1,M=0,T=null,A=null,w=f.debounce(function(){m.hidden||S()}),_=he;m.documentElement=fe.element(document.documentElement),s="hidden",l=function(e,t){var n;v&&(n=fe.element(v.scrollContainer));!e&&t?(S(),ne(!0,x.Count|x.Selected),v&&(f.disableScrollAround(v.scrollContainer),T=function(e){var t=fe.element(e);return t.on("wheel touchmove",O),function(){t.off("wheel touchmove",O)}}(v.wrap),f.isIos&&(m.documentElement.on("touchend",L),n&&n.on("touchstart touchmove touchend",P)),f.nextTick(I))):e&&!t&&(f.isIos&&(m.documentElement.off("touchend",L),n&&n.off("touchstart touchmove touchend",P)),f.enableScrolling(),T&&(T(),T=null))},c=!0,Object.defineProperty(m,s,{get:function(){return c},set:function(e){var t=c;l(c=e,t)}}),m.scope=p,m.parent=p.$parent,m.itemName=u[0],m.matches=[],m.loading=!1,m.hidden=!0,m.index=-1,m.activeOption=null,m.id=f.nextUid(),m.isDisabled=null,m.isRequired=null,m.isReadonly=null,m.hasNotFound=!1,m.selectedMessage=p.selectedMessage||"selected",m.keydown=function(e){switch(e.keyCode){case t.KEY_CODE.DOWN_ARROW:if(m.loading||X())return;e.stopPropagation(),e.preventDefault(),m.index=Math.min(m.index+1,m.matches.length-1),f.nextTick(I),oe();break;case t.KEY_CODE.UP_ARROW:if(m.loading||X())return;e.stopPropagation(),e.preventDefault(),m.index=m.index<0?m.matches.length-1:Math.max(0,m.index-1),f.nextTick(I),oe();break;case t.KEY_CODE.TAB:if(R(),m.hidden||m.loading||m.index<0||m.matches.length<1)return;J(m.index);break;case t.KEY_CODE.ENTER:if(m.hidden||m.loading||m.index<0||m.matches.length<1)return;if(X())return;e.stopImmediatePropagation(),e.preventDefault(),J(m.index);break;case t.KEY_CODE.ESCAPE:if(e.preventDefault(),!(K("blur")||!m.hidden||m.loading||K("clear")&&p.searchText))return;e.stopPropagation(),ee(),p.searchText&&K("clear")&&te(),m.hidden=!0,K("blur")&&U(!0)}},m.blur=function(e){C=!1,$||(m.hidden=V(),se("ngBlur",{$event:e}))},m.focus=function(e){C=!0,Y()&&Z()&&ae();m.hidden=V(),se("ngFocus",{$event:e})},m.clear=function(e){e&&e.stopPropagation();ee(),te()},m.select=J,m.listEnter=function(){$=!0},m.listLeave=R,m.focusInput=D,m.getCurrentDisplayValue=Q,m.registerSelectedItemWatcher=function(e){-1===y.indexOf(e)&&y.push(e)},m.unregisterSelectedItemWatcher=function(e){var t=y.indexOf(e);-1!==t&&y.splice(t,1)},m.notFoundVisible=re,m.loadingIsVisible=function(){return m.loading&&!X()},m.positionDropdown=S;var k,x={Count:1,Selected:2};return f.initOptionalProperties(p,g,{searchText:"",selectedItem:null,clearButton:!1,disableVirtualRepeat:!1}),e(h),k=parseInt(p.delay,10)||0,g.$observe("disabled",function(e){m.isDisabled=f.parseAttributeBoolean(e,!1)}),g.$observe("required",function(e){m.isRequired=f.parseAttributeBoolean(e,!1)}),g.$observe("readonly",function(e){m.isReadonly=f.parseAttributeBoolean(e,!1)}),p.$watch("searchText",k?f.debounce(B,k):B),p.$watch("selectedItem",F),fe.element(n).on("resize",w),void p.$on("$destroy",H),void f.nextTick(function(){!function(){var e=function(){var e,t;for(e=h;e.length&&(t=e.attr("md-autocomplete-snap"),!fe.isDefined(t));e=e.parent());if(e.length)return{snap:e[0],wrap:"width"===t.toLowerCase()?e[0]:h.find("md-autocomplete-wrap")[0]};var n=h.find("md-autocomplete-wrap")[0];return{snap:n,wrap:n}}();(v={main:h[0],scrollContainer:h[0].querySelector(".md-virtual-repeat-container, .md-standard-list-container"),scroller:h[0].querySelector(".md-virtual-repeat-scroller, .md-standard-list-scroller"),ul:h.find("ul")[0],input:h.find("input")[0],wrap:e.wrap,snap:e.snap,root:document.body}).li=v.ul.getElementsByTagName("li"),v.$=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=fe.element(e[n]));return t}(v),_=v.scrollContainer.classList.contains("md-standard-list-container")?pe:he,A=v.$.input.controller("ngModel")}(),v.$.root.length&&(e(v.$.scrollContainer),v.$.scrollContainer.detach(),v.$.root.append(v.$.scrollContainer),o.pin&&o.pin(v.$.scrollContainer,i)),h.on("touchstart",D),p.autofocus&&h.on("focus",D),p.inputAriaDescribedBy&&v.input.setAttribute("aria-describedby",p.inputAriaDescribedBy),p.floatingLabel||(p.inputAriaLabel?v.input.setAttribute("aria-label",p.inputAriaLabel):p.inputAriaLabelledBy?v.input.setAttribute("aria-labelledby",p.inputAriaLabelledBy):p.placeholder&&v.input.setAttribute("aria-label",p.placeholder))});function N(){p.requireMatch&&A&&A.$setValidity("md-require-match",!!p.selectedItem||!p.searchText)}function S(){if(!v)return f.nextTick(S,!1,p);var e,t=(p.dropdownItems||ce)*le,n=v.wrap.getBoundingClientRect(),o=v.snap.getBoundingClientRect(),i=v.root.getBoundingClientRect(),r=o.bottom-i.top,a=i.bottom-o.top,d=n.left-i.left,s=n.width,l=function(){var e=0,t=h.find("md-input-container");if(t.length){var n=t.find("input");e=t.prop("offsetHeight"),e-=n.prop("offsetTop"),e-=n.prop("offsetHeight"),e+=t.prop("offsetTop")}return e}(),c=p.dropdownPosition,m=i.bottom-o.bottom-me+f.getViewportTop(),u=o.top-me;c=c||(t<m?"bottom":t<u?"top":m<u?"top":"bottom"),g.mdFloatingLabel&&(d+=ue,s-=2*ue),e={left:d+"px",minWidth:s+"px",maxWidth:Math.max(n.right-i.left,i.right-n.left)-me+"px"},"top"===c?(e.top="auto",e.bottom=a+"px",e.maxHeight=Math.min(t,u)+"px"):(m=i.bottom-n.bottom-me+f.getViewportTop(),e.top=r-l+"px",e.bottom="auto",e.maxHeight=Math.min(t,m)+"px"),v.$.scrollContainer.css(e),f.nextTick(function(){var e=v.scrollContainer.getBoundingClientRect(),t={};e.right>i.right&&(t.left=n.right-e.width+"px");v.$.scrollContainer.css(t)},!1,p)}function D(){v.input.focus()}function I(){var e=v.scroller.querySelector(".selected");m.activeOption=e?e.id:null}function H(){if(m.hidden||f.enableScrolling(),fe.element(n).off("resize",w),v){fe.forEach(["ul","scroller","scrollContainer","input"],function(e){v.$[e].remove()})}}function O(e){e.preventDefault()}function P(e){e.stopPropagation()}function L(e){U(m.hidden=!0)}function R(){C||m.hidden||v.input.focus(),$=!1,m.hidden=V()}function F(t,n){N(),t?q(t).then(function(e){p.searchText=e,function(t,n){y.forEach(function(e){e(t,n)})}(t,n)}):n&&p.searchText&&q(n).then(function(e){fe.isString(p.searchText)&&e.toString().toLowerCase()===p.searchText.toLowerCase()&&(p.searchText="")}),t!==n&&fe.isFunction(p.itemChange)&&p.itemChange(z(p.selectedItem))}function B(t,n){m.index=p.autoselect?0:-1,t!==n&&(N(),q(p.selectedItem).then(function(e){t!==e&&(p.selectedItem=null,t!==n&&fe.isFunction(p.textChange)&&p.textChange(),Z()?ae():(W(!(m.matches=[])),ne(!0,x.Count)))}))}function U(e){e&&(C=$=!1),v.input.blur()}function j(){return fe.isNumber(p.minLength)?p.minLength:1}function q(e){return a.when(((t=e)&&p.itemText?p.itemText(z(t)):null)||e).then(function(e){return e&&!fe.isString(e)&&r.warn("md-autocomplete: Could not resolve display value to a string. Please check the `md-item-text` attribute."),e});var t}function z(e){if(!e)return ge;var t={};return m.itemName&&(t[m.itemName]=e),t}function W(e){m.loading!==e&&(m.loading=e),m.hidden=V()}function V(){return!function(){{if(m.isReadonly)return!1;if(!Y())return!1}return Z()&&G()||re()}()}function Y(){return!(m.loading&&!G())&&(!X()&&!!C)}function K(e){return!p.escapeOptions||-1!==p.escapeOptions.toLowerCase().indexOf(e)}function G(){return!!m.matches.length}function X(){return!!m.scope.selectedItem}function Q(){return q(m.matches[m.index])}function Z(){return(p.searchText||"").length>=j()}function J(e){f.nextTick(function(){q(m.matches[e]).then(function(e){var t=v.$.input.controller("ngModel");d.announce(e+" "+m.selectedMessage,"assertive"),t.$setViewValue(e),t.$render()}).finally(function(){p.selectedItem=m.matches[e],W(!1)})},!1)}function ee(){m.index=-1,f.nextTick(I),m.matches=[]}function te(){W(!0),p.searchText="";var e=document.createEvent("CustomEvent");e.initCustomEvent("change",!0,!0,{value:""}),v.input.dispatchEvent(e),v.input.blur(),p.searchText="",v.input.focus()}function ne(e,t){var n=e?"polite":"assertive",o=[];t&x.Selected&&-1!==m.index&&o.push(Q()),t&x.Count&&o.push(a.resolve(function(){switch(m.matches.length){case 0:return"There are no matches available.";case 1:return"There is 1 match available.";default:return"There are "+m.matches.length+" matches available."}}())),a.all(o).then(function(e){d.announce(e.join(" "),n)})}function oe(){v.li[0]&&(_===pe?function(){var e=v.li[Math.max(0,m.index)],t=v.scrollContainer.offsetHeight,n=e&&e.offsetTop||0,o=n+e.clientHeight,i=v.scrollContainer.scrollTop;n<i?ie(n):i+t<o&&ie(o-t)}():function(){var e=v.li[0].offsetHeight,t=e*Math.max(0,m.index),n=t+e,o=v.scroller.clientHeight,i=v.scroller.scrollTop;t<i?ie(t):i+o<n&&ie(n-o)}())}function ie(e){_===pe?v.scrollContainer.scrollTop=e:v.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(e)}function re(){var e=(m.scope.searchText||"").length;return m.hasNotFound&&!G()&&(!m.loading||0!==M)&&e>=j()&&(C||$)&&!X()}function ae(){var e=p.searchText||"",t=e.toLowerCase();!p.noCache&&E[t]?de(E[t]):function(t){var e=p.$parent.$eval(b),n=t.toLowerCase(),o=fe.isArray(e),i=!!e.then;function r(e){E[n]=e,(t||"")===(p.searchText||"")&&de(e)}o?r(e):i&&function(e){if(!e)return;e=a.when(e),M++,W(!0),f.nextTick(function(){e.then(r).finally(function(){0==--M&&W(!1)})},!0,p)}(e)}(e),m.hidden=V()}function de(e){m.matches=e,m.hidden=V(),m.loading&&W(!1),p.selectOnMatch&&function(){var n=p.searchText,e=m.matches,t=e[0];1===e.length&&q(t).then(function(e){var t=n===e;p.matchInsensitive&&!t&&(t=n.toLowerCase()===e.toLowerCase()),t&&J(0)})}(),S(),ne(!0,x.Count)}function se(e,t){g[e]&&p.$parent.$eval(g[e],t||{})}}}(),Z.$inject=["$$mdSvgRegistry"],fe.module("material.components.autocomplete").directive("mdAutocomplete",Z),J.$inject=["$compile","$mdUtil"],fe.module("material.components.autocomplete").directive("mdAutocompleteParentScope",J),ee.$inject=["$scope","$element","$attrs"],fe.module("material.components.autocomplete").controller("MdHighlightCtrl",ee),ee.prototype.init=function(t,n){this.flags=this.$attrs.mdHighlightFlags||"",this.unregisterFn=this.$scope.$watch(function(e){return{term:t(e),contentText:n(e)}}.bind(this),this.onRender.bind(this),!0),this.$element.on("$destroy",this.unregisterFn)},ee.prototype.onRender=function(e,t){var n=e.contentText;null!==this.regex&&e.term===t.term||(this.regex=this.createRegex(e.term,this.flags)),e.term?this.applyRegex(n):this.$element.text(n)},ee.prototype.applyRegex=function(e){var t=this.resolveTokens(e);this.$element.empty(),t.forEach(function(e){if(e.isMatch){var t=fe.element('<span class="highlight">').text(e.text);this.$element.append(t)}else this.$element.append(document.createTextNode(e))}.bind(this))},ee.prototype.resolveTokens=function(o){var i=[],n=0;return o.replace(this.regex,function(e,t){r(n,t),i.push({text:e,isMatch:!0}),n=t+e.length}),r(n),i;function r(e,t){var n=o.slice(e,t);n&&i.push(n)}},ee.prototype.createRegex=function(e,t){var n="",o="",i=this.sanitizeRegex(e);return 0<=t.indexOf("^")&&(n="^"),0<=t.indexOf("$")&&(o="$"),new RegExp(n+i+o,t.replace(/[$^]/g,""))},ee.prototype.sanitizeRegex=function(e){return e&&e.toString().replace(/[\\^$*+?.()|{}[\]]/g,"\\$&")},te.$inject=["$interpolate","$parse"],fe.module("material.components.autocomplete").directive("mdHighlightText",te),fe.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(a,d,t,s,l,c,m,u){return{restrict:"E",link:function(n,o,e){var i;function r(){var e=parseInt(i.height,10)+Math.abs(parseInt(i.top,10));o.css("height",e+"px")}t.pin&&t.pin(o,s),m(function(){if("fixed"===(i=l.getComputedStyle(u[0].body)).position){var e=d.debounce(function(){i=l.getComputedStyle(u[0].body),r()},60,null,!1);r(),fe.element(l).on("resize",e),n.$on("$destroy",function(){fe.element(l).off("resize",e)})}var t=o.parent();t.length&&("BODY"===t[0].nodeName&&o.css("position","fixed"),"static"===l.getComputedStyle(t[0]).position&&c.warn("<md-backdrop> may not work properly in a scrolled, static-positioned parent container."),a.inherit(o,t))})}}}]),ne.$inject=["$mdBottomSheet"],oe.$inject=["$$interimElementProvider"],fe.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",ne).provider("$mdBottomSheet",oe),re.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],ie.$inject=["$mdTheming"],fe.module("material.components.button",["material.core"]).directive("mdButton",re).directive("a",ie),ae.$inject=["$mdTheming"],fe.module("material.components.card",["material.core"]).directive("mdCard",ae),de.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],fe.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",de),fe.module("material.components.chips",["material.core","material.components.autocomplete"]),se.$inject=["$scope","$element","$mdConstant","$timeout","$mdUtil"],fe.module("material.components.chips").controller("MdChipCtrl",se),se.prototype.init=function(e){this.parentController=e,this.enableChipEdit=this.parentController.enableChipEdit,this.enableChipEdit&&(this.$element.on("keydown",this.chipKeyDown.bind(this)),this.$element.on("dblclick",this.chipMouseDoubleClick.bind(this)),this.getChipContent().addClass("_md-chip-content-edit-is-enabled"))},se.prototype.getChipContent=function(){var e=this.$element[0].getElementsByClassName("md-chip-content");return fe.element(e[0])},se.prototype.getContentElement=function(){var e=fe.element(this.getChipContent().children()[0]);return e&&0!==e.length||(e=fe.element(this.getChipContent().contents()[0])),e},se.prototype.getChipIndex=function(){return parseInt(this.$element.attr("index"))},se.prototype.goOutOfEditMode=function(){if(this.isEditing){this.isEditing=!1,this.$element.removeClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="false";var e=this.getChipIndex(),t=this.getContentElement().text();t?(this.parentController.updateChipContents(e,t),this.$mdUtil.nextTick(function(){this.parentController.selectedChip===e&&this.parentController.focusChip(e)}.bind(this))):this.parentController.removeChipAndFocusInput(e)}},se.prototype.selectNodeContents=function(e){var t,n;document.body.createTextRange?((t=document.body.createTextRange()).moveToElementText(e),t.select()):R.getSelection&&(n=R.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t))},se.prototype.goInEditMode=function(){this.isEditing=!0,this.$element.addClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="true",this.getChipContent().on("blur",function(){this.goOutOfEditMode()}.bind(this)),this.selectNodeContents(this.getChipContent()[0])},se.prototype.chipKeyDown=function(e){this.isEditing||e.keyCode!==this.$mdConstant.KEY_CODE.ENTER&&e.keyCode!==this.$mdConstant.KEY_CODE.SPACE?this.isEditing&&e.keyCode===this.$mdConstant.KEY_CODE.ENTER&&(e.preventDefault(),this.goOutOfEditMode()):(e.preventDefault(),this.goInEditMode())},se.prototype.chipMouseDoubleClick=function(){this.enableChipEdit&&!this.isEditing&&this.goInEditMode()},le.$inject=["$mdTheming","$mdUtil","$compile","$timeout"],fe.module("material.components.chips").directive("mdChip",le),ce.$inject=["$timeout"],fe.module("material.components.chips").directive("mdChipRemove",ce),me.$inject=["$compile"],fe.module("material.components.chips").directive("mdChipTransclude",me),function(){e.$inject=["$scope","$attrs","$mdConstant","$log","$element","$timeout","$mdUtil","$mdLiveAnnouncer","$exceptionHandler"];var l=300;function e(e,t,n,o,i,r,a,d,s){this.$timeout=r,this.$mdConstant=n,this.$scope=e,this.parent=e.$parent,this.$mdUtil=a,this.$log=o,this.$mdLiveAnnouncer=d,this.$exceptionHandler=s,this.$element=i,this.$attrs=t,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.autocompleteCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.enableChipEdit=a.parseAttributeBoolean(t.mdEnableChipEdit),this.addOnBlur=a.parseAttributeBoolean(t.mdAddOnBlur),this.inputAriaLabel="Chips input.",this.containerHint="Chips container. Use arrow keys to select chips.",this.containerEmptyHint="Chips container. Enter the text area, then type text, and press enter to add a chip.",this.deleteHint="Press delete to remove this chip.",this.deleteButtonLabel="Remove",this.chipBuffer="",this.useTransformChip=!1,this.useOnAdd=!1,this.useOnRemove=!1,this.wrapperId="",this.contentIds=[],this.ariaTabIndex=null,this.chipAppendDelay=l,this.deRegister=[],this.addedMessage="added",this.removedMessage="removed",this.init()}fe.module("material.components.chips").controller("MdChipsCtrl",e),e.prototype.init=function(){var t=this;this.wrapperId="_md-chips-wrapper-"+this.$mdUtil.nextUid(),this.$element.attr("ng-model")||this.setupStaticChips(),this.deRegister.push(this.$scope.$watchCollection("$mdChipsCtrl.items",function(){t.setupInputAria(),t.setupWrapperAria()})),this.deRegister.push(this.$attrs.$observe("mdChipAppendDelay",function(e){t.chipAppendDelay=parseInt(e)||l}))},e.prototype.$onDestroy=function(){for(var e;e=this.deRegister.pop();)e.call(this)},e.prototype.setupInputAria=function(){var e=this.$element.find("input");e&&(e.attr("role","textbox"),e.attr("aria-multiline",!0),this.inputAriaDescribedBy&&e.attr("aria-describedby",this.inputAriaDescribedBy),this.inputAriaLabelledBy?(e.attr("aria-labelledby",this.inputAriaLabelledBy),e.removeAttr("aria-label")):e.attr("aria-label",this.inputAriaLabel))},e.prototype.setupWrapperAria=function(){var e=this,t=this.$element.find("md-chips-wrap");this.items&&this.items.length?(t.attr("role","listbox"),this.contentIds=this.items.map(function(){return e.wrapperId+"-chip-"+e.$mdUtil.nextUid()}),t.attr("aria-owns",this.contentIds.join(" ")),t.attr("aria-label",this.containerHint)):(t.removeAttr("role"),t.removeAttr("aria-owns"),t.attr("aria-label",this.containerEmptyHint))},e.prototype.setupStaticChips=function(){var e,t,n=this,o=this.$element.find("md-chips-wrap");this.$timeout(function(){for(o.attr("role","list"),t=o[0].children,e=0;e<t.length;e++)t[e].setAttribute("role","listitem"),t[e].setAttribute("aria-setsize",t.length);n.inputAriaDescribedBy&&o.attr("aria-describedby",n.inputAriaDescribedBy),n.inputAriaLabelledBy?(o.attr("aria-labelledby",n.inputAriaLabelledBy),o.removeAttr("aria-label")):o.attr("aria-label",n.inputAriaLabel)},10)},e.prototype.inputKeydown=function(e){var t=this.getChipBuffer();if(!(this.autocompleteCtrl&&e.isDefaultPrevented&&e.isDefaultPrevented())){if(e.keyCode===this.$mdConstant.KEY_CODE.BACKSPACE){if(0!==this.getCursorPosition(e.target))return;return e.preventDefault(),e.stopPropagation(),void(this.items.length&&this.selectAndFocusChipSafe(this.items.length-1))}if((!this.separatorKeys||this.separatorKeys.length<1)&&(this.separatorKeys=[this.$mdConstant.KEY_CODE.ENTER]),-1!==this.separatorKeys.indexOf(e.keyCode)){if(this.autocompleteCtrl&&this.requireMatch||!t)return;if(e.preventDefault(),this.hasMaxChipsReached())return;return this.appendChip(t.trim()),this.resetChipBuffer(),!1}}},e.prototype.getCursorPosition=function(t){try{if(t.selectionStart===t.selectionEnd)return t.selectionStart}catch(e){if(!t.value)return 0}},e.prototype.updateChipContents=function(e,t){0<=e&&e<this.items.length&&(this.items[e]=t,this.updateNgModel(!0))},e.prototype.isEditingChip=function(){return!!this.$element[0].querySelector("._md-chip-editing")},e.prototype._isChipObject=function(e){return fe.isObject(e)},e.prototype.isRemovable=function(){return!!this.ngModelCtrl&&(this.readonly?this.removable:!fe.isDefined(this.removable)||this.removable)},e.prototype.chipKeydown=function(e){if(!this.getChipBuffer()&&!this.isEditingChip())switch(e.keyCode){case this.$mdConstant.KEY_CODE.BACKSPACE:case this.$mdConstant.KEY_CODE.DELETE:if(this.selectedChip<0)return;if(e.preventDefault(),!this.isRemovable())return;this.removeAndSelectAdjacentChip(this.selectedChip,e);break;case this.$mdConstant.KEY_CODE.LEFT_ARROW:e.preventDefault(),(this.selectedChip<0||this.readonly&&0===this.selectedChip)&&(this.selectedChip=this.items.length),this.items.length&&this.selectAndFocusChipSafe(this.selectedChip-1);break;case this.$mdConstant.KEY_CODE.RIGHT_ARROW:e.preventDefault(),this.selectAndFocusChipSafe(this.selectedChip+1);break;case this.$mdConstant.KEY_CODE.ESCAPE:case this.$mdConstant.KEY_CODE.TAB:if(this.selectedChip<0)return;e.preventDefault(),this.onFocus()}},e.prototype.getPlaceholder=function(){return this.items&&this.items.length&&(""===this.secondaryPlaceholder||this.secondaryPlaceholder)?this.secondaryPlaceholder:this.placeholder},e.prototype.removeAndSelectAdjacentChip=function(e,t){var n=this,o=n.getAdjacentChipIndex(e);this.$element[0].querySelector("md-chips-wrap"),this.$element[0].querySelector('md-chip[index="'+e+'"]');n.removeChip(e,t),n.$timeout(function(){n.$timeout(function(){n.selectAndFocusChipSafe(o)})})},e.prototype.resetSelectedChip=function(){this.selectedChip=-1,this.ariaTabIndex=null},e.prototype.getAdjacentChipIndex=function(e){var t=this.items.length-1;return 0==t?-1:e===t?e-1:e},e.prototype.appendChip=function(t){if(this.shouldFocusLastChip=!this.addOnBlur,this.useTransformChip&&this.transformChip){var e=this.transformChip({$chip:t});fe.isDefined(e)&&(t=e)}if(fe.isObject(t)&&this.items.some(function(e){return fe.equals(t,e)}))return;if(!(null==t||this.items.indexOf(t)+1)){var n=this.items.push(t)-1;this.updateNgModel();var o=fe.isObject(t)?"":t;this.$mdLiveAnnouncer.announce(o+" "+this.addedMessage,"assertive"),this.useOnAdd&&this.onAdd&&this.onAdd({$chip:t,$index:n})}},e.prototype.useTransformChipExpression=function(){this.useTransformChip=!0},e.prototype.useOnAddExpression=function(){this.useOnAdd=!0},e.prototype.useOnRemoveExpression=function(){this.useOnRemove=!0},e.prototype.useOnSelectExpression=function(){this.useOnSelect=!0},e.prototype.getChipBuffer=function(){var e=this.userInputElement?this.userInputNgModelCtrl?this.userInputNgModelCtrl.$viewValue:this.userInputElement[0].value:this.chipBuffer;return fe.isString(e)?e:""},e.prototype.resetChipBuffer=function(){this.userInputElement?this.userInputNgModelCtrl?(this.userInputNgModelCtrl.$setViewValue(""),this.userInputNgModelCtrl.$render()):this.userInputElement[0].value="":this.chipBuffer=""},e.prototype.hasMaxChipsReached=function(){return fe.isString(this.maxChips)&&(this.maxChips=parseInt(this.maxChips,10)||0),0<this.maxChips&&this.items.length>=this.maxChips},e.prototype.validateModel=function(){this.ngModelCtrl.$setValidity("md-max-chips",!this.hasMaxChipsReached()),this.ngModelCtrl.$validate()},e.prototype.updateNgModel=function(e){e||this.validateModel(),fe.forEach(this.ngModelCtrl.$viewChangeListeners,function(e){try{e()}catch(e){this.$exceptionHandler(e)}})},e.prototype.removeChip=function(e,t){var n=this.items.splice(e,1);this.updateNgModel(),this.ngModelCtrl.$setDirty();var o=fe.isObject(n[0])?"":n[0];this.$mdLiveAnnouncer.announce(o+" "+this.removedMessage,"assertive"),n&&n.length&&this.useOnRemove&&this.onRemove&&this.onRemove({$chip:n[0],$index:e,$event:t})},e.prototype.removeChipAndFocusInput=function(e,t){this.removeChip(e,t),this.autocompleteCtrl?(this.autocompleteCtrl.hidden=!0,this.$mdUtil.nextTick(this.onFocus.bind(this))):this.onFocus()},e.prototype.selectAndFocusChipSafe=function(e){if(!this.items.length||-1===e)return this.focusInput();if(e>=this.items.length){if(!this.readonly)return this.onFocus();e=0}e=Math.max(e,0),e=Math.min(e,this.items.length-1),this.selectChip(e),this.focusChip(e)},e.prototype.focusLastChipThenInput=function(){var e=this;e.shouldFocusLastChip=!1,e.focusChip(this.items.length-1),e.$timeout(function(){e.focusInput()},e.chipAppendDelay)},e.prototype.focusInput=function(){this.selectChip(-1),this.onFocus()},e.prototype.selectChip=function(e){-1<=e&&e<=this.items.length?(this.selectedChip=e,this.useOnSelect&&this.onSelect&&this.onSelect({$chip:this.items[e]})):this.$log.warn("Selected Chip index out of bounds; ignoring.")},e.prototype.selectAndFocusChip=function(e){this.selectChip(e),-1!==e&&this.focusChip(e)},e.prototype.focusChip=function(e){var t=this.$element[0].querySelector('md-chip[index="'+e+'"] .md-chip-content');this.ariaTabIndex=e,t.focus()},e.prototype.configureNgModel=function(e){this.ngModelCtrl=e;var t=this;e.$isEmpty=function(e){return!e||0===e.length},e.$render=function(){t.items=t.ngModelCtrl.$viewValue}},e.prototype.onFocus=function(){var e=this.$element[0].querySelector("input");e&&e.focus(),this.resetSelectedChip()},e.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.setupInputAria(),this.resetSelectedChip()},e.prototype.onInputBlur=function(){this.inputHasFocus=!1,this.shouldAddOnBlur()&&(this.appendChip(this.getChipBuffer().trim()),this.resetChipBuffer())},e.prototype.configureInput=function(e){var t=e.controller("ngModel"),n=this;t&&(this.deRegister.push(this.$scope.$watch(function(){return t.$touched},function(e){e&&n.ngModelCtrl.$setTouched()})),this.deRegister.push(this.$scope.$watch(function(){return t.$dirty},function(e){e&&n.ngModelCtrl.$setDirty()})))},e.prototype.configureUserInput=function(e){var t=(this.userInputElement=e).controller("ngModel");t!==this.ngModelCtrl&&(this.userInputNgModelCtrl=t);function n(e,t){o.$evalAsync(fe.bind(i,t,e))}var o=this.$scope,i=this;e.attr({tabindex:0}).on("keydown",function(e){n(e,i.inputKeydown)}).on("focus",function(e){n(e,i.onInputFocus)}).on("blur",function(e){n(e,i.onInputBlur)})},e.prototype.configureAutocomplete=function(e){e&&(this.autocompleteCtrl=e,this.$element.attr("container-empty-hint")||(this.containerEmptyHint="Chips container with autocompletion. Enter the text area, type text to search, and then use the up and down arrow keys to select an option. Press enter to add the selected option as a chip.",this.setupWrapperAria()),e.registerSelectedItemWatcher(fe.bind(this,function(e){if(e){if(this.hasMaxChipsReached())return;this.appendChip(e),this.resetChipBuffer()}})),this.$element.find("input").on("focus",fe.bind(this,this.onInputFocus)).on("blur",fe.bind(this,this.onInputBlur)))},e.prototype.shouldAddOnBlur=function(){this.validateModel();var e=this.getChipBuffer().trim(),t=this.ngModelCtrl.$isEmpty(this.ngModelCtrl.$modelValue)||this.ngModelCtrl.$valid,n=this.autocompleteCtrl&&!this.autocompleteCtrl.hidden;return this.userInputNgModelCtrl&&(t=t&&this.userInputNgModelCtrl.$valid),this.addOnBlur&&!this.requireMatch&&e&&t&&!n},e.prototype.hasFocus=function(){return this.inputHasFocus||0<=this.selectedChip},e.prototype.contentIdFor=function(e){return this.contentIds[e]}}(),function(){o.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout","$$mdSvgRegistry"],fe.module("material.components.chips").directive("mdChips",o);var e=' <md-chips-wrap id="{{$mdChipsCtrl.wrapperId}}" tabindex="{{$mdChipsCtrl.readonly ? 0 : -1}}" ng-keydown="$mdChipsCtrl.chipKeydown($event)" ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus(), \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly, \'md-removable\': $mdChipsCtrl.isRemovable() }" class="md-chips"> <md-chip ng-repeat="$chip in $mdChipsCtrl.items" index="{{$index}}" ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index, \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly}"> <div class="md-chip-content" tabindex="{{$mdChipsCtrl.ariaTabIndex === $index ? 0 : -1}}" id="{{$mdChipsCtrl.contentIdFor($index)}}" role="option" aria-selected="{{$mdChipsCtrl.selectedChip === $index}}" aria-setsize="{{$mdChipsCtrl.items.length}}" aria-posinset="{{$index+1}}" ng-click="!$mdChipsCtrl.readonly && $mdChipsCtrl.focusChip($index)" aria-label="{{$mdChipsCtrl._isChipObject($chip) ? \'\' : $chip + \'. \'}}{{$mdChipsCtrl.isRemovable() ? \'\' + $mdChipsCtrl.deleteHint : \'\'}}" ng-focus="!$mdChipsCtrl.readonly && $mdChipsCtrl.selectChip($index)" md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"></div> <div ng-if="$mdChipsCtrl.isRemovable()" class="md-chip-remove-container" tabindex="-1" md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"></div> </md-chip> <div class="md-chip-input-container" ng-if="!$mdChipsCtrl.readonly && $mdChipsCtrl.ngModelCtrl"> <div md-chip-transclude="$mdChipsCtrl.chipInputTemplate"></div> </div> </md-chips-wrap>',t=' <input class="md-input" tabindex="0" aria-label="{{$mdChipsCtrl.inputAriaLabel}}" placeholder="{{$mdChipsCtrl.getPlaceholder()}}" ng-model="$mdChipsCtrl.chipBuffer" ng-focus="$mdChipsCtrl.onInputFocus()" ng-blur="$mdChipsCtrl.onInputBlur()" ng-keydown="$mdChipsCtrl.inputKeydown($event)">',n=" <span>{{$chip}}</span>",i=' <button class="md-chip-remove" ng-if="$mdChipsCtrl.isRemovable()" ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index, $event)" type="button" tabindex="-1" aria-label="{{$mdChipsCtrl.deleteButtonLabel}}{{$mdChipsCtrl._isChipObject($chip) ? \'\' : \' \' + $chip}}"> <md-icon md-svg-src="{{$mdChipsCtrl.mdCloseIcon}}" aria-hidden="true"></md-icon> </button>';function o(u,p,h,o,f,g){var b={chips:p.processTemplate(e),input:p.processTemplate(t),default:p.processTemplate(n),remove:p.processTemplate(i)};return{template:function(e,t){return t.$mdUserTemplate=e.clone(),b.chips},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:function(e,a){var n=a.$mdUserTemplate;a.$mdUserTemplate=null;var d=t("md-chips>md-chip-template"),s=t(p.prefixer().buildList("md-chip-remove").map(function(e){return"md-chips>*["+e+"]"}).join(","))||b.remove,l=d||b.default,c=t("md-chips>md-autocomplete")||t("md-chips>input")||b.input,m=n.find("md-chip");n[0].querySelector("md-chip-template>*[md-chip-remove]")&&o.warn("invalid placement of md-chip-remove within md-chip-template.");function t(e){if(a.ngModel){var t=n[0].querySelector(e);return t&&t.outerHTML}}return function(e,t,n,o){p.initOptionalProperties(e,a),u(t);var i=o[0];if(d&&(i.enableChipEdit=!1),i.chipContentsTemplate=l,i.chipRemoveTemplate=s,i.chipInputTemplate=c,i.mdCloseIcon=g.mdClose,t.attr({tabindex:-1}).on("focus",function(){i.onFocus()}).on("click",function(){i.readonly||-1!==i.selectedChip||i.onFocus()}),a.ngModel&&(i.configureNgModel(t.controller("ngModel")),n.mdTransformChip&&i.useTransformChipExpression(),n.mdOnAppend&&i.useOnAppendExpression(),n.mdOnAdd&&i.useOnAddExpression(),n.mdOnRemove&&i.useOnRemoveExpression(),n.mdOnSelect&&i.useOnSelectExpression(),c!==b.input&&e.$watch("$mdChipsCtrl.readonly",function(e){e||p.nextTick(function(){if(0===c.indexOf("<md-autocomplete")){var e=t.find("md-autocomplete");i.configureAutocomplete(e.controller("mdAutocomplete"))}i.configureUserInput(t.find("input"))})}),p.nextTick(function(){var e=t.find("input");e&&(i.configureInput(e),e.toggleClass("md-input",!0))})),0<m.length){var r=h(m.clone())(e.$parent);f(function(){t.find("md-chips-wrap").prepend(r)})}}},scope:{readonly:"=?readonly",removable:"=?mdRemovable",placeholder:"@?",secondaryPlaceholder:"@?",maxChips:"@?mdMaxChips",transformChip:"&mdTransformChip",onAppend:"&?mdOnAppend",onAdd:"&?mdOnAdd",onRemove:"&?mdOnRemove",addedMessage:"@?mdAddedMessage",removedMessage:"@?mdRemovedMessage",onSelect:"&?mdOnSelect",inputAriaDescribedBy:"@?inputAriaDescribedby",inputAriaLabelledBy:"@?inputAriaLabelledby",inputAriaLabel:"@?",containerHint:"@?",containerEmptyHint:"@?",deleteHint:"@?",deleteButtonLabel:"@?",separatorKeys:"=?mdSeparatorKeys",requireMatch:"=?mdRequireMatch",chipAppendDelayString:"@?mdChipAppendDelay",ngChange:"&?"}}}}(),ue.$inject=["$attrs","$element","$timeout"],fe.module("material.components.chips").controller("MdContactChipsCtrl",ue),ue.prototype.init=function(){var e=this,t=this.deRegister,n=this.$element;this.$timeout(function(){t.push(n.find("md-chips").scope().$watchCollection("$mdChipsCtrl.items",function(){e.setupChipsAria(),e.setupAutocompleteAria()}))})},ue.prototype.setupChipsAria=function(){var e=this.$element.find("md-chips"),t=e.controller("mdChips");this.removedMessage&&(t.removedMessage=this.removedMessage),this.containerHint&&(t.containerHint=this.containerHint),this.containerEmptyHint&&(e.attr("container-empty-hint",this.containerEmptyHint),t.containerEmptyHint=this.containerEmptyHint),this.deleteHint&&(t.deleteHint=this.deleteHint),this.inputAriaLabel&&(t.inputAriaLabel=this.inputAriaLabel)},ue.prototype.setupAutocompleteAria=function(){var e=this.$element.find("md-chips-wrap").find("md-autocomplete").find("input");this.inputAriaDescribedBy&&e.attr("aria-describedby",this.inputAriaDescribedBy),this.inputAriaLabelledBy&&(e.removeAttr("aria-label"),e.attr("aria-labelledby",this.inputAriaLabelledBy))},ue.prototype.queryContact=function(e){return this.contactQuery({$query:e})},ue.prototype.inputKeydown=function(e){if(this.separatorKeys&&!(this.separatorKeys.indexOf(e.keyCode)<0)){e.stopPropagation(),e.preventDefault();var t=fe.element(e.target).controller("mdAutocomplete");t.select(t.index)}},ue.prototype.itemName=function(e){return e[this.contactName]},ue.prototype.$onDestroy=function(){for(var e;e=this.deRegister.pop();)e.call(this)},function(){e.$inject=["$mdTheming","$mdUtil"],fe.module("material.components.chips").directive("mdContactChips",e);var n=' <md-chips class="md-contact-chips" ng-model="$mdContactChipsCtrl.contacts" ng-change="$mdContactChipsCtrl.ngChange($mdContactChipsCtrl.contacts)" md-require-match="$mdContactChipsCtrl.requireMatch" md-chip-append-delay="{{$mdContactChipsCtrl.chipAppendDelay}}" md-separator-keys="$mdContactChipsCtrl.separatorKeys" md-autocomplete-snap> <md-autocomplete md-menu-class="md-contact-chips-suggestions" md-selected-item="$mdContactChipsCtrl.selectedItem" md-search-text="$mdContactChipsCtrl.searchText" md-items="item in $mdContactChipsCtrl.queryContact($mdContactChipsCtrl.searchText)" md-item-text="$mdContactChipsCtrl.itemName(item)" md-no-cache="true" md-min-length="$mdContactChipsCtrl.minLength" md-autoselect ng-keydown="$mdContactChipsCtrl.inputKeydown($event)" placeholder="{{$mdContactChipsCtrl.contacts.length === 0 ? $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}"> <div class="md-contact-suggestion"> <img ng-src="{{item[$mdContactChipsCtrl.contactImage]}}" alt="{{item[$mdContactChipsCtrl.contactName]}}" ng-if="item[$mdContactChipsCtrl.contactImage]" /> <span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText" md-highlight-flags="{{$mdContactChipsCtrl.highlightFlags}}"> {{item[$mdContactChipsCtrl.contactName]}} </span> <span class="md-contact-email" >{{item[$mdContactChipsCtrl.contactEmail]}}</span> </div> </md-autocomplete> <md-chip-template> <div class="md-contact-avatar"> <img ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}" alt="{{$chip[$mdContactChipsCtrl.contactName]}}" ng-if="$chip[$mdContactChipsCtrl.contactImage]" /> </div> <div class="md-contact-name"> {{$chip[$mdContactChipsCtrl.contactName]}} </div> </md-chip-template> </md-chips>';function e(a,d){return{template:function(e,t){return n},restrict:"E",controller:"MdContactChipsCtrl",controllerAs:"$mdContactChipsCtrl",bindToController:!0,compile:function(e,r){return function(e,t,n,o){var i=o;d.initOptionalProperties(e,r),a(t),t.attr("tabindex","-1"),n.$observe("mdChipAppendDelay",function(e){i.chipAppendDelay=e})}},scope:{contactQuery:"&mdContacts",placeholder:"@?",secondaryPlaceholder:"@?",contactName:"@mdContactName",contactImage:"@mdContactImage",contactEmail:"@mdContactEmail",contacts:"=ngModel",ngChange:"&?",requireMatch:"=?mdRequireMatch",minLength:"=?mdMinLength",highlightFlags:"@?mdHighlightFlags",chipAppendDelay:"@?mdChipAppendDelay",separatorKeys:"=?mdSeparatorKeys",removedMessage:"@?mdRemovedMessage",inputAriaDescribedBy:"@?inputAriaDescribedby",inputAriaLabelledBy:"@?inputAriaLabelledby",inputAriaLabel:"@?",containerHint:"@?",containerEmptyHint:"@?",deleteHint:"@?"}}}}(),function(){t.$inject=["$mdColors","$mdUtil","$log","$parse"],e.$inject=["$mdTheming","$mdUtil","$log"];var a=/^{((\s|,)*?["'a-zA-Z-]+?\s*?:\s*?('|")[a-zA-Z0-9-.]*('|"))+\s*}$/,l=null;function e(r,a,n){return l=l||Object.keys(r.PALETTES),{applyThemeColors:function(e,t){try{t&&e.css(function(e){var i={},r=e.hasOwnProperty("color");return fe.forEach(e,function(e,t){var n=s(e),o=-1<t.indexOf("background");i[t]=d(n),o&&!r&&(i.color=d(n,!0))}),i}(t))}catch(e){n.error(e.message)}},getThemeColor:function(e){return d(s(e))},hasTheme:function(e){return fe.isDefined(r.THEMES[e.split("-")[0]])}};function d(e,t){t=t||!1;var n=r.PALETTES[e.palette][e.hue];return n=t?n.contrast:n.value,a.supplant("rgba({0}, {1}, {2}, {3})",[n[0],n[1],n[2],n[3]||e.opacity])}function s(e){var t=e.split("-"),n=fe.isDefined(r.THEMES[t[0]])?t.splice(0,1)[0]:r.defaultTheme();return{theme:n,palette:function(e,t){var n=1<e.length&&-1!==l.indexOf(e[1]),o=e[0].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if(n&&(o=e[0]+"-"+e.splice(1,1)),-1===l.indexOf(o)){var i=r.THEMES[t].colors[o];if(!i)throw new Error(a.supplant("mdColors: couldn't find '{palette}' in the palettes.",{palette:o}));o=i.name}return o}(t,n),hue:function(e,t){var n=r.THEMES[t].colors;if("hue"!==e[1])return e[1]||n[e[0]in n?e[0]:"primary"].hues.default;var o=parseInt(e.splice(2,1)[0],10);if(o<1||3<o)throw new Error(a.supplant("mdColors: 'hue-{hueNumber}' is not a valid hue, can be only 'hue-1', 'hue-2' and 'hue-3'",{hueNumber:o}));if(e[1]="hue-"+o,e[0]in n)return n[e[0]].hues[e[1]];throw new Error(a.supplant("mdColors: 'hue-x' can only be used with [{availableThemes}], but was used with '{usedTheme}'",{availableThemes:Object.keys(n).join(", "),usedTheme:e[0]}))}(t,n),opacity:t[2]||1}}}function t(c,r,m,u){return{restrict:"A",require:["^?mdTheme"],compile:function(e,i){var l=function(){var e=i.mdColors,t=-1<e.indexOf("::"),n=t||a.test(i.mdColors);i.mdColors=e.replace("::","");var o=fe.isDefined(i.mdColorsWatch);return!t&&!n&&(!o||r.parseAttributeBoolean(i.mdColorsWatch))}();return function(e,n,t,o){function i(n){"string"!=typeof n&&(n=""),t.mdColors||(t.mdColors="{}");var o=u(t.mdColors)(e);return r&&Object.keys(o).forEach(function(e){var t=o[e];c.hasTheme(t)||(o[e]=(n||r.$mdTheme)+"-"+t)}),d(o),o}var r=o[0],a={},d=function(e){if(!fe.equals(e,a)){var t=Object.keys(a);a.background&&!t.color&&t.push("color"),t.forEach(function(e){n.css(e,"")})}a=e},s=fe.noop;r&&(s=r.registerChanges(function(e){c.applyThemeColors(n,i(e))})),e.$on("$destroy",function(){s()});try{l?e.$watch(i,fe.bind(this,c.applyThemeColors,n),!0):c.applyThemeColors(n,i())}catch(e){m.error(e.message)}}}}}fe.module("material.components.colors",["material.core"]).directive("mdColors",t).service("$mdColors",e)}(),pe.$inject=["$mdTheming"],fe.module("material.components.content",["material.core"]).directive("mdContent",pe),fe.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){e.$inject=["$element","$scope","$$mdDateUtil","$mdUtil","$mdConstant","$mdTheming","$$rAF","$attrs","$mdDateLocale"],fe.module("material.components.datepicker").directive("mdCalendar",function(){return{template:function(e,t){return'<div ng-switch="calendarCtrl.currentView" '+(t.hasOwnProperty("ngIf")?"":'ng-if="calendarCtrl.isInitialized"')+'><md-calendar-year ng-switch-when="year"></md-calendar-year><md-calendar-month ng-switch-default></md-calendar-month></div>'},scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",dateFilter:"=mdDateFilter",_mode:"@mdMode",_currentView:"@mdCurrentView"},require:["ngModel","mdCalendar"],controller:e,controllerAs:"calendarCtrl",bindToController:!0,link:function(e,t,n,o){var i=o[0];o[1].configureNgModel(i)}}});var m=0,t={day:"month",month:"year"};function e(e,t,n,o,i,r,a,d,s){r(e),this.$element=e,this.$scope=t,this.dateUtil=n,this.$mdUtil=o,this.keyCode=i.KEY_CODE,this.$$rAF=a,this.$mdDateLocale=s,this.today=this.dateUtil.createDateAtMidnight(),this.ngModelCtrl=null,this.SELECTED_DATE_CLASS="md-calendar-selected-date",this.TODAY_CLASS="md-calendar-date-today",this.FOCUSED_DATE_CLASS="md-focus",this.id=m++,this.displayDate=null,this.selectedDate=null,this.firstRenderableDate=null,this.lastRenderableDate=null,this.isInitialized=!1,this.width=0,this.scrollbarWidth=0,d.tabindex||e.attr("tabindex","-1");var l,c=fe.bind(this,this.handleKeyEvent);(l=e.parent().hasClass("md-datepicker-calendar")?fe.element(document.body):e).on("keydown",c),t.$on("$destroy",function(){l.off("keydown",c)}),1===fe.version.major&&fe.version.minor<=4&&this.$onInit()}e.prototype.$onInit=function(){this._mode&&t.hasOwnProperty(this._mode)?(this.currentView=t[this._mode],this.mode=this._mode):(this.currentView=this._currentView||"month",this.mode=null);var e=this.$mdDateLocale;this.minDate&&this.minDate>e.firstRenderableDate?this.firstRenderableDate=this.minDate:this.firstRenderableDate=e.firstRenderableDate,this.maxDate&&this.maxDate<e.lastRenderableDate?this.lastRenderableDate=this.maxDate:this.lastRenderableDate=e.lastRenderableDate},e.prototype.configureNgModel=function(e){var t=this;t.ngModelCtrl=e,t.$mdUtil.nextTick(function(){t.isInitialized=!0}),e.$render=function(){var e=this.$viewValue;t.$scope.$broadcast("md-calendar-parent-changed",e),t.selectedDate||(t.selectedDate=e),t.displayDate||(t.displayDate=t.selectedDate||t.today)}},e.prototype.setNgModelValue=function(e){var t=this.dateUtil.createDateAtMidnight(e);return this.focus(t),this.$scope.$emit("md-calendar-change",t),this.ngModelCtrl.$setViewValue(t),this.ngModelCtrl.$render(),t},e.prototype.setCurrentView=function(e,t){var n=this;n.$mdUtil.nextTick(function(){n.currentView=e,t&&(n.displayDate=fe.isDate(t)?t:new Date(t))})},e.prototype.focus=function(e){if(this.dateUtil.isValidDate(e)){var t=this.$element[0].querySelector("."+this.FOCUSED_DATE_CLASS);t&&t.classList.remove(this.FOCUSED_DATE_CLASS);var n=this.getDateId(e,this.currentView),o=document.getElementById(n);o&&(o.classList.add(this.FOCUSED_DATE_CLASS),o.focus(),this.displayDate=e)}else{var i=this.$element[0].querySelector("[ng-switch]");i&&i.focus()}},e.prototype.changeSelectedDate=function(e){var t=this.SELECTED_DATE_CLASS,n=this.$element[0].querySelector("."+t);if(n&&(n.classList.remove(t),n.setAttribute("aria-selected","false")),e){var o=document.getElementById(this.getDateId(e,this.currentView));o&&(o.classList.add(t),o.setAttribute("aria-selected","true"))}this.selectedDate=e},e.prototype.getActionFromKeyEvent=function(e){var t=this.keyCode;switch(e.which){case t.ENTER:return"select";case t.RIGHT_ARROW:return"move-right";case t.LEFT_ARROW:return"move-left";case t.DOWN_ARROW:return e.metaKey?"move-page-down":"move-row-down";case t.UP_ARROW:return e.metaKey?"move-page-up":"move-row-up";case t.PAGE_DOWN:return"move-page-down";case t.PAGE_UP:return"move-page-up";case t.HOME:return"start";case t.END:return"end";default:return null}},e.prototype.handleKeyEvent=function(t){var n=this;this.$scope.$apply(function(){if(t.which==n.keyCode.ESCAPE||t.which==n.keyCode.TAB)return n.$scope.$emit("md-calendar-close"),void(t.which==n.keyCode.TAB&&t.preventDefault());var e=n.getActionFromKeyEvent(t);e&&(t.preventDefault(),t.stopPropagation(),n.$scope.$broadcast("md-calendar-parent-action",e))})},e.prototype.hideVerticalScrollbar=function(o){var i=this,t=o.$element[0],r=t.querySelector(".md-calendar-scroll-mask");function n(){var e=i.width||340,t=i.scrollbarWidth,n=o.calendarScroller;r.style.width=e+"px",n.style.width=e+t+"px",n.style.paddingRight=t+"px"}0<i.width?n():i.$$rAF(function(){var e=o.calendarScroller;i.scrollbarWidth=e.offsetWidth-e.clientWidth,i.width=t.querySelector("table").offsetWidth,n()})},e.prototype.getDateId=function(e,t){if(!t)throw new Error("A namespace for the date id has to be specified.");return["md",this.id,t,e.getFullYear(),e.getMonth(),e.getDate()].join("-")},e.prototype.updateVirtualRepeat=function(){var e=this.$scope,t=e.$on("$md-resize-enable",function(){e.$$phase||e.$apply(),t()})}}(),function(){t.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdDateLocale"],fe.module("material.components.datepicker").directive("mdCalendarMonth",function(){return{template:'<table aria-hidden="true" class="md-calendar-day-header"><thead></thead></table><div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container" md-offset-size="'+(e-n)+'"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-month-body role="rowgroup" md-virtual-repeat="i in monthCtrl.items" md-month-offset="$index" class="md-calendar-month" md-start-index="monthCtrl.getSelectedMonthIndex()" md-item-size="'+n+'"><tr aria-hidden="true" md-force-height="\''+n+"px'\"></tr></tbody></table></md-virtual-repeat-container></div>",require:["^^mdCalendar","mdCalendarMonth"],controller:t,controllerAs:"monthCtrl",bindToController:!0,link:function(e,t,n,o){var i=o[0];o[1].initialize(i)}}});var n=265,e=45;function t(e,t,n,o,i,r){this.$element=e,this.$scope=t,this.$animate=n,this.$q=o,this.dateUtil=i,this.dateLocale=r,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var a=this;this.cellClickHandler=function(){var e=i.getTimestampFromNode(this);a.$scope.$apply(function(){a.calendarCtrl.setNgModelValue(e)})},this.headerClickHandler=function(){a.calendarCtrl.setCurrentView("year",i.getTimestampFromNode(this))}}t.prototype.initialize=function(e){this.items={length:this.dateUtil.getMonthDistance(e.firstRenderableDate,e.lastRenderableDate)+2},this.calendarCtrl=e,this.attachScopeListeners(),e.updateVirtualRepeat(),e.ngModelCtrl&&e.ngModelCtrl.$render()},t.prototype.getSelectedMonthIndex=function(){var e=this.calendarCtrl;return this.dateUtil.getMonthDistance(e.firstRenderableDate,e.displayDate||e.selectedDate||e.today)},t.prototype.changeDisplayDate=function(e){if(!this.isInitialized)return this.buildWeekHeader(),this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(!this.dateUtil.isValidDate(e)||this.isMonthTransitionInProgress)return this.$q.when();this.isMonthTransitionInProgress=!0;var t=this.animateDateChange(e);this.calendarCtrl.displayDate=e;var n=this;return t.then(function(){n.isMonthTransitionInProgress=!1}),t},t.prototype.animateDateChange=function(e){if(this.dateUtil.isValidDate(e)){var t=this.dateUtil.getMonthDistance(this.calendarCtrl.firstRenderableDate,e);this.calendarScroller.scrollTop=t*n}return this.$q.when()},t.prototype.buildWeekHeader=function(){for(var e=this.dateLocale.firstDayOfWeek,t=this.dateLocale.shortDays,n=document.createElement("tr"),o=0;o<7;o++){var i=document.createElement("th");i.textContent=t[(o+e)%7],n.appendChild(i)}this.$element.find("thead").append(n)},t.prototype.attachScopeListeners=function(){var n=this;n.$scope.$on("md-calendar-parent-changed",function(e,t){n.calendarCtrl.changeSelectedDate(t),n.changeDisplayDate(t)}),n.$scope.$on("md-calendar-parent-action",fe.bind(this,this.handleKeyEvent))},t.prototype.handleKeyEvent=function(e,t){var n=this.calendarCtrl,o=n.displayDate;if("select"===t)n.setNgModelValue(o);else{var i=null,r=this.dateUtil;switch(t){case"move-right":i=r.incrementDays(o,1);break;case"move-left":i=r.incrementDays(o,-1);break;case"move-page-down":i=r.incrementMonths(o,1);break;case"move-page-up":i=r.incrementMonths(o,-1);break;case"move-row-down":i=r.incrementDays(o,7);break;case"move-row-up":i=r.incrementDays(o,-7);break;case"start":i=r.getFirstDateOfMonth(o);break;case"end":i=r.getLastDateOfMonth(o)}i&&(i=this.dateUtil.clampDate(i,n.minDate,n.maxDate),this.changeDisplayDate(i).then(function(){n.focus(i)}))}}}(),he.$inject=["$compile","$$mdSvgRegistry"],be.$inject=["$element","$$mdDateUtil","$mdDateLocale"],fe.module("material.components.datepicker").directive("mdCalendarMonthBody",he),be.prototype.generateContent=function(){var e=this.dateUtil.incrementMonths(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForMonth(e)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},be.prototype.buildDateCell=function(e){var t=this.monthCtrl,n=this.calendarCtrl,o=document.createElement("td");if(o.tabIndex=-1,o.classList.add("md-calendar-date"),o.setAttribute("role","gridcell"),e){o.setAttribute("tabindex","-1"),o.setAttribute("aria-label",this.dateLocale.longDateFormatter(e)),o.id=n.getDateId(e,"month"),o.setAttribute("data-timestamp",e.getTime()),this.dateUtil.isSameDay(e,n.today)&&o.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameDay(e,n.selectedDate)&&(o.classList.add(n.SELECTED_DATE_CLASS),o.setAttribute("aria-selected","true"));var i=this.dateLocale.dates[e.getDate()];if(this.isDateEnabled(e)){var r=document.createElement("span");r.classList.add("md-calendar-date-selection-indicator"),r.textContent=i,o.appendChild(r),o.addEventListener("click",t.cellClickHandler),n.displayDate&&this.dateUtil.isSameDay(e,n.displayDate)&&(this.focusAfterAppend=o)}else o.classList.add("md-calendar-date-disabled"),o.textContent=i}return o},be.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.calendarCtrl.minDate,this.calendarCtrl.maxDate)&&(!fe.isFunction(this.calendarCtrl.dateFilter)||this.calendarCtrl.dateFilter(e))},be.prototype.buildDateRow=function(e){var t=document.createElement("tr");return t.setAttribute("role","row"),t.setAttribute("aria-label",this.dateLocale.weekNumberFormatter(e)),t},be.prototype.buildCalendarForMonth=function(e){var t=this.dateUtil.isValidDate(e)?e:new Date,n=this.dateUtil.getFirstDateOfMonth(t),o=this.getLocaleDay_(n),i=this.dateUtil.getNumberOfDaysInMonth(t),r=document.createDocumentFragment(),a=1,d=this.buildDateRow(a);r.appendChild(d);var s=this.offset===this.monthCtrl.items.length-1,l=0,c=document.createElement("td"),m=document.createElement("span"),u=this.calendarCtrl;if(m.textContent=this.dateLocale.monthHeaderFormatter(t),c.appendChild(m),c.classList.add("md-calendar-month-label"),u.maxDate&&n>u.maxDate?c.classList.add("md-calendar-month-label-disabled"):u.mode||(c.addEventListener("click",this.monthCtrl.headerClickHandler),c.setAttribute("data-timestamp",n.getTime()),c.setAttribute("aria-label",this.dateLocale.monthFormatter(t)),c.classList.add("md-calendar-label-clickable"),c.appendChild(this.arrowIcon.cloneNode(!0))),o<=2){c.setAttribute("colspan","7");var p=this.buildDateRow();if(p.appendChild(c),r.insertBefore(p,d),s)return r}else l=3,c.setAttribute("colspan","3"),d.appendChild(c);for(var h=l;h<o;h++)d.appendChild(this.buildDateCell());for(var f=o,g=n,b=1;b<=i;b++){if(7===f){if(s)return r;f=0,a++,d=this.buildDateRow(a),r.appendChild(d)}g.setDate(b);var v=this.buildDateCell(g);d.appendChild(v),f++}for(;d.childNodes.length<7;)d.appendChild(this.buildDateCell());for(;r.childNodes.length<6;){for(var E=this.buildDateRow(),$=0;$<7;$++)E.appendChild(this.buildDateCell());r.appendChild(E)}return r},be.prototype.getLocaleDay_=function(e){return(e.getDay()+(7-this.dateLocale.firstDayOfWeek))%7},function(){e.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdUtil"],fe.module("material.components.datepicker").directive("mdCalendarYear",function(){return{template:'<div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-year-body role="rowgroup" md-virtual-repeat="i in yearCtrl.items" md-year-offset="$index" class="md-calendar-year" md-start-index="yearCtrl.getFocusedYearIndex()" md-item-size="'+n+'"><tr aria-hidden="true" md-force-height="\''+n+"px'\"></tr></tbody></table></md-virtual-repeat-container></div>",require:["^^mdCalendar","mdCalendarYear"],controller:e,controllerAs:"yearCtrl",bindToController:!0,link:function(e,t,n,o){var i=o[0];o[1].initialize(i)}}});var n=88;function e(e,t,n,o,i,r){this.$element=e,this.$scope=t,this.$animate=n,this.$q=o,this.dateUtil=i,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1,this.$mdUtil=r;var a=this;this.cellClickHandler=function(){a.onTimestampSelected(i.getTimestampFromNode(this))}}e.prototype.initialize=function(e){this.items={length:this.dateUtil.getYearDistance(e.firstRenderableDate,e.lastRenderableDate)+1},this.calendarCtrl=e,this.attachScopeListeners(),e.updateVirtualRepeat(),e.ngModelCtrl&&e.ngModelCtrl.$render()},e.prototype.getFocusedYearIndex=function(){var e=this.calendarCtrl;return this.dateUtil.getYearDistance(e.firstRenderableDate,e.displayDate||e.selectedDate||e.today)},e.prototype.changeDate=function(e){if(!this.isInitialized)return this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(this.dateUtil.isValidDate(e)&&!this.isMonthTransitionInProgress){var t=this,n=this.animateDateChange(e);return t.isMonthTransitionInProgress=!0,t.calendarCtrl.displayDate=e,n.then(function(){t.isMonthTransitionInProgress=!1})}},e.prototype.animateDateChange=function(e){if(this.dateUtil.isValidDate(e)){var t=this.dateUtil.getYearDistance(this.calendarCtrl.firstRenderableDate,e);this.calendarScroller.scrollTop=t*n}return this.$q.when()},e.prototype.handleKeyEvent=function(e,t){var n=this,o=n.calendarCtrl,i=o.displayDate;if("select"===t)n.changeDate(i).then(function(){n.onTimestampSelected(i)});else{var r=null,a=n.dateUtil;switch(t){case"move-right":r=a.incrementMonths(i,1);break;case"move-left":r=a.incrementMonths(i,-1);break;case"move-row-down":r=a.incrementMonths(i,6);break;case"move-row-up":r=a.incrementMonths(i,-6)}if(r){var d=o.minDate?a.getFirstDateOfMonth(o.minDate):null,s=o.maxDate?a.getFirstDateOfMonth(o.maxDate):null;r=a.getFirstDateOfMonth(n.dateUtil.clampDate(r,d,s)),n.changeDate(r).then(function(){o.focus(r)})}}},e.prototype.attachScopeListeners=function(){var n=this;n.$scope.$on("md-calendar-parent-changed",function(e,t){n.calendarCtrl.changeSelectedDate(t?n.dateUtil.getFirstDateOfMonth(t):t),n.changeDate(t)}),n.$scope.$on("md-calendar-parent-action",fe.bind(n,n.handleKeyEvent))},e.prototype.onTimestampSelected=function(e){var t=this.calendarCtrl;t.mode?this.$mdUtil.nextTick(function(){t.setNgModelValue(e)}):t.setCurrentView("month",e)}}(),ve.$inject=["$element","$$mdDateUtil","$mdDateLocale"],fe.module("material.components.datepicker").directive("mdCalendarYearBody",function(){return{require:["^^mdCalendar","^^mdCalendarYear","mdCalendarYearBody"],scope:{offset:"=mdYearOffset"},controller:ve,controllerAs:"mdYearBodyCtrl",bindToController:!0,link:function(e,t,n,o){var i=o[0],r=o[1],a=o[2];a.calendarCtrl=i,a.yearCtrl=r,e.$watch(function(){return a.offset},function(e){fe.isNumber(e)&&a.generateContent()})}}}),ve.prototype.generateContent=function(){var e=this.dateUtil.incrementYears(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForYear(e)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},ve.prototype.buildMonthCell=function(e,t){var n=this.calendarCtrl,o=this.yearCtrl,i=this.buildBlankCell(),r=new Date(e,t,1);i.setAttribute("aria-label",this.dateLocale.monthFormatter(r)),i.id=n.getDateId(r,"year"),i.setAttribute("data-timestamp",String(r.getTime())),this.dateUtil.isSameMonthAndYear(r,n.today)&&i.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameMonthAndYear(r,n.selectedDate)&&(i.classList.add(n.SELECTED_DATE_CLASS),i.setAttribute("aria-selected","true"));var a=this.dateLocale.shortMonths[t];if(!this.dateUtil.isMonthWithinRange(r,n.minDate,n.maxDate)||fe.isFunction(this.calendarCtrl.dateFilter)&&!this.calendarCtrl.dateFilter(r))i.classList.add("md-calendar-date-disabled"),i.textContent=a;else{var d=document.createElement("span");d.classList.add("md-calendar-date-selection-indicator"),d.textContent=a,i.appendChild(d),i.addEventListener("click",o.cellClickHandler),n.displayDate&&this.dateUtil.isSameMonthAndYear(r,n.displayDate)&&(this.focusAfterAppend=i)}return i},ve.prototype.buildBlankCell=function(){var e=document.createElement("td");return e.tabIndex=-1,e.classList.add("md-calendar-date"),e.setAttribute("role","gridcell"),e.setAttribute("tabindex","-1"),e},ve.prototype.buildCalendarForYear=function(e){var t,n=e.getFullYear(),o=document.createDocumentFragment(),i=document.createElement("tr"),r=document.createElement("td");for(r.className="md-calendar-month-label",r.textContent=n,i.appendChild(r),t=0;t<6;t++)i.appendChild(this.buildMonthCell(n,t));o.appendChild(i);var a=document.createElement("tr");for(a.appendChild(this.buildBlankCell()),t=6;t<12;t++)a.appendChild(this.buildMonthCell(n,t));return o.appendChild(a),o},fe.module("material.components.datepicker").config(["$provide",function(e){function t(){this.months=null,this.shortMonths=null,this.days=null,this.shortDays=null,this.dates=null,this.firstDayOfWeek=0,this.formatDate=null,this.parseDate=null,this.monthHeaderFormatter=null,this.weekNumberFormatter=null,this.longDateFormatter=null,this.isDateComplete=null,this.msgCalendar="",this.msgOpenCalendar=""}(t.prototype.$get=function(e,i){for(var t=e.DATETIME_FORMATS.SHORTDAY.map(function(e){return e.substring(0,1)}),n=Array(32),o=1;o<=31;o++)n[o]=o;var r=new Date(1880,0,1),a=new Date(r.getFullYear()+250,0,1),d={months:this.months||e.DATETIME_FORMATS.MONTH,shortMonths:this.shortMonths||e.DATETIME_FORMATS.SHORTMONTH,days:this.days||e.DATETIME_FORMATS.DAY,shortDays:this.shortDays||t,dates:this.dates||n,firstDayOfWeek:this.firstDayOfWeek||0,formatDate:this.formatDate||function(e,t){if(!e)return"";var n=e.toLocaleTimeString(),o=e;return 0!==e.getHours()||-1===n.indexOf("11:")&&-1===n.indexOf("23:")||(o=new Date(e.getFullYear(),e.getMonth(),e.getDate(),1,0,0)),i("date")(o,"M/d/yyyy",t)},parseDate:this.parseDate||function(e){return new Date(e)},isDateComplete:this.isDateComplete||function(e){return e=e.trim(),/^(([a-zA-Z]{3,}|[0-9]{1,4})([ .,]+|[/-])){2}([a-zA-Z]{3,}|[0-9]{1,4})$/.test(e)},monthHeaderFormatter:this.monthHeaderFormatter||function(e){return d.shortMonths[e.getMonth()]+" "+e.getFullYear()},monthFormatter:this.monthFormatter||function(e){return d.months[e.getMonth()]+" "+e.getFullYear()},weekNumberFormatter:this.weekNumberFormatter||function(e){return"Week "+e},longDateFormatter:this.longDateFormatter||function(e){return[d.days[e.getDay()],d.months[e.getMonth()],d.dates[e.getDate()],e.getFullYear()].join(" ")},msgCalendar:this.msgCalendar||"Calendar",msgOpenCalendar:this.msgOpenCalendar||"Open calendar",firstRenderableDate:this.firstRenderableDate||r,lastRenderableDate:this.lastRenderableDate||a};return d}).$inject=["$locale","$filter"],e.provider("$mdDateLocale",new t)}]),fe.module("material.components.datepicker").factory("$$mdDateUtil",function(){return{getFirstDateOfMonth:n,getNumberOfDaysInMonth:i,getDateInNextMonth:o,getDateInPreviousMonth:r,isInNextMonth:function(e,t){return a(o(e),t)},isInPreviousMonth:function(e,t){var n=r(e);return a(t,n)},getDateMidpoint:function(e,t){return c((e.getTime()+t.getTime())/2)},isSameMonthAndYear:a,getWeekOfMonth:function(e){var t=n(e);return Math.floor((t.getDay()+e.getDate()-1)/7)},incrementDays:function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},incrementMonths:d,getLastDateOfMonth:function(e){return new Date(e.getFullYear(),e.getMonth(),i(e))},isSameDay:function(e,t){return e.getDate()==t.getDate()&&a(e,t)},getMonthDistance:function(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},isValidDate:s,setDateTimeToMidnight:l,createDateAtMidnight:c,isDateWithinRange:function(e,t,n){var o=c(e),i=s(t)?c(t):null,r=s(n)?c(n):null;return(!i||i<=o)&&(!r||o<=r)},incrementYears:function(e,t){return d(e,12*t)},getYearDistance:function(e,t){return t.getFullYear()-e.getFullYear()},clampDate:function(e,t,n){var o=e;return t&&e<t&&(o=new Date(t.getTime())),n&&n<e&&(o=new Date(n.getTime())),o},getTimestampFromNode:function(e){if(e&&e.hasAttribute("data-timestamp"))return Number(e.getAttribute("data-timestamp"))},isMonthWithinRange:function(e,t,n){var o=e.getMonth(),i=e.getFullYear();return(!t||t.getFullYear()<i||t.getMonth()<=o)&&(!n||n.getFullYear()>i||n.getMonth()>=o)}};function n(e){return new Date(e.getFullYear(),e.getMonth(),1)}function i(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function o(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function r(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function a(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function d(e,t){var n=new Date(e.getFullYear(),e.getMonth()+t,1),o=i(n);return o<e.getDate()?n.setDate(o):n.setDate(e.getDate()),n}function s(e){return e&&e.getTime&&!isNaN(e.getTime())}function l(e){s(e)&&e.setHours(0,0,0,0)}function c(e){var t;return l(t=fe.isUndefined(e)?new Date:new Date(e)),t}}),function(){function e(a,m,u,p){return{template:function(e,t){var n=t.mdHideIcons,o=t.ariaLabel||t.mdPlaceholder,i="all"===n||"calendar"===n?"":'<md-button class="md-datepicker-button md-icon-button" type="button" tabindex="-1" aria-hidden="true" ng-click="ctrl.openCalendarPane($event)"><md-icon class="md-datepicker-calendar-icon" aria-label="md-calendar" md-svg-src="'+a.mdCalendar+'"></md-icon></md-button>',r="";return"all"!==n&&"triangle"!==n&&(r='<md-button type="button" md-no-ink class="md-datepicker-triangle-button md-icon-button" ng-click="ctrl.openCalendarPane($event)" aria-label="{{::ctrl.locale.msgOpenCalendar}}"><div class="md-datepicker-expand-triangle"></div></md-button>',e.addClass(d)),i+'<div class="md-datepicker-input-container" ng-class="{\'md-datepicker-focused\': ctrl.isFocused}"><input '+(o?'aria-label="'+o+'" ':"")+'class="md-datepicker-input" aria-haspopup="dialog" ng-focus="ctrl.setFocused(true)" ng-blur="ctrl.setFocused(false)"> '+r+'</div><div class="md-datepicker-calendar-pane md-whiteframe-z1" id="{{::ctrl.calendarPaneId}}"><div class="md-datepicker-input-mask"><div class="md-datepicker-input-mask-opaque"></div></div><div class="md-datepicker-calendar"><md-calendar role="dialog" aria-label="{{::ctrl.locale.msgCalendar}}" md-current-view="{{::ctrl.currentView}}" md-mode="{{::ctrl.mode}}" md-min-date="ctrl.minDate" md-max-date="ctrl.maxDate" md-date-filter="ctrl.dateFilter" ng-model="ctrl.date" ng-if="ctrl.isCalendarOpen"></md-calendar></div></div>'},require:["ngModel","mdDatepicker","?^mdInputContainer","?^form"],scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",placeholder:"@mdPlaceholder",currentView:"@mdCurrentView",mode:"@mdMode",dateFilter:"=mdDateFilter",isOpen:"=?mdIsOpen",debounceInterval:"=mdDebounceInterval",dateLocale:"=mdDateLocale"},controller:t,controllerAs:"ctrl",bindToController:!0,link:function(e,t,n,o){var i=o[0],r=o[1],a=o[2],d=o[3],s=m.parseAttributeBoolean(n.mdNoAsterisk);if(r.configureNgModel(i,a,p),a){var l=t[0].querySelector(".md-errors-spacer");l&&t.after(fe.element("<div>").append(l)),a.setHasPlaceholder(n.mdPlaceholder),a.input=t,a.element.addClass(h).toggleClass(f,"calendar"!==n.mdHideIcons&&"all"!==n.mdHideIcons),a.label?s||n.$observe("required",function(e){a.label.toggleClass("md-required",!!e)}):u.expect(t,"aria-label",n.mdPlaceholder),e.$watch(a.isErrorGetter||function(){return i.$invalid&&(i.$touched||d&&d.$submitted)},a.setInvalid)}else if(d)var c=e.$watch(function(){return d.$submitted},function(e){e&&(r.updateErrorState(),c())})}}}t.$inject=["$scope","$element","$attrs","$window","$mdConstant","$mdTheming","$mdUtil","$mdDateLocale","$$mdDateUtil","$$rAF","$filter","$timeout"],e.$inject=["$$mdSvgRegistry","$mdUtil","$mdAria","inputDirective"],fe.module("material.components.datepicker").directive("mdDatepicker",e);var a="md-datepicker-invalid",m="md-datepicker-open",h="_md-datepicker-floating-label",f="_md-datepicker-has-calendar-icon",d="_md-datepicker-has-triangle-icon",p=/ipad|iphone|ipod|android/i;function t(e,t,n,o,i,r,a,d,s,l,c,m){this.$window=o,this.dateUtil=s,this.$mdConstant=i,this.$mdUtil=a,this.$$rAF=l,this.$mdDateLocale=d,this.$timeout=m,this.documentElement=fe.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=t[0].querySelector("input"),this.ngInputElement=fe.element(this.inputElement),this.inputContainer=t[0].querySelector(".md-datepicker-input-container"),this.calendarPane=t[0].querySelector(".md-datepicker-calendar-pane"),this.calendarButton=t[0].querySelector(".md-datepicker-button"),this.inputMask=fe.element(t[0].querySelector(".md-datepicker-input-mask-opaque")),this.$element=t,this.$attrs=n,this.$scope=e,this.date=null,this.isFocused=!1,this.isDisabled=ge,this.setDisabled(t[0].disabled||fe.isString(n.disabled)),this.isCalendarOpen=!1,this.openOnFocus=n.hasOwnProperty("mdOpenOnFocus"),this.mdInputContainer=null,this.calendarPaneOpenedFrom=null,this.calendarPaneId="md-date-pane-"+a.nextUid(),this.bodyClickHandler=fe.bind(this,this.handleBodyClick),this.windowEventName=p.test(navigator.userAgent||navigator.vendor||R.opera)?"orientationchange":"resize",this.windowEventHandler=a.debounce(fe.bind(this,this.closeCalendarPane),100),this.windowBlurHandler=fe.bind(this,this.handleWindowBlur),this.ngDateFilter=c("date"),this.leftMargin=20,this.topMargin=null,n.tabindex?(this.ngInputElement.attr("tabindex",n.tabindex),n.$set("tabindex",null)):n.$set("tabindex","-1"),n.$set("aria-owns",this.calendarPaneId),r(t),r(fe.element(this.calendarPane));var u=this;e.$on("$destroy",function(){u.detachCalendarPane()}),n.mdIsOpen&&e.$watch("ctrl.isOpen",function(e){e?u.openCalendarPane({target:u.inputElement}):u.closeCalendarPane()}),1===fe.version.major&&fe.version.minor<=4&&this.$onInit()}t.prototype.$onInit=function(){this.locale=this.dateLocale?fe.extend({},this.$mdDateLocale,this.dateLocale):this.$mdDateLocale,this.installPropertyInterceptors(),this.attachChangeListeners(),this.attachInteractionListeners()},t.prototype.configureNgModel=function(e,t,n){this.ngModelCtrl=e,this.mdInputContainer=t,this.$attrs.$set("type","date"),n[0].link.pre(this.$scope,{on:fe.noop,val:fe.noop,0:{}},this.$attrs,[e]);var o=this;o.ngModelCtrl.$formatters.push(function(e){var t=fe.isDefined(e)?e:null;if(!(e instanceof Date)&&(t=Date.parse(e),!isNaN(t)&&fe.isNumber(t)&&(e=new Date(t)),e&&!(e instanceof Date)))throw Error("The ng-model for md-datepicker must be a Date instance or a value that can be parsed into a date. Currently the model is of type: "+typeof e);return o.onExternalChange(e),e}),e.$viewChangeListeners.unshift(fe.bind(this,this.updateErrorState));var i=o.$mdUtil.getModelOption(e,"updateOn");i&&this.ngInputElement.on(i,fe.bind(this.$element,this.$element.triggerHandler,i))},t.prototype.attachChangeListeners=function(){var n=this;n.$scope.$on("md-calendar-change",function(e,t){n.setModelValue(t),n.onExternalChange(t),n.closeCalendarPane()}),n.ngInputElement.on("input",fe.bind(n,n.resizeInputElement));var e=fe.isDefined(this.debounceInterval)?this.debounceInterval:500;n.ngInputElement.on("input",n.$mdUtil.debounce(n.handleInputEvent,e,n))},t.prototype.attachInteractionListeners=function(){var t=this,n=this.$scope,o=this.$mdConstant.KEY_CODE;t.ngInputElement.on("keydown",function(e){e.altKey&&e.keyCode===o.DOWN_ARROW&&(t.openCalendarPane(e),n.$digest())}),t.openOnFocus&&(t.ngInputElement.on("focus",fe.bind(t,t.openCalendarPane)),t.ngInputElement.on("click",function(e){e.stopPropagation()}),t.ngInputElement.on("pointerdown",function(e){e.target&&e.target.setPointerCapture&&e.target.setPointerCapture(e.pointerId)}),fe.element(t.$window).on("blur",t.windowBlurHandler),n.$on("$destroy",function(){fe.element(t.$window).off("blur",t.windowBlurHandler)})),n.$on("md-calendar-close",function(){t.closeCalendarPane()})},t.prototype.installPropertyInterceptors=function(){var t=this;if(this.$attrs.ngDisabled){var e=this.$scope.$parent;e&&e.$watch(this.$attrs.ngDisabled,function(e){t.setDisabled(e)})}Object.defineProperty(this,"placeholder",{get:function(){return t.inputElement.placeholder},set:function(e){t.inputElement.placeholder=e||""}})},t.prototype.setDisabled=function(e){this.isDisabled=e,this.inputElement.disabled=e,this.calendarButton&&(this.calendarButton.disabled=e)},t.prototype.updateErrorState=function(e){var t=e||this.date;if(this.clearErrorState(),this.dateUtil.isValidDate(t)){if(t=this.dateUtil.createDateAtMidnight(t),this.dateUtil.isValidDate(this.minDate)){var n=this.dateUtil.createDateAtMidnight(this.minDate);this.ngModelCtrl.$setValidity("mindate",n<=t)}if(this.dateUtil.isValidDate(this.maxDate)){var o=this.dateUtil.createDateAtMidnight(this.maxDate);this.ngModelCtrl.$setValidity("maxdate",t<=o)}fe.isFunction(this.dateFilter)&&this.ngModelCtrl.$setValidity("filtered",this.dateFilter(t))}else this.ngModelCtrl.$setValidity("valid",null==t);var i=this.inputElement.value,r=this.locale.parseDate(i);!this.isInputValid(i,r)&&this.ngModelCtrl.$valid&&this.ngModelCtrl.$setValidity("valid",null==t),fe.element(this.inputContainer).toggleClass(a,!this.ngModelCtrl.$valid)},t.prototype.isInputValid=function(e,t){return""===e||this.dateUtil.isValidDate(t)&&this.locale.isDateComplete(e)&&this.isDateEnabled(t)},t.prototype.clearErrorState=function(){this.inputContainer.classList.remove(a),["mindate","maxdate","filtered","valid"].forEach(function(e){this.ngModelCtrl.$setValidity(e,!0)},this)},t.prototype.resizeInputElement=function(){this.inputElement.size=this.inputElement.value.length+3},t.prototype.handleInputEvent=function(){var e=this.inputElement.value,t=e?this.locale.parseDate(e):null;this.dateUtil.setDateTimeToMidnight(t),this.isInputValid(e,t)&&(this.setModelValue(t),this.date=t),this.updateErrorState(t)},t.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.minDate,this.maxDate)&&(!fe.isFunction(this.dateFilter)||this.dateFilter(e))},t.prototype.attachCalendarPane=function(){var e=this.calendarPane,t=document.body;e.style.transform="",this.$element.addClass(m),this.mdInputContainer&&this.mdInputContainer.element.addClass(m),fe.element(t).addClass("md-datepicker-is-showing");var n=this.inputContainer.getBoundingClientRect(),o=t.getBoundingClientRect();(!this.topMargin||this.topMargin<0)&&(this.topMargin=(this.inputMask.parent().prop("clientHeight")-this.ngInputElement.prop("clientHeight"))/2);var i=n.top-o.top-this.topMargin,r=n.left-o.left-this.leftMargin,a=o.top<0&&0==document.body.scrollTop?-o.top:document.body.scrollTop,d=o.left<0&&0==document.body.scrollLeft?-o.left:document.body.scrollLeft,s=a+this.$window.innerHeight,l=d+this.$window.innerWidth;if(this.inputMask.css({position:"absolute",left:this.leftMargin+"px",top:this.topMargin+"px",width:n.width-1+"px",height:n.height-2+"px"}),l<r+360){if(0<l-360)r=l-360;else{r=d;var c=this.$window.innerWidth/360;e.style.transform="scale("+c+")"}e.classList.add("md-datepicker-pos-adjusted")}s<i+368&&a<s-368&&(i=s-368,e.classList.add("md-datepicker-pos-adjusted")),e.style.left=r+"px",e.style.top=i+"px",document.body.appendChild(e),this.$$rAF(function(){e.classList.add("md-pane-open")})},t.prototype.detachCalendarPane=function(){this.$element.removeClass(m),this.mdInputContainer&&this.mdInputContainer.element.removeClass(m),fe.element(document.body).removeClass("md-datepicker-is-showing"),this.calendarPane.classList.remove("md-pane-open"),this.calendarPane.classList.remove("md-datepicker-pos-adjusted"),this.isCalendarOpen&&this.$mdUtil.enableScrolling(),this.calendarPane.parentNode&&this.calendarPane.parentNode.removeChild(this.calendarPane)},t.prototype.openCalendarPane=function(e){if(!this.isCalendarOpen&&!this.isDisabled&&!this.inputFocusedOnWindowBlur){this.isCalendarOpen=this.isOpen=!0,this.calendarPaneOpenedFrom=e.target,this.$mdUtil.disableScrollAround(this.calendarPane),this.attachCalendarPane(),this.focusCalendar(),this.evalAttr("ngFocus");var t=this;this.$mdUtil.nextTick(function(){t.documentElement.on("click touchstart",t.bodyClickHandler)},!1),R.addEventListener(this.windowEventName,this.windowEventHandler)}},t.prototype.closeCalendarPane=function(){if(this.isCalendarOpen){var e=this;e.detachCalendarPane(),e.ngModelCtrl.$setTouched(),e.evalAttr("ngBlur"),e.documentElement.off("click touchstart",e.bodyClickHandler),R.removeEventListener(e.windowEventName,e.windowEventHandler),e.calendarPaneOpenedFrom.focus(),e.calendarPaneOpenedFrom=null,e.openOnFocus?e.$timeout(t):t()}function t(){e.isCalendarOpen=e.isOpen=!1}},t.prototype.getCalendarCtrl=function(){return fe.element(this.calendarPane.querySelector("md-calendar")).controller("mdCalendar")},t.prototype.focusCalendar=function(){var e=this;this.$mdUtil.nextTick(function(){e.getCalendarCtrl().focus()},!1)},t.prototype.setFocused=function(e){e||this.ngModelCtrl.$setTouched(),this.openOnFocus||this.evalAttr(e?"ngFocus":"ngBlur"),this.isFocused=e},t.prototype.handleBodyClick=function(e){this.isCalendarOpen&&(this.$mdUtil.getClosest(e.target,"md-calendar")||this.closeCalendarPane(),this.$scope.$digest())},t.prototype.handleWindowBlur=function(){this.inputFocusedOnWindowBlur=document.activeElement===this.inputElement},t.prototype.evalAttr=function(e){this.$attrs[e]&&this.$scope.$parent.$eval(this.$attrs[e])},t.prototype.setModelValue=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.ngModelCtrl.$setViewValue(this.ngDateFilter(e,"yyyy-MM-dd",t))},t.prototype.onExternalChange=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.date=e,this.inputElement.value=this.locale.formatDate(e,t),this.mdInputContainer&&this.mdInputContainer.setHasValue(!!e),this.resizeInputElement(),this.updateErrorState()}}(),Ee.$inject=["$$rAF","$mdTheming","$mdDialog"],$e.$inject=["$$interimElementProvider"],fe.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",Ee).provider("$mdDialog",$e),ye.$inject=["$mdTheming"],fe.module("material.components.divider",["material.core"]).directive("mdDivider",ye),Ce.$inject=["$mdUtil"],fe.module("material.components.fabActions",["material.core"]).directive("mdFabActions",Ce),Me.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"],fe.module("material.components.fabShared",["material.core"]).controller("MdFabController",Me),function(){e.$inject=["$timeout"],t.$inject=["$timeout"];var n=300;function e(t){function o(e){t(e,n,!1)}function i(e){if(!e.hasClass("md-animations-waiting")||e.hasClass("_md-animations-ready")){var t=e[0],s=e.controller("mdFabSpeedDial"),o=t.querySelectorAll(".md-fab-action-item"),l=t.querySelector("md-fab-trigger"),n=t.querySelector("._md-css-variables"),i=parseInt(R.getComputedStyle(n).zIndex);fe.forEach(o,function(e,t){var n=e.style;n.transform=n.webkitTransform="",n.transitionDelay="",n.opacity=1,n.zIndex=o.length-t+i}),l.style.zIndex=i+o.length+1,s.isOpen||fe.forEach(o,function(e,t){var n,o,i=e.style,r=(l.clientHeight-e.clientHeight)/2,a=(l.clientWidth-e.clientWidth)/2;switch(s.direction){case"up":n=e.scrollHeight*(t+1)+r,o="Y";break;case"down":n=-(e.scrollHeight*(t+1)+r),o="Y";break;case"left":n=e.scrollWidth*(t+1)+a,o="X";break;case"right":n=-(e.scrollWidth*(t+1)+a),o="X"}var d="translate"+o+"("+n+"px)";i.transform=i.webkitTransform=d})}}return{addClass:function(e,t,n){e.hasClass("md-fling")?(i(e),o(n)):n()},removeClass:function(e,t,n){i(e),o(n)}}}function t(t){function o(e){t(e,n,!1)}function i(e){var t=e[0],i=e.controller("mdFabSpeedDial"),r=t.querySelectorAll(".md-fab-action-item"),n=t.querySelector("._md-css-variables"),a=parseInt(R.getComputedStyle(n).zIndex);fe.forEach(r,function(e,t){var n=e.style,o=65*t;n.opacity=i.isOpen?1:0,n.transform=n.webkitTransform=i.isOpen?"scale(1)":"scale(0)",n.transitionDelay=(i.isOpen?o:r.length-o)+"ms",n.zIndex=r.length-t+a})}return{addClass:function(e,t,n){i(e),o(n)},removeClass:function(e,t,n){i(e),o(n)}}}fe.module("material.components.fabSpeedDial",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabSpeedDial",function(){return{restrict:"E",scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(e,t){t.prepend('<div class="_md-css-variables"></div>')}}}).animation(".md-fling",e).animation(".md-scale",t).service("mdFabSpeedDialFlingAnimation",e).service("mdFabSpeedDialScaleAnimation",t)}(),fe.module("material.components.fabToolbar",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabToolbar",function(){return{restrict:"E",transclude:!0,template:'<div class="md-fab-toolbar-wrapper"> <div class="md-fab-toolbar-content" ng-transclude></div></div>',scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(e,t,n){t.addClass("md-fab-toolbar"),t.find("md-fab-trigger").find("button").prepend('<div class="md-fab-toolbar-background"></div>')}}}).animation(".md-fab-toolbar",Te).service("mdFabToolbarAnimation",Te),we.$inject=["$mdUtil"],_e.$inject=["$mdUtil"],Ae.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia","$mdUtil"],ke.$inject=["$mdMedia"],fe.module("material.components.gridList",["material.core"]).directive("mdGridList",Ae).directive("mdGridTile",ke).directive("mdGridTileFooter",xe).directive("mdGridTileHeader",xe).factory("$mdGridLayout",_e),we.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(fe.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}},fe.module("material.components.icon",["material.core"]),fe.module("material.components.icon").directive("mdIcon",["$mdIcon","$mdTheming","$mdAria","$sce",function(s,l,c,e){return{restrict:"E",link:function(e,t,n){l(t);var o=n.mdFontIcon,i=s.fontSet(n.mdFontSet);n.mdSvgIcon||n.mdSvgSrc||(n.mdFontIcon&&t.addClass("md-font "+n.mdFontIcon),t.addClass(i)),n.$observe("mdFontIcon",d),n.$observe("mdFontSet",d),t[0].getAttribute(n.$attr.mdSvgSrc);var r,a=n.$normalize(n.$attr.mdSvgIcon||n.$attr.mdSvgSrc||"");function d(){if(!n.mdSvgIcon&&!n.mdSvgSrc){n.mdFontIcon&&(t.removeClass(o),t.addClass(n.mdFontIcon),o=n.mdFontIcon);var e=s.fontSet(n.mdFontSet);i!==e&&(t.removeClass(i),t.addClass(e),i=e)}}n.role||(c.expect(t,"role","img"),n.role="img"),"img"!==n.role||n.ariaHidden||c.hasAriaLabel(t)||(n.alt?c.expect(t,"aria-label",n.alt):c.parentHasAriaLabel(t,2)?c.expect(t,"aria-hidden","true"):(r=n.mdFontIcon||n.mdSvgIcon||t.text())?c.expect(t,"aria-label",r):c.expect(t,"aria-hidden","true")),a&&n.$observe(a,function(e){t.empty(),e&&s(e).then(function(e){t.empty(),t.append(e)})})}}}]),function(){a.$inject=["config","$templateRequest","$q","$log","$mdUtil","$sce"],fe.module("material.components.icon").constant("$$mdSvgRegistry",{mdTabsArrow:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyICIvPjwvZz48L3N2Zz4=",mdClose:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xOSA2LjQxbC0xLjQxLTEuNDEtNS41OSA1LjU5LTUuNTktNS41OS0xLjQxIDEuNDEgNS41OSA1LjU5LTUuNTkgNS41OSAxLjQxIDEuNDEgNS41OS01LjU5IDUuNTkgNS41OSAxLjQxLTEuNDEtNS41OS01LjU5eiIvPjwvZz48L3N2Zz4=",mdCancel:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xMiAyYy01LjUzIDAtMTAgNC40Ny0xMCAxMHM0LjQ3IDEwIDEwIDEwIDEwLTQuNDcgMTAtMTAtNC40Ny0xMC0xMC0xMHptNSAxMy41OWwtMS40MSAxLjQxLTMuNTktMy41OS0zLjU5IDMuNTktMS40MS0xLjQxIDMuNTktMy41OS0zLjU5LTMuNTkgMS40MS0xLjQxIDMuNTkgMy41OSAzLjU5LTMuNTkgMS40MSAxLjQxLTMuNTkgMy41OSAzLjU5IDMuNTl6Ii8+PC9nPjwvc3ZnPg==",mdMenu:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0zLDZIMjFWOEgzVjZNMywxMUgyMVYxM0gzVjExTTMsMTZIMjFWMThIM1YxNloiIC8+PC9zdmc+",mdToggleArrow:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDggNDgiPjxwYXRoIGQ9Ik0yNCAxNmwtMTIgMTIgMi44MyAyLjgzIDkuMTctOS4xNyA5LjE3IDkuMTcgMi44My0yLjgzeiIvPjxwYXRoIGQ9Ik0wIDBoNDh2NDhoLTQ4eiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==",mdCalendar:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTkgM2gtMVYxaC0ydjJIOFYxSDZ2Mkg1Yy0xLjExIDAtMS45OS45LTEuOTkgMkwzIDE5YzAgMS4xLjg5IDIgMiAyaDE0YzEuMSAwIDItLjkgMi0yVjVjMC0xLjEtLjktMi0yLTJ6bTAgMTZINVY4aDE0djExek03IDEwaDV2NUg3eiIvPjwvc3ZnPg==",mdChecked:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik05IDE2LjE3TDQuODMgMTJsLTEuNDIgMS40MUw5IDE5IDIxIDdsLTEuNDEtMS40MXoiLz48L2c+PC9zdmc+"}).provider("$mdIcon",e);var r={defaultViewBoxSize:24,defaultFontSet:"material-icons",fontSets:[]};function e(){}function o(e,t){this.url=e,this.viewBoxSize=t||r.defaultViewBoxSize}function a(a,r,d,s,c,t){var n={},l={},o=/[-\w@:%+.~#?&//=]{2,}\.[a-z]{2,4}\b(\/[-\w@:%+.~#?&//=]*)?/i,m=/^data:image\/svg\+xml[\s*;\w\-=]*?(base64)?,(.*)$/i;return b.prototype={clone:function(){return this.element.cloneNode(!0)},prepare:function(){var e=this.config?this.config.viewBoxSize:a.defaultViewBoxSize;fe.forEach({fit:"",height:"100%",width:"100%",preserveAspectRatio:"xMidYMid meet",viewBox:this.element.getAttribute("viewBox")||"0 0 "+e+" "+e,focusable:!1},function(e,t){this.element.setAttribute(t,e)},this)}},e.fontSet=function(t){if(fe.isUndefined(t)||!t||!t.length)return a.defaultFontSet;var n=t;return fe.forEach(a.fontSets,function(e){e.alias===t&&(n=e.fontSet||n)}),n},e;function e(e){return e=e||"",fe.isString(e)||(e=t.getTrustedUrl(e)),n[e]?d.when(i(n[e])):o.test(e)||m.test(e)?g(e).then(p(e)):(-1===e.indexOf(":")&&(e="$default:"+e),(a[e]?h:f)(e).then(p(e)))}function i(e){var n,o,i,r,a=e.clone(),d=c.nextUid(),s=["clip-path","color-profile","cursor","fill","filter","href","marker-start","marker-mid","marker-end","mask","stroke","style","vector-effect"],l=a.innerHTML===ge;if(!isFinite(Number(d)))throw new Error("Unsafe and unexpected non-number result from $mdUtil.nextUid().");return n="_cache"+d,a.id&&(a.id+=n),fe.forEach(a.querySelectorAll("[id]"),function(t){for(o="",i=0;i<s.length;i++)o+="["+s[i]+'="url(#'+t.id+')"]',i+1<s.length&&(o+=", ");fe.forEach(a.querySelectorAll(o),function(e){u(t,e,l,d)}),fe.forEach(a.querySelectorAll("style"),function(e){u(t,e,l,d)}),fe.forEach(a.querySelectorAll("[*|href]:not([href])"),function(e){(r=e.getAttribute("xlink:href"))&&(r=r.replace("#"+t.id,"#"+t.id+n),e.setAttribute("xlink:href",r))}),t.id+=n}),a}function u(e,t,n,o){var i,r;if(!isFinite(Number(o)))throw new Error("Unsafe and unexpected non-number result for newUid.");r="_cache"+o,n?(i=(i=c.getOuterHTML(t)).replace("url(#"+e.id+")","url(#"+e.id+r+")"),t.textContent=fe.element(i)[0].innerHTML):t.outerHTML=t.outerHTML.replace("url(#"+e.id+")","url(#"+e.id+r+")")}function p(t){return function(e){return n[t]=function(e){return fe.isDefined(e.element)&&fe.isDefined(e.config)}(e)?e:new b(e,a[t]),i(n[t])}}function h(e){var t=a[e];return g(t.url).then(function(e){return new b(e,t)})}function f(o){var e=o.substring(0,o.lastIndexOf(":"))||"$default",i=a[e];return i?g(i.url).then(function(e){var t=o.slice(o.lastIndexOf(":")+1),n=e.querySelector("#"+t);return n?new b(n,i):r(o)}):r(o);function r(e){var t="icon "+e+" not found";return s.warn(t),d.reject(t||e)}}function g(e){return m.test(e)?(t=e,n=m.exec(t),i=/base64/i.test(t)?R.atob(n[2]):n[2],d.when(fe.element(i)[0])):(o=e,d(function(t,n){r(o,!0).then(function(e){l[o]||(l[o]=fe.element("<div>").append(e)[0].querySelector("svg")),t(l[o])},function(e){var t=fe.isString(e)?e:e.message||e.data||e.statusText;s.warn(t),n(e)})}));var o,t,n,i}function b(e,t){if(e&&"symbol"===e.tagName.toLowerCase()){var n=e.getAttribute("viewBox");e=e.innerHTML?fe.element('<svg xmlns="http://www.w3.org/2000/svg">').html(e.innerHTML)[0]:fe.element('<svg xmlns="http://www.w3.org/2000/svg">').append(c.getInnerHTML(e))[0],n&&e.setAttribute("viewBox",n)}e&&"svg"!==e.tagName.toLowerCase()&&(e=fe.element('<svg xmlns="http://www.w3.org/2000/svg">').append(e.cloneNode(!0))[0]),e.getAttribute("xmlns")||e.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.element=e,this.config=t,this.prepare()}}e.prototype={icon:function(e,t,n){return-1==e.indexOf(":")&&(e="$default:"+e),r[e]=new o(t,n),this},iconSet:function(e,t,n){return r[e]=new o(t,n),this},defaultIconSet:function(e,t){var n="$default";return r[n]||(r[n]=new o(e,t)),r[n].viewBoxSize=t||r.defaultViewBoxSize,this},defaultViewBoxSize:function(e){return r.defaultViewBoxSize=e,this},fontSet:function(e,t){return r.fontSets.push({alias:e,fontSet:t||e}),this},defaultFontSet:function(e){return r.defaultFontSet=e||"",this},defaultIconSize:function(e){return r.defaultIconSize=e,this},$get:["$templateRequest","$q","$log","$mdUtil","$sce",function(e,t,n,o,i){return a(r,e,t,n,o,i)}]}}(),function(){t.$inject=["$mdTheming","$parse","$$rAF"],n.$inject=["$mdUtil","$window","$mdAria","$timeout","$mdGesture"],o.$inject=["$animate","$mdUtil"],i.$inject=["$compile"],c.$inject=["$mdUtil"],r.$inject=["$document","$timeout"],m.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],u.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],p.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"];var e=fe.module("material.components.input",["material.core"]).directive("mdInputContainer",t).directive("label",function(){return{restrict:"E",require:"^?mdInputContainer",link:function(e,t,n,o){!o||n.mdNoFloat||t.hasClass("md-container-ignore")||(o.label=t,e.$on("$destroy",function(){o.label=null}))}}}).directive("input",n).directive("textarea",n).directive("mdMaxlength",o).directive("placeholder",i).directive("ngMessages",function(){return{restrict:"EA",link:function(e,t,n,o){if(!o)return;t.toggleClass("md-input-messages-animation",!0),t.toggleClass("md-auto-hide",!0),"false"!=n.mdAutoHide&&!function(t){return l.some(function(e){return t[e]})}(n)||t.toggleClass("md-auto-hide",!1)},require:"^^?mdInputContainer"}}).directive("ngMessage",c).directive("ngMessageExp",c).directive("mdSelectOnFocus",r).animation(".md-input-invalid",m).animation(".md-input-messages-animation",u).animation(".md-input-message-animation",p);function t(i,r,a){n.$inject=["$scope","$element","$attrs","$animate"];var e=["INPUT","TEXTAREA","SELECT","MD-SELECT"],t=e.reduce(function(e,t){return e.concat(["md-icon ~ "+t,".md-icon ~ "+t])},[]).join(","),d=e.reduce(function(e,t){return e.concat([t+" ~ md-icon",t+" ~ .md-icon"])},[]).join(",");return{restrict:"E",compile:function(e){var n=e[0].querySelector(t),o=e[0].querySelector(d);return function(e,t){i(t),(n||o)&&a(function(){var e=t[0].querySelector("md-icon")||t[0].querySelector(".md-icon");n&&e&&t.addClass("md-icon-left"),o&&e&&t.addClass("md-icon-right")})}},controller:n};function n(e,t,n,o){var i=this;i.isErrorGetter=n.mdIsError&&r(n.mdIsError),i.delegateClick=function(){i.input.focus()},i.element=t,i.setFocused=function(e){t.toggleClass("md-input-focused",!!e)},i.setHasValue=function(e){t.toggleClass("md-input-has-value",!!e)},i.setHasPlaceholder=function(e){t.toggleClass("md-input-has-placeholder",!!e)},i.setInvalid=function(e){e?o.addClass(t,"md-input-invalid"):o.removeClass(t,"md-input-invalid")},e.$watch(function(){return i.label&&i.input},function(e){e&&!i.label.attr("for")&&i.label.attr("for",i.input.attr("id"))})}}function n(g,b,v,E,$){return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:function(c,m,u,e){var p=e[0],h=!!e[1],f=e[1]||g.fakeNgModel(),t=e[2],n=fe.isDefined(u.readonly),o=g.parseAttributeBoolean(u.mdNoAsterisk),i=m[0].tagName.toLowerCase();if(!p)return;{if("hidden"===u.type)return void m.attr("aria-hidden","true");if(p.input){if(p.input[0].contains(m[0]))return;throw new Error("<md-input-container> can only have *one* <input>, <textarea> or <md-select> child element!")}}p.input=m,p.label&&u.$observe("required",function(e){p.label.toggleClass("md-required",e&&!o)});var r=fe.element('<div class="md-errors-spacer">');m.after(r);var a=fe.isString(u.placeholder)?u.placeholder.trim():"";p.label||a.length||v.expect(m,"aria-label");m.addClass("md-input"),m.attr("id")||m.attr("id","input_"+g.nextUid());"input"===i&&"number"===u.type&&u.min&&u.max&&!u.step?m.attr("step","any"):"textarea"===i&&function(){var t=!u.hasOwnProperty("mdNoAutogrow");if(function(){if(u.hasOwnProperty("mdNoResize"))return;var e=fe.element('<div class="md-resize-handle"></div>'),t=!1,n=0,o=p.element,i=$.register(e,"drag",{horizontal:!1});function r(e){e.preventDefault(),t=!0,e.clientY,n=parseFloat(m.css("height"))||m.prop("offsetHeight")}function a(e){t&&(e.preventDefault(),l(),o.addClass("md-input-resized"))}function d(e){t&&m.css("height",n+e.pointer.distanceY+"px")}function s(e){t&&(t=!1,o.removeClass("md-input-resized"))}m.wrap('<div class="md-resize-wrapper">').after(e),e.on("mousedown",r),o.on("$md.dragstart",a).on("$md.drag",d).on("$md.dragend",s),c.$on("$destroy",function(){e.off("mousedown",r).remove(),o.off("$md.dragstart",a).off("$md.drag",d).off("$md.dragend",s),i(),i=o=e=null})}(),!t)return;var o=u.hasOwnProperty("rows")?parseInt(u.rows):NaN,i=u.hasOwnProperty("maxRows")?parseInt(u.maxRows):NaN,n=c.$on("md-resize-textarea",d),r=null,a=m[0];E(function(){g.nextTick(d)},10,!1),m.on("input",d),h&&f.$formatters.push(s);o||m.attr("rows",1);function d(){m.attr("rows",1).css("height","auto").addClass("md-no-flex");var e=function(){var e=a.offsetHeight,t=a.scrollHeight-e;return e+Math.max(t,0)}();if(!r){var t=m[0].style.padding||"";r=m.css("padding",0).prop("offsetHeight"),m[0].style.padding=t}if(o&&r&&(e=Math.max(e,r*o)),i&&r){var n=r*i;n<e?(m.attr("md-no-autogrow",""),e=n):m.removeAttr("md-no-autogrow")}r&&m.attr("rows",Math.round(e/r)),m.css("height",e+"px").removeClass("md-no-flex")}function s(e){return g.nextTick(d),e}function l(){if(t&&(t=!1,fe.element(b).off("resize",d),n&&n(),m.attr("md-no-autogrow","").off("input",d),h)){var e=f.$formatters.indexOf(s);-1<e&&f.$formatters.splice(e,1)}}if(fe.element(b).on("resize",d),c.$on("$destroy",l),u.hasOwnProperty("mdDetectHidden")){var e=function(){var t=!1;return function(){var e=0===a.offsetHeight;!1==e&&!0===t&&d(),t=e}}();c.$watch(function(){return g.nextTick(e,!1),!0})}}();h||l();var d=p.isErrorGetter||function(){return f.$invalid&&(f.$touched||t&&t.$submitted)};c.$watch(d,p.setInvalid),u.ngValue&&u.$observe("value",l);f.$parsers.push(s),f.$formatters.push(s),m.on("input",l),n||m.on("focus",function(e){g.nextTick(function(){p.setFocused(!0)})}).on("blur",function(e){g.nextTick(function(){p.setFocused(!1),l()})});function s(e){return p.setHasValue(!f.$isEmpty(e)),e}function l(){p.setHasValue(0<m.val().length||(m[0].validity||{}).badInput)}c.$on("$destroy",function(){p.setFocused(!1),p.setHasValue(!1),p.input=null})}}}function o(p,h){return{restrict:"A",require:["ngModel","^mdInputContainer"],link:function(e,o,t,n){var i=parseInt(t.mdMaxlength);isNaN(i)&&(i=-1);var r,a,d=n[0],s=n[1],l=!fe.isDefined(t.ngTrim)||h.parseAttributeBoolean(t.ngTrim),c="password"===t.type;function m(e){return(e=l&&!c&&fe.isString(e)?e.trim():e)!==ge&&null!==e||(e=""),String(e).length}function u(){r&&r.parent()&&r.text(m(o.val())+" / "+i)}e.$watch(t.mdMaxlength,function(e){i=e}),d.$validators["md-maxlength"]=function(e,t){if(!fe.isNumber(i)||i<0)return!0;u();var n=o.val()||t;return n!==ge&&null!==n||(n=""),n=l&&!c&&fe.isString(n)?n.trim():n,String(n).length<=i},d.$isEmpty=function(e){return 0===m(e)},h.nextTick(function(){a=fe.element(s.element[0].querySelector(".md-errors-spacer")),r=fe.element('<div class="md-char-counter">'),a.append(r),t.$observe("ngTrim",function(e){l=!fe.isDefined(e)||h.parseAttributeBoolean(e)}),e.$watch(t.mdMaxlength,function(e){fe.isNumber(e)&&0<e?(r.parent().length||p.enter(r,a),u()):p.leave(r)})})}}}function i(d){return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:{pre:function(e,t,n,o){if(!o)return;var i=o.element.find("label"),r=o.element.attr("md-no-float");if(i&&i.length||""===r||e.$eval(r))return void o.setHasPlaceholder(!0);if("MD-SELECT"!==t[0].nodeName){var a=fe.element('<label ng-click="delegateClick()" tabindex="-1" aria-hidden="true">'+n.placeholder+"</label>");n.$set("placeholder",null),o.element.addClass("md-icon-float").prepend(a),d(a)(e)}}}}}function r(a,d){return{restrict:"A",link:function(e,t,n){if("INPUT"!==t[0].nodeName&&"TEXTAREA"!==t[0].nodeName)return;var o=!1;function i(){d(function(){a[0].activeElement===t[0]&&t[0].select(),o=!1},1,!(o=!0))}function r(e){o&&e.preventDefault()}t.on("focus",i).on("mouseup",r),e.$on("$destroy",function(){t.off("focus",i).off("mouseup",r)})}}}R._mdMocksIncluded&&e.service("$$mdInput",function(){return{messages:{getElement:v}}}).service("mdInputInvalidAnimation",m).service("mdInputMessagesAnimation",u).service("mdInputMessageAnimation",p);var a,d,s,l=["ngIf","ngShow","ngHide","ngSwitchWhen","ngSwitchDefault"];function c(t){return{restrict:"EA",compile:function(n){if(o(n))i(n);else if(function(){var e=n[0];for(;e=e.parentNode;)if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!0;return!1}())return function(e,t){o(t)&&i(n)};function o(e){return!!t.getClosest(e,"md-input-container")}function i(e){e.toggleClass("md-input-message-animation",!0)}},priority:100}}function m(e,t,n){return E(e,t,n),{addClass:function(e,t,n){h(e,n)}}}function u(e,t,n){return E(e,t,n),{enter:function(e,t){h(e,t)},leave:function(e,t){f(e,t)},addClass:function(e,t,n){"ng-hide"==t?f(e,n):n()},removeClass:function(e,t,n){"ng-hide"==t?h(e,n):n()}}}function p(e,t,n,o){return E(e,t,n),{enter:function(e,t){g(e).start().done(t)},leave:function(e,t){b(e).start().done(t)}}}function h(e,t){var n,o=[],i=v(e),r=i.children();0!=i.length&&0!=r.length?(fe.forEach(r,function(e){n=g(fe.element(e)),o.push(n.start())}),a.all(o,t)):t()}function f(e,t){var n,o=[],i=v(e),r=i.children();0!=i.length&&0!=r.length?(fe.forEach(r,function(e){n=b(fe.element(e)),o.push(n.start())}),a.all(o,t)):t()}function g(e){var t=parseInt(R.getComputedStyle(e[0]).height),n=parseInt(R.getComputedStyle(e[0]).marginTop),o=v(e),i=function(e){return e.controller("mdInputContainer").element}(e);return-t<n||o.hasClass("md-auto-hide")&&!i.hasClass("md-input-invalid")?d(e,{}):d(e,{event:"enter",structural:!0,from:{opacity:0,"margin-top":-t+"px"},to:{opacity:1,"margin-top":"0"},duration:.3})}function b(e){var t=e[0].offsetHeight,n=R.getComputedStyle(e[0]);return 0===parseInt(n.opacity)?d(e,{}):d(e,{event:"leave",structural:!0,from:{opacity:1,"margin-top":0},to:{opacity:0,"margin-top":-t+"px"},duration:.3})}function v(e){return e.hasClass("md-input-messages-animation")?e:e.hasClass("md-input-message-animation")?fe.element(s.getClosest(e,function(e){return e.classList.contains("md-input-messages-animation")})):fe.element(e[0].querySelector(".md-input-messages-animation"))}function E(e,t,n){a=e,d=t,s=n}}(),De.$inject=["$scope","$element","$mdListInkRipple"],Ne.$inject=["$mdTheming"],Se.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"],fe.module("material.components.list",["material.core"]).controller("MdListController",De).directive("mdList",Ne).directive("mdListItem",Se),fe.module("material.components.menu",["material.core","material.components.backdrop"]),Ie.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q","$log"],fe.module("material.components.menu").controller("mdMenuCtrl",Ie),He.$inject=["$mdUtil"],fe.module("material.components.menu").directive("mdMenu",He),Oe.$inject=["$$interimElementProvider"],fe.module("material.components.menu").provider("$mdMenu",Oe),fe.module("material.components.menuBar",["material.core","material.components.icon","material.components.menu"]),function(){e.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],fe.module("material.components.menuBar").controller("MenuBarController",e);var l=["handleKeyDown","handleMenuHover","scheduleOpenHoveredMenu","cancelScheduledOpen"];function e(e,t,n,o,i,r,a,d){this.$element=n,this.$attrs=o,this.$mdConstant=i,this.$mdUtil=a,this.$document=r,this.$scope=e,this.$rootScope=t,this.$timeout=d;var s=this;fe.forEach(l,function(e){s[e]=fe.bind(s,s[e])})}e.prototype.init=function(){var r=this.$element,a=this.$mdUtil,e=this.$scope,d=this,t=[];r.on("keydown",this.handleKeyDown),this.parentToolbar=a.getClosest(r,"MD-TOOLBAR"),t.push(this.$rootScope.$on("$mdMenuOpen",function(e,t){-1!=d.getMenus().indexOf(t[0])&&(r[0].classList.add("md-open"),t[0].classList.add("md-open"),d.currentlyOpenMenu=t.controller("mdMenu"),d.currentlyOpenMenu.registerContainerProxy(d.handleKeyDown),d.enableOpenOnHover())})),t.push(this.$rootScope.$on("$mdMenuClose",function(e,t,n){var o=d.getMenus();if(-1!=o.indexOf(t[0])&&(r[0].classList.remove("md-open"),t[0].classList.remove("md-open")),r[0].contains(t[0])){for(var i=t[0];i&&-1==o.indexOf(i);)i=a.getClosest(i,"MD-MENU",!0);i&&(n.skipFocus||i.querySelector("button:not([disabled])").focus(),d.currentlyOpenMenu=ge,d.disableOpenOnHover(),d.setKeyboardMode(!0))}})),e.$on("$destroy",function(){for(d.disableOpenOnHover();t.length;)t.shift()()}),this.setKeyboardMode(!0)},e.prototype.setKeyboardMode=function(e){e?this.$element[0].classList.add("md-keyboard-mode"):this.$element[0].classList.remove("md-keyboard-mode")},e.prototype.enableOpenOnHover=function(){if(!this.openOnHoverEnabled){var e=this;e.openOnHoverEnabled=!0,e.parentToolbar&&(e.parentToolbar.classList.add("md-has-open-menu"),e.$mdUtil.nextTick(function(){fe.element(e.parentToolbar).on("click",e.handleParentClick)},!1)),fe.element(e.getMenus()).on("mouseenter",e.handleMenuHover)}},e.prototype.handleMenuHover=function(e){this.setKeyboardMode(!1),this.openOnHoverEnabled&&this.scheduleOpenHoveredMenu(e)},e.prototype.disableOpenOnHover=function(){this.openOnHoverEnabled&&(this.openOnHoverEnabled=!1,this.parentToolbar&&(this.parentToolbar.classList.remove("md-has-open-menu"),fe.element(this.parentToolbar).off("click",this.handleParentClick)),fe.element(this.getMenus()).off("mouseenter",this.handleMenuHover))},e.prototype.scheduleOpenHoveredMenu=function(e){var t=fe.element(e.currentTarget).controller("mdMenu");this.setKeyboardMode(!1),this.scheduleOpenMenu(t)},e.prototype.scheduleOpenMenu=function(e){var t=this,n=this.$timeout;e!=t.currentlyOpenMenu&&(n.cancel(t.pendingMenuOpen),t.pendingMenuOpen=n(function(){t.pendingMenuOpen=ge,t.currentlyOpenMenu&&t.currentlyOpenMenu.close(!0,{closeAll:!0}),e.open()},200,!1))},e.prototype.handleKeyDown=function(e){var t,n,o,i=this.$mdConstant.KEY_CODE,r=this.currentlyOpenMenu,a=r&&r.isOpen;switch(this.setKeyboardMode(!0),e.keyCode){case i.DOWN_ARROW:r?r.focusMenuContainer():this.openFocusedMenu(),t=!0;break;case i.UP_ARROW:r&&r.close(),t=!0;break;case i.LEFT_ARROW:n=this.focusMenu(-1),a&&(o=fe.element(n).controller("mdMenu"),this.scheduleOpenMenu(o)),t=!0;break;case i.RIGHT_ARROW:n=this.focusMenu(1),a&&(o=fe.element(n).controller("mdMenu"),this.scheduleOpenMenu(o)),t=!0}t&&(e&&e.preventDefault&&e.preventDefault(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation())},e.prototype.focusMenu=function(e){var t=this.getMenus(),n=this.getFocusedMenuIndex();-1==n&&(n=this.getOpenMenuIndex());var o=!1;if(-1==n?o=!(n=0):(e<0&&0<n||0<e&&n<t.length-e)&&(n+=e,o=!0),o)return t[n].querySelector("button").focus(),t[n]},e.prototype.openFocusedMenu=function(){var e=this.getFocusedMenu();e&&fe.element(e).controller("mdMenu").open()},e.prototype.getMenus=function(){var e=this.$element;return this.$mdUtil.nodesToArray(e[0].children).filter(function(e){return"MD-MENU"==e.nodeName})},e.prototype.getFocusedMenu=function(){return this.getMenus()[this.getFocusedMenuIndex()]},e.prototype.getFocusedMenuIndex=function(){var e=this.$mdUtil.getClosest(this.$document[0].activeElement,"MD-MENU");return e?this.getMenus().indexOf(e):-1},e.prototype.getOpenMenuIndex=function(){for(var e=this.getMenus(),t=0;t<e.length;++t)if(e[t].classList.contains("md-open"))return t;return-1},e.prototype.handleParentClick=function(e){var t=this.querySelector("md-menu.md-open");t&&!t.contains(e.target)&&fe.element(t).controller("mdMenu").close(!0,{closeAll:!0})}}(),Pe.$inject=["$mdUtil","$mdTheming"],fe.module("material.components.menuBar").directive("mdMenuBar",Pe),fe.module("material.components.menuBar").directive("mdMenuDivider",function(){return{restrict:"E",compile:function(e,t){t.role||e[0].setAttribute("role","separator")}}}),Le.$inject=["$scope","$element","$attrs"],fe.module("material.components.menuBar").controller("MenuItemController",Le),Le.prototype.init=function(e){var t=this.$element,n=this.$attrs;this.ngModel=e,"checkbox"!=n.type&&"radio"!=n.type||(this.mode=n.type,this.iconEl=t[0].children[0],this.buttonEl=t[0].children[1],e&&this.initClickListeners())},Le.prototype.clearNgAria=function(){var t=this.$element[0];fe.forEach(["role","tabindex","aria-invalid","aria-checked"],function(e){t.removeAttribute(e)})},Le.prototype.initClickListeners=function(){var e=this,t=this.ngModel,n=this.$scope,o=this.$attrs,i=(this.$element,this.mode);this.handleClick=fe.bind(this,this.handleClick);var r=this.iconEl,a=fe.element(this.buttonEl),d=this.handleClick;function s(e){e?a.off("click",d):a.on("click",d)}o.$observe("disabled",s),s(o.disabled),t.$render=function(){e.clearNgAria(),function(){if("radio"!=i)return t.$modelValue;var e=o.ngValue?n.$eval(o.ngValue):o.value;return t.$modelValue==e}()?(r.style.display="",a.attr("aria-checked","true")):(r.style.display="none",a.attr("aria-checked","false"))},n.$$postDigest(t.$render)},Le.prototype.handleClick=function(e){var t,n=this.mode,o=this.ngModel,i=this.$attrs;"checkbox"==n?t=!o.$modelValue:"radio"==n&&(t=i.ngValue?this.$scope.$eval(i.ngValue):i.value),o.$setViewValue(t),o.$render()},Re.$inject=["$mdUtil","$mdConstant","$$mdSvgRegistry"],fe.module("material.components.menuBar").directive("mdMenuItem",Re),Fe.$inject=["$mdAria","$mdTheming"],Be.$inject=["$element","$scope","$timeout","$mdConstant"],Ue.$inject=["$mdAria","$$rAF","$mdUtil","$window"],je.$inject=["$element"],fe.module("material.components.navBar",["material.core"]).controller("MdNavBarController",Be).directive("mdNavBar",Fe).controller("MdNavItemController",je).directive("mdNavItem",Ue),Be.prototype._initTabs=function(){this._inkbar=fe.element(this._navBarEl.querySelector("md-nav-ink-bar"));var n=this;this._$timeout(function(){n._updateTabs(n.mdSelectedNavItem,ge)}),this._$scope.$watch("ctrl.mdSelectedNavItem",function(e,t){n._$timeout(function(){n._updateTabs(e,t)})})},Be.prototype._updateTabs=function(e,t){var n=this,o=this._getTabs(),i=e===t;if(o){var r=-1,a=-1,d=this._getTabByName(e),s=this._getTabByName(t);s&&(s.setSelected(!1),r=o.indexOf(s)),d&&(d.setSelected(!0),a=o.indexOf(d)),this._$timeout(function(){n._updateInkBarStyles(d,a,r),d&&s&&!i&&n._moveFocus(s,d)})}},Be.prototype._updateInkBarStyles=function(e,t,n){if(this._inkbar.toggleClass("_md-left",t<n).toggleClass("_md-right",n<t),this._inkbar.css({display:t<0?"none":""}),e){var o=e.getButtonEl(),i=o.offsetLeft;this._inkbar.css({left:i+"px",width:o.offsetWidth+"px"})}},Be.prototype._getTabs=function(){var e=Array.prototype.slice.call(this._navBarEl.querySelectorAll(".md-nav-item")).map(function(e){return fe.element(e).controller("mdNavItem")});return e.indexOf(ge)?e:null},Be.prototype._getTabByName=function(t){return this._findTab(function(e){return e.getName()===t})},Be.prototype._getSelectedTab=function(){return this._findTab(function(e){return e.isSelected()})},Be.prototype.getFocusedTab=function(){return this._findTab(function(e){return e.hasFocus()})},Be.prototype._findTab=function(e,t){var n=this._getTabs();t!==ge&&null!==t||(t=0);for(var o=t;o<n.length;o++)if(e(n[o]))return n[o];return null},Be.prototype._findTabReverse=function(e,t){var n=this._getTabs();t!==ge&&null!==t||(t=n.length-1);for(var o=t;0<=o;o--)if(e(n[o]))return n[o];return null},Be.prototype.onFocus=function(){var e=this._getSelectedTab();e&&e.setFocused(!0)},Be.prototype._moveFocus=function(e,t){e.setFocused(!1),t.setFocused(!0)},Be.prototype._focusFirstTab=function(){if(this._getTabs()){var e=this._findTab(function(e){return e._isEnabled()});e&&this._moveFocus(this.getFocusedTab(),e)}},Be.prototype._focusLastTab=function(){if(this._getTabs()){var e=this._findTabReverse(function(e){return e._isEnabled()});e&&this._moveFocus(this.getFocusedTab(),e)}},Be.prototype._focusNextTab=function(e){if(this._getTabs()){var t=this._findTab(function(e){return e._isEnabled()},e+1);t?this._moveFocus(this.getFocusedTab(),t):this._focusFirstTab()}},Be.prototype._focusPreviousTab=function(e){if(this._getTabs()){var t=this._findTabReverse(function(e){return e._isEnabled()},e-1);t?this._moveFocus(this.getFocusedTab(),t):this._focusLastTab()}},Be.prototype.onKeydown=function(e){var t=this._$mdConstant.KEY_CODE,n=this._getTabs(),o=this.getFocusedTab();if(o&&n){var i=n.indexOf(o);switch(e.keyCode){case t.UP_ARROW:case t.LEFT_ARROW:e.preventDefault(),this._focusPreviousTab(i);break;case t.DOWN_ARROW:case t.RIGHT_ARROW:e.preventDefault(),this._focusNextTab(i);break;case t.SPACE:case t.ENTER:this._$timeout(function(){o.getButtonEl().click()});break;case t.HOME:e.preventDefault(),this._focusFirstTab();break;case t.END:e.preventDefault(),this._focusLastTab()}}},je.prototype.getNgClassMap=function(){return{"md-active":this._selected,"md-primary":this._selected,"md-unselected":!this._selected,"md-focused":this._focused}},je.prototype.getName=function(){return this.name},je.prototype.getButtonEl=function(){return this._$element[0].querySelector("._md-nav-button")},je.prototype.setSelected=function(e){(this._selected=e)?this.getButtonEl().setAttribute("tabindex","0"):this.getButtonEl().setAttribute("tabindex","-1")},je.prototype.isSelected=function(){return this._selected},je.prototype.setFocused=function(e){(this._focused=e)&&this.getButtonEl().focus()},je.prototype.hasFocus=function(){return this._focused},je.prototype._isEnabled=function(){return!this._$element.attr("disabled")},function(){d.$inject=["presets","$rootElement","$rootScope","$injector","$window"],fe.module("material.components.panel",["material.core","material.components.backdrop"]).provider("$mdPanel",function(){return{definePreset:e,getAllPresets:t,clearPresets:o,$get:["$rootElement","$rootScope","$injector","$window",function(e,t,n,o){return new d(i,e,t,n,o)}]}});var r=80,a="_md-panel-hidden",n=fe.element('<div class="_md-panel-focus-trap" tabindex="0"></div>'),i={};function e(e,t){if(!e||!t)throw new Error("mdPanelProvider: The panel preset definition is malformed. The name and preset object are required.");if(i.hasOwnProperty(e))throw new Error("mdPanelProvider: The panel preset you have requested has already been defined.");delete t.id,delete t.position,delete t.animation,i[e]=t}function t(){return fe.copy(i)}function o(){i={}}function d(e,t,n,o,i){this._defaultConfigOptions={bindToController:!0,clickOutsideToClose:!1,disableParentScroll:!1,escapeToClose:!1,focusOnOpen:!0,fullscreen:!1,hasBackdrop:!1,propagateContainerEvents:!1,transformTemplate:fe.bind(this,this._wrapTemplate),trapFocus:!1,zIndex:r},this._config={},this._presets=e,this._$rootElement=t,this._$rootScope=n,this._$injector=o,this._$window=i,this._$mdUtil=this._$injector.get("$mdUtil"),this._trackedPanels={},this._groups=Object.create(null),this.animation=l.animation,this.xPosition=h.xPosition,this.yPosition=h.yPosition,this.interceptorTypes=s.interceptorTypes,this.closeReasons=s.closeReasons,this.absPosition=h.absPosition}function s(e,t){this._$q=t.get("$q"),this._$mdCompiler=t.get("$mdCompiler"),this._$mdConstant=t.get("$mdConstant"),this._$mdUtil=t.get("$mdUtil"),this._$mdTheming=t.get("$mdTheming"),this._$rootScope=t.get("$rootScope"),this._$animate=t.get("$animate"),this._$mdPanel=t.get("$mdPanel"),this._$log=t.get("$log"),this._$window=t.get("$window"),this._$$rAF=t.get("$$rAF"),this.id=e.id,this.config=e,this.panelContainer,this.panelEl,this.isAttached=!1,this._removeListeners=[],this._topFocusTrap,this._bottomFocusTrap,this._backdropRef,this._restoreScroll=null,this._interceptors=Object.create(null),this._compilerCleanup=null,this._restoreCache={styles:"",classes:""}}function h(e){this._$window=e.get("$window"),this._isRTL=e.get("$mdUtil").isRtl(),this._$mdConstant=e.get("$mdConstant"),this._absolute=!1,this._relativeToEl,this._top="",this._bottom="",this._left="",this._right="",this._translateX=[],this._translateY=[],this._positions=[],this._actualPosition}function l(e){this._$mdUtil=e.get("$mdUtil"),this._openFrom,this._closeTo,this._animationClass="",this._openDuration,this._closeDuration,this._rawDuration}function c(e){var t=fe.isString(e)?document.querySelector(e):e;return fe.element(t)}function m(e){return fe.isNumber(e)?e+"px":e}d.prototype.create=function(e,t){if("string"==typeof e?e=this._getPresetByName(e):"object"!=typeof e||!fe.isUndefined(t)&&t||(t=e,e={}),e=e||{},t=t||{},fe.isDefined(t.id)&&this._trackedPanels[t.id]){var n=this._trackedPanels[t.id];return fe.extend(n.config,t),n}this._config=fe.extend({id:t.id||"panel_"+this._$mdUtil.nextUid(),scope:this._$rootScope.$new(!0),attachTo:this._$rootElement},this._defaultConfigOptions,t,e);var o=new s(this._config,this._$injector);return this._trackedPanels[this._config.id]=o,this._config.groupName&&(fe.isString(this._config.groupName)&&(this._config.groupName=[this._config.groupName]),fe.forEach(this._config.groupName,function(e){o.addToGroup(e)})),this._config.scope.$on("$destroy",fe.bind(o,o.detach)),o},d.prototype.open=function(e,t){var n=this.create(e,t);return n.open().then(function(){return n})},d.prototype._getPresetByName=function(e){if(!this._presets[e])throw new Error("mdPanel: The panel preset configuration that you requested does not exist. Use the $mdPanelProvider to create a preset before requesting one.");return this._presets[e]},d.prototype.newPanelPosition=function(){return new h(this._$injector)},d.prototype.newPanelAnimation=function(){return new l(this._$injector)},d.prototype.newPanelGroup=function(e,t){if(!this._groups[e]){var n={panels:[],openPanels:[],maxOpen:0<(t=t||{}).maxOpen?t.maxOpen:1/0};this._groups[e]=n}return this._groups[e]},d.prototype.setGroupMaxOpen=function(e,t){if(!this._groups[e])throw new Error("mdPanel: Group does not exist yet. Call newPanelGroup().");this._groups[e].maxOpen=t},d.prototype._openCountExceedsMaxOpen=function(e){if(this._groups[e]){var t=this._groups[e];return 0<t.maxOpen&&t.openPanels.length>t.maxOpen}return!1},d.prototype._closeFirstOpenedPanel=function(e){this._groups[e].openPanels[0].close()},d.prototype._wrapTemplate=function(e){return'<div class="md-panel-outer-wrapper"> <div class="md-panel _md-panel-offscreen">'+(e||"")+"</div></div>"},d.prototype._wrapContentElement=function(e){var t=fe.element('<div class="md-panel-outer-wrapper">');return e.addClass("md-panel _md-panel-offscreen"),t.append(e),t},s.interceptorTypes={CLOSE:"onClose"},s.prototype.open=function(){var i=this;return this._$q(function(e,t){var n=i._done(e,i),o=i._simpleBind(i.show,i);i.attach().then(o).then(function(){i.config.groupName&&fe.forEach(i.config.groupName,function(e){i._$mdPanel._openCountExceedsMaxOpen(e)&&i._$mdPanel._closeFirstOpenedPanel(e)})}).then(n).catch(t)})},s.prototype.close=function(r){var a=this;return this._$q(function(o,i){a._callInterceptors(s.interceptorTypes.CLOSE).then(function(){var e=a._done(o,a),t=a._simpleBind(a.detach,a),n=a.config.onCloseSuccess||fe.noop;n=fe.bind(a,n,a,r),a.hide().then(t).then(e).then(n).catch(i)},i)})},s.prototype.attach=function(){if(this.isAttached&&this.panelEl)return this._$q.when(this);var i=this;return this._$q(function(e,t){var n=i._done(e,i),o=i.config.onDomAdded||fe.noop;i._$q.all([i._createBackdrop(),i._createPanel().then(function(e){return i.isAttached=!0,i._addEventListeners(),e}).catch(t)]).then(o).then(n).catch(t)})},s.prototype.detach=function(){if(!this.isAttached)return this._$q.when(this);var o=this,i=o.config.onDomRemoved||fe.noop;return this._restoreScroll&&(this._restoreScroll(),this._restoreScroll=null),this._$q(function(e,t){var n=o._done(e,o);o._$q.all([(o._removeEventListeners(),o._topFocusTrap&&o._topFocusTrap.parentNode&&o._topFocusTrap.parentNode.removeChild(o._topFocusTrap),o._bottomFocusTrap&&o._bottomFocusTrap.parentNode&&o._bottomFocusTrap.parentNode.removeChild(o._bottomFocusTrap),o._restoreCache.classes&&(o.panelEl[0].className=o._restoreCache.classes),o.panelEl[0].style.cssText=o._restoreCache.styles||"",o._compilerCleanup(),o.panelContainer.remove(),o.isAttached=!1,o._$q.when(o)),!o._backdropRef||o._backdropRef.detach()]).then(i).then(n).catch(t)})},s.prototype.destroy=function(){var t=this;this.config.groupName&&fe.forEach(this.config.groupName,function(e){t.removeFromGroup(e)}),this.config.scope.$destroy(),this.config.locals=null,this.config.onDomAdded=null,this.config.onDomRemoved=null,this.config.onRemoving=null,this.config.onOpenComplete=null,this._interceptors=null},s.prototype.show=function(){if(!this.panelContainer)return this._$q(function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")});if(!this.panelContainer.hasClass(a))return this._$q.when(this);var i=this;return this._$q(function(e,t){var n=i._done(e,i),o=i.config.onOpenComplete||fe.noop;i._$q.all([i._backdropRef?i._backdropRef.show():i,(i.panelContainer.removeClass(a),i._animateOpen()).then(function(){i._focusOnOpen()},t)]).then(o).then(function(){i.config.groupName&&fe.forEach(i.config.groupName,function(e){i._$mdPanel._groups[e].openPanels.push(i)})}).then(n).catch(t)})},s.prototype.hide=function(){if(!this.panelContainer)return this._$q(function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")});if(this.panelContainer.hasClass(a))return this._$q.when(this);var i=this;return this._$q(function(e,t){var n=i._done(e,i),o=i.config.onRemoving||fe.noop;i._$q.all([i._backdropRef?i._backdropRef.hide():i,i._animateClose().then(o).then(function(){i.panelContainer.addClass(a)}).then(function(){var t;i.config.groupName&&fe.forEach(i.config.groupName,function(e){e=i._$mdPanel._groups[e],-1<(t=e.openPanels.indexOf(i))&&e.openPanels.splice(t,1)})}).then(function(){var e=i.config.origin;e&&c(e).focus()}).catch(t)]).then(n,t)})},s.prototype.addClass=function(e,t){if(this._$log.warn("mdPanel: The addClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");t||this.panelContainer.hasClass(e)?t&&!this.panelEl.hasClass(e)&&this.panelEl.addClass(e):this.panelContainer.addClass(e)},s.prototype.removeClass=function(e,t){if(this._$log.warn("mdPanel: The removeClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");!t&&this.panelContainer.hasClass(e)?this.panelContainer.removeClass(e):t&&this.panelEl.hasClass(e)&&this.panelEl.removeClass(e)},s.prototype.toggleClass=function(e,t){if(this._$log.warn("mdPanel: The toggleClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");t?this.panelEl.toggleClass(e):this.panelContainer.toggleClass(e)},s.prototype._compile=function(){var o=this;return o._$mdCompiler.compile(o.config).then(function(e){var t=o.config;if(t.contentElement){var n=e.element;o._restoreCache.styles=n[0].style.cssText,o._restoreCache.classes=n[0].className,o.panelContainer=o._$mdPanel._wrapContentElement(n),o.panelEl=n}else o.panelContainer=e.link(t.scope),o.panelEl=fe.element(o.panelContainer[0].querySelector(".md-panel"));return o._compilerCleanup=e.cleanup,c(o.config.attachTo).append(o.panelContainer),o})},s.prototype._createPanel=function(){var n=this;return this._$q(function(e,t){n.config.locals||(n.config.locals={}),(n.config.locals.mdPanelRef=n)._compile().then(function(){n.config.disableParentScroll&&(n._restoreScroll=n._$mdUtil.disableScrollAround(null,n.panelContainer,{disableScrollMask:!0})),n.config.panelClass&&n.panelEl.addClass(n.config.panelClass),n.config.propagateContainerEvents&&(n.panelContainer.css("pointer-events","none"),n.panelEl.css("pointer-events","all")),n._$animate.pin&&n._$animate.pin(n.panelContainer,c(n.config.attachTo)),n._configureTrapFocus(),n._addStyles().then(function(){e(n)},t)},t)})},s.prototype._addStyles=function(){var n=this;return this._$q(function(e){n.panelContainer.css("z-index",n.config.zIndex),n.panelEl.css("z-index",n.config.zIndex+1);function t(){n._setTheming(),n.panelEl.removeClass("_md-panel-offscreen"),n.panelContainer.addClass(a),e(n)}if(n.config.fullscreen)return n.panelEl.addClass("_md-panel-fullscreen"),void t();n.config.position?n._$rootScope.$$postDigest(function(){n._updatePosition(!0),n._setTheming(),e(n)}):t()})},s.prototype._setTheming=function(){this._$mdTheming(this.panelEl),this._$mdTheming(this.panelContainer)},s.prototype.updatePosition=function(e){if(!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");this.config.position=e,this._updatePosition()},s.prototype._updatePosition=function(e){var t=this.config.position;t&&(t._setPanelPosition(this.panelEl),e&&(this.panelEl.removeClass("_md-panel-offscreen"),this.panelContainer.addClass(a)),this.panelEl.css(h.absPosition.TOP,t.getTop()),this.panelEl.css(h.absPosition.BOTTOM,t.getBottom()),this.panelEl.css(h.absPosition.LEFT,t.getLeft()),this.panelEl.css(h.absPosition.RIGHT,t.getRight()))},s.prototype._focusOnOpen=function(){if(this.config.focusOnOpen){var e=this;this._$rootScope.$$postDigest(function(){(e._$mdUtil.findFocusTarget(e.panelEl)||e.panelEl).focus()})}},s.prototype._createBackdrop=function(){if(this.config.hasBackdrop){if(!this._backdropRef){var e=this._$mdPanel.newPanelAnimation().openFrom(this.config.attachTo).withAnimation({open:"_md-opaque-enter",close:"_md-opaque-leave"});this.config.animation&&e.duration(this.config.animation._rawDuration);var t={animation:e,attachTo:this.config.attachTo,focusOnOpen:!1,panelClass:"_md-panel-backdrop",zIndex:this.config.zIndex-1};this._backdropRef=this._$mdPanel.create(t)}if(!this._backdropRef.isAttached)return this._backdropRef.attach()}},s.prototype._addEventListeners=function(){this._configureEscapeToClose(),this._configureClickOutsideToClose(),this._configureScrollListener()},s.prototype._removeEventListeners=function(){this._removeListeners&&this._removeListeners.forEach(function(e){e()}),this._removeListeners=[]},s.prototype._configureEscapeToClose=function(){if(this.config.escapeToClose){var e=c(this.config.attachTo),t=this,n=function(e){e.keyCode===t._$mdConstant.KEY_CODE.ESCAPE&&(e.stopPropagation(),e.preventDefault(),t.close(s.closeReasons.ESCAPE))};this.panelContainer.on("keydown",n),e.on("keydown",n),this._removeListeners.push(function(){t.panelContainer.off("keydown",n),e.off("keydown",n)})}},s.prototype._configureClickOutsideToClose=function(){if(this.config.clickOutsideToClose){var t,n=this.config.propagateContainerEvents?fe.element(document.body):this.panelContainer,e=function(e){t=e.target},o=this,i=function(e){o.config.propagateContainerEvents?t===o.panelEl[0]||o.panelEl[0].contains(t)||o.close():t===n[0]&&e.target===n[0]&&(e.stopPropagation(),e.preventDefault(),o.close(s.closeReasons.CLICK_OUTSIDE))};n.on("mousedown",e),n.on("mouseup",i),this._removeListeners.push(function(){n.off("mousedown",e),n.off("mouseup",i)})}},s.prototype._configureScrollListener=function(){if(!this.config.disableParentScroll){var e=fe.bind(this,this._updatePosition),t=this._$$rAF.throttle(e),n=this,o=function(){t()};this._$window.addEventListener("scroll",o,!0),this._removeListeners.push(function(){n._$window.removeEventListener("scroll",o,!0)})}},s.prototype._configureTrapFocus=function(){if(this.panelEl.attr("tabIndex","-1"),this.config.trapFocus){var e=this.panelEl;this._topFocusTrap=n.clone()[0],this._bottomFocusTrap=n.clone()[0];var t=function(){e.focus()};this._topFocusTrap.addEventListener("focus",t),this._bottomFocusTrap.addEventListener("focus",t),this._removeListeners.push(this._simpleBind(function(){this._topFocusTrap.removeEventListener("focus",t),this._bottomFocusTrap.removeEventListener("focus",t)},this)),e[0].parentNode.insertBefore(this._topFocusTrap,e[0]),e.after(this._bottomFocusTrap)}},s.prototype.updateAnimation=function(e){this.config.animation=e,this._backdropRef&&this._backdropRef.config.animation.duration(e._rawDuration)},s.prototype._animateOpen=function(){this.panelContainer.addClass("md-panel-is-showing");var n=this.config.animation;if(!n)return this.panelContainer.addClass("_md-panel-shown"),this._$q.when(this);var o=this;return this._$q(function(e){var t=o._done(e,o);n.animateOpen(o.panelEl).then(t,function(){o._$log.warn("mdPanel: MdPanel Animations failed. Showing panel without animating."),t()})})},s.prototype._animateClose=function(){var n=this.config.animation;if(!n)return this.panelContainer.removeClass("md-panel-is-showing"),this.panelContainer.removeClass("_md-panel-shown"),this._$q.when(this);var o=this;return this._$q(function(e){function t(){o.panelContainer.removeClass("md-panel-is-showing"),e(o)}n.animateClose(o.panelEl).then(t,function(){o._$log.warn("mdPanel: MdPanel Animations failed. Hiding panel without animating."),t()})})},s.prototype.registerInterceptor=function(e,t){var n=null;if(fe.isString(e)?fe.isFunction(t)||(n="Interceptor callback must be a function, instead got "+typeof t):n="Interceptor type must be a string, instead got "+typeof e,n)throw new Error("MdPanel: "+n);var o=this._interceptors[e]=this._interceptors[e]||[];return-1===o.indexOf(t)&&o.push(t),this},s.prototype.removeInterceptor=function(e,t){var n=this._interceptors[e]?this._interceptors[e].indexOf(t):-1;return-1<n&&this._interceptors[e].splice(n,1),this},s.prototype.removeAllInterceptors=function(e){return e?this._interceptors[e]=[]:this._interceptors=Object.create(null),this},s.prototype._callInterceptors=function(e){var o=this,i=o._$q;return(o._interceptors&&o._interceptors[e]||[]).reduceRight(function(e,t){var n=t&&fe.isFunction(t.then)?t:null;return e.then(function(){if(!n)try{n=t(o)}catch(e){n=i.reject(e)}return n})},i.resolve(o))},s.prototype._simpleBind=function(t,n){return function(e){return t.apply(n,e)}},s.prototype._done=function(e,t){return function(){e(t)}},s.prototype.addToGroup=function(e){this._$mdPanel._groups[e]||this._$mdPanel.newPanelGroup(e);var t=this._$mdPanel._groups[e];t.panels.indexOf(this)<0&&t.panels.push(this)},s.prototype.removeFromGroup=function(e){if(!this._$mdPanel._groups[e])throw new Error("mdPanel: The group "+e+" does not exist.");var t=this._$mdPanel._groups[e],n=t.panels.indexOf(this);-1<n&&t.panels.splice(n,1)},s.closeReasons={CLICK_OUTSIDE:"clickOutsideToClose",ESCAPE:"escapeToClose"},h.xPosition={CENTER:"center",ALIGN_START:"align-start",ALIGN_END:"align-end",OFFSET_START:"offset-start",OFFSET_END:"offset-end"},h.yPosition={CENTER:"center",ALIGN_TOPS:"align-tops",ALIGN_BOTTOMS:"align-bottoms",ABOVE:"above",BELOW:"below"},h.absPosition={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},h.viewportMargin=8,h.prototype.absolute=function(){return this._absolute=!0,this},h.prototype._setPosition=function(e,t){if(e===h.absPosition.RIGHT||e===h.absPosition.LEFT)this._left=this._right="";else{if(e!==h.absPosition.BOTTOM&&e!==h.absPosition.TOP){var n=Object.keys(h.absPosition).join().toLowerCase();throw new Error("mdPanel: Position must be one of "+n+".")}this._top=this._bottom=""}return this["_"+e]=fe.isString(t)?t:"0",this},h.prototype.top=function(e){return this._setPosition(h.absPosition.TOP,e)},h.prototype.bottom=function(e){return this._setPosition(h.absPosition.BOTTOM,e)},h.prototype.start=function(e){var t=this._isRTL?h.absPosition.RIGHT:h.absPosition.LEFT;return this._setPosition(t,e)},h.prototype.end=function(e){var t=this._isRTL?h.absPosition.LEFT:h.absPosition.RIGHT;return this._setPosition(t,e)},h.prototype.left=function(e){return this._setPosition(h.absPosition.LEFT,e)},h.prototype.right=function(e){return this._setPosition(h.absPosition.RIGHT,e)},h.prototype.centerHorizontally=function(){return this._left="50%",this._right="",this._translateX=["-50%"],this},h.prototype.centerVertically=function(){return this._top="50%",this._bottom="",this._translateY=["-50%"],this},h.prototype.center=function(){return this.centerHorizontally().centerVertically()},h.prototype.relativeTo=function(e){return this._absolute=!1,this._relativeToEl=c(e),this},h.prototype.addPanelPosition=function(e,t){if(!this._relativeToEl)throw new Error("mdPanel: addPanelPosition can only be used with relative positioning. Set relativeTo first.");return this._validateXPosition(e),this._validateYPosition(t),this._positions.push({x:e,y:t}),this},h.prototype._validateYPosition=function(e){if(null!=e){for(var t,n=Object.keys(h.yPosition),o=[],i=0;t=n[i];i++){var r=h.yPosition[t];if(o.push(r),r===e)return}throw new Error("mdPanel: Panel y position only accepts the following values:\n"+o.join(" | "))}},h.prototype._validateXPosition=function(e){if(null!=e){for(var t,n=Object.keys(h.xPosition),o=[],i=0;t=n[i];i++){var r=h.xPosition[t];if(o.push(r),r===e)return}throw new Error("mdPanel: Panel x Position only accepts the following values:\n"+o.join(" | "))}},h.prototype.withOffsetX=function(e){return this._translateX.push(m(e)),this},h.prototype.withOffsetY=function(e){return this._translateY.push(m(e)),this},h.prototype.getTop=function(){return this._top},h.prototype.getBottom=function(){return this._bottom},h.prototype.getLeft=function(){return this._left},h.prototype.getRight=function(){return this._right},h.prototype.getTransform=function(){return(this._reduceTranslateValues("translateX",this._translateX)+" "+this._reduceTranslateValues("translateY",this._translateY)).trim()},h.prototype._setTransform=function(e){return e.css(this._$mdConstant.CSS.TRANSFORM,this.getTransform())},h.prototype._isOnscreen=function(e){var t=parseInt(this.getLeft()),n=parseInt(this.getTop());if(this._translateX.length||this._translateY.length){var o=function(e,t){var n=getComputedStyle(e[0]||e)[t],o=n.indexOf("("),i=n.lastIndexOf(")"),r={x:0,y:0};if(-1<o&&-1<i){var a=n.substring(o+1,i).split(", ").slice(-2);r.x=parseInt(a[0]),r.y=parseInt(a[1])}return r}(e,this._$mdConstant.CSS.TRANSFORM);t+=o.x,n+=o.y}var i=t+e[0].offsetWidth,r=n+e[0].offsetHeight;return 0<=t&&0<=n&&r<=this._$window.innerHeight&&i<=this._$window.innerWidth},h.prototype.getActualPosition=function(){return this._actualPosition},h.prototype._reduceTranslateValues=function(n,e){return e.map(function(e){var t=fe.isFunction(e)?m(e(this)):e;return n+"("+t+")"},this).join(" ")},h.prototype._setPanelPosition=function(e){if(e.removeClass("_md-panel-position-adjusted"),this._absolute)this._setTransform(e);else{if(this._actualPosition)return this._calculatePanelPosition(e,this._actualPosition),this._setTransform(e),void this._constrainToViewport(e);for(var t=0;t<this._positions.length;t++)if(this._actualPosition=this._positions[t],this._calculatePanelPosition(e,this._actualPosition),this._setTransform(e),this._isOnscreen(e))return;this._constrainToViewport(e)}},h.prototype._constrainToViewport=function(e){var t=h.viewportMargin,n=this._top,o=this._left;if(this.getTop()){var i=parseInt(this.getTop()),r=e[0].offsetHeight+i,a=this._$window.innerHeight;i<t?this._top=t+"px":a<r&&(this._top=i-(r-a+t)+"px")}if(this.getLeft()){var d=parseInt(this.getLeft()),s=e[0].offsetWidth+d,l=this._$window.innerWidth;d<t?this._left=t+"px":l<s&&(this._left=d-(s-l+t)+"px")}e.toggleClass("_md-panel-position-adjusted",this._top!==n||this._left!==o)},h.prototype._reverseXPosition=function(e){if(e===h.xPosition.CENTER)return e;return-1<e.indexOf("start")?e.replace("start","end"):e.replace("end","start")},h.prototype._bidi=function(e){return this._isRTL?this._reverseXPosition(e):e},h.prototype._calculatePanelPosition=function(e,t){var n=e[0].getBoundingClientRect(),o=Math.max(n.width,e[0].clientWidth),i=Math.max(n.height,e[0].clientHeight),r=this._relativeToEl[0].getBoundingClientRect(),a=r.left,d=r.right,s=r.width;switch(this._bidi(t.x)){case h.xPosition.OFFSET_START:this._left=a-o+"px";break;case h.xPosition.ALIGN_END:this._left=d-o+"px";break;case h.xPosition.CENTER:var l=a+.5*s-.5*o;this._left=l+"px";break;case h.xPosition.ALIGN_START:this._left=a+"px";break;case h.xPosition.OFFSET_END:this._left=d+"px"}var c=r.top,m=r.bottom,u=r.height;switch(t.y){case h.yPosition.ABOVE:this._top=c-i+"px";break;case h.yPosition.ALIGN_BOTTOMS:this._top=m-i+"px";break;case h.yPosition.CENTER:var p=c+.5*u-.5*i;this._top=p+"px";break;case h.yPosition.ALIGN_TOPS:this._top=c+"px";break;case h.yPosition.BELOW:this._top=m+"px"}},l.animation={SLIDE:"md-panel-animate-slide",SCALE:"md-panel-animate-scale",FADE:"md-panel-animate-fade"},l.prototype.openFrom=function(e){return e=e.target?e.target:e,this._openFrom=this._getPanelAnimationTarget(e),this._closeTo||(this._closeTo=this._openFrom),this},l.prototype.closeTo=function(e){return this._closeTo=this._getPanelAnimationTarget(e),this},l.prototype.duration=function(e){return e&&(fe.isNumber(e)?this._openDuration=this._closeDuration=t(e):fe.isObject(e)&&(this._openDuration=t(e.open),this._closeDuration=t(e.close))),this._rawDuration=e,this;function t(e){if(fe.isNumber(e))return e/1e3}},l.prototype._getPanelAnimationTarget=function(e){return fe.isDefined(e.top)||fe.isDefined(e.left)?{element:ge,bounds:{top:e.top||0,left:e.left||0}}:this._getBoundingClientRect(c(e))},l.prototype.withAnimation=function(e){return this._animationClass=e,this},l.prototype.animateOpen=function(e){var t=this._$mdUtil.dom.animator;this._fixBounds(e);var n={},o=e[0].style.transform||"",i=t.toTransformCss(o),r=t.toTransformCss(o);switch(this._animationClass){case l.animation.SLIDE:e.css("opacity","1"),n={transitionInClass:"_md-panel-animate-enter"};var a=t.calculateSlideToOrigin(e,this._openFrom)||"";i=t.toTransformCss(a+" "+o);break;case l.animation.SCALE:n={transitionInClass:"_md-panel-animate-enter"};var d=t.calculateZoomToOrigin(e,this._openFrom)||"";i=t.toTransformCss(o+" "+d);break;case l.animation.FADE:n={transitionInClass:"_md-panel-animate-enter"};break;default:n=fe.isString(this._animationClass)?{transitionInClass:this._animationClass}:{transitionInClass:this._animationClass.open,transitionOutClass:this._animationClass.close}}return n.duration=this._openDuration,t.translate3d(e,i,r,n)},l.prototype.animateClose=function(e){var t=this._$mdUtil.dom.animator,n={},o=e[0].style.transform||"",i=t.toTransformCss(o),r=t.toTransformCss(o);switch(this._animationClass){case l.animation.SLIDE:e.css("opacity","1"),n={transitionInClass:"_md-panel-animate-leave"};var a=t.calculateSlideToOrigin(e,this._closeTo)||"";r=t.toTransformCss(a+" "+o);break;case l.animation.SCALE:n={transitionInClass:"_md-panel-animate-scale-out _md-panel-animate-leave"};var d=t.calculateZoomToOrigin(e,this._closeTo)||"";r=t.toTransformCss(o+" "+d);break;case l.animation.FADE:n={transitionInClass:"_md-panel-animate-fade-out _md-panel-animate-leave"};break;default:n=fe.isString(this._animationClass)?{transitionOutClass:this._animationClass}:{transitionInClass:this._animationClass.close,transitionOutClass:this._animationClass.open}}return n.duration=this._closeDuration,t.translate3d(e,i,r,n)},l.prototype._fixBounds=function(e){var t=e[0].offsetWidth,n=e[0].offsetHeight;this._openFrom&&null==this._openFrom.bounds.height&&(this._openFrom.bounds.height=n),this._openFrom&&null==this._openFrom.bounds.width&&(this._openFrom.bounds.width=t),this._closeTo&&null==this._closeTo.bounds.height&&(this._closeTo.bounds.height=n),this._closeTo&&null==this._closeTo.bounds.width&&(this._closeTo.bounds.width=t)},l.prototype._getBoundingClientRect=function(e){if(e instanceof fe.element)return{element:e,bounds:e[0].getBoundingClientRect()}}}(),fe.module("material.components.progressCircular",["material.core"]),qe.$inject=["$window","$mdProgressCircular","$mdTheming","$mdUtil","$interval","$log"],fe.module("material.components.progressCircular").directive("mdProgressCircular",qe),fe.module("material.components.progressCircular").provider("$mdProgressCircular",function(){var t={progressSize:50,strokeWidth:10,duration:100,easeFn:e,durationIndeterminate:1333,startIndeterminate:1,endIndeterminate:149,easeFnIndeterminate:n,easingPresets:{linearEase:e,materialEase:n}};return{configure:function(e){return t=fe.extend(t,e||{})},$get:function(){return t}};function e(e,t,n,o){return n*e/o+t}function n(e,t,n,o){var i=(e/=o)*e,r=i*e;return t+n*(6*r*i+-15*i*i+10*r)}}),ze.$inject=["$mdTheming","$mdUtil","$log"],fe.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",ze),We.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],Ve.$inject=["$mdAria","$mdUtil","$mdTheming"],fe.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",We).directive("mdRadioButton",Ve),function(){e.$inject=["$mdSelect","$mdUtil","$mdConstant","$mdTheming","$mdAria","$parse","$sce","$injector"],t.$inject=["$parse","$mdUtil","$mdConstant","$mdTheming"],n.$inject=["$mdButtonInkRipple","$mdUtil","$mdTheming"],o.$inject=["$$interimElementProvider"];var P=8,f=0,c=fe.element('<div class="md-container"><div class="md-icon"></div></div>');function e(k,x,N,S,D,I,H,e){var t=N.KEY_CODE;t.SPACE,t.ENTER,t.UP_ARROW,t.DOWN_ARROW;return{restrict:"E",require:["^?mdInputContainer","mdSelect","ngModel","?^form"],compile:function(e,t){var n=fe.element("<md-select-value><span></span></md-select-value>");n.append('<span class="md-select-icon" aria-hidden="true"></span>'),n.addClass("md-select-value"),n[0].hasAttribute("id")||n.attr("id","select_value_label_"+x.nextUid());var o=e.find("md-content");o.length||e.append(fe.element("<md-content>").append(e.contents()));o.attr("role","presentation"),t.mdOnOpen&&(e.find("md-content").prepend(fe.element('<div> <md-progress-circular md-mode="indeterminate" ng-if="$$loadingAsyncDone === false" md-diameter="25px"></md-progress-circular></div>')),e.find("md-option").attr("ng-show","$$loadingAsyncDone"));if(t.name){var i=fe.element('<select class="md-visually-hidden"></select>');i.attr({name:t.name,"aria-hidden":"true",tabindex:"-1"});var r=e.find("md-option");fe.forEach(r,function(e){var t=fe.element("<option>"+e.innerHTML+"</option>");e.hasAttribute("ng-value")?t.attr("ng-value",e.getAttribute("ng-value")):e.hasAttribute("value")&&t.attr("value",e.getAttribute("value")),i.append(t)}),i.append('<option ng-value="'+t.ngModel+'" selected></option>'),e.parent().append(i)}var _=x.parseAttributeBoolean(t.multiple),a=_?"multiple":"",d='<div class="md-select-menu-container" aria-hidden="true" role="presentation"><md-select-menu role="presentation" {0}>{1}</md-select-menu></div>';d=x.supplant(d,[a,e.html()]),e.empty().append(n),e.append(d),t.tabindex||t.$set("tabindex",0);return function(o,n,i,e){var t,r,a,d,s,l=!0,c=e[0],m=e[1],u=e[2],p=e[3],h=n.find("md-select-value"),f=fe.isDefined(i.readonly),g=x.parseAttributeBoolean(i.mdNoAsterisk);if(g&&n.addClass("md-no-asterisk"),c){var b=c.isErrorGetter||function(){return u.$invalid&&(u.$touched||p&&p.$submitted)};if(c.input&&n.find("md-select-header").find("input")[0]!==c.input[0])throw new Error("<md-input-container> can only have *one* child <input>, <textarea> or <select> element!");c.input=n,c.label||D.expect(n,"aria-label",n.attr("placeholder")),o.$watch(b,c.setInvalid)}!function(){if(a=fe.element(n[0].querySelector(".md-select-menu-container")),d=o,i.mdContainerClass){var e=a[0].getAttribute("class")+" "+i.mdContainerClass;a[0].setAttribute("class",e)}(s=a.find("md-select-menu").controller("mdSelectMenu")).init(u,i.ngModel),n.on("$destroy",function(){a.remove()})}(),S(n);var v,E=u.$render;if(u.$render=function(){E(),$(),y(),T()},i.$observe("placeholder",u.$render),c&&c.label&&i.$observe("required",function(e){c.label.toggleClass("md-required",e&&!g)}),m.setLabelText=function(e){m.setIsPlaceholder(!e);var t=!1;if(i.mdSelectedText&&i.mdSelectedHtml)throw Error("md-select cannot have both `md-selected-text` and `md-selected-html`");if(i.mdSelectedText||i.mdSelectedHtml)e=I(i.mdSelectedText||i.mdSelectedHtml)(o),t=!0;else if(!e){e=i.placeholder||(c&&c.label?c.label.text():"")||"",t=!0}var n=h.children().eq(0);i.mdSelectedHtml?n.html(H.getTrustedHtml(e)):t?n.text(e):n.html(e)},m.setIsPlaceholder=function(e){e?(h.addClass("md-select-placeholder"),c&&c.label&&c.label.addClass("md-placeholder")):(h.removeClass("md-select-placeholder"),c&&c.label&&c.label.removeClass("md-placeholder"))},!f){n.on("focus",function(e){c&&c.setFocused(!0)}),n.on("blur",function(e){l&&(l=!1,d._mdSelectIsOpen&&e.stopImmediatePropagation()),c&&c.setFocused(!1),T()})}function $(){a&&(s=s||a.find("md-select-menu").controller("mdSelectMenu"),m.setLabelText(s.selectedLabels()))}function y(){if(r){var e=s.selectedLabels({mode:"aria"});n.attr("aria-label",e.length?r+": "+e:r)}}m.triggerClose=function(){I(i.mdOnClose)(o)},o.$$postDigest(function(){!function(){var e=n.attr("aria-label")||n.attr("placeholder");!e&&c&&c.label&&(e=c.label.text());r=e,D.expect(n,"aria-label",e)}(),$(),y()}),o.$watch(function(){return s.selectedLabels()},$),i.$observe("ngMultiple",function(e){v&&v();var t=I(e);v=o.$watch(function(){return t(o)},function(e,t){e===ge&&t===ge||(e?n.attr("multiple","multiple"):n.removeAttr("multiple"),n.attr("aria-multiselectable",e?"true":"false"),a&&(s.setMultiple(e),E=u.$render,u.$render=function(){E(),$(),y(),T()},u.$render()))})}),i.$observe("disabled",function(e){fe.isString(e)&&(e=!0),t!==ge&&t===e||((t=e)?n.attr({"aria-disabled":"true"}).removeAttr("tabindex").off("click",w).off("keydown",A):n.attr({tabindex:i.tabindex,"aria-disabled":"false"}).on("click",w).on("keydown",A))}),i.hasOwnProperty("disabled")||i.hasOwnProperty("ngDisabled")||(n.attr({"aria-disabled":"false"}),n.on("click",w),n.on("keydown",A));var C={role:"listbox","aria-expanded":"false","aria-multiselectable":_&&!i.ngMultiple?"true":"false"};n[0].hasAttribute("id")||(C.id="select_"+x.nextUid());var M="select_container_"+x.nextUid();function T(){x.nextTick(function(){c&&c.setHasValue(0<s.selectedLabels().length||(n[0].validity||{}).badInput)})}function A(e){if(N.isNavigationKey(e))e.preventDefault(),w();else if(L(e,N)){e.preventDefault();var t=s.optNodeForKeyboardSearch(e);if(!t||t.hasAttribute("disabled"))return;var n=fe.element(t).controller("mdOption");s.isMultiple||s.deselect(Object.keys(s.selected)[0]),s.select(n.hashKey,n.value),s.refreshViewValue()}}function w(){d._mdSelectIsOpen=!0,n.attr("aria-expanded","true"),k.show({scope:d,preserveScope:!0,skipCompile:!0,element:a,target:n[0],selectCtrl:m,preserveElement:!0,hasBackdrop:!0,loadingAsync:!!i.mdOnOpen&&(o.$eval(i.mdOnOpen)||!0)}).finally(function(){d._mdSelectIsOpen=!1,n.attr("aria-expanded","false"),u.$setTouched()})}a.attr("id",M),n.find("md-select-menu").length||(C["aria-owns"]=M),n.attr(C),o.$on("$destroy",function(){k.destroy().finally(function(){c&&(c.setFocused(!1),c.setHasValue(!1),c.input=null),u.$setTouched()})})}},controller:function(){}}}function t(p,h,e,i){return{restrict:"E",require:["mdSelectMenu"],scope:!(t.$inject=["$scope","$attrs","$element"]),controller:t,link:{pre:function(r,e,t,n){var a=n[0];function o(e){var t=h.getClosest(e.target,"md-option"),n=t&&fe.element(t).data("$mdOptionController");if(t&&n){if(t.hasAttribute("disabled"))return e.stopImmediatePropagation(),!1;var o=a.hashGetter(n.value),i=fe.isDefined(a.selected[o]);r.$apply(function(){a.isMultiple?i?a.deselect(o):a.select(o,n.value):i||(a.deselect(Object.keys(a.selected)[0]),a.select(o,n.value)),a.refreshViewValue()})}}e.addClass("_md"),i(e),e.on("click",o),e.on("keypress",function(e){13!=e.keyCode&&32!=e.keyCode||o(e)})}}};function t(r,e,i){var a,d=this;d.isMultiple=fe.isDefined(e.multiple),d.selected={},d.options={},r.$watchCollection(function(){return d.options},function(){d.ngModel.$render()}),d.setMultiple=function(e){var t=d.ngModel;if(a=a||t.$isEmpty,d.isMultiple=e,d.isMultiple){var n=!1,o=function(e){n?m():h.nextTick(function(){m(),n=!0})};t.$validators["md-multiple"]=i,t.$render=o,r.$watchCollection(d.modelBinding,function(e){i(e)&&o()}),t.$isEmpty=function(e){return!e||0===e.length}}else delete t.$validators["md-multiple"],t.$render=u;function i(e,t){return fe.isArray(e||t||[])}};var o,s,l,c="";function m(){var n=d.ngModel.$modelValue||d.ngModel.$viewValue||[];if(fe.isArray(n)){var e=Object.keys(d.selected),t=n.map(d.hashGetter);e.filter(function(e){return-1===t.indexOf(e)}).forEach(d.deselect),t.forEach(function(e,t){d.select(e,n[t])})}}function u(){var e=d.ngModel.$viewValue||d.ngModel.$modelValue;Object.keys(d.selected).forEach(d.deselect),d.select(d.hashGetter(e),e)}d.optNodeForKeyboardSearch=function(e){o&&clearTimeout(o),o=setTimeout(function(){c="",s=l=o=ge},300),c+=e.key;var t=new RegExp("^"+c,"i");s||(s=i.find("md-option"),l=new Array(s.length),fe.forEach(s,function(e,t){l[t]=e.textContent.trim()}));for(var n=0;n<l.length;++n)if(t.test(l[n]))return s[n]},d.init=function(e,t){d.ngModel=e,d.modelBinding=t,d.ngModel.$isEmpty=function(e){return!d.options[d.hashGetter(e)]};var n=h.getModelOption(e,"trackBy");if(n){var o={},i=p(n);d.hashGetter=function(e,t){return o.$value=e,i(t||r,o)}}else d.hashGetter=function(e){return fe.isObject(e)?"object_"+(e.$$mdSelectId||(e.$$mdSelectId=++f)):e};d.setMultiple(d.isMultiple)},d.selectedLabels=function(e){var t,n=(e=e||{}).mode||"html",o=h.nodesToArray(i[0].querySelectorAll("md-option[selected]"));return o.length?("html"==n?t=function(e){if(e.hasAttribute("md-option-empty"))return"";var t=e.innerHTML,n=e.querySelector(".md-ripple-container");n&&(t=t.replace(n.outerHTML,""));var o=e.querySelector(".md-container");return o&&(t=t.replace(o.outerHTML,"")),t}:"aria"==n&&(t=function(e){return e.hasAttribute("aria-label")?e.getAttribute("aria-label"):e.textContent}),h.uniq(o.map(t)).join(", ")):""},d.select=function(e,t){var n=d.options[e];n&&n.setSelected(!0),d.selected[e]=t},d.deselect=function(e){var t=d.options[e];t&&t.setSelected(!1),delete d.selected[e]},d.addOption=function(e,t){if(fe.isDefined(d.options[e]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+t.value+'" found.');d.options[e]=t,fe.isDefined(d.selected[e])&&(d.select(e,t.value),fe.isDefined(d.ngModel.$$rawModelValue)&&d.hashGetter(d.ngModel.$$rawModelValue)===e&&d.ngModel.$validate(),d.refreshViewValue())},d.removeOption=function(e){delete d.options[e]},d.refreshViewValue=function(){var e,t=[];for(var n in d.selected)(e=d.options[n])?t.push(e.value):t.push(d.selected[n]);var o=h.getModelOption(d.ngModel,"trackBy"),i=d.isMultiple?t:t[0],r=d.ngModel.$modelValue;(o?fe.equals(r,i):r+""===i)||(d.ngModel.$setViewValue(i),d.ngModel.$render())}}}function n(o,i,l){return e.$inject=["$element"],{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:e,compile:function(e,t){e.append(fe.element('<div class="md-text">').append(e.contents())),e.attr("tabindex",t.tabindex||"0"),function(e){var t=e.value,n=e.ngValue;return t||n}(t)||e.attr("md-option-empty","");return n}};function n(r,t,e,n){var a=n[0],d=n[1];function s(e,t,n){if(d.hashGetter){var o=d.hashGetter(t,r),i=d.hashGetter(e,r);a.hashKey=i,a.value=e,d.removeOption(o,a),d.addOption(i,a)}else n||r.$$postDigest(function(){s(e,t,!0)})}l(t),d.isMultiple&&(t.addClass("md-checkbox-enabled"),t.prepend(c.clone())),fe.isDefined(e.ngValue)?r.$watch(e.ngValue,s):fe.isDefined(e.value)?s(e.value):r.$watch(function(){return t.text().trim()},s),e.$observe("disabled",function(e){e?t.attr("tabindex","-1"):t.attr("tabindex","0")}),r.$$postDigest(function(){e.$observe("selected",function(e){fe.isDefined(e)&&("string"==typeof e&&(e=!0),e?(d.isMultiple||d.deselect(Object.keys(d.selected)[0]),d.select(a.hashKey,a.value)):d.deselect(a.hashKey),d.refreshViewValue())})}),o.attach(r,t),function(){var e={role:"option","aria-selected":"false"};t[0].hasAttribute("id")||(e.id="select_option_"+i.nextUid());t.attr(e)}(),r.$on("$destroy",function(){d.removeOption(a.hashKey,a)})}function e(t){this.selected=!1,this.setSelected=function(e){e&&!this.selected?t.attr({selected:"selected","aria-selected":"true"}):!e&&this.selected&&(t.removeAttr("selected"),t.attr("aria-selected","false")),this.selected=e}}}function o(e){return t.$inject=["$mdSelect","$mdConstant","$mdUtil","$window","$q","$$rAF","$animateCss","$animate","$document"],e("$mdSelect").setDefaults({methods:["target"],options:t});function t(s,l,D,I,r,c,m,u,H){var p=D.dom.animator,h=l.KEY_CODE;return{parent:"body",themable:!0,onShow:function(n,a,d){return function(){d.loadingAsync&&!d.isRemoved&&(n.$$loadingAsyncDone=!1,r.when(d.loadingAsync).then(function(){n.$$loadingAsyncDone=!0,delete d.loadingAsync}).then(function(){c(o)}))}(),function(e,t){var n=a.find("md-select-menu");if(!t.target)throw new Error(D.supplant("$mdSelect.show() expected a target element in options.target but got '{0}'!",[t.target]));fe.extend(t,{isRemoved:!1,target:fe.element(t.target),parent:fe.element(t.parent),selectEl:n,contentEl:a.find("md-content"),optionNodes:n[0].getElementsByTagName("md-option")})}(0,d),d.hideBackdrop=function(e,t,n){n.disableParentScroll&&!D.getClosest(n.target,"MD-DIALOG")?n.restoreScroll=D.disableScrollAround(n.element,n.parent):n.disableParentScroll=!1;n.hasBackdrop&&(n.backdrop=D.createBackdrop(e,"md-select-backdrop md-click-catcher"),u.enter(n.backdrop,H[0].body,null,{duration:0}));return function(){n.backdrop&&n.backdrop.remove(),n.disableParentScroll&&n.restoreScroll(),delete n.restoreScroll}}(n,0,d),function(e,n,t){t.parent!==n.parent()&&n.parent().attr("aria-owns",n.attr("id"));return n.parent().find("md-select-value").attr("aria-hidden","true"),t.parent.append(n),r(function(e,t){try{m(n,{removeClass:"md-leave",duration:0}).start().then(o).then(e)}catch(e){t(e)}})}(0,a,d).then(function(e){return a.attr("aria-hidden","false"),d.alreadyOpen=!0,d.cleanupInteraction=function(){if(d.isRemoved)return;var o=d.selectEl,t=o.controller("mdSelectMenu")||{};return a.addClass("md-clickable"),d.backdrop&&d.backdrop.on("click",e),o.on("keydown",n),o.on("click",r),function(){d.backdrop&&d.backdrop.off("click",e),o.off("keydown",n),o.off("click",r),a.removeClass("md-clickable"),d.isRemoved=!0};function e(e){e.preventDefault(),e.stopPropagation(),d.restoreFocus=!1,D.nextTick(s.hide,!0)}function n(e){switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case h.UP_ARROW:return void i("prev");case h.DOWN_ARROW:return void i("next");case h.SPACE:case h.ENTER:var t=D.getClosest(e.target,"md-option");t&&(o.triggerHandler({type:"click",target:t}),e.preventDefault()),r(e);break;case h.TAB:case h.ESCAPE:e.stopPropagation(),e.preventDefault(),d.restoreFocus=!0,D.nextTick(s.hide,!0);break;default:if(L(e,l)){var n=o.controller("mdSelectMenu").optNodeForKeyboardSearch(e);d.focusedNode=n||d.focusedNode,n&&n.focus()}}}function i(e){for(var t,n=D.nodesToArray(d.optionNodes),o=n.indexOf(d.focusedNode);-1===o?o=0:"next"===e&&o<n.length-1?o++:"prev"===e&&0<o&&o--,(t=n[o]).hasAttribute("disabled")&&(t=ge),!t&&o<n.length-1&&0<o;);t&&t.focus(),d.focusedNode=t}function r(n){if(!(n&&"click"==n.type&&n.currentTarget!=o[0]||function(){var e=!1;if(n&&0<n.currentTarget.children.length){var t=n.currentTarget.children[0];if(t.scrollHeight>t.clientHeight&&0<t.children.length)n.pageX-n.currentTarget.getBoundingClientRect().left>t.querySelector("md-option").offsetWidth&&(e=!0)}return e}())){var e=D.getClosest(n.target,"md-option");e&&e.hasAttribute&&!e.hasAttribute("disabled")&&(n.preventDefault(),n.stopPropagation(),t.isMultiple||(d.restoreFocus=!0,D.nextTick(function(){s.hide(t.ngModel.$viewValue)},!0)))}}}(),d.cleanupResizing=function(){var e=function(o,i,r){return function(){if(!r.isRemoved){var e=f(o,i,r),t=e.container,n=e.dropDown;t.element.css(p.toCss(t.styles)),n.element.css(p.toCss(n.styles))}}}(n,a,d),t=fe.element(I);return t.on("resize",e),t.on("orientationchange",e),function(){t.off("resize",e),t.off("orientationchange",e)}}(),i(d.focusedNode),e},d.hideBackdrop);function o(){return r(function(e){if(d.isRemoved)return r.reject(!1);var t=f(n,a,d);t.container.element.css(p.toCss(t.container.styles)),t.dropDown.element.css(p.toCss(t.dropDown.styles)),c(function(){a.addClass("md-active"),t.dropDown.element.css(p.toCss({transform:""})),i(d.focusedNode),e()})})}function i(e){e&&!e.hasAttribute("disabled")&&e.focus()}},onRemove:function(e,t,n){var o=null,i=e.$on("$destroy",function(){o.end()});return(n=n||{}).cleanupInteraction(),n.cleanupResizing(),n.hideBackdrop(),!0===n.$destroy?r():function(){return(o=m(t,{addClass:"md-leave"})).start()}().then(r);function r(){i(),t.removeClass("md-active").attr("aria-hidden","true").css({display:"none",top:"",right:"",bottom:"",left:"","font-size":"","min-width":""}),t.parent().find("md-select-value").removeAttr("aria-hidden"),function(e){var t=e.selectCtrl;if(t){var n=e.selectEl.controller("mdSelectMenu");t.setLabelText(n?n.selectedLabels():""),t.triggerClose()}}(n),!n.$destroy&&n.restoreFocus&&n.target.focus()}},hasBackdrop:!0,disableParentScroll:!0};function f(e,t,n){var o,i=t[0],r=n.target[0].children[0],a=H[0].body,d=n.selectEl[0],s=n.contentEl[0],l=a.getBoundingClientRect(),c=r.getBoundingClientRect(),m={left:l.left+P,top:P,bottom:l.height-P,right:l.width-P-(D.floatingScrollbars()?16:0)},u=c.top-m.top,p=(c.left,c.left,c.width,m.bottom-(c.top+c.height)),h=l.width-2*P,f=d.querySelector("md-option[selected]"),g=d.getElementsByTagName("md-option"),b=d.getElementsByTagName("md-optgroup"),v=function(e,t){var n=!1;try{var o=e[0].style.display;e[0].style.display="block",n=t.scrollHeight>t.offsetHeight,e[0].style.display=o}finally{}return n}(t,s);o=function(e){return e&&fe.isFunction(e.then)}(n.loadingAsync)?s.firstElementChild||s:f||(b.length?b[0]:g.length?g[0]:s.firstElementChild||s),s.offsetWidth>h?s.style["max-width"]=h+"px":s.style.maxWidth=null,v&&d.classList.add("md-overflow");var E=o;"MD-OPTGROUP"===(E.tagName||"").toUpperCase()&&(o=E=g[0]||s.firstElementChild||s),n.focusedNode=E,i.style.display="block";var $,y,C,M,T,A=d.getBoundingClientRect(),w=function(e){return e?{left:e.offsetLeft,top:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}:{left:0,top:0,width:0,height:0}}(o);if(o){var _=I.getComputedStyle(o);w.paddingLeft=parseInt(_.paddingLeft,10)||0,w.paddingRight=parseInt(_.paddingRight,10)||0}if(v){var k=s.offsetHeight/2;s.scrollTop=w.top+w.height/2-k,u<k?s.scrollTop=Math.min(w.top,s.scrollTop+k-u):p<k&&(s.scrollTop=Math.max(w.top+w.height-A.height,s.scrollTop-k+p))}$=c.left+w.left-w.paddingLeft+2,y=Math.floor(c.top+c.height/2-w.height/2-w.top+s.scrollTop)+2,C=w.left+c.width/2+"px "+(w.top+w.height/2-s.scrollTop)+"px 0px",M=Math.min(c.width+w.paddingLeft+w.paddingRight,h),T=R.getComputedStyle(r)["font-size"];var x=i.getBoundingClientRect(),N=Math.round(100*Math.min(c.width/A.width,1))/100,S=Math.round(100*Math.min(c.height/A.height,1))/100;return{container:{element:fe.element(i),styles:{left:Math.floor(O(m.left,$,m.right-x.width)),top:Math.floor(O(m.top,y,m.bottom-x.height)),"min-width":M,"font-size":T}},dropDown:{element:fe.element(d),styles:{transformOrigin:C,transform:n.alreadyOpen?"":D.supplant("scale({0},{1})",[N,S])}}}}}function O(e,t,n){return Math.max(e,Math.min(t,n))}}function L(e,t){var n=String.fromCharCode(e.keyCode),o=e.keyCode<=31;return n&&n.length&&!o&&!t.isMetaKey(e)&&!t.isFnLockKey(e)&&!t.hasModifierKey(e)}fe.module("material.components.select",["material.core","material.components.backdrop"]).directive("mdSelect",e).directive("mdSelectMenu",t).directive("mdOption",n).directive("mdOptgroup",function(){return{restrict:"E",compile:function(t,n){t.parent().find("md-select-header").length||function(){var e=t.find("label");e.length||(e=fe.element("<label>"),t.prepend(e));e.addClass("md-container-ignore"),e.attr("aria-hidden","true"),n.label&&e.text(n.label)}()}}}).directive("mdSelectHeader",function(){return{restrict:"E"}}).provider("$mdSelect",o)}(),fe.module("material.components.showHide",["material.core"]).directive("ngShow",Ye("ngShow",!0)).directive("ngHide",Ye("ngHide",!1)),Ke.$inject=["$mdComponentRegistry","$mdUtil","$q","$log"],Ge.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$mdInteraction","$animate","$compile","$parse","$log","$q","$document","$window","$$rAF"],Xe.$inject=["$scope","$attrs","$mdComponentRegistry","$q","$interpolate"],fe.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",Ke).directive("mdSidenav",Ge).directive("mdSidenavFocus",function(){return{restrict:"A",require:"^mdSidenav",link:function(e,t,n,o){}}}).controller("$mdSidenavController",Xe),function(){e.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log","$timeout"],fe.module("material.components.slider",["material.core"]).directive("mdSlider",e).directive("mdSliderContainer",function(){return{controller:function(){},compile:function(e){var t=e.find("md-slider");if(t)return t.attr("md-vertical")!==ge&&e.attr("md-vertical",""),t.attr("flex")||t.attr("flex",""),function(e,a,t,n){function o(e){a.children().attr("disabled",e),a.find("input").attr("disabled",e)}a.addClass("_md");var d,i=fe.noop;t.disabled?o(!0):t.ngDisabled&&(i=e.$watch(t.ngDisabled,function(e){o(e)})),e.$on("$destroy",function(){i()}),n.fitInputWidthToTextLength=function(e){var t=a[0].querySelector("md-input-container");if(t){var n=getComputedStyle(t),o=parseInt(n.minWidth),i=parseInt(n.paddingLeft)+parseInt(n.paddingRight);d=d||parseInt(n.maxWidth);var r=Math.max(d,o+i+o/2*e);t.style.maxWidth=r+"px"}}}}}});var J=10,ee=4;function e(z,W,i,V,Y,K,G,X,Q,Z){return{scope:{},require:["?ngModel","?^mdSliderContainer"],template:'<div class="md-slider-wrapper"><div class="md-slider-content"><div class="md-track-container"><div class="md-track"></div><div class="md-track md-track-fill"></div><div class="md-track-ticks"></div></div><div class="md-thumb-container"><div class="md-thumb"></div><div class="md-focus-thumb"></div><div class="md-focus-ring"></div><div class="md-sign"><span class="md-thumb-text"></span></div><div class="md-disabled-thumb"></div></div></div></div>',compile:function(e,t){var n=fe.element(e[0].getElementsByClassName("md-slider-wrapper")),o=t.tabindex||0;n.attr("tabindex",o),(t.disabled||t.ngDisabled)&&n.attr("tabindex",-1);return n.attr("role","slider"),i.expect(e,"aria-label"),r}};function r(n,o,i,e){K(o);var r=e[0]||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},a=e[1],d=(fe.element(V.getClosest(o,"_md-slider-container",!0)),i.ngDisabled?fe.bind(null,X(i.ngDisabled),n.$parent):function(){return o[0].hasAttribute("disabled")}),t=fe.element(o[0].querySelector(".md-thumb")),s=fe.element(o[0].querySelector(".md-thumb-text")),l=t.parent(),c=fe.element(o[0].querySelector(".md-track-container")),m=fe.element(o[0].querySelector(".md-track-fill")),u=fe.element(o[0].querySelector(".md-track-ticks")),p=fe.element(o[0].getElementsByClassName("md-slider-wrapper")),h=(fe.element(o[0].getElementsByClassName("md-slider-content")),V.throttle(S,5e3)),f=fe.isDefined(i.mdVertical),g=fe.isDefined(i.mdDiscrete),b=fe.isDefined(i.mdInvert);fe.isDefined(i.min)?i.$observe("min",w):w(0),fe.isDefined(i.max)?i.$observe("max",_):_(100),fe.isDefined(i.step)?i.$observe("step",k):k(1),fe.isDefined(i.round)?i.$observe("round",x):x(3);fe.noop;function v(){S(),O()}i.ngDisabled&&n.$parent.$watch(i.ngDisabled,function(){o.attr("aria-disabled",!!d())}),G.register(p,"drag",{horizontal:!f}),n.mouseActive=!1,p.on("keydown",function(e){if(d())return;var t,n=Y.KEY_CODE;switch(e.keyCode){case n.DOWN_ARROW:case n.LEFT_ARROW:e.preventDefault(),t=-y;break;case n.UP_ARROW:case n.RIGHT_ARROW:e.preventDefault(),t=y;break;case n.PAGE_DOWN:e.preventDefault(),t=-y*J;break;case n.PAGE_UP:e.preventDefault(),t=y*J;break;case n.HOME:e.preventDefault(),e.stopPropagation(),I(E);break;case n.END:e.preventDefault(),e.stopPropagation(),I($)}t&&(t=b?-t:t,(e.metaKey||e.ctrlKey||e.altKey)&&(t*=ee),e.preventDefault(),e.stopPropagation(),I(r.$viewValue+t))}).on("mousedown",function(){(function(){if(!g||d())return;if(fe.isUndefined(y))return;if(y<=0){var e="Slider step value must be greater than zero when in discrete mode";throw Q.error(e),new Error(e)}var t=Math.floor(($-E)/y);M||(M=fe.element("<canvas>").css("position","absolute"),u.append(M),T=M[0].getContext("2d"));var n,o=D();!o||o.height||o.width||(S(),o=N);M[0].width=o.width,M[0].height=o.height;for(var i=0;i<=t;i++){var r=W.getComputedStyle(u[0]);T.fillStyle=r.color||"black",n=Math.floor((f?o.height:o.width)*(i/t)),T.fillRect(f?0:n-1,f?n-1:0,f?o.width:2,f?2:o.height)}})(),n.mouseActive=!0,p.removeClass("md-focused"),Z(function(){n.mouseActive=!1},100)}).on("focus",function(){!1===n.mouseActive&&p.addClass("md-focused")}).on("blur",function(){p.removeClass("md-focused"),o.removeClass("md-active"),function(){if(M&&T){var e=D();T.clearRect(0,0,e.width,e.height)}}()}).on("$md.pressdown",function(e){if(d())return;o.addClass("md-active"),o[0].focus(),S();var t=P(L(j(U(f?e.pointer.y:e.pointer.x))));n.$apply(function(){H(t),R(q(t))})}).on("$md.pressup",function(e){if(d())return;o.removeClass("md-dragging");var t=P(L(j(U(f?e.pointer.y:e.pointer.x))));n.$apply(function(){H(t),O()})}).on("$md.dragstart",function(e){if(d())return;F=!0,e.stopPropagation(),o.addClass("md-dragging"),B(e)}).on("$md.drag",function(e){if(!F)return;e.stopPropagation(),B(e)}).on("$md.dragend",function(e){if(!F)return;e.stopPropagation(),F=!1}),setTimeout(v,0);var E,$,y,C,M,T,A=z.throttle(v);function w(e){E=parseFloat(e),r.$viewValue=P(r.$modelValue,E,$),p.attr("aria-valuemin",e),v()}function _(e){$=parseFloat(e),r.$viewValue=P(r.$modelValue,E,$),p.attr("aria-valuemax",e),v()}function k(e){y=parseFloat(e)}function x(e){C=P(parseInt(e),0,6)}fe.element(W).on("resize",A),n.$on("$destroy",function(){fe.element(W).off("resize",A)}),r.$render=O,r.$viewChangeListeners.push(O),r.$formatters.push(P),r.$formatters.push(L);var N={};function S(){N=c[0].getBoundingClientRect()}function D(){return h(),N}function I(e){n.$evalAsync(function(){H(e)})}function H(e){r.$setViewValue(P(L(e)))}function O(){isNaN(r.$viewValue)&&(r.$viewValue=r.$modelValue),r.$viewValue=P(r.$viewValue);var e=q(r.$viewValue);n.modelValue=r.$viewValue,p.attr("aria-valuenow",r.$viewValue),R(e),s.text(r.$viewValue)}function P(e,t,n){if(fe.isNumber(e))return t=fe.isNumber(t)?t:E,n=fe.isNumber(n)?n:$,Math.max(t,Math.min(n,e))}function L(e){if(fe.isNumber(e)){var t=Math.round((e-E)/y)*y+E;return t=Math.round(t*Math.pow(10,C))/Math.pow(10,C),a&&a.fitInputWidthToTextLength&&V.debounce(function(){a.fitInputWidthToTextLength(t.toString().length)},100)(),t}}function R(e){var t=100*(e=function(e){return Math.max(0,Math.min(e||0,1))}(e))+"%",n=b?100*(1-e)+"%":t;f?l.css("bottom",t):V.bidiProperty(l,"left","right",t),m.css(f?"height":"width",n),o.toggleClass(b?"md-max":"md-min",0===e),o.toggleClass(b?"md-min":"md-max",1===e)}S();var F=!1;function B(e){g?function(e){var t=P(L(j(U(e))));R(U(e)),s.text(t)}(f?e.pointer.y:e.pointer.x):function(e){n.$evalAsync(function(){H(j(U(e)))})}(f?e.pointer.y:e.pointer.x)}function U(e){var t=(e-(f?N.top:N.left))/(f?N.height:N.width);return!f&&V.isRtl(i)&&(t=1-t),Math.max(0,Math.min(1,f?1-t:t))}function j(e){return E+(b?1-e:e)*($-E)}function q(e){var t=(e-E)/($-E);return b?1-t:t}}}}(),Qe.$inject=["$mdConstant","$$rAF","$mdUtil","$compile"],fe.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",Qe),Ze.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil","$mdAria"],fe.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",Ze),fe.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",Je("SwipeLeft")).directive("mdSwipeRight",Je("SwipeRight")).directive("mdSwipeUp",Je("SwipeUp")).directive("mdSwipeDown",Je("SwipeDown")),et.$inject=["mdCheckboxDirective","$mdUtil","$mdConstant","$parse","$$rAF","$mdGesture","$timeout"],fe.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",et),fe.module("material.components.tabs",["material.core","material.components.icon"]),fe.module("material.components.tabs").service("MdTabsPaginationService",function(){return{decreasePageOffset:function(e,t){var n,o,i=e.canvas,r=d(e);for(n=0;n<r.length;n++)if(r[n]>=t){o=r[n];break}return Math.max(0,o-i.clientWidth)},increasePageOffset:function(e,t){var n,o,i=e.canvas,r=s(e)-i.clientWidth,a=d(e);for(n=0;a.length,a[n]<=t+i.clientWidth;n++)o=a[n];return Math.min(r,o)},getTabOffsets:d,getTotalTabsWidth:s};function d(e){var t,n,o=0,i=[];for(t=0;t<e.tabs.length;t++)n=e.tabs[t],i.push(o),o+=n.offsetWidth;return i}function s(e){var t,n=0;for(t=0;t<e.tabs.length;t++)n+=e.tabs[t].offsetWidth;return n}}),fe.module("material.components.tabs").directive("mdTab",function(){return{require:"^?mdTabs",terminal:!0,compile:function(e,t){var n=s(e,"md-tab-label"),o=s(e,"md-tab-body");if(0===n.length&&(n=fe.element("<md-tab-label></md-tab-label>"),t.label?n.text(t.label):n.append(e.contents()),0===o.length)){var i=e.contents().detach();(o=fe.element("<md-tab-body></md-tab-body>")).append(i)}return e.append(n),o.html()&&e.append(o),r},scope:{active:"=?mdActive",disabled:"=?ngDisabled",select:"&?mdOnSelect",deselect:"&?mdOnDeselect",tabClass:"@mdTabClass"}};function r(e,t,n,o){if(o){var i=o.getTabElementIndex(t),r=s(t,"md-tab-body").remove(),a=s(t,"md-tab-label").remove(),d=o.insertTab({scope:e,parent:e.$parent,index:i,element:t,template:r.html(),label:a.html()},i);e.select=e.select||fe.noop,e.deselect=e.deselect||fe.noop,e.$watch("active",function(e){e&&o.select(d.getIndex(),!0)}),e.$watch("disabled",function(){o.refreshIndex()}),e.$watch(function(){return o.getTabElementIndex(t)},function(e){d.index=e,o.updateTabOrder()}),e.$on("$destroy",function(){o.removeTab(d)})}}function s(e,t){for(var n=e[0].children,o=0,i=n.length;o<i;o++){var r=n[o];if(r.tagName===t.toUpperCase())return fe.element(r)}return fe.element()}}),fe.module("material.components.tabs").directive("mdTabItem",function(){return{require:"^?mdTabs",link:function(e,t,n,o){o&&o.attachRipple(e,t)}}}),fe.module("material.components.tabs").directive("mdTabLabel",function(){return{terminal:!0}}),tt.$inject=["$parse"],fe.module("material.components.tabs").directive("mdTabScroll",tt),nt.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming","$mdInteraction","$timeout","MdTabsPaginationService"],fe.module("material.components.tabs").controller("MdTabsController",nt),ot.$inject=["$$mdSvgRegistry"],fe.module("material.components.tabs").directive("mdTabs",ot),it.$inject=["$mdUtil","$window"],fe.module("material.components.tabs").directive("mdTabsDummyWrapper",it),rt.$inject=["$compile","$mdUtil"],fe.module("material.components.tabs").directive("mdTabsTemplate",rt),at.$inject=["$mdToast"],dt.$inject=["$$interimElementProvider"],fe.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",at).provider("$mdToast",dt),st.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate"],fe.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",st),lt.$inject=["$timeout","$window","$$rAF","$document","$interpolate","$mdUtil","$mdPanel","$$mdTooltipRegistry"],fe.module("material.components.tooltip",["material.core","material.components.panel"]).directive("mdTooltip",lt).service("$$mdTooltipRegistry",function(){var r={},a=fe.element(R);return{register:function(e,t,n){var o=r[e]=r[e]||[];o.length||(n?R.addEventListener(e,d,!0):a.on(e,d)),-1===o.indexOf(t)&&o.push(t)},deregister:function(e,t,n){var o=r[e],i=o?o.indexOf(t):-1;-1<i&&(o.splice(i,1),0===o.length&&(n?R.removeEventListener(e,d,!0):a.off(e,d)))}};function d(t){r[t.type]&&r[t.type].forEach(function(e){e.call(this,t)},this)}}),ct.$inject=["$element"],fe.module("material.components.truncate",["material.core"]).directive("mdTruncate",function(){return{restrict:"AE",controller:ct}}),function(){function e(e){return'<div class="md-virtual-repeat-scroller" role="presentation"><div class="md-virtual-repeat-sizer" role="presentation"></div><div class="md-virtual-repeat-offsetter" role="presentation">'+e[0].innerHTML+"</div></div>"}t.$inject=["$$rAF","$mdUtil","$mdConstant","$parse","$rootScope","$window","$scope","$element","$attrs"],i.$inject=["$scope","$element","$attrs","$browser","$document","$rootScope","$$rAF","$mdUtil"],n.$inject=["$parse"],fe.module("material.components.virtualRepeat",["material.core","material.components.showHide"]).directive("mdVirtualRepeatContainer",function(){return{controller:t,template:e,compile:function(e,t){e.addClass("md-virtual-repeat-container").addClass(t.hasOwnProperty("mdOrientHorizontal")?"md-orient-horizontal":"md-orient-vertical")}}}).directive("mdVirtualRepeat",n).directive("mdForceHeight",r);function t(e,n,t,o,i,r,a,d,s){this.$rootScope=i,this.$scope=a,this.$element=d,this.$attrs=s,this.size=0,this.scrollSize=0,this.scrollOffset=0,this.horizontal=this.$attrs.hasOwnProperty("mdOrientHorizontal"),this.repeater=null,this.autoShrink=this.$attrs.hasOwnProperty("mdAutoShrink"),this.autoShrinkMin=parseInt(this.$attrs.mdAutoShrinkMin,10)||0,this.originalSize=null,this.offsetSize=parseInt(this.$attrs.mdOffsetSize,10)||0,this.oldElementSize=null,this.maxElementPixels=t.ELEMENT_MAX_PIXELS,this.ltr=!n.isRtl(this.$attrs),this.$attrs.mdTopIndex?(this.bindTopIndex=o(this.$attrs.mdTopIndex),this.topIndex=this.bindTopIndex(this.$scope),fe.isDefined(this.topIndex)||(this.topIndex=0,this.bindTopIndex.assign(this.$scope,0)),this.$scope.$watch(this.bindTopIndex,fe.bind(this,function(e){e!==this.topIndex&&this.scrollToIndex(e)}))):this.topIndex=0,this.scroller=d[0].querySelector(".md-virtual-repeat-scroller"),this.sizer=this.scroller.querySelector(".md-virtual-repeat-sizer"),this.offsetter=this.scroller.querySelector(".md-virtual-repeat-offsetter");var l=fe.bind(this,this.updateSize);e(fe.bind(this,function(){l();var e=n.debounce(l,10,null,!1),t=fe.element(r);this.size||e(),t.on("resize",e),a.$on("$destroy",function(){t.off("resize",e)}),a.$emit("$md-resize-enable"),a.$on("$md-resize",l)}))}function n(o){return{controller:i,priority:1e3,require:["mdVirtualRepeat","^^mdVirtualRepeatContainer"],restrict:"A",terminal:!0,transclude:"element",compile:function(e,t){var n=t.mdVirtualRepeat.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)\s*$/),r=n[1],a=o(n[2]),d=t.mdExtraName&&o(t.mdExtraName);return function(e,t,n,o,i){o[0].link_(o[1],i,r,a,d)}}}}function i(e,t,n,o,i,r,a,d){this.$scope=e,this.$element=t,this.$attrs=n,this.$browser=o,this.$document=i,this.$mdUtil=d,this.$rootScope=r,this.$$rAF=a,this.onDemand=d.parseAttributeBoolean(n.mdOnDemand),this.browserCheckUrlChange=o.$$checkUrlChange,this.newStartIndex=0,this.newEndIndex=0,this.newVisibleEnd=0,this.startIndex=0,this.endIndex=0,this.itemSize=e.$eval(n.mdItemSize)||null,this.isFirstRender=!0,this.isVirtualRepeatUpdating_=!1,this.itemsLength=0,this.unwatchItemSize_=fe.noop,this.blocks={},this.pooledBlocks=[],e.$on("$destroy",fe.bind(this,this.cleanupBlocks_))}function o(e){if(!fe.isFunction(e.getItemAtIndex)||!fe.isFunction(e.getLength))throw Error("When md-on-demand is enabled, the Object passed to md-virtual-repeat must implement functions getItemAtIndex() and getLength().");this.model=e}function r(e){return{restrict:"A",link:function(e,t,n){var o=e.$eval(n.mdForceHeight)||null;o&&t&&(t[0].style.height=o)}}}t.prototype.register=function(e){this.repeater=e,fe.element(this.scroller).on("scroll wheel touchmove touchend",fe.bind(this,this.handleScroll_))},t.prototype.isHorizontal=function(){return this.horizontal},t.prototype.getSize=function(){return this.size},t.prototype.setSize_=function(e){var t=this.getDimensionName_();this.size=e,this.$element[0].style[t]=e+"px"},t.prototype.unsetSize_=function(){this.$element[0].style[this.getDimensionName_()]=this.oldElementSize,this.oldElementSize=null},t.prototype.updateSize=function(){if(!this.originalSize){var e=this.isHorizontal()?this.$element[0].clientWidth:this.$element[0].clientHeight;e&&(this.size=e),this.handleScroll_(),this.repeater&&this.repeater.containerUpdated()}},t.prototype.getScrollSize=function(){return this.scrollSize},t.prototype.getDimensionName_=function(){return this.isHorizontal()?"width":"height"},t.prototype.sizeScroller_=function(e){var t=this.getDimensionName_(),n=this.isHorizontal()?"height":"width";if(this.sizer.innerHTML="",e<this.maxElementPixels)this.sizer.style[t]=e+"px";else{this.sizer.style[t]="auto",this.sizer.style[n]="auto";var o=Math.floor(e/this.maxElementPixels),i=document.createElement("div");i.style[t]=this.maxElementPixels+"px",i.style[n]="1px";for(var r=0;r<o;r++)this.sizer.appendChild(i.cloneNode(!1));i.style[t]=e-o*this.maxElementPixels+"px",this.sizer.appendChild(i)}},t.prototype.autoShrink_=function(e){var t=Math.max(e,this.autoShrinkMin*this.repeater.getItemSize());if(this.autoShrink&&t!==this.size){null===this.oldElementSize&&(this.oldElementSize=this.$element[0].style[this.getDimensionName_()]);var n=this.originalSize||this.size;if(!n||t<n)this.originalSize||(this.originalSize=this.size),this.setSize_(t);else if(null!==this.originalSize){this.unsetSize_();var o=this.originalSize;this.originalSize=null,o||this.updateSize(),this.setSize_(o||this.size)}this.repeater.containerUpdated()}},t.prototype.setScrollSize=function(e){var t=e+this.offsetSize;this.scrollSize!==t&&(this.sizeScroller_(t),this.autoShrink_(t),this.scrollSize=t)},t.prototype.getScrollOffset=function(){return this.scrollOffset},t.prototype.scrollTo=function(e){this.scroller[this.isHorizontal()?"scrollLeft":"scrollTop"]=e,this.handleScroll_()},t.prototype.scrollToIndex=function(e){var t=this.repeater.getItemSize(),n=this.repeater.itemsLength;n<e&&(e=n-1),this.scrollTo(t*e)},t.prototype.resetScroll=function(){this.scrollTo(0)},t.prototype.handleScroll_=function(){this.ltr||this.maxSize||(this.scroller.scrollLeft=this.scrollSize,this.maxSize=this.scroller.scrollLeft);var e=this.isHorizontal()?this.ltr?this.scroller.scrollLeft:this.maxSize-this.scroller.scrollLeft:this.scroller.scrollTop;if(!(this.scrollSize<this.size)&&(e>this.scrollSize-this.size&&(e=this.scrollSize-this.size),e!==this.scrollOffset)){var t=this.repeater.getItemSize();if(t){var n=Math.max(0,Math.floor(e/t)-3),o=(this.isHorizontal()?"translateX(":"translateY(")+(!this.isHorizontal()||this.ltr?n*t:-n*t)+"px)";if(this.scrollOffset=e,this.offsetter.style.webkitTransform=o,this.offsetter.style.transform=o,this.bindTopIndex){var i=Math.floor(e/t);i!==this.topIndex&&i<this.repeater.getItemCount()&&(this.topIndex=i,this.bindTopIndex.assign(this.$scope,i),this.$rootScope.$$phase||this.$scope.$digest())}this.repeater.containerUpdated()}}},i.prototype.link_=function(e,t,n,o,i){this.container=e,this.transclude=t,this.repeatName=n,this.rawRepeatListExpression=o,this.extraName=i,this.sized=!1,this.repeatListExpression=fe.bind(this,this.repeatListExpression_),this.container.register(this)},i.prototype.cleanupBlocks_=function(){fe.forEach(this.pooledBlocks,function(e){e.element.remove()})},i.prototype.readItemSize_=function(){if(!this.itemSize){this.items=this.repeatListExpression(this.$scope),this.parentNode=this.$element[0].parentNode;var e=this.getBlock_(0);e.element[0].parentNode||this.parentNode.appendChild(e.element[0]),this.itemSize=e.element[0][this.container.isHorizontal()?"offsetWidth":"offsetHeight"]||null,this.blocks[0]=e,this.poolBlock_(0),this.itemSize&&this.containerUpdated()}},i.prototype.repeatListExpression_=function(e){var t=this.rawRepeatListExpression(e);if(this.onDemand&&t){var n=new o(t);return n.$$includeIndexes(this.newStartIndex,this.newVisibleEnd),n}return t},i.prototype.containerUpdated=function(){if(!this.itemSize)return this.unwatchItemSize_&&this.unwatchItemSize_!==fe.noop&&this.unwatchItemSize_(),this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,fe.bind(this,function(e){e&&e.length&&this.readItemSize_()})),void(this.$rootScope.$$phase||this.$scope.$digest());this.sized||(this.items=this.repeatListExpression(this.$scope)),this.sized||(this.unwatchItemSize_(),this.sized=!0,this.$scope.$watchCollection(this.repeatListExpression,fe.bind(this,function(e,t){this.isVirtualRepeatUpdating_||this.virtualRepeatUpdate_(e,t)}))),this.updateIndexes_(),(this.newStartIndex!==this.startIndex||this.newEndIndex!==this.endIndex||this.container.getScrollOffset()>this.container.getScrollSize())&&(this.items instanceof o&&this.items.$$includeIndexes(this.newStartIndex,this.newEndIndex),this.virtualRepeatUpdate_(this.items,this.items))},i.prototype.getItemSize=function(){return this.itemSize},i.prototype.getItemCount=function(){return this.itemsLength},i.prototype.virtualRepeatUpdate_=function(e,t){this.isVirtualRepeatUpdating_=!0;var n=e&&e.length||0,o=!1;if(this.items&&n<this.items.length&&0!==this.container.getScrollOffset()){this.items=e;var i=this.container.getScrollOffset();this.container.resetScroll(),this.container.scrollTo(i)}n!==this.itemsLength&&(o=!0,this.itemsLength=n),(this.items=e)===t&&!o||this.updateIndexes_(),this.parentNode=this.$element[0].parentNode,o&&this.container.setScrollSize(n*this.itemSize),Object.keys(this.blocks).forEach(function(e){var t=parseInt(e,10);(t<this.newStartIndex||t>=this.newEndIndex)&&this.poolBlock_(t)},this),this.$browser.$$checkUrlChange=fe.noop;var r,a,d=[],s=[];for(r=this.newStartIndex;r<this.newEndIndex&&null==this.blocks[r];r++)a=this.getBlock_(r),this.updateBlock_(a,r),d.push(a);for(;null!=this.blocks[r];r++)this.updateBlock_(this.blocks[r],r);for(var l=r-1;r<this.newEndIndex;r++)a=this.getBlock_(r),this.updateBlock_(a,r),s.push(a);if(d.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(d),this.$element[0].nextSibling),s.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(s),this.blocks[l]&&this.blocks[l].element[0].nextSibling),this.$browser.$$checkUrlChange=this.browserCheckUrlChange,this.startIndex=this.newStartIndex,this.endIndex=this.newEndIndex,this.isFirstRender){this.isFirstRender=!1;var c=this.$attrs.mdStartIndex?this.$scope.$eval(this.$attrs.mdStartIndex):this.container.topIndex;this.$mdUtil.nextTick(function(){this.container.scrollToIndex(c)}.bind(this))}this.isVirtualRepeatUpdating_=!1},i.prototype.getBlock_=function(n){return this.pooledBlocks.length?this.pooledBlocks.pop():(this.transclude(fe.bind(this,function(e,t){o={element:e,new:!0,scope:t},this.updateScope_(t,n),this.parentNode.appendChild(e[0])})),o);var o},i.prototype.updateBlock_=function(e,t){!(this.blocks[t]=e).new&&e.scope.$index===t&&e.scope[this.repeatName]===this.items[t]||(e.new=!1,this.updateScope_(e.scope,t),this.$rootScope.$$phase||e.scope.$digest())},i.prototype.updateScope_=function(e,t){e.$index=t,e[this.repeatName]=this.items&&this.items[t],this.extraName&&(e[this.extraName(this.$scope)]=this.items[t])},i.prototype.poolBlock_=function(e){this.pooledBlocks.push(this.blocks[e]),this.parentNode.removeChild(this.blocks[e].element[0]),delete this.blocks[e]},i.prototype.domFragmentFromBlocks_=function(e){var t=this.$document[0].createDocumentFragment();return e.forEach(function(e){t.appendChild(e.element[0])}),t},i.prototype.updateIndexes_=function(){var e=this.items?this.items.length:0,t=Math.ceil(this.container.getSize()/this.itemSize);this.newStartIndex=Math.max(0,Math.min(e-t,Math.floor(this.container.getScrollOffset()/this.itemSize))),this.newVisibleEnd=this.newStartIndex+t+3,this.newEndIndex=Math.min(e,this.newVisibleEnd),this.newStartIndex=Math.max(0,this.newStartIndex-3)},o.prototype.$$includeIndexes=function(e,t){for(var n=e;n<t;n++)this.hasOwnProperty(n)||(this[n]=this.model.getItemAtIndex(n));this.length=this.model.getLength()},r.$inject=["$mdUtil"]}(),mt.$inject=["$log"],fe.module("material.components.whiteframe",["material.core"]).directive("mdWhiteframe",mt),fe.module("material.core").constant("$MD_THEME_CSS",'md-autocomplete.md-THEME_NAME-theme{background:"{{background-hue-1}}"}md-autocomplete.md-THEME_NAME-theme[disabled]:not([md-floating-label]){background:"{{background-hue-2}}"}md-autocomplete.md-THEME_NAME-theme button md-icon path{fill:"{{background-600}}"}md-autocomplete.md-THEME_NAME-theme button:after{background:"{{background-600-0.3}}"}md-autocomplete.md-THEME_NAME-theme input{color:"{{foreground-1}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-input-container.md-input-focused .md-input{border-color:"{{accent-color}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-input-container.md-input-focused label,md-autocomplete.md-THEME_NAME-theme.md-accent md-input-container.md-input-focused md-icon{color:"{{accent-color}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-progress-linear .md-container{background-color:"{{accent-100}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-progress-linear .md-bar{background-color:"{{accent-color}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-input-container.md-input-focused .md-input{border-color:"{{warn-A700}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-input-container.md-input-focused label,md-autocomplete.md-THEME_NAME-theme.md-warn md-input-container.md-input-focused md-icon{color:"{{warn-A700}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-progress-linear .md-container{background-color:"{{warn-100}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-progress-linear .md-bar{background-color:"{{warn-color}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme,.md-autocomplete-suggestions-container.md-THEME_NAME-theme{background:"{{background-hue-1}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme .md-autocomplete-suggestion,.md-autocomplete-suggestions-container.md-THEME_NAME-theme .md-autocomplete-suggestion{color:"{{foreground-1}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme .md-autocomplete-suggestion.selected,.md-autocomplete-standard-list-container.md-THEME_NAME-theme .md-autocomplete-suggestion:hover,.md-autocomplete-suggestions-container.md-THEME_NAME-theme .md-autocomplete-suggestion.selected,.md-autocomplete-suggestions-container.md-THEME_NAME-theme .md-autocomplete-suggestion:hover{background:"{{background-500-0.18}}"}md-backdrop{background-color:"{{background-900-0.0}}"}md-backdrop.md-opaque.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-bottom-sheet.md-THEME_NAME-theme{background-color:"{{background-color}}";border-top-color:"{{background-hue-3}}"}md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item{color:"{{foreground-1}}"}md-bottom-sheet.md-THEME_NAME-theme .md-subheader{background-color:"{{background-color}}";color:"{{foreground-1}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme:not([disabled]):hover{background-color:"{{background-500-0.2}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover{background-color:transparent}.md-button.md-THEME_NAME-theme.md-fab md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab,.md-button.md-THEME_NAME-theme.md-primary.md-raised{color:"{{primary-contrast}}";background-color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon{color:"{{primary-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover{background-color:"{{primary-600}}"}.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-fab{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-raised{color:"{{background-900}}";background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) md-icon{color:"{{background-900}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover{background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused{background-color:"{{background-200}}"}.md-button.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab,.md-button.md-THEME_NAME-theme.md-warn.md-raised{color:"{{warn-contrast}}";background-color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon{color:"{{warn-contrast}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover{background-color:"{{warn-600}}"}.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab,.md-button.md-THEME_NAME-theme.md-accent.md-raised{color:"{{accent-contrast}}";background-color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent[disabled],.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],.md-button.md-THEME_NAME-theme.md-warn[disabled],.md-button.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}";cursor:default}.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon,.md-button.md-THEME_NAME-theme[disabled] md-icon{color:"{{foreground-3}}"}.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled]{background-color:"{{foreground-4}}"}.md-button.md-THEME_NAME-theme[disabled]{background-color:transparent}._md a.md-THEME_NAME-theme:not(.md-button).md-primary{color:"{{primary-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-primary:hover{color:"{{primary-700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent{color:"{{accent-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent:hover{color:"{{accent-A700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn{color:"{{warn-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn:hover{color:"{{warn-700}}"}md-card.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-hue-1}}";border-radius:2px}md-card.md-THEME_NAME-theme .md-card-image{border-radius:2px 2px 0 0}md-card.md-THEME_NAME-theme md-card-header md-card-avatar md-icon{color:"{{background-color}}";background-color:"{{foreground-3}}"}md-card.md-THEME_NAME-theme md-card-header md-card-header-text .md-subhead,md-card.md-THEME_NAME-theme md-card-title md-card-title-text:not(:only-child) .md-subhead{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme .md-ripple{color:"{{accent-A700}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before{background-color:"{{accent-color-0.26}}"}md-checkbox.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon{background-color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after{border-color:"{{accent-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple{color:"{{primary-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon{background-color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after{border-color:"{{primary-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple{color:"{{warn-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon{background-color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before{background-color:"{{warn-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled]:not(.md-checked) .md-icon{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon{background-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-icon:after{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-label{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips{box-shadow:0 1px "{{foreground-4}}"}md-chips.md-THEME_NAME-theme .md-chips.md-focused{box-shadow:0 2px "{{primary-color}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input{color:"{{foreground-1}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-webkit-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-ms-input-placeholder,md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-ms-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-moz-placeholder,md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-moz-placeholder{color:"{{foreground-3}}";opacity:1}md-chips.md-THEME_NAME-theme md-chip{background:"{{background-300}}";color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip md-icon{color:"{{background-700}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused{background:"{{primary-color}}";color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused md-icon{color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip._md-chip-editing{background:transparent;color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path{fill:"{{background-500}}"}.md-contact-suggestion span.md-contact-email{color:"{{background-400}}"}md-content.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-default}}"}.md-THEME_NAME-theme .md-calendar{background:"{{background-hue-1}}";color:"{{foreground-1-0.87}}"}.md-THEME_NAME-theme .md-calendar tr:last-child td{border-bottom-color:"{{background-hue-2}}"}.md-THEME_NAME-theme .md-calendar-day-header{background:"{{background-500-0.32}}";color:"{{foreground-1-0.87}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today .md-calendar-date-selection-indicator{border:1px solid "{{primary-500}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today.md-calendar-date-disabled{color:"{{primary-500-0.6}}"}.md-calendar-date.md-focus .md-THEME_NAME-theme .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date-selection-indicator:hover{background:"{{background-500-0.32}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-selected-date .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date.md-focus.md-calendar-selected-date .md-calendar-date-selection-indicator{background:"{{primary-500}}";color:"{{primary-500-contrast}}";border-color:transparent}.md-THEME_NAME-theme .md-calendar-date-disabled,.md-THEME_NAME-theme .md-calendar-month-label-disabled{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-calendar-month-label md-icon,.md-THEME_NAME-theme .md-datepicker-input{color:"{{foreground-1}}"}.md-THEME_NAME-theme .md-datepicker-input::-webkit-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-ms-input-placeholder,.md-THEME_NAME-theme .md-datepicker-input::-ms-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input::placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-moz-placeholder,.md-THEME_NAME-theme .md-datepicker-input::-moz-placeholder{color:"{{foreground-3}}";opacity:1}.md-THEME_NAME-theme .md-datepicker-input-container{border-bottom-color:"{{foreground-4}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-invalid,.md-warn .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar-pane{border-color:"{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-triangle-button .md-datepicker-expand-triangle{border-top-color:"{{foreground-2}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon,.md-THEME_NAME-theme .md-datepicker-open.md-accent .md-datepicker-calendar-icon{color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-open.md-warn .md-datepicker-calendar-icon,.md-warn .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar{background:"{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-input-mask-opaque{box-shadow:0 0 0 9999px "{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-input-container{background:"{{background-hue-1}}"}md-dialog.md-THEME_NAME-theme{border-radius:4px;background-color:"{{background-hue-1}}";color:"{{foreground-1}}"}md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions,md-dialog.md-THEME_NAME-theme.md-content-overflow md-dialog-actions,md-divider.md-THEME_NAME-theme{border-top-color:"{{foreground-4}}"}.layout-gt-lg-row>md-divider.md-THEME_NAME-theme,.layout-gt-md-row>md-divider.md-THEME_NAME-theme,.layout-gt-sm-row>md-divider.md-THEME_NAME-theme,.layout-gt-xs-row>md-divider.md-THEME_NAME-theme,.layout-lg-row>md-divider.md-THEME_NAME-theme,.layout-md-row>md-divider.md-THEME_NAME-theme,.layout-row>md-divider.md-THEME_NAME-theme,.layout-sm-row>md-divider.md-THEME_NAME-theme,.layout-xl-row>md-divider.md-THEME_NAME-theme,.layout-xs-row>md-divider.md-THEME_NAME-theme{border-right-color:"{{foreground-4}}"}md-icon.md-THEME_NAME-theme{color:"{{foreground-2}}"}md-icon.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}md-icon.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}md-icon.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-input-container.md-THEME_NAME-theme .md-input{color:"{{foreground-1}}";border-color:"{{foreground-4}}"}md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-ms-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input::placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder{color:"{{foreground-2}}";opacity:1}md-input-container.md-THEME_NAME-theme>md-icon{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme .md-placeholder,md-input-container.md-THEME_NAME-theme label{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme label.md-required:after{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-focused):not(.md-input-invalid) label.md-required:after{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation,md-input-container.md-THEME_NAME-theme .md-input-messages-animation{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation .md-char-counter,md-input-container.md-THEME_NAME-theme .md-input-messages-animation .md-char-counter{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-webkit-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-ms-input-placeholder,md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-ms-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-moz-placeholder{color:"{{foreground-2}}";opacity:1}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-resized .md-input{border-color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon{color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent md-icon{color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn md-icon{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter,md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input-message-animation,md-input-container.md-THEME_NAME-theme.md-input-invalid label{color:"{{warn-A700}}"}[disabled] md-input-container.md-THEME_NAME-theme .md-input,md-input-container.md-THEME_NAME-theme .md-input[disabled]{border-bottom-color:transparent;color:"{{foreground-3}}";background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4{color:"{{foreground-1}}"}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style{background-color:"{{background-100}}"}md-list.md-THEME_NAME-theme md-list-item .md-avatar-icon{background-color:"{{foreground-3}}";color:"{{background-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight{color:"{{primary-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight.md-accent{color:"{{accent-color}}"}md-menu-content.md-THEME_NAME-theme{background-color:"{{background-hue-1}}"}md-menu-content.md-THEME_NAME-theme md-menu-item{color:"{{foreground-1}}"}md-menu-content.md-THEME_NAME-theme md-menu-item md-icon{color:"{{foreground-2}}"}md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled],md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled] md-icon{color:"{{foreground-3}}"}md-menu-content.md-THEME_NAME-theme md-menu-divider{background-color:"{{foreground-4}}"}md-menu-bar.md-THEME_NAME-theme>button.md-button{color:"{{foreground-1}}";border-radius:2px}md-menu-bar.md-THEME_NAME-theme md-menu>button{color:"{{foreground-1}}"}md-menu-bar.md-THEME_NAME-theme md-menu.md-open>button,md-menu-bar.md-THEME_NAME-theme md-menu>button:focus{outline:none;background-color:"{{ background-500-0.18}}"}md-menu-bar.md-THEME_NAME-theme.md-open:not(.md-keyboard-mode) md-menu:hover>button{background-color:"{{ background-500-0.18}}"}md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:focus,md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:hover{background:transparent}md-menu-content.md-THEME_NAME-theme .md-menu>.md-button:after{color:"{{foreground-2}}"}md-menu-content.md-THEME_NAME-theme .md-menu.md-open>.md-button{background-color:"{{ background-500-0.18}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar{background-color:"{{background-hue-1}}";color:"{{foreground-1}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler{background-color:"{{primary-color}}";color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler md-icon{color:"{{primary-contrast}}"}md-nav-bar.md-THEME_NAME-theme .md-nav-bar{background-color:transparent;border-color:"{{foreground-4}}"}md-nav-bar.md-THEME_NAME-theme .md-button._md-nav-button.md-unselected{color:"{{foreground-2}}"}md-nav-bar.md-THEME_NAME-theme .md-button._md-nav-button[disabled]{color:"{{foreground-3}}"}md-nav-bar.md-THEME_NAME-theme md-nav-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar{background-color:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar{background-color:"{{warn-color}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar{background-color:"{{primary-color}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{primary-color}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}._md-panel-backdrop.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-progress-circular.md-THEME_NAME-theme path{stroke:"{{primary-color}}"}md-progress-circular.md-THEME_NAME-theme.md-warn path{stroke:"{{warn-color}}"}md-progress-circular.md-THEME_NAME-theme.md-accent path{stroke:"{{accent-color}}"}md-progress-linear.md-THEME_NAME-theme .md-container{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme .md-bar{background-color:"{{primary-color}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-container{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar{background-color:"{{warn-color}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-container{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar{background-color:"{{accent-color}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-primary .md-bar1{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-primary .md-dashed:before{background:radial-gradient("{{primary-100}}" 0,"{{primary-100}}" 16%,transparent 42%)}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before{background:radial-gradient("{{warn-100}}" 0,"{{warn-100}}" 16%,transparent 42%)}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before{background:radial-gradient("{{accent-100}}" 0,"{{accent-100}}" 16%,transparent 42%)}md-radio-button.md-THEME_NAME-theme .md-off{border-color:"{{foreground-2}}"}md-radio-button.md-THEME_NAME-theme .md-on{background-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-off{border-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme .md-container .md-ripple{color:"{{accent-A700}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on{background-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off{border-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple{color:"{{primary-600}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on{background-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off{border-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple{color:"{{warn-600}}"}md-radio-button.md-THEME_NAME-theme[disabled],md-radio-group.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}"}md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on{border-color:"{{foreground-3}}"}md-radio-group.md-THEME_NAME-theme .md-checked .md-ink-ripple{color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme .md-checked:not([disabled]).md-primary .md-ink-ripple,md-radio-group.md-THEME_NAME-theme.md-primary .md-checked:not([disabled]) .md-ink-ripple{color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused.ng-empty>md-radio-button:first-child .md-container:before{background-color:"{{foreground-3-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before{background-color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-primary .md-checked .md-container:before{background-color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-warn .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-warn .md-checked .md-container:before{background-color:"{{warn-color-0.26}}"}md-input-container md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-input-container:not(.md-input-focused):not(.md-input-invalid) md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{foreground-3}}"}md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value,md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{primary-color}}"}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-input-container:not(.md-input-invalid).md-input-focused.md-accent .md-select-value{border-color:"{{accent-color}}"}md-input-container:not(.md-input-invalid).md-input-focused.md-accent .md-select-value span{color:"{{accent-color}}"}md-input-container:not(.md-input-invalid).md-input-focused.md-warn .md-select-value{border-color:"{{warn-A700}}"}md-input-container:not(.md-input-invalid).md-input-focused.md-warn .md-select-value span{color:"{{warn-A700}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-value{border-bottom-color:transparent;background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-select.md-THEME_NAME-theme .md-select-value{border-bottom-color:"{{foreground-4}}"}md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value{border-bottom-color:"{{primary-color}}";color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value.md-select-placeholder{color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-value{border-bottom-color:"{{accent-color}}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-value{border-bottom-color:"{{warn-color}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-icon,md-select.md-THEME_NAME-theme[disabled] .md-select-value,md-select.md-THEME_NAME-theme[disabled] .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-icon{color:"{{foreground-2}}"}md-select-menu.md-THEME_NAME-theme md-content{background-color:"{{background-hue-1}}"}md-select-menu.md-THEME_NAME-theme md-content md-optgroup{color:"{{foreground-2}}"}md-select-menu.md-THEME_NAME-theme md-content md-option{color:"{{foreground-1}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[disabled] .md-text{color:"{{foreground-3}}"}md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):focus,md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):hover{background-color:"{{background-500-0.18}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]{color:"{{primary-500}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]:focus{color:"{{primary-600}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent{color:"{{accent-color}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent:focus{color:"{{accent-A700}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ripple{color:"{{primary-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ripple{color:"{{background-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ink-ripple{color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon{background-color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected].md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon:after{border-color:"{{primary-contrast-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}.md-checkbox-enabled.md-THEME_NAME-theme md-option .md-text{color:"{{foreground-1}}"}md-sidenav.md-THEME_NAME-theme,md-sidenav.md-THEME_NAME-theme md-content{background-color:"{{background-hue-1}}"}md-slider.md-THEME_NAME-theme .md-track{background-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme .md-track-ticks{color:"{{background-contrast}}"}md-slider.md-THEME_NAME-theme .md-focus-ring{background-color:"{{accent-A200-0.2}}"}md-slider.md-THEME_NAME-theme .md-disabled-thumb{border-color:"{{background-color}}";background-color:"{{background-color}}"}md-slider.md-THEME_NAME-theme.md-min .md-thumb:after{background-color:"{{background-color}}";border-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme.md-min .md-focus-ring{background-color:"{{foreground-3-0.38}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-thumb:after{background-color:"{{background-contrast}}";border-color:transparent}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme .md-track.md-track-fill{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb:after{border-color:"{{accent-color}}";background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign:after{border-top-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb-text{color:"{{accent-contrast}}"}md-slider.md-THEME_NAME-theme.md-warn .md-focus-ring{background-color:"{{warn-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after{border-color:"{{warn-color}}";background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign:after{border-top-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text{color:"{{warn-contrast}}"}md-slider.md-THEME_NAME-theme.md-primary .md-focus-ring{background-color:"{{primary-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after{border-color:"{{primary-color}}";background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign:after{border-top-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text{color:"{{primary-contrast}}"}md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after{border-color:transparent}md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after,md-slider.md-THEME_NAME-theme[disabled][md-discrete] .md-thumb:after{background-color:"{{foreground-3}}";border-color:transparent}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-disabled-thumb{border-color:transparent;background-color:transparent}md-slider-container[disabled]>:first-child:not(md-slider),md-slider-container[disabled]>:last-child:not(md-slider){color:"{{foreground-3}}"}.md-subheader.md-THEME_NAME-theme{color:"{{ foreground-2-0.23 }}";background-color:"{{background-default}}"}.md-subheader.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-subheader.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-subheader.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme .md-ink-ripple{color:"{{background-500}}"}md-switch.md-THEME_NAME-theme .md-thumb{background-color:"{{background-50}}"}md-switch.md-THEME_NAME-theme .md-bar{background-color:"{{background-500}}"}md-switch.md-THEME_NAME-theme.md-focused:not(.md-checked) .md-thumb:before,md-switch.md-THEME_NAME-theme.md-focused[disabled] .md-thumb:before{background-color:"{{foreground-4}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]) .md-ink-ripple{color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]) .md-thumb{background-color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]) .md-bar{background-color:"{{accent-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-focused .md-thumb:before{background-color:"{{accent-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary .md-ink-ripple{color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary .md-thumb{background-color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary .md-bar{background-color:"{{primary-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary.md-focused .md-thumb:before{background-color:"{{primary-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn .md-ink-ripple{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn .md-thumb{background-color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn .md-bar{background-color:"{{warn-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn.md-focused .md-thumb:before{background-color:"{{warn-color-0.26}}"}md-switch.md-THEME_NAME-theme[disabled] .md-thumb{background-color:"{{background-400}}"}md-switch.md-THEME_NAME-theme[disabled] .md-bar{background-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme md-tabs-wrapper{background-color:transparent;border-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme .md-paginator md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme md-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme .md-tab{color:"{{foreground-2}}"}md-tabs.md-THEME_NAME-theme .md-tab[disabled],md-tabs.md-THEME_NAME-theme .md-tab[disabled] md-icon{color:"{{foreground-3}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-active,md-tabs.md-THEME_NAME-theme .md-tab.md-active md-icon,md-tabs.md-THEME_NAME-theme .md-tab.md-focused,md-tabs.md-THEME_NAME-theme .md-tab.md-focused md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-focused{background:"{{primary-color-0.1}}"}md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper{background-color:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper{background-color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper{background-color:"{{warn-color}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{primary-color}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toast.md-THEME_NAME-theme .md-toast-content{background-color:#323232;color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button{color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight{color:"{{accent-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-primary{color:"{{primary-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-warn{color:"{{warn-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar){background-color:"{{primary-color}}";color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-icon{color:"{{primary-contrast}}";fill:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) .md-button[disabled] md-icon{color:"{{primary-contrast-0.26}}";fill:"{{primary-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-ink-ripple{color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-icon{color:"{{accent-contrast}}";fill:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-button[disabled] md-icon{color:"{{accent-contrast-0.26}}";fill:"{{accent-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn{background-color:"{{warn-color}}";color:"{{warn-contrast}}"}.md-panel.md-tooltip.md-THEME_NAME-theme{color:"{{background-700-contrast}}";background-color:"{{background-700}}"}body.md-THEME_NAME-theme,html.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-color}}"}')}(window,window.angular),window.ngMaterial={version:{full:"1.1.21"}};