text: /* */ 
  "format cjs";
  /*!
   * AngularJS Material Design
   * https://github.com/angular/material
   * @license MIT
   * v1.1.4-master-75237c6
   */
  !function(e,t,n){"use strict";function r(e,r,i,o,l,a,d,c){function u(c,u){var p=t.element("<md-select-value><span></span></md-select-value>");if(p.append('<span class="md-select-icon" aria-hidden="true"></span>'),p.addClass("md-select-value"),p[0].hasAttribute("id")||p.attr("id","select_value_label_"+r.nextUid()),c.find("md-content").length||c.append(t.element("<md-content>").append(c.contents())),u.mdOnOpen&&(c.find("md-content").prepend(t.element('<div> <md-progress-circular md-mode="indeterminate" ng-if="$$loadingAsyncDone === false" md-diameter="25px"></md-progress-circular></div>')),c.find("md-option").attr("ng-show","$$loadingAsyncDone")),u.name){var f=t.element('<select class="md-visually-hidden">');f.attr({name:u.name,"aria-hidden":"true",tabindex:"-1"});var m=c.find("md-option");t.forEach(m,function(e){var n=t.element("<option>"+e.innerHTML+"</option>");e.hasAttribute("ng-value")?n.attr("ng-value",e.getAttribute("ng-value")):e.hasAttribute("value")&&n.attr("value",e.getAttribute("value")),f.append(n)}),f.append('<option ng-value="'+u.ngModel+'" selected></option>'),c.parent().append(f)}var h=r.parseAttributeBoolean(u.multiple),g=h?"multiple":"",v='<div class="md-select-menu-container" aria-hidden="true"><md-select-menu {0}>{1}</md-select-menu></div>';return v=r.supplant(v,[g,c.html()]),c.empty().append(p),c.append(v),u.tabindex||u.$set("tabindex",0),function(c,u,p,f){function m(){var e=u.attr("aria-label")||u.attr("placeholder");!e&&S&&S.label&&(e=S.label.text()),M=e,l.expect(u,"aria-label",e)}function g(){V&&(B=B||V.find("md-select-menu").controller("mdSelectMenu"),x.setLabelText(B.selectedLabels()))}function v(){if(M){var e=B.selectedLabels({mode:"aria"});u.attr("aria-label",e.length?M+": "+e:M)}}function b(){S&&S.setHasValue(B.selectedLabels().length>0||(u[0].validity||{}).badInput)}function $(){if(V=t.element(u[0].querySelector(".md-select-menu-container")),P=c,p.mdContainerClass){var e=V[0].getAttribute("class")+" "+p.mdContainerClass;V[0].setAttribute("class",e)}B=V.find("md-select-menu").controller("mdSelectMenu"),B.init(A,p.ngModel),u.on("$destroy",function(){V.remove()})}function y(e){if(i.isNavigationKey(e))e.preventDefault(),C(e);else if(s(e,i)){e.preventDefault();var n=B.optNodeForKeyboardSearch(e);if(!n||n.hasAttribute("disabled"))return;var r=t.element(n).controller("mdOption");B.isMultiple||B.deselect(Object.keys(B.selected)[0]),B.select(r.hashKey,r.value),B.refreshViewValue()}}function C(){P._mdSelectIsOpen=!0,u.attr("aria-expanded","true"),e.show({scope:P,preserveScope:!0,skipCompile:!0,element:V,target:u[0],selectCtrl:x,preserveElement:!0,hasBackdrop:!0,loadingAsync:!!p.mdOnOpen&&(c.$eval(p.mdOnOpen)||!0)})["finally"](function(){P._mdSelectIsOpen=!1,u.focus(),u.attr("aria-expanded","false"),A.$setTouched()})}var w,M,k=!0,S=f[0],x=f[1],A=f[2],O=f[3],E=u.find("md-select-value"),T=t.isDefined(p.readonly),D=r.parseAttributeBoolean(p.mdNoAsterisk);if(D&&u.addClass("md-no-asterisk"),S){var R=S.isErrorGetter||function(){return A.$invalid&&(A.$touched||O&&O.$submitted)};if(S.input&&u.find("md-select-header").find("input")[0]!==S.input[0])throw new Error("<md-input-container> can only have *one* child <input>, <textarea> or <select> element!");S.input=u,S.label||l.expect(u,"aria-label",u.attr("placeholder")),c.$watch(R,S.setInvalid)}var V,P,B;$(),o(u),O&&t.isDefined(p.multiple)&&r.nextTick(function(){var e=A.$modelValue||A.$viewValue;e&&O.$setPristine()});var N=A.$render;A.$render=function(){N(),g(),v(),b()},p.$observe("placeholder",A.$render),S&&S.label&&p.$observe("required",function(e){S.label.toggleClass("md-required",e&&!D)}),x.setLabelText=function(e){x.setIsPlaceholder(!e);var t=!1;if(p.mdSelectedText&&p.mdSelectedHtml)throw Error("md-select cannot have both `md-selected-text` and `md-selected-html`");if(p.mdSelectedText||p.mdSelectedHtml)e=a(p.mdSelectedText||p.mdSelectedHtml)(c),t=!0;else if(!e){var n=p.placeholder||(S&&S.label?S.label.text():"");e=n||"",t=!0}var r=E.children().eq(0);p.mdSelectedHtml?r.html(d.getTrustedHtml(e)):t?r.text(e):r.html(e)},x.setIsPlaceholder=function(e){e?(E.addClass("md-select-placeholder"),S&&S.label&&S.label.addClass("md-placeholder")):(E.removeClass("md-select-placeholder"),S&&S.label&&S.label.removeClass("md-placeholder"))},T||(u.on("focus",function(e){S&&S.setFocused(!0)}),u.on("blur",function(e){k&&(k=!1,P._mdSelectIsOpen&&e.stopImmediatePropagation()),P._mdSelectIsOpen||(S&&S.setFocused(!1),b())})),x.triggerClose=function(){a(p.mdOnClose)(c)},c.$$postDigest(function(){m(),g(),v()}),c.$watch(function(){return B.selectedLabels()},g);var L;p.$observe("ngMultiple",function(e){L&&L();var t=a(e);L=c.$watch(function(){return t(c)},function(e,t){e===n&&t===n||(e?u.attr("multiple","multiple"):u.removeAttr("multiple"),u.attr("aria-multiselectable",e?"true":"false"),V&&(B.setMultiple(e),N=A.$render,A.$render=function(){N(),g(),v(),b()},A.$render()))})}),p.$observe("disabled",function(e){t.isString(e)&&(e=!0),w!==n&&w===e||(w=e,e?u.attr({"aria-disabled":"true"}).removeAttr("tabindex").off("click",C).off("keydown",y):u.attr({tabindex:p.tabindex,"aria-disabled":"false"}).on("click",C).on("keydown",y))}),p.hasOwnProperty("disabled")||p.hasOwnProperty("ngDisabled")||(u.attr({"aria-disabled":"false"}),u.on("click",C),u.on("keydown",y));var _={role:"listbox","aria-expanded":"false","aria-multiselectable":h&&!p.ngMultiple?"true":"false"};u[0].hasAttribute("id")||(_.id="select_"+r.nextUid());var H="select_container_"+r.nextUid();V.attr("id",H),_["aria-owns"]=H,u.attr(_),c.$on("$destroy",function(){e.destroy()["finally"](function(){S&&(S.setFocused(!1),S.setHasValue(!1),S.input=null),A.$setTouched()})})}}var p=i.KEY_CODE;[p.SPACE,p.ENTER,p.UP_ARROW,p.DOWN_ARROW];return{restrict:"E",require:["^?mdInputContainer","mdSelect","ngModel","?^form"],compile:u,controller:function(){}}}function i(e,r,i,o){function l(e,n,i,l){function a(e){13!=e.keyCode&&32!=e.keyCode||d(e)}function d(n){var i=r.getClosest(n.target,"md-option"),o=i&&t.element(i).data("$mdOptionController");if(i&&o){if(i.hasAttribute("disabled"))return n.stopImmediatePropagation(),!1;var l=s.hashGetter(o.value),a=t.isDefined(s.selected[l]);e.$apply(function(){s.isMultiple?a?s.deselect(l):s.select(l,o.value):a||(s.deselect(Object.keys(s.selected)[0]),s.select(l,o.value)),s.refreshViewValue()})}}var s=l[0];n.addClass("_md"),o(n),n.on("click",d),n.on("keypress",a)}function a(o,l,a){function d(){var e=c.ngModel.$modelValue||c.ngModel.$viewValue||[];if(t.isArray(e)){var n=Object.keys(c.selected),r=e.map(c.hashGetter),i=n.filter(function(e){return r.indexOf(e)===-1});i.forEach(c.deselect),r.forEach(function(t,n){c.select(t,e[n])})}}function s(){var e=c.ngModel.$viewValue||c.ngModel.$modelValue;Object.keys(c.selected).forEach(c.deselect),c.select(c.hashGetter(e),e)}var c=this;c.isMultiple=t.isDefined(l.multiple),c.selected={},c.options={},o.$watchCollection(function(){return c.options},function(){c.ngModel.$render()});var p,f;c.setMultiple=function(e){function n(e,n){return t.isArray(e||n||[])}var r=c.ngModel;f=f||r.$isEmpty,c.isMultiple=e,p&&p(),c.isMultiple?(r.$validators["md-multiple"]=n,r.$render=d,o.$watchCollection(c.modelBinding,function(e){n(e)&&d(e),c.ngModel.$setPristine()}),r.$isEmpty=function(e){return!e||0===e.length}):(delete r.$validators["md-multiple"],r.$render=s)};var m,h,g,v="",b=300;c.optNodeForKeyboardSearch=function(e){m&&clearTimeout(m),m=setTimeout(function(){m=n,v="",g=n,h=n},b);var r=e.keyCode-(i.isNumPadKey(e)?48:0);v+=String.fromCharCode(r);var o=new RegExp("^"+v,"i");h||(h=a.find("md-option"),g=new Array(h.length),t.forEach(h,function(e,t){g[t]=e.textContent.trim()}));for(var l=0;l<g.length;++l)if(o.test(g[l]))return h[l]},c.init=function(n,i){c.ngModel=n,c.modelBinding=i,c.ngModel.$isEmpty=function(e){return!c.options[c.hashGetter(e)]};var l=r.getModelOption(n,"trackBy");if(l){var a={},d=e(l);c.hashGetter=function(e,t){return a.$value=e,d(t||o,a)}}else c.hashGetter=function(e){return t.isObject(e)?"object_"+(e.$$mdSelectId||(e.$$mdSelectId=++u)):e};c.setMultiple(c.isMultiple)},c.selectedLabels=function(e){e=e||{};var t=e.mode||"html",n=r.nodesToArray(a[0].querySelectorAll("md-option[selected]"));if(n.length){var i;return"html"==t?i=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 r=e.querySelector(".md-container");return r&&(t=t.replace(r.outerHTML,"")),t}:"aria"==t&&(i=function(e){return e.hasAttribute("aria-label")?e.getAttribute("aria-label"):e.textContent}),r.uniq(n.map(i)).join(", ")}return""},c.select=function(e,t){var n=c.options[e];n&&n.setSelected(!0),c.selected[e]=t},c.deselect=function(e){var t=c.options[e];t&&t.setSelected(!1),delete c.selected[e]},c.addOption=function(e,n){if(t.isDefined(c.options[e]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+n.value+'" found.');c.options[e]=n,t.isDefined(c.selected[e])&&(c.select(e,n.value),t.isDefined(c.ngModel.$modelValue)&&c.hashGetter(c.ngModel.$modelValue)===e&&c.ngModel.$validate(),c.refreshViewValue())},c.removeOption=function(e){delete c.options[e]},c.refreshViewValue=function(){var e,n=[];for(var i in c.selected)(e=c.options[i])?n.push(e.value):n.push(c.selected[i]);var o=r.getModelOption(c.ngModel,"trackBy"),l=c.isMultiple?n:n[0],a=c.ngModel.$modelValue;(o?t.equals(a,l):a+""===l)||(c.ngModel.$setViewValue(l),c.ngModel.$render())}}return a.$inject=["$scope","$attrs","$element"],{restrict:"E",require:["mdSelectMenu"],scope:!1,controller:a,link:{pre:l}}}function o(e,n,r){function i(e,n){return e.append(t.element('<div class="md-text">').append(e.contents())),e.attr("tabindex",n.tabindex||"0"),o(n)||e.attr("md-option-empty",""),l}function o(e){var t=e.value,n=e.ngValue;return t||n}function l(i,o,l,a){function d(e,t,n){if(!u.hashGetter)return void(n||i.$$postDigest(function(){d(e,t,!0)}));var r=u.hashGetter(t,i),o=u.hashGetter(e,i);c.hashKey=o,c.value=e,u.removeOption(r,c),u.addOption(o,c)}function s(){var e={role:"option","aria-selected":"false"};o[0].hasAttribute("id")||(e.id="select_option_"+n.nextUid()),o.attr(e)}var c=a[0],u=a[1];r(o),u.isMultiple&&(o.addClass("md-checkbox-enabled"),o.prepend(p.clone())),t.isDefined(l.ngValue)?i.$watch(l.ngValue,d):t.isDefined(l.value)?d(l.value):i.$watch(function(){return o.text().trim()},d),l.$observe("disabled",function(e){e?o.attr("tabindex","-1"):o.attr("tabindex","0")}),i.$$postDigest(function(){l.$observe("selected",function(e){t.isDefined(e)&&("string"==typeof e&&(e=!0),e?(u.isMultiple||u.deselect(Object.keys(u.selected)[0]),u.select(c.hashKey,c.value)):u.deselect(c.hashKey),u.refreshViewValue())})}),e.attach(i,o),s(),i.$on("$destroy",function(){u.removeOption(c.hashKey,c)})}function a(e){this.selected=!1,this.setSelected=function(t){t&&!this.selected?e.attr({selected:"selected","aria-selected":"true"}):!t&&this.selected&&(e.removeAttr("selected"),e.attr("aria-selected","false")),this.selected=t}}return a.$inject=["$element"],{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:a,compile:i}}function l(){function e(e,n){function r(){return e.parent().find("md-select-header").length}function i(){var r=e.find("label");r.length||(r=t.element("<label>"),e.prepend(r)),r.addClass("md-container-ignore"),n.label&&r.text(n.label)}r()||i()}return{restrict:"E",compile:e}}function a(){return{restrict:"E"}}function d(r){function i(r,i,u,p,f,m,h,g,v){function b(e,t,n){function r(){return o=h(t,{addClass:"md-leave"}),o.start()}function i(){l(),t.removeClass("md-active").attr("aria-hidden","true").css("display","none"),y(n),!n.$destroy&&n.restoreFocus&&n.target.focus()}var o=null,l=e.$on("$destroy",function(){o.end()});return n=n||{},n.cleanupInteraction(),n.cleanupResizing(),n.hideBackdrop(),n.$destroy===!0?i():r().then(i)}function $(e,o,l){function a(e,t,n){return n.parent.append(t),f(function(e,n){try{h(t,{removeClass:"md-leave",duration:0}).start().then(d).then(e)}catch(r){n(r)}})}function d(){return f(function(t){if(l.isRemoved)return f.reject(!1);var n=C(e,o,l);n.container.element.css(M.toCss(n.container.styles)),n.dropDown.element.css(M.toCss(n.dropDown.styles)),m(function(){o.addClass("md-active"),n.dropDown.element.css(M.toCss({transform:""})),b(l.focusedNode),t()})})}function c(e,t,n){return n.disableParentScroll&&!u.getClosest(n.target,"MD-DIALOG")?n.restoreScroll=u.disableScrollAround(n.element,n.parent):n.disableParentScroll=!1,n.hasBackdrop&&(n.backdrop=u.createBackdrop(e,"md-select-backdrop md-click-catcher"),g.enter(n.backdrop,v[0].body,null,{duration:0})),function(){n.backdrop&&n.backdrop.remove(),n.disableParentScroll&&n.restoreScroll(),delete n.restoreScroll}}function b(e){e&&!e.hasAttribute("disabled")&&e.focus()}function $(e,n){var r=o.find("md-select-menu");if(!n.target)throw new Error(u.supplant(w,[n.target]));t.extend(n,{isRemoved:!1,target:t.element(n.target),parent:t.element(n.parent),selectEl:r,contentEl:o.find("md-content"),optionNodes:r[0].getElementsByTagName("md-option")})}function y(){var n=function(e,t,n){return function(){if(!n.isRemoved){var r=C(e,t,n),i=r.container,o=r.dropDown;i.element.css(M.toCss(i.styles)),o.element.css(M.toCss(o.styles))}}}(e,o,l),r=t.element(p);return r.on("resize",n),r.on("orientationchange",n),function(){r.off("resize",n),r.off("orientationchange",n)}}function S(){l.loadingAsync&&!l.isRemoved&&(e.$$loadingAsyncDone=!1,f.when(l.loadingAsync).then(function(){e.$$loadingAsyncDone=!0,delete l.loadingAsync}).then(function(){m(d)}))}function x(){function e(e){e.preventDefault(),e.stopPropagation(),l.restoreFocus=!1,u.nextTick(r.hide,!0)}function t(e){switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case k.UP_ARROW:return c();case k.DOWN_ARROW:return d();case k.SPACE:case k.ENTER:var t=u.getClosest(e.target,"md-option");t&&(f.triggerHandler({type:"click",target:t}),e.preventDefault()),p(e);break;case k.TAB:case k.ESCAPE:e.stopPropagation(),e.preventDefault(),l.restoreFocus=!0,u.nextTick(r.hide,!0);break;default:if(s(e,i)){var n=f.controller("mdSelectMenu").optNodeForKeyboardSearch(e);l.focusedNode=n||l.focusedNode,n&&n.focus()}}}function a(e){var t,r=u.nodesToArray(l.optionNodes),i=r.indexOf(l.focusedNode);do i===-1?i=0:"next"===e&&i<r.length-1?i++:"prev"===e&&i>0&&i--,t=r[i],t.hasAttribute("disabled")&&(t=n);while(!t&&i<r.length-1&&i>0);t&&t.focus(),l.focusedNode=t}function d(){a("next")}function c(){a("prev")}function p(e){function t(){var t=!1;if(e&&e.currentTarget.children.length>0){var n=e.currentTarget.children[0],r=n.scrollHeight>n.clientHeight;if(r&&n.children.length>0){var i=e.pageX-e.currentTarget.getBoundingClientRect().left;i>n.querySelector("md-option").offsetWidth&&(t=!0)}}return t}if(!(e&&"click"==e.type&&e.currentTarget!=f[0]||t())){var n=u.getClosest(e.target,"md-option");n&&n.hasAttribute&&!n.hasAttribute("disabled")&&(e.preventDefault(),e.stopPropagation(),m.isMultiple||(l.restoreFocus=!0,u.nextTick(function(){r.hide(m.ngModel.$viewValue)},!0)))}}if(!l.isRemoved){var f=l.selectEl,m=f.controller("mdSelectMenu")||{};return o.addClass("md-clickable"),l.backdrop&&l.backdrop.on("click",e),f.on("keydown",t),f.on("click",p),function(){l.backdrop&&l.backdrop.off("click",e),f.off("keydown",t),f.off("click",p),o.removeClass("md-clickable"),l.isRemoved=!0}}}return S(),$(e,l),l.hideBackdrop=c(e,o,l),a(e,o,l).then(function(e){return o.attr("aria-hidden","false"),l.alreadyOpen=!0,l.cleanupInteraction=x(),l.cleanupResizing=y(),e},l.hideBackdrop)}function y(e){var t=e.selectCtrl;if(t){var n=e.selectEl.controller("mdSelectMenu");t.setLabelText(n?n.selectedLabels():""),t.triggerClose()}}function C(n,r,i){var s,f=r[0],m=i.target[0].children[0],h=v[0].body,g=i.selectEl[0],b=i.contentEl[0],$=h.getBoundingClientRect(),y=m.getBoundingClientRect(),C=!1,w={left:$.left+c,top:c,bottom:$.height-c,right:$.width-c-(u.floatingScrollbars()?16:0)},M={top:y.top-w.top,left:y.left-w.left,right:w.right-(y.left+y.width),bottom:w.bottom-(y.top+y.height)},k=$.width-2*c,S=g.querySelector("md-option[selected]"),x=g.getElementsByTagName("md-option"),A=g.getElementsByTagName("md-optgroup"),O=d(r,b),E=o(i.loadingAsync);s=E?b.firstElementChild||b:S?S:A.length?A[0]:x.length?x[0]:b.firstElementChild||b,b.offsetWidth>k?b.style["max-width"]=k+"px":b.style.maxWidth=null,C&&(b.style["min-width"]=y.width+"px"),O&&g.classList.add("md-overflow");var T=s;"MD-OPTGROUP"===(T.tagName||"").toUpperCase()&&(T=x[0]||b.firstElementChild||b,s=T),i.focusedNode=T,f.style.display="block";var D=g.getBoundingClientRect(),R=a(s);if(s){var V=p.getComputedStyle(s);R.paddingLeft=parseInt(V.paddingLeft,10)||0,R.paddingRight=parseInt(V.paddingRight,10)||0}if(O){var P=b.offsetHeight/2;b.scrollTop=R.top+R.height/2-P,M.top<P?b.scrollTop=Math.min(R.top,b.scrollTop+P-M.top):M.bottom<P&&(b.scrollTop=Math.max(R.top+R.height-D.height,b.scrollTop-P+M.bottom))}var B,N,L,_,H;C?(B=y.left,N=y.top+y.height,L="50% 0",N+D.height>w.bottom&&(N=y.top-D.height,L="50% 100%")):(B=y.left+R.left-R.paddingLeft+2,N=Math.floor(y.top+y.height/2-R.height/2-R.top+b.scrollTop)+2,L=R.left+y.width/2+"px "+(R.top+R.height/2-b.scrollTop)+"px 0px",_=Math.min(y.width+R.paddingLeft+R.paddingRight,k),H=e.getComputedStyle(m)["font-size"]);var I=f.getBoundingClientRect(),j=Math.round(100*Math.min(y.width/D.width,1))/100,q=Math.round(100*Math.min(y.height/D.height,1))/100;return{container:{element:t.element(f),styles:{left:Math.floor(l(w.left,B,w.right-I.width)),top:Math.floor(l(w.top,N,w.bottom-I.height)),"min-width":_,"font-size":H}},dropDown:{element:t.element(g),styles:{transformOrigin:L,transform:i.alreadyOpen?"":u.supplant("scale({0},{1})",[j,q])}}}}var w="$mdSelect.show() expected a target element in options.target but got '{0}'!",M=u.dom.animator,k=i.KEY_CODE;return{parent:"body",themable:!0,onShow:$,onRemove:b,hasBackdrop:!0,disableParentScroll:!0}}function o(e){return e&&t.isFunction(e.then)}function l(e,t,n){return Math.max(e,Math.min(t,n))}function a(e){return e?{left:e.offsetLeft,top:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}:{left:0,top:0,width:0,height:0}}function d(e,t){var n=!1;try{var r=e[0].style.display;e[0].style.display="block",n=t.scrollHeight>t.offsetHeight,e[0].style.display=r}finally{}return n}return i.$inject=["$mdSelect","$mdConstant","$mdUtil","$window","$q","$$rAF","$animateCss","$animate","$document"],r("$mdSelect").setDefaults({methods:["target"],options:i})}function s(e,t){var n=String.fromCharCode(e.keyCode),r=e.keyCode<=31;return n&&n.length&&!r&&!t.isMetaKey(e)&&!t.isFnLockKey(e)&&!t.hasModifierKey(e)}r.$inject=["$mdSelect","$mdUtil","$mdConstant","$mdTheming","$mdAria","$parse","$sce","$injector"],i.$inject=["$parse","$mdUtil","$mdConstant","$mdTheming"],o.$inject=["$mdButtonInkRipple","$mdUtil","$mdTheming"],d.$inject=["$$interimElementProvider"];var c=8,u=0,p=t.element('<div class="md-container"><div class="md-icon"></div></div>');t.module("material.components.select",["material.core","material.components.backdrop"]).directive("mdSelect",r).directive("mdSelectMenu",i).directive("mdOption",o).directive("mdOptgroup",l).directive("mdSelectHeader",a).provider("$mdSelect",d)}(window,window.angular);