Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-material

Package Overview
Dependencies
Maintainers
2
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-material - npm Package Compare versions

Comparing version 1.1.16 to 1.1.17

2

bower.json
{
"name": "angular-material",
"version": "1.1.16",
"version": "1.1.17",
"license": "MIT",

@@ -5,0 +5,0 @@ "ignore": [],

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
goog.provide("ngmaterial.components.autocomplete"),goog.require("ngmaterial.components.icon"),goog.require("ngmaterial.components.virtualRepeat"),goog.require("ngmaterial.core"),angular.module("material.components.autocomplete",["material.core","material.components.icon","material.components.virtualRepeat"]),MdAutocompleteCtrl.$inject=["$scope","$element","$mdUtil","$mdConstant","$mdTheming","$window","$animate","$rootElement","$attrs","$q","$log","$mdLiveAnnouncer"],angular.module("material.components.autocomplete").controller("MdAutocompleteCtrl",MdAutocompleteCtrl);var ITEM_HEIGHT=48,MAX_ITEMS=5,MENU_PADDING=8,INPUT_PADDING=2,MODE_STANDARD="standard",MODE_VIRTUAL="virtual";function MdAutocompleteCtrl(p,h,g,t,n,e,o,i,f,r,l,a){var c,u,d,s=this,m=p.itemsExpr.split(/ in /i),$=m[1],C=null,x={},v=!1,b=[],A=!1,M=0,T=null,w=null,D=g.debounce(function(){s.hidden||R()}),I=MODE_VIRTUAL;c="hidden",u=function(e,t){!e&&t?(R(),J(!0,E.Count|E.Selected),C&&(g.disableScrollAround(C.ul),T=function(e){function t(e){e.preventDefault()}return e.on("wheel",t),e.on("touchmove",t),function(){e.off("wheel",t),e.off("touchmove",t)}}(angular.element(C.wrap)))):e&&!t&&(g.enableScrolling(),T&&(T(),T=null))},d=!0,Object.defineProperty(s,c,{get:function(){return d},set:function(e){var t=d;u(d=e,t)}}),s.scope=p,s.parent=p.$parent,s.itemName=m[0],s.matches=[],s.loading=!1,s.hidden=!0,s.index=null,s.id=g.nextUid(),s.isDisabled=null,s.isRequired=null,s.isReadonly=null,s.hasNotFound=!1,s.selectedMessage=p.selectedMessage||"selected",s.keydown=function(e){switch(e.keyCode){case t.KEY_CODE.DOWN_ARROW:if(s.loading||z())return;e.stopPropagation(),e.preventDefault(),s.index=Math.min(s.index+1,s.matches.length-1),Q(),J(!1,E.Selected);break;case t.KEY_CODE.UP_ARROW:if(s.loading||z())return;e.stopPropagation(),e.preventDefault(),s.index=s.index<0?s.matches.length-1:Math.max(0,s.index-1),Q(),J(!1,E.Selected);break;case t.KEY_CODE.TAB:if(O(),s.hidden||s.loading||s.index<0||s.matches.length<1)return;K(s.index);break;case t.KEY_CODE.ENTER:if(s.hidden||s.loading||s.index<0||s.matches.length<1)return;if(z())return;e.stopImmediatePropagation(),e.preventDefault(),K(s.index);break;case t.KEY_CODE.ESCAPE:if(e.preventDefault(),!(V("blur")||!s.hidden||s.loading||V("clear")&&p.searchText))return;e.stopPropagation(),Y(),p.searchText&&V("clear")&&X(),s.hidden=!0,V("blur")&&function(e){e&&(A=v=!1);C.input.blur()}(!0)}},s.blur=function(e){A=!1,v||(s.hidden=F(),oe("ngBlur",{$event:e}))},s.focus=function(e){A=!0,U()&&W()&&te();s.hidden=F(),oe("ngFocus",{$event:e})},s.clear=function(){Y(),X()},s.select=K,s.listEnter=function(){v=!0},s.listLeave=O,s.mouseUp=function(){C.input.focus()},s.getCurrentDisplayValue=j,s.registerSelectedItemWatcher=function(e){-1===b.indexOf(e)&&b.push(e)},s.unregisterSelectedItemWatcher=function(e){var t=b.indexOf(e);-1!==t&&b.splice(t,1)},s.notFoundVisible=ee,s.loadingIsVisible=function(){return s.loading&&!z()},s.positionDropdown=R;var y,E={Count:1,Selected:2};return g.initOptionalProperties(p,f,{searchText:"",selectedItem:null,clearButton:!1,disableVirtualRepeat:!1}),n(h),y=parseInt(p.delay,10)||0,f.$observe("disabled",function(e){s.isDisabled=g.parseAttributeBoolean(e,!1)}),f.$observe("required",function(e){s.isRequired=g.parseAttributeBoolean(e,!1)}),f.$observe("readonly",function(e){s.isReadonly=g.parseAttributeBoolean(e,!1)}),p.$watch("searchText",y?g.debounce(H,y):H),p.$watch("selectedItem",_),angular.element(e).on("resize",D),p.$on("$destroy",S),void g.nextTick(function(){var e;e=function(){var e,t;for(e=h;e.length&&(t=e.attr("md-autocomplete-snap"),!angular.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}}(),(C={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=C.ul.getElementsByTagName("li"),C.$=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=angular.element(e[n]));return t}(C),I=C.scrollContainer.classList.contains("md-standard-list-container")?MODE_STANDARD:MODE_VIRTUAL,w=C.$.input.controller("ngModel"),C.$.root.length&&(n(C.$.scrollContainer),C.$.scrollContainer.detach(),C.$.root.append(C.$.scrollContainer),o.pin&&o.pin(C.$.scrollContainer,i)),p.autofocus&&h.on("focus",N),p.inputAriaDescribedBy&&C.input.setAttribute("aria-describedby",p.inputAriaDescribedBy),p.floatingLabel||(p.inputAriaLabel?C.input.setAttribute("aria-label",p.inputAriaLabel):p.inputAriaLabelledBy?C.input.setAttribute("aria-labelledby",p.inputAriaLabelledBy):p.placeholder&&C.input.setAttribute("aria-label",p.placeholder))});function L(){p.requireMatch&&w&&w.$setValidity("md-require-match",!!p.selectedItem||!p.searchText)}function R(){if(!C)return g.nextTick(R,!1,p);var e,t=(p.dropdownItems||MAX_ITEMS)*ITEM_HEIGHT,n=C.wrap.getBoundingClientRect(),o=C.snap.getBoundingClientRect(),i=C.root.getBoundingClientRect(),l=o.bottom-i.top,a=i.bottom-o.top,r=n.left-i.left,c=n.width,u=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}(),d=p.dropdownPosition,s=i.bottom-o.bottom-MENU_PADDING+g.getViewportTop(),m=o.top-MENU_PADDING;d||(d=t<s?"bottom":t<m?"top":s<m?"top":"bottom"),f.mdFloatingLabel&&(r+=INPUT_PADDING,c-=2*INPUT_PADDING),(e={left:r+"px",minWidth:c+"px",maxWidth:Math.max(n.right-i.left,i.right-n.left)-MENU_PADDING+"px"}).maxHeight="top"===d?(e.top="auto",e.bottom=a+"px",Math.min(t,m)+"px"):(s=i.bottom-n.bottom-MENU_PADDING+g.getViewportTop(),e.top=l-u+"px",e.bottom="auto",Math.min(t,s)+"px"),C.$.scrollContainer.css(e),g.nextTick(function(){var e=C.scrollContainer.getBoundingClientRect(),t={};e.right>i.right&&(t.left=n.right-e.width+"px");C.$.scrollContainer.css(t)},!1,p)}function N(){C.input.focus()}function S(){if(s.hidden||g.enableScrolling(),angular.element(e).off("resize",D),C){angular.forEach(["ul","scroller","scrollContainer","input"],function(e){C.$[e].remove()})}}function O(){A||s.hidden||C.input.focus(),v=!1,s.hidden=F()}function _(o,i){L(),o?k(o).then(function(e){var t,n;p.searchText=e,t=o,n=i,b.forEach(function(e){e(t,n)})}):i&&p.searchText&&k(i).then(function(e){angular.isString(p.searchText)&&e.toString().toLowerCase()===p.searchText.toLowerCase()&&(p.searchText="")}),o!==i&&angular.isFunction(p.itemChange)&&p.itemChange(B(p.selectedItem))}function H(t,n){s.index=p.autoselect?0:-1,t!==n&&(L(),k(p.selectedItem).then(function(e){t!==e&&(p.selectedItem=null,t!==n&&angular.isFunction(p.textChange)&&p.textChange(),W()?te():(q(!(s.matches=[])),J(!0,E.Count)))}))}function P(){return angular.isNumber(p.minLength)?p.minLength:1}function k(e){return r.when((t=e,(t&&p.itemText?p.itemText(B(t)):null)||e)).then(function(e){return e&&!angular.isString(e)&&l.warn("md-autocomplete: Could not resolve display value to a string. Please check the `md-item-text` attribute."),e});var t}function B(e){if(e){var t={};return s.itemName&&(t[s.itemName]=e),t}}function q(e){s.loading!==e&&(s.loading=e),s.hidden=F()}function F(){return!function(){{if(s.isReadonly)return!1;if(!U())return!1}return W()&&G()||ee()}()}function U(){return!(s.loading&&!G())&&(!z()&&!!A)}function V(e){return!p.escapeOptions||-1!==p.escapeOptions.toLowerCase().indexOf(e)}function G(){return!!s.matches.length}function z(){return!!s.scope.selectedItem}function j(){return k(s.matches[s.index])}function W(){return(p.searchText||"").length>=P()}function K(e){g.nextTick(function(){k(s.matches[e]).then(function(e){var t=C.$.input.controller("ngModel");a.announce(e+" "+s.selectedMessage,"assertive"),t.$setViewValue(e),t.$render()}).finally(function(){p.selectedItem=s.matches[e],q(!1)})},!1)}function Y(){s.index=0,s.matches=[]}function X(){q(!0),p.searchText="";var e=document.createEvent("CustomEvent");e.initCustomEvent("change",!0,!0,{value:""}),C.input.dispatchEvent(e),C.input.blur(),p.searchText="",C.input.focus()}function J(e,t){var n=e?"polite":"assertive",o=[];t&E.Selected&&-1!==s.index&&o.push(j()),t&E.Count&&o.push(r.resolve(function(){switch(s.matches.length){case 0:return"There are no matches available.";case 1:return"There is 1 match available.";default:return"There are "+s.matches.length+" matches available."}}())),r.all(o).then(function(e){a.announce(e.join(" "),n)})}function Q(){var e,t,n,o,i,l,a,r,c,u;C.li[0]&&(I===MODE_STANDARD?(l=C.li[s.index]||C.li[0],a=C.scrollContainer.offsetHeight,r=l&&l.offsetTop||0,c=r+l.clientHeight,u=C.scrollContainer.scrollTop,r<u?Z(r):u+a<c&&Z(c-a)):(e=C.li[0].offsetHeight,t=e*s.index,n=t+e,o=C.scroller.clientHeight,i=C.scroller.scrollTop,t<i?Z(t):i+o<n&&Z(n-o)))}function Z(e){I===MODE_STANDARD?C.scrollContainer.scrollTop=e:C.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(e)}function ee(){var e=(s.scope.searchText||"").length;return s.hasNotFound&&!G()&&(!s.loading||0!==M)&&e>=P()&&(A||v)&&!z()}function te(){var e=p.searchText||"",t=e.toLowerCase();!p.noCache&&x[t]?ne(x[t]):function(t){var e=p.$parent.$eval($),n=t.toLowerCase(),o=angular.isArray(e),i=!!e.then;function l(e){x[n]=e,(t||"")===(p.searchText||"")&&ne(e)}o?l(e):i&&(a=e,a&&(a=r.when(a),M++,q(!0),g.nextTick(function(){a.then(l).finally(function(){0==--M&&q(!1)})},!0,p)));var a}(e),s.hidden=F()}function ne(e){var n,t,o;s.matches=e,s.hidden=F(),s.loading&&q(!1),p.selectOnMatch&&(n=p.searchText,t=s.matches,o=t[0],1===t.length&&k(o).then(function(e){var t=n===e;p.matchInsensitive&&!t&&(t=n.toLowerCase()===e.toLowerCase()),t&&K(0)})),R(),J(!0,E.Count)}function oe(e,t){f[e]&&p.$parent.$eval(f[e],t||{})}}function MdAutocomplete(u){var d="virtual",t=["standard",d];function s(e){return e?(e=e.toLowerCase(),-1<t.indexOf(e)?e:d):d}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"),angular.isDefined(n.mdClearButton)||e.floatingLabel||(e.clearButton=!0),e.mdMode=s(n.mdMode)}},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>":""),l=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(),r=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="search" '+(null!=r?'tabindex="'+r+'"':"")+' id="{{ inputId || \'fl-input-\' + $mdAutocompleteCtrl.id }}" name="{{inputName}}" 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-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur($event)" ng-focus="$mdAutocompleteCtrl.focus($event)" aria-label="{{floatingLabel}}" aria-autocomplete="list" role="combobox" aria-haspopup="true" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}" aria-owns="ul-{{$mdAutocompleteCtrl.id}}" ng-attr-aria-activedescendant="{{$mdAutocompleteCtrl.index >= 0 ? \'selected_option\' : undefined}}"> <div md-autocomplete-parent-scope md-autocomplete-replace>'+a+"</div> </md-input-container>":' <input type="search" '+(null!=r?'tabindex="'+r+'"':"")+' id="{{ inputId || \'input-\' + $mdAutocompleteCtrl.id }}" name="{{inputName}}" 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-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur($event)" ng-focus="$mdAutocompleteCtrl.focus($event)" placeholder="{{placeholder}}" aria-label="{{placeholder}}" aria-autocomplete="list" role="combobox" aria-haspopup="true" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}" aria-owns="ul-{{$mdAutocompleteCtrl.id}}" ng-attr-aria-activedescendant="{{$mdAutocompleteCtrl.index >= 0 ? \'selected_option\' : undefined}}">')+' <button type="button" aria-label="Clear Input" tabindex="-1" ng-if="clearButton && $mdAutocompleteCtrl.scope.searchText" ng-click="$mdAutocompleteCtrl.clear($event)"><md-icon md-svg-src="'+u.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:"",c(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.mouseUp()" role="listbox"> <li '+(c(e.mdMode)?"ng-repeat":"md-virtual-repeat")+' ="item in $mdAutocompleteCtrl.matches" ng-class="{ selected: $index === $mdAutocompleteCtrl.index }" ng-attr-id="{{$index === $mdAutocompleteCtrl.index ? \'selected_option\' : undefined}}" 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"> '+l+" </li>"+i+" </ul> "+(c(e.mdMode)?" </div> </div> </div>":"</md-virtual-repeat-container>")+" </md-autocomplete-wrap>";function c(e){return s(e)!==d}}}}function MdAutocompleteItemScopeDirective(e,d){return{restrict:"AE",compile:function(e,t,u){return function(n,t,e){var o,i,l=n.$mdAutocompleteCtrl,a=l.parent.$new(),r=l.itemName;function c(e,t){a[t]=n[e],n.$watch(e,function(e){d.nextTick(function(){a[t]=e})})}c("$index","$index"),c("item",r),i=o=!1,n.$watch(function(){i||o||(o=!0,n.$$postDigest(function(){i||a.$digest(),o=i=!1}))}),a.$watch(function(){i=!0}),u(a,function(e){t.after(e)})}},terminal:!0,transclude:"element"}}function MdHighlightCtrl(e,t,n){this.$scope=e,this.$element=t,this.$attrs=n,this.regex=null}function MdHighlight(n,o){return{terminal:!0,controller:"MdHighlightCtrl",compile:function(e,t){var i=o(t.mdHighlightText),l=n(e.html());return function(e,t,n,o){o.init(i,l)}}}}MdAutocomplete.$inject=["$$mdSvgRegistry"],angular.module("material.components.autocomplete").directive("mdAutocomplete",MdAutocomplete),MdAutocompleteItemScopeDirective.$inject=["$compile","$mdUtil"],angular.module("material.components.autocomplete").directive("mdAutocompleteParentScope",MdAutocompleteItemScopeDirective),MdHighlightCtrl.$inject=["$scope","$element","$attrs"],angular.module("material.components.autocomplete").controller("MdHighlightCtrl",MdHighlightCtrl),MdHighlightCtrl.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)},MdHighlightCtrl.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)},MdHighlightCtrl.prototype.applyRegex=function(e){var t=this.resolveTokens(e);this.$element.empty(),t.forEach(function(e){if(e.isMatch){var t=angular.element('<span class="highlight">').text(e.text);this.$element.append(t)}else this.$element.append(document.createTextNode(e))}.bind(this))},MdHighlightCtrl.prototype.resolveTokens=function(o){var i=[],n=0;return o.replace(this.regex,function(e,t){l(n,t),i.push({text:e,isMatch:!0}),n=t+e.length}),l(n),i;function l(e,t){var n=o.slice(e,t);n&&i.push(n)}},MdHighlightCtrl.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,""))},MdHighlightCtrl.prototype.sanitizeRegex=function(e){return e&&e.toString().replace(/[\\^$*+?.()|{}[\]]/g,"\\$&")},MdHighlight.$inject=["$interpolate","$parse"],angular.module("material.components.autocomplete").directive("mdHighlightText",MdHighlight),ngmaterial.components.autocomplete=angular.module("material.components.autocomplete");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.backdrop');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
goog.provide("ngmaterial.components.backdrop"),goog.require("ngmaterial.core"),angular.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(c,d,o,n,p,l,m,s){return{restrict:"E",link:function(t,r,e){o.pin&&o.pin(r,n);var a;function i(){var e=parseInt(a.height,10)+Math.abs(parseInt(a.top,10));r.css("height",e+"px")}m(function(){if("fixed"===(a=p.getComputedStyle(s[0].body)).position){var e=d.debounce(function(){a=p.getComputedStyle(s[0].body),i()},60,null,!1);i(),angular.element(p).on("resize",e),t.$on("$destroy",function(){angular.element(p).off("resize",e)})}var o=r.parent();if(o.length){"BODY"===o[0].nodeName&&r.css("position","fixed");var n=p.getComputedStyle(o[0]);"static"===n.position&&l.warn("<md-backdrop> may not work properly in a scrolled, static-positioned parent container."),c.inherit(r,o)}})}}}]),ngmaterial.components.backdrop=angular.module("material.components.backdrop");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.bottomSheet');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdBottomSheetDirective(o){return{restrict:"E",link:function(e,t){t.addClass("_md"),e.$on("$destroy",function(){o.destroy()})}}}function MdBottomSheetProvider(e){t.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture","$log"];var p=.5,S=80;return e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:t});function t(r,i,c,a,l,s,d,m){var u;return{themable:!0,onShow:function(e,t,o,n){if((t=c.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])}o.isLockedOpen?(o.clickOutsideToClose=!1,o.escapeToClose=!1):o.cleanupGestures=function(n,e){var t=d.register(e,"drag",{horizontal:!1});return e.on("$md.dragstart",o).on("$md.drag",r).on("$md.dragend",a),function(){t(),e.off("$md.dragstart",o),e.off("$md.drag",r),e.off("$md.dragend",a)};function o(){n.css(i.CSS.TRANSITION_DURATION,"0ms")}function r(e){var t=e.pointer.distanceY;t<5&&(t=Math.max(-S,t/2)),n.css(i.CSS.TRANSFORM,"translate3d(0,"+(S+t)+"px,0)")}function a(e){if(0<e.pointer.distanceY&&(20<e.pointer.distanceY||Math.abs(e.pointer.velocityY)>p)){var t=n.prop("offsetHeight")-e.pointer.distanceY,o=Math.min(t/e.pointer.velocityY*.75,500);n.css(i.CSS.TRANSITION_DURATION,o+"ms"),c.nextTick(l.cancel,!0)}else n.css(i.CSS.TRANSITION_DURATION,""),n.css(i.CSS.TRANSFORM,"")}}(t,o.parent);o.disableBackdrop||((u=c.createBackdrop(e,"md-bottom-sheet-backdrop md-opaque"))[0].tabIndex=-1,o.clickOutsideToClose&&u.on("click",function(){c.nextTick(l.cancel,!0)}),a.inherit(u,o.parent),r.enter(u,o.parent,null));a.inherit(t,o.parent),o.disableParentScroll&&(o.restoreScroll=c.disableScrollAround(t,o.parent));return r.enter(t,o.parent,u).then(function(){var e=c.findFocusTarget(t)||angular.element(t[0].querySelector("button")||t[0].querySelector("a")||t[0].querySelector(c.prefixer("ng-click",!0)))||u;o.escapeToClose&&(o.rootElementKeyupCallback=function(e){e.keyCode===i.KEY_CODE.ESCAPE&&c.nextTick(l.cancel,!0)},s.on("keyup",o.rootElementKeyupCallback),e&&e.focus())})},onRemove:function(e,t,o){o.disableBackdrop||r.leave(u);return r.leave(t).then(function(){o.disableParentScroll&&(o.restoreScroll(),delete o.restoreScroll),o.cleanupGestures&&o.cleanupGestures()})},disableBackdrop:!1,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0,isLockedOpen:!1}}}goog.provide("ngmaterial.components.bottomSheet"),goog.require("ngmaterial.components.backdrop"),goog.require("ngmaterial.core"),MdBottomSheetDirective.$inject=["$mdBottomSheet"],MdBottomSheetProvider.$inject=["$$interimElementProvider"],angular.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",MdBottomSheetDirective).provider("$mdBottomSheet",MdBottomSheetProvider),ngmaterial.components.bottomSheet=angular.module("material.components.bottomSheet");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.button');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdAnchorDirective(e){return{restrict:"E",link:function(t,n){e(n)}}}function MdButtonDirective(i,a,o,r){return{restrict:"EA",replace:!0,transclude:!0,template:function(t,n){{if(u(n))return'<a class="md-button" ng-transclude></a>';var e=void 0===n.type?"button":n.type;return'<button class="md-button" type="'+e+'" ng-transclude></button>'}},link:function(t,n,e){a(n),i.attach(t,n),o.expectWithoutText(n,"aria-label"),u(e)&&angular.isDefined(e.ngDisabled)&&!n.hasClass("_md-nav-button")&&t.$watch(e.ngDisabled,function(t){n.attr("tabindex",t?-1:0)});n.on("click",function(t){!0===e.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),n.hasClass("md-no-focus")||(n.on("focus",function(){r.isUserInvoked()&&"keyboard"!==r.getLastInteractionType()||n.addClass("md-focused")}),n.on("blur",function(){n.removeClass("md-focused")}))}};function u(t){return angular.isDefined(t.href)||angular.isDefined(t.ngHref)||angular.isDefined(t.ngLink)||angular.isDefined(t.uiSref)}}goog.provide("ngmaterial.components.button"),goog.require("ngmaterial.core"),MdButtonDirective.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],MdAnchorDirective.$inject=["$mdTheming"],angular.module("material.components.button",["material.core"]).directive("mdButton",MdButtonDirective).directive("a",MdAnchorDirective),ngmaterial.components.button=angular.module("material.components.button");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.card');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function mdCardDirective(i){return{restrict:"E",link:function(e,r,a){r.addClass("_md"),i(r)}}}goog.provide("ngmaterial.components.card"),goog.require("ngmaterial.core"),mdCardDirective.$inject=["$mdTheming"],angular.module("material.components.card",["material.core"]).directive("mdCard",mdCardDirective),ngmaterial.components.card=angular.module("material.components.card");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.checkbox');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdCheckboxDirective(b,h,g,k,f,$){return b=b[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:g.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(e,a,n,t){var i,c,o,r,d=t[0],l=t[1]||f.fakeNgModel(),s=t[2];if(d){var u=d.isErrorGetter||function(){return l.$invalid&&(l.$touched||s&&s.$submitted)};d.input=a,e.$watch(u,d.setInvalid)}function m(t){a[0].hasAttribute("disabled")||e.skipToggle||e.$apply(function(){var e=n.ngChecked&&n.ngClick?n.checked:!l.$viewValue;l.$setViewValue(e,t&&t.type),l.$render()})}function p(e){(i=!1!==e)&&a.attr("aria-checked","mixed"),a.toggleClass("md-indeterminate",i)}k(a),a.children().on("focus",function(){a.focus()}),f.parseAttributeBoolean(n.mdIndeterminate)&&(p(),e.$watch(n.mdIndeterminate,p)),n.ngChecked&&e.$watch(e.$eval.bind(e,n.ngChecked),function(e){l.$setViewValue(e),l.$render()}),c="ngDisabled",o="tabindex",r={true:"-1",false:n.tabindex},n[c]&&e.$watch(n[c],function(e){r[e]&&a.attr(o,r[e])}),h.expectWithText(a,"aria-label"),b.link.pre(e,{on:angular.noop,0:{}},n,[l]),a.on("click",m).on("keypress",function(e){var t,n,i=e.which||e.keyCode;switch(e.preventDefault(),i){case g.KEY_CODE.SPACE:a.addClass("md-focused"),m(e);break;case g.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"===$.getLastInteractionType()&&a.addClass("md-focused")}).on("blur",function(){a.removeClass("md-focused")}),l.$render=function(){a.toggleClass("md-checked",!!l.$viewValue&&!i)}}}}}}goog.provide("ngmaterial.components.checkbox"),goog.require("ngmaterial.core"),MdCheckboxDirective.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],angular.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",MdCheckboxDirective),ngmaterial.components.checkbox=angular.module("material.components.checkbox");

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdChipCtrl(t,e,i,n,s){this.$scope=t,this.$element=e,this.$mdConstant=i,this.$timeout=n,this.$mdUtil=s,this.isEditing=!1,this.parentController=void 0,this.enableChipEdit=!1}function MdChip(p,t,e,h){return{restrict:"E",require:["^?mdChips","mdChip"],link:function(t,e,i,n){var s=n.shift(),r=n.shift(),o=angular.element(e[0].querySelector(".md-chip-content"));p(e),s&&(r.init(s),o.on("blur",function(){s.resetSelectedChip(),s.$scope.$applyAsync()}));h(function(){s&&s.shouldFocusLastChip&&s.focusLastChipThenInput()})},controller:"MdChipCtrl"}}function MdChipRemove(s){return{restrict:"A",require:"^mdChips",scope:!1,link:function(e,t,i,n){t.on("click",function(t){e.$apply(function(){n.removeChip(e.$$replacedScope.$index)})}),s(function(){t.attr({tabindex:"-1","aria-hidden":"true"}),t.find("button").attr("tabindex","-1")})}}}function MdChipTransclude(o){return{restrict:"EA",terminal:!0,link:function(t,e,i){var n=t.$parent.$mdChipsCtrl,s=n.parent.$new(!1,n.parent);s.$$replacedScope=t,s.$chip=t.$chip,s.$index=t.$index;var r=(s.$mdChipsCtrl=n).$scope.$eval(i.mdChipTransclude);e.html(r),o(e.contents())(s)},scope:!1}}goog.provide("ngmaterial.components.chips"),goog.require("ngmaterial.components.autocomplete"),goog.require("ngmaterial.core"),angular.module("material.components.chips",["material.core","material.components.autocomplete"]),MdChipCtrl.$inject=["$scope","$element","$mdConstant","$timeout","$mdUtil"],angular.module("material.components.chips").controller("MdChipCtrl",MdChipCtrl),MdChipCtrl.prototype.init=function(t){this.parentController=t,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"))},MdChipCtrl.prototype.getChipContent=function(){var t=this.$element[0].getElementsByClassName("md-chip-content");return angular.element(t[0])},MdChipCtrl.prototype.getContentElement=function(){var t=angular.element(this.getChipContent().children()[0]);return t&&0!==t.length||(t=angular.element(this.getChipContent().contents()[0])),t},MdChipCtrl.prototype.getChipIndex=function(){return parseInt(this.$element.attr("index"))},MdChipCtrl.prototype.goOutOfEditMode=function(){if(this.isEditing){this.isEditing=!1,this.$element.removeClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="false";var t=this.getChipIndex(),e=this.getContentElement().text();e?(this.parentController.updateChipContents(t,e),this.$mdUtil.nextTick(function(){this.parentController.selectedChip===t&&this.parentController.focusChip(t)}.bind(this))):this.parentController.removeChipAndFocusInput(t)}},MdChipCtrl.prototype.selectNodeContents=function(t){var e,i;document.body.createTextRange?((e=document.body.createTextRange()).moveToElementText(t),e.select()):window.getSelection&&(i=window.getSelection(),(e=document.createRange()).selectNodeContents(t),i.removeAllRanges(),i.addRange(e))},MdChipCtrl.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])},MdChipCtrl.prototype.chipKeyDown=function(t){this.isEditing||t.keyCode!==this.$mdConstant.KEY_CODE.ENTER&&t.keyCode!==this.$mdConstant.KEY_CODE.SPACE?this.isEditing&&t.keyCode===this.$mdConstant.KEY_CODE.ENTER&&(t.preventDefault(),this.goOutOfEditMode()):(t.preventDefault(),this.goInEditMode())},MdChipCtrl.prototype.chipMouseDoubleClick=function(){this.enableChipEdit&&!this.isEditing&&this.goInEditMode()},MdChip.$inject=["$mdTheming","$mdUtil","$compile","$timeout"],angular.module("material.components.chips").directive("mdChip",MdChip),MdChipRemove.$inject=["$timeout"],angular.module("material.components.chips").directive("mdChipRemove",MdChipRemove),MdChipTransclude.$inject=["$compile"],angular.module("material.components.chips").directive("mdChipTransclude",MdChipTransclude),MdChipsCtrl.$inject=["$scope","$attrs","$mdConstant","$log","$element","$timeout","$mdUtil","$mdLiveAnnouncer","$exceptionHandler"];var DEFAULT_CHIP_APPEND_DELAY=300;function MdChipsCtrl(t,e,i,n,s,r,o,p,h){this.$timeout=r,this.$mdConstant=i,this.$scope=t,this.parent=t.$parent,this.$mdUtil=o,this.$log=n,this.$mdLiveAnnouncer=p,this.$exceptionHandler=h,this.$element=s,this.$attrs=e,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.autocompleteCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.enableChipEdit=o.parseAttributeBoolean(e.mdEnableChipEdit),this.addOnBlur=o.parseAttributeBoolean(e.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=DEFAULT_CHIP_APPEND_DELAY,this.deRegister=[],this.addedMessage="added",this.removedMessage="removed",this.init()}angular.module("material.components.chips").controller("MdChipsCtrl",MdChipsCtrl),MdChipsCtrl.prototype.init=function(){var e=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(){e.setupInputAria(),e.setupWrapperAria()})),this.deRegister.push(this.$attrs.$observe("mdChipAppendDelay",function(t){e.chipAppendDelay=parseInt(t)||DEFAULT_CHIP_APPEND_DELAY}))},MdChipsCtrl.prototype.$onDestroy=function(){for(var t;t=this.deRegister.pop();)t.call(this)},MdChipsCtrl.prototype.setupInputAria=function(){var t=this.$element.find("input");t&&(t.attr("role","textbox"),t.attr("aria-multiline",!0),this.inputAriaDescribedBy&&t.attr("aria-describedby",this.inputAriaDescribedBy),this.inputAriaLabelledBy?(t.attr("aria-labelledby",this.inputAriaLabelledBy),t.removeAttr("aria-label")):t.attr("aria-label",this.inputAriaLabel))},MdChipsCtrl.prototype.setupWrapperAria=function(){var t=this,e=this.$element.find("md-chips-wrap");this.items&&this.items.length?(e.attr("role","listbox"),this.contentIds=this.items.map(function(){return t.wrapperId+"-chip-"+t.$mdUtil.nextUid()}),e.attr("aria-owns",this.contentIds.join(" ")),e.attr("aria-label",this.containerHint)):(e.removeAttr("role"),e.removeAttr("aria-owns"),e.attr("aria-label",this.containerEmptyHint))},MdChipsCtrl.prototype.setupStaticChips=function(){var t,e,i=this,n=this.$element.find("md-chips-wrap");this.$timeout(function(){for(n.attr("role","list"),e=n[0].children,t=0;t<e.length;t++)e[t].setAttribute("role","listitem"),e[t].setAttribute("aria-setsize",e.length);i.inputAriaDescribedBy&&n.attr("aria-describedby",i.inputAriaDescribedBy),i.inputAriaLabelledBy?(n.attr("aria-labelledby",i.inputAriaLabelledBy),n.removeAttr("aria-label")):n.attr("aria-label",i.inputAriaLabel)},10)},MdChipsCtrl.prototype.inputKeydown=function(t){var e=this.getChipBuffer();if(!(this.autocompleteCtrl&&t.isDefaultPrevented&&t.isDefaultPrevented())){if(t.keyCode===this.$mdConstant.KEY_CODE.BACKSPACE){if(0!==this.getCursorPosition(t.target))return;return t.preventDefault(),t.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(t.keyCode)){if(this.autocompleteCtrl&&this.requireMatch||!e)return;if(t.preventDefault(),this.hasMaxChipsReached())return;return this.appendChip(e.trim()),this.resetChipBuffer(),!1}}},MdChipsCtrl.prototype.getCursorPosition=function(e){try{if(e.selectionStart===e.selectionEnd)return e.selectionStart}catch(t){if(!e.value)return 0}},MdChipsCtrl.prototype.updateChipContents=function(t,e){0<=t&&t<this.items.length&&(this.items[t]=e,this.updateNgModel(!0))},MdChipsCtrl.prototype.isEditingChip=function(){return!!this.$element[0].querySelector("._md-chip-editing")},MdChipsCtrl.prototype._isChipObject=function(t){return angular.isObject(t)},MdChipsCtrl.prototype.isRemovable=function(){return!!this.ngModelCtrl&&(this.readonly?this.removable:!angular.isDefined(this.removable)||this.removable)},MdChipsCtrl.prototype.chipKeydown=function(t){if(!this.getChipBuffer()&&!this.isEditingChip())switch(t.keyCode){case this.$mdConstant.KEY_CODE.BACKSPACE:case this.$mdConstant.KEY_CODE.DELETE:if(this.selectedChip<0)return;if(t.preventDefault(),!this.isRemovable())return;this.removeAndSelectAdjacentChip(this.selectedChip,t);break;case this.$mdConstant.KEY_CODE.LEFT_ARROW:t.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:t.preventDefault(),this.selectAndFocusChipSafe(this.selectedChip+1);break;case this.$mdConstant.KEY_CODE.ESCAPE:case this.$mdConstant.KEY_CODE.TAB:if(this.selectedChip<0)return;t.preventDefault(),this.onFocus()}},MdChipsCtrl.prototype.getPlaceholder=function(){return this.items&&this.items.length&&(""===this.secondaryPlaceholder||this.secondaryPlaceholder)?this.secondaryPlaceholder:this.placeholder},MdChipsCtrl.prototype.removeAndSelectAdjacentChip=function(t,e){var i=this,n=i.getAdjacentChipIndex(t);this.$element[0].querySelector("md-chips-wrap"),this.$element[0].querySelector('md-chip[index="'+t+'"]');i.removeChip(t,e),i.$timeout(function(){i.$timeout(function(){i.selectAndFocusChipSafe(n)})})},MdChipsCtrl.prototype.resetSelectedChip=function(){this.selectedChip=-1,this.ariaTabIndex=null},MdChipsCtrl.prototype.getAdjacentChipIndex=function(t){var e=this.items.length-1;return 0===e?-1:t===e?t-1:t},MdChipsCtrl.prototype.appendChip=function(e){if(this.shouldFocusLastChip=!this.addOnBlur,this.useTransformChip&&this.transformChip){var t=this.transformChip({$chip:e});angular.isDefined(t)&&(e=t)}if(angular.isObject(e)&&this.items.some(function(t){return angular.equals(e,t)}))return;if(!(null==e||this.items.indexOf(e)+1)){var i=this.items.push(e)-1;this.updateNgModel();var n=angular.isObject(e)?"":e;this.$mdLiveAnnouncer.announce(n+" "+this.addedMessage,"assertive"),this.useOnAdd&&this.onAdd&&this.onAdd({$chip:e,$index:i})}},MdChipsCtrl.prototype.useTransformChipExpression=function(){this.useTransformChip=!0},MdChipsCtrl.prototype.useOnAddExpression=function(){this.useOnAdd=!0},MdChipsCtrl.prototype.useOnRemoveExpression=function(){this.useOnRemove=!0},MdChipsCtrl.prototype.useOnSelectExpression=function(){this.useOnSelect=!0},MdChipsCtrl.prototype.getChipBuffer=function(){var t=this.userInputElement?this.userInputNgModelCtrl?this.userInputNgModelCtrl.$viewValue:this.userInputElement[0].value:this.chipBuffer;return angular.isString(t)?t:""},MdChipsCtrl.prototype.resetChipBuffer=function(){this.userInputElement?this.userInputNgModelCtrl?(this.userInputNgModelCtrl.$setViewValue(""),this.userInputNgModelCtrl.$render()):this.userInputElement[0].value="":this.chipBuffer=""},MdChipsCtrl.prototype.hasMaxChipsReached=function(){return angular.isString(this.maxChips)&&(this.maxChips=parseInt(this.maxChips,10)||0),0<this.maxChips&&this.items.length>=this.maxChips},MdChipsCtrl.prototype.validateModel=function(){this.ngModelCtrl.$setValidity("md-max-chips",!this.hasMaxChipsReached()),this.ngModelCtrl.$validate()},MdChipsCtrl.prototype.updateNgModel=function(t){t||this.validateModel(),angular.forEach(this.ngModelCtrl.$viewChangeListeners,function(t){try{t()}catch(t){this.$exceptionHandler(t)}})},MdChipsCtrl.prototype.removeChip=function(t,e){var i=this.items.splice(t,1);this.updateNgModel(),this.ngModelCtrl.$setDirty();var n=angular.isObject(i[0])?"":i[0];this.$mdLiveAnnouncer.announce(n+" "+this.removedMessage,"assertive"),i&&i.length&&this.useOnRemove&&this.onRemove&&this.onRemove({$chip:i[0],$index:t,$event:e})},MdChipsCtrl.prototype.removeChipAndFocusInput=function(t,e){this.removeChip(t,e),this.autocompleteCtrl?(this.autocompleteCtrl.hidden=!0,this.$mdUtil.nextTick(this.onFocus.bind(this))):this.onFocus()},MdChipsCtrl.prototype.selectAndFocusChipSafe=function(t){if(!this.items.length||-1===t)return this.focusInput();if(t>=this.items.length){if(!this.readonly)return this.onFocus();t=0}t=Math.max(t,0),t=Math.min(t,this.items.length-1),this.selectChip(t),this.focusChip(t)},MdChipsCtrl.prototype.focusLastChipThenInput=function(){var t=this;t.shouldFocusLastChip=!1,t.focusChip(this.items.length-1),t.$timeout(function(){t.focusInput()},t.chipAppendDelay)},MdChipsCtrl.prototype.focusInput=function(){this.selectChip(-1),this.onFocus()},MdChipsCtrl.prototype.selectChip=function(t){-1<=t&&t<=this.items.length?(this.selectedChip=t,this.useOnSelect&&this.onSelect&&this.onSelect({$chip:this.items[t]})):this.$log.warn("Selected Chip index out of bounds; ignoring.")},MdChipsCtrl.prototype.selectAndFocusChip=function(t){this.selectChip(t),-1!==t&&this.focusChip(t)},MdChipsCtrl.prototype.focusChip=function(t){var e=this.$element[0].querySelector('md-chip[index="'+t+'"] .md-chip-content');this.ariaTabIndex=t,e.focus()},MdChipsCtrl.prototype.configureNgModel=function(t){this.ngModelCtrl=t;var e=this;t.$isEmpty=function(t){return!t||0===t.length},t.$render=function(){e.items=e.ngModelCtrl.$viewValue}},MdChipsCtrl.prototype.onFocus=function(){var t=this.$element[0].querySelector("input");t&&t.focus(),this.resetSelectedChip()},MdChipsCtrl.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.setupInputAria(),this.resetSelectedChip()},MdChipsCtrl.prototype.onInputBlur=function(){this.inputHasFocus=!1,this.shouldAddOnBlur()&&(this.appendChip(this.getChipBuffer().trim()),this.resetChipBuffer())},MdChipsCtrl.prototype.configureInput=function(t){var e=t.controller("ngModel"),i=this;e&&(this.deRegister.push(this.$scope.$watch(function(){return e.$touched},function(t){t&&i.ngModelCtrl.$setTouched()})),this.deRegister.push(this.$scope.$watch(function(){return e.$dirty},function(t){t&&i.ngModelCtrl.$setDirty()})))},MdChipsCtrl.prototype.configureUserInput=function(t){var e=(this.userInputElement=t).controller("ngModel");e!==this.ngModelCtrl&&(this.userInputNgModelCtrl=e);var i=this.$scope,n=this,s=function(t,e){i.$evalAsync(angular.bind(n,e,t))};t.attr({tabindex:0}).on("keydown",function(t){s(t,n.inputKeydown)}).on("focus",function(t){s(t,n.onInputFocus)}).on("blur",function(t){s(t,n.onInputBlur)})},MdChipsCtrl.prototype.configureAutocomplete=function(t){t&&(this.autocompleteCtrl=t,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()),t.registerSelectedItemWatcher(angular.bind(this,function(t){if(t){if(this.hasMaxChipsReached())return;this.appendChip(t),this.resetChipBuffer()}})),this.$element.find("input").on("focus",angular.bind(this,this.onInputFocus)).on("blur",angular.bind(this,this.onInputBlur)))},MdChipsCtrl.prototype.shouldAddOnBlur=function(){this.validateModel();var t=this.getChipBuffer().trim(),e=this.ngModelCtrl.$isEmpty(this.ngModelCtrl.$modelValue)||this.ngModelCtrl.$valid,i=this.autocompleteCtrl&&!this.autocompleteCtrl.hidden;return this.userInputNgModelCtrl&&(e=e&&this.userInputNgModelCtrl.$valid),this.addOnBlur&&!this.requireMatch&&t&&e&&!i},MdChipsCtrl.prototype.hasFocus=function(){return this.inputHasFocus||0<=this.selectedChip},MdChipsCtrl.prototype.contentIdFor=function(t){return this.contentIds[t]},MdChips.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout","$$mdSvgRegistry"],angular.module("material.components.chips").directive("mdChips",MdChips);var MD_CHIPS_TEMPLATE=' <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>',CHIP_INPUT_TEMPLATE=' <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)">',CHIP_DEFAULT_TEMPLATE=" <span>{{$chip}}</span>",CHIP_REMOVE_TEMPLATE=' <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 MdChips(c,C,u,n,m,f){var g={chips:C.processTemplate(MD_CHIPS_TEMPLATE),input:C.processTemplate(CHIP_INPUT_TEMPLATE),default:C.processTemplate(CHIP_DEFAULT_TEMPLATE),remove:C.processTemplate(CHIP_REMOVE_TEMPLATE)};return{template:function(t,e){return e.$mdUserTemplate=t.clone(),g.chips},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:function(t,o){var i=o.$mdUserTemplate;o.$mdUserTemplate=null;var p=e("md-chips>md-chip-template"),h=e(C.prefixer().buildList("md-chip-remove").map(function(t){return"md-chips>*["+t+"]"}).join(","))||g.remove,a=p||g.default,l=e("md-chips>md-autocomplete")||e("md-chips>input")||g.input,d=i.find("md-chip");i[0].querySelector("md-chip-template>*[md-chip-remove]")&&n.warn("invalid placement of md-chip-remove within md-chip-template.");function e(t){if(o.ngModel){var e=i[0].querySelector(t);return e&&e.outerHTML}}return function(t,e,i,n){C.initOptionalProperties(t,o),c(e);var s=n[0];if(p&&(s.enableChipEdit=!1),s.chipContentsTemplate=a,s.chipRemoveTemplate=h,s.chipInputTemplate=l,s.mdCloseIcon=f.mdClose,e.attr({tabindex:-1}).on("focus",function(){s.onFocus()}).on("click",function(){s.readonly||-1!==s.selectedChip||s.onFocus()}),o.ngModel&&(s.configureNgModel(e.controller("ngModel")),i.mdTransformChip&&s.useTransformChipExpression(),i.mdOnAppend&&s.useOnAppendExpression(),i.mdOnAdd&&s.useOnAddExpression(),i.mdOnRemove&&s.useOnRemoveExpression(),i.mdOnSelect&&s.useOnSelectExpression(),l!==g.input&&t.$watch("$mdChipsCtrl.readonly",function(t){t||C.nextTick(function(){if(0===l.indexOf("<md-autocomplete")){var t=e.find("md-autocomplete");s.configureAutocomplete(t.controller("mdAutocomplete"))}s.configureUserInput(e.find("input"))})}),C.nextTick(function(){var t=e.find("input");t&&(s.configureInput(t),t.toggleClass("md-input",!0))})),0<d.length){var r=u(d.clone())(t.$parent);m(function(){e.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:"&?"}}}function MdContactChipsCtrl(t,e,i){this.$element=e,this.$attrs=t,this.$timeout=i,this.selectedItem=null,this.searchText="",this.deRegister=[],this.init()}MdContactChipsCtrl.$inject=["$attrs","$element","$timeout"],angular.module("material.components.chips").controller("MdContactChipsCtrl",MdContactChipsCtrl),MdContactChipsCtrl.prototype.init=function(){var t=this,e=this.deRegister,i=this.$element;this.$timeout(function(){e.push(i.find("md-chips").scope().$watchCollection("$mdChipsCtrl.items",function(){t.setupChipsAria(),t.setupAutocompleteAria()}))})},MdContactChipsCtrl.prototype.setupChipsAria=function(){var t=this.$element.find("md-chips"),e=t.controller("mdChips");this.removedMessage&&(e.removedMessage=this.removedMessage),this.containerHint&&(e.containerHint=this.containerHint),this.containerEmptyHint&&(t.attr("container-empty-hint",this.containerEmptyHint),e.containerEmptyHint=this.containerEmptyHint),this.deleteHint&&(e.deleteHint=this.deleteHint),this.inputAriaLabel&&(e.inputAriaLabel=this.inputAriaLabel)},MdContactChipsCtrl.prototype.setupAutocompleteAria=function(){var t=this.$element.find("md-chips-wrap").find("md-autocomplete").find("input");this.inputAriaDescribedBy&&t.attr("aria-describedby",this.inputAriaDescribedBy),this.inputAriaLabelledBy&&(t.removeAttr("aria-label"),t.attr("aria-labelledby",this.inputAriaLabelledBy))},MdContactChipsCtrl.prototype.queryContact=function(t){return this.contactQuery({$query:t})},MdContactChipsCtrl.prototype.inputKeydown=function(t){if(this.separatorKeys&&!(this.separatorKeys.indexOf(t.keyCode)<0)){t.stopPropagation(),t.preventDefault();var e=angular.element(t.target).controller("mdAutocomplete");e.select(e.index)}},MdContactChipsCtrl.prototype.itemName=function(t){return t[this.contactName]},MdContactChipsCtrl.prototype.$onDestroy=function(){for(var t;t=this.deRegister.pop();)t.call(this)},MdContactChips.$inject=["$mdTheming","$mdUtil"],angular.module("material.components.chips").directive("mdContactChips",MdContactChips);var MD_CONTACT_CHIPS_TEMPLATE=' <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 MdContactChips(o,p){return{template:function(t,e){return MD_CONTACT_CHIPS_TEMPLATE},restrict:"E",controller:"MdContactChipsCtrl",controllerAs:"$mdContactChipsCtrl",bindToController:!0,compile:function(t,r){return function(t,e,i,n){var s=n;p.initOptionalProperties(t,r),o(e),e.attr("tabindex","-1"),i.$observe("mdChipAppendDelay",function(t){s.chipAppendDelay=t})}},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:"@?"}}}ngmaterial.components.chips=angular.module("material.components.chips");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.colors');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
goog.provide("ngmaterial.components.colors"),goog.require("ngmaterial.core"),function(){"use strict";r.$inject=["$mdColors","$mdUtil","$log","$parse"],e.$inject=["$mdTheming","$mdUtil","$log"];var l=/^{((\s|,)*?["'a-zA-Z-]+?\s*?:\s*?('|")[a-zA-Z0-9-.]*('|"))+\s*}$/,i=null;function e(a,l,n){return i=i||Object.keys(a.PALETTES),{applyThemeColors:function(e,r){try{r&&e.css((t={},a=(o=r).hasOwnProperty("color"),angular.forEach(o,function(e,r){var o=u(e),n=-1<r.indexOf("background");t[r]=s(o),n&&!a&&(t.color=s(o,!0))}),t))}catch(e){n.error(e.message)}var o,t,a},getThemeColor:function(e){return s(u(e))},hasTheme:function(e){return angular.isDefined(a.THEMES[e.split("-")[0]])}};function s(e,r){r=r||!1;var o=a.PALETTES[e.palette][e.hue];return o=r?o.contrast:o.value,l.supplant("rgba({0}, {1}, {2}, {3})",[o[0],o[1],o[2],o[3]||e.opacity])}function u(e){var r=e.split("-"),o=angular.isDefined(a.THEMES[r[0]])?r.splice(0,1)[0]:a.defaultTheme();return{theme:o,palette:function(e,r){var o=1<e.length&&-1!==i.indexOf(e[1]),n=e[0].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();o&&(n=e[0]+"-"+e.splice(1,1));if(-1===i.indexOf(n)){var t=a.THEMES[r].colors[n];if(!t)throw new Error(l.supplant("mdColors: couldn't find '{palette}' in the palettes.",{palette:n}));n=t.name}return n}(r,o),hue:function(e,r){var o=a.THEMES[r].colors;if("hue"!==e[1])return e[1]||o[e[0]in o?e[0]:"primary"].hues.default;var n=parseInt(e.splice(2,1)[0],10);if(n<1||3<n)throw new Error(l.supplant("mdColors: 'hue-{hueNumber}' is not a valid hue, can be only 'hue-1', 'hue-2' and 'hue-3'",{hueNumber:n}));if(e[1]="hue-"+n,e[0]in o)return o[e[0]].hues[e[1]];throw new Error(l.supplant("mdColors: 'hue-x' can only be used with [{availableThemes}], but was used with '{usedTheme}'",{availableThemes:Object.keys(o).join(", "),usedTheme:e[0]}))}(r,o),opacity:r[2]||1}}}function r(c,a,m,h){return{restrict:"A",require:["^?mdTheme"],compile:function(e,t){var i=function(){var e=t.mdColors,r=-1<e.indexOf("::"),o=!!r||l.test(t.mdColors);t.mdColors=e.replace("::","");var n=angular.isDefined(t.mdColorsWatch);return!r&&!o&&(!n||a.parseAttributeBoolean(t.mdColorsWatch))}();return function(e,o,r,n){var t=n[0],a={},l=function(o){"string"!=typeof o&&(o=""),r.mdColors||(r.mdColors="{}");var n=h(r.mdColors)(e);return t&&Object.keys(n).forEach(function(e){var r=n[e];c.hasTheme(r)||(n[e]=(o||t.$mdTheme)+"-"+r)}),s(n),n},s=function(e){if(!angular.equals(e,a)){var r=Object.keys(a);a.background&&!r.color&&r.push("color"),r.forEach(function(e){o.css(e,"")})}a=e},u=angular.noop;t&&(u=t.registerChanges(function(e){c.applyThemeColors(o,l(e))})),e.$on("$destroy",function(){u()});try{i?e.$watch(l,angular.bind(this,c.applyThemeColors,o),!0):c.applyThemeColors(o,l())}catch(e){m.error(e.message)}}}}}angular.module("material.components.colors",["material.core"]).directive("mdColors",r).service("$mdColors",e)}(),ngmaterial.components.colors=angular.module("material.components.colors");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.content');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function mdContentDirective(t){return{restrict:"E",controller:["$scope","$element",function(e,o){this.$scope=e,this.$element=o}],link:function(e,o){o.addClass("_md"),t(o),e.$broadcast("$mdContentLoaded",o),iosScrollFix(o[0])}}}function iosScrollFix(o){angular.element(o).on("$md.pressdown",function(e){"t"===e.pointer.type&&(e.$materialScrollFixed||(e.$materialScrollFixed=!0,0===o.scrollTop?o.scrollTop=1:o.scrollHeight===o.scrollTop+o.offsetHeight&&(o.scrollTop-=1)))})}goog.provide("ngmaterial.components.content"),goog.require("ngmaterial.core"),mdContentDirective.$inject=["$mdTheming"],angular.module("material.components.content",["material.core"]).directive("mdContent",mdContentDirective),ngmaterial.components.content=angular.module("material.components.content");

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
goog.provide("ngmaterial.components.datepicker"),goog.require("ngmaterial.components.icon"),goog.require("ngmaterial.components.virtualRepeat"),goog.require("ngmaterial.core"),angular.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){"use strict";e.$inject=["$element","$scope","$$mdDateUtil","$mdUtil","$mdConstant","$mdTheming","$$rAF","$attrs","$mdDateLocale"],angular.module("material.components.datepicker").directive("mdCalendar",function(){return{template:function(e,t){var a=t.hasOwnProperty("ngIf")?"":'ng-if="calendarCtrl.isInitialized"',n='<div ng-switch="calendarCtrl.currentView" '+a+'><md-calendar-year ng-switch-when="year"></md-calendar-year><md-calendar-month ng-switch-default></md-calendar-month></div>';return n},scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",dateFilter:"=mdDateFilter",_mode:"@mdMode",_currentView:"@mdCurrentView"},require:["ngModel","mdCalendar"],controller:e,controllerAs:"calendarCtrl",bindToController:!0,link:function(e,t,a,n){var i=n[0],r=n[1];r.configureNgModel(i)}}});var h=0,t={day:"month",month:"year"};function e(e,t,a,n,i,r,l,s,d){r(e),this.$element=e,this.$scope=t,this.dateUtil=a,this.$mdUtil=n,this.keyCode=i.KEY_CODE,this.$$rAF=l,this.$mdDateLocale=d,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=h++,this.displayDate=null,this.selectedDate=null,this.firstRenderableDate=null,this.lastRenderableDate=null,this.isInitialized=!1,this.width=0,this.scrollbarWidth=0,s.tabindex||e.attr("tabindex","-1");var o,c=angular.bind(this,this.handleKeyEvent);(o=e.parent().hasClass("md-datepicker-calendar")?angular.element(document.body):e).on("keydown",c),t.$on("$destroy",function(){o.off("keydown",c)}),1===angular.version.major&&angular.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 a=this;a.$mdUtil.nextTick(function(){a.currentView=e,t&&(a.displayDate=angular.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 a=this.getDateId(e,this.currentView),n=document.getElementById(a);n&&(n.classList.add(this.FOCUSED_DATE_CLASS),n.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,a=this.$element[0].querySelector("."+t);if(a&&(a.classList.remove(t),a.setAttribute("aria-selected","false")),e){var n=document.getElementById(this.getDateId(e,this.currentView));n&&(n.classList.add(t),n.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 a=this;this.$scope.$apply(function(){if(t.which==a.keyCode.ESCAPE||t.which==a.keyCode.TAB)return a.$scope.$emit("md-calendar-close"),void(t.which==a.keyCode.TAB&&t.preventDefault());var e=a.getActionFromKeyEvent(t);e&&(t.preventDefault(),t.stopPropagation(),a.$scope.$broadcast("md-calendar-parent-action",e))})},e.prototype.hideVerticalScrollbar=function(n){var i=this,t=n.$element[0],r=t.querySelector(".md-calendar-scroll-mask");function a(){var e=i.width||340,t=i.scrollbarWidth,a=n.calendarScroller;r.style.width=e+"px",a.style.width=e+t+"px",a.style.paddingRight=t+"px"}0<i.width?a():i.$$rAF(function(){var e=n.calendarScroller;i.scrollbarWidth=e.offsetWidth-e.clientWidth,i.width=t.querySelector("table").offsetWidth,a()})},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(){"use strict";t.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdDateLocale"],angular.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-a)+'"><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="'+a+'"><tr aria-hidden="true" md-force-height="\''+a+"px'\"></tr></tbody></table></md-virtual-repeat-container></div>",require:["^^mdCalendar","mdCalendarMonth"],controller:t,controllerAs:"monthCtrl",bindToController:!0,link:function(e,t,a,n){var i=n[0],r=n[1];r.initialize(i)}}});var a=265,e=45;function t(e,t,a,n,i,r){this.$element=e,this.$scope=t,this.$animate=a,this.$q=n,this.dateUtil=i,this.dateLocale=r,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var l=this;this.cellClickHandler=function(){var e=i.getTimestampFromNode(this);l.$scope.$apply(function(){l.calendarCtrl.setNgModelValue(e)})},this.headerClickHandler=function(){l.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 a=this;return t.then(function(){a.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*a}return this.$q.when()},t.prototype.buildWeekHeader=function(){for(var e=this.dateLocale.firstDayOfWeek,t=this.dateLocale.shortDays,a=document.createElement("tr"),n=0;n<7;n++){var i=document.createElement("th");i.textContent=t[(n+e)%7],a.appendChild(i)}this.$element.find("thead").append(a)},t.prototype.attachScopeListeners=function(){var a=this;a.$scope.$on("md-calendar-parent-changed",function(e,t){a.calendarCtrl.changeSelectedDate(t),a.changeDisplayDate(t)}),a.$scope.$on("md-calendar-parent-action",angular.bind(this,this.handleKeyEvent))},t.prototype.handleKeyEvent=function(e,t){var a=this.calendarCtrl,n=a.displayDate;if("select"===t)a.setNgModelValue(n);else{var i=null,r=this.dateUtil;switch(t){case"move-right":i=r.incrementDays(n,1);break;case"move-left":i=r.incrementDays(n,-1);break;case"move-page-down":i=r.incrementMonths(n,1);break;case"move-page-up":i=r.incrementMonths(n,-1);break;case"move-row-down":i=r.incrementDays(n,7);break;case"move-row-up":i=r.incrementDays(n,-7);break;case"start":i=r.getFirstDateOfMonth(n);break;case"end":i=r.getLastDateOfMonth(n)}i&&(i=this.dateUtil.clampDate(i,a.minDate,a.maxDate),this.changeDisplayDate(i).then(function(){a.focus(i)}))}}}(),function(){"use strict";function e(e,t){var s=e('<md-icon md-svg-src="'+t.mdTabsArrow+'"></md-icon>')({})[0];return{require:["^^mdCalendar","^^mdCalendarMonth","mdCalendarMonthBody"],scope:{offset:"=mdMonthOffset"},controller:a,controllerAs:"mdMonthBodyCtrl",bindToController:!0,link:function(e,t,a,n){var i=n[0],r=n[1],l=n[2];l.calendarCtrl=i,l.monthCtrl=r,l.arrowIcon=s.cloneNode(!0),e.$watch(function(){return l.offset},function(e){angular.isNumber(e)&&l.generateContent()})}}}function a(e,t,a){this.$element=e,this.dateUtil=t,this.dateLocale=a,this.monthCtrl=null,this.calendarCtrl=null,this.offset=null,this.focusAfterAppend=null}e.$inject=["$compile","$$mdSvgRegistry"],a.$inject=["$element","$$mdDateUtil","$mdDateLocale"],angular.module("material.components.datepicker").directive("mdCalendarMonthBody",e),a.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)},a.prototype.buildDateCell=function(e){var t=this.monthCtrl,a=this.calendarCtrl,n=document.createElement("td");if(n.tabIndex=-1,n.classList.add("md-calendar-date"),n.setAttribute("role","gridcell"),e){n.setAttribute("tabindex","-1"),n.setAttribute("aria-label",this.dateLocale.longDateFormatter(e)),n.id=a.getDateId(e,"month"),n.setAttribute("data-timestamp",e.getTime()),this.dateUtil.isSameDay(e,a.today)&&n.classList.add(a.TODAY_CLASS),this.dateUtil.isValidDate(a.selectedDate)&&this.dateUtil.isSameDay(e,a.selectedDate)&&(n.classList.add(a.SELECTED_DATE_CLASS),n.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,n.appendChild(r),n.addEventListener("click",t.cellClickHandler),a.displayDate&&this.dateUtil.isSameDay(e,a.displayDate)&&(this.focusAfterAppend=n)}else n.classList.add("md-calendar-date-disabled"),n.textContent=i}return n},a.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.calendarCtrl.minDate,this.calendarCtrl.maxDate)&&(!angular.isFunction(this.calendarCtrl.dateFilter)||this.calendarCtrl.dateFilter(e))},a.prototype.buildDateRow=function(e){var t=document.createElement("tr");return t.setAttribute("role","row"),t.setAttribute("aria-label",this.dateLocale.weekNumberFormatter(e)),t},a.prototype.buildCalendarForMonth=function(e){var t=this.dateUtil.isValidDate(e)?e:new Date,a=this.dateUtil.getFirstDateOfMonth(t),n=this.getLocaleDay_(a),i=this.dateUtil.getNumberOfDaysInMonth(t),r=document.createDocumentFragment(),l=1,s=this.buildDateRow(l);r.appendChild(s);var d=this.offset===this.monthCtrl.items.length-1,o=0,c=document.createElement("td"),h=document.createElement("span"),u=this.calendarCtrl;if(h.textContent=this.dateLocale.monthHeaderFormatter(t),c.appendChild(h),c.classList.add("md-calendar-month-label"),u.maxDate&&a>u.maxDate?c.classList.add("md-calendar-month-label-disabled"):u.mode||(c.addEventListener("click",this.monthCtrl.headerClickHandler),c.setAttribute("data-timestamp",a.getTime()),c.setAttribute("aria-label",this.dateLocale.monthFormatter(t)),c.classList.add("md-calendar-label-clickable"),c.appendChild(this.arrowIcon.cloneNode(!0))),n<=2){c.setAttribute("colspan","7");var m=this.buildDateRow();if(m.appendChild(c),r.insertBefore(m,s),d)return r}else o=3,c.setAttribute("colspan","3"),s.appendChild(c);for(var p=o;p<n;p++)s.appendChild(this.buildDateCell());for(var g=n,f=a,D=1;D<=i;D++){if(7===g){if(d)return r;g=0,l++,s=this.buildDateRow(l),r.appendChild(s)}f.setDate(D);var C=this.buildDateCell(f);s.appendChild(C),g++}for(;s.childNodes.length<7;)s.appendChild(this.buildDateCell());for(;r.childNodes.length<6;){for(var v=this.buildDateRow(),y=0;y<7;y++)v.appendChild(this.buildDateCell());r.appendChild(v)}return r},a.prototype.getLocaleDay_=function(e){return(e.getDay()+(7-this.dateLocale.firstDayOfWeek))%7}}(),function(){"use strict";e.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdUtil"],angular.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="'+a+'"><tr aria-hidden="true" md-force-height="\''+a+"px'\"></tr></tbody></table></md-virtual-repeat-container></div>",require:["^^mdCalendar","mdCalendarYear"],controller:e,controllerAs:"yearCtrl",bindToController:!0,link:function(e,t,a,n){var i=n[0],r=n[1];r.initialize(i)}}});var a=88;function e(e,t,a,n,i,r){this.$element=e,this.$scope=t,this.$animate=a,this.$q=n,this.dateUtil=i,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1,this.$mdUtil=r;var l=this;this.cellClickHandler=function(){l.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,a=this.animateDateChange(e);return t.isMonthTransitionInProgress=!0,t.calendarCtrl.displayDate=e,a.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*a}return this.$q.when()},e.prototype.handleKeyEvent=function(e,t){var a=this,n=a.calendarCtrl,i=n.displayDate;if("select"===t)a.changeDate(i).then(function(){a.onTimestampSelected(i)});else{var r=null,l=a.dateUtil;switch(t){case"move-right":r=l.incrementMonths(i,1);break;case"move-left":r=l.incrementMonths(i,-1);break;case"move-row-down":r=l.incrementMonths(i,6);break;case"move-row-up":r=l.incrementMonths(i,-6)}if(r){var s=n.minDate?l.getFirstDateOfMonth(n.minDate):null,d=n.maxDate?l.getFirstDateOfMonth(n.maxDate):null;r=l.getFirstDateOfMonth(a.dateUtil.clampDate(r,s,d)),a.changeDate(r).then(function(){n.focus(r)})}}},e.prototype.attachScopeListeners=function(){var a=this;a.$scope.$on("md-calendar-parent-changed",function(e,t){a.calendarCtrl.changeSelectedDate(t?a.dateUtil.getFirstDateOfMonth(t):t),a.changeDate(t)}),a.$scope.$on("md-calendar-parent-action",angular.bind(a,a.handleKeyEvent))},e.prototype.onTimestampSelected=function(e){var t=this.calendarCtrl;t.mode?this.$mdUtil.nextTick(function(){t.setNgModelValue(e)}):t.setCurrentView("month",e)}}(),function(){"use strict";function e(e,t,a){this.$element=e,this.dateUtil=t,this.dateLocale=a,this.calendarCtrl=null,this.yearCtrl=null,this.offset=null,this.focusAfterAppend=null}e.$inject=["$element","$$mdDateUtil","$mdDateLocale"],angular.module("material.components.datepicker").directive("mdCalendarYearBody",function(){return{require:["^^mdCalendar","^^mdCalendarYear","mdCalendarYearBody"],scope:{offset:"=mdYearOffset"},controller:e,controllerAs:"mdYearBodyCtrl",bindToController:!0,link:function(e,t,a,n){var i=n[0],r=n[1],l=n[2];l.calendarCtrl=i,l.yearCtrl=r,e.$watch(function(){return l.offset},function(e){angular.isNumber(e)&&l.generateContent()})}}}),e.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)},e.prototype.buildMonthCell=function(e,t){var a=this.calendarCtrl,n=this.yearCtrl,i=this.buildBlankCell(),r=new Date(e,t,1);i.setAttribute("aria-label",this.dateLocale.monthFormatter(r)),i.id=a.getDateId(r,"year"),i.setAttribute("data-timestamp",String(r.getTime())),this.dateUtil.isSameMonthAndYear(r,a.today)&&i.classList.add(a.TODAY_CLASS),this.dateUtil.isValidDate(a.selectedDate)&&this.dateUtil.isSameMonthAndYear(r,a.selectedDate)&&(i.classList.add(a.SELECTED_DATE_CLASS),i.setAttribute("aria-selected","true"));var l=this.dateLocale.shortMonths[t];if(!this.dateUtil.isMonthWithinRange(r,a.minDate,a.maxDate)||angular.isFunction(this.calendarCtrl.dateFilter)&&!this.calendarCtrl.dateFilter(r))i.classList.add("md-calendar-date-disabled"),i.textContent=l;else{var s=document.createElement("span");s.classList.add("md-calendar-date-selection-indicator"),s.textContent=l,i.appendChild(s),i.addEventListener("click",n.cellClickHandler),a.displayDate&&this.dateUtil.isSameMonthAndYear(r,a.displayDate)&&(this.focusAfterAppend=i)}return i},e.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},e.prototype.buildCalendarForYear=function(e){var t,a=e.getFullYear(),n=document.createDocumentFragment(),i=document.createElement("tr"),r=document.createElement("td");for(r.className="md-calendar-month-label",r.textContent=a,i.appendChild(r),t=0;t<6;t++)i.appendChild(this.buildMonthCell(a,t));n.appendChild(i);var l=document.createElement("tr");for(l.appendChild(this.buildBlankCell()),t=6;t<12;t++)l.appendChild(this.buildMonthCell(a,t));return n.appendChild(l),n}}(),function(){"use strict";angular.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)}),a=Array(32),n=1;n<=31;n++)a[n]=n;var r=new Date(1880,0,1),l=new Date(r.getFullYear()+250,0,1),s={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||a,firstDayOfWeek:this.firstDayOfWeek||0,formatDate:this.formatDate||function(e,t){if(!e)return"";var a=e.toLocaleTimeString(),n=e;return 0!==e.getHours()||-1===a.indexOf("11:")&&-1===a.indexOf("23:")||(n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),1,0,0)),i("date")(n,"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 s.shortMonths[e.getMonth()]+" "+e.getFullYear()},monthFormatter:this.monthFormatter||function(e){return s.months[e.getMonth()]+" "+e.getFullYear()},weekNumberFormatter:this.weekNumberFormatter||function(e){return"Week "+e},longDateFormatter:this.longDateFormatter||function(e){return[s.days[e.getDay()],s.months[e.getMonth()],s.dates[e.getDate()],e.getFullYear()].join(" ")},msgCalendar:this.msgCalendar||"Calendar",msgOpenCalendar:this.msgOpenCalendar||"Open calendar",firstRenderableDate:this.firstRenderableDate||r,lastRenderableDate:this.lastRenderableDate||l};return s}).$inject=["$locale","$filter"],e.provider("$mdDateLocale",new t)}])}(),function(){"use strict";angular.module("material.components.datepicker").factory("$$mdDateUtil",function(){return{getFirstDateOfMonth:a,getNumberOfDaysInMonth:i,getDateInNextMonth:n,getDateInPreviousMonth:r,isInNextMonth:function(e,t){return l(n(e),t)},isInPreviousMonth:function(e,t){var a=r(e);return l(t,a)},getDateMidpoint:function(e,t){return c((e.getTime()+t.getTime())/2)},isSameMonthAndYear:l,getWeekOfMonth:function(e){var t=a(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:s,getLastDateOfMonth:function(e){return new Date(e.getFullYear(),e.getMonth(),i(e))},isSameDay:function(e,t){return e.getDate()==t.getDate()&&l(e,t)},getMonthDistance:function(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},isValidDate:d,setDateTimeToMidnight:o,createDateAtMidnight:c,isDateWithinRange:function(e,t,a){var n=c(e),i=d(t)?c(t):null,r=d(a)?c(a):null;return(!i||i<=n)&&(!r||n<=r)},incrementYears:function(e,t){return s(e,12*t)},getYearDistance:function(e,t){return t.getFullYear()-e.getFullYear()},clampDate:function(e,t,a){var n=e;t&&e<t&&(n=new Date(t.getTime()));a&&a<e&&(n=new Date(a.getTime()));return n},getTimestampFromNode:function(e){if(e&&e.hasAttribute("data-timestamp"))return Number(e.getAttribute("data-timestamp"))},isMonthWithinRange:function(e,t,a){var n=e.getMonth(),i=e.getFullYear();return(!t||t.getFullYear()<i||t.getMonth()<=n)&&(!a||a.getFullYear()>i||a.getMonth()>=n)}};function a(e){return new Date(e.getFullYear(),e.getMonth(),1)}function i(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function n(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function r(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function l(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function s(e,t){var a=new Date(e.getFullYear(),e.getMonth()+t,1),n=i(a);return n<e.getDate()?a.setDate(n):a.setDate(e.getDate()),a}function d(e){return e&&e.getTime&&!isNaN(e.getTime())}function o(e){d(e)&&e.setHours(0,0,0,0)}function c(e){var t;return o(t=angular.isUndefined(e)?new Date:new Date(e)),t}})}(),function(){"use strict";function e(l,h,u,m){return{template:function(e,t){var a=t.mdHideIcons,n=t.ariaLabel||t.mdPlaceholder,i="all"===a||"calendar"===a?"":'<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="'+l.mdCalendar+'"></md-icon></md-button>',r="";return"all"!==a&&"triangle"!==a&&(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(s)),i+'<div class="md-datepicker-input-container" ng-class="{\'md-datepicker-focused\': ctrl.isFocused}"><input '+(n?'aria-label="'+n+'" ':"")+'class="md-datepicker-input" aria-haspopup="true" aria-expanded="{{ctrl.isCalendarOpen}}" 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,a,n){var i=n[0],r=n[1],l=n[2],s=n[3],d=h.parseAttributeBoolean(a.mdNoAsterisk);if(r.configureNgModel(i,l,m),l){var o=t[0].querySelector(".md-errors-spacer");o&&t.after(angular.element("<div>").append(o)),l.setHasPlaceholder(a.mdPlaceholder),l.input=t,l.element.addClass(p).toggleClass(g,"calendar"!==a.mdHideIcons&&"all"!==a.mdHideIcons),l.label?d||a.$observe("required",function(e){l.label.toggleClass("md-required",!!e)}):u.expect(t,"aria-label",a.mdPlaceholder),e.$watch(l.isErrorGetter||function(){return i.$invalid&&(i.$touched||s&&s.$submitted)},l.setInvalid)}else if(s)var c=e.$watch(function(){return s.$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"],angular.module("material.components.datepicker").directive("mdDatepicker",e);var l="md-datepicker-invalid",h="md-datepicker-open",p="_md-datepicker-floating-label",g="_md-datepicker-has-calendar-icon",s="_md-datepicker-has-triangle-icon",m=/ipad|iphone|ipod|android/i;function t(e,t,a,n,i,r,l,s,d,o,c,h){this.$window=n,this.dateUtil=d,this.$mdConstant=i,this.$mdUtil=l,this.$$rAF=o,this.$mdDateLocale=s,this.$timeout=h,this.documentElement=angular.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=t[0].querySelector("input"),this.ngInputElement=angular.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=angular.element(t[0].querySelector(".md-datepicker-input-mask-opaque")),this.$element=t,this.$attrs=a,this.$scope=e,this.date=null,this.isFocused=!1,this.isDisabled,this.setDisabled(t[0].disabled||angular.isString(a.disabled)),this.isCalendarOpen=!1,this.openOnFocus=a.hasOwnProperty("mdOpenOnFocus"),this.mdInputContainer=null,this.calendarPaneOpenedFrom=null,this.calendarPaneId="md-date-pane-"+l.nextUid(),this.bodyClickHandler=angular.bind(this,this.handleBodyClick),this.windowEventName=m.test(navigator.userAgent||navigator.vendor||window.opera)?"orientationchange":"resize",this.windowEventHandler=l.debounce(angular.bind(this,this.closeCalendarPane),100),this.windowBlurHandler=angular.bind(this,this.handleWindowBlur),this.ngDateFilter=c("date"),this.leftMargin=20,this.topMargin=null,a.tabindex?(this.ngInputElement.attr("tabindex",a.tabindex),a.$set("tabindex",null)):a.$set("tabindex","-1"),a.$set("aria-owns",this.calendarPaneId),r(t),r(angular.element(this.calendarPane));var u=this;e.$on("$destroy",function(){u.detachCalendarPane()}),a.mdIsOpen&&e.$watch("ctrl.isOpen",function(e){e?u.openCalendarPane({target:u.inputElement}):u.closeCalendarPane()}),1===angular.version.major&&angular.version.minor<=4&&this.$onInit()}t.prototype.$onInit=function(){this.locale=this.dateLocale?angular.extend({},this.$mdDateLocale,this.dateLocale):this.$mdDateLocale,this.installPropertyInterceptors(),this.attachChangeListeners(),this.attachInteractionListeners()},t.prototype.configureNgModel=function(e,t,a){this.ngModelCtrl=e,this.mdInputContainer=t,this.$attrs.$set("type","date"),a[0].link.pre(this.$scope,{on:angular.noop,val:angular.noop,0:{}},this.$attrs,[e]);var n=this;n.ngModelCtrl.$formatters.push(function(e){var t=angular.isDefined(e)?e:null;if(!(e instanceof Date)&&(t=Date.parse(e),!isNaN(t)&&angular.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 n.onExternalChange(e),e}),e.$viewChangeListeners.unshift(angular.bind(this,this.updateErrorState));var i=n.$mdUtil.getModelOption(e,"updateOn");i&&this.ngInputElement.on(i,angular.bind(this.$element,this.$element.triggerHandler,i))},t.prototype.attachChangeListeners=function(){var a=this;a.$scope.$on("md-calendar-change",function(e,t){a.setModelValue(t),a.onExternalChange(t),a.closeCalendarPane()}),a.ngInputElement.on("input",angular.bind(a,a.resizeInputElement));var e=angular.isDefined(this.debounceInterval)?this.debounceInterval:500;a.ngInputElement.on("input",a.$mdUtil.debounce(a.handleInputEvent,e,a))},t.prototype.attachInteractionListeners=function(){var t=this,a=this.$scope,n=this.$mdConstant.KEY_CODE;t.ngInputElement.on("keydown",function(e){e.altKey&&e.keyCode==n.DOWN_ARROW&&(t.openCalendarPane(e),a.$digest())}),t.openOnFocus&&(t.ngInputElement.on("focus",angular.bind(t,t.openCalendarPane)),angular.element(t.$window).on("blur",t.windowBlurHandler),a.$on("$destroy",function(){angular.element(t.$window).off("blur",t.windowBlurHandler)})),a.$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 a=this.dateUtil.createDateAtMidnight(this.minDate);this.ngModelCtrl.$setValidity("mindate",a<=t)}if(this.dateUtil.isValidDate(this.maxDate)){var n=this.dateUtil.createDateAtMidnight(this.maxDate);this.ngModelCtrl.$setValidity("maxdate",t<=n)}angular.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),angular.element(this.inputContainer).toggleClass(l,!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(l),["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)&&(!angular.isFunction(this.dateFilter)||this.dateFilter(e))},t.prototype.attachCalendarPane=function(){var e=this.calendarPane,t=document.body;e.style.transform="",this.$element.addClass(h),this.mdInputContainer&&this.mdInputContainer.element.addClass(h),angular.element(t).addClass("md-datepicker-is-showing");var a=this.inputContainer.getBoundingClientRect(),n=t.getBoundingClientRect();(!this.topMargin||this.topMargin<0)&&(this.topMargin=(this.inputMask.parent().prop("clientHeight")-this.ngInputElement.prop("clientHeight"))/2);var i=a.top-n.top-this.topMargin,r=a.left-n.left-this.leftMargin,l=n.top<0&&0==document.body.scrollTop?-n.top:document.body.scrollTop,s=n.left<0&&0==document.body.scrollLeft?-n.left:document.body.scrollLeft,d=l+this.$window.innerHeight,o=s+this.$window.innerWidth;if(this.inputMask.css({position:"absolute",left:this.leftMargin+"px",top:this.topMargin+"px",width:a.width-1+"px",height:a.height-2+"px"}),o<r+360){if(0<o-360)r=o-360;else{r=s;var c=this.$window.innerWidth/360;e.style.transform="scale("+c+")"}e.classList.add("md-datepicker-pos-adjusted")}d<i+368&&l<d-368&&(i=d-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(h),this.mdInputContainer&&this.mdInputContainer.element.removeClass(h),angular.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.$timeout(function(){t.documentElement.on("click touchstart",t.bodyClickHandler)},100),window.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),window.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 angular.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()}}(),ngmaterial.components.datepicker=angular.module("material.components.datepicker");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.dialog');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdDialogDirective(e,t,i){return{restrict:"E",link:function(o,a){a.addClass("_md"),t(a),e(function(){var e,t=a[0].querySelector("md-dialog-content");function n(){a.toggleClass("md-content-overflow",t.scrollHeight>t.clientHeight)}t&&(e=t.getElementsByTagName("img"),n(),angular.element(e).on("load",n)),o.$on("$destroy",function(){i.destroy(a)})})}}}function MdDialogProvider(e){var $,k;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,a){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&&!angular.isDefined(this.result);e.keyCode!==a.KEY_CODE.ENTER||t||o.hide(this.result)}}}function o(u,d,g,p,s,c,f,m,h,r,t,l,v){return{hasBackdrop:!0,isolateScope:!0,onCompiling:function(e){e.defaultTheme=t.defaultTheme(),function(t){var e;t.targetEvent&&t.targetEvent.target&&(e=angular.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 a=n.registerChanges(function(e){t.scope.theme=e,t.themeWatch||a()})}(e)},onShow:function(e,t,n,o){angular.element(c[0].body).addClass("md-dialog-is-showing");var a=t.find("md-dialog");if(a.hasClass("ng-cloak")){h.warn("$mdDialog: using `<md-dialog ng-cloak>` will affect the dialog opening animations.",t[0])}return function(e){function t(e,t){var n=angular.element(e||{});if(n&&n.length){var o=angular.isFunction(n[0].getBoundingClientRect);return angular.extend(t||{},{element:o?n:void 0,bounds:o?n[0].getBoundingClientRect():angular.extend({},{top:0,left:0,height:0,width:0},n[0]),focus:angular.bind(n,n.focus)})}}function n(e,t){return angular.isString(e)&&(e=c[0].querySelector(e)),angular.element(e||t)}e.origin=angular.extend({element:null,bounds:null,focus:angular.noop},e.origin||{}),e.parent=n(e.parent,m),e.closeTo=t(n(e.closeTo)),e.openFrom=t(n(e.openFrom)),e.targetEvent&&(e.origin=t(e.targetEvent.target,e.origin),e.originInteraction=v.getLastInteractionType())}(n),function(e,t){var n="alert"===t.$type?"alertdialog":"dialog",o=e.find("md-dialog-content"),a=e.attr("id"),i="dialogContent_"+(a||g.nextUid());e.attr({role:n,tabIndex:"-1"}),0===o.length&&(o=e,a&&(i=a)),o.attr("id",i),e.attr("aria-describedby",i),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(" ")}),($=document.createElement("div")).classList.add("md-dialog-focus-trap"),$.tabIndex=0,k=$.cloneNode(!1);var r=function(){e.focus()};$.addEventListener("focus",r),k.addEventListener("focus",r),e[0].parentNode.insertBefore($,e[0]),e.after(k)}(a,n),i=e,r=t,l=n,l.disableParentScroll&&(l.restoreScroll=g.disableScrollAround(r,l.parent)),l.hasBackdrop&&(l.backdrop=g.createBackdrop(i,"md-dialog-backdrop md-opaque"),s.enter(l.backdrop,l.parent)),l.hideBackdrop=function(e){l.backdrop&&(e?l.backdrop.remove():s.leave(l.backdrop)),l.disableParentScroll&&(l.restoreScroll&&l.restoreScroll(),delete l.restoreScroll),l.hideBackdrop=null},function(e,t){var n=angular.element(f),o=g.debounce(function(){C(e,t)},60),a=[],i=function(){var e="alert"==t.$type?u.hide:u.cancel;g.nextTick(e,!0)};if(t.escapeToClose){var r=t.parent,l=function(e){e.keyCode===p.KEY_CODE.ESCAPE&&(e.stopImmediatePropagation(),e.preventDefault(),i())};e.on("keydown",l),r.on("keydown",l),a.push(function(){e.off("keydown",l),r.off("keydown",l)})}if(n.on("resize",o),a.push(function(){n.off("resize",o)}),t.clickOutsideToClose){var d,s=e,c=function(e){d=e.target},m=function(e){d===s[0]&&e.target===s[0]&&(e.stopPropagation(),e.preventDefault(),i())};s.on("mousedown",c),s.on("mouseup",m),a.push(function(){s.off("mousedown",c),s.off("mouseup",m)})}t.deactivateListeners=function(){a.forEach(function(e){e()}),t.deactivateListeners=null}}(t,n),function(e,t){t.parent.append(e),t.reverseContainerStretch=C(e,t);var n=e.find("md-dialog"),o=g.dom.animator,a=o.calculateZoomToOrigin,i={transitionInClass:"md-transition-in",transitionOutClass:"md-transition-out"},r=o.toTransformCss(a(n,t.openFrom||t.origin)),l=o.toTransformCss("");return n.toggleClass("md-dialog-fullscreen",!!t.fullscreen),o.translate3d(n,r,l,i).then(function(e){return t.reverseAnimate=function(){return delete t.reverseAnimate,t.closeTo?(i={transitionInClass:"md-transition-out",transitionOutClass:"md-transition-in"},r=l,l=o.toTransformCss(a(n,t.closeTo)),o.translate3d(n,r,l,i)):e(l=o.toTransformCss(a(n,t.origin)))},t.clearAnimate=function(){return delete t.clearAnimate,n.removeClass([i.transitionOutClass,i.transitionInClass].join(" ")),o.translate3d(n,l,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]||b(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")&&h.warn("Using a class of md-actions is deprecated, please use <md-dialog-actions>."),function(){if(n.focusOnOpen){var e=g.findFocusTarget(t)||t[0].querySelector(".dialog-close, md-dialog-actions button:last-child")||a;e.focus()}}()});var i,r,l},onShowing:function(e,t,n,o){if(o){var a=o.htmlContent||n.htmlContent||"",i=o.textContent||n.textContent||o.content||n.content||"";if(a&&!r.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(a&&i)throw Error("md-dialog cannot have both `htmlContent` and `textContent`");o.mdHtmlContent=a,o.mdTextContent=i}},onRemove:function(e,t,n){n.deactivateListeners(),n.unlockScreenReader(),n.hideBackdrop(n.$destroy),$&&$.parentNode&&$.parentNode.removeChild($);k&&k.parentNode&&k.parentNode.removeChild(k);return n.$destroy?a():(o=n,o.reverseAnimate().then(function(){o.contentElement&&o.clearAnimate()})).then(a);var o;function a(){angular.element(c[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=l.startSymbol(),a=l.endSymbol(),i=o+(t.themeWatch?"":"::")+"theme"+a;return'<div class="md-dialog-container" tabindex="-1" '+(t.hasTheme?'md-theme="'+i+'"':"")+">"+(n=e,t.autoWrap&&!/<\/md-dialog>/g.test(n)?"<md-dialog>"+(n||"")+"</md-dialog>":n||"")+"</div>"}};function C(e,t){var n="fixed"==f.getComputedStyle(c[0].body).position,o=t.backdrop?f.getComputedStyle(t.backdrop[0]):null,a=o?Math.min(c[0].body.clientHeight,Math.ceil(Math.abs(parseInt(o.height,10)))):0,i={top:e.css("top"),height:e.css("height")},r=Math.abs(t.parent[0].getBoundingClientRect().top);return e.css({top:(n?r:0)+"px",height:a?a+"px":"100%"}),function(){e.css(i)}}function b(e,t){if(-1!==t.indexOf(e.nodeName))return!0}}}goog.provide("ngmaterial.components.dialog"),goog.require("ngmaterial.components.backdrop"),goog.require("ngmaterial.core"),MdDialogDirective.$inject=["$$rAF","$mdTheming","$mdDialog"],MdDialogProvider.$inject=["$$interimElementProvider"],angular.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",MdDialogDirective).provider("$mdDialog",MdDialogProvider),ngmaterial.components.dialog=angular.module("material.components.dialog");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.divider');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdDividerDirective(e){return{restrict:"E",link:e}}goog.provide("ngmaterial.components.divider"),goog.require("ngmaterial.core"),MdDividerDirective.$inject=["$mdTheming"],angular.module("material.components.divider",["material.core"]).directive("mdDivider",MdDividerDirective),ngmaterial.components.divider=angular.module("material.components.divider");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.fabActions');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
goog.provide("ngmaterial.components.fabActions"),goog.require("ngmaterial.core"),function(){"use strict";function a(i){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(a,e){var t=a.children();i.prefixer().hasAttribute(t,"ng-repeat")?t.addClass("md-fab-action-item"):t.wrap('<div class="md-fab-action-item">')}}}a.$inject=["$mdUtil"],angular.module("material.components.fabActions",["material.core"]).directive("mdFabActions",a)}(),ngmaterial.components.fabActions=angular.module("material.components.fabActions");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.fabShared');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
goog.provide("ngmaterial.components.fabShared"),goog.require("ngmaterial.core"),function(){"use strict";function n(e,r,o,c,l,t){var a,s=this,n=0;function d(n){"click"==n.type&&function(n){e=n.target,c.getClosest(e,"md-fab-trigger")&&s.toggle();var e;t=n.target,c.getClosest(t,"md-fab-actions")&&s.close();var t}(n),"focusout"!=n.type||a||(a=t(function(){s.close()},100,!1)),"focusin"==n.type&&a&&(t.cancel(a),a=null)}function u(){s.currentActionIndex=-1}function m(){0<r[0].scrollHeight?o.addClass(r,"_md-animations-ready").then(function(){r.removeClass("md-animations-waiting")}):n<10&&(t(m,100),n+=1)}function f(){r.off("keydown",p),angular.element(document).off("click touchend",g)}function g(n){if(n.target){var e=c.getClosest(n.target,"md-fab-trigger"),t=c.getClosest(n.target,"md-fab-actions");e||t||s.close()}}function p(n){switch(n.which){case l.KEY_CODE.ESCAPE:return s.close(),n.preventDefault(),!1;case l.KEY_CODE.LEFT_ARROW:return i=n,"left"===s.direction?v(i):h(i),!1;case l.KEY_CODE.UP_ARROW:return a=n,"down"===s.direction?h(a):v(a),!1;case l.KEY_CODE.RIGHT_ARROW:return t=n,"left"===s.direction?h(t):v(t),!1;case l.KEY_CODE.DOWN_ARROW:return e=n,"up"===s.direction?h(e):v(e),!1}var e,t,a,i}function h(n){i(n,-1)}function v(n){i(n,1)}function i(n,e){var t,a=(t=b()[0].querySelectorAll(".md-fab-action-item"),angular.forEach(t,function(n){angular.element(angular.element(n).children()[0]).attr("tabindex",-1)}),t);s.currentActionIndex=s.currentActionIndex+e,s.currentActionIndex=Math.min(a.length-1,s.currentActionIndex),s.currentActionIndex=Math.max(0,s.currentActionIndex);var i=angular.element(a[s.currentActionIndex]).children()[0];angular.element(i).attr("tabindex",0),i.focus(),n.preventDefault(),n.stopImmediatePropagation()}function b(){return r.find("md-fab-actions")}s.open=function(){e.$evalAsync("vm.isOpen = true")},s.close=function(){e.$evalAsync("vm.isOpen = false"),r.find("md-fab-trigger")[0].focus()},s.toggle=function(){e.$evalAsync("vm.isOpen = !vm.isOpen")},s.$onInit=function(){var n,a,i;s.direction=s.direction||"down",s.isOpen=s.isOpen||!1,u(),r.addClass("md-animations-waiting"),n=["click","focusin","focusout"],angular.forEach(n,function(n){r.on(n,d)}),e.$on("$destroy",function(){angular.forEach(n,function(n){r.off(n,d)}),f()}),e.$watch("vm.direction",function(n,e){o.removeClass(r,"md-"+e),o.addClass(r,"md-"+n),u()}),e.$watch("vm.isOpen",function(n){u(),a&&i||(a=r.find("md-fab-trigger"),i=b()),n?(r.on("keydown",p),c.nextTick(function(){angular.element(document).on("click touchend",g)})):f();var e=n?"md-is-open":"",t=n?"":"md-is-open";a.attr("aria-haspopup",!0),a.attr("aria-expanded",n),i.attr("aria-hidden",!n),o.setClass(r,e,t)}),m()},1===angular.version.major&&angular.version.minor<=4&&this.$onInit()}n.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"],angular.module("material.components.fabShared",["material.core"]).controller("MdFabController",n)}(),function(){"use strict";n.$inject=["$timeout"],e.$inject=["$timeout"];var t=300;function n(e){function a(n){e(n,t,!1)}function i(n){if(!n.hasClass("md-animations-waiting")||n.hasClass("_md-animations-ready")){var e=n[0],l=n.controller("mdFabSpeedDial"),a=e.querySelectorAll(".md-fab-action-item"),s=e.querySelector("md-fab-trigger"),t=e.querySelector("._md-css-variables"),i=parseInt(window.getComputedStyle(t).zIndex);angular.forEach(a,function(n,e){var t=n.style;t.transform=t.webkitTransform="",t.transitionDelay="",t.opacity=1,t.zIndex=a.length-e+i}),s.style.zIndex=i+a.length+1,l.isOpen||angular.forEach(a,function(n,e){var t,a,i=n.style,r=(s.clientHeight-n.clientHeight)/2,o=(s.clientWidth-n.clientWidth)/2;switch(l.direction){case"up":t=n.scrollHeight*(e+1)+r,a="Y";break;case"down":t=-(n.scrollHeight*(e+1)+r),a="Y";break;case"left":t=n.scrollWidth*(e+1)+o,a="X";break;case"right":t=-(n.scrollWidth*(e+1)+o),a="X"}var c="translate"+a+"("+t+"px)";i.transform=i.webkitTransform=c})}}return{addClass:function(n,e,t){n.hasClass("md-fling")?(i(n),a(t)):t()},removeClass:function(n,e,t){i(n),a(t)}}}function e(e){function a(n){e(n,t,!1)}function i(n){var e=n[0],i=n.controller("mdFabSpeedDial"),r=e.querySelectorAll(".md-fab-action-item"),t=e.querySelector("._md-css-variables"),o=parseInt(window.getComputedStyle(t).zIndex);angular.forEach(r,function(n,e){var t=n.style,a=65*e;t.opacity=i.isOpen?1:0,t.transform=t.webkitTransform=i.isOpen?"scale(1)":"scale(0)",t.transitionDelay=(i.isOpen?a:r.length-a)+"ms",t.zIndex=r.length-e+o})}return{addClass:function(n,e,t){i(n),a(t)},removeClass:function(n,e,t){i(n),a(t)}}}angular.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(n,e){e.prepend('<div class="_md-css-variables"></div>')}}}).animation(".md-fling",n).animation(".md-scale",e).service("mdFabSpeedDialFlingAnimation",n).service("mdFabSpeedDialScaleAnimation",e)}(),ngmaterial.components.fabShared=angular.module("material.components.fabShared");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.fabToolbar');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
goog.provide("ngmaterial.components.fabToolbar"),goog.require("ngmaterial.components.fabActions"),goog.require("ngmaterial.components.fabShared"),goog.require("ngmaterial.core"),function(){"use strict";function t(){function a(t,e,o){if(e){var a=t[0],r=t.controller("mdFabToolbar"),n=a.querySelector(".md-fab-toolbar-background"),l=a.querySelector("md-fab-trigger button"),i=a.querySelector("md-toolbar"),s=a.querySelector("md-fab-trigger button md-icon"),d=t.find("md-fab-actions").children();if(l&&n){var c=window.getComputedStyle(l).getPropertyValue("background-color"),m=a.offsetWidth,f=(a.offsetHeight,m/l.offsetWidth*2);n.style.backgroundColor=c,n.style.borderRadius=m+"px",r.isOpen?(i.style.pointerEvents="inherit",n.style.width=l.offsetWidth+"px",n.style.height=l.offsetHeight+"px",n.style.transform="scale("+f+")",n.style.transitionDelay="0ms",s&&(s.style.transitionDelay=".3s"),angular.forEach(d,function(t,e){t.style.transitionDelay=25*(d.length-e)+"ms"})):(i.style.pointerEvents="none",n.style.transform="scale(1)",n.style.top="0",t.hasClass("md-right")&&(n.style.left="0",n.style.right=null),t.hasClass("md-left")&&(n.style.right="0",n.style.left=null),n.style.transitionDelay="200ms",s&&(s.style.transitionDelay="0ms"),angular.forEach(d,function(t,e){t.style.transitionDelay=200+25*e+"ms"}))}}}return{addClass:function(t,e,o){a(t,e),o()},removeClass:function(t,e,o){a(t,e),o()}}}angular.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(t,e,o){e.addClass("md-fab-toolbar"),e.find("md-fab-trigger").find("button").prepend('<div class="md-fab-toolbar-background"></div>')}}}).animation(".md-fab-toolbar",t).service("mdFabToolbarAnimation",t)}(),ngmaterial.components.fabToolbar=angular.module("material.components.fabToolbar");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.gridList');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function GridListDirective(f,v,y,w){return{restrict:"E",controller:GridListController,scope:{mdOnLayout:"&"},link:function(o,a,u,e){a.addClass("_md"),a.attr("role","list"),e.layoutDelegate=function(t){var r=[].filter.call(a.children(),function(t){return"MD-GRID-TILE"==t.tagName&&!t.$$mdDestroyed}),n={tileSpans:(e=r,[].map.call(e,function(t){var e=angular.element(t).controller("mdGridTile");return{row:parseInt(w.getResponsiveAttribute(e.$attrs,"md-rowspan"),10)||1,col:parseInt(w.getResponsiveAttribute(e.$attrs,"md-colspan"),10)||1}})),colCount:function(){var t=parseInt(w.getResponsiveAttribute(u,"md-cols"),10);if(isNaN(t))throw"md-grid-list: md-cols attribute was not found, or contained a non-numeric value";return t}(),rowMode:c(),rowHeight:function(){var t=w.getResponsiveAttribute(u,"md-row-height");if(!t)throw"md-grid-list: md-row-height attribute was not found";switch(c()){case"fixed":return g(t);case"ratio":var e=t.split(":");return parseFloat(e[0])/parseFloat(e[1]);case"fit":return 0}}(),gutter:g(w.getResponsiveAttribute(u,"md-gutter")||1)};var e;if(!t&&angular.equals(n,l))return;var i=y(n.colCount,n.tileSpans,r).map(function(t,i){return{grid:{element:a,style:function(t,e,i,r,n){var o={};switch(r){case"fixed":o.height=h({unit:n,span:e,gutter:i}),o.paddingBottom="";break;case"ratio":var a=1===t?0:(t-1)/t,u=1/t*100,l=u*(1/n),s=m({share:l,gutterShare:a,gutter:i});o.height="",o.paddingBottom=h({unit:s,span:e,gutter:i})}return o}(n.colCount,i,n.gutter,n.rowMode,n.rowHeight)},tiles:t.map(function(t,e){return{element:angular.element(r[e]),style:function(t,e,i,r,n,o,a){var u=1/i*100,l=(i-1)/i,s=m({share:u,gutterShare:l,gutter:n}),d="rtl"!=document.dir&&"rtl"!=document.body.dir?{left:p({unit:s,offset:t.col,gutter:n}),width:h({unit:s,span:e.col,gutter:n}),paddingTop:"",marginTop:"",top:"",height:""}:{right:p({unit:s,offset:t.col,gutter:n}),width:h({unit:s,span:e.col,gutter:n}),paddingTop:"",marginTop:"",top:"",height:""};switch(o){case"fixed":d.top=p({unit:a,offset:t.row,gutter:n}),d.height=h({unit:a,span:e.row,gutter:n});break;case"ratio":var c=u/a,g=m({share:c,gutterShare:l,gutter:n});d.paddingTop=h({unit:g,span:e.row,gutter:n}),d.marginTop=p({unit:g,offset:t.row,gutter:n});break;case"fit":var f=(r-1)/r;g=m({share:c=1/r*100,gutterShare:f,gutter:n}),d.top=p({unit:g,offset:t.row,gutter:n}),d.height=h({unit:g,span:e.row,gutter:n})}return d}(t.position,t.spans,n.colCount,i,n.gutter,n.rowMode,n.rowHeight)}})}}).reflow().performance();o.mdOnLayout({$event:{performance:i}}),l=n};var l,i=angular.bind(e,e.invalidateLayout),r=function(){for(var t in v.MEDIA)w(t),w.getQuery(v.MEDIA[t]).addListener(i);return w.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],u,n)}();function n(t){null==t?e.invalidateLayout():w(t)&&e.invalidateLayout()}o.$on("$destroy",function(){for(var t in e.layoutDelegate=angular.noop,r(),v.MEDIA)w.getQuery(v.MEDIA[t]).removeListener(i)});var s=f.startSymbol(),d=f.endSymbol();function t(t){return s+t+d}var m=f(t("share")+"% - ("+t("gutter")+" * "+t("gutterShare")+")"),p=f("calc(("+t("unit")+" + "+t("gutter")+") * "+t("offset")+")"),h=f("calc(("+t("unit")+") * "+t("span")+" + ("+t("span")+" - 1) * "+t("gutter")+")");function c(){var t=w.getResponsiveAttribute(u,"md-row-height");if(!t)throw"md-grid-list: md-row-height attribute was not found";return"fit"==t?"fit":-1!==t.indexOf(":")?"ratio":"fixed"}function g(t){return/\D$/.test(t)?t:t+"px"}}}}function GridListController(t){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=t.nextTick,this.layoutDelegate=angular.noop}function GridLayoutFactory(l){var s=e;return t.animateWith=function(t){s=angular.isFunction(t)?t:e},t;function t(t,e){var i,r,n,o,a,u;return o=l.time(function(){r=function(n,t){var o=0,a=0,u=function(){for(var t=[],e=0;e<n;e++)t.push(0);return t}();return{positioning:t.map(function(t,e){return{spans:t,position:function(t,e){if(t.col>n)throw"md-grid-list: Tile at position "+e+" has a colspan ("+t.col+") that exceeds the column count ("+n+")";var i=0,r=0;for(;r-i<t.col;)n<=o?l():-1!==(i=u.indexOf(0,o))&&-1!==(r=d(i+1))?o=r+1:(i=r=0,l());return s(i,t.col,t.row),o=i+t.col,{col:i,row:a}}(t,e)}}),rowCount:a+Math.max.apply(Math,u)};function l(){a++,s(o=0,n,-1)}function s(t,e,i){for(var r=t;r<t+e;r++)u[r]=Math.max(u[r]+i,0)}function d(t){var e;for(e=t;e<u.length;e++)if(0!==u[e])return e;if(e===u.length)return e}}(t,e)}),i={layoutInfo:function(){return r},map:function(e){return a=l.time(function(){var t=i.layoutInfo();n=e(t.positioning,t.rowCount)}),i},reflow:function(t){return u=l.time(function(){(t||s)(n.grid,n.tiles)}),i},performance:function(){return{tileCount:e.length,layoutTime:o,mapTime:a,reflowTime:u,totalTime:o+a+u}}}}function e(t,e){t.element.css(t.style),e.forEach(function(t){t.element.css(t.style)})}}function GridTileDirective(o){return{restrict:"E",require:"^mdGridList",template:"<figure ng-transclude></figure>",transclude:!0,scope:{},controller:["$attrs",function(t){this.$attrs=t}],link:function(t,e,i,r){e.attr("role","listitem");var n=o.watchResponsiveAttributes(["md-colspan","md-rowspan"],i,angular.bind(r,r.invalidateLayout));r.invalidateTiles(),t.$on("$destroy",function(){e[0].$$mdDestroyed=!0,n(),r.invalidateLayout()}),angular.isDefined(t.$parent.$index)&&t.$watch(function(){return t.$parent.$index},function(t,e){t!==e&&r.invalidateTiles()})}}}function GridTileCaptionDirective(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}goog.provide("ngmaterial.components.gridList"),goog.require("ngmaterial.core"),GridListController.$inject=["$mdUtil"],GridLayoutFactory.$inject=["$mdUtil"],GridListDirective.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],GridTileDirective.$inject=["$mdMedia"],angular.module("material.components.gridList",["material.core"]).directive("mdGridList",GridListDirective).directive("mdGridTile",GridTileDirective).directive("mdGridTileFooter",GridTileCaptionDirective).directive("mdGridTileHeader",GridTileCaptionDirective).factory("$mdGridLayout",GridLayoutFactory),GridListController.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(angular.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}},ngmaterial.components.gridList=angular.module("material.components.gridList");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.icon');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function mdIconDirective(c,g,l,e){return{restrict:"E",link:function(e,t,n){g(t);var i=n.mdFontIcon,r=c.fontSet(n.mdFontSet);n.mdSvgIcon||n.mdSvgSrc||(n.mdFontIcon&&t.addClass("md-font "+n.mdFontIcon),t.addClass(r)),n.$observe("mdFontIcon",u),n.$observe("mdFontSet",u);t[0].getAttribute(n.$attr.mdSvgSrc);var o,a=n.$normalize(n.$attr.mdSvgIcon||n.$attr.mdSvgSrc||"");n.role||(l.expect(t,"role","img"),n.role="img");"img"!==n.role||n.ariaHidden||l.hasAriaLabel(t)||(n.alt?l.expect(t,"aria-label",n.alt):l.parentHasAriaLabel(t,2)?l.expect(t,"aria-hidden","true"):(o=n.mdFontIcon||n.mdSvgIcon||t.text())?l.expect(t,"aria-label",o):l.expect(t,"aria-hidden","true"));a&&n.$observe(a,function(e){t.empty(),e&&c(e).then(function(e){t.empty(),t.append(e)})});function u(){if(!n.mdSvgIcon&&!n.mdSvgSrc){n.mdFontIcon&&(t.removeClass(i),t.addClass(n.mdFontIcon),i=n.mdFontIcon);var e=c.fontSet(n.mdFontSet);r!==e&&(t.removeClass(r),t.addClass(e),r=e)}}}}}goog.provide("ngmaterial.components.icon"),goog.require("ngmaterial.core"),angular.module("material.components.icon",["material.core"]),angular.module("material.components.icon").directive("mdIcon",["$mdIcon","$mdTheming","$mdAria","$sce",mdIconDirective]),MdIconService.$inject=["config","$templateRequest","$q","$log","$mdUtil","$sce"],angular.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",MdIconProvider);var config={defaultViewBoxSize:24,defaultFontSet:"material-icons",fontSets:[]};function MdIconProvider(){}function ConfigurationItem(e,t){this.url=e,this.viewBoxSize=t||config.defaultViewBoxSize}function MdIconService(a,o,u,c,l,t){var i={},g={},n=/[-\w@:%+.~#?&//=]{2,}\.[a-z]{2,4}\b(\/[-\w@:%+.~#?&//=]*)?/i,d=/^data:image\/svg\+xml[\s*;\w\-=]*?(base64)?,(.*)$/i;return M.prototype={clone:function(){return this.element.cloneNode(!0)},prepare:function(){var e=this.config?this.config.viewBoxSize:a.defaultViewBoxSize;angular.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(angular.isUndefined(t)||!t||!t.length)return a.defaultFontSet;var n=t;return angular.forEach(a.fontSets,function(e){e.alias===t&&(n=e.fontSet||n)}),n},e;function e(e){return e=e||"",angular.isString(e)||(e=t.getTrustedUrl(e)),i[e]?u.when(function(e){var n,i,r,o,a=e.clone(),u=l.nextUid(),c=["clip-path","color-profile","cursor","fill","filter","href","marker-start","marker-mid","marker-end","mask","stroke","style","vector-effect"],g=void 0===a.innerHTML;if(!isFinite(Number(u)))throw new Error("Unsafe and unexpected non-number result from $mdUtil.nextUid().");n="_cache"+u,a.id&&(a.id+=n);return angular.forEach(a.querySelectorAll("[id]"),function(t){for(i="",r=0;r<c.length;r++)i+="["+c[r]+'="url(#'+t.id+')"]',r+1<c.length&&(i+=", ");angular.forEach(a.querySelectorAll(i),function(e){I(t,e,g,u)}),angular.forEach(a.querySelectorAll("style"),function(e){I(t,e,g,u)}),angular.forEach(a.querySelectorAll("[*|href]:not([href])"),function(e){(o=e.getAttribute("xlink:href"))&&(o=o.replace("#"+t.id,"#"+t.id+n),e.setAttribute("xlink:href",o))}),t.id+=n}),a}(i[e])):n.test(e)||d.test(e)?f(e).then(r(e)):(-1===e.indexOf(":")&&(e="$default:"+e),(a[e]?s:m)(e).then(r(e)))}function I(e,t,n,i){var r,o;if(!isFinite(Number(i)))throw new Error("Unsafe and unexpected non-number result for newUid.");o="_cache"+i,n?(r=(r=l.getOuterHTML(t)).replace("url(#"+e.id+")","url(#"+e.id+o+")"),t.textContent=angular.element(r)[0].innerHTML):t.outerHTML=t.outerHTML.replace("url(#"+e.id+")","url(#"+e.id+o+")")}function r(n){return function(e){var t;return i[n]=(t=e,angular.isDefined(t.element)&&angular.isDefined(t.config)?e:new M(e,a[n])),i[n].clone()}}function s(e){var t=a[e];return f(t.url).then(function(e){return new M(e,t)})}function m(i){var e=i.substring(0,i.lastIndexOf(":"))||"$default",r=a[e];return r?f(r.url).then(function(e){var t=i.slice(i.lastIndexOf(":")+1),n=e.querySelector("#"+t);return n?new M(n,r):o(i)}):o(i);function o(e){var t="icon "+e+" not found";return c.warn(t),u.reject(t||e)}}function f(e){return d.test(e)?(t=e,n=d.exec(t),r=/base64/i.test(t)?window.atob(n[2]):n[2],u.when(angular.element(r)[0])):(i=e,u(function(t,n){o(i,!0).then(function(e){g[i]||(g[i]=angular.element("<div>").append(e)[0].querySelector("svg")),t(g[i])},function(e){var t=angular.isString(e)?e:e.message||e.data||e.statusText;c.warn(t),n(e)})}));var i,t,n,r}function M(e,t){var n;if(e&&"symbol"===e.tagName.toLowerCase()){var i=e.getAttribute("viewBox");n=e.innerHTML?e.innerHTML:l.getInnerHTML(e),e=angular.element('<svg xmlns="http://www.w3.org/2000/svg">').append(n)[0],i&&e.setAttribute("viewBox",i)}e&&"svg"!==e.tagName.toLowerCase()&&(e=angular.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()}}MdIconProvider.prototype={icon:function(e,t,n){return-1==e.indexOf(":")&&(e="$default:"+e),config[e]=new ConfigurationItem(t,n),this},iconSet:function(e,t,n){return config[e]=new ConfigurationItem(t,n),this},defaultIconSet:function(e,t){var n="$default";return config[n]||(config[n]=new ConfigurationItem(e,t)),config[n].viewBoxSize=t||config.defaultViewBoxSize,this},defaultViewBoxSize:function(e){return config.defaultViewBoxSize=e,this},fontSet:function(e,t){return config.fontSets.push({alias:e,fontSet:t||e}),this},defaultFontSet:function(e){return config.defaultFontSet=e||"",this},defaultIconSize:function(e){return config.defaultIconSize=e,this},$get:["$templateRequest","$q","$log","$mdUtil","$sce",function(e,t,n,i,r){return MdIconService(config,e,t,n,i,r)}]},ngmaterial.components.icon=angular.module("material.components.icon");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.input');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
goog.provide("ngmaterial.components.input"),goog.require("ngmaterial.core"),mdInputContainerDirective.$inject=["$mdTheming","$parse","$$rAF"],inputTextareaDirective.$inject=["$mdUtil","$window","$mdAria","$timeout","$mdGesture"],mdMaxlengthDirective.$inject=["$animate","$mdUtil"],placeholderDirective.$inject=["$compile"],ngMessageDirective.$inject=["$mdUtil"],mdSelectOnFocusDirective.$inject=["$document","$timeout"],mdInputInvalidMessagesAnimation.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],ngMessagesAnimation.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],ngMessageAnimation.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"];var inputModule=angular.module("material.components.input",["material.core"]).directive("mdInputContainer",mdInputContainerDirective).directive("label",labelDirective).directive("input",inputTextareaDirective).directive("textarea",inputTextareaDirective).directive("mdMaxlength",mdMaxlengthDirective).directive("placeholder",placeholderDirective).directive("ngMessages",ngMessagesDirective).directive("ngMessage",ngMessageDirective).directive("ngMessageExp",ngMessageDirective).directive("mdSelectOnFocus",mdSelectOnFocusDirective).animation(".md-input-invalid",mdInputInvalidMessagesAnimation).animation(".md-input-messages-animation",ngMessagesAnimation).animation(".md-input-message-animation",ngMessageAnimation);function mdInputContainerDirective(a,r,s){t.$inject=["$scope","$element","$attrs","$animate"];var e=["INPUT","TEXTAREA","SELECT","MD-SELECT"],n=e.reduce(function(e,n){return e.concat(["md-icon ~ "+n,".md-icon ~ "+n])},[]).join(","),o=e.reduce(function(e,n){return e.concat([n+" ~ md-icon",n+" ~ .md-icon"])},[]).join(",");return{restrict:"E",compile:function(e){var t=e[0].querySelector(n),i=e[0].querySelector(o);return function(e,n){a(n),(t||i)&&s(function(){var e=n[0].querySelector("md-icon")||n[0].querySelector(".md-icon");t&&e&&n.addClass("md-icon-left"),i&&e&&n.addClass("md-icon-right")})}},controller:t};function t(e,n,t,i){var a=this;a.isErrorGetter=t.mdIsError&&r(t.mdIsError),a.delegateClick=function(){a.input.focus()},a.element=n,a.setFocused=function(e){n.toggleClass("md-input-focused",!!e)},a.setHasValue=function(e){n.toggleClass("md-input-has-value",!!e)},a.setHasPlaceholder=function(e){n.toggleClass("md-input-has-placeholder",!!e)},a.setInvalid=function(e){e?i.addClass(n,"md-input-invalid"):i.removeClass(n,"md-input-invalid")},e.$watch(function(){return a.label&&a.input},function(e){e&&!a.label.attr("for")&&a.label.attr("for",a.input.attr("id"))})}}function labelDirective(){return{restrict:"E",require:"^?mdInputContainer",link:function(e,n,t,i){!i||t.mdNoFloat||n.hasClass("md-container-ignore")||(i.label=n,e.$on("$destroy",function(){i.label=null}))}}}function inputTextareaDirective(h,$,d,M,C){return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:function(c,m,g,e){var f=e[0],p=!!e[1],v=e[1]||h.fakeNgModel(),n=e[2],t=angular.isDefined(g.readonly),i=h.parseAttributeBoolean(g.mdNoAsterisk),a=m[0].tagName.toLowerCase();if(!f)return;{if("hidden"===g.type)return void m.attr("aria-hidden","true");if(f.input){if(f.input[0].contains(m[0]))return;throw new Error("<md-input-container> can only have *one* <input>, <textarea> or <md-select> child element!")}}f.input=m,f.label&&g.$observe("required",function(e){f.label.toggleClass("md-required",e&&!i)});var r=angular.element('<div class="md-errors-spacer">');m.after(r);var s=angular.isString(g.placeholder)?g.placeholder.trim():"";f.label||s.length||d.expect(m,"aria-label");m.addClass("md-input"),m.attr("id")||m.attr("id","input_"+h.nextUid());"input"===a&&"number"===g.type&&g.min&&g.max&&!g.step?m.attr("step","any"):"textarea"===a&&function(){var n=!g.hasOwnProperty("mdNoAutogrow");if(function(){if(!g.hasOwnProperty("mdNoResize")){var e=angular.element('<div class="md-resize-handle"></div>'),n=!1,t=0,i=f.element,a=C.register(e,"drag",{horizontal:!1});m.wrap('<div class="md-resize-wrapper">').after(e),e.on("mousedown",r),i.on("$md.dragstart",s).on("$md.drag",o).on("$md.dragend",u),c.$on("$destroy",function(){e.off("mousedown",r).remove(),i.off("$md.dragstart",s).off("$md.drag",o).off("$md.dragend",u),a(),a=i=e=null})}function r(e){e.preventDefault(),n=!0,e.clientY,t=parseFloat(m.css("height"))||m.prop("offsetHeight")}function s(e){n&&(e.preventDefault(),l(),i.addClass("md-input-resized"))}function o(e){n&&m.css("height",t+e.pointer.distanceY+"px")}function u(e){n&&(n=!1,i.removeClass("md-input-resized"))}}(),!n)return;var r=g.hasOwnProperty("rows")?parseInt(g.rows):NaN,s=g.hasOwnProperty("maxRows")?parseInt(g.maxRows):NaN,t=c.$on("md-resize-textarea",i),o=null,u=m[0];M(function(){h.nextTick(i)},10,!1),m.on("input",i),p&&v.$formatters.push(a);r||m.attr("rows",1);function i(){m.attr("rows",1).css("height","auto").addClass("md-no-flex");var e,n,t=(e=u.offsetHeight,n=u.scrollHeight-e,e+Math.max(n,0));if(!o){var i=m[0].style.padding||"";o=m.css("padding",0).prop("offsetHeight"),m[0].style.padding=i}if(r&&o&&(t=Math.max(t,o*r)),s&&o){var a=o*s;a<t?(m.attr("md-no-autogrow",""),t=a):m.removeAttr("md-no-autogrow")}o&&m.attr("rows",Math.round(t/o)),m.css("height",t+"px").removeClass("md-no-flex")}function a(e){return h.nextTick(i),e}function l(){if(n&&(n=!1,angular.element($).off("resize",i),t&&t(),m.attr("md-no-autogrow","").off("input",i),p)){var e=v.$formatters.indexOf(a);-1<e&&v.$formatters.splice(e,1)}}if(angular.element($).on("resize",i),c.$on("$destroy",l),g.hasOwnProperty("mdDetectHidden")){var e=(d=!1,function(){var e=0===u.offsetHeight;!1===e&&!0===d&&i(),d=e});c.$watch(function(){return h.nextTick(e,!1),!0})}var d}();p||l();var o=f.isErrorGetter||function(){return v.$invalid&&(v.$touched||n&&n.$submitted)};c.$watch(o,f.setInvalid),g.ngValue&&g.$observe("value",l);v.$parsers.push(u),v.$formatters.push(u),m.on("input",l),t||m.on("focus",function(e){h.nextTick(function(){f.setFocused(!0)})}).on("blur",function(e){h.nextTick(function(){f.setFocused(!1),l()})});function u(e){return f.setHasValue(!v.$isEmpty(e)),e}function l(){f.setHasValue(0<m.val().length||(m[0].validity||{}).badInput)}c.$on("$destroy",function(){f.setFocused(!1),f.setHasValue(!1),f.input=null})}}}function mdMaxlengthDirective(g,f){return{restrict:"A",require:["ngModel","^mdInputContainer"],link:function(e,i,n,t){var a=parseInt(n.mdMaxlength);isNaN(a)&&(a=-1);var r,s,o=t[0],u=t[1],l=!angular.isDefined(n.ngTrim)||f.parseAttributeBoolean(n.ngTrim),d="password"===n.type;function c(e){return null==(e=l&&!d&&angular.isString(e)?e.trim():e)&&(e=""),String(e).length}function m(){r&&r.parent()&&r.text(c(i.val())+" / "+a)}e.$watch(n.mdMaxlength,function(e){a=e}),o.$validators["md-maxlength"]=function(e,n){if(!angular.isNumber(a)||a<0)return!0;m();var t=i.val()||n;return null==t&&(t=""),t=l&&!d&&angular.isString(t)?t.trim():t,String(t).length<=a},o.$isEmpty=function(e){return 0===c(e)},f.nextTick(function(){s=angular.element(u.element[0].querySelector(".md-errors-spacer")),r=angular.element('<div class="md-char-counter">'),s.append(r),n.$observe("ngTrim",function(e){l=!angular.isDefined(e)||f.parseAttributeBoolean(e)}),e.$watch(n.mdMaxlength,function(e){angular.isNumber(e)&&0<e?(r.parent().length||g.enter(r,s),m()):g.leave(r)})})}}}function placeholderDirective(o){return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:{pre:function(e,n,t,i){if(!i)return;var a=i.element.find("label"),r=i.element.attr("md-no-float");if(a&&a.length||""===r||e.$eval(r))return void i.setHasPlaceholder(!0);if("MD-SELECT"!==n[0].nodeName){var s=angular.element('<label ng-click="delegateClick()" tabindex="-1" aria-hidden="true">'+t.placeholder+"</label>");t.$set("placeholder",null),i.element.addClass("md-icon-float").prepend(s),o(s)(e)}}}}}function mdSelectOnFocusDirective(s,o){return{restrict:"A",link:function(e,n,t){if("INPUT"!==n[0].nodeName&&"TEXTAREA"!==n[0].nodeName)return;var i=!1;function a(){o(function(){s[0].activeElement===n[0]&&n[0].select(),i=!1},1,!(i=!0))}function r(e){i&&e.preventDefault()}n.on("focus",a).on("mouseup",r),e.$on("$destroy",function(){n.off("focus",a).off("mouseup",r)})}}}window._mdMocksIncluded&&inputModule.service("$$mdInput",function(){return{messages:{getElement:getMessagesElement}}}).service("mdInputInvalidAnimation",mdInputInvalidMessagesAnimation).service("mdInputMessagesAnimation",ngMessagesAnimation).service("mdInputMessageAnimation",ngMessageAnimation);var $$AnimateRunner,$animateCss,$mdUtil,visibilityDirectives=["ngIf","ngShow","ngHide","ngSwitchWhen","ngSwitchDefault"];function ngMessagesDirective(){return{restrict:"EA",link:function(e,n,t,i){if(!i)return;n.toggleClass("md-input-messages-animation",!0),n.toggleClass("md-auto-hide",!0),("false"==t.mdAutoHide||(a=t,visibilityDirectives.some(function(e){return a[e]})))&&n.toggleClass("md-auto-hide",!1);var a},require:"^^?mdInputContainer"}}function ngMessageDirective(n){return{restrict:"EA",compile:function(t){if(i(t))a(t);else if(function(){var e=t[0];for(;e=e.parentNode;)if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!0;return!1}())return function(e,n){i(n)&&a(t)};function i(e){return!!n.getClosest(e,"md-input-container")}function a(e){e.toggleClass("md-input-message-animation",!0)}},priority:100}}function mdInputInvalidMessagesAnimation(e,n,t){return saveSharedServices(e,n,t),{addClass:function(e,n,t){showInputMessages(e,t)}}}function ngMessagesAnimation(e,n,t){return saveSharedServices(e,n,t),{enter:function(e,n){showInputMessages(e,n)},leave:function(e,n){hideInputMessages(e,n)},addClass:function(e,n,t){"ng-hide"==n?hideInputMessages(e,t):t()},removeClass:function(e,n,t){"ng-hide"==n?showInputMessages(e,t):t()}}}function ngMessageAnimation(e,n,t,i){return saveSharedServices(e,n,t,i),{enter:function(e,n){showMessage(e).start().done(n)},leave:function(e,n){hideMessage(e).start().done(n)}}}function showInputMessages(e,n){var t,i=[],a=getMessagesElement(e),r=a.children();0!=a.length&&0!=r.length?(angular.forEach(r,function(e){t=showMessage(angular.element(e)),i.push(t.start())}),$$AnimateRunner.all(i,n)):n()}function hideInputMessages(e,n){var t,i=[],a=getMessagesElement(e),r=a.children();0!=a.length&&0!=r.length?(angular.forEach(r,function(e){t=hideMessage(angular.element(e)),i.push(t.start())}),$$AnimateRunner.all(i,n)):n()}function showMessage(e){var n=parseInt(window.getComputedStyle(e[0]).height),t=parseInt(window.getComputedStyle(e[0]).marginTop),i=getMessagesElement(e),a=getInputElement(e);return-n<t||i.hasClass("md-auto-hide")&&!a.hasClass("md-input-invalid")?$animateCss(e,{}):$animateCss(e,{event:"enter",structural:!0,from:{opacity:0,"margin-top":-n+"px"},to:{opacity:1,"margin-top":"0"},duration:.3})}function hideMessage(e){var n=e[0].offsetHeight,t=window.getComputedStyle(e[0]);return 0===parseInt(t.opacity)?$animateCss(e,{}):$animateCss(e,{event:"leave",structural:!0,from:{opacity:1,"margin-top":0},to:{opacity:0,"margin-top":-n+"px"},duration:.3})}function getInputElement(e){return e.controller("mdInputContainer").element}function getMessagesElement(e){return e.hasClass("md-input-messages-animation")?e:e.hasClass("md-input-message-animation")?angular.element($mdUtil.getClosest(e,function(e){return e.classList.contains("md-input-messages-animation")})):angular.element(e[0].querySelector(".md-input-messages-animation"))}function saveSharedServices(e,n,t){$$AnimateRunner=e,$animateCss=n,$mdUtil=t}ngmaterial.components.input=angular.module("material.components.input");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.list');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function mdListDirective(t){return{restrict:"E",compile:function(e){return e[0].setAttribute("role","list"),t}}}function mdListItemDirective(u,f,g,p){var h=["md-checkbox","md-switch","md-menu"];return{restrict:"E",controller:"MdListController",compile:function(i,o){var e,a,t,n=i[0].querySelectorAll(".md-secondary"),r=i;if(i[0].setAttribute("role","listitem"),o.ngClick||o.ngDblclick||o.ngHref||o.href||o.uiSref||o.ngAttrUiSref)d("button");else if(!i.hasClass("md-no-proxy")){for(var l,s=0;l=h[s];++s)if(a=i[0].querySelector(l)){e=!0;break}e?d("div"):i.addClass("md-no-proxy")}function d(e){if("div"==e)(r=angular.element('<div class="md-no-style md-list-item-inner">')).append(i.contents()),i.addClass("md-proxy-focus");else{r=angular.element('<div class="md-button md-no-style"> <div class="md-list-item-inner"></div></div>');var t=angular.element('<md-button class="md-no-style"></md-button>');c(i[0],t[0]),t.attr("aria-label")||t.attr("aria-label",u.getText(i)),i.hasClass("md-no-focus")&&t.addClass("md-no-focus"),r.prepend(t),r.children().eq(1).append(i.contents()),i.addClass("_md-button-wrap")}i[0].setAttribute("tabindex","-1"),i.append(r)}function c(t,n,e){var r=g.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&&(r=r.concat(g.prefixer(e))),angular.forEach(r,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=angular.element('<div class="md-secondary-container">'),angular.forEach(n,function(e){!function(e,t){if(e&&("MD-BUTTON"!=(r=e.nodeName.toUpperCase())&&"BUTTON"!=r)&&e.hasAttribute("ng-click")){u.expect(e,"aria-label");var n=angular.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]}var r,a;!e||m(e)&&(o.ngClick||(a=e,-1==h.indexOf(a.nodeName.toLowerCase())))||angular.element(e).removeClass("md-secondary"),i.addClass("md-with-secondary"),t.append(e)}(e,t)}),r.append(t),function(){for(var e,t,n=["md-switch","md-checkbox"],r=0;t=n[r];++r)if((e=i.find(t)[0])&&!e.hasAttribute("aria-label")){var a=i.find("p")[0];if(!a)return;e.setAttribute("aria-label","Toggle "+a.textContent)}}(),e&&"MD-MENU"===a.nodeName&&function(){var e=angular.element(a),t=e.parent().hasClass("md-secondary-container")||a.parentNode.firstElementChild!==a,n="left";t&&(n="right");e.attr("md-position-mode")||e.attr("md-position-mode",n+" target");var r=e.children().eq(0);m(r[0])||r.attr("ng-click","$mdMenu.open($event)");r.attr("aria-label")||r.attr("aria-label","Open List Menu")}(),function(e,a,t,n){a.addClass("_md");var r=[],i=a[0].firstElementChild,o=a.hasClass("_md-button-wrap")?i.firstElementChild:i,l=o&&m(o),s=a.hasClass("md-no-proxy");i&&i.children&&!l&&!s&&angular.forEach(h,function(e){angular.forEach(i.querySelectorAll(e+":not(.md-secondary)"),function(e){r.push(e)})}),(1==r.length||l)&&(a.addClass("md-clickable"),l||n.attachRipple(e,angular.element(a[0].querySelector(".md-no-style")))),r.length&&angular.forEach(r,function(t){t=angular.element(t),e.mouseActive=!1,t.on("mousedown",function(){e.mouseActive=!0,p(function(){e.mouseActive=!1},100)}).on("focus",function(){!1===e.mouseActive&&a.addClass("md-focused"),t.on("blur",function e(){a.removeClass("md-focused"),t.off("blur",e)})})});var d=function(e){if("INPUT"!=e.target.nodeName&&"TEXTAREA"!=e.target.nodeName&&!e.target.isContentEditable){var t=e.which||e.keyCode;t==f.KEY_CODE.SPACE&&o&&(o.click(),e.preventDefault(),e.stopPropagation())}};l||r.length||o&&o.addEventListener("keypress",d);a.off("click"),a.off("keypress"),1==r.length&&o&&a.children().eq(0).on("click",function(t){if(!function(e){var t=["md-slider"];if(!e.path)return-1!==t.indexOf(e.target.tagName.toLowerCase());for(var n=e.path.indexOf(a.children()[0]),r=0;r<n;r++)if(-1!==t.indexOf(e.path[r].tagName.toLowerCase()))return!0}(t)){var e=g.getClosest(t.target,"BUTTON");!e&&o.contains(t.target)&&angular.forEach(r,function(e){t.target===e||e.contains(t.target)||("MD-MENU"===e.nodeName&&(e=e.children[0]),angular.element(e).triggerHandler("click"))})}});e.$on("$destroy",function(){o&&o.removeEventListener("keypress",d)})}}}}function MdListController(e,t,n){this.attachRipple=function(e,t){n.attach(e,t,{})}}goog.provide("ngmaterial.components.list"),goog.require("ngmaterial.core"),MdListController.$inject=["$scope","$element","$mdListInkRipple"],mdListDirective.$inject=["$mdTheming"],mdListItemDirective.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"],angular.module("material.components.list",["material.core"]).controller("MdListController",MdListController).directive("mdList",mdListDirective).directive("mdListItem",mdListItemDirective),ngmaterial.components.list=angular.module("material.components.list");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.menu');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MenuController(o,t,a,i,l,r,e,n,s){var u,d,c=l.prefixer(),m=this;this.nestLevel=parseInt(t.mdNestLevel,10)||0,this.init=function(e,t){t=t||{},u=e,(d=a[0].querySelector(c.buildSelector(["ng-click","ng-mouseenter"]))).setAttribute("aria-expanded","false"),this.isInMenuBar=t.isInMenuBar,this.nestedMenus=l.nodesToArray(u[0].querySelectorAll(".md-nested-menu")),u.on("$mdInterimElementRemove",function(){m.isOpen=!1,l.nextTick(function(){m.onIsOpenChanged(m.isOpen)})}),l.nextTick(function(){m.onIsOpenChanged(m.isOpen)});var n="menu_container_"+l.nextUid();u.attr("id",n),angular.element(d).attr({"aria-owns":n,"aria-haspopup":"true"}),i.$on("$destroy",angular.bind(this,function(){this.disableHoverListener(),o.destroy()})),u.on("$destroy",function(){o.destroy()})};var p,f,h=[];this.enableHoverListener=function(){h.push(e.$on("$mdMenuOpen",function(e,t){u[0].contains(t[0])&&(m.currentlyOpenMenu=t.controller("mdMenu"),m.isAlreadyOpening=!1,m.currentlyOpenMenu.registerContainerProxy(m.triggerContainerProxy.bind(m)))})),h.push(e.$on("$mdMenuClose",function(e,t){u[0].contains(t[0])&&(m.currentlyOpenMenu=void 0)})),(f=angular.element(l.nodesToArray(u[0].children[0].children))).on("mouseenter",m.handleMenuItemHover),f.on("mouseleave",m.handleMenuItemMouseLeave)},this.disableHoverListener=function(){for(;h.length;)h.shift()();f&&f.off("mouseenter",m.handleMenuItemHover),f&&f.off("mouseleave",m.handleMenuItemMouseLeave)},this.handleMenuItemHover=function(e){if(!m.isAlreadyOpening){var t=e.target.querySelector("md-menu")||l.getClosest(e.target,"MD-MENU");p=r(function(){if(t&&(t=angular.element(t).controller("mdMenu")),m.currentlyOpenMenu&&m.currentlyOpenMenu!=t){var e=m.nestLevel+1;m.currentlyOpenMenu.close(!0,{closeTo:e}),m.isAlreadyOpening=!!t,t&&t.open()}else t&&!t.isOpen&&t.open&&(m.isAlreadyOpening=!!t,t&&t.open())},t?100:250);var n=e.currentTarget.querySelector(".md-button:not([disabled])");n&&n.focus()}},this.handleMenuItemMouseLeave=function(){p&&(r.cancel(p),p=void 0)},this.open=function(e){e&&e.stopPropagation(),e&&e.preventDefault(),m.isOpen||(m.enableHoverListener(),m.isOpen=!0,l.nextTick(function(){m.onIsOpenChanged(m.isOpen)}),(d=d||(e?e.target:a[0])).setAttribute("aria-expanded","true"),i.$emit("$mdMenuOpen",a),o.show({scope:i,mdMenuCtrl:m,nestLevel:m.nestLevel,element:u,target:d,preserveElement:!0,parent:"body"}).finally(function(){d.setAttribute("aria-expanded","false"),m.disableHoverListener()}))},this.onIsOpenChanged=function(e){e?(u.attr("aria-hidden","false"),a[0].classList.add("md-open"),angular.forEach(m.nestedMenus,function(e){e.classList.remove("md-open")})):(u.attr("aria-hidden","true"),a[0].classList.remove("md-open")),i.$mdMenuIsOpen=m.isOpen},this.focusMenuContainer=function(){var e=u[0].querySelector(c.buildSelector(["md-menu-focus-target","md-autofocus"]));e||(e=u[0].querySelector(".md-button:not([disabled])")),e.focus()},this.registerContainerProxy=function(e){this.containerProxy=e},this.triggerContainerProxy=function(e){this.containerProxy&&this.containerProxy(e)},this.destroy=function(){return m.isOpen?o.destroy():n.when(!1)},this.close=function(e,t){if(m.isOpen){m.isOpen=!1,l.nextTick(function(){m.onIsOpenChanged(m.isOpen)});var n=angular.extend({},t,{skipFocus:e});if(i.$emit("$mdMenuClose",a,n),o.hide(null,t),!e){var r=m.restoreFocusTo||a.find("button")[0];r instanceof angular.element&&(r=r[0]),r&&r.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>")},i.$mdMenu={open:this.open,close:this.close},i.$mdOpenMenu=angular.bind(this,function(){return s.warn("mdMenu: The $mdOpenMenu method is deprecated. Please use `$mdMenu.open`."),this.open.apply(this,arguments)})}function MenuDirective(i){var l="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=i.prefixer();n.hasAttribute(t,"ng-click")||(t=t.querySelector(n.buildSelector(["ng-click","ng-mouseenter"]))||t);var r="MD-BUTTON"===t.nodeName||"BUTTON"===t.nodeName;t&&r&&!t.hasAttribute("type")&&t.setAttribute("type","button");if(!t)throw Error(l+"Expected the menu to have a trigger element.");if(2!==e.children().length)throw Error(l+"Expected two children elements. The second element must have a `md-menu-content` element.");t&&t.setAttribute("aria-haspopup","true");var o=e[0].querySelectorAll("md-menu"),a=parseInt(e[0].getAttribute("md-nest-level"),10)||0;o&&angular.forEach(i.nodesToArray(o),function(e){e.hasAttribute("md-position-mode")||e.setAttribute("md-position-mode","cascade"),e.classList.add("_md-nested-menu"),e.setAttribute("md-nest-level",a+1)});return s}};function s(e,t,n,r){var o=r[0],a=!!r[1],i=angular.element('<div class="_md md-open-menu-container md-whiteframe-z2"></div>'),l=t.children()[1];t.addClass("_md"),l.hasAttribute("role")||l.setAttribute("role","menu"),i.append(l),t.on("$destroy",function(){i.remove()}),t.append(i),i[0].style.display="none",o.init(i,{isInMenuBar:a})}}function MenuProvider(e){t.$inject=["$mdUtil","$mdTheming","$mdConstant","$document","$window","$q","$$rAF","$animateCss","$animate","$log"];var A=8;return e("$mdMenu").setDefaults({methods:["target"],options:t});function t(E,u,d,k,O,c,m,p,f,h){var $=E.prefixer(),g=E.dom.animator;return{parent:"body",onShow:function(i,n,l){(function(){if(!l.target)throw Error("$mdMenu.show() expected a target to animate from in options.target");angular.extend(l,{alreadyOpen:!1,isRemoved:!1,target:angular.element(l.target),parent:angular.element(l.parent),menuContentEl:angular.element(n[0].querySelector("md-menu-content"))})})(),l.menuContentEl[0]?u.inherit(l.menuContentEl,l.target):h.warn("$mdMenu: Menu elements should always contain a `md-menu-content` element,otherwise interactivity features will not work properly.",n);return l.cleanupResizing=(r=n,o=l,a=m.throttle(function(){if(!l.isRemoved){var e=M(r,o);r.css(g.toCss(e))}}),O.addEventListener("resize",a),O.addEventListener("orientationchange",a),function(){O.removeEventListener("resize",a),O.removeEventListener("orientationchange",a)}),l.hideBackdrop=(e=i,t=l,t.nestLevel?angular.noop:(t.disableParentScroll&&!E.getClosest(t.target,"MD-DIALOG")?t.restoreScroll=E.disableScrollAround(t.element,t.parent):t.disableParentScroll=!1,t.hasBackdrop&&(t.backdrop=E.createBackdrop(e,"md-menu-backdrop md-click-catcher"),f.enter(t.backdrop,k[0].body)),function(){t.backdrop&&t.backdrop.remove(),t.disableParentScroll&&t.restoreScroll()})),(l.parent.append(n),n[0].style.display="",c(function(e){var t=M(n,l);n.removeClass("md-leave"),p(n,{addClass:"md-active",from:g.toCss(t),to:g.toCss({transform:""})}).start().then(e)})).then(function(e){return l.alreadyOpen=!0,l.cleanupInteraction=function(){if(!l.menuContentEl[0])return angular.noop;l.menuContentEl.on("keydown",o),l.menuContentEl[0].addEventListener("click",a,!0);var e=l.menuContentEl[0].querySelector($.buildSelector(["md-menu-focus-target","md-autofocus"]));if(!e)for(var t=l.menuContentEl[0].children.length,n=0;n<t;n++){var r=l.menuContentEl[0].children[n];if(e=r.querySelector(".md-button:not([disabled])"))break;if(r.firstElementChild&&!r.firstElementChild.disabled){e=r.firstElementChild;break}}return e&&e.focus(),function(){l.menuContentEl.off("keydown",o),l.menuContentEl[0].removeEventListener("click",a,!0)};function o(e){var t;switch(e.keyCode){case d.KEY_CODE.ESCAPE:l.mdMenuCtrl.close(!1,{closeAll:!0}),t=!0;break;case d.KEY_CODE.TAB:l.mdMenuCtrl.close(!1,{closeAll:!0}),t=!1;break;case d.KEY_CODE.UP_ARROW:v(e,l.menuContentEl,l,-1)||l.nestLevel||l.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case d.KEY_CODE.DOWN_ARROW:v(e,l.menuContentEl,l,1)||l.nestLevel||l.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case d.KEY_CODE.LEFT_ARROW:l.nestLevel?l.mdMenuCtrl.close():l.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case d.KEY_CODE.RIGHT_ARROW:var n=E.getClosest(e.target,"MD-MENU");n&&n!=l.parent[0]?e.target.click():l.mdMenuCtrl.triggerContainerProxy(e),t=!0}t&&(e.preventDefault(),e.stopImmediatePropagation())}function a(e){var t=e.target;do{if(t==l.menuContentEl[0])return;if((r(t,["ng-click","ng-href","ui-sref"])||"BUTTON"==t.nodeName||"MD-BUTTON"==t.nodeName)&&!r(t,["md-prevent-menu-close"])){var n=E.getClosest(t,"MD-MENU");t.hasAttribute("disabled")||n&&n!=l.parent[0]||i.$apply(function(){l.mdMenuCtrl.close(!0,{closeAll:!0})});break}}while(t=t.parentNode);function r(e,t){if(!e)return!1;for(var n,r=0;n=t[r];++r)if($.hasAttribute(e,n))return!0;return!1}}}(),l.cleanupBackdrop=l.backdrop?(l.backdrop.on("click",s),function(){l.backdrop.off("click",s)}):angular.noop,n.addClass("md-clickable"),e});var e,t;var r,o,a;function s(e){e.preventDefault(),e.stopPropagation(),i.$apply(function(){l.mdMenuCtrl.close(!0,{closeAll:!0})})}},onRemove:function(e,n,r){return r.cleanupInteraction(),r.cleanupBackdrop(),r.cleanupResizing(),r.hideBackdrop(),n.removeClass("md-clickable"),!0===r.$destroy?t():p(n,{addClass:"md-leave"}).start().then(t);function t(){var e,t;n.removeClass("md-active"),e=n,(t=r).preserveElement?o(e).style.display="none":o(e).parentNode===o(t.parent)&&o(t.parent).removeChild(o(e)),r.alreadyOpen=!1}},hasBackdrop:!0,disableParentScroll:!0,skipCompile:!0,preserveScope:!0,multiple:!0,themable:!0};function v(e,t,n,r){for(var o,a=E.getClosest(e.target,"MD-MENU-ITEM"),i=E.nodesToArray(t[0].children),l=i.indexOf(a)+r;0<=l&&l<i.length;l+=r){if(o=s(i[l].querySelector(".md-button")))break}return o}function s(e){if(e&&-1!=e.getAttribute("tabindex"))return e.focus(),k[0].activeElement==e}function M(e,t){var n,r=e[0],o=e[0].firstElementChild,a=o.getBoundingClientRect(),i=k[0].body.getBoundingClientRect(),l=O.getComputedStyle(o),s=t.target[0].querySelector($.buildSelector("md-menu-origin"))||t.target[0],u=s.getBoundingClientRect(),d={left:i.left+A,top:Math.max(i.top,0)+A,bottom:Math.max(i.bottom,Math.max(i.top,0)+i.height)-A,right:i.right-A},c={top:0,left:0,right:0,bottom:0},m={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<o.children.length;++e)if("none"!=O.getComputedStyle(o.children[e]).display)return o.children[e]}())&&(c=(n=(n=n.firstElementChild||n).querySelector($.buildSelector("md-menu-align-target"))||n).getBoundingClientRect(),m={top:parseFloat(r.style.top||0),left:parseFloat(r.style.left||0)});var f={},h="top ";switch(p.top){case"target":f.top=m.top+u.top-c.top;break;case"cascade":f.top=u.top-parseFloat(l.paddingTop)-s.style.top;break;case"bottom":f.top=u.top+u.height;break;default:throw new Error('Invalid target mode "'+p.top+'" specified for md-menu on Y axis.')}var g="rtl"===E.bidi();switch(p.left){case"target":f.left=m.left+u.left-c.left,h+=g?"right":"left";break;case"target-left":f.left=u.left,h+="left";break;case"target-right":f.left=u.right-a.width+(a.right-c.right),h+="right";break;case"cascade":var v=g?u.left-a.width<d.left:u.right+a.width<d.right;f.left=v?u.right-s.style.left:u.left-s.style.left-a.width,h+=v?"left":"right";break;case"right":g?(f.left=u.right-u.width,h+="left"):(f.left=u.right-a.width,h+="right");break;case"left":g?(f.left=u.right-a.width,h+="right"):(f.left=u.left,h+="left");break;default:throw new Error('Invalid target mode "'+p.left+'" specified for md-menu on X axis.')}var M,b=t.mdMenuCtrl.offsets();f.top+=b.top,f.left+=b.left,(M=f).top=Math.max(Math.min(M.top,d.bottom-r.offsetHeight),d.top),M.left=Math.max(Math.min(M.left,d.right-r.offsetWidth),d.left);var C=Math.round(100*Math.min(u.width/r.offsetWidth,1))/100,y=Math.round(100*Math.min(u.height/r.offsetHeight,1))/100;return{top:Math.round(f.top),left:Math.round(f.left),transform:t.alreadyOpen?void 0:E.supplant("scale({0},{1})",[C,y]),transformOrigin:h}}}function o(e){return e instanceof angular.element&&(e=e[0]),e}}goog.provide("ngmaterial.components.menu"),goog.require("ngmaterial.components.backdrop"),goog.require("ngmaterial.core"),angular.module("material.components.menu",["material.core","material.components.backdrop"]),MenuController.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q","$log"],angular.module("material.components.menu").controller("mdMenuCtrl",MenuController),MenuDirective.$inject=["$mdUtil"],angular.module("material.components.menu").directive("mdMenu",MenuDirective),MenuProvider.$inject=["$$interimElementProvider"],angular.module("material.components.menu").provider("$mdMenu",MenuProvider),ngmaterial.components.menu=angular.module("material.components.menu");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.menuBar');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
goog.provide("ngmaterial.components.menuBar"),goog.require("ngmaterial.components.icon"),goog.require("ngmaterial.components.menu"),goog.require("ngmaterial.core"),angular.module("material.components.menuBar",["material.core","material.components.icon","material.components.menu"]),MenuBarController.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],angular.module("material.components.menuBar").controller("MenuBarController",MenuBarController);var BOUND_MENU_METHODS=["handleKeyDown","handleMenuHover","scheduleOpenHoveredMenu","cancelScheduledOpen"];function MenuBarController(e,n,t,o,r,i,a,l){this.$element=t,this.$attrs=o,this.$mdConstant=r,this.$mdUtil=a,this.$document=i,this.$scope=e,this.$rootScope=n,this.$timeout=l;var u=this;angular.forEach(BOUND_MENU_METHODS,function(e){u[e]=angular.bind(u,u[e])})}function MenuBarDirective(t,r){return{restrict:"E",require:"mdMenuBar",controller:"MenuBarController",compile:function(e,n){return n.ariaRole||e[0].setAttribute("role","menubar"),angular.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 n=t.nodesToArray(e.querySelectorAll("md-menu-content"));angular.forEach(n,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,n,t,o){n.addClass("_md"),r(e,n),o.init()}}}}function MenuDividerDirective(){return{restrict:"E",compile:function(e,n){n.role||e[0].setAttribute("role","separator")}}}function MenuItemController(e,n,t){this.$element=n,this.$attrs=t,this.$scope=e}function MenuItemDirective(c,e,d){return{controller:"MenuItemController",require:["mdMenuItem","?ngModel"],priority:e.BEFORE_NG_ARIA,compile:function(o,e){var n,t,r=e.type,i="md-in-menu-bar";if("checkbox"!=r&&"radio"!=r||!o.hasClass(i))s("role","menuitem",o[0].querySelector("md-button, button, a"));else{var a=o[0].textContent,l=angular.element('<md-button type="button"></md-button>'),u='<md-icon md-svg-src="'+d.mdChecked+'"></md-icon>';l.html(a),l.attr("tabindex","0"),o.html(""),o.append(angular.element(u)),o.append(l),o.addClass("md-indent").removeClass(i),s("role","checkbox"==r?"menuitemcheckbox":"menuitemradio",l),n="ng-disabled",t=c.prefixer(n),angular.forEach(t,function(e){if(o[0].hasAttribute(e)){var n=o[0].getAttribute(e);l[0].setAttribute(e,n),o[0].removeAttribute(e)}})}return function(e,n,t,o){var r=o[0],i=o[1];r.init(i)};function s(e,n,t){(t=t||o)instanceof angular.element&&(t=t[0]),t.hasAttribute(e)||t.setAttribute(e,n)}}}}MenuBarController.prototype.init=function(){var i=this.$element,a=this.$mdUtil,e=this.$scope,l=this,n=[];i.on("keydown",this.handleKeyDown),this.parentToolbar=a.getClosest(i,"MD-TOOLBAR"),n.push(this.$rootScope.$on("$mdMenuOpen",function(e,n){-1!=l.getMenus().indexOf(n[0])&&(i[0].classList.add("md-open"),n[0].classList.add("md-open"),l.currentlyOpenMenu=n.controller("mdMenu"),l.currentlyOpenMenu.registerContainerProxy(l.handleKeyDown),l.enableOpenOnHover())})),n.push(this.$rootScope.$on("$mdMenuClose",function(e,n,t){var o=l.getMenus();if(-1!=o.indexOf(n[0])&&(i[0].classList.remove("md-open"),n[0].classList.remove("md-open")),i[0].contains(n[0])){for(var r=n[0];r&&-1==o.indexOf(r);)r=a.getClosest(r,"MD-MENU",!0);r&&(t.skipFocus||r.querySelector("button:not([disabled])").focus(),l.currentlyOpenMenu=void 0,l.disableOpenOnHover(),l.setKeyboardMode(!0))}})),e.$on("$destroy",function(){for(l.disableOpenOnHover();n.length;)n.shift()()}),this.setKeyboardMode(!0)},MenuBarController.prototype.setKeyboardMode=function(e){e?this.$element[0].classList.add("md-keyboard-mode"):this.$element[0].classList.remove("md-keyboard-mode")},MenuBarController.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(){angular.element(e.parentToolbar).on("click",e.handleParentClick)},!1)),angular.element(e.getMenus()).on("mouseenter",e.handleMenuHover)}},MenuBarController.prototype.handleMenuHover=function(e){this.setKeyboardMode(!1),this.openOnHoverEnabled&&this.scheduleOpenHoveredMenu(e)},MenuBarController.prototype.disableOpenOnHover=function(){this.openOnHoverEnabled&&(this.openOnHoverEnabled=!1,this.parentToolbar&&(this.parentToolbar.classList.remove("md-has-open-menu"),angular.element(this.parentToolbar).off("click",this.handleParentClick)),angular.element(this.getMenus()).off("mouseenter",this.handleMenuHover))},MenuBarController.prototype.scheduleOpenHoveredMenu=function(e){var n=angular.element(e.currentTarget).controller("mdMenu");this.setKeyboardMode(!1),this.scheduleOpenMenu(n)},MenuBarController.prototype.scheduleOpenMenu=function(e){var n=this,t=this.$timeout;e!=n.currentlyOpenMenu&&(t.cancel(n.pendingMenuOpen),n.pendingMenuOpen=t(function(){n.pendingMenuOpen=void 0,n.currentlyOpenMenu&&n.currentlyOpenMenu.close(!0,{closeAll:!0}),e.open()},200,!1))},MenuBarController.prototype.handleKeyDown=function(e){var n,t,o,r=this.$mdConstant.KEY_CODE,i=this.currentlyOpenMenu,a=i&&i.isOpen;switch(this.setKeyboardMode(!0),e.keyCode){case r.DOWN_ARROW:i?i.focusMenuContainer():this.openFocusedMenu(),n=!0;break;case r.UP_ARROW:i&&i.close(),n=!0;break;case r.LEFT_ARROW:t=this.focusMenu(-1),a&&(o=angular.element(t).controller("mdMenu"),this.scheduleOpenMenu(o)),n=!0;break;case r.RIGHT_ARROW:t=this.focusMenu(1),a&&(o=angular.element(t).controller("mdMenu"),this.scheduleOpenMenu(o)),n=!0}n&&(e&&e.preventDefault&&e.preventDefault(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation())},MenuBarController.prototype.focusMenu=function(e){var n=this.getMenus(),t=this.getFocusedMenuIndex();-1==t&&(t=this.getOpenMenuIndex());var o=!1;if(-1==t?o=!(t=0):(e<0&&0<t||0<e&&t<n.length-e)&&(t+=e,o=!0),o)return n[t].querySelector("button").focus(),n[t]},MenuBarController.prototype.openFocusedMenu=function(){var e=this.getFocusedMenu();e&&angular.element(e).controller("mdMenu").open()},MenuBarController.prototype.getMenus=function(){var e=this.$element;return this.$mdUtil.nodesToArray(e[0].children).filter(function(e){return"MD-MENU"==e.nodeName})},MenuBarController.prototype.getFocusedMenu=function(){return this.getMenus()[this.getFocusedMenuIndex()]},MenuBarController.prototype.getFocusedMenuIndex=function(){var e=this.$mdUtil.getClosest(this.$document[0].activeElement,"MD-MENU");return e?this.getMenus().indexOf(e):-1},MenuBarController.prototype.getOpenMenuIndex=function(){for(var e=this.getMenus(),n=0;n<e.length;++n)if(e[n].classList.contains("md-open"))return n;return-1},MenuBarController.prototype.handleParentClick=function(e){var n=this.querySelector("md-menu.md-open");n&&!n.contains(e.target)&&angular.element(n).controller("mdMenu").close(!0,{closeAll:!0})},MenuBarDirective.$inject=["$mdUtil","$mdTheming"],angular.module("material.components.menuBar").directive("mdMenuBar",MenuBarDirective),angular.module("material.components.menuBar").directive("mdMenuDivider",MenuDividerDirective),MenuItemController.$inject=["$scope","$element","$attrs"],angular.module("material.components.menuBar").controller("MenuItemController",MenuItemController),MenuItemController.prototype.init=function(e){var n=this.$element,t=this.$attrs;this.ngModel=e,"checkbox"!=t.type&&"radio"!=t.type||(this.mode=t.type,this.iconEl=n[0].children[0],this.buttonEl=n[0].children[1],e&&this.initClickListeners())},MenuItemController.prototype.clearNgAria=function(){var n=this.$element[0];angular.forEach(["role","tabindex","aria-invalid","aria-checked"],function(e){n.removeAttribute(e)})},MenuItemController.prototype.initClickListeners=function(){var e=this,n=this.ngModel,t=this.$scope,o=this.$attrs,r=(this.$element,this.mode);this.handleClick=angular.bind(this,this.handleClick);var i=this.iconEl,a=angular.element(this.buttonEl),l=this.handleClick;function u(e){e?a.off("click",l):a.on("click",l)}o.$observe("disabled",u),u(o.disabled),n.$render=function(){e.clearNgAria(),!function(){{if("radio"!=r)return n.$modelValue;var e=o.ngValue?t.$eval(o.ngValue):o.value;return n.$modelValue==e}}()?(i.style.display="none",a.attr("aria-checked","false")):(i.style.display="",a.attr("aria-checked","true"))},t.$$postDigest(n.$render)},MenuItemController.prototype.handleClick=function(e){var n,t=this.mode,o=this.ngModel,r=this.$attrs;"checkbox"==t?n=!o.$modelValue:"radio"==t&&(n=r.ngValue?this.$scope.$eval(r.ngValue):r.value),o.$setViewValue(n),o.$render()},MenuItemDirective.$inject=["$mdUtil","$mdConstant","$$mdSvgRegistry"],angular.module("material.components.menuBar").directive("mdMenuItem",MenuItemDirective),ngmaterial.components.menuBar=angular.module("material.components.menuBar");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.navBar');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdNavBar(n,o){return{restrict:"E",transclude:!0,controller:MdNavBarController,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(t,e,r,a){o(e),a.navBarAriaLabel||n.expectAsync(e,"aria-label",angular.noop)}}}function MdNavBarController(t,e,r,a){this._$timeout=r,this._$scope=e,this._$mdConstant=a,this.mdSelectedNavItem,this.navBarAriaLabel,this._navBarEl=t[0],this._inkbar;var n=this,o=this._$scope.$watch(function(){return n._navBarEl.querySelectorAll("._md-nav-button").length},function(t){0<t&&(n._initTabs(),o())})}function MdNavItem(d,t,u,v){return{restrict:"E",require:["mdNavItem","^mdNavBar"],controller:MdNavItemController,bindToController:!0,controllerAs:"ctrl",replace:!0,transclude:!0,template:function(t,e){var r,a,n=e.mdNavClick,o=e.mdNavHref,i=e.mdNavSref,l=e.srefOpts;if(1<(n?1:0)+(o?1:0)+(i?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(null!=n)r='ng-click="ctrl.mdNavClick()"';else if(null!=o)r='ng-href="{{ctrl.mdNavHref}}"';else{if(null==i)throw Error("Please specify at least one of the md-nav-click, md-nav-href, or md-nav-sref attributes per nav-item directive.");r='ui-sref="{{ctrl.mdNavSref}}"'}return r&&(a='<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()}}" '+(l?'ui-sref-opts="{{ctrl.srefOpts}}" ':"")+r+'><span ng-transclude class="_md-nav-button-text"></span></md-button>'),'<li class="md-nav-item" role="presentation">'+(a||"")+"</li>"},scope:{mdNavClick:"&?",mdNavHref:"@?",mdNavSref:"@?",srefOpts:"=?",name:"@",navItemAriaLabel:"@?"},link:function(r,a,n,o){var i,l,s,c;t(function(){if(l=o[0],s=o[1],c=angular.element(a[0].querySelector("._md-nav-button")),l.name||(l.name=angular.element(a[0].querySelector("._md-nav-button-text")).text().trim()),c.on("keydown",function(t){s.onKeydown(t)}),c.on("focus",function(){s.getFocusedTab()||s.onFocus()}),c.on("click",function(){s.mdSelectedNavItem=l.name,r.$apply()}),l.disabled=u.parseAttributeBoolean(n.disabled,!1),"MutationObserver"in v){var t=a[0],e=new MutationObserver(function(t){u.nextTick(function(){l.disabled=u.parseAttributeBoolean(n[t[0].attributeName],!1)})});e.observe(t,{attributes:!0,attributeFilter:["disabled"]}),i=e.disconnect.bind(e)}else n.$observe("disabled",function(t){l.disabled=u.parseAttributeBoolean(t,!1)});l.navItemAriaLabel||d.expectWithText(c,"aria-label")}),r.$on("destroy",function(){c.off("keydown"),c.off("focus"),c.off("click"),i()})}}}function MdNavItemController(t){this._$element=t,this.mdNavClick,this.mdNavHref,this.mdNavSref,this.srefOpts,this.name,this.navItemAriaLabel,this._selected=!1,this._focused=!1}goog.provide("ngmaterial.components.navBar"),goog.require("ngmaterial.core"),MdNavBar.$inject=["$mdAria","$mdTheming"],MdNavBarController.$inject=["$element","$scope","$timeout","$mdConstant"],MdNavItem.$inject=["$mdAria","$$rAF","$mdUtil","$window"],MdNavItemController.$inject=["$element"],angular.module("material.components.navBar",["material.core"]).controller("MdNavBarController",MdNavBarController).directive("mdNavBar",MdNavBar).controller("MdNavItemController",MdNavItemController).directive("mdNavItem",MdNavItem),MdNavBarController.prototype._initTabs=function(){this._inkbar=angular.element(this._navBarEl.querySelector("md-nav-ink-bar"));var r=this;this._$timeout(function(){r._updateTabs(r.mdSelectedNavItem,void 0)}),this._$scope.$watch("ctrl.mdSelectedNavItem",function(t,e){r._$timeout(function(){r._updateTabs(t,e)})})},MdNavBarController.prototype._updateTabs=function(t,e){var r=this,a=this._getTabs(),n=t===e;if(a){var o=-1,i=-1,l=this._getTabByName(t),s=this._getTabByName(e);s&&(s.setSelected(!1),o=a.indexOf(s)),l&&(l.setSelected(!0),i=a.indexOf(l)),this._$timeout(function(){r._updateInkBarStyles(l,i,o),l&&s&&!n&&r._moveFocus(s,l)})}},MdNavBarController.prototype._updateInkBarStyles=function(t,e,r){if(this._inkbar.toggleClass("_md-left",e<r).toggleClass("_md-right",r<e),this._inkbar.css({display:e<0?"none":""}),t){var a=t.getButtonEl(),n=a.offsetLeft;this._inkbar.css({left:n+"px",width:a.offsetWidth+"px"})}},MdNavBarController.prototype._getTabs=function(){var t=Array.prototype.slice.call(this._navBarEl.querySelectorAll(".md-nav-item")).map(function(t){return angular.element(t).controller("mdNavItem")});return t.indexOf(void 0)?t:null},MdNavBarController.prototype._getTabByName=function(e){return this._findTab(function(t){return t.getName()===e})},MdNavBarController.prototype._getSelectedTab=function(){return this._findTab(function(t){return t.isSelected()})},MdNavBarController.prototype.getFocusedTab=function(){return this._findTab(function(t){return t.hasFocus()})},MdNavBarController.prototype._findTab=function(t,e){var r=this._getTabs();null==e&&(e=0);for(var a=e;a<r.length;a++)if(t(r[a]))return r[a];return null},MdNavBarController.prototype._findTabReverse=function(t,e){var r=this._getTabs();null==e&&(e=r.length-1);for(var a=e;0<=a;a--)if(t(r[a]))return r[a];return null},MdNavBarController.prototype.onFocus=function(){var t=this._getSelectedTab();t&&t.setFocused(!0)},MdNavBarController.prototype._moveFocus=function(t,e){t.setFocused(!1),e.setFocused(!0)},MdNavBarController.prototype._focusFirstTab=function(){if(this._getTabs()){var t=this._findTab(function(t){return t._isEnabled()});t&&this._moveFocus(this.getFocusedTab(),t)}},MdNavBarController.prototype._focusLastTab=function(){if(this._getTabs()){var t=this._findTabReverse(function(t){return t._isEnabled()});t&&this._moveFocus(this.getFocusedTab(),t)}},MdNavBarController.prototype._focusNextTab=function(t){if(this._getTabs()){var e=this._findTab(function(t){return t._isEnabled()},t+1);e?this._moveFocus(this.getFocusedTab(),e):this._focusFirstTab()}},MdNavBarController.prototype._focusPreviousTab=function(t){if(this._getTabs()){var e=this._findTabReverse(function(t){return t._isEnabled()},t-1);e?this._moveFocus(this.getFocusedTab(),e):this._focusLastTab()}},MdNavBarController.prototype.onKeydown=function(t){var e=this._$mdConstant.KEY_CODE,r=this._getTabs(),a=this.getFocusedTab();if(a&&r){var n=r.indexOf(a);switch(t.keyCode){case e.UP_ARROW:case e.LEFT_ARROW:t.preventDefault(),this._focusPreviousTab(n);break;case e.DOWN_ARROW:case e.RIGHT_ARROW:t.preventDefault(),this._focusNextTab(n);break;case e.SPACE:case e.ENTER:this._$timeout(function(){a.getButtonEl().click()});break;case e.HOME:t.preventDefault(),this._focusFirstTab();break;case e.END:t.preventDefault(),this._focusLastTab()}}},MdNavItemController.prototype.getNgClassMap=function(){return{"md-active":this._selected,"md-primary":this._selected,"md-unselected":!this._selected,"md-focused":this._focused}},MdNavItemController.prototype.getName=function(){return this.name},MdNavItemController.prototype.getButtonEl=function(){return this._$element[0].querySelector("._md-nav-button")},MdNavItemController.prototype.setSelected=function(t){(this._selected=t)?this.getButtonEl().setAttribute("tabindex","0"):this.getButtonEl().setAttribute("tabindex","-1")},MdNavItemController.prototype.isSelected=function(){return this._selected},MdNavItemController.prototype.setFocused=function(t){(this._focused=t)&&this.getButtonEl().focus()},MdNavItemController.prototype.hasFocus=function(){return this._focused},MdNavItemController.prototype._isEnabled=function(){return!this._$element.attr("disabled")},ngmaterial.components.navBar=angular.module("material.components.navBar");

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
goog.provide("ngmaterial.components.panel"),goog.require("ngmaterial.components.backdrop"),goog.require("ngmaterial.core"),MdPanelService.$inject=["presets","$rootElement","$rootScope","$injector","$window"],angular.module("material.components.panel",["material.core","material.components.backdrop"]).provider("$mdPanel",MdPanelProvider);var MD_PANEL_Z_INDEX=80,MD_PANEL_HIDDEN="_md-panel-hidden",FOCUS_TRAP_TEMPLATE=angular.element('<div class="_md-panel-focus-trap" tabindex="0"></div>'),_presets={};function MdPanelProvider(){return{definePreset:definePreset,getAllPresets:getAllPresets,clearPresets:clearPresets,$get:$getProvider()}}function definePreset(t,e){if(!t||!e)throw new Error("mdPanelProvider: The panel preset definition is malformed. The name and preset object are required.");if(_presets.hasOwnProperty(t))throw new Error("mdPanelProvider: The panel preset you have requested has already been defined.");delete e.id,delete e.position,delete e.animation,_presets[t]=e}function getAllPresets(){return angular.copy(_presets)}function clearPresets(){_presets={}}function $getProvider(){return["$rootElement","$rootScope","$injector","$window",function(t,e,n,o){return new MdPanelService(_presets,t,e,n,o)}]}function MdPanelService(t,e,n,o,i){this._defaultConfigOptions={bindToController:!0,clickOutsideToClose:!1,disableParentScroll:!1,escapeToClose:!1,focusOnOpen:!0,fullscreen:!1,hasBackdrop:!1,propagateContainerEvents:!1,transformTemplate:angular.bind(this,this._wrapTemplate),trapFocus:!1,zIndex:MD_PANEL_Z_INDEX},this._config={},this._presets=t,this._$rootElement=e,this._$rootScope=n,this._$injector=o,this._$window=i,this._$mdUtil=this._$injector.get("$mdUtil"),this._trackedPanels={},this._groups=Object.create(null),this.animation=MdPanelAnimation.animation,this.xPosition=MdPanelPosition.xPosition,this.yPosition=MdPanelPosition.yPosition,this.interceptorTypes=MdPanelRef.interceptorTypes,this.closeReasons=MdPanelRef.closeReasons,this.absPosition=MdPanelPosition.absPosition}function MdPanelRef(t,e){this._$q=e.get("$q"),this._$mdCompiler=e.get("$mdCompiler"),this._$mdConstant=e.get("$mdConstant"),this._$mdUtil=e.get("$mdUtil"),this._$mdTheming=e.get("$mdTheming"),this._$rootScope=e.get("$rootScope"),this._$animate=e.get("$animate"),this._$mdPanel=e.get("$mdPanel"),this._$log=e.get("$log"),this._$window=e.get("$window"),this._$$rAF=e.get("$$rAF"),this.id=t.id,this.config=t,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 MdPanelPosition(t){this._$window=t.get("$window"),this._isRTL="rtl"===t.get("$mdUtil").bidi(),this._$mdConstant=t.get("$mdConstant"),this._absolute=!1,this._relativeToEl,this._top="",this._bottom="",this._left="",this._right="",this._translateX=[],this._translateY=[],this._positions=[],this._actualPosition}function MdPanelAnimation(t){this._$mdUtil=t.get("$mdUtil"),this._openFrom,this._closeTo,this._animationClass="",this._openDuration,this._closeDuration,this._rawDuration}function getElement(t){var e=angular.isString(t)?document.querySelector(t):t;return angular.element(e)}function getComputedTranslations(t,e){var n=getComputedStyle(t[0]||t)[e],o=n.indexOf("("),i=n.lastIndexOf(")"),s={x:0,y:0};if(-1<o&&-1<i){var a=n.substring(o+1,i).split(", ").slice(-2);s.x=parseInt(a[0]),s.y=parseInt(a[1])}return s}function addUnits(t){return angular.isNumber(t)?t+"px":t}MdPanelService.prototype.create=function(t,e){if("string"==typeof t?t=this._getPresetByName(t):"object"!=typeof t||!angular.isUndefined(e)&&e||(e=t,t={}),t=t||{},e=e||{},angular.isDefined(e.id)&&this._trackedPanels[e.id]){var n=this._trackedPanels[e.id];return angular.extend(n.config,e),n}this._config=angular.extend({id:e.id||"panel_"+this._$mdUtil.nextUid(),scope:this._$rootScope.$new(!0),attachTo:this._$rootElement},this._defaultConfigOptions,e,t);var o=new MdPanelRef(this._config,this._$injector);return this._trackedPanels[this._config.id]=o,this._config.groupName&&(angular.isString(this._config.groupName)&&(this._config.groupName=[this._config.groupName]),angular.forEach(this._config.groupName,function(t){o.addToGroup(t)})),this._config.scope.$on("$destroy",angular.bind(o,o.detach)),o},MdPanelService.prototype.open=function(t,e){var n=this.create(t,e);return n.open().then(function(){return n})},MdPanelService.prototype._getPresetByName=function(t){if(!this._presets[t])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[t]},MdPanelService.prototype.newPanelPosition=function(){return new MdPanelPosition(this._$injector)},MdPanelService.prototype.newPanelAnimation=function(){return new MdPanelAnimation(this._$injector)},MdPanelService.prototype.newPanelGroup=function(t,e){if(!this._groups[t]){var n={panels:[],openPanels:[],maxOpen:0<(e=e||{}).maxOpen?e.maxOpen:1/0};this._groups[t]=n}return this._groups[t]},MdPanelService.prototype.setGroupMaxOpen=function(t,e){if(!this._groups[t])throw new Error("mdPanel: Group does not exist yet. Call newPanelGroup().");this._groups[t].maxOpen=e},MdPanelService.prototype._openCountExceedsMaxOpen=function(t){if(this._groups[t]){var e=this._groups[t];return 0<e.maxOpen&&e.openPanels.length>e.maxOpen}return!1},MdPanelService.prototype._closeFirstOpenedPanel=function(t){this._groups[t].openPanels[0].close()},MdPanelService.prototype._wrapTemplate=function(t){return'<div class="md-panel-outer-wrapper"> <div class="md-panel _md-panel-offscreen">'+(t||"")+"</div></div>"},MdPanelService.prototype._wrapContentElement=function(t){var e=angular.element('<div class="md-panel-outer-wrapper">');return t.addClass("md-panel _md-panel-offscreen"),e.append(t),e},MdPanelRef.interceptorTypes={CLOSE:"onClose"},MdPanelRef.prototype.open=function(){var i=this;return this._$q(function(t,e){var n=i._done(t,i),o=i._simpleBind(i.show,i);i.attach().then(o).then(function(){i.config.groupName&&angular.forEach(i.config.groupName,function(t){i._$mdPanel._openCountExceedsMaxOpen(t)&&i._$mdPanel._closeFirstOpenedPanel(t)})}).then(n).catch(e)})},MdPanelRef.prototype.close=function(s){var a=this;return this._$q(function(o,i){a._callInterceptors(MdPanelRef.interceptorTypes.CLOSE).then(function(){var t=a._done(o,a),e=a._simpleBind(a.detach,a),n=a.config.onCloseSuccess||angular.noop;n=angular.bind(a,n,a,s),a.hide().then(e).then(t).then(n).catch(i)},i)})},MdPanelRef.prototype.attach=function(){if(this.isAttached&&this.panelEl)return this._$q.when(this);var i=this;return this._$q(function(t,e){var n=i._done(t,i),o=i.config.onDomAdded||angular.noop;i._$q.all([i._createBackdrop(),i._createPanel().then(function(t){return i.isAttached=!0,i._addEventListeners(),t}).catch(e)]).then(o).then(n).catch(e)})},MdPanelRef.prototype.detach=function(){if(!this.isAttached)return this._$q.when(this);var o=this,i=o.config.onDomRemoved||angular.noop;return this._restoreScroll&&(this._restoreScroll(),this._restoreScroll=null),this._$q(function(t,e){var n=o._done(t,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(e)})},MdPanelRef.prototype.destroy=function(){var e=this;this.config.groupName&&angular.forEach(this.config.groupName,function(t){e.removeFromGroup(t)}),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},MdPanelRef.prototype.show=function(){if(!this.panelContainer)return this._$q(function(t,e){e("mdPanel: Panel does not exist yet. Call open() or attach().")});if(!this.panelContainer.hasClass(MD_PANEL_HIDDEN))return this._$q.when(this);var i=this;return this._$q(function(t,e){var n=i._done(t,i),o=i.config.onOpenComplete||angular.noop;i._$q.all([i._backdropRef?i._backdropRef.show():i,(i.panelContainer.removeClass(MD_PANEL_HIDDEN),i._animateOpen()).then(function(){i._focusOnOpen()},e)]).then(o).then(function(){i.config.groupName&&angular.forEach(i.config.groupName,function(t){i._$mdPanel._groups[t].openPanels.push(i)})}).then(n).catch(e)})},MdPanelRef.prototype.hide=function(){if(!this.panelContainer)return this._$q(function(t,e){e("mdPanel: Panel does not exist yet. Call open() or attach().")});if(this.panelContainer.hasClass(MD_PANEL_HIDDEN))return this._$q.when(this);var i=this;return this._$q(function(t,e){var n=i._done(t,i),o=i.config.onRemoving||angular.noop;i._$q.all([i._backdropRef?i._backdropRef.hide():i,i._animateClose().then(o).then(function(){i.panelContainer.addClass(MD_PANEL_HIDDEN)}).then(function(){var e;i.config.groupName&&angular.forEach(i.config.groupName,function(t){t=i._$mdPanel._groups[t],-1<(e=t.openPanels.indexOf(i))&&t.openPanels.splice(e,1)})}).then(function(){var t=i.config.origin;t&&getElement(t).focus()}).catch(e)]).then(n,e)})},MdPanelRef.prototype.addClass=function(t,e){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().");e||this.panelContainer.hasClass(t)?e&&!this.panelEl.hasClass(t)&&this.panelEl.addClass(t):this.panelContainer.addClass(t)},MdPanelRef.prototype.removeClass=function(t,e){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().");!e&&this.panelContainer.hasClass(t)?this.panelContainer.removeClass(t):e&&this.panelEl.hasClass(t)&&this.panelEl.removeClass(t)},MdPanelRef.prototype.toggleClass=function(t,e){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().");e?this.panelEl.toggleClass(t):this.panelContainer.toggleClass(t)},MdPanelRef.prototype._compile=function(){var o=this;return o._$mdCompiler.compile(o.config).then(function(t){var e=o.config;if(e.contentElement){var n=t.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=t.link(e.scope),o.panelEl=angular.element(o.panelContainer[0].querySelector(".md-panel"));return o._compilerCleanup=t.cleanup,getElement(o.config.attachTo).append(o.panelContainer),o})},MdPanelRef.prototype._createPanel=function(){var n=this;return this._$q(function(t,e){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,getElement(n.config.attachTo)),n._configureTrapFocus(),n._addStyles().then(function(){t(n)},e)},e)})},MdPanelRef.prototype._addStyles=function(){var n=this;return this._$q(function(t){n.panelContainer.css("z-index",n.config.zIndex),n.panelEl.css("z-index",n.config.zIndex+1);var e=function(){n._setTheming(),n.panelEl.removeClass("_md-panel-offscreen"),n.panelContainer.addClass(MD_PANEL_HIDDEN),t(n)};if(n.config.fullscreen)return n.panelEl.addClass("_md-panel-fullscreen"),void e();n.config.position?n._$rootScope.$$postDigest(function(){n._updatePosition(!0),n._setTheming(),t(n)}):e()})},MdPanelRef.prototype._setTheming=function(){this._$mdTheming(this.panelEl),this._$mdTheming(this.panelContainer)},MdPanelRef.prototype.updatePosition=function(t){if(!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");this.config.position=t,this._updatePosition()},MdPanelRef.prototype._updatePosition=function(t){var e=this.config.position;e&&(e._setPanelPosition(this.panelEl),t&&(this.panelEl.removeClass("_md-panel-offscreen"),this.panelContainer.addClass(MD_PANEL_HIDDEN)),this.panelEl.css(MdPanelPosition.absPosition.TOP,e.getTop()),this.panelEl.css(MdPanelPosition.absPosition.BOTTOM,e.getBottom()),this.panelEl.css(MdPanelPosition.absPosition.LEFT,e.getLeft()),this.panelEl.css(MdPanelPosition.absPosition.RIGHT,e.getRight()))},MdPanelRef.prototype._focusOnOpen=function(){if(this.config.focusOnOpen){var t=this;this._$rootScope.$$postDigest(function(){(t._$mdUtil.findFocusTarget(t.panelEl)||t.panelEl).focus()})}},MdPanelRef.prototype._createBackdrop=function(){if(this.config.hasBackdrop){if(!this._backdropRef){var t=this._$mdPanel.newPanelAnimation().openFrom(this.config.attachTo).withAnimation({open:"_md-opaque-enter",close:"_md-opaque-leave"});this.config.animation&&t.duration(this.config.animation._rawDuration);var e={animation:t,attachTo:this.config.attachTo,focusOnOpen:!1,panelClass:"_md-panel-backdrop",zIndex:this.config.zIndex-1};this._backdropRef=this._$mdPanel.create(e)}if(!this._backdropRef.isAttached)return this._backdropRef.attach()}},MdPanelRef.prototype._addEventListeners=function(){this._configureEscapeToClose(),this._configureClickOutsideToClose(),this._configureScrollListener()},MdPanelRef.prototype._removeEventListeners=function(){this._removeListeners&&this._removeListeners.forEach(function(t){t()}),this._removeListeners=[]},MdPanelRef.prototype._configureEscapeToClose=function(){if(this.config.escapeToClose){var t=getElement(this.config.attachTo),e=this,n=function(t){t.keyCode===e._$mdConstant.KEY_CODE.ESCAPE&&(t.stopPropagation(),t.preventDefault(),e.close(MdPanelRef.closeReasons.ESCAPE))};this.panelContainer.on("keydown",n),t.on("keydown",n),this._removeListeners.push(function(){e.panelContainer.off("keydown",n),t.off("keydown",n)})}},MdPanelRef.prototype._configureClickOutsideToClose=function(){if(this.config.clickOutsideToClose){var e,n=this.config.propagateContainerEvents?angular.element(document.body):this.panelContainer,t=function(t){e=t.target},o=this,i=function(t){o.config.propagateContainerEvents?e===o.panelEl[0]||o.panelEl[0].contains(e)||o.close():e===n[0]&&t.target===n[0]&&(t.stopPropagation(),t.preventDefault(),o.close(MdPanelRef.closeReasons.CLICK_OUTSIDE))};n.on("mousedown",t),n.on("mouseup",i),this._removeListeners.push(function(){n.off("mousedown",t),n.off("mouseup",i)})}},MdPanelRef.prototype._configureScrollListener=function(){if(!this.config.disableParentScroll){var t=angular.bind(this,this._updatePosition),e=this._$$rAF.throttle(t),n=this,o=function(){e()};this._$window.addEventListener("scroll",o,!0),this._removeListeners.push(function(){n._$window.removeEventListener("scroll",o,!0)})}},MdPanelRef.prototype._configureTrapFocus=function(){if(this.panelEl.attr("tabIndex","-1"),this.config.trapFocus){var t=this.panelEl;this._topFocusTrap=FOCUS_TRAP_TEMPLATE.clone()[0],this._bottomFocusTrap=FOCUS_TRAP_TEMPLATE.clone()[0];var e=function(){t.focus()};this._topFocusTrap.addEventListener("focus",e),this._bottomFocusTrap.addEventListener("focus",e),this._removeListeners.push(this._simpleBind(function(){this._topFocusTrap.removeEventListener("focus",e),this._bottomFocusTrap.removeEventListener("focus",e)},this)),t[0].parentNode.insertBefore(this._topFocusTrap,t[0]),t.after(this._bottomFocusTrap)}},MdPanelRef.prototype.updateAnimation=function(t){this.config.animation=t,this._backdropRef&&this._backdropRef.config.animation.duration(t._rawDuration)},MdPanelRef.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(t){var e=o._done(t,o);n.animateOpen(o.panelEl).then(e,function(){o._$log.warn("mdPanel: MdPanel Animations failed. Showing panel without animating."),e()})})},MdPanelRef.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(t){var e=function(){o.panelContainer.removeClass("md-panel-is-showing"),t(o)};n.animateClose(o.panelEl).then(e,function(){o._$log.warn("mdPanel: MdPanel Animations failed. Hiding panel without animating."),e()})})},MdPanelRef.prototype.registerInterceptor=function(t,e){var n=null;if(angular.isString(t)?angular.isFunction(e)||(n="Interceptor callback must be a function, instead got "+typeof e):n="Interceptor type must be a string, instead got "+typeof t,n)throw new Error("MdPanel: "+n);var o=this._interceptors[t]=this._interceptors[t]||[];return-1===o.indexOf(e)&&o.push(e),this},MdPanelRef.prototype.removeInterceptor=function(t,e){var n=this._interceptors[t]?this._interceptors[t].indexOf(e):-1;return-1<n&&this._interceptors[t].splice(n,1),this},MdPanelRef.prototype.removeAllInterceptors=function(t){return t?this._interceptors[t]=[]:this._interceptors=Object.create(null),this},MdPanelRef.prototype._callInterceptors=function(t){var o=this,i=o._$q;return(o._interceptors&&o._interceptors[t]||[]).reduceRight(function(t,e){var n=e&&angular.isFunction(e.then)?e:null;return t.then(function(){if(!n)try{n=e(o)}catch(t){n=i.reject(t)}return n})},i.resolve(o))},MdPanelRef.prototype._simpleBind=function(e,n){return function(t){return e.apply(n,t)}},MdPanelRef.prototype._done=function(t,e){return function(){t(e)}},MdPanelRef.prototype.addToGroup=function(t){this._$mdPanel._groups[t]||this._$mdPanel.newPanelGroup(t);var e=this._$mdPanel._groups[t];e.panels.indexOf(this)<0&&e.panels.push(this)},MdPanelRef.prototype.removeFromGroup=function(t){if(!this._$mdPanel._groups[t])throw new Error("mdPanel: The group "+t+" does not exist.");var e=this._$mdPanel._groups[t],n=e.panels.indexOf(this);-1<n&&e.panels.splice(n,1)},MdPanelRef.closeReasons={CLICK_OUTSIDE:"clickOutsideToClose",ESCAPE:"escapeToClose"},MdPanelPosition.xPosition={CENTER:"center",ALIGN_START:"align-start",ALIGN_END:"align-end",OFFSET_START:"offset-start",OFFSET_END:"offset-end"},MdPanelPosition.yPosition={CENTER:"center",ALIGN_TOPS:"align-tops",ALIGN_BOTTOMS:"align-bottoms",ABOVE:"above",BELOW:"below"},MdPanelPosition.absPosition={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},MdPanelPosition.viewportMargin=8,MdPanelPosition.prototype.absolute=function(){return this._absolute=!0,this},MdPanelPosition.prototype._setPosition=function(t,e){if(t===MdPanelPosition.absPosition.RIGHT||t===MdPanelPosition.absPosition.LEFT)this._left=this._right="";else{if(t!==MdPanelPosition.absPosition.BOTTOM&&t!==MdPanelPosition.absPosition.TOP){var n=Object.keys(MdPanelPosition.absPosition).join().toLowerCase();throw new Error("mdPanel: Position must be one of "+n+".")}this._top=this._bottom=""}return this["_"+t]=angular.isString(e)?e:"0",this},MdPanelPosition.prototype.top=function(t){return this._setPosition(MdPanelPosition.absPosition.TOP,t)},MdPanelPosition.prototype.bottom=function(t){return this._setPosition(MdPanelPosition.absPosition.BOTTOM,t)},MdPanelPosition.prototype.start=function(t){var e=this._isRTL?MdPanelPosition.absPosition.RIGHT:MdPanelPosition.absPosition.LEFT;return this._setPosition(e,t)},MdPanelPosition.prototype.end=function(t){var e=this._isRTL?MdPanelPosition.absPosition.LEFT:MdPanelPosition.absPosition.RIGHT;return this._setPosition(e,t)},MdPanelPosition.prototype.left=function(t){return this._setPosition(MdPanelPosition.absPosition.LEFT,t)},MdPanelPosition.prototype.right=function(t){return this._setPosition(MdPanelPosition.absPosition.RIGHT,t)},MdPanelPosition.prototype.centerHorizontally=function(){return this._left="50%",this._right="",this._translateX=["-50%"],this},MdPanelPosition.prototype.centerVertically=function(){return this._top="50%",this._bottom="",this._translateY=["-50%"],this},MdPanelPosition.prototype.center=function(){return this.centerHorizontally().centerVertically()},MdPanelPosition.prototype.relativeTo=function(t){return this._absolute=!1,this._relativeToEl=getElement(t),this},MdPanelPosition.prototype.addPanelPosition=function(t,e){if(!this._relativeToEl)throw new Error("mdPanel: addPanelPosition can only be used with relative positioning. Set relativeTo first.");return this._validateXPosition(t),this._validateYPosition(e),this._positions.push({x:t,y:e}),this},MdPanelPosition.prototype._validateYPosition=function(t){if(null!=t){for(var e,n=Object.keys(MdPanelPosition.yPosition),o=[],i=0;e=n[i];i++){var s=MdPanelPosition.yPosition[e];if(o.push(s),s===t)return}throw new Error("mdPanel: Panel y position only accepts the following values:\n"+o.join(" | "))}},MdPanelPosition.prototype._validateXPosition=function(t){if(null!=t){for(var e,n=Object.keys(MdPanelPosition.xPosition),o=[],i=0;e=n[i];i++){var s=MdPanelPosition.xPosition[e];if(o.push(s),s===t)return}throw new Error("mdPanel: Panel x Position only accepts the following values:\n"+o.join(" | "))}},MdPanelPosition.prototype.withOffsetX=function(t){return this._translateX.push(addUnits(t)),this},MdPanelPosition.prototype.withOffsetY=function(t){return this._translateY.push(addUnits(t)),this},MdPanelPosition.prototype.getTop=function(){return this._top},MdPanelPosition.prototype.getBottom=function(){return this._bottom},MdPanelPosition.prototype.getLeft=function(){return this._left},MdPanelPosition.prototype.getRight=function(){return this._right},MdPanelPosition.prototype.getTransform=function(){return(this._reduceTranslateValues("translateX",this._translateX)+" "+this._reduceTranslateValues("translateY",this._translateY)).trim()},MdPanelPosition.prototype._setTransform=function(t){return t.css(this._$mdConstant.CSS.TRANSFORM,this.getTransform())},MdPanelPosition.prototype._isOnscreen=function(t){var e=parseInt(this.getLeft()),n=parseInt(this.getTop());if(this._translateX.length||this._translateY.length){var o=getComputedTranslations(t,this._$mdConstant.CSS.TRANSFORM);e+=o.x,n+=o.y}var i=e+t[0].offsetWidth,s=n+t[0].offsetHeight;return 0<=e&&0<=n&&s<=this._$window.innerHeight&&i<=this._$window.innerWidth},MdPanelPosition.prototype.getActualPosition=function(){return this._actualPosition},MdPanelPosition.prototype._reduceTranslateValues=function(n,t){return t.map(function(t){var e=angular.isFunction(t)?addUnits(t(this)):t;return n+"("+e+")"},this).join(" ")},MdPanelPosition.prototype._setPanelPosition=function(t){if(t.removeClass("_md-panel-position-adjusted"),this._absolute)this._setTransform(t);else{if(this._actualPosition)return this._calculatePanelPosition(t,this._actualPosition),this._setTransform(t),void this._constrainToViewport(t);for(var e=0;e<this._positions.length;e++)if(this._actualPosition=this._positions[e],this._calculatePanelPosition(t,this._actualPosition),this._setTransform(t),this._isOnscreen(t))return;this._constrainToViewport(t)}},MdPanelPosition.prototype._constrainToViewport=function(t){var e=MdPanelPosition.viewportMargin,n=this._top,o=this._left;if(this.getTop()){var i=parseInt(this.getTop()),s=t[0].offsetHeight+i,a=this._$window.innerHeight;i<e?this._top=e+"px":a<s&&(this._top=i-(s-a+e)+"px")}if(this.getLeft()){var r=parseInt(this.getLeft()),l=t[0].offsetWidth+r,p=this._$window.innerWidth;r<e?this._left=e+"px":p<l&&(this._left=r-(l-p+e)+"px")}t.toggleClass("_md-panel-position-adjusted",this._top!==n||this._left!==o)},MdPanelPosition.prototype._reverseXPosition=function(t){if(t===MdPanelPosition.xPosition.CENTER)return t;var e="start";return-1<t.indexOf(e)?t.replace(e,"end"):t.replace("end",e)},MdPanelPosition.prototype._bidi=function(t){return this._isRTL?this._reverseXPosition(t):t},MdPanelPosition.prototype._calculatePanelPosition=function(t,e){var n=t[0].getBoundingClientRect(),o=Math.max(n.width,t[0].clientWidth),i=Math.max(n.height,t[0].clientHeight),s=this._relativeToEl[0].getBoundingClientRect(),a=s.left,r=s.right,l=s.width;switch(this._bidi(e.x)){case MdPanelPosition.xPosition.OFFSET_START:this._left=a-o+"px";break;case MdPanelPosition.xPosition.ALIGN_END:this._left=r-o+"px";break;case MdPanelPosition.xPosition.CENTER:var p=a+.5*l-.5*o;this._left=p+"px";break;case MdPanelPosition.xPosition.ALIGN_START:this._left=a+"px";break;case MdPanelPosition.xPosition.OFFSET_END:this._left=r+"px"}var c=s.top,h=s.bottom,d=s.height;switch(e.y){case MdPanelPosition.yPosition.ABOVE:this._top=c-i+"px";break;case MdPanelPosition.yPosition.ALIGN_BOTTOMS:this._top=h-i+"px";break;case MdPanelPosition.yPosition.CENTER:var u=c+.5*d-.5*i;this._top=u+"px";break;case MdPanelPosition.yPosition.ALIGN_TOPS:this._top=c+"px";break;case MdPanelPosition.yPosition.BELOW:this._top=h+"px"}},MdPanelAnimation.animation={SLIDE:"md-panel-animate-slide",SCALE:"md-panel-animate-scale",FADE:"md-panel-animate-fade"},MdPanelAnimation.prototype.openFrom=function(t){return t=t.target?t.target:t,this._openFrom=this._getPanelAnimationTarget(t),this._closeTo||(this._closeTo=this._openFrom),this},MdPanelAnimation.prototype.closeTo=function(t){return this._closeTo=this._getPanelAnimationTarget(t),this},MdPanelAnimation.prototype.duration=function(t){return t&&(angular.isNumber(t)?this._openDuration=this._closeDuration=e(t):angular.isObject(t)&&(this._openDuration=e(t.open),this._closeDuration=e(t.close))),this._rawDuration=t,this;function e(t){if(angular.isNumber(t))return t/1e3}},MdPanelAnimation.prototype._getPanelAnimationTarget=function(t){return angular.isDefined(t.top)||angular.isDefined(t.left)?{element:void 0,bounds:{top:t.top||0,left:t.left||0}}:this._getBoundingClientRect(getElement(t))},MdPanelAnimation.prototype.withAnimation=function(t){return this._animationClass=t,this},MdPanelAnimation.prototype.animateOpen=function(t){var e=this._$mdUtil.dom.animator;this._fixBounds(t);var n={},o=t[0].style.transform||"",i=e.toTransformCss(o),s=e.toTransformCss(o);switch(this._animationClass){case MdPanelAnimation.animation.SLIDE:t.css("opacity","1"),n={transitionInClass:"_md-panel-animate-enter"};var a=e.calculateSlideToOrigin(t,this._openFrom)||"";i=e.toTransformCss(a+" "+o);break;case MdPanelAnimation.animation.SCALE:n={transitionInClass:"_md-panel-animate-enter"};var r=e.calculateZoomToOrigin(t,this._openFrom)||"";i=e.toTransformCss(r+" "+o);break;case MdPanelAnimation.animation.FADE:n={transitionInClass:"_md-panel-animate-enter"};break;default:n=angular.isString(this._animationClass)?{transitionInClass:this._animationClass}:{transitionInClass:this._animationClass.open,transitionOutClass:this._animationClass.close}}return n.duration=this._openDuration,e.translate3d(t,i,s,n)},MdPanelAnimation.prototype.animateClose=function(t){var e=this._$mdUtil.dom.animator,n={},o=t[0].style.transform||"",i=e.toTransformCss(o),s=e.toTransformCss(o);switch(this._animationClass){case MdPanelAnimation.animation.SLIDE:t.css("opacity","1"),n={transitionInClass:"_md-panel-animate-leave"};var a=e.calculateSlideToOrigin(t,this._closeTo)||"";s=e.toTransformCss(a+" "+o);break;case MdPanelAnimation.animation.SCALE:n={transitionInClass:"_md-panel-animate-scale-out _md-panel-animate-leave"};var r=e.calculateZoomToOrigin(t,this._closeTo)||"";s=e.toTransformCss(r+" "+o);break;case MdPanelAnimation.animation.FADE:n={transitionInClass:"_md-panel-animate-fade-out _md-panel-animate-leave"};break;default:n=angular.isString(this._animationClass)?{transitionOutClass:this._animationClass}:{transitionInClass:this._animationClass.close,transitionOutClass:this._animationClass.open}}return n.duration=this._closeDuration,e.translate3d(t,i,s,n)},MdPanelAnimation.prototype._fixBounds=function(t){var e=t[0].offsetWidth,n=t[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=e),this._closeTo&&null==this._closeTo.bounds.height&&(this._closeTo.bounds.height=n),this._closeTo&&null==this._closeTo.bounds.width&&(this._closeTo.bounds.width=e)},MdPanelAnimation.prototype._getBoundingClientRect=function(t){if(t instanceof angular.element)return{element:t,bounds:t[0].getBoundingClientRect()}},ngmaterial.components.panel=angular.module("material.components.panel");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.progressCircular');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdProgressCircularDirective(C,P,s,$,g,r){var I=C.requestAnimationFrame||C.webkitRequestAnimationFrame||angular.noop,f=C.cancelAnimationFrame||C.webkitCancelAnimationFrame||C.webkitCancelRequestAnimationFrame||angular.noop,v="determinate",k="indeterminate",x="_md-progress-circular-disabled",F="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(r,e){if(r.attr({"aria-valuemin":0,"aria-valuemax":100,role:"progressbar"}),angular.isUndefined(e.mdMode)){var t=e.hasOwnProperty("value")?v:k;e.$set("mdMode",t)}else e.$set("mdMode",e.mdMode.trim());return a}};function a(p,d,u){var h,r,e=d[0],o=angular.element(e.querySelector("svg")),M=angular.element(e.querySelector("path")),t=P.startIndeterminate,a=P.endIndeterminate,n=0,w=0;function m(t,r,e,a,n,i){var o=++w,s=$.now(),d=r-t,u=D(p.mdDiameter),m=q(u),l=e||P.easeFn,c=a||P.duration,g=-90*(n||0),f=i||100;function v(r){M.attr("stroke-dashoffset",y(u,m,r,f)),M.attr("transform","rotate("+g+" "+u/2+" "+u/2+")")}r===t?v(r):h=I(function r(){var e=C.Math.max(0,C.Math.min($.now()-s,c));v(l(e,t,d,c)),o===w&&e<c&&(h=I(r))})}function i(){m(t,a,P.easeFnIndeterminate,P.durationIndeterminate,n,75),n=++n%4}function l(){r||(r=g(i,P.durationIndeterminate,0,!1),i(),d.addClass(F).removeAttr("aria-valuenow"))}function c(){r&&(g.cancel(r),r=null,d.removeClass(F))}s(d),d.toggleClass(x,u.hasOwnProperty("disabled")),p.mdMode===k&&l(),p.$on("$destroy",function(){c(),h&&f(h)}),p.$watchGroup(["value","mdMode",function(){var r=e.disabled;return!0===r||!1===r?r:angular.isDefined(d.attr("disabled"))}],function(r,e){var t=r[1],a=r[2],n=0,i=0;if(a!==e[2]&&d.toggleClass(x,!!a),a)c();else if(t!==v&&t!==k&&(t=k,u.$set("mdMode",t)),t===k)e[1]===v&&(i=q(n=D(p.mdDiameter)),M.attr("d",b(n,i,!0)),M.attr("stroke-dasharray",(n-i)*C.Math.PI*.75)),l();else{var o=A(r[0]),s=A(e[0]);c(),e[1]===k&&(i=q(n=D(p.mdDiameter)),M.attr("d",b(n,i,!1)),M.attr("stroke-dasharray",(n-i)*C.Math.PI)),d.attr("aria-valuenow",o),m(s,o)}}),p.$watch("mdDiameter",function(r){var e=D(r),t=q(e),a=A(p.value),n=e/2+"px",i={width:e+"px",height:e+"px"};o[0].setAttribute("viewBox","0 0 "+e+" "+e),o.css(i).css("transform-origin",n+" "+n+" "+n),d.css(i),M.attr("stroke-width",t),M.attr("stroke-linecap","square"),p.mdMode==k?(M.attr("d",b(e,t,!0)),M.attr("stroke-dasharray",(e-t)*C.Math.PI*.75),M.attr("stroke-dashoffset",y(e,t,1,75))):(M.attr("d",b(e,t,!1)),M.attr("stroke-dasharray",(e-t)*C.Math.PI),M.attr("stroke-dashoffset",y(e,t,0,100)),m(a,a))})}function b(r,e,t){var a=r/2,n=e/2,i=a+","+n,o=a-n;return"M"+i+"A"+o+","+o+" 0 1 1 "+(n+","+a)+(t?"":"A"+o+","+o+" 0 0 1 "+i)}function y(r,e,t,a){return(r-e)*C.Math.PI*(3*(a||100)/100-t/100)}function A(r){return C.Math.max(0,C.Math.min(r||0,100))}function D(r){var e=P.progressSize;if(r){var t=parseFloat(r);return r.lastIndexOf("%")===r.length-1&&(t=t/100*e),t}return e}function q(r){return P.strokeWidth/100*r}}function MdProgressCircularProvider(){var e={progressSize:50,strokeWidth:10,duration:100,easeFn:r,durationIndeterminate:1333,startIndeterminate:1,endIndeterminate:149,easeFnIndeterminate:t,easingPresets:{linearEase:r,materialEase:t}};return{configure:function(r){return e=angular.extend(e,r||{})},$get:function(){return e}};function r(r,e,t,a){return t*r/a+e}function t(r,e,t,a){var n=(r/=a)*r,i=n*r;return e+t*(6*i*n+-15*n*n+10*i)}}goog.provide("ngmaterial.components.progressCircular"),goog.require("ngmaterial.core"),angular.module("material.components.progressCircular",["material.core"]),MdProgressCircularDirective.$inject=["$window","$mdProgressCircular","$mdTheming","$mdUtil","$interval","$log"],angular.module("material.components.progressCircular").directive("mdProgressCircular",MdProgressCircularDirective),angular.module("material.components.progressCircular").provider("$mdProgressCircular",MdProgressCircularProvider),ngmaterial.components.progressCircular=angular.module("material.components.progressCircular");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.progressLinear');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdProgressLinearDirective(c,u,e){var g="determinate",v="indeterminate",f="buffer",b="query",p="_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,a,r){return e.attr("aria-valuemin",0),e.attr("aria-valuemax",100),e.attr("role","progressbar"),n}};function n(e,r,n){var a;c(r);var t=n.hasOwnProperty("disabled"),i=u.dom.animator.toCss,s=angular.element(r[0].querySelector(".md-bar1")),o=angular.element(r[0].querySelector(".md-bar2")),d=angular.element(r[0].querySelector(".md-container"));function l(){var e=(n.mdMode||"").trim();if(e)switch(e){case g:case v:case f:case b:break;default:e=v}return e}function m(e,a){if(!t&&l()){var r=u.supplant("translateX({0}%) scale({1},1)",[(a-100)/2,a/100]),n=i({transform:r});angular.element(e).css(n)}}r.attr("md-mode",l()).toggleClass(p,t),function(){if(angular.isUndefined(n.mdMode)){var e=angular.isDefined(n.value),a=e?g:v;r.attr("md-mode",a),n.mdMode=a}}(),n.$observe("value",function(e){var a=M(e);r.attr("aria-valuenow",a),l()!=b&&m(o,a)}),n.$observe("mdBufferValue",function(e){m(s,M(e))}),n.$observe("disabled",function(e){t=!0===e||!1===e?!!e:angular.isDefined(e),r.toggleClass(p,t),d.toggleClass(a,!t)}),n.$observe("mdMode",function(e){switch(a&&d.removeClass(a),e){case b:case f:case g:case v:d.addClass(a="md-mode-"+e);break;default:d.addClass(a="md-mode-"+v)}})}function M(e){return Math.max(0,Math.min(e||0,100))}}goog.provide("ngmaterial.components.progressLinear"),goog.require("ngmaterial.core"),MdProgressLinearDirective.$inject=["$mdTheming","$mdUtil","$log"],angular.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",MdProgressLinearDirective),ngmaterial.components.progressLinear=angular.module("material.components.progressLinear");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.radioButton');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function mdRadioGroupDirective(d,u,c,s){return e.prototype={init:function(e){this._ngModelCtrl=e,this._ngModelCtrl.$render=angular.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,i,e,n){i.addClass("_md"),c(i);var r=n[0],o=n[1]||d.fakeNgModel();function a(){i.hasClass("md-focused")||i.addClass("md-focused")}r.init(o),t.mouseActive=!1,i.attr({role:"radiogroup",tabIndex:i.attr("tabindex")||"0"}).on("keydown",function(e){var t=e.which||e.keyCode;if(t!=u.KEY_CODE.ENTER&&e.currentTarget!=e.target)return;switch(t){case u.KEY_CODE.LEFT_ARROW:case u.KEY_CODE.UP_ARROW:e.preventDefault(),r.selectPrevious(),a();break;case u.KEY_CODE.RIGHT_ARROW:case u.KEY_CODE.DOWN_ARROW:e.preventDefault(),r.selectNext(),a();break;case u.KEY_CODE.ENTER:var n=angular.element(d.getClosest(i[0],"form"));0<n.length&&n.triggerHandler("submit")}}).on("mousedown",function(e){t.mouseActive=!0,s(function(){t.mouseActive=!1},100)}).on("focus",function(){!1===t.mouseActive&&r.$element.addClass("md-focused")}).on("blur",function(){r.$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 i=e[0].querySelector("md-radio-button.md-checked"),r=n[t<0?"previous":"next"](i,function(e){return!angular.element(e).attr("disabled")})||n.first();angular.element(r).triggerHandler("click")}}}function mdRadioButtonDirective(c,s,l){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,i,r){var o;l(n),e=n,e.attr({id:i.id||"radio_"+s.nextUid(),role:"radio","aria-checked":"false"}),c.expectWithText(e,"aria-label"),i.ngValue?s.nextTick(a,!1):a();var e;function a(){if(!r)throw"RadioButton: No RadioGroupController could be found.";r.add(u),i.$observe("value",u),n.on("click",d).on("$destroy",function(){r.remove(u)})}function d(e){n[0].hasAttribute("disabled")||r.isDisabled()||t.$apply(function(){r.setViewValue(i.value,e&&e.type)})}function u(){var e=r.getViewValue()==i.value;e!==o&&("md-radio-group"!==n[0].parentNode.nodeName.toLowerCase()&&n.parent().toggleClass(m,e),e&&r.setActiveDescendant(n.attr("id")),o=e,n.attr("aria-checked",e).toggleClass(m,e))}}}}goog.provide("ngmaterial.components.radioButton"),goog.require("ngmaterial.core"),mdRadioGroupDirective.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],mdRadioButtonDirective.$inject=["$mdAria","$mdUtil","$mdTheming"],angular.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",mdRadioGroupDirective).directive("mdRadioButton",mdRadioButtonDirective),ngmaterial.components.radioButton=angular.module("material.components.radioButton");

@@ -5,4 +5,4 @@ /*!

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

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.showHide');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function createDirective(d,m){return["$mdUtil","$window",function(a,c){return{restrict:"A",multiElement:!0,link:function(t,o,i){var r=t.$on("$md-resize-enable",function(){r();var e=o[0],n=e.nodeType===c.Node.ELEMENT_NODE?c.getComputedStyle(e):{};t.$watch(i[d],function(e){if(!!e===m){a.nextTick(function(){t.$broadcast("$md-resize")});var i={cachedTransitionStyles:n};a.dom.animator.waitTransitionEnd(o,i).then(function(){t.$broadcast("$md-resize")})}})})}}}]}goog.provide("ngmaterial.components.showHide"),goog.require("ngmaterial.core"),angular.module("material.components.showHide",["material.core"]).directive("ngShow",createDirective("ngShow",!0)).directive("ngHide",createDirective("ngHide",!1)),ngmaterial.components.showHide=angular.module("material.components.showHide");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.sidenav');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function SidenavService(o,d,s,r){var c="SideNav '{0}' is not available! Did you use md-component-id='{0}'?",u={find:function(e,n){var t=o.get(e);return t||n?t:void r.error(d.supplant(c,[e||""]))},waitFor:m};return function(e,n){if(angular.isUndefined(e))return u;var t,o,r,i,a=!0===n,l=u.find(e,a);return!l&&a?u.waitFor(e):!l&&angular.isUndefined(n)?(t=u,o=e,r=function(){return!1},i=function(){return s.when(d.supplant(c,[o||""]))},angular.extend({isLockedOpen:r,isOpen:r,toggle:i,open:i,close:i,onClose:angular.noop,then:function(e){return m(o).then(e||angular.noop)}},t)):l};function m(e){return o.when(e).catch(r.error)}}function SidenavFocusDirective(){return{restrict:"A",require:"^mdSidenav",link:function(e,n,t,o){}}}function SidenavDirective(o,h,r,C,S,y,e,O,b,k,w,D,F){return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){return e.addClass("md-closed").attr("tabIndex","-1"),n}};function n(i,a,e,n){var l,d,s,c,u,m=null,p=null,g=k.when(!0),t=O(e.mdIsLockedOpen),f=angular.element(D);function v(e){return e.keyCode===r.KEY_CODE.ESCAPE?$(e):k.when(!0)}function $(e){return e.preventDefault(),n.close()}e.mdDisableScrollTarget&&((m=w[0].querySelector(e.mdDisableScrollTarget))?m=angular.element(m):b.warn(h.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:e.mdDisableScrollTarget}))),m||(m=a.parent()),e.hasOwnProperty("mdDisableBackdrop")||(d=h.createBackdrop(i,"md-sidenav-backdrop md-opaque ng-enter")),e.hasOwnProperty("mdDisableCloseEvents")&&(s=!0),a.addClass("_md"),C(a),d&&C.inherit(d,a),a.on("$destroy",function(){d&&d.remove(),n.destroy()}),i.$on("$destroy",function(){d&&d.remove()}),i.$watch(function(){return t(i.$parent,{$media:function(e){return b.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),o(e)},$mdMedia:o})},function(e,n){(i.isLockedOpen=e)===n?a.toggleClass("md-locked-open",!!e):y[e?"addClass":"removeClass"](a,"md-locked-open");d&&d.toggleClass("md-locked-open",!!e)}),i.$watch("isOpen",function(e){var n,t=h.findFocusTarget(a)||h.findFocusTarget(a,"[md-sidenav-focus]")||a,o=a.parent();s||(o[e?"on":"off"]("keydown",v),d&&d[e?"on":"off"]("click",$));n=function(e,n){var t=a[0],o=e[0].scrollTop;if(n&&o){u={top:t.style.top,bottom:t.style.bottom,height:t.style.height};var r={top:o+"px",bottom:"auto",height:e[0].clientHeight+"px"};a.css(r),d.css(r)}if(!n&&u)return function(){t.style.top=u.top,t.style.bottom=u.bottom,t.style.height=u.height,d[0].style.top=null,d[0].style.bottom=null,d[0].style.height=null,u=null}}(o,e),e&&(p=w[0].activeElement,c=S.getLastInteractionType());return r=e,r&&!l?(l=m.css("overflow"),m.css("overflow","hidden")):angular.isDefined(l)&&(m.css("overflow",l),l=void 0),g=k.all([e&&d?y.enter(d,o):d?y.leave(d):k.when(!0),y[e?"removeClass":"addClass"](a,"md-closed")]).then(function(){i.isOpen&&(F(function(){f.triggerHandler("resize")}),t&&t.focus()),n&&n()});var r}),n.$toggleOpen=function(e){return i.isOpen===e?k.when(!0):(i.isOpen&&n.onCloseCb&&n.onCloseCb(),k(function(n){i.isOpen=e,h.nextTick(function(){g.then(function(e){!i.isOpen&&p&&"keyboard"===c&&(p.focus(),p=null),n(e)})})}))}}}function SidenavController(n,e,t,o,r){var i=this;i.isOpen=function(){return!!n.isOpen},i.isLockedOpen=function(){return!!n.isLockedOpen},i.onClose=function(e){return i.onCloseCb=e,i},i.open=function(){return i.$toggleOpen(!0)},i.close=function(){return i.$toggleOpen(!1)},i.toggle=function(){return i.$toggleOpen(!n.isOpen)},i.$toggleOpen=function(e){return o.when(n.isOpen=e)};var a=e.mdComponentId,l=a&&-1<a.indexOf(r.startSymbol()),d=l?r(a)(n.$parent):a;i.destroy=t.register(i,d),l&&e.$observe("mdComponentId",function(e){e&&e!==i.$$mdHandle&&(i.destroy(),i.destroy=t.register(i,e))})}goog.provide("ngmaterial.components.sidenav"),goog.require("ngmaterial.components.backdrop"),goog.require("ngmaterial.core"),SidenavService.$inject=["$mdComponentRegistry","$mdUtil","$q","$log"],SidenavDirective.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$mdInteraction","$animate","$compile","$parse","$log","$q","$document","$window","$$rAF"],SidenavController.$inject=["$scope","$attrs","$mdComponentRegistry","$q","$interpolate"],angular.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",SidenavService).directive("mdSidenav",SidenavDirective).directive("mdSidenavFocus",SidenavFocusDirective).controller("$mdSidenavController",SidenavController),ngmaterial.components.sidenav=angular.module("material.components.sidenav");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.slider');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
goog.provide("ngmaterial.components.slider"),goog.require("ngmaterial.core"),SliderDirective.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log","$timeout"],angular.module("material.components.slider",["material.core"]).directive("mdSlider",SliderDirective).directive("mdSliderContainer",SliderContainerDirective);var stepPageSize=10,modifierMultiplier=4;function SliderContainerDirective(){return{controller:function(){},compile:function(e){var t=e.find("md-slider");if(t)return void 0!==t.attr("md-vertical")&&e.attr("md-vertical",""),t.attr("flex")||t.attr("flex",""),function(e,o,t,a){function n(e){o.children().attr("disabled",e),o.find("input").attr("disabled",e)}o.addClass("_md");var l,i=angular.noop;t.disabled?n(!0):t.ngDisabled&&(i=e.$watch(t.ngDisabled,function(e){n(e)})),e.$on("$destroy",function(){i()}),a.fitInputWidthToTextLength=function(e){var t=o[0].querySelector("md-input-container");if(t){var a=getComputedStyle(t),n=parseInt(a.minWidth),i=parseInt(a.paddingLeft)+parseInt(a.paddingRight);l=l||parseInt(a.maxWidth);var r=Math.max(l,n+i+n/2*e);t.style.maxWidth=r+"px"}}}}}}function SliderDirective(G,K,i,U,H,j,Y,J,Q,X){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 a=angular.element(e[0].getElementsByClassName("md-slider-wrapper")),n=t.tabindex||0;a.attr("tabindex",n),(t.disabled||t.ngDisabled)&&a.attr("tabindex",-1);return a.attr("role","slider"),i.expect(e,"aria-label"),r}};function r(i,r,e,t){j(r);var n=t[0]||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},a=t[1],o=(angular.element(U.getClosest(r,"_md-slider-container",!0)),e.ngDisabled?angular.bind(null,J(e.ngDisabled),i.$parent):function(){return r[0].hasAttribute("disabled")}),l=angular.element(r[0].querySelector(".md-thumb")),d=angular.element(r[0].querySelector(".md-thumb-text")),s=l.parent(),u=angular.element(r[0].querySelector(".md-track-container")),c=angular.element(r[0].querySelector(".md-track-fill")),m=angular.element(r[0].querySelector(".md-track-ticks")),f=angular.element(r[0].getElementsByClassName("md-slider-wrapper")),v=(angular.element(r[0].getElementsByClassName("md-slider-content")),U.throttle(R,5e3)),g=angular.isDefined(e.mdVertical),p=angular.isDefined(e.mdDiscrete),h=angular.isDefined(e.mdInvert);angular.isDefined(e.min)?e.$observe("min",V):V(0),angular.isDefined(e.max)?e.$observe("max",k):k(100),angular.isDefined(e.step)?e.$observe("step",M):M(1),angular.isDefined(e.round)?e.$observe("round",A):A(3);angular.noop;function $(){R(),I()}e.ngDisabled&&i.$parent.$watch(e.ngDisabled,function(){r.attr("aria-disabled",!!o())}),Y.register(f,"drag",{horizontal:!g}),i.mouseActive=!1,f.on("keydown",function(e){if(o())return;var t,a=H.KEY_CODE;switch(e.keyCode){case a.DOWN_ARROW:case a.LEFT_ARROW:e.preventDefault(),t=-D;break;case a.UP_ARROW:case a.RIGHT_ARROW:e.preventDefault(),t=D;break;case a.PAGE_DOWN:e.preventDefault(),t=-D*stepPageSize;break;case a.PAGE_UP:e.preventDefault(),t=D*stepPageSize;break;case a.HOME:e.preventDefault(),e.stopPropagation(),N(b);break;case a.END:e.preventDefault(),e.stopPropagation(),N(w)}t&&(t=h?-t:t,(e.metaKey||e.ctrlKey||e.altKey)&&(t*=modifierMultiplier),e.preventDefault(),e.stopPropagation(),N(n.$viewValue+t))}).on("mousedown",function(){(function(){if(!p||o())return;if(angular.isUndefined(D))return;if(D<=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((w-b)/D);y||(y=angular.element("<canvas>").css("position","absolute"),m.append(y),C=y[0].getContext("2d"));var a,n=E();!n||n.height||n.width||(R(),n=P);y[0].width=n.width,y[0].height=n.height;for(var i=0;i<=t;i++){var r=K.getComputedStyle(m[0]);C.fillStyle=r.color||"black",a=Math.floor((g?n.height:n.width)*(i/t)),C.fillRect(g?0:a-1,g?a-1:0,g?n.width:2,g?2:n.height)}})(),i.mouseActive=!0,f.removeClass("md-focused"),X(function(){i.mouseActive=!1},100)}).on("focus",function(){!1===i.mouseActive&&f.addClass("md-focused")}).on("blur",function(){f.removeClass("md-focused"),r.removeClass("md-active"),function(){if(y&&C){var e=E();C.clearRect(0,0,e.width,e.height)}}()}).on("$md.pressdown",function(e){if(o())return;r.addClass("md-active"),r[0].focus(),R();var t=T(_(F(z(g?e.pointer.y:e.pointer.x))));i.$apply(function(){W(t),q(B(t))})}).on("$md.pressup",function(e){if(o())return;r.removeClass("md-dragging");var t=T(_(F(z(g?e.pointer.y:e.pointer.x))));i.$apply(function(){W(t),I()})}).on("$md.dragstart",function(e){if(o())return;L=!0,e.stopPropagation(),r.addClass("md-dragging"),O(e)}).on("$md.drag",function(e){if(!L)return;e.stopPropagation(),O(e)}).on("$md.dragend",function(e){if(!L)return;e.stopPropagation(),L=!1}),setTimeout($,0);var b,w,D,x,y,C,S=G.throttle($);function V(e){b=parseFloat(e),n.$viewValue=T(n.$modelValue,b,w),f.attr("aria-valuemin",e),$()}function k(e){w=parseFloat(e),n.$viewValue=T(n.$modelValue,b,w),f.attr("aria-valuemax",e),$()}function M(e){D=parseFloat(e)}function A(e){x=T(parseInt(e),0,6)}angular.element(K).on("resize",S),i.$on("$destroy",function(){angular.element(K).off("resize",S)}),n.$render=I,n.$viewChangeListeners.push(I),n.$formatters.push(T),n.$formatters.push(_);var P={};function R(){P=u[0].getBoundingClientRect()}function E(){return v(),P}function N(e){i.$evalAsync(function(){W(e)})}function W(e){n.$setViewValue(T(_(e)))}function I(){isNaN(n.$viewValue)&&(n.$viewValue=n.$modelValue),n.$viewValue=T(n.$viewValue);var e=B(n.$viewValue);i.modelValue=n.$viewValue,f.attr("aria-valuenow",n.$viewValue),q(e),d.text(n.$viewValue)}function T(e,t,a){if(angular.isNumber(e))return t=angular.isNumber(t)?t:b,a=angular.isNumber(a)?a:w,Math.max(t,Math.min(a,e))}function _(e){if(angular.isNumber(e)){var t=Math.round((e-b)/D)*D+b;return t=Math.round(t*Math.pow(10,x))/Math.pow(10,x),a&&a.fitInputWidthToTextLength&&U.debounce(function(){a.fitInputWidthToTextLength(t.toString().length)},100)(),t}}function q(e){var t;t=e;var a=100*(e=Math.max(0,Math.min(t||0,1)))+"%",n=h?100*(1-e)+"%":a;g?s.css("bottom",a):U.bidiProperty(s,"left","right",a),c.css(g?"height":"width",n),r.toggleClass(h?"md-max":"md-min",0===e),r.toggleClass(h?"md-min":"md-max",1===e)}R();var L=!1;function O(e){var t,a,n;p?(a=g?e.pointer.y:e.pointer.x,n=T(_(F(z(a)))),q(z(a)),d.text(n)):(t=g?e.pointer.y:e.pointer.x,i.$evalAsync(function(){W(F(z(t)))}))}function z(e){var t=(e-(g?P.top:P.left))/(g?P.height:P.width);return g||"rtl"!==U.bidi()||(t=1-t),Math.max(0,Math.min(1,g?1-t:t))}function F(e){return b+(h?1-e:e)*(w-b)}function B(e){var t=(e-b)/(w-b);return h?1-t:t}}}ngmaterial.components.slider=angular.module("material.components.slider");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.sticky');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdSticky(s,f,u,c){var a=u.checkStickySupport();return function(t,e,n){var r=e.controller("mdContent");if(r)if(a)e.css({position:a,top:0,"z-index":2});else{var o=r.$element.data("$$sticky");o||(o=function(t){var r,o=t.$element,i=f.throttle(e);return function(t){var e,n,r=200;function o(){+u.now()-n>r?(e=!1,t.triggerHandler("$scrollend")):(t.triggerHandler("$scroll"),f.throttle(o))}t.on("scroll touchmove",function(){e||(e=!0,f.throttle(o),t.triggerHandler("$scrollstart")),t.triggerHandler("$scroll"),n=+u.now()})}(o),o.on("$scrollstart",i),o.on("$scroll",function t(){var e=o.prop("scrollTop"),n=(t.prevScrollTop||0)<e;if(0!==(t.prevScrollTop=e)){if(n){if(r.next&&r.next.top<=e)return void c(r.next);if(r.current&&r.next&&r.next.top-e<=r.next.height)return void a(r.current,e+(r.next.top-r.next.height-e))}if(!n){if(r.current&&r.prev&&e<r.current.top)return void c(r.prev);if(r.next&&r.current&&e>=r.next.top-r.current.height)return void a(r.current,e+(r.next.top-e-r.current.height))}r.current&&a(r.current,e)}else c(null)}),r={prev:null,current:null,next:null,items:[],add:function(n,t){t.addClass("md-sticky-clone");var e={element:n,clone:t};return r.items.push(e),u.nextTick(function(){o.prepend(e.clone)}),i(),function(){r.items.forEach(function(t,e){t.element[0]===n[0]&&(r.items.splice(e,1),t.clone.remove())}),i()}},refreshElements:e};function e(){var t;r.items.forEach(l),r.items=r.items.sort(function(t,e){return t.top<e.top?-1:1});for(var e=o.prop("scrollTop"),n=r.items.length-1;0<=n;n--)if(e>r.items[n].top){t=r.items[n];break}c(t)}function l(t){var e=t.element[0];for(t.top=0,t.left=0,t.right=0;e&&e!==o[0];)t.top+=e.offsetTop,t.left+=e.offsetLeft,e.offsetParent&&(t.right+=e.offsetParent.offsetWidth-e.offsetWidth-e.offsetLeft),e=e.offsetParent;t.height=t.element.prop("offsetHeight");var n=u.floatingScrollbars()?"0":void 0;u.bidi(t.clone,"margin-left",t.left,n),u.bidi(t.clone,"margin-right",n,t.right)}function c(t){if(r.current!==t){r.current&&(a(r.current,null),n(r.current,null)),t&&n(t,"active"),r.current=t;var e=r.items.indexOf(t);r.next=r.items[e+1],r.prev=r.items[e-1],n(r.next,"next"),n(r.prev,"prev")}}function n(t,e){t&&t.state!==e&&(t.state&&(t.clone.attr("sticky-prev-state",t.state),t.element.attr("sticky-prev-state",t.state)),t.clone.attr("sticky-state",e),t.element.attr("sticky-state",e),t.state=e)}function a(t,e){t&&(null==e?t.translateY&&(t.translateY=null,t.clone.css(s.CSS.TRANSFORM,"")):(t.translateY=e,u.bidi(t.clone,s.CSS.TRANSFORM,"translate3d("+t.left+"px,"+e+"px,0)","translateY("+e+"px)")))}}(r),r.$element.data("$$sticky",o));var i=n||c(e.clone())(t),l=o.add(e,i);t.$on("$destroy",l)}}}goog.provide("ngmaterial.components.sticky"),goog.require("ngmaterial.components.content"),goog.require("ngmaterial.core"),MdSticky.$inject=["$mdConstant","$$rAF","$mdUtil","$compile"],angular.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",MdSticky),ngmaterial.components.sticky=angular.module("material.components.sticky");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.subheader');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdSubheaderDirective(o,c,m,s,u){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(a,i,e,r,t){m(i),i.addClass("_md"),s.prefixer().removeAttribute(i,"ng-repeat");var n=i[0].outerHTML;function d(e){return angular.element(e[0].querySelector(".md-subheader-content"))}e.$set("role","heading"),u.expect(i,"aria-level","2"),t(a,function(e){d(i).append(e)}),i.hasClass("md-no-sticky")||t(a,function(e){var r=c('<div class="md-subheader-wrapper" aria-hidden="true">'+n+"</div>")(a);s.nextTick(function(){d(r).append(e)}),o(a,i,r)})}}}goog.provide("ngmaterial.components.subheader"),goog.require("ngmaterial.components.sticky"),goog.require("ngmaterial.core"),MdSubheaderDirective.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil","$mdAria"],angular.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",MdSubheaderDirective),ngmaterial.components.subheader=angular.module("material.components.subheader");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.swipe');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function getDirective(e){i.$inject=["$parse"];var o="md"+e,c="$md."+e.toLowerCase();return i;function i(n){return{restrict:"A",link:function(t,e,i){var r=n(i[o]);e.on(c,function(e){var i=e.currentTarget;t.$applyAsync(function(){r(t,{$event:e,$target:{current:i}})})})}}}}goog.provide("ngmaterial.components.swipe"),goog.require("ngmaterial.core"),angular.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",getDirective("SwipeLeft")).directive("mdSwipeRight",getDirective("SwipeRight")).directive("mdSwipeUp",getDirective("SwipeUp")).directive("mdSwipeDown",getDirective("SwipeDown")),ngmaterial.components.swipe=angular.module("material.components.swipe");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.switch');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdSwitch(e,m,g,u,p,v,h){var n=e[0];return{restrict:"E",priority:g.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(n,a,e,t){t[0];var r=t[1]||m.fakeNgModel(),i=(t[2],null);null!=e.disabled?i=function(){return!0}:e.ngDisabled&&(i=u(e.ngDisabled));var o,d=angular.element(a[0].querySelector(".md-thumb-container")),l=angular.element(a[0].querySelector(".md-container")),s=angular.element(a[0].querySelector(".md-label"));p(function(){a.removeClass("md-dragging")}),c(n,a,e,t),i&&n.$watch(i,function(e){a.attr("tabindex",e?-1:0)}),e.$observe("mdInvert",function(e){var t=m.parseAttributeBoolean(e);t?a.prepend(s):a.prepend(l),a.toggleClass("md-inverted",t)}),v.register(l,"drag"),l.on("$md.dragstart",function(e){i&&i(n)||(e.stopPropagation(),a.addClass("md-dragging"),o={width:d.prop("offsetWidth")})}).on("$md.drag",function(e){if(o){e.stopPropagation(),e.srcEvent&&e.srcEvent.preventDefault();var t=e.pointer.distanceX/o.width,n=r.$viewValue?1+t:t;n=Math.max(0,Math.min(1,n)),d.css(g.CSS.TRANSFORM,"translate3d("+100*n+"%,0,0)"),o.translate=n}}).on("$md.dragend",function(e){var t;o&&(e.stopPropagation(),a.removeClass("md-dragging"),d.css(g.CSS.TRANSFORM,""),(r.$viewValue?o.translate<.5:.5<o.translate)&&(t=!r.$viewValue,n.$apply(function(){r.$setViewValue(t),r.$render()})),o=null,n.skipToggle=!0,h(function(){n.skipToggle=!1},1))})}}}}goog.provide("ngmaterial.components.switch"),goog.require("ngmaterial.components.checkbox"),goog.require("ngmaterial.core"),MdSwitch.$inject=["mdCheckboxDirective","$mdUtil","$mdConstant","$parse","$$rAF","$mdGesture","$timeout"],angular.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",MdSwitch),ngmaterial.components.switch=angular.module("material.components.switch");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.tabs');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdTabsPaginationService(){return{decreasePageOffset:function(e,t){var a,n,s=e.canvas,r=o(e);for(a=0;a<r.length;a++)if(r[a]>=t){n=r[a];break}return Math.max(0,n-s.clientWidth)},increasePageOffset:function(e,t){var a,n,s=e.canvas,r=d(e)-s.clientWidth,i=o(e);for(a=0;i.length,i[a]<=t+s.clientWidth;a++)n=i[a];return Math.min(r,n)},getTabOffsets:o,getTotalTabsWidth:d};function o(e){var t,a,n=0,s=[];for(t=0;t<e.tabs.length;t++)a=e.tabs[t],s.push(n),n+=a.offsetWidth;return s}function d(e){var t,a=0;for(t=0;t<e.tabs.length;t++)a+=e.tabs[t].offsetWidth;return a}}function MdTab(){return{require:"^?mdTabs",terminal:!0,compile:function(e,t){var a=d(e,"md-tab-label"),n=d(e,"md-tab-body");if(0===a.length&&(a=angular.element("<md-tab-label></md-tab-label>"),t.label?a.text(t.label):a.append(e.contents()),0===n.length)){var s=e.contents().detach();(n=angular.element("<md-tab-body></md-tab-body>")).append(s)}return e.append(a),n.html()&&e.append(n),r},scope:{active:"=?mdActive",disabled:"=?ngDisabled",select:"&?mdOnSelect",deselect:"&?mdOnDeselect",tabClass:"@mdTabClass"}};function r(e,t,a,n){if(n){var s=n.getTabElementIndex(t),r=d(t,"md-tab-body").remove(),i=d(t,"md-tab-label").remove(),o=n.insertTab({scope:e,parent:e.$parent,index:s,element:t,template:r.html(),label:i.html()},s);e.select=e.select||angular.noop,e.deselect=e.deselect||angular.noop,e.$watch("active",function(e){e&&n.select(o.getIndex(),!0)}),e.$watch("disabled",function(){n.refreshIndex()}),e.$watch(function(){return n.getTabElementIndex(t)},function(e){o.index=e,n.updateTabOrder()}),e.$on("$destroy",function(){n.removeTab(o)})}}function d(e,t){for(var a=e[0].children,n=0,s=a.length;n<s;n++){var r=a[n];if(r.tagName===t.toUpperCase())return angular.element(r)}return angular.element()}}function MdTabItem(){return{require:"^?mdTabs",link:function(e,t,a,n){n&&n.attachRipple(e,t)}}}function MdTabLabel(){return{terminal:!0}}function MdTabScroll(n){return{restrict:"A",compile:function(e,t){var a=n(t.mdTabScroll,null,!0);return function(t,e){e.on("wheel",function(e){t.$apply(function(){a(t,{$event:e})})})}}}}function MdTabsController(c,l,a,n,s,b,d,r,i,o,t,u,m){var f=this,g=!1,p=[],h=!1,T=!1;function x(t,e){var a=r.$normalize("md-"+t);function n(e){f[t]="false"!==e}e&&B(t,e),r.hasOwnProperty(a)&&n(r[a]),r.$observe(a,n)}function v(){h=!0,angular.element(a).off("resize",L)}function $(){var e=D();angular.element(e.wrapper).toggleClass("md-stretch-tabs",function(){switch(f.stretchTabs){case"always":return!0;case"never":return!1;default:return!f.shouldPaginate&&a.matchMedia("(max-width: 600px)").matches}}()),U()}function C(){f.shouldCenterTabs=A()}function I(t,e){if(t!==e){var a=D();angular.forEach(a.tabs,function(e){e.style.maxWidth=t+"px"}),angular.forEach(a.dummies,function(e){e.style.maxWidth=t+"px"}),b.nextTick(f.updateInkBarStyles)}}function y(e,t){e!==t&&(f.maxTabWidth=R(),f.shouldCenterTabs=A(),b.nextTick(function(){f.maxTabWidth=R(),N(f.selectedIndex)}))}function w(e){l[e?"removeClass":"addClass"]("md-no-tab-content")}function k(e){var t=D(),a=(f.shouldCenterTabs||K()?"":"-")+e+"px";a=a.replace("--",""),angular.element(t.paging).css(n.CSS.TRANSFORM,"translate("+a+", 0)"),c.$broadcast("$mdTabsPaginationChanged")}function M(e,t){e!==t&&D().tabs[e]&&(N(),_())}function S(e,t){e!==t&&(f.selectedIndex=E(e),f.lastSelectedIndex=t,f.updateInkBarStyles(),Y(),N(e),c.$broadcast("$mdTabsChanged"),f.tabs[t]&&f.tabs[t].scope.deselect(),f.tabs[e]&&f.tabs[e].scope.select())}function P(e,t){g||(f.focusIndex=f.selectedIndex=e),t&&f.noSelectClick||b.nextTick(function(){f.tabs[e].element.triggerHandler("click")},!1)}function L(){f.lastSelectedIndex=f.selectedIndex,f.offsetLeft=z(f.offsetLeft),b.nextTick(function(){f.updateInkBarStyles(),F()})}function W(e){angular.element(D().inkBar).toggleClass("ng-hide",e)}function O(e){l.toggleClass("md-dynamic-height",e)}function D(){var e={},t=l[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 A(){return f.centerTabs&&!f.shouldPaginate}function E(e){if(-1===e)return-1;var t,a,n=Math.max(f.tabs.length-e,e);for(t=0;t<=n;t++){if((a=f.tabs[e+t])&&!0!==a.scope.disabled)return a.getIndex();if((a=f.tabs[e-t])&&!0!==a.scope.disabled)return a.getIndex()}return e}function B(e,a,n){Object.defineProperty(f,e,{get:function(){return n},set:function(e){var t=n;n=e,a&&a(e,t)}})}function F(){f.maxTabWidth=R(),f.shouldPaginate=function(){var e;if(f.noPagination||!T)return!1;var t=l.prop("clientWidth");return angular.forEach(D().tabs,function(e){t-=e.offsetWidth}),e=t<0,D().paging.style.width=e?"999999px":void 0,e}()}function q(e){var t=0;return angular.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 H(e,t){var a,n=t?"focusIndex":"selectedIndex",s=f[n];for(a=s+e;f.tabs[a]&&f.tabs[a].scope.disabled;a+=e);a=(s+e+f.tabs.length)%f.tabs.length,f.tabs[a]&&(f[n]=a)}function _(){f.styleTabItemFocus="keyboard"===t.getLastInteractionType();var e=D().tabs[f.focusIndex];e&&e.focus()}function N(e){var t=D();if(angular.isNumber(e)||(e=f.focusIndex),t.tabs[e]&&!f.shouldCenterTabs){var a=t.tabs[e],n=a.offsetLeft,s=a.offsetWidth+n;if(0!==e)if(K()){var r=q(Array.prototype.slice.call(t.tabs,0,e)),i=q(Array.prototype.slice.call(t.tabs,0,e+1));f.offsetLeft=Math.min(f.offsetLeft,z(r)),f.offsetLeft=Math.max(f.offsetLeft,z(i-t.canvas.clientWidth))}else f.offsetLeft=Math.max(f.offsetLeft,z(s-t.canvas.clientWidth+32)),f.offsetLeft=Math.min(f.offsetLeft,z(n));else f.offsetLeft=0}}function j(){f.selectedIndex=E(f.selectedIndex),f.focusIndex=E(f.focusIndex)}function Y(){if(!f.dynamicHeight)return l.css("height","");if(!f.tabs.length)return p.push(Y);var e=D(),t=e.contents[f.selectedIndex],a=t?t.offsetHeight:0,n=e.wrapper.offsetHeight,s=a+n,r=l.prop("clientHeight");if(r!==s){"bottom"===l.attr("md-align-tabs")&&(r-=n,s-=n,void 0!==l.attr("md-border-bottom")&&++r),g=!0;var i={height:r+"px"},o={height:s+"px"};l.css(i),d(l,{from:i,to:o,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done(function(){l.css({transition:"none",height:""}),b.nextTick(function(){l.css("transition","")}),g=!1})}}function U(e,t){if(!f.noInkBar){var a=D();if(a.tabs[f.selectedIndex])if(f.tabs.length)if(l.prop("offsetParent")){var n=f.selectedIndex,s=a.paging.offsetWidth,r=a.tabs[n],i=r.offsetLeft,o=s-i-r.offsetWidth;if(f.shouldCenterTabs){var d=q(a.tabs);d<s&&e!==s&&t!==d&&u(U,0,!0,s,d)}!function(){var e=D(),t=f.selectedIndex,a=f.lastSelectedIndex,n=angular.element(e.inkBar);if(!angular.isNumber(a))return;n.toggleClass("md-left",t<a).toggleClass("md-right",a<t)}(),angular.element(a.inkBar).css({left:i+"px",right:o+"px"})}else(function e(){e.watcher||(e.watcher=c.$watch(function(){b.nextTick(function(){e.watcher&&l.prop("offsetParent")&&(e.watcher(),e.watcher=null,L())},!1)}))})();else p.push(f.updateInkBarStyles);else angular.element(a.inkBar).css({left:"auto",right:"auto"})}}function z(e){var t=D();if(!t.tabs.length||!f.shouldPaginate)return 0;var a=t.tabs[t.tabs.length-1],n=a.offsetLeft+a.offsetWidth;return e=K()?(e=Math.min(t.paging.offsetWidth-t.canvas.clientWidth,e),Math.max(0,e)):(e=Math.max(0,e),Math.min(n-t.canvas.clientWidth,e))}function K(){return"rtl"===b.bidi()}f.$onInit=function(){(function(t,e){var a=r.$normalize("md-"+t);e&&B(t,e);r.$observe(a,function(e){f[t]=e})})("stretchTabs",$),B("focusIndex",M,f.selectedIndex||0),B("offsetLeft",k,0),B("hasContent",w,!1),B("maxTabWidth",I,R()),B("shouldPaginate",y,!1),x("noInkBar",W),x("dynamicHeight",O),x("noPagination"),x("swipeContent"),x("noDisconnect"),x("autoselect"),x("noSelectClick"),x("centerTabs",C),x("enableDisconnect"),f.scope=c,f.parent=c.$parent,f.tabs=[],f.lastSelectedIndex=null,f.hasFocus=!1,f.styleTabItemFocus=!1,f.shouldCenterTabs=A(),f.tabContentPrefix="tab-content-",f.navigationHint="Use the left and right arrow keys to navigate between tabs",f.selectedIndex=f.selectedIndex||0,e=r.$mdTabsTemplate,t=angular.element(l[0].querySelector("md-tab-data")),t.html(e),i(t.contents())(f.parent),delete r.$mdTabsTemplate,c.$watch("$mdTabsCtrl.selectedIndex",S),angular.element(a).on("resize",L),c.$on("$destroy",v),o(l),b.nextTick(function(){Y(),N(),U(),f.tabs[f.selectedIndex]&&f.tabs[f.selectedIndex].scope.select(),T=!0,F()});var e,t},f.updatePagination=b.debounce(F,100),f.redirectFocus=_,f.attachRipple=function(e,t){var a=D(),n={colorElement:angular.element(a.inkBar)};s.attach(e,t,n)},f.insertTab=function(e,t){var a=T,n={getIndex:function(){return f.tabs.indexOf(s)},isActive:function(){return this.getIndex()===f.selectedIndex},isLeft:function(){return this.getIndex()<f.selectedIndex},isRight:function(){return this.getIndex()>f.selectedIndex},shouldRender:function(){return!f.noDisconnect||this.isActive()},hasFocus:function(){return f.styleTabItemFocus&&f.hasFocus&&this.getIndex()===f.focusIndex},id:b.nextUid(),hasContent:!(!e.template||!e.template.trim())},s=angular.extend(n,e);angular.isDefined(t)?f.tabs.splice(t,0,s):f.tabs.push(s);return p.forEach(function(e){b.nextTick(e)}),p=[],function(){var e,t=!1;for(e=0;e<f.tabs.length;e++)if(f.tabs[e].hasContent){t=!0;break}f.hasContent=t}(),b.nextTick(function(){F(),function(e){if(e.hasContent){var t=l[0].querySelectorAll('[md-tab-id="'+e.id+'"]');angular.element(t).attr("aria-controls",f.tabContentPrefix+e.id)}}(s),a&&f.autoselect&&b.nextTick(function(){b.nextTick(function(){P(f.tabs.indexOf(s))})})}),s},f.removeTab=function(e){if(h)return;var t=f.selectedIndex,a=f.tabs.splice(e.getIndex(),1)[0];j(),f.selectedIndex===t&&(a.scope.deselect(),f.tabs[f.selectedIndex]&&f.tabs[f.selectedIndex].scope.select());b.nextTick(function(){F(),f.offsetLeft=z(f.offsetLeft)})},f.select=P,f.scroll=function(e){if(!f.shouldPaginate)return;e.preventDefault(),e.deltaY?f.offsetLeft=z(f.offsetLeft+e.deltaY):e.deltaX&&(f.offsetLeft=z(f.offsetLeft+e.deltaX))},f.nextPage=function(){if(!f.canPageForward())return;var e=m.increasePageOffset(D(),f.offsetLeft);f.offsetLeft=z(e)},f.previousPage=function(){if(!f.canPageBack())return;var e=m.decreasePageOffset(D(),f.offsetLeft);f.offsetLeft=z(e)},f.keydown=function(e){switch(e.keyCode){case n.KEY_CODE.LEFT_ARROW:e.preventDefault(),H(-1,!0);break;case n.KEY_CODE.RIGHT_ARROW:e.preventDefault(),H(1,!0);break;case n.KEY_CODE.SPACE:case n.KEY_CODE.ENTER:e.preventDefault(),g||P(f.focusIndex);break;case n.KEY_CODE.TAB:f.focusIndex!==f.selectedIndex&&(f.focusIndex=f.selectedIndex)}},f.canPageForward=function(){var e=D(),t=e.tabs[e.tabs.length-1];if(K())return f.offsetLeft<e.paging.offsetWidth-e.canvas.offsetWidth;return t&&t.offsetLeft+t.offsetWidth>e.canvas.clientWidth+f.offsetLeft},f.canPageBack=function(){return 0<f.offsetLeft},f.refreshIndex=j,f.incrementIndex=H,f.getTabElementIndex=function(e){var t=l[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(t,e[0])},f.updateInkBarStyles=b.debounce(U,100),f.updateTabOrder=b.debounce(function(){var e=f.tabs[f.selectedIndex],t=f.tabs[f.focusIndex];f.tabs=f.tabs.sort(function(e,t){return e.index-t.index}),f.selectedIndex=f.tabs.indexOf(e),f.focusIndex=f.tabs.indexOf(t)},100),f.getFocusedTabId=function(){var e=f.tabs[f.focusIndex];return e&&e.id?"tab-item-"+e.id:null},1===angular.version.major&&angular.version.minor<=4&&this.$onInit()}function MdTabs(a){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="'+a.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="'+a.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 MdTabsDummyWrapper(d,c){return{require:"^?mdTabs",link:function(e,t,a,n){if(n){var s,r,i=function(){n.updatePagination(),n.updateInkBarStyles()};if("MutationObserver"in c){(s=new MutationObserver(i)).observe(t[0],{childList:!0,subtree:!0,characterData:!0}),r=s.disconnect.bind(s)}else{var o=d.debounce(i,15,null,!1);t.on("DOMSubtreeModified",o),r=t.off.bind(t,"DOMSubtreeModified",o)}e.$on("$destroy",function(){r()})}}}}function MdTabsTemplate(i,o){return{restrict:"A",link:function(e,t,a,n){if(!n)return;var s=n.enableDisconnect?e.compileScope.$new():e.compileScope;return t.html(e.template),i(t.contents())(s),o.nextTick(function(){e.$watch("connected",function(e){!1===e?n.enableDisconnect&&o.disconnectScope(s):r()}),e.$on("$destroy",r)});function r(){n.enableDisconnect&&o.reconnectScope(s)}},scope:{template:"=mdTabsTemplate",connected:"=?mdConnectedIf",compileScope:"=mdScope"},require:"^?mdTabs"}}goog.provide("ngmaterial.components.tabs"),goog.require("ngmaterial.components.icon"),goog.require("ngmaterial.core"),angular.module("material.components.tabs",["material.core","material.components.icon"]),angular.module("material.components.tabs").service("MdTabsPaginationService",MdTabsPaginationService),angular.module("material.components.tabs").directive("mdTab",MdTab),angular.module("material.components.tabs").directive("mdTabItem",MdTabItem),angular.module("material.components.tabs").directive("mdTabLabel",MdTabLabel),MdTabScroll.$inject=["$parse"],angular.module("material.components.tabs").directive("mdTabScroll",MdTabScroll),MdTabsController.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming","$mdInteraction","$timeout","MdTabsPaginationService"],angular.module("material.components.tabs").controller("MdTabsController",MdTabsController),MdTabs.$inject=["$$mdSvgRegistry"],angular.module("material.components.tabs").directive("mdTabs",MdTabs),MdTabsDummyWrapper.$inject=["$mdUtil","$window"],angular.module("material.components.tabs").directive("mdTabsDummyWrapper",MdTabsDummyWrapper),MdTabsTemplate.$inject=["$compile","$mdUtil"],angular.module("material.components.tabs").directive("mdTabsTemplate",MdTabsTemplate),ngmaterial.components.tabs=angular.module("material.components.tabs");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.toast');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdToastDirective(n){return{restrict:"E",link:function(t,e){e.addClass("_md"),t.$on("$destroy",function(){n.destroy()})}}}function MdToastProvider(t){n.$inject=["$mdToast","$scope","$log"],o.$inject=["$animate","$mdToast","$mdUtil","$mdMedia","$document"];var p,u="ok";function e(t){p=t}return t("$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(t,e){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:e.defaultTheme(),controllerAs:"toast",bindToController:!0}}]}).addMethod("updateTextContent",e).addMethod("updateContent",e);function n(e,n,o){this.$onInit=function(){var t=this;t.highlightAction&&(n.highlightClasses=["md-highlight",t.highlightClass]),t.action&&!t.actionKey&&o.warn("Toasts with actions should define an actionKey for accessibility.","Details: https://material.angularjs.org/latest/api/service/$mdToast#mdtoast-simple"),t.actionKey&&!t.actionHint&&(t.actionHint='Press Control-"'+t.actionKey+'" to '),t.dismissHint||(t.dismissHint="Press Escape to dismiss."),n.$watch(function(){return p},function(){t.content=p}),this.resolve=function(){e.hide(u)}}}function o(o,r,d,l,m){var c="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:function(t,a,s){p=s.textContent||s.content;var i=!l("gt-sm");a=d.extractElementByName(a,"md-toast",!0),s.element=a,s.onSwipe=function(t,e){var n=t.type.replace("$md.",""),o=n.replace("swipe","");"down"===o&&-1!==s.position.indexOf("top")&&!i||"up"===o&&(-1!==s.position.indexOf("bottom")||i)||("left"!==o&&"right"!==o||!i)&&(a.addClass("md-"+n),d.nextTick(r.cancel))},s.openClass=(e=s.position,l("gt-xs")?"md-toast-open-"+(-1<e.indexOf("top")?"top":"bottom"):"md-toast-open-bottom"),a.addClass(s.toastClass),s.parent.addClass(s.openClass),d.hasComputedStyle(s.parent,"position","static")&&s.parent.css("position","relative");var e;n=t.toast&&t.toast.actionKey?t.toast.actionKey:void 0,m.on("keydown",function(t){"Escape"===t.key&&r.hide(!1),n&&t.key===n&&t.ctrlKey&&r.hide(u)}),a.on(c,s.onSwipe),a.addClass(i?"md-bottom":s.position.split(" ").map(function(t){return"md-"+t}).join(" ")),s.parent&&s.parent.addClass("md-toast-animating");var n;return o.enter(a,s.parent).then(function(){s.parent&&s.parent.removeClass("md-toast-animating")})},onRemove:function(t,e,n){t.toast&&t.toast.actionKey&&m.off("keydown");e.off(c,n.onSwipe),n.parent&&n.parent.addClass("md-toast-animating");n.openClass&&n.parent.removeClass(n.openClass);return(!0===n.$destroy?e.remove():o.leave(e)).then(function(){n.parent&&n.parent.removeClass("md-toast-animating"),d.hasComputedStyle(n.parent,"position","static")&&n.parent.css("position","")})},toastClass:"",position:"bottom left",themable:!0,hideDelay:3e3,autoWrap:!0,transformTemplate:function(t,e){if(e.autoWrap&&t&&!/md-toast-content/g.test(t)){var n=document.createElement("md-template");n.innerHTML=t;for(var o=0;o<n.children.length;o++)if("MD-TOAST"===n.children[o].nodeName){var a=angular.element('<div class="md-toast-content">');a.append(angular.element(n.children[o].childNodes)),n.children[o].appendChild(a[0])}return n.innerHTML}return t||""}}}}goog.provide("ngmaterial.components.toast"),goog.require("ngmaterial.components.button"),goog.require("ngmaterial.core"),MdToastDirective.$inject=["$mdToast"],MdToastProvider.$inject=["$$interimElementProvider"],angular.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",MdToastDirective).provider("$mdToast",MdToastProvider),ngmaterial.components.toast=angular.module("material.components.toast");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.toolbar');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function mdToolbarDirective(p,h,$,n,v){var S=angular.bind(null,$.supplant,"translate3d(0,{0}px,0)");return{template:"",restrict:"E",link:function(u,g,f){g.addClass("_md"),n(g),$.nextTick(function(){g.addClass("_md-toolbar-transitions")},!1),angular.isDefined(f.mdScrollShrink)&&function(){var t,a,r=angular.noop,e=0,i=0,l=f.mdShrinkSpeedFactor||.5,c=p.throttle(o),m=$.debounce(n,5e3);u.$on("$mdContentLoaded",s),f.$observe("mdScrollShrink",function(n){var o=g.parent().find("md-content");!a&&o.length&&s(null,o),!1===(n=u.$eval(n))?r():r=d()}),f.ngShow&&u.$watch(f.ngShow,n);f.ngHide&&u.$watch(f.ngHide,n);function s(n,o){o&&g.parent()[0]===o.parent()[0]&&(a&&a.off("scroll",c),a=o,r=d())}function o(n){var o=n?n.target.scrollTop:i;m(),e=Math.min(t/l,Math.max(0,e+o-i)),g.css(h.CSS.TRANSFORM,S([-e*l])),a.css(h.CSS.TRANSFORM,S([(t-e)*l])),i=o,$.nextTick(function(){var n=g.hasClass("md-whiteframe-z1");n&&!e?v.removeClass(g,"md-whiteframe-z1"):!n&&e&&v.addClass(g,"md-whiteframe-z1")})}function d(){return a?(a.on("scroll",c),a.attr("scroll-shrink","true"),$.nextTick(n,!1),function(){a.off("scroll",c),a.attr("scroll-shrink","false"),n()}):angular.noop}function n(){var n=-(t=g.prop("offsetHeight"))*l+"px";a.css({"margin-top":n,"margin-bottom":n}),o()}u.$on("$destroy",r)}()}}}goog.provide("ngmaterial.components.toolbar"),goog.require("ngmaterial.components.content"),goog.require("ngmaterial.core"),mdToolbarDirective.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate"],angular.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",mdToolbarDirective),ngmaterial.components.toolbar=angular.module("material.components.toolbar");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.tooltip');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdTooltipDirective(y,g,E,w,x,$,T,P){var D="focus touchstart mouseenter",O="blur touchcancel mouseleave",V={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 n,e,r,l,s,c="md-tooltip-"+$.nextUid(),u=$.getParentWithPointerEvents(o),m=E.throttle(b),p=!1,f=null;function t(){a.mdZIndex=a.mdZIndex||100,a.mdDelay=a.mdDelay||0,V[a.mdDirection]||(a.mdDirection="bottom")}function i(e){var t=e||x(o.text().trim())(a.$parent);(!u.attr("aria-label")&&!u.attr("aria-labelledby")||u.attr("md-labeled-by-tooltip"))&&(u.attr("aria-label",t),u.attr("md-labeled-by-tooltip")||u.attr("md-labeled-by-tooltip",c))}function b(){t(),l&&l.panelEl&&l.panelEl.removeClass(n),n="md-origin-"+a.mdDirection,e=V[a.mdDirection],r=T.newPanelPosition().relativeTo(u).addPanelPosition(e.x,e.y),l&&l.panelEl&&(l.panelEl.addClass(n),l.updatePosition(r))}function h(e){h.queued&&h.value===!!e||!h.queued&&a.mdVisible===!!e||(h.value=!!e,h.queued||(e?(h.queued=!0,s=y(function(){a.mdVisible=h.value,h.queued=!1,s=null,a.visibleWatcher||v(a.mdVisible)},a.mdDelay)):$.nextTick(function(){a.mdVisible=!1,a.visibleWatcher||v(!1)})))}function v(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(!l){var e=angular.element(document.body),t=T.newPanelAnimation().openFrom(u).closeTo(u).withAnimation({open:"md-show",close:"md-hide"}),i={id:c,attachTo:e,contentElement:o,propagateContainerEvents:!0,panelClass:"md-tooltip",animation:t,position:r,zIndex:a.mdZIndex,focusOnOpen:!1,onDomAdded:function(){l.panelEl.addClass(n)}};l=T.create(i)}l.open().then(function(){l.panelEl.attr("role","tooltip")})}():l&&l.close()}t(),i(),o.detach(),b(),function(){if(u[0]&&"MutationObserver"in g){var e=new MutationObserver(function(e){e.some(function(e){return"disabled"===e.attributeName&&u[0].disabled})});e.observe(u[0],{attributes:!0})}function t(){h(!1)}function i(){f=document.activeElement===u[0]}function o(e){"focus"===e.type&&f?f=!1:a.mdVisible||(u.on(O,n),h(!0),"touchstart"===e.type&&u.one("touchend",function(){$.nextTick(function(){w.one("touchend",n)},!1)}))}function n(){((a.hasOwnProperty("mdAutohide")?a.mdAutohide:d.hasOwnProperty("mdAutohide"))||p||w[0].activeElement!==u[0])&&(s&&(y.cancel(s),h.queued=!1,s=null),u.off(O,n),u.triggerHandler("blur"),h(!1)),p=!1}function r(){p=!0}function l(){P.deregister("scroll",t,!0),P.deregister("blur",i),P.deregister("resize",m),u.off(D,o).off(O,n).off("mousedown",r),n(),e&&e.disconnect()}f=!1,P.register("scroll",t,!0),P.register("blur",i),P.register("resize",m),a.$on("$destroy",l),u.on("mousedown",r),u.on(D,o)}(),function(){if(o[0]&&"MutationObserver"in g){var e=new MutationObserver(function(e){e.forEach(function(e){"md-visible"!==e.attributeName||a.visibleWatcher||(a.visibleWatcher=a.$watch("mdVisible",v))})});e.observe(o[0],{attributes:!0}),d.hasOwnProperty("mdVisible")&&(a.visibleWatcher=a.$watch("mdVisible",v))}else a.visibleWatcher=a.$watch("mdVisible",v);a.$watch("mdDirection",b),o.one("$destroy",t),u.one("$destroy",t),a.$on("$destroy",function(){h(!1),l&&l.destroy(),e&&e.disconnect(),o.remove()}),-1<o.text().indexOf(x.startSymbol())&&a.$watch(function(){return o.text().trim()},i);function t(){a.$destroy()}}()}}}function MdTooltipRegistry(){var r={},l=angular.element(window);return{register:function(e,t,i){var o=r[e]=r[e]||[];o.length||(i?window.addEventListener(e,a,!0):l.on(e,a));-1===o.indexOf(t)&&o.push(t)},deregister:function(e,t,i){var o=r[e],n=o?o.indexOf(t):-1;-1<n&&(o.splice(n,1),0===o.length&&(i?window.removeEventListener(e,a,!0):l.off(e,a)))}};function a(t){r[t.type]&&r[t.type].forEach(function(e){e.call(this,t)},this)}}goog.provide("ngmaterial.components.tooltip"),goog.require("ngmaterial.components.panel"),goog.require("ngmaterial.core"),MdTooltipDirective.$inject=["$timeout","$window","$$rAF","$document","$interpolate","$mdUtil","$mdPanel","$$mdTooltipRegistry"],angular.module("material.components.tooltip",["material.core","material.components.panel"]).directive("mdTooltip",MdTooltipDirective).service("$$mdTooltipRegistry",MdTooltipRegistry),ngmaterial.components.tooltip=angular.module("material.components.tooltip");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.truncate');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdTruncateDirective(){return{restrict:"AE",controller:MdTruncateController}}function MdTruncateController(e){e.addClass("md-truncate")}goog.provide("ngmaterial.components.truncate"),goog.require("ngmaterial.core"),MdTruncateController.$inject=["$element"],angular.module("material.components.truncate",["material.core"]).directive("mdTruncate",MdTruncateDirective),ngmaterial.components.truncate=angular.module("material.components.truncate");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.virtualRepeat');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function VirtualRepeatContainerDirective(){return{controller:VirtualRepeatContainerController,template:virtualRepeatContainerTemplate,compile:function(t,e){t.addClass("md-virtual-repeat-container").addClass(e.hasOwnProperty("mdOrientHorizontal")?"md-orient-horizontal":"md-orient-vertical")}}}function virtualRepeatContainerTemplate(t){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">'+t[0].innerHTML+"</div></div>"}goog.provide("ngmaterial.components.virtualRepeat"),goog.require("ngmaterial.components.showHide"),goog.require("ngmaterial.core"),VirtualRepeatContainerController.$inject=["$$rAF","$mdUtil","$mdConstant","$parse","$rootScope","$window","$scope","$element","$attrs"],VirtualRepeatController.$inject=["$scope","$element","$attrs","$browser","$document","$rootScope","$$rAF","$mdUtil"],VirtualRepeatDirective.$inject=["$parse"],angular.module("material.components.virtualRepeat",["material.core","material.components.showHide"]).directive("mdVirtualRepeatContainer",VirtualRepeatContainerDirective).directive("mdVirtualRepeat",VirtualRepeatDirective).directive("mdForceHeight",ForceHeightDirective);var NUM_EXTRA=3;function VirtualRepeatContainerController(t,i,e,r,s,n,o,l,a){this.$rootScope=s,this.$scope=o,this.$element=l,this.$attrs=a,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=e.ELEMENT_MAX_PIXELS,this.$attrs.mdTopIndex?(this.bindTopIndex=r(this.$attrs.mdTopIndex),this.topIndex=this.bindTopIndex(this.$scope),angular.isDefined(this.topIndex)||(this.topIndex=0,this.bindTopIndex.assign(this.$scope,0)),this.$scope.$watch(this.bindTopIndex,angular.bind(this,function(t){t!==this.topIndex&&this.scrollToIndex(t)}))):this.topIndex=0,this.scroller=l[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 h=angular.bind(this,this.updateSize);t(angular.bind(this,function(){h();var t=i.debounce(h,10,null,!1),e=angular.element(n);this.size||t(),e.on("resize",t),o.$on("$destroy",function(){e.off("resize",t)}),o.$emit("$md-resize-enable"),o.$on("$md-resize",h)}))}function VirtualRepeatDirective(r){return{controller:VirtualRepeatController,priority:1e3,require:["mdVirtualRepeat","^^mdVirtualRepeatContainer"],restrict:"A",terminal:!0,transclude:"element",compile:function(t,e){var i=e.mdVirtualRepeat.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)\s*$/),n=i[1],o=r(i[2]),l=e.mdExtraName&&r(e.mdExtraName);return function(t,e,i,r,s){r[0].link_(r[1],s,n,o,l)}}}}function VirtualRepeatController(t,e,i,r,s,n,o,l){this.$scope=t,this.$element=e,this.$attrs=i,this.$browser=r,this.$document=s,this.$mdUtil=l,this.$rootScope=n,this.$$rAF=o,this.onDemand=l.parseAttributeBoolean(i.mdOnDemand),this.browserCheckUrlChange=r.$$checkUrlChange,this.newStartIndex=0,this.newEndIndex=0,this.newVisibleEnd=0,this.startIndex=0,this.endIndex=0,this.itemSize=t.$eval(i.mdItemSize)||null,this.isFirstRender=!0,this.isVirtualRepeatUpdating_=!1,this.itemsLength=0,this.unwatchItemSize_=angular.noop,this.blocks={},this.pooledBlocks=[],t.$on("$destroy",angular.bind(this,this.cleanupBlocks_))}function VirtualRepeatModelArrayLike(t){if(!angular.isFunction(t.getItemAtIndex)||!angular.isFunction(t.getLength))throw Error("When md-on-demand is enabled, the Object passed to md-virtual-repeat must implement functions getItemAtIndex() and getLength().");this.model=t}function ForceHeightDirective(t){return{restrict:"A",link:function(t,e,i){var r=t.$eval(i.mdForceHeight)||null;r&&e&&(e[0].style.height=r)}}}VirtualRepeatContainerController.prototype.register=function(t){this.repeater=t,angular.element(this.scroller).on("scroll wheel touchmove touchend",angular.bind(this,this.handleScroll_))},VirtualRepeatContainerController.prototype.isHorizontal=function(){return this.horizontal},VirtualRepeatContainerController.prototype.getSize=function(){return this.size},VirtualRepeatContainerController.prototype.setSize_=function(t){var e=this.getDimensionName_();this.size=t,this.$element[0].style[e]=t+"px"},VirtualRepeatContainerController.prototype.unsetSize_=function(){this.$element[0].style[this.getDimensionName_()]=this.oldElementSize,this.oldElementSize=null},VirtualRepeatContainerController.prototype.updateSize=function(){if(!this.originalSize){var t=this.isHorizontal()?this.$element[0].clientWidth:this.$element[0].clientHeight;t&&(this.size=t),this.handleScroll_(),this.repeater&&this.repeater.containerUpdated()}},VirtualRepeatContainerController.prototype.getScrollSize=function(){return this.scrollSize},VirtualRepeatContainerController.prototype.getDimensionName_=function(){return this.isHorizontal()?"width":"height"},VirtualRepeatContainerController.prototype.sizeScroller_=function(t){var e=this.getDimensionName_(),i=this.isHorizontal()?"height":"width";if(this.sizer.innerHTML="",t<this.maxElementPixels)this.sizer.style[e]=t+"px";else{this.sizer.style[e]="auto",this.sizer.style[i]="auto";var r=Math.floor(t/this.maxElementPixels),s=document.createElement("div");s.style[e]=this.maxElementPixels+"px",s.style[i]="1px";for(var n=0;n<r;n++)this.sizer.appendChild(s.cloneNode(!1));s.style[e]=t-r*this.maxElementPixels+"px",this.sizer.appendChild(s)}},VirtualRepeatContainerController.prototype.autoShrink_=function(t){var e=Math.max(t,this.autoShrinkMin*this.repeater.getItemSize());if(this.autoShrink&&e!==this.size){null===this.oldElementSize&&(this.oldElementSize=this.$element[0].style[this.getDimensionName_()]);var i=this.originalSize||this.size;if(!i||e<i)this.originalSize||(this.originalSize=this.size),this.setSize_(e);else if(null!==this.originalSize){this.unsetSize_();var r=this.originalSize;this.originalSize=null,r||this.updateSize(),this.setSize_(r||this.size)}this.repeater.containerUpdated()}},VirtualRepeatContainerController.prototype.setScrollSize=function(t){var e=t+this.offsetSize;this.scrollSize!==e&&(this.sizeScroller_(e),this.autoShrink_(e),this.scrollSize=e)},VirtualRepeatContainerController.prototype.getScrollOffset=function(){return this.scrollOffset},VirtualRepeatContainerController.prototype.scrollTo=function(t){this.scroller[this.isHorizontal()?"scrollLeft":"scrollTop"]=t,this.handleScroll_()},VirtualRepeatContainerController.prototype.scrollToIndex=function(t){var e=this.repeater.getItemSize(),i=this.repeater.itemsLength;i<t&&(t=i-1),this.scrollTo(e*t)},VirtualRepeatContainerController.prototype.resetScroll=function(){this.scrollTo(0)},VirtualRepeatContainerController.prototype.handleScroll_=function(){var t="rtl"!==document.dir&&"rtl"!==document.body.dir;t||this.maxSize||(this.scroller.scrollLeft=this.scrollSize,this.maxSize=this.scroller.scrollLeft);var e=this.isHorizontal()?t?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 i=this.repeater.getItemSize();if(i){var r=Math.max(0,Math.floor(e/i)-NUM_EXTRA),s=(this.isHorizontal()?"translateX(":"translateY(")+(!this.isHorizontal()||t?r*i:-r*i)+"px)";if(this.scrollOffset=e,this.offsetter.style.webkitTransform=s,this.offsetter.style.transform=s,this.bindTopIndex){var n=Math.floor(e/i);n!==this.topIndex&&n<this.repeater.getItemCount()&&(this.topIndex=n,this.bindTopIndex.assign(this.$scope,n),this.$rootScope.$$phase||this.$scope.$digest())}this.repeater.containerUpdated()}}},VirtualRepeatController.Block,VirtualRepeatController.prototype.link_=function(t,e,i,r,s){this.container=t,this.transclude=e,this.repeatName=i,this.rawRepeatListExpression=r,this.extraName=s,this.sized=!1,this.repeatListExpression=angular.bind(this,this.repeatListExpression_),this.container.register(this)},VirtualRepeatController.prototype.cleanupBlocks_=function(){angular.forEach(this.pooledBlocks,function(t){t.element.remove()})},VirtualRepeatController.prototype.readItemSize_=function(){if(!this.itemSize){this.items=this.repeatListExpression(this.$scope),this.parentNode=this.$element[0].parentNode;var t=this.getBlock_(0);t.element[0].parentNode||this.parentNode.appendChild(t.element[0]),this.itemSize=t.element[0][this.container.isHorizontal()?"offsetWidth":"offsetHeight"]||null,this.blocks[0]=t,this.poolBlock_(0),this.itemSize&&this.containerUpdated()}},VirtualRepeatController.prototype.repeatListExpression_=function(t){var e=this.rawRepeatListExpression(t);if(this.onDemand&&e){var i=new VirtualRepeatModelArrayLike(e);return i.$$includeIndexes(this.newStartIndex,this.newVisibleEnd),i}return e},VirtualRepeatController.prototype.containerUpdated=function(){if(!this.itemSize)return this.unwatchItemSize_&&this.unwatchItemSize_!==angular.noop&&this.unwatchItemSize_(),this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,angular.bind(this,function(t){t&&t.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,angular.bind(this,function(t,e){this.isVirtualRepeatUpdating_||this.virtualRepeatUpdate_(t,e)}))),this.updateIndexes_(),(this.newStartIndex!==this.startIndex||this.newEndIndex!==this.endIndex||this.container.getScrollOffset()>this.container.getScrollSize())&&(this.items instanceof VirtualRepeatModelArrayLike&&this.items.$$includeIndexes(this.newStartIndex,this.newEndIndex),this.virtualRepeatUpdate_(this.items,this.items))},VirtualRepeatController.prototype.getItemSize=function(){return this.itemSize},VirtualRepeatController.prototype.getItemCount=function(){return this.itemsLength},VirtualRepeatController.prototype.virtualRepeatUpdate_=function(t,e){this.isVirtualRepeatUpdating_=!0;var i=t&&t.length||0,r=!1;if(this.items&&i<this.items.length&&0!==this.container.getScrollOffset()){this.items=t;var s=this.container.getScrollOffset();this.container.resetScroll(),this.container.scrollTo(s)}i!==this.itemsLength&&(r=!0,this.itemsLength=i),((this.items=t)!==e||r)&&this.updateIndexes_(),this.parentNode=this.$element[0].parentNode,r&&this.container.setScrollSize(i*this.itemSize),Object.keys(this.blocks).forEach(function(t){var e=parseInt(t,10);(e<this.newStartIndex||e>=this.newEndIndex)&&this.poolBlock_(e)},this),this.$browser.$$checkUrlChange=angular.noop;var n,o,l=[],a=[];for(n=this.newStartIndex;n<this.newEndIndex&&null==this.blocks[n];n++)o=this.getBlock_(n),this.updateBlock_(o,n),l.push(o);for(;null!=this.blocks[n];n++)this.updateBlock_(this.blocks[n],n);for(var h=n-1;n<this.newEndIndex;n++)o=this.getBlock_(n),this.updateBlock_(o,n),a.push(o);if(l.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(l),this.$element[0].nextSibling),a.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(a),this.blocks[h]&&this.blocks[h].element[0].nextSibling),this.$browser.$$checkUrlChange=this.browserCheckUrlChange,this.startIndex=this.newStartIndex,this.endIndex=this.newEndIndex,this.isFirstRender){this.isFirstRender=!1;var p=this.$attrs.mdStartIndex?this.$scope.$eval(this.$attrs.mdStartIndex):this.container.topIndex;this.$mdUtil.nextTick(function(){this.container.scrollToIndex(p)}.bind(this))}this.isVirtualRepeatUpdating_=!1},VirtualRepeatController.prototype.getBlock_=function(i){return this.pooledBlocks.length?this.pooledBlocks.pop():(this.transclude(angular.bind(this,function(t,e){r={element:t,new:!0,scope:e},this.updateScope_(e,i),this.parentNode.appendChild(t[0])})),r);var r},VirtualRepeatController.prototype.updateBlock_=function(t,e){((this.blocks[e]=t).new||t.scope.$index!==e||t.scope[this.repeatName]!==this.items[e])&&(t.new=!1,this.updateScope_(t.scope,e),this.$rootScope.$$phase||t.scope.$digest())},VirtualRepeatController.prototype.updateScope_=function(t,e){t.$index=e,t[this.repeatName]=this.items&&this.items[e],this.extraName&&(t[this.extraName(this.$scope)]=this.items[e])},VirtualRepeatController.prototype.poolBlock_=function(t){this.pooledBlocks.push(this.blocks[t]),this.parentNode.removeChild(this.blocks[t].element[0]),delete this.blocks[t]},VirtualRepeatController.prototype.domFragmentFromBlocks_=function(t){var e=this.$document[0].createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element[0])}),e},VirtualRepeatController.prototype.updateIndexes_=function(){var t=this.items?this.items.length:0,e=Math.ceil(this.container.getSize()/this.itemSize);this.newStartIndex=Math.max(0,Math.min(t-e,Math.floor(this.container.getScrollOffset()/this.itemSize))),this.newVisibleEnd=this.newStartIndex+e+NUM_EXTRA,this.newEndIndex=Math.min(t,this.newVisibleEnd),this.newStartIndex=Math.max(0,this.newStartIndex-NUM_EXTRA)},VirtualRepeatModelArrayLike.prototype.$$includeIndexes=function(t,e){for(var i=t;i<e;i++)this.hasOwnProperty(i)||(this[i]=this.model.getItemAtIndex(i));this.length=this.model.getLength()},ForceHeightDirective.$inject=["$mdUtil"],ngmaterial.components.virtualRepeat=angular.module("material.components.virtualRepeat");

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ goog.provide('ngmaterial.components.whiteframe');

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
function MdWhiteframeDirective(m){return{link:function(e,r,t){var i="";t.$observe("mdWhiteframe",function(e){-1!=(e=parseInt(e,10)||4)&&(24<e||e<1)&&(m.warn("md-whiteframe attribute value is invalid. It should be a number between 1 and 24",r[0]),e=4);var a=-1==e?"":"md-whiteframe-"+e+"dp";t.$updateClass(a,i),i=a})}}}goog.provide("ngmaterial.components.whiteframe"),goog.require("ngmaterial.core"),MdWhiteframeDirective.$inject=["$log"],angular.module("material.components.whiteframe",["material.core"]).directive("mdWhiteframe",MdWhiteframeDirective),ngmaterial.components.whiteframe=angular.module("material.components.whiteframe");

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,ie,t){"use strict";ie.module("material.components.autocomplete",["material.core","material.components.icon","material.components.virtualRepeat"]),n.$inject=["$scope","$element","$mdUtil","$mdConstant","$mdTheming","$window","$animate","$rootElement","$attrs","$q","$log","$mdLiveAnnouncer"],ie.module("material.components.autocomplete").controller("MdAutocompleteCtrl",n);var le=48,re=5,ae=8,ce=2,de="standard",ue="virtual";function n(p,h,f,t,n,e,o,i,g,a,l,r){var c,d,u,s=this,m=p.itemsExpr.split(/ in /i),$=m[1],x=null,C={},b=!1,v=[],A=!1,w=0,T=null,y=null,M=f.debounce(function(){s.hidden||D()}),L=ue;c="hidden",d=function(e,t){!e&&t?(D(),Q(!0,R.Count|R.Selected),x&&(f.disableScrollAround(x.ul),T=function(e){function t(e){e.preventDefault()}return e.on("wheel",t),e.on("touchmove",t),function(){e.off("wheel",t),e.off("touchmove",t)}}(ie.element(x.wrap)))):e&&!t&&(f.enableScrolling(),T&&(T(),T=null))},u=!0,Object.defineProperty(s,c,{get:function(){return u},set:function(e){var t=u;d(u=e,t)}}),s.scope=p,s.parent=p.$parent,s.itemName=m[0],s.matches=[],s.loading=!1,s.hidden=!0,s.index=null,s.id=f.nextUid(),s.isDisabled=null,s.isRequired=null,s.isReadonly=null,s.hasNotFound=!1,s.selectedMessage=p.selectedMessage||"selected",s.keydown=function(e){switch(e.keyCode){case t.KEY_CODE.DOWN_ARROW:if(s.loading||W())return;e.stopPropagation(),e.preventDefault(),s.index=Math.min(s.index+1,s.matches.length-1),X(),Q(!1,R.Selected);break;case t.KEY_CODE.UP_ARROW:if(s.loading||W())return;e.stopPropagation(),e.preventDefault(),s.index=s.index<0?s.matches.length-1:Math.max(0,s.index-1),X(),Q(!1,R.Selected);break;case t.KEY_CODE.TAB:if(O(),s.hidden||s.loading||s.index<0||s.matches.length<1)return;Y(s.index);break;case t.KEY_CODE.ENTER:if(s.hidden||s.loading||s.index<0||s.matches.length<1)return;if(W())return;e.stopImmediatePropagation(),e.preventDefault(),Y(s.index);break;case t.KEY_CODE.ESCAPE:if(e.preventDefault(),!(z("blur")||!s.hidden||s.loading||z("clear")&&p.searchText))return;e.stopPropagation(),G(),p.searchText&&z("clear")&&J(),s.hidden=!0,z("blur")&&function(e){e&&(A=b=!1);x.input.blur()}(!0)}},s.blur=function(e){A=!1,b||(s.hidden=H(),oe("ngBlur",{$event:e}))},s.focus=function(e){A=!0,_()&&K()&&te();s.hidden=H(),oe("ngFocus",{$event:e})},s.clear=function(){G(),J()},s.select=Y,s.listEnter=function(){b=!0},s.listLeave=O,s.mouseUp=function(){x.input.focus()},s.getCurrentDisplayValue=U,s.registerSelectedItemWatcher=function(e){-1===v.indexOf(e)&&v.push(e)},s.unregisterSelectedItemWatcher=function(e){var t=v.indexOf(e);-1!==t&&v.splice(t,1)},s.notFoundVisible=ee,s.loadingIsVisible=function(){return s.loading&&!W()},s.positionDropdown=D;var I,R={Count:1,Selected:2};return f.initOptionalProperties(p,g,{searchText:"",selectedItem:null,clearButton:!1,disableVirtualRepeat:!1}),n(h),I=parseInt(p.delay,10)||0,g.$observe("disabled",function(e){s.isDisabled=f.parseAttributeBoolean(e,!1)}),g.$observe("required",function(e){s.isRequired=f.parseAttributeBoolean(e,!1)}),g.$observe("readonly",function(e){s.isReadonly=f.parseAttributeBoolean(e,!1)}),p.$watch("searchText",I?f.debounce(N,I):N),p.$watch("selectedItem",B),ie.element(e).on("resize",M),p.$on("$destroy",k),void f.nextTick(function(){var e;e=function(){var e,t;for(e=h;e.length&&(t=e.attr("md-autocomplete-snap"),!ie.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}}(),(x={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=x.ul.getElementsByTagName("li"),x.$=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=ie.element(e[n]));return t}(x),L=x.scrollContainer.classList.contains("md-standard-list-container")?de:ue,y=x.$.input.controller("ngModel"),x.$.root.length&&(n(x.$.scrollContainer),x.$.scrollContainer.detach(),x.$.root.append(x.$.scrollContainer),o.pin&&o.pin(x.$.scrollContainer,i)),p.autofocus&&h.on("focus",S),p.inputAriaDescribedBy&&x.input.setAttribute("aria-describedby",p.inputAriaDescribedBy),p.floatingLabel||(p.inputAriaLabel?x.input.setAttribute("aria-label",p.inputAriaLabel):p.inputAriaLabelledBy?x.input.setAttribute("aria-labelledby",p.inputAriaLabelledBy):p.placeholder&&x.input.setAttribute("aria-label",p.placeholder))});function E(){p.requireMatch&&y&&y.$setValidity("md-require-match",!!p.selectedItem||!p.searchText)}function D(){if(!x)return f.nextTick(D,!1,p);var e,t=(p.dropdownItems||re)*le,n=x.wrap.getBoundingClientRect(),o=x.snap.getBoundingClientRect(),i=x.root.getBoundingClientRect(),l=o.bottom-i.top,r=i.bottom-o.top,a=n.left-i.left,c=n.width,d=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}(),u=p.dropdownPosition,s=i.bottom-o.bottom-ae+f.getViewportTop(),m=o.top-ae;u||(u=t<s?"bottom":t<m?"top":s<m?"top":"bottom"),g.mdFloatingLabel&&(a+=ce,c-=2*ce),(e={left:a+"px",minWidth:c+"px",maxWidth:Math.max(n.right-i.left,i.right-n.left)-ae+"px"}).maxHeight="top"===u?(e.top="auto",e.bottom=r+"px",Math.min(t,m)+"px"):(s=i.bottom-n.bottom-ae+f.getViewportTop(),e.top=l-d+"px",e.bottom="auto",Math.min(t,s)+"px"),x.$.scrollContainer.css(e),f.nextTick(function(){var e=x.scrollContainer.getBoundingClientRect(),t={};e.right>i.right&&(t.left=n.right-e.width+"px");x.$.scrollContainer.css(t)},!1,p)}function S(){x.input.focus()}function k(){if(s.hidden||f.enableScrolling(),ie.element(e).off("resize",M),x){ie.forEach(["ul","scroller","scrollContainer","input"],function(e){x.$[e].remove()})}}function O(){A||s.hidden||x.input.focus(),b=!1,s.hidden=H()}function B(o,i){E(),o?q(o).then(function(e){var t,n;p.searchText=e,t=o,n=i,v.forEach(function(e){e(t,n)})}):i&&p.searchText&&q(i).then(function(e){ie.isString(p.searchText)&&e.toString().toLowerCase()===p.searchText.toLowerCase()&&(p.searchText="")}),o!==i&&ie.isFunction(p.itemChange)&&p.itemChange(P(p.selectedItem))}function N(t,n){s.index=p.autoselect?0:-1,t!==n&&(E(),q(p.selectedItem).then(function(e){t!==e&&(p.selectedItem=null,t!==n&&ie.isFunction(p.textChange)&&p.textChange(),K()?te():(V(!(s.matches=[])),Q(!0,R.Count)))}))}function F(){return ie.isNumber(p.minLength)?p.minLength:1}function q(e){return a.when((t=e,(t&&p.itemText?p.itemText(P(t)):null)||e)).then(function(e){return e&&!ie.isString(e)&&l.warn("md-autocomplete: Could not resolve display value to a string. Please check the `md-item-text` attribute."),e});var t}function P(e){if(e){var t={};return s.itemName&&(t[s.itemName]=e),t}}function V(e){s.loading!==e&&(s.loading=e),s.hidden=H()}function H(){return!function(){{if(s.isReadonly)return!1;if(!_())return!1}return K()&&j()||ee()}()}function _(){return!(s.loading&&!j())&&(!W()&&!!A)}function z(e){return!p.escapeOptions||-1!==p.escapeOptions.toLowerCase().indexOf(e)}function j(){return!!s.matches.length}function W(){return!!s.scope.selectedItem}function U(){return q(s.matches[s.index])}function K(){return(p.searchText||"").length>=F()}function Y(e){f.nextTick(function(){q(s.matches[e]).then(function(e){var t=x.$.input.controller("ngModel");r.announce(e+" "+s.selectedMessage,"assertive"),t.$setViewValue(e),t.$render()}).finally(function(){p.selectedItem=s.matches[e],V(!1)})},!1)}function G(){s.index=0,s.matches=[]}function J(){V(!0),p.searchText="";var e=document.createEvent("CustomEvent");e.initCustomEvent("change",!0,!0,{value:""}),x.input.dispatchEvent(e),x.input.blur(),p.searchText="",x.input.focus()}function Q(e,t){var n=e?"polite":"assertive",o=[];t&R.Selected&&-1!==s.index&&o.push(U()),t&R.Count&&o.push(a.resolve(function(){switch(s.matches.length){case 0:return"There are no matches available.";case 1:return"There is 1 match available.";default:return"There are "+s.matches.length+" matches available."}}())),a.all(o).then(function(e){r.announce(e.join(" "),n)})}function X(){var e,t,n,o,i,l,r,a,c,d;x.li[0]&&(L===de?(l=x.li[s.index]||x.li[0],r=x.scrollContainer.offsetHeight,a=l&&l.offsetTop||0,c=a+l.clientHeight,d=x.scrollContainer.scrollTop,a<d?Z(a):d+r<c&&Z(c-r)):(e=x.li[0].offsetHeight,t=e*s.index,n=t+e,o=x.scroller.clientHeight,i=x.scroller.scrollTop,t<i?Z(t):i+o<n&&Z(n-o)))}function Z(e){L===de?x.scrollContainer.scrollTop=e:x.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(e)}function ee(){var e=(s.scope.searchText||"").length;return s.hasNotFound&&!j()&&(!s.loading||0!==w)&&e>=F()&&(A||b)&&!W()}function te(){var e=p.searchText||"",t=e.toLowerCase();!p.noCache&&C[t]?ne(C[t]):function(t){var e=p.$parent.$eval($),n=t.toLowerCase(),o=ie.isArray(e),i=!!e.then;function l(e){C[n]=e,(t||"")===(p.searchText||"")&&ne(e)}o?l(e):i&&(r=e,r&&(r=a.when(r),w++,V(!0),f.nextTick(function(){r.then(l).finally(function(){0==--w&&V(!1)})},!0,p)));var r}(e),s.hidden=H()}function ne(e){var n,t,o;s.matches=e,s.hidden=H(),s.loading&&V(!1),p.selectOnMatch&&(n=p.searchText,t=s.matches,o=t[0],1===t.length&&q(o).then(function(e){var t=n===e;p.matchInsensitive&&!t&&(t=n.toLowerCase()===e.toLowerCase()),t&&Y(0)})),D(),Q(!0,R.Count)}function oe(e,t){g[e]&&p.$parent.$eval(g[e],t||{})}}function o(d){var u="virtual",t=["standard",u];function s(e){return e?(e=e.toLowerCase(),-1<t.indexOf(e)?e:u):u}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"),ie.isDefined(n.mdClearButton)||e.floatingLabel||(e.clearButton=!0),e.mdMode=s(n.mdMode)}},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>":""),l=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>"}(),r=n.html(),a=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="search" '+(null!=a?'tabindex="'+a+'"':"")+' id="{{ inputId || \'fl-input-\' + $mdAutocompleteCtrl.id }}" name="{{inputName}}" 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-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur($event)" ng-focus="$mdAutocompleteCtrl.focus($event)" aria-label="{{floatingLabel}}" aria-autocomplete="list" role="combobox" aria-haspopup="true" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}" aria-owns="ul-{{$mdAutocompleteCtrl.id}}" ng-attr-aria-activedescendant="{{$mdAutocompleteCtrl.index >= 0 ? \'selected_option\' : undefined}}"> <div md-autocomplete-parent-scope md-autocomplete-replace>'+r+"</div> </md-input-container>":' <input type="search" '+(null!=a?'tabindex="'+a+'"':"")+' id="{{ inputId || \'input-\' + $mdAutocompleteCtrl.id }}" name="{{inputName}}" 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-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur($event)" ng-focus="$mdAutocompleteCtrl.focus($event)" placeholder="{{placeholder}}" aria-label="{{placeholder}}" aria-autocomplete="list" role="combobox" aria-haspopup="true" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}" aria-owns="ul-{{$mdAutocompleteCtrl.id}}" ng-attr-aria-activedescendant="{{$mdAutocompleteCtrl.index >= 0 ? \'selected_option\' : undefined}}">')+' <button type="button" aria-label="Clear Input" tabindex="-1" ng-if="clearButton && $mdAutocompleteCtrl.scope.searchText" ng-click="$mdAutocompleteCtrl.clear($event)"><md-icon md-svg-src="'+d.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:"",c(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.mouseUp()" role="listbox"> <li '+(c(e.mdMode)?"ng-repeat":"md-virtual-repeat")+' ="item in $mdAutocompleteCtrl.matches" ng-class="{ selected: $index === $mdAutocompleteCtrl.index }" ng-attr-id="{{$index === $mdAutocompleteCtrl.index ? \'selected_option\' : undefined}}" 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"> '+l+" </li>"+i+" </ul> "+(c(e.mdMode)?" </div> </div> </div>":"</md-virtual-repeat-container>")+" </md-autocomplete-wrap>";function c(e){return s(e)!==u}}}}function i(e,u){return{restrict:"AE",compile:function(e,t,d){return function(n,t,e){var o,i,l=n.$mdAutocompleteCtrl,r=l.parent.$new(),a=l.itemName;function c(e,t){r[t]=n[e],n.$watch(e,function(e){u.nextTick(function(){r[t]=e})})}c("$index","$index"),c("item",a),i=o=!1,n.$watch(function(){i||o||(o=!0,n.$$postDigest(function(){i||r.$digest(),o=i=!1}))}),r.$watch(function(){i=!0}),d(r,function(e){t.after(e)})}},terminal:!0,transclude:"element"}}function l(e,t,n){this.$scope=e,this.$element=t,this.$attrs=n,this.regex=null}function r(n,o){return{terminal:!0,controller:"MdHighlightCtrl",compile:function(e,t){var i=o(t.mdHighlightText),l=n(e.html());return function(e,t,n,o){o.init(i,l)}}}}o.$inject=["$$mdSvgRegistry"],ie.module("material.components.autocomplete").directive("mdAutocomplete",o),i.$inject=["$compile","$mdUtil"],ie.module("material.components.autocomplete").directive("mdAutocompleteParentScope",i),l.$inject=["$scope","$element","$attrs"],ie.module("material.components.autocomplete").controller("MdHighlightCtrl",l),l.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)},l.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)},l.prototype.applyRegex=function(e){var t=this.resolveTokens(e);this.$element.empty(),t.forEach(function(e){if(e.isMatch){var t=ie.element('<span class="highlight">').text(e.text);this.$element.append(t)}else this.$element.append(document.createTextNode(e))}.bind(this))},l.prototype.resolveTokens=function(o){var i=[],n=0;return o.replace(this.regex,function(e,t){l(n,t),i.push({text:e,isMatch:!0}),n=t+e.length}),l(n),i;function l(e,t){var n=o.slice(e,t);n&&i.push(n)}},l.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,""))},l.prototype.sanitizeRegex=function(e){return e&&e.toString().replace(/[\\^$*+?.()|{}[\]]/g,"\\$&")},r.$inject=["$interpolate","$parse"],ie.module("material.components.autocomplete").directive("mdHighlightText",r)}(window,window.angular);
{
"name": "angular-material-autocomplete",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-icon": "1.1.15-master-2dd34ab",
"angular-material-virtualRepeat": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-icon": "1.1.16-master-db3cdf7",
"angular-material-virtualRepeat": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,u,t){"use strict";u.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(d,c,t,n,p,s,l,m){return{restrict:"E",link:function(o,i,e){t.pin&&t.pin(i,n);var r;function a(){var e=parseInt(r.height,10)+Math.abs(parseInt(r.top,10));i.css("height",e+"px")}l(function(){if("fixed"===(r=p.getComputedStyle(m[0].body)).position){var e=c.debounce(function(){r=p.getComputedStyle(m[0].body),a()},60,null,!1);a(),u.element(p).on("resize",e),o.$on("$destroy",function(){u.element(p).off("resize",e)})}var t=i.parent();if(t.length){"BODY"===t[0].nodeName&&i.css("position","fixed");var n=p.getComputedStyle(t[0]);"static"===n.position&&s.warn("<md-backdrop> may not work properly in a scrolled, static-positioned parent container."),d.inherit(i,t)}})}}}])}(window,window.angular);
{
"name": "angular-material-backdrop",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,f,t){"use strict";function o(o){return{restrict:"E",link:function(e,t){t.addClass("_md"),e.$on("$destroy",function(){o.destroy()})}}}function n(e){t.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture","$log"];var p=.5,S=80;return e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:t});function t(r,c,i,a,s,l,d,m){var u;return{themable:!0,onShow:function(e,t,o,n){if((t=i.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])}o.isLockedOpen?(o.clickOutsideToClose=!1,o.escapeToClose=!1):o.cleanupGestures=function(n,e){var t=d.register(e,"drag",{horizontal:!1});return e.on("$md.dragstart",o).on("$md.drag",r).on("$md.dragend",a),function(){t(),e.off("$md.dragstart",o),e.off("$md.drag",r),e.off("$md.dragend",a)};function o(){n.css(c.CSS.TRANSITION_DURATION,"0ms")}function r(e){var t=e.pointer.distanceY;t<5&&(t=Math.max(-S,t/2)),n.css(c.CSS.TRANSFORM,"translate3d(0,"+(S+t)+"px,0)")}function a(e){if(0<e.pointer.distanceY&&(20<e.pointer.distanceY||Math.abs(e.pointer.velocityY)>p)){var t=n.prop("offsetHeight")-e.pointer.distanceY,o=Math.min(t/e.pointer.velocityY*.75,500);n.css(c.CSS.TRANSITION_DURATION,o+"ms"),i.nextTick(s.cancel,!0)}else n.css(c.CSS.TRANSITION_DURATION,""),n.css(c.CSS.TRANSFORM,"")}}(t,o.parent);o.disableBackdrop||((u=i.createBackdrop(e,"md-bottom-sheet-backdrop md-opaque"))[0].tabIndex=-1,o.clickOutsideToClose&&u.on("click",function(){i.nextTick(s.cancel,!0)}),a.inherit(u,o.parent),r.enter(u,o.parent,null));a.inherit(t,o.parent),o.disableParentScroll&&(o.restoreScroll=i.disableScrollAround(t,o.parent));return r.enter(t,o.parent,u).then(function(){var e=i.findFocusTarget(t)||f.element(t[0].querySelector("button")||t[0].querySelector("a")||t[0].querySelector(i.prefixer("ng-click",!0)))||u;o.escapeToClose&&(o.rootElementKeyupCallback=function(e){e.keyCode===c.KEY_CODE.ESCAPE&&i.nextTick(s.cancel,!0)},l.on("keyup",o.rootElementKeyupCallback),e&&e.focus())})},onRemove:function(e,t,o){o.disableBackdrop||r.leave(u);return r.leave(t).then(function(){o.disableParentScroll&&(o.restoreScroll(),delete o.restoreScroll),o.cleanupGestures&&o.cleanupGestures()})},disableBackdrop:!1,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0,isLockedOpen:!1}}}o.$inject=["$mdBottomSheet"],n.$inject=["$$interimElementProvider"],f.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",o).provider("$mdBottomSheet",n)}(window,window.angular);
{
"name": "angular-material-bottomSheet",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-backdrop": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-backdrop": "1.1.16-master-db3cdf7"
}
}
{
"name": "angular-material-button",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(n,d,t){"use strict";function e(e){return{restrict:"E",link:function(n,t){e(t)}}}function i(i,a,o,r){return{restrict:"EA",replace:!0,transclude:!0,template:function(n,t){{if(u(t))return'<a class="md-button" ng-transclude></a>';var e=void 0===t.type?"button":t.type;return'<button class="md-button" type="'+e+'" ng-transclude></button>'}},link:function(n,t,e){a(t),i.attach(n,t),o.expectWithoutText(t,"aria-label"),u(e)&&d.isDefined(e.ngDisabled)&&!t.hasClass("_md-nav-button")&&n.$watch(e.ngDisabled,function(n){t.attr("tabindex",n?-1:0)});t.on("click",function(n){!0===e.disabled&&(n.preventDefault(),n.stopImmediatePropagation())}),t.hasClass("md-no-focus")||(t.on("focus",function(){r.isUserInvoked()&&"keyboard"!==r.getLastInteractionType()||t.addClass("md-focused")}),t.on("blur",function(){t.removeClass("md-focused")}))}};function u(n){return d.isDefined(n.href)||d.isDefined(n.ngHref)||d.isDefined(n.ngLink)||d.isDefined(n.uiSref)}}i.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],e.$inject=["$mdTheming"],d.module("material.components.button",["material.core"]).directive("mdButton",i).directive("a",e)}(window,window.angular);
{
"name": "angular-material-card",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(n,i,t){"use strict";function e(e){return{restrict:"E",link:function(n,i,t){i.addClass("_md"),e(i)}}}e.$inject=["$mdTheming"],i.module("material.components.card",["material.core"]).directive("mdCard",e)}(window,window.angular);
{
"name": "angular-material-checkbox",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,v,t){"use strict";function n(f,b,$,h,k,g){return f=f[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:$.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(e,a,n,t){var i,c,d,o,r=t[0],s=t[1]||k.fakeNgModel(),l=t[2];if(r){var u=r.isErrorGetter||function(){return s.$invalid&&(s.$touched||l&&l.$submitted)};r.input=a,e.$watch(u,r.setInvalid)}function m(t){a[0].hasAttribute("disabled")||e.skipToggle||e.$apply(function(){var e=n.ngChecked&&n.ngClick?n.checked:!s.$viewValue;s.$setViewValue(e,t&&t.type),s.$render()})}function p(e){(i=!1!==e)&&a.attr("aria-checked","mixed"),a.toggleClass("md-indeterminate",i)}h(a),a.children().on("focus",function(){a.focus()}),k.parseAttributeBoolean(n.mdIndeterminate)&&(p(),e.$watch(n.mdIndeterminate,p)),n.ngChecked&&e.$watch(e.$eval.bind(e,n.ngChecked),function(e){s.$setViewValue(e),s.$render()}),c="ngDisabled",d="tabindex",o={true:"-1",false:n.tabindex},n[c]&&e.$watch(n[c],function(e){o[e]&&a.attr(d,o[e])}),b.expectWithText(a,"aria-label"),f.link.pre(e,{on:v.noop,0:{}},n,[s]),a.on("click",m).on("keypress",function(e){var t,n,i=e.which||e.keyCode;switch(e.preventDefault(),i){case $.KEY_CODE.SPACE:a.addClass("md-focused"),m(e);break;case $.KEY_CODE.ENTER:(n=k.getClosest(e.target,"form"))&&(t=n.querySelector('button[type="submit"]:enabled, input[type="submit"]:enabled'))&&t.click()}}).on("focus",function(){"keyboard"===g.getLastInteractionType()&&a.addClass("md-focused")}).on("blur",function(){a.removeClass("md-focused")}),s.$render=function(){a.toggleClass("md-checked",!!s.$viewValue&&!i)}}}}}}n.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],v.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",n)}(window,window.angular);
{
"name": "angular-material-chips",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-autocomplete": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-autocomplete": "1.1.16-master-db3cdf7"
}
}

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(n,a,t){"use strict";function e(t,e,i,n,s){this.$scope=t,this.$element=e,this.$mdConstant=i,this.$timeout=n,this.$mdUtil=s,this.isEditing=!1,this.parentController=void 0,this.enableChipEdit=!1}function i(p,t,e,h){return{restrict:"E",require:["^?mdChips","mdChip"],link:function(t,e,i,n){var s=n.shift(),o=n.shift(),r=a.element(e[0].querySelector(".md-chip-content"));p(e),s&&(o.init(s),r.on("blur",function(){s.resetSelectedChip(),s.$scope.$applyAsync()}));h(function(){s&&s.shouldFocusLastChip&&s.focusLastChipThenInput()})},controller:"MdChipCtrl"}}function s(s){return{restrict:"A",require:"^mdChips",scope:!1,link:function(e,t,i,n){t.on("click",function(t){e.$apply(function(){n.removeChip(e.$$replacedScope.$index)})}),s(function(){t.attr({tabindex:"-1","aria-hidden":"true"}),t.find("button").attr("tabindex","-1")})}}}function o(r){return{restrict:"EA",terminal:!0,link:function(t,e,i){var n=t.$parent.$mdChipsCtrl,s=n.parent.$new(!1,n.parent);s.$$replacedScope=t,s.$chip=t.$chip,s.$index=t.$index;var o=(s.$mdChipsCtrl=n).$scope.$eval(i.mdChipTransclude);e.html(o),r(e.contents())(s)},scope:!1}}a.module("material.components.chips",["material.core","material.components.autocomplete"]),e.$inject=["$scope","$element","$mdConstant","$timeout","$mdUtil"],a.module("material.components.chips").controller("MdChipCtrl",e),e.prototype.init=function(t){this.parentController=t,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"))},e.prototype.getChipContent=function(){var t=this.$element[0].getElementsByClassName("md-chip-content");return a.element(t[0])},e.prototype.getContentElement=function(){var t=a.element(this.getChipContent().children()[0]);return t&&0!==t.length||(t=a.element(this.getChipContent().contents()[0])),t},e.prototype.getChipIndex=function(){return parseInt(this.$element.attr("index"))},e.prototype.goOutOfEditMode=function(){if(this.isEditing){this.isEditing=!1,this.$element.removeClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="false";var t=this.getChipIndex(),e=this.getContentElement().text();e?(this.parentController.updateChipContents(t,e),this.$mdUtil.nextTick(function(){this.parentController.selectedChip===t&&this.parentController.focusChip(t)}.bind(this))):this.parentController.removeChipAndFocusInput(t)}},e.prototype.selectNodeContents=function(t){var e,i;document.body.createTextRange?((e=document.body.createTextRange()).moveToElementText(t),e.select()):n.getSelection&&(i=n.getSelection(),(e=document.createRange()).selectNodeContents(t),i.removeAllRanges(),i.addRange(e))},e.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])},e.prototype.chipKeyDown=function(t){this.isEditing||t.keyCode!==this.$mdConstant.KEY_CODE.ENTER&&t.keyCode!==this.$mdConstant.KEY_CODE.SPACE?this.isEditing&&t.keyCode===this.$mdConstant.KEY_CODE.ENTER&&(t.preventDefault(),this.goOutOfEditMode()):(t.preventDefault(),this.goInEditMode())},e.prototype.chipMouseDoubleClick=function(){this.enableChipEdit&&!this.isEditing&&this.goInEditMode()},i.$inject=["$mdTheming","$mdUtil","$compile","$timeout"],a.module("material.components.chips").directive("mdChip",i),s.$inject=["$timeout"],a.module("material.components.chips").directive("mdChipRemove",s),o.$inject=["$compile"],a.module("material.components.chips").directive("mdChipTransclude",o),r.$inject=["$scope","$attrs","$mdConstant","$log","$element","$timeout","$mdUtil","$mdLiveAnnouncer","$exceptionHandler"];var d=300;function r(t,e,i,n,s,o,r,p,h){this.$timeout=o,this.$mdConstant=i,this.$scope=t,this.parent=t.$parent,this.$mdUtil=r,this.$log=n,this.$mdLiveAnnouncer=p,this.$exceptionHandler=h,this.$element=s,this.$attrs=e,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.autocompleteCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.enableChipEdit=r.parseAttributeBoolean(e.mdEnableChipEdit),this.addOnBlur=r.parseAttributeBoolean(e.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=d,this.deRegister=[],this.addedMessage="added",this.removedMessage="removed",this.init()}a.module("material.components.chips").controller("MdChipsCtrl",r),r.prototype.init=function(){var e=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(){e.setupInputAria(),e.setupWrapperAria()})),this.deRegister.push(this.$attrs.$observe("mdChipAppendDelay",function(t){e.chipAppendDelay=parseInt(t)||d}))},r.prototype.$onDestroy=function(){for(var t;t=this.deRegister.pop();)t.call(this)},r.prototype.setupInputAria=function(){var t=this.$element.find("input");t&&(t.attr("role","textbox"),t.attr("aria-multiline",!0),this.inputAriaDescribedBy&&t.attr("aria-describedby",this.inputAriaDescribedBy),this.inputAriaLabelledBy?(t.attr("aria-labelledby",this.inputAriaLabelledBy),t.removeAttr("aria-label")):t.attr("aria-label",this.inputAriaLabel))},r.prototype.setupWrapperAria=function(){var t=this,e=this.$element.find("md-chips-wrap");this.items&&this.items.length?(e.attr("role","listbox"),this.contentIds=this.items.map(function(){return t.wrapperId+"-chip-"+t.$mdUtil.nextUid()}),e.attr("aria-owns",this.contentIds.join(" ")),e.attr("aria-label",this.containerHint)):(e.removeAttr("role"),e.removeAttr("aria-owns"),e.attr("aria-label",this.containerEmptyHint))},r.prototype.setupStaticChips=function(){var t,e,i=this,n=this.$element.find("md-chips-wrap");this.$timeout(function(){for(n.attr("role","list"),e=n[0].children,t=0;t<e.length;t++)e[t].setAttribute("role","listitem"),e[t].setAttribute("aria-setsize",e.length);i.inputAriaDescribedBy&&n.attr("aria-describedby",i.inputAriaDescribedBy),i.inputAriaLabelledBy?(n.attr("aria-labelledby",i.inputAriaLabelledBy),n.removeAttr("aria-label")):n.attr("aria-label",i.inputAriaLabel)},10)},r.prototype.inputKeydown=function(t){var e=this.getChipBuffer();if(!(this.autocompleteCtrl&&t.isDefaultPrevented&&t.isDefaultPrevented())){if(t.keyCode===this.$mdConstant.KEY_CODE.BACKSPACE){if(0!==this.getCursorPosition(t.target))return;return t.preventDefault(),t.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(t.keyCode)){if(this.autocompleteCtrl&&this.requireMatch||!e)return;if(t.preventDefault(),this.hasMaxChipsReached())return;return this.appendChip(e.trim()),this.resetChipBuffer(),!1}}},r.prototype.getCursorPosition=function(e){try{if(e.selectionStart===e.selectionEnd)return e.selectionStart}catch(t){if(!e.value)return 0}},r.prototype.updateChipContents=function(t,e){0<=t&&t<this.items.length&&(this.items[t]=e,this.updateNgModel(!0))},r.prototype.isEditingChip=function(){return!!this.$element[0].querySelector("._md-chip-editing")},r.prototype._isChipObject=function(t){return a.isObject(t)},r.prototype.isRemovable=function(){return!!this.ngModelCtrl&&(this.readonly?this.removable:!a.isDefined(this.removable)||this.removable)},r.prototype.chipKeydown=function(t){if(!this.getChipBuffer()&&!this.isEditingChip())switch(t.keyCode){case this.$mdConstant.KEY_CODE.BACKSPACE:case this.$mdConstant.KEY_CODE.DELETE:if(this.selectedChip<0)return;if(t.preventDefault(),!this.isRemovable())return;this.removeAndSelectAdjacentChip(this.selectedChip,t);break;case this.$mdConstant.KEY_CODE.LEFT_ARROW:t.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:t.preventDefault(),this.selectAndFocusChipSafe(this.selectedChip+1);break;case this.$mdConstant.KEY_CODE.ESCAPE:case this.$mdConstant.KEY_CODE.TAB:if(this.selectedChip<0)return;t.preventDefault(),this.onFocus()}},r.prototype.getPlaceholder=function(){return this.items&&this.items.length&&(""===this.secondaryPlaceholder||this.secondaryPlaceholder)?this.secondaryPlaceholder:this.placeholder},r.prototype.removeAndSelectAdjacentChip=function(t,e){var i=this,n=i.getAdjacentChipIndex(t);this.$element[0].querySelector("md-chips-wrap"),this.$element[0].querySelector('md-chip[index="'+t+'"]');i.removeChip(t,e),i.$timeout(function(){i.$timeout(function(){i.selectAndFocusChipSafe(n)})})},r.prototype.resetSelectedChip=function(){this.selectedChip=-1,this.ariaTabIndex=null},r.prototype.getAdjacentChipIndex=function(t){var e=this.items.length-1;return 0===e?-1:t===e?t-1:t},r.prototype.appendChip=function(e){if(this.shouldFocusLastChip=!this.addOnBlur,this.useTransformChip&&this.transformChip){var t=this.transformChip({$chip:e});a.isDefined(t)&&(e=t)}if(a.isObject(e)&&this.items.some(function(t){return a.equals(e,t)}))return;if(!(null==e||this.items.indexOf(e)+1)){var i=this.items.push(e)-1;this.updateNgModel();var n=a.isObject(e)?"":e;this.$mdLiveAnnouncer.announce(n+" "+this.addedMessage,"assertive"),this.useOnAdd&&this.onAdd&&this.onAdd({$chip:e,$index:i})}},r.prototype.useTransformChipExpression=function(){this.useTransformChip=!0},r.prototype.useOnAddExpression=function(){this.useOnAdd=!0},r.prototype.useOnRemoveExpression=function(){this.useOnRemove=!0},r.prototype.useOnSelectExpression=function(){this.useOnSelect=!0},r.prototype.getChipBuffer=function(){var t=this.userInputElement?this.userInputNgModelCtrl?this.userInputNgModelCtrl.$viewValue:this.userInputElement[0].value:this.chipBuffer;return a.isString(t)?t:""},r.prototype.resetChipBuffer=function(){this.userInputElement?this.userInputNgModelCtrl?(this.userInputNgModelCtrl.$setViewValue(""),this.userInputNgModelCtrl.$render()):this.userInputElement[0].value="":this.chipBuffer=""},r.prototype.hasMaxChipsReached=function(){return a.isString(this.maxChips)&&(this.maxChips=parseInt(this.maxChips,10)||0),0<this.maxChips&&this.items.length>=this.maxChips},r.prototype.validateModel=function(){this.ngModelCtrl.$setValidity("md-max-chips",!this.hasMaxChipsReached()),this.ngModelCtrl.$validate()},r.prototype.updateNgModel=function(t){t||this.validateModel(),a.forEach(this.ngModelCtrl.$viewChangeListeners,function(t){try{t()}catch(t){this.$exceptionHandler(t)}})},r.prototype.removeChip=function(t,e){var i=this.items.splice(t,1);this.updateNgModel(),this.ngModelCtrl.$setDirty();var n=a.isObject(i[0])?"":i[0];this.$mdLiveAnnouncer.announce(n+" "+this.removedMessage,"assertive"),i&&i.length&&this.useOnRemove&&this.onRemove&&this.onRemove({$chip:i[0],$index:t,$event:e})},r.prototype.removeChipAndFocusInput=function(t,e){this.removeChip(t,e),this.autocompleteCtrl?(this.autocompleteCtrl.hidden=!0,this.$mdUtil.nextTick(this.onFocus.bind(this))):this.onFocus()},r.prototype.selectAndFocusChipSafe=function(t){if(!this.items.length||-1===t)return this.focusInput();if(t>=this.items.length){if(!this.readonly)return this.onFocus();t=0}t=Math.max(t,0),t=Math.min(t,this.items.length-1),this.selectChip(t),this.focusChip(t)},r.prototype.focusLastChipThenInput=function(){var t=this;t.shouldFocusLastChip=!1,t.focusChip(this.items.length-1),t.$timeout(function(){t.focusInput()},t.chipAppendDelay)},r.prototype.focusInput=function(){this.selectChip(-1),this.onFocus()},r.prototype.selectChip=function(t){-1<=t&&t<=this.items.length?(this.selectedChip=t,this.useOnSelect&&this.onSelect&&this.onSelect({$chip:this.items[t]})):this.$log.warn("Selected Chip index out of bounds; ignoring.")},r.prototype.selectAndFocusChip=function(t){this.selectChip(t),-1!==t&&this.focusChip(t)},r.prototype.focusChip=function(t){var e=this.$element[0].querySelector('md-chip[index="'+t+'"] .md-chip-content');this.ariaTabIndex=t,e.focus()},r.prototype.configureNgModel=function(t){this.ngModelCtrl=t;var e=this;t.$isEmpty=function(t){return!t||0===t.length},t.$render=function(){e.items=e.ngModelCtrl.$viewValue}},r.prototype.onFocus=function(){var t=this.$element[0].querySelector("input");t&&t.focus(),this.resetSelectedChip()},r.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.setupInputAria(),this.resetSelectedChip()},r.prototype.onInputBlur=function(){this.inputHasFocus=!1,this.shouldAddOnBlur()&&(this.appendChip(this.getChipBuffer().trim()),this.resetChipBuffer())},r.prototype.configureInput=function(t){var e=t.controller("ngModel"),i=this;e&&(this.deRegister.push(this.$scope.$watch(function(){return e.$touched},function(t){t&&i.ngModelCtrl.$setTouched()})),this.deRegister.push(this.$scope.$watch(function(){return e.$dirty},function(t){t&&i.ngModelCtrl.$setDirty()})))},r.prototype.configureUserInput=function(t){var e=(this.userInputElement=t).controller("ngModel");e!==this.ngModelCtrl&&(this.userInputNgModelCtrl=e);var i=this.$scope,n=this,s=function(t,e){i.$evalAsync(a.bind(n,e,t))};t.attr({tabindex:0}).on("keydown",function(t){s(t,n.inputKeydown)}).on("focus",function(t){s(t,n.onInputFocus)}).on("blur",function(t){s(t,n.onInputBlur)})},r.prototype.configureAutocomplete=function(t){t&&(this.autocompleteCtrl=t,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()),t.registerSelectedItemWatcher(a.bind(this,function(t){if(t){if(this.hasMaxChipsReached())return;this.appendChip(t),this.resetChipBuffer()}})),this.$element.find("input").on("focus",a.bind(this,this.onInputFocus)).on("blur",a.bind(this,this.onInputBlur)))},r.prototype.shouldAddOnBlur=function(){this.validateModel();var t=this.getChipBuffer().trim(),e=this.ngModelCtrl.$isEmpty(this.ngModelCtrl.$modelValue)||this.ngModelCtrl.$valid,i=this.autocompleteCtrl&&!this.autocompleteCtrl.hidden;return this.userInputNgModelCtrl&&(e=e&&this.userInputNgModelCtrl.$valid),this.addOnBlur&&!this.requireMatch&&t&&e&&!i},r.prototype.hasFocus=function(){return this.inputHasFocus||0<=this.selectedChip},r.prototype.contentIdFor=function(t){return this.contentIds[t]},c.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout","$$mdSvgRegistry"],a.module("material.components.chips").directive("mdChips",c);var p=' <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>',h=' <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)">',l=" <span>{{$chip}}</span>",g=' <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 c(c,m,u,n,C,f){var $={chips:m.processTemplate(p),input:m.processTemplate(h),default:m.processTemplate(l),remove:m.processTemplate(g)};return{template:function(t,e){return e.$mdUserTemplate=t.clone(),$.chips},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:function(t,r){var i=r.$mdUserTemplate;r.$mdUserTemplate=null;var p=e("md-chips>md-chip-template"),h=e(m.prefixer().buildList("md-chip-remove").map(function(t){return"md-chips>*["+t+"]"}).join(","))||$.remove,a=p||$.default,d=e("md-chips>md-autocomplete")||e("md-chips>input")||$.input,l=i.find("md-chip");i[0].querySelector("md-chip-template>*[md-chip-remove]")&&n.warn("invalid placement of md-chip-remove within md-chip-template.");function e(t){if(r.ngModel){var e=i[0].querySelector(t);return e&&e.outerHTML}}return function(t,e,i,n){m.initOptionalProperties(t,r),c(e);var s=n[0];if(p&&(s.enableChipEdit=!1),s.chipContentsTemplate=a,s.chipRemoveTemplate=h,s.chipInputTemplate=d,s.mdCloseIcon=f.mdClose,e.attr({tabindex:-1}).on("focus",function(){s.onFocus()}).on("click",function(){s.readonly||-1!==s.selectedChip||s.onFocus()}),r.ngModel&&(s.configureNgModel(e.controller("ngModel")),i.mdTransformChip&&s.useTransformChipExpression(),i.mdOnAppend&&s.useOnAppendExpression(),i.mdOnAdd&&s.useOnAddExpression(),i.mdOnRemove&&s.useOnRemoveExpression(),i.mdOnSelect&&s.useOnSelectExpression(),d!==$.input&&t.$watch("$mdChipsCtrl.readonly",function(t){t||m.nextTick(function(){if(0===d.indexOf("<md-autocomplete")){var t=e.find("md-autocomplete");s.configureAutocomplete(t.controller("mdAutocomplete"))}s.configureUserInput(e.find("input"))})}),m.nextTick(function(){var t=e.find("input");t&&(s.configureInput(t),t.toggleClass("md-input",!0))})),0<l.length){var o=u(l.clone())(t.$parent);C(function(){e.find("md-chips-wrap").prepend(o)})}}},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:"&?"}}}function m(t,e,i){this.$element=e,this.$attrs=t,this.$timeout=i,this.selectedItem=null,this.searchText="",this.deRegister=[],this.init()}m.$inject=["$attrs","$element","$timeout"],a.module("material.components.chips").controller("MdContactChipsCtrl",m),m.prototype.init=function(){var t=this,e=this.deRegister,i=this.$element;this.$timeout(function(){e.push(i.find("md-chips").scope().$watchCollection("$mdChipsCtrl.items",function(){t.setupChipsAria(),t.setupAutocompleteAria()}))})},m.prototype.setupChipsAria=function(){var t=this.$element.find("md-chips"),e=t.controller("mdChips");this.removedMessage&&(e.removedMessage=this.removedMessage),this.containerHint&&(e.containerHint=this.containerHint),this.containerEmptyHint&&(t.attr("container-empty-hint",this.containerEmptyHint),e.containerEmptyHint=this.containerEmptyHint),this.deleteHint&&(e.deleteHint=this.deleteHint),this.inputAriaLabel&&(e.inputAriaLabel=this.inputAriaLabel)},m.prototype.setupAutocompleteAria=function(){var t=this.$element.find("md-chips-wrap").find("md-autocomplete").find("input");this.inputAriaDescribedBy&&t.attr("aria-describedby",this.inputAriaDescribedBy),this.inputAriaLabelledBy&&(t.removeAttr("aria-label"),t.attr("aria-labelledby",this.inputAriaLabelledBy))},m.prototype.queryContact=function(t){return this.contactQuery({$query:t})},m.prototype.inputKeydown=function(t){if(this.separatorKeys&&!(this.separatorKeys.indexOf(t.keyCode)<0)){t.stopPropagation(),t.preventDefault();var e=a.element(t.target).controller("mdAutocomplete");e.select(e.index)}},m.prototype.itemName=function(t){return t[this.contactName]},m.prototype.$onDestroy=function(){for(var t;t=this.deRegister.pop();)t.call(this)},C.$inject=["$mdTheming","$mdUtil"],a.module("material.components.chips").directive("mdContactChips",C);var u=' <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 C(r,p){return{template:function(t,e){return u},restrict:"E",controller:"MdContactChipsCtrl",controllerAs:"$mdContactChipsCtrl",bindToController:!0,compile:function(t,o){return function(t,e,i,n){var s=n;p.initOptionalProperties(t,o),r(e),e.attr("tabindex","-1"),i.$observe("mdChipAppendDelay",function(t){s.chipAppendDelay=t})}},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:"@?"}}}}(window,window.angular);
{
"name": "angular-material-colors",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,d,r){"use strict";!function(){r.$inject=["$mdColors","$mdUtil","$log","$parse"],e.$inject=["$mdTheming","$mdUtil","$log"];var s=/^{((\s|,)*?["'a-zA-Z-]+?\s*?:\s*?('|")[a-zA-Z0-9-.]*('|"))+\s*}$/,l=null;function e(a,s,t){return l=l||Object.keys(a.PALETTES),{applyThemeColors:function(e,r){try{r&&e.css((n={},a=(o=r).hasOwnProperty("color"),d.forEach(o,function(e,r){var o=u(e),t=-1<r.indexOf("background");n[r]=i(o),t&&!a&&(n.color=i(o,!0))}),n))}catch(e){t.error(e.message)}var o,n,a},getThemeColor:function(e){return i(u(e))},hasTheme:function(e){return d.isDefined(a.THEMES[e.split("-")[0]])}};function i(e,r){r=r||!1;var o=a.PALETTES[e.palette][e.hue];return o=r?o.contrast:o.value,s.supplant("rgba({0}, {1}, {2}, {3})",[o[0],o[1],o[2],o[3]||e.opacity])}function u(e){var r=e.split("-"),o=d.isDefined(a.THEMES[r[0]])?r.splice(0,1)[0]:a.defaultTheme();return{theme:o,palette:function(e,r){var o=1<e.length&&-1!==l.indexOf(e[1]),t=e[0].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();o&&(t=e[0]+"-"+e.splice(1,1));if(-1===l.indexOf(t)){var n=a.THEMES[r].colors[t];if(!n)throw new Error(s.supplant("mdColors: couldn't find '{palette}' in the palettes.",{palette:t}));t=n.name}return t}(r,o),hue:function(e,r){var o=a.THEMES[r].colors;if("hue"!==e[1])return e[1]||o[e[0]in o?e[0]:"primary"].hues.default;var t=parseInt(e.splice(2,1)[0],10);if(t<1||3<t)throw new Error(s.supplant("mdColors: 'hue-{hueNumber}' is not a valid hue, can be only 'hue-1', 'hue-2' and 'hue-3'",{hueNumber:t}));if(e[1]="hue-"+t,e[0]in o)return o[e[0]].hues[e[1]];throw new Error(s.supplant("mdColors: 'hue-x' can only be used with [{availableThemes}], but was used with '{usedTheme}'",{availableThemes:Object.keys(o).join(", "),usedTheme:e[0]}))}(r,o),opacity:r[2]||1}}}function r(c,a,h,m){return{restrict:"A",require:["^?mdTheme"],compile:function(e,n){var l=function(){var e=n.mdColors,r=-1<e.indexOf("::"),o=!!r||s.test(n.mdColors);n.mdColors=e.replace("::","");var t=d.isDefined(n.mdColorsWatch);return!r&&!o&&(!t||a.parseAttributeBoolean(n.mdColorsWatch))}();return function(e,o,r,t){var n=t[0],a={},s=function(o){"string"!=typeof o&&(o=""),r.mdColors||(r.mdColors="{}");var t=m(r.mdColors)(e);return n&&Object.keys(t).forEach(function(e){var r=t[e];c.hasTheme(r)||(t[e]=(o||n.$mdTheme)+"-"+r)}),i(t),t},i=function(e){if(!d.equals(e,a)){var r=Object.keys(a);a.background&&!r.color&&r.push("color"),r.forEach(function(e){o.css(e,"")})}a=e},u=d.noop;n&&(u=n.registerChanges(function(e){c.applyThemeColors(o,s(e))})),e.$on("$destroy",function(){u()});try{l?e.$watch(s,d.bind(this,c.applyThemeColors,o),!0):c.applyThemeColors(o,s())}catch(e){h.error(e.message)}}}}}d.module("material.components.colors",["material.core"]).directive("mdColors",r).service("$mdColors",e)}()}(window,window.angular);
{
"name": "angular-material-content",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,l,t){"use strict";function o(n){return{restrict:"E",controller:["$scope","$element",function(e,t){this.$scope=e,this.$element=t}],link:function(e,t){var o;t.addClass("_md"),n(t),e.$broadcast("$mdContentLoaded",t),o=t[0],l.element(o).on("$md.pressdown",function(e){"t"===e.pointer.type&&(e.$materialScrollFixed||(e.$materialScrollFixed=!0,0===o.scrollTop?o.scrollTop=1:o.scrollHeight===o.scrollTop+o.offsetHeight&&(o.scrollTop-=1)))})}}}o.$inject=["$mdTheming"],l.module("material.components.content",["material.core"]).directive("mdContent",o)}(window,window.angular);
{
"name": "angular-material-core",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-ngAnimate": "1.1.15-master-2dd34ab",
"angular-material-animate": "1.1.15-master-2dd34ab",
"angular-material-layout": "1.1.15-master-2dd34ab",
"angular-material-interaction": "1.1.15-master-2dd34ab",
"angular-material-gestures": "1.1.15-master-2dd34ab",
"angular-material-theming": "1.1.15-master-2dd34ab"
"angular-material-ngAnimate": "1.1.16-master-db3cdf7",
"angular-material-animate": "1.1.16-master-db3cdf7",
"angular-material-layout": "1.1.16-master-db3cdf7",
"angular-material-interaction": "1.1.16-master-db3cdf7",
"angular-material-gestures": "1.1.16-master-db3cdf7",
"angular-material-theming": "1.1.16-master-db3cdf7"
}
}
{
"name": "angular-material-datepicker",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-icon": "1.1.15-master-2dd34ab",
"angular-material-virtualRepeat": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-icon": "1.1.16-master-db3cdf7",
"angular-material-virtualRepeat": "1.1.16-master-db3cdf7"
}
}

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(g,D,e){"use strict";D.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){e.$inject=["$element","$scope","$$mdDateUtil","$mdUtil","$mdConstant","$mdTheming","$$rAF","$attrs","$mdDateLocale"],D.module("material.components.datepicker").directive("mdCalendar",function(){return{template:function(e,t){var a=t.hasOwnProperty("ngIf")?"":'ng-if="calendarCtrl.isInitialized"',n='<div ng-switch="calendarCtrl.currentView" '+a+'><md-calendar-year ng-switch-when="year"></md-calendar-year><md-calendar-month ng-switch-default></md-calendar-month></div>';return n},scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",dateFilter:"=mdDateFilter",_mode:"@mdMode",_currentView:"@mdCurrentView"},require:["ngModel","mdCalendar"],controller:e,controllerAs:"calendarCtrl",bindToController:!0,link:function(e,t,a,n){var i=n[0],r=n[1];r.configureNgModel(i)}}});var h=0,t={day:"month",month:"year"};function e(e,t,a,n,i,r,l,s,d){r(e),this.$element=e,this.$scope=t,this.dateUtil=a,this.$mdUtil=n,this.keyCode=i.KEY_CODE,this.$$rAF=l,this.$mdDateLocale=d,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=h++,this.displayDate=null,this.selectedDate=null,this.firstRenderableDate=null,this.lastRenderableDate=null,this.isInitialized=!1,this.width=0,this.scrollbarWidth=0,s.tabindex||e.attr("tabindex","-1");var o,c=D.bind(this,this.handleKeyEvent);(o=e.parent().hasClass("md-datepicker-calendar")?D.element(document.body):e).on("keydown",c),t.$on("$destroy",function(){o.off("keydown",c)}),1===D.version.major&&D.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 a=this;a.$mdUtil.nextTick(function(){a.currentView=e,t&&(a.displayDate=D.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 a=this.getDateId(e,this.currentView),n=document.getElementById(a);n&&(n.classList.add(this.FOCUSED_DATE_CLASS),n.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,a=this.$element[0].querySelector("."+t);if(a&&(a.classList.remove(t),a.setAttribute("aria-selected","false")),e){var n=document.getElementById(this.getDateId(e,this.currentView));n&&(n.classList.add(t),n.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 a=this;this.$scope.$apply(function(){if(t.which==a.keyCode.ESCAPE||t.which==a.keyCode.TAB)return a.$scope.$emit("md-calendar-close"),void(t.which==a.keyCode.TAB&&t.preventDefault());var e=a.getActionFromKeyEvent(t);e&&(t.preventDefault(),t.stopPropagation(),a.$scope.$broadcast("md-calendar-parent-action",e))})},e.prototype.hideVerticalScrollbar=function(n){var i=this,t=n.$element[0],r=t.querySelector(".md-calendar-scroll-mask");function a(){var e=i.width||340,t=i.scrollbarWidth,a=n.calendarScroller;r.style.width=e+"px",a.style.width=e+t+"px",a.style.paddingRight=t+"px"}0<i.width?a():i.$$rAF(function(){var e=n.calendarScroller;i.scrollbarWidth=e.offsetWidth-e.clientWidth,i.width=t.querySelector("table").offsetWidth,a()})},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"],D.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-a)+'"><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="'+a+'"><tr aria-hidden="true" md-force-height="\''+a+"px'\"></tr></tbody></table></md-virtual-repeat-container></div>",require:["^^mdCalendar","mdCalendarMonth"],controller:t,controllerAs:"monthCtrl",bindToController:!0,link:function(e,t,a,n){var i=n[0],r=n[1];r.initialize(i)}}});var a=265,e=45;function t(e,t,a,n,i,r){this.$element=e,this.$scope=t,this.$animate=a,this.$q=n,this.dateUtil=i,this.dateLocale=r,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var l=this;this.cellClickHandler=function(){var e=i.getTimestampFromNode(this);l.$scope.$apply(function(){l.calendarCtrl.setNgModelValue(e)})},this.headerClickHandler=function(){l.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 a=this;return t.then(function(){a.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*a}return this.$q.when()},t.prototype.buildWeekHeader=function(){for(var e=this.dateLocale.firstDayOfWeek,t=this.dateLocale.shortDays,a=document.createElement("tr"),n=0;n<7;n++){var i=document.createElement("th");i.textContent=t[(n+e)%7],a.appendChild(i)}this.$element.find("thead").append(a)},t.prototype.attachScopeListeners=function(){var a=this;a.$scope.$on("md-calendar-parent-changed",function(e,t){a.calendarCtrl.changeSelectedDate(t),a.changeDisplayDate(t)}),a.$scope.$on("md-calendar-parent-action",D.bind(this,this.handleKeyEvent))},t.prototype.handleKeyEvent=function(e,t){var a=this.calendarCtrl,n=a.displayDate;if("select"===t)a.setNgModelValue(n);else{var i=null,r=this.dateUtil;switch(t){case"move-right":i=r.incrementDays(n,1);break;case"move-left":i=r.incrementDays(n,-1);break;case"move-page-down":i=r.incrementMonths(n,1);break;case"move-page-up":i=r.incrementMonths(n,-1);break;case"move-row-down":i=r.incrementDays(n,7);break;case"move-row-up":i=r.incrementDays(n,-7);break;case"start":i=r.getFirstDateOfMonth(n);break;case"end":i=r.getLastDateOfMonth(n)}i&&(i=this.dateUtil.clampDate(i,a.minDate,a.maxDate),this.changeDisplayDate(i).then(function(){a.focus(i)}))}}}(),function(){function e(e,t){var s=e('<md-icon md-svg-src="'+t.mdTabsArrow+'"></md-icon>')({})[0];return{require:["^^mdCalendar","^^mdCalendarMonth","mdCalendarMonthBody"],scope:{offset:"=mdMonthOffset"},controller:a,controllerAs:"mdMonthBodyCtrl",bindToController:!0,link:function(e,t,a,n){var i=n[0],r=n[1],l=n[2];l.calendarCtrl=i,l.monthCtrl=r,l.arrowIcon=s.cloneNode(!0),e.$watch(function(){return l.offset},function(e){D.isNumber(e)&&l.generateContent()})}}}function a(e,t,a){this.$element=e,this.dateUtil=t,this.dateLocale=a,this.monthCtrl=null,this.calendarCtrl=null,this.offset=null,this.focusAfterAppend=null}e.$inject=["$compile","$$mdSvgRegistry"],a.$inject=["$element","$$mdDateUtil","$mdDateLocale"],D.module("material.components.datepicker").directive("mdCalendarMonthBody",e),a.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)},a.prototype.buildDateCell=function(e){var t=this.monthCtrl,a=this.calendarCtrl,n=document.createElement("td");if(n.tabIndex=-1,n.classList.add("md-calendar-date"),n.setAttribute("role","gridcell"),e){n.setAttribute("tabindex","-1"),n.setAttribute("aria-label",this.dateLocale.longDateFormatter(e)),n.id=a.getDateId(e,"month"),n.setAttribute("data-timestamp",e.getTime()),this.dateUtil.isSameDay(e,a.today)&&n.classList.add(a.TODAY_CLASS),this.dateUtil.isValidDate(a.selectedDate)&&this.dateUtil.isSameDay(e,a.selectedDate)&&(n.classList.add(a.SELECTED_DATE_CLASS),n.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,n.appendChild(r),n.addEventListener("click",t.cellClickHandler),a.displayDate&&this.dateUtil.isSameDay(e,a.displayDate)&&(this.focusAfterAppend=n)}else n.classList.add("md-calendar-date-disabled"),n.textContent=i}return n},a.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.calendarCtrl.minDate,this.calendarCtrl.maxDate)&&(!D.isFunction(this.calendarCtrl.dateFilter)||this.calendarCtrl.dateFilter(e))},a.prototype.buildDateRow=function(e){var t=document.createElement("tr");return t.setAttribute("role","row"),t.setAttribute("aria-label",this.dateLocale.weekNumberFormatter(e)),t},a.prototype.buildCalendarForMonth=function(e){var t=this.dateUtil.isValidDate(e)?e:new Date,a=this.dateUtil.getFirstDateOfMonth(t),n=this.getLocaleDay_(a),i=this.dateUtil.getNumberOfDaysInMonth(t),r=document.createDocumentFragment(),l=1,s=this.buildDateRow(l);r.appendChild(s);var d=this.offset===this.monthCtrl.items.length-1,o=0,c=document.createElement("td"),h=document.createElement("span"),u=this.calendarCtrl;if(h.textContent=this.dateLocale.monthHeaderFormatter(t),c.appendChild(h),c.classList.add("md-calendar-month-label"),u.maxDate&&a>u.maxDate?c.classList.add("md-calendar-month-label-disabled"):u.mode||(c.addEventListener("click",this.monthCtrl.headerClickHandler),c.setAttribute("data-timestamp",a.getTime()),c.setAttribute("aria-label",this.dateLocale.monthFormatter(t)),c.classList.add("md-calendar-label-clickable"),c.appendChild(this.arrowIcon.cloneNode(!0))),n<=2){c.setAttribute("colspan","7");var m=this.buildDateRow();if(m.appendChild(c),r.insertBefore(m,s),d)return r}else o=3,c.setAttribute("colspan","3"),s.appendChild(c);for(var p=o;p<n;p++)s.appendChild(this.buildDateCell());for(var f=n,g=a,D=1;D<=i;D++){if(7===f){if(d)return r;f=0,l++,s=this.buildDateRow(l),r.appendChild(s)}g.setDate(D);var C=this.buildDateCell(g);s.appendChild(C),f++}for(;s.childNodes.length<7;)s.appendChild(this.buildDateCell());for(;r.childNodes.length<6;){for(var y=this.buildDateRow(),v=0;v<7;v++)y.appendChild(this.buildDateCell());r.appendChild(y)}return r},a.prototype.getLocaleDay_=function(e){return(e.getDay()+(7-this.dateLocale.firstDayOfWeek))%7}}(),function(){e.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdUtil"],D.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="'+a+'"><tr aria-hidden="true" md-force-height="\''+a+"px'\"></tr></tbody></table></md-virtual-repeat-container></div>",require:["^^mdCalendar","mdCalendarYear"],controller:e,controllerAs:"yearCtrl",bindToController:!0,link:function(e,t,a,n){var i=n[0],r=n[1];r.initialize(i)}}});var a=88;function e(e,t,a,n,i,r){this.$element=e,this.$scope=t,this.$animate=a,this.$q=n,this.dateUtil=i,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1,this.$mdUtil=r;var l=this;this.cellClickHandler=function(){l.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,a=this.animateDateChange(e);return t.isMonthTransitionInProgress=!0,t.calendarCtrl.displayDate=e,a.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*a}return this.$q.when()},e.prototype.handleKeyEvent=function(e,t){var a=this,n=a.calendarCtrl,i=n.displayDate;if("select"===t)a.changeDate(i).then(function(){a.onTimestampSelected(i)});else{var r=null,l=a.dateUtil;switch(t){case"move-right":r=l.incrementMonths(i,1);break;case"move-left":r=l.incrementMonths(i,-1);break;case"move-row-down":r=l.incrementMonths(i,6);break;case"move-row-up":r=l.incrementMonths(i,-6)}if(r){var s=n.minDate?l.getFirstDateOfMonth(n.minDate):null,d=n.maxDate?l.getFirstDateOfMonth(n.maxDate):null;r=l.getFirstDateOfMonth(a.dateUtil.clampDate(r,s,d)),a.changeDate(r).then(function(){n.focus(r)})}}},e.prototype.attachScopeListeners=function(){var a=this;a.$scope.$on("md-calendar-parent-changed",function(e,t){a.calendarCtrl.changeSelectedDate(t?a.dateUtil.getFirstDateOfMonth(t):t),a.changeDate(t)}),a.$scope.$on("md-calendar-parent-action",D.bind(a,a.handleKeyEvent))},e.prototype.onTimestampSelected=function(e){var t=this.calendarCtrl;t.mode?this.$mdUtil.nextTick(function(){t.setNgModelValue(e)}):t.setCurrentView("month",e)}}(),function(){function e(e,t,a){this.$element=e,this.dateUtil=t,this.dateLocale=a,this.calendarCtrl=null,this.yearCtrl=null,this.offset=null,this.focusAfterAppend=null}e.$inject=["$element","$$mdDateUtil","$mdDateLocale"],D.module("material.components.datepicker").directive("mdCalendarYearBody",function(){return{require:["^^mdCalendar","^^mdCalendarYear","mdCalendarYearBody"],scope:{offset:"=mdYearOffset"},controller:e,controllerAs:"mdYearBodyCtrl",bindToController:!0,link:function(e,t,a,n){var i=n[0],r=n[1],l=n[2];l.calendarCtrl=i,l.yearCtrl=r,e.$watch(function(){return l.offset},function(e){D.isNumber(e)&&l.generateContent()})}}}),e.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)},e.prototype.buildMonthCell=function(e,t){var a=this.calendarCtrl,n=this.yearCtrl,i=this.buildBlankCell(),r=new Date(e,t,1);i.setAttribute("aria-label",this.dateLocale.monthFormatter(r)),i.id=a.getDateId(r,"year"),i.setAttribute("data-timestamp",String(r.getTime())),this.dateUtil.isSameMonthAndYear(r,a.today)&&i.classList.add(a.TODAY_CLASS),this.dateUtil.isValidDate(a.selectedDate)&&this.dateUtil.isSameMonthAndYear(r,a.selectedDate)&&(i.classList.add(a.SELECTED_DATE_CLASS),i.setAttribute("aria-selected","true"));var l=this.dateLocale.shortMonths[t];if(!this.dateUtil.isMonthWithinRange(r,a.minDate,a.maxDate)||D.isFunction(this.calendarCtrl.dateFilter)&&!this.calendarCtrl.dateFilter(r))i.classList.add("md-calendar-date-disabled"),i.textContent=l;else{var s=document.createElement("span");s.classList.add("md-calendar-date-selection-indicator"),s.textContent=l,i.appendChild(s),i.addEventListener("click",n.cellClickHandler),a.displayDate&&this.dateUtil.isSameMonthAndYear(r,a.displayDate)&&(this.focusAfterAppend=i)}return i},e.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},e.prototype.buildCalendarForYear=function(e){var t,a=e.getFullYear(),n=document.createDocumentFragment(),i=document.createElement("tr"),r=document.createElement("td");for(r.className="md-calendar-month-label",r.textContent=a,i.appendChild(r),t=0;t<6;t++)i.appendChild(this.buildMonthCell(a,t));n.appendChild(i);var l=document.createElement("tr");for(l.appendChild(this.buildBlankCell()),t=6;t<12;t++)l.appendChild(this.buildMonthCell(a,t));return n.appendChild(l),n}}(),D.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)}),a=Array(32),n=1;n<=31;n++)a[n]=n;var r=new Date(1880,0,1),l=new Date(r.getFullYear()+250,0,1),s={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||a,firstDayOfWeek:this.firstDayOfWeek||0,formatDate:this.formatDate||function(e,t){if(!e)return"";var a=e.toLocaleTimeString(),n=e;return 0!==e.getHours()||-1===a.indexOf("11:")&&-1===a.indexOf("23:")||(n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),1,0,0)),i("date")(n,"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 s.shortMonths[e.getMonth()]+" "+e.getFullYear()},monthFormatter:this.monthFormatter||function(e){return s.months[e.getMonth()]+" "+e.getFullYear()},weekNumberFormatter:this.weekNumberFormatter||function(e){return"Week "+e},longDateFormatter:this.longDateFormatter||function(e){return[s.days[e.getDay()],s.months[e.getMonth()],s.dates[e.getDate()],e.getFullYear()].join(" ")},msgCalendar:this.msgCalendar||"Calendar",msgOpenCalendar:this.msgOpenCalendar||"Open calendar",firstRenderableDate:this.firstRenderableDate||r,lastRenderableDate:this.lastRenderableDate||l};return s}).$inject=["$locale","$filter"],e.provider("$mdDateLocale",new t)}]),D.module("material.components.datepicker").factory("$$mdDateUtil",function(){return{getFirstDateOfMonth:a,getNumberOfDaysInMonth:i,getDateInNextMonth:n,getDateInPreviousMonth:r,isInNextMonth:function(e,t){return l(n(e),t)},isInPreviousMonth:function(e,t){var a=r(e);return l(t,a)},getDateMidpoint:function(e,t){return c((e.getTime()+t.getTime())/2)},isSameMonthAndYear:l,getWeekOfMonth:function(e){var t=a(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:s,getLastDateOfMonth:function(e){return new Date(e.getFullYear(),e.getMonth(),i(e))},isSameDay:function(e,t){return e.getDate()==t.getDate()&&l(e,t)},getMonthDistance:function(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},isValidDate:d,setDateTimeToMidnight:o,createDateAtMidnight:c,isDateWithinRange:function(e,t,a){var n=c(e),i=d(t)?c(t):null,r=d(a)?c(a):null;return(!i||i<=n)&&(!r||n<=r)},incrementYears:function(e,t){return s(e,12*t)},getYearDistance:function(e,t){return t.getFullYear()-e.getFullYear()},clampDate:function(e,t,a){var n=e;return t&&e<t&&(n=new Date(t.getTime())),a&&a<e&&(n=new Date(a.getTime())),n},getTimestampFromNode:function(e){if(e&&e.hasAttribute("data-timestamp"))return Number(e.getAttribute("data-timestamp"))},isMonthWithinRange:function(e,t,a){var n=e.getMonth(),i=e.getFullYear();return(!t||t.getFullYear()<i||t.getMonth()<=n)&&(!a||a.getFullYear()>i||a.getMonth()>=n)}};function a(e){return new Date(e.getFullYear(),e.getMonth(),1)}function i(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function n(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function r(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function l(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function s(e,t){var a=new Date(e.getFullYear(),e.getMonth()+t,1),n=i(a);return n<e.getDate()?a.setDate(n):a.setDate(e.getDate()),a}function d(e){return e&&e.getTime&&!isNaN(e.getTime())}function o(e){d(e)&&e.setHours(0,0,0,0)}function c(e){var t;return o(t=D.isUndefined(e)?new Date:new Date(e)),t}}),function(){function e(l,h,u,m){return{template:function(e,t){var a=t.mdHideIcons,n=t.ariaLabel||t.mdPlaceholder,i="all"===a||"calendar"===a?"":'<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="'+l.mdCalendar+'"></md-icon></md-button>',r="";return"all"!==a&&"triangle"!==a&&(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(s)),i+'<div class="md-datepicker-input-container" ng-class="{\'md-datepicker-focused\': ctrl.isFocused}"><input '+(n?'aria-label="'+n+'" ':"")+'class="md-datepicker-input" aria-haspopup="true" aria-expanded="{{ctrl.isCalendarOpen}}" 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,a,n){var i=n[0],r=n[1],l=n[2],s=n[3],d=h.parseAttributeBoolean(a.mdNoAsterisk);if(r.configureNgModel(i,l,m),l){var o=t[0].querySelector(".md-errors-spacer");o&&t.after(D.element("<div>").append(o)),l.setHasPlaceholder(a.mdPlaceholder),l.input=t,l.element.addClass(p).toggleClass(f,"calendar"!==a.mdHideIcons&&"all"!==a.mdHideIcons),l.label?d||a.$observe("required",function(e){l.label.toggleClass("md-required",!!e)}):u.expect(t,"aria-label",a.mdPlaceholder),e.$watch(l.isErrorGetter||function(){return i.$invalid&&(i.$touched||s&&s.$submitted)},l.setInvalid)}else if(s)var c=e.$watch(function(){return s.$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"],D.module("material.components.datepicker").directive("mdDatepicker",e);var l="md-datepicker-invalid",h="md-datepicker-open",p="_md-datepicker-floating-label",f="_md-datepicker-has-calendar-icon",s="_md-datepicker-has-triangle-icon",m=/ipad|iphone|ipod|android/i;function t(e,t,a,n,i,r,l,s,d,o,c,h){this.$window=n,this.dateUtil=d,this.$mdConstant=i,this.$mdUtil=l,this.$$rAF=o,this.$mdDateLocale=s,this.$timeout=h,this.documentElement=D.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=t[0].querySelector("input"),this.ngInputElement=D.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=D.element(t[0].querySelector(".md-datepicker-input-mask-opaque")),this.$element=t,this.$attrs=a,this.$scope=e,this.date=null,this.isFocused=!1,this.isDisabled,this.setDisabled(t[0].disabled||D.isString(a.disabled)),this.isCalendarOpen=!1,this.openOnFocus=a.hasOwnProperty("mdOpenOnFocus"),this.mdInputContainer=null,this.calendarPaneOpenedFrom=null,this.calendarPaneId="md-date-pane-"+l.nextUid(),this.bodyClickHandler=D.bind(this,this.handleBodyClick),this.windowEventName=m.test(navigator.userAgent||navigator.vendor||g.opera)?"orientationchange":"resize",this.windowEventHandler=l.debounce(D.bind(this,this.closeCalendarPane),100),this.windowBlurHandler=D.bind(this,this.handleWindowBlur),this.ngDateFilter=c("date"),this.leftMargin=20,this.topMargin=null,a.tabindex?(this.ngInputElement.attr("tabindex",a.tabindex),a.$set("tabindex",null)):a.$set("tabindex","-1"),a.$set("aria-owns",this.calendarPaneId),r(t),r(D.element(this.calendarPane));var u=this;e.$on("$destroy",function(){u.detachCalendarPane()}),a.mdIsOpen&&e.$watch("ctrl.isOpen",function(e){e?u.openCalendarPane({target:u.inputElement}):u.closeCalendarPane()}),1===D.version.major&&D.version.minor<=4&&this.$onInit()}t.prototype.$onInit=function(){this.locale=this.dateLocale?D.extend({},this.$mdDateLocale,this.dateLocale):this.$mdDateLocale,this.installPropertyInterceptors(),this.attachChangeListeners(),this.attachInteractionListeners()},t.prototype.configureNgModel=function(e,t,a){this.ngModelCtrl=e,this.mdInputContainer=t,this.$attrs.$set("type","date"),a[0].link.pre(this.$scope,{on:D.noop,val:D.noop,0:{}},this.$attrs,[e]);var n=this;n.ngModelCtrl.$formatters.push(function(e){var t=D.isDefined(e)?e:null;if(!(e instanceof Date)&&(t=Date.parse(e),!isNaN(t)&&D.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 n.onExternalChange(e),e}),e.$viewChangeListeners.unshift(D.bind(this,this.updateErrorState));var i=n.$mdUtil.getModelOption(e,"updateOn");i&&this.ngInputElement.on(i,D.bind(this.$element,this.$element.triggerHandler,i))},t.prototype.attachChangeListeners=function(){var a=this;a.$scope.$on("md-calendar-change",function(e,t){a.setModelValue(t),a.onExternalChange(t),a.closeCalendarPane()}),a.ngInputElement.on("input",D.bind(a,a.resizeInputElement));var e=D.isDefined(this.debounceInterval)?this.debounceInterval:500;a.ngInputElement.on("input",a.$mdUtil.debounce(a.handleInputEvent,e,a))},t.prototype.attachInteractionListeners=function(){var t=this,a=this.$scope,n=this.$mdConstant.KEY_CODE;t.ngInputElement.on("keydown",function(e){e.altKey&&e.keyCode==n.DOWN_ARROW&&(t.openCalendarPane(e),a.$digest())}),t.openOnFocus&&(t.ngInputElement.on("focus",D.bind(t,t.openCalendarPane)),D.element(t.$window).on("blur",t.windowBlurHandler),a.$on("$destroy",function(){D.element(t.$window).off("blur",t.windowBlurHandler)})),a.$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 a=this.dateUtil.createDateAtMidnight(this.minDate);this.ngModelCtrl.$setValidity("mindate",a<=t)}if(this.dateUtil.isValidDate(this.maxDate)){var n=this.dateUtil.createDateAtMidnight(this.maxDate);this.ngModelCtrl.$setValidity("maxdate",t<=n)}D.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),D.element(this.inputContainer).toggleClass(l,!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(l),["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)&&(!D.isFunction(this.dateFilter)||this.dateFilter(e))},t.prototype.attachCalendarPane=function(){var e=this.calendarPane,t=document.body;e.style.transform="",this.$element.addClass(h),this.mdInputContainer&&this.mdInputContainer.element.addClass(h),D.element(t).addClass("md-datepicker-is-showing");var a=this.inputContainer.getBoundingClientRect(),n=t.getBoundingClientRect();(!this.topMargin||this.topMargin<0)&&(this.topMargin=(this.inputMask.parent().prop("clientHeight")-this.ngInputElement.prop("clientHeight"))/2);var i=a.top-n.top-this.topMargin,r=a.left-n.left-this.leftMargin,l=n.top<0&&0==document.body.scrollTop?-n.top:document.body.scrollTop,s=n.left<0&&0==document.body.scrollLeft?-n.left:document.body.scrollLeft,d=l+this.$window.innerHeight,o=s+this.$window.innerWidth;if(this.inputMask.css({position:"absolute",left:this.leftMargin+"px",top:this.topMargin+"px",width:a.width-1+"px",height:a.height-2+"px"}),o<r+360){if(0<o-360)r=o-360;else{r=s;var c=this.$window.innerWidth/360;e.style.transform="scale("+c+")"}e.classList.add("md-datepicker-pos-adjusted")}d<i+368&&l<d-368&&(i=d-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(h),this.mdInputContainer&&this.mdInputContainer.element.removeClass(h),D.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.$timeout(function(){t.documentElement.on("click touchstart",t.bodyClickHandler)},100),g.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),g.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 D.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()}}()}(window,window.angular);
{
"name": "angular-material-dialog",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-backdrop": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-backdrop": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,k,t){"use strict";function n(e,t,a){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(),k.element(e).on("load",n)),o.$on("$destroy",function(){a.destroy(i)})})}}}function o(e){var $,y;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&&!k.isDefined(this.result);e.keyCode!==i.KEY_CODE.ENTER||t||o.hide(this.result)}}}function o(u,d,g,f,s,c,p,m,h,r,t,l,v){return{hasBackdrop:!0,isolateScope:!0,onCompiling:function(e){e.defaultTheme=t.defaultTheme(),function(t){var e;t.targetEvent&&t.targetEvent.target&&(e=k.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){k.element(c[0].body).addClass("md-dialog-is-showing");var i=t.find("md-dialog");if(i.hasClass("ng-cloak")){h.warn("$mdDialog: using `<md-dialog ng-cloak>` will affect the dialog opening animations.",t[0])}return function(e){function t(e,t){var n=k.element(e||{});if(n&&n.length){var o=k.isFunction(n[0].getBoundingClientRect);return k.extend(t||{},{element:o?n:void 0,bounds:o?n[0].getBoundingClientRect():k.extend({},{top:0,left:0,height:0,width:0},n[0]),focus:k.bind(n,n.focus)})}}function n(e,t){return k.isString(e)&&(e=c[0].querySelector(e)),k.element(e||t)}e.origin=k.extend({element:null,bounds:null,focus:k.noop},e.origin||{}),e.parent=n(e.parent,m),e.closeTo=t(n(e.closeTo)),e.openFrom=t(n(e.openFrom)),e.targetEvent&&(e.origin=t(e.targetEvent.target,e.origin),e.originInteraction=v.getLastInteractionType())}(n),function(e,t){var n="alert"===t.$type?"alertdialog":"dialog",o=e.find("md-dialog-content"),i=e.attr("id"),a="dialogContent_"+(i||g.nextUid());e.attr({role:n,tabIndex:"-1"}),0===o.length&&(o=e,i&&(a=i)),o.attr("id",a),e.attr("aria-describedby",a),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(" ")}),($=document.createElement("div")).classList.add("md-dialog-focus-trap"),$.tabIndex=0,y=$.cloneNode(!1);var r=function(){e.focus()};$.addEventListener("focus",r),y.addEventListener("focus",r),e[0].parentNode.insertBefore($,e[0]),e.after(y)}(i,n),a=e,r=t,l=n,l.disableParentScroll&&(l.restoreScroll=g.disableScrollAround(r,l.parent)),l.hasBackdrop&&(l.backdrop=g.createBackdrop(a,"md-dialog-backdrop md-opaque"),s.enter(l.backdrop,l.parent)),l.hideBackdrop=function(e){l.backdrop&&(e?l.backdrop.remove():s.leave(l.backdrop)),l.disableParentScroll&&(l.restoreScroll&&l.restoreScroll(),delete l.restoreScroll),l.hideBackdrop=null},function(e,t){var n=k.element(p),o=g.debounce(function(){C(e,t)},60),i=[],a=function(){var e="alert"==t.$type?u.hide:u.cancel;g.nextTick(e,!0)};if(t.escapeToClose){var r=t.parent,l=function(e){e.keyCode===f.KEY_CODE.ESCAPE&&(e.stopImmediatePropagation(),e.preventDefault(),a())};e.on("keydown",l),r.on("keydown",l),i.push(function(){e.off("keydown",l),r.off("keydown",l)})}if(n.on("resize",o),i.push(function(){n.off("resize",o)}),t.clickOutsideToClose){var d,s=e,c=function(e){d=e.target},m=function(e){d===s[0]&&e.target===s[0]&&(e.stopPropagation(),e.preventDefault(),a())};s.on("mousedown",c),s.on("mouseup",m),i.push(function(){s.off("mousedown",c),s.off("mouseup",m)})}t.deactivateListeners=function(){i.forEach(function(e){e()}),t.deactivateListeners=null}}(t,n),function(e,t){t.parent.append(e),t.reverseContainerStretch=C(e,t);var n=e.find("md-dialog"),o=g.dom.animator,i=o.calculateZoomToOrigin,a={transitionInClass:"md-transition-in",transitionOutClass:"md-transition-out"},r=o.toTransformCss(i(n,t.openFrom||t.origin)),l=o.toTransformCss("");return n.toggleClass("md-dialog-fullscreen",!!t.fullscreen),o.translate3d(n,r,l,a).then(function(e){return t.reverseAnimate=function(){return delete t.reverseAnimate,t.closeTo?(a={transitionInClass:"md-transition-out",transitionOutClass:"md-transition-in"},r=l,l=o.toTransformCss(i(n,t.closeTo)),o.translate3d(n,r,l,a)):e(l=o.toTransformCss(i(n,t.origin)))},t.clearAnimate=function(){return delete t.clearAnimate,n.removeClass([a.transitionOutClass,a.transitionInClass].join(" ")),o.translate3d(n,l,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]||b(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")&&h.warn("Using a class of md-actions is deprecated, please use <md-dialog-actions>."),function(){if(n.focusOnOpen){var e=g.findFocusTarget(t)||t[0].querySelector(".dialog-close, md-dialog-actions button:last-child")||i;e.focus()}}()});var a,r,l},onShowing:function(e,t,n,o){if(o){var i=o.htmlContent||n.htmlContent||"",a=o.textContent||n.textContent||o.content||n.content||"";if(i&&!r.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(i&&a)throw Error("md-dialog cannot have both `htmlContent` and `textContent`");o.mdHtmlContent=i,o.mdTextContent=a}},onRemove:function(e,t,n){n.deactivateListeners(),n.unlockScreenReader(),n.hideBackdrop(n.$destroy),$&&$.parentNode&&$.parentNode.removeChild($);y&&y.parentNode&&y.parentNode.removeChild(y);return n.$destroy?i():(o=n,o.reverseAnimate().then(function(){o.contentElement&&o.clearAnimate()})).then(i);var o;function i(){k.element(c[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=l.startSymbol(),i=l.endSymbol(),a=o+(t.themeWatch?"":"::")+"theme"+i;return'<div class="md-dialog-container" tabindex="-1" '+(t.hasTheme?'md-theme="'+a+'"':"")+">"+(n=e,t.autoWrap&&!/<\/md-dialog>/g.test(n)?"<md-dialog>"+(n||"")+"</md-dialog>":n||"")+"</div>"}};function C(e,t){var n="fixed"==p.getComputedStyle(c[0].body).position,o=t.backdrop?p.getComputedStyle(t.backdrop[0]):null,i=o?Math.min(c[0].body.clientHeight,Math.ceil(Math.abs(parseInt(o.height,10)))):0,a={top:e.css("top"),height:e.css("height")},r=Math.abs(t.parent[0].getBoundingClientRect().top);return e.css({top:(n?r:0)+"px",height:i?i+"px":"100%"}),function(){e.css(a)}}function b(e,t){if(-1!==t.indexOf(e.nodeName))return!0}}}n.$inject=["$$rAF","$mdTheming","$mdDialog"],o.$inject=["$$interimElementProvider"],k.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",n).provider("$mdDialog",o)}(window,window.angular);
{
"name": "angular-material-divider",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(i,e,n){"use strict";function r(i){return{restrict:"E",link:i}}r.$inject=["$mdTheming"],e.module("material.components.divider",["material.core"]).directive("mdDivider",r)}(window,window.angular);
{
"name": "angular-material-fabActions",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(i,t,e){"use strict";!function(){function i(a){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(i,t){var e=i.children();a.prefixer().hasAttribute(e,"ng-repeat")?e.addClass("md-fab-action-item"):e.wrap('<div class="md-fab-action-item">')}}}i.$inject=["$mdUtil"],t.module("material.components.fabActions",["material.core"]).directive("mdFabActions",i)}()}(window,window.angular);
{
"name": "angular-material-fabSpeedDial",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(c,C,n){"use strict";!function(){function n(e,a,r,c,s,t){var i,l=this,n=0;function d(n){"click"==n.type&&function(n){e=n.target,c.getClosest(e,"md-fab-trigger")&&l.toggle();var e;t=n.target,c.getClosest(t,"md-fab-actions")&&l.close();var t}(n),"focusout"!=n.type||i||(i=t(function(){l.close()},100,!1)),"focusin"==n.type&&i&&(t.cancel(i),i=null)}function m(){l.currentActionIndex=-1}function f(){0<a[0].scrollHeight?r.addClass(a,"_md-animations-ready").then(function(){a.removeClass("md-animations-waiting")}):n<10&&(t(f,100),n+=1)}function u(){a.off("keydown",g),C.element(document).off("click touchend",p)}function p(n){if(n.target){var e=c.getClosest(n.target,"md-fab-trigger"),t=c.getClosest(n.target,"md-fab-actions");e||t||l.close()}}function g(n){switch(n.which){case s.KEY_CODE.ESCAPE:return l.close(),n.preventDefault(),!1;case s.KEY_CODE.LEFT_ARROW:return o=n,"left"===l.direction?v(o):h(o),!1;case s.KEY_CODE.UP_ARROW:return i=n,"down"===l.direction?h(i):v(i),!1;case s.KEY_CODE.RIGHT_ARROW:return t=n,"left"===l.direction?h(t):v(t),!1;case s.KEY_CODE.DOWN_ARROW:return e=n,"up"===l.direction?h(e):v(e),!1}var e,t,i,o}function h(n){o(n,-1)}function v(n){o(n,1)}function o(n,e){var t,i=(t=b()[0].querySelectorAll(".md-fab-action-item"),C.forEach(t,function(n){C.element(C.element(n).children()[0]).attr("tabindex",-1)}),t);l.currentActionIndex=l.currentActionIndex+e,l.currentActionIndex=Math.min(i.length-1,l.currentActionIndex),l.currentActionIndex=Math.max(0,l.currentActionIndex);var o=C.element(i[l.currentActionIndex]).children()[0];C.element(o).attr("tabindex",0),o.focus(),n.preventDefault(),n.stopImmediatePropagation()}function b(){return a.find("md-fab-actions")}l.open=function(){e.$evalAsync("vm.isOpen = true")},l.close=function(){e.$evalAsync("vm.isOpen = false"),a.find("md-fab-trigger")[0].focus()},l.toggle=function(){e.$evalAsync("vm.isOpen = !vm.isOpen")},l.$onInit=function(){var n,i,o;l.direction=l.direction||"down",l.isOpen=l.isOpen||!1,m(),a.addClass("md-animations-waiting"),n=["click","focusin","focusout"],C.forEach(n,function(n){a.on(n,d)}),e.$on("$destroy",function(){C.forEach(n,function(n){a.off(n,d)}),u()}),e.$watch("vm.direction",function(n,e){r.removeClass(a,"md-"+e),r.addClass(a,"md-"+n),m()}),e.$watch("vm.isOpen",function(n){m(),i&&o||(i=a.find("md-fab-trigger"),o=b()),n?(a.on("keydown",g),c.nextTick(function(){C.element(document).on("click touchend",p)})):u();var e=n?"md-is-open":"",t=n?"":"md-is-open";i.attr("aria-haspopup",!0),i.attr("aria-expanded",n),o.attr("aria-hidden",!n),r.setClass(a,e,t)}),f()},1===C.version.major&&C.version.minor<=4&&this.$onInit()}n.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"],C.module("material.components.fabShared",["material.core"]).controller("MdFabController",n)}(),function(){n.$inject=["$timeout"],e.$inject=["$timeout"];var t=300;function n(e){function i(n){e(n,t,!1)}function o(n){if(!n.hasClass("md-animations-waiting")||n.hasClass("_md-animations-ready")){var e=n[0],s=n.controller("mdFabSpeedDial"),i=e.querySelectorAll(".md-fab-action-item"),l=e.querySelector("md-fab-trigger"),t=e.querySelector("._md-css-variables"),o=parseInt(c.getComputedStyle(t).zIndex);C.forEach(i,function(n,e){var t=n.style;t.transform=t.webkitTransform="",t.transitionDelay="",t.opacity=1,t.zIndex=i.length-e+o}),l.style.zIndex=o+i.length+1,s.isOpen||C.forEach(i,function(n,e){var t,i,o=n.style,a=(l.clientHeight-n.clientHeight)/2,r=(l.clientWidth-n.clientWidth)/2;switch(s.direction){case"up":t=n.scrollHeight*(e+1)+a,i="Y";break;case"down":t=-(n.scrollHeight*(e+1)+a),i="Y";break;case"left":t=n.scrollWidth*(e+1)+r,i="X";break;case"right":t=-(n.scrollWidth*(e+1)+r),i="X"}var c="translate"+i+"("+t+"px)";o.transform=o.webkitTransform=c})}}return{addClass:function(n,e,t){n.hasClass("md-fling")?(o(n),i(t)):t()},removeClass:function(n,e,t){o(n),i(t)}}}function e(e){function i(n){e(n,t,!1)}function o(n){var e=n[0],o=n.controller("mdFabSpeedDial"),a=e.querySelectorAll(".md-fab-action-item"),t=e.querySelector("._md-css-variables"),r=parseInt(c.getComputedStyle(t).zIndex);C.forEach(a,function(n,e){var t=n.style,i=65*e;t.opacity=o.isOpen?1:0,t.transform=t.webkitTransform=o.isOpen?"scale(1)":"scale(0)",t.transitionDelay=(o.isOpen?i:a.length-i)+"ms",t.zIndex=a.length-e+r})}return{addClass:function(n,e,t){o(n),i(t)},removeClass:function(n,e,t){o(n),i(t)}}}C.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(n,e){e.prepend('<div class="_md-css-variables"></div>')}}}).animation(".md-fling",n).animation(".md-scale",e).service("mdFabSpeedDialFlingAnimation",n).service("mdFabSpeedDialScaleAnimation",e)}()}(window,window.angular);
{
"name": "angular-material-fabToolbar",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-fabShared": "1.1.15-master-2dd34ab",
"angular-material-fabActions": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-fabShared": "1.1.16-master-db3cdf7",
"angular-material-fabActions": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(b,u,t){"use strict";!function(){function t(){function n(t,e,o){if(e){var n=t[0],r=t.controller("mdFabToolbar"),a=n.querySelector(".md-fab-toolbar-background"),l=n.querySelector("md-fab-trigger button"),i=n.querySelector("md-toolbar"),s=n.querySelector("md-fab-trigger button md-icon"),d=t.find("md-fab-actions").children();if(l&&a){var c=b.getComputedStyle(l).getPropertyValue("background-color"),f=n.offsetWidth,m=(n.offsetHeight,f/l.offsetWidth*2);a.style.backgroundColor=c,a.style.borderRadius=f+"px",r.isOpen?(i.style.pointerEvents="inherit",a.style.width=l.offsetWidth+"px",a.style.height=l.offsetHeight+"px",a.style.transform="scale("+m+")",a.style.transitionDelay="0ms",s&&(s.style.transitionDelay=".3s"),u.forEach(d,function(t,e){t.style.transitionDelay=25*(d.length-e)+"ms"})):(i.style.pointerEvents="none",a.style.transform="scale(1)",a.style.top="0",t.hasClass("md-right")&&(a.style.left="0",a.style.right=null),t.hasClass("md-left")&&(a.style.right="0",a.style.left=null),a.style.transitionDelay="200ms",s&&(s.style.transitionDelay="0ms"),u.forEach(d,function(t,e){t.style.transitionDelay=200+25*e+"ms"}))}}}return{addClass:function(t,e,o){n(t,e),o()},removeClass:function(t,e,o){n(t,e),o()}}}u.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(t,e,o){e.addClass("md-fab-toolbar"),e.find("md-fab-trigger").find("button").prepend('<div class="md-fab-toolbar-background"></div>')}}}).animation(".md-fab-toolbar",t).service("mdFabToolbarAnimation",t)}()}(window,window.angular);
{
"name": "angular-material-gridList",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(t,$,e){"use strict";function i(g,v,w,y){return{restrict:"E",controller:n,scope:{mdOnLayout:"&"},link:function(o,a,u,e){a.addClass("_md"),a.attr("role","list"),e.layoutDelegate=function(t){var n=[].filter.call(a.children(),function(t){return"MD-GRID-TILE"==t.tagName&&!t.$$mdDestroyed}),r={tileSpans:(e=n,[].map.call(e,function(t){var e=$.element(t).controller("mdGridTile");return{row:parseInt(y.getResponsiveAttribute(e.$attrs,"md-rowspan"),10)||1,col:parseInt(y.getResponsiveAttribute(e.$attrs,"md-colspan"),10)||1}})),colCount:function(){var t=parseInt(y.getResponsiveAttribute(u,"md-cols"),10);if(isNaN(t))throw"md-grid-list: md-cols attribute was not found, or contained a non-numeric value";return t}(),rowMode:c(),rowHeight:function(){var t=y.getResponsiveAttribute(u,"md-row-height");if(!t)throw"md-grid-list: md-row-height attribute was not found";switch(c()){case"fixed":return f(t);case"ratio":var e=t.split(":");return parseFloat(e[0])/parseFloat(e[1]);case"fit":return 0}}(),gutter:f(y.getResponsiveAttribute(u,"md-gutter")||1)};var e;if(!t&&$.equals(r,s))return;var i=w(r.colCount,r.tileSpans,n).map(function(t,i){return{grid:{element:a,style:function(t,e,i,n,r){var o={};switch(n){case"fixed":o.height=h({unit:r,span:e,gutter:i}),o.paddingBottom="";break;case"ratio":var a=1===t?0:(t-1)/t,u=1/t*100,s=u*(1/r),l=m({share:s,gutterShare:a,gutter:i});o.height="",o.paddingBottom=h({unit:l,span:e,gutter:i})}return o}(r.colCount,i,r.gutter,r.rowMode,r.rowHeight)},tiles:t.map(function(t,e){return{element:$.element(n[e]),style:function(t,e,i,n,r,o,a){var u=1/i*100,s=(i-1)/i,l=m({share:u,gutterShare:s,gutter:r}),d="rtl"!=document.dir&&"rtl"!=document.body.dir?{left:p({unit:l,offset:t.col,gutter:r}),width:h({unit:l,span:e.col,gutter:r}),paddingTop:"",marginTop:"",top:"",height:""}:{right:p({unit:l,offset:t.col,gutter:r}),width:h({unit:l,span:e.col,gutter:r}),paddingTop:"",marginTop:"",top:"",height:""};switch(o){case"fixed":d.top=p({unit:a,offset:t.row,gutter:r}),d.height=h({unit:a,span:e.row,gutter:r});break;case"ratio":var c=u/a,f=m({share:c,gutterShare:s,gutter:r});d.paddingTop=h({unit:f,span:e.row,gutter:r}),d.marginTop=p({unit:f,offset:t.row,gutter:r});break;case"fit":var g=(n-1)/n;f=m({share:c=1/n*100,gutterShare:g,gutter:r}),d.top=p({unit:f,offset:t.row,gutter:r}),d.height=h({unit:f,span:e.row,gutter:r})}return d}(t.position,t.spans,r.colCount,i,r.gutter,r.rowMode,r.rowHeight)}})}}).reflow().performance();o.mdOnLayout({$event:{performance:i}}),s=r};var s,i=$.bind(e,e.invalidateLayout),n=function(){for(var t in v.MEDIA)y(t),y.getQuery(v.MEDIA[t]).addListener(i);return y.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],u,r)}();function r(t){null==t?e.invalidateLayout():y(t)&&e.invalidateLayout()}o.$on("$destroy",function(){for(var t in e.layoutDelegate=$.noop,n(),v.MEDIA)y.getQuery(v.MEDIA[t]).removeListener(i)});var l=g.startSymbol(),d=g.endSymbol();function t(t){return l+t+d}var m=g(t("share")+"% - ("+t("gutter")+" * "+t("gutterShare")+")"),p=g("calc(("+t("unit")+" + "+t("gutter")+") * "+t("offset")+")"),h=g("calc(("+t("unit")+") * "+t("span")+" + ("+t("span")+" - 1) * "+t("gutter")+")");function c(){var t=y.getResponsiveAttribute(u,"md-row-height");if(!t)throw"md-grid-list: md-row-height attribute was not found";return"fit"==t?"fit":-1!==t.indexOf(":")?"ratio":"fixed"}function f(t){return/\D$/.test(t)?t:t+"px"}}}}function n(t){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=t.nextTick,this.layoutDelegate=$.noop}function r(s){var l=e;return t.animateWith=function(t){l=$.isFunction(t)?t:e},t;function t(t,e){var i,n,r,o,a,u;return o=s.time(function(){n=function(r,t){var o=0,a=0,u=function(){for(var t=[],e=0;e<r;e++)t.push(0);return t}();return{positioning:t.map(function(t,e){return{spans:t,position:function(t,e){if(t.col>r)throw"md-grid-list: Tile at position "+e+" has a colspan ("+t.col+") that exceeds the column count ("+r+")";var i=0,n=0;for(;n-i<t.col;)r<=o?s():-1!==(i=u.indexOf(0,o))&&-1!==(n=d(i+1))?o=n+1:(i=n=0,s());return l(i,t.col,t.row),o=i+t.col,{col:i,row:a}}(t,e)}}),rowCount:a+Math.max.apply(Math,u)};function s(){a++,l(o=0,r,-1)}function l(t,e,i){for(var n=t;n<t+e;n++)u[n]=Math.max(u[n]+i,0)}function d(t){var e;for(e=t;e<u.length;e++)if(0!==u[e])return e;if(e===u.length)return e}}(t,e)}),i={layoutInfo:function(){return n},map:function(e){return a=s.time(function(){var t=i.layoutInfo();r=e(t.positioning,t.rowCount)}),i},reflow:function(t){return u=s.time(function(){(t||l)(r.grid,r.tiles)}),i},performance:function(){return{tileCount:e.length,layoutTime:o,mapTime:a,reflowTime:u,totalTime:o+a+u}}}}function e(t,e){t.element.css(t.style),e.forEach(function(t){t.element.css(t.style)})}}function o(o){return{restrict:"E",require:"^mdGridList",template:"<figure ng-transclude></figure>",transclude:!0,scope:{},controller:["$attrs",function(t){this.$attrs=t}],link:function(t,e,i,n){e.attr("role","listitem");var r=o.watchResponsiveAttributes(["md-colspan","md-rowspan"],i,$.bind(n,n.invalidateLayout));n.invalidateTiles(),t.$on("$destroy",function(){e[0].$$mdDestroyed=!0,r(),n.invalidateLayout()}),$.isDefined(t.$parent.$index)&&t.$watch(function(){return t.$parent.$index},function(t,e){t!==e&&n.invalidateTiles()})}}}function a(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}n.$inject=["$mdUtil"],r.$inject=["$mdUtil"],i.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],o.$inject=["$mdMedia"],$.module("material.components.gridList",["material.core"]).directive("mdGridList",i).directive("mdGridTile",o).directive("mdGridTileFooter",a).directive("mdGridTileHeader",a).factory("$mdGridLayout",r),n.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_($.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}}}(window,window.angular);
{
"name": "angular-material-icon",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(M,S,e){"use strict";S.module("material.components.icon",["material.core"]),S.module("material.components.icon").directive("mdIcon",["$mdIcon","$mdTheming","$mdAria","$sce",function(c,d,l,e){return{restrict:"E",link:function(e,t,n){d(t);var i=n.mdFontIcon,r=c.fontSet(n.mdFontSet);n.mdSvgIcon||n.mdSvgSrc||(n.mdFontIcon&&t.addClass("md-font "+n.mdFontIcon),t.addClass(r)),n.$observe("mdFontIcon",u),n.$observe("mdFontSet",u);t[0].getAttribute(n.$attr.mdSvgSrc);var o,a=n.$normalize(n.$attr.mdSvgIcon||n.$attr.mdSvgSrc||"");n.role||(l.expect(t,"role","img"),n.role="img");"img"!==n.role||n.ariaHidden||l.hasAriaLabel(t)||(n.alt?l.expect(t,"aria-label",n.alt):l.parentHasAriaLabel(t,2)?l.expect(t,"aria-hidden","true"):(o=n.mdFontIcon||n.mdSvgIcon||t.text())?l.expect(t,"aria-label",o):l.expect(t,"aria-hidden","true"));a&&n.$observe(a,function(e){t.empty(),e&&c(e).then(function(e){t.empty(),t.append(e)})});function u(){if(!n.mdSvgIcon&&!n.mdSvgSrc){n.mdFontIcon&&(t.removeClass(i),t.addClass(n.mdFontIcon),i=n.mdFontIcon);var e=c.fontSet(n.mdFontSet);r!==e&&(t.removeClass(r),t.addClass(e),r=e)}}}}}]),a.$inject=["config","$templateRequest","$q","$log","$mdUtil","$sce"],S.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",t);var o={defaultViewBoxSize:24,defaultFontSet:"material-icons",fontSets:[]};function t(){}function i(e,t){this.url=e,this.viewBoxSize=t||o.defaultViewBoxSize}function a(a,o,u,c,l,t){var i={},d={},n=/[-\w@:%+.~#?&//=]{2,}\.[a-z]{2,4}\b(\/[-\w@:%+.~#?&//=]*)?/i,s=/^data:image\/svg\+xml[\s*;\w\-=]*?(base64)?,(.*)$/i;return x.prototype={clone:function(){return this.element.cloneNode(!0)},prepare:function(){var e=this.config?this.config.viewBoxSize:a.defaultViewBoxSize;S.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(S.isUndefined(t)||!t||!t.length)return a.defaultFontSet;var n=t;return S.forEach(a.fontSets,function(e){e.alias===t&&(n=e.fontSet||n)}),n},e;function e(e){return e=e||"",S.isString(e)||(e=t.getTrustedUrl(e)),i[e]?u.when(function(e){var n,i,r,o,a=e.clone(),u=l.nextUid(),c=["clip-path","color-profile","cursor","fill","filter","href","marker-start","marker-mid","marker-end","mask","stroke","style","vector-effect"],d=void 0===a.innerHTML;if(!isFinite(Number(u)))throw new Error("Unsafe and unexpected non-number result from $mdUtil.nextUid().");n="_cache"+u,a.id&&(a.id+=n);return S.forEach(a.querySelectorAll("[id]"),function(t){for(i="",r=0;r<c.length;r++)i+="["+c[r]+'="url(#'+t.id+')"]',r+1<c.length&&(i+=", ");S.forEach(a.querySelectorAll(i),function(e){g(t,e,d,u)}),S.forEach(a.querySelectorAll("style"),function(e){g(t,e,d,u)}),S.forEach(a.querySelectorAll("[*|href]:not([href])"),function(e){(o=e.getAttribute("xlink:href"))&&(o=o.replace("#"+t.id,"#"+t.id+n),e.setAttribute("xlink:href",o))}),t.id+=n}),a}(i[e])):n.test(e)||s.test(e)?f(e).then(r(e)):(-1===e.indexOf(":")&&(e="$default:"+e),(a[e]?I:m)(e).then(r(e)))}function g(e,t,n,i){var r,o;if(!isFinite(Number(i)))throw new Error("Unsafe and unexpected non-number result for newUid.");o="_cache"+i,n?(r=(r=l.getOuterHTML(t)).replace("url(#"+e.id+")","url(#"+e.id+o+")"),t.textContent=S.element(r)[0].innerHTML):t.outerHTML=t.outerHTML.replace("url(#"+e.id+")","url(#"+e.id+o+")")}function r(n){return function(e){var t;return i[n]=(t=e,S.isDefined(t.element)&&S.isDefined(t.config)?e:new x(e,a[n])),i[n].clone()}}function I(e){var t=a[e];return f(t.url).then(function(e){return new x(e,t)})}function m(i){var e=i.substring(0,i.lastIndexOf(":"))||"$default",r=a[e];return r?f(r.url).then(function(e){var t=i.slice(i.lastIndexOf(":")+1),n=e.querySelector("#"+t);return n?new x(n,r):o(i)}):o(i);function o(e){var t="icon "+e+" not found";return c.warn(t),u.reject(t||e)}}function f(e){return s.test(e)?(t=e,n=s.exec(t),r=/base64/i.test(t)?M.atob(n[2]):n[2],u.when(S.element(r)[0])):(i=e,u(function(t,n){o(i,!0).then(function(e){d[i]||(d[i]=S.element("<div>").append(e)[0].querySelector("svg")),t(d[i])},function(e){var t=S.isString(e)?e:e.message||e.data||e.statusText;c.warn(t),n(e)})}));var i,t,n,r}function x(e,t){var n;if(e&&"symbol"===e.tagName.toLowerCase()){var i=e.getAttribute("viewBox");n=e.innerHTML?e.innerHTML:l.getInnerHTML(e),e=S.element('<svg xmlns="http://www.w3.org/2000/svg">').append(n)[0],i&&e.setAttribute("viewBox",i)}e&&"svg"!==e.tagName.toLowerCase()&&(e=S.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()}}t.prototype={icon:function(e,t,n){return-1==e.indexOf(":")&&(e="$default:"+e),o[e]=new i(t,n),this},iconSet:function(e,t,n){return o[e]=new i(t,n),this},defaultIconSet:function(e,t){var n="$default";return o[n]||(o[n]=new i(e,t)),o[n].viewBoxSize=t||o.defaultViewBoxSize,this},defaultViewBoxSize:function(e){return o.defaultViewBoxSize=e,this},fontSet:function(e,t){return o.fontSets.push({alias:e,fontSet:t||e}),this},defaultFontSet:function(e){return o.defaultFontSet=e||"",this},defaultIconSize:function(e){return o.defaultIconSize=e,this},$get:["$templateRequest","$q","$log","$mdUtil","$sce",function(e,t,n,i,r){return a(o,e,t,n,i,r)}]}}(window,window.angular);
{
"name": "angular-material-input",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(a,y,g){"use strict";t.$inject=["$mdTheming","$parse","$$rAF"],n.$inject=["$mdUtil","$window","$mdAria","$timeout","$mdGesture"],i.$inject=["$animate","$mdUtil"],r.$inject=["$compile"],c.$inject=["$mdUtil"],o.$inject=["$document","$timeout"],m.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],f.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],p.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"];var e=y.module("material.components.input",["material.core"]).directive("mdInputContainer",t).directive("label",function(){return{restrict:"E",require:"^?mdInputContainer",link:function(e,t,n,i){!i||n.mdNoFloat||t.hasClass("md-container-ignore")||(i.label=t,e.$on("$destroy",function(){i.label=null}))}}}).directive("input",n).directive("textarea",n).directive("mdMaxlength",i).directive("placeholder",r).directive("ngMessages",function(){return{restrict:"EA",link:function(e,t,n,i){if(!i)return;t.toggleClass("md-input-messages-animation",!0),t.toggleClass("md-auto-hide",!0),("false"==n.mdAutoHide||(r=n,d.some(function(e){return r[e]})))&&t.toggleClass("md-auto-hide",!1);var r},require:"^^?mdInputContainer"}}).directive("ngMessage",c).directive("ngMessageExp",c).directive("mdSelectOnFocus",o).animation(".md-input-invalid",m).animation(".md-input-messages-animation",f).animation(".md-input-message-animation",p);function t(r,a,o){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(","),s=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),i=e[0].querySelector(s);return function(e,t){r(t),(n||i)&&o(function(){var e=t[0].querySelector("md-icon")||t[0].querySelector(".md-icon");n&&e&&t.addClass("md-icon-left"),i&&e&&t.addClass("md-icon-right")})}},controller:n};function n(e,t,n,i){var r=this;r.isErrorGetter=n.mdIsError&&a(n.mdIsError),r.delegateClick=function(){r.input.focus()},r.element=t,r.setFocused=function(e){t.toggleClass("md-input-focused",!!e)},r.setHasValue=function(e){t.toggleClass("md-input-has-value",!!e)},r.setHasPlaceholder=function(e){t.toggleClass("md-input-has-placeholder",!!e)},r.setInvalid=function(e){e?i.addClass(t,"md-input-invalid"):i.removeClass(t,"md-input-invalid")},e.$watch(function(){return r.label&&r.input},function(e){e&&!r.label.attr("for")&&r.label.attr("for",r.input.attr("id"))})}}function n(v,$,d,C,w){return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:function(c,m,f,e){var p=e[0],g=!!e[1],h=e[1]||v.fakeNgModel(),t=e[2],n=y.isDefined(f.readonly),i=v.parseAttributeBoolean(f.mdNoAsterisk),r=m[0].tagName.toLowerCase();if(!p)return;{if("hidden"===f.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&&f.$observe("required",function(e){p.label.toggleClass("md-required",e&&!i)});var a=y.element('<div class="md-errors-spacer">');m.after(a);var o=y.isString(f.placeholder)?f.placeholder.trim():"";p.label||o.length||d.expect(m,"aria-label");m.addClass("md-input"),m.attr("id")||m.attr("id","input_"+v.nextUid());"input"===r&&"number"===f.type&&f.min&&f.max&&!f.step?m.attr("step","any"):"textarea"===r&&function(){var t=!f.hasOwnProperty("mdNoAutogrow");if(function(){if(!f.hasOwnProperty("mdNoResize")){var e=y.element('<div class="md-resize-handle"></div>'),t=!1,n=0,i=p.element,r=w.register(e,"drag",{horizontal:!1});m.wrap('<div class="md-resize-wrapper">').after(e),e.on("mousedown",a),i.on("$md.dragstart",o).on("$md.drag",s).on("$md.dragend",u),c.$on("$destroy",function(){e.off("mousedown",a).remove(),i.off("$md.dragstart",o).off("$md.drag",s).off("$md.dragend",u),r(),r=i=e=null})}function a(e){e.preventDefault(),t=!0,e.clientY,n=parseFloat(m.css("height"))||m.prop("offsetHeight")}function o(e){t&&(e.preventDefault(),l(),i.addClass("md-input-resized"))}function s(e){t&&m.css("height",n+e.pointer.distanceY+"px")}function u(e){t&&(t=!1,i.removeClass("md-input-resized"))}}(),!t)return;var a=f.hasOwnProperty("rows")?parseInt(f.rows):NaN,o=f.hasOwnProperty("maxRows")?parseInt(f.maxRows):NaN,n=c.$on("md-resize-textarea",i),s=null,u=m[0];C(function(){v.nextTick(i)},10,!1),m.on("input",i),g&&h.$formatters.push(r);a||m.attr("rows",1);function i(){m.attr("rows",1).css("height","auto").addClass("md-no-flex");var e,t,n=(e=u.offsetHeight,t=u.scrollHeight-e,e+Math.max(t,0));if(!s){var i=m[0].style.padding||"";s=m.css("padding",0).prop("offsetHeight"),m[0].style.padding=i}if(a&&s&&(n=Math.max(n,s*a)),o&&s){var r=s*o;r<n?(m.attr("md-no-autogrow",""),n=r):m.removeAttr("md-no-autogrow")}s&&m.attr("rows",Math.round(n/s)),m.css("height",n+"px").removeClass("md-no-flex")}function r(e){return v.nextTick(i),e}function l(){if(t&&(t=!1,y.element($).off("resize",i),n&&n(),m.attr("md-no-autogrow","").off("input",i),g)){var e=h.$formatters.indexOf(r);-1<e&&h.$formatters.splice(e,1)}}if(y.element($).on("resize",i),c.$on("$destroy",l),f.hasOwnProperty("mdDetectHidden")){var e=(d=!1,function(){var e=0===u.offsetHeight;!1===e&&!0===d&&i(),d=e});c.$watch(function(){return v.nextTick(e,!1),!0})}var d}();g||l();var s=p.isErrorGetter||function(){return h.$invalid&&(h.$touched||t&&t.$submitted)};c.$watch(s,p.setInvalid),f.ngValue&&f.$observe("value",l);h.$parsers.push(u),h.$formatters.push(u),m.on("input",l),n||m.on("focus",function(e){v.nextTick(function(){p.setFocused(!0)})}).on("blur",function(e){v.nextTick(function(){p.setFocused(!1),l()})});function u(e){return p.setHasValue(!h.$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 i(f,p){return{restrict:"A",require:["ngModel","^mdInputContainer"],link:function(e,i,t,n){var r=parseInt(t.mdMaxlength);isNaN(r)&&(r=-1);var a,o,s=n[0],u=n[1],l=!y.isDefined(t.ngTrim)||p.parseAttributeBoolean(t.ngTrim),d="password"===t.type;function c(e){return(e=l&&!d&&y.isString(e)?e.trim():e)!==g&&null!==e||(e=""),String(e).length}function m(){a&&a.parent()&&a.text(c(i.val())+" / "+r)}e.$watch(t.mdMaxlength,function(e){r=e}),s.$validators["md-maxlength"]=function(e,t){if(!y.isNumber(r)||r<0)return!0;m();var n=i.val()||t;return n!==g&&null!==n||(n=""),n=l&&!d&&y.isString(n)?n.trim():n,String(n).length<=r},s.$isEmpty=function(e){return 0===c(e)},p.nextTick(function(){o=y.element(u.element[0].querySelector(".md-errors-spacer")),a=y.element('<div class="md-char-counter">'),o.append(a),t.$observe("ngTrim",function(e){l=!y.isDefined(e)||p.parseAttributeBoolean(e)}),e.$watch(t.mdMaxlength,function(e){y.isNumber(e)&&0<e?(a.parent().length||f.enter(a,o),m()):f.leave(a)})})}}}function r(s){return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:{pre:function(e,t,n,i){if(!i)return;var r=i.element.find("label"),a=i.element.attr("md-no-float");if(r&&r.length||""===a||e.$eval(a))return void i.setHasPlaceholder(!0);if("MD-SELECT"!==t[0].nodeName){var o=y.element('<label ng-click="delegateClick()" tabindex="-1" aria-hidden="true">'+n.placeholder+"</label>");n.$set("placeholder",null),i.element.addClass("md-icon-float").prepend(o),s(o)(e)}}}}}function o(o,s){return{restrict:"A",link:function(e,t,n){if("INPUT"!==t[0].nodeName&&"TEXTAREA"!==t[0].nodeName)return;var i=!1;function r(){s(function(){o[0].activeElement===t[0]&&t[0].select(),i=!1},1,!(i=!0))}function a(e){i&&e.preventDefault()}t.on("focus",r).on("mouseup",a),e.$on("$destroy",function(){t.off("focus",r).off("mouseup",a)})}}}a._mdMocksIncluded&&e.service("$$mdInput",function(){return{messages:{getElement:w}}}).service("mdInputInvalidAnimation",m).service("mdInputMessagesAnimation",f).service("mdInputMessageAnimation",p);var s,u,l,d=["ngIf","ngShow","ngHide","ngSwitchWhen","ngSwitchDefault"];function c(t){return{restrict:"EA",compile:function(n){if(i(n))r(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){i(t)&&r(n)};function i(e){return!!t.getClosest(e,"md-input-container")}function r(e){e.toggleClass("md-input-message-animation",!0)}},priority:100}}function m(e,t,n){return x(e,t,n),{addClass:function(e,t,n){h(e,n)}}}function f(e,t,n){return x(e,t,n),{enter:function(e,t){h(e,t)},leave:function(e,t){v(e,t)},addClass:function(e,t,n){"ng-hide"==t?v(e,n):n()},removeClass:function(e,t,n){"ng-hide"==t?h(e,n):n()}}}function p(e,t,n,i){return x(e,t,n),{enter:function(e,t){$(e).start().done(t)},leave:function(e,t){C(e).start().done(t)}}}function h(e,t){var n,i=[],r=w(e),a=r.children();0!=r.length&&0!=a.length?(y.forEach(a,function(e){n=$(y.element(e)),i.push(n.start())}),s.all(i,t)):t()}function v(e,t){var n,i=[],r=w(e),a=r.children();0!=r.length&&0!=a.length?(y.forEach(a,function(e){n=C(y.element(e)),i.push(n.start())}),s.all(i,t)):t()}function $(e){var t=parseInt(a.getComputedStyle(e[0]).height),n=parseInt(a.getComputedStyle(e[0]).marginTop),i=w(e),r=e.controller("mdInputContainer").element;return-t<n||i.hasClass("md-auto-hide")&&!r.hasClass("md-input-invalid")?u(e,{}):u(e,{event:"enter",structural:!0,from:{opacity:0,"margin-top":-t+"px"},to:{opacity:1,"margin-top":"0"},duration:.3})}function C(e){var t=e[0].offsetHeight,n=a.getComputedStyle(e[0]);return 0===parseInt(n.opacity)?u(e,{}):u(e,{event:"leave",structural:!0,from:{opacity:1,"margin-top":0},to:{opacity:0,"margin-top":-t+"px"},duration:.3})}function w(e){return e.hasClass("md-input-messages-animation")?e:e.hasClass("md-input-message-animation")?y.element(l.getClosest(e,function(e){return e.classList.contains("md-input-messages-animation")})):y.element(e[0].querySelector(".md-input-messages-animation"))}function x(e,t,n){s=e,u=t,l=n}}(window,window.angular);
{
"name": "angular-material-list",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,b,t){"use strict";function n(t){return{restrict:"E",compile:function(e){return e[0].setAttribute("role","list"),t}}}function r(u,f,p,h){var g=["md-checkbox","md-switch","md-menu"];return{restrict:"E",controller:"MdListController",compile:function(a,o){var e,i,t,n=a[0].querySelectorAll(".md-secondary"),r=a;if(a[0].setAttribute("role","listitem"),o.ngClick||o.ngDblclick||o.ngHref||o.href||o.uiSref||o.ngAttrUiSref)l("button");else if(!a.hasClass("md-no-proxy")){for(var s,d=0;s=g[d];++d)if(i=a[0].querySelector(s)){e=!0;break}e?l("div"):a.addClass("md-no-proxy")}function l(e){if("div"==e)(r=b.element('<div class="md-no-style md-list-item-inner">')).append(a.contents()),a.addClass("md-proxy-focus");else{r=b.element('<div class="md-button md-no-style"> <div class="md-list-item-inner"></div></div>');var t=b.element('<md-button class="md-no-style"></md-button>');c(a[0],t[0]),t.attr("aria-label")||t.attr("aria-label",u.getText(a)),a.hasClass("md-no-focus")&&t.addClass("md-no-focus"),r.prepend(t),r.children().eq(1).append(a.contents()),a.addClass("_md-button-wrap")}a[0].setAttribute("tabindex","-1"),a.append(r)}function c(t,n,e){var r=p.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&&(r=r.concat(p.prefixer(e))),b.forEach(r,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=b.element('<div class="md-secondary-container">'),b.forEach(n,function(e){!function(e,t){if(e&&("MD-BUTTON"!=(r=e.nodeName.toUpperCase())&&"BUTTON"!=r)&&e.hasAttribute("ng-click")){u.expect(e,"aria-label");var n=b.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]}var r,i;!e||m(e)&&(o.ngClick||(i=e,-1==g.indexOf(i.nodeName.toLowerCase())))||b.element(e).removeClass("md-secondary"),a.addClass("md-with-secondary"),t.append(e)}(e,t)}),r.append(t),function(){for(var e,t,n=["md-switch","md-checkbox"],r=0;t=n[r];++r)if((e=a.find(t)[0])&&!e.hasAttribute("aria-label")){var i=a.find("p")[0];if(!i)return;e.setAttribute("aria-label","Toggle "+i.textContent)}}(),e&&"MD-MENU"===i.nodeName&&function(){var e=b.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 r=e.children().eq(0);m(r[0])||r.attr("ng-click","$mdMenu.open($event)");r.attr("aria-label")||r.attr("aria-label","Open List Menu")}(),function(e,i,t,n){i.addClass("_md");var r=[],a=i[0].firstElementChild,o=i.hasClass("_md-button-wrap")?a.firstElementChild:a,s=o&&m(o),d=i.hasClass("md-no-proxy");a&&a.children&&!s&&!d&&b.forEach(g,function(e){b.forEach(a.querySelectorAll(e+":not(.md-secondary)"),function(e){r.push(e)})}),(1==r.length||s)&&(i.addClass("md-clickable"),s||n.attachRipple(e,b.element(i[0].querySelector(".md-no-style")))),r.length&&b.forEach(r,function(t){t=b.element(t),e.mouseActive=!1,t.on("mousedown",function(){e.mouseActive=!0,h(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)})})});var l=function(e){if("INPUT"!=e.target.nodeName&&"TEXTAREA"!=e.target.nodeName&&!e.target.isContentEditable){var t=e.which||e.keyCode;t==f.KEY_CODE.SPACE&&o&&(o.click(),e.preventDefault(),e.stopPropagation())}};s||r.length||o&&o.addEventListener("keypress",l);i.off("click"),i.off("keypress"),1==r.length&&o&&i.children().eq(0).on("click",function(t){if(!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]),r=0;r<n;r++)if(-1!==t.indexOf(e.path[r].tagName.toLowerCase()))return!0}(t)){var e=p.getClosest(t.target,"BUTTON");!e&&o.contains(t.target)&&b.forEach(r,function(e){t.target===e||e.contains(t.target)||("MD-MENU"===e.nodeName&&(e=e.children[0]),b.element(e).triggerHandler("click"))})}});e.$on("$destroy",function(){o&&o.removeEventListener("keypress",l)})}}}}function i(e,t,n){this.attachRipple=function(e,t){n.attach(e,t,{})}}i.$inject=["$scope","$element","$mdListInkRipple"],n.$inject=["$mdTheming"],r.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"],b.module("material.components.list",["material.core"]).controller("MdListController",i).directive("mdList",n).directive("mdListItem",r)}(window,window.angular);
{
"name": "angular-material-menu",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-backdrop": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-backdrop": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,M,A){"use strict";function t(o,t,i,a,l,r,e,n,s){var d,u,c=l.prefixer(),m=this;this.nestLevel=parseInt(t.mdNestLevel,10)||0,this.init=function(e,t){t=t||{},d=e,(u=i[0].querySelector(c.buildSelector(["ng-click","ng-mouseenter"]))).setAttribute("aria-expanded","false"),this.isInMenuBar=t.isInMenuBar,this.nestedMenus=l.nodesToArray(d[0].querySelectorAll(".md-nested-menu")),d.on("$mdInterimElementRemove",function(){m.isOpen=!1,l.nextTick(function(){m.onIsOpenChanged(m.isOpen)})}),l.nextTick(function(){m.onIsOpenChanged(m.isOpen)});var n="menu_container_"+l.nextUid();d.attr("id",n),M.element(u).attr({"aria-owns":n,"aria-haspopup":"true"}),a.$on("$destroy",M.bind(this,function(){this.disableHoverListener(),o.destroy()})),d.on("$destroy",function(){o.destroy()})};var p,f,h=[];this.enableHoverListener=function(){h.push(e.$on("$mdMenuOpen",function(e,t){d[0].contains(t[0])&&(m.currentlyOpenMenu=t.controller("mdMenu"),m.isAlreadyOpening=!1,m.currentlyOpenMenu.registerContainerProxy(m.triggerContainerProxy.bind(m)))})),h.push(e.$on("$mdMenuClose",function(e,t){d[0].contains(t[0])&&(m.currentlyOpenMenu=A)})),(f=M.element(l.nodesToArray(d[0].children[0].children))).on("mouseenter",m.handleMenuItemHover),f.on("mouseleave",m.handleMenuItemMouseLeave)},this.disableHoverListener=function(){for(;h.length;)h.shift()();f&&f.off("mouseenter",m.handleMenuItemHover),f&&f.off("mouseleave",m.handleMenuItemMouseLeave)},this.handleMenuItemHover=function(e){if(!m.isAlreadyOpening){var t=e.target.querySelector("md-menu")||l.getClosest(e.target,"MD-MENU");p=r(function(){if(t&&(t=M.element(t).controller("mdMenu")),m.currentlyOpenMenu&&m.currentlyOpenMenu!=t){var e=m.nestLevel+1;m.currentlyOpenMenu.close(!0,{closeTo:e}),m.isAlreadyOpening=!!t,t&&t.open()}else t&&!t.isOpen&&t.open&&(m.isAlreadyOpening=!!t,t&&t.open())},t?100:250);var n=e.currentTarget.querySelector(".md-button:not([disabled])");n&&n.focus()}},this.handleMenuItemMouseLeave=function(){p&&(r.cancel(p),p=A)},this.open=function(e){e&&e.stopPropagation(),e&&e.preventDefault(),m.isOpen||(m.enableHoverListener(),m.isOpen=!0,l.nextTick(function(){m.onIsOpenChanged(m.isOpen)}),(u=u||(e?e.target:i[0])).setAttribute("aria-expanded","true"),a.$emit("$mdMenuOpen",i),o.show({scope:a,mdMenuCtrl:m,nestLevel:m.nestLevel,element:d,target:u,preserveElement:!0,parent:"body"}).finally(function(){u.setAttribute("aria-expanded","false"),m.disableHoverListener()}))},this.onIsOpenChanged=function(e){e?(d.attr("aria-hidden","false"),i[0].classList.add("md-open"),M.forEach(m.nestedMenus,function(e){e.classList.remove("md-open")})):(d.attr("aria-hidden","true"),i[0].classList.remove("md-open")),a.$mdMenuIsOpen=m.isOpen},this.focusMenuContainer=function(){var e=d[0].querySelector(c.buildSelector(["md-menu-focus-target","md-autofocus"]));e||(e=d[0].querySelector(".md-button:not([disabled])")),e.focus()},this.registerContainerProxy=function(e){this.containerProxy=e},this.triggerContainerProxy=function(e){this.containerProxy&&this.containerProxy(e)},this.destroy=function(){return m.isOpen?o.destroy():n.when(!1)},this.close=function(e,t){if(m.isOpen){m.isOpen=!1,l.nextTick(function(){m.onIsOpenChanged(m.isOpen)});var n=M.extend({},t,{skipFocus:e});if(a.$emit("$mdMenuClose",i,n),o.hide(null,t),!e){var r=m.restoreFocusTo||i.find("button")[0];r instanceof M.element&&(r=r[0]),r&&r.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=M.bind(this,function(){return s.warn("mdMenu: The $mdOpenMenu method is deprecated. Please use `$mdMenu.open`."),this.open.apply(this,arguments)})}function n(a){var l="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 r="MD-BUTTON"===t.nodeName||"BUTTON"===t.nodeName;t&&r&&!t.hasAttribute("type")&&t.setAttribute("type","button");if(!t)throw Error(l+"Expected the menu to have a trigger element.");if(2!==e.children().length)throw Error(l+"Expected two children elements. The second element must have a `md-menu-content` element.");t&&t.setAttribute("aria-haspopup","true");var o=e[0].querySelectorAll("md-menu"),i=parseInt(e[0].getAttribute("md-nest-level"),10)||0;o&&M.forEach(a.nodesToArray(o),function(e){e.hasAttribute("md-position-mode")||e.setAttribute("md-position-mode","cascade"),e.classList.add("_md-nested-menu"),e.setAttribute("md-nest-level",i+1)});return s}};function s(e,t,n,r){var o=r[0],i=!!r[1],a=M.element('<div class="_md md-open-menu-container md-whiteframe-z2"></div>'),l=t.children()[1];t.addClass("_md"),l.hasAttribute("role")||l.setAttribute("role","menu"),a.append(l),t.on("$destroy",function(){a.remove()}),t.append(a),a[0].style.display="none",o.init(a,{isInMenuBar:i})}}function r(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(E,d,u,k,O,c,m,p,f,h){var $=E.prefixer(),g=E.dom.animator;return{parent:"body",onShow:function(a,n,l){(function(){if(!l.target)throw Error("$mdMenu.show() expected a target to animate from in options.target");M.extend(l,{alreadyOpen:!1,isRemoved:!1,target:M.element(l.target),parent:M.element(l.parent),menuContentEl:M.element(n[0].querySelector("md-menu-content"))})})(),l.menuContentEl[0]?d.inherit(l.menuContentEl,l.target):h.warn("$mdMenu: Menu elements should always contain a `md-menu-content` element,otherwise interactivity features will not work properly.",n);return l.cleanupResizing=(r=n,o=l,i=m.throttle(function(){if(!l.isRemoved){var e=b(r,o);r.css(g.toCss(e))}}),O.addEventListener("resize",i),O.addEventListener("orientationchange",i),function(){O.removeEventListener("resize",i),O.removeEventListener("orientationchange",i)}),l.hideBackdrop=(e=a,t=l,t.nestLevel?M.noop:(t.disableParentScroll&&!E.getClosest(t.target,"MD-DIALOG")?t.restoreScroll=E.disableScrollAround(t.element,t.parent):t.disableParentScroll=!1,t.hasBackdrop&&(t.backdrop=E.createBackdrop(e,"md-menu-backdrop md-click-catcher"),f.enter(t.backdrop,k[0].body)),function(){t.backdrop&&t.backdrop.remove(),t.disableParentScroll&&t.restoreScroll()})),(l.parent.append(n),n[0].style.display="",c(function(e){var t=b(n,l);n.removeClass("md-leave"),p(n,{addClass:"md-active",from:g.toCss(t),to:g.toCss({transform:""})}).start().then(e)})).then(function(e){return l.alreadyOpen=!0,l.cleanupInteraction=function(){if(!l.menuContentEl[0])return M.noop;l.menuContentEl.on("keydown",o),l.menuContentEl[0].addEventListener("click",i,!0);var e=l.menuContentEl[0].querySelector($.buildSelector(["md-menu-focus-target","md-autofocus"]));if(!e)for(var t=l.menuContentEl[0].children.length,n=0;n<t;n++){var r=l.menuContentEl[0].children[n];if(e=r.querySelector(".md-button:not([disabled])"))break;if(r.firstElementChild&&!r.firstElementChild.disabled){e=r.firstElementChild;break}}return e&&e.focus(),function(){l.menuContentEl.off("keydown",o),l.menuContentEl[0].removeEventListener("click",i,!0)};function o(e){var t;switch(e.keyCode){case u.KEY_CODE.ESCAPE:l.mdMenuCtrl.close(!1,{closeAll:!0}),t=!0;break;case u.KEY_CODE.TAB:l.mdMenuCtrl.close(!1,{closeAll:!0}),t=!1;break;case u.KEY_CODE.UP_ARROW:v(e,l.menuContentEl,l,-1)||l.nestLevel||l.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case u.KEY_CODE.DOWN_ARROW:v(e,l.menuContentEl,l,1)||l.nestLevel||l.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case u.KEY_CODE.LEFT_ARROW:l.nestLevel?l.mdMenuCtrl.close():l.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case u.KEY_CODE.RIGHT_ARROW:var n=E.getClosest(e.target,"MD-MENU");n&&n!=l.parent[0]?e.target.click():l.mdMenuCtrl.triggerContainerProxy(e),t=!0}t&&(e.preventDefault(),e.stopImmediatePropagation())}function i(e){var t=e.target;do{if(t==l.menuContentEl[0])return;if((r(t,["ng-click","ng-href","ui-sref"])||"BUTTON"==t.nodeName||"MD-BUTTON"==t.nodeName)&&!r(t,["md-prevent-menu-close"])){var n=E.getClosest(t,"MD-MENU");t.hasAttribute("disabled")||n&&n!=l.parent[0]||a.$apply(function(){l.mdMenuCtrl.close(!0,{closeAll:!0})});break}}while(t=t.parentNode);function r(e,t){if(!e)return!1;for(var n,r=0;n=t[r];++r)if($.hasAttribute(e,n))return!0;return!1}}}(),l.cleanupBackdrop=l.backdrop?(l.backdrop.on("click",s),function(){l.backdrop.off("click",s)}):M.noop,n.addClass("md-clickable"),e});var e,t;var r,o,i;function s(e){e.preventDefault(),e.stopPropagation(),a.$apply(function(){l.mdMenuCtrl.close(!0,{closeAll:!0})})}},onRemove:function(e,n,r){return r.cleanupInteraction(),r.cleanupBackdrop(),r.cleanupResizing(),r.hideBackdrop(),n.removeClass("md-clickable"),!0===r.$destroy?t():p(n,{addClass:"md-leave"}).start().then(t);function t(){var e,t;n.removeClass("md-active"),e=n,(t=r).preserveElement?o(e).style.display="none":o(e).parentNode===o(t.parent)&&o(t.parent).removeChild(o(e)),r.alreadyOpen=!1}},hasBackdrop:!0,disableParentScroll:!0,skipCompile:!0,preserveScope:!0,multiple:!0,themable:!0};function v(e,t,n,r){for(var o,i=E.getClosest(e.target,"MD-MENU-ITEM"),a=E.nodesToArray(t[0].children),l=a.indexOf(i)+r;0<=l&&l<a.length;l+=r){if(o=s(a[l].querySelector(".md-button")))break}return o}function s(e){if(e&&-1!=e.getAttribute("tabindex"))return e.focus(),k[0].activeElement==e}function b(e,t){var n,r=e[0],o=e[0].firstElementChild,i=o.getBoundingClientRect(),a=k[0].body.getBoundingClientRect(),l=O.getComputedStyle(o),s=t.target[0].querySelector($.buildSelector("md-menu-origin"))||t.target[0],d=s.getBoundingClientRect(),u={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},c={top:0,left:0,right:0,bottom:0},m={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<o.children.length;++e)if("none"!=O.getComputedStyle(o.children[e]).display)return o.children[e]}())&&(c=(n=(n=n.firstElementChild||n).querySelector($.buildSelector("md-menu-align-target"))||n).getBoundingClientRect(),m={top:parseFloat(r.style.top||0),left:parseFloat(r.style.left||0)});var f={},h="top ";switch(p.top){case"target":f.top=m.top+d.top-c.top;break;case"cascade":f.top=d.top-parseFloat(l.paddingTop)-s.style.top;break;case"bottom":f.top=d.top+d.height;break;default:throw new Error('Invalid target mode "'+p.top+'" specified for md-menu on Y axis.')}var g="rtl"===E.bidi();switch(p.left){case"target":f.left=m.left+d.left-c.left,h+=g?"right":"left";break;case"target-left":f.left=d.left,h+="left";break;case"target-right":f.left=d.right-i.width+(i.right-c.right),h+="right";break;case"cascade":var v=g?d.left-i.width<u.left:d.right+i.width<u.right;f.left=v?d.right-s.style.left:d.left-s.style.left-i.width,h+=v?"left":"right";break;case"right":g?(f.left=d.right-d.width,h+="left"):(f.left=d.right-i.width,h+="right");break;case"left":g?(f.left=d.right-i.width,h+="right"):(f.left=d.left,h+="left");break;default:throw new Error('Invalid target mode "'+p.left+'" specified for md-menu on X axis.')}var b,M=t.mdMenuCtrl.offsets();f.top+=M.top,f.left+=M.left,(b=f).top=Math.max(Math.min(b.top,u.bottom-r.offsetHeight),u.top),b.left=Math.max(Math.min(b.left,u.right-r.offsetWidth),u.left);var C=Math.round(100*Math.min(d.width/r.offsetWidth,1))/100,y=Math.round(100*Math.min(d.height/r.offsetHeight,1))/100;return{top:Math.round(f.top),left:Math.round(f.left),transform:t.alreadyOpen?A:E.supplant("scale({0},{1})",[C,y]),transformOrigin:h}}}function o(e){return e instanceof M.element&&(e=e[0]),e}}M.module("material.components.menu",["material.core","material.components.backdrop"]),t.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q","$log"],M.module("material.components.menu").controller("mdMenuCtrl",t),n.$inject=["$mdUtil"],M.module("material.components.menu").directive("mdMenu",n),r.$inject=["$$interimElementProvider"],M.module("material.components.menu").provider("$mdMenu",r)}(window,window.angular);
{
"name": "angular-material-menuBar",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-icon": "1.1.15-master-2dd34ab",
"angular-material-menu": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-icon": "1.1.16-master-db3cdf7",
"angular-material-menu": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,m,l){"use strict";m.module("material.components.menuBar",["material.core","material.components.icon","material.components.menu"]),t.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],m.module("material.components.menuBar").controller("MenuBarController",t);var u=["handleKeyDown","handleMenuHover","scheduleOpenHoveredMenu","cancelScheduledOpen"];function t(e,t,n,o,r,i,s,a){this.$element=n,this.$attrs=o,this.$mdConstant=r,this.$mdUtil=s,this.$document=i,this.$scope=e,this.$rootScope=t,this.$timeout=a;var l=this;m.forEach(u,function(e){l[e]=m.bind(l,l[e])})}function n(n,r){return{restrict:"E",require:"mdMenuBar",controller:"MenuBarController",compile:function(e,t){return t.ariaRole||e[0].setAttribute("role","menubar"),m.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"));m.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"),r(e,t),o.init()}}}}function o(e,t,n){this.$element=t,this.$attrs=n,this.$scope=e}function r(d,e,c){return{controller:"MenuItemController",require:["mdMenuItem","?ngModel"],priority:e.BEFORE_NG_ARIA,compile:function(o,e){var t,n,r=e.type,i="md-in-menu-bar";if("checkbox"!=r&&"radio"!=r||!o.hasClass(i))u("role","menuitem",o[0].querySelector("md-button, button, a"));else{var s=o[0].textContent,a=m.element('<md-button type="button"></md-button>'),l='<md-icon md-svg-src="'+c.mdChecked+'"></md-icon>';a.html(s),a.attr("tabindex","0"),o.html(""),o.append(m.element(l)),o.append(a),o.addClass("md-indent").removeClass(i),u("role","checkbox"==r?"menuitemcheckbox":"menuitemradio",a),t="ng-disabled",n=d.prefixer(t),m.forEach(n,function(e){if(o[0].hasAttribute(e)){var t=o[0].getAttribute(e);a[0].setAttribute(e,t),o[0].removeAttribute(e)}})}return function(e,t,n,o){var r=o[0],i=o[1];r.init(i)};function u(e,t,n){(n=n||o)instanceof m.element&&(n=n[0]),n.hasAttribute(e)||n.setAttribute(e,t)}}}}t.prototype.init=function(){var i=this.$element,s=this.$mdUtil,e=this.$scope,a=this,t=[];i.on("keydown",this.handleKeyDown),this.parentToolbar=s.getClosest(i,"MD-TOOLBAR"),t.push(this.$rootScope.$on("$mdMenuOpen",function(e,t){-1!=a.getMenus().indexOf(t[0])&&(i[0].classList.add("md-open"),t[0].classList.add("md-open"),a.currentlyOpenMenu=t.controller("mdMenu"),a.currentlyOpenMenu.registerContainerProxy(a.handleKeyDown),a.enableOpenOnHover())})),t.push(this.$rootScope.$on("$mdMenuClose",function(e,t,n){var o=a.getMenus();if(-1!=o.indexOf(t[0])&&(i[0].classList.remove("md-open"),t[0].classList.remove("md-open")),i[0].contains(t[0])){for(var r=t[0];r&&-1==o.indexOf(r);)r=s.getClosest(r,"MD-MENU",!0);r&&(n.skipFocus||r.querySelector("button:not([disabled])").focus(),a.currentlyOpenMenu=l,a.disableOpenOnHover(),a.setKeyboardMode(!0))}})),e.$on("$destroy",function(){for(a.disableOpenOnHover();t.length;)t.shift()()}),this.setKeyboardMode(!0)},t.prototype.setKeyboardMode=function(e){e?this.$element[0].classList.add("md-keyboard-mode"):this.$element[0].classList.remove("md-keyboard-mode")},t.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(){m.element(e.parentToolbar).on("click",e.handleParentClick)},!1)),m.element(e.getMenus()).on("mouseenter",e.handleMenuHover)}},t.prototype.handleMenuHover=function(e){this.setKeyboardMode(!1),this.openOnHoverEnabled&&this.scheduleOpenHoveredMenu(e)},t.prototype.disableOpenOnHover=function(){this.openOnHoverEnabled&&(this.openOnHoverEnabled=!1,this.parentToolbar&&(this.parentToolbar.classList.remove("md-has-open-menu"),m.element(this.parentToolbar).off("click",this.handleParentClick)),m.element(this.getMenus()).off("mouseenter",this.handleMenuHover))},t.prototype.scheduleOpenHoveredMenu=function(e){var t=m.element(e.currentTarget).controller("mdMenu");this.setKeyboardMode(!1),this.scheduleOpenMenu(t)},t.prototype.scheduleOpenMenu=function(e){var t=this,n=this.$timeout;e!=t.currentlyOpenMenu&&(n.cancel(t.pendingMenuOpen),t.pendingMenuOpen=n(function(){t.pendingMenuOpen=l,t.currentlyOpenMenu&&t.currentlyOpenMenu.close(!0,{closeAll:!0}),e.open()},200,!1))},t.prototype.handleKeyDown=function(e){var t,n,o,r=this.$mdConstant.KEY_CODE,i=this.currentlyOpenMenu,s=i&&i.isOpen;switch(this.setKeyboardMode(!0),e.keyCode){case r.DOWN_ARROW:i?i.focusMenuContainer():this.openFocusedMenu(),t=!0;break;case r.UP_ARROW:i&&i.close(),t=!0;break;case r.LEFT_ARROW:n=this.focusMenu(-1),s&&(o=m.element(n).controller("mdMenu"),this.scheduleOpenMenu(o)),t=!0;break;case r.RIGHT_ARROW:n=this.focusMenu(1),s&&(o=m.element(n).controller("mdMenu"),this.scheduleOpenMenu(o)),t=!0}t&&(e&&e.preventDefault&&e.preventDefault(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation())},t.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]},t.prototype.openFocusedMenu=function(){var e=this.getFocusedMenu();e&&m.element(e).controller("mdMenu").open()},t.prototype.getMenus=function(){var e=this.$element;return this.$mdUtil.nodesToArray(e[0].children).filter(function(e){return"MD-MENU"==e.nodeName})},t.prototype.getFocusedMenu=function(){return this.getMenus()[this.getFocusedMenuIndex()]},t.prototype.getFocusedMenuIndex=function(){var e=this.$mdUtil.getClosest(this.$document[0].activeElement,"MD-MENU");return e?this.getMenus().indexOf(e):-1},t.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},t.prototype.handleParentClick=function(e){var t=this.querySelector("md-menu.md-open");t&&!t.contains(e.target)&&m.element(t).controller("mdMenu").close(!0,{closeAll:!0})},n.$inject=["$mdUtil","$mdTheming"],m.module("material.components.menuBar").directive("mdMenuBar",n),m.module("material.components.menuBar").directive("mdMenuDivider",function(){return{restrict:"E",compile:function(e,t){t.role||e[0].setAttribute("role","separator")}}}),o.$inject=["$scope","$element","$attrs"],m.module("material.components.menuBar").controller("MenuItemController",o),o.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())},o.prototype.clearNgAria=function(){var t=this.$element[0];m.forEach(["role","tabindex","aria-invalid","aria-checked"],function(e){t.removeAttribute(e)})},o.prototype.initClickListeners=function(){var e=this,t=this.ngModel,n=this.$scope,o=this.$attrs,r=(this.$element,this.mode);this.handleClick=m.bind(this,this.handleClick);var i=this.iconEl,s=m.element(this.buttonEl),a=this.handleClick;function l(e){e?s.off("click",a):s.on("click",a)}o.$observe("disabled",l),l(o.disabled),t.$render=function(){e.clearNgAria(),!function(){{if("radio"!=r)return t.$modelValue;var e=o.ngValue?n.$eval(o.ngValue):o.value;return t.$modelValue==e}}()?(i.style.display="none",s.attr("aria-checked","false")):(i.style.display="",s.attr("aria-checked","true"))},n.$$postDigest(t.$render)},o.prototype.handleClick=function(e){var t,n=this.mode,o=this.ngModel,r=this.$attrs;"checkbox"==n?t=!o.$modelValue:"radio"==n&&(t=r.ngValue?this.$scope.$eval(r.ngValue):r.value),o.$setViewValue(t),o.$render()},r.$inject=["$mdUtil","$mdConstant","$$mdSvgRegistry"],m.module("material.components.menuBar").directive("mdMenuItem",r)}(window,window.angular);
{
"name": "angular-material-navBar",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(t,m,c){"use strict";function e(i,r){return{restrict:"E",transclude:!0,controller:n,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(t,e,n,a){r(e),a.navBarAriaLabel||i.expectAsync(e,"aria-label",m.noop)}}}function n(t,e,n,a){this._$timeout=n,this._$scope=e,this._$mdConstant=a,this.mdSelectedNavItem,this.navBarAriaLabel,this._navBarEl=t[0],this._inkbar;var i=this,r=this._$scope.$watch(function(){return i._navBarEl.querySelectorAll("._md-nav-button").length},function(t){0<t&&(i._initTabs(),r())})}function a(u,t,d,f){return{restrict:"E",require:["mdNavItem","^mdNavBar"],controller:i,bindToController:!0,controllerAs:"ctrl",replace:!0,transclude:!0,template:function(t,e){var n,a,i=e.mdNavClick,r=e.mdNavHref,o=e.mdNavSref,s=e.srefOpts;if(1<(i?1:0)+(r?1:0)+(o?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!==c&&null!==i)n='ng-click="ctrl.mdNavClick()"';else if(r!==c&&null!==r)n='ng-href="{{ctrl.mdNavHref}}"';else{if(o===c||null===o)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&&(a='<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()}}" '+(s?'ui-sref-opts="{{ctrl.srefOpts}}" ':"")+n+'><span ng-transclude class="_md-nav-button-text"></span></md-button>'),'<li class="md-nav-item" role="presentation">'+(a||"")+"</li>"},scope:{mdNavClick:"&?",mdNavHref:"@?",mdNavSref:"@?",srefOpts:"=?",name:"@",navItemAriaLabel:"@?"},link:function(n,a,i,r){var o,s,c,l;t(function(){if(s=r[0],c=r[1],l=m.element(a[0].querySelector("._md-nav-button")),s.name||(s.name=m.element(a[0].querySelector("._md-nav-button-text")).text().trim()),l.on("keydown",function(t){c.onKeydown(t)}),l.on("focus",function(){c.getFocusedTab()||c.onFocus()}),l.on("click",function(){c.mdSelectedNavItem=s.name,n.$apply()}),s.disabled=d.parseAttributeBoolean(i.disabled,!1),"MutationObserver"in f){var t=a[0],e=new MutationObserver(function(t){d.nextTick(function(){s.disabled=d.parseAttributeBoolean(i[t[0].attributeName],!1)})});e.observe(t,{attributes:!0,attributeFilter:["disabled"]}),o=e.disconnect.bind(e)}else i.$observe("disabled",function(t){s.disabled=d.parseAttributeBoolean(t,!1)});s.navItemAriaLabel||u.expectWithText(l,"aria-label")}),n.$on("destroy",function(){l.off("keydown"),l.off("focus"),l.off("click"),o()})}}}function i(t){this._$element=t,this.mdNavClick,this.mdNavHref,this.mdNavSref,this.srefOpts,this.name,this.navItemAriaLabel,this._selected=!1,this._focused=!1}e.$inject=["$mdAria","$mdTheming"],n.$inject=["$element","$scope","$timeout","$mdConstant"],a.$inject=["$mdAria","$$rAF","$mdUtil","$window"],i.$inject=["$element"],m.module("material.components.navBar",["material.core"]).controller("MdNavBarController",n).directive("mdNavBar",e).controller("MdNavItemController",i).directive("mdNavItem",a),n.prototype._initTabs=function(){this._inkbar=m.element(this._navBarEl.querySelector("md-nav-ink-bar"));var n=this;this._$timeout(function(){n._updateTabs(n.mdSelectedNavItem,c)}),this._$scope.$watch("ctrl.mdSelectedNavItem",function(t,e){n._$timeout(function(){n._updateTabs(t,e)})})},n.prototype._updateTabs=function(t,e){var n=this,a=this._getTabs(),i=t===e;if(a){var r=-1,o=-1,s=this._getTabByName(t),c=this._getTabByName(e);c&&(c.setSelected(!1),r=a.indexOf(c)),s&&(s.setSelected(!0),o=a.indexOf(s)),this._$timeout(function(){n._updateInkBarStyles(s,o,r),s&&c&&!i&&n._moveFocus(c,s)})}},n.prototype._updateInkBarStyles=function(t,e,n){if(this._inkbar.toggleClass("_md-left",e<n).toggleClass("_md-right",n<e),this._inkbar.css({display:e<0?"none":""}),t){var a=t.getButtonEl(),i=a.offsetLeft;this._inkbar.css({left:i+"px",width:a.offsetWidth+"px"})}},n.prototype._getTabs=function(){var t=Array.prototype.slice.call(this._navBarEl.querySelectorAll(".md-nav-item")).map(function(t){return m.element(t).controller("mdNavItem")});return t.indexOf(c)?t:null},n.prototype._getTabByName=function(e){return this._findTab(function(t){return t.getName()===e})},n.prototype._getSelectedTab=function(){return this._findTab(function(t){return t.isSelected()})},n.prototype.getFocusedTab=function(){return this._findTab(function(t){return t.hasFocus()})},n.prototype._findTab=function(t,e){var n=this._getTabs();e!==c&&null!==e||(e=0);for(var a=e;a<n.length;a++)if(t(n[a]))return n[a];return null},n.prototype._findTabReverse=function(t,e){var n=this._getTabs();e!==c&&null!==e||(e=n.length-1);for(var a=e;0<=a;a--)if(t(n[a]))return n[a];return null},n.prototype.onFocus=function(){var t=this._getSelectedTab();t&&t.setFocused(!0)},n.prototype._moveFocus=function(t,e){t.setFocused(!1),e.setFocused(!0)},n.prototype._focusFirstTab=function(){if(this._getTabs()){var t=this._findTab(function(t){return t._isEnabled()});t&&this._moveFocus(this.getFocusedTab(),t)}},n.prototype._focusLastTab=function(){if(this._getTabs()){var t=this._findTabReverse(function(t){return t._isEnabled()});t&&this._moveFocus(this.getFocusedTab(),t)}},n.prototype._focusNextTab=function(t){if(this._getTabs()){var e=this._findTab(function(t){return t._isEnabled()},t+1);e?this._moveFocus(this.getFocusedTab(),e):this._focusFirstTab()}},n.prototype._focusPreviousTab=function(t){if(this._getTabs()){var e=this._findTabReverse(function(t){return t._isEnabled()},t-1);e?this._moveFocus(this.getFocusedTab(),e):this._focusLastTab()}},n.prototype.onKeydown=function(t){var e=this._$mdConstant.KEY_CODE,n=this._getTabs(),a=this.getFocusedTab();if(a&&n){var i=n.indexOf(a);switch(t.keyCode){case e.UP_ARROW:case e.LEFT_ARROW:t.preventDefault(),this._focusPreviousTab(i);break;case e.DOWN_ARROW:case e.RIGHT_ARROW:t.preventDefault(),this._focusNextTab(i);break;case e.SPACE:case e.ENTER:this._$timeout(function(){a.getButtonEl().click()});break;case e.HOME:t.preventDefault(),this._focusFirstTab();break;case e.END:t.preventDefault(),this._focusLastTab()}}},i.prototype.getNgClassMap=function(){return{"md-active":this._selected,"md-primary":this._selected,"md-unselected":!this._selected,"md-focused":this._focused}},i.prototype.getName=function(){return this.name},i.prototype.getButtonEl=function(){return this._$element[0].querySelector("._md-nav-button")},i.prototype.setSelected=function(t){(this._selected=t)?this.getButtonEl().setAttribute("tabindex","0"):this.getButtonEl().setAttribute("tabindex","-1")},i.prototype.isSelected=function(){return this._selected},i.prototype.setFocused=function(t){(this._focused=t)&&this.getButtonEl().focus()},i.prototype.hasFocus=function(){return this._focused},i.prototype._isEnabled=function(){return!this._$element.attr("disabled")}}(window,window.angular);
{
"name": "angular-material-panel",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-backdrop": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-backdrop": "1.1.16-master-db3cdf7"
}
}

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(t,l,e){"use strict";h.$inject=["presets","$rootElement","$rootScope","$injector","$window"],l.module("material.components.panel",["material.core","material.components.backdrop"]).provider("$mdPanel",function(){return{definePreset:o,getAllPresets:r,clearPresets:p,$get:["$rootElement","$rootScope","$injector","$window",function(t,e,n,o){return new h(i,t,e,n,o)}]}});var s=80,a="_md-panel-hidden",n=l.element('<div class="_md-panel-focus-trap" tabindex="0"></div>'),i={};function o(t,e){if(!t||!e)throw new Error("mdPanelProvider: The panel preset definition is malformed. The name and preset object are required.");if(i.hasOwnProperty(t))throw new Error("mdPanelProvider: The panel preset you have requested has already been defined.");delete e.id,delete e.position,delete e.animation,i[t]=e}function r(){return l.copy(i)}function p(){i={}}function h(t,e,n,o,i){this._defaultConfigOptions={bindToController:!0,clickOutsideToClose:!1,disableParentScroll:!1,escapeToClose:!1,focusOnOpen:!0,fullscreen:!1,hasBackdrop:!1,propagateContainerEvents:!1,transformTemplate:l.bind(this,this._wrapTemplate),trapFocus:!1,zIndex:s},this._config={},this._presets=t,this._$rootElement=e,this._$rootScope=n,this._$injector=o,this._$window=i,this._$mdUtil=this._$injector.get("$mdUtil"),this._trackedPanels={},this._groups=Object.create(null),this.animation=u.animation,this.xPosition=d.xPosition,this.yPosition=d.yPosition,this.interceptorTypes=c.interceptorTypes,this.closeReasons=c.closeReasons,this.absPosition=d.absPosition}function c(t,e){this._$q=e.get("$q"),this._$mdCompiler=e.get("$mdCompiler"),this._$mdConstant=e.get("$mdConstant"),this._$mdUtil=e.get("$mdUtil"),this._$mdTheming=e.get("$mdTheming"),this._$rootScope=e.get("$rootScope"),this._$animate=e.get("$animate"),this._$mdPanel=e.get("$mdPanel"),this._$log=e.get("$log"),this._$window=e.get("$window"),this._$$rAF=e.get("$$rAF"),this.id=t.id,this.config=t,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 d(t){this._$window=t.get("$window"),this._isRTL="rtl"===t.get("$mdUtil").bidi(),this._$mdConstant=t.get("$mdConstant"),this._absolute=!1,this._relativeToEl,this._top="",this._bottom="",this._left="",this._right="",this._translateX=[],this._translateY=[],this._positions=[],this._actualPosition}function u(t){this._$mdUtil=t.get("$mdUtil"),this._openFrom,this._closeTo,this._animationClass="",this._openDuration,this._closeDuration,this._rawDuration}function f(t){var e=l.isString(t)?document.querySelector(t):t;return l.element(e)}function _(t){return l.isNumber(t)?t+"px":t}h.prototype.create=function(t,e){if("string"==typeof t?t=this._getPresetByName(t):"object"!=typeof t||!l.isUndefined(e)&&e||(e=t,t={}),t=t||{},e=e||{},l.isDefined(e.id)&&this._trackedPanels[e.id]){var n=this._trackedPanels[e.id];return l.extend(n.config,e),n}this._config=l.extend({id:e.id||"panel_"+this._$mdUtil.nextUid(),scope:this._$rootScope.$new(!0),attachTo:this._$rootElement},this._defaultConfigOptions,e,t);var o=new c(this._config,this._$injector);return this._trackedPanels[this._config.id]=o,this._config.groupName&&(l.isString(this._config.groupName)&&(this._config.groupName=[this._config.groupName]),l.forEach(this._config.groupName,function(t){o.addToGroup(t)})),this._config.scope.$on("$destroy",l.bind(o,o.detach)),o},h.prototype.open=function(t,e){var n=this.create(t,e);return n.open().then(function(){return n})},h.prototype._getPresetByName=function(t){if(!this._presets[t])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[t]},h.prototype.newPanelPosition=function(){return new d(this._$injector)},h.prototype.newPanelAnimation=function(){return new u(this._$injector)},h.prototype.newPanelGroup=function(t,e){if(!this._groups[t]){var n={panels:[],openPanels:[],maxOpen:0<(e=e||{}).maxOpen?e.maxOpen:1/0};this._groups[t]=n}return this._groups[t]},h.prototype.setGroupMaxOpen=function(t,e){if(!this._groups[t])throw new Error("mdPanel: Group does not exist yet. Call newPanelGroup().");this._groups[t].maxOpen=e},h.prototype._openCountExceedsMaxOpen=function(t){if(this._groups[t]){var e=this._groups[t];return 0<e.maxOpen&&e.openPanels.length>e.maxOpen}return!1},h.prototype._closeFirstOpenedPanel=function(t){this._groups[t].openPanels[0].close()},h.prototype._wrapTemplate=function(t){return'<div class="md-panel-outer-wrapper"> <div class="md-panel _md-panel-offscreen">'+(t||"")+"</div></div>"},h.prototype._wrapContentElement=function(t){var e=l.element('<div class="md-panel-outer-wrapper">');return t.addClass("md-panel _md-panel-offscreen"),e.append(t),e},c.interceptorTypes={CLOSE:"onClose"},c.prototype.open=function(){var i=this;return this._$q(function(t,e){var n=i._done(t,i),o=i._simpleBind(i.show,i);i.attach().then(o).then(function(){i.config.groupName&&l.forEach(i.config.groupName,function(t){i._$mdPanel._openCountExceedsMaxOpen(t)&&i._$mdPanel._closeFirstOpenedPanel(t)})}).then(n).catch(e)})},c.prototype.close=function(s){var a=this;return this._$q(function(o,i){a._callInterceptors(c.interceptorTypes.CLOSE).then(function(){var t=a._done(o,a),e=a._simpleBind(a.detach,a),n=a.config.onCloseSuccess||l.noop;n=l.bind(a,n,a,s),a.hide().then(e).then(t).then(n).catch(i)},i)})},c.prototype.attach=function(){if(this.isAttached&&this.panelEl)return this._$q.when(this);var i=this;return this._$q(function(t,e){var n=i._done(t,i),o=i.config.onDomAdded||l.noop;i._$q.all([i._createBackdrop(),i._createPanel().then(function(t){return i.isAttached=!0,i._addEventListeners(),t}).catch(e)]).then(o).then(n).catch(e)})},c.prototype.detach=function(){if(!this.isAttached)return this._$q.when(this);var o=this,i=o.config.onDomRemoved||l.noop;return this._restoreScroll&&(this._restoreScroll(),this._restoreScroll=null),this._$q(function(t,e){var n=o._done(t,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(e)})},c.prototype.destroy=function(){var e=this;this.config.groupName&&l.forEach(this.config.groupName,function(t){e.removeFromGroup(t)}),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},c.prototype.show=function(){if(!this.panelContainer)return this._$q(function(t,e){e("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(t,e){var n=i._done(t,i),o=i.config.onOpenComplete||l.noop;i._$q.all([i._backdropRef?i._backdropRef.show():i,(i.panelContainer.removeClass(a),i._animateOpen()).then(function(){i._focusOnOpen()},e)]).then(o).then(function(){i.config.groupName&&l.forEach(i.config.groupName,function(t){i._$mdPanel._groups[t].openPanels.push(i)})}).then(n).catch(e)})},c.prototype.hide=function(){if(!this.panelContainer)return this._$q(function(t,e){e("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(t,e){var n=i._done(t,i),o=i.config.onRemoving||l.noop;i._$q.all([i._backdropRef?i._backdropRef.hide():i,i._animateClose().then(o).then(function(){i.panelContainer.addClass(a)}).then(function(){var e;i.config.groupName&&l.forEach(i.config.groupName,function(t){t=i._$mdPanel._groups[t],-1<(e=t.openPanels.indexOf(i))&&t.openPanels.splice(e,1)})}).then(function(){var t=i.config.origin;t&&f(t).focus()}).catch(e)]).then(n,e)})},c.prototype.addClass=function(t,e){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().");e||this.panelContainer.hasClass(t)?e&&!this.panelEl.hasClass(t)&&this.panelEl.addClass(t):this.panelContainer.addClass(t)},c.prototype.removeClass=function(t,e){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().");!e&&this.panelContainer.hasClass(t)?this.panelContainer.removeClass(t):e&&this.panelEl.hasClass(t)&&this.panelEl.removeClass(t)},c.prototype.toggleClass=function(t,e){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().");e?this.panelEl.toggleClass(t):this.panelContainer.toggleClass(t)},c.prototype._compile=function(){var o=this;return o._$mdCompiler.compile(o.config).then(function(t){var e=o.config;if(e.contentElement){var n=t.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=t.link(e.scope),o.panelEl=l.element(o.panelContainer[0].querySelector(".md-panel"));return o._compilerCleanup=t.cleanup,f(o.config.attachTo).append(o.panelContainer),o})},c.prototype._createPanel=function(){var n=this;return this._$q(function(t,e){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,f(n.config.attachTo)),n._configureTrapFocus(),n._addStyles().then(function(){t(n)},e)},e)})},c.prototype._addStyles=function(){var n=this;return this._$q(function(t){n.panelContainer.css("z-index",n.config.zIndex),n.panelEl.css("z-index",n.config.zIndex+1);var e=function(){n._setTheming(),n.panelEl.removeClass("_md-panel-offscreen"),n.panelContainer.addClass(a),t(n)};if(n.config.fullscreen)return n.panelEl.addClass("_md-panel-fullscreen"),void e();n.config.position?n._$rootScope.$$postDigest(function(){n._updatePosition(!0),n._setTheming(),t(n)}):e()})},c.prototype._setTheming=function(){this._$mdTheming(this.panelEl),this._$mdTheming(this.panelContainer)},c.prototype.updatePosition=function(t){if(!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");this.config.position=t,this._updatePosition()},c.prototype._updatePosition=function(t){var e=this.config.position;e&&(e._setPanelPosition(this.panelEl),t&&(this.panelEl.removeClass("_md-panel-offscreen"),this.panelContainer.addClass(a)),this.panelEl.css(d.absPosition.TOP,e.getTop()),this.panelEl.css(d.absPosition.BOTTOM,e.getBottom()),this.panelEl.css(d.absPosition.LEFT,e.getLeft()),this.panelEl.css(d.absPosition.RIGHT,e.getRight()))},c.prototype._focusOnOpen=function(){if(this.config.focusOnOpen){var t=this;this._$rootScope.$$postDigest(function(){(t._$mdUtil.findFocusTarget(t.panelEl)||t.panelEl).focus()})}},c.prototype._createBackdrop=function(){if(this.config.hasBackdrop){if(!this._backdropRef){var t=this._$mdPanel.newPanelAnimation().openFrom(this.config.attachTo).withAnimation({open:"_md-opaque-enter",close:"_md-opaque-leave"});this.config.animation&&t.duration(this.config.animation._rawDuration);var e={animation:t,attachTo:this.config.attachTo,focusOnOpen:!1,panelClass:"_md-panel-backdrop",zIndex:this.config.zIndex-1};this._backdropRef=this._$mdPanel.create(e)}if(!this._backdropRef.isAttached)return this._backdropRef.attach()}},c.prototype._addEventListeners=function(){this._configureEscapeToClose(),this._configureClickOutsideToClose(),this._configureScrollListener()},c.prototype._removeEventListeners=function(){this._removeListeners&&this._removeListeners.forEach(function(t){t()}),this._removeListeners=[]},c.prototype._configureEscapeToClose=function(){if(this.config.escapeToClose){var t=f(this.config.attachTo),e=this,n=function(t){t.keyCode===e._$mdConstant.KEY_CODE.ESCAPE&&(t.stopPropagation(),t.preventDefault(),e.close(c.closeReasons.ESCAPE))};this.panelContainer.on("keydown",n),t.on("keydown",n),this._removeListeners.push(function(){e.panelContainer.off("keydown",n),t.off("keydown",n)})}},c.prototype._configureClickOutsideToClose=function(){if(this.config.clickOutsideToClose){var e,n=this.config.propagateContainerEvents?l.element(document.body):this.panelContainer,t=function(t){e=t.target},o=this,i=function(t){o.config.propagateContainerEvents?e===o.panelEl[0]||o.panelEl[0].contains(e)||o.close():e===n[0]&&t.target===n[0]&&(t.stopPropagation(),t.preventDefault(),o.close(c.closeReasons.CLICK_OUTSIDE))};n.on("mousedown",t),n.on("mouseup",i),this._removeListeners.push(function(){n.off("mousedown",t),n.off("mouseup",i)})}},c.prototype._configureScrollListener=function(){if(!this.config.disableParentScroll){var t=l.bind(this,this._updatePosition),e=this._$$rAF.throttle(t),n=this,o=function(){e()};this._$window.addEventListener("scroll",o,!0),this._removeListeners.push(function(){n._$window.removeEventListener("scroll",o,!0)})}},c.prototype._configureTrapFocus=function(){if(this.panelEl.attr("tabIndex","-1"),this.config.trapFocus){var t=this.panelEl;this._topFocusTrap=n.clone()[0],this._bottomFocusTrap=n.clone()[0];var e=function(){t.focus()};this._topFocusTrap.addEventListener("focus",e),this._bottomFocusTrap.addEventListener("focus",e),this._removeListeners.push(this._simpleBind(function(){this._topFocusTrap.removeEventListener("focus",e),this._bottomFocusTrap.removeEventListener("focus",e)},this)),t[0].parentNode.insertBefore(this._topFocusTrap,t[0]),t.after(this._bottomFocusTrap)}},c.prototype.updateAnimation=function(t){this.config.animation=t,this._backdropRef&&this._backdropRef.config.animation.duration(t._rawDuration)},c.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(t){var e=o._done(t,o);n.animateOpen(o.panelEl).then(e,function(){o._$log.warn("mdPanel: MdPanel Animations failed. Showing panel without animating."),e()})})},c.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(t){var e=function(){o.panelContainer.removeClass("md-panel-is-showing"),t(o)};n.animateClose(o.panelEl).then(e,function(){o._$log.warn("mdPanel: MdPanel Animations failed. Hiding panel without animating."),e()})})},c.prototype.registerInterceptor=function(t,e){var n=null;if(l.isString(t)?l.isFunction(e)||(n="Interceptor callback must be a function, instead got "+typeof e):n="Interceptor type must be a string, instead got "+typeof t,n)throw new Error("MdPanel: "+n);var o=this._interceptors[t]=this._interceptors[t]||[];return-1===o.indexOf(e)&&o.push(e),this},c.prototype.removeInterceptor=function(t,e){var n=this._interceptors[t]?this._interceptors[t].indexOf(e):-1;return-1<n&&this._interceptors[t].splice(n,1),this},c.prototype.removeAllInterceptors=function(t){return t?this._interceptors[t]=[]:this._interceptors=Object.create(null),this},c.prototype._callInterceptors=function(t){var o=this,i=o._$q;return(o._interceptors&&o._interceptors[t]||[]).reduceRight(function(t,e){var n=e&&l.isFunction(e.then)?e:null;return t.then(function(){if(!n)try{n=e(o)}catch(t){n=i.reject(t)}return n})},i.resolve(o))},c.prototype._simpleBind=function(e,n){return function(t){return e.apply(n,t)}},c.prototype._done=function(t,e){return function(){t(e)}},c.prototype.addToGroup=function(t){this._$mdPanel._groups[t]||this._$mdPanel.newPanelGroup(t);var e=this._$mdPanel._groups[t];e.panels.indexOf(this)<0&&e.panels.push(this)},c.prototype.removeFromGroup=function(t){if(!this._$mdPanel._groups[t])throw new Error("mdPanel: The group "+t+" does not exist.");var e=this._$mdPanel._groups[t],n=e.panels.indexOf(this);-1<n&&e.panels.splice(n,1)},c.closeReasons={CLICK_OUTSIDE:"clickOutsideToClose",ESCAPE:"escapeToClose"},d.xPosition={CENTER:"center",ALIGN_START:"align-start",ALIGN_END:"align-end",OFFSET_START:"offset-start",OFFSET_END:"offset-end"},d.yPosition={CENTER:"center",ALIGN_TOPS:"align-tops",ALIGN_BOTTOMS:"align-bottoms",ABOVE:"above",BELOW:"below"},d.absPosition={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},d.viewportMargin=8,d.prototype.absolute=function(){return this._absolute=!0,this},d.prototype._setPosition=function(t,e){if(t===d.absPosition.RIGHT||t===d.absPosition.LEFT)this._left=this._right="";else{if(t!==d.absPosition.BOTTOM&&t!==d.absPosition.TOP){var n=Object.keys(d.absPosition).join().toLowerCase();throw new Error("mdPanel: Position must be one of "+n+".")}this._top=this._bottom=""}return this["_"+t]=l.isString(e)?e:"0",this},d.prototype.top=function(t){return this._setPosition(d.absPosition.TOP,t)},d.prototype.bottom=function(t){return this._setPosition(d.absPosition.BOTTOM,t)},d.prototype.start=function(t){var e=this._isRTL?d.absPosition.RIGHT:d.absPosition.LEFT;return this._setPosition(e,t)},d.prototype.end=function(t){var e=this._isRTL?d.absPosition.LEFT:d.absPosition.RIGHT;return this._setPosition(e,t)},d.prototype.left=function(t){return this._setPosition(d.absPosition.LEFT,t)},d.prototype.right=function(t){return this._setPosition(d.absPosition.RIGHT,t)},d.prototype.centerHorizontally=function(){return this._left="50%",this._right="",this._translateX=["-50%"],this},d.prototype.centerVertically=function(){return this._top="50%",this._bottom="",this._translateY=["-50%"],this},d.prototype.center=function(){return this.centerHorizontally().centerVertically()},d.prototype.relativeTo=function(t){return this._absolute=!1,this._relativeToEl=f(t),this},d.prototype.addPanelPosition=function(t,e){if(!this._relativeToEl)throw new Error("mdPanel: addPanelPosition can only be used with relative positioning. Set relativeTo first.");return this._validateXPosition(t),this._validateYPosition(e),this._positions.push({x:t,y:e}),this},d.prototype._validateYPosition=function(t){if(null!=t){for(var e,n=Object.keys(d.yPosition),o=[],i=0;e=n[i];i++){var s=d.yPosition[e];if(o.push(s),s===t)return}throw new Error("mdPanel: Panel y position only accepts the following values:\n"+o.join(" | "))}},d.prototype._validateXPosition=function(t){if(null!=t){for(var e,n=Object.keys(d.xPosition),o=[],i=0;e=n[i];i++){var s=d.xPosition[e];if(o.push(s),s===t)return}throw new Error("mdPanel: Panel x Position only accepts the following values:\n"+o.join(" | "))}},d.prototype.withOffsetX=function(t){return this._translateX.push(_(t)),this},d.prototype.withOffsetY=function(t){return this._translateY.push(_(t)),this},d.prototype.getTop=function(){return this._top},d.prototype.getBottom=function(){return this._bottom},d.prototype.getLeft=function(){return this._left},d.prototype.getRight=function(){return this._right},d.prototype.getTransform=function(){return(this._reduceTranslateValues("translateX",this._translateX)+" "+this._reduceTranslateValues("translateY",this._translateY)).trim()},d.prototype._setTransform=function(t){return t.css(this._$mdConstant.CSS.TRANSFORM,this.getTransform())},d.prototype._isOnscreen=function(t){var e=parseInt(this.getLeft()),n=parseInt(this.getTop());if(this._translateX.length||this._translateY.length){var o=function(t,e){var n=getComputedStyle(t[0]||t)[e],o=n.indexOf("("),i=n.lastIndexOf(")"),s={x:0,y:0};if(-1<o&&-1<i){var a=n.substring(o+1,i).split(", ").slice(-2);s.x=parseInt(a[0]),s.y=parseInt(a[1])}return s}(t,this._$mdConstant.CSS.TRANSFORM);e+=o.x,n+=o.y}var i=e+t[0].offsetWidth,s=n+t[0].offsetHeight;return 0<=e&&0<=n&&s<=this._$window.innerHeight&&i<=this._$window.innerWidth},d.prototype.getActualPosition=function(){return this._actualPosition},d.prototype._reduceTranslateValues=function(n,t){return t.map(function(t){var e=l.isFunction(t)?_(t(this)):t;return n+"("+e+")"},this).join(" ")},d.prototype._setPanelPosition=function(t){if(t.removeClass("_md-panel-position-adjusted"),this._absolute)this._setTransform(t);else{if(this._actualPosition)return this._calculatePanelPosition(t,this._actualPosition),this._setTransform(t),void this._constrainToViewport(t);for(var e=0;e<this._positions.length;e++)if(this._actualPosition=this._positions[e],this._calculatePanelPosition(t,this._actualPosition),this._setTransform(t),this._isOnscreen(t))return;this._constrainToViewport(t)}},d.prototype._constrainToViewport=function(t){var e=d.viewportMargin,n=this._top,o=this._left;if(this.getTop()){var i=parseInt(this.getTop()),s=t[0].offsetHeight+i,a=this._$window.innerHeight;i<e?this._top=e+"px":a<s&&(this._top=i-(s-a+e)+"px")}if(this.getLeft()){var r=parseInt(this.getLeft()),l=t[0].offsetWidth+r,p=this._$window.innerWidth;r<e?this._left=e+"px":p<l&&(this._left=r-(l-p+e)+"px")}t.toggleClass("_md-panel-position-adjusted",this._top!==n||this._left!==o)},d.prototype._reverseXPosition=function(t){if(t===d.xPosition.CENTER)return t;var e="start";return-1<t.indexOf(e)?t.replace(e,"end"):t.replace("end",e)},d.prototype._bidi=function(t){return this._isRTL?this._reverseXPosition(t):t},d.prototype._calculatePanelPosition=function(t,e){var n=t[0].getBoundingClientRect(),o=Math.max(n.width,t[0].clientWidth),i=Math.max(n.height,t[0].clientHeight),s=this._relativeToEl[0].getBoundingClientRect(),a=s.left,r=s.right,l=s.width;switch(this._bidi(e.x)){case d.xPosition.OFFSET_START:this._left=a-o+"px";break;case d.xPosition.ALIGN_END:this._left=r-o+"px";break;case d.xPosition.CENTER:var p=a+.5*l-.5*o;this._left=p+"px";break;case d.xPosition.ALIGN_START:this._left=a+"px";break;case d.xPosition.OFFSET_END:this._left=r+"px"}var h=s.top,c=s.bottom,u=s.height;switch(e.y){case d.yPosition.ABOVE:this._top=h-i+"px";break;case d.yPosition.ALIGN_BOTTOMS:this._top=c-i+"px";break;case d.yPosition.CENTER:var f=h+.5*u-.5*i;this._top=f+"px";break;case d.yPosition.ALIGN_TOPS:this._top=h+"px";break;case d.yPosition.BELOW:this._top=c+"px"}},u.animation={SLIDE:"md-panel-animate-slide",SCALE:"md-panel-animate-scale",FADE:"md-panel-animate-fade"},u.prototype.openFrom=function(t){return t=t.target?t.target:t,this._openFrom=this._getPanelAnimationTarget(t),this._closeTo||(this._closeTo=this._openFrom),this},u.prototype.closeTo=function(t){return this._closeTo=this._getPanelAnimationTarget(t),this},u.prototype.duration=function(t){return t&&(l.isNumber(t)?this._openDuration=this._closeDuration=e(t):l.isObject(t)&&(this._openDuration=e(t.open),this._closeDuration=e(t.close))),this._rawDuration=t,this;function e(t){if(l.isNumber(t))return t/1e3}},u.prototype._getPanelAnimationTarget=function(t){return l.isDefined(t.top)||l.isDefined(t.left)?{element:void 0,bounds:{top:t.top||0,left:t.left||0}}:this._getBoundingClientRect(f(t))},u.prototype.withAnimation=function(t){return this._animationClass=t,this},u.prototype.animateOpen=function(t){var e=this._$mdUtil.dom.animator;this._fixBounds(t);var n={},o=t[0].style.transform||"",i=e.toTransformCss(o),s=e.toTransformCss(o);switch(this._animationClass){case u.animation.SLIDE:t.css("opacity","1"),n={transitionInClass:"_md-panel-animate-enter"};var a=e.calculateSlideToOrigin(t,this._openFrom)||"";i=e.toTransformCss(a+" "+o);break;case u.animation.SCALE:n={transitionInClass:"_md-panel-animate-enter"};var r=e.calculateZoomToOrigin(t,this._openFrom)||"";i=e.toTransformCss(r+" "+o);break;case u.animation.FADE:n={transitionInClass:"_md-panel-animate-enter"};break;default:n=l.isString(this._animationClass)?{transitionInClass:this._animationClass}:{transitionInClass:this._animationClass.open,transitionOutClass:this._animationClass.close}}return n.duration=this._openDuration,e.translate3d(t,i,s,n)},u.prototype.animateClose=function(t){var e=this._$mdUtil.dom.animator,n={},o=t[0].style.transform||"",i=e.toTransformCss(o),s=e.toTransformCss(o);switch(this._animationClass){case u.animation.SLIDE:t.css("opacity","1"),n={transitionInClass:"_md-panel-animate-leave"};var a=e.calculateSlideToOrigin(t,this._closeTo)||"";s=e.toTransformCss(a+" "+o);break;case u.animation.SCALE:n={transitionInClass:"_md-panel-animate-scale-out _md-panel-animate-leave"};var r=e.calculateZoomToOrigin(t,this._closeTo)||"";s=e.toTransformCss(r+" "+o);break;case u.animation.FADE:n={transitionInClass:"_md-panel-animate-fade-out _md-panel-animate-leave"};break;default:n=l.isString(this._animationClass)?{transitionOutClass:this._animationClass}:{transitionInClass:this._animationClass.close,transitionOutClass:this._animationClass.open}}return n.duration=this._closeDuration,e.translate3d(t,i,s,n)},u.prototype._fixBounds=function(t){var e=t[0].offsetWidth,n=t[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=e),this._closeTo&&null==this._closeTo.bounds.height&&(this._closeTo.bounds.height=n),this._closeTo&&null==this._closeTo.bounds.width&&(this._closeTo.bounds.width=e)},u.prototype._getBoundingClientRect=function(t){if(t instanceof l.element)return{element:t,bounds:t[0].getBoundingClientRect()}}}(window,window.angular);
{
"name": "angular-material-progressCircular",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,S,t){"use strict";function r($,I,s,k,f,e){var C=$.requestAnimationFrame||$.webkitRequestAnimationFrame||S.noop,v=$.cancelAnimationFrame||$.webkitCancelAnimationFrame||$.webkitCancelRequestAnimationFrame||S.noop,h="determinate",P="indeterminate",x="_md-progress-circular-disabled",F="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"}),S.isUndefined(t.mdMode)){var r=t.hasOwnProperty("value")?h:P;t.$set("mdMode",r)}else t.$set("mdMode",t.mdMode.trim());return a}};function a(g,d,m){var p,e,t=d[0],o=S.element(t.querySelector("svg")),w=S.element(t.querySelector("path")),r=I.startIndeterminate,a=I.endIndeterminate,n=0,M=0;function u(r,e,t,a,n,i){var o=++M,s=k.now(),d=e-r,m=q(g.mdDiameter),u=D(m),l=t||I.easeFn,c=a||I.duration,f=-90*(n||0),v=i||100;function h(e){w.attr("stroke-dashoffset",y(m,u,e,v)),w.attr("transform","rotate("+f+" "+m/2+" "+m/2+")")}e===r?h(e):p=C(function e(){var t=$.Math.max(0,$.Math.min(k.now()-s,c));h(l(t,r,d,c)),o===M&&t<c&&(p=C(e))})}function i(){u(r,a,I.easeFnIndeterminate,I.durationIndeterminate,n,75),n=++n%4}function l(){e||(e=f(i,I.durationIndeterminate,0,!1),i(),d.addClass(F).removeAttr("aria-valuenow"))}function c(){e&&(f.cancel(e),e=null,d.removeClass(F))}s(d),d.toggleClass(x,m.hasOwnProperty("disabled")),g.mdMode===P&&l(),g.$on("$destroy",function(){c(),p&&v(p)}),g.$watchGroup(["value","mdMode",function(){var e=t.disabled;return!0===e||!1===e?e:S.isDefined(d.attr("disabled"))}],function(e,t){var r=e[1],a=e[2],n=0,i=0;if(a!==t[2]&&d.toggleClass(x,!!a),a)c();else if(r!==h&&r!==P&&(r=P,m.$set("mdMode",r)),r===P)t[1]===h&&(i=D(n=q(g.mdDiameter)),w.attr("d",b(n,i,!0)),w.attr("stroke-dasharray",(n-i)*$.Math.PI*.75)),l();else{var o=A(e[0]),s=A(t[0]);c(),t[1]===P&&(i=D(n=q(g.mdDiameter)),w.attr("d",b(n,i,!1)),w.attr("stroke-dasharray",(n-i)*$.Math.PI)),d.attr("aria-valuenow",o),u(s,o)}}),g.$watch("mdDiameter",function(e){var t=q(e),r=D(t),a=A(g.value),n=t/2+"px",i={width:t+"px",height:t+"px"};o[0].setAttribute("viewBox","0 0 "+t+" "+t),o.css(i).css("transform-origin",n+" "+n+" "+n),d.css(i),w.attr("stroke-width",r),w.attr("stroke-linecap","square"),g.mdMode==P?(w.attr("d",b(t,r,!0)),w.attr("stroke-dasharray",(t-r)*$.Math.PI*.75),w.attr("stroke-dashoffset",y(t,r,1,75))):(w.attr("d",b(t,r,!1)),w.attr("stroke-dasharray",(t-r)*$.Math.PI),w.attr("stroke-dashoffset",y(t,r,0,100)),u(a,a))})}function b(e,t,r){var a=e/2,n=t/2,i=a+","+n,o=a-n;return"M"+i+"A"+o+","+o+" 0 1 1 "+(n+","+a)+(r?"":"A"+o+","+o+" 0 0 1 "+i)}function y(e,t,r,a){return(e-t)*$.Math.PI*(3*(a||100)/100-r/100)}function A(e){return $.Math.max(0,$.Math.min(e||0,100))}function q(e){var t=I.progressSize;if(e){var r=parseFloat(e);return e.lastIndexOf("%")===e.length-1&&(r=r/100*t),r}return t}function D(e){return I.strokeWidth/100*e}}S.module("material.components.progressCircular",["material.core"]),r.$inject=["$window","$mdProgressCircular","$mdTheming","$mdUtil","$interval","$log"],S.module("material.components.progressCircular").directive("mdProgressCircular",r),S.module("material.components.progressCircular").provider("$mdProgressCircular",function(){var t={progressSize:50,strokeWidth:10,duration:100,easeFn:e,durationIndeterminate:1333,startIndeterminate:1,endIndeterminate:149,easeFnIndeterminate:r,easingPresets:{linearEase:e,materialEase:r}};return{configure:function(e){return t=S.extend(t,e||{})},$get:function(){return t}};function e(e,t,r,a){return r*e/a+t}function r(e,t,r,a){var n=(e/=a)*e,i=n*e;return t+r*(6*i*n+-15*n*n+10*i)}})}(window,window.angular);
{
"name": "angular-material-progressLinear",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,$,a){"use strict";function r(c,u,e){var v="determinate",f="indeterminate",b="buffer",g="query",p="_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,a,r){return e.attr("aria-valuemin",0),e.attr("aria-valuemax",100),e.attr("role","progressbar"),t}};function t(e,r,t){var a;c(r);var d=t.hasOwnProperty("disabled"),s=u.dom.animator.toCss,i=$.element(r[0].querySelector(".md-bar1")),n=$.element(r[0].querySelector(".md-bar2")),o=$.element(r[0].querySelector(".md-container"));function m(){var e=(t.mdMode||"").trim();if(e)switch(e){case v:case f:case b:case g:break;default:e=f}return e}function l(e,a){if(!d&&m()){var r=u.supplant("translateX({0}%) scale({1},1)",[(a-100)/2,a/100]),t=s({transform:r});$.element(e).css(t)}}r.attr("md-mode",m()).toggleClass(p,d),function(){if($.isUndefined(t.mdMode)){var e=$.isDefined(t.value),a=e?v:f;r.attr("md-mode",a),t.mdMode=a}}(),t.$observe("value",function(e){var a=w(e);r.attr("aria-valuenow",a),m()!=g&&l(n,a)}),t.$observe("mdBufferValue",function(e){l(i,w(e))}),t.$observe("disabled",function(e){d=!0===e||!1===e?!!e:$.isDefined(e),r.toggleClass(p,d),o.toggleClass(a,!d)}),t.$observe("mdMode",function(e){switch(a&&o.removeClass(a),e){case g:case b:case v:case f:o.addClass(a="md-mode-"+e);break;default:o.addClass(a="md-mode-"+f)}})}function w(e){return Math.max(0,Math.min(e||0,100))}}r.$inject=["$mdTheming","$mdUtil","$log"],$.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",r)}(window,window.angular);
{
"name": "angular-material-radioButton",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,l,t){"use strict";function n(a,s,u,c){return e.prototype={init:function(e){this._ngModelCtrl=e,this._ngModelCtrl.$render=l.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,i,e,n){i.addClass("_md"),u(i);var r=n[0],o=n[1]||a.fakeNgModel();function d(){i.hasClass("md-focused")||i.addClass("md-focused")}r.init(o),t.mouseActive=!1,i.attr({role:"radiogroup",tabIndex:i.attr("tabindex")||"0"}).on("keydown",function(e){var t=e.which||e.keyCode;if(t!=s.KEY_CODE.ENTER&&e.currentTarget!=e.target)return;switch(t){case s.KEY_CODE.LEFT_ARROW:case s.KEY_CODE.UP_ARROW:e.preventDefault(),r.selectPrevious(),d();break;case s.KEY_CODE.RIGHT_ARROW:case s.KEY_CODE.DOWN_ARROW:e.preventDefault(),r.selectNext(),d();break;case s.KEY_CODE.ENTER:var n=l.element(a.getClosest(i[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&&r.$element.addClass("md-focused")}).on("blur",function(){r.$element.removeClass("md-focused")})}}};function e(e){this._radioButtonRenderFns=[],this.$element=e}function t(e,t){var n=a.iterator(e[0].querySelectorAll("md-radio-button"),!0);if(n.count()){var i=e[0].querySelector("md-radio-button.md-checked"),r=n[t<0?"previous":"next"](i,function(e){return!l.element(e).attr("disabled")})||n.first();l.element(r).triggerHandler("click")}}}function i(u,c,l){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,i,r){var o;l(n),e=n,e.attr({id:i.id||"radio_"+c.nextUid(),role:"radio","aria-checked":"false"}),u.expectWithText(e,"aria-label"),i.ngValue?c.nextTick(d,!1):d();var e;function d(){if(!r)throw"RadioButton: No RadioGroupController could be found.";r.add(s),i.$observe("value",s),n.on("click",a).on("$destroy",function(){r.remove(s)})}function a(e){n[0].hasAttribute("disabled")||r.isDisabled()||t.$apply(function(){r.setViewValue(i.value,e&&e.type)})}function s(){var e=r.getViewValue()==i.value;e!==o&&("md-radio-group"!==n[0].parentNode.nodeName.toLowerCase()&&n.parent().toggleClass(m,e),e&&r.setActiveDescendant(n.attr("id")),o=e,n.attr("aria-checked",e).toggleClass(m,e))}}}}n.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],i.$inject=["$mdAria","$mdUtil","$mdTheming"],l.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",n).directive("mdRadioButton",i)}(window,window.angular);
{
"name": "angular-material-select",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-backdrop": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-backdrop": "1.1.16-master-db3cdf7"
}
}

@@ -5,4 +5,4 @@ /*!

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

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(n,e,i){"use strict";function t(c,u){return["$mdUtil","$window",function(a,d){return{restrict:"A",multiElement:!0,link:function(t,o,e){var r=t.$on("$md-resize-enable",function(){r();var n=o[0],i=n.nodeType===d.Node.ELEMENT_NODE?d.getComputedStyle(n):{};t.$watch(e[c],function(n){if(!!n===u){a.nextTick(function(){t.$broadcast("$md-resize")});var e={cachedTransitionStyles:i};a.dom.animator.waitTransitionEnd(o,e).then(function(){t.$broadcast("$md-resize")})}})})}}}]}window.angular.module("material.components.showHide",["material.core"]).directive("ngShow",t("ngShow",!0)).directive("ngHide",t("ngHide",!1))}(window);
{
"name": "angular-material-sidenav",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-backdrop": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-backdrop": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,E,F){"use strict";function n(o,l,c,r){var a="SideNav '{0}' is not available! Did you use md-component-id='{0}'?",u={find:function(e,n){var t=o.get(e);return t||n?t:(r.error(l.supplant(a,[e||""])),F)},waitFor:p};return function(e,n){if(E.isUndefined(e))return u;var t,o,r,i,s=!0===n,d=u.find(e,s);return!d&&s?u.waitFor(e):!d&&E.isUndefined(n)?(t=u,o=e,r=function(){return!1},i=function(){return c.when(l.supplant(a,[o||""]))},E.extend({isLockedOpen:r,isOpen:r,toggle:i,open:i,close:i,onClose:E.noop,then:function(e){return p(o).then(e||E.noop)}},t)):d};function p(e){return o.when(e).catch(r.error)}}function t(o,h,r,y,C,O,e,w,b,k,S,D,T){return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){return e.addClass("md-closed").attr("tabIndex","-1"),n}};function n(i,s,e,n){var d,l,c,a,u,p=null,m=null,f=k.when(!0),t=w(e.mdIsLockedOpen),$=E.element(D);function g(e){return e.keyCode===r.KEY_CODE.ESCAPE?v(e):k.when(!0)}function v(e){return e.preventDefault(),n.close()}e.mdDisableScrollTarget&&((p=S[0].querySelector(e.mdDisableScrollTarget))?p=E.element(p):b.warn(h.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:e.mdDisableScrollTarget}))),p||(p=s.parent()),e.hasOwnProperty("mdDisableBackdrop")||(l=h.createBackdrop(i,"md-sidenav-backdrop md-opaque ng-enter")),e.hasOwnProperty("mdDisableCloseEvents")&&(c=!0),s.addClass("_md"),y(s),l&&y.inherit(l,s),s.on("$destroy",function(){l&&l.remove(),n.destroy()}),i.$on("$destroy",function(){l&&l.remove()}),i.$watch(function(){return t(i.$parent,{$media:function(e){return b.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),o(e)},$mdMedia:o})},function(e,n){(i.isLockedOpen=e)===n?s.toggleClass("md-locked-open",!!e):O[e?"addClass":"removeClass"](s,"md-locked-open");l&&l.toggleClass("md-locked-open",!!e)}),i.$watch("isOpen",function(e){var n,t=h.findFocusTarget(s)||h.findFocusTarget(s,"[md-sidenav-focus]")||s,o=s.parent();c||(o[e?"on":"off"]("keydown",g),l&&l[e?"on":"off"]("click",v));n=function(e,n){var t=s[0],o=e[0].scrollTop;if(n&&o){u={top:t.style.top,bottom:t.style.bottom,height:t.style.height};var r={top:o+"px",bottom:"auto",height:e[0].clientHeight+"px"};s.css(r),l.css(r)}if(!n&&u)return function(){t.style.top=u.top,t.style.bottom=u.bottom,t.style.height=u.height,l[0].style.top=null,l[0].style.bottom=null,l[0].style.height=null,u=null}}(o,e),e&&(m=S[0].activeElement,a=C.getLastInteractionType());return r=e,r&&!d?(d=p.css("overflow"),p.css("overflow","hidden")):E.isDefined(d)&&(p.css("overflow",d),d=F),f=k.all([e&&l?O.enter(l,o):l?O.leave(l):k.when(!0),O[e?"removeClass":"addClass"](s,"md-closed")]).then(function(){i.isOpen&&(T(function(){$.triggerHandler("resize")}),t&&t.focus()),n&&n()});var r}),n.$toggleOpen=function(e){return i.isOpen===e?k.when(!0):(i.isOpen&&n.onCloseCb&&n.onCloseCb(),k(function(n){i.isOpen=e,h.nextTick(function(){f.then(function(e){!i.isOpen&&m&&"keyboard"===a&&(m.focus(),m=null),n(e)})})}))}}}function o(n,e,t,o,r){var i=this;i.isOpen=function(){return!!n.isOpen},i.isLockedOpen=function(){return!!n.isLockedOpen},i.onClose=function(e){return i.onCloseCb=e,i},i.open=function(){return i.$toggleOpen(!0)},i.close=function(){return i.$toggleOpen(!1)},i.toggle=function(){return i.$toggleOpen(!n.isOpen)},i.$toggleOpen=function(e){return o.when(n.isOpen=e)};var s=e.mdComponentId,d=s&&-1<s.indexOf(r.startSymbol()),l=d?r(s)(n.$parent):s;i.destroy=t.register(i,l),d&&e.$observe("mdComponentId",function(e){e&&e!==i.$$mdHandle&&(i.destroy(),i.destroy=t.register(i,e))})}n.$inject=["$mdComponentRegistry","$mdUtil","$q","$log"],t.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$mdInteraction","$animate","$compile","$parse","$log","$q","$document","$window","$$rAF"],o.$inject=["$scope","$attrs","$mdComponentRegistry","$q","$interpolate"],E.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",n).directive("mdSidenav",t).directive("mdSidenavFocus",function(){return{restrict:"A",require:"^mdSidenav",link:function(e,n,t,o){}}}).controller("$mdSidenavController",o)}(window,window.angular);
{
"name": "angular-material-slider",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,Z,t){"use strict";n.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log","$timeout"],Z.module("material.components.slider",["material.core"]).directive("mdSlider",n).directive("mdSliderContainer",function(){return{controller:function(){},compile:function(e){var t=e.find("md-slider");if(t){var n=t.attr("md-vertical");return void 0!==n&&e.attr("md-vertical",""),t.attr("flex")||t.attr("flex",""),function(e,o,t,n){function i(e){o.children().attr("disabled",e),o.find("input").attr("disabled",e)}o.addClass("_md");var d,a=Z.noop;t.disabled?i(!0):t.ngDisabled&&(a=e.$watch(t.ngDisabled,function(e){i(e)})),e.$on("$destroy",function(){a()}),n.fitInputWidthToTextLength=function(e){var t=o[0].querySelector("md-input-container");if(t){var n=getComputedStyle(t),i=parseInt(n.minWidth),a=parseInt(n.paddingLeft)+parseInt(n.paddingRight);d=d||parseInt(n.maxWidth);var r=Math.max(d,i+a+i/2*e);t.style.maxWidth=r+"px"}}}}}}});var ee=10,te=4;function n(G,K,a,U,H,j,Y,J,Q,X){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=Z.element(e[0].getElementsByClassName("md-slider-wrapper")),i=t.tabindex||0;n.attr("tabindex",i),(t.disabled||t.ngDisabled)&&n.attr("tabindex",-1);return n.attr("role","slider"),a.expect(e,"aria-label"),r}};function r(a,r,e,t){j(r);var i=t[0]||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},n=t[1],o=(Z.element(U.getClosest(r,"_md-slider-container",!0)),e.ngDisabled?Z.bind(null,J(e.ngDisabled),a.$parent):function(){return r[0].hasAttribute("disabled")}),d=Z.element(r[0].querySelector(".md-thumb")),s=Z.element(r[0].querySelector(".md-thumb-text")),l=d.parent(),u=Z.element(r[0].querySelector(".md-track-container")),c=Z.element(r[0].querySelector(".md-track-fill")),m=Z.element(r[0].querySelector(".md-track-ticks")),f=Z.element(r[0].getElementsByClassName("md-slider-wrapper")),v=(Z.element(r[0].getElementsByClassName("md-slider-content")),U.throttle(E,5e3)),p=Z.isDefined(e.mdVertical),h=Z.isDefined(e.mdDiscrete),g=Z.isDefined(e.mdInvert);Z.isDefined(e.min)?e.$observe("min",k):k(0),Z.isDefined(e.max)?e.$observe("max",A):A(100),Z.isDefined(e.step)?e.$observe("step",M):M(1),Z.isDefined(e.round)?e.$observe("round",S):S(3);Z.noop;function $(){E(),I()}e.ngDisabled&&a.$parent.$watch(e.ngDisabled,function(){r.attr("aria-disabled",!!o())}),Y.register(f,"drag",{horizontal:!p}),a.mouseActive=!1,f.on("keydown",function(e){if(o())return;var t,n=H.KEY_CODE;switch(e.keyCode){case n.DOWN_ARROW:case n.LEFT_ARROW:e.preventDefault(),t=-x;break;case n.UP_ARROW:case n.RIGHT_ARROW:e.preventDefault(),t=x;break;case n.PAGE_DOWN:e.preventDefault(),t=-x*ee;break;case n.PAGE_UP:e.preventDefault(),t=x*ee;break;case n.HOME:e.preventDefault(),e.stopPropagation(),W(b);break;case n.END:e.preventDefault(),e.stopPropagation(),W(w)}t&&(t=g?-t:t,(e.metaKey||e.ctrlKey||e.altKey)&&(t*=te),e.preventDefault(),e.stopPropagation(),W(i.$viewValue+t))}).on("mousedown",function(){(function(){if(!h||o())return;if(Z.isUndefined(x))return;if(x<=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((w-b)/x);C||(C=Z.element("<canvas>").css("position","absolute"),m.append(C),D=C[0].getContext("2d"));var n,i=N();!i||i.height||i.width||(E(),i=R);C[0].width=i.width,C[0].height=i.height;for(var a=0;a<=t;a++){var r=K.getComputedStyle(m[0]);D.fillStyle=r.color||"black",n=Math.floor((p?i.height:i.width)*(a/t)),D.fillRect(p?0:n-1,p?n-1:0,p?i.width:2,p?2:i.height)}})(),a.mouseActive=!0,f.removeClass("md-focused"),X(function(){a.mouseActive=!1},100)}).on("focus",function(){!1===a.mouseActive&&f.addClass("md-focused")}).on("blur",function(){f.removeClass("md-focused"),r.removeClass("md-active"),function(){if(C&&D){var e=N();D.clearRect(0,0,e.width,e.height)}}()}).on("$md.pressdown",function(e){if(o())return;r.addClass("md-active"),r[0].focus(),E();var t=T(_(z(F(p?e.pointer.y:e.pointer.x))));a.$apply(function(){P(t),L(B(t))})}).on("$md.pressup",function(e){if(o())return;r.removeClass("md-dragging");var t=T(_(z(F(p?e.pointer.y:e.pointer.x))));a.$apply(function(){P(t),I()})}).on("$md.dragstart",function(e){if(o())return;O=!0,e.stopPropagation(),r.addClass("md-dragging"),q(e)}).on("$md.drag",function(e){if(!O)return;e.stopPropagation(),q(e)}).on("$md.dragend",function(e){if(!O)return;e.stopPropagation(),O=!1}),setTimeout($,0);var b,w,x,y,C,D,V=G.throttle($);function k(e){b=parseFloat(e),i.$viewValue=T(i.$modelValue,b,w),f.attr("aria-valuemin",e),$()}function A(e){w=parseFloat(e),i.$viewValue=T(i.$modelValue,b,w),f.attr("aria-valuemax",e),$()}function M(e){x=parseFloat(e)}function S(e){y=T(parseInt(e),0,6)}Z.element(K).on("resize",V),a.$on("$destroy",function(){Z.element(K).off("resize",V)}),i.$render=I,i.$viewChangeListeners.push(I),i.$formatters.push(T),i.$formatters.push(_);var R={};function E(){R=u[0].getBoundingClientRect()}function N(){return v(),R}function W(e){a.$evalAsync(function(){P(e)})}function P(e){i.$setViewValue(T(_(e)))}function I(){isNaN(i.$viewValue)&&(i.$viewValue=i.$modelValue),i.$viewValue=T(i.$viewValue);var e=B(i.$viewValue);a.modelValue=i.$viewValue,f.attr("aria-valuenow",i.$viewValue),L(e),s.text(i.$viewValue)}function T(e,t,n){if(Z.isNumber(e))return t=Z.isNumber(t)?t:b,n=Z.isNumber(n)?n:w,Math.max(t,Math.min(n,e))}function _(e){if(Z.isNumber(e)){var t=Math.round((e-b)/x)*x+b;return t=Math.round(t*Math.pow(10,y))/Math.pow(10,y),n&&n.fitInputWidthToTextLength&&U.debounce(function(){n.fitInputWidthToTextLength(t.toString().length)},100)(),t}}function L(e){var t;t=e;var n=100*(e=Math.max(0,Math.min(t||0,1)))+"%",i=g?100*(1-e)+"%":n;p?l.css("bottom",n):U.bidiProperty(l,"left","right",n),c.css(p?"height":"width",i),r.toggleClass(g?"md-max":"md-min",0===e),r.toggleClass(g?"md-min":"md-max",1===e)}E();var O=!1;function q(e){var t,n,i;h?(n=p?e.pointer.y:e.pointer.x,i=T(_(z(F(n)))),L(F(n)),s.text(i)):(t=p?e.pointer.y:e.pointer.x,a.$evalAsync(function(){P(z(F(t)))}))}function F(e){var t=(e-(p?R.top:R.left))/(p?R.height:R.width);return p||"rtl"!==U.bidi()||(t=1-t),Math.max(0,Math.min(1,p?1-t:t))}function z(e){return b+(g?1-e:e)*(w-b)}function B(e){var t=(e-b)/(w-b);return g?1-t:t}}}}(window,window.angular);
{
"name": "angular-material-sticky",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-content": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-content": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(t,e,p){"use strict";function n(a,f,u,c){var s=u.checkStickySupport();return function(t,e,n){var r=e.controller("mdContent");if(r)if(s)e.css({position:s,top:0,"z-index":2});else{var o=r.$element.data("$$sticky");o||(o=function(t){var r,o=t.$element,i=f.throttle(e);return function(t){var e,n,r=200;function o(){+u.now()-n>r?(e=!1,t.triggerHandler("$scrollend")):(t.triggerHandler("$scroll"),f.throttle(o))}t.on("scroll touchmove",function(){e||(e=!0,f.throttle(o),t.triggerHandler("$scrollstart")),t.triggerHandler("$scroll"),n=+u.now()})}(o),o.on("$scrollstart",i),o.on("$scroll",function t(){var e=o.prop("scrollTop"),n=(t.prevScrollTop||0)<e;if(0!==(t.prevScrollTop=e)){if(n){if(r.next&&r.next.top<=e)return void c(r.next);if(r.current&&r.next&&r.next.top-e<=r.next.height)return void s(r.current,e+(r.next.top-r.next.height-e))}if(!n){if(r.current&&r.prev&&e<r.current.top)return void c(r.prev);if(r.next&&r.current&&e>=r.next.top-r.current.height)return void s(r.current,e+(r.next.top-e-r.current.height))}r.current&&s(r.current,e)}else c(null)}),r={prev:null,current:null,next:null,items:[],add:function(n,t){t.addClass("md-sticky-clone");var e={element:n,clone:t};return r.items.push(e),u.nextTick(function(){o.prepend(e.clone)}),i(),function(){r.items.forEach(function(t,e){t.element[0]===n[0]&&(r.items.splice(e,1),t.clone.remove())}),i()}},refreshElements:e};function e(){var t;r.items.forEach(l),r.items=r.items.sort(function(t,e){return t.top<e.top?-1:1});for(var e=o.prop("scrollTop"),n=r.items.length-1;0<=n;n--)if(e>r.items[n].top){t=r.items[n];break}c(t)}function l(t){var e=t.element[0];for(t.top=0,t.left=0,t.right=0;e&&e!==o[0];)t.top+=e.offsetTop,t.left+=e.offsetLeft,e.offsetParent&&(t.right+=e.offsetParent.offsetWidth-e.offsetWidth-e.offsetLeft),e=e.offsetParent;t.height=t.element.prop("offsetHeight");var n=u.floatingScrollbars()?"0":p;u.bidi(t.clone,"margin-left",t.left,n),u.bidi(t.clone,"margin-right",n,t.right)}function c(t){if(r.current!==t){r.current&&(s(r.current,null),n(r.current,null)),t&&n(t,"active"),r.current=t;var e=r.items.indexOf(t);r.next=r.items[e+1],r.prev=r.items[e-1],n(r.next,"next"),n(r.prev,"prev")}}function n(t,e){t&&t.state!==e&&(t.state&&(t.clone.attr("sticky-prev-state",t.state),t.element.attr("sticky-prev-state",t.state)),t.clone.attr("sticky-state",e),t.element.attr("sticky-state",e),t.state=e)}function s(t,e){t&&(null===e||e===p?t.translateY&&(t.translateY=null,t.clone.css(a.CSS.TRANSFORM,"")):(t.translateY=e,u.bidi(t.clone,a.CSS.TRANSFORM,"translate3d("+t.left+"px,"+e+"px,0)","translateY("+e+"px)")))}}(r),r.$element.data("$$sticky",o));var i=n||c(e.clone())(t),l=o.add(e,i);t.$on("$destroy",l)}}}n.$inject=["$mdConstant","$$rAF","$mdUtil","$compile"],e.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",n)}(window,window.angular);
{
"name": "angular-material-subheader",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-sticky": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-sticky": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,l,t){"use strict";function i(c,s,m,u,o){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(i,n,e,t,d){m(n),n.addClass("_md"),u.prefixer().removeAttribute(n,"ng-repeat");var r=n[0].outerHTML;function a(e){return l.element(e[0].querySelector(".md-subheader-content"))}e.$set("role","heading"),o.expect(n,"aria-level","2"),d(i,function(e){a(n).append(e)}),n.hasClass("md-no-sticky")||d(i,function(e){var t=s('<div class="md-subheader-wrapper" aria-hidden="true">'+r+"</div>")(i);u.nextTick(function(){a(t).append(e)}),c(i,n,t)})}}}i.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil","$mdAria"],l.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",i)}(window,window.angular);
{
"name": "angular-material-swipe",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,i,t){"use strict";function n(e){i.$inject=["$parse"];var c="md"+e,o="$md."+e.toLowerCase();return i;function i(r){return{restrict:"A",link:function(t,e,i){var n=r(i[c]);e.on(o,function(e){var i=e.currentTarget;t.$applyAsync(function(){n(t,{$event:e,$target:{current:i}})})})}}}}window.angular.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",n("SwipeLeft")).directive("mdSwipeRight",n("SwipeRight")).directive("mdSwipeUp",n("SwipeUp")).directive("mdSwipeDown",n("SwipeDown"))}(window);
{
"name": "angular-material-switch",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-checkbox": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-checkbox": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,$,t){"use strict";function n(e,m,u,g,p,v,f){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(n,a,e,t){t[0];var r=t[1]||m.fakeNgModel(),i=(t[2],null);null!=e.disabled?i=function(){return!0}:e.ngDisabled&&(i=g(e.ngDisabled));var d,o=$.element(a[0].querySelector(".md-thumb-container")),l=$.element(a[0].querySelector(".md-container")),s=$.element(a[0].querySelector(".md-label"));p(function(){a.removeClass("md-dragging")}),c(n,a,e,t),i&&n.$watch(i,function(e){a.attr("tabindex",e?-1:0)}),e.$observe("mdInvert",function(e){var t=m.parseAttributeBoolean(e);t?a.prepend(s):a.prepend(l),a.toggleClass("md-inverted",t)}),v.register(l,"drag"),l.on("$md.dragstart",function(e){i&&i(n)||(e.stopPropagation(),a.addClass("md-dragging"),d={width:o.prop("offsetWidth")})}).on("$md.drag",function(e){if(d){e.stopPropagation(),e.srcEvent&&e.srcEvent.preventDefault();var t=e.pointer.distanceX/d.width,n=r.$viewValue?1+t:t;n=Math.max(0,Math.min(1,n)),o.css(u.CSS.TRANSFORM,"translate3d("+100*n+"%,0,0)"),d.translate=n}}).on("$md.dragend",function(e){var t;d&&(e.stopPropagation(),a.removeClass("md-dragging"),o.css(u.CSS.TRANSFORM,""),(r.$viewValue?d.translate<.5:.5<d.translate)&&(t=!r.$viewValue,n.$apply(function(){r.$setViewValue(t),r.$render()})),d=null,n.skipToggle=!0,f(function(){n.skipToggle=!1},1))})}}}}n.$inject=["mdCheckboxDirective","$mdUtil","$mdConstant","$parse","$$rAF","$mdGesture","$timeout"],$.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",n)}(window,window.angular);
{
"name": "angular-material-tabs",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-icon": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-icon": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,X,G){"use strict";function t(a){return{restrict:"A",compile:function(e,t){var n=a(t.mdTabScroll,null,!0);return function(t,e){e.on("wheel",function(e){t.$apply(function(){n(t,{$event:e})})})}}}}function n(c,l,n,a,s,f,d,i,r,o,t,b,m){var u=this,p=!1,h=[],g=!1,x=!1;function v(t,e){var n=i.$normalize("md-"+t);function a(e){u[t]="false"!==e}e&&D(t,e),i.hasOwnProperty(n)&&a(i[n]),i.$observe(n,a)}function T(){g=!0,X.element(n).off("resize",W)}function $(){var e=A();X.element(e.wrapper).toggleClass("md-stretch-tabs",function(){switch(u.stretchTabs){case"always":return!0;case"never":return!1;default:return!u.shouldPaginate&&n.matchMedia("(max-width: 600px)").matches}}()),U()}function C(){u.shouldCenterTabs=E()}function I(t,e){if(t!==e){var n=A();X.forEach(n.tabs,function(e){e.style.maxWidth=t+"px"}),X.forEach(n.dummies,function(e){e.style.maxWidth=t+"px"}),f.nextTick(u.updateInkBarStyles)}}function w(e,t){e!==t&&(u.maxTabWidth=q(),u.shouldCenterTabs=E(),f.nextTick(function(){u.maxTabWidth=q(),N(u.selectedIndex)}))}function y(e){l[e?"removeClass":"addClass"]("md-no-tab-content")}function k(e){var t=A(),n=(u.shouldCenterTabs||K()?"":"-")+e+"px";n=n.replace("--",""),X.element(t.paging).css(a.CSS.TRANSFORM,"translate("+n+", 0)"),c.$broadcast("$mdTabsPaginationChanged")}function P(e,t){e!==t&&A().tabs[e]&&(N(),_())}function S(e,t){e!==t&&(u.selectedIndex=B(e),u.lastSelectedIndex=t,u.updateInkBarStyles(),Y(),N(e),c.$broadcast("$mdTabsChanged"),u.tabs[t]&&u.tabs[t].scope.deselect(),u.tabs[e]&&u.tabs[e].scope.select())}function L(e,t){p||(u.focusIndex=u.selectedIndex=e),t&&u.noSelectClick||f.nextTick(function(){u.tabs[e].element.triggerHandler("click")},!1)}function W(){u.lastSelectedIndex=u.selectedIndex,u.offsetLeft=z(u.offsetLeft),f.nextTick(function(){u.updateInkBarStyles(),F()})}function O(e){X.element(A().inkBar).toggleClass("ng-hide",e)}function M(e){l.toggleClass("md-dynamic-height",e)}function A(){var e={},t=l[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 E(){return u.centerTabs&&!u.shouldPaginate}function B(e){if(-1===e)return-1;var t,n,a=Math.max(u.tabs.length-e,e);for(t=0;t<=a;t++){if((n=u.tabs[e+t])&&!0!==n.scope.disabled)return n.getIndex();if((n=u.tabs[e-t])&&!0!==n.scope.disabled)return n.getIndex()}return e}function D(e,n,a){Object.defineProperty(u,e,{get:function(){return a},set:function(e){var t=a;a=e,n&&n(e,t)}})}function F(){u.maxTabWidth=q(),u.shouldPaginate=function(){var e;if(u.noPagination||!x)return!1;var t=l.prop("clientWidth");return X.forEach(A().tabs,function(e){t-=e.offsetWidth}),e=t<0,A().paging.style.width=e?"999999px":G,e}()}function R(e){var t=0;return X.forEach(e,function(e){t+=Math.max(e.offsetWidth,e.getBoundingClientRect().width)}),Math.ceil(t)}function q(){var e=A().canvas.clientWidth;return Math.max(0,Math.min(e-1,264))}function H(e,t){var n,a=t?"focusIndex":"selectedIndex",s=u[a];for(n=s+e;u.tabs[n]&&u.tabs[n].scope.disabled;n+=e);n=(s+e+u.tabs.length)%u.tabs.length,u.tabs[n]&&(u[a]=n)}function _(){u.styleTabItemFocus="keyboard"===t.getLastInteractionType();var e=A().tabs[u.focusIndex];e&&e.focus()}function N(e){var t=A();if(X.isNumber(e)||(e=u.focusIndex),t.tabs[e]&&!u.shouldCenterTabs){var n=t.tabs[e],a=n.offsetLeft,s=n.offsetWidth+a;if(0!==e)if(K()){var i=R(Array.prototype.slice.call(t.tabs,0,e)),r=R(Array.prototype.slice.call(t.tabs,0,e+1));u.offsetLeft=Math.min(u.offsetLeft,z(i)),u.offsetLeft=Math.max(u.offsetLeft,z(r-t.canvas.clientWidth))}else u.offsetLeft=Math.max(u.offsetLeft,z(s-t.canvas.clientWidth+32)),u.offsetLeft=Math.min(u.offsetLeft,z(a));else u.offsetLeft=0}}function j(){u.selectedIndex=B(u.selectedIndex),u.focusIndex=B(u.focusIndex)}function Y(){if(!u.dynamicHeight)return l.css("height","");if(!u.tabs.length)return h.push(Y);var e=A(),t=e.contents[u.selectedIndex],n=t?t.offsetHeight:0,a=e.wrapper.offsetHeight,s=n+a,i=l.prop("clientHeight");if(i!==s){"bottom"===l.attr("md-align-tabs")&&(i-=a,s-=a,l.attr("md-border-bottom")!==G&&++i),p=!0;var r={height:i+"px"},o={height:s+"px"};l.css(r),d(l,{from:r,to:o,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done(function(){l.css({transition:"none",height:""}),f.nextTick(function(){l.css("transition","")}),p=!1})}}function U(e,t){if(!u.noInkBar){var n=A();if(n.tabs[u.selectedIndex])if(u.tabs.length)if(l.prop("offsetParent")){var a=u.selectedIndex,s=n.paging.offsetWidth,i=n.tabs[a],r=i.offsetLeft,o=s-r-i.offsetWidth;if(u.shouldCenterTabs){var d=R(n.tabs);d<s&&e!==s&&t!==d&&b(U,0,!0,s,d)}!function(){var e=A(),t=u.selectedIndex,n=u.lastSelectedIndex,a=X.element(e.inkBar);if(!X.isNumber(n))return;a.toggleClass("md-left",t<n).toggleClass("md-right",n<t)}(),X.element(n.inkBar).css({left:r+"px",right:o+"px"})}else(function e(){e.watcher||(e.watcher=c.$watch(function(){f.nextTick(function(){e.watcher&&l.prop("offsetParent")&&(e.watcher(),e.watcher=null,W())},!1)}))})();else h.push(u.updateInkBarStyles);else X.element(n.inkBar).css({left:"auto",right:"auto"})}}function z(e){var t=A();if(!t.tabs.length||!u.shouldPaginate)return 0;var n=t.tabs[t.tabs.length-1],a=n.offsetLeft+n.offsetWidth;return e=K()?(e=Math.min(t.paging.offsetWidth-t.canvas.clientWidth,e),Math.max(0,e)):(e=Math.max(0,e),Math.min(a-t.canvas.clientWidth,e))}function K(){return"rtl"===f.bidi()}u.$onInit=function(){(function(t,e){var n=i.$normalize("md-"+t);e&&D(t,e);i.$observe(n,function(e){u[t]=e})})("stretchTabs",$),D("focusIndex",P,u.selectedIndex||0),D("offsetLeft",k,0),D("hasContent",y,!1),D("maxTabWidth",I,q()),D("shouldPaginate",w,!1),v("noInkBar",O),v("dynamicHeight",M),v("noPagination"),v("swipeContent"),v("noDisconnect"),v("autoselect"),v("noSelectClick"),v("centerTabs",C),v("enableDisconnect"),u.scope=c,u.parent=c.$parent,u.tabs=[],u.lastSelectedIndex=null,u.hasFocus=!1,u.styleTabItemFocus=!1,u.shouldCenterTabs=E(),u.tabContentPrefix="tab-content-",u.navigationHint="Use the left and right arrow keys to navigate between tabs",u.selectedIndex=u.selectedIndex||0,e=i.$mdTabsTemplate,t=X.element(l[0].querySelector("md-tab-data")),t.html(e),r(t.contents())(u.parent),delete i.$mdTabsTemplate,c.$watch("$mdTabsCtrl.selectedIndex",S),X.element(n).on("resize",W),c.$on("$destroy",T),o(l),f.nextTick(function(){Y(),N(),U(),u.tabs[u.selectedIndex]&&u.tabs[u.selectedIndex].scope.select(),x=!0,F()});var e,t},u.updatePagination=f.debounce(F,100),u.redirectFocus=_,u.attachRipple=function(e,t){var n=A(),a={colorElement:X.element(n.inkBar)};s.attach(e,t,a)},u.insertTab=function(e,t){var n=x,a={getIndex:function(){return u.tabs.indexOf(s)},isActive:function(){return this.getIndex()===u.selectedIndex},isLeft:function(){return this.getIndex()<u.selectedIndex},isRight:function(){return this.getIndex()>u.selectedIndex},shouldRender:function(){return!u.noDisconnect||this.isActive()},hasFocus:function(){return u.styleTabItemFocus&&u.hasFocus&&this.getIndex()===u.focusIndex},id:f.nextUid(),hasContent:!(!e.template||!e.template.trim())},s=X.extend(a,e);X.isDefined(t)?u.tabs.splice(t,0,s):u.tabs.push(s);return h.forEach(function(e){f.nextTick(e)}),h=[],function(){var e,t=!1;for(e=0;e<u.tabs.length;e++)if(u.tabs[e].hasContent){t=!0;break}u.hasContent=t}(),f.nextTick(function(){F(),function(e){if(e.hasContent){var t=l[0].querySelectorAll('[md-tab-id="'+e.id+'"]');X.element(t).attr("aria-controls",u.tabContentPrefix+e.id)}}(s),n&&u.autoselect&&f.nextTick(function(){f.nextTick(function(){L(u.tabs.indexOf(s))})})}),s},u.removeTab=function(e){if(g)return;var t=u.selectedIndex,n=u.tabs.splice(e.getIndex(),1)[0];j(),u.selectedIndex===t&&(n.scope.deselect(),u.tabs[u.selectedIndex]&&u.tabs[u.selectedIndex].scope.select());f.nextTick(function(){F(),u.offsetLeft=z(u.offsetLeft)})},u.select=L,u.scroll=function(e){if(!u.shouldPaginate)return;e.preventDefault(),e.deltaY?u.offsetLeft=z(u.offsetLeft+e.deltaY):e.deltaX&&(u.offsetLeft=z(u.offsetLeft+e.deltaX))},u.nextPage=function(){if(!u.canPageForward())return;var e=m.increasePageOffset(A(),u.offsetLeft);u.offsetLeft=z(e)},u.previousPage=function(){if(!u.canPageBack())return;var e=m.decreasePageOffset(A(),u.offsetLeft);u.offsetLeft=z(e)},u.keydown=function(e){switch(e.keyCode){case a.KEY_CODE.LEFT_ARROW:e.preventDefault(),H(-1,!0);break;case a.KEY_CODE.RIGHT_ARROW:e.preventDefault(),H(1,!0);break;case a.KEY_CODE.SPACE:case a.KEY_CODE.ENTER:e.preventDefault(),p||L(u.focusIndex);break;case a.KEY_CODE.TAB:u.focusIndex!==u.selectedIndex&&(u.focusIndex=u.selectedIndex)}},u.canPageForward=function(){var e=A(),t=e.tabs[e.tabs.length-1];if(K())return u.offsetLeft<e.paging.offsetWidth-e.canvas.offsetWidth;return t&&t.offsetLeft+t.offsetWidth>e.canvas.clientWidth+u.offsetLeft},u.canPageBack=function(){return 0<u.offsetLeft},u.refreshIndex=j,u.incrementIndex=H,u.getTabElementIndex=function(e){var t=l[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(t,e[0])},u.updateInkBarStyles=f.debounce(U,100),u.updateTabOrder=f.debounce(function(){var e=u.tabs[u.selectedIndex],t=u.tabs[u.focusIndex];u.tabs=u.tabs.sort(function(e,t){return e.index-t.index}),u.selectedIndex=u.tabs.indexOf(e),u.focusIndex=u.tabs.indexOf(t)},100),u.getFocusedTabId=function(){var e=u.tabs[u.focusIndex];return e&&e.id?"tab-item-"+e.id:null},1===X.version.major&&X.version.minor<=4&&this.$onInit()}function a(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 s(d,c){return{require:"^?mdTabs",link:function(e,t,n,a){if(a){var s,i,r=function(){a.updatePagination(),a.updateInkBarStyles()};if("MutationObserver"in c){(s=new MutationObserver(r)).observe(t[0],{childList:!0,subtree:!0,characterData:!0}),i=s.disconnect.bind(s)}else{var o=d.debounce(r,15,null,!1);t.on("DOMSubtreeModified",o),i=t.off.bind(t,"DOMSubtreeModified",o)}e.$on("$destroy",function(){i()})}}}}function i(r,o){return{restrict:"A",link:function(e,t,n,a){if(!a)return;var s=a.enableDisconnect?e.compileScope.$new():e.compileScope;return t.html(e.template),r(t.contents())(s),o.nextTick(function(){e.$watch("connected",function(e){!1===e?a.enableDisconnect&&o.disconnectScope(s):i()}),e.$on("$destroy",i)});function i(){a.enableDisconnect&&o.reconnectScope(s)}},scope:{template:"=mdTabsTemplate",connected:"=?mdConnectedIf",compileScope:"=mdScope"},require:"^?mdTabs"}}X.module("material.components.tabs",["material.core","material.components.icon"]),X.module("material.components.tabs").service("MdTabsPaginationService",function(){return{decreasePageOffset:function(e,t){var n,a,s=e.canvas,i=o(e);for(n=0;n<i.length;n++)if(i[n]>=t){a=i[n];break}return Math.max(0,a-s.clientWidth)},increasePageOffset:function(e,t){var n,a,s=e.canvas,i=d(e)-s.clientWidth,r=o(e);for(n=0;r.length,r[n]<=t+s.clientWidth;n++)a=r[n];return Math.min(i,a)},getTabOffsets:o,getTotalTabsWidth:d};function o(e){var t,n,a=0,s=[];for(t=0;t<e.tabs.length;t++)n=e.tabs[t],s.push(a),a+=n.offsetWidth;return s}function d(e){var t,n,a=0;for(t=0;t<e.tabs.length;t++)n=e.tabs[t],a+=n.offsetWidth;return a}}),X.module("material.components.tabs").directive("mdTab",function(){return{require:"^?mdTabs",terminal:!0,compile:function(e,t){var n=d(e,"md-tab-label"),a=d(e,"md-tab-body");if(0===n.length&&(n=X.element("<md-tab-label></md-tab-label>"),t.label?n.text(t.label):n.append(e.contents()),0===a.length)){var s=e.contents().detach();(a=X.element("<md-tab-body></md-tab-body>")).append(s)}return e.append(n),a.html()&&e.append(a),i},scope:{active:"=?mdActive",disabled:"=?ngDisabled",select:"&?mdOnSelect",deselect:"&?mdOnDeselect",tabClass:"@mdTabClass"}};function i(e,t,n,a){if(a){var s=a.getTabElementIndex(t),i=d(t,"md-tab-body").remove(),r=d(t,"md-tab-label").remove(),o=a.insertTab({scope:e,parent:e.$parent,index:s,element:t,template:i.html(),label:r.html()},s);e.select=e.select||X.noop,e.deselect=e.deselect||X.noop,e.$watch("active",function(e){e&&a.select(o.getIndex(),!0)}),e.$watch("disabled",function(){a.refreshIndex()}),e.$watch(function(){return a.getTabElementIndex(t)},function(e){o.index=e,a.updateTabOrder()}),e.$on("$destroy",function(){a.removeTab(o)})}}function d(e,t){for(var n=e[0].children,a=0,s=n.length;a<s;a++){var i=n[a];if(i.tagName===t.toUpperCase())return X.element(i)}return X.element()}}),X.module("material.components.tabs").directive("mdTabItem",function(){return{require:"^?mdTabs",link:function(e,t,n,a){a&&a.attachRipple(e,t)}}}),X.module("material.components.tabs").directive("mdTabLabel",function(){return{terminal:!0}}),t.$inject=["$parse"],X.module("material.components.tabs").directive("mdTabScroll",t),n.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming","$mdInteraction","$timeout","MdTabsPaginationService"],X.module("material.components.tabs").controller("MdTabsController",n),a.$inject=["$$mdSvgRegistry"],X.module("material.components.tabs").directive("mdTabs",a),s.$inject=["$mdUtil","$window"],X.module("material.components.tabs").directive("mdTabsDummyWrapper",s),i.$inject=["$compile","$mdUtil"],X.module("material.components.tabs").directive("mdTabsTemplate",i)}(window,window.angular);
{
"name": "angular-material-toast",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-button": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-button": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(t,s,n){"use strict";function e(e){return{restrict:"E",link:function(t,n){n.addClass("_md"),t.$on("$destroy",function(){e.destroy()})}}}function o(t){e.$inject=["$mdToast","$scope","$log"],o.$inject=["$animate","$mdToast","$mdUtil","$mdMedia","$document"];var p,h="ok";function n(t){p=t}return t("$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(t,n){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:e,theme:n.defaultTheme(),controllerAs:"toast",bindToController:!0}}]}).addMethod("updateTextContent",n).addMethod("updateContent",n);function e(n,e,o){this.$onInit=function(){var t=this;t.highlightAction&&(e.highlightClasses=["md-highlight",t.highlightClass]),t.action&&!t.actionKey&&o.warn("Toasts with actions should define an actionKey for accessibility.","Details: https://material.angularjs.org/latest/api/service/$mdToast#mdtoast-simple"),t.actionKey&&!t.actionHint&&(t.actionHint='Press Control-"'+t.actionKey+'" to '),t.dismissHint||(t.dismissHint="Press Escape to dismiss."),e.$watch(function(){return p},function(){t.content=p}),this.resolve=function(){n.hide(h)}}}function o(o,d,r,l,c){var m="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:function(t,a,s){p=s.textContent||s.content;var i=!l("gt-sm");a=r.extractElementByName(a,"md-toast",!0),s.element=a,s.onSwipe=function(t,n){var e=t.type.replace("$md.",""),o=e.replace("swipe","");"down"===o&&-1!==s.position.indexOf("top")&&!i||"up"===o&&(-1!==s.position.indexOf("bottom")||i)||("left"!==o&&"right"!==o||!i)&&(a.addClass("md-"+e),r.nextTick(d.cancel))},s.openClass=(n=s.position,l("gt-xs")?"md-toast-open-"+(-1<n.indexOf("top")?"top":"bottom"):"md-toast-open-bottom"),a.addClass(s.toastClass),s.parent.addClass(s.openClass),r.hasComputedStyle(s.parent,"position","static")&&s.parent.css("position","relative");var n;e=t.toast&&t.toast.actionKey?t.toast.actionKey:void 0,c.on("keydown",function(t){"Escape"===t.key&&d.hide(!1),e&&t.key===e&&t.ctrlKey&&d.hide(h)}),a.on(m,s.onSwipe),a.addClass(i?"md-bottom":s.position.split(" ").map(function(t){return"md-"+t}).join(" ")),s.parent&&s.parent.addClass("md-toast-animating");var e;return o.enter(a,s.parent).then(function(){s.parent&&s.parent.removeClass("md-toast-animating")})},onRemove:function(t,n,e){t.toast&&t.toast.actionKey&&c.off("keydown");n.off(m,e.onSwipe),e.parent&&e.parent.addClass("md-toast-animating");e.openClass&&e.parent.removeClass(e.openClass);return(!0===e.$destroy?n.remove():o.leave(n)).then(function(){e.parent&&e.parent.removeClass("md-toast-animating"),r.hasComputedStyle(e.parent,"position","static")&&e.parent.css("position","")})},toastClass:"",position:"bottom left",themable:!0,hideDelay:3e3,autoWrap:!0,transformTemplate:function(t,n){if(n.autoWrap&&t&&!/md-toast-content/g.test(t)){var e=document.createElement("md-template");e.innerHTML=t;for(var o=0;o<e.children.length;o++)if("MD-TOAST"===e.children[o].nodeName){var a=s.element('<div class="md-toast-content">');a.append(s.element(e.children[o].childNodes)),e.children[o].appendChild(a[0])}return e.innerHTML}return t||""}}}}e.$inject=["$mdToast"],o.$inject=["$$interimElementProvider"],s.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",e).provider("$mdToast",o)}(window,window.angular);
{
"name": "angular-material-toolbar",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-content": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-content": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(n,v,t){"use strict";function o(p,$,S,n,g){var w=v.bind(null,S.supplant,"translate3d(0,{0}px,0)");return{template:"",restrict:"E",link:function(f,u,h){u.addClass("_md"),n(u),S.nextTick(function(){u.addClass("_md-toolbar-transitions")},!1),v.isDefined(h.mdScrollShrink)&&function(){var o,e,r=v.noop,a=0,i=0,l=h.mdShrinkSpeedFactor||.5,s=p.throttle(t),c=S.debounce(n,5e3);f.$on("$mdContentLoaded",d),h.$observe("mdScrollShrink",function(n){var t=u.parent().find("md-content");!e&&t.length&&d(null,t),!1===(n=f.$eval(n))?r():r=m()}),h.ngShow&&f.$watch(h.ngShow,n);h.ngHide&&f.$watch(h.ngHide,n);function d(n,t){t&&u.parent()[0]===t.parent()[0]&&(e&&e.off("scroll",s),e=t,r=m())}function t(n){var t=n?n.target.scrollTop:i;c(),a=Math.min(o/l,Math.max(0,a+t-i)),u.css($.CSS.TRANSFORM,w([-a*l])),e.css($.CSS.TRANSFORM,w([(o-a)*l])),i=t,S.nextTick(function(){var n=u.hasClass("md-whiteframe-z1");n&&!a?g.removeClass(u,"md-whiteframe-z1"):!n&&a&&g.addClass(u,"md-whiteframe-z1")})}function m(){return e?(e.on("scroll",s),e.attr("scroll-shrink","true"),S.nextTick(n,!1),function(){e.off("scroll",s),e.attr("scroll-shrink","false"),n()}):v.noop}function n(){var n=-(o=u.prop("offsetHeight"))*l+"px";e.css({"margin-top":n,"margin-bottom":n}),t()}f.$on("$destroy",r)}()}}}o.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate"],v.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",o)}(window,window.angular);
{
"name": "angular-material-tooltip",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-panel": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-panel": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(a,A,e){"use strict";function t(y,E,x,$,w,P,g,T){var O="focus touchstart mouseenter",D="blur touchcancel mouseleave",V={top:{x:g.xPosition.CENTER,y:g.yPosition.ABOVE},right:{x:g.xPosition.OFFSET_END,y:g.yPosition.CENTER},bottom:{x:g.xPosition.CENTER,y:g.yPosition.BELOW},left:{x:g.xPosition.OFFSET_START,y:g.yPosition.CENTER}};return{restrict:"E",priority:210,scope:{mdZIndex:"=?mdZIndex",mdDelay:"=?mdDelay",mdVisible:"=?mdVisible",mdAutohide:"=?mdAutohide",mdDirection:"@?mdDirection"},link:function(d,n,a){var o,e,r,l,s,c="md-tooltip-"+P.nextUid(),u=P.getParentWithPointerEvents(n),m=x.throttle(h),f=!1,b=null;function t(){d.mdZIndex=d.mdZIndex||100,d.mdDelay=d.mdDelay||0,V[d.mdDirection]||(d.mdDirection="bottom")}function i(e){var t=e||w(n.text().trim())(d.$parent);(!u.attr("aria-label")&&!u.attr("aria-labelledby")||u.attr("md-labeled-by-tooltip"))&&(u.attr("aria-label",t),u.attr("md-labeled-by-tooltip")||u.attr("md-labeled-by-tooltip",c))}function h(){t(),l&&l.panelEl&&l.panelEl.removeClass(o),o="md-origin-"+d.mdDirection,e=V[d.mdDirection],r=g.newPanelPosition().relativeTo(u).addPanelPosition(e.x,e.y),l&&l.panelEl&&(l.panelEl.addClass(o),l.updatePosition(r))}function p(e){p.queued&&p.value===!!e||!p.queued&&d.mdVisible===!!e||(p.value=!!e,p.queued||(e?(p.queued=!0,s=y(function(){d.mdVisible=p.value,p.queued=!1,s=null,d.visibleWatcher||v(d.mdVisible)},d.mdDelay)):P.nextTick(function(){d.mdVisible=!1,d.visibleWatcher||v(!1)})))}function v(e){e?function(){if(!n[0].textContent.trim())throw new Error("Text for the tooltip has not been provided. Please include text within the mdTooltip element.");if(!l){var e=A.element(document.body),t=g.newPanelAnimation().openFrom(u).closeTo(u).withAnimation({open:"md-show",close:"md-hide"}),i={id:c,attachTo:e,contentElement:n,propagateContainerEvents:!0,panelClass:"md-tooltip",animation:t,position:r,zIndex:d.mdZIndex,focusOnOpen:!1,onDomAdded:function(){l.panelEl.addClass(o)}};l=g.create(i)}l.open().then(function(){l.panelEl.attr("role","tooltip")})}():l&&l.close()}t(),i(),n.detach(),h(),function(){if(u[0]&&"MutationObserver"in E){var e=new MutationObserver(function(e){e.some(function(e){return"disabled"===e.attributeName&&u[0].disabled})});e.observe(u[0],{attributes:!0})}function t(){p(!1)}function i(){b=document.activeElement===u[0]}function n(e){"focus"===e.type&&b?b=!1:d.mdVisible||(u.on(D,o),p(!0),"touchstart"===e.type&&u.one("touchend",function(){P.nextTick(function(){$.one("touchend",o)},!1)}))}function o(){((d.hasOwnProperty("mdAutohide")?d.mdAutohide:a.hasOwnProperty("mdAutohide"))||f||$[0].activeElement!==u[0])&&(s&&(y.cancel(s),p.queued=!1,s=null),u.off(D,o),u.triggerHandler("blur"),p(!1)),f=!1}function r(){f=!0}function l(){T.deregister("scroll",t,!0),T.deregister("blur",i),T.deregister("resize",m),u.off(O,n).off(D,o).off("mousedown",r),o(),e&&e.disconnect()}b=!1,T.register("scroll",t,!0),T.register("blur",i),T.register("resize",m),d.$on("$destroy",l),u.on("mousedown",r),u.on(O,n)}(),function(){if(n[0]&&"MutationObserver"in E){var e=new MutationObserver(function(e){e.forEach(function(e){"md-visible"!==e.attributeName||d.visibleWatcher||(d.visibleWatcher=d.$watch("mdVisible",v))})});e.observe(n[0],{attributes:!0}),a.hasOwnProperty("mdVisible")&&(d.visibleWatcher=d.$watch("mdVisible",v))}else d.visibleWatcher=d.$watch("mdVisible",v);d.$watch("mdDirection",h),n.one("$destroy",t),u.one("$destroy",t),d.$on("$destroy",function(){p(!1),l&&l.destroy(),e&&e.disconnect(),n.remove()}),-1<n.text().indexOf(w.startSymbol())&&d.$watch(function(){return n.text().trim()},i);function t(){d.$destroy()}}()}}}t.$inject=["$timeout","$window","$$rAF","$document","$interpolate","$mdUtil","$mdPanel","$$mdTooltipRegistry"],A.module("material.components.tooltip",["material.core","material.components.panel"]).directive("mdTooltip",t).service("$$mdTooltipRegistry",function(){var r={},l=A.element(a);return{register:function(e,t,i){var n=r[e]=r[e]||[];n.length||(i?a.addEventListener(e,d,!0):l.on(e,d));-1===n.indexOf(t)&&n.push(t)},deregister:function(e,t,i){var n=r[e],o=n?n.indexOf(t):-1;-1<o&&(n.splice(o,1),0===n.length&&(i?a.removeEventListener(e,d,!0):l.off(e,d)))}};function d(t){r[t.type]&&r[t.type].forEach(function(e){e.call(this,t)},this)}})}(window,window.angular);
{
"name": "angular-material-truncate",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(t,e,n){"use strict";function r(t){t.addClass("md-truncate")}r.$inject=["$element"],e.module("material.components.truncate",["material.core"]).directive("mdTruncate",function(){return{restrict:"AE",controller:r}})}(window,window.angular);
{
"name": "angular-material-virtualRepeat",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab",
"angular-material-showHide": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7",
"angular-material-showHide": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(t,d,e){"use strict";function i(t){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">'+t[0].innerHTML+"</div></div>"}s.$inject=["$$rAF","$mdUtil","$mdConstant","$parse","$rootScope","$window","$scope","$element","$attrs"],o.$inject=["$scope","$element","$attrs","$browser","$document","$rootScope","$$rAF","$mdUtil"],n.$inject=["$parse"],d.module("material.components.virtualRepeat",["material.core","material.components.showHide"]).directive("mdVirtualRepeatContainer",function(){return{controller:s,template:i,compile:function(t,e){t.addClass("md-virtual-repeat-container").addClass(e.hasOwnProperty("mdOrientHorizontal")?"md-orient-horizontal":"md-orient-vertical")}}}).directive("mdVirtualRepeat",n).directive("mdForceHeight",h);function s(t,i,e,s,n,o,r,h,l){this.$rootScope=n,this.$scope=r,this.$element=h,this.$attrs=l,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=e.ELEMENT_MAX_PIXELS,this.$attrs.mdTopIndex?(this.bindTopIndex=s(this.$attrs.mdTopIndex),this.topIndex=this.bindTopIndex(this.$scope),d.isDefined(this.topIndex)||(this.topIndex=0,this.bindTopIndex.assign(this.$scope,0)),this.$scope.$watch(this.bindTopIndex,d.bind(this,function(t){t!==this.topIndex&&this.scrollToIndex(t)}))):this.topIndex=0,this.scroller=h[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 a=d.bind(this,this.updateSize);t(d.bind(this,function(){a();var t=i.debounce(a,10,null,!1),e=d.element(o);this.size||t(),e.on("resize",t),r.$on("$destroy",function(){e.off("resize",t)}),r.$emit("$md-resize-enable"),r.$on("$md-resize",a)}))}function n(s){return{controller:o,priority:1e3,require:["mdVirtualRepeat","^^mdVirtualRepeatContainer"],restrict:"A",terminal:!0,transclude:"element",compile:function(t,e){var i=e.mdVirtualRepeat.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)\s*$/),o=i[1],r=s(i[2]),h=e.mdExtraName&&s(e.mdExtraName);return function(t,e,i,s,n){s[0].link_(s[1],n,o,r,h)}}}}function o(t,e,i,s,n,o,r,h){this.$scope=t,this.$element=e,this.$attrs=i,this.$browser=s,this.$document=n,this.$mdUtil=h,this.$rootScope=o,this.$$rAF=r,this.onDemand=h.parseAttributeBoolean(i.mdOnDemand),this.browserCheckUrlChange=s.$$checkUrlChange,this.newStartIndex=0,this.newEndIndex=0,this.newVisibleEnd=0,this.startIndex=0,this.endIndex=0,this.itemSize=t.$eval(i.mdItemSize)||null,this.isFirstRender=!0,this.isVirtualRepeatUpdating_=!1,this.itemsLength=0,this.unwatchItemSize_=d.noop,this.blocks={},this.pooledBlocks=[],t.$on("$destroy",d.bind(this,this.cleanupBlocks_))}function r(t){if(!d.isFunction(t.getItemAtIndex)||!d.isFunction(t.getLength))throw Error("When md-on-demand is enabled, the Object passed to md-virtual-repeat must implement functions getItemAtIndex() and getLength().");this.model=t}function h(t){return{restrict:"A",link:function(t,e,i){var s=t.$eval(i.mdForceHeight)||null;s&&e&&(e[0].style.height=s)}}}s.prototype.register=function(t){this.repeater=t,d.element(this.scroller).on("scroll wheel touchmove touchend",d.bind(this,this.handleScroll_))},s.prototype.isHorizontal=function(){return this.horizontal},s.prototype.getSize=function(){return this.size},s.prototype.setSize_=function(t){var e=this.getDimensionName_();this.size=t,this.$element[0].style[e]=t+"px"},s.prototype.unsetSize_=function(){this.$element[0].style[this.getDimensionName_()]=this.oldElementSize,this.oldElementSize=null},s.prototype.updateSize=function(){if(!this.originalSize){var t=this.isHorizontal()?this.$element[0].clientWidth:this.$element[0].clientHeight;t&&(this.size=t),this.handleScroll_(),this.repeater&&this.repeater.containerUpdated()}},s.prototype.getScrollSize=function(){return this.scrollSize},s.prototype.getDimensionName_=function(){return this.isHorizontal()?"width":"height"},s.prototype.sizeScroller_=function(t){var e=this.getDimensionName_(),i=this.isHorizontal()?"height":"width";if(this.sizer.innerHTML="",t<this.maxElementPixels)this.sizer.style[e]=t+"px";else{this.sizer.style[e]="auto",this.sizer.style[i]="auto";var s=Math.floor(t/this.maxElementPixels),n=document.createElement("div");n.style[e]=this.maxElementPixels+"px",n.style[i]="1px";for(var o=0;o<s;o++)this.sizer.appendChild(n.cloneNode(!1));n.style[e]=t-s*this.maxElementPixels+"px",this.sizer.appendChild(n)}},s.prototype.autoShrink_=function(t){var e=Math.max(t,this.autoShrinkMin*this.repeater.getItemSize());if(this.autoShrink&&e!==this.size){null===this.oldElementSize&&(this.oldElementSize=this.$element[0].style[this.getDimensionName_()]);var i=this.originalSize||this.size;if(!i||e<i)this.originalSize||(this.originalSize=this.size),this.setSize_(e);else if(null!==this.originalSize){this.unsetSize_();var s=this.originalSize;this.originalSize=null,s||this.updateSize(),this.setSize_(s||this.size)}this.repeater.containerUpdated()}},s.prototype.setScrollSize=function(t){var e=t+this.offsetSize;this.scrollSize!==e&&(this.sizeScroller_(e),this.autoShrink_(e),this.scrollSize=e)},s.prototype.getScrollOffset=function(){return this.scrollOffset},s.prototype.scrollTo=function(t){this.scroller[this.isHorizontal()?"scrollLeft":"scrollTop"]=t,this.handleScroll_()},s.prototype.scrollToIndex=function(t){var e=this.repeater.getItemSize(),i=this.repeater.itemsLength;i<t&&(t=i-1),this.scrollTo(e*t)},s.prototype.resetScroll=function(){this.scrollTo(0)},s.prototype.handleScroll_=function(){var t="rtl"!==document.dir&&"rtl"!==document.body.dir;t||this.maxSize||(this.scroller.scrollLeft=this.scrollSize,this.maxSize=this.scroller.scrollLeft);var e=this.isHorizontal()?t?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 i=this.repeater.getItemSize();if(i){var s=Math.max(0,Math.floor(e/i)-3),n=(this.isHorizontal()?"translateX(":"translateY(")+(!this.isHorizontal()||t?s*i:-s*i)+"px)";if(this.scrollOffset=e,this.offsetter.style.webkitTransform=n,this.offsetter.style.transform=n,this.bindTopIndex){var o=Math.floor(e/i);o!==this.topIndex&&o<this.repeater.getItemCount()&&(this.topIndex=o,this.bindTopIndex.assign(this.$scope,o),this.$rootScope.$$phase||this.$scope.$digest())}this.repeater.containerUpdated()}}},o.prototype.link_=function(t,e,i,s,n){this.container=t,this.transclude=e,this.repeatName=i,this.rawRepeatListExpression=s,this.extraName=n,this.sized=!1,this.repeatListExpression=d.bind(this,this.repeatListExpression_),this.container.register(this)},o.prototype.cleanupBlocks_=function(){d.forEach(this.pooledBlocks,function(t){t.element.remove()})},o.prototype.readItemSize_=function(){if(!this.itemSize){this.items=this.repeatListExpression(this.$scope),this.parentNode=this.$element[0].parentNode;var t=this.getBlock_(0);t.element[0].parentNode||this.parentNode.appendChild(t.element[0]),this.itemSize=t.element[0][this.container.isHorizontal()?"offsetWidth":"offsetHeight"]||null,this.blocks[0]=t,this.poolBlock_(0),this.itemSize&&this.containerUpdated()}},o.prototype.repeatListExpression_=function(t){var e=this.rawRepeatListExpression(t);if(this.onDemand&&e){var i=new r(e);return i.$$includeIndexes(this.newStartIndex,this.newVisibleEnd),i}return e},o.prototype.containerUpdated=function(){if(!this.itemSize)return this.unwatchItemSize_&&this.unwatchItemSize_!==d.noop&&this.unwatchItemSize_(),this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,d.bind(this,function(t){t&&t.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,d.bind(this,function(t,e){this.isVirtualRepeatUpdating_||this.virtualRepeatUpdate_(t,e)}))),this.updateIndexes_(),(this.newStartIndex!==this.startIndex||this.newEndIndex!==this.endIndex||this.container.getScrollOffset()>this.container.getScrollSize())&&(this.items instanceof r&&this.items.$$includeIndexes(this.newStartIndex,this.newEndIndex),this.virtualRepeatUpdate_(this.items,this.items))},o.prototype.getItemSize=function(){return this.itemSize},o.prototype.getItemCount=function(){return this.itemsLength},o.prototype.virtualRepeatUpdate_=function(t,e){this.isVirtualRepeatUpdating_=!0;var i=t&&t.length||0,s=!1;if(this.items&&i<this.items.length&&0!==this.container.getScrollOffset()){this.items=t;var n=this.container.getScrollOffset();this.container.resetScroll(),this.container.scrollTo(n)}i!==this.itemsLength&&(s=!0,this.itemsLength=i),((this.items=t)!==e||s)&&this.updateIndexes_(),this.parentNode=this.$element[0].parentNode,s&&this.container.setScrollSize(i*this.itemSize),Object.keys(this.blocks).forEach(function(t){var e=parseInt(t,10);(e<this.newStartIndex||e>=this.newEndIndex)&&this.poolBlock_(e)},this),this.$browser.$$checkUrlChange=d.noop;var o,r,h=[],l=[];for(o=this.newStartIndex;o<this.newEndIndex&&null==this.blocks[o];o++)r=this.getBlock_(o),this.updateBlock_(r,o),h.push(r);for(;null!=this.blocks[o];o++)this.updateBlock_(this.blocks[o],o);for(var a=o-1;o<this.newEndIndex;o++)r=this.getBlock_(o),this.updateBlock_(r,o),l.push(r);if(h.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(h),this.$element[0].nextSibling),l.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(l),this.blocks[a]&&this.blocks[a].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},o.prototype.getBlock_=function(i){return this.pooledBlocks.length?this.pooledBlocks.pop():(this.transclude(d.bind(this,function(t,e){s={element:t,new:!0,scope:e},this.updateScope_(e,i),this.parentNode.appendChild(t[0])})),s);var s},o.prototype.updateBlock_=function(t,e){((this.blocks[e]=t).new||t.scope.$index!==e||t.scope[this.repeatName]!==this.items[e])&&(t.new=!1,this.updateScope_(t.scope,e),this.$rootScope.$$phase||t.scope.$digest())},o.prototype.updateScope_=function(t,e){t.$index=e,t[this.repeatName]=this.items&&this.items[e],this.extraName&&(t[this.extraName(this.$scope)]=this.items[e])},o.prototype.poolBlock_=function(t){this.pooledBlocks.push(this.blocks[t]),this.parentNode.removeChild(this.blocks[t].element[0]),delete this.blocks[t]},o.prototype.domFragmentFromBlocks_=function(t){var e=this.$document[0].createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element[0])}),e},o.prototype.updateIndexes_=function(){var t=this.items?this.items.length:0,e=Math.ceil(this.container.getSize()/this.itemSize);this.newStartIndex=Math.max(0,Math.min(t-e,Math.floor(this.container.getScrollOffset()/this.itemSize))),this.newVisibleEnd=this.newStartIndex+e+3,this.newEndIndex=Math.min(t,this.newVisibleEnd),this.newStartIndex=Math.max(0,this.newStartIndex-3)},r.prototype.$$includeIndexes=function(t,e){for(var i=t;i<e;i++)this.hasOwnProperty(i)||(this[i]=this.model.getItemAtIndex(i));this.length=this.model.getLength()},h.$inject=["$mdUtil"]}(window,window.angular);
{
"name": "angular-material-whiteframe",
"version": "1.1.15-master-2dd34ab",
"version": "1.1.16-master-db3cdf7",
"dependencies": {
"angular-material-core": "1.1.15-master-2dd34ab"
"angular-material-core": "1.1.16-master-db3cdf7"
}
}

@@ -5,3 +5,3 @@ /*!

* @license MIT
* v1.1.16
* v1.1.17
*/

@@ -8,0 +8,0 @@ (function( window, angular, undefined ){

@@ -5,4 +5,4 @@ /*!

* @license MIT
* v1.1.15-master-2dd34ab
* v1.1.16-master-db3cdf7
*/
!function(e,t,a){"use strict";function i(r){return{link:function(e,a,i){var n="";i.$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",a[0]),e=4);var t=-1==e?"":"md-whiteframe-"+e+"dp";i.$updateClass(t,n),n=t})}}}i.$inject=["$log"],t.module("material.components.whiteframe",["material.core"]).directive("mdWhiteframe",i)}(window,window.angular);
{
"name": "angular-material",
"version": "1.1.16",
"version": "1.1.17",
"main": "index",

@@ -5,0 +5,0 @@ "format": "cjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc