0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-13 01:08:58 +01:00
Bootstrap/docs/assets/js/vendor/popper.min.js
2017-05-24 14:57:40 +02:00

3 lines
19 KiB
JavaScript

var _Mathfloor=Math.floor,_Mathmin=Math.min,_Mathround=Math.round,_Mathmax=Math.max;(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function o(Ne){return''!==Ne&&!isNaN(parseFloat(Ne))&&isFinite(Ne)}function r(Ne,We){Object.keys(We).forEach(function(Pe){var De='';-1!==['width','height','top','right','bottom','left'].indexOf(Pe)&&o(We[Pe])&&(De='px'),Ne.style[Pe]=We[Pe]+De})}function p(Ne){return Ne&&'[object Function]'==={}.toString.call(Ne)}function s(Ne,We){if(1!==Ne.nodeType)return[];var Pe=window.getComputedStyle(Ne,null);return We?Pe[We]:Pe}function d(Ne){return'HTML'===Ne.nodeName?Ne:Ne.parentNode||Ne.host}function f(Ne){if(!Ne||-1!==['HTML','BODY','#document'].indexOf(Ne.nodeName))return window.document.body;var We=s(Ne),Pe=We.overflow,De=We.overflowX,He=We.overflowY;return /(auto|scroll)/.test(Pe+He+De)?Ne:f(d(Ne))}function l(Ne){var We=Ne.nodeName;return'BODY'!==We&&('HTML'===We||Ne.firstElementChild.offsetParent===Ne)}function m(Ne){return null===Ne.parentNode?Ne:m(Ne.parentNode)}function h(Ne){var We=Ne&&Ne.offsetParent,Pe=We&&We.nodeName;return Pe&&'BODY'!==Pe&&'HTML'!==Pe?We:window.document.documentElement}function c(Ne,We){if(!Ne||!Ne.nodeType||!We||!We.nodeType)return window.document.documentElement;var Pe=Ne.compareDocumentPosition(We)&Node.DOCUMENT_POSITION_FOLLOWING,De=Pe?Ne:We,He=Pe?We:Ne,Be=document.createRange();Be.setStart(De,0),Be.setEnd(He,0);var Me=Be.commonAncestorContainer;if(Ne!==Me&&We!==Me||De.contains(He))return l(Me)?Me:h(Me);var Ie=m(Ne);return Ie.host?c(Ie.host,We):c(Ne,m(We).host)}function u(Ne){var We=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',Pe='top'===We?'scrollTop':'scrollLeft',De=Ne.nodeName;if('BODY'===De||'HTML'===De){var He=window.document.documentElement,Be=window.document.scrollingElement||He;return Be[Pe]}return Ne[Pe]}function g(Ne,We){var Pe=2<arguments.length&&void 0!==arguments[2]&&arguments[2],De=u(We,'top'),He=u(We,'left'),Be=Pe?-1:1;return Ne.top+=De*Be,Ne.bottom+=De*Be,Ne.left+=He*Be,Ne.right+=He*Be,Ne}function w(Ne,We){var Pe='x'===We?'Left':'Top',De='Left'==Pe?'Right':'Bottom';return+Ne['border'+Pe+'Width'].split('px')[0]+ +Ne['border'+De+'Width'].split('px')[0]}function E(Ne,We,Pe,De){return _Mathmax(We['offset'+Ne],Pe['client'+Ne],Pe['offset'+Ne],ye()?Pe['offset'+Ne]+De['margin'+('Height'===Ne?'Top':'Left')]+De['margin'+('Height'===Ne?'Bottom':'Right')]:0)}function v(){var Ne=window.document.body,We=window.document.documentElement,Pe=ye()&&window.getComputedStyle(We);return{height:E('Height',Ne,We,Pe),width:E('Width',Ne,We,Pe)}}function O(Ne){return xe({},Ne,{right:Ne.left+Ne.width,bottom:Ne.top+Ne.height})}function L(Ne){var We={};if(ye())try{We=Ne.getBoundingClientRect();var Pe=u(Ne,'top'),De=u(Ne,'left');We.top+=Pe,We.left+=De,We.bottom+=Pe,We.right+=De}catch(Ye){}else We=Ne.getBoundingClientRect();var He={left:We.left,top:We.top,width:We.right-We.left,height:We.bottom-We.top},Be='HTML'===Ne.nodeName?v():{},Me=Be.width||Ne.clientWidth||He.right-He.left,Ie=Be.height||Ne.clientHeight||He.bottom-He.top,Ae=Ne.offsetWidth-Me,Re=Ne.offsetHeight-Ie;if(Ae||Re){var Ue=s(Ne);Ae-=w(Ue,'x'),Re-=w(Ue,'y'),He.width-=Ae,He.height-=Re}return O(He)}function S(Ne,We){var Pe=ye(),De='HTML'===We.nodeName,He=L(Ne),Be=L(We),Me=f(Ne),Ie=O({top:He.top-Be.top,left:He.left-Be.left,width:He.width,height:He.height});if(De||'BODY'===We.nodeName){var Ae=s(We),Re=Pe&&De?0:+Ae.borderTopWidth.split('px')[0],Ue=Pe&&De?0:+Ae.borderLeftWidth.split('px')[0],Ye=Pe&&De?0:+Ae.marginTop.split('px')[0],Fe=Pe&&De?0:+Ae.marginLeft.split('px')[0];Ie.top-=Re-Ye,Ie.bottom-=Re-Ye,Ie.left-=Ue-Fe,Ie.right-=Ue-Fe,Ie.marginTop=Ye,Ie.marginLeft=Fe}return(Pe?We.contains(Me):We===Me&&'BODY'!==Me.nodeName)&&(Ie=g(Ie,We)),Ie}function C(Ne){var We=window.document.documentElement,Pe=S(Ne,We),De=_Mathmax(We.clientWidth,window.innerWidth||0),He=_Mathmax(We.clientHeight,window.innerHeight||0),Be=u(We),Me=u(We,'left'),Ie={top:Be-Pe.top+Pe.marginTop,left:Me-Pe.left+Pe.marginLeft,width:De,height:He};return O(Ie)}function T(Ne){var We=Ne.nodeName;return'BODY'===We||'HTML'===We?!1:'fixed'===s(Ne,'position')||T(d(Ne))}function k(Ne,We,Pe,De){var He={top:0,left:0},Be=c(Ne,We);if('viewport'===De)He=C(Be);else{var Me;'scrollParent'===De?(Me=f(d(Ne)),'BODY'===Me.nodeName&&(Me=window.document.documentElement)):'window'===De?Me=window.document.documentElement:Me=De;var Ie=S(Me,Be);if('HTML'===Me.nodeName&&!T(Be)){var Ae=v(),Re=Ae.height,Ue=Ae.width;He.top+=Ie.top-Ie.marginTop,He.bottom=Re+Ie.top,He.left+=Ie.left-Ie.marginLeft,He.right=Ue+Ie.left}else He=Ie}return He.left+=Pe,He.top+=Pe,He.right-=Pe,He.bottom-=Pe,He}function N(Ne){var We=Ne.width,Pe=Ne.height;return We*Pe}function W(Ne,We,Pe,De,He){var Be=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===Ne.indexOf('auto'))return Ne;var Me=k(Pe,De,Be,He),Ie={top:{width:Me.width,height:We.top-Me.top},right:{width:Me.right-We.right,height:Me.height},bottom:{width:Me.width,height:Me.bottom-We.bottom},left:{width:We.left-Me.left,height:Me.height}},Ae=Object.keys(Ie).map(function(Fe){return xe({key:Fe},Ie[Fe],{area:N(Ie[Fe])})}).sort(function(Fe,je){return je.area-Fe.area}),Re=Ae.filter(function(Fe){var je=Fe.width,qe=Fe.height;return je>=Pe.clientWidth&&qe>=Pe.clientHeight}),Ue=0<Re.length?Re[0].key:Ae[0].key,Ye=Ne.split('-')[1];return Ue+(Ye?'-'+Ye:'')}function P(Ne,We,Pe){var De=c(We,Pe);return S(Pe,De)}function D(Ne){var We=window.getComputedStyle(Ne),Pe=parseFloat(We.marginTop)+parseFloat(We.marginBottom),De=parseFloat(We.marginLeft)+parseFloat(We.marginRight),He={width:Ne.offsetWidth+De,height:Ne.offsetHeight+Pe};return He}function H(Ne){var We={left:'right',right:'left',bottom:'top',top:'bottom'};return Ne.replace(/left|right|bottom|top/g,function(Pe){return We[Pe]})}function B(Ne,We,Pe){Pe=Pe.split('-')[0];var De=D(Ne),He={width:De.width,height:De.height},Be=-1!==['right','left'].indexOf(Pe),Me=Be?'top':'left',Ie=Be?'left':'top',Ae=Be?'height':'width',Re=Be?'width':'height';return He[Me]=We[Me]+We[Ae]/2-De[Ae]/2,He[Ie]=Pe===Ie?We[Ie]-De[Re]:We[H(Ie)],He}function M(Ne,We){return Array.prototype.find?Ne.find(We):Ne.filter(We)[0]}function I(Ne,We,Pe){if(Array.prototype.findIndex)return Ne.findIndex(function(He){return He[We]===Pe});var De=M(Ne,function(He){return He[We]===Pe});return Ne.indexOf(De)}function A(Ne,We,Pe){var De=void 0===Pe?Ne:Ne.slice(0,I(Ne,'name',Pe));return De.forEach(function(He){He.function&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var Be=He.function||He.fn;He.enabled&&p(Be)&&(We=Be(We,He))}),We}function R(){if(!this.state.isDestroyed){var Ne={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};Ne.offsets.reference=P(this.state,this.popper,this.reference),Ne.placement=W(this.options.placement,Ne.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),Ne.originalPlacement=Ne.placement,Ne.offsets.popper=B(this.popper,Ne.offsets.reference,Ne.placement),Ne.offsets.popper.position='absolute',Ne=A(this.modifiers,Ne),this.state.isCreated?this.options.onUpdate(Ne):(this.state.isCreated=!0,this.options.onCreate(Ne))}}function U(Ne,We){return Ne.some(function(Pe){var De=Pe.name,He=Pe.enabled;return He&&De===We})}function Y(Ne){for(var We=[!1,'ms','webkit','moz','o'],Pe=Ne.charAt(0).toUpperCase()+Ne.slice(1),De=0;De<We.length-1;De++){var He=We[De],Be=He?''+He+Pe:Ne;if('undefined'!=typeof window.document.body.style[Be])return Be}return null}function F(){return this.state.isDestroyed=!0,U(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[Y('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function j(Ne,We,Pe,De){var He='BODY'===Ne.nodeName,Be=He?window:Ne;Be.addEventListener(We,Pe,{passive:!0}),He||j(f(Be.parentNode),We,Pe,De),De.push(Be)}function q(Ne,We,Pe,De){Pe.updateBound=De,window.addEventListener('resize',Pe.updateBound,{passive:!0});var He=f(Ne);return j(He,'scroll',Pe.updateBound,Pe.scrollParents),Pe.scrollElement=He,Pe.eventsEnabled=!0,Pe}function K(){this.state.eventsEnabled||(this.state=q(this.reference,this.options,this.state,this.scheduleUpdate))}function z(Ne,We){return window.removeEventListener('resize',We.updateBound),We.scrollParents.forEach(function(Pe){Pe.removeEventListener('scroll',We.updateBound)}),We.updateBound=null,We.scrollParents=[],We.scrollElement=null,We.eventsEnabled=!1,We}function _(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=z(this.reference,this.state))}function V(Ne,We){Object.keys(We).forEach(function(Pe){var De=We[Pe];!1===De?Ne.removeAttribute(Pe):Ne.setAttribute(Pe,We[Pe])})}function Q(Ne,We,Pe){var De=M(Ne,function(Ie){var Ae=Ie.name;return Ae===We}),He=!!De&&Ne.some(function(Ie){return Ie.name===Pe&&Ie.enabled&&Ie.order<De.order});if(!He){var Be='`'+We+'`';console.warn('`'+Pe+'`'+' modifier is required by '+Be+' modifier in order to work, be sure to include it before '+Be+'!')}return He}function $(Ne){return'end'===Ne?'start':'start'===Ne?'end':Ne}function J(Ne){var We=1<arguments.length&&void 0!==arguments[1]&&arguments[1],Pe=Le.indexOf(Ne),De=Le.slice(Pe+1).concat(Le.slice(0,Pe));return We?De.reverse():De}function oe(Ne,We,Pe,De){var He=Ne.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),Be=+He[1],Me=He[2];if(!Be)return Ne;if(0===Me.indexOf('%')){var Ie;switch(Me){case'%p':Ie=Pe;break;case'%':case'%r':default:Ie=De;}var Ae=O(Ie);return Ae[We]/100*Be}if('vh'===Me||'vw'===Me){var Re;return Re='vh'===Me?_Mathmax(document.documentElement.clientHeight,window.innerHeight||0):_Mathmax(document.documentElement.clientWidth,window.innerWidth||0),Re/100*Be}return Be}function ie(Ne,We,Pe,De){var He=[0,0],Be=-1!==['right','left'].indexOf(De),Me=Ne.split(/(\+|\-)/).map(function(Ue){return Ue.trim()}),Ie=Me.indexOf(M(Me,function(Ue){return-1!==Ue.search(/,|\s/)}));Me[Ie]&&-1===Me[Ie].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var Ae=/\s*,\s*|\s+/,Re=-1===Ie?[Me]:[Me.slice(0,Ie).concat([Me[Ie].split(Ae)[0]]),[Me[Ie].split(Ae)[1]].concat(Me.slice(Ie+1))];return Re=Re.map(function(Ue,Ye){var Fe=(1===Ye?!Be:Be)?'height':'width',je=!1;return Ue.reduce(function(qe,Ke){return''===qe[qe.length-1]&&-1!==['+','-'].indexOf(Ke)?(qe[qe.length-1]=Ke,je=!0,qe):je?(qe[qe.length-1]+=Ke,je=!1,qe):qe.concat(Ke)},[]).map(function(qe){return oe(qe,Fe,We,Pe)})}),Re.forEach(function(Ue,Ye){Ue.forEach(function(Fe,je){o(Fe)&&(He[Ye]+=Fe*('-'===Ue[je-1]?-1:1))})}),He}for(var de=['native code','[object MutationObserverConstructor]'],fe=function(Ne){return de.some(function(We){return-1<(Ne||'').toString().indexOf(We)})},le='undefined'!=typeof window,me=['Edge','Trident','Firefox'],he=0,ce=0;ce<me.length;ce+=1)if(le&&0<=navigator.userAgent.indexOf(me[ce])){he=1;break}var be,ue=le&&fe(window.MutationObserver),ge=ue?function(Ne){var We=!1,Pe=0,De=document.createElement('span'),He=new MutationObserver(function(){Ne(),We=!1});return He.observe(De,{attributes:!0}),function(){We||(We=!0,De.setAttribute('x-index',Pe),++Pe)}}:function(Ne){var We=!1;return function(){We||(We=!0,setTimeout(function(){We=!1,Ne()},he))}},ye=function(){return void 0==be&&(be=-1!==navigator.appVersion.indexOf('MSIE 10')),be},we=function(Ne,We){if(!(Ne instanceof We))throw new TypeError('Cannot call a class as a function')},Ee=function(){function Ne(We,Pe){for(var He,De=0;De<Pe.length;De++)He=Pe[De],He.enumerable=He.enumerable||!1,He.configurable=!0,'value'in He&&(He.writable=!0),Object.defineProperty(We,He.key,He)}return function(We,Pe,De){return Pe&&Ne(We.prototype,Pe),De&&Ne(We,De),We}}(),ve=function(Ne,We,Pe){return We in Ne?Object.defineProperty(Ne,We,{value:Pe,enumerable:!0,configurable:!0,writable:!0}):Ne[We]=Pe,Ne},xe=Object.assign||function(Ne){for(var Pe,We=1;We<arguments.length;We++)for(var De in Pe=arguments[We],Pe)Object.prototype.hasOwnProperty.call(Pe,De)&&(Ne[De]=Pe[De]);return Ne},Oe=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],Le=Oe.slice(3),Se={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},ke=function(){function Ne(We,Pe){var De=this,He=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};we(this,Ne),this.scheduleUpdate=function(){return requestAnimationFrame(De.update)},this.update=ge(this.update.bind(this)),this.options=xe({},Ne.Defaults,He),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=We.jquery?We[0]:We,this.popper=Pe.jquery?Pe[0]:Pe,r(this.popper,{position:'absolute'}),this.options.modifiers={},Object.keys(xe({},Ne.Defaults.modifiers,He.modifiers)).forEach(function(Me){De.options.modifiers[Me]=xe({},Ne.Defaults.modifiers[Me]||{},He.modifiers?He.modifiers[Me]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(Me){return xe({name:Me},De.options.modifiers[Me])}).sort(function(Me,Ie){return Me.order-Ie.order}),this.modifiers.forEach(function(Me){Me.enabled&&p(Me.onLoad)&&Me.onLoad(De.reference,De.popper,De.options,Me,De.state)}),this.update();var Be=this.options.eventsEnabled;Be&&this.enableEventListeners(),this.state.eventsEnabled=Be}return Ee(Ne,[{key:'update',value:function(){return R.call(this)}},{key:'destroy',value:function(){return F.call(this)}},{key:'enableEventListeners',value:function(){return K.call(this)}},{key:'disableEventListeners',value:function(){return _.call(this)}}]),Ne}();return ke.Utils=('undefined'==typeof window?global:window).PopperUtils,ke.placements=Oe,ke.Defaults={placement:'bottom',eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(Ne){var We=Ne.placement,Pe=We.split('-')[0],De=We.split('-')[1];if(De){var He=Ne.offsets.reference,Be=O(Ne.offsets.popper),Me=-1!==['bottom','top'].indexOf(Pe),Ie=Me?'left':'top',Ae=Me?'width':'height',Re={start:ve({},Ie,He[Ie]),end:ve({},Ie,He[Ie]+He[Ae]-Be[Ae])};Ne.offsets.popper=xe({},Be,Re[De])}return Ne}},offset:{order:200,enabled:!0,fn:function(Ne,We){var Ae,Pe=We.offset,De=Ne.placement,He=Ne.offsets,Be=He.popper,Me=He.reference,Ie=De.split('-')[0];return Ae=o(+Pe)?[+Pe,0]:ie(Pe,Be,Me,Ie),'left'===Ie?(Be.top+=Ae[0],Be.left-=Ae[1]):'right'===Ie?(Be.top+=Ae[0],Be.left+=Ae[1]):'top'===Ie?(Be.left+=Ae[0],Be.top-=Ae[1]):'bottom'===Ie&&(Be.left+=Ae[0],Be.top+=Ae[1]),Ne.popper=Be,Ne},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(Ne,We){var Pe=We.boundariesElement||h(Ne.instance.popper),De=k(Ne.instance.popper,Ne.instance.reference,We.padding,Pe);We.boundaries=De;var He=We.priority,Be=O(Ne.offsets.popper),Me={primary:function(Ae){var Re=Be[Ae];return Be[Ae]<De[Ae]&&!We.escapeWithReference&&(Re=_Mathmax(Be[Ae],De[Ae])),ve({},Ae,Re)},secondary:function(Ae){var Re='right'===Ae?'left':'top',Ue=Be[Re];return Be[Ae]>De[Ae]&&!We.escapeWithReference&&(Ue=_Mathmin(Be[Re],De[Ae]-('right'===Ae?Be.width:Be.height))),ve({},Re,Ue)}};return He.forEach(function(Ie){var Ae=-1===['left','top'].indexOf(Ie)?'secondary':'primary';Be=xe({},Be,Me[Ae](Ie))}),Ne.offsets.popper=Be,Ne},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(Ne){var We=O(Ne.offsets.popper),Pe=Ne.offsets.reference,De=Ne.placement.split('-')[0],He=_Mathfloor,Be=-1!==['top','bottom'].indexOf(De),Me=Be?'right':'bottom',Ie=Be?'left':'top',Ae=Be?'width':'height';return We[Me]<He(Pe[Ie])&&(Ne.offsets.popper[Ie]=He(Pe[Ie])-We[Ae]),We[Ie]>He(Pe[Me])&&(Ne.offsets.popper[Ie]=He(Pe[Me])),Ne}},arrow:{order:500,enabled:!0,fn:function(Ne,We){if(!Q(Ne.instance.modifiers,'arrow','keepTogether'))return Ne;var Pe=We.element;if('string'==typeof Pe){if(Pe=Ne.instance.popper.querySelector(Pe),!Pe)return Ne;}else if(!Ne.instance.popper.contains(Pe))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),Ne;var De=Ne.placement.split('-')[0],He=O(Ne.offsets.popper),Be=Ne.offsets.reference,Me=-1!==['left','right'].indexOf(De),Ie=Me?'height':'width',Ae=Me?'top':'left',Re=Me?'left':'top',Ue=Me?'bottom':'right',Ye=D(Pe)[Ie];Be[Ue]-Ye<He[Ae]&&(Ne.offsets.popper[Ae]-=He[Ae]-(Be[Ue]-Ye)),Be[Ae]+Ye>He[Ue]&&(Ne.offsets.popper[Ae]+=Be[Ae]+Ye-He[Ue]);var Fe=Be[Ae]+Be[Ie]/2-Ye/2,je=Fe-O(Ne.offsets.popper)[Ae];return je=_Mathmax(_Mathmin(He[Ie]-Ye,je),0),Ne.arrowElement=Pe,Ne.offsets.arrow={},Ne.offsets.arrow[Ae]=_Mathfloor(je),Ne.offsets.arrow[Re]='',Ne},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(Ne,We){if(U(Ne.instance.modifiers,'inner'))return Ne;if(Ne.flipped&&Ne.placement===Ne.originalPlacement)return Ne;var Pe=k(Ne.instance.popper,Ne.instance.reference,We.padding,We.boundariesElement),De=Ne.placement.split('-')[0],He=H(De),Be=Ne.placement.split('-')[1]||'',Me=[];switch(We.behavior){case Se.FLIP:Me=[De,He];break;case Se.CLOCKWISE:Me=J(De);break;case Se.COUNTERCLOCKWISE:Me=J(De,!0);break;default:Me=We.behavior;}return Me.forEach(function(Ie,Ae){if(De!==Ie||Me.length===Ae+1)return Ne;De=Ne.placement.split('-')[0],He=H(De);var Re=O(Ne.offsets.popper),Ue=Ne.offsets.reference,Ye=_Mathfloor,Fe='left'===De&&Ye(Re.right)>Ye(Ue.left)||'right'===De&&Ye(Re.left)<Ye(Ue.right)||'top'===De&&Ye(Re.bottom)>Ye(Ue.top)||'bottom'===De&&Ye(Re.top)<Ye(Ue.bottom),je=Ye(Re.left)<Ye(Pe.left),qe=Ye(Re.right)>Ye(Pe.right),Ke=Ye(Re.top)<Ye(Pe.top),ze=Ye(Re.bottom)>Ye(Pe.bottom),_e='left'===De&&je||'right'===De&&qe||'top'===De&&Ke||'bottom'===De&&ze,Ve=-1!==['top','bottom'].indexOf(De),Ge=!!We.flipVariations&&(Ve&&'start'===Be&&je||Ve&&'end'===Be&&qe||!Ve&&'start'===Be&&Ke||!Ve&&'end'===Be&&ze);(Fe||_e||Ge)&&(Ne.flipped=!0,(Fe||_e)&&(De=Me[Ae+1]),Ge&&(Be=$(Be)),Ne.placement=De+(Be?'-'+Be:''),Ne.offsets.popper=xe({},Ne.offsets.popper,B(Ne.instance.popper,Ne.offsets.reference,Ne.placement)),Ne=A(Ne.instance.modifiers,Ne,'flip'))}),Ne},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(Ne){var We=Ne.placement,Pe=We.split('-')[0],De=O(Ne.offsets.popper),He=O(Ne.offsets.reference),Be=-1!==['left','right'].indexOf(Pe),Me=-1===['top','left'].indexOf(Pe);return De[Be?'left':'top']=He[We]-(Me?De[Be?'width':'height']:0),Ne.placement=H(We),Ne.offsets.popper=O(De),Ne}},hide:{order:800,enabled:!0,fn:function(Ne){if(!Q(Ne.instance.modifiers,'hide','preventOverflow'))return Ne;var We=Ne.offsets.reference,Pe=M(Ne.instance.modifiers,function(De){return'preventOverflow'===De.name}).boundaries;if(We.bottom<Pe.top||We.left>Pe.right||We.top>Pe.bottom||We.right<Pe.left){if(!0===Ne.hide)return Ne;Ne.hide=!0,Ne.attributes['x-out-of-boundaries']=''}else{if(!1===Ne.hide)return Ne;Ne.hide=!1,Ne.attributes['x-out-of-boundaries']=!1}return Ne}},applyStyle:{order:900,enabled:!0,fn:function(Ne,We){var Pe={position:Ne.offsets.popper.position},De={'x-placement':Ne.placement},He=_Mathround(Ne.offsets.popper.left),Be=_Mathround(Ne.offsets.popper.top),Me=Y('transform');return We.gpuAcceleration&&Me?(Pe[Me]='translate3d('+He+'px, '+Be+'px, 0)',Pe.top=0,Pe.left=0,Pe.willChange='transform'):(Pe.left=He,Pe.top=Be,Pe.willChange='top, left'),r(Ne.instance.popper,xe({},Pe,Ne.styles)),V(Ne.instance.popper,xe({},De,Ne.attributes)),Ne.offsets.arrow&&r(Ne.arrowElement,Ne.offsets.arrow),Ne},onLoad:function(Ne,We,Pe,De,He){var Be=P(He,We,Ne),Me=W(Pe.placement,Be,We,Ne,Pe.modifiers.flip.boundariesElement,Pe.modifiers.flip.padding);return We.setAttribute('x-placement',Me),Pe},gpuAcceleration:!0}}},ke});
//# sourceMappingURL=popper.min.js.map