text: /*!
   * Angular Material Design
   * https://github.com/angular/material
   * @license MIT
   * v1.1.0-rc4-master-c26842a
   */
  function MdTooltipDirective(t,e,o,i,n,r,a,l,c){function u(a,u,f){function h(){a.delay=a.delay||s}function m(){var t="center top";switch(a.direction){case"left":t="right center";break;case"right":t="left center";break;case"top":t="center bottom";break;case"bottom":t="center top"}W.css("transform-origin",t)}function v(t){t?y():E()}function p(){if(u[0]&&"MutationObserver"in e){var t=new MutationObserver(function(t){t.forEach(function(t){"md-visible"===t.attributeName&&(a.visibleWatcher||(a.visibleWatcher=a.$watch("visible",v))),"md-direction"===t.attributeName&&M(a.direction)})});t.observe(u[0],{attributes:!0}),f.hasOwnProperty("mdVisible")&&(a.visibleWatcher=a.$watch("visible",v))}else a.visibleWatcher=a.$watch("visible",v),a.$watch("direction",M);var o=function(){a.$destroy()};u.one("$destroy",o),q.one("$destroy",o),a.$on("$destroy",function(){$(!1),u.remove(),t&&t.disconnect()})}function b(){q.attr("aria-label")||q.text().trim()||q.attr("aria-label",u.text().trim())}function g(){u.detach(),u.attr("role","tooltip")}function w(){function o(){$(!1)}var r=!1;if(q[0]&&"MutationObserver"in e){var l=new MutationObserver(function(t){t.some(function(t){return"disabled"===t.attributeName&&q[0].disabled})&&n.nextTick(function(){$(!1)})});l.observe(q[0],{attributes:!0})}var c=function(){u=document.activeElement===q[0]},u=!1;angular.element(e).on("blur",c).on("resize",k),document.addEventListener("scroll",o,!0),a.$on("$destroy",function(){angular.element(e).off("blur",c).off("resize",k),q.off("focus mouseenter touchstart",s).off("blur mouseleave touchend touchcancel",d).off("mousedown",h),d(),document.removeEventListener("scroll",o,!0),l&&l.disconnect()});var s=function(t){return"focus"===t.type&&u?void(u=!1):(q.on("blur mouseleave touchend touchcancel",d),void $(!0))},d=function(){var e=a.hasOwnProperty("autohide")?a.autohide:f.hasOwnProperty("mdAutohide");(e||r||i[0].activeElement!==q[0])&&(T&&(t.cancel(T),$.queued=!1,T=null),q.off("blur mouseleave touchend touchcancel",d),q.triggerHandler("blur"),$(!1)),r=!1},h=function(){r=!0};q.on("mousedown",h),q.on("focus mouseenter touchstart",s)}function $(e){$.queued&&$.value===!!e||!$.queued&&a.visible===!!e||($.value=!!e,$.queued||(e?($.queued=!0,T=t(function(){a.visible=$.value,$.queued=!1,T=null,a.visibleWatcher||v(a.visible)},a.delay)):n.nextTick(function(){a.visible=!1,a.visibleWatcher||v(!1)})))}function y(){if(u[0].textContent.trim()){if(u.css({top:0,left:0}),O.append(u),n.hasComputedStyle(u,"display","none"))return a.visible=!1,void u.detach();M(),angular.forEach([u,W],function(t){l.addClass(t,"_md-show")})}}function E(){var t=[];angular.forEach([u,W],function(e){e.parent()&&e.hasClass("_md-show")&&t.push(l.removeClass(e,"_md-show"))}),c.all(t).then(function(){a.visible||u.detach()})}function M(){a.visible&&(m(),x())}function x(){function t(t){var e={left:t.left,top:t.top};return e.left=Math.min(e.left,O.prop("scrollWidth")-o.width-d),e.left=Math.max(e.left,d),e.top=Math.min(e.top,O.prop("scrollHeight")-o.height-d),e.top=Math.max(e.top,d),e}function e(t){return"left"===t?{left:i.left-o.width-d,top:i.top+i.height/2-o.height/2}:"right"===t?{left:i.left+i.width+d,top:i.top+i.height/2-o.height/2}:"top"===t?{left:i.left+i.width/2-o.width/2,top:i.top-o.height-d}:{left:i.left+i.width/2-o.width/2,top:i.top+i.height+d}}var o=n.offsetRect(u,O),i=n.offsetRect(q,O),r=e(a.direction),l=u.prop("offsetParent");a.direction?r=t(r):l&&r.top>l.scrollHeight-o.height-d&&(r=t(e("top"))),u.css({left:r.left+"px",top:r.top+"px"})}r(u);var q=n.getParentWithPointerEvents(u),W=angular.element(u[0].getElementsByClassName("_md-content")[0]),O=angular.element(document.body),T=null,k=o.throttle(function(){M()});l.pin&&l.pin(u,q),h(),g(),w(),m(),p(),b()}var s=0,d=8;return{restrict:"E",transclude:!0,priority:210,template:'<div class="_md-content _md" ng-transclude></div>',scope:{delay:"=?mdDelay",visible:"=?mdVisible",autohide:"=?mdAutohide",direction:"@?mdDirection"},link:u}}goog.provide("ng.material.components.tooltip"),goog.require("ng.material.core"),angular.module("material.components.tooltip",["material.core"]).directive("mdTooltip",MdTooltipDirective),MdTooltipDirective.$inject=["$timeout","$window","$$rAF","$document","$mdUtil","$mdTheming","$rootElement","$animate","$q"],ng.material.components.tooltip=angular.module("material.components.tooltip");