function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments?arguments:{};e%2?ownKeys(n,!0).forEach(function(e){_defineProperty(t,e,n)}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t=n,t}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e;i.enumerable=i.enumerable||!1,i.configurable=!0,“value”in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t} /*!
* Mekari UI tooltip.js (https://bitbucket.org/mekariuitoolkit/mekari-ui-toolkit#readme)
* Copyright 2011-2021 Mekari
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Mekari UI tooltip.js (https://bitbucket.org/mekariuitoolkit/mekari-ui-toolkit#readme)
* Copyright 2011-2021 Mekari
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
!function(t,e){“object”==typeof exports&&“undefined”!=typeof module?module.exports=e(require(“jquery”),require(“popper.js”),require(“./util.js”)):“function”==typeof define&&define.amd?define(,e):(t=t||self).Tooltip=e(t.jQuery,t.Popper,t.Util)}(this,function(t,e,n){“use strict”;t=t&&t.hasOwnProperty(“default”)?t.default:t,e=e&&e.hasOwnProperty(“default”)?e.default:e,n=n&&n.hasOwnProperty(“default”)?n.default:n;var i=[“background”,“cite”,“href”,“itemtype”,“longdesc”,“poster”,“src”,“xlink:href”],o={“*”:[“class”,“dir”,“id”,“lang”,“role”,/^aria-[w-]*$/i],a:[“target”,“href”,“title”,“rel”],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[“src”,“srcset”,“alt”,“title”,“width”,“height”],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},r=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,s=/^data:(?:image/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video/(?:mpeg|mp4|ogg|webm)|audio/(?:mp3|oga|ogg|opus));base64,[d+/a-z]+=*$/i;function a(t,e,n){if(0===t.length)return t;if(n&&“function”==typeof n)return n(t);for(var o=(new window.DOMParser).parseFromString(t,“text/html”),a=Object.keys(e),l=[].slice.call(o.body.querySelectorAll(“*”)),c=function(t,n){var o=l,c=o.nodeName.toLowerCase();if(-1===a.indexOf(o.nodeName.toLowerCase()))return o.parentNode.removeChild(o),“continue”;var u=[].slice.call(o.attributes),h=.concat(e||[],e||[]);u.forEach(function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===i.indexOf(n)||Boolean(t.nodeValue.match®||t.nodeValue.match(s));for(var o=e.filter(function(t){return t instanceof RegExp}),a=0,l=o.length;a))return!0;return!1})(t,h)||o.removeAttribute(t.nodeName)})},u=0,h=l.length;u<h;u++)c(u);return o.body.innerHTML}var l=“tooltip”,c=“.bs.tooltip”,u=t.fn,h=new RegExp(“(^|\s)bs-tooltip\S+”,“g”),f=,g={animation:“boolean”,template:“string”,title:“(string|element|function)”,trigger:“string”,delay:“(number|object)”,html:“boolean”,selector:“(string|boolean)”,placement:“(string|function)”,offset:“(number|string|function)”,container:“(string|element|boolean)”,fallbackPlacement:“(string|array)”,boundary:“(string|element)”,sanitize:“boolean”,sanitizeFn:“(null|function)”,whiteList:“object”,popperConfig:“(null|object)”},p={AUTO:“auto”,TOP:“top”,RIGHT:“right”,BOTTOM:“bottom”,LEFT:“left”},d={animation:!0,template:'<div class=“tooltip” role=“tooltip”><div class=“arrow”></div><div class=“tooltip-inner”></div></div>',trigger:“hover focus”,title:“”,delay:0,html:!1,selector:!1,placement:“top”,offset:0,container:!1,fallbackPlacement:“flip”,boundary:“scrollParent”,sanitize:!0,sanitizeFn:null,whiteList:o,popperConfig:null},m={HIDE:“hide”+c,HIDDEN:“hidden”+c,SHOW:“show”+c,SHOWN:“shown”+c,INSERTED:“inserted”+c,CLICK:“click”+c,FOCUSIN:“focusin”+c,FOCUSOUT:“focusout”+c,MOUSEENTER:“mouseenter”+c,MOUSELEAVE:“mouseleave”+c},v=function(){function i(t,n){if(“undefined”==typeof e)throw new TypeError(“Bootstrap's tooltips require Popper.js (popper.js.org/)”);this._isEnabled=!0,this._timeout=0,this._hoverState=“”,this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(n),this.tip=null,this._setListeners()}var o=i.prototype;return o.enable=function(){this._isEnabled=!0},o.disable=function(){this._isEnabled=!1},o.toggleEnabled=function(){this._isEnabled=!this._isEnabled},o.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,i=t(e.currentTarget).data(n);i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(“show”))return void this._leave(null,this);this._enter(null,this)}},o.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(“.modal”).off(“hide.bs.modal”,this._hideModalHandler),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},o.show=function(){var i=this;if(“none”===t(this.element).css(“display”))throw new Error(“Please use show on visible elements”);var o=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(o);var r=n.findShadowRoot(this.element),s=t.contains(null!==r?r:this.element.ownerDocument.documentElement,this.element);if(o.isDefaultPrevented()||!s)return;var a=this.getTipElement(),l=n.getUID(this.constructor.NAME);a.setAttribute(“id”,l),this.element.setAttribute(“aria-describedby”,l),this.setContent(),this.config.animation&&t(a).addClass(“fade”);var c=“function”==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,u=this._getAttachment©;this.addAttachmentClass(u);var h=this._getContainer();t(a).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(a).appendTo(h),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new e(this.element,a,this._getPopperConfig(u)),t(a).addClass(“show”),“ontouchstart”in document.documentElement&&t(document.body).children().on(“mouseover”,null,t.noop);var f=function(){i.config.animation&&i._fixTransition();var e=i._hoverState;i._hoverState=null,t(i.element).trigger(i.constructor.Event.SHOWN),“out”===e&&i._leave(null,i)};if(t(this.tip).hasClass(“fade”)){var g=n.getTransitionDurationFromElement(this.tip);t(this.tip).one(n.TRANSITION_END,f).emulateTransitionEnd(g)}else f()}},o.hide=function(e){var i=this,o=this.getTipElement(),r=t.Event(this.constructor.Event.HIDE),s=function(){“show”!==i._hoverState&&o.parentNode&&o.parentNode.removeChild(o),i._cleanTipClass(),i.element.removeAttribute(“aria-describedby”),t(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),e&&e()};if(t(this.element).trigger®,!r.isDefaultPrevented()){if(t(o).removeClass(“show”),“ontouchstart”in document.documentElement&&t(document.body).children().off(“mouseover”,null,t.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,t(this.tip).hasClass(“fade”)){var a=n.getTransitionDurationFromElement(o);t(o).one(n.TRANSITION_END,s).emulateTransitionEnd(a)}else s();this._hoverState=“”}},o.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},o.isWithContent=function(){return Boolean(this.getTitle())},o.addAttachmentClass=function(e){t(this.getTipElement()).addClass(“bs-tooltip-”+e)},o.getTipElement=function(){return this.tip=this.tip||t(this.config.template),this.tip},o.setContent=function(){var e=this.getTipElement();this.setElementContent(t(e.querySelectorAll(“.tooltip-inner”)),this.getTitle()),t(e).removeClass(“fade show”)},o.setElementContent=function(e,n){“object”!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=a(n,this.config.whiteList,this.config.sanitizeFn)),e.html(n)):e.text(n):this.config.html?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text())},o.getTitle=function(){var t=this.element.getAttribute(“data-original-title”);return t||(t=“function”==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},o._getPopperConfig=function(t){var e=this;return _objectSpread({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:“.arrow”},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},{},this.config.popperConfig)},o._getOffset=function(){var t=this,e={};return“function”==typeof this.config.offset?e.fn=function(e){return e.offsets=_objectSpread({},e.offsets,{},t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},o._getContainer=function(){return!1===this.config.container?document.body:n.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},o._getAttachment=function(t){return p},o._setListeners=function(){var e=this;this.config.trigger.split(“ ”).forEach(function(n){if(“click”===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(“manual”!==n){var i=“hover”===n?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o=“hover”===n?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(i,e.config.selector,function(t){return e._enter(t)}).on(o,e.config.selector,function(t){return e._leave(t)})}}),this._hideModalHandler=function(){e.element&&e.hide()},t(this.element).closest(“.modal”).on(“hide.bs.modal”,this._hideModalHandler),this.config.selector?this.config=_objectSpread({},this.config,{trigger:“manual”,selector:“”}):this._fixTitle()},o._fixTitle=function(){var t=typeof this.element.getAttribute(“data-original-title”);(this.element.getAttribute(“title”)||“string”!==t)&&(this.element.setAttribute(“data-original-title”,this.element.getAttribute(“title”)||“”),this.element.setAttribute(“title”,“”))},o._enter=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger=!0),t(n.getTipElement()).hasClass(“show”)||“show”===n._hoverState?n._hoverState=“show”:(clearTimeout(n._timeout),n._hoverState=“show”,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(function(){“show”===n._hoverState&&n.show()},n.config.delay.show):n.show())},o._leave=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=“out”,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(function(){“out”===n._hoverState&&n.hide()},n.config.delay.hide):n.hide())},o._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger)return!0;return!1},o._getConfig=function(e){var i=t(this.element).data();return Object.keys(i).forEach(function(t){-1!==f.indexOf(t)&&delete i}),“number”==typeof(e=_objectSpread({},this.constructor.Default,{},i,{},“object”==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),“number”==typeof e.title&&(e.title=e.title.toString()),“number”==typeof e.content&&(e.content=e.content.toString()),n.typeCheckConfig(l,e,this.constructor.DefaultType),e.sanitize&&(e.template=a(e.template,e.whiteList,e.sanitizeFn)),e},o._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default!==this.config&&(t=this.config);return t},o._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr(“class”).match(h);null!==n&&n.length&&e.removeClass(n.join(“”))},o._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},o._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute(“x-placement”)&&(t(e).removeClass(“fade”),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},i._jQueryInterface=function(e){return this.each(function(){var n=t(this).data(“bs.tooltip”),o=“object”==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new i(this,o),t(this).data(“bs.tooltip”,n)),“string”==typeof e)){if(“undefined”==typeof n)throw new TypeError('No method named “'e
‘”’);n()}})},_createClass(i,null,[{key:“VERSION”,get:function(){return“4.5.2”}},{key:“Default”,get:function(){return d}},{key:“NAME”,get:function(){return l}},{key:“DATA_KEY”,get:function(){return“bs.tooltip”}},{key:“Event”,get:function(){return m}},{key:“EVENT_KEY”,get:function(){return c}},{key:“DefaultType”,get:function(){return g}}]),i}();return t.fn=v._jQueryInterface,t.fn.Constructor=v,t.fn.noConflict=function(){return t.fn=u,v._jQueryInterface},v}); //# sourceMappingURL=mekari-ui-tooltip.min.js.map