var _Mathfloor=Math.floor,_Mathmin=Math.min,_Mathround=Math.round,_Mathmax=Math.max;const nativeHints=['native code','[object MutationObserverConstructor]'];var isNative=(e)=>nativeHints.some((t)=>-1<(e||'').toString().indexOf(t));const isBrowser='undefined'!=typeof window,longerTimeoutBrowsers=['Edge','Trident','Firefox'];let timeoutDuration=0;for(let e=0;e{e(),t=!1});return p.observe(r,{attributes:!0}),()=>{t||(t=!0,r.setAttribute('x-index',o),++o)}}function taskDebounce(e){let t=!1;return()=>{t||(t=!0,setTimeout(()=>{t=!1,e()},timeoutDuration))}}const supportsNativeMutationObserver=isBrowser&&isNative(window.MutationObserver);var debounce=supportsNativeMutationObserver?microtaskDebounce:taskDebounce;function isNumeric(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function setStyles(e,t){Object.keys(t).forEach((o)=>{let r='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&isNumeric(t[o])&&(r='px'),e.style[o]=t[o]+r})}function isFunction(e){return e&&'[object Function]'==={}.toString.call(e)}function getStyleComputedProperty(e,t){if(1!==e.nodeType)return[];const o=window.getComputedStyle(e,null);return t?o[t]:o}function getParentNode(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function getScrollParent(e){if(!e||-1!==['HTML','BODY','#document'].indexOf(e.nodeName))return window.document.body;const{overflow:t,overflowX:o,overflowY:r}=getStyleComputedProperty(e);return /(auto|scroll)/.test(t+r+o)?e:getScrollParent(getParentNode(e))}function isOffsetContainer(e){const{nodeName:t}=e;return'BODY'!==t&&('HTML'===t||e.firstElementChild.offsetParent===e)}function getRoot(e){return null===e.parentNode?e:getRoot(e.parentNode)}function getOffsetParent(e){const t=e&&e.offsetParent,o=t&&t.nodeName;return o&&'BODY'!==o&&'HTML'!==o?t:window.document.documentElement}function findCommonOffsetParent(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return window.document.documentElement;const o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=o?e:t,p=o?t:e,s=document.createRange();s.setStart(r,0),s.setEnd(p,0);const{commonAncestorContainer:d}=s;if(e!==d&&t!==d||r.contains(p))return isOffsetContainer(d)?d:getOffsetParent(d);const f=getRoot(e);return f.host?findCommonOffsetParent(f.host,t):findCommonOffsetParent(e,getRoot(t).host)}function getScroll(e,t='top'){const o='top'===t?'scrollTop':'scrollLeft',r=e.nodeName;if('BODY'===r||'HTML'===r){const p=window.document.documentElement,s=window.document.scrollingElement||p;return s[o]}return e[o]}function includeScroll(e,t,o=!1){const r=getScroll(t,'top'),p=getScroll(t,'left'),s=o?-1:1;return e.top+=r*s,e.bottom+=r*s,e.left+=p*s,e.right+=p*s,e}function getBordersSize(e,t){const o='x'===t?'Left':'Top',r='Left'==o?'Right':'Bottom';return+e[`border${o}Width`].split('px')[0]+ +e[`border${r}Width`].split('px')[0]}let isIE10;var isIE10$1=function(){return void 0==isIE10&&(isIE10=-1!==navigator.appVersion.indexOf('MSIE 10')),isIE10};function getSize(e,t,o,r){return _Mathmax(t[`offset${e}`],o[`client${e}`],o[`offset${e}`],isIE10$1()?o[`offset${e}`]+r[`margin${'Height'===e?'Top':'Left'}`]+r[`margin${'Height'===e?'Bottom':'Right'}`]:0)}function getWindowSizes(){const e=window.document.body,t=window.document.documentElement,o=isIE10$1()&&window.getComputedStyle(t);return{height:getSize('Height',e,t,o),width:getSize('Width',e,t,o)}}var _extends=Object.assign||function(e){for(var o,t=1;td[c]-d[m])[0],l=e.split('-')[1];return f+(l?`-${l}`:'')}function getReferenceOffsets(e,t,o){const r=findCommonOffsetParent(t,o);return getOffsetRectRelativeToArbitraryNode(o,r)}function getOuterSizes(e){const t=window.getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight),p={width:e.offsetWidth+r,height:e.offsetHeight+o};return p}function getOppositePlacement(e){const t={left:'right',right:'left',bottom:'top',top:'bottom'};return e.replace(/left|right|bottom|top/g,(o)=>t[o])}function getPopperOffsets(e,t,o){o=o.split('-')[0];const r=getOuterSizes(e),p={width:r.width,height:r.height},s=-1!==['right','left'].indexOf(o),d=s?'top':'left',f=s?'left':'top',l=s?'height':'width',m=s?'width':'height';return p[d]=t[d]+t[l]/2-r[l]/2,p[f]=o===f?t[f]-r[m]:t[getOppositePlacement(f)],p}function find(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function findIndex(e,t,o){if(Array.prototype.findIndex)return e.findIndex((p)=>p[t]===o);const r=find(e,(p)=>p[t]===o);return e.indexOf(r)}function runModifiers(e,t,o){const r=void 0===o?e:e.slice(0,findIndex(e,'name',o));return r.forEach((p)=>{p.function&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');const s=p.function||p.fn;p.enabled&&isFunction(s)&&(t=s(t,p))}),t}function update(){if(this.state.isDestroyed)return;let e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference),e.placement=computeAutoPlacement(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement),e.originalPlacement=e.placement,e.offsets.popper=getPopperOffsets(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position='absolute',e=runModifiers(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}function isModifierEnabled(e,t){return e.some(({name:o,enabled:r})=>r&&o===t)}function getSupportedPropertyName(e){const t=[!1,'ms','webkit','moz','o'],o=e.charAt(0).toUpperCase()+e.slice(1);for(let r=0;r{o.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function disableEventListeners(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=removeEventListeners(this.reference,this.state))}function setAttributes(e,t){Object.keys(t).forEach(function(o){const r=t[o];!1===r?e.removeAttribute(o):e.setAttribute(o,t[o])})}function applyStyle(e,t){const o={position:e.offsets.popper.position},r={'x-placement':e.placement},p=_Mathround(e.offsets.popper.left),s=_Mathround(e.offsets.popper.top),d=getSupportedPropertyName('transform');return t.gpuAcceleration&&d?(o[d]='translate3d('+p+'px, '+s+'px, 0)',o.top=0,o.left=0,o.willChange='transform'):(o.left=p,o.top=s,o.willChange='top, left'),setStyles(e.instance.popper,_extends({},o,e.styles)),setAttributes(e.instance.popper,_extends({},r,e.attributes)),e.offsets.arrow&&setStyles(e.arrowElement,e.offsets.arrow),e}function applyStyleOnLoad(e,t,o,r,p){const s=getReferenceOffsets(p,t,e),d=computeAutoPlacement(o.placement,s,t,e,o.modifiers.flip.boundariesElement);return t.setAttribute('x-placement',d),o}function isModifierRequired(e,t,o){const r=find(e,({name:s})=>s===t),p=!!r&&e.some((s)=>{return s.name===o&&s.enabled&&s.orderp[c]&&(e.offsets.popper[l]+=s[l]+h-p[c]);const u=s[l]+s[f]/2-h/2;let g=u-getClientRect(e.offsets.popper)[l];return g=_Mathmax(_Mathmin(p[f]-h,g),0),e.arrowElement=o,e.offsets.arrow={},e.offsets.arrow[l]=g,e.offsets.arrow[m]='',e}function getOppositeVariation(e){if('end'===e)return'start';return'start'===e?'end':e}var placements=['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'];const validPlacements=placements.slice(3);function clockwise(e,t=!1){const o=validPlacements.indexOf(e),r=validPlacements.slice(o+1).concat(validPlacements.slice(0,o));return t?r.reverse():r}const BEHAVIORS={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'};function flip(e,t){if(isModifierEnabled(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;const o=getBoundaries(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement);let r=e.placement.split('-')[0],p=getOppositePlacement(r),s=e.placement.split('-')[1]||'',d=[];switch(t.behavior){case BEHAVIORS.FLIP:d=[r,p];break;case BEHAVIORS.CLOCKWISE:d=clockwise(r);break;case BEHAVIORS.COUNTERCLOCKWISE:d=clockwise(r,!0);break;default:d=t.behavior;}return d.forEach((f,l)=>{if(r!==f||d.length===l+1)return e;r=e.placement.split('-')[0],p=getOppositePlacement(r);const m=getClientRect(e.offsets.popper),c=e.offsets.reference,h=_Mathfloor,u='left'===r&&h(m.right)>h(c.left)||'right'===r&&h(m.left)h(c.top)||'bottom'===r&&h(m.top)h(o.right),w=h(m.top)h(o.bottom),v='left'===r&&g||'right'===r&&E||'top'===r&&w||'bottom'===r&&O,L=-1!==['top','bottom'].indexOf(r),S=!!t.flipVariations&&(L&&'start'===s&&g||L&&'end'===s&&E||!L&&'start'===s&&w||!L&&'end'===s&&O);(u||v||S)&&(e.flipped=!0,(u||v)&&(r=d[l+1]),S&&(s=getOppositeVariation(s)),e.placement=r+(s?'-'+s:''),e.offsets.popper=getPopperOffsets(e.instance.popper,e.offsets.reference,e.placement),e=runModifiers(e.instance.modifiers,e,'flip'))}),e}function keepTogether(e){const t=getClientRect(e.offsets.popper),o=e.offsets.reference,r=e.placement.split('-')[0],p=_Mathfloor,s=-1!==['top','bottom'].indexOf(r),d=s?'right':'bottom',f=s?'left':'top',l=s?'width':'height';return t[d]p(o[d])&&(e.offsets.popper[f]=p(o[d])),e}function toValue(e,t,o,r){const p=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+p[1],d=p[2];if(!s)return e;if(0===d.indexOf('%')){let f;switch(d){case'%p':f=o;break;case'%':case'%r':default:f=r;}const l=getClientRect(f);return l[t]/100*s}if('vh'===d||'vw'===d){let f;return f='vh'===d?_Mathmax(document.documentElement.clientHeight,window.innerHeight||0):_Mathmax(document.documentElement.clientWidth,window.innerWidth||0),f/100*s}return s}function parseOffset(e,t,o,r){const p=[0,0],s=-1!==['right','left'].indexOf(r),d=e.split(/(\+|\-)/).map((c)=>c.trim()),f=d.indexOf(find(d,(c)=>-1!==c.search(/,|\s/)));d[f]&&-1===d[f].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');const l=/\s*,\s*|\s+/;let m=-1===f?[d]:[d.slice(0,f).concat([d[f].split(l)[0]]),[d[f].split(l)[1]].concat(d.slice(f+1))];return m=m.map((c,h)=>{const u=(1===h?!s:s)?'height':'width';let g=!1;return c.reduce((E,w)=>{return''===E[E.length-1]&&-1!==['+','-'].indexOf(w)?(E[E.length-1]=w,g=!0,E):g?(E[E.length-1]+=w,g=!1,E):E.concat(w)},[]).map((E)=>toValue(E,u,t,o))}),m.forEach((c,h)=>{c.forEach((u,g)=>{isNumeric(u)&&(p[h]+=u*('-'===c[g-1]?-1:1))})}),p}function offset(e,{offset:t}){const{placement:o,offsets:{popper:r,reference:p}}=e,s=o.split('-')[0];let d;return d=isNumeric(+t)?[+t,0]:parseOffset(t,r,p,s),'left'===s?(r.top+=d[0],r.left-=d[1]):'right'===s?(r.top+=d[0],r.left+=d[1]):'top'===s?(r.left+=d[0],r.top-=d[1]):'bottom'===s&&(r.left+=d[0],r.top+=d[1]),e.popper=r,e}function preventOverflow(e,t){const o=t.boundariesElement||getOffsetParent(e.instance.popper),r=getBoundaries(e.instance.popper,e.instance.reference,t.padding,o);t.boundaries=r;const p=t.priority;let s=getClientRect(e.offsets.popper);const d={primary(f){let l=s[f];return s[f]r[f]&&!t.escapeWithReference&&(m=_Mathmin(s[l],r[f]-('right'===f?s.width:s.height))),{[l]:m}}};return p.forEach((f)=>{const l=-1===['left','top'].indexOf(f)?'secondary':'primary';s=_extends({},s,d[l](f))}),e.offsets.popper=s,e}function shift(e){const t=e.placement,o=t.split('-')[0],r=t.split('-')[1];if(r){const p=e.offsets.reference,s=getClientRect(e.offsets.popper),d=-1!==['bottom','top'].indexOf(o),f=d?'left':'top',l=d?'width':'height',m={start:{[f]:p[f]},end:{[f]:p[f]+p[l]-s[l]}};e.offsets.popper=_extends({},s,m[r])}return e}function hide(e){if(!isModifierRequired(e.instance.modifiers,'hide','preventOverflow'))return e;const t=e.offsets.reference,o=find(e.instance.modifiers,(r)=>'preventOverflow'===r.name).boundaries;if(t.bottomo.right||t.top>o.bottom||t.right{},onUpdate:()=>{},modifiers};class Popper{constructor(e,t,o={}){this.scheduleUpdate=()=>requestAnimationFrame(this.update),this.update=debounce(this.update.bind(this)),this.options=_extends({},Popper.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e.jquery?e[0]:e,this.popper=t.jquery?t[0]:t,setStyles(this.popper,{position:'absolute'}),this.modifiers=Object.keys(Popper.Defaults.modifiers).map((p)=>_extends({name:p},Popper.Defaults.modifiers[p])),this.modifiers=this.modifiers.map((p)=>{const s=o.modifiers&&o.modifiers[p.name]||{};return _extends({},p,s)}),o.modifiers&&(this.options.modifiers=_extends({},Popper.Defaults.modifiers,o.modifiers),Object.keys(o.modifiers).forEach((p)=>{if(Popper.Defaults.modifiers[p]===void 0){const s=o.modifiers[p];s.name=p,this.modifiers.push(s)}})),this.modifiers=this.modifiers.sort((p,s)=>p.order-s.order),this.modifiers.forEach((p)=>{p.enabled&&isFunction(p.onLoad)&&p.onLoad(this.reference,this.popper,this.options,p,this.state)}),this.update();const r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}update(){return update.call(this)}destroy(){return destroy.call(this)}enableEventListeners(){return enableEventListeners.call(this)}disableEventListeners(){return disableEventListeners.call(this)}}Popper.Utils=('undefined'==typeof window?global:window).PopperUtils,Popper.placements=placements,Popper.Defaults=DEFAULTS;