/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.7.0-rc3 */ function mdMediaFactory(e,t,n,r){function o(e){var t=f.get(e);angular.isUndefined(t)&&(t=f.put(e,a(e)));var n=u.get(t);return angular.isUndefined(n)&&(n=i(t)),n}function a(t){return e.MEDIA[t]||("("!==t.charAt(0)?"("+t+")":t)}function i(e){return u.put(e,!!r.matchMedia(e).matches)}function c(){var e=u.keys(),t=e.length;if(t){for(var r=0;t>r;r++)i(e[r]);n.$evalAsync()}}var f=t.cacheFactory("$mdMedia:queries",{capacity:15}),u=t.cacheFactory("$mdMedia:results",{capacity:15});return angular.element(r).on("resize",c),o}!function(){"use strict";function e(){if("undefined"==typeof Hammer)throw new Error("ngMaterial requires HammerJS to be preloaded.");Hammer.defaults.cssProps.userSelect=""}function t(e,t){function n(e){return e.debounce=function(t){var n,r,o,a;return function(){n=arguments,a=this,o=t,r||(r=!0,e(function(){o.apply(a,n),r=!1}))}},e}e.decorator("$$rAF",["$delegate","$rootScope",n]),t.theme("default").primaryColor("blue").accentColor("green").warnColor("red").backgroundColor("grey")}angular.module("material.core",["material.core.theming"]).run(e).config(t),t.$inject=["$provide","$mdThemingProvider"]}(),function(){"use strict";function e(e,t){function n(e){return r?"webkit"+e.charAt(0).toUpperCase()+e.substring(1):e}var r=/webkit/i.test(t.vendorPrefix);return{KEY_CODE:{ENTER:13,ESCAPE:27,SPACE:32,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40},CSS:{TRANSITIONEND:"transitionend"+(r?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(r?" webkitAnimationEnd":""),TRANSFORM:n("transform"),TRANSITION:n("transition"),TRANSITION_DURATION:n("transitionDuration"),ANIMATION_PLAY_STATE:n("animationPlayState"),ANIMATION_DURATION:n("animationDuration"),ANIMATION_NAME:n("animationName"),ANIMATION_TIMING:n("animationTimingFunction"),ANIMATION_DIRECTION:n("animationDirection")},MEDIA:{sm:"(max-width: 600px)","gt-sm":"(min-width: 600px)",md:"(min-width: 600px) and (max-width: 960px)","gt-md":"(min-width: 960px)",lg:"(min-width: 960px) and (max-width: 1200px)","gt-lg":"(min-width: 1200px)"}}}angular.module("material.core").factory("$mdConstant",e),e.$inject=["$$rAF","$sniffer"]}(),function(){function e(e,t){function n(){return[].concat(b)}function r(){return b.length}function o(e){return b.length&&e>-1&&e-1}function m(){return b.length?b[0]:null}function h(){return b.length?b[b.length-1]:null}function p(e,n,r,a){r=r||g;var i=d(n);if(!o(i))return null;var c=i+(e?-1:1),f=null;return o(c)?f=b[c]:t&&(f=e?h():m(),c=d(f)),null===f||c===a?null:(angular.isUndefined(a)&&(a=c),r(f)?f:p(e,f,r,a))}var g=function(){return!0};t=!!t;var b=e||[];return{items:n,count:r,inRange:o,contains:s,indexOf:d,itemAt:c,findBy:f,add:u,remove:l,first:m,last:h,next:angular.bind(null,p,!1),previous:angular.bind(null,p,!0),hasPrevious:i,hasNext:a}}angular.module("material.core").config(["$provide",function(t){t.decorator("$mdUtil",["$delegate",function(t){return t.iterator=e,t}])}])}(),angular.module("material.core").factory("$mdMedia",mdMediaFactory),mdMediaFactory.$inject=["$mdConstant","$mdUtil","$rootScope","$window"],function(){"use strict";var e=["0","0","0"];angular.module("material.core").factory("$mdUtil",["$cacheFactory","$document","$timeout",function(t,n,r){function o(e,t){function r(){r.called||(r.called=!0,t.off(h,o),n.off(p,a).off(g,c),d=m=!1)}function o(e){var n=e.type.charAt(0),r=i.now();s&&s.pointerType!==n&&r-s.endTime<400||m||(m=!0,d={pointerType:n,startX:u(e),startTime:r},t.one("$md.dragstart",function(e){e.defaultPrevented&&(d=null)}),t.triggerHandler("$md.dragstart",d))}function a(e){d&&l(e,d)&&(("t"===d.pointerType||"p"===d.pointerType)&&e.preventDefault(),f(e),t.triggerHandler("$md.drag",d))}function c(e){m=!1,d&&l(e,d)&&(d.endTime=i.now(),f(e),t.triggerHandler("$md.dragend",d),s=d,d=null)}function f(e){var t=u(e);d.distance=d.startX-t,d.direction=d.distance>0?"left":d.distance<0?"right":"",d.duration=d.startTime-i.now(),d.velocity=Math.abs(d.duration)/d.time}function u(e){e=e.originalEvent||e;var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e;return t.pageX}function l(e,t){return t&&e&&(e.type||"").charAt(0)===t.pointerType}var d,s,m,h="mousedown touchstart pointerdown",p="mousemove touchmove pointermove",g="mouseup mouseleave touchend touchcancel pointerup pointercancel";return t.on(h,o),n.on(p,a).on(g,c),e.$on("$destroy",r),r}function a(e,n){var r=t(e,n),o={};return r._put=r.put,r.put=function(e,t){return o[e]=!0,r._put(e,t)},r._remove=r.remove,r.remove=function(e){return delete o[e],r._remove(e)},r._removeAll=r.removeAll,r.removeAll=function(){return o={},r._removeAll()},r._destroy=r.destroy,r.destroy=function(){return o={},r._destroy()},r.keys=function(){return Object.keys(o)},r}var i;return i={now:window.performance?angular.bind(window.performance,window.performance.now):Date.now,attachDragBehavior:o,elementRect:function(e,t){var n=e[0];t=t||n.offsetParent||document.body,t=t[0]||t;var r=n.getBoundingClientRect(),o=t.getBoundingClientRect();return{left:r.left-o.left+t.scrollLeft,top:r.top-o.top+t.scrollTop,width:r.width,height:r.height}},fakeNgModel:function(){return{$setViewValue:function(e){this.$viewValue=e,this.$render(e),this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[],$render:angular.noop}},cacheFactory:a,debounce:function(e,t,n,o){var a;return function(){var i=n,c=Array.prototype.slice.call(arguments);r.cancel(a),a=r(function(){a=void 0,e.apply(i,c)},t||10,o)}},throttle:function(e,t){var n;return function(){var r=this,o=arguments,a=i.now();(!n||a-n>t)&&(e.apply(r,o),n=a)}},nextUid:function(){for(var t,n=e.length;n;){if(n--,t=e[n].charCodeAt(0),57==t)return e[n]="A",e.join("");if(90!=t)return e[n]=String.fromCharCode(t+1),e.join("");e[n]="0"}return e.unshift("0"),e.join("")},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){t=t.toUpperCase();do if(e.nodeName===t)return e;while(e=e.parentNode);return null}}}]),angular.element.prototype.focus=angular.element.prototype.focus||function(){return this.length&&this[0].focus(),this},angular.element.prototype.blur=angular.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),function(){"use strict";function e(e,t,n){function r(e,n,r){var o=e[0];o.hasAttribute(n)||i(o,n)||(r=angular.isString(r)&&r.trim()||"",r.length?e.attr(n,r):t.warn('ARIA: Attribute "',n,'", required for accessibility, is missing on node:',o))}function o(t,n,o){e(function(){r(t,n,o())})}function a(e,t){o(e,t,function(){return e.text().trim()})}function i(e,t){function r(e){var t=e.currentStyle?e.currentStyle:n.getComputedStyle(e);return"none"===t.display}var o=e.hasChildNodes(),a=!1;if(o)for(var i=e.childNodes,c=0;c").html(t.trim()).contents(),a=r(n);return{locals:e,element:n,link:function(t){if(e.$scope=t,u){var r=o(u,e);h&&angular.extend(r,e),n.data("$ngControllerController",r),n.children().data("$ngControllerController",r),l&&(t[l]=r)}return a(t)}}})}}angular.module("material.core").service("$mdCompiler",e),e.$inject=["$q","$http","$injector","$compile","$controller","$templateCache"]}(),function(){"use strict";function e(){function e(e){function t(e){return a.optionsFactory=e.options,a.methods=(e.methods||[]).concat(o),i}function n(t,n){if(n=n||{},n.methods=n.methods||[],n.options=n.options||function(){return{}},/^cancel|hide|show$/.test(t))throw new Error("Preset '"+t+"' in "+e+" is reserved!");if(n.methods.indexOf("_options")>-1)throw new Error("Method '_options' in "+e+" is reserved!");return a.presets[t]={methods:n.methods.concat(o),optionsFactory:n.options,argOption:n.argOption},i}function r(t,n,r){function o(e){return e&&e._options&&(e=e._options),u.show(angular.extend({},f,e))}function i(t,n){var o={};return o[e]=l,r.invoke(t||function(){return n},{},o)}var c,f,u=t(),l={hide:u.hide,cancel:u.cancel,show:o};return c=a.methods||[],f=i(a.optionsFactory,{}),angular.forEach(a.presets,function(e,t){function n(e){this._options=angular.extend({},r,e)}var r=i(e.optionsFactory,{}),o=(e.methods||[]).concat(c);if(angular.extend(r,{$type:t}),angular.forEach(o,function(e){n.prototype[e]=function(t){return this._options[e]=t,this}}),e.argOption){var a="show"+t.charAt(0).toUpperCase()+t.slice(1);l[a]=function(e){var n=l[t](e);return l.show(n)}}l[t]=function(t){return arguments.length&&e.argOption&&!angular.isObject(t)&&!angular.isArray(t)?(new n)[e.argOption](t):new n(t)}}),l}var o=["onHide","onShow","onRemove"],a={presets:{}},i={setDefaults:t,addPreset:n,$get:r};return i.addPreset("build",{methods:["controller","controllerAs","resolve","template","templateUrl","themable","transformTemplate","parent"]}),r.$inject=["$$interimElement","$animate","$injector"],i}function t(e,t,n,r,o,a,i,c,f){function u(e){return e&&angular.isString(e)?e.replace(/\{\{/g,l).replace(/}}/g,d):e}var l=i.startSymbol(),d=i.endSymbol(),s="{{"===l&&"}}"===d,m=s?angular.identity:u;return function(){function i(e){h.length&&s.cancel();var t=new d(e);return h.push(t),t.show().then(function(){return t.deferred.promise})}function u(e){var n=h.shift();return n&&n.remove().then(function(){n.deferred.resolve(e)}),n?n.deferred.promise:t.when(e)}function l(e){var n=h.shift();return n&&n.remove().then(function(){n.deferred.reject(e)}),n?n.deferred.promise:t.reject(e)}function d(i){var u,l,d;return i=i||{},i=angular.extend({scope:i.scope||n.$new(i.isolateScope),onShow:function(e,t,n){return a.enter(t,n.parent)},onRemove:function(e,n){return n&&a.leave(n)||t.when()}},i),i.template&&(i.template=m(i.template)),u={options:i,deferred:t.defer(),show:function(){return c.compile(i).then(function(n){function a(){i.hideDelay&&(l=r(s.cancel,i.hideDelay))}angular.extend(n.locals,u.options),angular.isString(i.parent)?i.parent=angular.element(e[0].querySelector(i.parent)):i.parent||(i.parent=o.find("body"),i.parent.length||(i.parent=o)),d=n.link(i.scope),i.themable&&f(d);var c=i.onShow(i.scope,d,i);return t.when(c).then(function(){(i.onComplete||angular.noop)(i.scope,d,i),a()})})},cancelTimeout:function(){l&&(r.cancel(l),l=void 0)},remove:function(){u.cancelTimeout();var e=i.onRemove(i.scope,d,i);return t.when(e).then(function(){i.scope.$destroy()})}}}var s,h=[];return s={show:i,hide:u,cancel:l}}}return e.$get=t,t.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$interpolate","$mdCompiler","$mdTheming"],e}angular.module("material.core").provider("$$interimElement",e)}(),function(){"use strict";function e(e,t){function n(e){return e&&""!==e}var r,o=[],a={};return r={notFoundError:function(t){e.error("No instance found for handle",t)},getInstances:function(){return o},get:function(e){if(!n(e))return null;var t,r,a;for(t=0,r=o.length;r>t;t++)if(a=o[t],a.$$mdHandle===e)return a;return null},register:function(e,t){function n(){var t=o.indexOf(e);-1!==t&&o.splice(t,1)}function r(){var n=a[t];n&&(n.resolve(e),delete a[t])}return t?(e.$$mdHandle=t,o.push(e),r(),n):angular.noop},when:function(e){if(n(e)){var o=t.defer(),i=r.get(e);return i?o.resolve(i):a[e]=o,o.promise}return t.reject("Invalid `md-component-id` value.")}}}angular.module("material.core").factory("$mdComponentRegistry",e),e.$inject=["$log","$q"]}(),function(){"use strict";function e(e){return{controller:angular.noop,link:function(t,n,r){r.hasOwnProperty("mdInkRippleCheckbox")?e.attachCheckboxBehavior(t,n):e.attachButtonBehavior(t,n)}}}function t(e,t){function n(e,t,n){return a(e,t,angular.extend({isFAB:t.hasClass("md-fab"),isMenuItem:t.hasClass("md-menu-item"),center:!1,dimBackground:!0},n))}function r(e,t,n){return a(e,t,angular.extend({center:!0,dimBackground:!1},n))}function o(e,t,n){return a(e,t,angular.extend({center:!1,dimBackground:!0,outline:!0},n))}function a(n,r,o){function a(e){function t(e){var t="#"===e.charAt(0)?e.substr(1):e,n=t.length/3,r=t.substr(0,n),o=t.substr(n,n),a=t.substr(2*n);return 1===n&&(r+=r,o+=o,a+=a),"rgba("+parseInt(r,16)+","+parseInt(o,16)+","+parseInt(a,16)+",0.1)"}function n(e){return e.replace(")",", 0.1)").replace("(","a(")}if(e)return 0===e.indexOf("rgba")?e.replace(/\d?\.?\d*\s*\)\s*$/,"0.1)"):0===e.indexOf("rgb")?n(e):0===e.indexOf("#")?t(e):void 0}function i(e,n){h.splice(h.indexOf(e),1),0===h.length&&l&&l.css({backgroundColor:""}),t(function(){e.remove()},n,!1)}function c(e){var t=h.indexOf(e),n=p[t]||{},r=h.length>1?!1:b,a=h.length>1?!1:v;r||n.animating||a?e.addClass("md-ripple-visible"):e&&(e.removeClass("md-ripple-visible"),o.outline&&e.css({width:d+"px",height:d+"px",marginLeft:-1*d+"px",marginTop:-1*d+"px"}),i(e,o.outline?450:650))}function f(n,i){function f(e){var t=angular.element('
');return h.unshift(t),p.unshift({animating:!0}),b.append(t),e&&t.css(e),t}function u(e,t){var n,r,a,i=b.prop("offsetWidth"),c=b.prop("offsetHeight");return o.isMenuItem?r=Math.sqrt(Math.pow(i,2)+Math.pow(c,2)):o.outline?(a=$.getBoundingClientRect(),e-=a.left,t-=a.top,i=Math.max(e,i-e),c=Math.max(t,c-t),r=2*Math.sqrt(Math.pow(i,2)+Math.pow(c,2))):(n=o.isFAB?1.1:.8,r=Math.max(i,c)*n),r}function s(e,t,n){function r(e){return e.replace("rgba","rgb").replace(/,[^\)\,]+\)/,")")}var a,i={backgroundColor:r(w),borderColor:r(w),width:e+"px",height:e+"px"};return o.outline?(i.width=0,i.height=0):i.marginLeft=i.marginTop=e*-.5+"px",o.center?i.left=i.top="50%":(a=$.getBoundingClientRect(),i.left=Math.round((t-a.left)/b.prop("offsetWidth")*100)+"%",i.top=Math.round((n-a.top)/b.prop("offsetHeight")*100)+"%"),i}function g(){if(l)return l;var e=angular.element('
');return l=e,r.append(e),e}w=a(r.attr("md-ink-ripple"))||a(e.getComputedStyle(o.colorElement[0]).color||"rgb(0, 0, 0)");var b=g(),v=u(n,i),A=s(v,n,i),C=f(A),y=h.indexOf(C),T=p[y]||{};return d=v,T.animating=!0,t(function(){o.dimBackground&&b.css({backgroundColor:w}),C.addClass("md-ripple-placed md-ripple-scaled"),o.outline?C.css({borderWidth:.5*v+"px",marginLeft:v*-.5+"px",marginTop:v*-.5+"px"}):C.css({left:"50%",top:"50%"}),c(C),t(function(){T.animating=!1,c(C)},o.outline?450:225,!1)},0,!1),C}function u(e){function n(){function e(e){return e&&e.hasAttribute&&e.hasAttribute("disabled")}var t=$.parentNode,n=t&&t.parentNode,r=n&&n.parentNode;return!(e($)||e(t)||e(n)||e(r))}var r,o;e.eventType===Hammer.INPUT_START&&e.isFirst&&n()?(r=f(e.center.x,e.center.y),v=!0):e.eventType===Hammer.INPUT_END&&e.isFinal&&(v=!1,o=h.length-1,r=h[o],t(function(){c(r)},0,!1))}if(r.controller("mdNoInk"))return angular.noop;o=angular.extend({colorElement:r,mousedown:!0,hover:!0,focus:!0,center:!1,mousedownPauseTime:150,dimBackground:!1,outline:!1,isFAB:!1,isMenuItem:!1},o);var l,d,s=r.controller("mdInkRipple")||{},m=0,h=[],p=[],g=r.attr("md-highlight"),b=!1,v=!1,$=r[0],A=new Hammer($),w=a(r.attr("md-ink-ripple"))||a(e.getComputedStyle(o.colorElement[0]).color||"rgb(0, 0, 0)");return n._onInput=u,o.mousedown&&A.on("hammer.input",u),s.createRipple=f,g&&n.$watch(g,function(e){b=e,b&&!h.length&&t(function(){f(0,0)},0,!1),angular.forEach(h,c)}),function(){A.destroy(),l&&l.remove()}}return{attachButtonBehavior:n,attachCheckboxBehavior:r,attachTabBehavior:o,attach:a}}function n(){return function(){return{controller:angular.noop}}}angular.module("material.core").factory("$mdInkRipple",t).directive("mdInkRipple",e).directive("mdNoInk",n()).directive("mdNoBar",n()).directive("mdNoStretch",n()),e.$inject=["$mdInkRipple"],t.$inject=["$window","$timeout"]}(),function(){"use strict";angular.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 400 A100"},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 300 400 A100"},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"},"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"},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"},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:"100 200 300 400 A100"},"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:"500 600 700 800 900 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:"500 600 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"},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"},"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:"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"},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"},"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"},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"},grey:{0:"#ffffff",50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",1000:"#000000",A100:"#ffffff",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900"},"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"}})}(),function(){"use strict";function e(e){function t(e,t){return t=t||{},f[e]=o(e,t),l}function n(e,t){return o(e,angular.extend({},f[e]||{},t))}function o(e,t){var n=C.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 a(e,t){if(t=t||"default",u[e])return u[e];var n="string"==typeof t?u[t]:t,r=new i(e);return n&&angular.forEach(n.colors,function(e,t){r.colors[t]={name:e.name,hues:angular.extend({},e.hues)}}),u[e]=r,r}function i(e){function t(e){if(e=0===arguments.length?!0:!!e,e!==n.isDark){n.isDark=e,n.foregroundPalette=n.isDark?m:s,n.foregroundShadow=n.isDark?h:p;var t=n.isDark?w:A,r=n.isDark?A:w;return angular.forEach(t,function(e,t){var o=n.colors[t],a=r[t];if(o)for(var i in o.hues)o.hues[i]===a[i]&&(o.hues[i]=e[i])}),n}}var n=this;n.name=e,n.colors={},n.dark=t,t(!1),v.forEach(function(e){var t=(n.isDark?w:A)[e];n[e+"Color"]=function(r,o){var a=n.colors[e]={name:r,hues:angular.extend({},t,o)};return Object.keys(a.hues).forEach(function(e){if(!t[e])throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",e).replace("%2",n.name).replace("%3",r).replace("%4",Object.keys(t).join(", ")))}),Object.keys(a.hues).map(function(e){return a.hues[e]}).forEach(function(t){if(-1==C.indexOf(t))throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",t).replace("%2",n.name).replace("%3",e).replace("%4",r).replace("%5",C.join(", ")))}),n}})}function d(e){function t(n,r){void 0===r&&(r=n,n=void 0),void 0===n&&(n=e),t.inherit(r,r)}return t.inherit=function(t,n){function r(e){var n=t.data("$mdThemeName");n&&t.removeClass("md-"+n+"-theme"),t.addClass("md-"+e+"-theme"),t.data("$mdThemeName",e)}var o=n.controller("mdTheme"),a=t.attr("md-theme-watch");if((b||angular.isDefined(a))&&"false"!=a){var i=e.$watch(function(){return o&&o.$mdTheme||g},r);t.on("$destroy",i)}else{var c=o&&o.$mdTheme||g;r(c)}},t}f={},u={};var g="default",b=!1;return angular.extend(f,e),d.$inject=["$rootScope"],l={definePalette:t,extendPalette:n,theme:a,setDefaultTheme:function(e){g=e},alwaysWatchTheme:function(e){b=e},$get:d,_LIGHT_DEFAULT_HUES:A,_DARK_DEFAULT_HUES:w,_PALETTES:f,_THEMES:u,_parseRules:r,_rgba:c}}function t(e){return{priority:100,link:{pre:function(t,n,r){var o={$setTheme:function(e){o.$mdTheme=e}};n.data("$mdThemeController",o),o.$setTheme(e(r.mdTheme)(t)),r.$observe("mdTheme",o.$setTheme)}}}}function n(e){return e}function r(e,t,n){a(e,t),n=n.replace(/THEME_NAME/g,e.name);var r=[],o=e.colors[t],i=new RegExp(".md-"+e.name+"-theme","g"),u=new RegExp("('|\")?{{\\s*("+t+")-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),l=/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue\-[0-3]|shadow)-?(\d\.?\d*)?\s*\}\}'?"?/g,d=f[o.name];return n=n.replace(l,function(t,n,r,o){return"foreground"===n?"shadow"==r?e.foregroundShadow:e.foregroundPalette[r]||e.foregroundPalette["1"]:(0===r.indexOf("hue")&&(r=e.colors[n].hues[r]),c((f[e.colors[n].name][r]||"").value,o))}),angular.forEach(o.hues,function(t,o){var a=n.replace(u,function(e,n,r,o,a){return c(d[t]["color"===o?"value":"contrast"],a)});"default"!==o&&(a=a.replace(i,".md-"+e.name+"-theme.md-"+o)),r.push(a)}),r.join("")}function o(e){function t(e){var t=e.contrastDefaultColor,n=e.contrastLightColors||[],r=e.contrastDarkColors||[];"string"==typeof n&&(n=n.split(" ")),"string"==typeof r&&(r=r.split(" ")),delete e.contrastDefaultColor,delete e.contrastLightColors,delete e.contrastDarkColors,angular.forEach(e,function(o,a){function c(){return"light"===t?r.indexOf(a)>-1?g:b:n.indexOf(a)>-1?b:g}if(!angular.isObject(o)){var f=i(o);if(!f)throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",o).replace("%2",e.name).replace("%3",a));e[a]={value:f,contrast:c()}}})}var n=e.has("$MD_THEME_CSS")?e.get("$MD_THEME_CSS"):"";angular.forEach(f,t);var o=n.split(/\}(?!(\}|'|"|;))/).filter(function(e){return e&&e.length}).map(function(e){return e.trim()+"}"}),a={};v.forEach(function(e){a[e]=""});var c=new RegExp("md-("+v.join("|")+")","g");o.forEach(function(e){for(var t,n=(e.match(c),0);t=v[n];n++)if(e.indexOf(".md-"+t)>-1)return a[t]+=e;for(n=0;t=v[n];n++)if(e.indexOf(t)>-1)return a[t]+=e;return a[$]+=e});var l="";if(angular.forEach(u,function(e){v.forEach(function(t){l+=r(e,t,a[t]+"")})}),!d){var s=document.createElement("style");s.innerHTML=l;var m=document.getElementsByTagName("head")[0];m.insertBefore(s,m.firstElementChild),d=!0}}function a(e,t){if(!f[(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(f).join(", ")))}function i(e){if(angular.isArray(e)&&3==e.length)return e;if(/^rgb/.test(e))return e.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map(function(e){return 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),r=e.substr(t,t),o=e.substr(2*t);return 1===t&&(n+=n,r+=r,o+=o),[parseInt(n,16),parseInt(r,16),parseInt(o,16)]}}function c(e,t){return 4==e.length&&(t=e.pop()),t&&t.length?"rgba("+e.join(",")+","+t+")":"rgb("+e.join(",")+")"}angular.module("material.core.theming",["material.core.theming.palette"]).directive("mdTheme",t).directive("mdThemable",n).provider("$mdTheming",e).run(o);var f,u,l,d,s={name:"dark",1:"rgba(0,0,0,0.87)",2:"rgba(0,0,0,0.54)",3:"rgba(0,0,0,0.26)",4:"rgba(0,0,0,0.12)"},m={name:"light",1:"rgba(255,255,255,1.0)",2:"rgba(255,255,255,0.7)",3:"rgba(255,255,255,0.3)",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)",p="",g=i("rgba(0,0,0,0.87)"),b=i("rgb(255,255,255)"),v=["primary","accent","warn","background"],$="primary",A={accent:{"default":"A700","hue-1":"A200","hue-2":"A400","hue-3":"A100"}},w={background:{"default":"500","hue-1":"300","hue-2":"600","hue-3":"800"}};v.forEach(function(e){var t={"default":"500","hue-1":"300","hue-2":"800","hue-3":"A100"};A[e]||(A[e]=t),w[e]||(w[e]=t)});var C=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"];e.$inject=["$mdColorPalette"],t.$inject=["$interpolate"],n.$inject=["$mdTheming"],o.$inject=["$injector"]}();