{"version":3,"sources":["common/js/lib/bootstrap/tooltip.js"],"names":["_typeof","o","Symbol","iterator","constructor","prototype","$","DISALLOWED_ATTRIBUTES","uriAttrs","ARIA_ATTRIBUTE_PATTERN","DefaultWhitelist","*","a","area","b","br","col","code","div","em","hr","h1","h2","h3","h4","h5","h6","i","img","li","ol","p","pre","s","small","span","sub","sup","strong","u","ul","SAFE_URL_PATTERN","DATA_URL_PATTERN","allowedAttribute","attr","allowedAttributeList","attrName","nodeName","toLowerCase","inArray","Boolean","nodeValue","match","regExp","filter","index","value","RegExp","l","length","sanitizeHtml","unsafeHtml","whiteList","sanitizeFn","document","implementation","createHTMLDocument","createdDocument","body","innerHTML","whitelistKeys","map","el","elements","find","len","elName","attributeList","attributes","whitelistedAttributes","concat","j","len2","removeAttribute","parentNode","removeChild","Tooltip","element","options","this","type","enabled","timeout","hoverState","$element","inState","init","Plugin","option","each","$this","data","test","VERSION","TRANSITION_DURATION","DEFAULTS","animation","placement","selector","template","trigger","title","delay","html","container","viewport","padding","sanitize","getOptions","$viewport","isFunction","call","click","hover","focus","Error","triggers","split","on","proxy","toggle","eventIn","eventOut","enter","leave","_options","extend","fixTitle","getDefaults","dataAttributes","dataAttr","hasOwnProperty","show","hide","getDelegateOptions","defaults","key","obj","self","currentTarget","Event","tip","hasClass","clearTimeout","setTimeout","isInStateTrue","e","hasContent","inDom","contains","ownerDocument","documentElement","isDefaultPrevented","that","$tip","tipId","getUID","setContent","addClass","autoToken","autoPlace","replace","detach","css","top","left","display","appendTo","insertAfter","pos","getPosition","actualWidth","offsetWidth","actualHeight","offsetHeight","orgPlacement","viewportDim","bottom","right","width","removeClass","calculatedOffset","getCalculatedOffset","applyPlacement","complete","prevHoverState","support","transition","one","emulateTransitionEnd","offset","height","marginTop","parseInt","marginLeft","isNaN","setOffset","using","props","Math","round","delta","getViewportAdjustedDelta","isVertical","arrowDelta","arrowOffsetPosition","replaceArrow","dimension","arrow","getTitle","text","callback","removeAttr","$e","isBody","tagName","elRect","getBoundingClientRect","isSvg","window","SVGElement","elOffset","scroll","scrollTop","outerDims","viewportPadding","viewportDimensions","topEdgeOffset","bottomEdgeOffset","leftEdgeOffset","rightEdgeOffset","prefix","random","getElementById","$arrow","enable","disable","toggleEnabled","destroy","off","removeData","old","fn","tooltip","Constructor","noConflict","jQuery"],"mappings":"AAAA,SAASA,QAAQC,GAAK,0BAA2B,OAAOD,QAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,GAAO,SAAUA,GAAK,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgBF,QAAUD,IAAMC,OAAOG,UAAY,gBAAkBJ,IAAcA,IAUxT,SAAUK,GACT,aAEA,IAAIC,uBAAyB,WAAY,YAAa,cAClDC,UAAY,aAAc,OAAQ,OAAQ,WAAY,WAAY,SAAU,MAAO,cACnFC,uBACAC,kBAEFC,KAAM,QAAS,MAAO,KAAM,OAAQ,OAHT,kBAI3BC,GAAI,SAAU,OAAQ,QAAS,OAC/BC,QACAC,KACAC,MACAC,OACAC,QACAC,OACAC,MACAC,MACAC,MACAC,MACAC,MACAC,MACAC,MACAC,MACAC,KACAC,KAAM,MAAO,MAAO,QAAS,QAAS,UACtCC,MACAC,MACAC,KACAC,OACAC,KACAC,SACAC,QACAC,OACAC,OACAC,UACAC,KACAC,OAQEC,iBAAmB,8DAOnBC,iBAAmB,sIACvB,SAASC,iBAAiBC,KAAMC,sBAC9B,IAAIC,SAAWF,KAAKG,SAASC,cAC7B,IAAmD,IAA/C1C,EAAE2C,QAAQH,SAAUD,sBACtB,OAAuC,IAAnCvC,EAAE2C,QAAQH,SAAUtC,WACf0C,QAAQN,KAAKO,UAAUC,MAAMX,mBAAqBG,KAAKO,UAAUC,MAAMV,mBASlF,IALA,IAAIW,OAAS/C,EAAEuC,sBAAsBS,OAAO,SAAUC,MAAOC,OAC3D,OAAOA,iBAAiBC,SAIjB9B,EAAI,EAAG+B,EAAIL,OAAOM,OAAQhC,EAAI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EP,cAAe5D,KAAKuD,sBAClD1I,EAAEsJ,EAAEP,eAAehD,KAAK,MAAQZ,KAAKC,KAAM0D,QAG3CQ,GACFR,KAAKrD,QAAQ2B,OAAS0B,KAAKrD,QAAQ2B,MAC/B0B,KAAKO,gBAAiBP,KAAKf,MAAMe,MAAWA,KAAKd,MAAMc,OAE3DA,KAAKG,MAAMC,SAAS,MAAQJ,KAAKd,MAAMc,MAAQA,KAAKf,MAAMe,OAG9D9D,QAAQjF,UAAUmP,QAAU,WAC1B,IAAIrF,KAAO1E,KACXgE,aAAahE,KAAKG,SAClBH,KAAKsD,KAAK,WACRoB,KAAKrE,SAAS2J,IAAI,IAAMtF,KAAKzE,MAAMgK,WAAW,MAAQvF,KAAKzE,MACvDyE,KAAKC,MACPD,KAAKC,KAAKQ,SAEZT,KAAKC,KAAO,KACZD,KAAKiF,OAAS,KACdjF,KAAK5C,UAAY,KACjB4C,KAAKrE,SAAW,QAGpBR,QAAQjF,UAAUuD,aAAe,SAAUC,YACzC,OAAOD,aAAaC,WAAY4B,KAAKD,QAAQ1B,UAAW2B,KAAKD,QAAQzB,aAgBvE,IAAI4L,IAAMrP,EAAEsP,GAAGC,QACfvP,EAAEsP,GAAGC,QAAU5J,OACf3F,EAAEsP,GAAGC,QAAQC,YAAcxK,QAK3BhF,EAAEsP,GAAGC,QAAQE,WAAa,WAExB,OADAzP,EAAEsP,GAAGC,QAAUF,IACRlK,MA3hBV,CA6hBCuK","file":"../../../../../common/js/lib/bootstrap/tooltip-faf8e38dbb.js","sourcesContent":["function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n/* ========================================================================\r\n * Bootstrap: tooltip.js v3.4.1\r\n * https://getbootstrap.com/docs/3.4/javascript/#tooltip\r\n * Inspired by the original jQuery.tipsy by Jason Frame\r\n * ========================================================================\r\n * Copyright 2011-2019 Twitter, Inc.\r\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\r\n * ======================================================================== */\n\n+function ($) {\n 'use strict';\n\n var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn'];\n var uriAttrs = ['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href'];\n var ARIA_ATTRIBUTE_PATTERN = /^aria-[\\w-]*$/i;\n var DefaultWhitelist = {\n // Global attributes allowed on any supplied element below.\n '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],\n a: ['target', 'href', 'title', 'rel'],\n area: [],\n b: [],\n br: [],\n col: [],\n code: [],\n div: [],\n em: [],\n hr: [],\n h1: [],\n h2: [],\n h3: [],\n h4: [],\n h5: [],\n h6: [],\n i: [],\n img: ['src', 'alt', 'title', 'width', 'height'],\n li: [],\n ol: [],\n p: [],\n pre: [],\n s: [],\n small: [],\n span: [],\n sub: [],\n sup: [],\n strong: [],\n u: [],\n ul: []\n };\n\n /**\r\n * A pattern that recognizes a commonly useful subset of URLs that are safe.\r\n *\r\n * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts\r\n */\n var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi;\n\n /**\r\n * A pattern that matches safe data URLs. Only matches image, video and audio types.\r\n *\r\n * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts\r\n */\n var DATA_URL_PATTERN = /^data:(?:image\\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\\/(?:mpeg|mp4|ogg|webm)|audio\\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;\n function allowedAttribute(attr, allowedAttributeList) {\n var attrName = attr.nodeName.toLowerCase();\n if ($.inArray(attrName, allowedAttributeList) !== -1) {\n if ($.inArray(attrName, uriAttrs) !== -1) {\n return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN));\n }\n return true;\n }\n var regExp = $(allowedAttributeList).filter(function (index, value) {\n return value instanceof RegExp;\n });\n\n // Check if a regular expression validates the attribute.\n for (var i = 0, l = regExp.length; i < l; i++) {\n if (attrName.match(regExp[i])) {\n return true;\n }\n }\n return false;\n }\n function sanitizeHtml(unsafeHtml, whiteList, sanitizeFn) {\n if (unsafeHtml.length === 0) {\n return unsafeHtml;\n }\n if (sanitizeFn && typeof sanitizeFn === 'function') {\n return sanitizeFn(unsafeHtml);\n }\n\n // IE 8 and below don't support createHTMLDocument\n if (!document.implementation || !document.implementation.createHTMLDocument) {\n return unsafeHtml;\n }\n var createdDocument = document.implementation.createHTMLDocument('sanitization');\n createdDocument.body.innerHTML = unsafeHtml;\n var whitelistKeys = $.map(whiteList, function (el, i) {\n return i;\n });\n var elements = $(createdDocument.body).find('*');\n for (var i = 0, len = elements.length; i < len; i++) {\n var el = elements[i];\n var elName = el.nodeName.toLowerCase();\n if ($.inArray(elName, whitelistKeys) === -1) {\n el.parentNode.removeChild(el);\n continue;\n }\n var attributeList = $.map(el.attributes, function (el) {\n return el;\n });\n var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []);\n for (var j = 0, len2 = attributeList.length; j < len2; j++) {\n if (!allowedAttribute(attributeList[j], whitelistedAttributes)) {\n el.removeAttribute(attributeList[j].nodeName);\n }\n }\n }\n return createdDocument.body.innerHTML;\n }\n\n // TOOLTIP PUBLIC CLASS DEFINITION\n // ===============================\n\n var Tooltip = function Tooltip(element, options) {\n this.type = null;\n this.options = null;\n this.enabled = null;\n this.timeout = null;\n this.hoverState = null;\n this.$element = null;\n this.inState = null;\n this.init('tooltip', element, options);\n };\n Tooltip.VERSION = '3.4.1';\n Tooltip.TRANSITION_DURATION = 150;\n Tooltip.DEFAULTS = {\n animation: true,\n placement: 'top',\n selector: false,\n template: '
',\n trigger: 'hover focus',\n title: '',\n delay: 0,\n html: false,\n container: false,\n viewport: {\n selector: 'body',\n padding: 0\n },\n sanitize: true,\n sanitizeFn: null,\n whiteList: DefaultWhitelist\n };\n Tooltip.prototype.init = function (type, element, options) {\n this.enabled = true;\n this.type = type;\n this.$element = $(element);\n this.options = this.getOptions(options);\n this.$viewport = this.options.viewport && $(document).find($.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : this.options.viewport.selector || this.options.viewport);\n this.inState = {\n click: false,\n hover: false,\n focus: false\n };\n if (this.$element[0] instanceof document.constructor && !this.options.selector) {\n throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!');\n }\n var triggers = this.options.trigger.split(' ');\n for (var i = triggers.length; i--;) {\n var trigger = triggers[i];\n if (trigger == 'click') {\n this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this));\n } else if (trigger != 'manual') {\n var eventIn = trigger == 'hover' ? 'mouseenter' : 'focusin';\n var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout';\n this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this));\n this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this));\n }\n }\n this.options.selector ? this._options = $.extend({}, this.options, {\n trigger: 'manual',\n selector: ''\n }) : this.fixTitle();\n };\n Tooltip.prototype.getDefaults = function () {\n return Tooltip.DEFAULTS;\n };\n Tooltip.prototype.getOptions = function (options) {\n var dataAttributes = this.$element.data();\n for (var dataAttr in dataAttributes) {\n if (dataAttributes.hasOwnProperty(dataAttr) && $.inArray(dataAttr, DISALLOWED_ATTRIBUTES) !== -1) {\n delete dataAttributes[dataAttr];\n }\n }\n options = $.extend({}, this.getDefaults(), dataAttributes, options);\n if (options.delay && typeof options.delay == 'number') {\n options.delay = {\n show: options.delay,\n hide: options.delay\n };\n }\n if (options.sanitize) {\n options.template = sanitizeHtml(options.template, options.whiteList, options.sanitizeFn);\n }\n return options;\n };\n Tooltip.prototype.getDelegateOptions = function () {\n var options = {};\n var defaults = this.getDefaults();\n this._options && $.each(this._options, function (key, value) {\n if (defaults[key] != value) options[key] = value;\n });\n return options;\n };\n Tooltip.prototype.enter = function (obj) {\n var self = obj instanceof this.constructor ? obj : $(obj.currentTarget).data('bs.' + this.type);\n if (!self) {\n self = new this.constructor(obj.currentTarget, this.getDelegateOptions());\n $(obj.currentTarget).data('bs.' + this.type, self);\n }\n if (obj instanceof $.Event) {\n self.inState[obj.type == 'focusin' ? 'focus' : 'hover'] = true;\n }\n if (self.tip().hasClass('in') || self.hoverState == 'in') {\n self.hoverState = 'in';\n return;\n }\n clearTimeout(self.timeout);\n self.hoverState = 'in';\n if (!self.options.delay || !self.options.delay.show) return self.show();\n self.timeout = setTimeout(function () {\n if (self.hoverState == 'in') self.show();\n }, self.options.delay.show);\n };\n Tooltip.prototype.isInStateTrue = function () {\n for (var key in this.inState) {\n if (this.inState[key]) return true;\n }\n return false;\n };\n Tooltip.prototype.leave = function (obj) {\n var self = obj instanceof this.constructor ? obj : $(obj.currentTarget).data('bs.' + this.type);\n if (!self) {\n self = new this.constructor(obj.currentTarget, this.getDelegateOptions());\n $(obj.currentTarget).data('bs.' + this.type, self);\n }\n if (obj instanceof $.Event) {\n self.inState[obj.type == 'focusout' ? 'focus' : 'hover'] = false;\n }\n if (self.isInStateTrue()) return;\n clearTimeout(self.timeout);\n self.hoverState = 'out';\n if (!self.options.delay || !self.options.delay.hide) return self.hide();\n self.timeout = setTimeout(function () {\n if (self.hoverState == 'out') self.hide();\n }, self.options.delay.hide);\n };\n Tooltip.prototype.show = function () {\n var e = $.Event('show.bs.' + this.type);\n if (this.hasContent() && this.enabled) {\n this.$element.trigger(e);\n var inDom = $.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]);\n if (e.isDefaultPrevented() || !inDom) return;\n var that = this;\n var $tip = this.tip();\n var tipId = this.getUID(this.type);\n this.setContent();\n $tip.attr('id', tipId);\n this.$element.attr('aria-describedby', tipId);\n if (this.options.animation) $tip.addClass('fade');\n var placement = typeof this.options.placement == 'function' ? this.options.placement.call(this, $tip[0], this.$element[0]) : this.options.placement;\n var autoToken = /\\s?auto?\\s?/i;\n var autoPlace = autoToken.test(placement);\n if (autoPlace) placement = placement.replace(autoToken, '') || 'top';\n $tip.detach().css({\n top: 0,\n left: 0,\n display: 'block'\n }).addClass(placement).data('bs.' + this.type, this);\n this.options.container ? $tip.appendTo($(document).find(this.options.container)) : $tip.insertAfter(this.$element);\n this.$element.trigger('inserted.bs.' + this.type);\n var pos = this.getPosition();\n var actualWidth = $tip[0].offsetWidth;\n var actualHeight = $tip[0].offsetHeight;\n if (autoPlace) {\n var orgPlacement = placement;\n var viewportDim = this.getPosition(this.$viewport);\n placement = placement == 'bottom' && pos.bottom + actualHeight > viewportDim.bottom ? 'top' : placement == 'top' && pos.top - actualHeight < viewportDim.top ? 'bottom' : placement == 'right' && pos.right + actualWidth > viewportDim.width ? 'left' : placement == 'left' && pos.left - actualWidth < viewportDim.left ? 'right' : placement;\n $tip.removeClass(orgPlacement).addClass(placement);\n }\n var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight);\n this.applyPlacement(calculatedOffset, placement);\n var complete = function complete() {\n var prevHoverState = that.hoverState;\n that.$element.trigger('shown.bs.' + that.type);\n that.hoverState = null;\n if (prevHoverState == 'out') that.leave(that);\n };\n $.support.transition && this.$tip.hasClass('fade') ? $tip.one('bsTransitionEnd', complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION) : complete();\n }\n };\n Tooltip.prototype.applyPlacement = function (offset, placement) {\n var $tip = this.tip();\n var width = $tip[0].offsetWidth;\n var height = $tip[0].offsetHeight;\n\n // manually read margins because getBoundingClientRect includes difference\n var marginTop = parseInt($tip.css('margin-top'), 10);\n var marginLeft = parseInt($tip.css('margin-left'), 10);\n\n // we must check for NaN for ie 8/9\n if (isNaN(marginTop)) marginTop = 0;\n if (isNaN(marginLeft)) marginLeft = 0;\n offset.top += marginTop;\n offset.left += marginLeft;\n\n // $.fn.offset doesn't round pixel values\n // so we use setOffset directly with our own function B-0\n $.offset.setOffset($tip[0], $.extend({\n using: function using(props) {\n $tip.css({\n top: Math.round(props.top),\n left: Math.round(props.left)\n });\n }\n }, offset), 0);\n $tip.addClass('in');\n\n // check to see if placing tip in new offset caused the tip to resize itself\n var actualWidth = $tip[0].offsetWidth;\n var actualHeight = $tip[0].offsetHeight;\n if (placement == 'top' && actualHeight != height) {\n offset.top = offset.top + height - actualHeight;\n }\n var delta = this.getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight);\n if (delta.left) offset.left += delta.left;else offset.top += delta.top;\n var isVertical = /top|bottom/.test(placement);\n var arrowDelta = isVertical ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight;\n var arrowOffsetPosition = isVertical ? 'offsetWidth' : 'offsetHeight';\n $tip.offset(offset);\n this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], isVertical);\n };\n Tooltip.prototype.replaceArrow = function (delta, dimension, isVertical) {\n this.arrow().css(isVertical ? 'left' : 'top', 50 * (1 - delta / dimension) + '%').css(isVertical ? 'top' : 'left', '');\n };\n Tooltip.prototype.setContent = function () {\n var $tip = this.tip();\n var title = this.getTitle();\n if (this.options.html) {\n if (this.options.sanitize) {\n title = sanitizeHtml(title, this.options.whiteList, this.options.sanitizeFn);\n }\n $tip.find('.tooltip-inner').html(title);\n } else {\n $tip.find('.tooltip-inner').text(title);\n }\n $tip.removeClass('fade in top bottom left right');\n };\n Tooltip.prototype.hide = function (callback) {\n var that = this;\n var $tip = $(this.$tip);\n var e = $.Event('hide.bs.' + this.type);\n function complete() {\n if (that.hoverState != 'in') $tip.detach();\n if (that.$element) {\n // TODO: Check whether guarding this code with this `if` is really necessary.\n that.$element.removeAttr('aria-describedby').trigger('hidden.bs.' + that.type);\n }\n callback && callback();\n }\n this.$element.trigger(e);\n if (e.isDefaultPrevented()) return;\n $tip.removeClass('in');\n $.support.transition && $tip.hasClass('fade') ? $tip.one('bsTransitionEnd', complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION) : complete();\n this.hoverState = null;\n return this;\n };\n Tooltip.prototype.fixTitle = function () {\n var $e = this.$element;\n if ($e.attr('title') || typeof $e.attr('data-original-title') != 'string') {\n $e.attr('data-original-title', $e.attr('title') || '').attr('title', '');\n }\n };\n Tooltip.prototype.hasContent = function () {\n return this.getTitle();\n };\n Tooltip.prototype.getPosition = function ($element) {\n $element = $element || this.$element;\n var el = $element[0];\n var isBody = el.tagName == 'BODY';\n var elRect = el.getBoundingClientRect();\n if (elRect.width == null) {\n // width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093\n elRect = $.extend({}, elRect, {\n width: elRect.right - elRect.left,\n height: elRect.bottom - elRect.top\n });\n }\n var isSvg = window.SVGElement && el instanceof window.SVGElement;\n // Avoid using $.offset() on SVGs since it gives incorrect results in jQuery 3.\n // See https://github.com/twbs/bootstrap/issues/20280\n var elOffset = isBody ? {\n top: 0,\n left: 0\n } : isSvg ? null : $element.offset();\n var scroll = {\n scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop()\n };\n var outerDims = isBody ? {\n width: $(window).width(),\n height: $(window).height()\n } : null;\n return $.extend({}, elRect, scroll, outerDims, elOffset);\n };\n Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {\n return placement == 'bottom' ? {\n top: pos.top + pos.height,\n left: pos.left + pos.width / 2 - actualWidth / 2\n } : placement == 'top' ? {\n top: pos.top - actualHeight,\n left: pos.left + pos.width / 2 - actualWidth / 2\n } : placement == 'left' ? {\n top: pos.top + pos.height / 2 - actualHeight / 2,\n left: pos.left - actualWidth\n } : /* placement == 'right' */{\n top: pos.top + pos.height / 2 - actualHeight / 2,\n left: pos.left + pos.width\n };\n };\n Tooltip.prototype.getViewportAdjustedDelta = function (placement, pos, actualWidth, actualHeight) {\n var delta = {\n top: 0,\n left: 0\n };\n if (!this.$viewport) return delta;\n var viewportPadding = this.options.viewport && this.options.viewport.padding || 0;\n var viewportDimensions = this.getPosition(this.$viewport);\n if (/right|left/.test(placement)) {\n var topEdgeOffset = pos.top - viewportPadding - viewportDimensions.scroll;\n var bottomEdgeOffset = pos.top + viewportPadding - viewportDimensions.scroll + actualHeight;\n if (topEdgeOffset < viewportDimensions.top) {\n // top overflow\n delta.top = viewportDimensions.top - topEdgeOffset;\n } else if (bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height) {\n // bottom overflow\n delta.top = viewportDimensions.top + viewportDimensions.height - bottomEdgeOffset;\n }\n } else {\n var leftEdgeOffset = pos.left - viewportPadding;\n var rightEdgeOffset = pos.left + viewportPadding + actualWidth;\n if (leftEdgeOffset < viewportDimensions.left) {\n // left overflow\n delta.left = viewportDimensions.left - leftEdgeOffset;\n } else if (rightEdgeOffset > viewportDimensions.right) {\n // right overflow\n delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset;\n }\n }\n return delta;\n };\n Tooltip.prototype.getTitle = function () {\n var title;\n var $e = this.$element;\n var o = this.options;\n title = $e.attr('data-original-title') || (typeof o.title == 'function' ? o.title.call($e[0]) : o.title);\n return title;\n };\n Tooltip.prototype.getUID = function (prefix) {\n do prefix += ~~(Math.random() * 1000000); while (document.getElementById(prefix));\n return prefix;\n };\n Tooltip.prototype.tip = function () {\n if (!this.$tip) {\n this.$tip = $(this.options.template);\n if (this.$tip.length != 1) {\n throw new Error(this.type + ' `template` option must consist of exactly 1 top-level element!');\n }\n }\n return this.$tip;\n };\n Tooltip.prototype.arrow = function () {\n return this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow');\n };\n Tooltip.prototype.enable = function () {\n this.enabled = true;\n };\n Tooltip.prototype.disable = function () {\n this.enabled = false;\n };\n Tooltip.prototype.toggleEnabled = function () {\n this.enabled = !this.enabled;\n };\n Tooltip.prototype.toggle = function (e) {\n var self = this;\n if (e) {\n self = $(e.currentTarget).data('bs.' + this.type);\n if (!self) {\n self = new this.constructor(e.currentTarget, this.getDelegateOptions());\n $(e.currentTarget).data('bs.' + this.type, self);\n }\n }\n if (e) {\n self.inState.click = !self.inState.click;\n if (self.isInStateTrue()) self.enter(self);else self.leave(self);\n } else {\n self.tip().hasClass('in') ? self.leave(self) : self.enter(self);\n }\n };\n Tooltip.prototype.destroy = function () {\n var that = this;\n clearTimeout(this.timeout);\n this.hide(function () {\n that.$element.off('.' + that.type).removeData('bs.' + that.type);\n if (that.$tip) {\n that.$tip.detach();\n }\n that.$tip = null;\n that.$arrow = null;\n that.$viewport = null;\n that.$element = null;\n });\n };\n Tooltip.prototype.sanitizeHtml = function (unsafeHtml) {\n return sanitizeHtml(unsafeHtml, this.options.whiteList, this.options.sanitizeFn);\n };\n\n // TOOLTIP PLUGIN DEFINITION\n // =========================\n\n function Plugin(option) {\n return this.each(function () {\n var $this = $(this);\n var data = $this.data('bs.tooltip');\n var options = _typeof(option) == 'object' && option;\n if (!data && /destroy|hide/.test(option)) return;\n if (!data) $this.data('bs.tooltip', data = new Tooltip(this, options));\n if (typeof option == 'string') data[option]();\n });\n }\n var old = $.fn.tooltip;\n $.fn.tooltip = Plugin;\n $.fn.tooltip.Constructor = Tooltip;\n\n // TOOLTIP NO CONFLICT\n // ===================\n\n $.fn.tooltip.noConflict = function () {\n $.fn.tooltip = old;\n return this;\n };\n}(jQuery);"]}