text: /*!
   * AngularJS Material Design
   * https://github.com/angular/material
   * @license MIT
   * v1.1.19-master-b5de054
   */
  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,e,n,o,i,f,a,l,r){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;s.documentElement=angular.element(document.documentElement),c="hidden",u=function(e,t){!e&&t?(R(),Q(!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)),s.documentElement.on("click",O))):e&&!t&&(s.documentElement.off("click",O),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||j())return;e.stopPropagation(),e.preventDefault(),s.index=Math.min(s.index+1,s.matches.length-1),Z(),Q(!1,E.Selected);break;case t.KEY_CODE.UP_ARROW:if(s.loading||j())return;e.stopPropagation(),e.preventDefault(),s.index=s.index<0?s.matches.length-1:Math.max(0,s.index-1),Z(),Q(!1,E.Selected);break;case t.KEY_CODE.TAB:if(H(),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(j())return;e.stopImmediatePropagation(),e.preventDefault(),Y(s.index);break;case t.KEY_CODE.ESCAPE:if(e.preventDefault(),!(G("blur")||!s.hidden||s.loading||G("clear")&&p.searchText))return;e.stopPropagation(),X(),p.searchText&&G("clear")&&J(),s.hidden=!0,G("blur")&&function(e){e&&(A=v=!1);C.input.blur()}(!0)}},s.blur=function(e){A=!1,v||(s.hidden=U(),ie("ngBlur",{$event:e}))},s.focus=function(e){A=!0,V()&&K()&&ne();s.hidden=U(),ie("ngFocus",{$event:e})},s.clear=function(e){e&&e.stopPropagation();X(),J()},s.select=Y,s.listEnter=function(){v=!0},s.listLeave=H,s.mouseUp=function(){C.input.focus()},s.getCurrentDisplayValue=W,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=te,s.loadingIsVisible=function(){return s.loading&&!j()},s.positionDropdown=R;var y,E={Count:1,Selected:2};return g.initOptionalProperties(p,f,{searchText:"",selectedItem:null,clearButton:!1,disableVirtualRepeat:!1}),e(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(k,y):k),p.$watch("selectedItem",_),angular.element(n).on("resize",D),void p.$on("$destroy",S),void g.nextTick(function(){!function(){var 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&&(e(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"},"top"===d?(e.top="auto",e.bottom=a+"px",e.maxHeight=Math.min(t,m)+"px"):(s=i.bottom-n.bottom-MENU_PADDING+g.getViewportTop(),e.top=l-u+"px",e.bottom="auto",e.maxHeight=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(n).off("resize",D),C){angular.forEach(["ul","scroller","scrollContainer","input"],function(e){C.$[e].remove()})}}function O(e){s.hidden=!0}function H(){A||s.hidden||C.input.focus(),v=!1,s.hidden=U()}function _(t,n){L(),t?B(t).then(function(e){p.searchText=e,function(t,n){b.forEach(function(e){e(t,n)})}(t,n)}):n&&p.searchText&&B(n).then(function(e){angular.isString(p.searchText)&&e.toString().toLowerCase()===p.searchText.toLowerCase()&&(p.searchText="")}),t!==n&&angular.isFunction(p.itemChange)&&p.itemChange(q(p.selectedItem))}function k(t,n){s.index=p.autoselect?0:-1,t!==n&&(L(),B(p.selectedItem).then(function(e){t!==e&&(p.selectedItem=null,t!==n&&angular.isFunction(p.textChange)&&p.textChange(),K()?ne():(F(!(s.matches=[])),Q(!0,E.Count)))}))}function P(){return angular.isNumber(p.minLength)?p.minLength:1}function B(e){return a.when(((t=e)&&p.itemText?p.itemText(q(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 q(e){if(e){var t={};return s.itemName&&(t[s.itemName]=e),t}}function F(e){s.loading!==e&&(s.loading=e),s.hidden=U()}function U(){return!function(){{if(s.isReadonly)return!1;if(!V())return!1}return K()&&z()||te()}()}function V(){return!(s.loading&&!z())&&(!j()&&!!A)}function G(e){return!p.escapeOptions||-1!==p.escapeOptions.toLowerCase().indexOf(e)}function z(){return!!s.matches.length}function j(){return!!s.scope.selectedItem}function W(){return B(s.matches[s.index])}function K(){return(p.searchText||"").length>=P()}function Y(e){g.nextTick(function(){B(s.matches[e]).then(function(e){var t=C.$.input.controller("ngModel");r.announce(e+" "+s.selectedMessage,"assertive"),t.$setViewValue(e),t.$render()}).finally(function(){p.selectedItem=s.matches[e],F(!1)})},!1)}function X(){s.index=0,s.matches=[]}function J(){F(!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 Q(e,t){var n=e?"polite":"assertive",o=[];t&E.Selected&&-1!==s.index&&o.push(W()),t&E.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 Z(){C.li[0]&&(I===MODE_STANDARD?function(){var e=C.li[s.index]||C.li[0],t=C.scrollContainer.offsetHeight,n=e&&e.offsetTop||0,o=n+e.clientHeight,i=C.scrollContainer.scrollTop;n<i?ee(n):i+t<o&&ee(o-t)}():function(){var e=C.li[0].offsetHeight,t=e*s.index,n=t+e,o=C.scroller.clientHeight,i=C.scroller.scrollTop;t<i?ee(t):i+o<n&&ee(n-o)}())}function ee(e){I===MODE_STANDARD?C.scrollContainer.scrollTop=e:C.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(e)}function te(){var e=(s.scope.searchText||"").length;return s.hasNotFound&&!z()&&(!s.loading||0!==M)&&e>=P()&&(A||v)&&!j()}function ne(){var e=p.searchText||"",t=e.toLowerCase();!p.noCache&&x[t]?oe(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||"")&&oe(e)}o?l(e):i&&function(e){if(!e)return;e=a.when(e),M++,F(!0),g.nextTick(function(){e.then(l).finally(function(){0==--M&&F(!1)})},!0,p)}(e)}(e),s.hidden=U()}function oe(e){s.matches=e,s.hidden=U(),s.loading&&F(!1),p.selectOnMatch&&function(){var n=p.searchText,e=s.matches,t=e[0];1===e.length&&B(t).then(function(e){var t=n===e;p.matchInsensitive&&!t&&(t=n.toLowerCase()===e.toLowerCase()),t&&Y(0)})}(),R(),Q(!0,E.Count)}function ie(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),t.on("click",function(e){e.stopPropagation()})}},template:function(n,e){var t,o,i=(t=n.find("md-not-found").detach(),(o=t.length?t.html():"")?'<li ng-if="$mdAutocompleteCtrl.notFoundVisible()"                         md-autocomplete-parent-scope>'+o+"</li>":""),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");