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