File "tippy.js"

Full Path: /home/warrior1/public_html/wp-content/plugins/file-manager/libs/js/tippy-v0.2.8/tippy.js
File size: 30.29 KB
MIME-type: text/plain
Charset: utf-8

!function(t){function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=4)}([function(t,e,i){"use strict";i(2),i(1)},function(t,e,i){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}(),s=i(3),a=function(t){return t&&t.__esModule?t:{default:t}}(s),l=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,t),"addEventListener"in window&&!/MSIE 9/i.test(navigator.userAgent)&&!window.operamini){if(this.callbacks={},this.settings=this._applyGlobalSettings(i),this.classNames={popper:"tippy-popper",tooltip:"tippy-tooltip",content:"tippy-tooltip-content"},e instanceof Element?this.tooltippedEls=[e]:this.tooltippedEls=[].slice.call(document.querySelectorAll(e)),t.bus||(t.bus={refs:[],listeners:{}}),!t.bus.listeners.touchstart){t.bus.listeners.touchstart=!0;var n=function e(){t.touchUser=!0,document.body.classList.add("tippy-touch"),window.removeEventListener("touchstart",e)};window.addEventListener("touchstart",n)}this._createTooltips(),this._handleDocumentHidingEvents()}}return r(t,[{key:"_setMaps",value:function(){t.bus.popperMap=t.bus.refs.map(function(t){return t.popper}),t.bus.tooltippedElMap=t.bus.refs.map(function(t){return t.tooltippedEl})}},{key:"_closest",value:function(t,e){if(!Element.prototype.matches)if(t.matchesSelector)Element.prototype.matches=Element.prototype.matchesSelector;else if(t.webkitMatchesSelector)Element.prototype.matches=Element.prototype.webkitMatchesSelector;else if(t.mozMatchesSelector)Element.prototype.matches=Element.prototype.mozMatchesSelector;else{if(!t.msMatchesSelector)return t;Element.prototype.matches=Element.prototype.msMatchesSelector}return Element.prototype.closest||(Element.prototype.closest=function(t){for(var e=this;e;){if(e.matches(t))return e;e=e.parentElement}}),t.closest(e)}},{key:"_applyGlobalSettings",value:function(t){this.callbacks.beforeShown=t.beforeShown||new Function,this.callbacks.shown=t.shown||new Function,this.callbacks.beforeHidden=t.beforeHidden||new Function,this.callbacks.hidden=t.hidden||new Function;var e={html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,delay:0,trigger:"mouseenter focus",duration:400,interactive:!1,theme:"dark",offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,popperOptions:{}};return{html:t.html||e.html,position:t.position||e.position,animation:t.animation||e.animation,animateFill:t.animateFill!==!1&&(t.animateFill||e.animateFill),arrow:t.arrow||e.arrow,delay:t.delay||e.delay,trigger:t.trigger||e.trigger,duration:0===t.duration?0:t.duration||e.duration,interactive:t.interactive||e.interactive,theme:t.theme||e.theme,offset:t.offset||e.offset,hideOnClick:t.hideOnClick!==!1&&(t.hideOnClick||e.hideOnClick),multiple:t.multiple||e.multiple,followCursor:t.followCursor||e.followCursor,popperOptions:t.popperOptions||e.popperOptions}}},{key:"_hideAllPoppers",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t.bus.refs.forEach(function(t){document.body.contains(t.popper)&&(i?t.popper!==i.popper&&e.hide(t.popper):e.hide(t.popper))})}},{key:"_handleDocumentHidingEvents",value:function(){var e=this,i=function(t){var i=e._closest(t,"[data-tooltipped]"),o=e._closest(t,"."+e.classNames.popper),n={};return i?(n.type="tooltippedEl",n.target=i):o?(n.type="popper",n.target=o):n=null,n},o=function(e){var o=-1,n=-1,r=i(e);return r&&("tooltippedEl"===r.type?o=t.bus.tooltippedElMap.indexOf(r.target):"popper"===r.type&&(n=t.bus.popperMap.indexOf(r.target))),{tooltippedElIndex:o,popperIndex:n}},n=function(i){var n=o(i.target),r=n.tooltippedElIndex!==-1;if(n.popperIndex!==-1&&t.bus.refs[n.popperIndex].settings.interactive)return;if(r){var s=t.bus.refs[n.tooltippedElIndex];if(!s.settings.multiple&&(s.settings.trigger.indexOf("click")!==-1||t.touchUser))return void e._hideAllPoppers(s);if(!s.settings.hideOnClick||s.settings.trigger.indexOf("click")!==-1)return}e._hideAllPoppers()};t.bus.listeners.click||(t.bus.listeners={click:n},document.addEventListener("click",n))}},{key:"_createPopperInstance",value:function(t,e,i){var o=n({placement:i.position},i.popperOptions||{},{modifiers:n({},i.popperOptions?i.popperOptions.modifiers:{},{offset:n({offset:parseInt(i.offset)},i.popperOptions&&i.popperOptions.modifiers?i.popperOptions.modifiers.offset:{})})}),r=new a.default(t,e,o);return r.disableEventListeners(),r}},{key:"_createPopperElement",value:function(t,e){var i=document.createElement("div");i.setAttribute("class",this.classNames.popper);var o=document.createElement("div");if(o.setAttribute("class",this.classNames.tooltip+" "+e.theme+" leave"),o.setAttribute("data-animation",e.animation),e.arrow){var n=document.createElement("div");n.setAttribute("x-arrow",""),o.appendChild(n)}if(e.animateFill){o.setAttribute("data-animatefill","");var r=document.createElement("div");r.setAttribute("class","leave"),r.setAttribute("x-circle",""),o.appendChild(r)}var s=document.createElement("div");return s.setAttribute("class",this.classNames.content),e.html?(s.innerHTML=document.getElementById(e.html.replace("#","")).innerHTML,i.classList.add("html-template"),i.setAttribute("tabindex","0"),o.setAttribute("data-template-id",e.html)):s.innerHTML=t,o.appendChild(s),i.appendChild(o),i}},{key:"_applyIndividualSettings",value:function(t){var e=t.getAttribute("data-html")||this.settings.html;e&&"false"!==e||(e=!1);var i=t.getAttribute("data-position")||this.settings.position,o=t.getAttribute("data-animation")||this.settings.animation,n=t.getAttribute("data-animatefill")||this.settings.animateFill;"false"===n&&(n=!1);var r=t.getAttribute("data-arrow")||this.settings.arrow;r&&"false"!==r?n=!1:r=!1;var s=t.getAttribute("data-trigger")||this.settings.trigger;s&&(s=s.trim().split(" "));var a=t.getAttribute("data-theme")||this.settings.theme;a&&(a+="-theme");var l=parseInt(t.getAttribute("data-delay"));l||0===l||(l=this.settings.delay);var p=parseInt(t.getAttribute("data-duration"));p||0===p||(p=this.settings.duration);var f=t.getAttribute("data-interactive")||this.settings.interactive;"false"===f&&(f=!1);var u=parseInt(t.getAttribute("data-offset"));u||0===u||(u=this.settings.offset);var d=t.getAttribute("data-hideonclick")||this.settings.hideOnClick;"false"===d&&(d=!1);var c=t.getAttribute("data-multiple")||this.settings.multiple;"false"===c&&(c=!1);var h=t.getAttribute("data-followcursor")||this.settings.followCursor;return"false"===h&&(h=!1),{html:e,position:i,animation:o,animateFill:n,arrow:r,delay:l,trigger:s,duration:p,interactive:f,theme:a,offset:u,hideOnClick:d,multiple:c,followCursor:h,popperOptions:this.settings.popperOptions}}},{key:"_createTooltips",value:function(){var e=this;this.tooltippedEls.forEach(function(i,o){var n=e._applyIndividualSettings(i),r=i.getAttribute("title");if(null!==r&&""!==r||n.html){i.setAttribute("data-original-title",r||"html"),i.removeAttribute("title"),i.setAttribute("data-tooltipped","");var s=e._createPopperElement(r,n);document.body.appendChild(s);var a=e._createPopperInstance(i,s,n);document.body.removeChild(s);var l=function(t){if(n.interactive&&t.target.classList.add("active"),"click"===t.type&&"visible"===s.style.visibility&&n.hideOnClick)return e.hide(s);if(n.delay){var i=setTimeout(function(){return e.show(s,n.duration)},n.delay);s.setAttribute("data-timeout",i)}else e.show(s,n.duration)},p=function(t){if(n.interactive){var o=function t(o){e._closest(o.target,"."+e.classNames.popper)!==s&&e._closest(o.target,"[data-tooltipped]")!==i&&n.trigger.indexOf("click")===-1&&(document.removeEventListener("mousemove",t),i.classList.remove("active"),e.hide(s))};return void document.addEventListener("mousemove",o)}e.hide(s)},f=function(i){!t.touchUser&&i.relatedTarget&&(e._closest(i.relatedTarget,"."+e.classNames.popper)||e.hide(s))},u=[];n.trigger.forEach(function(t){"manual"!==t&&(i.addEventListener(t,l),u.push({event:t,method:l}),"mouseenter"===t&&(i.addEventListener("mouseleave",p),u.push({event:"mouseleave",method:p})),"focus"===t&&(i.addEventListener("blur",f),u.push({event:"blur",method:f})))}),t.bus.refs.push({tooltippedEl:i,popper:s,settings:n,listeners:u,instance:a}),o===e.tooltippedEls.length-1&&e._setMaps()}})}},{key:"_followCursor",value:function(e){var i=t.bus.refs[t.bus.tooltippedElMap.indexOf(this)],o=i.settings.position,n=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,r=Math.round(i.popper.offsetWidth/2),s=Math.round(i.popper.offsetHeight/2),a=e.clientX-r,l=e.clientY+n-50;"left"===o?(a=e.clientX-2*r-10,l=e.clientY+n-s):"right"===o?(a=e.clientX+15,l=e.clientY+n-s/2):"bottom"===o&&(l=e.clientY+n+10),i.popper.style.WebkitTransform="translate3d("+a+"px, "+l+"px, 0)",i.popper.style.transform="translate3d("+a+"px, "+l+"px, 0)"}},{key:"getPopperElement",value:function(e){try{return t.bus.refs[t.bus.tooltippedElMap.indexOf(e)].popper}catch(t){throw new Error("[Tippy error]: Element does not exist in any Tippy instances")}}},{key:"show",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400;if("visible"!==e.style.visibility){this.callbacks.beforeShown();var n=e.querySelector("."+this.classNames.tooltip),r=e.querySelector("[x-circle]"),s=e.querySelector("[x-arrow]");document.body.appendChild(e);var a=t.bus.refs[t.bus.popperMap.indexOf(e)];if(a.settings.followCursor&&!t.touchUser?a.hasFollowCursorListener||(a.hasFollowCursorListener=!0,a.tooltippedEl.addEventListener("mousemove",this._followCursor)):(a.instance.update(),a.instance.enableEventListeners()),getComputedStyle(e).opacity,getComputedStyle(n).opacity,s&&getComputedStyle(s).opacity,n.style.WebkitTransitionDuration=o+"ms",n.style.transitionDuration=o+"ms",n.classList.add("enter"),n.classList.remove("leave"),r){var l=getComputedStyle(r);l.WebkitTransformOrigin,l.transformOrigin,r.style.WebkitTransitionDuration=o+"ms",r.style.transitionDuration=o+"ms",r.classList.add("enter"),r.classList.remove("leave")}e.style.visibility="visible";var p=function(){"hidden"!==e.style.visibility&&(a.settings.trigger.indexOf("click")!==-1&&e.focus(),i.callbacks.shown())};clearTimeout(a.showTimeout),a.showTimeout=setTimeout(p,o)}}},{key:"hide",value:function(e){var i=this;if(clearTimeout(e.getAttribute("data-timeout")),document.body.contains(e)){this.callbacks.beforeHidden();var o=t.bus.refs[t.bus.popperMap.indexOf(e)];o.tooltippedEl.classList.remove("active");var n=e.querySelector("."+this.classNames.tooltip);n.classList.add("leave"),n.classList.remove("enter");var r=e.querySelector("[x-circle]");r&&(r.classList.add("leave"),r.classList.remove("enter")),e.style.visibility="hidden";var s=0;n.style.transitionDuration?s=parseInt(n.style.transitionDuration.replace("ms","")):n.style.WebkitTransitionDuration&&(s=parseInt(n.style.WebkitTransitionDuration.replace("ms","")));var a=function(){"visible"!==e.style.visibility&&(o.hasFollowCursorListener&&(o.tooltippedEl.removeEventListener("mousemove",i._followCursor),o.hasFollowCursorListener=!1),document.body.contains(e)&&document.body.removeChild(e),o.instance.disableEventListeners(),i.callbacks.hidden())};o.settings.html&&o.settings.trigger.indexOf("click")!==-1&&o.tooltippedEl.focus(),clearTimeout(o.hideTimeout),o.hideTimeout=setTimeout(a,s)}}},{key:"destroy",value:function(e){var i=t.bus.popperMap.indexOf(e),o=t.bus.tooltippedElMap[i];t.bus.refs[i].listeners.forEach(function(t){return o.removeEventListener(t.event,t.method)}),t.bus.popperMap.splice(i,1),t.bus.tooltippedElMap.splice(i,1),t.bus.refs.splice(i,1)}}]),t}();window.Tippy=l,t.exports=l},function(t,e){},function(t,e,i){/**!
 * @fileOverview Kickass library to create and place poppers near their reference elements.
 * @version 1.0.8
 * @license
 * Copyright (c) 2016 Federico Zivolo and contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
!function(e,i){t.exports=i()}(0,function(){"use strict";function t(t){var e=t.offsetParent,i=e&&e.nodeName;return i&&"BODY"!==i&&"HTML"!==i?e:window.document.documentElement}function e(t,e){if(1!==t.nodeType)return[];var i=window.getComputedStyle(t,null);return e?i[e]:i}function i(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function o(t){if(!t||["HTML","BODY","#document"].indexOf(t.nodeName)!==-1)return window.document.body;var n=e(t),r=n.overflow,s=n.overflowX,a=n.overflowY;return/(auto|scroll)/.test(r+a+s)?t:o(i(t))}function n(t){var o=t.nodeName;return"BODY"!==o&&"HTML"!==o&&("fixed"===e(t,"position")||n(i(t)))}function r(e){return n(t(e))?"fixed":"absolute"}function s(t,e){var i="x"===e?"Left":"Top",o="Left"===i?"Right":"Bottom";return Number(t["border"+i+"Width"].split("px")[0])+Number(t["border"+o+"Width"].split("px")[0])}function a(t){var i=navigator.appVersion.indexOf("MSIE 10")!==-1,o=void 0;if(i)try{o=t.getBoundingClientRect()}catch(t){o={}}else o=t.getBoundingClientRect();var n={left:o.left,top:o.top,right:o.right,bottom:o.bottom,width:o.right-o.left,height:o.bottom-o.top};if("HTML"===t.nodeName&&i){var r=window.document.documentElement,a=r.scrollTop,l=r.scrollLeft;n.top-=a,n.bottom-=a,n.left-=l,n.right-=l}var p=o.width-(t.clientWidth||o.right-o.left),f=o.height-(t.clientHeight||o.bottom-o.top);if(p||f){var u=e(t);p-=s(u,"x"),f-=s(u,"y")}return n.right-=p,n.width-=p,n.bottom-=f,n.height-=f,n}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",i="top"===e?"scrollTop":"scrollLeft",o=t.nodeName;if("BODY"===o||"HTML"===o){var n=window.document.documentElement;return(window.document.scrollingElement||n)[i]}return t[i]}function p(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=l(e,"top"),n=l(e,"left"),r=i?-1:1;return t.top+=o*r,t.bottom+=o*r,t.left+=n*r,t.right+=n*r,t}function f(i,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=o(n),f=a(i),u=a(n),d={top:f.top-u.top,left:f.left-u.left,bottom:f.top-u.top+f.height,right:f.left-u.left+f.width,width:f.width,height:f.height};r&&!s?d=p(d,l,!0):t(i).contains(l)&&"BODY"!==l.nodeName&&(d=p(d,n));var c=e(n),h=Number(c.borderTopWidth.split("px")[0]),m=Number(c.borderLeftWidth.split("px")[0]);return d.top-=h,d.bottom-=h,d.left-=m,d.right-=m,d}function u(){var t=window.document.body,e=window.document.documentElement;return{height:Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight),width:Math.max(t.scrollWidth,t.offsetWidth,e.clientWidth,e.scrollWidth,e.offsetWidth)}}function d(t){var e=void 0;if("HTML"===t.nodeName){var i=u();e={width:i.width,height:i.height,left:0,top:0}}else e={width:t.offsetWidth,height:t.offsetHeight,left:t.offsetLeft,top:t.offsetTop};return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function c(e){var i=d(e);if("HTML"!==e.nodeName){var o=t(e),n=c(o);return{width:i.offsetWidth,height:i.offsetHeight,left:i.left+n.left,top:i.top+n.top,right:i.right-n.right,bottom:i.bottom-n.bottom}}return i}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n=o(t),r=l(n,e);return["BODY","HTML"].indexOf(n.nodeName)===-1?r+h(i(n),e):r}function m(e,s,a){var l={top:0,left:0},p=t(e);if("viewport"===a){var d=c(p),m=d.left,v=d.top,b=window.document.documentElement,g=b.clientWidth,y=b.clientHeight;if("fixed"===r(e))l.right=g,l.bottom=y;else{l={top:0-v,right:g-m+h(e,"left"),bottom:y-v+h(e,"top"),left:0-m}}}else{var w=void 0;if(w="scrollParent"===a?o(i(e)):"window"===a?window.document.body:a,"BODY"===w.nodeName){var E=u(),O=E.height,x=E.width;l.right=x,l.bottom=O}else l=f(w,p,n(e))}return l.left+=s,l.top+=s,l.right-=s,l.bottom-=s,l}function v(t,e,i){if(t.indexOf("auto")===-1)return t;var o=m(i,0,"scrollParent"),n={top:e.top-o.top,right:o.right-e.right,bottom:o.bottom-e.bottom,left:e.left-o.left},r=Object.keys(n).sort(function(t,e){return n[e]-n[t]})[0],s=t.split("-")[1];return r+(s?"-"+s:"")}function b(t){var e=!1,i=0,o=document.createElement("span");return new MutationObserver(function(){t(),e=!1}).observe(o,{attributes:!0}),function(){e||(e=!0,o.setAttribute("x-index",i),i+=1)}}function g(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},Z))}}function y(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function w(t,e,i){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===i});var o=y(t,function(t){return t[e]===i});return t.indexOf(o)}function E(t){return st({},t,{right:t.left+t.width,bottom:t.top+t.height})}function O(t){var e=window.getComputedStyle(t),i=parseFloat(e.marginTop)+parseFloat(e.marginBottom),o=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+o,height:t.offsetHeight+i}}function x(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function k(t,e,i,o){o=o.split("-")[0];var n=O(e),r={position:t,width:n.width,height:n.height},s=["right","left"].indexOf(o)!==-1,a=s?"top":"left",l=s?"left":"top",p=s?"height":"width",f=s?"width":"height";return r[a]=i[a]+i[p]/2-n[p]/2,r[l]=o===l?i[l]-n[f]:i[x(l)],r}function L(e,i,o){var n="fixed"===e.position,r=e.isParentTransformed;return f(o,t(n&&r?o:i),n,r)}function M(t){for(var e=[!1,"ms","webkit","moz","o"],i=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length-1;o++){var n=e[o],r=n?""+n+i:t;if(void 0!==window.document.body.style[r])return r}return null}function T(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function C(t,e){return t.some(function(t){var i=t.name;return t.enabled&&i===e})}function A(t,e,i){var o=y(t,function(t){return t.name===e});return!!o&&t.some(function(t){return t.name===i&&t.enabled&&t.order<o.order})}function S(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function N(t){return"BODY"!==t.nodeName&&("none"!==e(t,"transform")||(i(t)?N(i(t)):t))}function P(t,e){return window.removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function H(t,e,i){return(void 0===i?t:t.slice(0,w(t,"name",i))).forEach(function(t){t.enabled&&T(t.function)&&(e=t.function(e,t))}),e}function _(t,e){Object.keys(e).forEach(function(i){e[i]!==!1?t.setAttribute(i,e[i]):t.removeAttribute(i)})}function D(t,e){Object.keys(e).forEach(function(i){var o="";["width","height","top","right","bottom","left"].indexOf(i)!==-1&&S(e[i])&&(o="px"),t.style[i]=e[i]+o})}function W(t,e,i,n){var r="BODY"===t.nodeName,s=r?window:t;s.addEventListener(e,i,{passive:!0}),r||W(o(s.parentNode),e,i,n),n.push(s)}function F(t,e,i,n){i.updateBound=n,window.addEventListener("resize",i.updateBound,{passive:!0});var r=o(t);return W(r,"scroll",i.updateBound,i.scrollParents),i.scrollElement=r,i.eventsEnabled=!0,i}function I(t,e){var i={position:t.offsets.popper.position},o={"x-placement":t.placement},n=Math.round(t.offsets.popper.left),r=Math.round(t.offsets.popper.top),s=M("transform");return e.gpuAcceleration&&s?(i[s]="translate3d("+n+"px, "+r+"px, 0)",i.top=0,i.left=0,i.willChange="transform"):(i.left=n,i.top=r,i.willChange="top, left"),D(t.instance.popper,st({},i,t.styles)),_(t.instance.popper,st({},o,t.attributes)),t.offsets.arrow&&D(t.arrowElement,t.offsets.arrow),t}function B(t,e,i,o,n){var r=L(n,e,t);return i.placement=v(i.placement,r,e),e.setAttribute("x-placement",i.placement),i}function j(t,e){if(!A(t.instance.modifiers,"arrow","keepTogether"))return console.warn("WARNING: `keepTogether` modifier is required by arrow modifier in order to work, be sure to include it before `arrow`!"),t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],n=E(t.offsets.popper),r=t.offsets.reference,s=["left","right"].indexOf(o)!==-1,a=s?"height":"width",l=s?"top":"left",p=s?"left":"top",f=s?"bottom":"right",u=O(i)[a];r[f]-u<n[l]&&(t.offsets.popper[l]-=n[l]-(r[f]-u)),r[l]+u>n[f]&&(t.offsets.popper[l]+=r[l]+u-n[f]);var d=r[l]+r[a]/2-u/2,c=d-E(t.offsets.popper)[l];return c=Math.max(Math.min(n[a]-u,c),0),t.arrowElement=i,t.offsets.arrow={},t.offsets.arrow[l]=c,t.offsets.arrow[p]="",t}function R(t){return"end"===t?"start":"start"===t?"end":t}function Y(t,e){if(C(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var i=m(t.instance.popper,e.padding,e.boundariesElement),o=t.placement.split("-")[0],n=x(o),r=t.placement.split("-")[1]||"",s=[];return s="flip"===e.behavior?[o,n]:e.behavior,s.forEach(function(a,l){if(o!==a||s.length===l+1)return t;o=t.placement.split("-")[0],n=x(o);var p=E(t.offsets.popper),f=t.offsets.reference,u=Math.floor,d="left"===o&&u(p.right)>u(f.left)||"right"===o&&u(p.left)<u(f.right)||"top"===o&&u(p.bottom)>u(f.top)||"bottom"===o&&u(p.top)<u(f.bottom),c=u(p.left)<u(i.left),h=u(p.right)>u(i.right),m=u(p.top)<u(i.top),v=u(p.bottom)>u(i.bottom),b="left"===o&&c||"right"===o&&h||"top"===o&&m||"bottom"===o&&v,g=["top","bottom"].indexOf(o)!==-1,y=!!e.flipVariations&&(g&&"start"===r&&c||g&&"end"===r&&h||!g&&"start"===r&&m||!g&&"end"===r&&v);(d||b||y)&&(t.flipped=!0,(d||b)&&(o=s[l+1]),y&&(r=R(r)),t.placement=o+(r?"-"+r:""),t.offsets.popper=k(t.instance.state.position,t.instance.popper,t.offsets.reference,t.placement),t=H(t.instance.modifiers,t,"flip"))}),t}function q(t){var e=E(t.offsets.popper),i=t.offsets.reference,o=t.placement.split("-")[0],n=Math.floor,r=["top","bottom"].indexOf(o)!==-1,s=r?"right":"bottom",a=r?"left":"top",l=r?"width":"height";return e[s]<n(i[a])&&(t.offsets.popper[a]=n(i[a])-e[l]),e[a]>n(i[s])&&(t.offsets.popper[a]=n(i[s])),t}function U(t,e){var i=t.placement,o=t.offsets.popper,n=void 0;return S(e.offset)?n=[e.offset,0]:(n=e.offset.split(" "),n=n.map(function(e,o){var n=e.match(/(\d*\.?\d*)(.*)/),r=+n[1],s=n[2],a=i.indexOf("right")!==-1||i.indexOf("left")!==-1;1===o&&(a=!a);var l=a?"height":"width";if(0===s.indexOf("%")){var p=void 0;switch(s){case"%p":p=t.offsets.popper;break;case"%":case"$r":default:p=t.offsets.reference}return E(p)[l]/100*r}if("vh"===s||"vw"===s){return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r}return"px"===s?+r:+e})),t.placement.indexOf("left")!==-1?(o.top+=n[0],o.left-=n[1]||0):t.placement.indexOf("right")!==-1?(o.top+=n[0],o.left+=n[1]||0):t.placement.indexOf("top")!==-1?(o.left+=n[0],o.top-=n[1]||0):t.placement.indexOf("bottom")!==-1&&(o.left+=n[0],o.top+=n[1]||0),t}function z(e,i){var o=i.boundariesElement||t(e.instance.popper),n=m(e.instance.popper,i.padding,o);i.boundaries=n;var r=i.priority,s=E(e.offsets.popper),a={primary:function(t){var e=s[t];return s[t]<n[t]&&!i.escapeWithReference&&(e=Math.max(s[t],n[t])),rt({},t,e)},secondary:function(t){var e="right"===t?"left":"top",o=s[e];return s[t]>n[t]&&!i.escapeWithReference&&(o=Math.min(s[e],n[t]-("right"===t?s.width:s.height))),rt({},e,o)}};return r.forEach(function(t){var e=["left","top"].indexOf(t)!==-1?"primary":"secondary";s=st({},s,a[e](t))}),e.offsets.popper=s,e}function G(t){var e=t.placement,i=e.split("-")[0],o=e.split("-")[1];if(o){var n=t.offsets.reference,r=E(t.offsets.popper),s=["bottom","top"].indexOf(i)!==-1,a=s?"left":"top",l=s?"width":"height",p={start:rt({},a,n[a]),end:rt({},a,n[a]+n[l]-r[l])};t.offsets.popper=st({},r,p[o])}return t}function X(t){if(!A(t.instance.modifiers,"hide","preventOverflow"))return console.warn("WARNING: preventOverflow modifier is required by hide modifier in order to work, be sure to include it before hide!"),t;var e=t.offsets.reference,i=y(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<i.top||e.left>i.right||e.top>i.bottom||e.right<i.left){if(t.hide===!0)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(t.hide===!1)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function V(t){var e=t.placement,i=e.split("-")[0],o=E(t.offsets.popper),n=E(t.offsets.reference),r=["left","right"].indexOf(i)!==-1,s=["top","left"].indexOf(i)===-1;return o[r?"left":"top"]=n[e]-(s?o[r?"width":"height"]:0),t.placement=x(e),t.offsets.popper=E(o),t}for(var $=["native code","[object MutationObserverConstructor]"],J=function(t){return $.some(function(e){return(t||"").toString().indexOf(e)>-1})},K="undefined"!=typeof window,Q=["Edge","Trident","Firefox"],Z=0,tt=0;tt<Q.length;tt+=1)if(K&&navigator.userAgent.indexOf(Q[tt])>=0){Z=1;break}var et=K&&J(window.MutationObserver),it=et?b:g,ot=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},nt=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}(),rt=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},st=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},at={computeAutoPlacement:v,debounce:it,findIndex:w,getBordersSize:s,getBoundaries:m,getBoundingClientRect:a,getClientRect:E,getOffsetParent:t,getOffsetRect:d,getOffsetRectRelativeToCustomParent:f,getOuterSizes:O,getParentNode:i,getPopperOffsets:k,getPosition:r,getReferenceOffsets:L,getScroll:l,getScrollParent:o,getStyleComputedProperty:e,getSupportedPropertyName:M,getTotalScroll:h,getWindowSizes:u,includeScroll:p,isFixed:n,isFunction:T,isModifierEnabled:C,isModifierRequired:A,isNative:J,isNumeric:S,isTransformed:N,removeEventListeners:P,runModifiers:H,setAttributes:_,setStyles:D,setupEventListeners:F},lt={shift:{order:100,enabled:!0,function:G},offset:{order:200,enabled:!0,function:U,offset:0},preventOverflow:{order:300,enabled:!0,function:z,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,function:q},arrow:{order:500,enabled:!0,function:j,element:"[x-arrow]"},flip:{order:600,enabled:!0,function:Y,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,function:V},hide:{order:800,enabled:!0,function:X},applyStyle:{order:900,enabled:!0,gpuAcceleration:!0,function:I,onLoad:B}},pt={placement:"bottom",eventsEnabled:!0,onCreate:function(){},onUpdate:function(){},modifiers:lt},ft=function(){function t(e,i){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ot(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=it(this.update.bind(this)),this.options=st({},t.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e.jquery?e[0]:e,this.popper=i.jquery?i[0]:i,this.modifiers=Object.keys(t.Defaults.modifiers).map(function(e){return st({name:e},t.Defaults.modifiers[e])}),this.modifiers=this.modifiers.map(function(t){var e=n.modifiers&&n.modifiers[t.name]||{};return st({},t,e)}),n.modifiers&&(this.options.modifiers=st({},t.Defaults.modifiers,n.modifiers),Object.keys(n.modifiers).forEach(function(e){if(void 0===t.Defaults.modifiers[e]){var i=n.modifiers[e];i.name=e,o.modifiers.push(i)}})),this.state.position=r(this.reference),this.modifiers=this.modifiers.sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&T(t.onLoad)&&t.onLoad(o.reference,o.popper,o.options,t,o.state)}),this.state.isParentTransformed=N(this.popper.parentNode),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return nt(t,[{key:"update",value:function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};this.state.position=r(this.reference),D(this.popper,{position:this.state.position}),t.offsets.reference=L(this.state,this.popper,this.reference),t.placement=v(this.options.placement,t.offsets.reference,this.popper),t.originalPlacement=this.options.placement,t.offsets.popper=k(this.state,this.popper,t.offsets.reference,t.placement),t=H(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}},{key:"destroy",value:function(){return this.state.isDestroyed=!0,C(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[M("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}},{key:"enableEventListeners",value:function(){this.state.eventsEnabled||(this.state=F(this.reference,this.options,this.state,this.scheduleUpdate))}},{key:"disableEventListeners",value:function(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=P(this.reference,this.state))}}]),t}();return ft.Utils=at,ft.placements=["auto","auto-start","auto-end","top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],ft.Defaults=pt,ft})},function(t,e,i){t.exports=i(0)}]);