text: /*
   * angular-ui-bootstrap
   * http://angular-ui.github.io/bootstrap/
  
   * Version: 1.1.1 - 2016-01-25
   * License: MIT
   */angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.buttons","ui.bootstrap.position"]),angular.module("ui.bootstrap.tpls",[]),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(t){this.activeClass=t.activeClass||"active",this.toggleEvent=t.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(t){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(e,o,i,n){var r=n[0],a=n[1],l=t(i.uibUncheckable);o.find("input").css({display:"none"}),a.$render=function(){o.toggleClass(r.activeClass,angular.equals(a.$modelValue,e.$eval(i.uibBtnRadio)))},o.on(r.toggleEvent,function(){if(!i.disabled){var t=o.hasClass(r.activeClass);(!t||angular.isDefined(i.uncheckable))&&e.$apply(function(){a.$setViewValue(t?null:e.$eval(i.uibBtnRadio)),a.$render()})}}),i.uibUncheckable&&e.$watch(l,function(t){i.$set("uncheckable",t?"":null)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(t,e,o,i){function n(){return a(o.btnCheckboxTrue,!0)}function r(){return a(o.btnCheckboxFalse,!1)}function a(e,o){return angular.isDefined(e)?t.$eval(e):o}var l=i[0],s=i[1];e.find("input").css({display:"none"}),s.$render=function(){e.toggleClass(l.activeClass,angular.equals(s.$modelValue,n()))},e.on(l.toggleEvent,function(){o.disabled||t.$apply(function(){s.$setViewValue(e.hasClass(l.activeClass)?r():n()),s.$render()})})}}}),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(t,e){var o,i={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},n={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/};return{getRawNode:function(t){return t[0]||t},parseStyle:function(t){return t=parseFloat(t),isFinite(t)?t:0},offsetParent:function(o){function i(t){return"static"===(e.getComputedStyle(t).position||"static")}o=this.getRawNode(o);for(var n=o.offsetParent||t[0].documentElement;n&&n!==t[0].documentElement&&i(n);)n=n.offsetParent;return n||t[0].documentElement},scrollbarWidth:function(){if(angular.isUndefined(o)){var e=angular.element('<div style="position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll;"></div>');t.find("body").append(e),o=e[0].offsetWidth-e[0].clientWidth,o=isFinite(o)?o:0,e.remove()}return o},scrollParent:function(o,n){o=this.getRawNode(o);var r=n?i.hidden:i.normal,a=t[0].documentElement,l=e.getComputedStyle(o),s="absolute"===l.position,h=o.parentElement||a;if(h===a||"fixed"===l.position)return a;for(;h.parentElement&&h!==a;){var u=e.getComputedStyle(h);if(s&&"static"!==u.position&&(s=!1),!s&&r.test(u.overflow+u.overflowY+u.overflowX))break;h=h.parentElement}return h},position:function(o,i){o=this.getRawNode(o);var n=this.offset(o);if(i){var r=e.getComputedStyle(o);n.top-=this.parseStyle(r.marginTop),n.left-=this.parseStyle(r.marginLeft)}var a=this.offsetParent(o),l={top:0,left:0};return a!==t[0].documentElement&&(l=this.offset(a),l.top+=a.clientTop-a.scrollTop,l.left+=a.clientLeft-a.scrollLeft),{width:Math.round(angular.isNumber(n.width)?n.width:o.offsetWidth),height:Math.round(angular.isNumber(n.height)?n.height:o.offsetHeight),top:Math.round(n.top-l.top),left:Math.round(n.left-l.left)}},offset:function(o){o=this.getRawNode(o);var i=o.getBoundingClientRect();return{width:Math.round(angular.isNumber(i.width)?i.width:o.offsetWidth),height:Math.round(angular.isNumber(i.height)?i.height:o.offsetHeight),top:Math.round(i.top+(e.pageYOffset||t[0].documentElement.scrollTop)),left:Math.round(i.left+(e.pageXOffset||t[0].documentElement.scrollLeft))}},viewportOffset:function(o,i,n){o=this.getRawNode(o),n=n!==!1?!0:!1;var r=o.getBoundingClientRect(),a={top:0,left:0,bottom:0,right:0},l=i?t[0].documentElement:this.scrollParent(o),s=l.getBoundingClientRect();if(a.top=s.top+l.clientTop,a.left=s.left+l.clientLeft,l===t[0].documentElement&&(a.top+=e.pageYOffset,a.left+=e.pageXOffset),a.bottom=a.top+l.clientHeight,a.right=a.left+l.clientWidth,n){var h=e.getComputedStyle(l);a.top+=this.parseStyle(h.paddingTop),a.bottom-=this.parseStyle(h.paddingBottom),a.left+=this.parseStyle(h.paddingLeft),a.right-=this.parseStyle(h.paddingRight)}return{top:Math.round(r.top-a.top),bottom:Math.round(a.bottom-r.bottom),left:Math.round(r.left-a.left),right:Math.round(a.right-r.right)}},parsePlacement:function(t){var e=n.auto.test(t);return e&&(t=t.replace(n.auto,"")),t=t.split("-"),t[0]=t[0]||"top",n.primary.test(t[0])||(t[0]="top"),t[1]=t[1]||"center",n.secondary.test(t[1])||(t[1]="center"),t[2]=e?!0:!1,t},positionElements:function(t,o,i,r){t=this.getRawNode(t),o=this.getRawNode(o);var a=angular.isDefined(o.offsetWidth)?o.offsetWidth:o.prop("offsetWidth"),l=angular.isDefined(o.offsetHeight)?o.offsetHeight:o.prop("offsetHeight");i=this.parsePlacement(i);var s=r?this.offset(t):this.position(t),h={top:0,left:0,placement:""};if(i[2]){var u=this.viewportOffset(t),f=e.getComputedStyle(o),p={width:a+Math.round(Math.abs(this.parseStyle(f.marginLeft)+this.parseStyle(f.marginRight))),height:l+Math.round(Math.abs(this.parseStyle(f.marginTop)+this.parseStyle(f.marginBottom)))};if(i[0]="top"===i[0]&&p.height>u.top&&p.height<=u.bottom?"bottom":"bottom"===i[0]&&p.height>u.bottom&&p.height<=u.top?"top":"left"===i[0]&&p.width>u.left&&p.width<=u.right?"right":"right"===i[0]&&p.width>u.right&&p.width<=u.left?"left":i[0],i[1]="top"===i[1]&&p.height-s.height>u.bottom&&p.height-s.height<=u.top?"bottom":"bottom"===i[1]&&p.height-s.height>u.top&&p.height-s.height<=u.bottom?"top":"left"===i[1]&&p.width-s.width>u.right&&p.width-s.width<=u.left?"right":"right"===i[1]&&p.width-s.width>u.left&&p.width-s.width<=u.right?"left":i[1],"center"===i[1])if(n.vertical.test(i[0])){var d=s.width/2-a/2;u.left+d<0&&p.width-s.width<=u.right?i[1]="left":u.right+d<0&&p.width-s.width<=u.left&&(i[1]="right")}else{var g=s.height/2-p.height/2;u.top+g<0&&p.height-s.height<=u.bottom?i[1]="top":u.bottom+g<0&&p.height-s.height<=u.top&&(i[1]="bottom")}}switch(i[0]){case"top":h.top=s.top-l;break;case"bottom":h.top=s.top+s.height;break;case"left":h.left=s.left-a;break;case"right":h.left=s.left+s.width}switch(i[1]){case"top":h.top=s.top;break;case"bottom":h.top=s.top+s.height-l;break;case"left":h.left=s.left;break;case"right":h.left=s.left+s.width-a;break;case"center":n.vertical.test(i[0])?h.left=s.left+s.width/2-a/2:h.top=s.top+s.height/2-l/2}return h.top=Math.round(h.top),h.left=Math.round(h.left),h.placement="center"===i[1]?i[0]:i[0]+"-"+i[1],h},positionArrow:function(t,o){t=this.getRawNode(t);var i=t.querySelector(".tooltip-inner, .popover-inner");if(i){var r=angular.element(i).hasClass("tooltip-inner"),a=t.querySelector(r?".tooltip-arrow":".arrow");if(a){if(o=this.parsePlacement(o),"center"===o[1])return void angular.element(a).css({top:"",bottom:"",right:"",left:"",margin:""});var l="border-"+o[0]+"-width",s=e.getComputedStyle(a)[l],h="border-";h+=n.vertical.test(o[0])?o[0]+"-"+o[1]:o[1]+"-"+o[0],h+="-radius";var u=e.getComputedStyle(r?i:t)[h],f={top:"auto",bottom:"auto",left:"auto",right:"auto",margin:0};switch(o[0]){case"top":f.bottom=r?"0":"-"+s;break;case"bottom":f.top=r?"0":"-"+s;break;case"left":f.right=r?"0":"-"+s;break;case"right":f.left=r?"0":"-"+s}f[o[1]]=u,angular.element(a).css(f)}}}}}]);