text: /*!
   * AngularJS Material Design
   * https://github.com/angular/material
   * @license MIT
   * v1.2.1-master-c609385
   */
  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 u=.5,p=80;return e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:t});function t(n,i,c,r,l,a,s,d){var m;return{themable:!0,onShow:function(e,t,o){if((t=c.extractElementByName(t,"md-bottom-sheet")).attr("tabindex","-1"),t.hasClass("ng-cloak")){d.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=s.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(-p,t/2)),n.css(i.CSS.TRANSFORM,"translate3d(0,"+(p+t)+"px,0)")}function a(e){if(0<e.pointer.distanceY&&(20<e.pointer.distanceY||Math.abs(e.pointer.velocityY)>u)){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||((m=c.createBackdrop(e,"md-bottom-sheet-backdrop md-opaque"))[0].tabIndex=-1,o.clickOutsideToClose&&m.on("click",function(){c.nextTick(l.cancel,!0)}),r.inherit(m,o.parent),n.enter(m,o.parent,null));r.inherit(t,o.parent),o.disableParentScroll&&(o.restoreScroll=c.disableScrollAround(t,o.parent));return n.enter(t,o.parent,m).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)))||m;o.escapeToClose&&(o.rootElementKeyupCallback=function(e){e.keyCode===i.KEY_CODE.ESCAPE&&c.nextTick(l.cancel,!0)},a.on("keyup",o.rootElementKeyupCallback),e&&e.focus())})},onRemove:function(e,t,o){o.disableBackdrop||n.leave(m);return n.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");