2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00
Files
bootstrap/docs/assets/js/vendor/popper.min.js
T
2017-05-14 11:41:19 +02:00

3 lines
19 KiB
JavaScript

var _Mathfloor=Math.floor,_Mathmin=Math.min,_Mathround=Math.round,_Mathmax=Math.max,_typeof='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e};(function(e,t){'object'===('undefined'==typeof exports?'undefined':_typeof(exports))&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(ye,we){if(1!==ye.nodeType)return[];var xe=window.getComputedStyle(ye,null);return we?xe[we]:xe}function t(ye){return'HTML'===ye.nodeName?ye:ye.parentNode||ye.host}function o(ye){if(!ye||-1!==['HTML','BODY','#document'].indexOf(ye.nodeName))return window.document.body;var we=e(ye),xe=we.overflow,ve=we.overflowX,Oe=we.overflowY;return /(auto|scroll)/.test(xe+Oe+ve)?ye:o(t(ye))}function r(ye){return'HTML'===ye.nodeName||ye.firstElementChild.offsetParent===ye}function s(ye){return null===ye.parentNode?ye:s(ye.parentNode)}function p(ye){var we=ye&&ye.offsetParent,xe=we&&we.nodeName;return xe&&'BODY'!==xe&&'HTML'!==xe?we:window.document.documentElement}function f(ye,we){if(!ye||!ye.nodeType||!we||!we.nodeType)return window.document.documentElement;var xe=ye.compareDocumentPosition(we)&Node.DOCUMENT_POSITION_FOLLOWING,ve=xe?ye:we,Oe=xe?we:ye,Ee=document.createRange();Ee.setStart(ve,0),Ee.setEnd(Oe,0);var Se=Ee.commonAncestorContainer;if(ye!==Se&&we!==Se)return r(Se)?Se:p(Se);var Le=s(ye);return Le.host?f(Le.host,we):f(ye,s(we).host)}function d(ye){var we=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',xe='top'===we?'scrollTop':'scrollLeft',ve=ye.nodeName;if('BODY'===ve||'HTML'===ve){var Oe=window.document.documentElement,Ee=window.document.scrollingElement||Oe;return Ee[xe]}return ye[xe]}function l(ye,we){var xe=2<arguments.length&&void 0!==arguments[2]&&arguments[2],ve=d(we,'top'),Oe=d(we,'left'),Ee=xe?-1:1;return ye.top+=ve*Ee,ye.bottom+=ve*Ee,ye.left+=Oe*Ee,ye.right+=Oe*Ee,ye}function m(ye,we){var xe='x'===we?'Left':'Top',ve='Left'==xe?'Right':'Bottom';return+ye['border'+xe+'Width'].split('px')[0]+ +ye['border'+ve+'Width'].split('px')[0]}function c(){var ye=window.document.body,we=window.document.documentElement;return{height:_Mathmax(ye.scrollHeight,ye.offsetHeight,we.clientHeight,we.scrollHeight,we.offsetHeight),width:_Mathmax(ye.scrollWidth,ye.offsetWidth,we.clientWidth,we.scrollWidth,we.offsetWidth)}}function h(ye){return re({},ye,{right:ye.left+ye.width,bottom:ye.top+ye.height})}function u(ye){var we=-1!==navigator.appVersion.indexOf('MSIE 10'),xe={};if(we){try{xe=ye.getBoundingClientRect()}catch(He){}var ve=d(ye,'top'),Oe=d(ye,'left');xe.top+=ve,xe.left+=Oe}else xe=ye.getBoundingClientRect();var Se,Le,Ee={left:xe.left,top:xe.top,width:xe.right-xe.left,height:xe.bottom-xe.top};if('HTML'===ye.nodeName){var Ne=c();Se=Ne.width,Le=Ne.height}else Se=ye.clientWidth||Ee.right-Ee.left,Le=ye.clientHeight||Ee.bottom-Ee.top;var Te=ye.offsetWidth-Se,Pe=ye.offsetHeight-Le;if(Te||Pe){var We=e(ye);Te-=m(We,'x'),Pe-=m(We,'y'),Ee.width-=Te,Ee.height-=Pe}return h(Ee)}function g(ye,we){var xe=-1!==navigator.appVersion.indexOf('MSIE 10'),ve=u(ye),Oe=u(we),Ee=o(ye),Se={top:ve.top-Oe.top,left:ve.left-Oe.left,bottom:ve.top-Oe.top+ve.height,right:ve.left-Oe.left+ve.width,width:ve.width,height:ve.height},Le='HTML'===we.nodeName;if(Le||'BODY'===we.nodeName){var Ne=e(we),Te=xe&&Le?0:+Ne.borderTopWidth.split('px')[0],Pe=xe&&Le?0:+Ne.borderLeftWidth.split('px')[0],We=xe&&Le?0:+Ne.marginTop.split('px')[0],He=xe&&Le?0:+Ne.marginLeft.split('px')[0];Se.top-=Te-We,Se.bottom-=Te-We,Se.left-=Pe-He,Se.right-=Pe-He,Se.marginTop=We,Se.marginLeft=He}return we.contains(Ee)&&(xe||'BODY'!==Ee.nodeName)&&(Se=l(Se,we)),Se}function w(ye){var we=window.document.documentElement,xe=g(ye,we),ve=_Mathmax(we.clientWidth,window.innerWidth||0),Oe=_Mathmax(we.clientHeight,window.innerHeight||0),Ee=d(we),Se=d(we,'left'),Le={top:Ee-xe.top+xe.marginTop,left:Se-xe.left+xe.marginLeft,width:ve,height:Oe};return h(Le)}function v(ye){var we=ye.nodeName;return'BODY'===we||'HTML'===we?!1:'fixed'===e(ye,'position')||v(t(ye))}function O(ye,we,xe,ve){var Oe={top:0,left:0},Ee=f(ye,we);if('viewport'===ve)Oe=w(Ee);else{var Se;'scrollParent'===ve?(Se=o(t(ye)),'BODY'===Se.nodeName&&(Se=window.document.documentElement)):'window'===ve?Se=window.document.documentElement:Se=ve;var Le=g(Se,Ee);if('HTML'===Se.nodeName&&!v(Ee)){var Ne=c(),Te=Ne.height,Pe=Ne.width;Oe.top+=Le.top-Le.marginTop,Oe.bottom=Te+Le.top,Oe.left+=Le.left-Le.marginLeft,Oe.right=Pe+Le.left}else Oe=Le}return Oe.left+=xe,Oe.top+=xe,Oe.right-=xe,Oe.bottom-=xe,Oe}function E(ye,we,xe,ve){if(-1===ye.indexOf('auto'))return ye;var Oe=O(xe,ve,0,'scrollParent'),Ee={top:we.top-Oe.top,right:Oe.right-we.right,bottom:Oe.bottom-we.bottom,left:we.left-Oe.left},Se=Object.keys(Ee).sort(function(Ne,Te){return Ee[Te]-Ee[Ne]})[0],Le=ye.split('-')[1];return Se+(Le?'-'+Le:'')}function N(ye,we){return Array.prototype.find?ye.find(we):ye.filter(we)[0]}function T(ye,we,xe){if(Array.prototype.findIndex)return ye.findIndex(function(Oe){return Oe[we]===xe});var ve=N(ye,function(Oe){return Oe[we]===xe});return ye.indexOf(ve)}function W(ye){var we=window.getComputedStyle(ye),xe=parseFloat(we.marginTop)+parseFloat(we.marginBottom),ve=parseFloat(we.marginLeft)+parseFloat(we.marginRight),Oe={width:ye.offsetWidth+ve,height:ye.offsetHeight+xe};return Oe}function H(ye){var we={left:'right',right:'left',bottom:'top',top:'bottom'};return ye.replace(/left|right|bottom|top/g,function(xe){return we[xe]})}function B(ye,we,xe,ve){ve=ve.split('-')[0];var Oe=W(we),Ee={position:ye,width:Oe.width,height:Oe.height},Se=-1!==['right','left'].indexOf(ve),Le=Se?'top':'left',Ne=Se?'left':'top',Te=Se?'height':'width',Pe=Se?'width':'height';return Ee[Le]=xe[Le]+xe[Te]/2-Oe[Te]/2,Ee[Ne]=ve===Ne?xe[Ne]-Oe[Pe]:xe[H(Ne)],Ee}function C(ye,we,xe){var ve=f(we,xe);return g(xe,ve)}function D(ye){for(var we=[!1,'ms','webkit','moz','o'],xe=ye.charAt(0).toUpperCase()+ye.slice(1),ve=0;ve<we.length-1;ve++){var Oe=we[ve],Ee=Oe?''+Oe+xe:ye;if('undefined'!=typeof window.document.body.style[Ee])return Ee}return null}function M(ye,we){var xe=2<arguments.length&&void 0!==arguments[2]?arguments[2]:'top',ve=o(ye),Oe=0,Ee=v(we);return r('BODY'===ve.nodeName?window.document.documentElement:ve)&&(we.contains(ve)&&Ee||!Ee)&&(Oe=d(ve,xe)),we===ve||-1===['BODY','HTML'].indexOf(ve.nodeName)?Oe+M(t(ve),we,xe):Oe}function k(ye){return ye&&'[object Function]'==={}.toString.call(ye)}function A(ye,we){return ye.some(function(xe){var ve=xe.name,Oe=xe.enabled;return Oe&&ve===we})}function R(ye,we,xe){var ve=N(ye,function(Oe){var Ee=Oe.name;return Ee===we});return!!ve&&ye.some(function(Oe){return Oe.name===xe&&Oe.enabled&&Oe.order<ve.order})}function Y(ye){return''!==ye&&!isNaN(parseFloat(ye))&&isFinite(ye)}function I(ye,we){return window.removeEventListener('resize',we.updateBound),we.scrollParents.forEach(function(xe){xe.removeEventListener('scroll',we.updateBound)}),we.updateBound=null,we.scrollParents=[],we.scrollElement=null,we.eventsEnabled=!1,we}function U(ye,we,xe){var ve=void 0===xe?ye:ye.slice(0,T(ye,'name',xe));return ve.forEach(function(Oe){Oe.enabled&&k(Oe.function)&&(we=Oe.function(we,Oe))}),we}function z(ye,we){Object.keys(we).forEach(function(xe){var ve=we[xe];!1===ve?ye.removeAttribute(xe):ye.setAttribute(xe,we[xe])})}function F(ye,we){Object.keys(we).forEach(function(xe){var ve='';-1!==['width','height','top','right','bottom','left'].indexOf(xe)&&Y(we[xe])&&(ve='px'),ye.style[xe]=we[xe]+ve})}function q(ye,we,xe,ve){var Oe='BODY'===ye.nodeName,Ee=Oe?window:ye;Ee.addEventListener(we,xe,{passive:!0}),Oe||q(o(Ee.parentNode),we,xe,ve),ve.push(Ee)}function j(ye,we,xe,ve){xe.updateBound=ve,window.addEventListener('resize',xe.updateBound,{passive:!0});var Oe=o(ye);return q(Oe,'scroll',xe.updateBound,xe.scrollParents),xe.scrollElement=Oe,xe.eventsEnabled=!0,xe}function X(ye){return'end'===ye?'start':'start'===ye?'end':ye}for(var oe=function classCallCheck(ye,we){if(!(ye instanceof we))throw new TypeError('Cannot call a class as a function')},ie=function(){function ye(we,xe){for(var Oe,ve=0;ve<xe.length;ve++)Oe=xe[ve],Oe.enumerable=Oe.enumerable||!1,Oe.configurable=!0,('value'in Oe)&&(Oe.writable=!0),Object.defineProperty(we,Oe.key,Oe)}return function(we,xe,ve){return xe&&ye(we.prototype,xe),ve&&ye(we,ve),we}}(),ne=function defineProperty(ye,we,xe){return(we in ye)?Object.defineProperty(ye,we,{value:xe,enumerable:!0,configurable:!0,writable:!0}):ye[we]=xe,ye},re=Object.assign||function(ye){for(var xe,we=1;we<arguments.length;we++)for(var ve in xe=arguments[we],xe)Object.prototype.hasOwnProperty.call(xe,ve)&&(ye[ve]=xe[ve]);return ye},se=['native code','[object MutationObserverConstructor]'],pe=function isNative(ye){return se.some(function(we){return-1<(ye||'').toString().indexOf(we)})},fe='undefined'!=typeof window,de=['Edge','Trident','Firefox'],ae=0,le=0;le<de.length;le+=1)if(fe&&0<=navigator.userAgent.indexOf(de[le])){ae=1;break}var me=fe&&pe(window.MutationObserver),ce=me?function(ye){var we=!1,xe=0,ve=document.createElement('span'),Oe=new MutationObserver(function(){ye(),we=!1});return Oe.observe(ve,{attributes:!0}),function(){we||(we=!0,ve.setAttribute('x-index',xe),++xe)}}:function(ye){var we=!1;return function(){we||(we=!0,setTimeout(function(){we=!1,ye()},ae))}},be=function(){function ye(we,xe){var ve=this,Oe=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};oe(this,ye),this.scheduleUpdate=function(){return requestAnimationFrame(ve.update)},this.update=ce(this.update.bind(this)),this.options=re({},ye.Defaults,Oe),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=we.jquery?we[0]:we,this.popper=xe.jquery?xe[0]:xe,F(this.popper,{position:'absolute'}),this.modifiers=Object.keys(ye.Defaults.modifiers).map(function(Se){return re({name:Se},ye.Defaults.modifiers[Se])}),this.modifiers=this.modifiers.map(function(Se){var Le=Oe.modifiers&&Oe.modifiers[Se.name]||{};return re({},Se,Le)}),Oe.modifiers&&(this.options.modifiers=re({},ye.Defaults.modifiers,Oe.modifiers),Object.keys(Oe.modifiers).forEach(function(Se){if(void 0===ye.Defaults.modifiers[Se]){var Le=Oe.modifiers[Se];Le.name=Se,ve.modifiers.push(Le)}})),this.modifiers=this.modifiers.sort(function(Se,Le){return Se.order-Le.order}),this.modifiers.forEach(function(Se){Se.enabled&&k(Se.onLoad)&&Se.onLoad(ve.reference,ve.popper,ve.options,Se,ve.state)}),this.update();var Ee=this.options.eventsEnabled;Ee&&this.enableEventListeners(),this.state.eventsEnabled=Ee}return ie(ye,[{key:'update',value:function(){if(!this.state.isDestroyed){var xe={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};xe.offsets.reference=C(this.state,this.popper,this.reference),xe.placement=E(this.options.placement,xe.offsets.reference,this.popper,this.reference),xe.originalPlacement=this.options.placement,xe.offsets.popper=B(this.state,this.popper,xe.offsets.reference,xe.placement),xe=U(this.modifiers,xe),this.state.isCreated?this.options.onUpdate(xe):(this.state.isCreated=!0,this.options.onCreate(xe))}}},{key:'destroy',value:function(){return this.state.isDestroyed=!0,A(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[D('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}},{key:'enableEventListeners',value:function(){this.state.eventsEnabled||(this.state=j(this.reference,this.options,this.state,this.scheduleUpdate))}},{key:'disableEventListeners',value:function(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=I(this.reference,this.state))}}]),ye}();return be.Utils={computeAutoPlacement:E,debounce:ce,findIndex:T,getBordersSize:m,getBoundaries:O,getBoundingClientRect:u,getClientRect:h,getOffsetParent:p,getOffsetRect:function(ye){var we;if('HTML'===ye.nodeName){var xe=c(),ve=xe.width,Oe=xe.height;we={width:ve,height:Oe,left:0,top:0}}else we={width:ye.offsetWidth,height:ye.offsetHeight,left:ye.offsetLeft,top:ye.offsetTop};return h(we)},getOffsetRectRelativeToArbitraryNode:g,getOuterSizes:W,getParentNode:t,getPopperOffsets:B,getReferenceOffsets:C,getScroll:d,getScrollParent:o,getStyleComputedProperty:e,getSupportedPropertyName:D,getTotalScroll:M,getWindowSizes:c,isFixed:v,isFunction:k,isModifierEnabled:A,isModifierRequired:R,isNative:pe,isNumeric:Y,removeEventListeners:I,runModifiers:U,setAttributes:z,setStyles:F,setupEventListeners:j},be.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'],be.Defaults={placement:'bottom',eventsEnabled:!0,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,function:function(ye){var we=ye.placement,xe=we.split('-')[0],ve=we.split('-')[1];if(ve){var Oe=ye.offsets.reference,Ee=h(ye.offsets.popper),Se=-1!==['bottom','top'].indexOf(xe),Le=Se?'left':'top',Ne=Se?'width':'height',Te={start:ne({},Le,Oe[Le]),end:ne({},Le,Oe[Le]+Oe[Ne]-Ee[Ne])};ye.offsets.popper=re({},Ee,Te[ve])}return ye}},offset:{order:200,enabled:!0,function:function(ye,we){var Oe,xe=ye.placement,ve=ye.offsets.popper;return Y(we.offset)?Oe=[we.offset,0]:(Oe=we.offset.split(' '),Oe=Oe.map(function(Ee,Se){var Le=Ee.match(/(\d*\.?\d*)(.*)/),Ne=+Le[1],Te=Le[2],Pe=-1!==xe.indexOf('right')||-1!==xe.indexOf('left');1===Se&&(Pe=!Pe);var We=Pe?'height':'width';if(0===Te.indexOf('%')){var He;switch(Te){case'%p':He=ye.offsets.popper;break;case'%':case'$r':default:He=ye.offsets.reference;}var Be=h(He),Ce=Be[We];return Ce/100*Ne}if('vh'===Te||'vw'===Te){var De;return De='vh'===Te?_Mathmax(document.documentElement.clientHeight,window.innerHeight||0):_Mathmax(document.documentElement.clientWidth,window.innerWidth||0),De/100*Ne}return'px'===Te?+Ne:+Ee})),-1===ye.placement.indexOf('left')?-1===ye.placement.indexOf('right')?-1===ye.placement.indexOf('top')?-1!==ye.placement.indexOf('bottom')&&(ve.left+=Oe[0],ve.top+=Oe[1]||0):(ve.left+=Oe[0],ve.top-=Oe[1]||0):(ve.top+=Oe[0],ve.left+=Oe[1]||0):(ve.top+=Oe[0],ve.left-=Oe[1]||0),ye},offset:0},preventOverflow:{order:300,enabled:!0,function:function(ye,we){var xe=we.boundariesElement||p(ye.instance.popper),ve=O(ye.instance.popper,ye.instance.reference,we.padding,xe);we.boundaries=ve;var Oe=we.priority,Ee=h(ye.offsets.popper),Se={primary:function(Ne){var Te=Ee[Ne];return Ee[Ne]<ve[Ne]&&!we.escapeWithReference&&(Te=_Mathmax(Ee[Ne],ve[Ne])),ne({},Ne,Te)},secondary:function(Ne){var Te='right'===Ne?'left':'top',Pe=Ee[Te];return Ee[Ne]>ve[Ne]&&!we.escapeWithReference&&(Pe=_Mathmin(Ee[Te],ve[Ne]-('right'===Ne?Ee.width:Ee.height))),ne({},Te,Pe)}};return Oe.forEach(function(Le){var Ne=-1===['left','top'].indexOf(Le)?'secondary':'primary';Ee=re({},Ee,Se[Ne](Le))}),ye.offsets.popper=Ee,ye},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,function:function(ye){var we=h(ye.offsets.popper),xe=ye.offsets.reference,ve=ye.placement.split('-')[0],Oe=_Mathfloor,Ee=-1!==['top','bottom'].indexOf(ve),Se=Ee?'right':'bottom',Le=Ee?'left':'top',Ne=Ee?'width':'height';return we[Se]<Oe(xe[Le])&&(ye.offsets.popper[Le]=Oe(xe[Le])-we[Ne]),we[Le]>Oe(xe[Se])&&(ye.offsets.popper[Le]=Oe(xe[Se])),ye}},arrow:{order:500,enabled:!0,function:function(ye,we){if(!R(ye.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`!'),ye;var xe=we.element;if('string'==typeof xe){if(xe=ye.instance.popper.querySelector(xe),!xe)return ye;}else if(!ye.instance.popper.contains(xe))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),ye;var ve=ye.placement.split('-')[0],Oe=h(ye.offsets.popper),Ee=ye.offsets.reference,Se=-1!==['left','right'].indexOf(ve),Le=Se?'height':'width',Ne=Se?'top':'left',Te=Se?'left':'top',Pe=Se?'bottom':'right',We=W(xe)[Le];Ee[Pe]-We<Oe[Ne]&&(ye.offsets.popper[Ne]-=Oe[Ne]-(Ee[Pe]-We)),Ee[Ne]+We>Oe[Pe]&&(ye.offsets.popper[Ne]+=Ee[Ne]+We-Oe[Pe]);var He=Ee[Ne]+Ee[Le]/2-We/2,Be=He-h(ye.offsets.popper)[Ne];return Be=_Mathmax(_Mathmin(Oe[Le]-We,Be),0),ye.arrowElement=xe,ye.offsets.arrow={},ye.offsets.arrow[Ne]=Be,ye.offsets.arrow[Te]='',ye},element:'[x-arrow]'},flip:{order:600,enabled:!0,function:function(ye,we){if(A(ye.instance.modifiers,'inner'))return ye;if(ye.flipped&&ye.placement===ye.originalPlacement)return ye;var xe=O(ye.instance.popper,ye.instance.reference,we.padding,we.boundariesElement),ve=ye.placement.split('-')[0],Oe=H(ve),Ee=ye.placement.split('-')[1]||'',Se=[];return Se='flip'===we.behavior?[ve,Oe]:we.behavior,Se.forEach(function(Le,Ne){if(ve!==Le||Se.length===Ne+1)return ye;ve=ye.placement.split('-')[0],Oe=H(ve);var Te=h(ye.offsets.popper),Pe=ye.offsets.reference,We=_Mathfloor,He='left'===ve&&We(Te.right)>We(Pe.left)||'right'===ve&&We(Te.left)<We(Pe.right)||'top'===ve&&We(Te.bottom)>We(Pe.top)||'bottom'===ve&&We(Te.top)<We(Pe.bottom),Be=We(Te.left)<We(xe.left),Ce=We(Te.right)>We(xe.right),De=We(Te.top)<We(xe.top),Me=We(Te.bottom)>We(xe.bottom),ke='left'===ve&&Be||'right'===ve&&Ce||'top'===ve&&De||'bottom'===ve&&Me,Ae=-1!==['top','bottom'].indexOf(ve),Re=!!we.flipVariations&&(Ae&&'start'===Ee&&Be||Ae&&'end'===Ee&&Ce||!Ae&&'start'===Ee&&De||!Ae&&'end'===Ee&&Me);(He||ke||Re)&&(ye.flipped=!0,(He||ke)&&(ve=Se[Ne+1]),Re&&(Ee=X(Ee)),ye.placement=ve+(Ee?'-'+Ee:''),ye.offsets.popper=B(ye.instance.state.position,ye.instance.popper,ye.offsets.reference,ye.placement),ye=U(ye.instance.modifiers,ye,'flip'))}),ye},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,function:function(ye){var we=ye.placement,xe=we.split('-')[0],ve=h(ye.offsets.popper),Oe=h(ye.offsets.reference),Ee=-1!==['left','right'].indexOf(xe),Se=-1===['top','left'].indexOf(xe);return ve[Ee?'left':'top']=Oe[we]-(Se?ve[Ee?'width':'height']:0),ye.placement=H(we),ye.offsets.popper=h(ve),ye}},hide:{order:800,enabled:!0,function:function(ye){if(!R(ye.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!'),ye;var we=ye.offsets.reference,xe=N(ye.instance.modifiers,function(ve){return'preventOverflow'===ve.name}).boundaries;if(we.bottom<xe.top||we.left>xe.right||we.top>xe.bottom||we.right<xe.left){if(!0===ye.hide)return ye;ye.hide=!0,ye.attributes['x-out-of-boundaries']=''}else{if(!1===ye.hide)return ye;ye.hide=!1,ye.attributes['x-out-of-boundaries']=!1}return ye}},applyStyle:{order:900,enabled:!0,gpuAcceleration:!0,function:function(ye,we){var xe={position:ye.offsets.popper.position},ve={'x-placement':ye.placement},Oe=_Mathround(ye.offsets.popper.left),Ee=_Mathround(ye.offsets.popper.top),Se=D('transform');return we.gpuAcceleration&&Se?(xe[Se]='translate3d('+Oe+'px, '+Ee+'px, 0)',xe.top=0,xe.left=0,xe.willChange='transform'):(xe.left=Oe,xe.top=Ee,xe.willChange='top, left'),F(ye.instance.popper,re({},xe,ye.styles)),z(ye.instance.popper,re({},ve,ye.attributes)),ye.offsets.arrow&&F(ye.arrowElement,ye.offsets.arrow),ye},onLoad:function(ye,we,xe,ve,Oe){var Ee=C(Oe,we,ye);return xe.placement=E(xe.placement,Ee,we,ye),we.setAttribute('x-placement',xe.placement),xe}}}},be});
//# sourceMappingURL=popper.es5.min.js.map