text: /*
   * angular-ui-bootstrap
   * http://angular-ui.github.io/bootstrap/
  
   * Version: 1.3.2 - 2016-04-14
   * License: MIT
   */angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.modal","ui.bootstrap.stackedMap","ui.bootstrap.position","ui.bootstrap.tooltip"]),angular.module("ui.bootstrap.tpls",["uib/template/modal/backdrop.html","uib/template/modal/window.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html"]),angular.module("ui.bootstrap.modal",["ui.bootstrap.stackedMap","ui.bootstrap.position"]).factory("$$multiMap",function(){return{createNew:function(){var t={};return{entries:function(){return Object.keys(t).map(function(o){return{key:o,value:t[o]}})},get:function(o){return t[o]},hasKey:function(o){return!!t[o]},keys:function(){return Object.keys(t)},put:function(o,e){t[o]||(t[o]=[]),t[o].push(e)},remove:function(o,e){var i=t[o];if(i){var n=i.indexOf(e);-1!==n&&i.splice(n,1),i.length||delete t[o]}}}}}}).provider("$uibResolve",function(){var t=this;this.resolver=null,this.setResolver=function(t){this.resolver=t},this.$get=["$injector","$q",function(o,e){var i=t.resolver?o.get(t.resolver):null;return{resolve:function(t,n,r,l){if(i)return i.resolve(t,n,r,l);var a=[];return angular.forEach(t,function(t){a.push(angular.isFunction(t)||angular.isArray(t)?e.resolve(o.invoke(t)):angular.isString(t)?e.resolve(o.get(t)):e.resolve(t))}),e.all(a).then(function(o){var e={},i=0;return angular.forEach(t,function(t,n){e[n]=o[i++]}),e})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(t,o,e){function i(o,i,n){n.modalInClass&&(t.addClass(i,n.modalInClass),o.$on(e.NOW_CLOSING_EVENT,function(e,r){var l=r();o.modalOptions.animation?t.removeClass(i,n.modalInClass).then(l):l()}))}return{replace:!0,templateUrl:"uib/template/modal/backdrop.html",compile:function(t,o){return t.addClass(o.backdropClass),i}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(t,o,e,i){return{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(t,o){return o.templateUrl||"uib/template/modal/window.html"},link:function(n,r,l){r.addClass(l.windowClass||""),r.addClass(l.windowTopClass||""),n.size=l.size,n.close=function(o){var e=t.getTop();e&&e.value.backdrop&&"static"!==e.value.backdrop&&o.target===o.currentTarget&&(o.preventDefault(),o.stopPropagation(),t.dismiss(e.key,"backdrop click"))},r.on("click",n.close),n.$isRendered=!0;var a=o.defer();l.$observe("modalRender",function(t){"true"===t&&a.resolve()}),a.promise.then(function(){var a=null;l.modalInClass&&(a=e(r,{addClass:l.modalInClass}).start(),n.$on(t.NOW_CLOSING_EVENT,function(t,o){var i=o();e(r,{removeClass:l.modalInClass}).start().then(i)})),o.when(a).then(function(){var o=t.getTop();if(o&&t.modalRendered(o.key),!i[0].activeElement||!r[0].contains(i[0].activeElement)){var e=r[0].querySelector("[autofocus]");e?e.focus():r[0].focus()}})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(t,o){o.modalAnimation&&t.addClass(o.uibModalAnimationClass)}}}).directive("uibModalTransclude",function(){return{link:function(t,o,e,i,n){n(t.$parent,function(t){o.empty(),o.append(t)})}}}).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(t,o,e,i,n,r,l,a,p){function s(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function u(){for(var t=-1,o=C.keys(),e=0;e<o.length;e++)C.get(o[e]).value.backdrop&&(t=e);return t>-1&&T>t&&(t=T),t}function c(t,o){var e=C.get(t).value,i=e.appendTo;C.remove(t),E=C.top(),E&&(T=parseInt(E.value.modalDomEl.attr("index"),10)),f(e.modalDomEl,e.modalScope,function(){var o=e.openedClass||$;y.remove(o,t);var n=y.hasKey(o);i.toggleClass(o,n),!n&&w&&w.heightOverflow&&w.scrollbarWidth&&(i.css(w.originalRight?{paddingRight:w.originalRight+"px"}:{paddingRight:""}),w=null),d(!0)},e.closedDeferred),m(),o&&o.focus?o.focus():i.focus&&i.focus()}function d(t){var o;C.length()>0&&(o=C.top().value,o.modalDomEl.toggleClass(o.windowTopClass||"",t))}function m(){if(b&&-1===u()){var t=g;f(b,g,function(){t=null}),b=void 0,g=void 0}}function f(o,e,i,n){function l(){l.done||(l.done=!0,t.leave(o).then(function(){o.remove(),n&&n.resolve()}),e.$destroy(),i&&i())}var a,p=null,s=function(){return a||(a=r.defer(),p=a.promise),function(){a.resolve()}};return e.$broadcast(k.NOW_CLOSING_EVENT,s),r.when(p).then(l)}function h(t){if(t.isDefaultPrevented())return t;var o=C.top();if(o)switch(t.which){case 27:o.value.keyboard&&(t.preventDefault(),n.$apply(function(){k.dismiss(o.key,"escape key press")}));break;case 9:var e=k.loadFocusElementList(o),i=!1;t.shiftKey?(k.isFocusInFirstItem(t,e)||k.isModalFocused(t,o))&&(i=k.focusLastFocusableElement(e)):k.isFocusInLastItem(t,e)&&(i=k.focusFirstFocusableElement(e)),i&&(t.preventDefault(),t.stopPropagation())}}function v(t,o,e){return!t.value.modalScope.$broadcast("modal.closing",o,e).defaultPrevented}var b,g,w,$="modal-open",C=a.createNew(),y=l.createNew(),k={NOW_CLOSING_EVENT:"modal.stack.now-closing"},T=0,E=null,S="a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]";return n.$watch(u,function(t){g&&(g.index=t)}),e.on("keydown",h),n.$on("$destroy",function(){e.off("keydown",h)}),k.open=function(o,r){var l=e[0].activeElement,a=r.openedClass||$;d(!1),E=C.top(),C.add(o,{deferred:r.deferred,renderDeferred:r.renderDeferred,closedDeferred:r.closedDeferred,modalScope:r.scope,backdrop:r.backdrop,keyboard:r.keyboard,openedClass:r.openedClass,windowTopClass:r.windowTopClass,animation:r.animation,appendTo:r.appendTo}),y.put(a,o);var s=r.appendTo,c=u();if(!s.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");c>=0&&!b&&(g=n.$new(!0),g.modalOptions=r,g.index=c,b=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>'),b.attr("backdrop-class",r.backdropClass),r.animation&&b.attr("modal-animation","true"),i(b)(g),t.enter(b,s),w=p.scrollbarPadding(s),w.heightOverflow&&w.scrollbarWidth&&s.css({paddingRight:w.right+"px"})),T=E?parseInt(E.value.modalDomEl.attr("index"),10)+1:0;var m=angular.element('<div uib-modal-window="modal-window"></div>');m.attr({"template-url":r.windowTemplateUrl,"window-class":r.windowClass,"window-top-class":r.windowTopClass,size:r.size,index:T,animate:"animate"}).html(r.content),r.animation&&m.attr("modal-animation","true"),s.addClass(a),t.enter(i(m)(r.scope),s),C.top().value.modalDomEl=m,C.top().value.modalOpener=l},k.close=function(t,o){var e=C.get(t);return e&&v(e,o,!0)?(e.value.modalScope.$$uibDestructionScheduled=!0,e.value.deferred.resolve(o),c(t,e.value.modalOpener),!0):!e},k.dismiss=function(t,o){var e=C.get(t);return e&&v(e,o,!1)?(e.value.modalScope.$$uibDestructionScheduled=!0,e.value.deferred.reject(o),c(t,e.value.modalOpener),!0):!e},k.dismissAll=function(t){for(var o=this.getTop();o&&this.dismiss(o.key,t);)o=this.getTop()},k.getTop=function(){return C.top()},k.modalRendered=function(t){var o=C.get(t);o&&o.value.renderDeferred.resolve()},k.focusFirstFocusableElement=function(t){return t.length>0?(t[0].focus(),!0):!1},k.focusLastFocusableElement=function(t){return t.length>0?(t[t.length-1].focus(),!0):!1},k.isModalFocused=function(t,o){if(t&&o){var e=o.value.modalDomEl;if(e&&e.length)return(t.target||t.srcElement)===e[0]}return!1},k.isFocusInFirstItem=function(t,o){return o.length>0?(t.target||t.srcElement)===o[0]:!1},k.isFocusInLastItem=function(t,o){return o.length>0?(t.target||t.srcElement)===o[o.length-1]:!1},k.loadFocusElementList=function(t){if(t){var o=t.value.modalDomEl;if(o&&o.length){var e=o[0].querySelectorAll(S);return e?Array.prototype.filter.call(e,function(t){return s(t)}):e}}},k}]).provider("$uibModal",function(){var t={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(o,e,i,n,r,l,a){function p(t){return t.template?e.when(t.template):n(angular.isFunction(t.templateUrl)?t.templateUrl():t.templateUrl)}var s={},u=null;return s.getPromiseChain=function(){return u},s.open=function(n){function s(){return b}var c=e.defer(),d=e.defer(),m=e.defer(),f=e.defer(),h={result:c.promise,opened:d.promise,closed:m.promise,rendered:f.promise,close:function(t){return a.close(h,t)},dismiss:function(t){return a.dismiss(h,t)}};if(n=angular.extend({},t.options,n),n.resolve=n.resolve||{},n.appendTo=n.appendTo||i.find("body").eq(0),!n.template&&!n.templateUrl)throw new Error("One of template or templateUrl options is required.");var v,b=e.all([p(n),l.resolve(n.resolve,{},null,null)]);return v=u=e.all([u]).then(s,s).then(function(t){var e=n.scope||o,i=e.$new();i.$close=h.close,i.$dismiss=h.dismiss,i.$on("$destroy",function(){i.$$uibDestructionScheduled||i.$dismiss("$uibUnscheduledDestruction")});var l,p,s={};n.controller&&(s.$scope=i,s.$uibModalInstance=h,angular.forEach(t[1],function(t,o){s[o]=t}),p=r(n.controller,s,!0),n.controllerAs?(l=p.instance,n.bindToController&&(l.$close=i.$close,l.$dismiss=i.$dismiss,angular.extend(l,e)),l=p(),i[n.controllerAs]=l):l=p(),angular.isFunction(l.$onInit)&&l.$onInit()),a.open(h,{scope:i,deferred:c,renderDeferred:f,closedDeferred:m,content:t[0],animation:n.animation,backdrop:n.backdrop,keyboard:n.keyboard,backdropClass:n.backdropClass,windowTopClass:n.windowTopClass,windowClass:n.windowClass,windowTemplateUrl:n.windowTemplateUrl,size:n.size,openedClass:n.openedClass,appendTo:n.appendTo}),d.resolve(!0)},function(t){d.reject(t),c.reject(t)})["finally"](function(){u===v&&(u=null)}),h},s}]};return t}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var t=[];return{add:function(o,e){t.push({key:o,value:e})},get:function(o){for(var e=0;e<t.length;e++)if(o===t[e].key)return t[e]},keys:function(){for(var o=[],e=0;e<t.length;e++)o.push(t[e].key);return o},top:function(){return t[t.length-1]},remove:function(o){for(var e=-1,i=0;i<t.length;i++)if(o===t[i].key){e=i;break}return t.splice(e,1)[0]},removeTop:function(){return t.splice(t.length-1,1)[0]},length:function(){return t.length}}}}}),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(t,o){var e,i,n={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},r={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},l=/(HTML|BODY)/;return{getRawNode:function(t){return t.nodeName?t:t[0]||t},parseStyle:function(t){return t=parseFloat(t),isFinite(t)?t:0},offsetParent:function(e){function i(t){return"static"===(o.getComputedStyle(t).position||"static")}e=this.getRawNode(e);for(var n=e.offsetParent||t[0].documentElement;n&&n!==t[0].documentElement&&i(n);)n=n.offsetParent;return n||t[0].documentElement},scrollbarWidth:function(n){if(n){if(angular.isUndefined(i)){var r=t.find("body");r.addClass("uib-position-body-scrollbar-measure"),i=o.innerWidth-r[0].clientWidth,i=isFinite(i)?i:0,r.removeClass("uib-position-body-scrollbar-measure")}return i}if(angular.isUndefined(e)){var l=angular.element('<div class="uib-position-scrollbar-measure"></div>');t.find("body").append(l),e=l[0].offsetWidth-l[0].clientWidth,e=isFinite(e)?e:0,l.remove()}return e},scrollbarPadding:function(t){t=this.getRawNode(t);var e=o.getComputedStyle(t),i=this.parseStyle(e.paddingRight),n=this.parseStyle(e.paddingBottom),r=this.scrollParent(t,!1,!0),a=this.scrollbarWidth(r,l.test(r.tagName));return{scrollbarWidth:a,widthOverflow:r.scrollWidth>r.clientWidth,right:i+a,originalRight:i,heightOverflow:r.scrollHeight>r.clientHeight,bottom:n+a,originalBottom:n}},isScrollable:function(t,e){t=this.getRawNode(t);var i=e?n.hidden:n.normal,r=o.getComputedStyle(t);return i.test(r.overflow+r.overflowY+r.overflowX)},scrollParent:function(e,i,r){e=this.getRawNode(e);var l=i?n.hidden:n.normal,a=t[0].documentElement,p=o.getComputedStyle(e);if(r&&l.test(p.overflow+p.overflowY+p.overflowX))return e;var s="absolute"===p.position,u=e.parentElement||a;if(u===a||"fixed"===p.position)return a;for(;u.parentElement&&u!==a;){var c=o.getComputedStyle(u);if(s&&"static"!==c.position&&(s=!1),!s&&l.test(c.overflow+c.overflowY+c.overflowX))break;u=u.parentElement}return u},position:function(e,i){e=this.getRawNode(e);var n=this.offset(e);if(i){var r=o.getComputedStyle(e);n.top-=this.parseStyle(r.marginTop),n.left-=this.parseStyle(r.marginLeft)}var l=this.offsetParent(e),a={top:0,left:0};return l!==t[0].documentElement&&(a=this.offset(l),a.top+=l.clientTop-l.scrollTop,a.left+=l.clientLeft-l.scrollLeft),{width:Math.round(angular.isNumber(n.width)?n.width:e.offsetWidth),height:Math.round(angular.isNumber(n.height)?n.height:e.offsetHeight),top:Math.round(n.top-a.top),left:Math.round(n.left-a.left)}},offset:function(e){e=this.getRawNode(e);var i=e.getBoundingClientRect();return{width:Math.round(angular.isNumber(i.width)?i.width:e.offsetWidth),height:Math.round(angular.isNumber(i.height)?i.height:e.offsetHeight),top:Math.round(i.top+(o.pageYOffset||t[0].documentElement.scrollTop)),left:Math.round(i.left+(o.pageXOffset||t[0].documentElement.scrollLeft))}},viewportOffset:function(e,i,n){e=this.getRawNode(e),n=n!==!1?!0:!1;var r=e.getBoundingClientRect(),l={top:0,left:0,bottom:0,right:0},a=i?t[0].documentElement:this.scrollParent(e),p=a.getBoundingClientRect();if(l.top=p.top+a.clientTop,l.left=p.left+a.clientLeft,a===t[0].documentElement&&(l.top+=o.pageYOffset,l.left+=o.pageXOffset),l.bottom=l.top+a.clientHeight,l.right=l.left+a.clientWidth,n){var s=o.getComputedStyle(a);l.top+=this.parseStyle(s.paddingTop),l.bottom-=this.parseStyle(s.paddingBottom),l.left+=this.parseStyle(s.paddingLeft),l.right-=this.parseStyle(s.paddingRight)}return{top:Math.round(r.top-l.top),bottom:Math.round(l.bottom-r.bottom),left:Math.round(r.left-l.left),right:Math.round(l.right-r.right)}},parsePlacement:function(t){var o=r.auto.test(t);return o&&(t=t.replace(r.auto,"")),t=t.split("-"),t[0]=t[0]||"top",r.primary.test(t[0])||(t[0]="top"),t[1]=t[1]||"center",r.secondary.test(t[1])||(t[1]="center"),t[2]=o?!0:!1,t},positionElements:function(t,e,i,n){t=this.getRawNode(t),e=this.getRawNode(e);var l=angular.isDefined(e.offsetWidth)?e.offsetWidth:e.prop("offsetWidth"),a=angular.isDefined(e.offsetHeight)?e.offsetHeight:e.prop("offsetHeight");i=this.parsePlacement(i);var p=n?this.offset(t):this.position(t),s={top:0,left:0,placement:""};if(i[2]){var u=this.viewportOffset(t,n),c=o.getComputedStyle(e),d={width:l+Math.round(Math.abs(this.parseStyle(c.marginLeft)+this.parseStyle(c.marginRight))),height:a+Math.round(Math.abs(this.parseStyle(c.marginTop)+this.parseStyle(c.marginBottom)))};if(i[0]="top"===i[0]&&d.height>u.top&&d.height<=u.bottom?"bottom":"bottom"===i[0]&&d.height>u.bottom&&d.height<=u.top?"top":"left"===i[0]&&d.width>u.left&&d.width<=u.right?"right":"right"===i[0]&&d.width>u.right&&d.width<=u.left?"left":i[0],i[1]="top"===i[1]&&d.height-p.height>u.bottom&&d.height-p.height<=u.top?"bottom":"bottom"===i[1]&&d.height-p.height>u.top&&d.height-p.height<=u.bottom?"top":"left"===i[1]&&d.width-p.width>u.right&&d.width-p.width<=u.left?"right":"right"===i[1]&&d.width-p.width>u.left&&d.width-p.width<=u.right?"left":i[1],"center"===i[1])if(r.vertical.test(i[0])){var m=p.width/2-l/2;u.left+m<0&&d.width-p.width<=u.right?i[1]="left":u.right+m<0&&d.width-p.width<=u.left&&(i[1]="right")}else{var f=p.height/2-d.height/2;u.top+f<0&&d.height-p.height<=u.bottom?i[1]="top":u.bottom+f<0&&d.height-p.height<=u.top&&(i[1]="bottom")}}switch(i[0]){case"top":s.top=p.top-a;break;case"bottom":s.top=p.top+p.height;break;case"left":s.left=p.left-l;break;case"right":s.left=p.left+p.width}switch(i[1]){case"top":s.top=p.top;break;case"bottom":s.top=p.top+p.height-a;break;case"left":s.left=p.left;break;case"right":s.left=p.left+p.width-l;break;case"center":r.vertical.test(i[0])?s.left=p.left+p.width/2-l/2:s.top=p.top+p.height/2-a/2}return s.top=Math.round(s.top),s.left=Math.round(s.left),s.placement="center"===i[1]?i[0]:i[0]+"-"+i[1],s},positionArrow:function(t,e){t=this.getRawNode(t);var i=t.querySelector(".tooltip-inner, .popover-inner");if(i){var n=angular.element(i).hasClass("tooltip-inner"),l=t.querySelector(n?".tooltip-arrow":".arrow");if(l){var a={top:"",bottom:"",left:"",right:""};if(e=this.parsePlacement(e),"center"===e[1])return void angular.element(l).css(a);var p="border-"+e[0]+"-width",s=o.getComputedStyle(l)[p],u="border-";u+=r.vertical.test(e[0])?e[0]+"-"+e[1]:e[1]+"-"+e[0],u+="-radius";var c=o.getComputedStyle(n?i:t)[u];switch(e[0]){case"top":a.bottom=n?"0":"-"+s;break;case"bottom":a.top=n?"0":"-"+s;break;case"left":a.right=n?"0":"-"+s;break;case"right":a.left=n?"0":"-"+s}a[e[1]]=c,angular.element(l).css(a)}}}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){function t(t){var o=/[A-Z]/g,e="-";return t.replace(o,function(t,o){return(o?e:"")+t.toLowerCase()})}var o={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},e={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},i={};this.options=function(t){angular.extend(i,t)},this.setTriggers=function(t){angular.extend(e,t)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(n,r,l,a,p,s,u,c,d){function m(t){if(27===t.which){var o=f.top();o&&(o.value.close(),f.removeTop(),o=null)}}var f=d.createNew();return a.on("keypress",m),u.$on("$destroy",function(){a.off("keypress",m)}),function(n,u,d,m){function h(t){var o=(t||m.trigger||d).split(" "),i=o.map(function(t){return e[t]||t});return{show:o,hide:i}}m=angular.extend({},o,i,m);var v=t(n),b=s.startSymbol(),g=s.endSymbol(),w="<div "+v+'-popup uib-title="'+b+"title"+g+'" '+(m.useContentExp?'content-exp="contentExp()" ':'content="'+b+"content"+g+'" ')+'placement="'+b+"placement"+g+'" popup-class="'+b+"popupClass"+g+'" animation="animation" is-open="isOpen" origin-scope="origScope" class="uib-position-measure"></div>';return{compile:function(){var t=r(w);return function(o,e,i){function r(){L.isOpen?d():s()}function s(){(!A||o.$eval(i[u+"Enable"]))&&(w(),y(),L.popupDelay?N||(N=l(v,L.popupDelay,!1)):v())}function d(){b(),L.popupCloseDelay?P||(P=l(g,L.popupCloseDelay,!1)):g()}function v(){return b(),w(),L.content?($(),void L.$evalAsync(function(){L.isOpen=!0,k(!0),z()})):angular.noop}function b(){N&&(l.cancel(N),N=null),R&&(l.cancel(R),R=null)}function g(){L&&L.$evalAsync(function(){L&&(L.isOpen=!1,k(!1),L.animation?M||(M=l(C,150,!1)):C())})}function w(){P&&(l.cancel(P),P=null),M&&(l.cancel(M),M=null)}function $(){D||(x=L.$new(),D=t(x,function(t){F?a.find("body").append(t):e.after(t)}),T())}function C(){b(),w(),E(),D&&(D.remove(),D=null),x&&(x.$destroy(),x=null)}function y(){L.title=i[u+"Title"],L.content=H?H(o):i[n],L.popupClass=i[u+"Class"],L.placement=angular.isDefined(i[u+"Placement"])?i[u+"Placement"]:m.placement;var t=p.parsePlacement(L.placement);I=t[1]?t[0]+"-"+t[1]:t[0];var e=parseInt(i[u+"PopupDelay"],10),r=parseInt(i[u+"PopupCloseDelay"],10);L.popupDelay=isNaN(e)?m.popupDelay:e,L.popupCloseDelay=isNaN(r)?m.popupCloseDelay:r}function k(t){q&&angular.isFunction(q.assign)&&q.assign(o,t)}function T(){B.length=0,H?(B.push(o.$watch(H,function(t){L.content=t,!t&&L.isOpen&&g()})),B.push(x.$watch(function(){U||(U=!0,x.$$postDigest(function(){U=!1,L&&L.isOpen&&z()}))}))):B.push(i.$observe(n,function(t){L.content=t,!t&&L.isOpen?g():z()})),B.push(i.$observe(u+"Title",function(t){L.title=t,L.isOpen&&z()})),B.push(i.$observe(u+"Placement",function(t){L.placement=t?t:m.placement,L.isOpen&&z()}))}function E(){B.length&&(angular.forEach(B,function(t){t()}),B.length=0)}function S(t){L&&L.isOpen&&D&&(e[0].contains(t.target)||D[0].contains(t.target)||d())}function O(){var t=i[u+"Trigger"];j(),W=h(t),"none"!==W.show&&W.show.forEach(function(t,o){"outsideClick"===t?(e.on("click",r),a.on("click",S)):t===W.hide[o]?e.on(t,r):t&&(e.on(t,s),e.on(W.hide[o],d)),e.on("keypress",function(t){27===t.which&&d()})})}var D,x,M,N,P,R,I,F=angular.isDefined(m.appendToBody)?m.appendToBody:!1,W=h(void 0),A=angular.isDefined(i[u+"Enable"]),L=o.$new(!0),U=!1,q=angular.isDefined(i[u+"IsOpen"])?c(i[u+"IsOpen"]):!1,H=m.useContentExp?c(i[n]):!1,B=[],z=function(){D&&D.html()&&(R||(R=l(function(){var t=p.positionElements(e,D,L.placement,F);D.css({top:t.top+"px",left:t.left+"px"}),D.hasClass(t.placement.split("-")[0])||(D.removeClass(I.split("-")[0]),D.addClass(t.placement.split("-")[0])),D.hasClass(m.placementClassPrefix+t.placement)||(D.removeClass(m.placementClassPrefix+I),D.addClass(m.placementClassPrefix+t.placement)),D.hasClass("uib-position-measure")?(p.positionArrow(D,t.placement),D.removeClass("uib-position-measure")):I!==t.placement&&p.positionArrow(D,t.placement),I=t.placement,R=null},0,!1)))};L.origScope=o,L.isOpen=!1,f.add(L,{close:g}),L.contentExp=function(){return L.content},i.$observe("disabled",function(t){t&&b(),t&&L.isOpen&&g()}),q&&o.$watch(q,function(t){L&&!t===L.isOpen&&r()});var j=function(){W.show.forEach(function(t){"outsideClick"===t?e.off("click",r):(e.off(t,s),e.off(t,r))}),W.hide.forEach(function(t){"outsideClick"===t?a.off("click",S):e.off(t,d)})};O();var _=o.$eval(i[u+"Animation"]);L.animation=angular.isDefined(_)?!!_:m.animation;var Y,X=u+"AppendToBody";Y=X in i&&void 0===i[X]?!0:o.$eval(i[X]),F=angular.isDefined(Y)?Y:F,o.$on("$destroy",function(){j(),C(),f.remove(L),L=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(t,o,e,i){return{link:function(n,r,l){var a,p,s,u=n.$eval(l.tooltipTemplateTranscludeScope),c=0,d=function(){p&&(p.remove(),p=null),a&&(a.$destroy(),a=null),s&&(t.leave(s).then(function(){p=null}),p=s,s=null)};n.$watch(o.parseAsResourceUrl(l.uibTooltipTemplateTransclude),function(o){var l=++c;o?(i(o,!0).then(function(i){if(l===c){var n=u.$new(),p=i,m=e(p)(n,function(o){d(),t.enter(o,r)});a=n,s=m,a.$emit("$includeContentLoaded",o)}},function(){l===c&&(d(),n.$emit("$includeContentError",o))}),n.$emit("$includeContentRequested",o)):d()}),n.$on("$destroy",d)}}}]).directive("uibTooltipClasses",["$uibPosition",function(t){return{restrict:"A",link:function(o,e,i){if(o.placement){var n=t.parsePlacement(o.placement);e.addClass(n[0])}o.popupClass&&e.addClass(o.popupClass),o.animation()&&e.addClass(i.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(t){return t("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(t){return t("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(t){return t("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("uib/template/modal/backdrop.html",[]).run(["$templateCache",function(t){t.put("uib/template/modal/backdrop.html",'<div class="modal-backdrop"\n     uib-modal-animation-class="fade"\n     modal-in-class="in"\n     ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(t){t.put("uib/template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n    uib-modal-animation-class="fade"\n    modal-in-class="in"\n    ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}">\n    <div class="modal-dialog {{size ? \'modal-\' + size : \'\'}}"><div class="modal-content" uib-modal-transclude></div></div>\n</div>\n')}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner"\n    uib-tooltip-template-transclude="contentExp()"\n    tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("ui.bootstrap.position").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibPositionCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}</style>'),angular.$$uibPositionCss=!0}),angular.module("ui.bootstrap.tooltip").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTooltipCss&&angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}</style>'),angular.$$uibTooltipCss=!0});